devstar插件
This commit is contained in:
14
node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createClickedEvent.js
generated
vendored
Normal file
14
node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createClickedEvent.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
export function createClickedEvent(_ref) {
|
||||
var item = _ref.item,
|
||||
_ref$items = _ref.items,
|
||||
items = _ref$items === void 0 ? [] : _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']
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user