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