/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */(o=>{if(!window.parent.Joomla)throw new Error("core.js was not properly initialised");o||(window.Joomla={}),o.fieldIns=(e,n)=>{window.parent.Joomla.editors.instances[n].replaceSelection(`{field ${e}}`),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()},o.fieldgroupIns=(e,n)=>{window.parent.Joomla.editors.instances[n].replaceSelection(`{fieldgroup ${e}}`),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()}})(Joomla);
