CoreFiles by mySites.guru
finder.es6.min.js1 lines, 1,209 bytes, from Joomla_4.0.0-alpha10-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha9
md5
a2ddf1118a53174788e3be80e92cc0f2
sha1
05bf72520f6d921034ac6a87f04692b710d8ede0
sha256
1747f1beef2b15d81e60e1570a946b9b7a65991a28b9a3d7d410c295670bf81e
((a,b,c,d)=>{'use strict';if(!b)throw new Error("core.js was not properly initialised");const e=a=>{1<a.target.value.length&&(a.target.awesomplete.list=[],b.request({url:"".concat(b.getOptions("finder-search").url,"&q=").concat(a.target.value),method:"GET",data:{q:a.target.value},perform:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"},onSuccess:b=>{const c=JSON.parse(b);"[object Array]"===Object.prototype.toString.call(c.suggestions)&&(a.target.awesomplete.list=c.suggestions)},onError:a=>{0<a.status&&b.renderMessages(b.ajaxErrorsMessages(a))}}))},f=a=>{a.stopPropagation();const b=a.target.querySelector(".js-finder-advanced");if(b.length){const a=[].slice.call(b.querySelectorAll("select"));a.forEach(a=>{a.value||a.setAttribute("disabled","disabled")})}},g=()=>{const c=[].slice.call(d.querySelectorAll(".js-finder-search-query"));c.forEach(c=>{b.getOptions("finder-search")&&(c.awesomplete=new a(c),c.addEventListener("keyup",e))});const h=[].slice.call(d.querySelectorAll(".js-finder-searchform"));h.forEach(a=>{a.addEventListener("submit",f)}),d.removeEventListener("DOMContentLoaded",g)};d.addEventListener("DOMContentLoaded",g)})(window.Awesomplete,window.Joomla,window,document);

The same content is in 5 releases, Joomla 4.0.0-alpha8 to 4.0.0-alpha12. See them all, or every version of this file.