@studio-west/employees 0.7.6 → 0.7.7

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/WorkTable.js CHANGED
@@ -1,21 +1,21 @@
1
- import { ref as g, watch as $e, computed as Fe, resolveComponent as Se, resolveDirective as Ye, createElementBlock as z, openBlock as S, createElementVNode as w, createVNode as s, createCommentVNode as ee, withDirectives as Ue, createBlock as F, unref as t, withCtx as m, Fragment as ie, renderList as re, createTextVNode as D, toDisplayString as h, normalizeStyle as He } from "vue";
2
- import { saveAs as Ie } from "file-saver";
3
- import * as qe from "exceljs";
4
- import { p as L, b as se, h as Re, c as be, a as xe, d as V } from "./index-DaZTfcYO.js";
5
- import { useI18n as We } from "vue-i18n";
6
- import { ElSelect as je, ElOption as Pe, ElButton as T, ElSwitch as ve, ElTable as Oe, ElTableColumn as Y, ElDialog as Ge, ElForm as Le, ElFormItem as Ze, ElRadioGroup as Je, ElRadioButton as ge, ElSlider as Z } from "element-plus";
7
- import { ContextMenu as Qe, ContextMenuSeparator as Ke } from "@imengyu/vue3-context-menu";
8
- const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "100px", width: "100%", display: "inline-block" } }, ll = { style: { height: "100px", width: "100%", display: "inline-block" } }, al = {
1
+ import { ref as v, watch as Se, computed as Ye, resolveComponent as be, resolveDirective as Ue, createElementBlock as U, openBlock as b, createElementVNode as k, createVNode as r, createCommentVNode as ae, withDirectives as He, createBlock as H, unref as t, withCtx as g, Fragment as re, renderList as se, createTextVNode as V, toDisplayString as h, normalizeStyle as Ie } from "vue";
2
+ import { saveAs as qe } from "file-saver";
3
+ import * as Re from "exceljs";
4
+ import { p as J, b as ve, h as We, c as xe, a as De, d as E } from "./index-DaZTfcYO.js";
5
+ import { useI18n as je } from "vue-i18n";
6
+ import { ElSelect as Pe, ElOption as Oe, ElButton as z, ElSwitch as ge, ElTable as Ge, ElTableColumn as I, ElDialog as Le, ElForm as Ze, ElFormItem as Je, ElRadioGroup as Qe, ElRadioButton as me, ElSlider as Q } from "element-plus";
7
+ import { ContextMenu as Ke, ContextMenuSeparator as Xe } from "@imengyu/vue3-context-menu";
8
+ const _e = { class: "work" }, el = { class: "nav" }, ll = { style: { height: "100px", width: "100%", display: "inline-block" } }, al = { style: { height: "100px", width: "100%", display: "inline-block" } }, tl = {
9
9
  key: 0,
10
10
  class: "controls-container",
11
11
  style: { "margin-top": ".5rem" }
12
- }, tl = { class: "label" }, nl = {
12
+ }, nl = { class: "label" }, ul = {
13
13
  key: 0,
14
14
  style: { padding: "0.5em 1.5em" }
15
- }, ul = {
15
+ }, ol = {
16
16
  key: 1,
17
17
  style: { padding: "0.5em 1.5em" }
18
- }, gl = {
18
+ }, ml = {
19
19
  __name: "WorkTable",
20
20
  props: {
21
21
  checkEdit: { type: Boolean, default: () => !0 },
@@ -24,9 +24,9 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
24
24
  fullName: { type: String, default: "Вы" },
25
25
  query: Object
26
26
  },
27
- setup(I) {
28
- var pe, fe, ye, we, ke, Ce;
29
- const { t: d, d: J } = We(), f = I, Q = g(!1), n = g([
27
+ setup(R) {
28
+ var ye, fe, we, ke, Ce, $e;
29
+ const { t: d, d: K } = je(), f = R, X = v(!1), n = v([
30
30
  // { name: 'Иванов П.М. (Ведущий работник месяца)',
31
31
  // days: [], // {day: "2024-11-01", tips: '(9:00 - 18:00)', time: 8 }
32
32
  // contHour: 0,
@@ -39,242 +39,242 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
39
39
  // code: '0000-00052'
40
40
  // ids: 1
41
41
  // }
42
- ]), le = g((pe = f.query) != null && pe.date ? (/* @__PURE__ */ new Date(((fe = f.query) == null ? void 0 : fe.date) + "T00:00:01")).getMonth() : (/* @__PURE__ */ new Date()).getMonth()), ae = g(!1), q = g([]), p = g(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1)), o = g([]), R = g(0), k = g(9), y = g(8), K = g(!1), U = g(!1), te = g("5"), W = g(1), x = g([]), ne = g([]), N = g([]), X = g([]), c = g({ name: "Имя", length: 0, code: "" }), j = g(!1), ue = g({
42
+ ]), te = v((ye = f.query) != null && ye.date ? (/* @__PURE__ */ new Date(((fe = f.query) == null ? void 0 : fe.date) + "T00:00:01")).getMonth() : (/* @__PURE__ */ new Date()).getMonth()), ne = v(!1), W = v([]), y = v(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1)), o = v([]), T = v([0, 0]), C = v(9), w = v(8), _ = v(!1), q = v(!1), ue = v("5"), j = v(1), D = v([]), oe = v([]), A = v([]), ee = v([]), c = v({ name: "Имя", length: 0, code: "" }), P = v(!1), de = v({
43
43
  zIndex: 3,
44
44
  minWidth: 230,
45
45
  x: 500,
46
46
  y: 200
47
- }), A = g({}), P = g("100%");
48
- $e(x, async (l, e) => {
49
- l !== e && (N.value = [], K.value = !1, f.odata.personal.forEach((u) => {
50
- l.includes(u.divisionName) && (N.value.some((r) => (r == null ? void 0 : r.activeText) === u.roleName) || N.value.push({ val: !0, activeText: u.roleName }));
51
- }), oe());
52
- }), $e(le, async (l) => {
47
+ }), M = v({}), O = v("100%");
48
+ Se(D, async (l, e) => {
49
+ l !== e && (A.value = [], _.value = !1, f.odata.personal.forEach((u) => {
50
+ l.includes(u.divisionName) && (A.value.some((i) => (i == null ? void 0 : i.activeText) === u.roleName) || A.value.push({ val: !0, activeText: u.roleName }));
51
+ }), ie());
52
+ }), Se(te, async (l) => {
53
53
  let e = (/* @__PURE__ */ new Date()).getMonth(), u = l === null ? e : l - 1;
54
- u = e - 1 <= u ? u - e >= 11 ? u - 12 : u : u + 12, p.value = new Date((/* @__PURE__ */ new Date()).getFullYear(), u, 1), me();
54
+ u = e - 1 <= u ? u - e >= 11 ? u - 12 : u : u + 12, y.value = new Date((/* @__PURE__ */ new Date()).getFullYear(), u, 1), he();
55
55
  });
56
- const De = (l, e, u, r) => {
57
- c.value.ids = l.ids, c.value.key = l.key, c.value.add = l.days.length > 0 && l.days[l.days.length - 1].cont, c.value.level = e.level, c.value.day = u.cellIndex, ue.value.y = r.clientY, ue.value.x = r.clientX, e.level === 2 && e.no === 0 && f.checkEdit && (c.value.name = d("workSchedule.autocomplete"), j.value = !0), e.level === 3 && u.cellIndex - e.no === 1 && f.checkEdit && (B(u.cellIndex, l.ids), c.value.name = d("workSchedule.modeSelection"), j.value = !0);
58
- }, Ve = ({ row: l, columnIndex: e }) => {
59
- if (!q.value || q.value.length === 0 || !ae.value) return "";
60
- const u = new Date(new Date(p.value).getFullYear(), new Date(p.value).getMonth(), e).getTime() + 1e3;
61
- for (let r of q.value) {
62
- const { dateStart: v, dateEnd: a, code: C } = r;
63
- if (v && a && C === l.code && e !== 0 && e <= o.value.length) {
64
- const E = new Date(xe(v)).getTime(), $ = new Date(xe(a)).getTime();
65
- if (u >= E && u <= $) return "vacation";
56
+ const Ve = (l, e, u, i) => {
57
+ c.value.ids = l.ids, c.value.key = l.key, c.value.add = l.days.length > 0 && l.days[l.days.length - 1].cont, c.value.level = e.level, c.value.day = u.cellIndex, de.value.y = i.clientY, de.value.x = i.clientX, e.level === 2 && e.no === 0 && f.checkEdit && (c.value.name = d("workSchedule.autocomplete"), P.value = !0), e.level === 3 && u.cellIndex - e.no === 1 && f.checkEdit && (F(u.cellIndex, l.ids), c.value.name = d("workSchedule.modeSelection"), P.value = !0);
58
+ }, Ee = ({ row: l, columnIndex: e }) => {
59
+ if (!W.value || W.value.length === 0 || !ne.value) return "";
60
+ const u = new Date(new Date(y.value).getFullYear(), new Date(y.value).getMonth(), e).getTime() + 1e3;
61
+ for (let i of W.value) {
62
+ const { dateStart: s, dateEnd: a, code: $ } = i;
63
+ if (s && a && $ === l.code && e !== 0 && e <= o.value.length) {
64
+ const N = new Date(De(s)).getTime(), B = new Date(De(a)).getTime();
65
+ if (u >= N && u <= B) return "vacation";
66
66
  }
67
67
  }
68
68
  return "";
69
- }, me = () => {
70
- var v, a, C, E;
71
- const l = new Date(p.value), e = new Date(l.getFullYear(), l.getMonth() + 1, 0).getDate();
72
- let u = [], r = 0;
73
- for (let $ = 1; $ <= e; $++) {
74
- const b = L(l.setDate($), "{Y}-{m}-{dd}");
75
- r += (v = A.value.nowork) != null && v.includes(b) || A.value.holidays.includes(b) ? 0 : (a = A.value.preholidays) != null && a.includes(b) ? 7 : 8;
76
- const i = (C = A.value.nowork) != null && C.includes(b) ? "nowork" : A.value.holidays.includes(b) ? "holiday" : (E = A.value.preholidays) != null && E.includes(b) ? "preholiday" : "";
77
- u.push({ day: $, holidays: i, weekday: J(new Date(l.getFullYear(), l.getMonth(), $), "day") });
69
+ }, he = () => {
70
+ var a, $, N, B, L, m;
71
+ const l = new Date(y.value), e = new Date(l.getFullYear(), l.getMonth() + 1, 0).getDate();
72
+ let u = [], i = 0, s = 0;
73
+ for (let x = 1; x <= e; x++) {
74
+ const S = J(l.setDate(x), "{Y}-{m}-{dd}");
75
+ i += (a = M.value.nowork) != null && a.includes(S) || M.value.holidays.includes(S) ? 0 : ($ = M.value.preholidays) != null && $.includes(S) ? 7 : 8, s += (N = M.value.nowork) != null && N.includes(S) || M.value.holidays.includes(S) ? 0 : (B = M.value.preholidays) != null && B.includes(S) ? 6 : 7;
76
+ const p = (L = M.value.nowork) != null && L.includes(S) ? "nowork" : M.value.holidays.includes(S) ? "holiday" : (m = M.value.preholidays) != null && m.includes(S) ? "preholiday" : "";
77
+ u.push({ day: x, holidays: p, weekday: K(new Date(l.getFullYear(), l.getMonth(), x), "day") });
78
78
  }
79
- R.value = r, o.value = u, f.odata.getPersonal({ dismissed: "false" }).then(($) => {
80
- var b;
81
- x.value.length === 0 && (x.value = [(b = $.find((i) => i.employeeName === f.fullName && i.dismissalDate.length === 0)) == null ? void 0 : b.divisionName]), $.forEach((i, H) => {
82
- ne.value.some((M) => i.dismissalDate.length > 0 && new Date(i.dismissalDate) < new Date(p.value) || (M == null ? void 0 : M.value) === i.divisionName) || ne.value.push({ value: i.divisionName, label: i.divisionName, key: H }), x.value.includes(i.divisionName) && !N.value.some((M) => (M == null ? void 0 : M.activeText) === i.roleName) && N.value.push({ val: !0, activeText: i.roleName });
83
- }), oe();
79
+ T.value[0] = i, T.value[1] = s, o.value = u, f.odata.getPersonal({ dismissed: "false" }).then((x) => {
80
+ var S;
81
+ D.value.length === 0 && (D.value = [(S = x.find((p) => p.employeeName === f.fullName && p.dismissalDate.length === 0)) == null ? void 0 : S.divisionName]), x.forEach((p, Z) => {
82
+ oe.value.some((Y) => p.dismissalDate.length > 0 && new Date(p.dismissalDate) < new Date(y.value) || (Y == null ? void 0 : Y.value) === p.divisionName) || oe.value.push({ value: p.divisionName, label: p.divisionName, key: Z }), D.value.includes(p.divisionName) && !A.value.some((Y) => (Y == null ? void 0 : Y.activeText) === p.roleName) && A.value.push({ val: !0, activeText: p.roleName });
83
+ }), ie();
84
84
  });
85
- }, Ee = Fe(() => !n.value.some((l) => l.contHour !== R.value)), he = (l, e) => {
86
- var a, C, E;
87
- const u = new Date(p.value), r = `${u.getFullYear()}-${(u.getMonth() + 1).toString().padStart(2, "0")}-${l.toString().padStart(2, "0")}`, v = (a = n.value[e]) == null ? void 0 : a.days.findIndex(($) => $.day === r);
88
- return e === -1 || v === -1 ? "" : ((C = n.value[e].days[v]) == null ? void 0 : C.tips) + `
89
- ` + ((E = n.value[e].days[v]) == null ? void 0 : E.time);
90
- }, oe = () => {
91
- n.value = [], X.value = [], q.value = [], f.odata.personal.forEach((l) => {
92
- if (x.value.includes(l.divisionName) && N.value.some((e) => e.val && e.activeText === l.roleName) && (l.dismissalDate.length === 0 || new Date(l.dismissalDate) > new Date(p.value))) {
93
- let e = se(l.employeeName);
85
+ }, Me = Ye(() => !n.value.some((l) => l.contHour !== T.value[0] || l.contHour !== T.value[1])), ce = (l, e) => {
86
+ var a, $, N;
87
+ const u = new Date(y.value), i = `${u.getFullYear()}-${(u.getMonth() + 1).toString().padStart(2, "0")}-${l.toString().padStart(2, "0")}`, s = (a = n.value[e]) == null ? void 0 : a.days.findIndex((B) => B.day === i);
88
+ return e === -1 || s === -1 ? "" : (($ = n.value[e].days[s]) == null ? void 0 : $.tips) + `
89
+ ` + ((N = n.value[e].days[s]) == null ? void 0 : N.time);
90
+ }, ie = () => {
91
+ n.value = [], ee.value = [], W.value = [], f.odata.personal.forEach((l) => {
92
+ if (D.value.includes(l.divisionName) && A.value.some((e) => e.val && e.activeText === l.roleName) && (l.dismissalDate.length === 0 || new Date(l.dismissalDate) > new Date(y.value))) {
93
+ let e = ve(l.employeeName);
94
94
  n.value.push({ name: e + " (" + l.roleName + ")", days: [], contHour: 0, code: l.employeeKey, id: !1 });
95
95
  }
96
96
  }), n.value.sort((l, e) => l.name < e.name ? -1 : l.name > e.name ? 1 : 0), n.value.forEach((l, e) => {
97
- l.ids = e, X.value.push(l.code);
98
- }), f.workSchedule.getUsersYear({ code: X.value, year: new Date(p.value).getFullYear() }).then((l) => {
97
+ l.ids = e, ee.value.push(l.code);
98
+ }), f.workSchedule.getUsersYear({ code: ee.value, year: new Date(y.value).getFullYear() }).then((l) => {
99
99
  l.forEach((e) => {
100
- e.dateStart && q.value.push({ code: e.code, dateStart: e.dateStart, dateEnd: e.dateEnd });
101
- }), Me(), U.value = !1;
100
+ e.dateStart && W.value.push({ code: e.code, dateStart: e.dateStart, dateEnd: e.dateEnd });
101
+ }), Ne(), q.value = !1;
102
102
  });
103
- }, Me = () => {
104
- f.workSchedule.getWorkSchedule({ code: X.value, date: L(new Date(p.value), "{Y}-{m}-{dd}") }).then(
103
+ }, Ne = () => {
104
+ f.workSchedule.getWorkSchedule({ code: ee.value, date: J(new Date(y.value), "{Y}-{m}-{dd}") }).then(
105
105
  (l) => {
106
106
  l.forEach((e, u) => {
107
107
  e !== null && (n.value[u].days = e.data.days, n.value[u].id = e.id);
108
- }), O();
108
+ }), G();
109
109
  }
110
110
  );
111
- }, O = () => {
111
+ }, G = () => {
112
112
  n.value.forEach((l) => {
113
113
  l.contHour = l.days.reduce((e, u) => e + u.time, 0);
114
114
  });
115
- }, Ne = (l) => {
116
- n.value[l].days = [], O();
117
115
  }, Te = (l) => {
118
- switch (te.value) {
116
+ n.value[l].days = [], G();
117
+ }, Ae = (l) => {
118
+ switch (ue.value) {
119
119
  case "5":
120
- for (let e = W.value; e <= o.value.length; e++)
121
- o.value[e - 1].holidays === "" && B(e, l, !0), o.value[e - 1].holidays === "preholiday" && (y.value -= 1, B(e, l, !0), y.value += 1);
120
+ for (let e = j.value; e <= o.value.length; e++)
121
+ o.value[e - 1].holidays === "" && F(e, l, !0), o.value[e - 1].holidays === "preholiday" && (w.value -= 1, F(e, l, !0), w.value += 1);
122
122
  break;
123
123
  case "2x2":
124
- for (let e = W.value; e <= o.value.length; e += 4)
125
- B(e, l, !0), e + 1 <= o.value.length && B(e + 1, l, !0);
124
+ for (let e = j.value; e <= o.value.length; e += 4)
125
+ F(e, l, !0), e + 1 <= o.value.length && F(e + 1, l, !0);
126
126
  break;
127
127
  case "2x5":
128
- for (let e = W.value; e <= o.value.length; e += 7)
128
+ for (let e = j.value; e <= o.value.length; e += 7)
129
129
  for (let u = e; u < e + 5 && u <= o.value.length; u++)
130
- o.value[u - 1].holidays === "preholiday" ? (y.value -= 1, B(u, l, !0), y.value += 1) : B(u, l, !0);
130
+ o.value[u - 1].holidays === "preholiday" ? (w.value -= 1, F(u, l, !0), w.value += 1) : F(u, l, !0);
131
131
  break;
132
132
  }
133
- }, B = (l, e, u = !1) => {
134
- const { date: r, ind: v } = _(l, e);
135
- v === -1 ? (n.value[e].days.push({
136
- day: r,
137
- time: y.value,
138
- tips: `(${k.value}:00 - ${y.value >= 22 ? k.value + y.value + 2 : k.value + y.value + 1}:00)`
139
- }), O()) : u || (y.value = n.value[e].days[v].time, k.value = parseInt(n.value[e].days[v].tips.slice(1, -12)));
140
- }, Ae = (l, e) => {
141
- const { ind: u } = _(l, e);
142
- n.value[e].days.splice(u, 1), O(), document.querySelector(".app-main").click();
143
- }, ce = (l, e) => {
144
- const { date: u, ind: r } = _(l, e);
145
- n.value[e].days[r] = {
133
+ }, F = (l, e, u = !1) => {
134
+ const { date: i, ind: s } = le(l, e);
135
+ s === -1 ? (n.value[e].days.push({
136
+ day: i,
137
+ time: w.value,
138
+ tips: `(${C.value}:00 - ${w.value >= 22 ? C.value + w.value + 2 : C.value + w.value + 1}:00)`
139
+ }), G()) : u || (w.value = n.value[e].days[s].time, C.value = parseInt(n.value[e].days[s].tips.slice(1, -12)));
140
+ }, Be = (l, e) => {
141
+ const { ind: u } = le(l, e);
142
+ n.value[e].days.splice(u, 1), G(), document.querySelector(".app-main").click();
143
+ }, pe = (l, e) => {
144
+ const { date: u, ind: i } = le(l, e);
145
+ n.value[e].days[i] = {
146
146
  day: u,
147
- time: y.value,
148
- tips: `(${k.value}:00 - ${y.value >= 22 ? k.value + y.value + 2 : k.value + y.value + 1}:00)`
149
- }, O();
150
- }, _ = (l, e) => {
151
- var v;
152
- const u = L(new Date(p.value).setDate(l), "{Y}-{m}-{dd}"), r = (v = n.value[e]) == null ? void 0 : v.days.findIndex((a) => a.day === u);
153
- return { date: u, ind: r };
154
- }, Be = async () => {
155
- var b;
156
- Q.value = !0;
157
- const l = new qe.Workbook(), e = l.addWorksheet(J(p.value, "month"), { pageSetup: { paperSize: 9, orientation: "landscape", fitToPage: !0 } }), u = { vertical: "middle", horizontal: "center" }, r = { top: { style: "thin" }, left: { style: "thin" }, bottom: { style: "thin" }, right: { style: "thin" } }, v = { vertical: "middle", horizontal: "center", wrapText: !0 };
158
- e.mergeCells(`A1:${V("A1", o.value.length + 6)}1`), e.mergeCells(`A2:${V("A2", o.value.length + 6)}2`), e.mergeCells("A3:A4"), e.mergeCells(`B3:${V("B3", o.value.length)}3`), e.mergeCells(`${V("B3", o.value.length + 1)}3:${V("B3", o.value.length + 2)}3`), e.mergeCells(`${V("B3", o.value.length + 3)}3:${V("B4", o.value.length + 3)}4`), e.mergeCells(`${V("B3", o.value.length + 4)}3:${V("B4", o.value.length + 4)}4`), e.mergeCells(`${V("B3", o.value.length + 5)}3:${V("B4", o.value.length + 5)}4`), e.getCell("A1").value = d("workSchedule.firm"), e.getCell("A2").value = d("workSchedule.title", { name: x.value[0] }) + J(p.value, "month") + ` ${new Date(p.value).getFullYear()}`, e.getCell("A3").value = d("workSchedule.month"), e.getCell("B3").value = d("workSchedule.numbersMonth"), e.getCell(3, o.value.length + 2).value = d("workSchedule.onSchedule"), e.getCell(3, o.value.length + 4).value = d("workSchedule.acquainted"), e.getCell(3, o.value.length + 5).value = d("workSchedule.decryption"), e.getCell(3, o.value.length + 6).value = d("workSchedule.date"), e.getCell(4, o.value.length + 2).value = d("workSchedule.days"), e.getCell(4, o.value.length + 3).value = `${d("workSchedule.hours")} (${R.value})`;
159
- for (let i = 2; i <= o.value.length + 1; i++)
160
- e.getCell(4, i).value = o.value[i - 2].weekday + `
161
- ` + (i - 1), e.getColumn(i).width = 6, e.getColumn(i).alignment = v, e.getCell(4, i).border = r;
162
- e.getRow(1).height = 40, e.getRow(2).height = 30, e.getRow(3).height = 20, e.getColumn(1).width = 15, e.getColumn(o.value.length + 2).width = 5, e.getColumn(o.value.length + 3).width = 6, e.getColumn(o.value.length + 4).width = 13, e.getColumn(o.value.length + 5).width = 13, e.getColumn(o.value.length + 6).width = 13, e.getColumn(1).alignment = v, e.getCell("A2").alignment = u, e.getCell("A3").alignment = u, e.getCell("B3").alignment = u, e.getCell(3, o.value.length + 2).alignment = u, e.getColumn(o.value.length + 2).alignment = v, e.getColumn(o.value.length + 3).alignment = v, e.getColumn(o.value.length + 4).alignment = v, e.getColumn(o.value.length + 5).alignment = v, e.getColumn(o.value.length + 6).alignment = u, e.getCell("A3").border = r, e.getCell("B3").border = r, e.getCell(3, o.value.length + 2).border = r, e.getCell(4, o.value.length + 2).border = r, e.getCell(3, o.value.length + 4).border = r, e.getCell(3, o.value.length + 5).border = r, e.getCell(3, o.value.length + 6).border = r, e.getCell(4, o.value.length + 3).border = r;
147
+ time: w.value,
148
+ tips: `(${C.value}:00 - ${w.value >= 22 ? C.value + w.value + 2 : C.value + w.value + 1}:00)`
149
+ }, G();
150
+ }, le = (l, e) => {
151
+ var s;
152
+ const u = J(new Date(y.value).setDate(l), "{Y}-{m}-{dd}"), i = (s = n.value[e]) == null ? void 0 : s.days.findIndex((a) => a.day === u);
153
+ return { date: u, ind: i };
154
+ }, ze = async () => {
155
+ var L;
156
+ X.value = !0;
157
+ const l = new Re.Workbook(), e = l.addWorksheet(K(y.value, "month"), { pageSetup: { paperSize: 9, orientation: "landscape", fitToPage: !0 } }), u = { vertical: "middle", horizontal: "center" }, i = { top: { style: "thin" }, left: { style: "thin" }, bottom: { style: "thin" }, right: { style: "thin" } }, s = { vertical: "middle", horizontal: "center", wrapText: !0 };
158
+ e.mergeCells(`A1:${E("A1", o.value.length + 6)}1`), e.mergeCells(`A2:${E("A2", o.value.length + 6)}2`), e.mergeCells("A3:A4"), e.mergeCells(`B3:${E("B3", o.value.length)}3`), e.mergeCells(`${E("B3", o.value.length + 1)}3:${E("B3", o.value.length + 2)}3`), e.mergeCells(`${E("B3", o.value.length + 3)}3:${E("B4", o.value.length + 3)}4`), e.mergeCells(`${E("B3", o.value.length + 4)}3:${E("B4", o.value.length + 4)}4`), e.mergeCells(`${E("B3", o.value.length + 5)}3:${E("B4", o.value.length + 5)}4`), e.getCell("A1").value = d("workSchedule.firm"), e.getCell("A2").value = d("workSchedule.title", { name: D.value[0] }) + K(y.value, "month") + ` ${new Date(y.value).getFullYear()}`, e.getCell("A3").value = d("workSchedule.month"), e.getCell("B3").value = d("workSchedule.numbersMonth"), e.getCell(3, o.value.length + 2).value = d("workSchedule.onSchedule"), e.getCell(3, o.value.length + 4).value = d("workSchedule.acquainted"), e.getCell(3, o.value.length + 5).value = d("workSchedule.decryption"), e.getCell(3, o.value.length + 6).value = d("workSchedule.date"), e.getCell(4, o.value.length + 2).value = d("workSchedule.days"), e.getCell(4, o.value.length + 3).value = `${d("workSchedule.hours")} (${T.value[0]})`;
159
+ for (let m = 2; m <= o.value.length + 1; m++)
160
+ e.getCell(4, m).value = o.value[m - 2].weekday + `
161
+ ` + (m - 1), e.getColumn(m).width = 6, e.getColumn(m).alignment = s, e.getCell(4, m).border = i;
162
+ e.getRow(1).height = 40, e.getRow(2).height = 30, e.getRow(3).height = 20, e.getColumn(1).width = 15, e.getColumn(o.value.length + 2).width = 5, e.getColumn(o.value.length + 3).width = 6, e.getColumn(o.value.length + 4).width = 13, e.getColumn(o.value.length + 5).width = 13, e.getColumn(o.value.length + 6).width = 13, e.getColumn(1).alignment = s, e.getCell("A2").alignment = u, e.getCell("A3").alignment = u, e.getCell("B3").alignment = u, e.getCell(3, o.value.length + 2).alignment = u, e.getColumn(o.value.length + 2).alignment = s, e.getColumn(o.value.length + 3).alignment = s, e.getColumn(o.value.length + 4).alignment = s, e.getColumn(o.value.length + 5).alignment = s, e.getColumn(o.value.length + 6).alignment = u, e.getCell("A3").border = i, e.getCell("B3").border = i, e.getCell(3, o.value.length + 2).border = i, e.getCell(4, o.value.length + 2).border = i, e.getCell(3, o.value.length + 4).border = i, e.getCell(3, o.value.length + 5).border = i, e.getCell(3, o.value.length + 6).border = i, e.getCell(4, o.value.length + 3).border = i;
163
163
  let a = 0;
164
- for (const i of n.value) {
165
- let H = [i.name];
166
- for (let G = 1; G <= o.value.length; G++) {
167
- const { ind: de } = _(G, a);
168
- de !== -1 ? H[G] = `${i.days[de].time} ${i.days[de].tips}` : H[G] = " ";
164
+ for (const m of n.value) {
165
+ let x = [m.name];
166
+ for (let p = 1; p <= o.value.length; p++) {
167
+ const { ind: Z } = le(p, a);
168
+ Z !== -1 ? x[p] = `${m.days[Z].time} ${m.days[Z].tips}` : x[p] = " ";
169
169
  }
170
- H.push(((b = i.days) == null ? void 0 : b.length) || " ", i.contHour || 0);
171
- const M = e.addRow(H);
172
- M.border = r, a++;
170
+ x.push(((L = m.days) == null ? void 0 : L.length) || " ", m.contHour || 0);
171
+ const S = e.addRow(x);
172
+ S.border = i, a++;
173
173
  }
174
- let C = "Щербина Е. В.";
175
- f.odata.personal.forEach((i) => {
176
- i.roleName === "Начальник отдела правовой и кадровой работы" && (i.dismissalDate.length === 0 || new Date(i.dismissalDate) > new Date(thisMonth.value)) && (C = i.employeeName);
177
- }), e.mergeCells(`A${n.value.length + 6}:P${n.value.length + 6}`), e.mergeCells(`Q${n.value.length + 6}:AG${n.value.length + 6}`), e.mergeCells(`B${n.value.length + 8}:E${n.value.length + 8}`), e.mergeCells(`F${n.value.length + 8}:L${n.value.length + 8}`), e.mergeCells(`M${n.value.length + 8}:P${n.value.length + 8}`), e.mergeCells(`S${n.value.length + 8}:V${n.value.length + 8}`), e.mergeCells(`W${n.value.length + 8}:AC${n.value.length + 8}`), e.mergeCells(`AD${n.value.length + 8}:AG${n.value.length + 8}`), e.mergeCells(`Z${n.value.length + 9}:AA${n.value.length + 9}`), e.getCell(`A${n.value.length + 6}`).value = d("workSchedule.byInitials"), e.getCell(`Q${n.value.length + 6}`).value = d("workSchedule.supervisorHR"), e.getCell(`B${n.value.length + 8}`).value = d("workSchedule.compiled") + ":", e.getCell(`S${n.value.length + 8}`).value = d("workSchedule.approved") + ":", e.getCell(`M${n.value.length + 8}`).value = se(f.fullName), e.getCell(`AD${n.value.length + 8}`).value = se(C), e.getCell(`Z${n.value.length + 9}`).value = d("workSchedule.printPlace"), e.getCell(`A${n.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`Q${n.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`B${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`F${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`M${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`AD${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`Z${n.value.length + 9}`).alignment = u, e.getCell(`F${n.value.length + 8}`).border = { bottom: { style: "thin" } }, e.getCell(`W${n.value.length + 8}`).border = { bottom: { style: "thin" } };
178
- const E = "export_" + L(Date.now(), "{dd}.{m}.{Y}") + ".xlsx", $ = await l.xlsx.writeBuffer();
179
- Ie(new Blob([$]), E), Q.value = !1;
180
- }, ze = async () => {
181
- K.value || f.workSchedule.addWorkSchedule({ data: n.value, date: L(new Date(p.value), "{Y}-{m}-{dd}"), group: x.value[0] }).then((l) => K.value = l);
174
+ let $ = "Щербина Е. В.";
175
+ f.odata.personal.forEach((m) => {
176
+ m.roleName === "Начальник отдела правовой и кадровой работы" && (m.dismissalDate.length === 0 || new Date(m.dismissalDate) > new Date(thisMonth.value)) && ($ = m.employeeName);
177
+ }), e.mergeCells(`A${n.value.length + 6}:P${n.value.length + 6}`), e.mergeCells(`Q${n.value.length + 6}:AG${n.value.length + 6}`), e.mergeCells(`B${n.value.length + 8}:E${n.value.length + 8}`), e.mergeCells(`F${n.value.length + 8}:L${n.value.length + 8}`), e.mergeCells(`M${n.value.length + 8}:P${n.value.length + 8}`), e.mergeCells(`S${n.value.length + 8}:V${n.value.length + 8}`), e.mergeCells(`W${n.value.length + 8}:AC${n.value.length + 8}`), e.mergeCells(`AD${n.value.length + 8}:AG${n.value.length + 8}`), e.mergeCells(`Z${n.value.length + 9}:AA${n.value.length + 9}`), e.getCell(`A${n.value.length + 6}`).value = d("workSchedule.byInitials"), e.getCell(`Q${n.value.length + 6}`).value = d("workSchedule.supervisorHR"), e.getCell(`B${n.value.length + 8}`).value = d("workSchedule.compiled") + ":", e.getCell(`S${n.value.length + 8}`).value = d("workSchedule.approved") + ":", e.getCell(`M${n.value.length + 8}`).value = ve(f.fullName), e.getCell(`AD${n.value.length + 8}`).value = ve($), e.getCell(`Z${n.value.length + 9}`).value = d("workSchedule.printPlace"), e.getCell(`A${n.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`Q${n.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`B${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`F${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`M${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`AD${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`Z${n.value.length + 9}`).alignment = u, e.getCell(`F${n.value.length + 8}`).border = { bottom: { style: "thin" } }, e.getCell(`W${n.value.length + 8}`).border = { bottom: { style: "thin" } };
178
+ const N = "export_" + J(Date.now(), "{dd}.{m}.{Y}") + ".xlsx", B = await l.xlsx.writeBuffer();
179
+ qe(new Blob([B]), N), X.value = !1;
180
+ }, Fe = async () => {
181
+ _.value || f.workSchedule.addWorkSchedule({ data: n.value, date: J(new Date(y.value), "{Y}-{m}-{dd}"), group: D.value[0] }).then((l) => _.value = l);
182
182
  };
183
- return (((ye = f.query) == null ? void 0 : ye.group) ?? !1) && (x.value[0] = (we = f.query) == null ? void 0 : we.group), (((ke = f.query) == null ? void 0 : ke.date) ?? !1) && (p.value = /* @__PURE__ */ new Date(((Ce = f.query) == null ? void 0 : Ce.date) + "T00:00:01")), Re().then((l) => {
184
- A.value = l, me();
183
+ return (((we = f.query) == null ? void 0 : we.group) ?? !1) && (D.value[0] = (ke = f.query) == null ? void 0 : ke.group), (((Ce = f.query) == null ? void 0 : Ce.date) ?? !1) && (y.value = /* @__PURE__ */ new Date((($e = f.query) == null ? void 0 : $e.date) + "T00:00:01")), We().then((l) => {
184
+ M.value = l, he();
185
185
  }), (l, e) => {
186
- const u = Se("el-date-picker"), r = Se("svg-icon"), v = Ye("loading");
187
- return S(), z("div", Xe, [
188
- w("div", _e, [
189
- I.checkEdit ? (S(), F(t(je), {
186
+ const u = be("el-date-picker"), i = be("svg-icon"), s = Ue("loading");
187
+ return b(), U("div", _e, [
188
+ k("div", el, [
189
+ R.checkEdit ? (b(), H(t(Pe), {
190
190
  key: 0,
191
- modelValue: x.value,
192
- "onUpdate:modelValue": e[0] || (e[0] = (a) => x.value = a),
191
+ modelValue: D.value,
192
+ "onUpdate:modelValue": e[0] || (e[0] = (a) => D.value = a),
193
193
  multiple: "",
194
194
  "collapse-tags": "",
195
195
  "collapse-tags-tooltip": "",
196
196
  placeholder: "Select",
197
197
  style: { width: "240px" }
198
198
  }, {
199
- default: m(() => [
200
- (S(!0), z(ie, null, re(ne.value, (a) => (S(), F(t(Pe), {
199
+ default: g(() => [
200
+ (b(!0), U(re, null, se(oe.value, (a) => (b(), H(t(Oe), {
201
201
  key: a.key,
202
202
  label: a.label,
203
203
  value: a.value
204
204
  }, null, 8, ["label", "value"]))), 128))
205
205
  ]),
206
206
  _: 1
207
- }, 8, ["modelValue"])) : ee("", !0),
208
- I.checkEdit ? (S(), F(t(T), {
207
+ }, 8, ["modelValue"])) : ae("", !0),
208
+ R.checkEdit ? (b(), H(t(z), {
209
209
  key: 1,
210
210
  plain: "",
211
- onClick: e[1] || (e[1] = (a) => U.value = !0)
211
+ onClick: e[1] || (e[1] = (a) => q.value = !0)
212
212
  }, {
213
- default: m(() => [
214
- D(h(t(d)("workSchedule.jobTitle")), 1)
213
+ default: g(() => [
214
+ V(h(t(d)("workSchedule.jobTitle")), 1)
215
215
  ]),
216
216
  _: 1
217
- })) : ee("", !0),
218
- s(u, {
219
- modelValue: le.value,
220
- "onUpdate:modelValue": e[2] || (e[2] = (a) => le.value = a),
217
+ })) : ae("", !0),
218
+ r(u, {
219
+ modelValue: te.value,
220
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => te.value = a),
221
221
  type: "month",
222
222
  placeholder: "Выберите месяц",
223
223
  format: "MMM",
224
224
  "value-format": "M"
225
225
  }, null, 8, ["modelValue"]),
226
- e[21] || (e[21] = w("div", { class: "expander" }, null, -1)),
227
- s(t(ve), {
228
- modelValue: P.value,
229
- "onUpdate:modelValue": e[3] || (e[3] = (a) => P.value = a),
226
+ e[21] || (e[21] = k("div", { class: "expander" }, null, -1)),
227
+ r(t(ge), {
228
+ modelValue: O.value,
229
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => O.value = a),
230
230
  "active-text": l.$t("bids.currentHeight"),
231
231
  "active-value": "100%",
232
232
  "inactive-value": "calc(100vh - var(--el-component-size)*5 - var(--el-main-padding)*2 - var(--header-height))"
233
233
  }, null, 8, ["modelValue", "active-text"]),
234
- s(t(ve), {
235
- modelValue: ae.value,
236
- "onUpdate:modelValue": e[4] || (e[4] = (a) => ae.value = a),
234
+ r(t(ge), {
235
+ modelValue: ne.value,
236
+ "onUpdate:modelValue": e[4] || (e[4] = (a) => ne.value = a),
237
237
  "active-text": "Отпуска",
238
238
  "active-value": !0,
239
239
  "inactive-value": !1
240
240
  }, null, 8, ["modelValue"])
241
241
  ]),
242
- s(t(Oe), {
242
+ r(t(Ge), {
243
243
  id: "printTable",
244
244
  data: n.value,
245
245
  style: { width: "100%" },
246
- "max-height": P.value,
246
+ "max-height": O.value,
247
247
  size: "small",
248
248
  align: "center",
249
- onCellClick: De,
249
+ onCellClick: Ve,
250
250
  "empty-text": t(d)("workSchedule.emptyText"),
251
- "cell-class-name": Ve
251
+ "cell-class-name": Ee
252
252
  }, {
253
- default: m(() => [
254
- s(t(Y), {
255
- label: t(d)("workSchedule.title", { name: x.value[0] }) + t(J)(p.value, "month") + ` ${new Date(p.value).getFullYear()}`,
253
+ default: g(() => [
254
+ r(t(I), {
255
+ label: t(d)("workSchedule.title", { name: D.value[0] }) + t(K)(y.value, "month") + ` ${new Date(y.value).getFullYear()}`,
256
256
  align: "center",
257
257
  height: "34"
258
258
  }, {
259
- default: m(() => [
260
- s(t(Y), {
259
+ default: g(() => [
260
+ r(t(I), {
261
261
  label: t(d)("workSchedule.month"),
262
262
  width: "180",
263
263
  align: "center",
264
- fixed: P.value !== "100%"
264
+ fixed: O.value !== "100%"
265
265
  }, {
266
- default: m((a) => [
267
- w("div", el, h(n.value[a.$index].name), 1)
266
+ default: g((a) => [
267
+ k("div", ll, h(n.value[a.$index].name), 1)
268
268
  ]),
269
269
  _: 1
270
270
  }, 8, ["label", "fixed"]),
271
- s(t(Y), {
271
+ r(t(I), {
272
272
  label: t(d)("workSchedule.numbersMonth"),
273
273
  align: "center"
274
274
  }, {
275
- default: m(() => [
276
- (S(!0), z(ie, null, re(o.value, (a) => (S(), F(t(Y), {
277
- key: `${p.value.getTime()}-${a.day}`,
275
+ default: g(() => [
276
+ (b(!0), U(re, null, se(o.value, (a) => (b(), H(t(I), {
277
+ key: `${y.value.getTime()}-${a.day}`,
278
278
  width: "46",
279
279
  "class-name": a.holidays,
280
280
  align: "center",
@@ -282,36 +282,36 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
282
282
  ` + a.day.toString(),
283
283
  prop: "vacation"
284
284
  }, {
285
- default: m((C) => [
286
- w("div", ll, h(he(a.day, C.$index) || " "), 1)
285
+ default: g(($) => [
286
+ k("div", al, h(ce(a.day, $.$index) || " "), 1)
287
287
  ]),
288
288
  _: 2
289
289
  }, 1032, ["class-name", "label"]))), 128))
290
290
  ]),
291
291
  _: 1
292
292
  }, 8, ["label"]),
293
- s(t(Y), {
293
+ r(t(I), {
294
294
  label: t(d)("workSchedule.onSchedule"),
295
295
  align: "center",
296
- fixed: P.value !== "100%" ? "right" : !1
296
+ fixed: O.value !== "100%" ? "right" : !1
297
297
  }, {
298
- default: m(() => [
299
- s(t(Y), {
298
+ default: g(() => [
299
+ r(t(I), {
300
300
  label: t(d)("workSchedule.days"),
301
301
  align: "center"
302
302
  }, {
303
- default: m((a) => [
304
- D(h(n.value[a.$index].days.length || 0), 1)
303
+ default: g((a) => [
304
+ V(h(n.value[a.$index].days.length || 0), 1)
305
305
  ]),
306
306
  _: 1
307
307
  }, 8, ["label"]),
308
- s(t(Y), {
309
- label: `${t(d)("workSchedule.hours")} ( ${R.value} )`,
308
+ r(t(I), {
309
+ label: `${t(d)("workSchedule.hours")} ( ${T.value[0]} / ${T.value[1]} )`,
310
310
  align: "center"
311
311
  }, {
312
- default: m((a) => [
313
- w("div", {
314
- style: He(`color: ${R.value === a.row.contHour ? "green" : "red"};`)
312
+ default: g((a) => [
313
+ k("div", {
314
+ style: Ie(`color: ${T.value === a.row.contHour ? "green" : "red"};`)
315
315
  }, h(a.row.contHour), 5)
316
316
  ]),
317
317
  _: 1
@@ -325,75 +325,75 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
325
325
  ]),
326
326
  _: 1
327
327
  }, 8, ["data", "max-height", "empty-text"]),
328
- Ee.value && I.checkEdit ? (S(), z("div", al, [
329
- D(h(t(d)("workSchedule.chartsFilled")) + ": ", 1),
330
- K.value ? ee("", !0) : (S(), F(t(T), {
328
+ Me.value && R.checkEdit ? (b(), U("div", tl, [
329
+ V(h(t(d)("workSchedule.chartsFilled")) + ": ", 1),
330
+ _.value ? ae("", !0) : (b(), H(t(z), {
331
331
  key: 0,
332
332
  type: "primary",
333
- onClick: ze
333
+ onClick: Fe
334
334
  }, {
335
- default: m(() => [
336
- D(h(t(d)("workSchedule.confirm")), 1)
335
+ default: g(() => [
336
+ V(h(t(d)("workSchedule.confirm")), 1)
337
337
  ]),
338
338
  _: 1
339
339
  })),
340
- e[22] || (e[22] = D()),
341
- w("span", null, h(I.fullName), 1)
342
- ])) : ee("", !0),
343
- Ue((S(), F(t(T), {
344
- disabled: Q.value,
340
+ e[22] || (e[22] = V()),
341
+ k("span", null, h(R.fullName), 1)
342
+ ])) : ae("", !0),
343
+ He((b(), H(t(z), {
344
+ disabled: X.value,
345
345
  plain: "",
346
- onClick: Be,
346
+ onClick: ze,
347
347
  style: { "margin-top": ".5rem" }
348
348
  }, {
349
- default: m(() => [
350
- D(h(t(d)("workSchedule.exportExcel")), 1)
349
+ default: g(() => [
350
+ V(h(t(d)("workSchedule.exportExcel")), 1)
351
351
  ]),
352
352
  _: 1
353
353
  }, 8, ["disabled"])), [
354
- [v, Q.value]
354
+ [s, X.value]
355
355
  ]),
356
- s(t(Ge), {
356
+ r(t(Le), {
357
357
  title: t(d)("workSchedule.jobTitle"),
358
- modelValue: U.value,
359
- "onUpdate:modelValue": e[7] || (e[7] = (a) => U.value = a),
358
+ modelValue: q.value,
359
+ "onUpdate:modelValue": e[7] || (e[7] = (a) => q.value = a),
360
360
  width: "400px"
361
361
  }, {
362
- footer: m(() => [
363
- s(t(T), {
364
- onClick: e[5] || (e[5] = (a) => U.value = !1),
362
+ footer: g(() => [
363
+ r(t(z), {
364
+ onClick: e[5] || (e[5] = (a) => q.value = !1),
365
365
  size: "default"
366
366
  }, {
367
- default: m(() => [
368
- D(h(l.$t("workSchedule.cancel")), 1)
367
+ default: g(() => [
368
+ V(h(l.$t("workSchedule.cancel")), 1)
369
369
  ]),
370
370
  _: 1
371
371
  }),
372
- s(t(T), {
372
+ r(t(z), {
373
373
  size: "default",
374
374
  type: "primary",
375
375
  onClick: e[6] || (e[6] = (a) => {
376
- oe(), U.value = !1;
376
+ ie(), q.value = !1;
377
377
  })
378
378
  }, {
379
- default: m(() => [
380
- D(h(l.$t("workSchedule.select")), 1)
379
+ default: g(() => [
380
+ V(h(l.$t("workSchedule.select")), 1)
381
381
  ]),
382
382
  _: 1
383
383
  })
384
384
  ]),
385
- default: m(() => [
386
- s(t(Le), {
385
+ default: g(() => [
386
+ r(t(Ze), {
387
387
  ref: "dialogForm",
388
- model: N.value,
388
+ model: A.value,
389
389
  autocomplete: "on"
390
390
  }, {
391
- default: m(() => [
392
- (S(!0), z(ie, null, re(N.value, (a) => (S(), F(t(Ze), null, {
393
- default: m(() => [
394
- s(t(ve), {
391
+ default: g(() => [
392
+ (b(!0), U(re, null, se(A.value, (a) => (b(), H(t(Je), null, {
393
+ default: g(() => [
394
+ r(t(ge), {
395
395
  modelValue: a.val,
396
- "onUpdate:modelValue": (C) => a.val = C,
396
+ "onUpdate:modelValue": ($) => a.val = $,
397
397
  "active-text": a.activeText
398
398
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-text"])
399
399
  ]),
@@ -405,116 +405,116 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
405
405
  ]),
406
406
  _: 1
407
407
  }, 8, ["title", "modelValue"]),
408
- s(t(Qe), {
409
- show: j.value,
410
- "onUpdate:show": e[20] || (e[20] = (a) => j.value = a),
411
- options: ue.value
408
+ r(t(Ke), {
409
+ show: P.value,
410
+ "onUpdate:show": e[20] || (e[20] = (a) => P.value = a),
411
+ options: de.value
412
412
  }, {
413
- default: m(() => [
414
- w("div", {
413
+ default: g(() => [
414
+ k("div", {
415
415
  class: "mx-context-menu-item",
416
- onClick: e[8] || (e[8] = (a) => j.value = !1)
416
+ onClick: e[8] || (e[8] = (a) => P.value = !1)
417
417
  }, [
418
- w("span", tl, h(c.value.name), 1),
419
- e[23] || (e[23] = w("div", { class: "expander" }, null, -1)),
420
- s(r, { "icon-class": "cross" })
418
+ k("span", nl, h(c.value.name), 1),
419
+ e[23] || (e[23] = k("div", { class: "expander" }, null, -1)),
420
+ r(i, { "icon-class": "cross" })
421
421
  ]),
422
- s(t(Ke)),
423
- c.value.level === 2 ? (S(), z("div", nl, [
424
- s(t(Je), {
425
- modelValue: te.value,
426
- "onUpdate:modelValue": e[9] || (e[9] = (a) => te.value = a),
422
+ r(t(Xe)),
423
+ c.value.level === 2 ? (b(), U("div", ul, [
424
+ r(t(Qe), {
425
+ modelValue: ue.value,
426
+ "onUpdate:modelValue": e[9] || (e[9] = (a) => ue.value = a),
427
427
  size: "small"
428
428
  }, {
429
- default: m(() => [
430
- s(t(ge), {
429
+ default: g(() => [
430
+ r(t(me), {
431
431
  label: t(d)("workSchedule.Days5"),
432
432
  value: "5"
433
433
  }, null, 8, ["label"]),
434
- s(t(ge), {
434
+ r(t(me), {
435
435
  label: "2 Х 2",
436
436
  value: "2x2"
437
437
  }),
438
- s(t(ge), {
438
+ r(t(me), {
439
439
  label: "2 Х 5",
440
440
  value: "2x5"
441
441
  })
442
442
  ]),
443
443
  _: 1
444
444
  }, 8, ["modelValue"]),
445
- e[24] || (e[24] = w("br", null, null, -1)),
446
- w("span", null, h(t(d)("workSchedule.fromDate")) + ":", 1),
447
- s(t(Z), {
448
- modelValue: W.value,
449
- "onUpdate:modelValue": e[10] || (e[10] = (a) => W.value = a),
445
+ e[24] || (e[24] = k("br", null, null, -1)),
446
+ k("span", null, h(t(d)("workSchedule.fromDate")) + ":", 1),
447
+ r(t(Q), {
448
+ modelValue: j.value,
449
+ "onUpdate:modelValue": e[10] || (e[10] = (a) => j.value = a),
450
450
  step: 1,
451
451
  min: 1,
452
452
  max: o.value.length
453
453
  }, null, 8, ["modelValue", "max"]),
454
- w("span", null, h(t(d)("workSchedule.with")) + ":", 1),
455
- s(t(Z), {
456
- modelValue: k.value,
457
- "onUpdate:modelValue": e[11] || (e[11] = (a) => k.value = a),
454
+ k("span", null, h(t(d)("workSchedule.with")) + ":", 1),
455
+ r(t(Q), {
456
+ modelValue: C.value,
457
+ "onUpdate:modelValue": e[11] || (e[11] = (a) => C.value = a),
458
458
  step: 1,
459
459
  min: 0,
460
460
  max: 19
461
461
  }, null, 8, ["modelValue"]),
462
- w("span", null, h(t(d)("workSchedule.duration")) + ":", 1),
463
- s(t(Z), {
464
- modelValue: y.value,
465
- "onUpdate:modelValue": e[12] || (e[12] = (a) => y.value = a),
462
+ k("span", null, h(t(d)("workSchedule.duration")) + ":", 1),
463
+ r(t(Q), {
464
+ modelValue: w.value,
465
+ "onUpdate:modelValue": e[12] || (e[12] = (a) => w.value = a),
466
466
  step: 1,
467
467
  min: 4,
468
- max: t(be)(k.value !== 1 ? 23 - k.value : 21, 4, 22)
468
+ max: t(xe)(C.value !== 1 ? 23 - C.value : 21, 4, 22)
469
469
  }, null, 8, ["modelValue", "max"]),
470
- s(t(T), {
470
+ r(t(z), {
471
471
  style: { "margin-top": ".5rem" },
472
472
  size: "small",
473
- onClick: e[13] || (e[13] = (a) => Te(c.value.ids))
473
+ onClick: e[13] || (e[13] = (a) => Ae(c.value.ids))
474
474
  }, {
475
- default: m(() => [
476
- D(h(t(d)("workSchedule.fillOut")), 1)
475
+ default: g(() => [
476
+ V(h(t(d)("workSchedule.fillOut")), 1)
477
477
  ]),
478
478
  _: 1
479
479
  }),
480
- s(t(T), {
480
+ r(t(z), {
481
481
  style: { "margin-top": ".5rem" },
482
482
  size: "small",
483
- onClick: e[14] || (e[14] = (a) => Ne(c.value.ids))
483
+ onClick: e[14] || (e[14] = (a) => Te(c.value.ids))
484
484
  }, {
485
- default: m(() => [
486
- D(h(t(d)("workSchedule.clearRow")), 1)
485
+ default: g(() => [
486
+ V(h(t(d)("workSchedule.clearRow")), 1)
487
487
  ]),
488
488
  _: 1
489
489
  })
490
- ])) : (S(), z("div", ul, [
491
- w("div", null, h(he(c.value.day, c.value.ids)), 1),
492
- e[25] || (e[25] = w("br", null, null, -1)),
493
- w("span", null, h(t(d)("workSchedule.with")) + ":", 1),
494
- s(t(Z), {
495
- modelValue: k.value,
496
- "onUpdate:modelValue": e[15] || (e[15] = (a) => k.value = a),
490
+ ])) : (b(), U("div", ol, [
491
+ k("div", null, h(ce(c.value.day, c.value.ids)), 1),
492
+ e[25] || (e[25] = k("br", null, null, -1)),
493
+ k("span", null, h(t(d)("workSchedule.with")) + ":", 1),
494
+ r(t(Q), {
495
+ modelValue: C.value,
496
+ "onUpdate:modelValue": e[15] || (e[15] = (a) => C.value = a),
497
497
  step: 1,
498
498
  min: 0,
499
499
  max: 19,
500
- onChange: e[16] || (e[16] = (a) => ce(c.value.day, c.value.ids))
500
+ onChange: e[16] || (e[16] = (a) => pe(c.value.day, c.value.ids))
501
501
  }, null, 8, ["modelValue"]),
502
- w("span", null, h(t(d)("workSchedule.duration")) + ":", 1),
503
- s(t(Z), {
504
- modelValue: y.value,
505
- "onUpdate:modelValue": e[17] || (e[17] = (a) => y.value = a),
502
+ k("span", null, h(t(d)("workSchedule.duration")) + ":", 1),
503
+ r(t(Q), {
504
+ modelValue: w.value,
505
+ "onUpdate:modelValue": e[17] || (e[17] = (a) => w.value = a),
506
506
  step: 1,
507
507
  min: 4,
508
- max: t(be)(k.value !== 1 ? 23 - k.value : 21, 4, 22),
509
- onChange: e[18] || (e[18] = (a) => ce(c.value.day, c.value.ids))
508
+ max: t(xe)(C.value !== 1 ? 23 - C.value : 21, 4, 22),
509
+ onChange: e[18] || (e[18] = (a) => pe(c.value.day, c.value.ids))
510
510
  }, null, 8, ["modelValue", "max"]),
511
- s(t(T), {
511
+ r(t(z), {
512
512
  style: { "margin-top": ".5rem" },
513
513
  size: "small",
514
- onClick: e[19] || (e[19] = (a) => Ae(c.value.day, c.value.ids))
514
+ onClick: e[19] || (e[19] = (a) => Be(c.value.day, c.value.ids))
515
515
  }, {
516
- default: m(() => [
517
- D(h(t(d)("workSchedule.delete")), 1)
516
+ default: g(() => [
517
+ V(h(t(d)("workSchedule.delete")), 1)
518
518
  ]),
519
519
  _: 1
520
520
  })
@@ -527,5 +527,5 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
527
527
  }
528
528
  };
529
529
  export {
530
- gl as default
530
+ ml as default
531
531
  };