import{e}from"./p-9ef574c2.js";import"./p-896c8e86.js";function r(r){return{klevuModifierId:"sendSearchEvent",ssrOnResultFE:true,onResult:(t,s)=>{var n;if(!s.params){return t}const{id:i,term:o}=s.params;if(!i||!o){return t}const u=(n=t.queriesById(i))===null||n===void 0?void 0:n.meta;if(!u){return t}e.search({term:o,totalResults:u.totalResultsFound,typeOfSearch:u.typeOfSearch,override:r,tags:u.tags});if(!s.params){s.params={}}s.params.searchSendEventSent=true;return t}}}export{r as s};
//# sourceMappingURL=p-3e4f0017.js.map