import{c as r}from"./p-ae1fa3d6.js";import"./p-c55c67b2.js";function e(e){return{klevuModifierId:"sendSearchEvent",onResult:(t,i)=>{var o,n,d,u;if(!i.params){return t}const{id:l,term:v}=i.params;if(!l||!v){return t}const s=(o=t.queriesById(l))===null||o===void 0?void 0:o.meta;if(!s){return t}r.search({term:((n=s.klevuImageData)===null||n===void 0?void 0:n.processed)&&((u=(d=s.klevuImageData)===null||d===void 0?void 0:d.processed)===null||u===void 0?void 0:u.length)>0?"KLEVU_IMAGE_SEARCH":v,totalResults:s.totalResultsFound,typeOfSearch:s.typeOfSearch,override:e});if(!i.params){i.params={}}i.params.searchSendEventSent=true;return t}}}export{e as s};
//# sourceMappingURL=p-5dc1135b.js.map