dhtmlx-scheduler 7.2.1 → 7.2.2

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,6 +1,6 @@
1
1
  /** @license
2
2
 
3
- dhtmlxScheduler v.7.2.1 Standard
3
+ dhtmlxScheduler v.7.2.2 Standard
4
4
 
5
5
  To use dhtmlxScheduler in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxScheduler/#licensing or contact us at sales@dhtmlx.com
6
6
 
@@ -18,22 +18,29 @@ function St(e) {
18
18
  return l ? l.layout : d;
19
19
  }
20
20
  function _(d) {
21
- const { event: l, layout: c, viewName: f, sectionId: v, eventNode: p } = d;
22
- (function(m, y) {
21
+ const { event: l, layout: c, viewName: f, sectionId: m, eventNode: p } = d;
22
+ (function(v, y) {
23
23
  switch (y) {
24
24
  case "month":
25
- m.style.top = "", m.style.left = "";
25
+ v.style.top = "", v.style.left = "";
26
26
  break;
27
27
  case "timeline":
28
- m.style.left = "", m.style.marginLeft = "1px";
28
+ v.style.left = "", v.style.marginLeft = "1px";
29
29
  break;
30
30
  default:
31
- m.style.top = "";
31
+ v.style.top = "";
32
32
  }
33
33
  })(p, c);
34
34
  const h = {};
35
35
  let u = { start_date: l.start_date, end_date: l.end_date, css: "dhx_scheduler_dnd_marker", html: p };
36
- return c != "timeline" && c != "month" || (u = { ...u, end_date: e.date.add(l.start_date, 1, "minute") }), v && (h[f] = v, u.sections = h), u;
36
+ if (c == "timeline") {
37
+ const v = e.getView(f);
38
+ if (v.round_position) {
39
+ const y = e._get_date_index(v, l.start_date), w = v._trace_x[y];
40
+ u.start_date = w;
41
+ }
42
+ }
43
+ return c != "timeline" && c != "month" || (u = { ...u, end_date: e.date.add(l.start_date, 1, "minute") }), m && (h[f] = m, u.sections = h), u;
37
44
  }
38
45
  function a(d) {
39
46
  const { layout: l } = d;
@@ -41,8 +48,8 @@ function St(e) {
41
48
  switch (l) {
42
49
  case "month":
43
50
  c = function(f) {
44
- let v = [];
45
- const { event: p, layout: h, viewName: u, sectionId: m } = f, y = [];
51
+ let m = [];
52
+ const { event: p, layout: h, viewName: u, sectionId: v } = f, y = [];
46
53
  let w = new Date(p.start_date);
47
54
  for (; w.valueOf() < p.end_date.valueOf(); ) {
48
55
  let E = { start_date: w };
@@ -50,17 +57,17 @@ function St(e) {
50
57
  }
51
58
  let D = e.$container.querySelectorAll(`[${e.config.event_attribute}='${p.id}']`);
52
59
  for (let E = 0; E < D.length; E++) {
53
- const S = { event: y[E], layout: h, viewName: u, sectionId: m, eventNode: D[E].cloneNode(!0) };
54
- v.push(_(S));
60
+ const S = { event: y[E], layout: h, viewName: u, sectionId: v, eventNode: D[E].cloneNode(!0) };
61
+ m.push(_(S));
55
62
  }
56
- return v;
63
+ return m;
57
64
  }(d);
58
65
  break;
59
66
  case "timeline":
60
67
  case "units":
61
68
  c = function(f) {
62
- let v = [];
63
- const { event: p, layout: h, viewName: u, eventNode: m } = f;
69
+ let m = [];
70
+ const { event: p, layout: h, viewName: u, eventNode: v } = f;
64
71
  let y = function(w) {
65
72
  const D = e.getView(w);
66
73
  return D.y_property ? D.y_property : D.map_to ? D.map_to : void 0;
@@ -68,25 +75,25 @@ function St(e) {
68
75
  if (y) {
69
76
  const w = String(p[y]).split(e.config.section_delimiter).map((E) => String(E)), D = [];
70
77
  for (let E = 0; E < w.length; E++) {
71
- D[E] = m.cloneNode(!0);
78
+ D[E] = v.cloneNode(!0);
72
79
  const S = { event: p, layout: h, viewName: u, sectionId: w[E], eventNode: D[E] };
73
- v.push(_(S));
80
+ m.push(_(S));
74
81
  }
75
82
  }
76
- return v;
83
+ return m;
77
84
  }(d);
78
85
  break;
79
86
  default:
80
87
  c = function(f) {
81
- const { event: v, layout: p, viewName: h, sectionId: u } = f;
82
- let m = [], y = e.$container.querySelectorAll(`[${e.config.event_attribute}='${v.id}']:not(.dhx_cal_select_menu):not(.dhx_drag_marker)`);
88
+ const { event: m, layout: p, viewName: h, sectionId: u } = f;
89
+ let v = [], y = e.$container.querySelectorAll(`[${e.config.event_attribute}='${m.id}']:not(.dhx_cal_select_menu):not(.dhx_drag_marker)`);
83
90
  if (y)
84
91
  for (let w = 0; w < y.length; w++) {
85
92
  let D = y[w].cloneNode(!0);
86
93
  const E = { event: { start_date: /* @__PURE__ */ new Date(+D.getAttribute("data-bar-start")), end_date: /* @__PURE__ */ new Date(+D.getAttribute("data-bar-end")) }, layout: p, viewName: h, sectionId: u, eventNode: D };
87
- m.push(_(E));
94
+ v.push(_(E));
88
95
  }
89
- return m;
96
+ return v;
90
97
  }(d);
91
98
  }
92
99
  c.forEach((f) => {
@@ -98,8 +105,8 @@ function St(e) {
98
105
  }), e.attachEvent("onEventDrag", function(d, l, c) {
99
106
  if (t && n()) {
100
107
  t = !1;
101
- const f = e.getState().mode, v = o(f), p = e.getActionData(c).section;
102
- s && a({ event: s, layout: v, viewName: f, sectionId: p, eventNode: r });
108
+ const f = e.getState().mode, m = o(f), p = e.getActionData(c).section;
109
+ s && a({ event: s, layout: m, viewName: f, sectionId: p, eventNode: r });
103
110
  }
104
111
  }), e.attachEvent("onDragEnd", function(d, l, c) {
105
112
  for (let f = 0; f < i.length; f++)
@@ -117,11 +124,11 @@ function Mt(e) {
117
124
  };
118
125
  function s(n, o, _, a, d) {
119
126
  var l = e, c = [], f = { _props: "map_to", matrix: "y_property" };
120
- for (var v in f) {
121
- var p = f[v];
122
- if (l[v])
123
- for (var h in l[v]) {
124
- var u = l[v][h][p];
127
+ for (var m in f) {
128
+ var p = f[m];
129
+ if (l[m])
130
+ for (var h in l[m]) {
131
+ var u = l[m][h][p];
125
132
  n[u] && (c = l._add_timespan_zones(c, e._get_blocked_zones(o[h], n[u], _, a, d)));
126
133
  }
127
134
  }
@@ -136,11 +143,11 @@ function Mt(e) {
136
143
  }, e.checkInMarkedTimespan = function(n, o, _) {
137
144
  o = o || t;
138
145
  for (var a = !0, d = new Date(n.start_date.valueOf()), l = e.date.add(d, 1, "day"), c = e._marked_timespans; d < n.end_date; d = e.date.date_part(l), l = e.date.add(d, 1, "day")) {
139
- var f = +e.date.date_part(new Date(d)), v = s(n, c, d.getDay(), f, o);
140
- if (v)
141
- for (var p = 0; p < v.length; p += 2) {
142
- var h = e._get_zone_minutes(d), u = n.end_date > l || n.end_date.getDate() != d.getDate() ? 1440 : e._get_zone_minutes(n.end_date), m = v[p], y = v[p + 1];
143
- if (m < u && y > h && !(a = typeof _ == "function" && _(n, h, u, m, y)))
146
+ var f = +e.date.date_part(new Date(d)), m = s(n, c, d.getDay(), f, o);
147
+ if (m)
148
+ for (var p = 0; p < m.length; p += 2) {
149
+ var h = e._get_zone_minutes(d), u = n.end_date > l || n.end_date.getDate() != d.getDate() ? 1440 : e._get_zone_minutes(n.end_date), v = m[p], y = m[p + 1];
150
+ if (v < u && y > h && !(a = typeof _ == "function" && _(n, h, u, v, y)))
144
151
  break;
145
152
  }
146
153
  }
@@ -150,23 +157,23 @@ function Mt(e) {
150
157
  return !0;
151
158
  var o = e, _ = o.config, a = [];
152
159
  if (n.rec_type && n._end_date || n.rrule) {
153
- const v = n._end_date || n.end_date;
154
- return !_.limit_start || !_.limit_end || v.valueOf() >= _.limit_start.valueOf() && n.start_date.valueOf() <= _.limit_end.valueOf();
160
+ const m = n._end_date || n.end_date;
161
+ return !_.limit_start || !_.limit_end || m.valueOf() >= _.limit_start.valueOf() && n.start_date.valueOf() <= _.limit_end.valueOf();
155
162
  }
156
163
  a = [n];
157
164
  for (var d = !0, l = 0; l < a.length; l++) {
158
165
  var c = !0, f = a[l];
159
- f._timed = e.isOneDayEvent(f), (c = !_.limit_start || !_.limit_end || f.start_date.valueOf() >= _.limit_start.valueOf() && f.end_date.valueOf() <= _.limit_end.valueOf()) && (c = !e.checkInMarkedTimespan(f, i, function(v, p, h, u, m) {
166
+ f._timed = e.isOneDayEvent(f), (c = !_.limit_start || !_.limit_end || f.start_date.valueOf() >= _.limit_start.valueOf() && f.end_date.valueOf() <= _.limit_end.valueOf()) && (c = !e.checkInMarkedTimespan(f, i, function(m, p, h, u, v) {
160
167
  var y = !0;
161
- return p <= m && p >= u && ((m == 1440 || h <= m) && (y = !1), v._timed && o._drag_id && o._drag_mode == "new-size" ? (v.start_date.setHours(0), v.start_date.setMinutes(m)) : y = !1), (h >= u && h <= m || p < u && h > m) && (v._timed && o._drag_id && o._drag_mode == "new-size" ? (v.end_date.setHours(0), v.end_date.setMinutes(u)) : y = !1), y;
168
+ return p <= v && p >= u && ((v == 1440 || h <= v) && (y = !1), m._timed && o._drag_id && o._drag_mode == "new-size" ? (m.start_date.setHours(0), m.start_date.setMinutes(v)) : y = !1), (h >= u && h <= v || p < u && h > v) && (m._timed && o._drag_id && o._drag_mode == "new-size" ? (m.end_date.setHours(0), m.end_date.setMinutes(u)) : y = !1), y;
162
169
  })), c || (c = o.checkEvent("onLimitViolation") ? o.callEvent("onLimitViolation", [f.id, f]) : c), d = d && c;
163
170
  }
164
171
  return d || (o._drag_id = null, o._drag_mode = null), d;
165
172
  }, e._get_blocked_zones = function(n, o, _, a, d) {
166
173
  var l = [];
167
174
  if (n && n[o])
168
- for (var c = n[o], f = this._get_relevant_blocked_zones(_, a, c, d), v = 0; v < f.length; v++)
169
- l = this._add_timespan_zones(l, f[v].zones);
175
+ for (var c = n[o], f = this._get_relevant_blocked_zones(_, a, c, d), m = 0; m < f.length; m++)
176
+ l = this._add_timespan_zones(l, f[m].zones);
170
177
  return l;
171
178
  }, e._get_relevant_blocked_zones = function(n, o, _, a) {
172
179
  var d;
@@ -183,13 +190,13 @@ function Mt(e) {
183
190
  var _ = "dhx_now_time", a = e._get_zone_minutes(o), d = { zones: [a, a + 1], css: _, type: _ };
184
191
  if (!this._table_view) {
185
192
  if (this._props && this._props[this._mode]) {
186
- var l, c, f = this._props[this._mode], v = f.size || f.options.length;
187
- f.days > 1 ? (f.size && f.options.length && (n = (f.position + n) / f.options.length * f.size), l = n, c = n + v) : c = (l = 0) + v;
193
+ var l, c, f = this._props[this._mode], m = f.size || f.options.length;
194
+ f.days > 1 ? (f.size && f.options.length && (n = (f.position + n) / f.options.length * f.size), l = n, c = n + m) : c = (l = 0) + m;
188
195
  for (var p = [], h = l; h < c; h++) {
189
196
  var u = h;
190
197
  d.days = u;
191
- var m = e._render_marked_timespan(d, null, u)[0];
192
- p.push(m);
198
+ var v = e._render_marked_timespan(d, null, u)[0];
199
+ p.push(v);
193
200
  }
194
201
  return p;
195
202
  }
@@ -221,19 +228,19 @@ function Mt(e) {
221
228
  if (c) {
222
229
  for (var f in c)
223
230
  if (c.hasOwnProperty(f)) {
224
- var v = c[f];
225
- for (v instanceof Array || (v = [v]), d = 0; d < v.length; d++)
226
- (D = e._lame_copy({}, n)).sections = {}, D.sections[f] = v[d], _.push(D);
231
+ var m = c[f];
232
+ for (m instanceof Array || (m = [m]), d = 0; d < m.length; d++)
233
+ (D = e._lame_copy({}, n)).sections = {}, D.sections[f] = m[d], _.push(D);
227
234
  }
228
235
  } else
229
236
  _.push(n);
230
237
  for (var p = 0; p < _.length; p++) {
231
- var h = _[p], u = h.start_date, m = h.end_date;
232
- if (u && m)
233
- for (var y = e.date.date_part(new Date(u)), w = e.date.add(y, 1, "day"); y < m; ) {
238
+ var h = _[p], u = h.start_date, v = h.end_date;
239
+ if (u && v)
240
+ for (var y = e.date.date_part(new Date(u)), w = e.date.add(y, 1, "day"); y < v; ) {
234
241
  var D;
235
242
  delete (D = e._lame_copy({}, h)).start_date, delete D.end_date, D.days = y.valueOf();
236
- var E = u > y ? e._get_zone_minutes(u) : 0, S = m > w || m.getDate() != y.getDate() ? 1440 : e._get_zone_minutes(m);
243
+ var E = u > y ? e._get_zone_minutes(u) : 0, S = v > w || v.getDate() != y.getDate() ? 1440 : e._get_zone_minutes(v);
237
244
  D.zones = [E, S], o.push(D), y = w, w = e.date.add(w, 1, "day");
238
245
  }
239
246
  else
@@ -260,26 +267,26 @@ function Mt(e) {
260
267
  if (n.days < 7)
261
268
  _ = n.days;
262
269
  else {
263
- var v = new Date(n.days);
264
- if (f = +v, !(+c > +v && +l <= +v))
270
+ var m = new Date(n.days);
271
+ if (f = +m, !(+c > +m && +l <= +m))
265
272
  return a;
266
- _ = v.getDay();
273
+ _ = m.getDay();
267
274
  }
268
275
  var p = l.getDay();
269
276
  p > _ ? _ = 7 - (p - _) : _ -= p;
270
277
  }
271
278
  var h = n.zones, u = e._get_css_classes_by_config(n);
272
279
  if (e._table_view && e._mode == "month") {
273
- var m = [], y = [];
280
+ var v = [], y = [];
274
281
  if (o)
275
- m.push(o), y.push(_);
282
+ v.push(o), y.push(_);
276
283
  else {
277
284
  y = f ? [f] : e._get_dates_by_index(_);
278
285
  for (var w = 0; w < y.length; w++)
279
- m.push(this._scales[y[w]]);
286
+ v.push(this._scales[y[w]]);
280
287
  }
281
- for (w = 0; w < m.length; w++) {
282
- o = m[w], _ = y[w];
288
+ for (w = 0; w < v.length; w++) {
289
+ o = v[w], _ = y[w];
283
290
  var D = this.locate_holder_day(_, !1) % this._cols.length;
284
291
  if (!this._ignores[D]) {
285
292
  var E = e._get_block_by_config(n);
@@ -350,10 +357,10 @@ function Mt(e) {
350
357
  d[a] || (d[a] = []);
351
358
  var l = n.days, c = n.sections, f = n.type;
352
359
  if (n.id = a, c) {
353
- for (var v in c)
354
- if (c.hasOwnProperty(v)) {
355
- _[v] || (_[v] = {});
356
- var p = c[v], h = _[v];
360
+ for (var m in c)
361
+ if (c.hasOwnProperty(m)) {
362
+ _[m] || (_[m] = {});
363
+ var p = c[m], h = _[m];
357
364
  h[p] || (h[p] = {}), h[p][l] || (h[p][l] = {}), h[p][l][f] || (h[p][l][f] = [], e._marked_timespans_types || (e._marked_timespans_types = {}), e._marked_timespans_types[f] || (e._marked_timespans_types[f] = !0));
358
365
  var u = h[p][l][f];
359
366
  n._array = u, u.push(n), d[a].push(n);
@@ -373,14 +380,14 @@ function Mt(e) {
373
380
  return o;
374
381
  for (var a = 0; a < _.length; a += 2)
375
382
  for (var d = _[a], l = _[a + 1], c = a + 2 == _.length, f = 0; f < o.length; f += 2) {
376
- var v = o[f], p = o[f + 1];
377
- if (p > l && v <= l || v < d && p >= d)
378
- _[a] = Math.min(d, v), _[a + 1] = Math.max(l, p), a -= 2;
383
+ var m = o[f], p = o[f + 1];
384
+ if (p > l && m <= l || m < d && p >= d)
385
+ _[a] = Math.min(d, m), _[a + 1] = Math.max(l, p), a -= 2;
379
386
  else {
380
387
  if (!c)
381
388
  continue;
382
- var h = d > v ? 0 : 2;
383
- _.splice(a + h, 0, v, p);
389
+ var h = d > m ? 0 : 2;
390
+ _.splice(a + h, 0, m, p);
384
391
  }
385
392
  o.splice(f--, 2);
386
393
  break;
@@ -389,10 +396,10 @@ function Mt(e) {
389
396
  }, e._subtract_timespan_zones = function(n, o) {
390
397
  for (var _ = n.slice(), a = 0; a < _.length; a += 2)
391
398
  for (var d = _[a], l = _[a + 1], c = 0; c < o.length; c += 2) {
392
- var f = o[c], v = o[c + 1];
393
- if (v > d && f < l) {
399
+ var f = o[c], m = o[c + 1];
400
+ if (m > d && f < l) {
394
401
  var p = !1;
395
- d >= f && l <= v && _.splice(a, 2), d < f && (_.splice(a, 2, d, f), p = !0), l > v && _.splice(p ? a + 2 : a, p ? 0 : 2, v, l), a -= 2;
402
+ d >= f && l <= m && _.splice(a, 2), d < f && (_.splice(a, 2, d, f), p = !0), l > m && _.splice(p ? a + 2 : a, p ? 0 : 2, m, l), a -= 2;
396
403
  break;
397
404
  }
398
405
  }
@@ -423,10 +430,10 @@ function Mt(e) {
423
430
  if (d !== void 0)
424
431
  o[d] && o[d][l] && (e._addMarkerTimespanConfig(n), e._delete_marked_timespans_list(o[d][l], n));
425
432
  else
426
- for (var v in o)
427
- if (o[v][l]) {
433
+ for (var m in o)
434
+ if (o[m][l]) {
428
435
  var p = e._lame_clone(n);
429
- n.days = v, e._addMarkerTimespanConfig(p), e._delete_marked_timespans_list(o[v][l], n);
436
+ n.days = m, e._addMarkerTimespanConfig(p), e._delete_marked_timespans_list(o[m][l], n);
430
437
  }
431
438
  }
432
439
  }, e._delete_marked_timespans_list = function(n, o) {
@@ -474,10 +481,10 @@ function Mt(e) {
474
481
  if (!e._table_view || e._mode == "month") {
475
482
  var _ = o.getDay(), a = o.valueOf(), d = this._mode, l = e._marked_timespans, c = [], f = [];
476
483
  if (this._props && this._props[d]) {
477
- var v = this._props[d], p = v.options, h = p[e._get_unit_index(v, o)];
478
- if (v.days > 1) {
479
- var u = Math.round((o - e._min_date) / 864e5), m = v.size || p.length;
480
- o = e.date.add(e._min_date, Math.floor(u / m), "day"), o = e.date.date_part(o);
484
+ var m = this._props[d], p = m.options, h = p[e._get_unit_index(m, o)];
485
+ if (m.days > 1) {
486
+ var u = Math.round((o - e._min_date) / 864e5), v = m.size || p.length;
487
+ o = e.date.add(e._min_date, Math.floor(u / v), "day"), o = e.date.date_part(o);
481
488
  } else
482
489
  o = e.date.date_part(new Date(this._date));
483
490
  if (_ = o.getDay(), a = o.valueOf(), l[d] && l[d][h.key]) {
@@ -532,15 +539,15 @@ function Nt(e) {
532
539
  return void _(a);
533
540
  var l, c = this._dp && this._dp.updateMode != "off";
534
541
  c && (l = this._dp.updateMode, this._dp.setUpdateMode("off"));
535
- const f = { setModeDate: { date: null, mode: null }, needRender: !1, needUpdateView: !1, repaintEvents: {} }, v = (h, u) => {
542
+ const f = { setModeDate: { date: null, mode: null }, needRender: !1, needUpdateView: !1, repaintEvents: {} }, m = (h, u) => {
536
543
  h && (f.setModeDate.date = h), u && (f.setModeDate.mode = u);
537
544
  };
538
545
  var p = { render: (h, u) => {
539
- f.needRender = !0, v(h, u);
546
+ f.needRender = !0, m(h, u);
540
547
  }, setCurrentView: (h, u) => {
541
- f.needRender = !0, v(h, u);
548
+ f.needRender = !0, m(h, u);
542
549
  }, updateView: (h, u) => {
543
- f.needUpdateView = !0, v(h, u);
550
+ f.needUpdateView = !0, m(h, u);
544
551
  }, render_data: () => f.needRender = !0, render_view_data: (h) => {
545
552
  h && h.length ? h.forEach((u) => f.repaintEvents[u.id] = !0) : f.needRender = !0;
546
553
  } };
@@ -879,7 +886,7 @@ function $t(e) {
879
886
  }, d = function(p) {
880
887
  var h = i("dhx_minical_icon");
881
888
  return p.click || h.$_eventAttached || e.event(h, "click", function() {
882
- e.isCalendarVisible() ? e.destroyCalendar() : e.renderCalendar({ position: this, date: e.getState().date, navigation: !0, handler: function(u, m) {
889
+ e.isCalendarVisible() ? e.destroyCalendar() : e.renderCalendar({ position: this, date: e.getState().date, navigation: !0, handler: function(u, v) {
883
890
  e.setCurrentView(u), e.destroyCalendar();
884
891
  } });
885
892
  }), h;
@@ -915,9 +922,9 @@ function $t(e) {
915
922
  }(p);
916
923
  if (h) {
917
924
  var u = h(p);
918
- if (p.css && u.classList.add(p.css), p.width && ((m = p.width) === 1 * m && (m += "px"), u.style.width = m), p.height && ((m = p.height) === 1 * m && (m += "px"), u.style.height = m), p.click && e.event(u, "click", p.click), p.html && (u.innerHTML = p.html), p.align) {
919
- var m = "";
920
- p.align == "right" ? m = "flex-end" : p.align == "left" && (m = "flex-start"), u.style.justifyContent = m;
925
+ if (p.css && u.classList.add(p.css), p.width && ((v = p.width) === 1 * v && (v += "px"), u.style.width = v), p.height && ((v = p.height) === 1 * v && (v += "px"), u.style.height = v), p.click && e.event(u, "click", p.click), p.html && (u.innerHTML = p.html), p.align) {
926
+ var v = "";
927
+ p.align == "right" ? v = "flex-end" : p.align == "left" && (v = "flex-start"), u.style.justifyContent = v;
921
928
  }
922
929
  return u;
923
930
  }
@@ -928,9 +935,9 @@ function $t(e) {
928
935
  function f(p) {
929
936
  var h, u = document.createDocumentFragment();
930
937
  h = Array.isArray(p) ? p : [p];
931
- for (var m = 0; m < h.length; m++) {
932
- var y, w = c(h[m]);
933
- w.view === "day" && h[m + 1] && ((y = c(h[m + 1])).view !== "week" && y.view !== "month" || (w.$firstTab = !0, w.$segmentedTab = !0)), w.view === "week" && h[m - 1] && ((y = c(h[m + 1])).view !== "week" && y.view !== "month" || (w.$segmentedTab = !0)), w.view === "month" && h[m - 1] && ((y = c(h[m - 1])).view !== "week" && y.view !== "day" || (w.$lastTab = !0, w.$segmentedTab = !0));
938
+ for (var v = 0; v < h.length; v++) {
939
+ var y, w = c(h[v]);
940
+ w.view === "day" && h[v + 1] && ((y = c(h[v + 1])).view !== "week" && y.view !== "month" || (w.$firstTab = !0, w.$segmentedTab = !0)), w.view === "week" && h[v - 1] && ((y = c(h[v + 1])).view !== "week" && y.view !== "month" || (w.$segmentedTab = !0)), w.view === "month" && h[v - 1] && ((y = c(h[v - 1])).view !== "week" && y.view !== "day" || (w.$lastTab = !0, w.$segmentedTab = !0));
934
941
  var D = l(w);
935
942
  u.appendChild(D), (w.cols || w.rows) && D.appendChild(f(w.cols || w.rows));
936
943
  }
@@ -940,11 +947,11 @@ function $t(e) {
940
947
  var h = this.$container.querySelector(".dhx_cal_navline");
941
948
  return h || ((h = document.createElement("div")).className = "dhx_cal_navline dhx_cal_navline_flex", e._update_nav_bar(p, h), h);
942
949
  };
943
- var v = null;
950
+ var m = null;
944
951
  e._update_nav_bar = function(p, h) {
945
952
  if (p) {
946
- var u = !1, m = p.height || e.xy.nav_height;
947
- v !== null && v === m || (u = !0), u && (e.xy.nav_height = m), h.innerHTML = "", h.appendChild(f(p)), e.unset_actions(), e._els = [], e.get_elements(), e.set_actions(), h.style.display = m === 0 ? "none" : "", v = m;
953
+ var u = !1, v = p.height || e.xy.nav_height;
954
+ m !== null && m === v || (u = !0), u && (e.xy.nav_height = v), h.innerHTML = "", h.appendChild(f(p)), e.unset_actions(), e._els = [], e.get_elements(), e.set_actions(), h.style.display = v === 0 ? "none" : "", m = v;
948
955
  }
949
956
  };
950
957
  }
@@ -1018,9 +1025,9 @@ function Ve(e) {
1018
1025
  if (typeof l == "function") {
1019
1026
  let f;
1020
1027
  if (c && c.id ? f = c.id : (f = a, a++), c && c.once) {
1021
- const v = l;
1028
+ const m = l;
1022
1029
  l = function() {
1023
- v(), d.removeEvent(f);
1030
+ m(), d.removeEvent(f);
1024
1031
  };
1025
1032
  }
1026
1033
  return _[f] = l, f;
@@ -1201,8 +1208,8 @@ const ce = { getAbsoluteLeft: function(e) {
1201
1208
  var t = document.documentElement, r = function(s) {
1202
1209
  var n = 0, o = 0, _ = 0, a = 0;
1203
1210
  if (s.getBoundingClientRect) {
1204
- var d = s.getBoundingClientRect(), l = document.body, c = document.documentElement || document.body.parentNode || document.body, f = window.pageYOffset || c.scrollTop || l.scrollTop, v = window.pageXOffset || c.scrollLeft || l.scrollLeft, p = c.clientTop || l.clientTop || 0, h = c.clientLeft || l.clientLeft || 0;
1205
- n = d.top + f - p, o = d.left + v - h, _ = document.body.offsetWidth - d.right, a = document.body.offsetHeight - d.bottom;
1211
+ var d = s.getBoundingClientRect(), l = document.body, c = document.documentElement || document.body.parentNode || document.body, f = window.pageYOffset || c.scrollTop || l.scrollTop, m = window.pageXOffset || c.scrollLeft || l.scrollLeft, p = c.clientTop || l.clientTop || 0, h = c.clientLeft || l.clientLeft || 0;
1212
+ n = d.top + f - p, o = d.left + m - h, _ = document.body.offsetWidth - d.right, a = document.body.offsetHeight - d.bottom;
1206
1213
  } else {
1207
1214
  for (; s; )
1208
1215
  n += parseInt(s.offsetTop, 10), o += parseInt(s.offsetLeft, 10), s = s.offsetParent;
@@ -1508,30 +1515,30 @@ function Vt(e) {
1508
1515
  }
1509
1516
  }), o && (n = n.replace(/date\.get/g, "date.getUTC")), new Function("date", 'return "' + n + '";').bind(e));
1510
1517
  }, str_to_date: function(n, o, _) {
1511
- var a = s() ? t : i, d = a(n, o), l = /^[0-9]{4}(\-|\/)[0-9]{2}(\-|\/)[0-9]{2} ?(([0-9]{1,2}:[0-9]{1,2})(:[0-9]{1,2})?)?$/, c = /^[0-9]{2}\/[0-9]{2}\/[0-9]{4} ?(([0-9]{1,2}:[0-9]{2})(:[0-9]{1,2})?)?$/, f = /^[0-9]{2}\-[0-9]{2}\-[0-9]{4} ?(([0-9]{1,2}:[0-9]{1,2})(:[0-9]{1,2})?)?$/, v = /^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/, p = a("%Y-%m-%d %H:%i:%s", o), h = a("%m/%d/%Y %H:%i:%s", o), u = a("%d-%m-%Y %H:%i:%s", o);
1512
- return function(m) {
1518
+ var a = s() ? t : i, d = a(n, o), l = /^[0-9]{4}(\-|\/)[0-9]{2}(\-|\/)[0-9]{2} ?(([0-9]{1,2}:[0-9]{1,2})(:[0-9]{1,2})?)?$/, c = /^[0-9]{2}\/[0-9]{2}\/[0-9]{4} ?(([0-9]{1,2}:[0-9]{2})(:[0-9]{1,2})?)?$/, f = /^[0-9]{2}\-[0-9]{2}\-[0-9]{4} ?(([0-9]{1,2}:[0-9]{1,2})(:[0-9]{1,2})?)?$/, m = /^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/, p = a("%Y-%m-%d %H:%i:%s", o), h = a("%m/%d/%Y %H:%i:%s", o), u = a("%d-%m-%Y %H:%i:%s", o);
1519
+ return function(v) {
1513
1520
  if (!_ && !e.config.parse_exact_format) {
1514
- if (m && m.getISOWeek)
1515
- return new Date(m);
1516
- if (typeof m == "number")
1517
- return new Date(m);
1518
- if (y = m, l.test(String(y)))
1519
- return p(m);
1521
+ if (v && v.getISOWeek)
1522
+ return new Date(v);
1523
+ if (typeof v == "number")
1524
+ return new Date(v);
1525
+ if (y = v, l.test(String(y)))
1526
+ return p(v);
1520
1527
  if (function(w) {
1521
1528
  return c.test(String(w));
1522
- }(m))
1523
- return h(m);
1529
+ }(v))
1530
+ return h(v);
1524
1531
  if (function(w) {
1525
1532
  return f.test(String(w));
1526
- }(m))
1527
- return u(m);
1533
+ }(v))
1534
+ return u(v);
1528
1535
  if (function(w) {
1529
- return v.test(w);
1530
- }(m))
1531
- return new Date(m);
1536
+ return m.test(w);
1537
+ }(v))
1538
+ return new Date(v);
1532
1539
  }
1533
1540
  var y;
1534
- return d.call(e, m);
1541
+ return d.call(e, v);
1535
1542
  };
1536
1543
  }, getISOWeek: function(n) {
1537
1544
  if (!n)
@@ -1605,18 +1612,18 @@ function Ft(e) {
1605
1612
  var a = o[_].getAttribute("for"), d = t.serverList[a];
1606
1613
  d || (t.serverList[a] = d = []), d.splice(0, d.length);
1607
1614
  for (var l = t.ajax.xpath(".//item", o[_]), c = 0; c < l.length; c++) {
1608
- for (var f = l[c].attributes, v = { key: l[c].getAttribute("value"), label: l[c].getAttribute("label") }, p = 0; p < f.length; p++) {
1615
+ for (var f = l[c].attributes, m = { key: l[c].getAttribute("value"), label: l[c].getAttribute("label") }, p = 0; p < f.length; p++) {
1609
1616
  var h = f[p];
1610
- h.nodeName != "value" && h.nodeName != "label" && (v[h.nodeName] = h.nodeValue);
1617
+ h.nodeName != "value" && h.nodeName != "label" && (m[h.nodeName] = h.nodeValue);
1611
1618
  }
1612
- d.push(v);
1619
+ d.push(m);
1613
1620
  }
1614
1621
  }
1615
1622
  o.length && t.callEvent("onOptionsLoad", []);
1616
1623
  var u = t.ajax.xpath("//userdata", r.xmlDoc);
1617
1624
  for (_ = 0; _ < u.length; _++) {
1618
- var m = t._xmlNodeToJSON(u[_]);
1619
- t._userdata[m.name] = m.text;
1625
+ var v = t._xmlNodeToJSON(u[_]);
1626
+ t._userdata[v.name] = v.text;
1620
1627
  }
1621
1628
  var y = [];
1622
1629
  for (s = t.ajax.xpath("//event", r.xmlDoc), _ = 0; _ < s.length; _++) {
@@ -1648,11 +1655,11 @@ function Ft(e) {
1648
1655
  d || (t.serverList[_] = d = []), d.splice(0, d.length);
1649
1656
  for (var l = 0; l < a.length; l++) {
1650
1657
  var c = a[l], f = { key: c.value, label: c.label };
1651
- for (var v in c)
1652
- if (c.hasOwnProperty(v)) {
1653
- if (v == "value" || v == "label")
1658
+ for (var m in c)
1659
+ if (c.hasOwnProperty(m)) {
1660
+ if (m == "value" || m == "label")
1654
1661
  continue;
1655
- f[v] = c[v];
1662
+ f[m] = c[m];
1656
1663
  }
1657
1664
  d.push(f);
1658
1665
  }
@@ -1792,48 +1799,48 @@ function Bt(e) {
1792
1799
  }
1793
1800
  }, e._touch_events = function(i, t, r) {
1794
1801
  var s, n, o, _, a, d, l = 0;
1795
- function c(v, p, h) {
1796
- e.event(v, p, function(u) {
1802
+ function c(m, p, h) {
1803
+ e.event(m, p, function(u) {
1797
1804
  return !!e._is_lightbox_open() || (r(u) ? void 0 : h(u));
1798
1805
  }, { passive: !1 });
1799
1806
  }
1800
- function f(v) {
1801
- r(v) || (e._hide_global_tip(), _ && (e._on_mouse_up(t(v)), e._temp_touch_block = !1), e._drag_id = null, e._drag_mode = null, e._drag_pos = null, e._pointerDragId = null, clearTimeout(o), _ = d = !1, a = !0);
1807
+ function f(m) {
1808
+ r(m) || (e._hide_global_tip(), _ && (e._on_mouse_up(t(m)), e._temp_touch_block = !1), e._drag_id = null, e._drag_mode = null, e._drag_pos = null, e._pointerDragId = null, clearTimeout(o), _ = d = !1, a = !0);
1802
1809
  }
1803
- c(document.body, i[0], function(v) {
1804
- if (!r(v)) {
1805
- var p = t(v);
1810
+ c(document.body, i[0], function(m) {
1811
+ if (!r(m)) {
1812
+ var p = t(m);
1806
1813
  if (p) {
1807
1814
  if (_)
1808
1815
  return function(h) {
1809
1816
  if (!r(h)) {
1810
- var u = e.getState().drag_mode, m = !!e.matrix && e.matrix[e._mode], y = e.render_view_data;
1811
- u == "create" && m && (e.render_view_data = function() {
1812
- for (var w = e.getState().drag_id, D = e.getEvent(w), E = m.y_property, S = e.getEvents(D.start_date, D.end_date), g = 0; g < S.length; g++)
1817
+ var u = e.getState().drag_mode, v = !!e.matrix && e.matrix[e._mode], y = e.render_view_data;
1818
+ u == "create" && v && (e.render_view_data = function() {
1819
+ for (var w = e.getState().drag_id, D = e.getEvent(w), E = v.y_property, S = e.getEvents(D.start_date, D.end_date), g = 0; g < S.length; g++)
1813
1820
  S[g][E] != D[E] && (S.splice(g, 1), g--);
1814
1821
  D._sorder = S.length - 1, D._count = S.length, this.render_data([D], e.getState().mode);
1815
- }), e._on_mouse_move(h), u == "create" && m && (e.render_view_data = y), h.preventDefault && h.preventDefault(), h.cancelBubble = !0;
1822
+ }), e._on_mouse_move(h), u == "create" && v && (e.render_view_data = y), h.preventDefault && h.preventDefault(), h.cancelBubble = !0;
1816
1823
  }
1817
- }(p), v.preventDefault && v.preventDefault(), v.cancelBubble = !0, e._update_global_tip(), !1;
1818
- n = t(v), d && (n ? (s.target != n.target || Math.abs(s.pageX - n.pageX) > 5 || Math.abs(s.pageY - n.pageY) > 5) && (a = !0, clearTimeout(o)) : a = !0);
1824
+ }(p), m.preventDefault && m.preventDefault(), m.cancelBubble = !0, e._update_global_tip(), !1;
1825
+ n = t(m), d && (n ? (s.target != n.target || Math.abs(s.pageX - n.pageX) > 5 || Math.abs(s.pageY - n.pageY) > 5) && (a = !0, clearTimeout(o)) : a = !0);
1819
1826
  }
1820
1827
  }
1821
- }), c(this._els.dhx_cal_data[0], "touchcancel", f), c(this._els.dhx_cal_data[0], "contextmenu", function(v) {
1822
- if (!r(v))
1823
- return d ? (v && v.preventDefault && v.preventDefault(), v.cancelBubble = !0, !1) : void 0;
1824
- }), c(this._obj, i[1], function(v) {
1828
+ }), c(this._els.dhx_cal_data[0], "touchcancel", f), c(this._els.dhx_cal_data[0], "contextmenu", function(m) {
1829
+ if (!r(m))
1830
+ return d ? (m && m.preventDefault && m.preventDefault(), m.cancelBubble = !0, !1) : void 0;
1831
+ }), c(this._obj, i[1], function(m) {
1825
1832
  var p;
1826
- if (document && document.body && document.body.classList.add("dhx_cal_touch_active"), !r(v))
1827
- if (e._pointerDragId = v.pointerId, _ = a = !1, d = !0, p = n = t(v)) {
1833
+ if (document && document.body && document.body.classList.add("dhx_cal_touch_active"), !r(m))
1834
+ if (e._pointerDragId = m.pointerId, _ = a = !1, d = !0, p = n = t(m)) {
1828
1835
  var h = /* @__PURE__ */ new Date();
1829
1836
  if (!a && !_ && h - l < 250)
1830
1837
  return e._click.dhx_cal_data(p), window.setTimeout(function() {
1831
1838
  e.$destroyed || e._on_dbl_click(p);
1832
- }, 50), v.preventDefault && v.preventDefault(), v.cancelBubble = !0, e._block_next_stop = !0, !1;
1839
+ }, 50), m.preventDefault && m.preventDefault(), m.cancelBubble = !0, e._block_next_stop = !0, !1;
1833
1840
  if (l = h, !a && !_ && e.config.touch_drag) {
1834
- var u = e._locate_event(document.activeElement), m = e._locate_event(p.target), y = s ? e._locate_event(s.target) : null;
1835
- if (u && m && u == m && u != y)
1836
- return v.preventDefault && v.preventDefault(), v.cancelBubble = !0, e._ignore_next_click = !1, e._click.dhx_cal_data(p), s = p, !1;
1841
+ var u = e._locate_event(document.activeElement), v = e._locate_event(p.target), y = s ? e._locate_event(s.target) : null;
1842
+ if (u && v && u == v && u != y)
1843
+ return m.preventDefault && m.preventDefault(), m.cancelBubble = !0, e._ignore_next_click = !1, e._click.dhx_cal_data(p), s = p, !1;
1837
1844
  o = setTimeout(function() {
1838
1845
  if (!e.$destroyed) {
1839
1846
  _ = !0;
@@ -1846,9 +1853,9 @@ function Bt(e) {
1846
1853
  }
1847
1854
  } else
1848
1855
  a = !0;
1849
- }), c(this._els.dhx_cal_data[0], i[2], function(v) {
1850
- if (document && document.body && document.body.classList.remove("dhx_cal_touch_active"), !r(v))
1851
- return e.config.touch_swipe_dates && !_ && function(p, h, u, m) {
1856
+ }), c(this._els.dhx_cal_data[0], i[2], function(m) {
1857
+ if (document && document.body && document.body.classList.remove("dhx_cal_touch_active"), !r(m))
1858
+ return e.config.touch_swipe_dates && !_ && function(p, h, u, v) {
1852
1859
  if (!p || !h)
1853
1860
  return !1;
1854
1861
  for (var y = p.target; y && y != e._obj; )
@@ -1856,10 +1863,10 @@ function Bt(e) {
1856
1863
  if (y != e._obj || e.matrix && e.matrix[e.getState().mode] && e.matrix[e.getState().mode].scrollable)
1857
1864
  return !1;
1858
1865
  var w = Math.abs(p.pageY - h.pageY), D = Math.abs(p.pageX - h.pageX);
1859
- return w < m && D > u && (!w || D / w > 3) && (p.pageX > h.pageX ? e._click.dhx_cal_next_button() : e._click.dhx_cal_prev_button(), !0);
1866
+ return w < v && D > u && (!w || D / w > 3) && (p.pageX > h.pageX ? e._click.dhx_cal_next_button() : e._click.dhx_cal_prev_button(), !0);
1860
1867
  }(s, n, 200, 100) && (e._block_next_stop = !0), _ && (e._ignore_next_click = !0, setTimeout(function() {
1861
1868
  e._ignore_next_click = !1;
1862
- }, 100)), f(v), e._block_next_stop ? (e._block_next_stop = !1, v.preventDefault && v.preventDefault(), v.cancelBubble = !0, !1) : void 0;
1869
+ }, 100)), f(m), e._block_next_stop ? (e._block_next_stop = !1, m.preventDefault && m.preventDefault(), m.cancelBubble = !0, !1) : void 0;
1863
1870
  }), e.event(document.body, i[2], f);
1864
1871
  }, e._show_global_tip = function() {
1865
1872
  e._hide_global_tip();
@@ -1920,9 +1927,9 @@ function Jt(e) {
1920
1927
  }();
1921
1928
  }, e._build_skin_info = function() {
1922
1929
  (function() {
1923
- const v = e.$container;
1924
- clearInterval(o), v && (o = setInterval(() => {
1925
- const p = getComputedStyle(v).getPropertyValue("--dhx-scheduler-theme");
1930
+ const m = e.$container;
1931
+ clearInterval(o), m && (o = setInterval(() => {
1932
+ const p = getComputedStyle(m).getPropertyValue("--dhx-scheduler-theme");
1926
1933
  p && p !== e.skin && e.setSkin(p);
1927
1934
  }, 100));
1928
1935
  })();
@@ -1930,21 +1937,21 @@ function Jt(e) {
1930
1937
  let d, l = !!a, c = {}, f = !1;
1931
1938
  if (l) {
1932
1939
  d = a;
1933
- for (let v in e.xy)
1934
- c[v] = _.getPropertyValue(`--dhx-scheduler-xy-${v}`);
1940
+ for (let m in e.xy)
1941
+ c[m] = _.getPropertyValue(`--dhx-scheduler-xy-${m}`);
1935
1942
  c.hour_size_px = _.getPropertyValue("--dhx-scheduler-config-hour_size_px"), c.wide_form = _.getPropertyValue("--dhx-scheduler-config-form_wide");
1936
1943
  } else
1937
1944
  d = function() {
1938
- for (var v = document.getElementsByTagName("link"), p = 0; p < v.length; p++) {
1939
- var h = v[p].href.match("dhtmlxscheduler_([a-z]+).css");
1945
+ for (var m = document.getElementsByTagName("link"), p = 0; p < m.length; p++) {
1946
+ var h = m[p].href.match("dhtmlxscheduler_([a-z]+).css");
1940
1947
  if (h)
1941
1948
  return h[1];
1942
1949
  }
1943
1950
  }(), f = e._is_material_skin();
1944
1951
  if (e._theme_info = { theme: d, cssVarTheme: l, oldMaterialTheme: f, values: c }, e._theme_info.cssVarTheme) {
1945
- const v = this._theme_info.values;
1952
+ const m = this._theme_info.values;
1946
1953
  for (let p in e.xy)
1947
- isNaN(parseInt(v[p])) || (e.xy[p] = parseInt(v[p]));
1954
+ isNaN(parseInt(m[p])) || (e.xy[p] = parseInt(m[p]));
1948
1955
  }
1949
1956
  }, e.event(window, "DOMContentLoaded", s), e.event(window, "load", s), e._border_box_events = function() {
1950
1957
  return r();
@@ -1988,10 +1995,10 @@ function Jt(e) {
1988
1995
  }), function(d) {
1989
1996
  if (e.config.header)
1990
1997
  return;
1991
- const l = Array.from(d.querySelectorAll(".dhx_cal_tab")), c = ["day", "week", "month"].map((v) => l.find((p) => p.getAttribute("data-tab") === v)).filter((v) => v !== void 0);
1998
+ const l = Array.from(d.querySelectorAll(".dhx_cal_tab")), c = ["day", "week", "month"].map((m) => l.find((p) => p.getAttribute("data-tab") === m)).filter((m) => m !== void 0);
1992
1999
  let f = l.length > 0 ? l[0] : null;
1993
- c.reverse().forEach((v) => {
1994
- d.insertBefore(v, f), f = v;
2000
+ c.reverse().forEach((m) => {
2001
+ d.insertBefore(m, f), f = m;
1995
2002
  });
1996
2003
  }(e._els.dhx_cal_navline[0]));
1997
2004
  }, { once: !0 });
@@ -2027,37 +2034,37 @@ function He(e) {
2027
2034
  }
2028
2035
  function Kt(e) {
2029
2036
  var i = "data-dhxbox", t = null;
2030
- function r(m, y, w) {
2031
- var D = m.callback;
2032
- D && D(y, w), p.hide(m.box), t = m.box = null;
2037
+ function r(v, y, w) {
2038
+ var D = v.callback;
2039
+ D && D(y, w), p.hide(v.box), t = v.box = null;
2033
2040
  }
2034
- function s(m) {
2041
+ function s(v) {
2035
2042
  if (t) {
2036
- var y = m.which || m.keyCode, w = !1;
2043
+ var y = v.which || v.keyCode, w = !1;
2037
2044
  if (h.keyboard) {
2038
2045
  if (y == 13 || y == 32) {
2039
- var D = m.target || m.srcElement;
2046
+ var D = v.target || v.srcElement;
2040
2047
  ce.getClassName(D).indexOf("scheduler_popup_button") > -1 && D.click ? D.click() : (r(t, !0), w = !0);
2041
2048
  }
2042
2049
  y == 27 && (r(t, !1), w = !0);
2043
2050
  }
2044
- return w ? (m.preventDefault && m.preventDefault(), !(m.cancelBubble = !0)) : void 0;
2051
+ return w ? (v.preventDefault && v.preventDefault(), !(v.cancelBubble = !0)) : void 0;
2045
2052
  }
2046
2053
  }
2047
- function n(m) {
2048
- n.cover || (n.cover = document.createElement("div"), e.event(n.cover, "keydown", s), n.cover.className = "dhx_modal_cover", document.body.appendChild(n.cover)), n.cover.style.display = m ? "inline-block" : "none";
2054
+ function n(v) {
2055
+ n.cover || (n.cover = document.createElement("div"), e.event(n.cover, "keydown", s), n.cover.className = "dhx_modal_cover", document.body.appendChild(n.cover)), n.cover.style.display = v ? "inline-block" : "none";
2049
2056
  }
2050
- function o(m, y, w) {
2051
- var D = e._waiAria.messageButtonAttrString(m), E = (y || "").toLowerCase().replace(/ /g, "_");
2052
- return `<div ${D} class='scheduler_popup_button dhtmlx_popup_button ${`scheduler_${E}_button dhtmlx_${E}_button`}' data-result='${w}' result='${w}' ><div>${m}</div></div>`;
2057
+ function o(v, y, w) {
2058
+ var D = e._waiAria.messageButtonAttrString(v), E = (y || "").toLowerCase().replace(/ /g, "_");
2059
+ return `<div ${D} class='scheduler_popup_button dhtmlx_popup_button ${`scheduler_${E}_button dhtmlx_${E}_button`}' data-result='${w}' result='${w}' ><div>${v}</div></div>`;
2053
2060
  }
2054
2061
  function _() {
2055
- for (var m = [].slice.apply(arguments, [0]), y = 0; y < m.length; y++)
2056
- if (m[y])
2057
- return m[y];
2062
+ for (var v = [].slice.apply(arguments, [0]), y = 0; y < v.length; y++)
2063
+ if (v[y])
2064
+ return v[y];
2058
2065
  }
2059
- function a(m, y, w) {
2060
- var D = m.tagName ? m : function(g, b, x) {
2066
+ function a(v, y, w) {
2067
+ var D = v.tagName ? v : function(g, b, x) {
2061
2068
  var k = document.createElement("div"), M = ae.uid();
2062
2069
  e._waiAria.messageModalAttr(k, M), k.className = " scheduler_modal_box dhtmlx_modal_box scheduler-" + g.type + " dhtmlx-" + g.type, k.setAttribute(i, 1);
2063
2070
  var N = "";
@@ -2077,49 +2084,49 @@ function Kt(e) {
2077
2084
  r(g, j = j == "true" || j != "false" && j, $);
2078
2085
  }
2079
2086
  }), g.box = k, (b || x) && (t = g), k;
2080
- }(m, y, w);
2081
- m.hidden || n(!0), document.body.appendChild(D);
2087
+ }(v, y, w);
2088
+ v.hidden || n(!0), document.body.appendChild(D);
2082
2089
  var E = Math.abs(Math.floor(((window.innerWidth || document.documentElement.offsetWidth) - D.offsetWidth) / 2)), S = Math.abs(Math.floor(((window.innerHeight || document.documentElement.offsetHeight) - D.offsetHeight) / 2));
2083
- return m.position == "top" ? D.style.top = "-3px" : D.style.top = S + "px", D.style.left = E + "px", e.event(D, "keydown", s), p.focus(D), m.hidden && p.hide(D), e.callEvent("onMessagePopup", [D]), D;
2090
+ return v.position == "top" ? D.style.top = "-3px" : D.style.top = S + "px", D.style.left = E + "px", e.event(D, "keydown", s), p.focus(D), v.hidden && p.hide(D), e.callEvent("onMessagePopup", [D]), D;
2084
2091
  }
2085
- function d(m) {
2086
- return a(m, !0, !1);
2092
+ function d(v) {
2093
+ return a(v, !0, !1);
2087
2094
  }
2088
- function l(m) {
2089
- return a(m, !0, !0);
2095
+ function l(v) {
2096
+ return a(v, !0, !0);
2090
2097
  }
2091
- function c(m) {
2092
- return a(m);
2098
+ function c(v) {
2099
+ return a(v);
2093
2100
  }
2094
- function f(m, y, w) {
2095
- return typeof m != "object" && (typeof y == "function" && (w = y, y = ""), m = { text: m, type: y, callback: w }), m;
2101
+ function f(v, y, w) {
2102
+ return typeof v != "object" && (typeof y == "function" && (w = y, y = ""), v = { text: v, type: y, callback: w }), v;
2096
2103
  }
2097
- function v(m, y, w, D, E) {
2098
- return typeof m != "object" && (m = { text: m, type: y, expire: w, id: D, callback: E }), m.id = m.id || ae.uid(), m.expire = m.expire || h.expire, m;
2104
+ function m(v, y, w, D, E) {
2105
+ return typeof v != "object" && (v = { text: v, type: y, expire: w, id: D, callback: E }), v.id = v.id || ae.uid(), v.expire = v.expire || h.expire, v;
2099
2106
  }
2100
2107
  e.event(document, "keydown", s, !0);
2101
2108
  var p = function() {
2102
- var m = f.apply(this, arguments);
2103
- return m.type = m.type || "alert", c(m);
2109
+ var v = f.apply(this, arguments);
2110
+ return v.type = v.type || "alert", c(v);
2104
2111
  };
2105
- p.hide = function(m) {
2106
- for (; m && m.getAttribute && !m.getAttribute(i); )
2107
- m = m.parentNode;
2108
- m && (m.parentNode.removeChild(m), n(!1), e.callEvent("onAfterMessagePopup", [m]));
2109
- }, p.focus = function(m) {
2112
+ p.hide = function(v) {
2113
+ for (; v && v.getAttribute && !v.getAttribute(i); )
2114
+ v = v.parentNode;
2115
+ v && (v.parentNode.removeChild(v), n(!1), e.callEvent("onAfterMessagePopup", [v]));
2116
+ }, p.focus = function(v) {
2110
2117
  setTimeout(function() {
2111
- var y = ce.getFocusableNodes(m);
2118
+ var y = ce.getFocusableNodes(v);
2112
2119
  y.length && y[0].focus && y[0].focus();
2113
2120
  }, 1);
2114
2121
  };
2115
- var h = function(m, y, w, D) {
2116
- switch ((m = v.apply(this, arguments)).type = m.type || "info", m.type.split("-")[0]) {
2122
+ var h = function(v, y, w, D) {
2123
+ switch ((v = m.apply(this, arguments)).type = v.type || "info", v.type.split("-")[0]) {
2117
2124
  case "alert":
2118
- return d(m);
2125
+ return d(v);
2119
2126
  case "confirm":
2120
- return l(m);
2127
+ return l(v);
2121
2128
  case "modalbox":
2122
- return c(m);
2129
+ return c(v);
2123
2130
  default:
2124
2131
  return function(E) {
2125
2132
  h.area || (h.area = document.createElement("div"), h.area.className = "scheduler_message_area dhtmlx_message_area", h.area.style[h.position] = "5px", document.body.appendChild(h.area)), h.hide(E.id);
@@ -2129,35 +2136,35 @@ function Kt(e) {
2129
2136
  }), e._waiAria.messageInfoAttr(S), h.position == "bottom" && h.area.firstChild ? h.area.insertBefore(S, h.area.firstChild) : h.area.appendChild(S), E.expire > 0 && (h.timers[E.id] = window.setTimeout(function() {
2130
2137
  h && h.hide(E.id);
2131
2138
  }, E.expire)), h.pull[E.id] = S, S = null, E.id;
2132
- }(m);
2139
+ }(v);
2133
2140
  }
2134
2141
  };
2135
2142
  h.seed = (/* @__PURE__ */ new Date()).valueOf(), h.uid = ae.uid, h.expire = 4e3, h.keyboard = !0, h.position = "top", h.pull = {}, h.timers = {}, h.hideAll = function() {
2136
- for (var m in h.pull)
2137
- h.hide(m);
2138
- }, h.hide = function(m) {
2139
- var y = h.pull[m];
2143
+ for (var v in h.pull)
2144
+ h.hide(v);
2145
+ }, h.hide = function(v) {
2146
+ var y = h.pull[v];
2140
2147
  y && y.parentNode && (window.setTimeout(function() {
2141
2148
  y.parentNode.removeChild(y), y = null;
2142
- }, 2e3), y.className += " hidden", h.timers[m] && window.clearTimeout(h.timers[m]), delete h.pull[m]);
2149
+ }, 2e3), y.className += " hidden", h.timers[v] && window.clearTimeout(h.timers[v]), delete h.pull[v]);
2143
2150
  };
2144
2151
  var u = [];
2145
- return e.attachEvent("onMessagePopup", function(m) {
2146
- u.push(m);
2147
- }), e.attachEvent("onAfterMessagePopup", function(m) {
2152
+ return e.attachEvent("onMessagePopup", function(v) {
2153
+ u.push(v);
2154
+ }), e.attachEvent("onAfterMessagePopup", function(v) {
2148
2155
  for (var y = 0; y < u.length; y++)
2149
- u[y] === m && (u.splice(y, 1), y--);
2156
+ u[y] === v && (u.splice(y, 1), y--);
2150
2157
  }), e.attachEvent("onDestroy", function() {
2151
2158
  n.cover && n.cover.parentNode && n.cover.parentNode.removeChild(n.cover);
2152
- for (var m = 0; m < u.length; m++)
2153
- u[m].parentNode && u[m].parentNode.removeChild(u[m]);
2159
+ for (var v = 0; v < u.length; v++)
2160
+ u[v].parentNode && u[v].parentNode.removeChild(u[v]);
2154
2161
  u = null, h.area && h.area.parentNode && h.area.parentNode.removeChild(h.area), h = null;
2155
2162
  }), { alert: function() {
2156
- var m = f.apply(this, arguments);
2157
- return m.type = m.type || "confirm", d(m);
2163
+ var v = f.apply(this, arguments);
2164
+ return v.type = v.type || "confirm", d(v);
2158
2165
  }, confirm: function() {
2159
- var m = f.apply(this, arguments);
2160
- return m.type = m.type || "alert", l(m);
2166
+ var v = f.apply(this, arguments);
2167
+ return v.type = v.type || "alert", l(v);
2161
2168
  }, message: h, modalbox: p };
2162
2169
  }
2163
2170
  He.prototype = { setTransactionMode: function(e, i) {
@@ -2295,30 +2302,30 @@ He.prototype = { setTransactionMode: function(e, i) {
2295
2302
  }
2296
2303
  }
2297
2304
  u = u || "updated";
2298
- var m = i, y = i;
2299
- h && (u = h.action || u, m = h.sid || m, y = h.id || h.tid || y), t.afterUpdateCallback(m, y, u, h);
2305
+ var v = i, y = i;
2306
+ h && (u = h.action || u, v = h.sid || v, y = h.id || h.tid || y), t.afterUpdateCallback(v, y, u, h);
2300
2307
  };
2301
2308
  const p = "event";
2302
- var v;
2309
+ var m;
2303
2310
  if (this._router instanceof Function)
2304
- v = this._router(p, c, e, i);
2311
+ m = this._router(p, c, e, i);
2305
2312
  else
2306
2313
  switch (l) {
2307
2314
  case "inserted":
2308
- v = this._router[p].create(e);
2315
+ m = this._router[p].create(e);
2309
2316
  break;
2310
2317
  case "deleted":
2311
- v = this._router[p].delete(i);
2318
+ m = this._router[p].delete(i);
2312
2319
  break;
2313
2320
  default:
2314
- v = this._router[p].update(e, i);
2321
+ m = this._router[p].update(e, i);
2315
2322
  }
2316
- if (v) {
2317
- if (!v.then && v.id === void 0 && v.tid === void 0 && v.action === void 0)
2323
+ if (m) {
2324
+ if (!m.then && m.id === void 0 && m.tid === void 0 && m.action === void 0)
2318
2325
  throw new Error("Incorrect router return value. A Promise or a response object is expected");
2319
- v.then ? v.then(f).catch(function(h) {
2326
+ m.then ? m.then(f).catch(function(h) {
2320
2327
  h && h.action ? f(h) : f({ action: "error", value: h });
2321
- }) : f(v);
2328
+ }) : f(m);
2322
2329
  } else
2323
2330
  f(null);
2324
2331
  }
@@ -2646,13 +2653,13 @@ class Sa {
2646
2653
  this._renderDayGridHeader(l);
2647
2654
  const c = l.children.length;
2648
2655
  i.appendChild(l), c !== 7 && i.style.setProperty("--dhx-scheduler-week-length", c);
2649
- const f = this.scheduler, v = f.date.week_start(f.date.month_start(new Date(t))), p = f.date.month_start(new Date(t)), h = f.date.add(f.date.month_start(new Date(t)), 1, "month");
2656
+ const f = this.scheduler, m = f.date.week_start(f.date.month_start(new Date(t))), p = f.date.month_start(new Date(t)), h = f.date.add(f.date.month_start(new Date(t)), 1, "month");
2650
2657
  let u = f.date.add(f.date.month_start(new Date(t)), 1, "month");
2651
- const m = f.date.date_part(f._currentDate());
2658
+ const v = f.date.date_part(f._currentDate());
2652
2659
  u.getDay() !== 0 && (u = f.date.add(f.date.week_start(u), 1, "week"));
2653
- let y = this._weeksBetween(v, u);
2660
+ let y = this._weeksBetween(m, u);
2654
2661
  n && y < n && (u = f.date.add(u, n - y, "week"));
2655
- let w = v;
2662
+ let w = m;
2656
2663
  const D = document.createElement("div");
2657
2664
  for (D.classList.add("dhx_cal_datepicker_days"), this._domEvents.attach(D, "click", (E) => {
2658
2665
  const S = E.target.closest("[data-cell-date]"), g = new Date(S.getAttribute("data-cell-date"));
@@ -2660,7 +2667,7 @@ class Sa {
2660
2667
  }); w.valueOf() < u.valueOf(); ) {
2661
2668
  if (!o || !o(w)) {
2662
2669
  const E = document.createElement("div");
2663
- E.setAttribute("data-cell-date", f.templates.format_date(w)), E.setAttribute("data-day", w.getDay()), E.innerHTML = w.getDate(), w.valueOf() < p.valueOf() ? E.classList.add("dhx_before") : w.valueOf() >= h.valueOf() && E.classList.add("dhx_after"), w.getDay() !== 0 && w.getDay() !== 6 || E.classList.add("dhx_cal_datepicker_weekend"), w.valueOf() == m.valueOf() && E.classList.add("dhx_now"), _ && a && w.valueOf() >= _.valueOf() && w.valueOf() < a.valueOf() && E.classList.add("dhx_cal_datepicker_current"), d[w.valueOf()] && E.classList.add("dhx_cal_datepicker_event"), E.classList.add("dhx_cal_datepicker_date"), D.appendChild(E);
2670
+ E.setAttribute("data-cell-date", f.templates.format_date(w)), E.setAttribute("data-day", w.getDay()), E.innerHTML = f.templates.month_day(w), w.valueOf() < p.valueOf() ? E.classList.add("dhx_before") : w.valueOf() >= h.valueOf() && E.classList.add("dhx_after"), w.getDay() !== 0 && w.getDay() !== 6 || E.classList.add("dhx_cal_datepicker_weekend"), w.valueOf() == v.valueOf() && E.classList.add("dhx_now"), _ && a && w.valueOf() >= _.valueOf() && w.valueOf() < a.valueOf() && E.classList.add("dhx_cal_datepicker_current"), d[w.valueOf()] && E.classList.add("dhx_cal_datepicker_event"), E.classList.add("dhx_cal_datepicker_date"), D.appendChild(E);
2664
2671
  }
2665
2672
  w = f.date.add(w, 1, "day");
2666
2673
  }
@@ -2709,7 +2716,7 @@ class Sa {
2709
2716
  }
2710
2717
  }
2711
2718
  function Ma(e) {
2712
- const i = { version: "7.2.1" };
2719
+ const i = { version: "7.2.2" };
2713
2720
  i.$stateProvider = function() {
2714
2721
  const a = {};
2715
2722
  return { getState: function(d) {
@@ -2761,8 +2768,8 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
2761
2768
  `));
2762
2769
  };
2763
2770
  }(i), qt(i), function(a) {
2764
- Ve(a), $t(a), a._detachDomEvent = function(h, u, m) {
2765
- h.removeEventListener ? h.removeEventListener(u, m, !1) : h.detachEvent && h.detachEvent("on" + u, m);
2771
+ Ve(a), $t(a), a._detachDomEvent = function(h, u, v) {
2772
+ h.removeEventListener ? h.removeEventListener(u, v, !1) : h.detachEvent && h.detachEvent("on" + u, v);
2766
2773
  }, a._init_once = function() {
2767
2774
  Ht(a), a._init_once = function() {
2768
2775
  };
@@ -2779,9 +2786,9 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
2779
2786
  function f(h) {
2780
2787
  return !!(h.querySelector(".dhx_cal_header") && h.querySelector(".dhx_cal_data") && h.querySelector(".dhx_cal_navline"));
2781
2788
  }
2782
- a.init = function(h, u, m) {
2789
+ a.init = function(h, u, v) {
2783
2790
  if (!this.$destroyed) {
2784
- if (u = u || a._currentDate(), m = m || "week", this._obj && this.unset_actions(), this._obj = typeof h == "string" ? document.getElementById(h) : h, this.$container = this._obj, this.$root = this._obj, !this.$container.offsetHeight && this.$container.offsetWidth && this.$container.style.height === "100%" && window.console.error(a._commonErrorMessages.collapsedContainer(), this.$container), this.config.wai_aria_attributes && this.config.wai_aria_application_role && this.$container.setAttribute("role", "application"), this.config.header || f(this.$container) || (this.config.header = function(y) {
2791
+ if (u = u || a._currentDate(), v = v || "week", this._obj && this.unset_actions(), this._obj = typeof h == "string" ? document.getElementById(h) : h, this.$container = this._obj, this.$root = this._obj, !this.$container.offsetHeight && this.$container.offsetWidth && this.$container.style.height === "100%" && window.console.error(a._commonErrorMessages.collapsedContainer(), this.$container), this.config.wai_aria_attributes && this.config.wai_aria_application_role && this.$container.setAttribute("role", "application"), this.config.header || f(this.$container) || (this.config.header = function(y) {
2785
2792
  const w = ["day", "week", "month"];
2786
2793
  if (y.matrix)
2787
2794
  for (const D in y.matrix)
@@ -2801,59 +2808,59 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
2801
2808
  else if (!f(this.$container))
2802
2809
  throw new Error(["Required DOM elements are missing from the scheduler container.", "Be sure to either specify them manually in the markup: https://docs.dhtmlx.com/scheduler/initialization.html#initializingschedulerviamarkup", "Or to use **scheduler.config.header** setting so they could be created automatically: https://docs.dhtmlx.com/scheduler/initialization.html#initializingschedulerviaheaderconfig"].join(`
2803
2810
  `));
2804
- this.config.rtl && (this.$container.className += " dhx_cal_container_rtl"), this._skin_init && a._skin_init(), a.date.init(), this._scroll = !0, this._els = [], this.get_elements(), this.init_templates(), this.set_actions(), this._init_once(), this._init_touch_events(), this.set_sizes(), a.callEvent("onSchedulerReady", []), a.$initialized = !0, this.setCurrentView(u, m);
2811
+ this.config.rtl && (this.$container.className += " dhx_cal_container_rtl"), this._skin_init && a._skin_init(), a.date.init(), this._scroll = !0, this._els = [], this.get_elements(), this.init_templates(), this.set_actions(), this._init_once(), this._init_touch_events(), this.set_sizes(), a.callEvent("onSchedulerReady", []), a.$initialized = !0, this.setCurrentView(u, v);
2805
2812
  }
2806
2813
  }, a.xy = { min_event_height: 20, bar_height: 24, scale_width: 50, scroll_width: 18, scale_height: 20, month_scale_height: 20, menu_width: 25, margin_top: 0, margin_left: 0, editor_width: 140, month_head_height: 22, event_header_height: 14 }, a.keys = { edit_save: 13, edit_cancel: 27 }, a.bind = function(h, u) {
2807
2814
  return h.bind ? h.bind(u) : function() {
2808
2815
  return h.apply(u, arguments);
2809
2816
  };
2810
2817
  }, a.set_sizes = function() {
2811
- var h = this._x = this._obj.clientWidth - this.xy.margin_left, u = this._table_view ? 0 : this.xy.scale_width + this.xy.scroll_width, m = this.$container.querySelector(".dhx_cal_scale_placeholder");
2812
- a._is_material_skin() ? (m || ((m = document.createElement("div")).className = "dhx_cal_scale_placeholder", this.$container.insertBefore(m, this._els.dhx_cal_header[0])), m.style.display = "block", this.set_xy(m, h, this.xy.scale_height + 1, 0, this._els.dhx_cal_header[0].offsetTop)) : m && m.parentNode.removeChild(m), this._lightbox && (a.$container.offsetWidth < 1200 || this._setLbPosition(document.querySelector(".dhx_cal_light"))), this._data_width = h - u, this._els.dhx_cal_navline[0].style.width = h + "px";
2818
+ var h = this._x = this._obj.clientWidth - this.xy.margin_left, u = this._table_view ? 0 : this.xy.scale_width + this.xy.scroll_width, v = this.$container.querySelector(".dhx_cal_scale_placeholder");
2819
+ a._is_material_skin() ? (v || ((v = document.createElement("div")).className = "dhx_cal_scale_placeholder", this.$container.insertBefore(v, this._els.dhx_cal_header[0])), v.style.display = "block", this.set_xy(v, h, this.xy.scale_height + 1, 0, this._els.dhx_cal_header[0].offsetTop)) : v && v.parentNode.removeChild(v), this._lightbox && (a.$container.offsetWidth < 1200 || this._setLbPosition(document.querySelector(".dhx_cal_light"))), this._data_width = h - u, this._els.dhx_cal_navline[0].style.width = h + "px";
2813
2820
  const y = this._els.dhx_cal_header[0];
2814
2821
  this.set_xy(y, this._data_width, this.xy.scale_height), y.style.left = "", y.style.right = "", this._table_view ? this.config.rtl ? y.style.right = "-1px" : y.style.left = "-1px" : this.config.rtl ? y.style.right = `${this.xy.scale_width}px` : y.style.left = `${this.xy.scale_width}px`;
2815
- }, a.set_xy = function(h, u, m, y, w) {
2822
+ }, a.set_xy = function(h, u, v, y, w) {
2816
2823
  function D(S) {
2817
2824
  let g = S;
2818
2825
  return isNaN(Number(g)) || (g = Math.max(0, g) + "px"), g;
2819
2826
  }
2820
2827
  var E = "left";
2821
- u !== void 0 && (h.style.width = D(u)), m !== void 0 && (h.style.height = D(m)), arguments.length > 3 && (y !== void 0 && (this.config.rtl && (E = "right"), h.style[E] = y + "px"), w !== void 0 && (h.style.top = w + "px"));
2828
+ u !== void 0 && (h.style.width = D(u)), v !== void 0 && (h.style.height = D(v)), arguments.length > 3 && (y !== void 0 && (this.config.rtl && (E = "right"), h.style[E] = y + "px"), w !== void 0 && (h.style.top = w + "px"));
2822
2829
  }, a.get_elements = function() {
2823
2830
  const h = this._obj.getElementsByTagName("DIV");
2824
2831
  for (let u = 0; u < h.length; u++) {
2825
- let m = a._getClassName(h[u]);
2832
+ let v = a._getClassName(h[u]);
2826
2833
  const y = h[u].getAttribute("data-tab") || h[u].getAttribute("name") || "";
2827
- m && (m = m.split(" ")[0]), this._els[m] || (this._els[m] = []), this._els[m].push(h[u]);
2828
- let w = a.locale.labels[y + "_tab"] || a.locale.labels[y || m];
2834
+ v && (v = v.split(" ")[0]), this._els[v] || (this._els[v] = []), this._els[v].push(h[u]);
2835
+ let w = a.locale.labels[y + "_tab"] || a.locale.labels[y || v];
2829
2836
  typeof w != "string" && y && !h[u].innerHTML && (w = y.split("_")[0]), w && (this._waiAria.labelAttr(h[u], w), h[u].innerHTML = w);
2830
2837
  }
2831
2838
  };
2832
- const v = a._createDomEventScope();
2839
+ const m = a._createDomEventScope();
2833
2840
  function p(h, u) {
2834
- const m = new Date(h), y = (new Date(u).getTime() - m.getTime()) / 864e5;
2841
+ const v = new Date(h), y = (new Date(u).getTime() - v.getTime()) / 864e5;
2835
2842
  return Math.abs(y);
2836
2843
  }
2837
2844
  a.unset_actions = function() {
2838
- v.detachAll();
2845
+ m.detachAll();
2839
2846
  }, a.set_actions = function() {
2840
2847
  for (const h in this._els)
2841
2848
  if (this._click[h])
2842
2849
  for (let u = 0; u < this._els[h].length; u++) {
2843
- const m = this._els[h][u], y = this._click[h].bind(m);
2844
- v.attach(m, "click", y);
2850
+ const v = this._els[h][u], y = this._click[h].bind(v);
2851
+ m.attach(v, "click", y);
2845
2852
  }
2846
- v.attach(this._obj, "selectstart", function(h) {
2853
+ m.attach(this._obj, "selectstart", function(h) {
2847
2854
  return h.preventDefault(), !1;
2848
- }), v.attach(this._obj, "mousemove", function(h) {
2855
+ }), m.attach(this._obj, "mousemove", function(h) {
2849
2856
  a._temp_touch_block || a._on_mouse_move(h);
2850
- }), v.attach(this._obj, "mousedown", function(h) {
2857
+ }), m.attach(this._obj, "mousedown", function(h) {
2851
2858
  a._ignore_next_click || a._on_mouse_down(h);
2852
- }), v.attach(this._obj, "mouseup", function(h) {
2859
+ }), m.attach(this._obj, "mouseup", function(h) {
2853
2860
  a._ignore_next_click || a._on_mouse_up(h);
2854
- }), v.attach(this._obj, "dblclick", function(h) {
2861
+ }), m.attach(this._obj, "dblclick", function(h) {
2855
2862
  a._on_dbl_click(h);
2856
- }), v.attach(this._obj, "contextmenu", function(h) {
2863
+ }), m.attach(this._obj, "contextmenu", function(h) {
2857
2864
  return a.checkEvent("onContextMenu") && h.preventDefault(), a.callEvent("onContextMenu", [a._locate_event(h.target), h]);
2858
2865
  });
2859
2866
  }, a.select = function(h) {
@@ -2876,20 +2883,20 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
2876
2883
  a.callEvent("onEmptyClick", [a.getActionData(h).date, h]);
2877
2884
  if (u && a.config.select) {
2878
2885
  a.select(u);
2879
- const m = h.target.closest(".dhx_menu_icon"), y = a._getClassName(m);
2886
+ const v = h.target.closest(".dhx_menu_icon"), y = a._getClassName(v);
2880
2887
  y.indexOf("_icon") != -1 && a._click.buttons[y.split(" ")[1].replace("icon_", "")](u);
2881
2888
  } else
2882
2889
  a._close_not_saved(), a.getState().select_id && (/* @__PURE__ */ new Date()).valueOf() - (a._new_event || 0) > 500 && a.unselect();
2883
2890
  }, dhx_cal_prev_button: function() {
2884
2891
  a._click.dhx_cal_next_button(0, -1);
2885
2892
  }, dhx_cal_next_button: function(h, u) {
2886
- let m = 1;
2887
- a.config.rtl && (u = -u, m = -m), a.setCurrentView(a.date.add(a.date[a._mode + "_start"](new Date(a._date)), u || m, a._mode));
2893
+ let v = 1;
2894
+ a.config.rtl && (u = -u, v = -v), a.setCurrentView(a.date.add(a.date[a._mode + "_start"](new Date(a._date)), u || v, a._mode));
2888
2895
  }, dhx_cal_today_button: function() {
2889
2896
  a.callEvent("onBeforeTodayDisplayed", []) && a.setCurrentView(a._currentDate());
2890
2897
  }, dhx_cal_tab: function() {
2891
- const h = this.getAttribute("data-tab"), u = this.getAttribute("name"), m = h || u.substring(0, u.search("_tab"));
2892
- a.setCurrentView(a._date, m);
2898
+ const h = this.getAttribute("data-tab"), u = this.getAttribute("name"), v = h || u.substring(0, u.search("_tab"));
2899
+ a.setCurrentView(a._date, v);
2893
2900
  }, buttons: { delete: function(h) {
2894
2901
  const u = a.locale.labels.confirm_deleting;
2895
2902
  a._dhtmlx_confirm({ message: u, title: a.locale.labels.title_confirm_deleting, callback: function() {
@@ -2905,15 +2912,15 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
2905
2912
  a.showLightbox(h);
2906
2913
  }, cancel: function(h) {
2907
2914
  a.editStop(!1);
2908
- } } }, a._dhtmlx_confirm = function({ message: h, title: u, callback: m, config: y }) {
2915
+ } } }, a._dhtmlx_confirm = function({ message: h, title: u, callback: v, config: y }) {
2909
2916
  if (!h)
2910
- return m();
2917
+ return v();
2911
2918
  y = y || {};
2912
2919
  const w = { ...y, text: h };
2913
- u && (w.title = u), m && (w.callback = function(D) {
2914
- D && m();
2920
+ u && (w.title = u), v && (w.callback = function(D) {
2921
+ D && v();
2915
2922
  }), a.confirm(w);
2916
- }, a.addEventNow = function(h, u, m) {
2923
+ }, a.addEventNow = function(h, u, v) {
2917
2924
  let y = {};
2918
2925
  a._isObject(h) && !a._isDate(h) && (y = h, h = null);
2919
2926
  const w = 6e4 * (this.config.event_duration || this.config.time_step);
@@ -2926,12 +2933,12 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
2926
2933
  let E = new Date(u);
2927
2934
  D.valueOf() == E.valueOf() && E.setTime(E.valueOf() + w), y.start_date = y.start_date || D, y.end_date = y.end_date || E, y.text = y.text || this.locale.labels.new_event, y.id = this._drag_id = y.id || this.uid(), this._drag_mode = "new-size", this._loading = !0;
2928
2935
  const S = this.addEvent(y);
2929
- return this.callEvent("onEventCreated", [this._drag_id, m]), this._loading = !1, this._drag_event = {}, this._on_mouse_up(m), S;
2936
+ return this.callEvent("onEventCreated", [this._drag_id, v]), this._loading = !1, this._drag_event = {}, this._on_mouse_up(v), S;
2930
2937
  }, a._on_dbl_click = function(h, u) {
2931
2938
  if (u = u || h.target, this.config.readonly)
2932
2939
  return;
2933
- const m = a._getClassName(u).split(" ")[0];
2934
- switch (m) {
2940
+ const v = a._getClassName(u).split(" ")[0];
2941
+ switch (v) {
2935
2942
  case "dhx_scale_holder":
2936
2943
  case "dhx_scale_holder_now":
2937
2944
  case "dhx_month_body":
@@ -2957,7 +2964,7 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
2957
2964
  case "dhx_cal_container":
2958
2965
  return;
2959
2966
  default: {
2960
- const y = this["dblclick_" + m];
2967
+ const y = this["dblclick_" + v];
2961
2968
  if (y)
2962
2969
  y.call(this, h);
2963
2970
  else if (u.parentNode && u != this)
@@ -2968,10 +2975,10 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
2968
2975
  }, a._get_column_index = function(h) {
2969
2976
  let u = 0;
2970
2977
  if (this._cols) {
2971
- let m = 0, y = 0;
2972
- for (; m + this._cols[y] < h && y < this._cols.length; )
2973
- m += this._cols[y], y++;
2974
- if (u = y + (this._cols[y] ? (h - m) / this._cols[y] : 0), this._ignores && u >= this._cols.length)
2978
+ let v = 0, y = 0;
2979
+ for (; v + this._cols[y] < h && y < this._cols.length; )
2980
+ v += this._cols[y], y++;
2981
+ if (u = y + (this._cols[y] ? (h - v) / this._cols[y] : 0), this._ignores && u >= this._cols.length)
2975
2982
  for (; u >= 1 && this._ignores[Math.floor(u)]; )
2976
2983
  u--;
2977
2984
  }
@@ -2984,8 +2991,8 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
2984
2991
  return h;
2985
2992
  }, a._mouse_coords = function(h) {
2986
2993
  let u;
2987
- const m = document.body, y = document.documentElement;
2988
- u = this.$env.isIE || !h.pageX && !h.pageY ? { x: h.clientX + (m.scrollLeft || y.scrollLeft || 0) - m.clientLeft, y: h.clientY + (m.scrollTop || y.scrollTop || 0) - m.clientTop } : { x: h.pageX, y: h.pageY }, this.config.rtl && this._colsS ? (u.x = this.$container.querySelector(".dhx_cal_data").offsetWidth - u.x, u.x += this.$domHelpers.getAbsoluteLeft(this._obj), this._mode !== "month" && (u.x -= this.xy.scale_width)) : u.x -= this.$domHelpers.getAbsoluteLeft(this._obj) + (this._table_view ? 0 : this.xy.scale_width);
2994
+ const v = document.body, y = document.documentElement;
2995
+ u = this.$env.isIE || !h.pageX && !h.pageY ? { x: h.clientX + (v.scrollLeft || y.scrollLeft || 0) - v.clientLeft, y: h.clientY + (v.scrollTop || y.scrollTop || 0) - v.clientTop } : { x: h.pageX, y: h.pageY }, this.config.rtl && this._colsS ? (u.x = this.$container.querySelector(".dhx_cal_data").offsetWidth - u.x, u.x += this.$domHelpers.getAbsoluteLeft(this._obj), this._mode !== "month" && (u.x -= this.xy.scale_width)) : u.x -= this.$domHelpers.getAbsoluteLeft(this._obj) + (this._table_view ? 0 : this.xy.scale_width);
2989
2996
  const w = this.$container.querySelector(".dhx_cal_data");
2990
2997
  u.y -= this.$domHelpers.getAbsoluteTop(w) - this._els.dhx_cal_data[0].scrollTop, u.ev = h;
2991
2998
  const D = this["mouse_" + this._mode];
@@ -3012,49 +3019,49 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3012
3019
  }, a._correct_shift = function(h, u) {
3013
3020
  return h - 6e4 * (new Date(a._min_date).getTimezoneOffset() - new Date(h).getTimezoneOffset()) * (u ? -1 : 1);
3014
3021
  }, a._is_pos_changed = function(h, u) {
3015
- function m(y, w, D) {
3022
+ function v(y, w, D) {
3016
3023
  return Math.abs(y - w) > D;
3017
3024
  }
3018
- return !h || !this._drag_pos || !!(this._drag_pos.has_moved || !this._drag_pos.timestamp || u.timestamp - this._drag_pos.timestamp > 100 || m(h.ev.clientX, u.ev.clientX, 5) || m(h.ev.clientY, u.ev.clientY, 5));
3025
+ return !h || !this._drag_pos || !!(this._drag_pos.has_moved || !this._drag_pos.timestamp || u.timestamp - this._drag_pos.timestamp > 100 || v(h.ev.clientX, u.ev.clientX, 5) || v(h.ev.clientY, u.ev.clientY, 5));
3019
3026
  }, a._correct_drag_start_date = function(h) {
3020
3027
  let u;
3021
3028
  a.matrix && (u = a.matrix[a._mode]), u = u || { x_step: 1, x_unit: "day" }, h = new Date(h);
3022
- let m = 1;
3023
- return (u._start_correction || u._end_correction) && (m = 60 * (u.last_hour || 0) - (60 * h.getHours() + h.getMinutes()) || 1), 1 * h + (a._get_fictional_event_length(h, m, u) - m);
3029
+ let v = 1;
3030
+ return (u._start_correction || u._end_correction) && (v = 60 * (u.last_hour || 0) - (60 * h.getHours() + h.getMinutes()) || 1), 1 * h + (a._get_fictional_event_length(h, v, u) - v);
3024
3031
  }, a._correct_drag_end_date = function(h, u) {
3025
- let m;
3026
- a.matrix && (m = a.matrix[a._mode]), m = m || { x_step: 1, x_unit: "day" };
3027
- const y = 1 * h + a._get_fictional_event_length(h, u, m);
3028
- return new Date(1 * y - (a._get_fictional_event_length(y, -1, m, -1) + 1));
3032
+ let v;
3033
+ a.matrix && (v = a.matrix[a._mode]), v = v || { x_step: 1, x_unit: "day" };
3034
+ const y = 1 * h + a._get_fictional_event_length(h, u, v);
3035
+ return new Date(1 * y - (a._get_fictional_event_length(y, -1, v, -1) + 1));
3029
3036
  }, a._on_mouse_move = function(h) {
3030
3037
  if (this._drag_mode) {
3031
3038
  var u = this._mouse_coords(h);
3032
3039
  if (this._is_pos_changed(this._drag_pos, u)) {
3033
- var m, y;
3040
+ var v, y;
3034
3041
  if (this._edit_id != this._drag_id && this._close_not_saved(), !this._drag_mode)
3035
3042
  return;
3036
3043
  var w = null;
3037
3044
  if (this._drag_pos && !this._drag_pos.has_moved && ((w = this._drag_pos).has_moved = !0), this._drag_pos = u, this._drag_pos.has_moved = !0, this._drag_mode == "create") {
3038
- if (w && (u = w), this._close_not_saved(), this.unselect(this._select_id), this._loading = !0, m = this._get_date_from_pos(u).valueOf(), !this._drag_start)
3039
- return this.callEvent("onBeforeEventCreated", [h, this._drag_id]) ? (this._loading = !1, void (this._drag_start = m)) : void (this._loading = !1);
3040
- y = m, this._drag_start;
3045
+ if (w && (u = w), this._close_not_saved(), this.unselect(this._select_id), this._loading = !0, v = this._get_date_from_pos(u).valueOf(), !this._drag_start)
3046
+ return this.callEvent("onBeforeEventCreated", [h, this._drag_id]) ? (this._loading = !1, void (this._drag_start = v)) : void (this._loading = !1);
3047
+ y = v, this._drag_start;
3041
3048
  var D = new Date(this._drag_start), E = new Date(y);
3042
3049
  this._mode != "day" && this._mode != "week" || D.getHours() != E.getHours() || D.getMinutes() != E.getMinutes() || (E = new Date(this._drag_start + 1e3)), this._drag_id = this.uid(), this.addEvent(D, E, this.locale.labels.new_event, this._drag_id, u.fields), this.callEvent("onEventCreated", [this._drag_id, h]), this._loading = !1, this._drag_mode = "new-size";
3043
3050
  }
3044
3051
  var S, g = this.config.time_step, b = this.getEvent(this._drag_id);
3045
3052
  if (a.matrix && (S = a.matrix[a._mode]), S = S || { x_step: 1, x_unit: "day" }, this._drag_mode == "move")
3046
- m = this._min_date.valueOf() + 6e4 * (u.y * this.config.time_step + 24 * u.x * 60), !u.custom && this._table_view && (m += 1e3 * this.date.time_part(b.start_date)), !this._table_view && this._dragEventBody && this._drag_event._move_event_shift === void 0 && (this._drag_event._move_event_shift = m - b.start_date), this._drag_event._move_event_shift && (m -= this._drag_event._move_event_shift), m = this._correct_shift(m), u._ignores && this.config.preserve_length && this._table_view && S ? (m = a._correct_drag_start_date(m), y = a._correct_drag_end_date(m, this._drag_event._event_length)) : y = b.end_date.valueOf() - (b.start_date.valueOf() - m);
3053
+ v = this._min_date.valueOf() + 6e4 * (u.y * this.config.time_step + 24 * u.x * 60), !u.custom && this._table_view && (v += 1e3 * this.date.time_part(b.start_date)), !this._table_view && this._dragEventBody && this._drag_event._move_event_shift === void 0 && (this._drag_event._move_event_shift = v - b.start_date), this._drag_event._move_event_shift && (v -= this._drag_event._move_event_shift), v = this._correct_shift(v), u._ignores && this.config.preserve_length && this._table_view && S ? (v = a._correct_drag_start_date(v), y = a._correct_drag_end_date(v, this._drag_event._event_length)) : y = b.end_date.valueOf() - (b.start_date.valueOf() - v);
3047
3054
  else {
3048
- if (m = b.start_date.valueOf(), y = b.end_date.valueOf(), this._table_view) {
3055
+ if (v = b.start_date.valueOf(), y = b.end_date.valueOf(), this._table_view) {
3049
3056
  var x = this._min_date.valueOf() + u.y * this.config.time_step * 6e4 + (u.custom ? 0 : 864e5);
3050
3057
  if (this._mode == "month")
3051
3058
  if (x = this._correct_shift(x, !1), this._drag_from_start) {
3052
3059
  var k = 864e5;
3053
- x <= a.date.date_part(new Date(y + k - 1)).valueOf() && (m = x - k);
3060
+ x <= a.date.date_part(new Date(y + k - 1)).valueOf() && (v = x - k);
3054
3061
  } else
3055
3062
  y = x;
3056
3063
  else
3057
- this.config.preserve_length ? u.resize_from_start ? m = a._correct_drag_start_date(x) : y = a._correct_drag_end_date(x, 0) : u.resize_from_start ? m = x : y = x;
3064
+ this.config.preserve_length ? u.resize_from_start ? v = a._correct_drag_start_date(x) : y = a._correct_drag_end_date(x, 0) : u.resize_from_start ? v = x : y = x;
3058
3065
  } else {
3059
3066
  var M = this.date.date_part(new Date(b.end_date.valueOf() - 1)).valueOf(), N = new Date(M), T = this.config.first_hour, A = 60 / g * (this.config.last_hour - T);
3060
3067
  this.config.time_step = 1;
@@ -3066,13 +3073,13 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3066
3073
  if (this._drag_mode == "new-size")
3067
3074
  if (y <= this._drag_start) {
3068
3075
  var V = u.shift || (this._table_view && !u.custom ? 864e5 : 0);
3069
- m = y - (u.shift ? 0 : V), y = this._drag_start + (V || 6e4 * g);
3076
+ v = y - (u.shift ? 0 : V), y = this._drag_start + (V || 6e4 * g);
3070
3077
  } else
3071
- m = this._drag_start;
3078
+ v = this._drag_start;
3072
3079
  else
3073
- y <= m && (y = m + 6e4 * g);
3080
+ y <= v && (y = v + 6e4 * g);
3074
3081
  }
3075
- var Y = new Date(y - 1), z = new Date(m);
3082
+ var Y = new Date(y - 1), z = new Date(v);
3076
3083
  if (this._drag_mode == "move" && a.config.limit_drag_out && (+z < +a._min_date || +y > +a._max_date)) {
3077
3084
  if (+b.start_date < +a._min_date || +b.end_date > +a._max_date)
3078
3085
  z = new Date(b.start_date), y = new Date(b.end_date);
@@ -3082,7 +3089,7 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3082
3089
  }
3083
3090
  Y = new Date(y - 1);
3084
3091
  }
3085
- if (!this._table_view && this._dragEventBody && !a.config.all_timed && (!a._get_section_view() && u.x != this._get_event_sday({ start_date: new Date(m), end_date: new Date(m) }) || new Date(m).getHours() < this.config.first_hour) && (R = y - z, this._drag_mode == "move" && (k = this._min_date.valueOf() + 24 * u.x * 60 * 6e4, (z = new Date(k)).setHours(this.config.first_hour), +z <= +b.start_date ? y = new Date(+z + R) : z = new Date(+y - R))), this._table_view || a.config.all_timed || !(!a.getView() && u.x != this._get_event_sday({ start_date: new Date(y), end_date: new Date(y) }) || new Date(y).getHours() >= this.config.last_hour) || (R = y - z, k = this._min_date.valueOf() + 24 * u.x * 60 * 6e4, (y = a.date.date_part(new Date(k))).setHours(this.config.last_hour), Y = new Date(y - 1), this._drag_mode == "move" && (+z <= +b.start_date ? y = new Date(+z + R) : z = new Date(+y - R))), !this._table_view && a.config.all_timed) {
3092
+ if (!this._table_view && this._dragEventBody && !a.config.all_timed && (!a._get_section_view() && u.x != this._get_event_sday({ start_date: new Date(v), end_date: new Date(v) }) || new Date(v).getHours() < this.config.first_hour) && (R = y - z, this._drag_mode == "move" && (k = this._min_date.valueOf() + 24 * u.x * 60 * 6e4, (z = new Date(k)).setHours(this.config.first_hour), +z <= +b.start_date ? y = new Date(+z + R) : z = new Date(+y - R))), this._table_view || a.config.all_timed || !(!a.getView() && u.x != this._get_event_sday({ start_date: new Date(y), end_date: new Date(y) }) || new Date(y).getHours() >= this.config.last_hour) || (R = y - z, k = this._min_date.valueOf() + 24 * u.x * 60 * 6e4, (y = a.date.date_part(new Date(k))).setHours(this.config.last_hour), Y = new Date(y - 1), this._drag_mode == "move" && (+z <= +b.start_date ? y = new Date(+z + R) : z = new Date(+y - R))), !this._table_view && a.config.all_timed) {
3086
3093
  let W = this._min_date.valueOf() + 24 * u.x * 60 * 6e4;
3087
3094
  new Date(a._drag_start).getDay() != new Date(W) && (W = new Date(a._drag_start));
3088
3095
  let Ne = new Date(W).setHours(this.config.last_hour);
@@ -3105,8 +3112,8 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3105
3112
  }, a._on_mouse_down = function(h, u) {
3106
3113
  if (h.button != 2 && !this.config.readonly && !this._drag_mode) {
3107
3114
  u = u || h.target || h.srcElement;
3108
- var m = a._getClassName(u).split(" ")[0];
3109
- switch (this.config.drag_event_body && m == "dhx_body" && u.parentNode && u.parentNode.className.indexOf("dhx_cal_select_menu") === -1 && (m = "dhx_event_move", this._dragEventBody = !0), m) {
3115
+ var v = a._getClassName(u).split(" ")[0];
3116
+ switch (this.config.drag_event_body && v == "dhx_body" && u.parentNode && u.parentNode.className.indexOf("dhx_cal_select_menu") === -1 && (v = "dhx_event_move", this._dragEventBody = !0), v) {
3110
3117
  case "dhx_cal_event_line":
3111
3118
  case "dhx_cal_event_clear":
3112
3119
  this._table_view && (this._drag_mode = "move");
@@ -3130,7 +3137,7 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3130
3137
  return a._on_mouse_down(h, u.parentNode);
3131
3138
  break;
3132
3139
  default:
3133
- if ((!a.checkEvent("onMouseDown") || a.callEvent("onMouseDown", [m, h])) && u.parentNode && u != this && m != "dhx_body")
3140
+ if ((!a.checkEvent("onMouseDown") || a.callEvent("onMouseDown", [v, h])) && u.parentNode && u != this && v != "dhx_body")
3134
3141
  return a._on_mouse_down(h, u.parentNode);
3135
3142
  this._drag_mode = null, this._drag_id = null;
3136
3143
  }
@@ -3147,18 +3154,18 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3147
3154
  }
3148
3155
  }, a._get_private_properties = function(h) {
3149
3156
  var u = {};
3150
- for (var m in h)
3151
- m.indexOf("_") === 0 && (u[m] = !0);
3157
+ for (var v in h)
3158
+ v.indexOf("_") === 0 && (u[v] = !0);
3152
3159
  return u;
3153
3160
  }, a._clear_temporary_properties = function(h, u) {
3154
- var m = this._get_private_properties(h), y = this._get_private_properties(u);
3161
+ var v = this._get_private_properties(h), y = this._get_private_properties(u);
3155
3162
  for (var w in y)
3156
- m[w] || delete u[w];
3163
+ v[w] || delete u[w];
3157
3164
  }, a._on_mouse_up = function(h) {
3158
3165
  if (!h || h.button != 2 || !this._mobile) {
3159
3166
  if (this._drag_mode && this._drag_id) {
3160
3167
  this._els.dhx_cal_data[0].style.cursor = "default";
3161
- var u = this._drag_id, m = this._drag_mode, y = !this._drag_pos || this._drag_pos.has_moved;
3168
+ var u = this._drag_id, v = this._drag_mode, y = !this._drag_pos || this._drag_pos.has_moved;
3162
3169
  delete this._drag_event._move_event_shift;
3163
3170
  var w = this.getEvent(this._drag_id);
3164
3171
  if (y && (this._drag_event._dhx_changed || !this._drag_event.start_date || w.start_date.valueOf() != this._drag_event.start_date.valueOf() || w.end_date.valueOf() != this._drag_event.end_date.valueOf())) {
@@ -3166,14 +3173,14 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3166
3173
  if (this.callEvent("onBeforeEventChanged", [w, h, D, this._drag_event]))
3167
3174
  if (this._drag_id = this._drag_mode = null, D && this.config.edit_on_create) {
3168
3175
  if (this.unselect(), this._new_event = /* @__PURE__ */ new Date(), this._table_view || this.config.details_on_create || !this.config.select || !this.isOneDayEvent(this.getEvent(u)))
3169
- return a.callEvent("onDragEnd", [u, m, h]), this.showLightbox(u);
3176
+ return a.callEvent("onDragEnd", [u, v, h]), this.showLightbox(u);
3170
3177
  this._drag_pos = !0, this._select_id = this._edit_id = u;
3171
3178
  } else
3172
3179
  this._new_event || this.callEvent(D ? "onEventAdded" : "onEventChanged", [u, this.getEvent(u)]);
3173
3180
  else
3174
3181
  D ? this.deleteEvent(w.id, !0) : (this._drag_event._dhx_changed = !1, this._clear_temporary_properties(w, this._drag_event), a._lame_copy(w, this._drag_event), this.updateEvent(w.id));
3175
3182
  }
3176
- this._drag_pos && (this._drag_pos.has_moved || this._drag_pos === !0) && (this._drag_id = this._drag_mode = null, this.render_view_data()), a.callEvent("onDragEnd", [u, m, h]);
3183
+ this._drag_pos && (this._drag_pos.has_moved || this._drag_pos === !0) && (this._drag_id = this._drag_mode = null, this.render_view_data()), a.callEvent("onDragEnd", [u, v, h]);
3177
3184
  }
3178
3185
  this._drag_id = null, this._drag_mode = null, this._drag_pos = null, this._drag_event = null, this._drag_from_start = null;
3179
3186
  }
@@ -3189,20 +3196,20 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3189
3196
  return !!(a[h + "_view"] || a.date[h + "_start"] && a.templates[h + "_date"] && a.templates[h + "_scale_date"]);
3190
3197
  }, a._set_aria_buttons_attrs = function() {
3191
3198
  for (var h = ["dhx_cal_next_button", "dhx_cal_prev_button", "dhx_cal_tab", "dhx_cal_today_button"], u = 0; u < h.length; u++)
3192
- for (var m = this._els[h[u]], y = 0; m && y < m.length; y++) {
3193
- var w = m[y].getAttribute("data-tab") || m[y].getAttribute("name"), D = this.locale.labels[h[u]];
3194
- w && (D = this.locale.labels[w + "_tab"] || this.locale.labels[w] || D), h[u] == "dhx_cal_next_button" ? D = this.locale.labels.next : h[u] == "dhx_cal_prev_button" && (D = this.locale.labels.prev), this._waiAria.headerButtonsAttributes(m[y], D || "");
3199
+ for (var v = this._els[h[u]], y = 0; v && y < v.length; y++) {
3200
+ var w = v[y].getAttribute("data-tab") || v[y].getAttribute("name"), D = this.locale.labels[h[u]];
3201
+ w && (D = this.locale.labels[w + "_tab"] || this.locale.labels[w] || D), h[u] == "dhx_cal_next_button" ? D = this.locale.labels.next : h[u] == "dhx_cal_prev_button" && (D = this.locale.labels.prev), this._waiAria.headerButtonsAttributes(v[y], D || "");
3195
3202
  }
3196
3203
  }, a.updateView = function(h, u) {
3197
3204
  if (!this.$container)
3198
3205
  throw new Error(`The scheduler is not initialized.
3199
3206
  **scheduler.updateView** or **scheduler.setCurrentView** can be called only after **scheduler.init**`);
3200
3207
  h = h || this._date, u = u || this._mode;
3201
- var m = "dhx_cal_data";
3208
+ var v = "dhx_cal_data";
3202
3209
  this.locale.labels.icon_form || (this.locale.labels.icon_form = this.locale.labels.icon_edit);
3203
3210
  var y = this._obj, w = "dhx_scheduler_" + this._mode, D = "dhx_scheduler_" + u;
3204
3211
  this._mode && y.className.indexOf(w) != -1 ? y.className = y.className.replace(w, D) : y.className += " " + D;
3205
- var E, S = "dhx_multi_day", g = !(this._mode != u || !this.config.preserve_scroll) && this._els[m][0].scrollTop;
3212
+ var E, S = "dhx_multi_day", g = !(this._mode != u || !this.config.preserve_scroll) && this._els[v][0].scrollTop;
3206
3213
  this._els[S] && this._els[S][0] && (E = this._els[S][0].scrollTop), this[this._mode + "_view"] && u && this._mode != u && this[this._mode + "_view"](!1), this._close_not_saved(), this._els[S] && (this._els[S][0].parentNode.removeChild(this._els[S][0]), this._els[S] = null), this._mode = u, this._date = h, this._table_view = this._mode == "month", this._dy_shift = 0, this.update_view(), this._set_aria_buttons_attrs();
3207
3214
  var b = this._els.dhx_cal_tab;
3208
3215
  if (b)
@@ -3210,47 +3217,47 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3210
3217
  var k = b[x];
3211
3218
  k.getAttribute("data-tab") == this._mode || k.getAttribute("name") == this._mode + "_tab" ? (k.classList.add("active"), this._waiAria.headerToggleState(k, !0)) : (k.classList.remove("active"), this._waiAria.headerToggleState(k, !1));
3212
3219
  }
3213
- typeof g == "number" && (this._els[m][0].scrollTop = g), typeof E == "number" && this._els[S] && this._els[S][0] && (this._els[S][0].scrollTop = E);
3220
+ typeof g == "number" && (this._els[v][0].scrollTop = g), typeof E == "number" && this._els[S] && this._els[S][0] && (this._els[S][0].scrollTop = E);
3214
3221
  }, a.setCurrentView = function(h, u) {
3215
3222
  this.callEvent("onBeforeViewChange", [this._mode, this._date, u || this._mode, h || this._date]) && (this.updateView(h, u), this.callEvent("onViewChange", [this._mode, this._date]));
3216
3223
  }, a.render = function(h, u) {
3217
3224
  a.setCurrentView(h, u);
3218
- }, a._render_x_header = function(h, u, m, y, w) {
3225
+ }, a._render_x_header = function(h, u, v, y, w) {
3219
3226
  w = w || 0;
3220
3227
  var D = document.createElement("div");
3221
- D.className = "dhx_scale_bar", this.templates[this._mode + "_scalex_class"] && (D.className += " " + this.templates[this._mode + "_scalex_class"](m));
3228
+ D.className = "dhx_scale_bar", this.templates[this._mode + "_scalex_class"] && (D.className += " " + this.templates[this._mode + "_scalex_class"](v));
3222
3229
  var E = this._cols[h];
3223
3230
  this._mode == "month" && h === 0 && this.config.left_border && (D.className += " dhx_scale_bar_border", u += 1), this.set_xy(D, E, this.xy.scale_height - 1, u, w);
3224
- var S = this.templates[this._mode + "_scale_date"](m, this._mode);
3231
+ var S = this.templates[this._mode + "_scale_date"](v, this._mode);
3225
3232
  D.innerHTML = S, this._waiAria.dayHeaderAttr(D, S), y.appendChild(D);
3226
3233
  }, a._get_columns_num = function(h, u) {
3227
- var m = 7;
3234
+ var v = 7;
3228
3235
  if (!a._table_view) {
3229
3236
  var y = a.date["get_" + a._mode + "_end"];
3230
- y && (u = y(h)), m = Math.round((u.valueOf() - h.valueOf()) / 864e5);
3237
+ y && (u = y(h)), v = Math.round((u.valueOf() - h.valueOf()) / 864e5);
3231
3238
  }
3232
- return m;
3239
+ return v;
3233
3240
  }, a._get_timeunit_start = function() {
3234
3241
  return this.date[this._mode + "_start"](new Date(this._date.valueOf()));
3235
3242
  }, a._get_view_end = function() {
3236
3243
  var h = this._get_timeunit_start(), u = a.date.add(h, 1, this._mode);
3237
3244
  if (!a._table_view) {
3238
- var m = a.date["get_" + a._mode + "_end"];
3239
- m && (u = m(h));
3245
+ var v = a.date["get_" + a._mode + "_end"];
3246
+ v && (u = v(h));
3240
3247
  }
3241
3248
  return u;
3242
- }, a._calc_scale_sizes = function(h, u, m) {
3243
- var y = this.config.rtl, w = h, D = this._get_columns_num(u, m);
3249
+ }, a._calc_scale_sizes = function(h, u, v) {
3250
+ var y = this.config.rtl, w = h, D = this._get_columns_num(u, v);
3244
3251
  this._process_ignores(u, D, "day", 1);
3245
3252
  for (var E = D - this._ignores_detected, S = 0; S < D; S++)
3246
3253
  this._ignores[S] ? (this._cols[S] = 0, E++) : this._cols[S] = Math.floor(w / (E - S)), w -= this._cols[S], this._colsS[S] = (this._cols[S - 1] || 0) + (this._colsS[S - 1] || (this._table_view ? 0 : y ? this.xy.scroll_width : this.xy.scale_width));
3247
3254
  this._colsS.col_length = D, this._colsS[D] = this._cols[D - 1] + this._colsS[D - 1] || 0;
3248
- }, a._set_scale_col_size = function(h, u, m) {
3255
+ }, a._set_scale_col_size = function(h, u, v) {
3249
3256
  var y = this.config;
3250
- this.set_xy(h, u, y.hour_size_px * (y.last_hour - y.first_hour), m + this.xy.scale_width + 1, 0);
3257
+ this.set_xy(h, u, y.hour_size_px * (y.last_hour - y.first_hour), v + this.xy.scale_width + 1, 0);
3251
3258
  }, a._render_scales = function(h, u) {
3252
- var m = new Date(a._min_date), y = new Date(a._max_date), w = this.date.date_part(a._currentDate()), D = parseInt(h.style.width, 10) - 1, E = new Date(this._min_date), S = this._get_columns_num(m, y);
3253
- this._calc_scale_sizes(D, m, y);
3259
+ var v = new Date(a._min_date), y = new Date(a._max_date), w = this.date.date_part(a._currentDate()), D = parseInt(h.style.width, 10) - 1, E = new Date(this._min_date), S = this._get_columns_num(v, y);
3260
+ this._calc_scale_sizes(D, v, y);
3254
3261
  var g = 0;
3255
3262
  h.innerHTML = "";
3256
3263
  for (var b = 0; b < S; b++) {
@@ -3277,27 +3284,27 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3277
3284
  return this.$container.querySelector(".dhx_cal_date");
3278
3285
  }, a._reset_scale = function() {
3279
3286
  if (this.templates[this._mode + "_date"]) {
3280
- var h = this._els.dhx_cal_header[0], u = this._els.dhx_cal_data[0], m = this.config;
3287
+ var h = this._els.dhx_cal_header[0], u = this._els.dhx_cal_data[0], v = this.config;
3281
3288
  h.innerHTML = "", u.innerHTML = "";
3282
- var y, w, D = (m.readonly || !m.drag_resize ? " dhx_resize_denied" : "") + (m.readonly || !m.drag_move ? " dhx_move_denied" : "");
3289
+ var y, w, D = (v.readonly || !v.drag_resize ? " dhx_resize_denied" : "") + (v.readonly || !v.drag_move ? " dhx_move_denied" : "");
3283
3290
  u.className = "dhx_cal_data" + D, this._scales = {}, this._cols = [], this._colsS = { height: 0 }, this._dy_shift = 0, this.set_sizes();
3284
3291
  var E = this._get_timeunit_start(), S = a._get_view_end();
3285
3292
  y = w = this._table_view ? a.date.week_start(E) : E, this._min_date = y;
3286
3293
  var g = this.templates[this._mode + "_date"](E, S, this._mode), b = this._getNavDateElement();
3287
3294
  if (b && (b.innerHTML = g, this._waiAria.navBarDateAttr(b, g)), this._max_date = S, a._render_scales(h, u), this._table_view)
3288
3295
  this._reset_month_scale(u, E, w);
3289
- else if (this._reset_hours_scale(u, E, w), m.multi_day) {
3296
+ else if (this._reset_hours_scale(u, E, w), v.multi_day) {
3290
3297
  var x = "dhx_multi_day";
3291
3298
  this._els[x] && (this._els[x][0].parentNode.removeChild(this._els[x][0]), this._els[x] = null);
3292
3299
  var k = document.createElement("div");
3293
3300
  k.className = x, k.style.visibility = "hidden", k.style.display = "none";
3294
- var M = this._colsS[this._colsS.col_length], N = m.rtl ? this.xy.scale_width : this.xy.scroll_width, T = Math.max(M + N, 0);
3301
+ var M = this._colsS[this._colsS.col_length], N = v.rtl ? this.xy.scale_width : this.xy.scroll_width, T = Math.max(M + N, 0);
3295
3302
  this.set_xy(k, T, 0, 0), u.parentNode.insertBefore(k, u);
3296
3303
  var A = k.cloneNode(!0);
3297
3304
  A.className = x + "_icon", A.style.visibility = "hidden", A.style.display = "none", this.set_xy(A, this.xy.scale_width + 1, 0, 0), k.appendChild(A), this._els[x] = [k, A], a.event(this._els[x][0], "click", this._click.dhx_cal_data);
3298
3305
  }
3299
3306
  }
3300
- }, a._reset_hours_scale = function(h, u, m) {
3307
+ }, a._reset_hours_scale = function(h, u, v) {
3301
3308
  var y = document.createElement("div");
3302
3309
  y.className = "dhx_scale_holder";
3303
3310
  for (var w = new Date(1980, 1, 1, this.config.first_hour, 0, 0), D = 1 * this.config.first_hour; D < this.config.last_hour; D++) {
@@ -3313,15 +3320,15 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3313
3320
  return a.config.now_date ? new Date(a.config.now_date) : /* @__PURE__ */ new Date();
3314
3321
  }, a._reset_ignores = function() {
3315
3322
  this._ignores = {}, this._ignores_detected = 0;
3316
- }, a._process_ignores = function(h, u, m, y, w) {
3323
+ }, a._process_ignores = function(h, u, v, y, w) {
3317
3324
  this._reset_ignores();
3318
3325
  var D = a["ignore_" + this._mode];
3319
3326
  if (D)
3320
3327
  for (var E = new Date(h), S = 0; S < u; S++)
3321
- D(E) && (this._ignores_detected += 1, this._ignores[S] = !0, w && u++), E = a.date.add(E, y, m), a.date[m + "_start"] && (E = a.date[m + "_start"](E));
3322
- }, a._render_month_scale = function(h, u, m, y) {
3323
- var w = a.date.add(u, 1, "month"), D = new Date(m), E = a._currentDate();
3324
- this.date.date_part(E), this.date.date_part(m), y = y || Math.ceil(Math.round((w.valueOf() - m.valueOf()) / 864e5) / 7);
3328
+ D(E) && (this._ignores_detected += 1, this._ignores[S] = !0, w && u++), E = a.date.add(E, y, v), a.date[v + "_start"] && (E = a.date[v + "_start"](E));
3329
+ }, a._render_month_scale = function(h, u, v, y) {
3330
+ var w = a.date.add(u, 1, "month"), D = new Date(v), E = a._currentDate();
3331
+ this.date.date_part(E), this.date.date_part(v), y = y || Math.ceil(Math.round((w.valueOf() - v.valueOf()) / 864e5) / 7);
3325
3332
  for (var S = [], g = 0; g <= 7; g++) {
3326
3333
  var b = this._cols[g] || 0;
3327
3334
  isNaN(Number(b)) || (b += "px"), S[g] = b;
@@ -3339,59 +3346,59 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3339
3346
  var A = document.createElement("div");
3340
3347
  N.appendChild(A);
3341
3348
  var C = "dhx_cal_month_cell";
3342
- m < u ? C += " dhx_before" : m >= w ? C += " dhx_after" : m.valueOf() == E.valueOf() && (C += " dhx_now"), this._ignores_detected && this._ignores[T] && (C += " dhx_scale_ignore"), A.className = C + " " + this.templates.month_date_class(m, E), A.setAttribute("data-cell-date", a.templates.format_date(m));
3349
+ v < u ? C += " dhx_before" : v >= w ? C += " dhx_after" : v.valueOf() == E.valueOf() && (C += " dhx_now"), this._ignores_detected && this._ignores[T] && (C += " dhx_scale_ignore"), A.className = C + " " + this.templates.month_date_class(v, E), A.setAttribute("data-cell-date", a.templates.format_date(v));
3343
3350
  var $ = "dhx_month_body", O = "dhx_month_head";
3344
3351
  if (T === 0 && this.config.left_border && ($ += " dhx_month_body_border", O += " dhx_month_head_border"), this._ignores_detected && this._ignores[T])
3345
3352
  A.appendChild(document.createElement("div")), A.appendChild(document.createElement("div"));
3346
3353
  else {
3347
- A.style.width = S[T], this._waiAria.monthCellAttr(A, m);
3354
+ A.style.width = S[T], this._waiAria.monthCellAttr(A, v);
3348
3355
  var j = document.createElement("div");
3349
- j.style.height = a.xy.month_head_height + "px", j.className = O, j.innerHTML = this.templates.month_day(m), A.appendChild(j);
3356
+ j.style.height = a.xy.month_head_height + "px", j.className = O, j.innerHTML = this.templates.month_day(v), A.appendChild(j);
3350
3357
  var V = document.createElement("div");
3351
3358
  V.className = $, A.appendChild(V);
3352
3359
  }
3353
- var Y = m.getDate();
3354
- (m = this.date.add(m, 1, "day")).getDate() - Y > 1 && (m = new Date(m.getFullYear(), m.getMonth(), Y + 1, 12, 0));
3360
+ var Y = v.getDate();
3361
+ (v = this.date.add(v, 1, "day")).getDate() - Y > 1 && (v = new Date(v.getFullYear(), v.getMonth(), Y + 1, 12, 0));
3355
3362
  }
3356
3363
  a._colsS.heights[g] = k, k += x(g);
3357
3364
  }
3358
- return this._min_date = D, this._max_date = m, h.innerHTML = "", h.appendChild(M), this._scales = {}, h.querySelectorAll("[data-cell-date]").forEach((z) => {
3365
+ return this._min_date = D, this._max_date = v, h.innerHTML = "", h.appendChild(M), this._scales = {}, h.querySelectorAll("[data-cell-date]").forEach((z) => {
3359
3366
  const R = a.templates.parse_date(z.getAttribute("data-cell-date")), I = z.querySelector(".dhx_month_body");
3360
3367
  this._scales[+R] = I, this.callEvent("onScaleAdd", [this._scales[+R], R]);
3361
3368
  }), this._max_date;
3362
- }, a._reset_month_scale = function(h, u, m, y) {
3369
+ }, a._reset_month_scale = function(h, u, v, y) {
3363
3370
  var w = a.date.add(u, 1, "month"), D = a._currentDate();
3364
- this.date.date_part(D), this.date.date_part(m), y = y || Math.ceil(Math.round((w.valueOf() - m.valueOf()) / 864e5) / 7);
3371
+ this.date.date_part(D), this.date.date_part(v), y = y || Math.ceil(Math.round((w.valueOf() - v.valueOf()) / 864e5) / 7);
3365
3372
  var E = Math.floor(h.clientHeight / y) - this.xy.month_head_height;
3366
- return this._colsS.height = E + this.xy.month_head_height, this._colsS.heights = [], a._render_month_scale(h, u, m, y);
3373
+ return this._colsS.height = E + this.xy.month_head_height, this._colsS.heights = [], a._render_month_scale(h, u, v, y);
3367
3374
  }, a.getView = function(h) {
3368
3375
  return h || (h = a.getState().mode), a.matrix && a.matrix[h] ? a.matrix[h] : a._props && a._props[h] ? a._props[h] : null;
3369
3376
  }, a.getLabel = function(h, u) {
3370
- for (var m = this.config.lightbox.sections, y = 0; y < m.length; y++)
3371
- if (m[y].map_to == h) {
3372
- for (var w = m[y].options, D = 0; D < w.length; D++)
3377
+ for (var v = this.config.lightbox.sections, y = 0; y < v.length; y++)
3378
+ if (v[y].map_to == h) {
3379
+ for (var w = v[y].options, D = 0; D < w.length; D++)
3373
3380
  if (w[D].key == u)
3374
3381
  return w[D].label;
3375
3382
  }
3376
3383
  return "";
3377
3384
  }, a.updateCollection = function(h, u) {
3378
- var m = a.serverList(h);
3379
- return !!m && (m.splice(0, m.length), m.push.apply(m, u || []), a.callEvent("onOptionsLoad", []), a.resetLightbox(), a.hideCover(), !0);
3385
+ var v = a.serverList(h);
3386
+ return !!v && (v.splice(0, v.length), v.push.apply(v, u || []), a.callEvent("onOptionsLoad", []), a.resetLightbox(), a.hideCover(), !0);
3380
3387
  }, a._lame_clone = function(h, u) {
3381
- var m, y, w;
3382
- for (u = u || [], m = 0; m < u.length; m += 2)
3383
- if (h === u[m])
3384
- return u[m + 1];
3388
+ var v, y, w;
3389
+ for (u = u || [], v = 0; v < u.length; v += 2)
3390
+ if (h === u[v])
3391
+ return u[v + 1];
3385
3392
  if (h && typeof h == "object") {
3386
- for (w = Object.create(h), y = [Array, Date, Number, String, Boolean], m = 0; m < y.length; m++)
3387
- h instanceof y[m] && (w = m ? new y[m](h) : new y[m]());
3388
- for (m in u.push(h, w), h)
3389
- Object.prototype.hasOwnProperty.apply(h, [m]) && (w[m] = a._lame_clone(h[m], u));
3393
+ for (w = Object.create(h), y = [Array, Date, Number, String, Boolean], v = 0; v < y.length; v++)
3394
+ h instanceof y[v] && (w = v ? new y[v](h) : new y[v]());
3395
+ for (v in u.push(h, w), h)
3396
+ Object.prototype.hasOwnProperty.apply(h, [v]) && (w[v] = a._lame_clone(h[v], u));
3390
3397
  }
3391
3398
  return w || h;
3392
3399
  }, a._lame_copy = function(h, u) {
3393
- for (var m in u)
3394
- u.hasOwnProperty(m) && (h[m] = u[m]);
3400
+ for (var v in u)
3401
+ u.hasOwnProperty(v) && (h[v] = u[v]);
3395
3402
  return h;
3396
3403
  }, a._get_date_from_pos = function(h) {
3397
3404
  var u = this._min_date.valueOf() + 6e4 * (h.y * this.config.time_step + 24 * (this._table_view ? 0 : h.x) * 60);
@@ -3410,32 +3417,32 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3410
3417
  u && h.select && h.offsetWidth && h.select(), h.focus();
3411
3418
  } catch {
3412
3419
  }
3413
- }, a._get_real_event_length = function(h, u, m) {
3420
+ }, a._get_real_event_length = function(h, u, v) {
3414
3421
  var y, w = u - h, D = this["ignore_" + this._mode], E = 0;
3415
- m.render ? (E = this._get_date_index(m, h), y = this._get_date_index(m, u), h.valueOf() < a.getState().min_date.valueOf() && (E = -p(h, a.getState().min_date)), u.valueOf() > a.getState().max_date.valueOf() && (y += p(u, a.getState().max_date))) : y = Math.round(w / 60 / 60 / 1e3 / 24);
3422
+ v.render ? (E = this._get_date_index(v, h), y = this._get_date_index(v, u), h.valueOf() < a.getState().min_date.valueOf() && (E = -p(h, a.getState().min_date)), u.valueOf() > a.getState().max_date.valueOf() && (y += p(u, a.getState().max_date))) : y = Math.round(w / 60 / 60 / 1e3 / 24);
3416
3423
  for (var S = !0; E < y; ) {
3417
- var g = a.date.add(u, -m.x_step, m.x_unit);
3424
+ var g = a.date.add(u, -v.x_step, v.x_unit);
3418
3425
  if (D && D(u) && (!S || S && D(g)))
3419
3426
  w -= u - g;
3420
3427
  else {
3421
3428
  let b = 0;
3422
- const x = new Date(Math.max(g.valueOf(), h.valueOf())), k = u, M = new Date(x.getFullYear(), x.getMonth(), x.getDate(), m.first_hour), N = new Date(x.getFullYear(), x.getMonth(), x.getDate(), m.last_hour || 24), T = new Date(u.getFullYear(), u.getMonth(), u.getDate(), m.first_hour), A = new Date(u.getFullYear(), u.getMonth(), u.getDate(), m.last_hour || 24);
3423
- k.valueOf() > A.valueOf() && (b += k - A), k.valueOf() > T.valueOf() ? b += m._start_correction : b += 60 * k.getHours() * 60 * 1e3 + 60 * k.getMinutes() * 1e3, x.valueOf() <= N.valueOf() && (b += m._end_correction), x.valueOf() < M.valueOf() && (b += M.valueOf() - x.valueOf()), w -= b, S = !1;
3429
+ const x = new Date(Math.max(g.valueOf(), h.valueOf())), k = u, M = new Date(x.getFullYear(), x.getMonth(), x.getDate(), v.first_hour), N = new Date(x.getFullYear(), x.getMonth(), x.getDate(), v.last_hour || 24), T = new Date(u.getFullYear(), u.getMonth(), u.getDate(), v.first_hour), A = new Date(u.getFullYear(), u.getMonth(), u.getDate(), v.last_hour || 24);
3430
+ k.valueOf() > A.valueOf() && (b += k - A), k.valueOf() > T.valueOf() ? b += v._start_correction : b += 60 * k.getHours() * 60 * 1e3 + 60 * k.getMinutes() * 1e3, x.valueOf() <= N.valueOf() && (b += v._end_correction), x.valueOf() < M.valueOf() && (b += M.valueOf() - x.valueOf()), w -= b, S = !1;
3424
3431
  }
3425
3432
  u = g, y--;
3426
3433
  }
3427
3434
  return w;
3428
- }, a._get_fictional_event_length = function(h, u, m, y) {
3435
+ }, a._get_fictional_event_length = function(h, u, v, y) {
3429
3436
  var w = new Date(h), D = y ? -1 : 1;
3430
- if (m._start_correction || m._end_correction) {
3437
+ if (v._start_correction || v._end_correction) {
3431
3438
  var E;
3432
- E = y ? 60 * w.getHours() + w.getMinutes() - 60 * (m.first_hour || 0) : 60 * (m.last_hour || 0) - (60 * w.getHours() + w.getMinutes());
3433
- var S = 60 * (m.last_hour - m.first_hour), g = Math.ceil((u / 6e4 - E) / S);
3439
+ E = y ? 60 * w.getHours() + w.getMinutes() - 60 * (v.first_hour || 0) : 60 * (v.last_hour || 0) - (60 * w.getHours() + w.getMinutes());
3440
+ var S = 60 * (v.last_hour - v.first_hour), g = Math.ceil((u / 6e4 - E) / S);
3434
3441
  g < 0 && (g = 0), u += g * (1440 - S) * 60 * 1e3;
3435
3442
  }
3436
3443
  var b, x = new Date(1 * h + u * D), k = this["ignore_" + this._mode], M = 0;
3437
- for (m.render ? (M = this._get_date_index(m, w), b = this._get_date_index(m, x)) : b = Math.round(u / 60 / 60 / 1e3 / 24); M * D <= b * D; ) {
3438
- var N = a.date.add(w, m.x_step * D, m.x_unit);
3444
+ for (v.render ? (M = this._get_date_index(v, w), b = this._get_date_index(v, x)) : b = Math.round(u / 60 / 60 / 1e3 / 24); M * D <= b * D; ) {
3445
+ var N = a.date.add(w, v.x_step * D, v.x_unit);
3439
3446
  k && k(w) && (u += (N - w) * D, b += D), w = N, M += D;
3440
3447
  }
3441
3448
  return u;
@@ -3458,20 +3465,20 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3458
3465
  return (h + "").replace(d, " ").replace(l, " ");
3459
3466
  }
3460
3467
  var f = new RegExp("'", "gm");
3461
- function v(h) {
3468
+ function m(h) {
3462
3469
  return (h + "").replace(f, "&#39;");
3463
3470
  }
3464
3471
  for (var p in a._waiAria = { getAttributeString: function(h) {
3465
3472
  var u = [" "];
3466
- for (var m in h)
3467
- if (typeof h[m] != "function" && typeof h[m] != "object") {
3468
- var y = v(c(h[m]));
3469
- u.push(m + "='" + y + "'");
3473
+ for (var v in h)
3474
+ if (typeof h[v] != "function" && typeof h[v] != "object") {
3475
+ var y = m(c(h[v]));
3476
+ u.push(v + "='" + y + "'");
3470
3477
  }
3471
3478
  return u.push(" "), u.join(" ");
3472
3479
  }, setAttributes: function(h, u) {
3473
- for (var m in u)
3474
- h.setAttribute(m, c(u[m]));
3480
+ for (var v in u)
3481
+ h.setAttribute(v, c(u[v]));
3475
3482
  return h;
3476
3483
  }, labelAttr: function(h, u) {
3477
3484
  return this.setAttributes(h, { "aria-label": u });
@@ -3500,10 +3507,10 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3500
3507
  }, setEventBarAttr: function(h, u) {
3501
3508
  this._eventCommonAttr(h, u);
3502
3509
  }, _getAttributes: function(h, u) {
3503
- var m = { setAttribute: function(y, w) {
3510
+ var v = { setAttribute: function(y, w) {
3504
3511
  this[y] = w;
3505
3512
  } };
3506
- return h.apply(this, [u, m]), m;
3513
+ return h.apply(this, [u, v]), v;
3507
3514
  }, eventBarAttrString: function(h) {
3508
3515
  return this.getAttributeString(this._getAttributes(this.setEventBarAttr, h));
3509
3516
  }, agendaHeadAttrString: function() {
@@ -3523,8 +3530,8 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3523
3530
  return this.getAttributeString({ role: "grid" });
3524
3531
  }, gridRowAttrString: function(h) {
3525
3532
  return this.agendaEventAttrString(h);
3526
- }, gridCellAttrString: function(h, u, m) {
3527
- return this.getAttributeString({ role: "gridcell", "aria-label": [u.label === void 0 ? u.id : u.label, ": ", m] });
3533
+ }, gridCellAttrString: function(h, u, v) {
3534
+ return this.getAttributeString({ role: "gridcell", "aria-label": [u.label === void 0 ? u.id : u.label, ": ", v] });
3528
3535
  }, mapAttrString: function() {
3529
3536
  return this.gridAttrString();
3530
3537
  }, mapRowAttrString: function(h) {
@@ -3538,13 +3545,13 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3538
3545
  }, minicalRow: function(h) {
3539
3546
  this.setAttributes(h, { role: "row" });
3540
3547
  }, minicalDayCell: function(h, u) {
3541
- var m = u.valueOf() < a._max_date.valueOf() && u.valueOf() >= a._min_date.valueOf();
3542
- this.setAttributes(h, { role: "gridcell", "aria-label": a.templates.day_date(u), "aria-selected": m ? "true" : "false" });
3548
+ var v = u.valueOf() < a._max_date.valueOf() && u.valueOf() >= a._min_date.valueOf();
3549
+ this.setAttributes(h, { role: "gridcell", "aria-label": a.templates.day_date(u), "aria-selected": v ? "true" : "false" });
3543
3550
  }, minicalHeadCell: function(h) {
3544
3551
  this.setAttributes(h, { role: "columnheader" });
3545
3552
  }, weekAgendaDayCell: function(h, u) {
3546
- var m = h.querySelector(".dhx_wa_scale_bar"), y = h.querySelector(".dhx_wa_day_data"), w = a.uid() + "";
3547
- this.setAttributes(m, { id: w }), this.setAttributes(y, { "aria-labelledby": w });
3553
+ var v = h.querySelector(".dhx_wa_scale_bar"), y = h.querySelector(".dhx_wa_day_data"), w = a.uid() + "";
3554
+ this.setAttributes(v, { id: w }), this.setAttributes(y, { "aria-labelledby": w });
3548
3555
  }, weekAgendaEvent: function(h, u) {
3549
3556
  this.eventAttr(u, h);
3550
3557
  }, lightboxHiddenAttr: function(h) {
@@ -3652,43 +3659,43 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3652
3659
  var c;
3653
3660
  }, xmltop: function(l, c, f) {
3654
3661
  if (c.status === void 0 || c.status < 400) {
3655
- var v = c.responseXML ? c.responseXML || c : this.parse(c.responseText || c);
3656
- if (v && v.documentElement !== null && !v.getElementsByTagName("parsererror").length)
3657
- return v.getElementsByTagName(l)[0];
3662
+ var m = c.responseXML ? c.responseXML || c : this.parse(c.responseText || c);
3663
+ if (m && m.documentElement !== null && !m.getElementsByTagName("parsererror").length)
3664
+ return m.getElementsByTagName(l)[0];
3658
3665
  }
3659
3666
  return f !== -1 && a.callEvent("onLoadXMLError", ["Incorrect XML", arguments[1], f]), document.createElement("DIV");
3660
3667
  }, xpath: function(l, c) {
3661
3668
  if (c.nodeName || (c = c.responseXML || c), a.$env.isIE)
3662
3669
  return c.selectNodes(l) || [];
3663
- for (var f, v = [], p = (c.ownerDocument || c).evaluate(l, c, null, XPathResult.ANY_TYPE, null); f = p.iterateNext(); )
3664
- v.push(f);
3665
- return v;
3670
+ for (var f, m = [], p = (c.ownerDocument || c).evaluate(l, c, null, XPathResult.ANY_TYPE, null); f = p.iterateNext(); )
3671
+ m.push(f);
3672
+ return m;
3666
3673
  }, query: function(l) {
3667
3674
  return this._call(l.method || "GET", l.url, l.data || "", l.async || !0, l.callback, l.headers);
3668
3675
  }, get: function(l, c, f) {
3669
- var v = d("GET", arguments);
3670
- return this.query(v);
3676
+ var m = d("GET", arguments);
3677
+ return this.query(m);
3671
3678
  }, getSync: function(l, c) {
3672
3679
  var f = d("GET", arguments);
3673
3680
  return f.async = !1, this.query(f);
3674
- }, put: function(l, c, f, v) {
3681
+ }, put: function(l, c, f, m) {
3675
3682
  var p = d("PUT", arguments);
3676
3683
  return this.query(p);
3677
3684
  }, del: function(l, c, f) {
3678
- var v = d("DELETE", arguments);
3679
- return this.query(v);
3680
- }, post: function(l, c, f, v) {
3685
+ var m = d("DELETE", arguments);
3686
+ return this.query(m);
3687
+ }, post: function(l, c, f, m) {
3681
3688
  arguments.length == 1 ? c = "" : arguments.length == 2 && typeof c == "function" && (f = c, c = "");
3682
3689
  var p = d("POST", arguments);
3683
3690
  return this.query(p);
3684
3691
  }, postSync: function(l, c, f) {
3685
3692
  c = c === null ? "" : String(c);
3686
- var v = d("POST", arguments);
3687
- return v.async = !1, this.query(v);
3688
- }, _call: function(l, c, f, v, p, h) {
3689
- return new a.Promise((function(u, m) {
3693
+ var m = d("POST", arguments);
3694
+ return m.async = !1, this.query(m);
3695
+ }, _call: function(l, c, f, m, p, h) {
3696
+ return new a.Promise((function(u, v) {
3690
3697
  var y = typeof XMLHttpRequest === void 0 || a.$env.isIE ? new window.ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(), w = navigator.userAgent.match(/AppleWebKit/) !== null && navigator.userAgent.match(/Qt/) !== null && navigator.userAgent.match(/Safari/) !== null;
3691
- if (v && y.addEventListener("readystatechange", function() {
3698
+ if (m && y.addEventListener("readystatechange", function() {
3692
3699
  if (y.readyState == 4 || w && y.readyState == 3) {
3693
3700
  if ((y.status != 200 || y.responseText === "") && !a.callEvent("onAjaxError", [y]))
3694
3701
  return;
@@ -3696,12 +3703,12 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3696
3703
  typeof p == "function" && p.apply(window, [{ xmlDoc: y, filePath: c }]), u(y), typeof p == "function" && (p = null, y = null);
3697
3704
  }, 0);
3698
3705
  }
3699
- }), l != "GET" || this.cache || (c += (c.indexOf("?") >= 0 ? "&" : "?") + "dhxr" + (/* @__PURE__ */ new Date()).getTime() + "=1"), y.open(l, c, v), h)
3706
+ }), l != "GET" || this.cache || (c += (c.indexOf("?") >= 0 ? "&" : "?") + "dhxr" + (/* @__PURE__ */ new Date()).getTime() + "=1"), y.open(l, c, m), h)
3700
3707
  for (var D in h)
3701
3708
  y.setRequestHeader(D, h[D]);
3702
3709
  else
3703
3710
  l.toUpperCase() == "POST" || l == "PUT" || l == "DELETE" ? y.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") : l == "GET" && (f = null);
3704
- if (y.setRequestHeader("X-Requested-With", "XMLHttpRequest"), y.send(f), !v)
3711
+ if (y.setRequestHeader("X-Requested-With", "XMLHttpRequest"), y.send(f), !m)
3705
3712
  return { xmlDoc: y, filePath: c };
3706
3713
  }).bind(this));
3707
3714
  }, urlSeparator: function(l) {
@@ -3715,46 +3722,46 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3715
3722
  } }, a.templates = {}, a.init_templates = function() {
3716
3723
  var d = a.date.date_to_str, l = a.config;
3717
3724
  (function(c, f) {
3718
- for (var v in f)
3719
- c[v] || (c[v] = f[v]);
3725
+ for (var m in f)
3726
+ c[m] || (c[m] = f[m]);
3720
3727
  })(a.templates, { day_date: d(l.default_date), month_date: d(l.month_date), week_date: function(c, f) {
3721
3728
  return l.rtl ? a.templates.day_date(a.date.add(f, -1, "day")) + " &ndash; " + a.templates.day_date(c) : a.templates.day_date(c) + " &ndash; " + a.templates.day_date(a.date.add(f, -1, "day"));
3722
3729
  }, day_scale_date: d(l.default_date), time_slot_text: function(c) {
3723
3730
  return "";
3724
3731
  }, time_slot_class: function(c) {
3725
3732
  return "";
3726
- }, month_scale_date: d(l.week_date), week_scale_date: d(l.day_date), hour_scale: d(l.hour_date), time_picker: d(l.hour_date), event_date: d(l.hour_date), month_day: d(l.month_day), load_format: d(l.load_date), format_date: d(l.date_format, l.server_utc), parse_date: a.date.str_to_date(l.date_format, l.server_utc), api_date: a.date.str_to_date(l.api_date, !1, !1), event_header: function(c, f, v) {
3727
- return v._mode === "small" || v._mode === "smallest" ? a.templates.event_date(c) : a.templates.event_date(c) + " - " + a.templates.event_date(f);
3728
- }, event_text: function(c, f, v) {
3729
- return v.text;
3730
- }, event_class: function(c, f, v) {
3733
+ }, month_scale_date: d(l.week_date), week_scale_date: d(l.day_date), hour_scale: d(l.hour_date), time_picker: d(l.hour_date), event_date: d(l.hour_date), month_day: d(l.month_day), load_format: d(l.load_date), format_date: d(l.date_format, l.server_utc), parse_date: a.date.str_to_date(l.date_format, l.server_utc), api_date: a.date.str_to_date(l.api_date, !1, !1), event_header: function(c, f, m) {
3734
+ return m._mode === "small" || m._mode === "smallest" ? a.templates.event_date(c) : a.templates.event_date(c) + " - " + a.templates.event_date(f);
3735
+ }, event_text: function(c, f, m) {
3736
+ return m.text;
3737
+ }, event_class: function(c, f, m) {
3731
3738
  return "";
3732
3739
  }, month_date_class: function(c) {
3733
3740
  return "";
3734
3741
  }, week_date_class: function(c) {
3735
3742
  return "";
3736
- }, event_bar_date: function(c, f, v) {
3743
+ }, event_bar_date: function(c, f, m) {
3737
3744
  return a.templates.event_date(c);
3738
- }, event_bar_text: function(c, f, v) {
3739
- return v.text;
3745
+ }, event_bar_text: function(c, f, m) {
3746
+ return m.text;
3740
3747
  }, month_events_link: function(c, f) {
3741
3748
  return "<a>View more(" + f + " events)</a>";
3742
- }, drag_marker_class: function(c, f, v) {
3749
+ }, drag_marker_class: function(c, f, m) {
3743
3750
  return "";
3744
- }, drag_marker_content: function(c, f, v) {
3751
+ }, drag_marker_content: function(c, f, m) {
3745
3752
  return "";
3746
- }, tooltip_date_format: a.date.date_to_str("%Y-%m-%d %H:%i"), tooltip_text: function(c, f, v) {
3747
- return "<b>Event:</b> " + v.text + "<br/><b>Start date:</b> " + a.templates.tooltip_date_format(c) + "<br/><b>End date:</b> " + a.templates.tooltip_date_format(f);
3753
+ }, tooltip_date_format: a.date.date_to_str("%Y-%m-%d %H:%i"), tooltip_text: function(c, f, m) {
3754
+ return "<b>Event:</b> " + m.text + "<br/><b>Start date:</b> " + a.templates.tooltip_date_format(c) + "<br/><b>End date:</b> " + a.templates.tooltip_date_format(f);
3748
3755
  }, calendar_month: d("%F %Y"), calendar_scale_date: d("%D"), calendar_date: d("%d"), calendar_time: d("%d-%m-%Y") }), this.callEvent("onTemplatesReady", []);
3749
3756
  };
3750
3757
  }(i), function(a) {
3751
3758
  a._events = {}, a.clearAll = function() {
3752
3759
  this._events = {}, this._loaded = {}, this._edit_id = null, this._select_id = null, this._drag_id = null, this._drag_mode = null, this._drag_pos = null, this._new_event = null, this.clear_view(), this.callEvent("onClearAll", []);
3753
- }, a.addEvent = function(d, l, c, f, v) {
3760
+ }, a.addEvent = function(d, l, c, f, m) {
3754
3761
  if (!arguments.length)
3755
3762
  return this.addEventNow();
3756
3763
  var p = d;
3757
- arguments.length != 1 && ((p = v || {}).start_date = d, p.end_date = l, p.text = c, p.id = f), p.id = p.id || a.uid(), p.text = p.text || "", typeof p.start_date == "string" && (p.start_date = this.templates.api_date(p.start_date)), typeof p.end_date == "string" && (p.end_date = this.templates.api_date(p.end_date));
3764
+ arguments.length != 1 && ((p = m || {}).start_date = d, p.end_date = l, p.text = c, p.id = f), p.id = p.id || a.uid(), p.text = p.text || "", typeof p.start_date == "string" && (p.start_date = this.templates.api_date(p.start_date)), typeof p.end_date == "string" && (p.end_date = this.templates.api_date(p.end_date));
3758
3765
  var h = 6e4 * (this.config.event_duration || this.config.time_step);
3759
3766
  p.start_date.valueOf() == p.end_date.valueOf() && p.end_date.setTime(p.end_date.valueOf() + h), p.start_date.setMilliseconds(0), p.end_date.setMilliseconds(0), p._timed = this.isOneDayEvent(p);
3760
3767
  var u = !this._events[p.id];
@@ -3777,14 +3784,14 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3777
3784
  }), this._select_id == d && (this._select_id = l), this._edit_id == d && (this._edit_id = l), this.callEvent("onEventIdChange", [d, l]);
3778
3785
  }
3779
3786
  }, function() {
3780
- for (var d = ["text", "Text", "start_date", "StartDate", "end_date", "EndDate"], l = function(v) {
3787
+ for (var d = ["text", "Text", "start_date", "StartDate", "end_date", "EndDate"], l = function(m) {
3781
3788
  return function(p) {
3782
- return a.getEvent(p)[v];
3789
+ return a.getEvent(p)[m];
3783
3790
  };
3784
- }, c = function(v) {
3791
+ }, c = function(m) {
3785
3792
  return function(p, h) {
3786
3793
  var u = a.getEvent(p);
3787
- u[v] = h, u._changed = !0, u._timed = this.isOneDayEvent(u), a.event_updated(u, !0);
3794
+ u[m] = h, u._changed = !0, u._timed = this.isOneDayEvent(u), a.event_updated(u, !0);
3788
3795
  };
3789
3796
  }, f = 0; f < d.length; f += 2)
3790
3797
  a["getEvent" + d[f + 1]] = l(d[f]), a["setEvent" + d[f + 1]] = c(d[f]);
@@ -3794,8 +3801,8 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3794
3801
  if (!this._min_date || !this._max_date)
3795
3802
  return !1;
3796
3803
  if (d.start_date.valueOf() < this._max_date.valueOf() && this._min_date.valueOf() < d.end_date.valueOf()) {
3797
- var l = d.start_date.getHours(), c = d.end_date.getHours() + d.end_date.getMinutes() / 60, f = this.config.last_hour, v = this.config.first_hour;
3798
- return !(!this._table_view && (c > f || c <= v) && (l >= f || l < v) && !((d.end_date.valueOf() - d.start_date.valueOf()) / 36e5 > 24 - (this.config.last_hour - this.config.first_hour) || l < f && c > v));
3804
+ var l = d.start_date.getHours(), c = d.end_date.getHours() + d.end_date.getMinutes() / 60, f = this.config.last_hour, m = this.config.first_hour;
3805
+ return !(!this._table_view && (c > f || c <= m) && (l >= f || l < m) && !((d.end_date.valueOf() - d.start_date.valueOf()) / 36e5 > 24 - (this.config.last_hour - this.config.first_hour) || l < f && c > m));
3799
3806
  }
3800
3807
  return !1;
3801
3808
  }, a.isOneDayEvent = function(d) {
@@ -3818,7 +3825,7 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3818
3825
  return void (this._render_wait = !0);
3819
3826
  this._render_wait = !1, this.clear_view(), d = this.get_visible_events(!(this._table_view || this.config.multi_day));
3820
3827
  }
3821
- for (var f = 0, v = d.length; f < v; f++)
3828
+ for (var f = 0, m = d.length; f < m; f++)
3822
3829
  this._recalculate_timed(d[f]);
3823
3830
  if (this.config.multi_day && !this._table_view) {
3824
3831
  var p = [], h = [];
@@ -3830,8 +3837,8 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3830
3837
  }
3831
3838
  this._rendered_location = this._els.dhx_multi_day[0], this._table_view = !0, this.render_data(h, l), this._table_view = !1, this._rendered_location = this._els.dhx_cal_data[0], this._table_view = !1, this.render_data(p, l);
3832
3839
  } else {
3833
- var m = document.createDocumentFragment(), y = this._els.dhx_cal_data[0];
3834
- this._rendered_location = m, this.render_data(d, l), y.appendChild(m), this._rendered_location = y;
3840
+ var v = document.createDocumentFragment(), y = this._els.dhx_cal_data[0];
3841
+ this._rendered_location = v, this.render_data(d, l), y.appendChild(v), this._rendered_location = y;
3835
3842
  }
3836
3843
  c && this.callEvent("onDataRender", []);
3837
3844
  }, a._view_month_day = function(d) {
@@ -3840,12 +3847,12 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3840
3847
  }, a._render_month_link = function(d) {
3841
3848
  for (var l = this._rendered_location, c = this._lame_clone(d), f = d._sday; f < d._eday; f++) {
3842
3849
  c._sday = f, c._eday = f + 1;
3843
- var v = a.date, p = a._min_date;
3844
- p = v.add(p, c._sweek, "week"), p = v.add(p, c._sday, "day");
3845
- var h = a.getEvents(p, v.add(p, 1, "day")).length, u = this._get_event_bar_pos(c), m = u.x2 - u.x, y = document.createElement("div");
3850
+ var m = a.date, p = a._min_date;
3851
+ p = m.add(p, c._sweek, "week"), p = m.add(p, c._sday, "day");
3852
+ var h = a.getEvents(p, m.add(p, 1, "day")).length, u = this._get_event_bar_pos(c), v = u.x2 - u.x, y = document.createElement("div");
3846
3853
  a.event(y, "click", function(w) {
3847
3854
  a._view_month_day(w);
3848
- }), y.className = "dhx_month_link", y.style.top = u.y + "px", y.style.left = u.x + "px", y.style.width = m + "px", y.innerHTML = a.templates.month_events_link(p, h), this._rendered.push(y), l.appendChild(y);
3855
+ }), y.className = "dhx_month_link", y.style.top = u.y + "px", y.style.left = u.x + "px", y.style.width = v + "px", y.innerHTML = a.templates.month_events_link(p, h), this._rendered.push(y), l.appendChild(y);
3849
3856
  }
3850
3857
  }, a._recalculate_timed = function(d) {
3851
3858
  var l;
@@ -3857,8 +3864,8 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3857
3864
  if (a._mode != "month")
3858
3865
  this.render_event_bar(d[f]);
3859
3866
  else {
3860
- var v = a.config.max_month_events;
3861
- v !== 1 * v || d[f]._sorder < v ? this.render_event_bar(d[f]) : v !== void 0 && d[f]._sorder == v && a._render_month_link(d[f]);
3867
+ var m = a.config.max_month_events;
3868
+ m !== 1 * m || d[f]._sorder < m ? this.render_event_bar(d[f]) : m !== void 0 && d[f]._sorder == m && a._render_month_link(d[f]);
3862
3869
  }
3863
3870
  else {
3864
3871
  var p = d[f], h = a.locate_holder(p._sday);
@@ -3876,7 +3883,7 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3876
3883
  return d[l];
3877
3884
  return d[0];
3878
3885
  }, a._pre_render_events = function(d, l) {
3879
- var c = this.xy.bar_height, f = this._colsS.heights, v = this._colsS.heights = [0, 0, 0, 0, 0, 0, 0], p = this._els.dhx_cal_data[0];
3886
+ var c = this.xy.bar_height, f = this._colsS.heights, m = this._colsS.heights = [0, 0, 0, 0, 0, 0, 0], p = this._els.dhx_cal_data[0];
3880
3887
  if (d = this._table_view ? this._pre_render_events_table(d, l) : this._pre_render_events_line(d, l), this._table_view)
3881
3888
  if (l)
3882
3889
  this._colsS.heights = f;
@@ -3884,27 +3891,27 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3884
3891
  var h = p.querySelectorAll(".dhx_cal_month_row");
3885
3892
  if (h.length) {
3886
3893
  for (var u = 0; u < h.length; u++) {
3887
- v[u]++;
3888
- var m = h[u].querySelectorAll(".dhx_cal_month_cell"), y = this._colsS.height - this.xy.month_head_height;
3889
- if (v[u] * c > y) {
3894
+ m[u]++;
3895
+ var v = h[u].querySelectorAll(".dhx_cal_month_cell"), y = this._colsS.height - this.xy.month_head_height;
3896
+ if (m[u] * c > y) {
3890
3897
  var w = y;
3891
- 1 * this.config.max_month_events !== this.config.max_month_events || v[u] <= this.config.max_month_events ? w = v[u] * c : (this.config.max_month_events + 1) * c > y && (w = (this.config.max_month_events + 1) * c), h[u].style.height = w + this.xy.month_head_height + "px";
3898
+ 1 * this.config.max_month_events !== this.config.max_month_events || m[u] <= this.config.max_month_events ? w = m[u] * c : (this.config.max_month_events + 1) * c > y && (w = (this.config.max_month_events + 1) * c), h[u].style.height = w + this.xy.month_head_height + "px";
3892
3899
  }
3893
- v[u] = (v[u - 1] || 0) + a._get_first_visible_cell(m).offsetHeight;
3900
+ m[u] = (m[u - 1] || 0) + a._get_first_visible_cell(v).offsetHeight;
3894
3901
  }
3895
- v.unshift(0);
3902
+ m.unshift(0);
3896
3903
  const N = this.$container.querySelector(".dhx_cal_data");
3897
3904
  if (N.offsetHeight < N.scrollHeight && !a._colsS.scroll_fix && a.xy.scroll_width) {
3898
3905
  var D = a._colsS, E = D[D.col_length], S = D.heights.slice();
3899
3906
  E -= a.xy.scroll_width || 0, this._calc_scale_sizes(E, this._min_date, this._max_date), a._colsS.heights = S, this.set_xy(this._els.dhx_cal_header[0], E), a._render_scales(this._els.dhx_cal_header[0]), a._render_month_scale(this._els.dhx_cal_data[0], this._get_timeunit_start(), this._min_date), D.scroll_fix = !0;
3900
3907
  }
3901
- } else if (d.length || this._els.dhx_multi_day[0].style.visibility != "visible" || (v[0] = -1), d.length || v[0] == -1) {
3902
- var g = (v[0] + 1) * c + 4, b = g, x = g + "px";
3908
+ } else if (d.length || this._els.dhx_multi_day[0].style.visibility != "visible" || (m[0] = -1), d.length || m[0] == -1) {
3909
+ var g = (m[0] + 1) * c + 4, b = g, x = g + "px";
3903
3910
  this.config.multi_day_height_limit && (x = (b = Math.min(g, this.config.multi_day_height_limit)) + "px");
3904
3911
  var k = this._els.dhx_multi_day[0];
3905
- k.style.height = x, k.style.visibility = v[0] == -1 ? "hidden" : "visible", k.style.display = v[0] == -1 ? "none" : "";
3912
+ k.style.height = x, k.style.visibility = m[0] == -1 ? "hidden" : "visible", k.style.display = m[0] == -1 ? "none" : "";
3906
3913
  var M = this._els.dhx_multi_day[1];
3907
- M.style.height = x, M.style.visibility = v[0] == -1 ? "hidden" : "visible", M.style.display = v[0] == -1 ? "none" : "", M.className = v[0] ? "dhx_multi_day_icon" : "dhx_multi_day_icon_small", this._dy_shift = (v[0] + 1) * c, this.config.multi_day_height_limit && (this._dy_shift = Math.min(this.config.multi_day_height_limit, this._dy_shift)), v[0] = 0, b != g && (k.style.overflowY = "auto", M.style.position = "fixed", M.style.top = "", M.style.left = "");
3914
+ M.style.height = x, M.style.visibility = m[0] == -1 ? "hidden" : "visible", M.style.display = m[0] == -1 ? "none" : "", M.className = m[0] ? "dhx_multi_day_icon" : "dhx_multi_day_icon_small", this._dy_shift = (m[0] + 1) * c, this.config.multi_day_height_limit && (this._dy_shift = Math.min(this.config.multi_day_height_limit, this._dy_shift)), m[0] = 0, b != g && (k.style.overflowY = "auto", M.style.position = "fixed", M.style.top = "", M.style.left = "");
3908
3915
  }
3909
3916
  }
3910
3917
  return d;
@@ -3924,10 +3931,10 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3924
3931
  });
3925
3932
  var c = [], f = [];
3926
3933
  this._min_mapped_duration = Math.floor(60 * this.xy.min_event_height / this.config.hour_size_px);
3927
- for (var v = 0; v < d.length; v++) {
3928
- var p = d[v], h = p.start_date, u = p.end_date, m = h.getHours(), y = u.getHours();
3934
+ for (var m = 0; m < d.length; m++) {
3935
+ var p = d[m], h = p.start_date, u = p.end_date, v = h.getHours(), y = u.getHours();
3929
3936
  if (p._sday = this._get_event_sday(p), this._ignores[p._sday])
3930
- d.splice(v, 1), v--;
3937
+ d.splice(m, 1), m--;
3931
3938
  else {
3932
3939
  if (c[p._sday] || (c[p._sday] = []), !l) {
3933
3940
  p._inner = !1;
@@ -3970,14 +3977,14 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3970
3977
  p._sorder = 0;
3971
3978
  w.splice(E, E == w.length ? 0 : 1, p), w.length > (w.max_count || 0) ? (w.max_count = w.length, p._count = w.length) : p._count = p._count ? p._count : 1;
3972
3979
  }
3973
- (m < this.config.first_hour || y >= this.config.last_hour) && (f.push(p), d[v] = p = this._copy_event(p), m < this.config.first_hour && (p.start_date.setHours(this.config.first_hour), p.start_date.setMinutes(0)), y >= this.config.last_hour && (p.end_date.setMinutes(0), p.end_date.setHours(this.config.last_hour)), p.start_date > p.end_date || m == this.config.last_hour) && (d.splice(v, 1), v--);
3980
+ (v < this.config.first_hour || y >= this.config.last_hour) && (f.push(p), d[m] = p = this._copy_event(p), v < this.config.first_hour && (p.start_date.setHours(this.config.first_hour), p.start_date.setMinutes(0)), y >= this.config.last_hour && (p.end_date.setMinutes(0), p.end_date.setHours(this.config.last_hour)), p.start_date > p.end_date || v == this.config.last_hour) && (d.splice(m, 1), m--);
3974
3981
  }
3975
3982
  }
3976
3983
  if (!l) {
3977
- for (v = 0; v < d.length; v++)
3978
- d[v]._count = c[d[v]._sday].max_count;
3979
- for (v = 0; v < f.length; v++)
3980
- f[v]._count = c[f[v]._sday].max_count;
3984
+ for (m = 0; m < d.length; m++)
3985
+ d[m]._count = c[d[m]._sday].max_count;
3986
+ for (m = 0; m < f.length; m++)
3987
+ f[m]._count = c[f[m]._sday].max_count;
3981
3988
  }
3982
3989
  return d;
3983
3990
  }, a._time_order = function(d) {
@@ -3985,21 +3992,21 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
3985
3992
  return l.start_date.valueOf() == c.start_date.valueOf() ? l._timed && !c._timed ? 1 : !l._timed && c._timed ? -1 : l.id > c.id ? 1 : -1 : l.start_date > c.start_date ? 1 : -1;
3986
3993
  });
3987
3994
  }, a._is_any_multiday_cell_visible = function(d, l, c) {
3988
- var f = this._cols.length, v = !1, p = d, h = !0, u = new Date(l);
3995
+ var f = this._cols.length, m = !1, p = d, h = !0, u = new Date(l);
3989
3996
  for (a.date.day_start(new Date(l)).valueOf() != l.valueOf() && (u = a.date.day_start(u), u = a.date.add(u, 1, "day")); p < u; ) {
3990
3997
  h = !1;
3991
- var m = this.locate_holder_day(p, !1, c) % f;
3992
- if (!this._ignores[m]) {
3993
- v = !0;
3998
+ var v = this.locate_holder_day(p, !1, c) % f;
3999
+ if (!this._ignores[v]) {
4000
+ m = !0;
3994
4001
  break;
3995
4002
  }
3996
4003
  p = a.date.add(p, 1, "day");
3997
4004
  }
3998
- return h || v;
4005
+ return h || m;
3999
4006
  }, a._pre_render_events_table = function(d, l) {
4000
4007
  this._time_order(d);
4001
- for (var c, f = [], v = [[], [], [], [], [], [], []], p = this._colsS.heights, h = this._cols.length, u = {}, m = 0; m < d.length; m++) {
4002
- var y = d[m], w = y.id;
4008
+ for (var c, f = [], m = [[], [], [], [], [], [], []], p = this._colsS.heights, h = this._cols.length, u = {}, v = 0; v < d.length; v++) {
4009
+ var y = d[v], w = y.id;
4003
4010
  u[w] || (u[w] = { first_chunk: !0, last_chunk: !0 });
4004
4011
  var D = u[w], E = c || y.start_date, S = y.end_date;
4005
4012
  E < this._min_date && (D.first_chunk = !1, E = this._min_date), S > this._max_date && (D.last_chunk = !1, S = this._max_date);
@@ -4007,14 +4014,14 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4007
4014
  if (y._sday = g % h, !this._ignores[y._sday] || !y._timed) {
4008
4015
  var b = this.locate_holder_day(S, !0, y) || h;
4009
4016
  if (y._eday = b % h || h, y._length = b - g, y._sweek = Math.floor((this._correct_shift(E.valueOf(), 1) - this._min_date.valueOf()) / (864e5 * h)), a._is_any_multiday_cell_visible(E, S, y)) {
4010
- var x, k = v[y._sweek];
4017
+ var x, k = m[y._sweek];
4011
4018
  for (x = 0; x < k.length && !(k[x]._eday <= y._sday); x++)
4012
4019
  ;
4013
4020
  if (y._sorder && l || (y._sorder = x), y._sday + y._length <= h)
4014
4021
  c = null, f.push(y), k[x] = y, p[y._sweek] = k.length - 1, y._first_chunk = D.first_chunk, y._last_chunk = D.last_chunk;
4015
4022
  else {
4016
4023
  var M = this._copy_event(y);
4017
- M.id = y.id, M._length = h - y._sday, M._eday = h, M._sday = y._sday, M._sweek = y._sweek, M._sorder = y._sorder, M.end_date = this.date.add(E, M._length, "day"), M._first_chunk = D.first_chunk, D.first_chunk && (D.first_chunk = !1), f.push(M), k[x] = M, c = M.end_date, p[y._sweek] = k.length - 1, m--;
4024
+ M.id = y.id, M._length = h - y._sday, M._eday = h, M._sday = y._sday, M._sweek = y._sweek, M._sorder = y._sorder, M.end_date = this.date.add(E, M._length, "day"), M._first_chunk = D.first_chunk, D.first_chunk && (D.first_chunk = !1), f.push(M), k[x] = M, c = M.end_date, p[y._sweek] = k.length - 1, v--;
4018
4025
  }
4019
4026
  } else
4020
4027
  c = null;
@@ -4047,23 +4054,23 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4047
4054
  var c = 60 * d.start_date.getHours() + d.start_date.getMinutes(), f = 60 * d.end_date.getHours() + d.end_date.getMinutes() || 60 * a.config.last_hour;
4048
4055
  return { top: this._y_from_date(d.start_date), height: Math.max(l, (f - c) * this.config.hour_size_px / 60) };
4049
4056
  }, a.render_event = function(d, l, c) {
4050
- var f = a.xy.menu_width, v = this.config.use_select_menu_space ? 0 : f;
4057
+ var f = a.xy.menu_width, m = this.config.use_select_menu_space ? 0 : f;
4051
4058
  if (!(d._sday < 0)) {
4052
4059
  var p = a.locate_holder(d._sday);
4053
4060
  if (p) {
4054
4061
  l = l || p;
4055
- var h = this._calc_event_y(d, a.xy.min_event_height), u = h.top, m = h.height, y = d._count || 1, w = d._sorder || 0;
4062
+ var h = this._calc_event_y(d, a.xy.min_event_height), u = h.top, v = h.height, y = d._count || 1, w = d._sorder || 0;
4056
4063
  c = c || p.clientWidth, this.config.day_column_padding && (c -= this.config.day_column_padding);
4057
- var D = Math.floor((c - v) / y), E = w * D + 1;
4064
+ var D = Math.floor((c - m) / y), E = w * D + 1;
4058
4065
  if (d._inner || (D *= y - w), this.config.cascade_event_display) {
4059
4066
  const A = this.config.cascade_event_count, C = this.config.cascade_event_margin;
4060
4067
  let $, O = (y - w - 1) % A * C, j = w % A * C;
4061
- y * C < c - this.config.day_column_padding ? $ = d._inner ? O / 2 : 0 : ($ = d._inner ? O / 3 : 0, E = j / 3, y * C / 2 > c - this.config.day_column_padding && ($ = d._inner ? O / A : 0, E = j / A)), D = Math.floor(c - v - E - $);
4068
+ y * C < c - this.config.day_column_padding ? $ = d._inner ? O / 2 : 0 : ($ = d._inner ? O / 3 : 0, E = j / 3, y * C / 2 > c - this.config.day_column_padding && ($ = d._inner ? O / A : 0, E = j / A)), D = Math.floor(c - m - E - $);
4062
4069
  }
4063
- d._mode = m < 30 ? "smallest" : m < 42 ? "small" : null;
4064
- var S = this._render_v_bar(d, v + E, u, D, m, d._text_style, a.templates.event_header(d.start_date, d.end_date, d), a.templates.event_text(d.start_date, d.end_date, d));
4065
- if (d._mode === "smallest" ? S.classList.add("dhx_cal_event--xsmall") : d._mode === "small" && S.classList.add("dhx_cal_event--small"), this._waiAria.eventAttr(d, S), this._rendered.push(S), l.appendChild(S), E = E + parseInt(this.config.rtl ? p.style.right : p.style.left, 10) + v, this._edit_id == d.id) {
4066
- S.style.zIndex = 1, D = Math.max(D, a.xy.editor_width), (S = document.createElement("div")).setAttribute("event_id", d.id), S.setAttribute(this.config.event_attribute, d.id), this._waiAria.eventAttr(d, S), S.className = "dhx_cal_event dhx_cal_editor", this.config.rtl && E++, this.set_xy(S, D, m, E, u), d.color && S.style.setProperty("--dhx-scheduler-event-background", d.color);
4070
+ d._mode = v < 30 ? "smallest" : v < 42 ? "small" : null;
4071
+ var S = this._render_v_bar(d, m + E, u, D, v, d._text_style, a.templates.event_header(d.start_date, d.end_date, d), a.templates.event_text(d.start_date, d.end_date, d));
4072
+ if (d._mode === "smallest" ? S.classList.add("dhx_cal_event--xsmall") : d._mode === "small" && S.classList.add("dhx_cal_event--small"), this._waiAria.eventAttr(d, S), this._rendered.push(S), l.appendChild(S), E = E + parseInt(this.config.rtl ? p.style.right : p.style.left, 10) + m, this._edit_id == d.id) {
4073
+ S.style.zIndex = 1, D = Math.max(D, a.xy.editor_width), (S = document.createElement("div")).setAttribute("event_id", d.id), S.setAttribute(this.config.event_attribute, d.id), this._waiAria.eventAttr(d, S), S.className = "dhx_cal_event dhx_cal_editor", this.config.rtl && E++, this.set_xy(S, D, v, E, u), d.color && S.style.setProperty("--dhx-scheduler-event-background", d.color);
4067
4074
  var g = a.templates.event_class(d.start_date, d.end_date, d);
4068
4075
  g && (S.className += " " + g);
4069
4076
  var b = document.createElement("div");
@@ -4088,24 +4095,24 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4088
4095
  this.config.drag_highlight && this._drag_id == d.id && this.highlightEventPosition(d);
4089
4096
  }
4090
4097
  }
4091
- }, a._render_v_bar = function(d, l, c, f, v, p, h, u, m) {
4092
- var y = document.createElement("div"), w = d.id, D = m ? "dhx_cal_event dhx_cal_select_menu" : "dhx_cal_event", E = a.getState();
4098
+ }, a._render_v_bar = function(d, l, c, f, m, p, h, u, v) {
4099
+ var y = document.createElement("div"), w = d.id, D = v ? "dhx_cal_event dhx_cal_select_menu" : "dhx_cal_event", E = a.getState();
4093
4100
  E.drag_id == d.id && (D += " dhx_cal_event_drag"), E.select_id == d.id && (D += " dhx_cal_event_selected");
4094
4101
  var S = a.templates.event_class(d.start_date, d.end_date, d);
4095
4102
  S && (D = D + " " + S), this.config.cascade_event_display && (D += " dhx_cal_event_cascade");
4096
4103
  var g = f - 1, b = `<div event_id="${w}" ${this.config.event_attribute}="${w}" class="${D}"
4097
- style="position:absolute; top:${c}px; ${this.config.rtl ? "right:" : "left:"}${l}px; width:${g}px; height:${v}px; ${p || ""}"
4104
+ style="position:absolute; top:${c}px; ${this.config.rtl ? "right:" : "left:"}${l}px; width:${g}px; height:${m}px; ${p || ""}"
4098
4105
  data-bar-start="${d.start_date.valueOf()}" data-bar-end="${d.end_date.valueOf()}">
4099
4106
  </div>`;
4100
4107
  y.innerHTML = b;
4101
4108
  var x = y.cloneNode(!0).firstChild;
4102
- if (!m && a.renderEvent(x, d, f, v, h, u))
4109
+ if (!v && a.renderEvent(x, d, f, m, h, u))
4103
4110
  return d.color && x.style.setProperty("--dhx-scheduler-event-background", d.color), d.textColor && x.style.setProperty("--dhx-scheduler-event-color", d.textColor), x;
4104
4111
  x = y.firstChild, d.color && x.style.setProperty("--dhx-scheduler-event-background", d.color), d.textColor && x.style.setProperty("--dhx-scheduler-event-color", d.textColor);
4105
4112
  var k = '<div class="dhx_event_move dhx_header" >&nbsp;</div>';
4106
4113
  k += '<div class="dhx_event_move dhx_title">' + h + "</div>", k += '<div class="dhx_body">' + u + "</div>";
4107
4114
  var M = "dhx_event_resize dhx_footer";
4108
- return (m || d._drag_resize === !1) && (M = "dhx_resize_denied " + M), k += '<div class="' + M + '" style=" width:' + (m ? " margin-top:-1px;" : "") + '" ></div>', x.innerHTML = k, x;
4115
+ return (v || d._drag_resize === !1) && (M = "dhx_resize_denied " + M), k += '<div class="' + M + '" style=" width:' + (v ? " margin-top:-1px;" : "") + '" ></div>', x.innerHTML = k, x;
4109
4116
  }, a.renderEvent = function() {
4110
4117
  return !1;
4111
4118
  }, a.locate_holder = function(d) {
@@ -4121,24 +4128,24 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4121
4128
  d--, f -= l;
4122
4129
  return Math.max(d, 0);
4123
4130
  }, a._get_event_bar_pos = function(d) {
4124
- var l = this.config.rtl, c = this._colsS, f = c[d._sday], v = c[d._eday];
4125
- l && (f = c[c.col_length] - c[d._eday] + c[0], v = c[c.col_length] - c[d._sday] + c[0]), v == f && (v = c[d._eday + 1]);
4131
+ var l = this.config.rtl, c = this._colsS, f = c[d._sday], m = c[d._eday];
4132
+ l && (f = c[c.col_length] - c[d._eday] + c[0], m = c[c.col_length] - c[d._sday] + c[0]), m == f && (m = c[d._eday + 1]);
4126
4133
  var p = this.xy.bar_height, h = d._sorder;
4127
4134
  if (d.id == this._drag_id) {
4128
4135
  var u = c.heights[d._sweek + 1] - c.heights[d._sweek] - this.xy.month_head_height;
4129
4136
  h = a._get_dnd_order(h, p, u);
4130
4137
  }
4131
- var m = h * p;
4132
- return { x: f, x2: v, y: c.heights[d._sweek] + (c.height ? this.xy.month_scale_height + 2 : 2) + m };
4138
+ var v = h * p;
4139
+ return { x: f, x2: m, y: c.heights[d._sweek] + (c.height ? this.xy.month_scale_height + 2 : 2) + v };
4133
4140
  }, a.render_event_bar = function(d) {
4134
- var l = this._rendered_location, c = this._get_event_bar_pos(d), f = c.y, v = c.x, p = c.x2, h = "";
4141
+ var l = this._rendered_location, c = this._get_event_bar_pos(d), f = c.y, m = c.x, p = c.x2, h = "";
4135
4142
  if (p) {
4136
- var u = a.config.resize_month_events && this._mode == "month" && (!d._timed || a.config.resize_month_timed), m = document.createElement("div"), y = d.hasOwnProperty("_first_chunk") && d._first_chunk, w = d.hasOwnProperty("_last_chunk") && d._last_chunk, D = u && (d._timed || y), E = u && (d._timed || w), S = !0, g = "dhx_cal_event_clear";
4143
+ var u = a.config.resize_month_events && this._mode == "month" && (!d._timed || a.config.resize_month_timed), v = document.createElement("div"), y = d.hasOwnProperty("_first_chunk") && d._first_chunk, w = d.hasOwnProperty("_last_chunk") && d._last_chunk, D = u && (d._timed || y), E = u && (d._timed || w), S = !0, g = "dhx_cal_event_clear";
4137
4144
  d._timed && !u || (S = !1, g = "dhx_cal_event_line"), y && (g += " dhx_cal_event_line_start"), w && (g += " dhx_cal_event_line_end"), D && (h += "<div class='dhx_event_resize dhx_event_resize_start'></div>"), E && (h += "<div class='dhx_event_resize dhx_event_resize_end'></div>");
4138
4145
  var b = a.templates.event_class(d.start_date, d.end_date, d);
4139
4146
  b && (g += " " + b);
4140
- var x = d.color ? "--dhx-scheduler-event-background:" + d.color + ";" : "", k = d.textColor ? "--dhx-scheduler-event-color:" + d.textColor + ";" : "", M = ["position:absolute", "top:" + f + "px", "left:" + v + "px", "width:" + (p - v - (S ? 1 : 0)) + "px", "height:" + (this.xy.bar_height - 2) + "px", k, x, d._text_style || ""].join(";"), N = "<div event_id='" + d.id + "' " + this.config.event_attribute + "='" + d.id + "' class='" + g + "' style='" + M + "'" + this._waiAria.eventBarAttrString(d) + ">";
4141
- u && (N += h), a.getState().mode != "month" || d._beforeEventChangedFlag || (d = a.getEvent(d.id)), d._timed && (N += `<span class='dhx_cal_event_clear_date'>${a.templates.event_bar_date(d.start_date, d.end_date, d)}</span>`), N += "<div class='dhx_cal_event_line_content'>", N += a.templates.event_bar_text(d.start_date, d.end_date, d) + "</div>", N += "</div>", N += "</div>", m.innerHTML = N, this._rendered.push(m.firstChild), l.appendChild(m.firstChild);
4147
+ var x = d.color ? "--dhx-scheduler-event-background:" + d.color + ";" : "", k = d.textColor ? "--dhx-scheduler-event-color:" + d.textColor + ";" : "", M = ["position:absolute", "top:" + f + "px", "left:" + m + "px", "width:" + (p - m - (S ? 1 : 0)) + "px", "height:" + (this.xy.bar_height - 2) + "px", k, x, d._text_style || ""].join(";"), N = "<div event_id='" + d.id + "' " + this.config.event_attribute + "='" + d.id + "' class='" + g + "' style='" + M + "'" + this._waiAria.eventBarAttrString(d) + ">";
4148
+ u && (N += h), a.getState().mode != "month" || d._beforeEventChangedFlag || (d = a.getEvent(d.id)), d._timed && (N += `<span class='dhx_cal_event_clear_date'>${a.templates.event_bar_date(d.start_date, d.end_date, d)}</span>`), N += "<div class='dhx_cal_event_line_content'>", N += a.templates.event_bar_text(d.start_date, d.end_date, d) + "</div>", N += "</div>", N += "</div>", v.innerHTML = N, this._rendered.push(v.firstChild), l.appendChild(v.firstChild);
4142
4149
  }
4143
4150
  }, a._locate_event = function(d) {
4144
4151
  for (var l = null; d && !l && d.getAttribute; )
@@ -4156,8 +4163,8 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4156
4163
  }, a.getEvents = function(d, l) {
4157
4164
  var c = [];
4158
4165
  for (var f in this._events) {
4159
- var v = this._events[f];
4160
- v && (!d && !l || v.start_date < l && v.end_date > d) && c.push(v);
4166
+ var m = this._events[f];
4167
+ m && (!d && !l || m.start_date < l && m.end_date > d) && c.push(m);
4161
4168
  }
4162
4169
  return c;
4163
4170
  }, a.getRenderedEvent = function(d) {
@@ -4175,14 +4182,14 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4175
4182
  if (l = l || a._mode, c && (!this.checkEvent("onBeforeEventDisplay") || this.callEvent("onBeforeEventDisplay", [c, l]))) {
4176
4183
  var f = a.config.scroll_hour;
4177
4184
  a.config.scroll_hour = c.start_date.getHours();
4178
- var v = a.config.preserve_scroll;
4185
+ var m = a.config.preserve_scroll;
4179
4186
  a.config.preserve_scroll = !1;
4180
4187
  var p = c.color, h = c.textColor;
4181
- if (a.config.highlight_displayed_event && (c.color = a.config.displayed_event_color, c.textColor = a.config.displayed_event_text_color), a.setCurrentView(new Date(c.start_date), l), a.config.scroll_hour = f, a.config.preserve_scroll = v, a.matrix && a.matrix[l]) {
4182
- var u = a.getView(), m = u.y_property, y = a.getEvent(c.id);
4188
+ if (a.config.highlight_displayed_event && (c.color = a.config.displayed_event_color, c.textColor = a.config.displayed_event_text_color), a.setCurrentView(new Date(c.start_date), l), a.config.scroll_hour = f, a.config.preserve_scroll = m, a.matrix && a.matrix[l]) {
4189
+ var u = a.getView(), v = u.y_property, y = a.getEvent(c.id);
4183
4190
  if (y) {
4184
4191
  if (!w) {
4185
- var w = y[m];
4192
+ var w = y[v];
4186
4193
  Array.isArray(w) ? w = w[0] : typeof w == "string" && a.config.section_delimiter && w.indexOf(a.config.section_delimiter) > -1 && (w = w.split(a.config.section_delimiter)[0]);
4187
4194
  }
4188
4195
  var D = u.getSectionTop(w), E = u.posFromDate(y.start_date), S = a.$container.querySelector(".dhx_timeline_data_wrapper");
@@ -4225,14 +4232,14 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4225
4232
  ;
4226
4233
  if (f === c.length)
4227
4234
  return null;
4228
- var v = c[f];
4235
+ var m = c[f];
4229
4236
  a._lightbox || a.getLightbox();
4230
- var p = a._lightbox.querySelector(`#${v.id}`), h = p.nextSibling, u = { section: v, header: p, node: h, getValue: function(y) {
4231
- return a.form_blocks[v.type].get_value(h, y || {}, v);
4237
+ var p = a._lightbox.querySelector(`#${m.id}`), h = p.nextSibling, u = { section: m, header: p, node: h, getValue: function(y) {
4238
+ return a.form_blocks[m.type].get_value(h, y || {}, m);
4232
4239
  }, setValue: function(y, w) {
4233
- return a.form_blocks[v.type].set_value(h, y, w || {}, v);
4234
- } }, m = a._lightbox_controls["get_" + v.type + "_control"];
4235
- return m ? m(u) : u;
4240
+ return a.form_blocks[m.type].set_value(h, y, w || {}, m);
4241
+ } }, v = a._lightbox_controls["get_" + m.type + "_control"];
4242
+ return v ? v(u) : u;
4236
4243
  }, a._lightbox_controls.get_template_control = function(l) {
4237
4244
  return l.control = l.node, l;
4238
4245
  }, a._lightbox_controls.get_select_control = function(l) {
@@ -4243,7 +4250,7 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4243
4250
  return l.control = l.node.getElementsByTagName("select"), l;
4244
4251
  }, a._lightbox_controls.defaults = { template: { height: 30 }, textarea: { height: 200 }, select: { height: 23 }, time: { height: 20 } }, a.form_blocks = { template: { render: function(l) {
4245
4252
  return "<div class='dhx_cal_ltext dhx_cal_template' ></div>";
4246
- }, set_value: function(l, c, f, v) {
4253
+ }, set_value: function(l, c, f, m) {
4247
4254
  l.innerHTML = c || "";
4248
4255
  }, get_value: function(l, c, f) {
4249
4256
  return l.innerHTML || "";
@@ -4263,9 +4270,9 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4263
4270
  for (var c = "<div class='dhx_cal_ltext dhx_cal_select'><select style='width:100%;'>", f = 0; f < l.options.length; f++)
4264
4271
  c += "<option value='" + l.options[f].key + "'>" + l.options[f].label + "</option>";
4265
4272
  return c + "</select></div>";
4266
- }, set_value: function(l, c, f, v) {
4273
+ }, set_value: function(l, c, f, m) {
4267
4274
  var p = l.firstChild;
4268
- !p._dhx_onchange && v.onchange && (a.event(p, "change", v.onchange), p._dhx_onchange = !0), c === void 0 && (c = (p.options[0] || {}).value), p.value = c || "";
4275
+ !p._dhx_onchange && m.onchange && (a.event(p, "change", m.onchange), p._dhx_onchange = !0), c === void 0 && (c = (p.options[0] || {}).value), p.value = c || "";
4269
4276
  }, get_value: function(l, c) {
4270
4277
  return l.firstChild.value;
4271
4278
  }, focus: function(l) {
@@ -4273,34 +4280,34 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4273
4280
  a._focus(c, !0);
4274
4281
  } }, time: { render: function(l) {
4275
4282
  l.time_format || (l.time_format = ["%H:%i", "%d", "%m", "%Y"]), l._time_format_order = {};
4276
- var c = l.time_format, f = a.config, v = a.date.date_part(a._currentDate()), p = 1440, h = 0;
4277
- a.config.limit_time_select && (p = 60 * f.last_hour + 1, h = 60 * f.first_hour, v.setHours(f.first_hour));
4278
- for (var u = "", m = 0; m < c.length; m++) {
4279
- var y = c[m];
4280
- m > 0 && (u += " ");
4283
+ var c = l.time_format, f = a.config, m = a.date.date_part(a._currentDate()), p = 1440, h = 0;
4284
+ a.config.limit_time_select && (p = 60 * f.last_hour + 1, h = 60 * f.first_hour, m.setHours(f.first_hour));
4285
+ for (var u = "", v = 0; v < c.length; v++) {
4286
+ var y = c[v];
4287
+ v > 0 && (u += " ");
4281
4288
  var w = "", D = "";
4282
4289
  switch (y) {
4283
4290
  case "%Y":
4284
4291
  var E, S, g;
4285
- w = "dhx_lightbox_year_select", l._time_format_order[3] = m, l.year_range && (isNaN(l.year_range) ? l.year_range.push && (S = l.year_range[0], g = l.year_range[1]) : E = l.year_range), E = E || 10;
4292
+ w = "dhx_lightbox_year_select", l._time_format_order[3] = v, l.year_range && (isNaN(l.year_range) ? l.year_range.push && (S = l.year_range[0], g = l.year_range[1]) : E = l.year_range), E = E || 10;
4286
4293
  var b = b || Math.floor(E / 2);
4287
- S = S || v.getFullYear() - b, g = g || S + E;
4294
+ S = S || m.getFullYear() - b, g = g || S + E;
4288
4295
  for (var x = S; x < g; x++)
4289
4296
  D += "<option value='" + x + "'>" + x + "</option>";
4290
4297
  break;
4291
4298
  case "%m":
4292
- for (w = "dhx_lightbox_month_select", l._time_format_order[2] = m, x = 0; x < 12; x++)
4299
+ for (w = "dhx_lightbox_month_select", l._time_format_order[2] = v, x = 0; x < 12; x++)
4293
4300
  D += "<option value='" + x + "'>" + this.locale.date.month_full[x] + "</option>";
4294
4301
  break;
4295
4302
  case "%d":
4296
- for (w = "dhx_lightbox_day_select", l._time_format_order[1] = m, x = 1; x < 32; x++)
4303
+ for (w = "dhx_lightbox_day_select", l._time_format_order[1] = v, x = 1; x < 32; x++)
4297
4304
  D += "<option value='" + x + "'>" + x + "</option>";
4298
4305
  break;
4299
4306
  case "%H:%i":
4300
- w = "dhx_lightbox_time_select", l._time_format_order[0] = m, x = h;
4301
- var k = v.getDate();
4307
+ w = "dhx_lightbox_time_select", l._time_format_order[0] = v, x = h;
4308
+ var k = m.getDate();
4302
4309
  for (l._time_values = []; x < p; )
4303
- D += "<option value='" + x + "'>" + this.templates.time_picker(v) + "</option>", l._time_values.push(x), v.setTime(v.valueOf() + 60 * this.config.time_step * 1e3), x = 24 * (v.getDate() != k ? 1 : 0) * 60 + 60 * v.getHours() + v.getMinutes();
4310
+ D += "<option value='" + x + "'>" + this.templates.time_picker(m) + "</option>", l._time_values.push(x), m.setTime(m.valueOf() + 60 * this.config.time_step * 1e3), x = 24 * (m.getDate() != k ? 1 : 0) * 60 + 60 * m.getHours() + m.getMinutes();
4304
4311
  }
4305
4312
  if (D) {
4306
4313
  var M = a._waiAria.lightboxSelectAttrString(y);
@@ -4308,30 +4315,30 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4308
4315
  }
4309
4316
  }
4310
4317
  return "<div class='dhx_section_time'>" + u + "<span style='font-weight:normal; font-size:10pt;' class='dhx_section_time_spacer'> &nbsp;&ndash;&nbsp; </span>" + u + "</div>";
4311
- }, set_value: function(l, c, f, v) {
4312
- var p, h, u = a.config, m = l.getElementsByTagName("select"), y = v._time_format_order;
4318
+ }, set_value: function(l, c, f, m) {
4319
+ var p, h, u = a.config, v = l.getElementsByTagName("select"), y = m._time_format_order;
4313
4320
  if (u.full_day) {
4314
4321
  if (!l._full_day) {
4315
4322
  var w = "<label class='dhx_fullday'><input type='checkbox' name='full_day' value='true'> " + a.locale.labels.full_day + "&nbsp;</label></input>";
4316
4323
  a.config.wide_form || (w = l.previousSibling.innerHTML + w), l.previousSibling.innerHTML = w, l._full_day = !0;
4317
4324
  }
4318
4325
  var D = l.previousSibling.getElementsByTagName("input")[0];
4319
- D.checked = a.date.time_part(f.start_date) === 0 && a.date.time_part(f.end_date) === 0, m[y[0]].disabled = D.checked, m[y[0] + m.length / 2].disabled = D.checked, D.$_eventAttached || (D.$_eventAttached = !0, a.event(D, "click", function() {
4326
+ D.checked = a.date.time_part(f.start_date) === 0 && a.date.time_part(f.end_date) === 0, v[y[0]].disabled = D.checked, v[y[0] + v.length / 2].disabled = D.checked, D.$_eventAttached || (D.$_eventAttached = !0, a.event(D, "click", function() {
4320
4327
  if (D.checked) {
4321
4328
  var b = {};
4322
- a.form_blocks.time.get_value(l, b, v), p = a.date.date_part(b.start_date), (+(h = a.date.date_part(b.end_date)) == +p || +h >= +p && (f.end_date.getHours() !== 0 || f.end_date.getMinutes() !== 0)) && (h = a.date.add(h, 1, "day"));
4329
+ a.form_blocks.time.get_value(l, b, m), p = a.date.date_part(b.start_date), (+(h = a.date.date_part(b.end_date)) == +p || +h >= +p && (f.end_date.getHours() !== 0 || f.end_date.getMinutes() !== 0)) && (h = a.date.add(h, 1, "day"));
4323
4330
  } else
4324
4331
  p = null, h = null;
4325
- m[y[0]].disabled = D.checked, m[y[0] + m.length / 2].disabled = D.checked, g(m, 0, p || f.start_date), g(m, 4, h || f.end_date);
4332
+ v[y[0]].disabled = D.checked, v[y[0] + v.length / 2].disabled = D.checked, g(v, 0, p || f.start_date), g(v, 4, h || f.end_date);
4326
4333
  }));
4327
4334
  }
4328
4335
  if (u.auto_end_date && u.event_duration)
4329
4336
  for (var E = function() {
4330
- u.auto_end_date && u.event_duration && (p = new Date(m[y[3]].value, m[y[2]].value, m[y[1]].value, 0, m[y[0]].value), h = new Date(p.getTime() + 60 * a.config.event_duration * 1e3), g(m, 4, h));
4337
+ u.auto_end_date && u.event_duration && (p = new Date(v[y[3]].value, v[y[2]].value, v[y[1]].value, 0, v[y[0]].value), h = new Date(p.getTime() + 60 * a.config.event_duration * 1e3), g(v, 4, h));
4331
4338
  }, S = 0; S < 4; S++)
4332
- m[S].$_eventAttached || (m[S].$_eventAttached = !0, a.event(m[S], "change", E));
4339
+ v[S].$_eventAttached || (v[S].$_eventAttached = !0, a.event(v[S], "change", E));
4333
4340
  function g(b, x, k) {
4334
- for (var M = v._time_values, N = 60 * k.getHours() + k.getMinutes(), T = N, A = !1, C = 0; C < M.length; C++) {
4341
+ for (var M = m._time_values, N = 60 * k.getHours() + k.getMinutes(), T = N, A = !1, C = 0; C < M.length; C++) {
4335
4342
  var $ = M[C];
4336
4343
  if ($ === N) {
4337
4344
  A = !0;
@@ -4341,10 +4348,10 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4341
4348
  }
4342
4349
  b[x + y[0]].value = A ? N : T, A || T || (b[x + y[0]].selectedIndex = -1), b[x + y[1]].value = k.getDate(), b[x + y[2]].value = k.getMonth(), b[x + y[3]].value = k.getFullYear();
4343
4350
  }
4344
- g(m, 0, f.start_date), g(m, 4, f.end_date);
4351
+ g(v, 0, f.start_date), g(v, 4, f.end_date);
4345
4352
  }, get_value: function(l, c, f) {
4346
- var v = l.getElementsByTagName("select"), p = f._time_format_order;
4347
- if (c.start_date = new Date(v[p[3]].value, v[p[2]].value, v[p[1]].value, 0, v[p[0]].value), c.end_date = new Date(v[p[3] + 4].value, v[p[2] + 4].value, v[p[1] + 4].value, 0, v[p[0] + 4].value), !v[p[3]].value || !v[p[3] + 4].value) {
4353
+ var m = l.getElementsByTagName("select"), p = f._time_format_order;
4354
+ if (c.start_date = new Date(m[p[3]].value, m[p[2]].value, m[p[1]].value, 0, m[p[0]].value), c.end_date = new Date(m[p[3] + 4].value, m[p[2] + 4].value, m[p[1] + 4].value, 0, m[p[0] + 4].value), !m[p[3]].value || !m[p[3] + 4].value) {
4348
4355
  var h = a.getEvent(a._lightbox_id);
4349
4356
  h && (c.start_date = h.start_date, c.end_date = h.end_date);
4350
4357
  }
@@ -4364,14 +4371,14 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4364
4371
  } else
4365
4372
  this._new_event && (this._new_event = null);
4366
4373
  }, a._fill_lightbox = function(l, c) {
4367
- var f = this.getEvent(l), v = c.getElementsByTagName("span"), p = [];
4374
+ var f = this.getEvent(l), m = c.getElementsByTagName("span"), p = [];
4368
4375
  if (a.templates.lightbox_header) {
4369
4376
  p.push("");
4370
4377
  var h = a.templates.lightbox_header(f.start_date, f.end_date, f);
4371
- p.push(h), v[1].innerHTML = "", v[2].innerHTML = h;
4378
+ p.push(h), m[1].innerHTML = "", m[2].innerHTML = h;
4372
4379
  } else {
4373
- var u = this.templates.event_header(f.start_date, f.end_date, f), m = (this.templates.event_bar_text(f.start_date, f.end_date, f) || "").substr(0, 70);
4374
- p.push(u), p.push(m), v[1].innerHTML = u, v[2].innerHTML = m;
4380
+ var u = this.templates.event_header(f.start_date, f.end_date, f), v = (this.templates.event_bar_text(f.start_date, f.end_date, f) || "").substr(0, 70);
4381
+ p.push(u), p.push(v), m[1].innerHTML = u, m[2].innerHTML = v;
4375
4382
  }
4376
4383
  this._waiAria.lightboxHeader(c, p.join(" "));
4377
4384
  for (var y = this.config.lightbox.sections, w = 0; w < y.length; w++) {
@@ -4383,9 +4390,9 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4383
4390
  return a._lightbox.querySelector(`#${l.id}`).nextSibling;
4384
4391
  }, a._lightbox_out = function(l) {
4385
4392
  for (var c = this.config.lightbox.sections, f = 0; f < c.length; f++) {
4386
- var v = a._lightbox.querySelector(`#${c[f].id}`);
4387
- v = v && v.nextSibling;
4388
- var p = this.form_blocks[c[f].type].get_value.call(this, v, l, c[f]);
4393
+ var m = a._lightbox.querySelector(`#${c[f].id}`);
4394
+ m = m && m.nextSibling;
4395
+ var p = this.form_blocks[c[f].type].get_value.call(this, m, l, c[f]);
4389
4396
  c[f].map_to != "auto" && (l[c[f].map_to] = p);
4390
4397
  }
4391
4398
  return l;
@@ -4428,8 +4435,8 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4428
4435
  }
4429
4436
  return;
4430
4437
  }
4431
- const v = f ? f.getAttribute("data-action") : null;
4432
- switch (v) {
4438
+ const m = f ? f.getAttribute("data-action") : null;
4439
+ switch (m) {
4433
4440
  case "dhx_save_btn":
4434
4441
  case "save":
4435
4442
  if (a.config.readonly_active)
@@ -4451,11 +4458,11 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4451
4458
  a.cancel_lightbox();
4452
4459
  break;
4453
4460
  default:
4454
- a.callEvent("onLightboxButton", [v, f, c]);
4461
+ a.callEvent("onLightboxButton", [m, f, c]);
4455
4462
  }
4456
4463
  }), a.event(l, "keydown", function(c) {
4457
- var f = c || window.event, v = c.target || c.srcElement, p = v.querySelector("[dhx_button]");
4458
- switch (p || (p = v.parentNode.querySelector(".dhx_custom_button, .dhx_readonly")), (c || f).keyCode) {
4464
+ var f = c || window.event, m = c.target || c.srcElement, p = m.querySelector("[dhx_button]");
4465
+ switch (p || (p = m.parentNode.querySelector(".dhx_custom_button, .dhx_readonly")), (c || f).keyCode) {
4459
4466
  case 32:
4460
4467
  if ((c || f).shiftKey)
4461
4468
  return;
@@ -4497,29 +4504,29 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4497
4504
  l.className = "dhx_cal_light", a.config.wide_form && (l.className += " dhx_cal_light_wide"), a.form_blocks.recurring && (l.className += " dhx_cal_light_rec"), a.config.rtl && (l.className += " dhx_cal_light_rtl"), a.config.responsive_lightbox && (l.className += " dhx_cal_light_responsive"), l.style.visibility = "hidden";
4498
4505
  var c = this._lightbox_template, f = this.config.buttons_left;
4499
4506
  c += "<div class='dhx_cal_lcontrols'>";
4500
- for (var v = 0; v < f.length; v++)
4501
- c += "<div " + this._waiAria.lightboxButtonAttrString(f[v]) + " data-action='" + f[v] + "' class='dhx_btn_set dhx_" + (a.config.rtl ? "right" : "left") + "_btn_set " + f[v] + "_set'><div class='dhx_btn_inner " + f[v] + "'></div><div>" + a.locale.labels[f[v]] + "</div></div>";
4507
+ for (var m = 0; m < f.length; m++)
4508
+ c += "<div " + this._waiAria.lightboxButtonAttrString(f[m]) + " data-action='" + f[m] + "' class='dhx_btn_set dhx_" + (a.config.rtl ? "right" : "left") + "_btn_set " + f[m] + "_set'><div class='dhx_btn_inner " + f[m] + "'></div><div>" + a.locale.labels[f[m]] + "</div></div>";
4502
4509
  f = this.config.buttons_right;
4503
4510
  var p = a.config.rtl;
4504
- for (v = 0; v < f.length; v++)
4505
- c += "<div class='dhx_cal_lcontrols_push_right'></div>", c += "<div " + this._waiAria.lightboxButtonAttrString(f[v]) + " data-action='" + f[v] + "' class='dhx_btn_set dhx_" + (p ? "left" : "right") + "_btn_set " + f[v] + "_set'><div class='dhx_btn_inner " + f[v] + "'></div><div>" + a.locale.labels[f[v]] + "</div></div>";
4511
+ for (m = 0; m < f.length; m++)
4512
+ c += "<div class='dhx_cal_lcontrols_push_right'></div>", c += "<div " + this._waiAria.lightboxButtonAttrString(f[m]) + " data-action='" + f[m] + "' class='dhx_btn_set dhx_" + (p ? "left" : "right") + "_btn_set " + f[m] + "_set'><div class='dhx_btn_inner " + f[m] + "'></div><div>" + a.locale.labels[f[m]] + "</div></div>";
4506
4513
  c += "</div>", c += "</div>", l.innerHTML = c, a.config.drag_lightbox && (a.event(l.firstChild, "mousedown", a._ready_to_dnd), a.event(l.firstChild, "selectstart", function(E) {
4507
4514
  return E.preventDefault(), !1;
4508
4515
  }), l.firstChild.style.cursor = "move", a._init_dnd_events()), this._waiAria.lightboxAttr(l), this.show_cover(), this._cover.insertBefore(l, this._cover.firstChild), this._lightbox = l;
4509
4516
  var h = this.config.lightbox.sections;
4510
- for (c = "", v = 0; v < h.length; v++) {
4511
- var u = this.form_blocks[h[v].type];
4517
+ for (c = "", m = 0; m < h.length; m++) {
4518
+ var u = this.form_blocks[h[m].type];
4512
4519
  if (u) {
4513
- h[v].id = "area_" + this.uid();
4514
- var m = "";
4515
- h[v].button && (m = "<div " + a._waiAria.lightboxSectionButtonAttrString(this.locale.labels["button_" + h[v].button]) + " class='dhx_custom_button' data-section-index='" + v + "' index='" + v + "'><div class='dhx_custom_button_" + h[v].button + "'></div><div>" + this.locale.labels["button_" + h[v].button] + "</div></div>"), this.config.wide_form && (c += "<div class='dhx_wrap_section'>");
4516
- var y = this.locale.labels["section_" + h[v].name];
4517
- typeof y != "string" && (y = h[v].name), c += "<div id='" + h[v].id + "' class='dhx_cal_lsection dhx_cal_lsection_" + h[v].name + "'>" + m + "<label>" + y + "</label></div>" + u.render.call(this, h[v]), c += "</div>";
4520
+ h[m].id = "area_" + this.uid();
4521
+ var v = "";
4522
+ h[m].button && (v = "<div " + a._waiAria.lightboxSectionButtonAttrString(this.locale.labels["button_" + h[m].button]) + " class='dhx_custom_button' data-section-index='" + m + "' index='" + m + "'><div class='dhx_custom_button_" + h[m].button + "'></div><div>" + this.locale.labels["button_" + h[m].button] + "</div></div>"), this.config.wide_form && (c += "<div class='dhx_wrap_section'>");
4523
+ var y = this.locale.labels["section_" + h[m].name];
4524
+ typeof y != "string" && (y = h[m].name), c += "<div id='" + h[m].id + "' class='dhx_cal_lsection dhx_cal_lsection_" + h[m].name + "'>" + v + "<label>" + y + "</label></div>" + u.render.call(this, h[m]), c += "</div>";
4518
4525
  }
4519
4526
  }
4520
4527
  var w = l.getElementsByTagName("div");
4521
- for (v = 0; v < w.length; v++) {
4522
- var D = w[v];
4528
+ for (m = 0; m < w.length; m++) {
4529
+ var D = w[m];
4523
4530
  if (a._getClassName(D) == "dhx_cal_larea") {
4524
4531
  D.innerHTML = c;
4525
4532
  break;
@@ -4532,16 +4539,16 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4532
4539
  for (var c = 0; c < l.length; c++) {
4533
4540
  var f = l[c];
4534
4541
  if (f.id && a._lightbox.querySelector(`#${f.id}`)) {
4535
- for (var v = a._lightbox.querySelector(`#${f.id}`).querySelector("label"), p = a._get_lightbox_section_node(f); p && !p.querySelector; )
4542
+ for (var m = a._lightbox.querySelector(`#${f.id}`).querySelector("label"), p = a._get_lightbox_section_node(f); p && !p.querySelector; )
4536
4543
  p = p.nextSibling;
4537
4544
  var h = !0;
4538
4545
  if (p) {
4539
4546
  var u = p.querySelector("input, select, textarea");
4540
- u && (f.inputId = u.id || "input_" + a.uid(), u.id || (u.id = f.inputId), v.setAttribute("for", f.inputId), h = !1);
4547
+ u && (f.inputId = u.id || "input_" + a.uid(), u.id || (u.id = f.inputId), m.setAttribute("for", f.inputId), h = !1);
4541
4548
  }
4542
- h && a.form_blocks[f.type].focus && a.event(v, "click", function(m) {
4549
+ h && a.form_blocks[f.type].focus && a.event(m, "click", function(v) {
4543
4550
  return function() {
4544
- var y = a.form_blocks[m.type], w = a._get_lightbox_section_node(m);
4551
+ var y = a.form_blocks[v.type], w = a._get_lightbox_section_node(v);
4545
4552
  y && y.focus && y.focus.call(a, w);
4546
4553
  };
4547
4554
  }(f));
@@ -4587,24 +4594,24 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4587
4594
  r.error("Method " + a + " does not exist on jQuery.dhx_scheduler");
4588
4595
  }), function(a) {
4589
4596
  (function() {
4590
- var d = a.setCurrentView, l = a.updateView, c = null, f = null, v = function(u, m) {
4597
+ var d = a.setCurrentView, l = a.updateView, c = null, f = null, m = function(u, v) {
4591
4598
  var y = this;
4592
4599
  de.clearTimeout(f), de.clearTimeout(c);
4593
4600
  var w = y._date, D = y._mode;
4594
- h(this, u, m), f = setTimeout(function() {
4595
- a.$destroyed || (y.callEvent("onBeforeViewChange", [D, w, m || y._mode, u || y._date]) ? (l.call(y, u, m), y.callEvent("onViewChange", [y._mode, y._date]), de.clearTimeout(c), f = 0) : h(y, w, D));
4601
+ h(this, u, v), f = setTimeout(function() {
4602
+ a.$destroyed || (y.callEvent("onBeforeViewChange", [D, w, v || y._mode, u || y._date]) ? (l.call(y, u, v), y.callEvent("onViewChange", [y._mode, y._date]), de.clearTimeout(c), f = 0) : h(y, w, D));
4596
4603
  }, a.config.delay_render);
4597
- }, p = function(u, m) {
4604
+ }, p = function(u, v) {
4598
4605
  var y = this, w = arguments;
4599
- h(this, u, m), de.clearTimeout(c), c = setTimeout(function() {
4606
+ h(this, u, v), de.clearTimeout(c), c = setTimeout(function() {
4600
4607
  a.$destroyed || f || l.apply(y, w);
4601
4608
  }, a.config.delay_render);
4602
4609
  };
4603
- function h(u, m, y) {
4604
- m && (u._date = m), y && (u._mode = y);
4610
+ function h(u, v, y) {
4611
+ v && (u._date = v), y && (u._mode = y);
4605
4612
  }
4606
4613
  a.attachEvent("onSchedulerReady", function() {
4607
- a.config.delay_render ? (a.setCurrentView = v, a.updateView = p) : (a.setCurrentView = d, a.updateView = l);
4614
+ a.config.delay_render ? (a.setCurrentView = m, a.updateView = p) : (a.setCurrentView = d, a.updateView = l);
4608
4615
  });
4609
4616
  })();
4610
4617
  }(i), function(a) {
@@ -4645,19 +4652,19 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
4645
4652
  const _ = {};
4646
4653
  return i.plugins = function(a) {
4647
4654
  (function(l, c, f) {
4648
- const v = [];
4655
+ const m = [];
4649
4656
  for (const p in l)
4650
4657
  if (l[p]) {
4651
4658
  const h = p.toLowerCase();
4652
4659
  c[h] && c[h].forEach(function(u) {
4653
- const m = u.toLowerCase();
4654
- l[m] || v.push(m);
4655
- }), v.push(h);
4656
- }
4657
- return v.sort(function(p, h) {
4658
- const u = f[p] || 0, m = f[h] || 0;
4659
- return u > m ? 1 : u < m ? -1 : 0;
4660
- }), v;
4660
+ const v = u.toLowerCase();
4661
+ l[v] || m.push(v);
4662
+ }), m.push(h);
4663
+ }
4664
+ return m.sort(function(p, h) {
4665
+ const u = f[p] || 0, v = f[h] || 0;
4666
+ return u > v ? 1 : u < v ? -1 : 0;
4667
+ }), m;
4661
4668
  })(a, { treetimeline: ["timeline"], daytimeline: ["timeline"], outerdrag: ["legacy"] }, { legacy: 1, limit: 1, timeline: 2, daytimeline: 3, treetimeline: 3, outerdrag: 6 }).forEach(function(l) {
4662
4669
  if (!_[l]) {
4663
4670
  const c = e.getExtension(l);
@@ -4842,8 +4849,8 @@ function Ca(e) {
4842
4849
  else if (d && d.layout === "timeline")
4843
4850
  l = e.$keyboardNavigation.isChildOf(a.target || a.srcElement, e.$container.querySelector(".dhx_timeline_data_col"));
4844
4851
  else {
4845
- const v = e.$container.querySelectorAll(".dhx_scale_holder");
4846
- l = Array.from(v).some((p) => p === a.target.parentNode);
4852
+ const m = e.$container.querySelectorAll(".dhx_scale_holder");
4853
+ l = Array.from(m).some((p) => p === a.target.parentNode);
4847
4854
  }
4848
4855
  var c, f = e.getActionData(a);
4849
4856
  e._locate_event(a.target || a.srcElement) ? c = new e.$keyboardNavigation.Event(e._locate_event(a.target || a.srcElement)) : l && (c = new e.$keyboardNavigation.TimeSlot(), f.date && l && (c = c.nextSlot(new e.$keyboardNavigation.TimeSlot(f.date, null, f.section)))), c && (t.isEnabled() ? f.date && l && t.delay(function() {
@@ -4861,14 +4868,14 @@ function Ca(e) {
4861
4868
  var l = new e.$keyboardNavigation.Event(a);
4862
4869
  e.getState().lightbox_id || function(c) {
4863
4870
  if (e.config.key_nav && t.isEnabled()) {
4864
- var f = c, v = new e.$keyboardNavigation.Event(f.eventId);
4865
- if (!v.isValid()) {
4866
- var p = v.start || f.start, h = v.end || f.end, u = v.section || f.section;
4867
- (v = new e.$keyboardNavigation.TimeSlot(p, h, u)).isValid() || (v = new e.$keyboardNavigation.TimeSlot());
4871
+ var f = c, m = new e.$keyboardNavigation.Event(f.eventId);
4872
+ if (!m.isValid()) {
4873
+ var p = m.start || f.start, h = m.end || f.end, u = m.section || f.section;
4874
+ (m = new e.$keyboardNavigation.TimeSlot(p, h, u)).isValid() || (m = new e.$keyboardNavigation.TimeSlot());
4868
4875
  }
4869
- t.setActiveNode(v);
4870
- var m = t.getActiveNode();
4871
- m && m.getNode && document.activeElement != m.getNode() && t.focusNode(t.getActiveNode());
4876
+ t.setActiveNode(m);
4877
+ var v = t.getActiveNode();
4878
+ v && v.getNode && document.activeElement != v.getNode() && t.focusNode(t.getActiveNode());
4872
4879
  }
4873
4880
  }(l);
4874
4881
  }
@@ -5493,10 +5500,10 @@ function kt(e, i) {
5493
5500
  for (; r.accept("comma"); ) {
5494
5501
  if (r.isDone())
5495
5502
  throw new Error("Unexpected end");
5496
- var v = o();
5497
- if (!v)
5503
+ var m = o();
5504
+ if (!m)
5498
5505
  throw new Error("Unexpected symbol " + r.symbol + ", expected month");
5499
- t.bymonth.push(v), r.nextSymbol();
5506
+ t.bymonth.push(m), r.nextSymbol();
5500
5507
  }
5501
5508
  s(), d();
5502
5509
  break;
@@ -5508,11 +5515,11 @@ function kt(e, i) {
5508
5515
  var l = r.accept("on"), c = r.accept("the");
5509
5516
  if (l || c)
5510
5517
  do {
5511
- var f = a(), v = _(), p = o();
5518
+ var f = a(), m = _(), p = o();
5512
5519
  if (f)
5513
- v ? (r.nextSymbol(), t.byweekday || (t.byweekday = []), t.byweekday.push(H[v].nth(f))) : (t.bymonthday || (t.bymonthday = []), t.bymonthday.push(f), r.accept("day(s)"));
5514
- else if (v)
5515
- r.nextSymbol(), t.byweekday || (t.byweekday = []), t.byweekday.push(H[v]);
5520
+ m ? (r.nextSymbol(), t.byweekday || (t.byweekday = []), t.byweekday.push(H[m].nth(f))) : (t.bymonthday || (t.bymonthday = []), t.bymonthday.push(f), r.accept("day(s)"));
5521
+ else if (m)
5522
+ r.nextSymbol(), t.byweekday || (t.byweekday = []), t.byweekday.push(H[m]);
5516
5523
  else if (r.symbol === "weekday(s)")
5517
5524
  r.nextSymbol(), t.byweekday || (t.byweekday = [H.MO, H.TU, H.WE, H.TH, H.FR]);
5518
5525
  else if (r.symbol === "week(s)") {
@@ -5850,8 +5857,8 @@ function nt(e) {
5850
5857
  var f = c.match(/^([+-]?\d{1,2})([A-Z]{2})$/);
5851
5858
  if (!f || f.length < 3)
5852
5859
  throw new SyntaxError("Invalid weekday string: ".concat(c));
5853
- var v = Number(f[1]), p = f[2], h = te[p].weekday;
5854
- return new X(h, v);
5860
+ var m = Number(f[1]), p = f[2], h = te[p].weekday;
5861
+ return new X(h, m);
5855
5862
  });
5856
5863
  }(n);
5857
5864
  break;
@@ -5929,8 +5936,8 @@ function Pe(e) {
5929
5936
  var f = t.map(function(p) {
5930
5937
  var h = p[0], u = p[1];
5931
5938
  return "".concat(h, "=").concat(u.toString());
5932
- }).join(";"), v = "";
5933
- return f !== "" && (v = "RRULE:".concat(f)), [r, v].filter(function(p) {
5939
+ }).join(";"), m = "";
5940
+ return f !== "" && (m = "RRULE:".concat(f)), [r, m].filter(function(p) {
5934
5941
  return !!p;
5935
5942
  }).join(`
5936
5943
  `);
@@ -5991,16 +5998,16 @@ function dn(e, i) {
5991
5998
  d.wnomask = P(0, n + 7);
5992
5999
  var l = t = ee(7 - a + i.wkst, 7);
5993
6000
  l >= 4 ? (l = 0, r = d.yearlen + ee(a - i.wkst, 7)) : r = n - l;
5994
- for (var c = Math.floor(r / 7), f = ee(r, 7), v = Math.floor(c + f / 4), p = 0; p < i.byweekno.length; p++) {
6001
+ for (var c = Math.floor(r / 7), f = ee(r, 7), m = Math.floor(c + f / 4), p = 0; p < i.byweekno.length; p++) {
5995
6002
  var h = i.byweekno[p];
5996
- if (h < 0 && (h += v + 1), h > 0 && h <= v) {
6003
+ if (h < 0 && (h += m + 1), h > 0 && h <= m) {
5997
6004
  var u = void 0;
5998
6005
  h > 1 ? (u = l + 7 * (h - 1), l !== t && (u -= 7 - t)) : u = l;
5999
- for (var m = 0; m < 7 && (d.wnomask[u] = 1, u++, d.wdaymask[u] !== i.wkst); m++)
6006
+ for (var v = 0; v < 7 && (d.wnomask[u] = 1, u++, d.wdaymask[u] !== i.wkst); v++)
6000
6007
  ;
6001
6008
  }
6002
6009
  }
6003
- if (F(i.byweekno, 1) && (u = l + 7 * v, l !== t && (u -= 7 - t), u < n))
6010
+ if (F(i.byweekno, 1) && (u = l + 7 * m, l !== t && (u -= 7 - t), u < n))
6004
6011
  for (p = 0; p < 7 && (d.wnomask[u] = 1, u += 1, d.wdaymask[u] !== i.wkst); p++)
6005
6012
  ;
6006
6013
  if (l) {
@@ -6025,21 +6032,21 @@ var _n = function() {
6025
6032
  var r = this.options;
6026
6033
  if (i !== this.lastyear && (this.yearinfo = dn(i, r)), J(r.bynweekday) && (t !== this.lastmonth || i !== this.lastyear)) {
6027
6034
  var s = this.yearinfo, n = s.yearlen, o = s.mrange, _ = s.wdaymask;
6028
- this.monthinfo = function(a, d, l, c, f, v) {
6035
+ this.monthinfo = function(a, d, l, c, f, m) {
6029
6036
  var p = { lastyear: a, lastmonth: d, nwdaymask: [] }, h = [];
6030
- if (v.freq === H.YEARLY)
6031
- if (re(v.bymonth))
6037
+ if (m.freq === H.YEARLY)
6038
+ if (re(m.bymonth))
6032
6039
  h = [[0, l]];
6033
6040
  else
6034
- for (var u = 0; u < v.bymonth.length; u++)
6035
- d = v.bymonth[u], h.push(c.slice(d - 1, d + 1));
6041
+ for (var u = 0; u < m.bymonth.length; u++)
6042
+ d = m.bymonth[u], h.push(c.slice(d - 1, d + 1));
6036
6043
  else
6037
- v.freq === H.MONTHLY && (h = [c.slice(d - 1, d + 1)]);
6044
+ m.freq === H.MONTHLY && (h = [c.slice(d - 1, d + 1)]);
6038
6045
  if (re(h))
6039
6046
  return p;
6040
6047
  for (p.nwdaymask = P(0, l), u = 0; u < h.length; u++)
6041
- for (var m = h[u], y = m[0], w = m[1] - 1, D = 0; D < v.bynweekday.length; D++) {
6042
- var E = void 0, S = v.bynweekday[D], g = S[0], b = S[1];
6048
+ for (var v = h[u], y = v[0], w = v[1] - 1, D = 0; D < m.bynweekday.length; D++) {
6049
+ var E = void 0, S = m.bynweekday[D], g = S[0], b = S[1];
6043
6050
  b < 0 ? (E = w + 7 * (b + 1), E -= ee(f[E] - g, 7)) : (E = y + 7 * (b - 1), E += ee(7 - f[E] + g, 7)), y <= E && E <= w && (p.nwdaymask[E] = 1);
6044
6051
  }
6045
6052
  return p;
@@ -6047,7 +6054,7 @@ var _n = function() {
6047
6054
  }
6048
6055
  B(r.byeaster) && (this.eastermask = function(a, d) {
6049
6056
  d === void 0 && (d = 0);
6050
- var l = a % 19, c = Math.floor(a / 100), f = a % 100, v = Math.floor(c / 4), p = c % 4, h = Math.floor((c + 8) / 25), u = Math.floor((c - h + 1) / 3), m = Math.floor(19 * l + c - v - u + 15) % 30, y = Math.floor(f / 4), w = f % 4, D = Math.floor(32 + 2 * p + 2 * y - m - w) % 7, E = Math.floor((l + 11 * m + 22 * D) / 451), S = Math.floor((m + D - 7 * E + 114) / 31), g = (m + D - 7 * E + 114) % 31 + 1, b = Date.UTC(a, S - 1, g + d), x = Date.UTC(a, 0, 1);
6057
+ var l = a % 19, c = Math.floor(a / 100), f = a % 100, m = Math.floor(c / 4), p = c % 4, h = Math.floor((c + 8) / 25), u = Math.floor((c - h + 1) / 3), v = Math.floor(19 * l + c - m - u + 15) % 30, y = Math.floor(f / 4), w = f % 4, D = Math.floor(32 + 2 * p + 2 * y - v - w) % 7, E = Math.floor((l + 11 * v + 22 * D) / 451), S = Math.floor((v + D - 7 * E + 114) / 31), g = (v + D - 7 * E + 114) % 31 + 1, b = Date.UTC(a, S - 1, g + d), x = Date.UTC(a, 0, 1);
6051
6058
  return [Math.ceil((b - x) / 864e5)];
6052
6059
  }(i, r.byeaster));
6053
6060
  }, Object.defineProperty(e.prototype, "lastyear", { get: function() {
@@ -6127,13 +6134,13 @@ function ln(e, i, t, r, s, n) {
6127
6134
  var a = void 0, d = void 0, l = e[_];
6128
6135
  l < 0 ? (a = Math.floor(l / i.length), d = ee(l, i.length)) : (a = Math.floor((l - 1) / i.length), d = ee(l - 1, i.length));
6129
6136
  for (var c = [], f = t; f < r; f++) {
6130
- var v = n[f];
6131
- B(v) && c.push(v);
6137
+ var m = n[f];
6138
+ B(m) && c.push(m);
6132
6139
  }
6133
6140
  var p = void 0;
6134
6141
  p = a < 0 ? c.slice(a)[0] : c[a];
6135
- var h = i[d], u = xt(s.yearordinal + p), m = wt(u, h);
6136
- F(o, m) || o.push(m);
6142
+ var h = i[d], u = xt(s.yearordinal + p), v = wt(u, h);
6143
+ F(o, v) || o.push(v);
6137
6144
  }
6138
6145
  return ke(o), o;
6139
6146
  }
@@ -6159,10 +6166,10 @@ function Dt(e, i) {
6159
6166
  }), O;
6160
6167
  }(k) : M >= H.HOURLY && J(N) && !F(N, x.hour) || M >= H.MINUTELY && J(T) && !F(T, x.minute) || M >= H.SECONDLY && J(A) && !F(A, x.second) ? [] : b.gettimeset(M)(x.hour, x.minute, x.second, x.millisecond);
6161
6168
  }(d, a, i); ; ) {
6162
- var c = d.getdayset(r)(a.year, a.month, a.day), f = c[0], v = c[1], p = c[2], h = hn(f, v, p, d, i);
6169
+ var c = d.getdayset(r)(a.year, a.month, a.day), f = c[0], m = c[1], p = c[2], h = hn(f, m, p, d, i);
6163
6170
  if (J(o))
6164
- for (var u = ln(o, l, v, p, d, f), m = 0; m < u.length; m++) {
6165
- var y = u[m];
6171
+ for (var u = ln(o, l, m, p, d, f), v = 0; v < u.length; v++) {
6172
+ var y = u[v];
6166
6173
  if (n && y > n)
6167
6174
  return oe(e);
6168
6175
  if (y >= t) {
@@ -6172,8 +6179,8 @@ function Dt(e, i) {
6172
6179
  }
6173
6180
  }
6174
6181
  else
6175
- for (m = v; m < p; m++) {
6176
- var D = f[m];
6182
+ for (v = m; v < p; v++) {
6183
+ var D = f[v];
6177
6184
  if (B(D))
6178
6185
  for (var E = xt(d.yearordinal + D), S = 0; S < l.length; S++) {
6179
6186
  var g = l[S];
@@ -6266,27 +6273,27 @@ function fn(e, i) {
6266
6273
  if (!c)
6267
6274
  return l.split(/\s/);
6268
6275
  for (var f = l.split(`
6269
- `), v = 0; v < f.length; ) {
6270
- var p = f[v] = f[v].replace(/\s+$/g, "");
6271
- p ? v > 0 && p[0] === " " ? (f[v - 1] += p.slice(1), f.splice(v, 1)) : v += 1 : f.splice(v, 1);
6276
+ `), m = 0; m < f.length; ) {
6277
+ var p = f[m] = f[m].replace(/\s+$/g, "");
6278
+ p ? m > 0 && p[0] === " " ? (f[m - 1] += p.slice(1), f.splice(m, 1)) : m += 1 : f.splice(m, 1);
6272
6279
  }
6273
6280
  return f;
6274
6281
  }(e, i.unfold);
6275
6282
  return d.forEach(function(l) {
6276
6283
  var c;
6277
6284
  if (l) {
6278
- var f = function(m) {
6285
+ var f = function(v) {
6279
6286
  var y = function(S) {
6280
6287
  if (S.indexOf(":") === -1)
6281
6288
  return { name: "RRULE", value: S };
6282
6289
  var g = (k = S, M = ":", N = 1, T = k.split(M), N ? T.slice(0, N).concat([T.slice(N).join(M)]) : T), b = g[0], x = g[1], k, M, N, T;
6283
6290
  return { name: b, value: x };
6284
- }(m), w = y.name, D = y.value, E = w.split(";");
6291
+ }(v), w = y.name, D = y.value, E = w.split(";");
6285
6292
  if (!E)
6286
6293
  throw new Error("empty property name");
6287
6294
  return { name: E[0].toUpperCase(), parms: E.slice(1), value: D };
6288
- }(l), v = f.name, p = f.parms, h = f.value;
6289
- switch (v.toUpperCase()) {
6295
+ }(l), m = f.name, p = f.parms, h = f.value;
6296
+ switch (m.toUpperCase()) {
6290
6297
  case "RRULE":
6291
6298
  if (p.length)
6292
6299
  throw new Error("unsupported RRULE parm: ".concat(p.join(",")));
@@ -6307,7 +6314,7 @@ function fn(e, i) {
6307
6314
  case "DTSTART":
6308
6315
  break;
6309
6316
  default:
6310
- throw new Error("unsupported property: " + v);
6317
+ throw new Error("unsupported property: " + m);
6311
6318
  }
6312
6319
  }
6313
6320
  }), { dtstart: _, tzid: a, rrulevals: t, rdatevals: r, exrulevals: s, exdatevals: n };
@@ -6327,8 +6334,8 @@ function we(e, i) {
6327
6334
  f.exdate(p);
6328
6335
  }), r.compatible && r.dtstart && f.rdate(d), f;
6329
6336
  }
6330
- var v = n[0] || {};
6331
- return new H(Le(v, v.dtstart || r.dtstart || d, v.tzid || r.tzid || l), c);
6337
+ var m = n[0] || {};
6338
+ return new H(Le(m, m.dtstart || r.dtstart || d, m.tzid || r.tzid || l), c);
6332
6339
  }(e, function(t) {
6333
6340
  var r = [], s = Object.keys(t), n = Object.keys(st);
6334
6341
  if (s.forEach(function(o) {
@@ -6373,8 +6380,8 @@ var pn = function(e) {
6373
6380
  return function(r, s, n, o, _, a) {
6374
6381
  var d = {}, l = r.accept;
6375
6382
  function c(h, u) {
6376
- n.forEach(function(m) {
6377
- m.between(h, u, !0).forEach(function(y) {
6383
+ n.forEach(function(v) {
6384
+ v.between(h, u, !0).forEach(function(y) {
6378
6385
  d[Number(y)] = !0;
6379
6386
  });
6380
6387
  });
@@ -6390,8 +6397,8 @@ var pn = function(e) {
6390
6397
  return !!d[u] || (d[u] = !0, l.call(this, h));
6391
6398
  });
6392
6399
  for (var f = 0; f < o.length; f++) {
6393
- var v = new Me(o[f], a).rezonedDate();
6394
- if (!r.accept(new Date(v.getTime())))
6400
+ var m = new Me(o[f], a).rezonedDate();
6401
+ if (!r.accept(new Date(m.getTime())))
6395
6402
  break;
6396
6403
  }
6397
6404
  s.forEach(function(h) {
@@ -6621,14 +6628,14 @@ const gn = { active_links: function(e) {
6621
6628
  var r = e.render_view_data;
6622
6629
  function s() {
6623
6630
  var n = e.get_visible_events();
6624
- n.sort(function(m, y) {
6625
- return m.start_date > y.start_date ? 1 : -1;
6631
+ n.sort(function(v, y) {
6632
+ return v.start_date > y.start_date ? 1 : -1;
6626
6633
  });
6627
6634
  for (var o, _ = "<div class='dhx_agenda_area' " + e._waiAria.agendaDataAttrString() + ">", a = 0; a < n.length; a++) {
6628
6635
  var d = n[a], l = d.color ? "--dhx-scheduler-event-background:" + d.color + ";" : "", c = d.textColor ? "--dhx-scheduler-event-color:" + d.textColor + ";" : "", f = e.templates.event_class(d.start_date, d.end_date, d);
6629
6636
  o = e._waiAria.agendaEventAttrString(d);
6630
- var v = e._waiAria.agendaDetailsBtnString();
6631
- _ += "<div " + o + " class='dhx_agenda_line" + (f ? " " + f : "") + "' event_id='" + d.id + "' " + e.config.event_attribute + "='" + d.id + "' style='" + c + l + (d._text_style || "") + "'><div class='dhx_agenda_event_time'>" + (e.config.rtl ? e.templates.agenda_time(d.end_date, d.start_date, d) : e.templates.agenda_time(d.start_date, d.end_date, d)) + "</div>", _ += `<div ${v} class='dhx_event_icon icon_details'><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6637
+ var m = e._waiAria.agendaDetailsBtnString();
6638
+ _ += "<div " + o + " class='dhx_agenda_line" + (f ? " " + f : "") + "' event_id='" + d.id + "' " + e.config.event_attribute + "='" + d.id + "' style='" + c + l + (d._text_style || "") + "'><div class='dhx_agenda_event_time'>" + (e.config.rtl ? e.templates.agenda_time(d.end_date, d.start_date, d) : e.templates.agenda_time(d.start_date, d.end_date, d)) + "</div>", _ += `<div ${m} class='dhx_event_icon icon_details'><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6632
6639
  <path d="M15.4444 16.4H4.55556V7.6H15.4444V16.4ZM13.1111 2V3.6H6.88889V2H5.33333V3.6H4.55556C3.69222 3.6 3 4.312 3 5.2V16.4C3 16.8243 3.16389 17.2313 3.45561 17.5314C3.74733 17.8314 4.143 18 4.55556 18H15.4444C15.857 18 16.2527 17.8314 16.5444 17.5314C16.8361 17.2313 17 16.8243 17 16.4V5.2C17 4.312 16.3 3.6 15.4444 3.6H14.6667V2H13.1111ZM13.8889 10.8H10V14.8H13.8889V10.8Z" fill="#A1A4A6"/>
6633
6640
  </svg></div>`, _ += "<span>" + e.templates.agenda_text(d.start_date, d.end_date, d) + "</span></div>";
6634
6641
  }
@@ -6685,23 +6692,23 @@ const gn = { active_links: function(e) {
6685
6692
  var o = e.render_view_data;
6686
6693
  function _() {
6687
6694
  const d = e.get_visible_events();
6688
- d.sort(function(u, m) {
6689
- return u.start_date > m.start_date ? 1 : -1;
6695
+ d.sort(function(u, v) {
6696
+ return u.start_date > v.start_date ? 1 : -1;
6690
6697
  });
6691
6698
  const l = {};
6692
6699
  let c = e.getState().min_date;
6693
6700
  const f = e.getState().max_date;
6694
6701
  for (; c.valueOf() < f.valueOf(); )
6695
6702
  l[c.valueOf()] = [], c = e.date.add(c, 1, "day");
6696
- let v = !1;
6703
+ let m = !1;
6697
6704
  if (d.forEach((u) => {
6698
- let m = e.date.day_start(new Date(u.start_date));
6699
- for (; m.valueOf() < u.end_date.valueOf(); )
6700
- l[m.valueOf()] && (l[m.valueOf()].push(u), v = !0), m = e.date.day_start(e.date.add(m, 1, "day"));
6701
- }), v) {
6705
+ let v = e.date.day_start(new Date(u.start_date));
6706
+ for (; v.valueOf() < u.end_date.valueOf(); )
6707
+ l[v.valueOf()] && (l[v.valueOf()].push(u), m = !0), v = e.date.day_start(e.date.add(v, 1, "day"));
6708
+ }), m) {
6702
6709
  let u = "";
6703
- for (let m in l)
6704
- e.ignore_agenda && e.ignore_agenda(new Date(1 * m)) || (u += a(new Date(1 * m), l[m]));
6710
+ for (let v in l)
6711
+ e.ignore_agenda && e.ignore_agenda(new Date(1 * v)) || (u += a(new Date(1 * v), l[v]));
6705
6712
  e._els.dhx_cal_data[0].innerHTML = u;
6706
6713
  } else
6707
6714
  e._els.dhx_cal_data[0].innerHTML = `<div class="dhx_cal_agenda_no_events">${e.locale.labels.agenda_tab}</div>`;
@@ -6720,10 +6727,10 @@ const gn = { active_links: function(e) {
6720
6727
  <div class="dhx_cal_agenda_day_events">
6721
6728
  `;
6722
6729
  return l.forEach((f) => {
6723
- c += function(v, p) {
6724
- const h = e.templates.agenda_time(p.start_date, p.end_date, p), u = e.getState().select_id, m = e.templates.event_class(p.start_date, p.end_date, p), y = e.templates.agenda_text(p.start_date, p.end_date, p);
6730
+ c += function(m, p) {
6731
+ const h = e.templates.agenda_time(p.start_date, p.end_date, p), u = e.getState().select_id, v = e.templates.event_class(p.start_date, p.end_date, p), y = e.templates.agenda_text(p.start_date, p.end_date, p);
6725
6732
  let w = "";
6726
- return (p.color || p.textColor) && (w = ` style="${p.color ? "--dhx-scheduler-event-background:" + p.color + ";" : ""}${p.textColor ? "--dhx-scheduler-event-color:" + p.textColor + ";" : ""}" `), `<div class="dhx_cal_agenda_event_line ${m || ""} ${p.id == u ? "dhx_cal_agenda_event_line_selected" : ""}" ${w} ${e.config.event_attribute}="${p.id}">
6733
+ return (p.color || p.textColor) && (w = ` style="${p.color ? "--dhx-scheduler-event-background:" + p.color + ";" : ""}${p.textColor ? "--dhx-scheduler-event-color:" + p.textColor + ";" : ""}" `), `<div class="dhx_cal_agenda_event_line ${v || ""} ${p.id == u ? "dhx_cal_agenda_event_line_selected" : ""}" ${w} ${e.config.event_attribute}="${p.id}">
6727
6734
  <div class="dhx_cal_agenda_event_line_marker"></div>
6728
6735
  <div class="dhx_cal_agenda_event_line_time">${h}</div>
6729
6736
  <div class="dhx_cal_agenda_event_line_text">${y}</div>
@@ -6759,16 +6766,16 @@ const gn = { active_links: function(e) {
6759
6766
  if (!l._timed)
6760
6767
  if (this.config.all_timed != "short" || i(l)) {
6761
6768
  var c = this._safe_copy(l);
6762
- l._virtual ? c._first_chunk = !1 : c._first_chunk = !0, c._drag_resize = !1, c._virtual = !0, c.start_date = new Date(c.start_date), h(l) ? (c.end_date = u(c.start_date), this.config.last_hour != 24 && (c.end_date = m(c.start_date, this.config.last_hour))) : c.end_date = new Date(l.end_date);
6769
+ l._virtual ? c._first_chunk = !1 : c._first_chunk = !0, c._drag_resize = !1, c._virtual = !0, c.start_date = new Date(c.start_date), h(l) ? (c.end_date = u(c.start_date), this.config.last_hour != 24 && (c.end_date = v(c.start_date, this.config.last_hour))) : c.end_date = new Date(l.end_date);
6763
6770
  var f = !1;
6764
6771
  c.start_date < this._max_date && c.end_date > this._min_date && c.start_date < c.end_date && (_[d] = c, f = !0);
6765
- var v = this._safe_copy(l);
6766
- if (v._virtual = !0, v.end_date = new Date(v.end_date), v.start_date < this._min_date ? v.start_date = m(this._min_date, this.config.first_hour) : v.start_date = m(u(l.start_date), this.config.first_hour), v.start_date < this._max_date && v.start_date < v.end_date) {
6772
+ var m = this._safe_copy(l);
6773
+ if (m._virtual = !0, m.end_date = new Date(m.end_date), m.start_date < this._min_date ? m.start_date = v(this._min_date, this.config.first_hour) : m.start_date = v(u(l.start_date), this.config.first_hour), m.start_date < this._max_date && m.start_date < m.end_date) {
6767
6774
  if (!f) {
6768
- _[d--] = v;
6775
+ _[d--] = m;
6769
6776
  continue;
6770
6777
  }
6771
- _.splice(d + 1, 0, v), v._last_chunk = !1;
6778
+ _.splice(d + 1, 0, m), m._last_chunk = !1;
6772
6779
  } else
6773
6780
  c._last_chunk = !0, c._drag_resize = !0;
6774
6781
  } else
@@ -6784,7 +6791,7 @@ const gn = { active_links: function(e) {
6784
6791
  var w = e.date.add(y, 1, "day");
6785
6792
  return w = e.date.date_part(w);
6786
6793
  }
6787
- function m(y, w) {
6794
+ function v(y, w) {
6788
6795
  var D = e.date.date_part(new Date(y));
6789
6796
  return D.setHours(w), D;
6790
6797
  }
@@ -6842,15 +6849,15 @@ const gn = { active_links: function(e) {
6842
6849
  let l = e.getRecDates(s);
6843
6850
  for (let c = 0; c < l.length; c++) {
6844
6851
  let f = e.getEvents(l[c].start_date, l[c].end_date);
6845
- for (let v = 0; v < f.length; v++)
6846
- (f[v].event_pid || f[v].id) != s.id && n.push(f[v]);
6852
+ for (let m = 0; m < f.length; m++)
6853
+ (f[m].event_pid || f[m].id) != s.id && n.push(f[m]);
6847
6854
  }
6848
6855
  } else if (s.rrule) {
6849
6856
  let l = e.getRecDates(s);
6850
6857
  for (let c = 0; c < l.length; c++) {
6851
6858
  let f = e.getEvents(l[c].start_date, l[c].end_date);
6852
- for (let v = 0; v < f.length; v++)
6853
- (String(f[v].id).split("#")[0] || f[v].id) != s.id && n.push(f[v]);
6859
+ for (let m = 0; m < f.length; m++)
6860
+ (String(f[m].id).split("#")[0] || f[m].id) != s.id && n.push(f[m]);
6854
6861
  }
6855
6862
  } else {
6856
6863
  n = e.getEvents(s.start_date, s.end_date);
@@ -6887,23 +6894,23 @@ const gn = { active_links: function(e) {
6887
6894
  e._pre_render_events = function(l, c) {
6888
6895
  if (!e.config.container_autoresize || !t)
6889
6896
  return i.apply(this, arguments);
6890
- var f = this.xy.bar_height, v = this._colsS.heights, p = this._colsS.heights = [0, 0, 0, 0, 0, 0, 0], h = this._els.dhx_cal_data[0];
6897
+ var f = this.xy.bar_height, m = this._colsS.heights, p = this._colsS.heights = [0, 0, 0, 0, 0, 0, 0], h = this._els.dhx_cal_data[0];
6891
6898
  if (l = this._table_view ? this._pre_render_events_table(l, c) : this._pre_render_events_line(l, c), this._table_view)
6892
6899
  if (c)
6893
- this._colsS.heights = v;
6900
+ this._colsS.heights = m;
6894
6901
  else {
6895
6902
  var u = h.firstChild;
6896
6903
  const g = u.querySelectorAll(".dhx_cal_month_row");
6897
6904
  if (g && g.length) {
6898
- for (var m = 0; m < g.length; m++) {
6899
- if (p[m]++, p[m] * f > this._colsS.height - this.xy.month_head_height) {
6900
- var y = g[m].querySelectorAll(".dhx_cal_month_cell"), w = this._colsS.height - this.xy.month_head_height;
6901
- 1 * this.config.max_month_events !== this.config.max_month_events || p[m] <= this.config.max_month_events ? w = p[m] * f : (this.config.max_month_events + 1) * f > this._colsS.height - this.xy.month_head_height && (w = (this.config.max_month_events + 1) * f), g[m].style.height = w + this.xy.month_head_height + "px";
6905
+ for (var v = 0; v < g.length; v++) {
6906
+ if (p[v]++, p[v] * f > this._colsS.height - this.xy.month_head_height) {
6907
+ var y = g[v].querySelectorAll(".dhx_cal_month_cell"), w = this._colsS.height - this.xy.month_head_height;
6908
+ 1 * this.config.max_month_events !== this.config.max_month_events || p[v] <= this.config.max_month_events ? w = p[v] * f : (this.config.max_month_events + 1) * f > this._colsS.height - this.xy.month_head_height && (w = (this.config.max_month_events + 1) * f), g[v].style.height = w + this.xy.month_head_height + "px";
6902
6909
  for (var D = 0; D < y.length; D++)
6903
6910
  y[D].childNodes[1].style.height = w + "px";
6904
- p[m] = (p[m - 1] || 0) + y[0].offsetHeight;
6911
+ p[v] = (p[v - 1] || 0) + y[0].offsetHeight;
6905
6912
  }
6906
- p[m] = (p[m - 1] || 0) + g[m].querySelectorAll(".dhx_cal_month_cell")[0].offsetHeight;
6913
+ p[v] = (p[v - 1] || 0) + g[v].querySelectorAll(".dhx_cal_month_cell")[0].offsetHeight;
6907
6914
  }
6908
6915
  p.unshift(0), u.parentNode.offsetHeight < u.parentNode.scrollHeight && u._h_fix;
6909
6916
  } else if (l.length || this._els.dhx_multi_day[0].style.visibility != "visible" || (p[0] = -1), l.length || p[0] == -1) {
@@ -6920,57 +6927,57 @@ const gn = { active_links: function(e) {
6920
6927
  var n = ["dhx_cal_navline", "dhx_cal_header", "dhx_multi_day", "dhx_cal_data"], o = function(l) {
6921
6928
  r = 0;
6922
6929
  for (var c = 0; c < n.length; c++) {
6923
- var f = n[c], v = e._els[f] ? e._els[f][0] : null, p = 0;
6930
+ var f = n[c], m = e._els[f] ? e._els[f][0] : null, p = 0;
6924
6931
  switch (f) {
6925
6932
  case "dhx_cal_navline":
6926
6933
  case "dhx_cal_header":
6927
- p = v.offsetHeight;
6934
+ p = m.offsetHeight;
6928
6935
  break;
6929
6936
  case "dhx_multi_day":
6930
- p = v ? v.offsetHeight - 1 : 0, s = p;
6937
+ p = m ? m.offsetHeight - 1 : 0, s = p;
6931
6938
  break;
6932
6939
  case "dhx_cal_data":
6933
6940
  var h = e.getState().mode;
6934
- if (v.childNodes[1] && h != "month") {
6941
+ if (m.childNodes[1] && h != "month") {
6935
6942
  let N = 0;
6936
- for (let T = 0; T < v.childNodes.length; T++)
6937
- v.childNodes[T].offsetHeight > N && (N = v.childNodes[T].offsetHeight);
6943
+ for (let T = 0; T < m.childNodes.length; T++)
6944
+ m.childNodes[T].offsetHeight > N && (N = m.childNodes[T].offsetHeight);
6938
6945
  p = N;
6939
6946
  } else
6940
- p = Math.max(v.offsetHeight - 1, v.scrollHeight);
6947
+ p = Math.max(m.offsetHeight - 1, m.scrollHeight);
6941
6948
  if (h == "month")
6942
- e.config.month_day_min_height && !l && (p = v.querySelectorAll(".dhx_cal_month_row").length * e.config.month_day_min_height), l && (v.style.height = p + "px");
6949
+ e.config.month_day_min_height && !l && (p = m.querySelectorAll(".dhx_cal_month_row").length * e.config.month_day_min_height), l && (m.style.height = p + "px");
6943
6950
  else if (h == "year")
6944
6951
  p = 190 * e.config.year_y;
6945
6952
  else if (h == "agenda") {
6946
- if (p = 0, v.childNodes && v.childNodes.length)
6947
- for (var u = 0; u < v.childNodes.length; u++)
6948
- p += v.childNodes[u].offsetHeight;
6953
+ if (p = 0, m.childNodes && m.childNodes.length)
6954
+ for (var u = 0; u < m.childNodes.length; u++)
6955
+ p += m.childNodes[u].offsetHeight;
6949
6956
  p + 2 < e.config.min_grid_size ? p = e.config.min_grid_size : p += 2;
6950
6957
  } else if (h == "week_agenda") {
6951
- for (var m, y, w = e.xy.week_agenda_scale_height + e.config.min_grid_size, D = 0; D < v.childNodes.length; D++)
6952
- for (y = v.childNodes[D], u = 0; u < y.childNodes.length; u++) {
6958
+ for (var v, y, w = e.xy.week_agenda_scale_height + e.config.min_grid_size, D = 0; D < m.childNodes.length; D++)
6959
+ for (y = m.childNodes[D], u = 0; u < y.childNodes.length; u++) {
6953
6960
  for (var E = 0, S = y.childNodes[u].childNodes[1], g = 0; g < S.childNodes.length; g++)
6954
6961
  E += S.childNodes[g].offsetHeight;
6955
- m = E + e.xy.week_agenda_scale_height, (m = D != 1 || u != 2 && u != 3 ? m : 2 * m) > w && (w = m);
6962
+ v = E + e.xy.week_agenda_scale_height, (v = D != 1 || u != 2 && u != 3 ? v : 2 * v) > w && (w = v);
6956
6963
  }
6957
6964
  p = 3 * w;
6958
6965
  } else if (h == "map") {
6959
6966
  p = 0;
6960
- var b = v.querySelectorAll(".dhx_map_line");
6967
+ var b = m.querySelectorAll(".dhx_map_line");
6961
6968
  for (u = 0; u < b.length; u++)
6962
6969
  p += b[u].offsetHeight;
6963
6970
  p + 2 < e.config.min_map_size ? p = e.config.min_map_size : p += 2;
6964
6971
  } else if (e._gridView)
6965
- if (p = 0, v.childNodes[1].childNodes[0].childNodes && v.childNodes[1].childNodes[0].childNodes.length) {
6966
- for (b = v.childNodes[1].childNodes[0].childNodes[0].childNodes, u = 0; u < b.length; u++)
6972
+ if (p = 0, m.childNodes[1].childNodes[0].childNodes && m.childNodes[1].childNodes[0].childNodes.length) {
6973
+ for (b = m.childNodes[1].childNodes[0].childNodes[0].childNodes, u = 0; u < b.length; u++)
6967
6974
  p += b[u].offsetHeight;
6968
6975
  (p += 2) < e.config.min_grid_size && (p = e.config.min_grid_size);
6969
6976
  } else
6970
6977
  p = e.config.min_grid_size;
6971
6978
  if (e.matrix && e.matrix[h]) {
6972
6979
  if (l)
6973
- p += 0, v.style.height = p + "px";
6980
+ p += 0, m.style.height = p + "px";
6974
6981
  else {
6975
6982
  p = 0;
6976
6983
  for (var x = e.matrix[h], k = x.y_unit, M = 0; M < k.length; M++)
@@ -7034,11 +7041,11 @@ const gn = { active_links: function(e) {
7034
7041
  if (t) {
7035
7042
  t = !1;
7036
7043
  var l = function(f) {
7037
- var v = f + "=";
7044
+ var m = f + "=";
7038
7045
  if (document.cookie.length > 0) {
7039
- var p = document.cookie.indexOf(v);
7046
+ var p = document.cookie.indexOf(m);
7040
7047
  if (p != -1) {
7041
- p += v.length;
7048
+ p += m.length;
7042
7049
  var h = document.cookie.indexOf(";", p);
7043
7050
  return h == -1 && (h = document.cookie.length), document.cookie.substring(p, h);
7044
7051
  }
@@ -7081,11 +7088,11 @@ const gn = { active_links: function(e) {
7081
7088
  return t += "<div class='" + i.type + "' ></div>";
7082
7089
  }, set_value: function(i, t, r, s) {
7083
7090
  (function() {
7084
- v();
7091
+ m();
7085
7092
  var f = e.attachEvent("onAfterLightbox", function() {
7086
- v(), e.detachEvent(f);
7093
+ m(), e.detachEvent(f);
7087
7094
  });
7088
- function v() {
7095
+ function m() {
7089
7096
  if (i._combo && i._combo.DOMParent) {
7090
7097
  var p = i._combo;
7091
7098
  p.unload ? p.unload() : p.destructor && p.destructor(), p.DOMParent = p.DOMelem = null;
@@ -7096,13 +7103,13 @@ const gn = { active_links: function(e) {
7096
7103
  if (n.enableFilteringMode(s.filtering, s.script_path || null, !!s.cache), s.script_path) {
7097
7104
  var o = r[s.map_to];
7098
7105
  o ? s.cached_options[o] ? (n.addOption(o, s.cached_options[o]), n.disable(1), n.selectOption(0), n.disable(0)) : e.ajax.get(s.script_path + "?id=" + o + "&uid=" + e.uid(), function(f) {
7099
- var v, p = f.xmlDoc.responseText;
7106
+ var m, p = f.xmlDoc.responseText;
7100
7107
  try {
7101
- v = JSON.parse(p).options[0].text;
7108
+ m = JSON.parse(p).options[0].text;
7102
7109
  } catch {
7103
- v = e.ajax.xpath("//option", f.xmlDoc)[0].childNodes[0].nodeValue;
7110
+ m = e.ajax.xpath("//option", f.xmlDoc)[0].childNodes[0].nodeValue;
7104
7111
  }
7105
- s.cached_options[o] = v, n.addOption(o, v), n.disable(1), n.selectOption(0), n.disable(0);
7112
+ s.cached_options[o] = m, n.addOption(o, m), n.disable(1), n.selectOption(0), n.disable(0);
7106
7113
  }) : n.setComboValue("");
7107
7114
  } else {
7108
7115
  for (var _ = [], a = 0; a < s.options.length; a++) {
@@ -7265,23 +7272,23 @@ const gn = { active_links: function(e) {
7265
7272
  return this._hidden_export_form;
7266
7273
  }, r._get_export_size = function(n, o, _, a, d, l, c) {
7267
7274
  a = parseInt(a) / 25.4 || 4;
7268
- var f = { A5: { x: 148, y: 210 }, A4: { x: 210, y: 297 }, A3: { x: 297, y: 420 }, A2: { x: 420, y: 594 }, A1: { x: 594, y: 841 }, A0: { x: 841, y: 1189 } }, v = t("dhx_cal_data", this).x, p = { y: t("dhx_cal_data", this).y + t("dhx_cal_header", this).y + t("dhx_multi_day", this).y };
7269
- return p.x = n === "full" ? v : Math.floor((o === "landscape" ? f[n].y : f[n].x) * a), c && (p.x *= parseFloat(c.x) || 1, p.y *= parseFloat(c.y) || 1), p;
7275
+ var f = { A5: { x: 148, y: 210 }, A4: { x: 210, y: 297 }, A3: { x: 297, y: 420 }, A2: { x: 420, y: 594 }, A1: { x: 594, y: 841 }, A0: { x: 841, y: 1189 } }, m = t("dhx_cal_data", this).x, p = { y: t("dhx_cal_data", this).y + t("dhx_cal_header", this).y + t("dhx_multi_day", this).y };
7276
+ return p.x = n === "full" ? m : Math.floor((o === "landscape" ? f[n].y : f[n].x) * a), c && (p.x *= parseFloat(c.x) || 1, p.y *= parseFloat(c.y) || 1), p;
7270
7277
  }, r._export_html = function(n) {
7271
7278
  var o, _, a, d = (o = void 0, _ = void 0, (a = s()) && (_ = a.scrollable, o = a.smart_rendering), { nav_height: r.xy.nav_height, scroll_width: r.xy.scroll_width, style_width: r._obj.style.width, style_height: r._obj.style.height, timeline_scrollable: _, timeline_smart_rendering: o }), l = r._get_export_size(n.format, n.orientation, n.zoom, n.dpi, n.header, n.footer, n.scales), c = "";
7272
7279
  try {
7273
- (function(f, v) {
7280
+ (function(f, m) {
7274
7281
  r._obj.style.width = f.x + "px", r._obj.style.height = f.y + "px", r.xy.nav_height = 0, r.xy.scroll_width = 0;
7275
7282
  var p = s();
7276
- (v.timeline_scrollable || v.timeline_smart_rendering) && (p.scrollable = !1, p.smart_rendering = !1);
7283
+ (m.timeline_scrollable || m.timeline_smart_rendering) && (p.scrollable = !1, p.smart_rendering = !1);
7277
7284
  })(l, d), r.setCurrentView(), c = r._obj.innerHTML;
7278
7285
  } catch (f) {
7279
7286
  console.error(f);
7280
7287
  } finally {
7281
7288
  (function(f) {
7282
7289
  r.xy.scroll_width = f.scroll_width, r.xy.nav_height = f.nav_height, r._obj.style.width = f.style_width, r._obj.style.height = f.style_height;
7283
- var v = s();
7284
- (f.timeline_scrollable || f.timeline_smart_rendering) && (v.scrollable = f.timeline_scrollable, v.smart_rendering = f.timeline_smart_rendering);
7290
+ var m = s();
7291
+ (f.timeline_scrollable || f.timeline_smart_rendering) && (m.scrollable = f.timeline_scrollable, m.smart_rendering = f.timeline_smart_rendering);
7285
7292
  })(d), r.setCurrentView();
7286
7293
  }
7287
7294
  return c;
@@ -7487,7 +7494,7 @@ const gn = { active_links: function(e) {
7487
7494
  var f = _[n];
7488
7495
  if (!(d < s && l > r))
7489
7496
  return a;
7490
- var v = this.createElement();
7497
+ var m = this.createElement();
7491
7498
  let p, h;
7492
7499
  function u(E, S) {
7493
7500
  S.setDate(1), S.setFullYear(E.getFullYear()), S.setMonth(E.getMonth()), S.setDate(E.getDate());
@@ -7499,11 +7506,11 @@ const gn = { active_links: function(e) {
7499
7506
  u(t._min_date, S), p = t._timeline_getX({ start_date: E }, !1, o), h = t._timeline_getX({ start_date: S }, !1, o);
7500
7507
  } else
7501
7508
  p = t._timeline_getX({ start_date: r }, !1, o), h = t._timeline_getX({ start_date: s }, !1, o);
7502
- var m = o._section_height[n] - 1 || o.dy - 1, y = 0;
7509
+ var v = o._section_height[n] - 1 || o.dy - 1, y = 0;
7503
7510
  t._isRender("cell") && (y = f.offsetTop, p += o.dx, h += o.dx, f = t.$container.querySelector(".dhx_cal_data"));
7504
7511
  var w = Math.max(1, h - p - 1);
7505
7512
  let D = "left";
7506
- return t.config.rtl && (D = "right"), v.style.cssText = `height:${m}px; ${D}:${p}px; width:${w}px; top:${y}px;`, f && (f.appendChild(v), a.push(v)), a;
7513
+ return t.config.rtl && (D = "right"), m.style.cssText = `height:${v}px; ${D}:${p}px; width:${w}px; top:${y}px;`, f && (f.appendChild(m), a.push(m)), a;
7507
7514
  }, renderMonthCell: function(r) {
7508
7515
  for (var s = t.$container.querySelectorAll(".dhx_month_head"), n = [], o = 0; o < s.length; o++)
7509
7516
  n.push(s[o].parentNode);
@@ -7512,8 +7519,8 @@ const gn = { active_links: function(e) {
7512
7519
  l = t.date.add(l, 1, "day");
7513
7520
  if (_ == -1)
7514
7521
  return [];
7515
- var f = t._colsS[d], v = t._colsS.heights[a], p = this.createElement();
7516
- p.style.top = v + "px", p.style.left = f + "px", p.style.width = t._cols[d] + "px", p.style.height = (t._colsS.heights[a + 1] - v || t._colsS.height) + "px";
7522
+ var f = t._colsS[d], m = t._colsS.heights[a], p = this.createElement();
7523
+ p.style.top = m + "px", p.style.left = f + "px", p.style.width = t._cols[d] + "px", p.style.height = (t._colsS.heights[a + 1] - m || t._colsS.height) + "px";
7517
7524
  var h = t.$container.querySelector(".dhx_cal_data"), u = h.querySelector(".dhx_cal_month_table");
7518
7525
  return u.nextSibling ? h.insertBefore(p, u.nextSibling) : h.appendChild(p), p;
7519
7526
  }, renderMonthMarker: function(r, s) {
@@ -7532,11 +7539,11 @@ const gn = { active_links: function(e) {
7532
7539
  }
7533
7540
  if (!(a = t.locate_holder(o)) || a.querySelector(".dhx_scale_hour"))
7534
7541
  return document.createElement("div");
7535
- var f = Math.max(60 * r.getHours() + r.getMinutes(), 60 * d.first_hour), v = Math.min(60 * s.getHours() + s.getMinutes(), 60 * d.last_hour);
7536
- if (!v && t.date.day_start(new Date(s)).valueOf() > t.date.day_start(new Date(r)).valueOf() && (v = 60 * d.last_hour), v <= f)
7542
+ var f = Math.max(60 * r.getHours() + r.getMinutes(), 60 * d.first_hour), m = Math.min(60 * s.getHours() + s.getMinutes(), 60 * d.last_hour);
7543
+ if (!m && t.date.day_start(new Date(s)).valueOf() > t.date.day_start(new Date(r)).valueOf() && (m = 60 * d.last_hour), m <= f)
7537
7544
  return [];
7538
7545
  var p = this.createElement(), h = t.config.hour_size_px * d.last_hour + 1, u = 36e5;
7539
- return p.style.top = Math.round((60 * f * 1e3 - t.config.first_hour * u) * t.config.hour_size_px / u) % h + "px", p.style.lineHeight = p.style.height = Math.max(Math.round(60 * (v - f) * 1e3 * t.config.hour_size_px / u) % h, 1) + "px", p.style.width = "100%", a.appendChild(p), _.push(p), _[0];
7546
+ return p.style.top = Math.round((60 * f * 1e3 - t.config.first_hour * u) * t.config.hour_size_px / u) % h + "px", p.style.lineHeight = p.style.height = Math.max(Math.round(60 * (m - f) * 1e3 * t.config.hour_size_px / u) % h, 1) + "px", p.style.width = "100%", a.appendChild(p), _.push(p), _[0];
7540
7547
  } };
7541
7548
  }(e), function(t) {
7542
7549
  t.$keyboardNavigation.SchedulerNode = function() {
@@ -8203,13 +8210,13 @@ const gn = { active_links: function(e) {
8203
8210
  return a === d;
8204
8211
  }, _.$keyboardNavigation.patchMinicalendar = function() {
8205
8212
  var a = _.$keyboardNavigation.dispatcher;
8206
- function d(v) {
8207
- var p = v.target;
8213
+ function d(m) {
8214
+ var p = m.target;
8208
8215
  a.enable(), a.setActiveNode(new _.$keyboardNavigation.MinicalButton(p, 0));
8209
8216
  }
8210
- function l(v) {
8211
- var p = v.target || v.srcElement, h = _.utils.dom.locateCss(v, "dhx_cal_prev_button", !1), u = _.utils.dom.locateCss(v, "dhx_cal_next_button", !1), m = _.utils.dom.locateCss(v, "dhx_year_body", !1), y = 0, w = 0;
8212
- if (m) {
8217
+ function l(m) {
8218
+ var p = m.target || m.srcElement, h = _.utils.dom.locateCss(m, "dhx_cal_prev_button", !1), u = _.utils.dom.locateCss(m, "dhx_cal_next_button", !1), v = _.utils.dom.locateCss(m, "dhx_year_body", !1), y = 0, w = 0;
8219
+ if (v) {
8213
8220
  for (var D, E, S = p; S && S.tagName.toLowerCase() != "td"; )
8214
8221
  S = S.parentNode;
8215
8222
  if (S && (D = (E = S).parentNode), D && E) {
@@ -8226,38 +8233,38 @@ const gn = { active_links: function(e) {
8226
8233
  }
8227
8234
  }
8228
8235
  }
8229
- var k = v.currentTarget;
8236
+ var k = m.currentTarget;
8230
8237
  a.delay(function() {
8231
8238
  var M;
8232
- (h || u || m) && (h ? (M = new _.$keyboardNavigation.MinicalButton(k, 0), a.setActiveNode(new _.$keyboardNavigation.MinicalButton(k, 0))) : u ? M = new _.$keyboardNavigation.MinicalButton(k, 1) : m && (M = new _.$keyboardNavigation.MinicalCell(k, y, w)), M && (a.enable(), M.isValid() && (a.activeNode = null, a.setActiveNode(M))));
8239
+ (h || u || v) && (h ? (M = new _.$keyboardNavigation.MinicalButton(k, 0), a.setActiveNode(new _.$keyboardNavigation.MinicalButton(k, 0))) : u ? M = new _.$keyboardNavigation.MinicalButton(k, 1) : v && (M = new _.$keyboardNavigation.MinicalCell(k, y, w)), M && (a.enable(), M.isValid() && (a.activeNode = null, a.setActiveNode(M))));
8233
8240
  });
8234
8241
  }
8235
8242
  if (_.renderCalendar) {
8236
8243
  var c = _.renderCalendar;
8237
8244
  _.renderCalendar = function() {
8238
- var v = c.apply(this, arguments), p = _.$keyboardNavigation._minicalendars;
8239
- _.eventRemove(v, "click", l), _.event(v, "click", l), _.eventRemove(v, "focus", d), _.event(v, "focus", d);
8245
+ var m = c.apply(this, arguments), p = _.$keyboardNavigation._minicalendars;
8246
+ _.eventRemove(m, "click", l), _.event(m, "click", l), _.eventRemove(m, "focus", d), _.event(m, "focus", d);
8240
8247
  for (var h = !1, u = 0; u < p.length; u++)
8241
- if (p[u] == v) {
8248
+ if (p[u] == m) {
8242
8249
  h = !0;
8243
8250
  break;
8244
8251
  }
8245
- if (h || p.push(v), a.isEnabled()) {
8246
- var m = a.getActiveNode();
8247
- m && m.container == v ? a.focusNode(m) : v.setAttribute("tabindex", "0");
8252
+ if (h || p.push(m), a.isEnabled()) {
8253
+ var v = a.getActiveNode();
8254
+ v && v.container == m ? a.focusNode(v) : m.setAttribute("tabindex", "0");
8248
8255
  } else
8249
- v.setAttribute("tabindex", "0");
8250
- return v;
8256
+ m.setAttribute("tabindex", "0");
8257
+ return m;
8251
8258
  };
8252
8259
  }
8253
8260
  if (_.destroyCalendar) {
8254
8261
  var f = _.destroyCalendar;
8255
- _.destroyCalendar = function(v, p) {
8256
- v = v || (_._def_count ? _._def_count.firstChild : null);
8262
+ _.destroyCalendar = function(m, p) {
8263
+ m = m || (_._def_count ? _._def_count.firstChild : null);
8257
8264
  var h = f.apply(this, arguments);
8258
- if (!v || !v.parentNode)
8259
- for (var u = _.$keyboardNavigation._minicalendars, m = 0; m < u.length; m++)
8260
- u[m] == v && (_.eventRemove(u[m], "focus", d), u.splice(m, 1), m--);
8265
+ if (!m || !m.parentNode)
8266
+ for (var u = _.$keyboardNavigation._minicalendars, v = 0; v < u.length; v++)
8267
+ u[v] == m && (_.eventRemove(u[v], "focus", d), u.splice(v, 1), v--);
8261
8268
  return h;
8262
8269
  };
8263
8270
  }
@@ -8411,9 +8418,9 @@ const gn = { active_links: function(e) {
8411
8418
  }, e._render_v_bar = function(t, r, s, n, o, _, a, d, l) {
8412
8419
  var c = t.id;
8413
8420
  a.indexOf("<div class=") == -1 && (a = e.templates["event_header_" + t.layer] ? e.templates["event_header_" + t.layer](t.start_date, t.end_date, t) : a), d.indexOf("<div class=") == -1 && (d = e.templates["event_text_" + t.layer] ? e.templates["event_text_" + t.layer](t.start_date, t.end_date, t) : d);
8414
- var f = document.createElement("div"), v = "dhx_cal_event", p = e.templates["event_class_" + t.layer] ? e.templates["event_class_" + t.layer](t.start_date, t.end_date, t) : e.templates.event_class(t.start_date, t.end_date, t);
8415
- p && (v = v + " " + p);
8416
- var h = e._border_box_events(), u = n - 2, m = h ? u : n - 4, y = h ? u : n - 6, w = h ? u : n - 14, D = h ? u - 2 : n - 8, E = h ? o - this.xy.event_header_height : o - 30 + 1, S = '<div event_id="' + c + '" ' + e.config.event_attribute + '="' + c + '" class="' + v + '" style="position:absolute; top:' + s + "px; left:" + r + "px; width:" + m + "px; height:" + o + "px;" + (_ || "") + '">';
8421
+ var f = document.createElement("div"), m = "dhx_cal_event", p = e.templates["event_class_" + t.layer] ? e.templates["event_class_" + t.layer](t.start_date, t.end_date, t) : e.templates.event_class(t.start_date, t.end_date, t);
8422
+ p && (m = m + " " + p);
8423
+ var h = e._border_box_events(), u = n - 2, v = h ? u : n - 4, y = h ? u : n - 6, w = h ? u : n - 14, D = h ? u - 2 : n - 8, E = h ? o - this.xy.event_header_height : o - 30 + 1, S = '<div event_id="' + c + '" ' + e.config.event_attribute + '="' + c + '" class="' + m + '" style="position:absolute; top:' + s + "px; left:" + r + "px; width:" + v + "px; height:" + o + "px;" + (_ || "") + '">';
8417
8424
  return S += '<div class="dhx_header" style=" width:' + y + 'px;" >&nbsp;</div>', S += '<div class="dhx_title">' + a + "</div>", S += '<div class="dhx_body" style=" width:' + w + "px; height:" + E + 'px;">' + d + "</div>", S += '<div class="dhx_footer" style=" width:' + D + "px;" + (l ? " margin-top:-1px;" : "") + '" ></div></div>', f.innerHTML = S, f.style.zIndex = 100, f.firstChild;
8418
8425
  }, e.render_event_bar = function(t) {
8419
8426
  var r = this._els.dhx_cal_data[0], s = this._colsS[t._sday], n = this._colsS[t._eday];
@@ -8434,22 +8441,22 @@ const gn = { active_links: function(e) {
8434
8441
  c.style.zIndex = parseInt(c.style.zIndex) + 1;
8435
8442
  var f = c.style.zIndex;
8436
8443
  d = Math.max(d - 4, e.xy.editor_width), (c = document.createElement("div")).setAttribute("event_id", t.id), c.setAttribute(this.config.event_attribute, t.id), this.set_xy(c, d, a - 20, l, _ + 14), c.className = "dhx_cal_editor", c.style.zIndex = f;
8437
- var v = document.createElement("div");
8438
- this.set_xy(v, d - 6, a - 26), v.style.cssText += ";margin:2px 2px 2px 2px;overflow:hidden;", v.style.zIndex = f, c.appendChild(v), this._els.dhx_cal_data[0].appendChild(c), this._rendered.push(c), v.innerHTML = "<textarea class='dhx_cal_editor'>" + t.text + "</textarea>", this._editor = v.firstChild, this._editor.addEventListener("keypress", function(y) {
8444
+ var m = document.createElement("div");
8445
+ this.set_xy(m, d - 6, a - 26), m.style.cssText += ";margin:2px 2px 2px 2px;overflow:hidden;", m.style.zIndex = f, c.appendChild(m), this._els.dhx_cal_data[0].appendChild(c), this._rendered.push(c), m.innerHTML = "<textarea class='dhx_cal_editor'>" + t.text + "</textarea>", this._editor = m.firstChild, this._editor.addEventListener("keypress", function(y) {
8439
8446
  if (y.shiftKey)
8440
8447
  return !0;
8441
8448
  var w = y.keyCode;
8442
8449
  w == e.keys.edit_save && e.editStop(!0), w == e.keys.edit_cancel && e.editStop(!1);
8443
8450
  }), this._editor.addEventListener("selectstart", function(y) {
8444
8451
  return y.cancelBubble = !0, !0;
8445
- }), v.firstChild.focus(), this._els.dhx_cal_data[0].scrollLeft = 0, v.firstChild.select();
8452
+ }), m.firstChild.focus(), this._els.dhx_cal_data[0].scrollLeft = 0, m.firstChild.select();
8446
8453
  }
8447
8454
  if (this._select_id == t.id) {
8448
8455
  c.style.zIndex = parseInt(c.style.zIndex) + 1;
8449
8456
  for (var p = this.config["icons_" + (this._edit_id == t.id ? "edit" : "select")], h = "", u = 0; u < p.length; u++)
8450
8457
  h += "<div class='dhx_menu_icon " + p[u] + "' title='" + this.locale.labels[p[u]] + "'></div>";
8451
- var m = this._render_v_bar(t.id, l - r + 1, _, r, 20 * p.length + 26, "", "<div class='dhx_menu_head'></div>", h, !0);
8452
- m.style.left = l - r + 1, m.style.zIndex = c.style.zIndex, this._els.dhx_cal_data[0].appendChild(m), this._rendered.push(m);
8458
+ var v = this._render_v_bar(t.id, l - r + 1, _, r, 20 * p.length + 26, "", "<div class='dhx_menu_head'></div>", h, !0);
8459
+ v.style.left = l - r + 1, v.style.zIndex = c.style.zIndex, this._els.dhx_cal_data[0].appendChild(v), this._rendered.push(v);
8453
8460
  }
8454
8461
  }
8455
8462
  }
@@ -8591,14 +8598,14 @@ const gn = { active_links: function(e) {
8591
8598
  });
8592
8599
  let c = "<div " + e._waiAria.mapAttrString() + " class='dhx_map_area'>";
8593
8600
  for (let p = 0; p < l.length; p++) {
8594
- let h = l[p], u = h.id == e._selected_event_id ? "dhx_map_line highlight" : "dhx_map_line", m = h.color ? "--dhx-scheduler-event-background:" + h.color + ";" : "", y = h.textColor ? "--dhx-scheduler-event-color:" + h.textColor + ";" : "", w = e._waiAria.mapRowAttrString(h), D = e._waiAria.mapDetailsBtnString();
8595
- c += "<div " + w + " class='" + u + "' event_id='" + h.id + "' " + e.config.event_attribute + "='" + h.id + "' style='" + m + y + (h._text_style || "") + " width: " + (e.xy.map_date_width + e.xy.map_description_width + 2) + "px;'><div class='dhx_map_event_time' style='width: " + e.xy.map_date_width + "px;' >" + e.templates.map_time(h.start_date, h.end_date, h) + "</div>", c += `<div ${D} class='dhx_event_icon icon_details'><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
8601
+ let h = l[p], u = h.id == e._selected_event_id ? "dhx_map_line highlight" : "dhx_map_line", v = h.color ? "--dhx-scheduler-event-background:" + h.color + ";" : "", y = h.textColor ? "--dhx-scheduler-event-color:" + h.textColor + ";" : "", w = e._waiAria.mapRowAttrString(h), D = e._waiAria.mapDetailsBtnString();
8602
+ c += "<div " + w + " class='" + u + "' event_id='" + h.id + "' " + e.config.event_attribute + "='" + h.id + "' style='" + v + y + (h._text_style || "") + " width: " + (e.xy.map_date_width + e.xy.map_description_width + 2) + "px;'><div class='dhx_map_event_time' style='width: " + e.xy.map_date_width + "px;' >" + e.templates.map_time(h.start_date, h.end_date, h) + "</div>", c += `<div ${D} class='dhx_event_icon icon_details'><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
8596
8603
  <path d="M15.4444 16.4H4.55556V7.6H15.4444V16.4ZM13.1111 2V3.6H6.88889V2H5.33333V3.6H4.55556C3.69222 3.6 3 4.312 3 5.2V16.4C3 16.8243 3.16389 17.2313 3.45561 17.5314C3.74733 17.8314 4.143 18 4.55556 18H15.4444C15.857 18 16.2527 17.8314 16.5444 17.5314C16.8361 17.2313 17 16.8243 17 16.4V5.2C17 4.312 16.3 3.6 15.4444 3.6H14.6667V2H13.1111ZM13.8889 10.8H10V14.8H13.8889V10.8Z" fill="#A1A4A6"/>
8597
8604
  </svg></div>`, c += "<div class='line_description' style='width:" + (e.xy.map_description_width - e.xy.map_icon_width) + "px;'>" + e.templates.map_text(h.start_date, h.end_date, h) + "</div></div>";
8598
8605
  }
8599
8606
  c += "<div class='dhx_v_border' style=" + (e.config.rtl ? "'right: " : "'left: ") + (e.xy.map_date_width - 1) + "px;'></div><div class='dhx_v_border_description'></div></div>", e._els.dhx_cal_data[0].scrollTop = 0, e._els.dhx_cal_data[0].innerHTML = c;
8600
- let f = e._els.dhx_cal_data[0].firstChild.childNodes, v = e._getNavDateElement();
8601
- v && (v.innerHTML = e.templates[e._mode + "_date"](e._min_date, e._max_date, e._mode)), e._rendered = [];
8607
+ let f = e._els.dhx_cal_data[0].firstChild.childNodes, m = e._getNavDateElement();
8608
+ m && (m.innerHTML = e.templates[e._mode + "_date"](e._min_date, e._max_date, e._mode)), e._rendered = [];
8602
8609
  for (let p = 0; p < f.length - 2; p++)
8603
8610
  e._rendered[p] = f[p];
8604
8611
  }
@@ -8608,7 +8615,7 @@ const gn = { active_links: function(e) {
8608
8615
  {
8609
8616
  a();
8610
8617
  let f = e.get_visible_events();
8611
- i && (i.clearEventMarkers(), f.forEach((v) => i == null ? void 0 : i.addEventMarker(v)));
8618
+ i && (i.clearEventMarkers(), f.forEach((m) => i == null ? void 0 : i.addEventMarker(m)));
8612
8619
  }
8613
8620
  }, e.map_view = function(l) {
8614
8621
  e._els.dhx_cal_data[0].style.width = e.xy.map_date_width + e.xy.map_description_width + 1 + "px", e._min_date = e.config.map_start || e._currentDate(), e._max_date = e.config.map_end || e.date.add(e._currentDate(), 1, "year"), e._table_view = !0, function(p) {
@@ -8618,19 +8625,19 @@ const gn = { active_links: function(e) {
8618
8625
  }
8619
8626
  }(l);
8620
8627
  let c = document.getElementById("mapContainer");
8621
- var f, v;
8628
+ var f, m;
8622
8629
  (function(p) {
8623
8630
  let h = document.getElementById(p);
8624
8631
  if (h) {
8625
8632
  const u = e.$container.querySelector(".dhx_cal_navline").offsetHeight;
8626
- let m = e.$container.querySelector(".dhx_cal_data").offsetHeight + e.$container.querySelector(".dhx_cal_header").offsetHeight;
8627
- m < 0 && (m = 0);
8633
+ let v = e.$container.querySelector(".dhx_cal_data").offsetHeight + e.$container.querySelector(".dhx_cal_header").offsetHeight;
8634
+ v < 0 && (v = 0);
8628
8635
  let y = e._x - e.xy.map_date_width - e.xy.map_description_width - 1;
8629
- y < 0 && (y = 0), h.style.height = m + "px", h.style.width = y + "px", h.style.position = "absolute", h.style.top = u + "px", e.config.rtl ? h.style.marginRight = e.xy.map_date_width + e.xy.map_description_width + 1 + "px" : h.style.marginLeft = e.xy.map_date_width + e.xy.map_description_width + 1 + "px", h.style.marginTop = e.xy.nav_height + 2 + "px";
8636
+ y < 0 && (y = 0), h.style.height = v + "px", h.style.width = y + "px", h.style.position = "absolute", h.style.top = u + "px", e.config.rtl ? h.style.marginRight = e.xy.map_date_width + e.xy.map_description_width + 1 + "px" : h.style.marginLeft = e.xy.map_date_width + e.xy.map_description_width + 1 + "px", h.style.marginTop = e.xy.nav_height + 2 + "px";
8630
8637
  }
8631
- })("mapContainer"), l && c ? (o.style.display = "block", a(), e.config.map_view_provider == e.ext.mapView.currentAdapter ? (i == null || i.destroy(c), s(e), i == null || i.initialize(c, e.config.map_settings)) : (i == null || i.destroy(c), s(e), i == null || i.initialize(c, e.config.map_settings), e.ext.mapView.currentAdapter = e.config.map_view_provider), i && (f = e.config.map_settings, v = i, f.resolve_user_location ? navigator.geolocation && navigator.geolocation.getCurrentPosition(function(p) {
8632
- v.setView(p.coords.latitude, p.coords.longitude, f.zoom_after_resolve || f.initial_zoom);
8633
- }) : v.setView(f.initial_position.lat, f.initial_position.lng, f.initial_zoom))) : (o.style.display = "none", e._els.dhx_cal_data[0].style.width = "100%", i && c && (i.destroy(c), i = null, e.ext.mapView.currentAdapter = e.config.map_view_provider), t.forEach((p) => e.detachEvent(p)), t = []);
8638
+ })("mapContainer"), l && c ? (o.style.display = "block", a(), e.config.map_view_provider == e.ext.mapView.currentAdapter ? (i == null || i.destroy(c), s(e), i == null || i.initialize(c, e.config.map_settings)) : (i == null || i.destroy(c), s(e), i == null || i.initialize(c, e.config.map_settings), e.ext.mapView.currentAdapter = e.config.map_view_provider), i && (f = e.config.map_settings, m = i, f.resolve_user_location ? navigator.geolocation && navigator.geolocation.getCurrentPosition(function(p) {
8639
+ m.setView(p.coords.latitude, p.coords.longitude, f.zoom_after_resolve || f.initial_zoom);
8640
+ }) : m.setView(f.initial_position.lat, f.initial_position.lng, f.initial_zoom))) : (o.style.display = "none", e._els.dhx_cal_data[0].style.width = "100%", i && c && (i.destroy(c), i = null, e.ext.mapView.currentAdapter = e.config.map_view_provider), t.forEach((p) => e.detachEvent(p)), t = []);
8634
8641
  }, e.attachEvent("onLocationError", function(l) {
8635
8642
  return alert("Location can't be found"), google.maps.LatLng(51.47784, -1492e-6);
8636
8643
  });
@@ -8641,12 +8648,12 @@ const gn = { active_links: function(e) {
8641
8648
  }
8642
8649
  };
8643
8650
  e._event_resolve_delay = 1500, e.attachEvent("onEventLoading", function(l) {
8644
- return l.lat && l.lng && (l.lat = +l.lat, l.lng = +l.lng), e.config.map_settings.resolve_event_location && l.event_location && !l.lat && !l.lng && (e._event_resolve_delay += 1500, function(c, f, v, p) {
8651
+ return l.lat && l.lng && (l.lat = +l.lat, l.lng = +l.lng), e.config.map_settings.resolve_event_location && l.event_location && !l.lat && !l.lng && (e._event_resolve_delay += 1500, function(c, f, m, p) {
8645
8652
  setTimeout(function() {
8646
8653
  if (e.$destroyed)
8647
8654
  return !0;
8648
- let h = c.apply(f, v);
8649
- return c = f = v = null, h;
8655
+ let h = c.apply(f, m);
8656
+ return c = f = m = null, h;
8650
8657
  }, p || 1);
8651
8658
  }(d, this, [l], e._event_resolve_delay)), !0;
8652
8659
  });
@@ -8678,11 +8685,11 @@ const gn = { active_links: function(e) {
8678
8685
  }).bind(n)));
8679
8686
  }
8680
8687
  if (e.config.minicalendar.mark_events)
8681
- for (var l = e.date.month_start(o), c = e.date.add(l, 1, "month"), f = this.getEvents(l, c), v = this["filter_" + this._mode], p = {}, h = 0; h < f.length; h++) {
8688
+ for (var l = e.date.month_start(o), c = e.date.add(l, 1, "month"), f = this.getEvents(l, c), m = this["filter_" + this._mode], p = {}, h = 0; h < f.length; h++) {
8682
8689
  var u = f[h];
8683
- if (!v || v(u.id, u)) {
8684
- var m = u.start_date;
8685
- for (m.valueOf() < l.valueOf() && (m = l), m = e.date.date_part(new Date(m.valueOf())); m < u.end_date && (p[+m] || (p[+m] = !0, this.markCalendar(n, m, "dhx_year_event")), !((m = this.date.add(m, 1, "day")).valueOf() >= c.valueOf())); )
8690
+ if (!m || m(u.id, u)) {
8691
+ var v = u.start_date;
8692
+ for (v.valueOf() < l.valueOf() && (v = l), v = e.date.date_part(new Date(v.valueOf())); v < u.end_date && (p[+v] || (p[+v] = !0, this.markCalendar(n, v, "dhx_year_event")), !((v = this.date.add(v, 1, "day")).valueOf() >= c.valueOf())); )
8686
8693
  ;
8687
8694
  }
8688
8695
  }
@@ -8725,12 +8732,12 @@ const gn = { active_links: function(e) {
8725
8732
  this._mode = "calendar";
8726
8733
  var d = this._colsS;
8727
8734
  this._colsS = { height: 0 };
8728
- var l = new Date(this._min_date), c = new Date(this._max_date), f = new Date(e._date), v = o.month_day, p = this._ignores_detected;
8735
+ var l = new Date(this._min_date), c = new Date(this._max_date), f = new Date(e._date), m = o.month_day, p = this._ignores_detected;
8729
8736
  this._ignores_detected = 0, o.month_day = o.calendar_date, r = this.date.month_start(r);
8730
8737
  var h, u = this._week_template(t.offsetWidth - 1 - this.config.minicalendar.padding);
8731
8738
  n ? h = n : (h = document.createElement("div")).className = "dhx_cal_container dhx_mini_calendar", h.setAttribute("date", this._helpers.formatDate(r)), h.innerHTML = "<div class='dhx_year_month'></div><div class='dhx_year_grid" + (e.config.rtl ? " dhx_grid_rtl'>" : "'>") + "<div class='dhx_year_week'>" + (u ? u.innerHTML : "") + "</div><div class='dhx_year_body'></div></div>";
8732
- var m = h.querySelector(".dhx_year_month"), y = h.querySelector(".dhx_year_week"), w = h.querySelector(".dhx_year_body");
8733
- if (m.innerHTML = this.templates.calendar_month(r), s.navigation)
8739
+ var v = h.querySelector(".dhx_year_month"), y = h.querySelector(".dhx_year_week"), w = h.querySelector(".dhx_year_body");
8740
+ if (v.innerHTML = this.templates.calendar_month(r), s.navigation)
8734
8741
  for (var D = function(j, V) {
8735
8742
  var Y = e.date.add(j._date, V, "month");
8736
8743
  e.updateCalendar(j, Y), e._date.getMonth() == j._date.getMonth() && e._date.getFullYear() == j._date.getFullYear() && e._markCalendarCurrentDate(j);
@@ -8744,19 +8751,19 @@ const gn = { active_links: function(e) {
8744
8751
  };
8745
8752
  }, x = [e.locale.labels.prev, e.locale.labels.next], k = 0; k < 2; k++) {
8746
8753
  var M = document.createElement("div");
8747
- M.className = E[k], e._waiAria.headerButtonsAttributes(M, x[k]), M.style.cssText = S[k], M.innerHTML = this._mini_cal_arrows[k], m.appendChild(M), i.attach(M, "click", b(g[k]));
8754
+ M.className = E[k], e._waiAria.headerButtonsAttributes(M, x[k]), M.style.cssText = S[k], M.innerHTML = this._mini_cal_arrows[k], v.appendChild(M), i.attach(M, "click", b(g[k]));
8748
8755
  }
8749
8756
  h._date = new Date(r), h.week_start = (r.getDay() - (this.config.start_on_monday ? 1 : 0) + 7) % 7;
8750
8757
  var N = h._min_date = this.date.week_start(r);
8751
8758
  h._max_date = this.date.add(h._min_date, 6, "week"), this._reset_month_scale(w, r, N, 6), n || t.appendChild(h), y.style.height = y.childNodes[0].offsetHeight - 1 + "px";
8752
8759
  var T = e.uid();
8753
- e._waiAria.minicalHeader(m, T), e._waiAria.minicalGrid(h.querySelector(".dhx_year_grid"), T), e._waiAria.minicalRow(y);
8760
+ e._waiAria.minicalHeader(v, T), e._waiAria.minicalGrid(h.querySelector(".dhx_year_grid"), T), e._waiAria.minicalRow(y);
8754
8761
  for (var A = y.querySelectorAll(".dhx_scale_bar"), C = 0; C < A.length; C++)
8755
8762
  e._waiAria.minicalHeadCell(A[C]);
8756
8763
  var $ = w.querySelectorAll(".dhx_cal_month_cell"), O = new Date(N);
8757
8764
  for (C = 0; C < $.length; C++)
8758
8765
  e._waiAria.minicalDayCell($[C], new Date(O)), O = e.date.add(O, 1, "day");
8759
- return e._waiAria.minicalHeader(m, T), this._cols = _, this._mode = a, this._colsS = d, this._min_date = l, this._max_date = c, e._date = f, o.month_day = v, this._ignores_detected = p, h;
8766
+ return e._waiAria.minicalHeader(v, T), this._cols = _, this._mode = a, this._colsS = d, this._min_date = l, this._max_date = c, e._date = f, o.month_day = m, this._ignores_detected = p, h;
8760
8767
  }, e.destroyCalendar = function(t, r) {
8761
8768
  !t && this._def_count && this._def_count.firstChild && (r || (/* @__PURE__ */ new Date()).valueOf() - this._def_count._created.valueOf() > 500) && (t = this._def_count.firstChild), t && (i.detachAll(), t.innerHTML = "", t.parentNode && t.parentNode.removeChild(t), this._def_count && (this._def_count.style.top = "-1000px"), t.conf && t.conf._on_xle_handler && e.detachEvent(t.conf._on_xle_handler));
8762
8769
  }, e.isCalendarVisible = function() {
@@ -8772,10 +8779,10 @@ const gn = { active_links: function(e) {
8772
8779
  r += "<option value='" + a + "'>" + this.templates.time_picker(n) + "</option>", t._time_values.push(a), n = this.date.add(n, this.config.time_step, "minute");
8773
8780
  return "<div class='dhx_section_time dhx_lightbox_minical'>" + (r += "</select>") + "<span class='dhx_lightbox_minical_spacer'> &nbsp;&ndash;&nbsp; </span>" + r + "</div>";
8774
8781
  }, set_value: function(t, r, s, n) {
8775
- var o, _, a = t.getElementsByTagName("input"), d = t.getElementsByTagName("select"), l = function(m, y, w) {
8776
- e.event(m, "click", function() {
8777
- e.destroyCalendar(null, !0), e.renderCalendar({ position: m, date: new Date(this._date), navigation: !0, handler: function(D) {
8778
- m.value = e.templates.calendar_time(D), m._date = new Date(D), e.destroyCalendar(), e.config.event_duration && e.config.auto_end_date && w === 0 && p();
8782
+ var o, _, a = t.getElementsByTagName("input"), d = t.getElementsByTagName("select"), l = function(v, y, w) {
8783
+ e.event(v, "click", function() {
8784
+ e.destroyCalendar(null, !0), e.renderCalendar({ position: v, date: new Date(this._date), navigation: !0, handler: function(D) {
8785
+ v.value = e.templates.calendar_time(D), v._date = new Date(D), e.destroyCalendar(), e.config.event_duration && e.config.auto_end_date && w === 0 && p();
8779
8786
  } });
8780
8787
  });
8781
8788
  };
@@ -8784,11 +8791,11 @@ const gn = { active_links: function(e) {
8784
8791
  var c = "<label class='dhx_fullday'><input type='checkbox' name='full_day' value='true'> " + e.locale.labels.full_day + "&nbsp;</label></input>";
8785
8792
  e.config.wide_form || (c = t.previousSibling.innerHTML + c), t.previousSibling.innerHTML = c, t._full_day = !0;
8786
8793
  }
8787
- var f = t.previousSibling.getElementsByTagName("input")[0], v = e.date.time_part(s.start_date) === 0 && e.date.time_part(s.end_date) === 0;
8788
- f.checked = v, d[0].disabled = f.checked, d[1].disabled = f.checked, f.$_eventAttached || (f.$_eventAttached = !0, e.event(f, "click", function() {
8794
+ var f = t.previousSibling.getElementsByTagName("input")[0], m = e.date.time_part(s.start_date) === 0 && e.date.time_part(s.end_date) === 0;
8795
+ f.checked = m, d[0].disabled = f.checked, d[1].disabled = f.checked, f.$_eventAttached || (f.$_eventAttached = !0, e.event(f, "click", function() {
8789
8796
  if (f.checked === !0) {
8790
- var m = {};
8791
- e.form_blocks.calendar_time.get_value(t, m), o = e.date.date_part(m.start_date), (+(_ = e.date.date_part(m.end_date)) == +o || +_ >= +o && (s.end_date.getHours() !== 0 || s.end_date.getMinutes() !== 0)) && (_ = e.date.add(_, 1, "day"));
8797
+ var v = {};
8798
+ e.form_blocks.calendar_time.get_value(t, v), o = e.date.date_part(v.start_date), (+(_ = e.date.date_part(v.end_date)) == +o || +_ >= +o && (s.end_date.getHours() !== 0 || s.end_date.getMinutes() !== 0)) && (_ = e.date.add(_, 1, "day"));
8792
8799
  } else
8793
8800
  o = null, _ = null;
8794
8801
  var y = o || s.start_date, w = _ || s.end_date;
@@ -8801,11 +8808,11 @@ const gn = { active_links: function(e) {
8801
8808
  };
8802
8809
  d[0].$_eventAttached || d[0].addEventListener("change", p);
8803
8810
  }
8804
- function h(m, y, w) {
8805
- l(m, y, w), m.value = e.templates.calendar_time(y), m._date = e.date.date_part(new Date(y));
8811
+ function h(v, y, w) {
8812
+ l(v, y, w), v.value = e.templates.calendar_time(y), v._date = e.date.date_part(new Date(y));
8806
8813
  }
8807
- function u(m) {
8808
- for (var y = n._time_values, w = 60 * m.getHours() + m.getMinutes(), D = w, E = !1, S = 0; S < y.length; S++) {
8814
+ function u(v) {
8815
+ for (var y = n._time_values, w = 60 * v.getHours() + v.getMinutes(), D = w, E = !1, S = 0; S < y.length; S++) {
8809
8816
  var g = y[S];
8810
8817
  if (g === w) {
8811
8818
  E = !0;
@@ -8866,8 +8873,8 @@ const gn = { active_links: function(e) {
8866
8873
  for (var n = i.getElementsByTagName("input"), o = 0; o < n.length; o++)
8867
8874
  n[o].checked = !1;
8868
8875
  function _(f) {
8869
- for (var v = i.getElementsByTagName("input"), p = 0; p < v.length; p++)
8870
- v[p].checked = !!f[v[p].value];
8876
+ for (var m = i.getElementsByTagName("input"), p = 0; p < m.length; p++)
8877
+ m[p].checked = !!f[m[p].value];
8871
8878
  }
8872
8879
  var a = {};
8873
8880
  if (r[s.map_to]) {
@@ -8882,10 +8889,10 @@ const gn = { active_links: function(e) {
8882
8889
  l.className = "dhx_loading", l.style.cssText = "position: absolute; top: 40%; left: 40%;", i.appendChild(l);
8883
8890
  var c = [s.script_url, s.script_url.indexOf("?") == -1 ? "?" : "&", "dhx_crosslink_" + s.map_to + "=" + r.id + "&uid=" + e.uid()].join("");
8884
8891
  e.ajax.get(c, function(f) {
8885
- var v = function(p) {
8892
+ var m = function(p) {
8886
8893
  try {
8887
- for (var h = JSON.parse(p.xmlDoc.responseText), u = {}, m = 0; m < h.length; m++) {
8888
- var y = h[m];
8894
+ for (var h = JSON.parse(p.xmlDoc.responseText), u = {}, v = 0; v < h.length; v++) {
8895
+ var y = h[v];
8889
8896
  u[y.value || y.key || y.id] = !0;
8890
8897
  }
8891
8898
  return u;
@@ -8893,11 +8900,11 @@ const gn = { active_links: function(e) {
8893
8900
  return null;
8894
8901
  }
8895
8902
  }(f);
8896
- v || (v = function(p, h) {
8897
- for (var u = e.ajax.xpath("//data/item", p.xmlDoc), m = {}, y = 0; y < u.length; y++)
8898
- m[u[y].getAttribute(h.map_to)] = !0;
8899
- return m;
8900
- }(f, s)), _(v), i.removeChild(l);
8903
+ m || (m = function(p, h) {
8904
+ for (var u = e.ajax.xpath("//data/item", p.xmlDoc), v = {}, y = 0; y < u.length; y++)
8905
+ v[u[y].getAttribute(h.map_to)] = !0;
8906
+ return v;
8907
+ }(f, s)), _(m), i.removeChild(l);
8901
8908
  });
8902
8909
  }
8903
8910
  }, get_value: function(i, t, r) {
@@ -8935,8 +8942,8 @@ const gn = { active_links: function(e) {
8935
8942
  }
8936
8943
  e.backbone = function(o, _) {
8937
8944
  _ && (t = _), o.bind("change", function(l, c) {
8938
- var f = n(l), v = e._events[f] = l.toJSON();
8939
- v.id = f, e._init_event(v), clearTimeout(i), i = setTimeout(function() {
8945
+ var f = n(l), m = e._events[f] = l.toJSON();
8946
+ m.id = f, e._init_event(m), clearTimeout(i), i = setTimeout(function() {
8940
8947
  if (e.$destroyed)
8941
8948
  return !0;
8942
8949
  e.updateView();
@@ -8954,8 +8961,8 @@ const gn = { active_links: function(e) {
8954
8961
  o.bind("add", function(l, c) {
8955
8962
  var f = n(l);
8956
8963
  if (!e._events[f]) {
8957
- var v = l.toJSON();
8958
- v.id = f, e._init_event(v), a.push(v), a.length == 1 && setTimeout(d, 1);
8964
+ var m = l.toJSON();
8965
+ m.id = f, e._init_event(m), a.push(m), a.length == 1 && setTimeout(d, 1);
8959
8966
  }
8960
8967
  }), o.bind("request", function(l) {
8961
8968
  var c;
@@ -8969,8 +8976,8 @@ const gn = { active_links: function(e) {
8969
8976
  return e._events[l] = c.toJSON(), e._events[l].id = l, !0;
8970
8977
  }), e.attachEvent("onEventAdded", function(l) {
8971
8978
  if (!o.get(l)) {
8972
- var c = r(e.getEvent(l)), f = new o.model(c), v = n(f);
8973
- v != l && this.changeEventId(l, v), o.add(f), o.trigger("scheduler:add", f);
8979
+ var c = r(e.getEvent(l)), f = new o.model(c), m = n(f);
8980
+ m != l && this.changeEventId(l, m), o.add(f), o.trigger("scheduler:add", f);
8974
8981
  }
8975
8982
  return !0;
8976
8983
  }), e.attachEvent("onEventChanged", function(l) {
@@ -8992,8 +8999,8 @@ const gn = { active_links: function(e) {
8992
8999
  if (e.matrix && e.matrix[e._mode]) {
8993
9000
  var f = e.matrix[e._mode];
8994
9001
  c[f.y_property] = l.section;
8995
- var v = e._locate_cell_timeline(i);
8996
- c.start_date = f._trace_x[v.x], c.end_date = e.date.add(c.start_date, f.x_step, f.x_unit);
9002
+ var m = e._locate_cell_timeline(i);
9003
+ c.start_date = f._trace_x[m.x], c.end_date = e.date.add(c.start_date, f.x_step, f.x_unit);
8997
9004
  }
8998
9005
  e._props && e._props[e._mode] && (c[e._props[e._mode].map_to] = l.section), e.addEventNow(c), e.detachEvent(d);
8999
9006
  }
@@ -9056,7 +9063,7 @@ const gn = { active_links: function(e) {
9056
9063
  return b;
9057
9064
  return S;
9058
9065
  }
9059
- function v(E) {
9066
+ function m(E) {
9060
9067
  return E ? "</" + E + ">" : "";
9061
9068
  }
9062
9069
  function p(E, S, g, b) {
@@ -9072,9 +9079,9 @@ const gn = { active_links: function(e) {
9072
9079
  E += "<column>" + n((g = e._els.dhx_cal_header[0].childNodes[0].childNodes)[0].innerHTML) + "</column><column>" + n(g[1].innerHTML) + "</column>";
9073
9080
  else if (e._mode == "year")
9074
9081
  for (g = e._els.dhx_cal_data[0].childNodes, b = 0; b < g.length; b++)
9075
- E += "<month label='" + n(g[b].querySelector(".dhx_year_month").innerHTML) + "'>", E += m(g[b].querySelector(".dhx_year_week").childNodes), E += u(g[b].querySelector(".dhx_year_body")), E += "</month>";
9082
+ E += "<month label='" + n(g[b].querySelector(".dhx_year_month").innerHTML) + "'>", E += v(g[b].querySelector(".dhx_year_week").childNodes), E += u(g[b].querySelector(".dhx_year_body")), E += "</month>";
9076
9083
  else {
9077
- E += "<x>", E += m(g = e._els.dhx_cal_header[0].childNodes), E += "</x>";
9084
+ E += "<x>", E += v(g = e._els.dhx_cal_header[0].childNodes), E += "</x>";
9078
9085
  var x = e._els.dhx_cal_data[0];
9079
9086
  if (e.matrix && e.matrix[e._mode]) {
9080
9087
  for (E += "<y>", b = 0; b < x.firstChild.rows.length; b++)
@@ -9102,7 +9109,7 @@ const gn = { active_links: function(e) {
9102
9109
  }
9103
9110
  return S;
9104
9111
  }
9105
- function m(E) {
9112
+ function v(E) {
9106
9113
  var S, g = "";
9107
9114
  e.matrix && e.matrix[e._mode] && (e.matrix[e._mode].second_scale && (S = E[1].childNodes), E = E[0].childNodes);
9108
9115
  for (var b = 0; b < E.length; b++)
@@ -9181,10 +9188,10 @@ const gn = { active_links: function(e) {
9181
9188
  var A = e._date, C = e._mode;
9182
9189
  S = e.date[g + "_start"](S), S = e.date["get_" + g + "_end"] ? e.date["get_" + g + "_end"](S) : e.date.add(S, 1, g), T = p("pages", b, x, k);
9183
9190
  for (var $ = new Date(E); +$ < +S; $ = this.date.add($, 1, g))
9184
- this.setCurrentView($, g), T += ((N = "page") ? "<" + N + ">" : "") + h().replace("–", "-") + y(M) + v("page");
9185
- T += v("pages"), this.setCurrentView(A, C);
9191
+ this.setCurrentView($, g), T += ((N = "page") ? "<" + N + ">" : "") + h().replace("–", "-") + y(M) + m("page");
9192
+ T += m("pages"), this.setCurrentView(A, C);
9186
9193
  } else
9187
- T = p("data", b, x, k) + h().replace("–", "-") + y(M) + v("data");
9194
+ T = p("data", b, x, k) + h().replace("–", "-") + y(M) + m("data");
9188
9195
  return T;
9189
9196
  }
9190
9197
  function D(E, S, g, b, x, k, M) {
@@ -9359,10 +9366,10 @@ const gn = { active_links: function(e) {
9359
9366
  e.form_blocks.recurring && (i = e.form_blocks.recurring.set_value);
9360
9367
  var t = e.config.buttons_left.slice(), r = e.config.buttons_right.slice();
9361
9368
  function s(_, a, d, l) {
9362
- for (var c = a.getElementsByTagName(_), f = d.getElementsByTagName(_), v = f.length - 1; v >= 0; v--)
9363
- if (d = f[v], l) {
9369
+ for (var c = a.getElementsByTagName(_), f = d.getElementsByTagName(_), m = f.length - 1; m >= 0; m--)
9370
+ if (d = f[m], l) {
9364
9371
  var p = document.createElement("span");
9365
- p.className = "dhx_text_disabled", p.innerHTML = l(c[v]), d.parentNode.insertBefore(p, d), d.parentNode.removeChild(d);
9372
+ p.className = "dhx_text_disabled", p.innerHTML = l(c[m]), d.parentNode.insertBefore(p, d), d.parentNode.removeChild(d);
9366
9373
  } else
9367
9374
  d.disabled = !0, a.checked && (d.checked = !0);
9368
9375
  }
@@ -9370,12 +9377,12 @@ const gn = { active_links: function(e) {
9370
9377
  if (this.config.readonly_form || this.getEvent(_).readonly ? this.config.readonly_active = !0 : (this.config.readonly_active = !1, e.config.buttons_left = t.slice(), e.config.buttons_right = r.slice(), e.form_blocks.recurring && (e.form_blocks.recurring.set_value = i)), this.config.readonly_active)
9371
9378
  for (var a = ["dhx_delete_btn", "dhx_save_btn"], d = [e.config.buttons_left, e.config.buttons_right], l = 0; l < a.length; l++)
9372
9379
  for (var c = a[l], f = 0; f < d.length; f++) {
9373
- for (var v = d[f], p = -1, h = 0; h < v.length; h++)
9374
- if (v[h] == c) {
9380
+ for (var m = d[f], p = -1, h = 0; h < m.length; h++)
9381
+ if (m[h] == c) {
9375
9382
  p = h;
9376
9383
  break;
9377
9384
  }
9378
- p != -1 && v.splice(p, 1);
9385
+ p != -1 && m.splice(p, 1);
9379
9386
  }
9380
9387
  return this.resetLightbox(), !0;
9381
9388
  });
@@ -9453,7 +9460,7 @@ const gn = { active_links: function(e) {
9453
9460
  g === "$dnd_recurring_placeholder" && delete e._events[g];
9454
9461
  e.render();
9455
9462
  }
9456
- function v(g, b) {
9463
+ function m(g, b) {
9457
9464
  const x = e.locale;
9458
9465
  g.find((M) => M.checked) || (g[0].checked = !0);
9459
9466
  const k = g.reduce((M, N) => (M[N.value] = N.callback, M), {});
@@ -9634,7 +9641,7 @@ const gn = { active_links: function(e) {
9634
9641
  }
9635
9642
  }
9636
9643
  if (C === "AllEvents") {
9637
- if (e._isExceptionFirstOccurrence($))
9644
+ if (e._isExceptionFirstOccurrence($) || e._isFirstOccurrence($))
9638
9645
  return _(O, $), e.showLightbox_rec(M);
9639
9646
  const V = new Date(O.start_date);
9640
9647
  return O._end_date = O.end_date, O._start_date = V, O.start_date.setHours($.start_date.getHours()), O.start_date.setMinutes($.start_date.getMinutes()), O.start_date.setSeconds($.start_date.getSeconds()), O.end_date = new Date(O.start_date.valueOf() + 1e3 * O.duration), O._thisAndFollowing = null, e.showLightbox_rec(M);
@@ -9646,7 +9653,7 @@ const gn = { active_links: function(e) {
9646
9653
  return this.showLightbox_rec(g);
9647
9654
  if (x === "ask") {
9648
9655
  const A = e.locale;
9649
- v([{ value: "Occurrence", label: A.labels.button_edit_occurrence, checked: !0, callback: () => T(g, "Occurrence") }, { value: "Following", label: A.labels.button_edit_occurrence_and_following, callback: () => T(g, "Following") }, { value: "AllEvents", label: A.labels.button_edit_series, callback: () => T(g, "AllEvents") }]);
9656
+ m([{ value: "Occurrence", label: A.labels.button_edit_occurrence, checked: !0, callback: () => T(g, "Occurrence") }, { value: "Following", label: A.labels.button_edit_occurrence_and_following, callback: () => T(g, "Following") }, { value: "AllEvents", label: A.labels.button_edit_series, callback: () => T(g, "AllEvents") }]);
9650
9657
  }
9651
9658
  }, e._showRequiredModalBox = function(g, b) {
9652
9659
  let x;
@@ -9687,7 +9694,7 @@ const gn = { active_links: function(e) {
9687
9694
  I !== "$dnd_recurring_placeholder" && fe.id == R.id && (e._events[I] = { ...R }, e.callEvent("onEventChanged", [e._events[I].id, e._events[I]]));
9688
9695
  }
9689
9696
  }(M), checked: !0 };
9690
- x = b === "ask" ? [Y, V, j] : [Y, V], v(x, (z) => {
9697
+ x = b === "ask" ? [Y, V, j] : [Y, V], m(x, (z) => {
9691
9698
  z === "cancel" && f();
9692
9699
  });
9693
9700
  }, e.get_visible_events_rec = e.get_visible_events, e.get_visible_events = function(g) {
@@ -9725,7 +9732,7 @@ const gn = { active_links: function(e) {
9725
9732
  if (!g.rrule)
9726
9733
  return;
9727
9734
  let A = T ? T[g.id] : p()[g.id];
9728
- A || (A = {}), k = r(k || new Date(e._min_date.valueOf() - 1e3)), M = r(M || new Date(e._max_date.valueOf() - 1e3));
9735
+ A || (A = {}), k = r(k || new Date(e._min_date.valueOf() - 6048e5)), M = r(M || new Date(e._max_date.valueOf() - 1e3));
9729
9736
  const C = r(g.start_date);
9730
9737
  let $;
9731
9738
  $ = we(N ? `RRULE:${g.rrule};UNTIL=${h(g.end_date)};COUNT=${N}` : `RRULE:${g.rrule};UNTIL=${h(g.end_date)}`, { dtstart: C });
@@ -9740,12 +9747,12 @@ const gn = { active_links: function(e) {
9740
9747
  const z = O[Y];
9741
9748
  let R = A[z.valueOf()];
9742
9749
  if (R) {
9743
- if (R.deleted)
9750
+ if (R.deleted || R.end_date.valueOf() < e._min_date.valueOf())
9744
9751
  continue;
9745
9752
  j++, b.push(R);
9746
9753
  } else {
9747
9754
  const I = e._copy_event(g);
9748
- if (I.text = g.text, I.start_date = z, I.id = g.id + "#" + Math.ceil(z.valueOf()), I.end_date = new Date(z.valueOf() + 1e3 * V), I.end_date = e._fix_daylight_saving_date(I.start_date, I.end_date, g, z, I.end_date), I._timed = e.isOneDayEvent(I), !I._timed && !e._table_view && !e.config.multi_day)
9755
+ if (I.text = g.text, I.start_date = z, I.id = g.id + "#" + Math.ceil(z.valueOf()), I.end_date = new Date(z.valueOf() + 1e3 * V), I.end_date.valueOf() < e._min_date.valueOf() || (I.end_date = e._fix_daylight_saving_date(I.start_date, I.end_date, g, z, I.end_date), I._timed = e.isOneDayEvent(I), !I._timed && !e._table_view && !e.config.multi_day))
9749
9756
  continue;
9750
9757
  b.push(I), x || (e._events[I.id] = I, e._rec_temp.push(I)), j++;
9751
9758
  }
@@ -9754,7 +9761,7 @@ const gn = { active_links: function(e) {
9754
9761
  for (let Y in A) {
9755
9762
  let z = A[Y];
9756
9763
  if (z) {
9757
- if (z.deleted)
9764
+ if (z.deleted || z.end_date.valueOf() < e._min_date.valueOf())
9758
9765
  continue;
9759
9766
  k && M && z.start_date < M && z.end_date > k && b.push(z);
9760
9767
  }
@@ -9796,7 +9803,7 @@ const gn = { active_links: function(e) {
9796
9803
  }, e.config.include_end_by = !1, e.config.lightbox_recurring = "ask", e.config.recurring_workdays = [H.MO.weekday, H.TU.weekday, H.WE.weekday, H.TH.weekday, H.FR.weekday], e.config.repeat_date = "%m.%d.%Y", e.config.lightbox.sections = [{ name: "description", map_to: "text", type: "textarea", focus: !0 }, { name: "recurring", type: "recurring", map_to: "rrule" }, { name: "time", height: 72, type: "time", map_to: "auto" }], e.attachEvent("onClearAll", function() {
9797
9804
  e._rec_markers = {}, e._rec_markers_pull = {}, e._rec_temp = [];
9798
9805
  });
9799
- const m = { 0: "SU", 1: "MO", 2: "TU", 3: "WE", 4: "TH", 5: "FR", 6: "SA" }, y = { 0: 1, 1: 2, 2: 3, 3: 4, 4: 5, 5: 6, 6: 0 };
9806
+ const v = { 0: "SU", 1: "MO", 2: "TU", 3: "WE", 4: "TH", 5: "FR", 6: "SA" }, y = { 0: 1, 1: 2, 2: 3, 3: 4, 4: 5, 5: 6, 6: 0 };
9800
9807
  function w(g) {
9801
9808
  switch (g) {
9802
9809
  case 1:
@@ -9880,11 +9887,11 @@ const gn = { active_links: function(e) {
9880
9887
  })(g, b), function(k, M, N) {
9881
9888
  if (k.querySelector("[name='repeat_interval_value']").value = (M ? M.interval : 1) || 1, k.querySelectorAll(".dhx_form_repeat_custom_week input").forEach((T) => T.checked = !1), M && M.byweekday)
9882
9889
  M.byweekday.forEach((T) => {
9883
- const A = y[T.weekday], C = m[A];
9890
+ const A = y[T.weekday], C = v[A];
9884
9891
  k.querySelector(`.dhx_form_repeat_custom_week input[value="${C}"]`).checked = !0;
9885
9892
  });
9886
9893
  else {
9887
- const T = m[N.start_date.getDay()];
9894
+ const T = v[N.start_date.getDay()];
9888
9895
  k.querySelector(`.dhx_form_repeat_custom_week input[value="${T}"]`).checked = !0;
9889
9896
  }
9890
9897
  }(g, b, x), function(k, M, N) {
@@ -10155,7 +10162,7 @@ const gn = { active_links: function(e) {
10155
10162
  }, _init_set_value: function(n, o, _) {
10156
10163
  var a = e.form_blocks.recurring, d = a._get_node_value, l = a._set_node_value;
10157
10164
  e.form_blocks.recurring._ds = { start: _.start_date, end: _._end_date };
10158
- var c = e.date.str_to_date(e.config.repeat_date, !1, !0), f = e.date.date_to_str(e.config.repeat_date), v = n.getElementsByTagName("FORM")[0], p = {};
10165
+ var c = e.date.str_to_date(e.config.repeat_date, !1, !0), f = e.date.date_to_str(e.config.repeat_date), m = n.getElementsByTagName("FORM")[0], p = {};
10159
10166
  function h(b) {
10160
10167
  for (var x = 0; x < b.length; x++) {
10161
10168
  var k = b[x];
@@ -10170,16 +10177,16 @@ const gn = { active_links: function(e) {
10170
10177
  p[k.name] = k;
10171
10178
  }
10172
10179
  }
10173
- if (h(v.getElementsByTagName("INPUT")), h(v.getElementsByTagName("SELECT")), !e.config.repeat_date_of_end) {
10180
+ if (h(m.getElementsByTagName("INPUT")), h(m.getElementsByTagName("SELECT")), !e.config.repeat_date_of_end) {
10174
10181
  var u = e.date.date_to_str(e.config.repeat_date);
10175
10182
  e.config.repeat_date_of_end = u(e.date.add(e._currentDate(), 30, "day"));
10176
10183
  }
10177
10184
  l(p, "date_of_end", e.config.repeat_date_of_end);
10178
- var m = function(b) {
10185
+ var v = function(b) {
10179
10186
  return e._lightbox.querySelector(`#${b}`) || { style: {} };
10180
10187
  };
10181
10188
  function y() {
10182
- m("dhx_repeat_day").style.display = "none", m("dhx_repeat_week").style.display = "none", m("dhx_repeat_month").style.display = "none", m("dhx_repeat_year").style.display = "none", m("dhx_repeat_" + this.value).style.display = "", e.setLightboxSize();
10189
+ v("dhx_repeat_day").style.display = "none", v("dhx_repeat_week").style.display = "none", v("dhx_repeat_month").style.display = "none", v("dhx_repeat_year").style.display = "none", v("dhx_repeat_" + this.value).style.display = "", e.setLightboxSize();
10183
10190
  }
10184
10191
  function w(b, x) {
10185
10192
  var k = b.end;
@@ -10272,8 +10279,8 @@ const gn = { active_links: function(e) {
10272
10279
  var T = e.form_blocks.recurring._get_form_node(p, "repeat", b[0]);
10273
10280
  T.nodeName == "SELECT" ? (T.dispatchEvent(new Event("change")), T.dispatchEvent(new MouseEvent("click"))) : T.dispatchEvent(new MouseEvent("click"));
10274
10281
  };
10275
- for (var S = 0; S < v.elements.length; S++) {
10276
- var g = v.elements[S];
10282
+ for (var S = 0; S < m.elements.length; S++) {
10283
+ var g = m.elements[S];
10277
10284
  g.name === "repeat" && (g.nodeName != "SELECT" || g.$_eventAttached ? g.$_eventAttached || (g.$_eventAttached = !0, g.addEventListener("click", y)) : (g.$_eventAttached = !0, g.addEventListener("change", y)));
10278
10285
  }
10279
10286
  e._lightbox._rec_init_done = !0;
@@ -10376,9 +10383,9 @@ const gn = { active_links: function(e) {
10376
10383
  for (var f in c)
10377
10384
  c.hasOwnProperty(f) && (delete this._rec_markers[c[f].id], this.deleteEvent(c[f].id, !0));
10378
10385
  delete this._rec_markers_pull[n];
10379
- for (var v = !1, p = 0; p < this._rendered.length; p++)
10380
- this._rendered[p].getAttribute(this.config.event_attribute) == n && (v = !0);
10381
- v || (this._select_id = null);
10386
+ for (var m = !1, p = 0; p < this._rendered.length; p++)
10387
+ this._rendered[p].getAttribute(this.config.event_attribute) == n && (m = !0);
10388
+ m || (this._select_id = null);
10382
10389
  }
10383
10390
  return !0;
10384
10391
  }), e.attachEvent("onEventAdded", function(n) {
@@ -10404,9 +10411,9 @@ const gn = { active_links: function(e) {
10404
10411
  }, e.showLightbox_rec = e.showLightbox, e.showLightbox = function(n) {
10405
10412
  var o = this.locale, _ = e.config.lightbox_recurring, a = this.getEvent(n), d = a.event_pid, l = this._is_virtual_event(n);
10406
10413
  l && (d = n.split("#")[0]);
10407
- var c = function(v) {
10408
- var p = e.getEvent(v);
10409
- return p._end_date = p.end_date, p.end_date = new Date(p.start_date.valueOf() + 1e3 * p.event_length), e.showLightbox_rec(v);
10414
+ var c = function(m) {
10415
+ var p = e.getEvent(m);
10416
+ return p._end_date = p.end_date, p.end_date = new Date(p.start_date.valueOf() + 1e3 * p.event_length), e.showLightbox_rec(m);
10410
10417
  };
10411
10418
  if ((d || 1 * d == 0) && a.rec_type)
10412
10419
  return c(n);
@@ -10414,8 +10421,8 @@ const gn = { active_links: function(e) {
10414
10421
  return this.showLightbox_rec(n);
10415
10422
  if (_ == "ask") {
10416
10423
  var f = this;
10417
- e.modalbox({ text: o.labels.confirm_recurring, title: o.labels.title_confirm_recurring, width: "500px", position: "middle", buttons: [o.labels.button_edit_series, o.labels.button_edit_occurrence, o.labels.icon_cancel], callback: function(v) {
10418
- switch (+v) {
10424
+ e.modalbox({ text: o.labels.confirm_recurring, title: o.labels.title_confirm_recurring, width: "500px", position: "middle", buttons: [o.labels.button_edit_series, o.labels.button_edit_occurrence, o.labels.icon_cancel], callback: function(m) {
10425
+ switch (+m) {
10419
10426
  case 0:
10420
10427
  return c(d);
10421
10428
  case 1:
@@ -10466,46 +10473,46 @@ const gn = { active_links: function(e) {
10466
10473
  l[c] = 1 * l[c] || 7;
10467
10474
  l.sort();
10468
10475
  }
10469
- this.date[o] = function(f, v) {
10470
- var p = Math.floor((v.valueOf() - f.valueOf()) / (864e5 * d));
10476
+ this.date[o] = function(f, m) {
10477
+ var p = Math.floor((m.valueOf() - f.valueOf()) / (864e5 * d));
10471
10478
  return p > 0 && f.setDate(f.getDate() + p * d), l && e.transpose_day_week(f, l, 1, d), f;
10472
- }, this.date[a] = function(f, v) {
10479
+ }, this.date[a] = function(f, m) {
10473
10480
  var p = new Date(f.valueOf());
10474
10481
  if (l)
10475
- for (var h = 0; h < v; h++)
10482
+ for (var h = 0; h < m; h++)
10476
10483
  e.transpose_day_week(p, l, 0, d);
10477
10484
  else
10478
- p.setDate(p.getDate() + v * d);
10485
+ p.setDate(p.getDate() + m * d);
10479
10486
  return p;
10480
10487
  };
10481
10488
  } else
10482
- _[0] != "month" && _[0] != "year" || (this.date[o] = function(f, v, p) {
10483
- var h = Math.ceil((12 * v.getFullYear() + 1 * v.getMonth() + 1 - (12 * f.getFullYear() + 1 * f.getMonth() + 1)) / d - 1);
10489
+ _[0] != "month" && _[0] != "year" || (this.date[o] = function(f, m, p) {
10490
+ var h = Math.ceil((12 * m.getFullYear() + 1 * m.getMonth() + 1 - (12 * f.getFullYear() + 1 * f.getMonth() + 1)) / d - 1);
10484
10491
  return h >= 0 && (f.setDate(1), f.setMonth(f.getMonth() + h * d)), e.date[a](f, 0, p);
10485
- }, this.date[a] = function(f, v, p, h) {
10492
+ }, this.date[a] = function(f, m, p, h) {
10486
10493
  if (h ? h++ : h = 1, h > 12)
10487
10494
  return null;
10488
10495
  var u = new Date(f.valueOf());
10489
- u.setDate(1), u.setMonth(u.getMonth() + v * d);
10490
- var m = u.getMonth(), y = u.getFullYear();
10496
+ u.setDate(1), u.setMonth(u.getMonth() + m * d);
10497
+ var v = u.getMonth(), y = u.getFullYear();
10491
10498
  u.setDate(p.start_date.getDate()), _[3] && e.date.day_week(u, _[2], _[3]);
10492
10499
  var w = e.config.recurring_overflow_instances;
10493
- return u.getMonth() != m && w != "none" && (u = w === "lastDay" ? new Date(y, m + 1, 0, u.getHours(), u.getMinutes(), u.getSeconds(), u.getMilliseconds()) : e.date[a](new Date(y, m + 1, 0), v || 1, p, h)), u;
10500
+ return u.getMonth() != v && w != "none" && (u = w === "lastDay" ? new Date(y, v + 1, 0, u.getHours(), u.getMinutes(), u.getSeconds(), u.getMilliseconds()) : e.date[a](new Date(y, v + 1, 0), m || 1, p, h)), u;
10494
10501
  });
10495
10502
  }
10496
10503
  }, e.repeat_date = function(n, o, _, a, d, l) {
10497
10504
  a = a || this._min_date, d = d || this._max_date;
10498
- var c = l || -1, f = new Date(n.start_date.valueOf()), v = f.getHours(), p = 0;
10505
+ var c = l || -1, f = new Date(n.start_date.valueOf()), m = f.getHours(), p = 0;
10499
10506
  for (!n.rec_pattern && n.rec_type && (n.rec_pattern = n.rec_type.split("#")[0]), this.transpose_type(n.rec_pattern), f = e.date["transpose_" + n.rec_pattern](f, a, n); f && (f < n.start_date || e._fix_daylight_saving_date(f, a, n, f, new Date(f.valueOf() + 1e3 * n.event_length)).valueOf() <= a.valueOf() || f.valueOf() + 1e3 * n.event_length <= a.valueOf()); )
10500
10507
  f = this.date["add_" + n.rec_pattern](f, 1, n);
10501
10508
  for (; f && f < d && f < n.end_date && (c < 0 || p < c); ) {
10502
- f.setHours(v);
10509
+ f.setHours(m);
10503
10510
  var h = e.config.occurrence_timestamp_in_utc ? Date.UTC(f.getFullYear(), f.getMonth(), f.getDate(), f.getHours(), f.getMinutes(), f.getSeconds()) : f.valueOf(), u = this._get_rec_marker(h, n.id);
10504
10511
  if (u)
10505
10512
  _ && (u.rec_type != "none" && p++, o.push(u));
10506
10513
  else {
10507
- var m = new Date(f.valueOf() + 1e3 * n.event_length), y = this._copy_event(n);
10508
- if (y.text = n.text, y.start_date = f, y.event_pid = n.id, y.id = n.id + "#" + Math.round(h / 1e3), y.end_date = m, y.end_date = e._fix_daylight_saving_date(y.start_date, y.end_date, n, f, y.end_date), y._timed = this.isOneDayEvent(y), !y._timed && !this._table_view && !this.config.multi_day)
10514
+ var v = new Date(f.valueOf() + 1e3 * n.event_length), y = this._copy_event(n);
10515
+ if (y.text = n.text, y.start_date = f, y.event_pid = n.id, y.id = n.id + "#" + Math.round(h / 1e3), y.end_date = v, y.end_date = e._fix_daylight_saving_date(y.start_date, y.end_date, n, f, y.end_date), y._timed = this.isOneDayEvent(y), !y._timed && !this._table_view && !this.config.multi_day)
10509
10516
  return;
10510
10517
  o.push(y), _ || (this._events[y.id] = y, this._rec_temp.push(y)), p++;
10511
10518
  }
@@ -10659,8 +10666,8 @@ END:VCALENDAR`;
10659
10666
  }
10660
10667
  var f = ["date=" + r(d || _), "mode=" + (a || o)];
10661
10668
  s && f.push("event=" + s);
10662
- var v = "#" + f.join(",");
10663
- return document.location.hash = v, !0;
10669
+ var m = "#" + f.join(",");
10670
+ return document.location.hash = m, !0;
10664
10671
  });
10665
10672
  });
10666
10673
  }, week_agenda: function(e) {
@@ -10732,14 +10739,14 @@ END:VCALENDAR`;
10732
10739
  }
10733
10740
  });
10734
10741
  }
10735
- for (var f = this.getEvents(_, this.date.add(_, 1, "day")), v = "", p = 0; p < f.length; p++) {
10742
+ for (var f = this.getEvents(_, this.date.add(_, 1, "day")), m = "", p = 0; p < f.length; p++) {
10736
10743
  var h = f[p];
10737
10744
  if (this.filter_event(h.id, h)) {
10738
- var u = h.color ? "--dhx-scheduler-event-background:" + h.color + ";" : "", m = h.textColor ? "--dhx-scheduler-event-color:" + h.textColor + ";" : "";
10739
- v += "<div class='dhx_tooltip_line' style='" + u + m + "' event_id='" + f[p].id + "' " + this.config.event_attribute + "='" + f[p].id + "'>", v += "<div class='dhx_tooltip_date' style='" + u + m + "'>" + (f[p]._timed ? this.templates.event_date(f[p].start_date) : "") + "</div>", v += "<div class='dhx_event_icon icon_details'>&nbsp;</div>", v += this.templates.year_tooltip(f[p].start_date, f[p].end_date, f[p]) + "</div>";
10745
+ var u = h.color ? "--dhx-scheduler-event-background:" + h.color + ";" : "", v = h.textColor ? "--dhx-scheduler-event-color:" + h.textColor + ";" : "";
10746
+ m += "<div class='dhx_tooltip_line' style='" + u + v + "' event_id='" + f[p].id + "' " + this.config.event_attribute + "='" + f[p].id + "'>", m += "<div class='dhx_tooltip_date' style='" + u + v + "'>" + (f[p]._timed ? this.templates.event_date(f[p].start_date) : "") + "</div>", m += "<div class='dhx_event_icon icon_details'>&nbsp;</div>", m += this.templates.year_tooltip(f[p].start_date, f[p].end_date, f[p]) + "</div>";
10740
10747
  }
10741
10748
  }
10742
- this._tooltip.style.display = "", this._tooltip.style.top = "0px", document.body.offsetWidth - a.left - this._tooltip.offsetWidth < 0 ? this._tooltip.style.left = a.left - this._tooltip.offsetWidth + "px" : this._tooltip.style.left = a.left + l.offsetWidth + "px", this._tooltip.date = _, this._tooltip.innerHTML = v, document.body.offsetHeight - a.top - this._tooltip.offsetHeight < 0 ? this._tooltip.style.top = a.top - this._tooltip.offsetHeight + l.offsetHeight + "px" : this._tooltip.style.top = a.top + "px";
10749
+ this._tooltip.style.display = "", this._tooltip.style.top = "0px", document.body.offsetWidth - a.left - this._tooltip.offsetWidth < 0 ? this._tooltip.style.left = a.left - this._tooltip.offsetWidth + "px" : this._tooltip.style.left = a.left + l.offsetWidth + "px", this._tooltip.date = _, this._tooltip.innerHTML = m, document.body.offsetHeight - a.top - this._tooltip.offsetHeight < 0 ? this._tooltip.style.top = a.top - this._tooltip.offsetHeight + l.offsetHeight + "px" : this._tooltip.style.top = a.top + "px";
10743
10750
  }, e._year_view_tooltip_handler = function(_) {
10744
10751
  if (i()) {
10745
10752
  var a = _.target || _.srcElement;
@@ -10774,32 +10781,6 @@ END:VCALENDAR`;
10774
10781
  e.render_view_data();
10775
10782
  } else
10776
10783
  e._hideToolTip();
10777
- }, e._reset_year_scale = function() {
10778
- this._cols = [], this._colsS = {};
10779
- var _ = [], a = this._els.dhx_cal_data[0], d = this.config;
10780
- a.scrollTop = 0, a.innerHTML = "", Math.floor((parseInt(a.style.height) - e.xy.year_top) / d.year_y);
10781
- var l = document.createElement("div"), c = this.date.week_start(e._currentDate());
10782
- this._process_ignores(c, 7, "day", 1);
10783
- for (var f = 0; f < 7; f++)
10784
- this._ignores && this._ignores[f] || (this._cols[f] = "var(--dhx-scheduler-datepicker-cell-size)", this._render_x_header(f, 0, c, l)), c = this.date.add(c, 1, "day");
10785
- for (l.lastChild.className += " dhx_scale_bar_last", f = 0; f < l.childNodes.length; f++)
10786
- this._waiAria.yearHeadCell(l.childNodes[f]);
10787
- var v = this.date[this._mode + "_start"](this.date.copy(this._date)), p = v, h = null;
10788
- const u = document.createElement("div");
10789
- for (u.classList.add("dhx_year_wrapper"), f = 0; f < d.year_y; f++)
10790
- for (var m = 0; m < d.year_x; m++) {
10791
- (h = document.createElement("div")).className = "dhx_year_box", h.setAttribute("date", this._helpers.formatDate(v)), h.setAttribute("data-month-date", this._helpers.formatDate(v)), h.innerHTML = "<div class='dhx_year_month'></div><div class='dhx_year_grid'><div class='dhx_year_week'>" + l.innerHTML + "</div><div class='dhx_year_body'></div></div>";
10792
- var y = h.querySelector(".dhx_year_month"), w = h.querySelector(".dhx_year_grid"), D = h.querySelector(".dhx_year_body"), E = e.uid();
10793
- this._waiAria.yearHeader(y, E), this._waiAria.yearGrid(w, E), y.innerHTML = this.templates.year_month(v);
10794
- var S = this.date.week_start(v);
10795
- this._reset_month_scale(D, v, S, 6);
10796
- for (var g = D.querySelectorAll("td"), b = 0; b < g.length; b++)
10797
- this._waiAria.yearDayCell(g[b]);
10798
- u.appendChild(h), _[f * d.year_x + m] = (v.getDay() - (this.config.start_on_monday ? 1 : 0) + 7) % 7, v = this.date.add(v, 1, "month");
10799
- }
10800
- a.appendChild(u);
10801
- var x = this._getNavDateElement();
10802
- x && (x.innerHTML = this.templates[this._mode + "_date"](p, v, this._mode)), this.week_starts = _, _._month = p.getMonth(), this._min_date = p, this._max_date = v;
10803
10784
  }, e._reset_year_scale = function() {
10804
10785
  var _ = this._els.dhx_cal_data[0];
10805
10786
  _.scrollTop = 0, _.innerHTML = "";
@@ -10808,7 +10789,7 @@ END:VCALENDAR`;
10808
10789
  const d = document.createElement("div");
10809
10790
  d.classList.add("dhx_year_wrapper");
10810
10791
  let l = a;
10811
- for (let v = 0; v < 12; v++) {
10792
+ for (let m = 0; m < 12; m++) {
10812
10793
  let p = document.createElement("div");
10813
10794
  p.className = "dhx_year_box", p.setAttribute("date", this._helpers.formatDate(l)), p.setAttribute("data-month-date", this._helpers.formatDate(l)), p.innerHTML = `<div class='dhx_year_month'>${this.templates.year_month(l)}</div>
10814
10795
  <div class='dhx_year_grid'></div>`;