vue-instantsearch-ssr
Version:
👀 Lightning-fast Algolia search for Vue apps
1 lines • 71.3 kB
JavaScript
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var Vue=_interopDefault(require("vue")),connectors=require("instantsearch.js/cjs/connectors"),mitt=_interopDefault(require("mitt")),utils=require("instantsearch.js/cjs/lib/utils"),indexWidget=_interopDefault(require("instantsearch.js/cjs/widgets/index/index")),instantsearch=_interopDefault(require("instantsearch.js/cjs"));function suit(e,t,i){if(!e)throw new Error("You need to provide `widgetName` in your data");var n=["ais-"+e];return t&&n.push("-"+t),i&&n.push("--"+i),n.join("")}var createSuitMixin=function(e){var t=e.name;return{props:{classNames:{type:Object,default:void 0}},methods:{suit:function(e,i){var n=suit(t,e,i),s=this.classNames&&this.classNames[n];return s?[n,s].join(" "):n}}}},isVue2=!0,isVue3=!1,Vue2=Vue,version=Vue.version;function renderCompat(e){return function(t){return e.call(this,t)}}function getDefaultSlot(e){return e.$slots.default}var cache=new Set;function warn(e){cache.has(e)||(cache.add(e),console.warn(e))}var createWidgetMixin=function(e){var t;void 0===e&&(e={});var i=e.connector;return(t={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 i){if(this.factory=i(this.updateState,function(){}),this.widget=this.factory(this.widgetParams),this.getParentIndex().addWidgets([this.widget]),this.instantSearchInstance._initialResults&&!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!==i&&warn("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.getParentIndex().removeWidgets([this.widget])},t.watch={widgetParams:{handler:function(e){this.state=null,this.getParentIndex().removeWidgets([this.widget]),this.widget=this.factory(e),this.getParentIndex().addWidgets([this.widget])},deep:!0}},t.methods={updateState:function(e,t){void 0===e&&(e={}),t||(this.state=e)}},t},Autocomplete={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:e.suit()},[e._t("default",[i("p",[e._v("This widget doesn't render anything without a filled in default slot.")]),e._v(" "),i("p",[e._v("query, function to refine and results are provided.")]),e._v(" "),i("pre",[e._v("refine: Function")]),e._v(" "),i("pre",[e._v('currentRefinement: "'+e._s(e.state.currentRefinement)+'"')]),e._v(" "),i("details",[e._m(0),e._v(" "),i("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:[createWidgetMixin({connector:connectors.connectAutocomplete}),createSuitMixin({name:"Autocomplete"})],props:{escapeHTML:{type:Boolean,required:!1,default:!0}},computed:{widgetParams:function(){return{escapeHTML:this.escapeHTML}}}},PANEL_EMITTER_NAMESPACE="instantSearchPanelEmitter",PANEL_CHANGE_EVENT="PANEL_CHANGE_EVENT",createPanelProviderMixin=function(){var e;return(e={props:{emitter:{type:Object,required:!1,default:function(){return mitt()}}},provide:function(){var e;return(e={})[PANEL_EMITTER_NAMESPACE]=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.all.clear()},e.methods={updateCanRefine:function(e){this.canRefine=e}},e},createPanelConsumerMixin=function(e){var t=e.mapStateToCanRefine;return{inject:{emitter:{from:PANEL_EMITTER_NAMESPACE,default:function(){return{emit:function(){}}}}},data:function(){return{state:null,hasAlreadyEmitted:!1}},watch:{state:{immediate:!0,handler:function(e,i){if(e){var n=t(i||{}),s=t(e);this.hasAlreadyEmitted&&n===s||(this.emitter.emit(PANEL_CHANGE_EVENT,s),this.hasAlreadyEmitted=!0)}}}}}},Breadcrumb={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[i("ul",{class:e.suit("list")},[i("li",{class:[e.suit("item"),!e.state.items.length&&e.suit("item","selected")]},[Boolean(e.state.items.length)?i("a",{class:e.suit("link"),attrs:{href:e.state.createURL()},on:{click:function(t){return t.preventDefault(),e.state.refine()}}},[e._t("rootLabel",[e._v("Home")])],2):i("span",[e._t("rootLabel",[e._v("Home")])],2)]),e._v(" "),e._l(e.state.items,function(t,n){return i("li",{key:t.label,class:[e.suit("item"),e.isLastItem(n)&&e.suit("item","selected")]},[i("span",{class:e.suit("separator"),attrs:{"aria-hidden":"true"}},[e._t("separator",[e._v(">")])],2),e._v(" "),e.isLastItem(n)?i("span",[e._v(e._s(t.label))]):i("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t.value)},on:{click:function(i){return i.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:[createWidgetMixin({connector:connectors.connectBreadcrumb}),createPanelConsumerMixin({mapStateToCanRefine:function(e){return Boolean(e.canRefine)}}),createSuitMixin({name:"Breadcrumb"})],props:{attributes:{type:Array,required:!0},separator:{type:String,default:void 0},rootPath:{type:String,default:void 0},transformItems:{type:Function,default:void 0}},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}}},ClearRefinements={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:e.suit()},[e._t("default",[i("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:[createWidgetMixin({connector:connectors.connectClearRefinements}),createPanelConsumerMixin({mapStateToCanRefine:function(e){return Boolean(e.hasRefinements)}}),createSuitMixin({name:"ClearRefinements"})],props:{excludedAttributes:{type:Array,default:void 0},includedAttributes:{type:Array,default:void 0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{includedAttributes:this.includedAttributes,excludedAttributes:this.excludedAttributes,transformItems:this.transformItems}},canRefine:function(){return this.state.hasRefinements}}},Configure={inheritAttrs:!1,name:"AisConfigure",mixins:[createSuitMixin({name:"Configure"}),createWidgetMixin({connector:connectors.connectConfigure})],computed:{widgetParams:function(){return{searchParameters:this.$attrs}}},render:renderCompat(function(e){var t=this.$scopedSlots.default;return this.state&&t?e("div",{class:this.suit()},[t({refine:this.state.refine,searchParameters:this.state.widgetParams.searchParameters})]):null})},ConfigureRelatedItems={inheritAttrs:!1,name:"AisExperimentalConfigureRelatedItems",mixins:[createWidgetMixin({connector:connectors.EXPERIMENTAL_connectConfigureRelatedItems})],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}},CurrentRefinements={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:[e.suit(),e.noRefinement&&e.suit("","noRefinement")]},[e._t("default",[i("ul",{class:e.suit("list")},e._l(e.state.items,function(t){return i("li",{key:t.attribute,class:e.suit("item")},[e._t("item",[i("span",{class:e.suit("label")},[e._v(e._s(e.capitalize(t.label))+": ")]),e._v(" "),e._l(t.refinements,function(n){return i("span",{key:e.createItemKey(n),class:e.suit("category")},[e._t("refinement",[i("span",{class:e.suit("categoryLabel")},["query"===n.attribute?i("q",[e._v(e._s(n.label))]):[e._v(" "+e._s(n.label)+" ")]],2),e._v(" "),i("button",{class:e.suit("delete"),on:{click:function(e){return 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)}),0)],{refine:e.state.refine,items:e.state.items,createURL:e.state.createURL})],2):e._e()},staticRenderFns:[],name:"AisCurrentRefinements",mixins:[createSuitMixin({name:"CurrentRefinements"}),createWidgetMixin({connector:connectors.connectCurrentRefinements}),createPanelConsumerMixin({mapStateToCanRefine:function(e){return Boolean(e.items)&&e.items.length>0}})],props:{includedAttributes:{type:Array,default:void 0},excludedAttributes:{type:Array,default:void 0},transformItems:{type:Function,default:void 0}},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,i=e.value;return[t,e.type,i,e.operator].join(":")},capitalize:function(e){return e?e.toString().charAt(0).toLocaleUpperCase()+e.toString().slice(1):""}}},HierarchicalMenuList={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("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 i("li",{key:t.value,class:[e.suit("item"),t.data&&e.suit("item","parent"),t.isRefined&&e.suit("item","selected")]},[i("a",{class:e.suit("link"),attrs:{href:e.createURL(t.value)},on:{click:function(i){return i.preventDefault(),e.refine(t.value)}}},[i("span",{class:e.suit("label")},[e._v(e._s(t.label))]),e._v(" "),i("span",{class:e.suit("count")},[e._v(e._s(t.count))])]),e._v(" "),t.data?i("hierarchical-menu-list",{attrs:{items:t.data,level:e.level+1,refine:e.refine,createURL:e.createURL,suit:e.suit}}):e._e()],1)}),0)},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}}},mapStateToCanRefine=function(e){return Boolean(e.items)&&e.items.length>0},HierarchicalMenu={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[i("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?i("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,sendEvent:e.state.sendEvent})],2):e._e()},staticRenderFns:[],name:"AisHierarchicalMenu",mixins:[createSuitMixin({name:"HierarchicalMenu"}),createWidgetMixin({connector:connectors.connectHierarchicalMenu}),createPanelConsumerMixin({mapStateToCanRefine:mapStateToCanRefine})],components:{HierarchicalMenuList:HierarchicalMenuList},props:{attributes:{type:Array,required:!0},limit:{type:Number,default:void 0},showMoreLimit:{type:Number,default:void 0},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:void 0},separator:{type:String,default:void 0},rootPath:{type:String,default:void 0},showParentLevel:{type:Boolean,default:void 0},transformItems:{type:Function,default:void 0}},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 mapStateToCanRefine(this.state)}}},htmlUnescapes={"&":"&","<":"<",">":">",""":'"',"'":"'"},reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reHasEscapedHtml=RegExp(reEscapedHtml.source);function unescape(e){return e&&reHasEscapedHtml.test(e)?e.replace(reEscapedHtml,function(e){return htmlUnescapes[e]}):e}var TAG_PLACEHOLDER={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"};function parseHighlightedAttribute(e){var t=e.preTag,i=e.postTag,n=e.highlightedValue;void 0===n&&(n="");var s=n.split(t),a=s.shift(),r=""===a?[]:[{value:a,isHighlighted:!1}];if(i===t){var o=!0;s.forEach(function(e){r.push({value:e,isHighlighted:o}),o=!o})}else s.forEach(function(e){var t=e.split(i);r.push({value:t[0],isHighlighted:!0}),""!==t[1]&&r.push({value:" "===t[1]?" ":t[1],isHighlighted:!1})});return r}function parseAlgoliaHit(e){var t=e.preTag;void 0===t&&(t=TAG_PLACEHOLDER.highlightPreTag);var i=e.postTag;void 0===i&&(i=TAG_PLACEHOLDER.highlightPostTag);var n=e.highlightProperty,s=e.attribute,a=e.hit;if(!a)throw new Error("`hit`, the matching record, must be provided");var r=utils.getPropertyByPath(a[n],s)||{};return Array.isArray(r)?r.map(function(e){return parseHighlightedAttribute({preTag:t,postTag:i,highlightedValue:unescape(e.value)})}):parseHighlightedAttribute({preTag:t,postTag:i,highlightedValue:unescape(r.value)})}var TextNode={functional:!0,render:function(e,t){return t.slots().default}},AisHighlighter={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{class:e.suit()},e._l(e.parsedHighlights,function(t,n){var s=t.value,a=t.isHighlighted;return i(a?e.highlightedTagName:e.TextNode,{key:n,tag:"component",class:[a&&e.suit("highlighted")]},[e._v(e._s(s))])}),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:TextNode}},computed:{parsedHighlights:function(){return parseAlgoliaHit({attribute:this.attribute,hit:this.hit,highlightProperty:this.highlightProperty,preTag:this.preTag,postTag:this.postTag})}}},AisHighlight={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:[createSuitMixin({name:"Highlight"})],components:{AisHighlighter:AisHighlighter},props:{hit:{type:Object,required:!0},attribute:{type:String,required:!0},highlightedTagName:{type:String,default:"mark"}}},Hits={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:e.suit()},[e._t("default",[i("ol",{class:e.suit("list")},e._l(e.items,function(t,n){return i("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)}),0)],{items:e.items,insights:e.state.insights,sendEvent:e.state.sendEvent})],2):e._e()},staticRenderFns:[],name:"AisHits",mixins:[createWidgetMixin({connector:connectors.connectHitsWithInsights}),createSuitMixin({name:"Hits"})],props:{escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:void 0}},computed:{items:function(){return this.state.hits},widgetParams:function(){return{escapeHTML:this.escapeHTML,transformItems:this.transformItems}}}},HitsPerPage={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:e.suit()},[e._t("default",[i("select",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],class:e.suit("select"),on:{change:[function(t){var i=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?i:i[0]},e.handleChange]}},e._l(e.state.items,function(t){return i("option",{key:t.value,class:e.suit("option"),domProps:{value:t.value}},[e._v(e._s(t.label))])}),0)],{items:e.state.items,refine:e.state.refine,hasNoResults:e.state.hasNoResults})],2):e._e()},staticRenderFns:[],name:"AisHitsPerPage",mixins:[createSuitMixin({name:"HitsPerPage"}),createWidgetMixin({connector:connectors.connectHitsPerPage}),createPanelConsumerMixin({mapStateToCanRefine:function(e){return!1===e.hasNoResults}})],props:{items:{type:Array,required:!0},transformItems:{type:Function,default:void 0}},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)}}},connectIndex=function(){return indexWidget},Index={name:"AisIndex",mixins:[createSuitMixin({name:"Index"}),createWidgetMixin({connector:connectIndex})],provide:function(){var e=this;return{$_ais_getParentIndex:function(){return e.widget}}},props:{indexName:{type:String,required:!0},indexId:{type:String,required:!1}},render:renderCompat(function(e){return e("div",{},getDefaultSlot(this))}),computed:{widgetParams:function(){return{indexName:this.indexName,indexId:this.indexId}}}},version$1="4.3.3";function _objectSpread(e){for(var t=arguments,i=1;i<arguments.length;i++){var n=null!=t[i]?t[i]:{},s=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),s.forEach(function(t){_defineProperty(e,t,n[t])})}return e}function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var createInstantSearchComponent=function(e){var t;return _objectSpread(((t={mixins:[createSuitMixin({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},middlewares:{immediate:!0,handler:function(e,t){var i=this;(t||[]).filter(function(t){return-1===(e||[]).indexOf(t)}).forEach(function(e){i.instantSearchInstance.unuse(e)}),(e||[]).filter(function(e){return-1===(t||[]).indexOf(e)}).forEach(function(e){i.instantSearchInstance.use(e)})}}},created:function(){var e=this.instantSearchInstance.client;"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("Vue ("+version+")"),e.addAlgoliaAgent("Vue InstantSearch ("+version$1+")"))},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},t),e)},oldApiWarning="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",InstantSearch=createInstantSearchComponent({name:"AisInstantSearch",props:{searchClient:{type:Object,required:!0},insightsClient:{type:Function,default:void 0},indexName:{type:String,required:!0},routing:{default:void 0,validator:function(e){return!("boolean"==typeof e||!e.router&&!e.stateMapping)||(warn("The `routing` option expects an object with `router` and/or `stateMapping`.\n\nSee https://www.algolia.com/doc/api-reference/widgets/instantsearch/vue/#widget-param-routing"),!1)}},stalledSearchDelay:{type:Number,default:void 0},searchFunction:{type:Function,default:void 0},initialUiState:{type:Object,default:void 0},apiKey:{type:String,default:void 0,validator:function(e){return e&&warn(oldApiWarning),!1}},appId:{type:String,default:void 0,validator:function(e){return e&&warn(oldApiWarning),!1}},middlewares:{type:Array,default:null}},data:function(){return{instantSearchInstance:instantsearch({searchClient:this.searchClient,insightsClient:this.insightsClient,indexName:this.indexName,routing:this.routing,stalledSearchDelay:this.stalledSearchDelay,searchFunction:this.searchFunction,initialUiState:this.initialUiState})}},render:renderCompat(function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!1,t)},getDefaultSlot(this))})}),InstantSearchSsr=createInstantSearchComponent({name:"AisInstantSearchSsr",inject:{$_ais_ssrInstantSearchInstance:{default:function(){throw new Error("`createServerRootMixin` is required when using SSR.")}}},data:function(){return{instantSearchInstance:this.$_ais_ssrInstantSearchInstance}},render:renderCompat(function(e){var t;return e("div",{class:(t={},t[this.suit()]=!0,t[this.suit("","ssr")]=!0,t)},getDefaultSlot(this))})}),InfiniteHits={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:e.suit()},[e.showPrevious?e._t("loadPrevious",[i("button",{class:[e.suit("loadPrevious"),e.state.isFirstPage&&e.suit("loadPrevious","disabled")],attrs:{disabled:e.state.isFirstPage},on:{click:function(t){return 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",[i("ol",{class:e.suit("list")},e._l(e.items,function(t,n){return i("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)}),0),e._v(" "),e._t("loadMore",[i("button",{class:[e.suit("loadMore"),e.state.isLastPage&&e.suit("loadMore","disabled")],attrs:{disabled:e.state.isLastPage},on:{click:function(t){return 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,sendEvent:e.state.sendEvent})],2):e._e()},staticRenderFns:[],name:"AisInfiniteHits",mixins:[createWidgetMixin({connector:connectors.connectInfiniteHitsWithInsights}),createSuitMixin({name:"InfiniteHits"})],props:{showPrevious:{type:Boolean,default:!1},escapeHTML:{type:Boolean,default:!0},transformItems:{type:Function,default:void 0},cache:{type:Object,default:void 0}},computed:{widgetParams:function(){return{showPrevious:this.showPrevious,escapeHTML:this.escapeHTML,transformItems:this.transformItems,cache:this.cache}},items:function(){return this.state.hits}},methods:{refinePrevious:function(){this.state.showPrevious()},refineNext:function(){this.state.showMore()}}},Menu={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[i("ul",{class:e.suit("list")},e._l(e.state.items,function(t){return i("li",{key:t.value,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[i("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t.value)},on:{click:function(i){return i.preventDefault(),e.state.refine(t.value)}}},[i("span",{class:e.suit("label")},[e._v(e._s(t.label))]),e._v(" "),i("span",{class:e.suit("count")},[e._v(e._s(t.count))])])])}),0),e._v(" "),e.showShowMoreButton?i("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()}}},[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,sendEvent:e.state.sendEvent})],2):e._e()},staticRenderFns:[],name:"AisMenu",mixins:[createSuitMixin({name:"Menu"}),createWidgetMixin({connector:connectors.connectMenu}),createPanelConsumerMixin({mapStateToCanRefine:function(e){return Boolean(e.canRefine)}})],props:{attribute:{type:String,required:!0},limit:{type:Number,default:void 0},showMoreLimit:{type:Number,default:void 0},showMore:{type:Boolean,default:!1},sortBy:{type:[Array,Function],default:void 0},transformItems:{type:Function,default:void 0}},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}}},MenuSelect={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:[e.suit(),!e.state.canRefine&&e.suit("","noRefinement")]},[e._t("default",[i("select",{class:e.suit("select"),on:{change:function(t){return e.refine(t.currentTarget.value)}}},[i("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 i("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,sendEvent:e.state.sendEvent})],2):e._e()},staticRenderFns:[],name:"AisMenuSelect",mixins:[createSuitMixin({name:"MenuSelect"}),createWidgetMixin({connector:connectors.connectMenu}),createPanelConsumerMixin({mapStateToCanRefine:function(e){return Boolean(e.canRefine)}})],props:{attribute:{type:String,required:!0},limit:{type:Number,default:10},sortBy:{type:[Array,Function],default:void 0},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)}}},NumericMenu={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[i("ul",{class:[e.suit("list")]},e._l(e.state.items,function(t){return i("li",{key:t.label,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[i("label",{class:e.suit("label")},[i("input",{class:e.suit("radio"),attrs:{type:"radio",name:e.attribute},domProps:{value:t.value,checked:t.isRefined},on:{change:function(t){return e.state.refine(t.target.value)}}}),e._v(" "),i("span",{class:e.suit("labelText")},[e._v(e._s(t.label))])])])}),0)],{items:e.state.items,canRefine:e.canRefine,refine:e.state.refine,createURL:e.state.createURL,sendEvent:e.state.sendEvent})],2):e._e()},staticRenderFns:[],name:"AisNumericMenu",mixins:[createWidgetMixin({connector:connectors.connectNumericMenu}),createSuitMixin({name:"NumericMenu"}),createPanelConsumerMixin({mapStateToCanRefine:function(e){return!1===e.hasNoResults}})],props:{attribute:{type:String,required:!0},items:{type:Array,required:!0},transformItems:{type:Function,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,transformItems:this.transformItems,items:this.items}},canRefine:function(){return!this.state.hasNoResults}}},Pagination={render:function(){var e,t,i,n,s=this,a=s.$createElement,r=s._self._c||a;return s.state?r("div",{class:s.suit()},[s._t("default",[r("ul",{class:s.suit("list")},[s.showFirst?r("li",{class:(e={},e[s.suit("item")]=!0,e[s.suit("item","firstPage")]=!0,e[s.suit("item","disabled")]=s.state.isFirstPage,e)},[s._t("first",[s.state.isFirstPage?[r("span",{class:s.suit("link"),attrs:{"aria-label":"First"}},[s._v("‹‹")])]:[r("a",{class:s.suit("link"),attrs:{"aria-label":"First",href:s.state.createURL(0)},on:{click:function(e){return e.preventDefault(),s.refine(0)}}},[s._v("‹‹")])]],{createURL:function(){return s.state.createURL(0)},isFirstPage:s.state.isFirstPage,refine:function(){return s.refine(0)}})],2):s._e(),s._v(" "),s.showPrevious?r("li",{class:(t={},t[s.suit("item")]=!0,t[s.suit("item","previousPage")]=!0,t[s.suit("item","disabled")]=s.state.isFirstPage,t)},[s._t("previous",[s.state.isFirstPage?[r("span",{class:s.suit("link"),attrs:{"aria-label":"Previous"}},[s._v("‹")])]:[r("a",{class:s.suit("link"),attrs:{"aria-label":"Previous",href:s.state.createURL(s.state.currentRefinement-1)},on:{click:function(e){return e.preventDefault(),s.refine(s.state.currentRefinement-1)}}},[s._v("‹")])]],{createURL:function(){return s.state.createURL(s.state.currentRefinement-1)},isFirstPage:s.state.isFirstPage,refine:function(){return s.refine(s.state.currentRefinement-1)}})],2):s._e(),s._v(" "),s._l(s.state.pages,function(e){var t;return r("li",{key:e,class:(t={},t[s.suit("item")]=!0,t[s.suit("item","selected")]=s.state.currentRefinement===e,t)},[s._t("item",[r("a",{class:s.suit("link"),attrs:{href:s.state.createURL(e)},on:{click:function(t){return t.preventDefault(),s.refine(e)}}},[s._v(s._s(e+1))])],{page:e,createURL:function(){return s.state.createURL(e)},isFirstPage:s.state.isFirstPage,isLastPage:s.state.isLastPage,refine:function(){return s.refine(e)}})],2)}),s._v(" "),s.showNext?r("li",{class:(i={},i[s.suit("item")]=!0,i[s.suit("item","nextPage")]=!0,i[s.suit("item","disabled")]=s.state.isLastPage,i)},[s._t("next",[s.state.isLastPage?[r("span",{class:s.suit("link"),attrs:{"aria-label":"Next"}},[s._v("›")])]:[r("a",{class:s.suit("link"),attrs:{"aria-label":"Next",href:s.state.createURL(s.state.currentRefinement+1)},on:{click:function(e){return e.preventDefault(),s.refine(s.state.currentRefinement+1)}}},[s._v("›")])]],{createURL:function(){return s.state.createURL(s.state.currentRefinement+1)},isLastPage:s.state.isLastPage,refine:function(){return s.refine(s.state.currentRefinement+1)}})],2):s._e(),s._v(" "),s.showLast?r("li",{class:(n={},n[s.suit("item")]=!0,n[s.suit("item","lastPage")]=!0,n[s.suit("item","disabled")]=s.state.isLastPage,n)},[s._t("last",[s.state.isLastPage?[r("span",{class:s.suit("link"),attrs:{"aria-label":"Last"}},[s._v("››")])]:[r("a",{class:s.suit("link"),attrs:{"aria-label":"Last",href:s.state.createURL(s.state.nbPages-1)},on:{click:function(e){return e.preventDefault(),s.refine(s.state.nbPages-1)}}},[s._v("››")])]],{createURL:function(){return s.state.createURL(s.state.nbPages-1)},isLastPage:s.state.isLastPage,refine:function(){return s.refine(s.state.nbPages-1)}})],2):s._e()],2)],{refine:s.refine,createURL:s.state.createURL,currentRefinement:s.state.currentRefinement,nbHits:s.state.nbHits,nbPages:s.state.nbPages,pages:s.state.pages,isFirstPage:s.state.isFirstPage,isLastPage:s.state.isLastPage})],2):s._e()},staticRenderFns:[],name:"AisPagination",mixins:[createSuitMixin({name:"Pagination"}),createWidgetMixin({connector:connectors.connectPagination}),createPanelConsumerMixin({mapStateToCanRefine:function(e){return e.nbPages>1}})],props:{padding:{type:Number,default:void 0,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}}},emits:["page-change"],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)}}},Panel={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e.getSlot("header")?i("div",{class:e.suit("header")},[e._t("header",null,{hasRefinements:e.canRefine})],2):e._e(),e._v(" "),i("div",{class:e.suit("body")},[e._t("default",null,{hasRefinements:e.canRefine})],2),e._v(" "),e.getSlot("footer")?i("div",{class:e.suit("footer")},[e._t("footer",null,{hasRefinements:e.canRefine})],2):e._e()])},staticRenderFns:[],name:"AisPanel",mixins:[createSuitMixin({name:"Panel"}),createPanelProviderMixin()],methods:{getSlot:function(e){return this.$slots[e]||this.$scopedSlots[e]}}},PoweredBy={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.suit()},[i("a",{class:e.suit("link"),attrs:{href:e.algoliaUrl,target:"_blank",rel:"noopener","aria-label":"search by Algolia"}},[i("svg",{class:[e.suit("logo"),e.suit("",e.theme)],staticStyle:{height:"1.2em",width:"auto"},attrs:{viewBox:"0 0 168 24"}},[i("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(" "),i("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(" "),i("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(" "),i("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:[createSuitMixin({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"}}},QueryRuleContext={name:"AisQueryRuleContext",mixins:[createSuitMixin({name:"QueryRuleContext"}),createWidgetMixin({connector:connectors.connectQueryRules})],props:{trackedFilters:{type:Object,required:!0},transformRuleContexts:{type:Function,required:!1,default:void 0}},computed:{widgetParams:function(){return{trackedFilters:this.trackedFilters,transformRuleContexts:this.transformRuleContexts}}},render:function(){return null}},QueryRuleCustomData={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:e.suit()},[e._t("default",e._l(e.state.items,function(t,n){return i("div",{key:n},[e._t("item",[i("pre",[e._v(e._s(t))])],{item:t})],2)}),{items:e.state.items})],2):e._e()},staticRenderFns:[],name:"AisQueryRuleCustomData",mixins:[createSuitMixin({name:"QueryRuleCustomData"}),createWidgetMixin({connector:connectors.connectQueryRules})],props:{transformItems:{type:Function,required:!1,default:void 0}},computed:{widgetParams:function(){return{transformItems:this.transformItems}}}},mapStateToCanRefine$1=function(e){return e&&Boolean(e.range)&&e.range.min!==e.range.max},RangeInput={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:[e.suit(),!e.canRefine&&e.suit("","noRefinement")]},[e._t("default",[i("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)})}}},[i("label",{class:e.suit("label")},[e._t("minLabel"),e._v(" "),i("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(" "),i("span",{class:e.suit("separator")},[e._t("separator",[e._v("to")])],2),e._v(" "),i("label",{class:e.suit("label")},[e._t("maxLabel"),e._v(" "),i("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(" "),i("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,sendEvent:e.state.sendEvent})],2):e._e()},staticRenderFns:[],name:"AisRangeInput",mixins:[createSuitMixin({name:"RangeInput"}),createWidgetMixin({connector:connectors.connectRange}),createPanelConsumerMixin({mapStateToCanRefine:mapStateToCanRefine$1})],props:{attribute:{type:String,required:!0},min:{type:Number,required:!1,default:void 0},max:{type:Number,required:!1,default:void 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 mapStateToCanRefine$1(this.state)},step:function(){return 1/Math.pow(10,this.precision)},values:function(){var e=this.state.start,t=e[0],i=e[1],n=this.state.range,s=n.min,a=n.max;return{min:t!==-1/0&&t!==s?t:void 0,max:i!==1/0&&i!==a?i:void 0}}},methods:{pick:function(e,t){return null!=e?e:t},refine:function(e){var t=e.min,i=e.max;this.state.refine([t,i])}}},RatingMenu={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.state?i("div",{class:e.suit()},[e._t("default",[i("svg",{staticStyle:{display:"none"},attrs:{xmlns:"http://www.w3.org/2000/svg"}},[i("symbol",{attrs:{id:"ais-RatingMenu-starSymbol",viewBox:"0 0 24 24"}},[i("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(" "),i("symbol",{attrs:{id:"ais-RatingMenu-starEmptySymbol",viewBox:"0 0 24 24"}},[i("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(" "),i("ul",{class:e.suit("list")},e._l(e.state.items,function(t,n){return i("li",{key:n,class:[e.suit("item"),t.isRefined&&e.suit("item","selected")]},[i("a",{class:e.suit("link"),attrs:{href:e.state.createURL(t.value),"aria-label":t.value+" & Up"},on:{click:function(i){return i.preventDefault(),e.state.refine(t.value)}}},[e._l(t.stars,function(t,n){return[t?i("svg",{key:n+"-full",class:[e.suit("starIcon"),e.suit("starIcon--full")],attrs:{"aria-hidden":"true",width:"24",height:"24"}},[i("use",{attrs:{"xlink:href":"#ais-RatingMenu-starSymbol"}})]):i("svg",{key:n+"-empty",class:[e.suit("starIcon"),e.suit("starIcon--empty")],attrs:{"aria-hidden":"true",width:"24",height:"24"}},[i("use",{attrs:{"xlink:href":"#ais-RatingMenu-starEmptySymbol"}})])]}),e._v(" "),i("span",{class:e.suit("label"),attrs:{"aria-hidden":"true"}},[e._t("andUp",[e._v("& Up")])],2),e._v(" "),i("span",{class:e.suit("count")},[e._v(e._s(t.count))])],2)])}),0)],{items:e.state.items,refine:e.state.refine,createURL:e.state.createURL,sendEvent:e.state.sendEvent})],2):e._e()},staticRenderFns:[],name:"AisRatingMenu",mixins:[createSuitMixin({name:"RatingMenu"}),createWidgetMixin({connector:connectors.connectRatingMenu}),createPanelConsumerMixin({mapStateToCanRefine:function(e){return!1===e.hasNoResults}})],props:{attribute:{type:String,required:!0},max:{type:Number,default:void 0}},computed:{widgetParams:function(){return{attribute:this.attribute,max:this.max}}}},SearchInput={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("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)}}},[i("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||e.modelValue},on:{focus:function(t){return e.$emit("focus",t)},blur:function(t){return e.$emit("blur",t)},input:function(t){e.$emit("input",t.target.value),e.$emit("update:modelValue",t.target.value)}}}),e._v(" "),i("button",{class:e.suit("submit"),attrs:{type:"submit",title:e.submitTitle,hidden:e.showLoadingIndicator&&e.shouldShowLoadingIndicator}},[e._t("submit-icon",[i("svg",{class:e.suit("submitIcon"),attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40"}},[i("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(" "),i("button",{class:e.suit("reset"),attrs:{type:"reset",title:e.resetTitle,hidden:!e.value&&!e.modelValue||e.showLoadingIndicator&&e.shouldShowLoadingIndicator}},[e._t("reset-icon",[i("svg",{class:e.suit("resetIcon"),attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20"}},[i("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?i("span",{class:e.suit("loadingIndicator"),attrs:{hidden:!e.shouldShowLoadingIndicator}},[e._t("loading-indicator",[i("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"}},[i("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[i("g",{attrs:{transform:"translate(1 1)","stroke-width":"2"}},[i("circle",{attrs:{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}}),e._v(" "),i("path",{attrs:{d:"M36 18c0-9.94-8.06-18-18-18"}},[i("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:[createSuitMixin({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:!1,default:void 0},modelValue:{type:String,required:!1,default:void 0}},emits:["input","update:modelValue","blur","focus","reset"],data:function(){return{query:""}},methods:{onFormSubmit:function(){this.$refs.input.blur()},onFormReset:function(){this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("reset")}}},noop=function(){},RefinementList={r