/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */(e=>{e.getOptions("menus-default")&&e.getOptions("menus-default").items.forEach(t=>{window[`jSelectPosition_${t}`]=m=>{document.getElementById(t).value=m,e.Modal.getCurrent().close()}}),Array.from(document.querySelectorAll(".modal")).forEach(o=>{o.addEventListener("hidden.bs.modal",()=>{setTimeout(()=>{window.parent.location.reload()},1e3)})})})(Joomla),(e=>{Joomla.submitform=(o,t)=>{e(o,t),o==="menu.exportXml"&&(document.adminForm.task.value="")}})(Joomla.submitform);
