@studio-west/employees 0.1.6 → 0.1.8

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.
@@ -1,14 +1,14 @@
1
- import { ref as g, openBlock as y, createElementBlock as w, createElementVNode as f, toDisplayString as D, unref as a, Fragment as U, renderList as P, normalizeClass as K, createCommentVNode as Y, watch as ee, computed as ae, resolveDirective as le, createBlock as T, withCtx as p, createVNode as c, createTextVNode as _, withDirectives as te } from "vue";
2
- import { p as F, h as ne } from "./index-DkDfHM4U.js";
3
- import { useI18n as ue } from "vue-i18n";
4
- import { ElSelect as Z, ElOption as Q, ElButton as B, ElSkeleton as oe, ElSkeletonItem as J, ElTable as de, ElTableColumn as G, ElInput as se, ElDialog as ve, ElForm as ie, ElFormItem as re, ElSwitch as ce } from "element-plus";
5
- import { ContextMenu as he, ContextMenuItem as H, ContextMenuSeparator as pe } from "@imengyu/vue3-context-menu";
6
- const fe = (O, M) => {
7
- const d = O.__vccOpts || O;
8
- for (const [k, h] of M)
9
- d[k] = h;
10
- return d;
11
- }, me = { class: "wrapper" }, ye = { class: "month_year" }, ge = { class: "text" }, be = { class: "week" }, De = { class: "month" }, ke = ["onClick"], xe = { key: 0 }, Se = { class: "month_year" }, we = { class: "text" }, Ce = { class: "week" }, Ee = { class: "month" }, _e = ["onClick"], $e = {
1
+ import { ref as g, openBlock as m, createElementBlock as S, createElementVNode as p, toDisplayString as D, unref as t, Fragment as G, renderList as R, normalizeClass as K, createCommentVNode as F, watch as ae, computed as le, resolveDirective as te, createBlock as Y, withCtx as f, createVNode as r, createTextVNode as C, withDirectives as ne } from "vue";
2
+ import { p as j, h as ue } from "./index-uVRk2ARj.js";
3
+ import { useI18n as ee } from "vue-i18n";
4
+ import { ElSelect as Z, ElOption as Q, ElButton as N, ElSkeleton as oe, ElSkeletonItem as A, ElTable as de, ElTableColumn as B, ElInput as se, ElDialog as ve, ElForm as ie, ElFormItem as re, ElSwitch as ce } from "element-plus";
5
+ import { ContextMenu as he, ContextMenuItem as H, ContextMenuSeparator as fe } from "@imengyu/vue3-context-menu";
6
+ const pe = (U, $) => {
7
+ const o = U.__vccOpts || U;
8
+ for (const [x, c] of $)
9
+ o[x] = c;
10
+ return o;
11
+ }, me = { class: "wrapper" }, ge = { class: "month_year" }, ye = { class: "text" }, be = { class: "week" }, De = { class: "month" }, xe = ["onClick"], ke = { key: 0 }, Se = { class: "month_year" }, we = { class: "text" }, Ce = { class: "week" }, Ee = { class: "month" }, _e = ["onClick"], $e = {
12
12
  __name: "DataPicker",
13
13
  props: {
14
14
  data: Object,
@@ -16,149 +16,162 @@ const fe = (O, M) => {
16
16
  // range | solid
17
17
  },
18
18
  emits: ["init"],
19
- setup(O, { emit: M }) {
20
- var z, W, X, q;
21
- const d = g(/* @__PURE__ */ new Date()), k = g(/* @__PURE__ */ new Date()), h = O, R = M, b = g((/* @__PURE__ */ new Date()).getFullYear()), V = g((/* @__PURE__ */ new Date()).getMonth()), L = g((/* @__PURE__ */ new Date()).getFullYear()), m = g((/* @__PURE__ */ new Date()).getMonth()), v = g([]), C = g(0), j = g(0), S = g(-1), N = g(-1), $ = (r) => {
22
- const u = r.split(r.match(/\D.*?\D?/));
19
+ setup(U, { emit: $ }) {
20
+ var W, X, L, q;
21
+ const o = g(/* @__PURE__ */ new Date()), x = g(/* @__PURE__ */ new Date()), c = U, z = $, y = g((/* @__PURE__ */ new Date()).getFullYear()), M = g((/* @__PURE__ */ new Date()).getMonth()), P = g((/* @__PURE__ */ new Date()).getFullYear()), h = g((/* @__PURE__ */ new Date()).getMonth()), d = g([]), w = g(0), V = g(0), b = g(-1), E = g(-1), { locale: I } = ee(), _ = /en|zh|ja|he/.test(I.value) ? 0 : 1, i = (s) => {
22
+ const u = s.split(s.match(/\D.*?\D?/));
23
23
  return u[0].length > 2 ? u.join("-") + "T00:00:01" : u.reverse().join("-") + "T00:00:01";
24
24
  };
25
- typeof ((z = h.data) == null ? void 0 : z.startDate) < "u" && (d.value = new Date($(h.data.startDate)), b.value = d.value.getFullYear(), m.value = d.value.getMonth()), typeof ((W = h.data) == null ? void 0 : W.endDate) < "u" && (k.value = new Date($(h.data.endDate)), L.value = k.value.getFullYear(), V.value = k.value.getMonth());
26
- const A = () => {
27
- let r = new Date(b.value, m.value, 0);
28
- for (let n = r.getDate() - r.getDay(); n <= r.getDate() && r.getDay() !== 6; n++)
29
- C.value++, v.value.push({ day: n, month: r.getMonth(), year: r.getFullYear(), class: [] });
30
- for (let n = 1; n <= new Date(b.value, m.value + 1, 0).getDate(); n++)
31
- C.value++, v.value.push({ day: n, month: m.value, year: b.value, class: [] });
32
- if (h.range === "range") {
33
- j.value = new Date(b.value, m.value + 2, 0);
34
- for (let n = 1; n <= j.value.getDate(); n++)
35
- v.value.push({ day: n, month: j.value.getMonth(), year: j.value.getFullYear(), class: [] });
25
+ typeof ((W = c.data) == null ? void 0 : W.startDate) < "u" && (o.value = new Date(i(c.data.startDate)), y.value = o.value.getFullYear(), h.value = o.value.getMonth()), typeof ((X = c.data) == null ? void 0 : X.endDate) < "u" && (x.value = new Date(i(c.data.endDate)), P.value = x.value.getFullYear(), M.value = x.value.getMonth());
26
+ const k = () => {
27
+ let s = new Date(y.value, h.value, 0);
28
+ for (let e = s.getDate() - s.getDay() + _; e <= s.getDate() && s.getDay() !== 6 + _; e++)
29
+ w.value++, d.value.push({ day: e, month: s.getMonth(), year: s.getFullYear(), class: [] });
30
+ for (let e = 1; e <= new Date(y.value, h.value + 1, 0).getDate(); e++)
31
+ w.value++, d.value.push({ day: e, month: h.value, year: y.value, class: [] });
32
+ if (c.range === "range") {
33
+ V.value = new Date(y.value, h.value + 2, 0);
34
+ for (let e = 1; e <= V.value.getDate(); e++)
35
+ d.value.push({ day: e, month: V.value.getMonth(), year: V.value.getFullYear(), class: [] });
36
36
  }
37
- let u = h.range === "range" ? 2 : 1, s = new Date(b.value, m.value + u, 1);
38
- for (let n = 1; n <= 7 - s.getDay() && s.getDay() !== 0; n++)
39
- v.value.push({ day: n, month: s.getMonth(), year: s.getFullYear(), class: [] });
40
- h.data.holiday.length !== 0 && (h.data.holiday.preholidays.forEach((n) => {
41
- let e = n.split("-");
42
- const t = v.value.findIndex((o) => o.year == e[0] && o.month + 1 == e[1] && o.day == e[2]);
43
- t !== -1 && (v.value[t].class[0] = "preholiday");
44
- }), h.data.holiday.holidays.forEach((n) => {
45
- let e = n.split("-");
46
- const t = v.value.findIndex((o) => o.year == e[0] && o.month + 1 == e[1] && o.day == e[2]);
47
- t !== -1 && (v.value[t].class[0] = "weekend");
48
- }), h.data.holiday.holiday.forEach((n) => {
49
- let e = n.split("-");
50
- const t = v.value.findIndex((o) => o.year == e[0] && o.month + 1 == e[1] && o.day == e[2]);
51
- t !== -1 && (v.value[t].class[0] = "holiday");
52
- }), h.data.holiday.nowork.forEach((n) => {
53
- let e = n.split("-");
54
- const t = v.value.findIndex((o) => o.year == e[0] && o.month + 1 == e[1] && o.day == e[2]);
55
- t !== -1 && (v.value[t].class[0] = "nowork");
37
+ let u = c.range === "range" ? 2 : 1, a = new Date(y.value, h.value + u, 1);
38
+ for (let e = 1; e <= (7 - a.getDay() + _) % 7 && a.getDay() !== _; e++)
39
+ d.value.push({ day: e, month: a.getMonth(), year: a.getFullYear(), class: [] });
40
+ c.data.holiday.length !== 0 && (c.data.holiday.preholidays.forEach((e) => {
41
+ let n = e.split("-");
42
+ const l = d.value.findIndex((v) => v.year == n[0] && v.month + 1 == n[1] && v.day == n[2]);
43
+ l !== -1 && (d.value[l].class[0] = "preholiday");
44
+ }), c.data.holiday.holidays.forEach((e) => {
45
+ let n = e.split("-");
46
+ const l = d.value.findIndex((v) => v.year == n[0] && v.month + 1 == n[1] && v.day == n[2]);
47
+ l !== -1 && (d.value[l].class[0] = "weekend");
48
+ }), c.data.holiday.holiday.forEach((e) => {
49
+ let n = e.split("-");
50
+ const l = d.value.findIndex((v) => v.year == n[0] && v.month + 1 == n[1] && v.day == n[2]);
51
+ l !== -1 && (d.value[l].class[0] = "holiday");
52
+ }), c.data.holiday.nowork.forEach((e) => {
53
+ let n = e.split("-");
54
+ const l = d.value.findIndex((v) => v.year == n[0] && v.month + 1 == n[1] && v.day == n[2]);
55
+ l !== -1 && (d.value[l].class[0] = "nowork");
56
56
  }));
57
- }, i = (r, u) => {
58
- let s = r - u + 1;
59
- for (let n = 0; n <= r - u; n++)
60
- v.value[n + u].class[0] === "holiday" && s--;
61
- return s;
62
- }, x = (r, u) => {
63
- const s = F(new Date(r.year, r.month, r.day), "{dd}.{m}.{Y}");
64
- if (h.range === "range")
65
- if (console.log(S.value), N.value !== -1)
66
- v.value[N.value].class[1] = "", v.value[S.value].class[1] = "", S.value = u, N.value = -1, v.value[u].class[1] = "active";
67
- else if (S.value !== -1) {
68
- N.value = u, v.value[u].class[1] = "active";
69
- let n = F(new Date(v.value[S.value].year, v.value[S.value].month, v.value[S.value].day), "{dd}.{m}.{Y}");
70
- S.value > u ? R("input", { dateStart: s, dateEnd: n, count: i(S.value, u) }) : R("input", { dateStart: n, dateEnd: s, count: i(u, S.value) });
57
+ }, J = (s, u) => {
58
+ let a = s - u + 1;
59
+ for (let e = 0; e <= s - u; e++)
60
+ d.value[e + u].class[0] === "holiday" && a--;
61
+ return a;
62
+ }, O = (s, u) => {
63
+ const a = j(new Date(s.year, s.month, s.day), "{dd}.{m}.{Y}");
64
+ if (c.range === "range")
65
+ if (console.log(b.value), E.value !== -1) {
66
+ if (E.value <= b.value)
67
+ for (let e = E.value; e <= b.value; e++) d.value[e].class[1] = "";
68
+ else for (let e = b.value; e <= E.value; e++) d.value[e].class[1] = "";
69
+ b.value = u, E.value = -1, d.value[u].class[1] = "active";
70
+ } else if (b.value !== -1) {
71
+ if (E.value = u, E.value >= b.value)
72
+ for (let n = b.value + 1; n < u; n++) d.value[n].class[1] = "select";
73
+ else for (let n = u + 1; n < b.value; n++) d.value[n].class[1] = "select";
74
+ d.value[u].class[1] = "active";
75
+ let e = j(new Date(d.value[b.value].year, d.value[b.value].month, d.value[b.value].day), "{dd}.{m}.{Y}");
76
+ b.value > u ? z("input", { dateStart: a, dateEnd: e, count: J(b.value, u) }) : z("input", { dateStart: e, dateEnd: a, count: J(u, b.value) });
71
77
  } else
72
- S.value = u, v.value[u].class[1] = "active";
78
+ b.value = u, d.value[u].class[1] = "active";
73
79
  else
74
- v.value[S.value].class[1] = "", S.value = u, v.value[u].class[1] = "active", R("input", { dateStart: s, count: 1 });
80
+ d.value[b.value].class[1] = "", b.value = u, d.value[u].class[1] = "active", z("input", { dateStart: a, count: 1 });
75
81
  };
76
- A(), typeof ((X = h.data) == null ? void 0 : X.startDate) < "u" && (S.value = v.value.findIndex((r) => r.day === d.value.getDate() && r.month === m.value && r.year === b.value), v.value[S.value].class[1] = "active"), typeof ((q = h.data) == null ? void 0 : q.endDate) < "u" && h.range === "range" && (N.value = v.value.findIndex((r) => r.day === k.value.getDate() && r.month === V.value && r.year === L.value), v.value[N.value].class[1] = "active");
77
- const I = (r, u) => {
78
- v.value = [], C.value = 0, d.value = new Date(r, u, 1), b.value = d.value.getFullYear(), m.value = d.value.getMonth(), A();
82
+ if (k(), typeof ((L = c.data) == null ? void 0 : L.startDate) < "u" && (b.value = d.value.findIndex((s) => s.day === o.value.getDate() && s.month === h.value && s.year === y.value), d.value[b.value].class[1] = "active"), typeof ((q = c.data) == null ? void 0 : q.endDate) < "u" && c.range === "range") {
83
+ E.value = d.value.findIndex((s) => s.day === x.value.getDate() && s.month === M.value && s.year === P.value), d.value[E.value].class[1] = "active";
84
+ for (let s = b.value + 1; s < E.value; s++) d.value[s].class[1] = "select";
85
+ }
86
+ const T = (s, u) => {
87
+ d.value = [], w.value = 0, o.value = new Date(s, u, 1), y.value = o.value.getFullYear(), h.value = o.value.getMonth(), k();
79
88
  };
80
- return (r, u) => (y(), w("div", me, [
81
- f("div", null, [
82
- f("p", ye, [
83
- f("span", null, [
84
- f("button", {
85
- onClick: u[0] || (u[0] = (s) => I(b.value - 1, m.value))
89
+ return (s, u) => (m(), S("div", me, [
90
+ p("div", null, [
91
+ p("p", ge, [
92
+ p("span", null, [
93
+ p("button", {
94
+ onClick: u[0] || (u[0] = (a) => T(y.value - 1, h.value))
86
95
  }, "«"),
87
- f("button", {
88
- onClick: u[1] || (u[1] = (s) => I(b.value, m.value - 1))
96
+ p("button", {
97
+ onClick: u[1] || (u[1] = (a) => T(y.value, h.value - 1))
89
98
  }, "‹")
90
99
  ]),
91
- f("span", ge, [
92
- f("button", null, D(b.value), 1),
93
- f("button", null, D(a(F)(d.value, "{F}")), 1)
100
+ p("span", ye, [
101
+ p("button", null, D(y.value), 1),
102
+ p("button", null, D(t(j)(o.value, "{F}")), 1)
94
103
  ]),
95
- f("span", null, [
96
- f("button", {
97
- onClick: u[2] || (u[2] = (s) => I(b.value, m.value + 1))
104
+ p("span", null, [
105
+ p("button", {
106
+ onClick: u[2] || (u[2] = (a) => T(y.value, h.value + 1))
98
107
  }, "›"),
99
- f("button", {
100
- onClick: u[3] || (u[3] = (s) => I(b.value + 1, m.value))
108
+ p("button", {
109
+ onClick: u[3] || (u[3] = (a) => T(y.value + 1, h.value))
101
110
  }, "»")
102
111
  ])
103
112
  ]),
104
- f("div", be, [
105
- (y(), w(U, null, P(7, (s, n) => f("button", {
106
- key: n,
113
+ p("div", be, [
114
+ (m(), S(G, null, R(7, (a, e) => p("button", {
115
+ key: e,
107
116
  class: "disabled"
108
- }, D(a(F)(new Date(1970, 1, s), "{D}")), 1)), 64))
117
+ }, D(t(j)(new Date(1970, 1, a + t(_)), "{D}")), 1)), 64))
109
118
  ]),
110
- f("div", De, [
111
- (y(!0), w(U, null, P(v.value, (s, n) => (y(), w(U, { key: n }, [
112
- n <= C.value + 5 - new Date(b.value, m.value + 1, 0).getDay() ? (y(), w("button", {
119
+ p("div", De, [
120
+ (m(!0), S(G, null, R(d.value, (a, e) => (m(), S(G, { key: e }, [
121
+ e < w.value + (7 - new Date(y.value, h.value + 1, 1).getDay() + t(_)) % 7 ? (m(), S("button", {
113
122
  key: 0,
114
- class: K(s.month === m.value ? s.class : "disabled"),
115
- onClick: (e) => x(s, n)
116
- }, D(s.day), 11, ke)) : Y("", !0)
123
+ class: K(a.month === h.value ? a.class : "disabled"),
124
+ onClick: () => {
125
+ a.month === h.value && O(a, e);
126
+ }
127
+ }, D(a.day), 11, xe)) : F("", !0)
117
128
  ], 64))), 128))
118
129
  ])
119
130
  ]),
120
- h.range === "range" ? (y(), w("div", xe, [
121
- f("p", Se, [
122
- f("span", null, [
123
- f("button", {
124
- onClick: u[4] || (u[4] = (s) => I(b.value - 1, m.value))
131
+ c.range === "range" ? (m(), S("div", ke, [
132
+ p("p", Se, [
133
+ p("span", null, [
134
+ p("button", {
135
+ onClick: u[4] || (u[4] = (a) => T(y.value - 1, h.value))
125
136
  }, "«"),
126
- f("button", {
127
- onClick: u[5] || (u[5] = (s) => I(b.value, m.value - 1))
137
+ p("button", {
138
+ onClick: u[5] || (u[5] = (a) => T(y.value, h.value - 1))
128
139
  }, "‹")
129
140
  ]),
130
- f("span", we, [
131
- f("button", null, D(new Date(b.value, m.value + 1).getFullYear()), 1),
132
- f("button", null, D(a(F)(d.value.setMonth(m.value + 1), "{F}")), 1)
141
+ p("span", we, [
142
+ p("button", null, D(new Date(y.value, h.value + 1).getFullYear()), 1),
143
+ p("button", null, D(t(j)(o.value.setMonth(h.value + 1), "{F}")), 1)
133
144
  ]),
134
- f("span", null, [
135
- f("button", {
136
- onClick: u[6] || (u[6] = (s) => I(b.value, m.value + 1))
145
+ p("span", null, [
146
+ p("button", {
147
+ onClick: u[6] || (u[6] = (a) => T(y.value, h.value + 1))
137
148
  }, "›"),
138
- f("button", {
139
- onClick: u[7] || (u[7] = (s) => I(b.value + 1, m.value))
149
+ p("button", {
150
+ onClick: u[7] || (u[7] = (a) => T(y.value + 1, h.value))
140
151
  }, "»")
141
152
  ])
142
153
  ]),
143
- f("div", Ce, [
144
- (y(), w(U, null, P(7, (s, n) => f("button", {
145
- key: n,
154
+ p("div", Ce, [
155
+ (m(), S(G, null, R(7, (a, e) => p("button", {
156
+ key: e,
146
157
  class: "disabled"
147
- }, D(a(F)(new Date(1970, 1, s), "{D}")), 1)), 64))
158
+ }, D(t(j)(new Date(1970, 1, a + t(_)), "{D}")), 1)), 64))
148
159
  ]),
149
- f("div", Ee, [
150
- (y(!0), w(U, null, P(v.value, (s, n) => (y(), w(U, { key: n }, [
151
- n >= C.value - new Date(b.value, m.value + 1, 1).getDay() ? (y(), w("button", {
160
+ p("div", Ee, [
161
+ (m(!0), S(G, null, R(d.value, (a, e) => (m(), S(G, { key: e }, [
162
+ e >= w.value - new Date(y.value, h.value + 1, 1).getDay() + t(_) ? (m(), S("button", {
152
163
  key: 0,
153
- class: K(s.month === j.value.getMonth() ? s.class : "disabled"),
154
- onClick: (e) => x(s, n)
155
- }, D(s.day), 11, _e)) : Y("", !0)
164
+ class: K(a.month === V.value.getMonth() ? a.class : "disabled"),
165
+ onClick: () => {
166
+ a.month === V.value.getMonth() && O(a, e);
167
+ }
168
+ }, D(a.day), 11, _e)) : F("", !0)
156
169
  ], 64))), 128))
157
170
  ])
158
- ])) : Y("", !0)
171
+ ])) : F("", !0)
159
172
  ]));
160
173
  }
161
- }, Me = /* @__PURE__ */ fe($e, [["__scopeId", "data-v-a842f008"]]), Ve = {
174
+ }, Me = /* @__PURE__ */ pe($e, [["__scopeId", "data-v-fef4c07c"]]), Ve = {
162
175
  key: 1,
163
176
  class: "controls-container",
164
177
  style: { "margin-top": ".5rem" }
@@ -173,8 +186,8 @@ const fe = (O, M) => {
173
186
  workSchedule: Object,
174
187
  fullName: { type: String, default: "Вы" }
175
188
  },
176
- setup(O) {
177
- const M = O, { t: d } = ue(), k = g([
189
+ setup(U) {
190
+ const $ = U, { t: o } = ee(), x = g([
178
191
  // { name: 'Иванов Петр Михалыч',
179
192
  // jobTitle: '(Ведущий работник месяца)',
180
193
  // days: [{dateStart: "03.05.2024", dateEnd: "06.06.2024", note: 'забил - сказал он ослик', count: 14 },
@@ -194,129 +207,134 @@ const fe = (O, M) => {
194
207
  // }
195
208
  ]);
196
209
  g([]);
197
- const h = g((/* @__PURE__ */ new Date()).getFullYear()), R = g(!1), b = g(!1), V = g(!1), L = g({
210
+ const c = g((/* @__PURE__ */ new Date()).getFullYear()), z = g(!1), y = g(!1), M = g(!1), P = g({
198
211
  zIndex: 3,
199
212
  minWidth: 230,
200
213
  x: 500,
201
214
  y: 200
202
- }), m = g(!1), v = g([]), C = g("Сектор разработок и эксплуатации сети"), j = g([{ value: "all", label: d("vacationSchedule.all"), key: "all" }]), S = g([{ value: h.value, label: h.value }, { value: h.value + 1, label: h.value + 1 }]), N = g(!1), $ = g([]), A = g(!1), i = g({ name: "Имя", length: 0, code: "" });
203
- ee(C, async (e, t) => {
204
- e !== t && ($.value = [], R.value = !1, M.odata.personalManagerData.forEach((o) => {
205
- (o.Status !== "Увольнение" && o.Group === e || e === "all") && ($.value.some((l) => (l == null ? void 0 : l.activeText) === o.Role) || $.value.push({ val: !0, activeText: o.Role }));
206
- }), z());
215
+ }), h = g(!1), d = g([]), w = g("Сектор разработок и эксплуатации сети"), V = g([{ value: "all", label: o("vacationSchedule.all"), key: "all" }]), b = g([{ value: c.value, label: c.value }, { value: c.value + 1, label: c.value + 1 }]), E = g(!1), I = g([]), _ = g(!1), i = g({ name: "Имя", length: 0, code: "" });
216
+ ae(w, async (a, e) => {
217
+ a !== e && (I.value = [], z.value = !1, $.odata.personalManagerData.forEach((n) => {
218
+ (n.Status !== "Увольнение" && n.Group === a || a === "all") && (I.value.some((l) => (l == null ? void 0 : l.activeText) === n.Role) || I.value.push({ val: !0, activeText: n.Role }));
219
+ }), O());
207
220
  });
208
- const x = ae(() => k.value.flatMap((e, t) => !e.days || e.days.length === 0 ? [{ ...e, key: 0, ids: t }] : e.days.map((o, l) => ({
209
- ids: t,
221
+ const k = le(() => x.value.flatMap((a, e) => !a.days || a.days.length === 0 ? [{ ...a, key: 0, ids: e }] : a.days.map((n, l) => ({
222
+ ids: e,
210
223
  key: l,
211
- ...e,
212
- ...o
213
- })))), I = async () => {
214
- M.odata.getPersonalManagerData({}).then((e) => {
215
- var t;
216
- C.value = (t = e.find((o) => o.Status !== "Увольнение" && o.Description === M.fullName)) == null ? void 0 : t.Group, e.forEach((o) => {
217
- o.Status !== "Увольнение" && (j.value.some((l) => (l == null ? void 0 : l.value) === o.Group) || j.value.push({ value: o.Group, label: o.Group, key: o.Group }), o.Group === C.value && !$.value.some((l) => (l == null ? void 0 : l.activeText) === o.Role) && $.value.push({ val: !0, activeText: o.Role }));
218
- }), z(), b.value = !1;
224
+ ...a,
225
+ ...n
226
+ })))), J = async () => {
227
+ $.odata.getPersonalManagerData({}).then((a) => {
228
+ var e;
229
+ w.value = (e = a.find((n) => n.Status !== "Увольнение" && n.Description === $.fullName)) == null ? void 0 : e.Group, a.forEach((n) => {
230
+ n.Status !== "Увольнение" && (V.value.some((l) => (l == null ? void 0 : l.value) === n.Group) || V.value.push({ value: n.Group, label: n.Group, key: n.Group }), n.Group === w.value && !I.value.some((l) => (l == null ? void 0 : l.activeText) === n.Role) && I.value.push({ val: !0, activeText: n.Role }));
231
+ }), O(), y.value = !1;
219
232
  });
220
- }, z = () => {
221
- k.value = [];
222
- let e = [];
223
- M.odata.personalManagerData.forEach((t) => {
224
- t.Status !== "Увольнение" && (t.Group === C.value || C.value === "all") && $.value.some((o) => o.val && o.activeText === t.Role) && (e.push(t.Code), k.value.push({ name: t.Description, days: [{ note: "" }], jobTitle: t.Role, code: t.Code }));
225
- }), W(e), m.value = !1;
226
- }, W = (e) => {
227
- M.workSchedule.getAllVacations({ year: h.value }).then(
228
- (t) => {
229
- console.log(e), e.forEach((o, l) => {
230
- k.value[l].days = [{ note: "" }], t.forEach((E) => {
231
- o === E.code && (console.log(E), typeof k.value[l].days[0].dateStart > "u" ? k.value[l].days[0] = {
232
- dateStart: F(E.dateStart, "{dd}.{m}.{Y}"),
233
- dateEnd: F(E.dateEnd, "{dd}.{m}.{Y}"),
234
- note: E.note,
235
- count: E.count
236
- } : k.value[l].days.push({
237
- dateStart: F(E.dateStart, "{dd}.{m}.{Y}"),
238
- dateEnd: F(E.dateEnd, "{dd}.{m}.{Y}"),
239
- note: E.note,
240
- count: E.count
233
+ }, O = () => {
234
+ x.value = [];
235
+ let a = [];
236
+ $.odata.personalManagerData.forEach((e) => {
237
+ e.Status !== "Увольнение" && (e.Group === w.value || w.value === "all") && I.value.some((n) => n.val && n.activeText === e.Role) && (a.push(e.Code), x.value.push({ name: e.Description, days: [{ note: "" }], jobTitle: e.Role, code: e.Code }));
238
+ }), T(a), h.value = !1;
239
+ }, T = (a) => {
240
+ $.workSchedule.getAllVacations({ year: c.value }).then(
241
+ (e) => {
242
+ console.log(a), a.forEach((n, l) => {
243
+ x.value[l].days = [{ note: "" }], e.forEach((v) => {
244
+ n === v.code && (console.log(v), typeof x.value[l].days[0].dateStart > "u" ? x.value[l].days[0] = {
245
+ dateStart: j(v.dateStart, "{dd}.{m}.{Y}"),
246
+ dateEnd: j(v.dateEnd, "{dd}.{m}.{Y}"),
247
+ note: v.note,
248
+ count: v.count
249
+ } : x.value[l].days.push({
250
+ dateStart: j(v.dateStart, "{dd}.{m}.{Y}"),
251
+ dateEnd: j(v.dateEnd, "{dd}.{m}.{Y}"),
252
+ note: v.note,
253
+ count: v.count
241
254
  }));
242
255
  });
243
256
  });
244
257
  }
245
258
  );
246
- }, X = (e) => {
247
- if (e.columnIndex < 3 && x.value[e.rowIndex].key < x.value[e.rowIndex].days.length)
248
- return x.value[e.rowIndex].key === 0 ? {
249
- rowspan: x.value[e.rowIndex].days.length,
259
+ }, W = (a) => {
260
+ if (a.columnIndex < 3 && k.value[a.rowIndex].key < k.value[a.rowIndex].days.length)
261
+ return k.value[a.rowIndex].key === 0 ? {
262
+ rowspan: k.value[a.rowIndex].days.length,
250
263
  colspan: 1
251
264
  } : {
252
265
  rowspan: 0,
253
266
  colspan: 0
254
267
  };
255
- }, q = (e, t, o, l) => {
256
- i.value.ids = e.ids, i.value.key = e.key, i.value.startDate = e.dateStart, i.value.endDate = e.dateEnd, i.value.name = e.name, i.value.count = e.count, i.value.length = e.days.length, i.value.add = e.days.length > 0 && e.days[e.days.length - 1].count, i.value.level = t.level, i.value.holiday = v.value, L.value.y = l.clientY, L.value.x = l.clientX, t.level === 2 && t.no < 4 && (i.value.add || e.days.length > 1) && (V.value = !0), t.level === 3 && (V.value = !0);
257
- }, r = (e) => {
258
- console.log(e);
259
- let t = k.value[i.value.ids];
260
- switch (e) {
268
+ }, X = (a, e, n, l) => {
269
+ i.value.ids = a.ids, i.value.key = a.key, i.value.startDate = a.dateStart, i.value.endDate = a.dateEnd, i.value.name = a.name, i.value.count = a.count, i.value.length = a.days.length, i.value.add = a.days.length > 0 && a.days[a.days.length - 1].count, i.value.level = e.level, i.value.holiday = d.value, P.value.y = l.clientY, P.value.x = l.clientX, e.level === 2 && e.no < 4 && (i.value.add || a.days.length > 1) && (M.value = !0), e.level === 3 && (M.value = !0);
270
+ }, L = (a) => {
271
+ console.log(a);
272
+ let e = x.value[i.value.ids];
273
+ switch (a) {
261
274
  case "add":
262
- t.days.push({ note: "" }), console.log(t.days.length);
275
+ e.days.push({ note: "" }), console.log(e.days.length);
263
276
  break;
264
277
  case "delete":
265
- delete t.days.pop(), n(i.value.ids);
278
+ delete e.days.pop(), u(i.value.ids);
266
279
  break;
267
280
  }
268
- V.value = !1;
269
- }, u = (e) => {
270
- A.value = e, i.value.count = e.count;
281
+ M.value = !1;
282
+ }, q = (a) => {
283
+ _.value = a, i.value.count = a.count;
271
284
  }, s = () => {
272
- A.value && (k.value[i.value.ids].days[i.value.key] = { ...A.value, note: "" }, n(i.value.ids)), V.value = !1;
273
- }, n = (e) => {
274
- M.workSchedule.rewriteFull({
275
- year: h.value,
276
- code: k.value[e].code,
277
- data: k.value[e].days.map((t) => (t.dateStart = t.dateStart.split(".").reverse().join("-"), t.dateEnd = t.dateEnd.split(".").reverse().join("-"), t))
285
+ _.value && (console.log(_.value), x.value[i.value.ids].days[i.value.key] = { ..._.value, note: "" }, u(i.value.ids)), M.value = !1;
286
+ }, u = (a) => {
287
+ $.workSchedule.rewriteFull({
288
+ year: c.value,
289
+ code: x.value[a].code,
290
+ data: x.value[a].days.map((e) => ({
291
+ dateStart: e.dateStart.split(".").reverse().join("-"),
292
+ dateEnd: e.dateEnd.split(".").reverse().join("-"),
293
+ note: e.note,
294
+ count: e.count
295
+ }))
278
296
  });
279
297
  };
280
- return ne().then((e) => {
281
- v.value = e, I();
282
- }), (e, t) => {
283
- const o = le("loading");
284
- return y(), w("div", null, [
285
- O.checkEdit ? (y(), T(a(Z), {
298
+ return ue().then((a) => {
299
+ d.value = a, J();
300
+ }), (a, e) => {
301
+ const n = te("loading");
302
+ return m(), S("div", null, [
303
+ U.checkEdit ? (m(), Y(t(Z), {
286
304
  key: 0,
287
- modelValue: C.value,
288
- "onUpdate:modelValue": t[0] || (t[0] = (l) => C.value = l),
305
+ modelValue: w.value,
306
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => w.value = l),
289
307
  placeholder: "Select",
290
308
  style: { width: "240px", "margin-bottom": ".5rem", "margin-right": ".5rem" }
291
309
  }, {
292
- default: p(() => [
293
- (y(!0), w(U, null, P(j.value, (l) => (y(), T(a(Q), {
310
+ default: f(() => [
311
+ (m(!0), S(G, null, R(V.value, (l) => (m(), Y(t(Q), {
294
312
  key: l.value,
295
313
  label: l.label,
296
314
  value: l.value
297
315
  }, null, 8, ["label", "value"]))), 128))
298
316
  ]),
299
317
  _: 1
300
- }, 8, ["modelValue"])) : Y("", !0),
301
- c(a(B), {
318
+ }, 8, ["modelValue"])) : F("", !0),
319
+ r(t(N), {
302
320
  plain: "",
303
- onClick: t[1] || (t[1] = (l) => m.value = !0),
321
+ onClick: e[1] || (e[1] = (l) => h.value = !0),
304
322
  style: { "margin-bottom": ".5rem" }
305
323
  }, {
306
- default: p(() => [
307
- _(D(a(d)("workSchedule.jobTitle")), 1)
324
+ default: f(() => [
325
+ C(D(t(o)("workSchedule.jobTitle")), 1)
308
326
  ]),
309
327
  _: 1
310
328
  }),
311
- c(a(Z), {
312
- modelValue: h.value,
313
- "onUpdate:modelValue": t[2] || (t[2] = (l) => h.value = l),
314
- onChange: z,
329
+ r(t(Z), {
330
+ modelValue: c.value,
331
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => c.value = l),
332
+ onChange: O,
315
333
  placeholder: "Year",
316
334
  style: { width: "240px", "margin-bottom": ".5rem", "margin-right": ".5rem" }
317
335
  }, {
318
- default: p(() => [
319
- (y(!0), w(U, null, P(S.value, (l) => (y(), T(a(Q), {
336
+ default: f(() => [
337
+ (m(!0), S(G, null, R(b.value, (l) => (m(), Y(t(Q), {
320
338
  key: l.value,
321
339
  label: l.label,
322
340
  value: l.value
@@ -324,127 +342,127 @@ const fe = (O, M) => {
324
342
  ]),
325
343
  _: 1
326
344
  }, 8, ["modelValue"]),
327
- c(a(oe), {
345
+ r(t(oe), {
328
346
  style: { width: "100%" },
329
- loading: b.value,
347
+ loading: y.value,
330
348
  animated: ""
331
349
  }, {
332
- template: p(() => [
333
- c(a(J), {
350
+ template: f(() => [
351
+ r(t(A), {
334
352
  variant: "text",
335
353
  style: { width: "100%", height: "2rem" }
336
354
  }),
337
- c(a(J), {
355
+ r(t(A), {
338
356
  variant: "text",
339
357
  style: { width: "180px", height: "4rem", "margin-right": "4px" }
340
358
  }),
341
- c(a(J), {
359
+ r(t(A), {
342
360
  variant: "text",
343
361
  style: { width: "calc( 100% - 184px)", height: "4rem" }
344
362
  }),
345
- c(a(J), {
363
+ r(t(A), {
346
364
  variant: "text",
347
365
  style: { width: "180px", height: "8rem", "margin-right": "4px" }
348
366
  }),
349
- c(a(J), {
367
+ r(t(A), {
350
368
  variant: "text",
351
369
  style: { width: "calc( 100% - 184px)", height: "8rem" }
352
370
  })
353
371
  ]),
354
- default: p(() => [
355
- c(a(de), {
372
+ default: f(() => [
373
+ r(t(de), {
356
374
  id: "printTable",
357
- data: x.value,
358
- "span-method": X,
359
- onCellClick: q,
375
+ data: k.value,
376
+ "span-method": W,
377
+ onCellClick: X,
360
378
  border: "",
361
379
  style: { width: "100%" },
362
380
  size: "small",
363
- "empty-text": a(d)("vacationSchedule.emptyText")
381
+ "empty-text": t(o)("vacationSchedule.emptyText")
364
382
  }, {
365
- default: p(() => [
366
- c(a(G), {
367
- label: C.value !== "all" ? a(d)("vacationSchedule.title", { name: C.value }) : a(d)("vacationSchedule.enterprise") + ` ${h.value}`,
383
+ default: f(() => [
384
+ r(t(B), {
385
+ label: w.value !== "all" ? t(o)("vacationSchedule.title", { name: w.value }) : t(o)("vacationSchedule.enterprise") + ` ${c.value}`,
368
386
  align: "center",
369
387
  height: "34"
370
388
  }, {
371
- default: p(() => [
372
- c(a(G), {
373
- label: a(d)("vacationSchedule.jobTitle"),
389
+ default: f(() => [
390
+ r(t(B), {
391
+ label: t(o)("vacationSchedule.jobTitle"),
374
392
  width: "180",
375
393
  align: "center"
376
394
  }, {
377
- default: p((l) => [
378
- _(D(x.value[l.$index].jobTitle), 1)
395
+ default: f((l) => [
396
+ C(D(k.value[l.$index].jobTitle), 1)
379
397
  ]),
380
398
  _: 1
381
399
  }, 8, ["label"]),
382
- c(a(G), {
383
- label: a(d)("vacationSchedule.fullName"),
400
+ r(t(B), {
401
+ label: t(o)("vacationSchedule.fullName"),
384
402
  width: "180",
385
403
  align: "center"
386
404
  }, {
387
- default: p((l) => [
388
- _(D(x.value[l.$index].name), 1)
405
+ default: f((l) => [
406
+ C(D(k.value[l.$index].name), 1)
389
407
  ]),
390
408
  _: 1
391
409
  }, 8, ["label"]),
392
- c(a(G), {
393
- label: a(d)("vacationSchedule.personnelNumber"),
410
+ r(t(B), {
411
+ label: t(o)("vacationSchedule.personnelNumber"),
394
412
  align: "center"
395
413
  }, {
396
- default: p((l) => [
397
- _(D(x.value[l.$index].code), 1)
414
+ default: f((l) => [
415
+ C(D(k.value[l.$index].code), 1)
398
416
  ]),
399
417
  _: 1
400
418
  }, 8, ["label"]),
401
- c(a(G), {
402
- label: a(d)("vacationSchedule.vacation"),
419
+ r(t(B), {
420
+ label: t(o)("vacationSchedule.vacation"),
403
421
  align: "center"
404
422
  }, {
405
- default: p(() => [
406
- c(a(G), {
407
- label: a(d)("vacationSchedule.days"),
423
+ default: f(() => [
424
+ r(t(B), {
425
+ label: t(o)("vacationSchedule.days"),
408
426
  align: "center"
409
427
  }, {
410
- default: p((l) => [
411
- _(D(x.value[l.$index].count), 1)
428
+ default: f((l) => [
429
+ C(D(k.value[l.$index].count), 1)
412
430
  ]),
413
431
  _: 1
414
432
  }, 8, ["label"]),
415
- c(a(G), {
416
- label: a(d)("vacationSchedule.date"),
433
+ r(t(B), {
434
+ label: t(o)("vacationSchedule.date"),
417
435
  align: "center"
418
436
  }, {
419
- default: p((l) => [
420
- _(D(x.value[l.$index].dateStart), 1)
437
+ default: f((l) => [
438
+ C(D(k.value[l.$index].dateStart), 1)
421
439
  ]),
422
440
  _: 1
423
441
  }, 8, ["label"]),
424
- c(a(G), {
425
- label: a(d)("vacationSchedule.endDate"),
442
+ r(t(B), {
443
+ label: t(o)("vacationSchedule.endDate"),
426
444
  align: "center"
427
445
  }, {
428
- default: p((l) => [
429
- _(D(x.value[l.$index].dateEnd), 1)
446
+ default: f((l) => [
447
+ C(D(k.value[l.$index].dateEnd), 1)
430
448
  ]),
431
449
  _: 1
432
450
  }, 8, ["label"])
433
451
  ]),
434
452
  _: 1
435
453
  }, 8, ["label"]),
436
- c(a(G), {
437
- label: a(d)("vacationSchedule.note"),
454
+ r(t(B), {
455
+ label: t(o)("vacationSchedule.note"),
438
456
  align: "center"
439
457
  }, {
440
- default: p((l) => [
441
- c(a(se), {
442
- modelValue: k.value[x.value[l.$index].ids].days[x.value[l.$index].key].note,
443
- "onUpdate:modelValue": (E) => k.value[x.value[l.$index].ids].days[x.value[l.$index].key].note = E,
458
+ default: f((l) => [
459
+ r(t(se), {
460
+ modelValue: x.value[k.value[l.$index].ids].days[k.value[l.$index].key].note,
461
+ "onUpdate:modelValue": (v) => x.value[k.value[l.$index].ids].days[k.value[l.$index].key].note = v,
444
462
  style: { width: "100%" },
445
463
  placeholder: " ",
446
464
  class: "noBorder",
447
- onBlur: (E) => n(x.value[l.$index].ids)
465
+ onBlur: (v) => u(k.value[l.$index].ids)
448
466
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onBlur"])
449
467
  ]),
450
468
  _: 1
@@ -458,90 +476,90 @@ const fe = (O, M) => {
458
476
  ]),
459
477
  _: 1
460
478
  }, 8, ["loading"]),
461
- O.checkEdit ? (y(), w("div", Ve, [
462
- R.value ? Y("", !0) : (y(), T(a(B), {
479
+ U.checkEdit ? (m(), S("div", Ve, [
480
+ z.value ? F("", !0) : (m(), Y(t(N), {
463
481
  key: 0,
464
482
  type: "primary",
465
- onClick: e.confirmData
483
+ onClick: a.confirmData
466
484
  }, {
467
- default: p(() => [
468
- _(D(a(d)("vacationSchedule.sendInformation")), 1)
485
+ default: f(() => [
486
+ C(D(t(o)("vacationSchedule.sendInformation")), 1)
469
487
  ]),
470
488
  _: 1
471
489
  }, 8, ["onClick"])),
472
- R.value ? Y("", !0) : (y(), T(a(B), {
490
+ z.value ? F("", !0) : (m(), Y(t(N), {
473
491
  key: 1,
474
492
  type: "primary",
475
- onClick: e.confirmData
493
+ onClick: a.confirmData
476
494
  }, {
477
- default: p(() => [
478
- _(D(a(d)("vacationSchedule.agreeOn")), 1)
495
+ default: f(() => [
496
+ C(D(t(o)("vacationSchedule.agreeOn")), 1)
479
497
  ]),
480
498
  _: 1
481
499
  }, 8, ["onClick"])),
482
- R.value ? Y("", !0) : (y(), T(a(B), {
500
+ z.value ? F("", !0) : (m(), Y(t(N), {
483
501
  key: 2,
484
502
  type: "primary",
485
- onClick: e.confirmData
503
+ onClick: a.confirmData
486
504
  }, {
487
- default: p(() => [
488
- _(D(a(d)("vacationSchedule.reject")), 1)
505
+ default: f(() => [
506
+ C(D(t(o)("vacationSchedule.reject")), 1)
489
507
  ]),
490
508
  _: 1
491
509
  }, 8, ["onClick"]))
492
- ])) : Y("", !0),
493
- te((y(), T(a(B), {
494
- disabled: N.value,
510
+ ])) : F("", !0),
511
+ ne((m(), Y(t(N), {
512
+ disabled: E.value,
495
513
  plain: "",
496
- onClick: e.exportToExcel,
514
+ onClick: a.exportToExcel,
497
515
  style: { "margin-top": ".5rem" }
498
516
  }, {
499
- default: p(() => [
500
- _(D(a(d)("workSchedule.exportExcel")), 1)
517
+ default: f(() => [
518
+ C(D(t(o)("workSchedule.exportExcel")), 1)
501
519
  ]),
502
520
  _: 1
503
521
  }, 8, ["disabled", "onClick"])), [
504
- [o, N.value]
522
+ [n, E.value]
505
523
  ]),
506
- c(a(ve), {
507
- title: a(d)("workSchedule.jobTitle"),
508
- modelValue: m.value,
509
- "onUpdate:modelValue": t[4] || (t[4] = (l) => m.value = l),
524
+ r(t(ve), {
525
+ title: t(o)("workSchedule.jobTitle"),
526
+ modelValue: h.value,
527
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => h.value = l),
510
528
  width: "400px"
511
529
  }, {
512
- footer: p(() => [
513
- c(a(B), {
514
- onClick: t[3] || (t[3] = (l) => m.value = !1),
530
+ footer: f(() => [
531
+ r(t(N), {
532
+ onClick: e[3] || (e[3] = (l) => h.value = !1),
515
533
  size: "default"
516
534
  }, {
517
- default: p(() => [
518
- _(D(e.$t("workSchedule.cancel")), 1)
535
+ default: f(() => [
536
+ C(D(a.$t("workSchedule.cancel")), 1)
519
537
  ]),
520
538
  _: 1
521
539
  }),
522
- c(a(B), {
540
+ r(t(N), {
523
541
  size: "default",
524
542
  type: "primary",
525
- onClick: z
543
+ onClick: O
526
544
  }, {
527
- default: p(() => [
528
- _(D(e.$t("workSchedule.select")), 1)
545
+ default: f(() => [
546
+ C(D(a.$t("workSchedule.select")), 1)
529
547
  ]),
530
548
  _: 1
531
549
  })
532
550
  ]),
533
- default: p(() => [
534
- c(a(ie), {
551
+ default: f(() => [
552
+ r(t(ie), {
535
553
  ref: "dialogForm",
536
- model: $.value,
554
+ model: I.value,
537
555
  autocomplete: "on"
538
556
  }, {
539
- default: p(() => [
540
- (y(!0), w(U, null, P($.value, (l) => (y(), T(a(re), null, {
541
- default: p(() => [
542
- c(a(ce), {
557
+ default: f(() => [
558
+ (m(!0), S(G, null, R(I.value, (l) => (m(), Y(t(re), null, {
559
+ default: f(() => [
560
+ r(t(ce), {
543
561
  modelValue: l.val,
544
- "onUpdate:modelValue": (E) => l.val = E,
562
+ "onUpdate:modelValue": (v) => l.val = v,
545
563
  "active-text": l.activeText
546
564
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-text"])
547
565
  ]),
@@ -553,46 +571,46 @@ const fe = (O, M) => {
553
571
  ]),
554
572
  _: 1
555
573
  }, 8, ["title", "modelValue"]),
556
- c(a(he), {
557
- show: V.value,
558
- "onUpdate:show": t[8] || (t[8] = (l) => V.value = l),
559
- options: L.value
574
+ r(t(he), {
575
+ show: M.value,
576
+ "onUpdate:show": e[8] || (e[8] = (l) => M.value = l),
577
+ options: P.value
560
578
  }, {
561
- default: p(() => [
562
- c(a(H), {
563
- label: i.value.level === 3 && typeof i.value.count < "u" ? i.value.name + " " + i.value.count + " " + a(d)("vacationSchedule.day", i.value.count) : i.value.name,
579
+ default: f(() => [
580
+ r(t(H), {
581
+ label: i.value.level === 3 && typeof i.value.count < "u" ? i.value.name + " " + i.value.count + " " + t(o)("vacationSchedule.day", i.value.count) : i.value.name,
564
582
  disabled: ""
565
583
  }, null, 8, ["label"]),
566
- c(a(pe)),
567
- i.value.level === 2 ? (y(), w("div", Ie, [
568
- i.value.length > 1 ? (y(), T(a(H), {
584
+ r(t(fe)),
585
+ i.value.level === 2 ? (m(), S("div", Ie, [
586
+ i.value.length > 1 ? (m(), Y(t(H), {
569
587
  key: 0,
570
- label: a(d)("vacationSchedule.deleteLast"),
571
- onClick: t[5] || (t[5] = (l) => r("delete"))
572
- }, null, 8, ["label"])) : Y("", !0),
573
- i.value.add ? (y(), T(a(H), {
588
+ label: t(o)("vacationSchedule.deleteLast"),
589
+ onClick: e[5] || (e[5] = (l) => L("delete"))
590
+ }, null, 8, ["label"])) : F("", !0),
591
+ i.value.add ? (m(), Y(t(H), {
574
592
  key: 1,
575
- label: a(d)("vacationSchedule.addVacation"),
576
- onClick: t[6] || (t[6] = (l) => r("add"))
577
- }, null, 8, ["label"])) : Y("", !0)
578
- ])) : (y(), w("div", Te, [
579
- c(Me, {
593
+ label: t(o)("vacationSchedule.addVacation"),
594
+ onClick: e[6] || (e[6] = (l) => L("add"))
595
+ }, null, 8, ["label"])) : F("", !0)
596
+ ])) : (m(), S("div", Te, [
597
+ r(Me, {
580
598
  data: i.value,
581
599
  range: "range",
582
- onInput: u
600
+ onInput: q
583
601
  }, null, 8, ["data"]),
584
- f("div", null, [
585
- c(a(B), {
586
- onClick: t[7] || (t[7] = (l) => V.value = !1)
602
+ p("div", null, [
603
+ r(t(N), {
604
+ onClick: e[7] || (e[7] = (l) => M.value = !1)
587
605
  }, {
588
- default: p(() => [
589
- _(D(a(d)("vacationSchedule.cancel")), 1)
606
+ default: f(() => [
607
+ C(D(t(o)("vacationSchedule.cancel")), 1)
590
608
  ]),
591
609
  _: 1
592
610
  }),
593
- c(a(B), { onClick: s }, {
594
- default: p(() => [
595
- _(D(a(d)("vacationSchedule.save")), 1)
611
+ r(t(N), { onClick: s }, {
612
+ default: f(() => [
613
+ C(D(t(o)("vacationSchedule.save")), 1)
596
614
  ]),
597
615
  _: 1
598
616
  })