New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-instantsearch

Package Overview
Dependencies
Maintainers
6
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-instantsearch - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

2

CHANGELOG.md

@@ -1,2 +0,2 @@

## [3.0.2](https://github.com/algolia/vue-instantsearch/compare/v3.0.1...v3.0.2) (2020-06-12)
## [3.0.3](https://github.com/algolia/vue-instantsearch/compare/v3.0.1...v3.0.3) (2020-06-12)

@@ -3,0 +3,0 @@

@@ -1,2 +0,2 @@

import{connectAutocomplete as t,connectBreadcrumb as e,connectClearRefinements as s,connectConfigure as n,EXPERIMENTAL_connectConfigureRelatedItems as i,connectCurrentRefinements as a,connectHierarchicalMenu as r,connectHitsWithInsights as o,connectHitsPerPage as u,connectInfiniteHitsWithInsights as c,connectMenu as l,connectNumericMenu as h,connectPagination as f,connectQueryRules as d,connectRange as m,connectRatingMenu as p,connectRefinementList as g,connectSearchBox as v,connectSortBy as _,connectStats as y,connectToggleRefinement as b,connectVoiceSearch as S}from"instantsearch.js/es/connectors";import R from"vue";import{getPropertyByPath as w}from"instantsearch.js/es/lib/utils";import x from"instantsearch.js/es/widgets/index/index";import P from"instantsearch.js/es";import I from"algoliasearch-helper";var A=function(t){var e=t.name;return{props:{classNames:{type:Object,default:void 0}},methods:{suit:function(t,s){var n=function(t,e,s){if(!t)throw new Error("You need to provide `widgetName` in your data");var n=["ais-"+t];return e&&n.push("-"+e),s&&n.push("--"+s),n.join("")}(e,t,s),i=this.classNames&&this.classNames[n];return i?[n,i].join(" "):n}}}},L=new Set;function M(t){L.has(t)||(L.add(t),console.warn(t))}var F=function(t){void 0===t&&(t={});var e=t.connector;return{inject:{instantSearchInstance:{from:"$_ais_instantSearchInstance",default:function(){var t=this.$options._componentTag;throw new TypeError('It looks like you forgot to wrap your Algolia search component "<'+t+'>" inside of an "<ais-instant-search>" component.')}},getParentIndex:{from:"$_ais_getParentIndex",default:function(){var t=this;return function(){return t.instantSearchInstance.mainIndex}}}},data:function(){return{state:null}},created:function(){if("function"==typeof e){if(this.factory=e(this.updateState,function(){}),this.widget=this.factory(this.widgetParams),this.getParentIndex().addWidgets([this.widget]),this.instantSearchInstance.__initialSearchResults&&!this.instantSearchInstance.started){if("function"!=typeof this.instantSearchInstance.__forceRender)throw new Error("You are using server side rendering with <ais-instant-search> instead of <ais-instant-search-ssr>.");this.instantSearchInstance.__forceRender(this.widget,this.getParentIndex())}}else!0!==e&&M("You are using the InstantSearch widget mixin, but didn't provide a connector.\nWhile this is technically possible, and will give you access to the Helper,\nit's not the recommended way of making custom components.\n\nIf you want to disable this message, pass { connector: true } to the mixin.\n\nRead more on using connectors: https://alg.li/vue-custom")},beforeDestroy:function(){this.widget&&this.widget.dispose&&this.instantSearchInstance.started&&this.getParentIndex().removeWidgets([this.widget])},watch:{widgetParams:{handler:function(t){this.state=null,this.widget.dispose&&this.instantSearchInstance.started&&this.getParentIndex().removeWidgets([this.widget]),this.widget=this.factory(t),this.getParentIndex().addWidgets([this.widget])},deep:!0}},methods:{updateState:function(t,e){void 0===t&&(t={}),e||(this.state=t)}}}},k={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:t.suit()},[t._t("default",[s("p",[t._v("This widget doesn't render anything without a filled in default slot.")]),t._v(" "),s("p",[t._v("query, function to refine and results are provided.")]),t._v(" "),s("pre",[t._v("refine: Function")]),t._v(" "),s("pre",[t._v('currentRefinement: "'+t._s(t.state.currentRefinement)+'"')]),t._v(" "),s("details",[t._m(0),t._v(" "),s("pre",[t._v(t._s(t.state.indices))])])],{refine:t.state.refine,currentRefinement:t.state.currentRefinement,indices:t.state.indices})],2):t._e()},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("summary",[e("code",[this._v("indices")]),this._v(":")])}],name:"AisAutocomplete",mixins:[F({connector:t}),A({name:"Autocomplete"})],props:{escapeHTML:{type:Boolean,required:!1,default:!0}},computed:{widgetParams:function(){return{escapeHTML:this.escapeHTML}}}},T=function(t){var e=t.mapStateToCanRefine;return{inject:{emitter:{from:"instantSearchPanelEmitter",default:function(){return{$emit:function(){}}}}},data:function(){return{state:null,hasAlreadyEmitted:!1}},watch:{state:function(t,s){if(s&&t){var n=e(s),i=e(t);this.hasAlreadyEmitted&&n===i||(this.emitter.$emit("PANEL_CHANGE_EVENT",i),this.hasAlreadyEmitted=!0)}}}}},C={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:[t.suit(),!t.state.canRefine&&t.suit("","noRefinement")]},[t._t("default",[s("ul",{class:t.suit("list")},[s("li",{class:[t.suit("item"),!t.state.items.length&&t.suit("item","selected")]},[Boolean(t.state.items.length)?s("a",{class:t.suit("link"),attrs:{href:t.state.createURL()},on:{click:function(e){e.preventDefault(),t.state.refine()}}},[t._t("rootLabel",[t._v("Home")])],2):s("span",[t._t("rootLabel",[t._v("Home")])],2)]),t._v(" "),t._l(t.state.items,function(e,n){return s("li",{key:e.label,class:[t.suit("item"),t.isLastItem(n)&&t.suit("item","selected")]},[s("span",{class:t.suit("separator"),attrs:{"aria-hidden":"true"}},[t._t("separator",[t._v(">")])],2),t._v(" "),t.isLastItem(n)?s("span",[t._v(t._s(e.label))]):s("a",{class:t.suit("link"),attrs:{href:t.state.createURL(e.value)},on:{click:function(s){s.preventDefault(),t.state.refine(e.value)}}},[t._v(t._s(e.label))])])})],2)],{items:t.state.items,canRefine:t.state.canRefine,refine:t.state.refine,createURL:t.state.createURL})],2):t._e()},staticRenderFns:[],name:"AisBreadcrumb",mixins:[F({connector:e}),T({mapStateToCanRefine:function(t){return t.canRefine}}),A({name:"Breadcrumb"})],props:{attributes:{type:Array,required:!0},separator:{type:String,default:" > "},rootPath:{type:String,default:null},transformItems:{type:Function,default:function(t){return t}}},computed:{widgetParams:function(){return{attributes:this.attributes,separator:this.separator,rootPath:this.rootPath,transformItems:this.transformItems}}},methods:{isLastItem:function(t){return this.state.items.length-1===t}}},N={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:t.suit()},[t._t("default",[s("button",{class:[t.suit("button"),!t.canRefine&&t.suit("button","disabled")],attrs:{type:"reset",disabled:!t.canRefine},on:{click:function(e){return e.preventDefault(),t.state.refine(e)}}},[t._t("resetLabel",[t._v("Clear refinements")])],2)],{canRefine:t.canRefine,refine:t.state.refine,createURL:t.state.createURL})],2):t._e()},staticRenderFns:[],name:"AisClearRefinements",mixins:[F({connector:s}),T({mapStateToCanRefine:function(t){return t.hasRefinements}}),A({name:"ClearRefinements"})],props:{excludedAttributes:{type:Array},includedAttributes:{type:Array},transformItems:{type:Function,default:function(t){return t}}},computed:{widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}},canRefine:function(){return this.state.hasRefinements}}},$={inheritAttrs:!1,name:"AisConfigure",mixins:[A({name:"Configure"}),F({connector:n})],computed:{widgetParams:function(){return{searchParameters:this.$attrs}}},render:function(t){return this.state&&this.$scopedSlots.default?t("div",{class:this.suit()},[this.$scopedSlots.default({refine:this.state.refine,searchParameters:this.state.widgetParams.searchParameters})]):null}},q={inheritAttrs:!1,name:"AisExperimentalConfigureRelatedItems",mixins:[F({connector:i})],props:{hit:{type:Object,required:!0},matchingPatterns:{type:Object,required:!0},transformSearchParameters:{type:Function,required:!1}},computed:{widgetParams:function(){return{hit:this.hit,matchingPatterns:this.matchingPatterns,transformSearchParameters:this.transformSearchParameters}}},render:function(){return null}},B={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:[t.suit(),t.noRefinement&&t.suit("","noRefinement")]},[t._t("default",[s("ul",{class:t.suit("list")},t._l(t.state.items,function(e){return s("li",{key:e.attribute,class:t.suit("item")},[t._t("item",[s("span",{class:t.suit("label")},[t._v(t._s(t._f("capitalize")(e.label))+": ")]),t._v(" "),t._l(e.refinements,function(n){return s("span",{key:t.createItemKey(n),class:t.suit("category")},[t._t("refinement",[s("span",{class:t.suit("categoryLabel")},["query"===n.attribute?s("q",[t._v(t._s(n.label))]):[t._v(" "+t._s(n.label)+" ")]],2),t._v(" "),s("button",{class:t.suit("delete"),on:{click:function(t){e.refine(n)}}},[t._v(" ✕ ")])],{refine:e.refine,refinement:n,createURL:t.state.createURL})],2)})],{refine:e.refine,item:e,createURL:t.state.createURL})],2)}))],{refine:t.state.refine,items:t.state.items,createURL:t.state.createURL})],2):t._e()},staticRenderFns:[],name:"AisCurrentRefinements",mixins:[A({name:"CurrentRefinements"}),F({connector:a}),T({mapStateToCanRefine:function(t){return t.items.length>0}})],props:{includedAttributes:{type:Array},excludedAttributes:{type:Array},transformItems:{type:Function,default:function(t){return t}}},computed:{noRefinement:function(){return this.state&&0===this.state.items.length},widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}}},methods:{createItemKey:function(t){var e=t.attribute,s=t.value;return[e,t.type,s,t.operator].join(":")}},filters:{capitalize:function(t){return t?t.toString().charAt(0).toLocaleUpperCase()+t.toString().slice(1):""}}},U={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ul",{class:[t.suit("list"),t.level>0&&t.suit("list","child"),t.suit("list","lvl"+t.level)]},t._l(t.items,function(e){return s("li",{key:e.value,class:[t.suit("item"),e.data&&t.suit("item","parent"),e.isRefined&&t.suit("item","selected")]},[s("a",{class:t.suit("link"),attrs:{href:t.createURL(e.value)},on:{click:function(s){s.preventDefault(),t.refine(e.value)}}},[s("span",{class:t.suit("label")},[t._v(t._s(e.label))]),t._v(" "),s("span",{class:t.suit("count")},[t._v(t._s(e.count))])]),t._v(" "),e.data?s("hierarchical-menu-list",{attrs:{items:e.data,level:t.level+1,refine:t.refine,createURL:t.createURL,suit:t.suit}}):t._e()],1)}))},staticRenderFns:[],name:"HierarchicalMenuList",props:{items:{type:Array,required:!0},level:{type:Number,required:!0},refine:{type:Function,required:!0},createURL:{type:Function,required:!0},suit:{type:Function,required:!0}}},E=function(t){return t.items.length>0},H={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:[t.suit(),!t.canRefine&&t.suit("","noRefinement")]},[t._t("default",[s("hierarchical-menu-list",{attrs:{items:t.state.items,level:0,refine:t.state.refine,createURL:t.state.createURL,suit:t.suit}}),t._v(" "),t.showMore?s("button",{class:[t.suit("showMore"),!t.state.canToggleShowMore&&t.suit("showMore","disabled")],attrs:{disabled:!t.state.canToggleShowMore},on:{click:function(e){return e.preventDefault(),t.state.toggleShowMore(e)}}},[t._t("showMoreLabel",[t._v(t._s(t.state.isShowingMore?"Show less":"Show more"))],{isShowingMore:t.state.isShowingMore})],2):t._e()],{items:t.state.items,canRefine:t.canRefine,canToggleShowMore:t.state.canToggleShowMore,isShowingMore:t.state.isShowingMore,refine:t.state.refine,createURL:t.state.createURL,toggleShowMore:t.state.toggleShowMore})],2):t._e()},staticRenderFns:[],name:"AisHierarchicalMenu",mixins:[A({name:"HierarchicalMenu"}),F({connector:r}),T({mapStateToCanRefine:E})],components:{HierarchicalMenuList:U},props:{attributes:{type:Array,required:!0},limit:{type:Number,default:10},showMoreLimit:{type:Number,default:20},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:function(){return["name:asc"]}},separator:{type:String,default:" > "},rootPath:{type:String,default:null},showParentLevel:{type:Boolean,default:!0},transformItems:{type:Function,default:function(t){return t}}},computed:{widgetParams:function(){return{attributes:this.attributes,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,separator:this.separator,rootPath:this.rootPath,showParentLevel:this.showParentLevel,sortBy:this.sortBy,transformItems:this.transformItems}},canRefine:function(){return E(this.state)}}},V={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},j=/&(?:amp|lt|gt|quot|#39);/g,D=RegExp(j.source);function z(t){return t&&D.test(t)?t.replace(j,function(t){return V[t]}):t}var O={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"};function Q(t){var e=t.preTag,s=t.postTag,n=t.highlightedValue;void 0===n&&(n="");var i=n.split(e),a=i.shift(),r=""===a?[]:[{value:a,isHighlighted:!1}];if(s===e){var o=!0;i.forEach(function(t){r.push({value:t,isHighlighted:o}),o=!o})}else i.forEach(function(t){var e=t.split(s);r.push({value:e[0],isHighlighted:!0}),""!==e[1]&&r.push({value:e[1],isHighlighted:!1})});return r}var W={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",{class:t.suit()},t._l(t.parsedHighlights,function(e,n){var i=e.value,a=e.isHighlighted;return s(a?t.highlightedTagName:t.textNode,{key:n,tag:"component",class:[a&&t.suit("highlighted")]},[t._v(t._s(i))])}),1)},staticRenderFns:[],name:"AisHighlighter",props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"},suit:{type:Function,required:!0},highlightProperty:{type:String,required:!0},preTag:{type:String,required:!0},postTag:{type:String,required:!0}},data:function(){return{textNode:{functional:!0,render:function(t,e){return e.slots().default}}}},computed:{parsedHighlights:function(){return function(t){var e=t.preTag;void 0===e&&(e=O.highlightPreTag);var s=t.postTag;void 0===s&&(s=O.highlightPostTag);var n=t.highlightProperty,i=t.attribute,a=t.hit;if(!a)throw new Error("`hit`, the matching record, must be provided");var r=w(a[n],i)||{};return Array.isArray(r)?r.map(function(t){return Q({preTag:e,postTag:s,highlightedValue:z(t.value)})}):Q({preTag:e,postTag:s,highlightedValue:z(r.value)})}({attribute:this.attribute,hit:this.hit,highlightProperty:this.highlightProperty,preTag:this.preTag,postTag:this.postTag})}}},Y={render:function(){var t=this.$createElement;return(this._self._c||t)("ais-highlighter",{attrs:{hit:this.hit,attribute:this.attribute,"highlighted-tag-name":this.highlightedTagName,suit:this.suit,"highlight-property":"_highlightResult","pre-tag":"<mark>","post-tag":"</mark>"}})},staticRenderFns:[],name:"AisHighlight",mixins:[A({name:"Highlight"})],components:{AisHighlighter:W},props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}}},G={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:t.suit()},[t._t("default",[s("ol",{class:t.suit("list")},t._l(t.items,function(e,n){return s("li",{key:e.objectID,class:t.suit("item")},[t._t("item",[t._v("objectID: "+t._s(e.objectID)+", index: "+t._s(n))],{item:e,index:n,insights:t.state.insights})],2)}))],{items:t.items,insights:t.state.insights})],2):t._e()},staticRenderFns:[],name:"AisHits",mixins:[F({connector:o}),A({name:"Hits"})],props:{escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:function(t){return t}}},computed:{items:function(){return this.state.hits},widgetParams:function(){return{escapeHTML:this.escapeHTML,transformItems:this.transformItems}}}},K={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:t.suit()},[t._t("default",[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],class:t.suit("select"),on:{change:[function(e){var s=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.selected=e.target.multiple?s:s[0]},t.handleChange]}},t._l(t.state.items,function(e){return s("option",{key:e.value,class:t.suit("option"),domProps:{value:e.value}},[t._v(t._s(e.label))])}))],{items:t.state.items,refine:t.state.refine,hasNoResults:t.state.hasNoResults})],2):t._e()},staticRenderFns:[],name:"AisHitsPerPage",mixins:[A({name:"HitsPerPage"}),F({connector:u}),T({mapStateToCanRefine:function(t){return!t.hasNoResults}})],props:{items:{type:Array,required:!0,default:function(){return[]}},transformItems:{type:Function,default:function(t){return t}}},data:function(){return{selected:this.items.find(function(t){return!0===t.default}).value}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}},methods:{handleChange:function(){this.state.refine(this.selected)}}},J={name:"AisIndex",mixins:[A({name:"Index"}),F({connector:function(){return x}})],provide:function(){var t=this;return{$_ais_getParentIndex:function(){return t.widget}}},props:{indexName:{type:String,required:!0},indexId:{type:String,required:!1}},render:function(t){return t("div",{},this.$slots.default)},computed:{widgetParams:function(){return{indexName:this.indexName,indexId:this.indexId}}}};function X(t){for(var e=arguments,s=1;s<arguments.length;s++){var n=null!=e[s]?e[s]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){Z(t,e,n[e])})}return t}function Z(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}var tt=function(t){return X({mixins:[A({name:"InstantSearch"})],provide:function(){return{$_ais_instantSearchInstance:this.instantSearchInstance}},watch:{searchClient:function(t){this.instantSearchInstance.helper.setClient(t).search()},indexName:function(t){this.instantSearchInstance.helper.setIndex(t).search()},stalledSearchDelay:function(t){this.instantSearchInstance._stalledSearchDelay=t},routing:function(){throw new Error("routing configuration can not be changed dynamically at this point.\n\nPlease open a new issue: https://github.com/algolia/vue-instantsearch/issues/new?template=feature.md")},searchFunction:function(t){this.instantSearchInstance._searchFunction=t}},created:function(){var t=this.instantSearchInstance.client;"function"==typeof t.addAlgoliaAgent&&(t.addAlgoliaAgent("Vue ("+R.version+")"),t.addAlgoliaAgent("Vue InstantSearch (3.0.0)"))},mounted:function(){var t=this;this.$nextTick(function(){t.instantSearchInstance.started||t.instantSearchInstance.start()})},beforeDestroy:function(){this.instantSearchInstance.started&&this.instantSearchInstance.dispose(),this.instantSearchInstance.__initialSearchResults=void 0}},t)},et="Vue InstantSearch: You used the prop api-key or app-id.\nThese have been replaced by search-client.\n\nSee more info here: https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-search-client",st=tt({name:"AisInstantSearch",props:{searchClient:{type:Object,required:!0},insightsClient:{type:Function,required:!1},indexName:{type:String,required:!0},routing:{default:null,validator:function(t){return!("boolean"==typeof t||!t.router||!t.stateMapping)||(M("routing should be an object, with `router` and `stateMapping`. See https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-routing"),!1)}},stalledSearchDelay:{type:Number,default:200},searchFunction:{type:Function,default:null},initialUiState:{type:Object,required:!1},apiKey:{type:String,default:null,validator:function(t){return t&&M(et),!1}},appId:{type:String,default:null,validator:function(t){return t&&M(et),!1}}},data:function(){return{instantSearchInstance:P({searchClient:this.searchClient,insightsClient:this.insightsClient,indexName:this.indexName,routing:this.routing,stalledSearchDelay:this.stalledSearchDelay,searchFunction:this.searchFunction,initialUiState:this.initialUiState})}},render:function(t){var e;return t("div",{class:(e={},e[this.suit()]=!0,e[this.suit("","ssr")]=!1,e)},this.$slots.default)}}),nt=tt({name:"AisInstantSearchSsr",inject:{$_ais_ssrInstantSearchInstance:{default:function(){throw new Error("`createServerRootMixin` is required when using SSR.")}}},data:function(){return{instantSearchInstance:this.$_ais_ssrInstantSearchInstance}},render:function(t){var e;return t("div",{class:(e={},e[this.suit()]=!0,e[this.suit("","ssr")]=!0,e)},this.$slots.default)}}),it={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:t.suit()},[t.showPrevious?t._t("loadPrevious",[s("button",{class:[t.suit("loadPrevious"),t.state.isFirstPage&&t.suit("loadPrevious","disabled")],attrs:{disabled:t.state.isFirstPage},on:{click:function(e){t.refinePrevious()}}},[t._v("Show previous results")])],{refinePrevious:t.refinePrevious,page:t.state.results.page,isFirstPage:t.state.isFirstPage}):t._e(),t._v(" "),t._t("default",[s("ol",{class:t.suit("list")},t._l(t.items,function(e,n){return s("li",{key:e.objectID,class:t.suit("item")},[t._t("item",[t._v("objectID: "+t._s(e.objectID)+", index: "+t._s(n))],{item:e,index:n,insights:t.state.insights})],2)})),t._v(" "),t._t("loadMore",[s("button",{class:[t.suit("loadMore"),t.state.isLastPage&&t.suit("loadMore","disabled")],attrs:{disabled:t.state.isLastPage},on:{click:function(e){t.refineNext()}}},[t._v("Show more results")])],{refineNext:t.refineNext,refine:t.refineNext,page:t.state.results.page,isLastPage:t.state.isLastPage})],{items:t.items,results:t.state.results,isLastPage:t.state.isLastPage,refinePrevious:t.refinePrevious,refineNext:t.refineNext,refine:t.refineNext,insights:t.state.insights})],2):t._e()},staticRenderFns:[],name:"AisInfiniteHits",mixins:[F({connector:c}),A({name:"InfiniteHits"})],props:{showPrevious:{type:Boolean,default:!1},escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:function(t){return t}}},computed:{widgetParams:function(){return{showPrevious:this.showPrevious,escapeHTML:this.escapeHTML,transformItems:this.transformItems}},items:function(){return this.state.hits}},methods:{refinePrevious:function(){this.state.showPrevious()},refineNext:function(){this.state.showMore()}}},at={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:[t.suit(),!t.state.canRefine&&t.suit("","noRefinement")]},[t._t("default",[s("ul",{class:t.suit("list")},t._l(t.state.items,function(e){return s("li",{key:e.value,class:[t.suit("item"),e.isRefined&&t.suit("item","selected")]},[s("a",{class:t.suit("link"),attrs:{href:t.state.createURL(e.value)},on:{click:function(s){s.preventDefault(),t.state.refine(e.value)}}},[s("span",{class:t.suit("label")},[t._v(t._s(e.label))]),t._v(" "),s("span",{class:t.suit("count")},[t._v(t._s(e.count))])])])})),t._v(" "),t.showShowMoreButton?s("button",{class:[t.suit("showMore"),!t.state.canToggleShowMore&&t.suit("showMore","disabled")],attrs:{disabled:!t.state.canToggleShowMore},on:{click:function(e){e.preventDefault(),t.state.toggleShowMore()}}},[t._t("showMoreLabel",[t._v(t._s(t.state.isShowingMore?"Show less":"Show more"))],{isShowingMore:t.state.isShowingMore})],2):t._e()],{items:t.state.items,canRefine:t.state.canRefine,canToggleShowMore:t.state.canToggleShowMore,isShowingMore:t.state.isShowingMore,refine:t.state.refine,createURL:t.state.createURL,toggleShowMore:t.state.toggleShowMore})],2):t._e()},staticRenderFns:[],name:"AisMenu",mixins:[A({name:"Menu"}),F({connector:l}),T({mapStateToCanRefine:function(t){return t.canRefine}})],props:{attribute:{type:String,required:!0},limit:{type:Number,default:10},showMoreLimit:{type:Number,default:20},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:function(){return["count:desc","name:asc"]}},transformItems:{type:Function,default:function(t){return t}}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,transformItems:this.transformItems}},showShowMoreButton:function(){return this.state.canRefine&&this.showMore}}},rt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:[t.suit(),!t.state.canRefine&&t.suit("","noRefinement")]},[t._t("default",[s("select",{class:t.suit("select"),on:{change:function(e){t.refine(e.currentTarget.value)}}},[s("option",{class:t.suit("option"),attrs:{value:""}},[t._t("defaultOption",[t._v("See all")])],2),t._v(" "),t._l(t.state.items,function(e){return s("option",{key:e.value,class:t.suit("option"),domProps:{value:e.value,selected:e.isRefined}},[t._t("item",[t._v(t._s(e.label)+" ("+t._s(e.count)+")")],{item:e})],2)})],2)],{items:t.state.items,canRefine:t.state.canRefine,refine:t.refine,createURL:t.state.createURL})],2):t._e()},staticRenderFns:[],name:"AisMenuSelect",mixins:[A({name:"MenuSelect"}),F({connector:l}),T({mapStateToCanRefine:function(t){return t.canRefine}})],props:{attribute:{type:String,required:!0},limit:{type:Number,default:10},sortBy:{type:[Array,Function],default:function(){return["name:asc"]}},transformItems:{type:Function,default:function(t){return t}}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,sortBy:this.sortBy,transformItems:this.transformItems}}},methods:{refine:function(t){this.state.refine(t)}}},ot={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:[t.suit(),!t.canRefine&&t.suit("","noRefinement")]},[t._t("default",[s("ul",{class:[t.suit("list")]},t._l(t.state.items,function(e){return s("li",{key:e.label,class:[t.suit("item"),e.isRefined&&t.suit("item","selected")]},[s("label",{class:t.suit("label")},[s("input",{class:t.suit("radio"),attrs:{type:"radio",name:t.attribute},domProps:{value:e.value,checked:e.isRefined},on:{change:function(e){t.state.refine(e.target.value)}}}),t._v(" "),s("span",{class:t.suit("labelText")},[t._v(t._s(e.label))])])])}))],{items:t.state.items,canRefine:t.canRefine,refine:t.state.refine,createURL:t.state.createURL})],2):t._e()},staticRenderFns:[],name:"AisNumericMenu",mixins:[F({connector:h}),A({name:"NumericMenu"}),T({mapStateToCanRefine:function(t){return!t.hasNoResults}})],props:{attribute:{type:String,required:!0},items:{type:Array,required:!0},transformItems:{type:Function,default:function(t){return t}}},computed:{widgetParams:function(){return{attribute:this.attribute,transformItems:this.transformItems,items:this.items}},canRefine:function(){return!this.state.hasNoResults}}},ut={render:function(){var t,e,s,n,i=this,a=i.$createElement,r=i._self._c||a;return i.state?r("div",{class:i.suit()},[i._t("default",[r("ul",{class:i.suit("list")},[i.showFirst?r("li",{class:(t={},t[i.suit("item")]=!0,t[i.suit("item","firstPage")]=!0,t[i.suit("item","disabled")]=i.state.isFirstPage,t)},[i._t("first",[i.state.isFirstPage?[r("span",{class:i.suit("link"),attrs:{"aria-label":"First"}},[i._v("‹‹")])]:[r("a",{class:i.suit("link"),attrs:{"aria-label":"First",href:i.state.createURL(0)},on:{click:function(t){t.preventDefault(),i.refine(0)}}},[i._v("‹‹")])]],{createURL:function(){return i.state.createURL(0)},isFirstPage:i.state.isFirstPage,refine:function(){return i.refine(0)}})],2):i._e(),i._v(" "),i.showPrevious?r("li",{class:(e={},e[i.suit("item")]=!0,e[i.suit("item","previousPage")]=!0,e[i.suit("item","disabled")]=i.state.isFirstPage,e)},[i._t("previous",[i.state.isFirstPage?[r("span",{class:i.suit("link"),attrs:{"aria-label":"Previous"}},[i._v("‹")])]:[r("a",{class:i.suit("link"),attrs:{"aria-label":"Previous",href:i.state.createURL(i.state.currentRefinement-1)},on:{click:function(t){t.preventDefault(),i.refine(i.state.currentRefinement-1)}}},[i._v("‹")])]],{createURL:function(){return i.state.createURL(i.state.currentRefinement-1)},isFirstPage:i.state.isFirstPage,refine:function(){return i.refine(i.state.currentRefinement-1)}})],2):i._e(),i._v(" "),i._l(i.state.pages,function(t){var e;return r("li",{key:t,class:(e={},e[i.suit("item")]=!0,e[i.suit("item","selected")]=i.state.currentRefinement===t,e)},[i._t("item",[r("a",{class:i.suit("link"),attrs:{href:i.state.createURL(t)},on:{click:function(e){e.preventDefault(),i.refine(t)}}},[i._v(i._s(t+1))])],{page:t,createURL:function(){return i.state.createURL(t)},isFirstPage:i.state.isFirstPage,isLastPage:i.state.isLastPage,refine:function(){return i.refine(t)}})],2)}),i._v(" "),i.showNext?r("li",{class:(s={},s[i.suit("item")]=!0,s[i.suit("item","nextPage")]=!0,s[i.suit("item","disabled")]=i.state.isLastPage,s)},[i._t("next",[i.state.isLastPage?[r("span",{class:i.suit("link"),attrs:{"aria-label":"Next"}},[i._v("›")])]:[r("a",{class:i.suit("link"),attrs:{"aria-label":"Next",href:i.state.createURL(i.state.currentRefinement+1)},on:{click:function(t){t.preventDefault(),i.refine(i.state.currentRefinement+1)}}},[i._v("›")])]],{createURL:function(){return i.state.createURL(i.state.currentRefinement+1)},isLastPage:i.state.isLastPage,refine:function(){return i.refine(i.state.currentRefinement+1)}})],2):i._e(),i._v(" "),i.showLast?r("li",{class:(n={},n[i.suit("item")]=!0,n[i.suit("item","lastPage")]=!0,n[i.suit("item","disabled")]=i.state.isLastPage,n)},[i._t("last",[i.state.isLastPage?[r("span",{class:i.suit("link"),attrs:{"aria-label":"Last"}},[i._v("››")])]:[r("a",{class:i.suit("link"),attrs:{"aria-label":"Last",href:i.state.createURL(i.state.nbPages-1)},on:{click:function(t){t.preventDefault(),i.refine(i.state.nbPages-1)}}},[i._v("››")])]],{createURL:function(){return i.state.createURL(i.state.nbPages-1)},isLastPage:i.state.isLastPage,refine:function(){return i.refine(i.state.nbPages-1)}})],2):i._e()],2)],{refine:i.refine,createURL:i.state.createURL,currentRefinement:i.state.currentRefinement,nbHits:i.state.nbHits,nbPages:i.state.nbPages,pages:i.state.pages,isFirstPage:i.state.isFirstPage,isLastPage:i.state.isLastPage})],2):i._e()},staticRenderFns:[],name:"AisPagination",mixins:[A({name:"Pagination"}),F({connector:f}),T({mapStateToCanRefine:function(t){return t.nbPages>1}})],props:{padding:{type:Number,default:3,validator:function(t){return t>0}},totalPages:{type:Number,default:void 0,validator:function(t){return t>0}},showFirst:{type:Boolean,default:!0},showLast:{type:Boolean,default:!0},showNext:{type:Boolean,default:!0},showPrevious:{type:Boolean,default:!0}},computed:{widgetParams:function(){return{padding:this.padding,totalPages:this.totalPages}}},methods:{refine:function(t){var e=Math.min(Math.max(t,0),this.state.nbPages-1);this.state.refine(e),this.$emit("page-change",e)}}},ct={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:[t.suit(),!t.canRefine&&t.suit("","noRefinement")]},[t.$slots.header||t.$scopedSlots.header?s("div",{class:t.suit("header")},[t._t("header",null,{hasRefinements:t.canRefine})],2):t._e(),t._v(" "),s("div",{class:t.suit("body")},[t._t("default",null,{hasRefinements:t.canRefine})],2),t._v(" "),t.$slots.footer||t.$scopedSlots.footer?s("div",{class:t.suit("footer")},[t._t("footer",null,{hasRefinements:t.canRefine})],2):t._e()])},staticRenderFns:[],name:"AisPanel",mixins:[A({name:"Panel"}),{props:{emitter:{type:Object,required:!1,default:function(){return new R({name:"PanelProvider"})}}},provide:function(){var t;return(t={}).instantSearchPanelEmitter=this.emitter,t},data:function(){return{canRefine:!0}},created:function(){var t=this;this.emitter.$on("PANEL_CHANGE_EVENT",function(e){t.updateCanRefine(e)})},beforeDestroy:function(){this.emitter.$destroy()},methods:{updateCanRefine:function(t){this.canRefine=t}}}]},lt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:t.suit()},[s("a",{class:t.suit("link"),attrs:{href:t.algoliaUrl,target:"_blank",rel:"noopener","aria-label":"search by Algolia"}},[s("svg",{class:[t.suit("logo"),t.suit("",t.theme)],staticStyle:{height:"1.2em",width:"auto"},attrs:{viewBox:"0 0 168 24"}},[s("path",{attrs:{fill:"dark"===t.theme?"#FFF":"#5D6494",d:"M6.97 6.68V8.3a4.47 4.47 0 0 0-2.42-.67 2.2 2.2 0 0 0-1.38.4c-.34.26-.5.6-.5 1.02 0 .43.16.77.49 1.03.33.25.83.53 1.51.83a7.04 7.04 0 0 1 1.9 1.08c.34.24.58.54.73.89.15.34.23.74.23 1.18 0 .95-.33 1.7-1 2.24a4 4 0 0 1-2.6.81 5.71 5.71 0 0 1-2.94-.68v-1.71c.84.63 1.81.94 2.92.94.58 0 1.05-.14 1.39-.4.34-.28.5-.65.5-1.13 0-.29-.1-.55-.3-.8a2.2 2.2 0 0 0-.65-.53 23.03 23.03 0 0 0-1.64-.78 13.67 13.67 0 0 1-1.11-.64c-.12-.1-.28-.22-.46-.4a1.72 1.72 0 0 1-.39-.5 4.46 4.46 0 0 1-.22-.6c-.07-.23-.1-.48-.1-.75 0-.91.33-1.63 1-2.17a4 4 0 0 1 2.57-.8c.97 0 1.8.18 2.47.52zm7.47 5.7v-.3a2.26 2.26 0 0 0-.5-1.44c-.3-.35-.74-.53-1.32-.53-.53 0-.99.2-1.37.58-.38.39-.62.95-.72 1.68h3.91zm1 2.79v1.4c-.6.34-1.38.51-2.36.51a4.02 4.02 0 0 1-3-1.13 4.04 4.04 0 0 1-1.11-2.97c0-1.3.34-2.32 1.02-3.06a3.38 3.38 0 0 1 2.6-1.1c1.03 0 1.85.32 2.46.96.6.64.9 1.57.9 2.78 0 .33-.03.68-.09 1.04h-5.31c.1.7.4 1.24.89 1.61.49.38 1.1.56 1.85.56.86 0 1.58-.2 2.15-.6zm6.61-1.78h-1.21c-.6 0-1.05.12-1.35.36-.3.23-.46.53-.46.89 0 .37.12.66.36.88.23.2.57.32 1.02.32.5 0 .9-.15 1.2-.43.3-.28.44-.65.44-1.1v-.92zm-4.07-2.55V9.33a4.96 4.96 0 0 1 2.5-.55c2.1 0 3.17 1.03 3.17 3.08V17H22.1v-.96c-.42.68-1.15 1.02-2.19 1.02-.76 0-1.38-.22-1.84-.66-.46-.44-.7-1-.7-1.68 0-.78.3-1.38.88-1.81.59-.43 1.4-.65 2.46-.65h1.34v-.46c0-.55-.13-.97-.4-1.25-.26-.29-.7-.43-1.32-.43-.86 0-1.65.24-2.35.72zm9.34-1.93v1.42c.39-1 1.1-1.5 2.12-1.5.15 0 .31.02.5.05v1.53c-.23-.1-.48-.14-.76-.14-.54 0-.99.24-1.34.71a2.8 2.8 0 0 0-.52 1.71V17h-1.57V8.91h1.57zm5 4.09a3 3 0 0 0 .76 2.01c.47.53 1.14.8 2 .8.64 0 1.24-.18 1.8-.53v1.4c-.53.32-1.2.48-2 .48a3.98 3.98 0 0 1-4.17-4.18c0-1.16.38-2.15 1.14-2.98a4 4 0 0 1 3.1-1.23c.7 0 1.34.15 1.92.44v1.44a3.24 3.24 0 0 0-1.77-.5A2.65 2.65 0 0 0 32.33 13zm7.92-7.28v4.58c.46-1 1.3-1.5 2.5-1.5.8 0 1.42.24 1.9.73.48.5.72 1.17.72 2.05V17H43.8v-5.1c0-.56-.14-.99-.43-1.29-.28-.3-.65-.45-1.1-.45-.54 0-1 .2-1.42.6-.4.4-.61 1.02-.61 1.85V17h-1.56V5.72h1.56zM55.2 15.74c.6 0 1.1-.25 1.5-.76.4-.5.6-1.16.6-1.95 0-.92-.2-1.62-.6-2.12-.4-.5-.92-.74-1.55-.74-.56 0-1.05.22-1.5.67-.44.45-.66 1.13-.66 2.06 0 .96.22 1.67.64 2.14.43.47.95.7 1.57.7zM53 5.72v4.42a2.74 2.74 0 0 1 2.43-1.34c1.03 0 1.86.38 2.51 1.15.65.76.97 1.78.97 3.05 0 1.13-.3 2.1-.92 2.9-.62.81-1.47 1.21-2.54 1.21s-1.9-.45-2.46-1.34V17h-1.58V5.72H53zm9.9 11.1l-3.22-7.9h1.74l1 2.62 1.26 3.42c.1-.32.48-1.46 1.15-3.42l.91-2.63h1.66l-2.92 7.87c-.78 2.07-1.96 3.1-3.56 3.1-.28 0-.53-.02-.73-.07v-1.34c.17.04.35.06.54.06 1.03 0 1.76-.57 2.17-1.7z"}}),t._v(" "),s("path",{attrs:{fill:"#5468FF",d:"M78.99.94h16.6a2.97 2.97 0 0 1 2.96 2.96v16.6a2.97 2.97 0 0 1-2.97 2.96h-16.6a2.97 2.97 0 0 1-2.96-2.96V3.9A2.96 2.96 0 0 1 79 .94"}}),t._v(" "),s("path",{attrs:{fill:"#FFF",d:"M89.63 5.97v-.78a.98.98 0 0 0-.98-.97h-2.28a.98.98 0 0 0-.97.97V6c0 .09.08.15.17.13a7.13 7.13 0 0 1 3.9-.02c.08.02.16-.04.16-.13m-6.25 1L83 6.6a.98.98 0 0 0-1.38 0l-.46.46a.97.97 0 0 0 0 1.38l.38.39c.06.06.15.04.2-.02a7.49 7.49 0 0 1 1.63-1.62c.07-.04.08-.14.02-.2m4.16 2.45v3.34c0 .1.1.17.2.12l2.97-1.54c.06-.03.08-.12.05-.18a3.7 3.7 0 0 0-3.08-1.87c-.07 0-.14.06-.14.13m0 8.05a4.49 4.49 0 1 1 0-8.98 4.49 4.49 0 0 1 0 8.98m0-10.85a6.37 6.37 0 1 0 0 12.74 6.37 6.37 0 0 0 0-12.74"}}),t._v(" "),s("path",{attrs:{fill:"dark"===t.theme?"#FFF":"#5468FF",d:"M120.92 18.8c-4.38.02-4.38-3.54-4.38-4.1V1.36l2.67-.42v13.25c0 .32 0 2.36 1.71 2.37v2.24zm-10.84-2.18c.82 0 1.43-.04 1.85-.12v-2.72a5.48 5.48 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.11-.44.28-.58.49a.93.93 0 0 0-.22.65c0 .63.22 1 .61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.62.11 2.23.33.6.22 1.09.53 1.44.92.36.4.61.92.76 1.48.16.56.23 1.17.23 1.85v6.87c-.4.1-1.03.2-1.86.32-.84.12-1.78.18-2.82.18-.69 0-1.32-.07-1.9-.2a4 4 0 0 1-1.46-.63c-.4-.3-.72-.67-.96-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.39-1.53.26-.45.6-.82 1.04-1.1.45-.3.95-.5 1.54-.62a8.8 8.8 0 0 1 3.79.05v-.44c0-.3-.04-.6-.11-.87a1.78 1.78 0 0 0-1.1-1.22c-.31-.12-.7-.2-1.15-.2a9.75 9.75 0 0 0-2.95.46l-.33-2.19c.34-.12.84-.23 1.48-.35.65-.12 1.34-.18 2.08-.18zm52.84 9.63c.82 0 1.43-.05 1.85-.13V13.7a5.42 5.42 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.12-.44.28-.58.5a.93.93 0 0 0-.22.65c0 .63.22.99.61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.63.11 2.23.33.6.22 1.1.53 1.45.92.35.39.6.92.76 1.48.15.56.23 1.18.23 1.85v6.88c-.41.08-1.03.19-1.87.31-.83.12-1.77.18-2.81.18-.7 0-1.33-.06-1.9-.2a4 4 0 0 1-1.47-.63c-.4-.3-.72-.67-.95-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.38-1.53.26-.45.61-.82 1.05-1.1.44-.3.95-.5 1.53-.62a8.8 8.8 0 0 1 3.8.05v-.43c0-.31-.04-.6-.12-.88-.07-.28-.2-.52-.38-.73a1.78 1.78 0 0 0-.73-.5c-.3-.1-.68-.2-1.14-.2a9.85 9.85 0 0 0-2.95.47l-.32-2.19a11.63 11.63 0 0 1 3.55-.53zm-8.03-1.27a1.62 1.62 0 0 0 0-3.24 1.62 1.62 0 1 0 0 3.24zm1.35 13.22h-2.7V7.27l2.7-.42V18.8zm-4.72 0c-4.38.02-4.38-3.54-4.38-4.1l-.01-13.34 2.67-.42v13.25c0 .32 0 2.36 1.72 2.37v2.24zm-8.7-5.9a4.7 4.7 0 0 0-.74-2.79 2.4 2.4 0 0 0-2.07-1 2.4 2.4 0 0 0-2.06 1 4.7 4.7 0 0 0-.74 2.8c0 1.16.25 1.94.74 2.62a2.4 2.4 0 0 0 2.07 1.02c.88 0 1.57-.34 2.07-1.02.49-.68.73-1.46.73-2.63zm2.74 0a6.46 6.46 0 0 1-1.52 4.23c-.49.53-1.07.94-1.76 1.22-.68.29-1.73.45-2.26.45-.53 0-1.58-.15-2.25-.45a5.1 5.1 0 0 1-2.88-3.13 7.3 7.3 0 0 1-.01-4.84 5.13 5.13 0 0 1 2.9-3.1 5.67 5.67 0 0 1 2.22-.42c.81 0 1.56.14 2.24.42.69.29 1.28.69 1.75 1.22.49.52.87 1.15 1.14 1.89a7 7 0 0 1 .43 2.5zm-20.14 0c0 1.11.25 2.36.74 2.88.5.52 1.13.78 1.91.78a4.07 4.07 0 0 0 2.12-.6V9.33c-.19-.04-.99-.2-1.76-.23a2.67 2.67 0 0 0-2.23 1 4.73 4.73 0 0 0-.78 2.8zm7.44 5.27c0 1.82-.46 3.16-1.4 4-.94.85-2.37 1.27-4.3 1.27-.7 0-2.17-.13-3.34-.4l.43-2.11c.98.2 2.27.26 2.95.26 1.08 0 1.84-.22 2.3-.66.46-.43.68-1.08.68-1.94v-.44a5.2 5.2 0 0 1-2.54.6 5.6 5.6 0 0 1-2.01-.36 4.2 4.2 0 0 1-2.58-2.71 9.88 9.88 0 0 1 .02-5.35 4.92 4.92 0 0 1 2.93-2.96 6.6 6.6 0 0 1 2.43-.46 19.64 19.64 0 0 1 4.43.66v10.6z"}})])])])},staticRenderFns:[],name:"AisPoweredBy",mixins:[A({name:"PoweredBy"})],props:{theme:{default:"light",validator:function(t){return-1!==["light","dark"].indexOf(t)}}},computed:{algoliaUrl:function(){return"https://www.algolia.com/?utm_source=vue-instantsearch&utm_medium=website&utm_content="+(location?location.hostname:"")+"&utm_campaign=poweredby"}}},ht={name:"AisQueryRuleContext",mixins:[A({name:"QueryRuleContext"}),F({connector:d})],props:{trackedFilters:{type:Object,required:!0},transformRuleContexts:{type:Function,required:!1,default:function(t){return t}}},computed:{widgetParams:function(){return{trackedFilters:this.trackedFilters,transformRuleContexts:this.transformRuleContexts}}},render:function(){return null}},ft={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:t.suit()},[t._t("default",t._l(t.state.items,function(e,n){return s("div",{key:n},[t._t("item",[s("pre",[t._v(t._s(e))])],{item:e})],2)}),{items:t.state.items})],2):t._e()},staticRenderFns:[],name:"AisQueryRuleCustomData",mixins:[A({name:"QueryRuleCustomData"}),F({connector:d})],props:{transformItems:{type:Function,required:!1,default:function(t){return t}}},computed:{widgetParams:function(){return{transformItems:this.transformItems}}}},dt=function(t){return t&&t.range&&t.range.min!==t.range.max},mt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:[t.suit(),!t.canRefine&&t.suit("","noRefinement")]},[t._t("default",[s("form",{class:t.suit("form"),on:{submit:function(e){e.preventDefault(),t.refine({min:t.pick(t.minInput,t.values.min),max:t.pick(t.maxInput,t.values.max)})}}},[s("label",{class:t.suit("label")},[t._t("minLabel"),t._v(" "),s("input",{class:[t.suit("input"),t.suit("input","min")],attrs:{type:"number",step:t.step,min:t.state.range.min,max:t.state.range.max,placeholder:t.state.range.min},domProps:{value:t.values.min},on:{change:function(e){t.minInput=e.currentTarget.value}}})],2),t._v(" "),s("span",{class:t.suit("separator")},[t._t("separator",[t._v("to")])],2),t._v(" "),s("label",{class:t.suit("label")},[t._t("maxLabel"),t._v(" "),s("input",{class:[t.suit("input"),t.suit("input","max")],attrs:{type:"number",step:t.step,min:t.state.range.min,max:t.state.range.max,placeholder:t.state.range.max},domProps:{value:t.values.max},on:{change:function(e){t.maxInput=e.currentTarget.value}}})],2),t._v(" "),s("button",{class:t.suit("submit"),attrs:{type:"submit"}},[t._t("submitLabel",[t._v("Go")])],2)])],{currentRefinement:t.values,refine:t.refine,canRefine:t.canRefine,range:t.state.range})],2):t._e()},staticRenderFns:[],name:"AisRangeInput",mixins:[A({name:"RangeInput"}),F({connector:m}),T({mapStateToCanRefine:dt})],props:{attribute:{type:String,required:!0},min:{type:Number,required:!1,default:-1/0},max:{type:Number,required:!1,default:1/0},precision:{type:Number,required:!1,default:0}},data:function(){return{minInput:void 0,maxInput:void 0}},updated:function(){this.minInput=void 0,this.maxInput=void 0},computed:{widgetParams:function(){return{attribute:this.attribute,min:this.min,max:this.max,precision:this.precision}},canRefine:function(){return dt(this.state)},step:function(){return 1/Math.pow(10,this.precision)},values:function(){var t=this.state.start,e=t[0],s=t[1],n=this.state.range,i=n.min,a=n.max;return{min:e!==-1/0&&e!==i?e:null,max:s!==1/0&&s!==a?s:null}}},methods:{pick:function(t,e){return null!=t?t:e},refine:function(t){var e=t.min,s=t.max;this.state.refine([e,s])}}},pt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:t.suit()},[t._t("default",[s("svg",{staticStyle:{display:"none"},attrs:{xmlns:"http://www.w3.org/2000/svg"}},[s("symbol",{attrs:{id:"ais-RatingMenu-starSymbol",viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}})]),t._v(" "),s("symbol",{attrs:{id:"ais-RatingMenu-starEmptySymbol",viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"}})])]),t._v(" "),s("ul",{class:t.suit("list")},t._l(t.state.items,function(e,n){return s("li",{key:n,class:[t.suit("item"),e.isRefined&&t.suit("item","selected")]},[s("a",{class:t.suit("link"),attrs:{href:t.state.createURL(e),"aria-label":e.value+" & Up"},on:{click:function(s){s.preventDefault(),t.state.refine(e.value)}}},[t._l(e.stars,function(e,n){return[e?s("svg",{key:n,class:[t.suit("starIcon"),t.suit("starIcon--full")],attrs:{"aria-hidden":"true",width:"24",height:"24"}},[s("use",{attrs:{"xlink:href":"#ais-RatingMenu-starSymbol"}})]):s("svg",{key:n,class:[t.suit("starIcon"),t.suit("starIcon--empty")],attrs:{"aria-hidden":"true",width:"24",height:"24"}},[s("use",{attrs:{"xlink:href":"#ais-RatingMenu-starEmptySymbol"}})])]}),t._v(" "),s("span",{class:t.suit("label"),attrs:{"aria-hidden":"true"}},[t._t("andUp",[t._v("& Up")])],2),t._v(" "),s("span",{class:t.suit("count")},[t._v(t._s(e.count))])],2)])}))],{items:t.state.items,refine:t.state.refine,createURL:t.state.createURL})],2):t._e()},staticRenderFns:[],name:"AisRatingMenu",mixins:[A({name:"RatingMenu"}),F({connector:p}),T({mapStateToCanRefine:function(t){return!t.hasNoResults}})],props:{attribute:{type:String,required:!0},max:{type:Number,default:5}},computed:{widgetParams:function(){return{attribute:this.attribute,max:this.max}}}},gt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("form",{class:t.suit("form"),attrs:{action:"",role:"search",novalidate:""},on:{submit:function(e){return e.preventDefault(),t.onFormSubmit(e)},reset:function(e){return e.preventDefault(),t.onFormReset(e)}}},[s("input",{ref:"input",class:t.suit("input"),attrs:{type:"search",autocorrect:"off",autocapitalize:"off",autocomplete:"off",spellcheck:"false",required:"",maxlength:"512","aria-label":"Search",placeholder:t.placeholder,autofocus:t.autofocus},domProps:{value:t.value},on:{focus:function(e){t.$emit("focus",e)},blur:function(e){t.$emit("blur",e)},input:function(e){t.$emit("input",e.target.value)}}}),t._v(" "),s("button",{class:t.suit("submit"),attrs:{type:"submit",title:t.submitTitle,hidden:t.showLoadingIndicator&&t.shouldShowLoadingIndicator}},[t._t("submit-icon",[s("svg",{class:t.suit("submitIcon"),attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40"}},[s("path",{attrs:{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z",fillRule:"evenodd"}})])])],2),t._v(" "),s("button",{class:t.suit("reset"),attrs:{type:"reset",title:t.resetTitle,hidden:!t.value||t.showLoadingIndicator&&t.shouldShowLoadingIndicator}},[t._t("reset-icon",[s("svg",{class:t.suit("resetIcon"),attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z",fillRule:"evenodd"}})])])],2),t._v(" "),t.showLoadingIndicator?s("span",{class:t.suit("loadingIndicator"),attrs:{hidden:!t.shouldShowLoadingIndicator}},[t._t("loading-indicator",[s("svg",{class:t.suit("loadingIcon"),attrs:{role:"img","aria-label":"Results are loading",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",viewBox:"0 0 38 38"}},[s("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[s("g",{attrs:{transform:"translate(1 1)","stroke-width":"2"}},[s("circle",{attrs:{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}}),t._v(" "),s("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18"}},[s("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}})],1)])])])])],2):t._e()])},staticRenderFns:[],name:"SearchInput",mixins:[A({name:"SearchBox"})],props:{placeholder:{type:String,default:"Search here…"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},shouldShowLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,required:!0}},data:function(){return{query:""}},methods:{onFormSubmit:function(){this.$refs.input.blur()},onFormReset:function(){this.$emit("input",""),this.$emit("reset")}}},vt=function(){},_t={render:function(){var t,e=this,s=e.$createElement,n=e._self._c||s;return e.state?n("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[e.searchable?n("div",{class:e.suit("searchBox")},[n("search-input",{attrs:{placeholder:e.searchablePlaceholder,"class-names":e.classNames},model:{value:e.searchForFacetValues,callback:function(t){e.searchForFacetValues=t},expression:"searchForFacetValues"}})],1):e._e(),e._v(" "),e.state.isFromSearch&&0===e.items.length?e._t("noResults",[n("div",{class:e.suit("noResults")},[e._v("No results.")])],{query:e.searchForFacetValues}):e._e(),e._v(" "),n("ul",{class:e.suit("list")},e._l(e.items,function(t){return n("li",{key:t.value,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[e._t("item",[n("label",{class:e.suit("label")},[n("input",{class:e.suit("checkbox"),attrs:{type:"checkbox"},domProps:{value:t.value,checked:t.isRefined},on:{change:function(s){e.refine(t.value)}}}),e._v(" "),e.searchable?n("span",{class:e.suit("labelText")},[n("ais-highlight",{attrs:{attribute:"item",hit:t}})],1):n("span",{class:e.suit("labelText")},[e._v(e._s(t.label))]),e._v(" "),n("span",{class:e.suit("count")},[e._v(e._s(t.count))])])],{item:t,refine:e.refine,createURL:e.state.createURL})],2)})),e._v(" "),e.showMore?n("button",{class:[e.suit("showMore"),(t={},t[e.suit("showMore","disabled")]=!e.state.canToggleShowMore,t)],attrs:{disabled:!e.state.canToggleShowMore},on:{click:e.toggleShowMore}},[e._t("showMoreLabel",[e._v("Show "+e._s(e.state.isShowingMore?"less":"more"))],{isShowingMore:e.state.isShowingMore})],2):e._e()],{items:e.items,refine:e.refine,searchForItems:e.state.searchForItems,searchForItemsQuery:e.searchForFacetValuesQuery,toggleShowMore:e.toggleShowMore,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,createURL:e.state.createURL,isFromSearch:e.state.isFromSearch,canRefine:e.state.canRefine})],2):e._e()},staticRenderFns:[],name:"AisRefinementList",components:{SearchInput:gt,AisHighlight:Y},mixins:[A({name:"RefinementList"}),F({connector:g}),T({mapStateToCanRefine:function(t){return t.canRefine}})],props:{attribute:{type:String,required:!0},searchable:{type:Boolean,default:!1},searchablePlaceholder:{default:"Search here…",type:String,required:!1},operator:{default:"or",validator:function(t){return"and"===t||"or"===t},required:!1},limit:{type:Number,default:10,required:!1},showMoreLimit:{type:Number,default:20,required:!1},showMore:{type:Boolean,default:!1,required:!1},sortBy:{type:[Array,Function],default:function(){return["isRefined","count:desc","name:asc"]},required:!1},transformItems:{type:Function,default:function(t){return t},required:!1}},data:function(){return{searchForFacetValuesQuery:""}},computed:{searchForFacetValues:{get:function(){return this.searchForFacetValuesQuery},set:function(t){this.state.searchForItems(t),this.searchForFacetValuesQuery=t}},toggleShowMore:function(){return this.state.toggleShowMore||vt},items:function(){return this.state.items.map(function(t){return Object.assign({},t,{_highlightResult:{item:{value:t.highlighted}}})})},widgetParams:function(){return{attribute:this.attribute,operator:this.operator,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,escapeFacetValues:!0,transformItems:this.transformItems}}},methods:{refine:function(t){this.state.refine(t),this.searchForFacetValuesQuery=""}}},yt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state&&t.state.state&&t.state.results?s("div",{class:t.suit()},[t._t("default",[s("p",[t._v(" Use this component to have a different layout based on a certain state. ")]),t._v(" "),t._m(0),t._v(" "),s("pre",[t._v("results: "+t._s(Object.keys(t.state.results)))]),t._v(" "),s("pre",[t._v("state: "+t._s(Object.keys(t.state.state)))])],null,t.stateResults)],2):t._e()},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",[this._v(" Fill in the slot, and get access to the following things on the "),e("code",[this._v("slot-scope")]),this._v(": ")])}],name:"AisStateResults",mixins:[F({connector:function(t,e){return void 0===e&&(e=function(){}),function(s){return void 0===s&&(s={}),{init:function(e){var n=e.instantSearchInstance;t({state:void 0,results:void 0,instantSearchInstance:n,widgetParams:s},!0)},render:function(e){var n=e.results,i=e.instantSearchInstance,a=e.state,r=X({},n),o=X({},a);t({results:r,state:o,instantSearchInstance:i,widgetParams:s},!1)},dispose:function(){e()}}}}}),A({name:"StateResults"})],computed:{stateResults:function(){var t=this.state,e=t.state,s=t.results;return X({},s,{results:s,state:e})}}},bt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:t.suit()},[t._t("default",[s("search-input",{attrs:{placeholder:t.placeholder,autofocus:t.autofocus,"show-loading-indicator":t.showLoadingIndicator,"should-show-loading-indicator":t.state.isSearchStalled,"submit-title":t.submitTitle,"reset-title":t.resetTitle,"class-names":t.classNames},on:{focus:function(e){t.$emit("focus",e)},blur:function(e){t.$emit("blur",e)},reset:function(e){t.$emit("reset")}},model:{value:t.currentRefinement,callback:function(e){t.currentRefinement=e},expression:"currentRefinement"}},[t._t("loading-indicator",null,{slot:"loading-indicator"}),t._v(" "),t._t("submit-icon",null,{slot:"submit-icon"}),t._v(" "),t._t("reset-icon",null,{slot:"reset-icon"})],2)],{currentRefinement:t.currentRefinement,isSearchStalled:t.state.isSearchStalled,refine:t.state.refine})],2):t._e()},staticRenderFns:[],name:"AisSearchBox",mixins:[F({connector:v}),A({name:"SearchBox"})],components:{SearchInput:gt},props:{placeholder:{type:String,default:"Search here…"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,default:void 0}},data:function(){return{localValue:""}},methods:{onFormSubmit:function(){this.$el.querySelector("input[type=search]").blur()},onFormReset:function(){this.state.refine("")}},computed:{isControlled:function(){return void 0!==this.value},currentRefinement:{get:function(){return this.isControlled&&this.value!==this.localValue&&(this.localValue=this.value,this.$emit("input",this.value),this.state.refine(this.value)),this.value||this.state.query||""},set:function(t){this.localValue=t,this.state.refine(t),this.isControlled&&this.$emit("input",t)}}}},St={render:function(){var t=this.$createElement;return(this._self._c||t)("ais-highlighter",{attrs:{hit:this.hit,attribute:this.attribute,"highlighted-tag-name":this.highlightedTagName,suit:this.suit,"highlight-property":"_snippetResult","pre-tag":"<mark>","post-tag":"</mark>"}})},staticRenderFns:[],name:"AisSnippet",mixins:[A({name:"Snippet"})],components:{AisHighlighter:W},props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}}},Rt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:t.suit()},[t._t("default",[s("select",{class:t.suit("select"),on:{change:function(e){t.state.refine(e.currentTarget.value)}}},t._l(t.state.options,function(e){return s("option",{key:e.value,class:t.suit("option"),domProps:{value:e.value,selected:e.value===t.state.currentRefinement}},[t._v(t._s(e.label))])}))],{items:t.state.options,hasNoResults:t.state.hasNoResults,refine:t.state.refine,currentRefinement:t.state.currentRefinement})],2):t._e()},staticRenderFns:[],name:"AisSortBy",mixins:[A({name:"SortBy"}),F({connector:_}),T({mapStateToCanRefine:function(t){return!t.hasNoResults}})],props:{items:{type:Array,required:!0},transformItems:{type:Function,default:function(t){return t}}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}}},wt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:t.suit()},[t._t("default",[s("span",{class:t.suit("text")},[t._v(t._s(t.state.nbHits.toLocaleString())+" results found in "+t._s(t.state.processingTimeMS.toLocaleString())+"ms")])],{results:t.state.instantSearchInstance.helper.lastResults},t.state)],2):t._e()},staticRenderFns:[],name:"AisStats",mixins:[F({connector:y}),A({name:"Stats"})],computed:{widgetParams:function(){return{}}}},xt=function(t){return Boolean(t.value.count)},Pt={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:[t.suit(),!t.canRefine&&t.suit("","noRefinement")]},[t._t("default",[s("label",{class:t.suit("label")},[s("input",{class:t.suit("checkbox"),attrs:{type:"checkbox",name:t.state.value.name},domProps:{value:t.on,checked:t.state.value.isRefined},on:{change:function(e){t.state.refine(t.state.value)}}}),t._v(" "),s("span",{class:t.suit("labelText")},[t._v(t._s(t.label))]),t._v(" "),null!==t.state.value.count?s("span",{class:t.suit("count")},[t._v(t._s(t.state.value.count.toLocaleString()))]):t._e()])],{value:t.state.value,canRefine:t.canRefine,refine:t.state.refine,createURL:t.state.createURL})],2):t._e()},staticRenderFns:[],name:"AisToggleRefinement",mixins:[A({name:"ToggleRefinement"}),F({connector:b}),T({mapStateToCanRefine:xt})],props:{attribute:{type:String,required:!0},label:{type:String,required:!0},on:{type:[String,Number,Boolean],required:!1,default:!0},off:{type:[String,Number,Boolean],required:!1,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,label:this.label,on:this.on,off:this.off}},canRefine:function(){return xt(this.state)}}},It={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.state?s("div",{class:t.suit()},[t._t("default",[s("button",{class:t.suit("button"),attrs:{type:"button",title:t.state.isBrowserSupported?t.buttonTitle:t.disabledButtonTitle,disabled:!t.state.isBrowserSupported},on:{click:t.handleClick}},[t._t("buttonText",[t.errorNotAllowed?s("svg",t._b({},"svg",t.buttonSvgAttrs,!1),[s("line",{attrs:{x1:"1",y1:"1",x2:"23",y2:"23"}}),t._v(" "),s("path",{attrs:{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}}),t._v(" "),s("path",{attrs:{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}}),t._v(" "),s("line",{attrs:{x1:"12",y1:"19",x2:"12",y2:"23"}}),t._v(" "),s("line",{attrs:{x1:"8",y1:"23",x2:"16",y2:"23"}})]):s("svg",t._b({},"svg",t.buttonSvgAttrs,!1),[s("path",{attrs:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",fill:t.state.isListening?"currentColor":"none"}}),t._v(" "),s("path",{attrs:{d:"M19 10v2a7 7 0 0 1-14 0v-2"}}),t._v(" "),s("line",{attrs:{x1:"12",y1:"19",x2:"12",y2:"23"}}),t._v(" "),s("line",{attrs:{x1:"8",y1:"23",x2:"16",y2:"23"}})])],null,t.innerSlotProps)],2),t._v(" "),s("div",{class:t.suit("status")},[t._t("status",[s("p",[t._v(t._s(t.state.voiceListeningState.transcript))])],null,t.innerSlotProps)],2)],null,t.rootSlotProps)],2):t._e()},staticRenderFns:[],name:"AisVoiceSearch",mixins:[F({connector:S}),A({name:"VoiceSearch"})],props:{searchAsYouSpeak:{type:Boolean,required:!1,default:void 0},buttonTitle:{type:String,required:!1,default:"Search by voice"},disabledButtonTitle:{type:String,required:!1,default:"Search by voice (not supported on this browser)"}},data:function(){return{buttonSvgAttrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}}},computed:{widgetParams:function(){return{searchAsYouSpeak:this.searchAsYouSpeak}},errorNotAllowed:function(){return"error"===this.state.voiceListeningState.status&&"not-allowed"===this.state.voiceListeningState.errorCode},rootSlotProps:function(){return{isBrowserSupported:this.state.isBrowserSupported,isListening:this.state.isListening,toggleListening:this.state.toggleListening,voiceListeningState:this.state.voiceListeningState}},innerSlotProps:function(){return{status:this.state.voiceListeningState.status,errorCode:this.state.voiceListeningState.errorCode,isListening:this.state.isListening,transcript:this.state.voiceListeningState.transcript,isSpeechFinal:this.state.voiceListeningState.isSpeechFinal,isBrowserSupported:this.state.isBrowserSupported}}},methods:{handleClick:function(t){t.currentTarget.blur(),this.state.toggleListening()}}},At=Object.freeze({AisAutocomplete:k,AisBreadcrumb:C,AisClearRefinements:N,AisConfigure:$,AisExperimentalConfigureRelatedItems:q,AisCurrentRefinements:B,AisHierarchicalMenu:H,AisHighlight:Y,AisHits:G,AisHitsPerPage:K,AisIndex:J,AisInstantSearch:st,AisInstantSearchSsr:nt,AisInfiniteHits:it,AisMenu:at,AisMenuSelect:rt,AisNumericMenu:ot,AisPagination:ut,AisPanel:ct,AisPoweredBy:lt,AisQueryRuleContext:ht,AisQueryRuleCustomData:ft,AisRangeInput:mt,AisRatingMenu:pt,AisRefinementList:_t,AisStateResults:yt,AisSearchBox:bt,AisSnippet:St,AisSortBy:Rt,AisStats:wt,AisToggleRefinement:Pt,AisVoiceSearch:It}),Lt={install:function(t){Object.keys(At).forEach(function(e){t.component(At[e].name,At[e])})}},Mt=I.SearchResults,Ft=I.SearchParameters;function kt(t,e,s){var n,i=I(e,s),a=P(t);return a.findResultsState=function(t){var e,s=require("vue-server-renderer/basic");return Promise.resolve().then(function(){var s={serverPrefetch:void 0,fetch:void 0,_base:void 0,name:"ais-ssr-root-component"},n=t.$vnode?t.$vnode.componentOptions.Ctor.extend(s):Object.assign({},t.$options,s);(e=new R(n)).$options.serverPrefetch=[],e.instantsearch.helper=i,e.instantsearch.mainHelper=i,e.instantsearch.mainIndex.init({instantSearchInstance:e.instantsearch,parent:null,uiState:e.instantsearch._initialUiState})}).then(function(){return function(t,e){return new Promise(function(s,n){return e(t,function(t,e){t&&n(t),s(e)})})}(e,s)}).then(function(){return function(t){return new Promise(function(e,s){t.searchOnlyWithDerivedHelpers(),t.derivedHelpers[0].on("result",function(){e()}),t.derivedHelpers.forEach(function(t){return t.on("error",function(t){s(t)})})})}(i)}).then(function(){var t={};return function t(e,s){return s(e),e.getWidgets().forEach(function(e){"ais.index"===e.$$type&&(s(e),t(e,s))})}(e.instantsearch.mainIndex,function(e){t[e.getIndexId()]=e.getResults()}),a.hydrate(t),n=Object.keys(t).map(function(e){var s=t[e],n=s._state,i=s._rawResults;return[e,{_state:Object.keys(n).reduce(function(t,e){return t[e]=n[e],t},{}),_rawResults:i}]}).reduce(function(t,e){var s=e[0],n=e[1];return t[s]=n,t},{__identifier:"stringified"}),a.getState()})},a.getState=function(){if(!n)throw new Error("You need to wait for findResultsState to finish");return n},a.__forceRender=function(t,e){var s=e.getHelper(),n=a.__initialSearchResults[e.getIndexId()],i=n._state;s.state=i;t.render({helper:s,results:n,state:i,templatesConfig:{},createURL:function(n){var i;return a._createURL(((i={})[e.getIndexId()]=e.getWidgets().filter(function(t){return"ais.index"!==t.$$type}).reduce(function(e,i){return t.getWidgetState?i.getWidgetState(e,{searchParameters:n,helper:s}):e},{}),i))},instantSearchInstance:a,searchMetadata:{isSearchStalled:!1}})},a.hydrate=function(t){if(t){var e="stringified"===t.__identifier?Object.keys(t).reduce(function(e,s){return"__identifier"===s?e:(e[s]=new Mt(new Ft(t[s]._state),t[s]._rawResults),e)},{}):t;a.__initialSearchResults=e,a.helper=i,a.mainHelper=i,a.mainIndex.init({instantSearchInstance:a,parent:null,uiState:a._initialUiState})}else M("The result of `findResultsState()` needs to be passed to `hydrate()`.")},a}function Tt(t){void 0===t&&(t={});var e=t.searchClient,s=t.indexName;if(!e||!s)throw new Error("createServerRootMixin requires `searchClient` and `indexName` in the first argument");var n=kt(t,e,s);return{provide:function(){return{$_ais_ssrInstantSearchInstance:this.instantsearch}},data:function(){return{instantsearch:n}}}}export default Lt;export{k as AisAutocomplete,C as AisBreadcrumb,N as AisClearRefinements,$ as AisConfigure,B as AisCurrentRefinements,q as AisExperimentalConfigureRelatedItems,H as AisHierarchicalMenu,Y as AisHighlight,G as AisHits,K as AisHitsPerPage,J as AisIndex,it as AisInfiniteHits,st as AisInstantSearch,nt as AisInstantSearchSsr,at as AisMenu,rt as AisMenuSelect,ot as AisNumericMenu,ut as AisPagination,ct as AisPanel,lt as AisPoweredBy,ht as AisQueryRuleContext,ft as AisQueryRuleCustomData,mt as AisRangeInput,pt as AisRatingMenu,_t as AisRefinementList,bt as AisSearchBox,St as AisSnippet,Rt as AisSortBy,yt as AisStateResults,wt as AisStats,Pt as AisToggleRefinement,It as AisVoiceSearch,Tt as createServerRootMixin,A as createSuitMixin,F as createWidgetMixin};
import{connectAutocomplete as e,connectBreadcrumb as t,connectClearRefinements as s,connectConfigure as n,EXPERIMENTAL_connectConfigureRelatedItems as i,connectCurrentRefinements as a,connectHierarchicalMenu as r,connectHitsWithInsights as o,connectHitsPerPage as u,connectInfiniteHitsWithInsights as c,connectMenu as l,connectNumericMenu as h,connectPagination as f,connectQueryRules as d,connectRange as m,connectRatingMenu as p,connectRefinementList as g,connectSearchBox as v,connectSortBy as _,connectStats as y,connectToggleRefinement as b,connectVoiceSearch as S}from"instantsearch.js/es/connectors";import R from"vue";import{getPropertyByPath as w}from"instantsearch.js/es/lib/utils";import x from"instantsearch.js/es/widgets/index/index";import P from"instantsearch.js/es";import I from"algoliasearch-helper";var A=function(e){var t=e.name;return{props:{classNames:{type:Object,default:void 0}},methods:{suit:function(e,s){var n=function(e,t,s){if(!e)throw new Error("You need to provide `widgetName` in your data");var n=["ais-"+e];return t&&n.push("-"+t),s&&n.push("--"+s),n.join("")}(t,e,s),i=this.classNames&&this.classNames[n];return i?[n,i].join(" "):n}}}},L=new Set;function M(e){L.has(e)||(L.add(e),console.warn(e))}var F=function(e){void 0===e&&(e={});var t=e.connector;return{inject:{instantSearchInstance:{from:"$_ais_instantSearchInstance",default:function(){var e=this.$options._componentTag;throw new TypeError('It looks like you forgot to wrap your Algolia search component "<'+e+'>" inside of an "<ais-instant-search>" component.')}},getParentIndex:{from:"$_ais_getParentIndex",default:function(){var e=this;return function(){return e.instantSearchInstance.mainIndex}}}},data:function(){return{state:null}},created:function(){if("function"==typeof t){if(this.factory=t(this.updateState,function(){}),this.widget=this.factory(this.widgetParams),this.getParentIndex().addWidgets([this.widget]),this.instantSearchInstance.__initialSearchResults&&!this.instantSearchInstance.started){if("function"!=typeof this.instantSearchInstance.__forceRender)throw new Error("You are using server side rendering with <ais-instant-search> instead of <ais-instant-search-ssr>.");this.instantSearchInstance.__forceRender(this.widget,this.getParentIndex())}}else!0!==t&&M("You are using the InstantSearch widget mixin, but didn't provide a connector.\nWhile this is technically possible, and will give you access to the Helper,\nit's not the recommended way of making custom components.\n\nIf you want to disable this message, pass { connector: true } to the mixin.\n\nRead more on using connectors: https://alg.li/vue-custom")},beforeDestroy:function(){this.widget&&this.widget.dispose&&this.instantSearchInstance.started&&this.getParentIndex().removeWidgets([this.widget])},watch:{widgetParams:{handler:function(e){this.state=null,this.widget.dispose&&this.instantSearchInstance.started&&this.getParentIndex().removeWidgets([this.widget]),this.widget=this.factory(e),this.getParentIndex().addWidgets([this.widget])},deep:!0}},methods:{updateState:function(e,t){void 0===e&&(e={}),t||(this.state=e)}}}},k={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:e.suit()},[e._t("default",[s("p",[e._v("This widget doesn't render anything without a filled in default slot.")]),e._v(" "),s("p",[e._v("query, function to refine and results are provided.")]),e._v(" "),s("pre",[e._v("refine: Function")]),e._v(" "),s("pre",[e._v('currentRefinement: "'+e._s(e.state.currentRefinement)+'"')]),e._v(" "),s("details",[e._m(0),e._v(" "),s("pre",[e._v(e._s(e.state.indices))])])],{refine:e.state.refine,currentRefinement:e.state.currentRefinement,indices:e.state.indices})],2):e._e()},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("summary",[t("code",[this._v("indices")]),this._v(":")])}],name:"AisAutocomplete",mixins:[F({connector:e}),A({name:"Autocomplete"})],props:{escapeHTML:{type:Boolean,required:!1,default:!0}},computed:{widgetParams:function(){return{escapeHTML:this.escapeHTML}}}},T=function(e){var t=e.mapStateToCanRefine;return{inject:{emitter:{from:"instantSearchPanelEmitter",default:function(){return{$emit:function(){}}}}},data:function(){return{state:null,hasAlreadyEmitted:!1}},watch:{state:function(e,s){if(s&&e){var n=t(s),i=t(e);this.hasAlreadyEmitted&&n===i||(this.emitter.$emit("PANEL_CHANGE_EVENT",i),this.hasAlreadyEmitted=!0)}}}}},C={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[s("ul",{class:e.suit("list")},[s("li",{class:[e.suit("item"),!e.state.items.length&&e.suit("item","selected")]},[Boolean(e.state.items.length)?s("a",{class:e.suit("link"),attrs:{href:e.state.createURL()},on:{click:function(t){t.preventDefault(),e.state.refine()}}},[e._t("rootLabel",[e._v("Home")])],2):s("span",[e._t("rootLabel",[e._v("Home")])],2)]),e._v(" "),e._l(e.state.items,function(t,n){return s("li",{key:t.label,class:[e.suit("item"),e.isLastItem(n)&&e.suit("item","selected")]},[s("span",{class:e.suit("separator"),attrs:{"aria-hidden":"true"}},[e._t("separator",[e._v(">")])],2),e._v(" "),e.isLastItem(n)?s("span",[e._v(e._s(t.label))]):s("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t.value)},on:{click:function(s){s.preventDefault(),e.state.refine(t.value)}}},[e._v(e._s(t.label))])])})],2)],{items:e.state.items,canRefine:e.state.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisBreadcrumb",mixins:[F({connector:t}),T({mapStateToCanRefine:function(e){return e.canRefine}}),A({name:"Breadcrumb"})],props:{attributes:{type:Array,required:!0},separator:{type:String,default:" > "},rootPath:{type:String,default:null},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attributes:this.attributes,separator:this.separator,rootPath:this.rootPath,transformItems:this.transformItems}}},methods:{isLastItem:function(e){return this.state.items.length-1===e}}},N={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:e.suit()},[e._t("default",[s("button",{class:[e.suit("button"),!e.canRefine&&e.suit("button","disabled")],attrs:{type:"reset",disabled:!e.canRefine},on:{click:function(t){return t.preventDefault(),e.state.refine(t)}}},[e._t("resetLabel",[e._v("Clear refinements")])],2)],{canRefine:e.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisClearRefinements",mixins:[F({connector:s}),T({mapStateToCanRefine:function(e){return e.hasRefinements}}),A({name:"ClearRefinements"})],props:{excludedAttributes:{type:Array},includedAttributes:{type:Array},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}},canRefine:function(){return this.state.hasRefinements}}},$={inheritAttrs:!1,name:"AisConfigure",mixins:[A({name:"Configure"}),F({connector:n})],computed:{widgetParams:function(){return{searchParameters:this.$attrs}}},render:function(e){return this.state&&this.$scopedSlots.default?e("div",{class:this.suit()},[this.$scopedSlots.default({refine:this.state.refine,searchParameters:this.state.widgetParams.searchParameters})]):null}},q={inheritAttrs:!1,name:"AisExperimentalConfigureRelatedItems",mixins:[F({connector:i})],props:{hit:{type:Object,required:!0},matchingPatterns:{type:Object,required:!0},transformSearchParameters:{type:Function,required:!1}},computed:{widgetParams:function(){return{hit:this.hit,matchingPatterns:this.matchingPatterns,transformSearchParameters:this.transformSearchParameters}}},render:function(){return null}},B={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:[e.suit(),e.noRefinement&&e.suit("","noRefinement")]},[e._t("default",[s("ul",{class:e.suit("list")},e._l(e.state.items,function(t){return s("li",{key:t.attribute,class:e.suit("item")},[e._t("item",[s("span",{class:e.suit("label")},[e._v(e._s(e._f("capitalize")(t.label))+": ")]),e._v(" "),e._l(t.refinements,function(n){return s("span",{key:e.createItemKey(n),class:e.suit("category")},[e._t("refinement",[s("span",{class:e.suit("categoryLabel")},["query"===n.attribute?s("q",[e._v(e._s(n.label))]):[e._v(" "+e._s(n.label)+" ")]],2),e._v(" "),s("button",{class:e.suit("delete"),on:{click:function(e){t.refine(n)}}},[e._v(" ✕ ")])],{refine:t.refine,refinement:n,createURL:e.state.createURL})],2)})],{refine:t.refine,item:t,createURL:e.state.createURL})],2)}))],{refine:e.state.refine,items:e.state.items,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisCurrentRefinements",mixins:[A({name:"CurrentRefinements"}),F({connector:a}),T({mapStateToCanRefine:function(e){return e.items.length>0}})],props:{includedAttributes:{type:Array},excludedAttributes:{type:Array},transformItems:{type:Function,default:function(e){return e}}},computed:{noRefinement:function(){return this.state&&0===this.state.items.length},widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}}},methods:{createItemKey:function(e){var t=e.attribute,s=e.value;return[t,e.type,s,e.operator].join(":")}},filters:{capitalize:function(e){return e?e.toString().charAt(0).toLocaleUpperCase()+e.toString().slice(1):""}}},U={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("ul",{class:[e.suit("list"),e.level>0&&e.suit("list","child"),e.suit("list","lvl"+e.level)]},e._l(e.items,function(t){return s("li",{key:t.value,class:[e.suit("item"),t.data&&e.suit("item","parent"),t.isRefined&&e.suit("item","selected")]},[s("a",{class:e.suit("link"),attrs:{href:e.createURL(t.value)},on:{click:function(s){s.preventDefault(),e.refine(t.value)}}},[s("span",{class:e.suit("label")},[e._v(e._s(t.label))]),e._v(" "),s("span",{class:e.suit("count")},[e._v(e._s(t.count))])]),e._v(" "),t.data?s("hierarchical-menu-list",{attrs:{items:t.data,level:e.level+1,refine:e.refine,createURL:e.createURL,suit:e.suit}}):e._e()],1)}))},staticRenderFns:[],name:"HierarchicalMenuList",props:{items:{type:Array,required:!0},level:{type:Number,required:!0},refine:{type:Function,required:!0},createURL:{type:Function,required:!0},suit:{type:Function,required:!0}}},E=function(e){return e.items.length>0},H={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[s("hierarchical-menu-list",{attrs:{items:e.state.items,level:0,refine:e.state.refine,createURL:e.state.createURL,suit:e.suit}}),e._v(" "),e.showMore?s("button",{class:[e.suit("showMore"),!e.state.canToggleShowMore&&e.suit("showMore","disabled")],attrs:{disabled:!e.state.canToggleShowMore},on:{click:function(t){return t.preventDefault(),e.state.toggleShowMore(t)}}},[e._t("showMoreLabel",[e._v(e._s(e.state.isShowingMore?"Show less":"Show more"))],{isShowingMore:e.state.isShowingMore})],2):e._e()],{items:e.state.items,canRefine:e.canRefine,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,refine:e.state.refine,createURL:e.state.createURL,toggleShowMore:e.state.toggleShowMore})],2):e._e()},staticRenderFns:[],name:"AisHierarchicalMenu",mixins:[A({name:"HierarchicalMenu"}),F({connector:r}),T({mapStateToCanRefine:E})],components:{HierarchicalMenuList:U},props:{attributes:{type:Array,required:!0},limit:{type:Number,default:10},showMoreLimit:{type:Number,default:20},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:function(){return["name:asc"]}},separator:{type:String,default:" > "},rootPath:{type:String,default:null},showParentLevel:{type:Boolean,default:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attributes:this.attributes,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,separator:this.separator,rootPath:this.rootPath,showParentLevel:this.showParentLevel,sortBy:this.sortBy,transformItems:this.transformItems}},canRefine:function(){return E(this.state)}}},V={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},j=/&(?:amp|lt|gt|quot|#39);/g,D=RegExp(j.source);function z(e){return e&&D.test(e)?e.replace(j,function(e){return V[e]}):e}var O={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"};function Q(e){var t=e.preTag,s=e.postTag,n=e.highlightedValue;void 0===n&&(n="");var i=n.split(t),a=i.shift(),r=""===a?[]:[{value:a,isHighlighted:!1}];if(s===t){var o=!0;i.forEach(function(e){r.push({value:e,isHighlighted:o}),o=!o})}else i.forEach(function(e){var t=e.split(s);r.push({value:t[0],isHighlighted:!0}),""!==t[1]&&r.push({value:t[1],isHighlighted:!1})});return r}var W={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("span",{class:e.suit()},e._l(e.parsedHighlights,function(t,n){var i=t.value,a=t.isHighlighted;return s(a?e.highlightedTagName:e.textNode,{key:n,tag:"component",class:[a&&e.suit("highlighted")]},[e._v(e._s(i))])}),1)},staticRenderFns:[],name:"AisHighlighter",props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"},suit:{type:Function,required:!0},highlightProperty:{type:String,required:!0},preTag:{type:String,required:!0},postTag:{type:String,required:!0}},data:function(){return{textNode:{functional:!0,render:function(e,t){return t.slots().default}}}},computed:{parsedHighlights:function(){return function(e){var t=e.preTag;void 0===t&&(t=O.highlightPreTag);var s=e.postTag;void 0===s&&(s=O.highlightPostTag);var n=e.highlightProperty,i=e.attribute,a=e.hit;if(!a)throw new Error("`hit`, the matching record, must be provided");var r=w(a[n],i)||{};return Array.isArray(r)?r.map(function(e){return Q({preTag:t,postTag:s,highlightedValue:z(e.value)})}):Q({preTag:t,postTag:s,highlightedValue:z(r.value)})}({attribute:this.attribute,hit:this.hit,highlightProperty:this.highlightProperty,preTag:this.preTag,postTag:this.postTag})}}},Y={render:function(){var e=this.$createElement;return(this._self._c||e)("ais-highlighter",{attrs:{hit:this.hit,attribute:this.attribute,"highlighted-tag-name":this.highlightedTagName,suit:this.suit,"highlight-property":"_highlightResult","pre-tag":"<mark>","post-tag":"</mark>"}})},staticRenderFns:[],name:"AisHighlight",mixins:[A({name:"Highlight"})],components:{AisHighlighter:W},props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}}},G={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:e.suit()},[e._t("default",[s("ol",{class:e.suit("list")},e._l(e.items,function(t,n){return s("li",{key:t.objectID,class:e.suit("item")},[e._t("item",[e._v("objectID: "+e._s(t.objectID)+", index: "+e._s(n))],{item:t,index:n,insights:e.state.insights})],2)}))],{items:e.items,insights:e.state.insights})],2):e._e()},staticRenderFns:[],name:"AisHits",mixins:[F({connector:o}),A({name:"Hits"})],props:{escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{items:function(){return this.state.hits},widgetParams:function(){return{escapeHTML:this.escapeHTML,transformItems:this.transformItems}}}},K={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:e.suit()},[e._t("default",[s("select",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],class:e.suit("select"),on:{change:[function(t){var s=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.selected=t.target.multiple?s:s[0]},e.handleChange]}},e._l(e.state.items,function(t){return s("option",{key:t.value,class:e.suit("option"),domProps:{value:t.value}},[e._v(e._s(t.label))])}))],{items:e.state.items,refine:e.state.refine,hasNoResults:e.state.hasNoResults})],2):e._e()},staticRenderFns:[],name:"AisHitsPerPage",mixins:[A({name:"HitsPerPage"}),F({connector:u}),T({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{items:{type:Array,required:!0,default:function(){return[]}},transformItems:{type:Function,default:function(e){return e}}},data:function(){return{selected:this.items.find(function(e){return!0===e.default}).value}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}},methods:{handleChange:function(){this.state.refine(this.selected)}}},J={name:"AisIndex",mixins:[A({name:"Index"}),F({connector:function(){return x}})],provide:function(){var e=this;return{$_ais_getParentIndex:function(){return e.widget}}},props:{indexName:{type:String,required:!0},indexId:{type:String,required:!1}},render:function(e){return e("div",{},this.$slots.default)},computed:{widgetParams:function(){return{indexName:this.indexName,indexId:this.indexId}}}};function X(e){for(var t=arguments,s=1;s<arguments.length;s++){var n=null!=t[s]?t[s]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){Z(e,t,n[t])})}return e}function Z(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var ee=function(e){return X({mixins:[A({name:"InstantSearch"})],provide:function(){return{$_ais_instantSearchInstance:this.instantSearchInstance}},watch:{searchClient:function(e){this.instantSearchInstance.helper.setClient(e).search()},indexName:function(e){this.instantSearchInstance.helper.setIndex(e).search()},stalledSearchDelay:function(e){this.instantSearchInstance._stalledSearchDelay=e},routing:function(){throw new Error("routing configuration can not be changed dynamically at this point.\n\nPlease open a new issue: https://github.com/algolia/vue-instantsearch/issues/new?template=feature.md")},searchFunction:function(e){this.instantSearchInstance._searchFunction=e}},created:function(){var e=this.instantSearchInstance.client;"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("Vue ("+R.version+")"),e.addAlgoliaAgent("Vue InstantSearch (3.0.2)"))},mounted:function(){var e=this;this.$nextTick(function(){e.instantSearchInstance.started||e.instantSearchInstance.start()})},beforeDestroy:function(){this.instantSearchInstance.started&&this.instantSearchInstance.dispose(),this.instantSearchInstance.__initialSearchResults=void 0}},e)},te="Vue InstantSearch: You used the prop api-key or app-id.\nThese have been replaced by search-client.\n\nSee more info here: https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-search-client",se=ee({name:"AisInstantSearch",props:{searchClient:{type:Object,required:!0},insightsClient:{type:Function,required:!1},indexName:{type:String,required:!0},routing:{default:null,validator:function(e){return!("boolean"==typeof e||!e.router||!e.stateMapping)||(M("routing should be an object, with `router` and `stateMapping`. See https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-routing"),!1)}},stalledSearchDelay:{type:Number,default:200},searchFunction:{type:Function,default:null},initialUiState:{type:Object,required:!1},apiKey:{type:String,default:null,validator:function(e){return e&&M(te),!1}},appId:{type:String,default:null,validator:function(e){return e&&M(te),!1}}},data:function(){return{instantSearchInstance:P({searchClient:this.searchClient,insightsClient:this.insightsClient,indexName:this.indexName,routing:this.routing,stalledSearchDelay:this.stalledSearchDelay,searchFunction:this.searchFunction,initialUiState:this.initialUiState})}},render:function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!1,t)},this.$slots.default)}}),ne=ee({name:"AisInstantSearchSsr",inject:{$_ais_ssrInstantSearchInstance:{default:function(){throw new Error("`createServerRootMixin` is required when using SSR.")}}},data:function(){return{instantSearchInstance:this.$_ais_ssrInstantSearchInstance}},render:function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!0,t)},this.$slots.default)}}),ie={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:e.suit()},[e.showPrevious?e._t("loadPrevious",[s("button",{class:[e.suit("loadPrevious"),e.state.isFirstPage&&e.suit("loadPrevious","disabled")],attrs:{disabled:e.state.isFirstPage},on:{click:function(t){e.refinePrevious()}}},[e._v("Show previous results")])],{refinePrevious:e.refinePrevious,page:e.state.results.page,isFirstPage:e.state.isFirstPage}):e._e(),e._v(" "),e._t("default",[s("ol",{class:e.suit("list")},e._l(e.items,function(t,n){return s("li",{key:t.objectID,class:e.suit("item")},[e._t("item",[e._v("objectID: "+e._s(t.objectID)+", index: "+e._s(n))],{item:t,index:n,insights:e.state.insights})],2)})),e._v(" "),e._t("loadMore",[s("button",{class:[e.suit("loadMore"),e.state.isLastPage&&e.suit("loadMore","disabled")],attrs:{disabled:e.state.isLastPage},on:{click:function(t){e.refineNext()}}},[e._v("Show more results")])],{refineNext:e.refineNext,refine:e.refineNext,page:e.state.results.page,isLastPage:e.state.isLastPage})],{items:e.items,results:e.state.results,isLastPage:e.state.isLastPage,refinePrevious:e.refinePrevious,refineNext:e.refineNext,refine:e.refineNext,insights:e.state.insights})],2):e._e()},staticRenderFns:[],name:"AisInfiniteHits",mixins:[F({connector:c}),A({name:"InfiniteHits"})],props:{showPrevious:{type:Boolean,default:!1},escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{showPrevious:this.showPrevious,escapeHTML:this.escapeHTML,transformItems:this.transformItems}},items:function(){return this.state.hits}},methods:{refinePrevious:function(){this.state.showPrevious()},refineNext:function(){this.state.showMore()}}},ae={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[s("ul",{class:e.suit("list")},e._l(e.state.items,function(t){return s("li",{key:t.value,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[s("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t.value)},on:{click:function(s){s.preventDefault(),e.state.refine(t.value)}}},[s("span",{class:e.suit("label")},[e._v(e._s(t.label))]),e._v(" "),s("span",{class:e.suit("count")},[e._v(e._s(t.count))])])])})),e._v(" "),e.showShowMoreButton?s("button",{class:[e.suit("showMore"),!e.state.canToggleShowMore&&e.suit("showMore","disabled")],attrs:{disabled:!e.state.canToggleShowMore},on:{click:function(t){t.preventDefault(),e.state.toggleShowMore()}}},[e._t("showMoreLabel",[e._v(e._s(e.state.isShowingMore?"Show less":"Show more"))],{isShowingMore:e.state.isShowingMore})],2):e._e()],{items:e.state.items,canRefine:e.state.canRefine,canToggleShowMore:e.state.canToggleShowMore,isShowingMore:e.state.isShowingMore,refine:e.state.refine,createURL:e.state.createURL,toggleShowMore:e.state.toggleShowMore})],2):e._e()},staticRenderFns:[],name:"AisMenu",mixins:[A({name:"Menu"}),F({connector:l}),T({mapStateToCanRefine:function(e){return e.canRefine}})],props:{attribute:{type:String,required:!0},limit:{type:Number,default:10},showMoreLimit:{type:Number,default:20},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:function(){return["count:desc","name:asc"]}},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,transformItems:this.transformItems}},showShowMoreButton:function(){return this.state.canRefine&&this.showMore}}},re={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[s("select",{class:e.suit("select"),on:{change:function(t){e.refine(t.currentTarget.value)}}},[s("option",{class:e.suit("option"),attrs:{value:""}},[e._t("defaultOption",[e._v("See all")])],2),e._v(" "),e._l(e.state.items,function(t){return s("option",{key:t.value,class:e.suit("option"),domProps:{value:t.value,selected:t.isRefined}},[e._t("item",[e._v(e._s(t.label)+" ("+e._s(t.count)+")")],{item:t})],2)})],2)],{items:e.state.items,canRefine:e.state.canRefine,refine:e.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisMenuSelect",mixins:[A({name:"MenuSelect"}),F({connector:l}),T({mapStateToCanRefine:function(e){return e.canRefine}})],props:{attribute:{type:String,required:!0},limit:{type:Number,default:10},sortBy:{type:[Array,Function],default:function(){return["name:asc"]}},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attribute:this.attribute,limit:this.limit,sortBy:this.sortBy,transformItems:this.transformItems}}},methods:{refine:function(e){this.state.refine(e)}}},oe={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[s("ul",{class:[e.suit("list")]},e._l(e.state.items,function(t){return s("li",{key:t.label,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[s("label",{class:e.suit("label")},[s("input",{class:e.suit("radio"),attrs:{type:"radio",name:e.attribute},domProps:{value:t.value,checked:t.isRefined},on:{change:function(t){e.state.refine(t.target.value)}}}),e._v(" "),s("span",{class:e.suit("labelText")},[e._v(e._s(t.label))])])])}))],{items:e.state.items,canRefine:e.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisNumericMenu",mixins:[F({connector:h}),A({name:"NumericMenu"}),T({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{attribute:{type:String,required:!0},items:{type:Array,required:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{attribute:this.attribute,transformItems:this.transformItems,items:this.items}},canRefine:function(){return!this.state.hasNoResults}}},ue={render:function(){var e,t,s,n,i=this,a=i.$createElement,r=i._self._c||a;return i.state?r("div",{class:i.suit()},[i._t("default",[r("ul",{class:i.suit("list")},[i.showFirst?r("li",{class:(e={},e[i.suit("item")]=!0,e[i.suit("item","firstPage")]=!0,e[i.suit("item","disabled")]=i.state.isFirstPage,e)},[i._t("first",[i.state.isFirstPage?[r("span",{class:i.suit("link"),attrs:{"aria-label":"First"}},[i._v("‹‹")])]:[r("a",{class:i.suit("link"),attrs:{"aria-label":"First",href:i.state.createURL(0)},on:{click:function(e){e.preventDefault(),i.refine(0)}}},[i._v("‹‹")])]],{createURL:function(){return i.state.createURL(0)},isFirstPage:i.state.isFirstPage,refine:function(){return i.refine(0)}})],2):i._e(),i._v(" "),i.showPrevious?r("li",{class:(t={},t[i.suit("item")]=!0,t[i.suit("item","previousPage")]=!0,t[i.suit("item","disabled")]=i.state.isFirstPage,t)},[i._t("previous",[i.state.isFirstPage?[r("span",{class:i.suit("link"),attrs:{"aria-label":"Previous"}},[i._v("‹")])]:[r("a",{class:i.suit("link"),attrs:{"aria-label":"Previous",href:i.state.createURL(i.state.currentRefinement-1)},on:{click:function(e){e.preventDefault(),i.refine(i.state.currentRefinement-1)}}},[i._v("‹")])]],{createURL:function(){return i.state.createURL(i.state.currentRefinement-1)},isFirstPage:i.state.isFirstPage,refine:function(){return i.refine(i.state.currentRefinement-1)}})],2):i._e(),i._v(" "),i._l(i.state.pages,function(e){var t;return r("li",{key:e,class:(t={},t[i.suit("item")]=!0,t[i.suit("item","selected")]=i.state.currentRefinement===e,t)},[i._t("item",[r("a",{class:i.suit("link"),attrs:{href:i.state.createURL(e)},on:{click:function(t){t.preventDefault(),i.refine(e)}}},[i._v(i._s(e+1))])],{page:e,createURL:function(){return i.state.createURL(e)},isFirstPage:i.state.isFirstPage,isLastPage:i.state.isLastPage,refine:function(){return i.refine(e)}})],2)}),i._v(" "),i.showNext?r("li",{class:(s={},s[i.suit("item")]=!0,s[i.suit("item","nextPage")]=!0,s[i.suit("item","disabled")]=i.state.isLastPage,s)},[i._t("next",[i.state.isLastPage?[r("span",{class:i.suit("link"),attrs:{"aria-label":"Next"}},[i._v("›")])]:[r("a",{class:i.suit("link"),attrs:{"aria-label":"Next",href:i.state.createURL(i.state.currentRefinement+1)},on:{click:function(e){e.preventDefault(),i.refine(i.state.currentRefinement+1)}}},[i._v("›")])]],{createURL:function(){return i.state.createURL(i.state.currentRefinement+1)},isLastPage:i.state.isLastPage,refine:function(){return i.refine(i.state.currentRefinement+1)}})],2):i._e(),i._v(" "),i.showLast?r("li",{class:(n={},n[i.suit("item")]=!0,n[i.suit("item","lastPage")]=!0,n[i.suit("item","disabled")]=i.state.isLastPage,n)},[i._t("last",[i.state.isLastPage?[r("span",{class:i.suit("link"),attrs:{"aria-label":"Last"}},[i._v("››")])]:[r("a",{class:i.suit("link"),attrs:{"aria-label":"Last",href:i.state.createURL(i.state.nbPages-1)},on:{click:function(e){e.preventDefault(),i.refine(i.state.nbPages-1)}}},[i._v("››")])]],{createURL:function(){return i.state.createURL(i.state.nbPages-1)},isLastPage:i.state.isLastPage,refine:function(){return i.refine(i.state.nbPages-1)}})],2):i._e()],2)],{refine:i.refine,createURL:i.state.createURL,currentRefinement:i.state.currentRefinement,nbHits:i.state.nbHits,nbPages:i.state.nbPages,pages:i.state.pages,isFirstPage:i.state.isFirstPage,isLastPage:i.state.isLastPage})],2):i._e()},staticRenderFns:[],name:"AisPagination",mixins:[A({name:"Pagination"}),F({connector:f}),T({mapStateToCanRefine:function(e){return e.nbPages>1}})],props:{padding:{type:Number,default:3,validator:function(e){return e>0}},totalPages:{type:Number,default:void 0,validator:function(e){return e>0}},showFirst:{type:Boolean,default:!0},showLast:{type:Boolean,default:!0},showNext:{type:Boolean,default:!0},showPrevious:{type:Boolean,default:!0}},computed:{widgetParams:function(){return{padding:this.padding,totalPages:this.totalPages}}},methods:{refine:function(e){var t=Math.min(Math.max(e,0),this.state.nbPages-1);this.state.refine(t),this.$emit("page-change",t)}}},ce={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e.$slots.header||e.$scopedSlots.header?s("div",{class:e.suit("header")},[e._t("header",null,{hasRefinements:e.canRefine})],2):e._e(),e._v(" "),s("div",{class:e.suit("body")},[e._t("default",null,{hasRefinements:e.canRefine})],2),e._v(" "),e.$slots.footer||e.$scopedSlots.footer?s("div",{class:e.suit("footer")},[e._t("footer",null,{hasRefinements:e.canRefine})],2):e._e()])},staticRenderFns:[],name:"AisPanel",mixins:[A({name:"Panel"}),{props:{emitter:{type:Object,required:!1,default:function(){return new R({name:"PanelProvider"})}}},provide:function(){var e;return(e={}).instantSearchPanelEmitter=this.emitter,e},data:function(){return{canRefine:!0}},created:function(){var e=this;this.emitter.$on("PANEL_CHANGE_EVENT",function(t){e.updateCanRefine(t)})},beforeDestroy:function(){this.emitter.$destroy()},methods:{updateCanRefine:function(e){this.canRefine=e}}}]},le={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{class:e.suit()},[s("a",{class:e.suit("link"),attrs:{href:e.algoliaUrl,target:"_blank",rel:"noopener","aria-label":"search by Algolia"}},[s("svg",{class:[e.suit("logo"),e.suit("",e.theme)],staticStyle:{height:"1.2em",width:"auto"},attrs:{viewBox:"0 0 168 24"}},[s("path",{attrs:{fill:"dark"===e.theme?"#FFF":"#5D6494",d:"M6.97 6.68V8.3a4.47 4.47 0 0 0-2.42-.67 2.2 2.2 0 0 0-1.38.4c-.34.26-.5.6-.5 1.02 0 .43.16.77.49 1.03.33.25.83.53 1.51.83a7.04 7.04 0 0 1 1.9 1.08c.34.24.58.54.73.89.15.34.23.74.23 1.18 0 .95-.33 1.7-1 2.24a4 4 0 0 1-2.6.81 5.71 5.71 0 0 1-2.94-.68v-1.71c.84.63 1.81.94 2.92.94.58 0 1.05-.14 1.39-.4.34-.28.5-.65.5-1.13 0-.29-.1-.55-.3-.8a2.2 2.2 0 0 0-.65-.53 23.03 23.03 0 0 0-1.64-.78 13.67 13.67 0 0 1-1.11-.64c-.12-.1-.28-.22-.46-.4a1.72 1.72 0 0 1-.39-.5 4.46 4.46 0 0 1-.22-.6c-.07-.23-.1-.48-.1-.75 0-.91.33-1.63 1-2.17a4 4 0 0 1 2.57-.8c.97 0 1.8.18 2.47.52zm7.47 5.7v-.3a2.26 2.26 0 0 0-.5-1.44c-.3-.35-.74-.53-1.32-.53-.53 0-.99.2-1.37.58-.38.39-.62.95-.72 1.68h3.91zm1 2.79v1.4c-.6.34-1.38.51-2.36.51a4.02 4.02 0 0 1-3-1.13 4.04 4.04 0 0 1-1.11-2.97c0-1.3.34-2.32 1.02-3.06a3.38 3.38 0 0 1 2.6-1.1c1.03 0 1.85.32 2.46.96.6.64.9 1.57.9 2.78 0 .33-.03.68-.09 1.04h-5.31c.1.7.4 1.24.89 1.61.49.38 1.1.56 1.85.56.86 0 1.58-.2 2.15-.6zm6.61-1.78h-1.21c-.6 0-1.05.12-1.35.36-.3.23-.46.53-.46.89 0 .37.12.66.36.88.23.2.57.32 1.02.32.5 0 .9-.15 1.2-.43.3-.28.44-.65.44-1.1v-.92zm-4.07-2.55V9.33a4.96 4.96 0 0 1 2.5-.55c2.1 0 3.17 1.03 3.17 3.08V17H22.1v-.96c-.42.68-1.15 1.02-2.19 1.02-.76 0-1.38-.22-1.84-.66-.46-.44-.7-1-.7-1.68 0-.78.3-1.38.88-1.81.59-.43 1.4-.65 2.46-.65h1.34v-.46c0-.55-.13-.97-.4-1.25-.26-.29-.7-.43-1.32-.43-.86 0-1.65.24-2.35.72zm9.34-1.93v1.42c.39-1 1.1-1.5 2.12-1.5.15 0 .31.02.5.05v1.53c-.23-.1-.48-.14-.76-.14-.54 0-.99.24-1.34.71a2.8 2.8 0 0 0-.52 1.71V17h-1.57V8.91h1.57zm5 4.09a3 3 0 0 0 .76 2.01c.47.53 1.14.8 2 .8.64 0 1.24-.18 1.8-.53v1.4c-.53.32-1.2.48-2 .48a3.98 3.98 0 0 1-4.17-4.18c0-1.16.38-2.15 1.14-2.98a4 4 0 0 1 3.1-1.23c.7 0 1.34.15 1.92.44v1.44a3.24 3.24 0 0 0-1.77-.5A2.65 2.65 0 0 0 32.33 13zm7.92-7.28v4.58c.46-1 1.3-1.5 2.5-1.5.8 0 1.42.24 1.9.73.48.5.72 1.17.72 2.05V17H43.8v-5.1c0-.56-.14-.99-.43-1.29-.28-.3-.65-.45-1.1-.45-.54 0-1 .2-1.42.6-.4.4-.61 1.02-.61 1.85V17h-1.56V5.72h1.56zM55.2 15.74c.6 0 1.1-.25 1.5-.76.4-.5.6-1.16.6-1.95 0-.92-.2-1.62-.6-2.12-.4-.5-.92-.74-1.55-.74-.56 0-1.05.22-1.5.67-.44.45-.66 1.13-.66 2.06 0 .96.22 1.67.64 2.14.43.47.95.7 1.57.7zM53 5.72v4.42a2.74 2.74 0 0 1 2.43-1.34c1.03 0 1.86.38 2.51 1.15.65.76.97 1.78.97 3.05 0 1.13-.3 2.1-.92 2.9-.62.81-1.47 1.21-2.54 1.21s-1.9-.45-2.46-1.34V17h-1.58V5.72H53zm9.9 11.1l-3.22-7.9h1.74l1 2.62 1.26 3.42c.1-.32.48-1.46 1.15-3.42l.91-2.63h1.66l-2.92 7.87c-.78 2.07-1.96 3.1-3.56 3.1-.28 0-.53-.02-.73-.07v-1.34c.17.04.35.06.54.06 1.03 0 1.76-.57 2.17-1.7z"}}),e._v(" "),s("path",{attrs:{fill:"#5468FF",d:"M78.99.94h16.6a2.97 2.97 0 0 1 2.96 2.96v16.6a2.97 2.97 0 0 1-2.97 2.96h-16.6a2.97 2.97 0 0 1-2.96-2.96V3.9A2.96 2.96 0 0 1 79 .94"}}),e._v(" "),s("path",{attrs:{fill:"#FFF",d:"M89.63 5.97v-.78a.98.98 0 0 0-.98-.97h-2.28a.98.98 0 0 0-.97.97V6c0 .09.08.15.17.13a7.13 7.13 0 0 1 3.9-.02c.08.02.16-.04.16-.13m-6.25 1L83 6.6a.98.98 0 0 0-1.38 0l-.46.46a.97.97 0 0 0 0 1.38l.38.39c.06.06.15.04.2-.02a7.49 7.49 0 0 1 1.63-1.62c.07-.04.08-.14.02-.2m4.16 2.45v3.34c0 .1.1.17.2.12l2.97-1.54c.06-.03.08-.12.05-.18a3.7 3.7 0 0 0-3.08-1.87c-.07 0-.14.06-.14.13m0 8.05a4.49 4.49 0 1 1 0-8.98 4.49 4.49 0 0 1 0 8.98m0-10.85a6.37 6.37 0 1 0 0 12.74 6.37 6.37 0 0 0 0-12.74"}}),e._v(" "),s("path",{attrs:{fill:"dark"===e.theme?"#FFF":"#5468FF",d:"M120.92 18.8c-4.38.02-4.38-3.54-4.38-4.1V1.36l2.67-.42v13.25c0 .32 0 2.36 1.71 2.37v2.24zm-10.84-2.18c.82 0 1.43-.04 1.85-.12v-2.72a5.48 5.48 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.11-.44.28-.58.49a.93.93 0 0 0-.22.65c0 .63.22 1 .61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.62.11 2.23.33.6.22 1.09.53 1.44.92.36.4.61.92.76 1.48.16.56.23 1.17.23 1.85v6.87c-.4.1-1.03.2-1.86.32-.84.12-1.78.18-2.82.18-.69 0-1.32-.07-1.9-.2a4 4 0 0 1-1.46-.63c-.4-.3-.72-.67-.96-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.39-1.53.26-.45.6-.82 1.04-1.1.45-.3.95-.5 1.54-.62a8.8 8.8 0 0 1 3.79.05v-.44c0-.3-.04-.6-.11-.87a1.78 1.78 0 0 0-1.1-1.22c-.31-.12-.7-.2-1.15-.2a9.75 9.75 0 0 0-2.95.46l-.33-2.19c.34-.12.84-.23 1.48-.35.65-.12 1.34-.18 2.08-.18zm52.84 9.63c.82 0 1.43-.05 1.85-.13V13.7a5.42 5.42 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.12-.44.28-.58.5a.93.93 0 0 0-.22.65c0 .63.22.99.61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.63.11 2.23.33.6.22 1.1.53 1.45.92.35.39.6.92.76 1.48.15.56.23 1.18.23 1.85v6.88c-.41.08-1.03.19-1.87.31-.83.12-1.77.18-2.81.18-.7 0-1.33-.06-1.9-.2a4 4 0 0 1-1.47-.63c-.4-.3-.72-.67-.95-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.38-1.53.26-.45.61-.82 1.05-1.1.44-.3.95-.5 1.53-.62a8.8 8.8 0 0 1 3.8.05v-.43c0-.31-.04-.6-.12-.88-.07-.28-.2-.52-.38-.73a1.78 1.78 0 0 0-.73-.5c-.3-.1-.68-.2-1.14-.2a9.85 9.85 0 0 0-2.95.47l-.32-2.19a11.63 11.63 0 0 1 3.55-.53zm-8.03-1.27a1.62 1.62 0 0 0 0-3.24 1.62 1.62 0 1 0 0 3.24zm1.35 13.22h-2.7V7.27l2.7-.42V18.8zm-4.72 0c-4.38.02-4.38-3.54-4.38-4.1l-.01-13.34 2.67-.42v13.25c0 .32 0 2.36 1.72 2.37v2.24zm-8.7-5.9a4.7 4.7 0 0 0-.74-2.79 2.4 2.4 0 0 0-2.07-1 2.4 2.4 0 0 0-2.06 1 4.7 4.7 0 0 0-.74 2.8c0 1.16.25 1.94.74 2.62a2.4 2.4 0 0 0 2.07 1.02c.88 0 1.57-.34 2.07-1.02.49-.68.73-1.46.73-2.63zm2.74 0a6.46 6.46 0 0 1-1.52 4.23c-.49.53-1.07.94-1.76 1.22-.68.29-1.73.45-2.26.45-.53 0-1.58-.15-2.25-.45a5.1 5.1 0 0 1-2.88-3.13 7.3 7.3 0 0 1-.01-4.84 5.13 5.13 0 0 1 2.9-3.1 5.67 5.67 0 0 1 2.22-.42c.81 0 1.56.14 2.24.42.69.29 1.28.69 1.75 1.22.49.52.87 1.15 1.14 1.89a7 7 0 0 1 .43 2.5zm-20.14 0c0 1.11.25 2.36.74 2.88.5.52 1.13.78 1.91.78a4.07 4.07 0 0 0 2.12-.6V9.33c-.19-.04-.99-.2-1.76-.23a2.67 2.67 0 0 0-2.23 1 4.73 4.73 0 0 0-.78 2.8zm7.44 5.27c0 1.82-.46 3.16-1.4 4-.94.85-2.37 1.27-4.3 1.27-.7 0-2.17-.13-3.34-.4l.43-2.11c.98.2 2.27.26 2.95.26 1.08 0 1.84-.22 2.3-.66.46-.43.68-1.08.68-1.94v-.44a5.2 5.2 0 0 1-2.54.6 5.6 5.6 0 0 1-2.01-.36 4.2 4.2 0 0 1-2.58-2.71 9.88 9.88 0 0 1 .02-5.35 4.92 4.92 0 0 1 2.93-2.96 6.6 6.6 0 0 1 2.43-.46 19.64 19.64 0 0 1 4.43.66v10.6z"}})])])])},staticRenderFns:[],name:"AisPoweredBy",mixins:[A({name:"PoweredBy"})],props:{theme:{default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},computed:{algoliaUrl:function(){return"https://www.algolia.com/?utm_source=vue-instantsearch&utm_medium=website&utm_content="+(location?location.hostname:"")+"&utm_campaign=poweredby"}}},he={name:"AisQueryRuleContext",mixins:[A({name:"QueryRuleContext"}),F({connector:d})],props:{trackedFilters:{type:Object,required:!0},transformRuleContexts:{type:Function,required:!1,default:function(e){return e}}},computed:{widgetParams:function(){return{trackedFilters:this.trackedFilters,transformRuleContexts:this.transformRuleContexts}}},render:function(){return null}},fe={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:e.suit()},[e._t("default",e._l(e.state.items,function(t,n){return s("div",{key:n},[e._t("item",[s("pre",[e._v(e._s(t))])],{item:t})],2)}),{items:e.state.items})],2):e._e()},staticRenderFns:[],name:"AisQueryRuleCustomData",mixins:[A({name:"QueryRuleCustomData"}),F({connector:d})],props:{transformItems:{type:Function,required:!1,default:function(e){return e}}},computed:{widgetParams:function(){return{transformItems:this.transformItems}}}},de=function(e){return e&&e.range&&e.range.min!==e.range.max},me={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[s("form",{class:e.suit("form"),on:{submit:function(t){t.preventDefault(),e.refine({min:e.pick(e.minInput,e.values.min),max:e.pick(e.maxInput,e.values.max)})}}},[s("label",{class:e.suit("label")},[e._t("minLabel"),e._v(" "),s("input",{class:[e.suit("input"),e.suit("input","min")],attrs:{type:"number",step:e.step,min:e.state.range.min,max:e.state.range.max,placeholder:e.state.range.min},domProps:{value:e.values.min},on:{change:function(t){e.minInput=t.currentTarget.value}}})],2),e._v(" "),s("span",{class:e.suit("separator")},[e._t("separator",[e._v("to")])],2),e._v(" "),s("label",{class:e.suit("label")},[e._t("maxLabel"),e._v(" "),s("input",{class:[e.suit("input"),e.suit("input","max")],attrs:{type:"number",step:e.step,min:e.state.range.min,max:e.state.range.max,placeholder:e.state.range.max},domProps:{value:e.values.max},on:{change:function(t){e.maxInput=t.currentTarget.value}}})],2),e._v(" "),s("button",{class:e.suit("submit"),attrs:{type:"submit"}},[e._t("submitLabel",[e._v("Go")])],2)])],{currentRefinement:e.values,refine:e.refine,canRefine:e.canRefine,range:e.state.range})],2):e._e()},staticRenderFns:[],name:"AisRangeInput",mixins:[A({name:"RangeInput"}),F({connector:m}),T({mapStateToCanRefine:de})],props:{attribute:{type:String,required:!0},min:{type:Number,required:!1,default:-1/0},max:{type:Number,required:!1,default:1/0},precision:{type:Number,required:!1,default:0}},data:function(){return{minInput:void 0,maxInput:void 0}},updated:function(){this.minInput=void 0,this.maxInput=void 0},computed:{widgetParams:function(){return{attribute:this.attribute,min:this.min,max:this.max,precision:this.precision}},canRefine:function(){return de(this.state)},step:function(){return 1/Math.pow(10,this.precision)},values:function(){var e=this.state.start,t=e[0],s=e[1],n=this.state.range,i=n.min,a=n.max;return{min:t!==-1/0&&t!==i?t:null,max:s!==1/0&&s!==a?s:null}}},methods:{pick:function(e,t){return null!=e?e:t},refine:function(e){var t=e.min,s=e.max;this.state.refine([t,s])}}},pe={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:e.suit()},[e._t("default",[s("svg",{staticStyle:{display:"none"},attrs:{xmlns:"http://www.w3.org/2000/svg"}},[s("symbol",{attrs:{id:"ais-RatingMenu-starSymbol",viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}})]),e._v(" "),s("symbol",{attrs:{id:"ais-RatingMenu-starEmptySymbol",viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"}})])]),e._v(" "),s("ul",{class:e.suit("list")},e._l(e.state.items,function(t,n){return s("li",{key:n,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[s("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t),"aria-label":t.value+" & Up"},on:{click:function(s){s.preventDefault(),e.state.refine(t.value)}}},[e._l(t.stars,function(t,n){return[t?s("svg",{key:n,class:[e.suit("starIcon"),e.suit("starIcon--full")],attrs:{"aria-hidden":"true",width:"24",height:"24"}},[s("use",{attrs:{"xlink:href":"#ais-RatingMenu-starSymbol"}})]):s("svg",{key:n,class:[e.suit("starIcon"),e.suit("starIcon--empty")],attrs:{"aria-hidden":"true",width:"24",height:"24"}},[s("use",{attrs:{"xlink:href":"#ais-RatingMenu-starEmptySymbol"}})])]}),e._v(" "),s("span",{class:e.suit("label"),attrs:{"aria-hidden":"true"}},[e._t("andUp",[e._v("& Up")])],2),e._v(" "),s("span",{class:e.suit("count")},[e._v(e._s(t.count))])],2)])}))],{items:e.state.items,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisRatingMenu",mixins:[A({name:"RatingMenu"}),F({connector:p}),T({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{attribute:{type:String,required:!0},max:{type:Number,default:5}},computed:{widgetParams:function(){return{attribute:this.attribute,max:this.max}}}},ge={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("form",{class:e.suit("form"),attrs:{action:"",role:"search",novalidate:""},on:{submit:function(t){return t.preventDefault(),e.onFormSubmit(t)},reset:function(t){return t.preventDefault(),e.onFormReset(t)}}},[s("input",{ref:"input",class:e.suit("input"),attrs:{type:"search",autocorrect:"off",autocapitalize:"off",autocomplete:"off",spellcheck:"false",required:"",maxlength:"512","aria-label":"Search",placeholder:e.placeholder,autofocus:e.autofocus},domProps:{value:e.value},on:{focus:function(t){e.$emit("focus",t)},blur:function(t){e.$emit("blur",t)},input:function(t){e.$emit("input",t.target.value)}}}),e._v(" "),s("button",{class:e.suit("submit"),attrs:{type:"submit",title:e.submitTitle,hidden:e.showLoadingIndicator&&e.shouldShowLoadingIndicator}},[e._t("submit-icon",[s("svg",{class:e.suit("submitIcon"),attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40"}},[s("path",{attrs:{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z",fillRule:"evenodd"}})])])],2),e._v(" "),s("button",{class:e.suit("reset"),attrs:{type:"reset",title:e.resetTitle,hidden:!e.value||e.showLoadingIndicator&&e.shouldShowLoadingIndicator}},[e._t("reset-icon",[s("svg",{class:e.suit("resetIcon"),attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20"}},[s("path",{attrs:{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z",fillRule:"evenodd"}})])])],2),e._v(" "),e.showLoadingIndicator?s("span",{class:e.suit("loadingIndicator"),attrs:{hidden:!e.shouldShowLoadingIndicator}},[e._t("loading-indicator",[s("svg",{class:e.suit("loadingIcon"),attrs:{role:"img","aria-label":"Results are loading",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",viewBox:"0 0 38 38"}},[s("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[s("g",{attrs:{transform:"translate(1 1)","stroke-width":"2"}},[s("circle",{attrs:{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}}),e._v(" "),s("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18"}},[s("animateTransform",{attrs:{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}})],1)])])])])],2):e._e()])},staticRenderFns:[],name:"SearchInput",mixins:[A({name:"SearchBox"})],props:{placeholder:{type:String,default:"Search here…"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},shouldShowLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,required:!0}},data:function(){return{query:""}},methods:{onFormSubmit:function(){this.$refs.input.blur()},onFormReset:function(){this.$emit("input",""),this.$emit("reset")}}},ve=function(){},_e={render:function(){var e,t=this,s=t.$createElement,n=t._self._c||s;return t.state?n("div",{class:[t.suit(),!t.state.canRefine&&t.suit("","noRefinement")]},[t._t("default",[t.searchable?n("div",{class:t.suit("searchBox")},[n("search-input",{attrs:{placeholder:t.searchablePlaceholder,"class-names":t.classNames},model:{value:t.searchForFacetValues,callback:function(e){t.searchForFacetValues=e},expression:"searchForFacetValues"}})],1):t._e(),t._v(" "),t.state.isFromSearch&&0===t.items.length?t._t("noResults",[n("div",{class:t.suit("noResults")},[t._v("No results.")])],{query:t.searchForFacetValues}):t._e(),t._v(" "),n("ul",{class:t.suit("list")},t._l(t.items,function(e){return n("li",{key:e.value,class:[t.suit("item"),e.isRefined&&t.suit("item","selected")]},[t._t("item",[n("label",{class:t.suit("label")},[n("input",{class:t.suit("checkbox"),attrs:{type:"checkbox"},domProps:{value:e.value,checked:e.isRefined},on:{change:function(s){t.refine(e.value)}}}),t._v(" "),t.searchable?n("span",{class:t.suit("labelText")},[n("ais-highlight",{attrs:{attribute:"item",hit:e}})],1):n("span",{class:t.suit("labelText")},[t._v(t._s(e.label))]),t._v(" "),n("span",{class:t.suit("count")},[t._v(t._s(e.count))])])],{item:e,refine:t.refine,createURL:t.state.createURL})],2)})),t._v(" "),t.showMore?n("button",{class:[t.suit("showMore"),(e={},e[t.suit("showMore","disabled")]=!t.state.canToggleShowMore,e)],attrs:{disabled:!t.state.canToggleShowMore},on:{click:t.toggleShowMore}},[t._t("showMoreLabel",[t._v("Show "+t._s(t.state.isShowingMore?"less":"more"))],{isShowingMore:t.state.isShowingMore})],2):t._e()],{items:t.items,refine:t.refine,searchForItems:t.state.searchForItems,searchForItemsQuery:t.searchForFacetValuesQuery,toggleShowMore:t.toggleShowMore,canToggleShowMore:t.state.canToggleShowMore,isShowingMore:t.state.isShowingMore,createURL:t.state.createURL,isFromSearch:t.state.isFromSearch,canRefine:t.state.canRefine})],2):t._e()},staticRenderFns:[],name:"AisRefinementList",components:{SearchInput:ge,AisHighlight:Y},mixins:[A({name:"RefinementList"}),F({connector:g}),T({mapStateToCanRefine:function(e){return e.canRefine}})],props:{attribute:{type:String,required:!0},searchable:{type:Boolean,default:!1},searchablePlaceholder:{default:"Search here…",type:String,required:!1},operator:{default:"or",validator:function(e){return"and"===e||"or"===e},required:!1},limit:{type:Number,default:10,required:!1},showMoreLimit:{type:Number,default:20,required:!1},showMore:{type:Boolean,default:!1,required:!1},sortBy:{type:[Array,Function],default:function(){return["isRefined","count:desc","name:asc"]},required:!1},transformItems:{type:Function,default:function(e){return e},required:!1}},data:function(){return{searchForFacetValuesQuery:""}},computed:{searchForFacetValues:{get:function(){return this.searchForFacetValuesQuery},set:function(e){this.state.searchForItems(e),this.searchForFacetValuesQuery=e}},toggleShowMore:function(){return this.state.toggleShowMore||ve},items:function(){return this.state.items.map(function(e){return Object.assign({},e,{_highlightResult:{item:{value:e.highlighted}}})})},widgetParams:function(){return{attribute:this.attribute,operator:this.operator,limit:this.limit,showMore:this.showMore,showMoreLimit:this.showMoreLimit,sortBy:this.sortBy,escapeFacetValues:!0,transformItems:this.transformItems}}},methods:{refine:function(e){this.state.refine(e),this.searchForFacetValuesQuery=""}}},ye={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state&&e.state.state&&e.state.results?s("div",{class:e.suit()},[e._t("default",[s("p",[e._v(" Use this component to have a different layout based on a certain state. ")]),e._v(" "),e._m(0),e._v(" "),s("pre",[e._v("results: "+e._s(Object.keys(e.state.results)))]),e._v(" "),s("pre",[e._v("state: "+e._s(Object.keys(e.state.state)))])],null,e.stateResults)],2):e._e()},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",[this._v(" Fill in the slot, and get access to the following things on the "),t("code",[this._v("slot-scope")]),this._v(": ")])}],name:"AisStateResults",mixins:[F({connector:function(e,t){return void 0===t&&(t=function(){}),function(s){return void 0===s&&(s={}),{init:function(t){var n=t.instantSearchInstance;e({state:void 0,results:void 0,instantSearchInstance:n,widgetParams:s},!0)},render:function(t){var n=t.results,i=t.instantSearchInstance,a=t.state,r=X({},n),o=X({},a);e({results:r,state:o,instantSearchInstance:i,widgetParams:s},!1)},dispose:function(){t()}}}}}),A({name:"StateResults"})],computed:{stateResults:function(){var e=this.state,t=e.state,s=e.results;return X({},s,{results:s,state:t})}}},be={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:e.suit()},[e._t("default",[s("search-input",{attrs:{placeholder:e.placeholder,autofocus:e.autofocus,"show-loading-indicator":e.showLoadingIndicator,"should-show-loading-indicator":e.state.isSearchStalled,"submit-title":e.submitTitle,"reset-title":e.resetTitle,"class-names":e.classNames},on:{focus:function(t){e.$emit("focus",t)},blur:function(t){e.$emit("blur",t)},reset:function(t){e.$emit("reset")}},model:{value:e.currentRefinement,callback:function(t){e.currentRefinement=t},expression:"currentRefinement"}},[e._t("loading-indicator",null,{slot:"loading-indicator"}),e._v(" "),e._t("submit-icon",null,{slot:"submit-icon"}),e._v(" "),e._t("reset-icon",null,{slot:"reset-icon"})],2)],{currentRefinement:e.currentRefinement,isSearchStalled:e.state.isSearchStalled,refine:e.state.refine})],2):e._e()},staticRenderFns:[],name:"AisSearchBox",mixins:[F({connector:v}),A({name:"SearchBox"})],components:{SearchInput:ge},props:{placeholder:{type:String,default:"Search here…"},autofocus:{type:Boolean,default:!1},showLoadingIndicator:{type:Boolean,default:!1},submitTitle:{type:String,default:"Search"},resetTitle:{type:String,default:"Clear"},value:{type:String,default:void 0}},data:function(){return{localValue:""}},methods:{onFormSubmit:function(){this.$el.querySelector("input[type=search]").blur()},onFormReset:function(){this.state.refine("")}},computed:{isControlled:function(){return void 0!==this.value},currentRefinement:{get:function(){return this.isControlled&&this.value!==this.localValue&&(this.localValue=this.value,this.$emit("input",this.value),this.state.refine(this.value)),this.value||this.state.query||""},set:function(e){this.localValue=e,this.state.refine(e),this.isControlled&&this.$emit("input",e)}}}},Se={render:function(){var e=this.$createElement;return(this._self._c||e)("ais-highlighter",{attrs:{hit:this.hit,attribute:this.attribute,"highlighted-tag-name":this.highlightedTagName,suit:this.suit,"highlight-property":"_snippetResult","pre-tag":"<mark>","post-tag":"</mark>"}})},staticRenderFns:[],name:"AisSnippet",mixins:[A({name:"Snippet"})],components:{AisHighlighter:W},props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}}},Re={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:e.suit()},[e._t("default",[s("select",{class:e.suit("select"),on:{change:function(t){e.state.refine(t.currentTarget.value)}}},e._l(e.state.options,function(t){return s("option",{key:t.value,class:e.suit("option"),domProps:{value:t.value,selected:t.value===e.state.currentRefinement}},[e._v(e._s(t.label))])}))],{items:e.state.options,hasNoResults:e.state.hasNoResults,refine:e.state.refine,currentRefinement:e.state.currentRefinement})],2):e._e()},staticRenderFns:[],name:"AisSortBy",mixins:[A({name:"SortBy"}),F({connector:_}),T({mapStateToCanRefine:function(e){return!e.hasNoResults}})],props:{items:{type:Array,required:!0},transformItems:{type:Function,default:function(e){return e}}},computed:{widgetParams:function(){return{items:this.items,transformItems:this.transformItems}}}},we={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:e.suit()},[e._t("default",[s("span",{class:e.suit("text")},[e._v(e._s(e.state.nbHits.toLocaleString())+" results found in "+e._s(e.state.processingTimeMS.toLocaleString())+"ms")])],{results:e.state.instantSearchInstance.helper.lastResults},e.state)],2):e._e()},staticRenderFns:[],name:"AisStats",mixins:[F({connector:y}),A({name:"Stats"})],computed:{widgetParams:function(){return{}}}},xe=function(e){return Boolean(e.value.count)},Pe={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[s("label",{class:e.suit("label")},[s("input",{class:e.suit("checkbox"),attrs:{type:"checkbox",name:e.state.value.name},domProps:{value:e.on,checked:e.state.value.isRefined},on:{change:function(t){e.state.refine(e.state.value)}}}),e._v(" "),s("span",{class:e.suit("labelText")},[e._v(e._s(e.label))]),e._v(" "),null!==e.state.value.count?s("span",{class:e.suit("count")},[e._v(e._s(e.state.value.count.toLocaleString()))]):e._e()])],{value:e.state.value,canRefine:e.canRefine,refine:e.state.refine,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisToggleRefinement",mixins:[A({name:"ToggleRefinement"}),F({connector:b}),T({mapStateToCanRefine:xe})],props:{attribute:{type:String,required:!0},label:{type:String,required:!0},on:{type:[String,Number,Boolean],required:!1,default:!0},off:{type:[String,Number,Boolean],required:!1,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,label:this.label,on:this.on,off:this.off}},canRefine:function(){return xe(this.state)}}},Ie={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.state?s("div",{class:e.suit()},[e._t("default",[s("button",{class:e.suit("button"),attrs:{type:"button",title:e.state.isBrowserSupported?e.buttonTitle:e.disabledButtonTitle,disabled:!e.state.isBrowserSupported},on:{click:e.handleClick}},[e._t("buttonText",[e.errorNotAllowed?s("svg",e._b({},"svg",e.buttonSvgAttrs,!1),[s("line",{attrs:{x1:"1",y1:"1",x2:"23",y2:"23"}}),e._v(" "),s("path",{attrs:{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}}),e._v(" "),s("path",{attrs:{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}}),e._v(" "),s("line",{attrs:{x1:"12",y1:"19",x2:"12",y2:"23"}}),e._v(" "),s("line",{attrs:{x1:"8",y1:"23",x2:"16",y2:"23"}})]):s("svg",e._b({},"svg",e.buttonSvgAttrs,!1),[s("path",{attrs:{d:"M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z",fill:e.state.isListening?"currentColor":"none"}}),e._v(" "),s("path",{attrs:{d:"M19 10v2a7 7 0 0 1-14 0v-2"}}),e._v(" "),s("line",{attrs:{x1:"12",y1:"19",x2:"12",y2:"23"}}),e._v(" "),s("line",{attrs:{x1:"8",y1:"23",x2:"16",y2:"23"}})])],null,e.innerSlotProps)],2),e._v(" "),s("div",{class:e.suit("status")},[e._t("status",[s("p",[e._v(e._s(e.state.voiceListeningState.transcript))])],null,e.innerSlotProps)],2)],null,e.rootSlotProps)],2):e._e()},staticRenderFns:[],name:"AisVoiceSearch",mixins:[F({connector:S}),A({name:"VoiceSearch"})],props:{searchAsYouSpeak:{type:Boolean,required:!1,default:void 0},buttonTitle:{type:String,required:!1,default:"Search by voice"},disabledButtonTitle:{type:String,required:!1,default:"Search by voice (not supported on this browser)"}},data:function(){return{buttonSvgAttrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}}},computed:{widgetParams:function(){return{searchAsYouSpeak:this.searchAsYouSpeak}},errorNotAllowed:function(){return"error"===this.state.voiceListeningState.status&&"not-allowed"===this.state.voiceListeningState.errorCode},rootSlotProps:function(){return{isBrowserSupported:this.state.isBrowserSupported,isListening:this.state.isListening,toggleListening:this.state.toggleListening,voiceListeningState:this.state.voiceListeningState}},innerSlotProps:function(){return{status:this.state.voiceListeningState.status,errorCode:this.state.voiceListeningState.errorCode,isListening:this.state.isListening,transcript:this.state.voiceListeningState.transcript,isSpeechFinal:this.state.voiceListeningState.isSpeechFinal,isBrowserSupported:this.state.isBrowserSupported}}},methods:{handleClick:function(e){e.currentTarget.blur(),this.state.toggleListening()}}},Ae=Object.freeze({AisAutocomplete:k,AisBreadcrumb:C,AisClearRefinements:N,AisConfigure:$,AisExperimentalConfigureRelatedItems:q,AisCurrentRefinements:B,AisHierarchicalMenu:H,AisHighlight:Y,AisHits:G,AisHitsPerPage:K,AisIndex:J,AisInstantSearch:se,AisInstantSearchSsr:ne,AisInfiniteHits:ie,AisMenu:ae,AisMenuSelect:re,AisNumericMenu:oe,AisPagination:ue,AisPanel:ce,AisPoweredBy:le,AisQueryRuleContext:he,AisQueryRuleCustomData:fe,AisRangeInput:me,AisRatingMenu:pe,AisRefinementList:_e,AisStateResults:ye,AisSearchBox:be,AisSnippet:Se,AisSortBy:Re,AisStats:we,AisToggleRefinement:Pe,AisVoiceSearch:Ie}),Le={install:function(e){Object.keys(Ae).forEach(function(t){e.component(Ae[t].name,Ae[t])})}},Me=I.SearchResults,Fe=I.SearchParameters;function ke(e,t,s){var n,i=I(t,s),a=P(e);return a.findResultsState=function(e){var t,s;try{t=require("vue-server-renderer/basic")}catch(e){}if(!t)throw new Error("you need to install vue-server-renderer");return Promise.resolve().then(function(){var t={serverPrefetch:void 0,fetch:void 0,_base:void 0,name:"ais-ssr-root-component"},n=e.$vnode?e.$vnode.componentOptions.Ctor.extend(t):Object.assign({},e.$options,t);(s=new R(n)).$options.serverPrefetch=[],s.instantsearch.helper=i,s.instantsearch.mainHelper=i,s.instantsearch.mainIndex.init({instantSearchInstance:s.instantsearch,parent:null,uiState:s.instantsearch._initialUiState})}).then(function(){return function(e,t){return new Promise(function(s,n){return t(e,function(e,t){e&&n(e),s(t)})})}(s,t)}).then(function(){return function(e){return new Promise(function(t,s){e.searchOnlyWithDerivedHelpers(),e.derivedHelpers[0].on("result",function(){t()}),e.derivedHelpers.forEach(function(e){return e.on("error",function(e){s(e)})})})}(i)}).then(function(){var e={};return function e(t,s){return s(t),t.getWidgets().forEach(function(t){"ais.index"===t.$$type&&(s(t),e(t,s))})}(s.instantsearch.mainIndex,function(t){e[t.getIndexId()]=t.getResults()}),a.hydrate(e),n=Object.keys(e).map(function(t){var s=e[t],n=s._state,i=s._rawResults;return[t,{_state:Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},{}),_rawResults:i}]}).reduce(function(e,t){var s=t[0],n=t[1];return e[s]=n,e},{__identifier:"stringified"}),a.getState()})},a.getState=function(){if(!n)throw new Error("You need to wait for findResultsState to finish");return n},a.__forceRender=function(e,t){var s=t.getHelper(),n=a.__initialSearchResults[t.getIndexId()],i=n._state;s.state=i;e.render({helper:s,results:n,state:i,templatesConfig:{},createURL:function(n){var i;return a._createURL(((i={})[t.getIndexId()]=t.getWidgets().filter(function(e){return"ais.index"!==e.$$type}).reduce(function(t,i){return e.getWidgetState?i.getWidgetState(t,{searchParameters:n,helper:s}):t},{}),i))},instantSearchInstance:a,searchMetadata:{isSearchStalled:!1}})},a.hydrate=function(e){if(e){var t="stringified"===e.__identifier?Object.keys(e).reduce(function(t,s){return"__identifier"===s?t:(t[s]=new Me(new Fe(e[s]._state),e[s]._rawResults),t)},{}):e;a.__initialSearchResults=t,a.helper=i,a.mainHelper=i,a.mainIndex.init({instantSearchInstance:a,parent:null,uiState:a._initialUiState})}else M("The result of `findResultsState()` needs to be passed to `hydrate()`.")},a}function Te(e){void 0===e&&(e={});var t=e.searchClient,s=e.indexName;if(!t||!s)throw new Error("createServerRootMixin requires `searchClient` and `indexName` in the first argument");var n=ke(e,t,s);return{provide:function(){return{$_ais_ssrInstantSearchInstance:this.instantsearch}},data:function(){return{instantsearch:n}}}}export default Le;export{k as AisAutocomplete,C as AisBreadcrumb,N as AisClearRefinements,$ as AisConfigure,B as AisCurrentRefinements,q as AisExperimentalConfigureRelatedItems,H as AisHierarchicalMenu,Y as AisHighlight,G as AisHits,K as AisHitsPerPage,J as AisIndex,ie as AisInfiniteHits,se as AisInstantSearch,ne as AisInstantSearchSsr,ae as AisMenu,re as AisMenuSelect,oe as AisNumericMenu,ue as AisPagination,ce as AisPanel,le as AisPoweredBy,he as AisQueryRuleContext,fe as AisQueryRuleCustomData,me as AisRangeInput,pe as AisRatingMenu,_e as AisRefinementList,be as AisSearchBox,Se as AisSnippet,Re as AisSortBy,ye as AisStateResults,we as AisStats,Pe as AisToggleRefinement,Ie as AisVoiceSearch,Te as createServerRootMixin,A as createSuitMixin,F as createWidgetMixin};
//# sourceMappingURL=vue-instantsearch.esm.js.map

@@ -19,3 +19,3 @@ {

"license": "MIT",
"version": "3.0.2",
"version": "3.0.3",
"files": [

@@ -22,0 +22,0 @@ "dist",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc