1(async function(algolia){"use strict";var algoliasearch=algolia.externals.algoliasearch;const getAlgoliaResults=algolia.externals.getAlgoliaResults,{config,translations,headerTemplate,productCard,footerTemplate}=algolia,index=algoliasearch(algolia?.config?.app_id,algolia?.config?.search_api_key).initIndex(algolia?.config?.index_prefix+"products");let stockPolicyFilter="";algolia.config.stock_policy==="deny"?stockPolicyFilter="inventory_quantity > 0":algolia.config.stock_policy==="continue"&&(stockPolicyFilter="inventory_available:true");const index_suffix=await config.index_suffix;algolia.productsPlugin={getSources({query,setContext}){return algolia.queryThreshold&&query.length<algolia.queryThreshold?[]:[{sourceId:"products",getItems(){return getAlgoliaResults({searchClient:algolia.searchClient,queries:[{indexName:config.index_prefix+"products",query,params:{hitsPerPage:config.products_autocomplete_hits_per_page,clickAnalytics:config.analytics_enabled,filters:stockPolicyFilter,ruleContexts:["search_results"],analyticsTags:["autocomplete"]}}],transformResponse({results,hits}){return algolia.updateDistinctPrices(results[0].hits,index,"autocomplete"),setContext({nbProducts:results[0].nbHits,products:results[0].hits}),hits}})},templates:{header({html,state}){const resource=translations.products;return headerTemplate({html,state},resource)},item({item,html,components}){return item.queryID=item.__autocomplete_queryID,item.index=item.__autocomplete_indexName,productCard(html,item)},footer({state,html}){const{autocomplete_see_all,products_autocomplete_hits_per_page}=config;return autocomplete_see_all&&state.context.nbProducts>products_autocomplete_hits_per_page&&footerTemplate({html,state})}}}]}}})(window.algoliaShopify); 2//# sourceMappingURL=/cdn/shop/t/223/assets/algolia_autocomplete_product_plugin.js.map?v=85844936160540544751789425234
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.