(e)
| 4764 | Contact us at <a href="https://dhtmlx.com/docs/contact.shtml" target="_blank">https://dhtmlx.com/docs/contact.shtml</a> if you have any questions.`); |
| 4765 | }; |
| 4766 | function aa(e) { |
| 4767 | (function() { |
| 4768 | var i = []; |
| 4769 | function t() { |
| 4770 | return !!i.length; |
| 4771 | } |
| 4772 | function n(_) { |
| 4773 | setTimeout(function() { |
| 4774 | if (e.$destroyed) |
| 4775 | return !0; |
| 4776 | t() || function(r, d) { |
| 4777 | for (; r && r != d; ) |
| 4778 | r = r.parentNode; |
| 4779 | return r == d; |
| 4780 | }(document.activeElement, e.$container) || e.focus(); |
| 4781 | }, 1); |
| 4782 | } |
| 4783 | function s(_) { |
| 4784 | var r = (_ = _ || window.event).currentTarget; |
| 4785 | r == i[i.length - 1] && e.$keyboardNavigation.trapFocus(r, _); |
| 4786 | } |
| 4787 | if (e.attachEvent("onLightbox", function() { |
| 4788 | var _; |
| 4789 | _ = e.getLightbox(), e.eventRemove(_, "keydown", s), e.event(_, "keydown", s), i.push(_); |
| 4790 | }), e.attachEvent("onAfterLightbox", function() { |
| 4791 | var _ = i.pop(); |
| 4792 | _ && e.eventRemove(_, "keydown", s), n(); |
| 4793 | }), e.attachEvent("onAfterQuickInfo", function() { |
| 4794 | n(); |
| 4795 | }), !e._keyNavMessagePopup) { |
| 4796 | e._keyNavMessagePopup = !0; |
| 4797 | var a = null, o = null; |
| 4798 | const _ = []; |
| 4799 | e.attachEvent("onMessagePopup", function(r) { |
| 4800 | for (a = document.activeElement, o = a; o && e._getClassName(o).indexOf("dhx_cal_data") < 0; ) |
| 4801 | o = o.parentNode; |
| 4802 | o && (o = o.parentNode), e.eventRemove(r, "keydown", s), e.event(r, "keydown", s), _.push(r); |
| 4803 | }), e.attachEvent("onAfterMessagePopup", function() { |
| 4804 | var r = _.pop(); |
| 4805 | r && e.eventRemove(r, "keydown", s), setTimeout(function() { |
| 4806 | if (e.$destroyed) |
| 4807 | return !0; |
| 4808 | for (var d = document.activeElement; d && e._getClassName(d).indexOf("dhx_cal_light") < 0; ) |
| 4809 | d = d.parentNode; |
| 4810 | d || (a && a.parentNode ? a.focus() : o && o.parentNode && o.focus(), a = null, o = null); |
| 4811 | }, 1); |
| 4812 | }); |
| 4813 | } |
| 4814 | e.$keyboardNavigation.isModal = t; |
| 4815 | })(); |
| 4816 | } |
| 4817 | function na(e) { |
| 4818 | e._temp_key_scope = function() { |
| 4819 | e.config.key_nav = !0, e.$keyboardNavigation._pasteDate = null, e.$keyboardNavigation._pasteSection = null; |
no test coverage detected