summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/chunk/BVhnhCXf.min.js
diff options
context:
space:
mode:
authorIvan Gabaldon <igabaldon@inetol.net>2025-12-05 11:59:59 +0100
committerIvan Gabaldon <igabaldon@inetol.net>2025-12-05 11:14:26 +0000
commitda6c635ea2cc315b477ad4d89c31518e545fc7fd (patch)
treeee0e7e3b07ff1682f72a0847898077925583529b /searx/static/themes/simple/chunk/BVhnhCXf.min.js
parente34c356e64e5436d38d72db4d809b927d1d545b0 (diff)
[upd] themes: update vite
Diffstat (limited to 'searx/static/themes/simple/chunk/BVhnhCXf.min.js')
-rw-r--r--searx/static/themes/simple/chunk/BVhnhCXf.min.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/static/themes/simple/chunk/BVhnhCXf.min.js b/searx/static/themes/simple/chunk/BVhnhCXf.min.js
new file mode 100644
index 000000000..63c780e9f
--- /dev/null
+++ b/searx/static/themes/simple/chunk/BVhnhCXf.min.js
@@ -0,0 +1,2 @@
+import{n as e}from"../sxng-core.min.js";import{t}from"./gZqIRpW1.min.js";var n=t(`search`),r=t(`q`),i=t(`clear_search`),a=window.matchMedia(`(max-width: 50em)`).matches,o=document.querySelector(`main`)?.id===`main_results`,s=Array.from(document.querySelectorAll(`#categories_container button.category`));r.value.length===0&&i.classList.add(`empty`),a||o||r.focus(),a&&e(`focus`,r,()=>{requestAnimationFrame(()=>{let e=r.value.length;r.setSelectionRange(e,e),r.scrollLeft=r.scrollWidth})}),e(`input`,r,()=>{i.classList.toggle(`empty`,r.value.length===0)}),e(`click`,i,()=>{i.classList.add(`empty`),r.focus()});for(let t of s)e(`click`,t,e=>{if(e.shiftKey){e.preventDefault(),t.classList.toggle(`selected`);return}for(let e of s)e.classList.toggle(`selected`,e===t)});if(document.querySelector(`div.search_filters`)){let t=document.getElementById(`safesearch`);t&&e(`change`,t,()=>n.submit());let r=document.getElementById(`time_range`);r&&e(`change`,r,()=>n.submit());let i=document.getElementById(`language`);i&&e(`change`,i,()=>n.submit())}e(`submit`,n,e=>{if(e.preventDefault(),s.length>0){let e=t(`selected-categories`);e.value=s.filter(e=>e.classList.contains(`selected`)).map(e=>e.name.replace(`category_`,``)).join(`,`)}n.submit()});
+//# sourceMappingURL=BVhnhCXf.min.js.map \ No newline at end of file