PageSourceSearch

https://www.amg-bensberg.de/wp-content/plugins/pixfort-core/dist/f…/search-suggestions.ed397f79abb5c93b3eb8.js

js amg-bensberg.de collected 2026-10-02 17:08:15 UTC 2,097 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpixfort_core=self.webpackChunkpixfort_core||[]).push([[3283],{5175(e,t,n){n.d(t,{default:()=>i});var o=n(9244),a=n(5886);function i(e){e.addClass("ajax-loaded");let t=e.closest(".pix-ajax-search-container"),n=e.closest(".pix-search-form"),i="",s=!0,r=-1,c=[];const d={name:"customPosition",enabled:!0,phase:"write",fn({state:e}){Object.assign(e.elements.popper.style,{transform:"none"})}},l=(0,o.Ay)(e[0],{content:"",allowHTML:!0,interactive:!0,trigger:"manual",placement:"bottom",maxWidth:"none",appendTo:t[0],popperOptions:{modifiers:[d,{name:"flip",options:{enabled:!1}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"offset",options:{offset:[0,0]}}]}});function p(e){c=e,r=-1;const t=e.map((e,t)=>{const n=e.icon?`<img src="${e.icon}" alt=""> `:"";return`<div class="dropdown-item" data-id="${e.value}" data-index="${t}">${n}${e.text}</div>`}).join("");l.setContent(t),l.show()}function f(){$(".dropdown-item").removeClass("active"),r>=0&&r<c.length&&$(`.dropdown-item[data-index=${r}]`).addClass("active")}e.on("input",function(){const t=e.val();i!==t&&(i=t,t.length>1?a.default.makeRequest({action:"pix_ajax_search",nonceKey:"search_nonce",data:{term:t},method:"GET",success:function(e){if(e&&e.success&&e.data)p(e.data);else if(Array.isArray(e))p(e);else if("string"==typeof e)try{p(JSON.parse(e))}catch(e){l.hide()}else l.hide()},error:function(e){e&&e.responseJSON&&e.responseJSON.data&&e.responseJSON.data.message,l.hide()}}).catch(e=>{l.hide()}):l.hide())}),t.on("click",".dropdown-item",function(e){e.preventDefault(),s=!1;const t=$(this).data("id");t&&(window.location.href=t)}),t.on("submit",function(e){s||e.preventDefault()}),n.on("submit",function(e){s||e.preventDefault()}),e.on("blur",function(){setTimeout(()=>{l.hide()},200)}),e.on("keydown",function(e){if("Enter"===e.key){if(r>=0&&r<c.length){e.preventDefault(),s=!1;const t=c[r].value;t&&(window.location.href=t)}}else"ArrowDown"===e.key?(e.preventDefault(),r=(r+1)%c.length,f()):"ArrowUp"===e.key&&(e.preventDefault(),r=(r-1+c.length)%c.length,f())})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.