(function(){"use strict";/** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */Joomla=window.Joomla||{},function(e){document.addEventListener("DOMContentLoaded",function(){var t=document.getElementsByClassName("changelogModal");Array.from(t).forEach(function(a){a.addEventListener("click",function(n){e.loadChangelog(n.target.dataset.jsExtensionid,n.target.dataset.jsView)})})}),e.loadChangelog=function(t,a){var n=document.querySelector("#changelogModal"+t+" .modal-body");e.request({url:"index.php?option=com_installer&task=manage.loadChangelog&eid="+t+"&source="+a+"&format=json",onSuccess:function(r){var o="";try{var c=JSON.parse(r);c.error?o=c[0]:o=c.data}catch(s){o=s}n.innerHTML=e.sanitizeHtml(o)},onError:function(r){n.innerHTML=e.sanitizeHtml(r.statusText)}})}}(Joomla)})();