mirror of
https://github.com/imezx/Warp.git
synced 2025-04-25 15:40:02 +00:00
13 lines
350 B
JavaScript
13 lines
350 B
JavaScript
|
export function createClickedEvent(_ref) {
|
||
|
var item = _ref.item,
|
||
|
items = _ref.items;
|
||
|
return {
|
||
|
index: item.__autocomplete_indexName,
|
||
|
items: [item],
|
||
|
positions: [1 + items.findIndex(function (x) {
|
||
|
return x.objectID === item.objectID;
|
||
|
})],
|
||
|
queryID: item.__autocomplete_queryID,
|
||
|
algoliaSource: ['autocomplete']
|
||
|
};
|
||
|
}
|