CoreFiles by mySites.guru
stats-message.min.js5 lines, 1,495 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
d3e9d48392e0332778259f3dc5e1a066
sha1
da28540ed825ac817415c7accd62695d064abad1
sha256
1a86ae4744cb52e8ac5c130a4e6910e131774d9dc48ddd626d09130056a20187
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 * @since      3.5.0
 */Joomla=window.Joomla||{},((r,e)=>{const i={input:["type","name","value"],"joomla-alert":["type","dismiss","role"],button:["type"],table:[],tbody:[],thead:[],caption:[],th:["scope"],tr:[],td:[]},c=a=>{const o=e.getElementById("system-message-container"),s=o.querySelector(".js-pstats-alert"),n=o.querySelector("#js-pstats-data-details");e.addEventListener("click",t=>{t.target.classList.contains("js-pstats-btn-details")&&(t.preventDefault(),n.classList.toggle("d-none"))}),e.addEventListener("click",t=>{t.target.classList.contains("js-pstats-btn-allow-always")&&(t.preventDefault(),s.close(),a({plugin:"sendAlways"}))}),e.addEventListener("click",t=>{t.target.classList.contains("js-pstats-btn-allow-never")&&(t.preventDefault(),s.close(),a({plugin:"sendNever"}))})},l=({plugin:a="sendStats"}={})=>{const o=`index.php?option=com_ajax&group=system&plugin=${a}&format=raw`,s=e.getElementById("system-message-container");r.request({url:o,headers:{"Content-Type":"application/json"},onSuccess:n=>{try{const t=JSON.parse(n);t&&t.html&&(s.insertAdjacentHTML("beforeend",r.sanitizeHtml(t.html,i)),s.querySelector(".js-pstats-alert").classList.remove("hidden"),c(l))}catch(t){throw new Error(t)}},onError:n=>{r.renderMessages({error:[n.response]})}})};e.addEventListener("DOMContentLoaded",()=>{l()})})(Joomla,document);

The same content is in 100 releases, Joomla 4.4.1-rc1 to 6.0.0-alpha3. See them all, or every version of this file.