(()=>{var e;e=jQuery,document.addEventListener("DOMContentLoaded",(function(){const n=e("#tec-settings-nav-modal"),o=e("#tec-settings-nav-modal-open"),t=e("#tec-settings-nav-modal-close"),c=e("#tec-settings-modal-nav").find(".tec-nav__tab--has-subnav > .tec-nav__link"),a=e("#tec-settings-sidebar-modal-open"),s=e("#tec-settings-sidebar-modal-close"),i=e("#tec-settings-form__sidebar-modal"),d={open(){n[0].showModal(),c.on("click",l)},close(){c.off("click",l),n[0].close()}},l=n=>{n.preventDefault();const o=e(n.target);c.not(o).parent().removeClass("tec-nav__tab--subnav-active"),o.parent().toggleClass("tec-nav__tab--subnav-active")},m={open(e){e.preventDefault(),e.stopPropagation(),i[0].showModal()},close(){i[0].close()}};e(document).ready((()=>{o.on("click",d.open),t.on("click",d.close),a.on("click",m.open),s.on("click",m.close)}))})),window.tec=window.tec||{},window.tec.common=window.tec.common||{},window.tec.common.admin=window.tec.common.admin||{},window.tec.common.admin.settingsNavModals={}})();