(d)
| 18 | return l ? l.layout : d; |
| 19 | } |
| 20 | function _(d) { |
| 21 | const { event: l, layout: h, viewName: p, sectionId: m, eventNode: g } = d; |
| 22 | (function(f, y) { |
| 23 | switch (y) { |
| 24 | case "month": |
| 25 | f.style.top = "", f.style.left = ""; |
| 26 | break; |
| 27 | case "timeline": |
| 28 | f.style.left = "", f.style.marginLeft = "1px"; |
| 29 | break; |
| 30 | default: |
| 31 | f.style.top = ""; |
| 32 | } |
| 33 | })(g, h); |
| 34 | const c = {}; |
| 35 | let u = { start_date: l.start_date, end_date: l.end_date, css: "dhx_scheduler_dnd_marker", html: g }; |
| 36 | if (h == "timeline") { |
| 37 | const f = e.getView(p); |
| 38 | if (f.round_position) { |
| 39 | const y = e._get_date_index(f, l.start_date), w = f._trace_x[y]; |
| 40 | u.start_date = w; |
| 41 | } |
| 42 | } |
| 43 | return h != "timeline" && h != "month" || (u = { ...u, end_date: e.date.add(l.start_date, 1, "minute") }), m && (c[p] = m, u.sections = c), u; |
| 44 | } |
| 45 | function r(d) { |
| 46 | const { layout: l } = d; |
| 47 | let h; |
no test coverage detected