UNPKG

vue-instantsearch

Version:

👀 Lightning-fast Algolia search for Vue apps

2 lines (1 loc) • 674 B
import{openBlock as t,createElementBlock as e,normalizeClass as s,renderSlot as n,mergeProps as r,createElementVNode as a,Fragment as u,createTextVNode as i,toDisplayString as o,createCommentVNode as l}from"vue";function c(c,S,d,f,p,m){return c.state?(t(),e("div",{key:0,class:s(c.suit())},[n(c.$slots,"default",r(c.state,{results:c.state.instantSearchInstance.helper.lastResults}),function(){return[a("span",{class:s(c.suit("text"))},[c.state.areHitsSorted?(t(),e(u,{key:0},[i(o(m.sortedResultsSentence),1)],64)):(t(),e(u,{key:1},[i(o(m.resultsSentence),1)],64)),i(" found in "+o(c.state.processingTimeMS.toLocaleString())+"ms",1)],2)]})],2)):l("",!0)}export{c as render};