@appbaseio/vue-searchbox-mongodb
Version:
Lightweight searchbox component for Vue
16 lines • 114 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],e):e((t=t||self).VueSearchbox={},t.Vue)}(this,(function(t,e){"use strict";function n(){return(n=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var r=["attrs","props","domProps"],i=["class","style","directives"],s=["on","nativeOn"],a=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}},o=function(t){return t.reduce((function(t,e){for(var o in e)if(t[o])if(-1!==r.indexOf(o))t[o]=n({},t[o],e[o]);else if(-1!==i.indexOf(o)){var u=t[o]instanceof Array?t[o]:[t[o]],c=e[o]instanceof Array?e[o]:[e[o]];t[o]=u.concat(c)}else if(-1!==s.indexOf(o))for(var l in e[o])if(t[o][l]){var h=t[o][l]instanceof Array?t[o][l]:[t[o][l]],f=e[o][l]instanceof Array?e[o][l]:[e[o][l]];t[o][l]=h.concat(f)}else t[o][l]=e[o][l];else if("hook"==o)for(var d in e[o])t[o][d]=t[o][d]?a(t[o][d],e[o][d]):e[o][d];else t[o]=e[o];else t[o]=e[o];return t}),{})};function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function c(t,e){return e||(e=t.slice(0)),t.raw=e,t}
/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function l(t){return!0==(null!=(e=t)&&"object"==typeof e&&!1===Array.isArray(e))&&"[object Object]"===Object.prototype.toString.call(t);var e}function h(t){var e,n;return!1!==l(t)&&("function"==typeof(e=t.constructor)&&(!1!==l(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}var f=Object.prototype,d=f.toString,g=f.hasOwnProperty,p=/^\s*function (\w+)/;function m(t){var e=null!=t?t.type?t.type:t:null,n=e&&e.toString().match(p);return n&&n[1]}function y(){}var v=function(){return!0},b=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},w=Array.isArray||function(t){return"[object Array]"===d.call(t)},C=function(t){return"[object Function]"===d.call(t)};function k(t,e,n){var r;return void 0===n&&(n=!1),Object.defineProperty(e,"_vueTypes_name",{enumerable:!1,writable:!1,value:t}),function(t){Object.defineProperty(t,"def",{value:function(t){return void 0!==t||this.default?C(t)||_(this,t)?(w(t)?this.default=function(){return[].concat(t)}:h(t)?this.default=function(){return Object.assign({},t)}:this.default=t,this):(S(this._vueTypes_name+' - invalid default value: "'+t+'"',t),this):this},enumerable:!1,writable:!1})}((r=e,Object.defineProperty(r,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1}))),n?function(t){Object.defineProperty(t,"validate",{value:function(t){return this.validator=t.bind(this),this},enumerable:!1})}(e):Object.defineProperty(e,"validate",{value:function(){return S(t+' - "validate" method not supported on this type'),this},enumerable:!1}),C(e.validator)&&(e.validator=e.validator.bind(e)),e}function _(t,e,n){void 0===n&&(n=!1);var r,i=t,s=!0;h(t)||(i={type:t});var a,o=i._vueTypes_name?i._vueTypes_name+" - ":"";if(g.call(i,"type")&&null!==i.type){if(void 0===i.type)throw new TypeError("[VueTypes error]: Setting type to undefined is not allowed.");if(!i.required&&void 0===e)return s;w(i.type)?(s=i.type.some((function(t){return _(t,e,!0)})),r=i.type.map((function(t){return m(t)})).join(" or ")):s="Array"===(r=m(i))?w(e):"Object"===r?h(e):"String"===r||"Number"===r||"Boolean"===r||"Function"===r?function(t){if(null==t)return null;var e=t.constructor.toString().match(p);return e&&e[1]}(e)===r:e instanceof i.type}return s?g.call(i,"validator")&&C(i.validator)?(n&&(a=S,S=y),s=i.validator(e),a&&(S=a),s||!1!==n||S(o+"custom validation failed"),s):s:(!1===n&&S(o+'value "'+e+'" should be of type "'+r+'"'),!1)}var S=y;var x,O,F={get any(){return k("any",{type:null},!0)},get func(){return k("function",{type:Function},!0).def(F.sensibleDefaults.func)},get bool(){return k("boolean",{type:Boolean},!0).def(F.sensibleDefaults.bool)},get string(){return k("string",{type:String},!0).def(F.sensibleDefaults.string)},get number(){return k("number",{type:Number},!0).def(F.sensibleDefaults.number)},get array(){return k("array",{type:Array},!0).def(F.sensibleDefaults.array)},get object(){return k("object",{type:Object},!0).def(F.sensibleDefaults.object)},get integer(){return k("integer",{type:Number,validator:function(t){return b(t)}}).def(F.sensibleDefaults.integer)},get symbol(){return k("symbol",{type:null,validator:function(t){return"symbol"==typeof t}},!0)},extend:function(t){if(void 0===t&&(t={}),w(t))return t.forEach((function(t){return F.extend(t)})),this;var e,n,r=t,i=r.name,s=r.validate,a=void 0!==s&&s,o=r.getter,u=void 0!==o&&o,c=function(t,e){if(null==t)return{};var n,r,i={},s=Object.keys(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(r,["name","validate","getter"]);if(e=F,n=i,g.call(e,n))throw new TypeError('[VueTypes error]: Type "'+i+'" already defined');var l,h=c.type,f=c.validator,d=void 0===f?v:f;if(h&&h._vueTypes_name){delete c.type;for(var p=["type","required","default"],m=0;m<p.length;m+=1){var y=p[m];void 0!==h[y]&&(c[y]=h[y])}a=!1,C(h.validator)&&(c.validator=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return h.validator.apply(h,e)&&d.apply(this,e)})}if(u)l={get:function(){return k(i,Object.assign({},c),a)},enumerable:!0,configurable:!1};else{var b=c.validator;l={value:function(){var t=k(i,Object.assign({},c),a);if(b){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.validator=b.bind.apply(b,[t].concat(n))}return t},writable:!1,enumerable:!0,configurable:!1}}return Object.defineProperty(this,i,l)},custom:function(t,e){if(void 0===e&&(e="custom validation failed"),"function"!=typeof t)throw new TypeError("[VueTypes error]: You must provide a function as argument");return k(t.name||"<<anonymous function>>",{validator:function(n){var r=t(n);return r||S(this._vueTypes_name+" - "+e),r}})},oneOf:function(t){if(!w(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");var e='oneOf - value should be one of "'+t.join('", "')+'"',n=t.reduce((function(t,e){return null!=e&&-1===t.indexOf(e.constructor)&&t.push(e.constructor),t}),[]);return k("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==t.indexOf(n);return r||S(e),r}})},instanceOf:function(t){return k("instanceOf",{type:t})},oneOfType:function(t){if(!w(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");var e=!1,n=t.reduce((function(t,n){if(h(n)){if("oneOf"===n._vueTypes_name)return t.concat(n.type||[]);if(C(n.validator))return e=!0,t;if(n.type){if(w(n.type))return t.concat(n.type);t.push(n.type)}return t}return t.push(n),t}),[]);if(!e)return k("oneOfType",{type:n});var r=t.map((function(t){return t&&w(t.type)?t.type.map(m):m(t)})).reduce((function(t,e){return t.concat(w(e)?e:[e])}),[]).join('", "');return this.custom((function(e){var n=t.some((function(t){return"oneOf"===t._vueTypes_name?!t.type||_(t.type,e,!0):_(t,e,!0)}));return n||S('oneOfType - value type should be one of "'+r+'"'),n}))},arrayOf:function(t){return k("arrayOf",{type:Array,validator:function(e){var n=e.every((function(e){return _(t,e)}));return n||S('arrayOf - value must be an array of "'+m(t)+'"'),n}})},objectOf:function(t){return k("objectOf",{type:Object,validator:function(e){var n=Object.keys(e).every((function(n){return _(t,e[n])}));return n||S('objectOf - value must be an object of "'+m(t)+'"'),n}})},shape:function(t){var e=Object.keys(t),n=e.filter((function(e){return t[e]&&!0===t[e].required})),r=k("shape",{type:Object,validator:function(r){var i=this;if(!h(r))return!1;var s=Object.keys(r);return n.length>0&&n.some((function(t){return-1===s.indexOf(t)}))?(S('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):s.every((function(n){return-1===e.indexOf(n)?!0===i._vueTypes_isLoose||(S('shape - object is missing "'+n+'" property'),!1):_(t[n],r[n])}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{enumerable:!1,writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this},enumerable:!1}),r}};x=F,O={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0},Object.defineProperty(x,"sensibleDefaults",{enumerable:!1,set:function(t){O=!1===t?{}:!0===t?{func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}:t},get:function(){return O}}),F.utils={validate:function(t,e){return _(e,t,!0)},toType:k},F.sensibleDefaults=!1;var A=F.shape({field:F.string,weight:F.number}),I=F.oneOfType([F.string,F.arrayOf(F.string),F.object,F.arrayOf(F.object)]),R={app:F.string.isRequired,url:F.string.def("https://scalr.api.appbase.io"),enableAppbase:F.bool.def(!1),enablePopularSuggestions:F.bool.def(!1),analytics:F.bool.def(!1),headers:F.object,dataField:F.oneOfType([F.string,F.arrayOf(F.oneOfType([F.string,A]))]),aggregationField:F.string,aggregationSize:F.number,nestedField:F.string,size:F.number.def(10),title:F.string,defaultValue:F.string,placeholder:F.string.def("Search"),showIcon:F.bool.def(!0),iconPosition:F.oneOf(["left","right"]).def("right"),icon:F.any,showClear:F.bool.def(!1),clearIcon:F.any,autosuggest:F.bool.def(!0),strictSelection:F.bool.def(!1),defaultSuggestions:F.arrayOf(F.object),debounce:F.number.def(0),highlight:F.bool.def(!1),highlightField:F.oneOfType([F.string,F.arrayOf(F.string)]),customHighlight:F.func,queryFormat:F.oneOf(["and","or"]).def("or"),fuzziness:F.oneOf([0,1,2,"AUTO"]),showVoiceSearch:F.bool.def(!1),searchOperators:F.bool.def(!1),render:F.func,renderPopularSuggestions:F.func,renderError:F.oneOfType([F.string,F.any]),renderNoSuggestion:F.oneOfType([F.string,F.any]),renderMic:F.func,innerClass:F.object,style:F.object,defaultQuery:F.func,beforeValueChange:F.func,className:F.string.def(""),loader:F.object,autoFocus:F.bool.def(!1),currentURL:F.string.def(""),searchTerm:F.string.def("search"),URLParams:F.bool.def(!1),appbaseConfig:F.shape({recordAnalytics:F.bool,enableQueryRules:F.bool,userId:F.string,customEvents:F.object}).def({recordAnalytics:!1}),showDistinctSuggestions:F.bool.def(!0),queryString:F.queryString,queryTypes:F.oneOf(["search","term","geo","range"]),reactType:F.shape({and:I,or:I,not:I}),sortType:F.oneOf(["asc","desc","count"]),sourceFields:F.arrayOf(F.string),focusShortcuts:F.arrayOf(F.oneOfType([F.string,F.number])),expandSuggestionsContainer:F.bool.def(!0)};function P(t){return null!=t&&"object"==typeof t&&1===t.nodeType}function D(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function j(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return D(n.overflowY,e)||D(n.overflowX,e)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return!1}function T(t,e,n,r,i,s,a,o){return s<t&&a>e||s>t&&a<e?0:s<=t&&o<=n||a>=e&&o>=n?s-t-r:a>e&&o<n||s<t&&o>n?a-e+i:0}var E=function(t,e){return t&&t[e]||""},z=function(t,e){clearTimeout(t._tId),t._tId=setTimeout((function(){t()}),e)},q=function(t,e){null!==t&&function(t,e){var n=window,r=e.scrollMode,i=e.block,s=e.inline,a=e.boundary,o=e.skipOverflowHiddenElements,u="function"==typeof a?a:function(t){return t!==a};if(!P(t))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,l=[],h=t;P(h)&&u(h);){if((h=h.parentNode)===c){l.push(h);break}h===document.body&&j(h)&&!j(document.documentElement)||j(h,o)&&l.push(h)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,p=window.scrollY||pageYOffset,m=t.getBoundingClientRect(),y=m.height,v=m.width,b=m.top,w=m.right,C=m.bottom,k=m.left,_="start"===i||"nearest"===i?b:"end"===i?C:b+y/2,S="center"===s?k+v/2:"end"===s?w:k,x=[],O=0;O<l.length;O++){var F=l[O],A=F.getBoundingClientRect(),I=A.height,R=A.width,D=A.top,E=A.right,z=A.bottom,q=A.left;if("if-needed"===r&&b>=0&&k>=0&&C<=d&&w<=f&&b>=D&&C<=z&&k>=q&&w<=E)return x;var V=getComputedStyle(F),Q=parseInt(V.borderLeftWidth,10),M=parseInt(V.borderTopWidth,10),L=parseInt(V.borderRightWidth,10),$=parseInt(V.borderBottomWidth,10),N=0,B=0,H="offsetWidth"in F?F.offsetWidth-F.clientWidth-Q-L:0,K="offsetHeight"in F?F.offsetHeight-F.clientHeight-M-$:0;if(c===F)N="start"===i?_:"end"===i?_-d:"nearest"===i?T(p,p+d,d,M,$,p+_,p+_+y,y):_-d/2,B="start"===s?S:"center"===s?S-f/2:"end"===s?S-f:T(g,g+f,f,Q,L,g+S,g+S+v,v),N=Math.max(0,N+p),B=Math.max(0,B+g);else{N="start"===i?_-D-M:"end"===i?_-z+$+K:"nearest"===i?T(D,z,I,M,$+K,_,_+y,y):_-(D+I/2)+K/2,B="start"===s?S-q-Q:"center"===s?S-(q+R/2)+H/2:"end"===s?S-E+L+H:T(q,E,R,Q,L+H,S,S+v,v);var W=F.scrollLeft,Z=F.scrollTop;_+=Z-(N=Math.max(0,Math.min(Z+N,F.scrollHeight-I+K))),S+=W-(B=Math.max(0,Math.min(W+B,F.scrollWidth-R+H)))}x.push({el:F,top:N,left:B})}return x}(t,{boundary:e,block:"nearest",scrollMode:"if-needed"}).forEach((function(t){var e=t.el,n=t.top,r=t.left;e.scrollTop=n,e.scrollLeft=r}))};function V(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Q=function(t){void 0===t&&(t={});var e=(t.$scopedSlots||t.$props).renderPopularSuggestions;return Boolean(e)};var M=function(t){return!(t&&t.length&&Object.keys(t).length)};function L(t){return/^-?\d+$/.test(t)}function $(t){return"string"==typeof t&&-1!==t.indexOf("+")}function N(t){var e=t,n=e-48*Math.floor(e/48);return String.fromCharCode(e>=96?n:e)}var B=["shift","ctrl","alt","control","option","cmd","command"];function H(t){return t.filter((function(t){return B.includes(t)}))}var K={name:"URLParamsProvider",inject:["searchbase"],props:{id:F.string.isRequired},mounted:function(){var t=this,e=this.$props.id;if(window){this.init(),window.addEventListener("popstate",(function(){var n={triggerCustomQuery:!0,triggerDefaultQuery:!0,stateChanges:!0};t.init();var r=t.getComponentInstance();if(r)if(t.params.has(e))try{var i=JSON.parse(t.params.get(e));(function t(e,n){if(e===n)return!0;if(!(e instanceof Object&&n instanceof Object))return!1;if(e.constructor!==n.constructor)return!1;for(var r in e)if(e.hasOwnProperty(r)){if(!n.hasOwnProperty(r))return!1;if(e[r]!==n[r]){if("object"!=typeof e[r])return!1;if(!t(e[r],n[r]))return!1}}for(var i in n)if(n.hasOwnProperty(i)&&!e.hasOwnProperty(i))return!1;return!0})(r.value,i)||r.setValue(i,n)}catch(t){console.error(t)}else r.value&&r.setValue(null,n)}));var n=this.getComponentInstance();n&&n.subscribeToStateChanges((function(n){var r;t.init(),t.checkForURLParamsChange(),!(r=n.value.next)||Array.isArray(r)&&!r.length?t.params.delete(e):t.params.set(e,JSON.stringify(n.value.next)),t.pushToHistory()}),["value"])}},beforeDestroy:function(){var t=this.$props.id;this.params.delete(t)},methods:{getComponentInstance:function(){return this.searchbase.getComponent(this.$props.id)},init:function(){this.searchString=window.location.search,this.params=new URLSearchParams(this.searchString)},checkForURLParamsChange:function(){var t;window&&(window.location.search!==this.searchString&&("function"==typeof Event?t=new Event("popstate"):(t=document.createEvent("Event")).initEvent("popstate",!0,!0),window.dispatchEvent(t)))},pushToHistory:function(){var t=this.params.toString()?"?"+this.params.toString():"",e=""+window.location.href.split("?")[0]+t;window.history.pushState&&window.history.pushState({path:e},"",e),this.init()}},render:function(){var t=arguments[0];return this.$slots.default?t("div",[this.$slots.default]):null},install:function(t){t.component(K.name,K)}},W={name:"search-component",inject:["searchbase"],props:{index:F.string,url:F.string,mongodb:F.object,credentials:F.string,headers:F.object,appbaseConfig:R.appbaseConfig,transformRequest:F.func,transformResponse:F.func,beforeValueChange:F.func,enablePopularSuggestions:F.bool,enablePredictiveSuggestions:F.bool,maxPopularSuggestions:F.number,clearOnQueryChange:F.bool,showDistinctSuggestions:R.showDistinctSuggestions,URLParams:F.bool,id:F.string.isRequired,value:F.any,type:R.queryTypes,react:R.reactType,queryFormat:R.queryFormat,dataField:R.dataField,categoryField:F.string,categoryValue:F.string,nestedField:F.string,from:F.number,size:F.number,sortBy:R.sortType,aggregationField:F.string,aggregationSize:F.number,after:F.object,includeNullValues:F.bool,includeFields:R.sourceFields,excludeFields:R.sourceFields,fuzziness:R.fuzziness,searchOperators:F.bool,highlight:F.bool,highlightField:F.string,customHighlight:F.object,interval:F.number,aggregations:F.arrayOf(F.string),missingLabel:F.string,showMissing:F.bool,defaultQuery:F.func,customQuery:F.func,enableSynonyms:F.bool,selectAllLabel:F.string,pagination:F.bool,queryString:F.bool,preserveResults:F.bool,render:F.func,distinctField:F.string,distinctFieldConfig:F.object,subscribeTo:F.arrayOf(F.string),triggerQueryOnInit:F.bool.def(!0)},data:function(){return{searchState:{}}},created:function(){var t=this,e=this.$props;this.$options&&this.$options.propsData&&(e=u({},this.$options.propsData));var n={};Object.keys(e).forEach((function(t){var r;n[(r=t,void 0===r&&(r=""),r.split("-").map((function(t,e){return e?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t})).join("")||"")]=e[t]})),this.rawProps=n;var r=this.rawProps,i=r.id,s=r.index,a=r.url,o=r.mongodb,c=r.credentials,l=r.headers,h=r.appbaseConfig,f=r.transformRequest,d=r.transformResponse,g=r.type,p=r.react,m=r.queryFormat,y=r.dataField,v=r.categoryField,b=r.categoryValue,w=r.nestedField,C=r.from,k=r.size,_=r.sortBy,S=r.aggregationField,x=r.aggregationSize,O=r.after,F=r.includeNullValues,A=r.includeFields,I=r.excludeFields,R=r.fuzziness,P=r.searchOperators,D=r.highlight,j=r.highlightField,T=r.customHighlight,E=r.interval,z=r.aggregations,q=r.missingLabel,V=r.showMissing,Q=r.defaultQuery,M=r.customQuery,L=r.enableSynonyms,$=r.selectAllLabel,N=r.pagination,B=r.queryString,H=r.enablePopularSuggestions,K=r.maxPopularSuggestions,W=r.enablePredictiveSuggestions,Z=r.showDistinctSuggestions,X=r.subscribeTo,U=r.preserveResults,Y=r.clearOnQueryChange,G=r.distinctField,J=r.distinctFieldConfig,tt=this.rawProps.value;if(window&&window.location&&window.location.search){var et=new URLSearchParams(window.location.search);if(et.has(i))try{tt=JSON.parse(et.get(i))}catch(t){console.error(t)}}var nt=this.searchbase.register(i,{index:s,url:a,mongodb:o,credentials:c,headers:l,appbaseConfig:h,transformRequest:f,transformResponse:d,value:tt,type:g,react:p,queryFormat:m,dataField:y,categoryField:v,categoryValue:b,nestedField:w,from:C,size:k,sortBy:_,aggregationField:S,aggregationSize:x,after:O,includeNullValues:F,includeFields:A,excludeFields:I,fuzziness:R,searchOperators:P,highlight:D,highlightField:j,customHighlight:T,interval:E,aggregations:z,missingLabel:q,showMissing:V,defaultQuery:Q,customQuery:M,enableSynonyms:L,selectAllLabel:$,pagination:N,queryString:B,enablePopularSuggestions:H,maxPopularSuggestions:K,enablePredictiveSuggestions:W,showDistinctSuggestions:Z,preserveResults:U,clearOnQueryChange:Y,distinctField:G,distinctFieldConfig:J,onValueChange:function(e,n){t.$emit("value",{prev:e,next:n})},onResults:function(e,n){t.$emit("results",{prev:e,next:n})},onAggregationData:function(e,n){t.$emit("aggregationData",{prev:e,next:n})},onError:function(e,n){t.$emit("error",{prev:e,next:n})},onRequestStatusChange:function(e,n){t.$emit("requestStatus",{prev:e,next:n})},onQueryChange:function(e,n){t.$emit("query",{prev:e,next:n})},onMicStatusChange:function(e,n){t.$emit("micStatus",{prev:e,next:n})}});Object.keys(nt.mappedProps).forEach((function(e){t.$set(t.searchState,e,nt.mappedProps[e])})),nt.subscribeToStateChanges((function(e){Object.keys(e).forEach((function(){t.searchState=nt.mappedProps}))}),X),(tt||M)&&this.componentInstance&&this.componentInstance.triggerCustomQuery()},mounted:function(){var t=this.$props.triggerQueryOnInit,e=this.getComponentInstance();t&&e.triggerDefaultQuery()},methods:{getComponentInstance:function(){return this.searchbase.getComponent(this.$props.id)}},render:function(){var t=arguments[0],e=this.$props,n=e.id,r=e.URLParams;if(this.$scopedSlots.default){var i=this.$scopedSlots.default;return r?t(K,{attrs:{id:n}},[i(this.searchState)]):t("div",[i(this.searchState)])}return null},install:function(t){t.component(W.name,W)}},Z="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var X={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function U(t){function e(t,e,r){var i=e.trim().split(g);e=i;var s=i.length,a=t.length;switch(a){case 0:case 1:var o=0;for(t=0===a?"":t[0]+" ";o<s;++o)e[o]=n(t,e[o],r).trim();break;default:var u=o=0;for(e=[];o<s;++o)for(var c=0;c<a;++c)e[u++]=n(t[c]+" ",i[o],r).trim()}return e}function n(t,e,n){var r=e.charCodeAt(0);switch(33>r&&(r=(e=e.trim()).charCodeAt(0)),r){case 38:return e.replace(p,"$1"+t.trim());case 58:return t.trim()+e.replace(p,"$1"+t.trim());default:if(0<1*n&&0<e.indexOf("\f"))return e.replace(p,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function r(t,e,n,s){var a=t+";",o=2*e+3*n+4*s;if(944===o){t=a.indexOf(":",9)+1;var u=a.substring(t,a.length-1).trim();return u=a.substring(0,t).trim()+u+";",1===I||2===I&&i(u,1)?"-webkit-"+u+u:u}if(0===I||2===I&&!i(a,1))return a;switch(o){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(x,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return f.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-moz-")+a:a;case 1e3:switch(e=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(e)){case 226:u=a.replace(b,"tb");break;case 232:u=a.replace(b,"tb-rl");break;case 220:u=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(e=(a=t).length-10,o=(u=(33===a.charCodeAt(e)?a.substring(0,e):a).substring(t.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<o?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(t))return 115===(u=t.substring(t.indexOf(":")+1)).charCodeAt(0)?r(t.replace("stretch","fill-available"),e,n,s).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+s&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function i(t,e){var n=t.indexOf(1===e?":":"{"),r=t.substring(0,3!==e?n:10);return n=t.substring(n+1,t.length-1),j(2!==e?r:r.replace(_,"$1"),n,e)}function s(t,e){var n=r(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return n!==e+";"?n.replace(C," or ($1)").substring(4):"("+e+")"}function a(t,e,n,r,i,s,a,o,c,l){for(var h,f=0,d=e;f<D;++f)switch(h=P[f].call(u,t,d,n,r,i,s,a,o,c,l)){case void 0:case!1:case!0:case null:break;default:d=h}if(d!==e)return d}function o(t){return void 0!==(t=t.prefix)&&(j=null,t?"function"!=typeof t?I=1:(I=2,j=t):I=0),o}function u(t,n){var o=t;if(33>o.charCodeAt(0)&&(o=o.trim()),o=[o],0<D){var u=a(-1,n,o,o,F,O,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var h=function t(n,o,u,h,f){for(var d,g,p,b,C,k=0,_=0,S=0,x=0,P=0,j=0,E=p=d=0,z=0,q=0,V=0,Q=0,M=u.length,L=M-1,$="",N="",B="",H="";z<M;){if(g=u.charCodeAt(z),z===L&&0!==_+x+S+k&&(0!==_&&(g=47===_?10:47),x=S=k=0,M++,L++),0===_+x+S+k){if(z===L&&(0<q&&($=$.replace(l,"")),0<$.trim().length)){switch(g){case 32:case 9:case 59:case 13:case 10:break;default:$+=u.charAt(z)}g=59}switch(g){case 123:for(d=($=$.trim()).charCodeAt(0),p=1,Q=++z;z<M;){switch(g=u.charCodeAt(z)){case 123:p++;break;case 125:p--;break;case 47:switch(g=u.charCodeAt(z+1)){case 42:case 47:t:{for(E=z+1;E<L;++E)switch(u.charCodeAt(E)){case 47:if(42===g&&42===u.charCodeAt(E-1)&&z+2!==E){z=E+1;break t}break;case 10:if(47===g){z=E+1;break t}}z=E}}break;case 91:g++;case 40:g++;case 34:case 39:for(;z++<L&&u.charCodeAt(z)!==g;);}if(0===p)break;z++}switch(p=u.substring(Q,z),0===d&&(d=($=$.replace(c,"").trim()).charCodeAt(0)),d){case 64:switch(0<q&&($=$.replace(l,"")),g=$.charCodeAt(1)){case 100:case 109:case 115:case 45:q=o;break;default:q=R}if(Q=(p=t(o,q,p,g,f+1)).length,0<D&&(C=a(3,p,q=e(R,$,V),o,F,O,Q,g,f,h),$=q.join(""),void 0!==C&&0===(Q=(p=C.trim()).length)&&(g=0,p="")),0<Q)switch(g){case 115:$=$.replace(w,s);case 100:case 109:case 45:p=$+"{"+p+"}";break;case 107:p=($=$.replace(m,"$1 $2"))+"{"+p+"}",p=1===I||2===I&&i("@"+p,3)?"@-webkit-"+p+"@"+p:"@"+p;break;default:p=$+p,112===h&&(N+=p,p="")}else p="";break;default:p=t(o,e(o,$,V),p,h,f+1)}B+=p,p=V=q=E=d=0,$="",g=u.charCodeAt(++z);break;case 125:case 59:if(1<(Q=($=(0<q?$.replace(l,""):$).trim()).length))switch(0===E&&(d=$.charCodeAt(0),45===d||96<d&&123>d)&&(Q=($=$.replace(" ",":")).length),0<D&&void 0!==(C=a(1,$,o,n,F,O,N.length,h,f,h))&&0===(Q=($=C.trim()).length)&&($="\0\0"),d=$.charCodeAt(0),g=$.charCodeAt(1),d){case 0:break;case 64:if(105===g||99===g){H+=$+u.charAt(z);break}default:58!==$.charCodeAt(Q-1)&&(N+=r($,d,g,$.charCodeAt(2)))}V=q=E=d=0,$="",g=u.charCodeAt(++z)}}switch(g){case 13:case 10:47===_?_=0:0===1+d&&107!==h&&0<$.length&&(q=1,$+="\0"),0<D*T&&a(0,$,o,n,F,O,N.length,h,f,h),O=1,F++;break;case 59:case 125:if(0===_+x+S+k){O++;break}default:switch(O++,b=u.charAt(z),g){case 9:case 32:if(0===x+k+_)switch(P){case 44:case 58:case 9:case 32:b="";break;default:32!==g&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===x+_+k&&(q=V=1,b="\f"+b);break;case 108:if(0===x+_+k+A&&0<E)switch(z-E){case 2:112===P&&58===u.charCodeAt(z-3)&&(A=P);case 8:111===j&&(A=j)}break;case 58:0===x+_+k&&(E=z);break;case 44:0===_+S+x+k&&(q=1,b+="\r");break;case 34:case 39:0===_&&(x=x===g?0:0===x?g:x);break;case 91:0===x+_+S&&k++;break;case 93:0===x+_+S&&k--;break;case 41:0===x+_+k&&S--;break;case 40:if(0===x+_+k){if(0===d)switch(2*P+3*j){case 533:break;default:d=1}S++}break;case 64:0===_+S+x+k+E+p&&(p=1);break;case 42:case 47:if(!(0<x+k+S))switch(_){case 0:switch(2*g+3*u.charCodeAt(z+1)){case 235:_=47;break;case 220:Q=z,_=42}break;case 42:47===g&&42===P&&Q+2!==z&&(33===u.charCodeAt(Q+2)&&(N+=u.substring(Q,z+1)),b="",_=0)}}0===_&&($+=b)}j=P,P=g,z++}if(0<(Q=N.length)){if(q=o,0<D&&(void 0!==(C=a(2,N,q,n,F,O,Q,h,f,h))&&0===(N=C).length))return H+N+B;if(N=q.join(",")+"{"+N+"}",0!=I*A){switch(2!==I||i(N,2)||(A=0),A){case 111:N=N.replace(v,":-moz-$1")+N;break;case 112:N=N.replace(y,"::-webkit-input-$1")+N.replace(y,"::-moz-$1")+N.replace(y,":-ms-input-$1")+N}A=0}}return H+N+B}(R,o,n,0,0);return 0<D&&(void 0!==(u=a(-2,h,o,o,F,O,h.length,0,0,0))&&(h=u)),"",A=0,O=F=1,h}var c=/^\0+/g,l=/[\0\r\f]/g,h=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,g=/,\r+?/g,p=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,k=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,O=1,F=1,A=0,I=1,R=[],P=[],D=0,j=null,T=0;return u.use=function t(e){switch(e){case void 0:case null:D=P.length=0;break;default:switch(e.constructor){case Array:for(var n=0,r=e.length;n<r;++n)t(e[n]);break;case Function:P[D++]=e;break;case Boolean:T=0|!!e}}return t},u.set=o,void 0!==t&&o(t),u}var Y,G,J=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t,e){t.exports=function(t){function e(e){if(e)try{t(e+"}")}catch(t){}}return function(n,r,i,s,a,o,u,c,l,h){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return t(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return t(i[0]+r),"";default:return r+(0===h?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(e)}}}})),tt=/[A-Z]|^ms/g,et=(Y=function(t){return t.replace(tt,"-$&").toLowerCase()},G={},function(t){return void 0===G[t]&&(G[t]=Y(t)),G[t]}),nt=function(t,e){return null==e||"boolean"==typeof e?"":1===X[t]||45===t.charCodeAt(1)||isNaN(e)||0===e?e:e+"px"},rt=function t(e){for(var n=e.length,r=0,i="";r<n;r++){var s=e[r];if(null!=s){var a=void 0;switch(typeof s){case"boolean":break;case"function":a=t([s()]);break;case"object":if(Array.isArray(s))a=t(s);else for(var o in a="",s)s[o]&&o&&(a&&(a+=" "),a+=o);break;default:a=s}a&&(i&&(i+=" "),i+=a)}}return i},it="undefined"!=typeof document;function st(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key||""),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),(void 0!==t.container?t.container:document.head).appendChild(e),e}var at=function(){function t(t){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=t}var e=t.prototype;return e.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=st(this.opts),this.injected=!0},e.speedy=function(t){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!t},e.insert=function(t,e){if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(this.tags[this.tags.length-1]);try{n.insertRule(t,n.cssRules.length)}catch(t){}}else{var r=st(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(t+(e||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(st(this.opts))},e.flush=function(){this.tags.forEach((function(t){return t.parentNode.removeChild(t)})),this.tags=[],this.ctr=0,this.injected=!1},t}();var ot=function(t,e){if(void 0!==t.__SECRET_EMOTION__)return t.__SECRET_EMOTION__;void 0===e&&(e={});var n,r,i=e.key||"css",s=J((function(t){n+=t,it&&o.insert(t,c)}));void 0!==e.prefix&&(r={prefix:e.prefix});var a={registered:{},inserted:{},nonce:e.nonce,key:i},o=new at(e);it&&o.inject();var u=new U(r);u.use(e.stylisPlugins)(s);var c="";function l(t,e){if(null==t)return"";switch(typeof t){case"boolean":return"";case"function":if(void 0!==t.__emotion_styles){var n=t.toString();return n}return l.call(this,void 0===this?t():t(this.mergedProps,this.context),e);case"object":return g.call(this,t);default:var r=a.registered[t];return!1===e&&void 0!==r?r:t}}var h,f,d=new WeakMap;function g(t){if(d.has(t))return d.get(t);var e="";return Array.isArray(t)?t.forEach((function(t){e+=l.call(this,t,!1)}),this):Object.keys(t).forEach((function(n){"object"!=typeof t[n]?void 0!==a.registered[t[n]]?e+=n+"{"+a.registered[t[n]]+"}":e+=et(n)+":"+nt(n,t[n])+";":Array.isArray(t[n])&&"string"==typeof t[n][0]&&void 0===a.registered[t[n][0]]?t[n].forEach((function(t){e+=et(n)+":"+nt(n,t)+";"})):e+=n+"{"+l.call(this,t[n],!1)+"}"}),this),d.set(t,e),e}var p=/label:\s*([^\s;\n{]+)\s*;/g,m=function(t,e){return function(t){for(var e,n=t.length,r=n^n,i=0;n>=4;)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+((1540483477*(e>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(e=1540483477*(65535&(e^=e>>>24))+((1540483477*(e>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&t.charCodeAt(i+2))<<16;case 2:r^=(255&t.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}(t+e)+e},y=function(t){var e=!0,n="",r="";null==t||void 0===t.raw?(e=!1,n+=l.call(this,t,!1)):n+=t[0];for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return s.forEach((function(r,i){n+=l.call(this,r,46===n.charCodeAt(n.length-1)),!0===e&&void 0!==t[i+1]&&(n+=t[i+1])}),this),f=n,n=n.replace(p,(function(t,e){return r+="-"+e,""})),h=m(n,r),n};function v(t,e){void 0===a.inserted[h]&&(n="",u(t,e),a.inserted[h]=n)}var b=function(){var t=y.apply(this,arguments),e=i+"-"+h;return void 0===a.registered[e]&&(a.registered[e]=f),v("."+e,t),e};function w(t,e){var n="";return e.split(" ").forEach((function(e){void 0!==a.registered[e]?t.push(e):n+=e+" "})),n}function C(t,e){var n=[],r=w(n,t);return n.length<2?t:r+b(n,e)}function k(t){a.inserted[t]=!0}if(it){var _=document.querySelectorAll("[data-emotion-"+i+"]");Array.prototype.forEach.call(_,(function(t){o.tags[0].parentNode.insertBefore(t,o.tags[0]),t.getAttribute("data-emotion-"+i).split(" ").forEach(k)}))}var S={flush:function(){it&&(o.flush(),o.inject()),a.inserted={},a.registered={}},hydrate:function(t){t.forEach(k)},cx:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return C(rt(e))},merge:C,getRegisteredStyles:w,injectGlobal:function(){var t=y.apply(this,arguments);v("",t)},keyframes:function(){var t=y.apply(this,arguments),e="animation-"+h;return v("","@keyframes "+e+"{"+t+"}"),e},css:b,sheet:o,caches:a};return t.__SECRET_EMOTION__=S,S}(void 0!==Z?Z:{}),ut=(ot.flush,ot.hydrate,ot.cx,ot.merge,ot.getRegisteredStyles),ct=ot.injectGlobal,lt=(ot.keyframes,ot.css),ht=(ot.sheet,ot.caches,function(t){for(var e=arguments,n=1;n<arguments.length;n++)for(var r in arguments[n])t[r]=e[n][r];return t}),ft="__emotion_styles";function dt(t){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gt(t){return Array.isArray(t)?t.join(" "):"object"===dt(t)?Object.keys(t).filter((function(e){return Boolean(t[e])})).join(" "):t}var pt=function(t,e){var n,r,i,s;void 0!==e&&(n=e.e,r=e.label,i=e.target,s=e.props);var a=t.__emotion_real===t,o=void 0===n&&a&&t.__emotion_base||t;return function(){var e=a&&void 0!==t[ft]?t[ft].slice(0):[];if(void 0!==r&&e.push("label:".concat(r,";")),void 0===n){for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];if(null===c[0]||void 0===c[0].raw)e.push.apply(e,c);else{e.push(c[0][0]);for(var h=c.length,f=1;f<h;f++)e.push(c[f],c[0][f])}}var d={name:"Styled".concat(t.name||r||"Component"),functional:!0,inject:{theme:{from:"theme_reactivesearch",default:null}},props:s,render:function(r,s){var a=s.data,o=s.children,u=s.props,c=s.injections,l="",h=[],f=gt(a.class),d={};for(var g in a.attrs)"$"!==g[0]&&(d[g]=a.attrs[g]);if(f&&(l+=void 0===n?ut(h,f):"".concat(f," ")),void 0===n){var p={mergedProps:ht({theme:c.theme},u)};l+=lt.apply(p,e.concat(h))}else l+=n;return void 0!==i&&(l+=" ".concat(i)),r(t,ht({},a,{attrs:d,class:l}),o)}};return d[ft]=e,d.__emotion_base=o,d.__emotion_real=d,Object.defineProperty(d,"toString",{enumerable:!1,value:function(){return".".concat(i)}}),d}};function mt(){var t=c(["\n display: flex;\n align-items: center;\n height: 42px;\n width: 100%;\n"]);return mt=function(){return t},t}var yt=pt("div")(mt());function vt(){var t=c(["\n flex: 1;\n position: relative;\n"]);return vt=function(){return t},t}yt.defaultProps={className:"input-group"};var bt=pt("div")(vt());function wt(){var t=c(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 2px 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"]);return wt=function(){return t},t}var Ct=pt("div")(wt());function kt(){var t=c(["\n padding-right: 90px;\n "]);return kt=function(){return t},t}function _t(){var t=c(["\n padding-right: 66px;\n "]);return _t=function(){return t},t}function St(){var t=c(["\n padding-right: 66px;\n "]);return St=function(){return t},t}function xt(){var t=c(["\n padding-right: 66px;\n "]);return xt=function(){return t},t}function Ot(){var t=c(["\n padding-right: 36px;\n "]);return Ot=function(){return t},t}function Ft(){var t=c(["\n padding-right: 36px;\n "]);return Ft=function(){return t},t}function At(){var t=c(["\n padding-right: 36px;\n "]);return At=function(){return t},t}function It(){var t=c(["\n padding-left: 36px;\n "]);return It=function(){return t},t}function Rt(){var t=c(["\n ","\n\n ",";\n\n ",";\n\n ",";\n ",";\n\n ",";\n\n ",";\n ",";\n ",";\n"]);return Rt=function(){return t},t}function Pt(){var t=c(["\n width: 100%;\n height: 42px;\n line-height: 42px;\n padding: 8px 12px;\n border: 1px solid #ccc;\n background-color: #fafafa;\n font-size: 0.9rem;\n outline: none;\n box-sizing: border-box;\n\n &:focus {\n background-color: #fff;\n }\n"]);return Pt=function(){return t},t}Ct.defaultProps={className:"input-addon"};var Dt=lt(Pt()),jt=pt("input")(Rt(),Dt,(function(t){return t.showIcon&&"left"===t.iconPosition&<(It())}),(function(t){return t.showIcon&&"right"===t.iconPosition&<(At())}),(function(t){return t.showClear&<(Ft())}),(function(t){return t.showVoiceSearch&<(Ot())}),(function(t){return t.showClear&&t.showIcon&&"right"===t.iconPosition&<(xt())}),(function(t){return t.showVoiceSearch&&t.showIcon&&"right"===t.iconPosition&<(St())}),(function(t){return t.showClear&&t.showVoiceSearch&<(_t())}),(function(t){return t.showClear&&t.showIcon&&t.showVoiceSearch&&"right"===t.iconPosition&<(kt())})),Tt={props:["isOpen","inputValue","selectedItem","highlightedIndex","handleChange","itemToString","handleMouseup"],data:function(){return{isMouseDown:!1,internal_isOpen:!1,internal_inputValue:"",internal_selectedItem:null,internal_highlightedIndex:null}},computed:{mergedState:function(){var t=this;return Object.keys(this.$props).reduce((function(e,n){var r;return u({},e,((r={})[n]=t.isControlledProp(n)?t.$props[n]:t["internal_"+n],r))}),{})},internalItemCount:function(){return this.items.length}},mounted:function(){window.addEventListener("mousedown",this.handleWindowMousedown),window.addEventListener("mouseup",this.handleWindowMouseup)},beforeDestroy:function(){window.removeEventListener("mousedown",this.handleWindowMousedown),window.removeEventListener("mouseup",this.handleWindowMouseup)},methods:{handleWindowMousedown:function(){this.isMouseDown=!0},handleWindowMouseup:function(t){this.isMouseDown=!1,t.target!==this.$refs.rootNode&&this.$refs.rootNode.contains(t.target)||!this.mergedState.isOpen||this.isMouseDown||(this.reset(),this.$props.handleMouseup&&this.$props.handleMouseup({isOpen:!1}))},keyDownArrowDown:function(t){t.preventDefault();var e=t.shiftKey?5:1;this.mergedState.isOpen?this.changeHighlightedIndex(e):(this.setState({isOpen:!0}),this.setHighlightedIndex())},keyDownArrowUp:function(t){t.preventDefault();var e=t.shiftKey?-5:-1;this.mergedState.isOpen?this.changeHighlightedIndex(e):(this.setState({isOpen:!0}),this.setHighlightedIndex())},keyDownEnter:function(t){this.mergedState.isOpen&&(t.preventDefault(),this.selectHighlightedItem())},keyDownEscape:function(t){t.preventDefault(),this.reset()},selectHighlightedItem:function(){return this.selectItemAtIndex(this.mergedState.highlightedIndex)},selectItemAtIndex:function(t){var e=this.items[t];null!=e&&this.selectItem(e)},selectItem:function(t){this.$props.handleChange&&this.$props.handleChange(t),this.setState({isOpen:!1,highlightedIndex:null,selectedItem:t,inputValue:this.isControlledProp("selectedItem")?"":t})},changeHighlightedIndex:function(t){if(!(this.internalItemCount<0)){var e=this.mergedState.highlightedIndex;null===e&&(e=t>0?-1:this.internalItemCount+1);var n=e+t;n<0?n=this.internalItemCount:n>this.internalItemCount&&(n=0),this.setHighlightedIndex(n)}},setHighlightedIndex:function(t){void 0===t&&(t=null),this.setState({highlightedIndex:t});var e=document.getElementById("Downshift"+t);q(e,this.rootNode)},reset:function(){var t=this.mergedState.selectedItem;this.setState({isOpen:!1,highlightedIndex:null,inputValue:t})},getItemProps:function(t){var e=t.index,n=t.item,r=e;return void 0===e?(this.$props.itemToString?this.items.push(this.$props.itemToString(n)):this.items.push(n),r=this.items.indexOf(n)):this.items[r]=n,{id:"Downshift"+r}},getItemEvents:function(t){var e=t.index,n=t.item,r=e;void 0===e&&(r=this.items.indexOf(n));var i=this;return{mouseenter:function(){i.setHighlightedIndex(r)},click:function(t){t.stopPropagation(),i.selectItemAtIndex(r)}}},getInputProps:function(t){var e=t.value,n=this.mergedState.inputValue;return e!==n&&this.setState({inputValue:e}),{value:n}},getButtonProps:function(t){var e=this,n=t.onClick,r=t.onKeyDown,i=t.onKeyUp,s=t.onBlur;return{click:function(t){e.setState({isOpen:!0,inputValue:t.target.value}),n&&n(t)},keydown:function(t){t.key&&e["keyDown"+t.key]&&e["keyDown"+t.key].call(e,t),r&&r(t)},keyup:function(t){i&&i(t)},blur:function(t){s&&s(t)}}},getInputEvents:function(t){var e=this,n=t.onInput,r=t.onBlur,i=t.onFocus,s=t.onKeyPress,a=t.onKeyDown,o=t.onKeyUp;return{input:function(t){e.setState({isOpen:!0,inputValue:t.target.value}),n&&n(t)},focus:function(t){i&&i(t)},keydown:function(t){t.key&&e["keyDown"+t.key]&&e["keyDown"+t.key].call(e,t),a&&a(t)},keypress:function(t){s&&s(t)},keyup:function(t){o&&o(t)},blur:function(t){r&&r(t)}}},getHelpersAndState:function(){return u({getItemProps:this.getItemProps,getItemEvents:this.getItemEvents,getInputProps:this.getInputProps,getInputEvents:this.getInputEvents,getButtonProps:this.getButtonProps},this.mergedState)},isControlledProp:function(t){return void 0!==this.$props[t]},setState:function(t){var e=this;Object.keys(t).map((function(n){e.isControlledProp(n)?e.$emit(n+"Change",t[n]):e["internal_"+n]=t[n]})),this.$emit("stateChange",this.mergedState)}},render:function(){var t=arguments[0];return this.items=[],t("div",{ref:"rootNode"},[this.$scopedSlots.default&&this.$scopedSlots.default(u({},this.getHelpersAndState()))])}};function Et(){var t=c(["\n position: relative;\n .cancel-icon {\n cursor: pointer;\n }\n .no-suggestions {\n border: 1px solid #ccc;\n border-top: 0;\n font-size: 0.9rem;\n padding: 10px;\n }\n"]);return Et=function(){return t},t}function zt(){var t=c(["\n display: block;\n width: 100%;\n border: 1px solid #ccc;\n background-color: #fff;\n font-size: 0.9rem;\n z-index: 3;\n position: absolute;\n top: 41px;\n margin: 0;\n padding: 0;\n list-style: none;\n max-height: 400px;\n overflow-y: auto;\n box-sizing: border-box;\n\n &.small {\n top: 30px;\n }\n\n li {\n display: flex;\n justify-content: space-between;\n cursor: pointer;\n padding: 10px;\n user-select: none;\n\n .trim {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n &:hover,\n &:focus {\n background-color: #eee;\n }\n\n .highlight-class {\n font-weight: 600;\n padding: 0;\n background-color: transparent;\n color: inherit;\n }\n }\n"]);return zt=function(){return t},t}var qt=lt(zt()),Vt=lt(Et()),Qt={props:["suggestion","currentValue"],render:function(){var t=arguments[0],e=this.$props,n=e.suggestion,r=e.currentValue,i=n.label,s=n.value,a=n.isPredictiveSuggestion,o=r.split(" ").map((function(t){return V(t)})),u=o.join("|");if(i){if("string"==typeof i)try{return t("div",{class:"trim",domProps:{innerHTML:a?i:i.replace(new RegExp(u,"ig"),(function(t){return'<mark class="highlight-class">'+t+"</mark>"}))}})}catch(t){return i}return i}return s}};function Mt(){var t=c(["\n margin: 0 0 8px;\n font-size: 1rem;\n color: #424242;\n"]);return Mt=function(){return t},t}var Lt=pt("h2")(Mt()),$t={functional:!0,render:function(t){return t("svg",{attrs:{alt:"Clear",xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 24 24",width:"20px",fill:"#000000"},class:"cancel-icon"},[t("title",["Clear"]),t("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),t("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}})])}};function Nt(){var t=c(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmax-width: 23px;\n\twidth: max-content;\n\tcursor: pointer;\n\theight: 100%;min-width:20px;\n\n\tsvg.search-icon {\n\t\tfill: #0B6AFF;\n\t}\n\n\tsvg.cancel-icon {\n\t\tfill: #595959;\n\t}\n"]);return Nt=function(){return t},t}var Bt=pt("div")(Nt());function Ht(){var t=c(["\n\t\t\t\t\tleft: 0;\n\t\t\t "]);return Ht=function(){return t},t}function Kt(){var t=c(["\n\t\t\t\t\tright: 0;\n\t\t\t "]);return Kt=function(){return t},t}function Wt(){var t=c(["\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t"]);return Wt=function(){return t},t}function Zt(){var t=c(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgrid-gap: 6px;\n\tmargin: 0 10px;\n\theight: 100%;\n\n\t",";\n\n\t",";\n"]);return Zt=function(){return t},t}var Xt=pt("div")(Zt(),(function(t){return"absolute"===t.positionType?lt(Wt()):null}),(function(t){var e=t.groupPosition;return lt("right"===e?Kt():Ht())})),Ut={functional:!0,render:function(t){return t("svg",{attrs:{alt:"Search",height:"12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"},class:"search-icon",style:{transform:"scale(1.25)",position:"relative"}},[t("title",["Search"]),t("path",{attrs:{d:"M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z"}})])}};function Yt(){var t=c(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"]);return Yt=function(){return t},t}ct(Yt());var Gt={name:"ListenSvg",props:["className","handleMicClick"],render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"el_hiibMG0x-",width:28,height:29,className:this.$props.className},style:{transform:"scale(1.5)"},on:{click:this.$props.handleMicClick}},[t("defs",[t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-1"}}),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-3"}}),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-5"}}),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-7"}}),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-9"}}),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-11"}}),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-13"}}),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-15"}})]),t("g",{attrs:{id:"el_QJeJ_2CDw5",fillRule:"evenodd"}},[t("g",{attrs:{id:"el_UYYCfubTRf"}},[t("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uzZNtK32Zi",fillRule:"nonzero"},style:{fill:"#0B6AFF"}}),t("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,0 76.9864699,0 C55.8825877,0 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_EYKQ2N9Kgy",fillRule:"nonzero"}}),t("g",{attrs:{id:"el_6SDP2LAgKC"}},[t("mask",{attrs:{id:"mask-2",fill:"#fff"}},[t("use",{attrs:{"xlink:href":"#path-1"}})]),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_-Vm65Ltfy7",fillRule:"nonzero",mask:"url(#mask-2)"}}),t("rect",{attrs:{id:"el_q04iZcSim4",mask:"url(#mask-2)",x:"0.279",width:"77",height:"130"}})]),t("g",{attrs:{id:"el_6WKby7wXqV"}},[t("mask",{attrs:{id:"mask-4",fill:"#fff"}},[t("use",{attrs:{"xlink:href":"#path-3"}})]),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_9bggsfQOtU",fillRule:"nonzero",mask:"url(#mask-4)"}}),t("rect",{attrs:{id:"el_NKxqi9eIym",mask:"url(#mask-4)",x:"0.279",width:"77",height:"115"}})]),t("g",{attrs:{id:"el_Wi-my975tM"}},[t("mask",{attrs:{id:"mask-6",fill:"#fff"}},[t("use",{attrs:{"xlink:href":"#path-5"}})]),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_zclQ34fvf7",fillRule:"nonzero",mask:"url(#mask-6)"}}),t("rect",{attrs:{id:"el_1OsvRT8HkeZ",mask:"url(#mask-6)",x:"0.279",width:"77",height:"100"}})]),t("g",{attrs:{id:"el_DkfFFTaFxy8"}},[t("mask",{attrs:{id:"mask-8",fill:"#fff"}},[t("use",{attrs:{"xlink:href":"#path-7"}})]),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_aa9sjx4H0vA",fillRule:"nonzero",mask:"url(#mask-8)"}}),t("rect",{attrs:{id:"el_tea114vWg0J",mask:"url(#mask-8)",x:"0.279",width:"77",height:"85"}})]),t("g",{attrs:{id:"el_34IgwiMB5rf"}},[t("mask",{attrs:{id:"mask-10",fill:"#fff"}},[t("use",{attrs:{"xlink:href":"#path-9"}})]),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_z5u6RAFhx7d",fillRule:"nonzero",mask:"url(#mask-10)"}}),t("rect",{attrs:{id:"el_7nfuWmA5Uhy",mask:"url(#mask-10)",x:"0.279",width:"77",height:"70"}})]),t("g",{attrs:{id:"el_DeebuCsPTGA"}},[t("mask",{attrs:{id:"mask-12",fill:"#fff"}},[t("use",{attrs:{"xlink:href":"#path-11"}})]),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el__ZcqlS20zcw",fillRule:"nonzero",mask:"url(#mask-12)"}}),t("rect",{attrs:{id:"el_8DnEQnD7VWV",mask:"url(#mask-12)",x:"0.279",width:"77",height:"55"}})]),t("g",{attrs:{id:"el_ZOjjrPTvyrv"}},[t("mask",{attrs:{id:"mask-14",fill:"#fff"}},[t("use",{attrs:{"xlink:href":"#path-13"}})]),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_FYYKCI_u24e",fillRule:"nonzero",mask:"url(#mask-14)"}}),t("rect",{attrs:{id:"el_XZty4MnTp5Y",mask:"url(#mask-14)",x:"0.279",width:"77",height:"40"}})]),t("g",{attrs:{id:"el_2FATegVmf0K"}},[t("mask",{attrs:{id:"mask-16",fill:"#fff"}},[t("use",{attrs:{"xlink:href":"#path-15"}})]),t("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_RMT1KUfbdF8",fillRule:"nonzero",mask:"url(#mask-16)"}}),t("rect",{attrs:{id:"el_RgLcovvFiO1",mask:"url(#mask-16)",x:"0.279",width:"77",height:"25"}})])])])])}};function Jt(){var t=c(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"]);return Jt=function(){return t},t}ct(Jt());var te={name:"MuteSvg",props:["className","handleMicClick"],render:function(){var t=arguments[0];return t("svg",{style:{transform:"scale(1.5)"},attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_D1rEpH2zj",width:28,height:28,className:this.$props.className},on:{click:this.$props.handleMicClick}},[t("g",{attrs:{id:"el_X81iT9kZYo",fillRule:"evenodd"}},[t("g",{attrs:{id:"el_gMpyalCphp"}},[t("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_c7H-3u-D4l",fillRule:"nonzero"},style:{fill:"#595959"}}),t("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_qhFcdAAFwo",fillRule:"nonzero"},style:{fill:"#595959"}}),t("path",{attrs:{d:"M11.5,206.5 L142.5,12.5",id:"el_M8X8g37WOI",strokeLinecap:"round",strokeLinejoin:"round"}})])])])}};function ee(){var t=c(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"]);return ee=function(){return t},t}ct(ee());var ne={name:"MicSvg",props:["className","handleMicClick"],render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_xS0FRzQjJ",width:28,height:28,className:this.$props.className},style:{transform:"scale(1.5)"},on:{click:this.$props.handleMicClick}},[t("g",{attrs:{id:"el_TvxDfTAtKp",fillRule:"evenodd"}},[t("g",{attrs:{id:"el_D93PK3GbmJ",fillRule:"nonzero"},style:{fill:"#595959"}},[t("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uly3EwA2O3"}}),t("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_tnDbR4ytu4"}})])])])}},re="STOPPED",ie="ACTIVE",se="DENIED",ae={props:["status","handleMicClick","className","applyClearStyle"],render:function(){var t=arguments[0],e=this.$props,n=e.status,r=e.className,i=e.handleMicClick;switch(n){case ie:return t(Gt,{attrs:{className:r,handleMicClick:i}});case re:case se:return t(te,{attrs:{className:r,handleMicClick:i}});default:return t(ne,{attrs:{className:r,handleMicClick:i}})}}},oe={props:["iconPosition","handleMicClick","className","status","showIcon","applyClearStyle"],render:function(){var t=arguments[0],e=this.$props,n=(e.iconPosition,e.className),r=e.handleMicClick,i=e.status;e.applyClearStyle,e.showIcon;return t(Bt,[t(ae,{attrs:{className:n,handleMicClick:r,status:i}})])}},ue={props:["showIcon","icon"],render:function(){var t=arguments[0],e=this.$props,n=e.showIcon,r=e.icon;return n?r||t(Ut):null}},ce={props:["clearValue","iconPosition","showClear","clearIcon","currentValue","handleSearchIconClick","showIcon","icon","enableVoiceSearch","innerClass","getMicInstance","micStatus","handleMicClick"],render:function(){var t=arguments[0],e=this.$props,n=e.clearValue,r=e.iconPosition,i=e.showClear,s=e.clearIcon,a=e.currentValue,o=e.handleSearchIconClick,u=e.showIcon,c=e.icon,l=e.enableVoiceSearch,h=e.innerClass,f=e.micStatus,d=e.handleMicClick;return t("div",[t(Xt,{attrs:{groupPosition:"right",positionType:"absolute"}},[a&&i&&t(Bt,{on:{click:n},attrs:{showIcon:u,isClearIcon:!0}},[s||t($t)]),l&&t(oe,{attrs:{className:E(h,"mic")||null,status:f,handleMicClick:d}}),"right"===r&&t(Bt,{attrs:{showIcon:u,iconPosition:r},on:{click:o}},[t(ue,{attrs:{showIcon:u,icon:c}})])]),t(Xt,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===r&&t(Bt,{attrs:{showIcon:u,iconPosition:r},on:{click:o}},[t(ue,{attrs:{showIcon:u,icon:c}})])])])}},le="ENTER_PRESS",he="SUGGESTION_SELECT",fe="CLEAR_VALUE",de="SEARCH_ICON_CLICK",ge={name:"CustomSvg",props:{className:String,icon:Function,type:String},data:function(){return{customIcon:this.$props.icon&&"function"==typeof this.$props.icon?this.$props.icon():null}},render:function(){var t=arguments[0];return this.customIcon?t("div",{class:this.$props.className},[this.customIcon]):"recent-search-icon"===this.$props.type?t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Searches",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}})]):t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Searches",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[t("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),t("path",{attrs:{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}})])}},pe={name:"search-box",inject:["searchbase"],props:{index:F.string,url:F.string,mongodb:F.object,credentials:F.string,headers:F.object,appbaseConfig:R.appbaseConfig,transformRequest:F.func,transformResponse:F.func,beforeValueChange:F.func,enablePopularSuggestions:F.bool,maxPopularSuggestions:F.number,maxRecentSearches:F.number,enablePredictiveSuggestions:F.bool,enableRecentSearches:F.bool,clearOnQueryChange:F.bool,showDistinctSuggestions:R.showDistinctSuggestions,URLParams:F.bool,id:F.string.isRequired,value:F.string.def(void 0),type:R.queryTypes,react:R.reactType,queryFormat:R.queryFormat,dataField:R.dataField,categoryField:F.string,categoryValue:F.string,nestedField:F.string,from:F.number,size:F.number,sortBy:R.sortType,aggregationField:F.string,aggregationSize:F.number,after:F.object,includeNullValues:F.bool,includeFields:R.sourceFields,excludeFields:R.sourceFields,fuzziness:R.fuzziness,searchOperators:F.bool,highlight:F.bool,highlightField:F.string,customHighlight:F.object,interval:F.number,aggregations:F.arrayOf(F.string),missingLabel:F.string,showMissing:F.bool,defaultQuery:F.func,customQuery:F.func,enableSynonyms:F.bool,selectAllLabel:F.string,pagination:F.bool,queryString:F.bool,distinctField:F.string,distinctFieldConfig:F.object,subscribeTo:F.arrayOf(F.string),triggerQueryOnInit:F.bool.def(!0),title:R.title,defaultValue:R.defaultValue,placeholder:R.placeholder,showIcon:R.showIcon,iconPosition:R.iconPosition,icon:R.icon,showClear:R.showClear,clearIcon:R.clearIcon,autosuggest:R.autosuggest,strictSelection:R.strictSelection,defaultSuggestions:R.defaultSuggestions,recentSearches:R.defaultSuggestions,debounce:R.debounce,showVoiceSearch:R.showVoiceSearch,render:R.render,renderError:R.renderError,renderNoSuggestion:R.renderNoSuggestion,renderPopularSuggestions:R.renderPopularSuggestions,renderMic:R.renderMic,innerClass:R.innerClass,className:R.className,loader:R.loader,autoFocus:R.autoFocus,loading:F.bool,error:F.any,micStatus:F.string,instanceValue:F.string,focusShortcuts:F.focusShortcuts,addonBefore:F.any,addonAfter:F.any,expandSuggestionsContainer:R.expandSuggestionsContainer},data:function(){return this.state={isOpen:!1},u({},this.state,{hotkeys:void 0,shouldUtilizeHotkeysLib:!1})},beforeMount:function(){var t=this.$props.focusShortcuts;if(!M(t)&&(this.shouldUtilizeHotkeysLib=function(t){for(var e=0;e<t.length;e+=1)if($(t[e]))return!0;return!1}(t)||!!H(t).length,this.shouldUtilizeHotkeysLib))try{this.hotkeys=require("hotkeys-js").default}catch(t){console.warn("Warning(SearchBox): The `hotkeys-js` library seems to be missing, it is required when using key combinations( eg: `ctrl+a`) in focusShortcuts prop.")}},mounted:function(){(document.addEventListener("keydown",this.onKeyDown),this.registerHotkeysListener(),this.aggregationField&&console.warn("Warning(SearchBox): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableRecentSearches&&this.autosuggest)&&(0,this.getComponentInstance().getRecentSearches)({size:this.maxRecentSearches||5,minChars:3})},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},computed:{hasCustomRenderer:function(){return function(t){void 0===t&&(t={});var e=(t.$scopedSlots||t.$props).render;return Boolean(e)}(this)},stats:function(){var t=this.$props.results,e=t.numberOfResults,n=t.time,r=t.hidden,i=t.promotedData,s=this.$props.size||10;return u({numberOfResults:e},s>0?{numberOfPages:Math.ceil(e/s)}:null,{time:n,hidden:r,promoted:i&&i.length})}},methods:{getComponentInstance:function(){var t=this.$props.id;return this.searchbase.getComponent(t)},getPopularSuggestionsList:function(){return(this.getComponentInstance().suggestions||[]).filter((function(t){return t.source._popular_suggestion}))},getSuggestionsList:function(){var t=this.$props,e=t.defaultSuggestions,n=t.instanceValue;return!n&&e?e:n?(this.getComponentInstance().suggestions||[]).filter((function(t){return!t.source._popular_suggestion})):[]},_applySetter:function(t,e,n){(function t(e,n){if(e===n)return!0;if(!e||!n||"object"!=typeof e&&"object"!=typeof n)return e===n;if(null==e||null==n)return!1;if(e.prototype!==n.prototype)return!1;var r=Object.keys(e);return r.length===Object.keys(n).length&&r.every((function(r){return t(e[r],n[r])}))})(t,e)||this.getComponentInstance()[n](e)},onValueSelectedHandler:function(t){void 0===t&&(t=this.$props.instanceValue);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",t].concat(n))},onInputChange:function(t){this.setValue({value:t.target.value,event:t})},onSuggestionSelected:function(t){this.setValue({value:t&&t.value,isOpen:!1,triggerCustomQuery:!0}),this.onValueSelectedHandler(t.value,he,t.source)},triggerDefaultQuery:function(){var t=this.getComponentInstance();t&&t.triggerDefaultQuery()},triggerCustomQuery:function(){var t=this.getComponentInstance();t&&t.triggerCustomQuery()},isControlled:function(){return!(void 0===this.$props.value||!this.$listeners.change)},setValue:function(t){var e=t.value,n=t.isOpen,r=void 0===n||n,i=function(t,e){if(null==t)return{};var n,r,i={},s=Object.keys(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,["value","isOpen"]),s=this.$props.debounce;this.isOpen=r;var a=this.getComponentInstance();this.enableRecentSearches&&!e&&a.value&&this.autosuggest&&a.getRecentSearches({size:this.maxRecentSearches||5,minChars:3}),this.isControlled()?(a.setValue(e,{triggerDefaultQuery:!1,triggerCustomQuery:!1}),this.$emit("change",e,a,i.event)):s>0?(a.setValue(e,{triggerDefaultQuery:!1,triggerCustomQuery:!1,stateChanges:!0}),this.autosuggest?(e?z(this.triggerDefaultQuery,s):a.clearResults(),z(this.triggerDefaultQuery,s)):z(this.triggerCustomQuery,s),i.triggerCustomQuery&&z(this.triggerCustomQuery,s)):(this.triggerSuggestionsQuery(e,null==i?void 0:i.triggerCustomQuery),this.autosuggest||this.triggerCustomQuery())},triggerSuggestionsQuery:function(t,e){var n=this.getComponentInstance();n&&(t?n.setValue(t,{triggerCustomQuery:e,triggerDefaultQuery:!0,stateChanges:!0}):n.setValue(t,{triggerCustomQuery:e,triggerDefaultQuery:!1,stateChanges:!0}))},handleFocus:function(t){this.isOpen=!0,this.withTriggerQuery("focus",t)},handleStateChange:function(t){var e=t.isOpen;this.isOpen=e},handleKeyDown:function(t,e){"Enter"===t.key&&null===e&&(this.setValue({value:t.target.value,isOpen:!1,triggerCustomQuery:!0}),this.onValueSelectedHandler(t.target.value,le)),this.withTriggerQuery("keyDown",t)},handleMicClick:function(){this.getComponentInstance().onMicClick(null)},renderInputAddonBefore:function(){var t=this.$createElement,e=this.$scopedSlots.addonBefore;return e?t(Ct,[e()]):null},renderInputAddonAfter:function(){var t=this.$createElement,e=this.$scopedSlots.addonAfter;return e?t(Ct,[e()]):null},renderIcons:function(){var t=this.$createElement,e=this.$props,n=e.iconPosition,r=e.showClear,i=e.clearIcon,s=e.innerClass,a=e.showVoiceSearch,o=e.icon,u=e.showIcon,c=this.$props,l=c.instanceValue,h=c.micStatus;return t(ce,{attrs:{clearValue:this.clearValue,iconPosition:n,showClear:r,clearIcon:i,currentValue:l,handleSearchIconClick:this.handleSearchIconClick,icon:o,showIcon:u,innerClass:s,enableVoiceSearch:a,micStatus:h,handleMicClick:this.handleMicClick}})},renderNoSuggestionComponent:function(){var t=this.$createElement,e=this.$props,n=e.innerClass,r=e.renderError,i=e.loading,s=e.error,a=e.instanceValue,o=this.$data.isOpen,u=this.getSuggestionsList(),c=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion;return!c||!o||u.length||i||!a||r&&s?null:t("div",{class:"no-suggestions "+E(n,"noSuggestion")},["function"==typeof c?c(a):c])},renderErrorComponent:function(){var t=this.$createElement,e=this.$props,n=e.innerClass,r=e.error,i=e.loading,s=e.instanceValue,a=this.$scopedSlots.renderError||this.$props.renderError;return r&&a&&s&&!i?t("div",{class:E(n,"error")},["function"==typeof a?a(r):a]):null},clearValue:function(){this.setValue({value:"",isOpen:!1,triggerCustomQuery:!0}),this.onValueSelectedHandler(null,fe)},handleSearchIconClick:function(){var t=this.$props.instanceValue;t.trim()&&(this.setValue({value:t,isOpen:!1,triggerCustomQuery:!0}),this.onValueSelectedHandler(t,de))},getBackgroundColor:function(t,e){return t===e?"#eee":"#fff"},getComponent:function(t,e){void 0===t&&(t={}),void 0===e&&(e=!1);var n=this.$props,r=n.instanceValue,i=n.loading,s=n.error,a=n.results,o=n.recentSearches,u=this.getPopularSuggestionsList(),c={loading:i,error:s,value:r,downshiftProps:t,data:this.getSuggestionsList(),promotedData:a.promotedData,customData:a.customData,resultStats:this.stats,rawData:a.rawData,recentSearches:o,popularSuggestions:u};return e?function(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=(e.$scopedSlots||e.$props).renderPopularSuggestions;return n?n(t):null}({downshiftProps:t,data:u,value:r,loading:i,error:s},this):function(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=(e.$scopedSlots||e.$props).render;return n?n(t):null}(c,this)},focusSearchBox:function(t){var e=t.target||t.srcElement,n=e.tagName;e.isContentEditable||"INPUT"===n||"SELECT"===n||"TEXTAREA"===n||this.$refs.searchInputField.focus()},onKeyDown:function(t){var e=this.$props.focusShortcuts,n=void 0===e?["/"]:e;if(!(M(n)||this.shouldUtilizeHotkeysLib&&"function"==typeof this.hotkeys)){var r=n.map((function(t){return"string"==typeof t?L(t)?parseInt(t,10):t.toUpperCase().charCodeAt(0):t})),i=t.which||t.keyCode,s=i-48*Math.floor(i/48);-1!==r.indexOf(i>=96?s:i)&&(this.focusSearchBox(t),t.stopPropagation(),t.preventDefault())}},withTriggerQuery:function(t,e){this.$emit(t,this.getComponentInstance(),e)},registerHotkeysListener:function(){var t=this,e=this.$props.focusShortcuts;this.shouldUtilizeHotkeysLib&&"function"==typeof this.hotkeys&&!M(e)&&(this.hotkeys(function(t){if(M(t))return[];var e=[];return t.forEach((function(t){if("string"==typeof t)if($(t)){for(var n,r=t.split("+"),i=[],s=0;s<r.length;s+=1)L(r[s])?i.push(N(+r[s])):i.push(r[s]);n=i.join("+"),e.push(n)}else L(t)?e.push(N(+t)):e.push(t);else e.push(N(t))})),e}(e).join(","),(function(e,n){e.preventDefault(),t.focusSearchBox(e)})),this.hotkeys("*",(function(n){var r=H(e);if(0!==r.length)for(var i=0;i<r.length;i+=1){var s=r[i];if(t.hotkeys[s]){t.focusSearchBox(n);break}}})))}},render:function(){var t=this,e=arguments[0],n=this.$props,r=n.className,i=n.innerClass,s=n.showIcon,a=n.showClear,o=n.showVoiceSearch,c=n.iconPosition,l=n.title,h=n.defaultSuggestions,f=n.autosuggest,d=n.placeholder,g=n.autoFocus,p=n.innerRef,m=n.size,y=n.instanceValue,v=n.recentSearches,b=n.expandSuggestionsContainer,w=this.$scopedSlots,C=w.recentSearchesIcon,k=w.popularSearchesIcon,_=this.getSuggestionsList(),S=this.getPopularSuggestionsList(),x=h&&h.length||v&&v.length;return e("div",{class:r},[l&&e(Lt,{class:E(i,"title")||""},[l]),x||f?e(Tt,{attrs:{id:"searchbox-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.isOpen},scopedSlots:{default:function(n){var r=n.getInputEvents,l=n.getInputProps,h=n.getItemProps,f=n.getItemEvents,p=n.isOpen,w=n.highlightedIndex,x=function(){return e("div",[t.hasCustomRenderer&&t.getComponent({isOpen:p,getItemProps:h,getItemEvents:f,highlightedIndex:w}),t.renderErrorComponent(),!t.hasCustomRenderer&&p?e("ul",{class:qt+" "+E(i,"list")},[_.slice(0,m).map((function(n,r){return e("li",{domProps:u({},h({item:n})),on:u({},f({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:t.getBackgroundColor(w,r)}},[e(Qt,{attrs:{currentValue:y,suggestion:n}})])})),y?null:(v||[]).map((function(n,r){return e("li",{domProps:u({},h({item:n})),on:u({},f({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:t.getBackgroundColor(w,r+_.length),justifyContent:"flex-start"}},[e("div",{style:{padding:"0 10px 0 0"}},[e(ge,{attrs:{iconId:r+1+"-"+n.value+"-icon",className:E(i,"recent-search-icon")||null,icon:C,type:"recent-search-icon"}})]),e(Qt,{attrs:{currentValue:y,suggestion:n}})])})),Q(t)?t.getComponent({isOpen:p,getItemProps:h,getItemEvents:f,highlightedIndex:w},!0):(S||[]).map((function(n,r){return e("li",{domProps:u({},h({item:n})),on:u({},f({item:n})),key:r+_.length+(y?0:v.length)+1+"-"+n.value,style:{backgroundColor:t.getBackgroundColor(w,r+_.length+(y?0:v.length)),justifyContent:"flex-start"}},[e("div",{style:{padding:"0 10px 0 0"}},[e(ge,{attrs:{iconId:r+1+"-"+n.value+"-icon",className:E(i,"popular-search-icon")||null,icon:k,type:"popular-search-icon"}})]),e(Qt,{attrs:{currentValue:y,suggestion:n}})])}))]):t.renderNoSuggestionComponent()])};return e("div",{class:Vt},[e(yt,[t.renderInputAddonBefore(),e(bt,[e(jt,{ref:"searchInputField",attrs:{showIcon:s,showClear:a,showVoiceSearch:o,iconPosition:c,placeholder:d,currentValue:y,autoFocus:g},class:E(i,"input"),on:u({},r({onInput:t.onInputChange,onBlur:function(e){t.withTriggerQuery("blur",e)},onFocus:t.handleFocus,onKeyPress:function(e){t.withTriggerQuery("key-press",e)},onKeyDown:function(e){return t.handleKeyDown(e,w)},onKeyUp:function(e){t.withTriggerQuery("key-up",e)}})),domProps:u({},l({value:y||""}))}),t.renderIcons(),!b&&x()]),t.renderInputAddonAfter()]),b&&x()])}}}):e("div",{class:Vt},[e(yt,[this.renderInputAddonBefore(),e(bt,[e(jt,{ref:"searchInputField",class:E(i,"input")||"",attrs:{placeholder:d,autoFocus:g,iconPosition:c,showIcon:s,showClear:a,showVoiceSearch:o,innerRef:p},on:u({},{blur:function(e){t.$emit("blur",e)},keypress:function(e){t.$emit("keyPress",e)},input:this.onInputChange,focus:function(e){t.$emit("focus",e)},keydown:function(e){t.$emit("keyDown",e)},keyup:function(e){t.$emit("keyUp",e)}}),domProps:u({},{autofocus:g,value:y||""})}),this.renderIcons()]),this.renderInputAddonAfter()])])])}},me={name:"search-box-wrapper",functional:!0,render:function(t,e){return t(W,o([{attrs:{value:"",triggerQueryOnInit:!!e.props.enablePopularSuggestions,clearOnQueryChange:!0}},{on:e.listeners,props:e.props,scopedSlots:{default:function(n){var r=n.loading,i=n.error,s=n.micStatus,a=n.results,u=n.value,c=n.recentSearches;return t(pe,o([{attrs:{loading:r,error:i,micStatus:s,results:a,recentSearches:c,instanceValue:u}},{attrs:e.data.attrs,on:e.listeners,scopedSlots:e.scopedSlots,slots:e.slots}]))}}},{attrs:{subscribeTo:["micStatus","error","requestPending","results","value","recentSearches"]}}]))}};function ye(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ve(t,e,n){return e&&ye(t.prototype,e),n&&ye(t,n),t}function be(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function we(){return(we=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Ce(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function ke(t,e){if(null==t)return{};var n,r,i={},s=Object.keys(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function _e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}me.install=function(t){t.component(pe.name,me)};var Se=function(){function t(){this.observers=[]}var e=t.prototype;return e.subscribe=function(t,e){this.observers.push({callback:t,properties:e})},e.unsubscribe=function(t){this.observers=t?this.observers.filter((function(e){return e.callback!==t?e:null})):[]},e.next=function(t,e,n){var r=n;!r&&window&&(r=window),this.observers.forEach((function(n){(void 0===n.properties||n.properties instanceof Array&&n.properties.length&&n.properties.includes(e)||"string"==typeof n.properties&&n.properties&&n.properties===e)&&n.callback.call(r,t)}))},t}();function xe(t){return"SearchBase: "+t}var Oe={invalidIndex:xe("Please provide a valid index."),invalidURL:xe("Please provide a valid url."),invalidComponentId:xe("Please provide component id."),invalidDataField:xe("Please provide data field."),dataFieldAsArray:xe("Only components with `search` type supports the multiple data fields. Please define `dataField` as a string.")},Fe=["key","key.autosuggest"],Ae="search",Ie=function(t){var e=[];return t&&(e=[].concat(t).map((function(t){var e=function(t){var e=we({},t);return e.highlight&&Object.keys(e.highlight).forEach((function(t){var n,r=e.highlight[t][0];e._source=we({},e._source,((n={})[t]=r,n))})),e}(t);return Object.keys(e).filter((function(t){return"_source"!==t})).reduce((function(t,n){return t[n]=e[n],t}),we({},e._source))}))),e},Re=function(t){if(t){if(!Array.isArray(t))return[t];if(t.length){var e=[];return t.forEach((function(t){"string"==typeof t?e.push(t):t.field&&e.push(t.field)})),e}}};var Pe=function(t){if(t&&Array.isArray(t)&&t.length){var e=[];return t.forEach((function(t){!function(t){return!Number.isNaN(parseFloat(t))&&Number.isFinite(t)}(t.weight)?e.push(1):e.push(t.weight)})),e}};function De(t,e){var n=[];return function t(e){e&&Object.keys(e)&&Object.keys(e).forEach((function(r){e[r]&&("string"==typeof e[r]?n=[].concat(n,[e[r]]):Array.isArray(e[r])?n=[].concat(n,e[r]):"object"==typeof e[r]&&t(e[r]))}))}(t),n=n.filter((function(t){return t!==e}))}var je=function(t){return"object"==typeof t?Array.isArray(t)?function t(e){return e.reduce((function(e,n){return e.concat(Array.isArray(n)?t(n):n)}),[])}(t):null:t};function Te(t){return void 0===t&&(t=""),t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Ee=function(t,e,n,r,i){void 0===t&&(t=[]),void 0===n&&(n=""),void 0===r&&(r=!0),void 0===i&&(i=!1);var s=[],a=[],o=!1,u=n||"",c=function(t,e,n){if((o||u.trim().split(" ").some((function(e){return String(t).toLowerCase().includes(e)})))&&!a.includes(t)||n._promoted){var i=we({},{label:t,value:t,source:n});if(a=[].concat(a,[t]),s=[].concat(s,[i]),r)return!0}return!1},l=function t(e,n,i){if(void 0===n&&(n=""),void 0===i&&(i=e),"object"==typeof e){var s=n.split("."),a=e[s[0]];if(a)if(s.length>1){var o=n.substring(s[0].length+1);Array.isArray(a)?a.forEach((function(e){t(e,o,i)})):t(a,o,i)}else{var u=je(a);if(u){if(Array.isArray(u)){if(r)return u.some((function(t){return c(t,0,i)}));u.forEach((function(t){return c(t,0,i)}))}return c(u,0,i)}}}return!1},h=function(){r?e.forEach((function(e){t.some((function(t){return l(e,t)}))})):e.forEach((function(e){t.forEach((function(t){l(e,t)}))}))};return h(),s.length<e.length&&!o&&(o=!0,h()),i?function(t){var e=t.suggestions,n=t.currentValue,r=t.wordsToShowAfterHighlight,i={};if(n){var s=n.trim();return e.reduce((function(t,e){var n=e.label,a=ke(e,["label"]),o=(new DOMParser).parseFromString(n,"text/html").documentElement.textContent,u="^("+Te(s)+")\\w+",c=new RegExp(u,"i"),l=c.exec(o);if(l||(u="^("+Te(s)+")",l=(c=new RegExp(u,"i")).exec(o)),l){var h=o.slice(l.index,o.length).slice(s.length).split(" ").slice(0,r+1).join(" "),f=s+'<mark class="highlight">'+h+"</mark>",d=""+s+h;return i[f]?t:(i[f]=1,[].concat(t,[we({},a,{label:f,value:d,isPredictiveSuggestion:!0})]))}return t}),[])}return[]}({suggestions:s,currentValue:n,wordsToShowAfterHighlight:!0}):s};function ze(t,e){if(t===e)return!0;if(!(t instanceof Object&&e instanceof Object))return!1;if(t.constructor!==e.constructor)return!1;for(var n in t)if(t.hasOwnProperty(n)){if(!e.hasOwnProperty(n))return!1;if(t[n]!==e[n]){if("object"!=typeof t[n])return!1;if(!ze(t[n],e[n]))return!1}}for(var r in e)if(e.hasOwnProperty(r)&&!t.hasOwnProperty(r))return!1;return!0}var qe={id:"id",type:"type",react:"react",queryFormat:"queryFormat",dataField:"dataField",categoryField:"categoryField",categoryValue:"categoryValue",nestedField:"nestedField",from:"from",size:"size",sortBy:"sortBy",value:"value",aggregationField:"aggregationField",aggregationSize:"aggregationSize",after:"after",includeNullValues:"includeNullValues",includeFields:"includeFields",excludeFields:"excludeFields",fuzziness:"fuzziness",searchOperators:"searchOperators",highlight:"highlight",highlightField:"highlightField",customHighlight:"customHighlight",interval:"interval",aggregations:"aggregations",missingLabel:"missingLabel",showMissing:"showMissing",enableSynonyms:"enableSynonyms",selectAllLabel:"selectAllLabel",pagination:"pagination",queryString:"queryString",enablePopularSuggestions:"enablePopularSuggestions",showDistinctSuggestions:"showDistinctSuggestions",error:"error",defaultQuery:"defaultQuery",customQuery:"customQuery",requestStatus:"requestStatus",results:"results",aggregationData:"aggregationData",micStatus:"micStatus",micInstance:"micInstance",micActive:"micActive",micInactive:"micInactive",micDenied:"micDenied",query:"query",requestPending:"loading",appbaseSettings:"appbaseConfig",suggestions:"suggestions",queryId:"queryId",recentSearches:"recentSearches",distinctField:"distinctField",distinctFieldConfig:"distinctFieldConfig",onMicClick:"handleMicClick",triggerDefaultQuery:"triggerDefaultQuery",triggerCustomQuery:"triggerCustomQuery",subscribeToStateChanges:"subscribeToStateChanges",unsubscribeToStateChanges:"unsubscribeToStateChanges",setDataField:"setDataField",setValue:"setValue",setSize:"setSize",setFrom:"setFrom",setFuzziness:"setFuzziness",setIncludeFields:"setIncludeFields",setExcludeFields:"setExcludeFields",setSortBy:"setSortBy",setReact:"setReact",setDefaultQuery:"setDefaultQuery",setCustomQuery:"setCustomQuery",setAfter:"setAfter"};function Ve(t){void 0===t&&(t="");for(var e,n=t,r="",i=0,s=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.charAt(0|s)||(a="=",s%1);r+=a.charAt(63&i>>8-s%1*8)){if((e=n.charCodeAt(s+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');i=i<<8|e}return r}var Qe=function(){function t(t){var e=t.index,n=t.url,r=t.credentials,i=t.mongodb,s=t.headers,a=t.appbaseConfig,o=t.transformRequest,u=t.transformResponse;if(!n)throw new Error(Oe.invalidURL);this.index=e,this.url=n,this.credentials=r||"",this.mongodb=i,a&&(this.appbaseConfig=a),o&&(this.transformRequest=o),u&&(this.transformResponse=u),this.headers={Accept:"application/json","Content-Type":"application/json"},s&&this.setHeaders(s),this.credentials&&(this.headers=we({},this.headers,{Authorization:"Basic "+Ve(this.credentials)}))}var e=t.prototype;return e.setHeaders=function(t){this.headers=we({},this.headers,t)},e.setQueryID=function(t){this._queryId=t},t}(),Me=function(){function t(t){var e=this;be(this,"setRaw",(function(t){e.raw=t,t.hits&&t.hits.hits&&e.setData(t.hits.hits)})),this.data=t||[]}return t.prototype.setData=function(t){var e,n=Ie(t);if(this.promotedData.length){var r=this.promotedData.map((function(t){return t._id})).filter(Boolean);r&&(n=n.filter((function(t){return!r.includes(t._id)}))),n=[].concat(this.promotedData.map((function(t){return we({},t,{_promoted:!0})})),n)}this.parseResults?this.data=this.parseResults(n,t):this.data=n,this.data=(void 0===(e=this.data)&&(e=[]),e.map((function(t,e){return we({},t,{_click_id:e+1})})))},ve(t,[{key:"numberOfResults",get:function(){return this.raw&&this.raw.hits?"object"==typeof this.raw.hits.total?this.raw.hits.total.value:this.raw.hits.total:0}},{key:"time",get:function(){return this.raw?this.raw.took:0}},{key:"hidden",get:function(){return this.raw&&this.raw.hits&&this.raw.hits.hidden||0}},{key:"promotedData",get:function(){return this.raw&&this.raw.promoted&&this.raw.promoted||[]}},{key:"promoted",get:function(){return this.promotedData.length||0}},{key:"rawData",get:function(){return this.raw||{}}},{key:"customData",get:function(){return this.raw&&this.raw.customData&&this.raw.customData||{}}}]),t}(),Le=function(){function t(t){this.data=t||[]}var e=t.prototype;return e.setRaw=function(t){this.raw=t,t.after_key&&this.setAfterKey(t.after_key)},e.setAfterKey=function(t){this.afterKey=t},e.setData=function(t,e,n){void 0===n&&(n=!1);var r,i,s=(r=t,void 0===(i=e)&&(i=[]),i.map((function(t){var e=t.doc_count,n=t.key,i=t[r];return we({_doc_count:e,_key:void 0!==n[r]?n[r]:n},i)})));this.data=n?[].concat(this.data,s):s},ve(t,[{key:"rawData",get:function(){return this.raw||{}}}]),t}(),$e={triggerDefaultQuery:!0,triggerCustomQuery:!1,stateChanges:!0},Ne={stateChanges:!0},Be="INACTIVE",He="ACTIVE",Ke="DENIED",We="INACTIVE",Ze="PENDING",Xe="ERROR",Ue=function(t){function e(e){var n,r=e.index,i=e.url,s=e.credentials,a=e.mongodb,o=e.appbaseConfig,u=e.headers,c=e.transformRequest,l=e.transformResponse,h=e.beforeValueChange,f=e.onValueChange,d=e.onResults,g=e.onAggregationData,p=e.onError,m=e.onRequestStatusChange,y=e.onQueryChange,v=e.onMicStatusChange,b=e.enablePopularSuggestions,w=e.maxPopularSuggestions,C=e.results,k=e.showDistinctSuggestions,_=e.enablePredictiveSuggestions,S=e.preserveResults,x=e.clearOnQueryChange,O=ke(e,["index","url","credentials","mongodb","appbaseConfig","headers","transformRequest","transformResponse","beforeValueChange","onValueChange","onResults","onAggregationData","onError","onRequestStatusChange","onQueryChange","onMicStatusChange","enablePopularSuggestions","maxPopularSuggestions","results","showDistinctSuggestions","enablePredictiveSuggestions","preserveResults","clearOnQueryChange"]);be(_e(n=t.call(this,{index:r,url:i,credentials:s,mongodb:a,headers:u,appbaseConfig:o,transformRequest:c,transformResponse:l})||this),"onMicClick",(function(t,e){void 0===t&&(t={}),void 0===e&&(e={triggerDefaultQuery:!1,triggerCustomQuery:!1,stateChanges:!0});var r=n._micStatus;if("undefined"!=typeof window&&(window.SpeechRecognition=window.webkitSpeechRecognition||window.SpeechRecognition||null),window&&window.SpeechRecognition&&r!==Ke){r===He&&n._setMicStatus(Be,e);var i=window.SpeechRecognition;if(n._micInstance)return void n._stopMic();n._micInstance=new i,n._micInstance.continuous=!0,n._micInstance.interimResults=!0,Object.assign(n._micInstance,t),n._micInstance.start(),n._micInstance.onstart=function(){n._setMicStatus(He,e)},n._micInstance.onresult=function(t){var r=t.results;r&&r[0]&&r[0].isFinal&&n._stopMic(),n._handleVoiceResults({results:r},e)},n._micInstance.onerror=function(t){"no-speech"===t.error||"audio-capture"===t.error?n._setMicStatus(Be,e):"not-allowed"===t.error&&n._setMicStatus(Ke,e),console.error(t)}}})),be(_e(n),"setDataField",(function(t,e){void 0===e&&(e=$e);var r=n.dataField;n.dataField=t,n._applyOptions(e,"dataField",r,t)})),be(_e(n),"setParent",(function(t){n._parent=t})),be(_e(n),"setValue",(function(t,e){void 0===e&&(e=$e);var r=function(){var r=n.value;n.value=t,n._applyOptions(e,"value",r,n.value)};n.beforeValueChange?n.beforeValueChange(t).then(r).catch((function(t){console.warn("beforeValueChange rejected the promise with ",t)})):r()})),be(_e(n),"setSize",(function(t,e){void 0===e&&(e=$e);var r=n.size;n.size=t,n._applyOptions(e,"size",r,n.size)})),be(_e(n),"setFrom",(function(t,e){void 0===e&&(e=$e);var r=n.from;n.from=t,n._applyOptions(e,"from",r,n.from)})),be(_e(n),"setFuzziness",(function(t,e){void 0===e&&(e=$e);var r=n.fuzziness;n.fuzziness=t,n._applyOptions(e,"fuzziness",r,n.fuzziness)})),be(_e(n),"setIncludeFields",(function(t,e){void 0===e&&(e=$e);var r=n.includeFields;n.includeFields=t,n._applyOptions(e,"includeFields",r,t)})),be(_e(n),"setExcludeFields",(function(t,e){void 0===e&&(e=$e);var r=n.excludeFields;n.excludeFields=t,n._applyOptions(e,"excludeFields",r,t)})),be(_e(n),"setSortBy",(function(t,e){void 0===e&&(e=$e);var r=n.sortBy;n.sortBy=t,n._applyOptions(e,"sortBy",r,t)})),be(_e(n),"setReact",(function(t,e){void 0===e&&(e=$e);var r=n.react;n.react=t,n._applyOptions(e,"react",r,t)})),be(_e(n),"setDefaultQuery",(function(t,e){void 0===e&&(e=$e);var r=n.defaultQuery;n.defaultQuery=t,n._applyOptions(e,"defaultQuery",r,t)})),be(_e(n),"setCustomQuery",(function(t,e){void 0===e&&(e=$e);var r=n.customQuery;n.customQuery=t,n._applyOptions(e,"customQuery",r,t)})),be(_e(n),"setAfter",(function(t,e){void 0===e&&(e=$e);var r=n.after;n.after=t,n.aggregationData.setAfterKey(t),n._applyOptions(e,"after",r,t)})),be(_e(n),"triggerDefaultQuery",(function(t){if(void 0===t&&(t=Ne),ze(n._query,n.componentQuery))return Promise.resolve(!0);var e=function(e){return n._setError(e,{stateChanges:t.stateChanges}),console.error(e),Promise.reject(e)};try{return n._updateQuery(),n._setRequestStatus(Ze),n._lastRequestTimeDefaultQuery=(new Date).getTime(),n._fetchRequest({query:Array.isArray(n.query)?n.query:[n.query],settings:n.appbaseSettings}).then((function(r){if(n._lastRequestTimeDefaultQuery<r._timestamp){var i=n.results,s=r&&r[n.id],a=function(){s.aggregations&&n._handleAggregationResponse(s.aggregations,we({defaultOptions:$e},t)),n._setRequestStatus(We),n._applyOptions({stateChanges:t.stateChanges},"results",i,n.results)};return n.type&&n.type!==Ae||!n.enablePopularSuggestions?(n._appendResults(s),a()):n._fetchRequest(n.getSuggestionsQuery(),!0).then((function(t){var e=t.DataSearch__suggestions;e&&e.hits&&e.hits.hits&&s.hits&&s.hits.hits&&(s.hits.hits=[].concat((e.hits.hits||[]).map((function(t){return we({},t,{_popular_suggestion:!0})})),s.hits.hits)),n._appendResults(s),a()})).catch(e),Promise.resolve(s)}return Promise.resolve([])})).catch(e)}catch(t){return e(t)}})),be(_e(n),"triggerCustomQuery",(function(t){void 0===t&&(t=Ne);var e=n._generateQuery(),r=e.requestBody,i=e.orderOfQueries;if(!r.length)return Promise.resolve({});if(ze(n._query,r))return Promise.resolve(!0);var s=function(e){return n._setError(e,{stateChanges:t.stateChanges}),console.error(e),Promise.reject(e)};try{i.forEach((function(t){var e=n._parent.getComponent(t);e&&(e.setFrom(0,{stateChanges:!0,triggerDefaultQuery:!1,triggerCustomQuery:!1}),e.setAfter(void 0,{stateChanges:!0,triggerDefaultQuery:!1,triggerCustomQuery:!1}),n.clearOnQueryChange&&n._query&&e.setValue(void 0,{stateChanges:!0,triggerDefaultQuery:!1,triggerCustomQuery:!1}),e._setRequestStatus(Ze),e._updateQuery())})),n._lastRequestTimeCustomQuery=(new Date).getTime();var a=n._generateQuery().requestBody;return n._fetchRequest({query:a,settings:n.appbaseSettings}).then((function(e){return n._lastRequestTimeCustomQuery<e._timestamp?(i.forEach((function(r){var i=n._parent.getComponent(r);if(i){i._setRequestStatus(We);var s=i.results,a=e&&e[r];a.hits&&(i.results.setRaw(a),i._applyOptions({stateChanges:t.stateChanges},"results",s,i.results)),a.aggregations&&i._handleAggregationResponse(a.aggregations,we({defaultOptions:$e},t),!1)}})),Promise.resolve(e)):Promise.resolve([])})).catch(s)}catch(t){return s(t)}})),be(_e(n),"subscribeToStateChanges",(function(t,e){n.stateChanges.subscribe(t,e)})),be(_e(n),"unsubscribeToStateChanges",(function(t){n.stateChanges.unsubscribe(t)})),be(_e(n),"clearResults",(function(t){void 0===t&&(t=Ne);var e=n.results;n.results.setRaw({hits:{hits:[]}}),n._applyOptions({stateChanges:t.stateChanges},"results",e,n.results)})),be(_e(n),"getRecentSearches",(function(t,e){void 0===t&&(t={size:5,minChars:3}),void 0===e&&(e=Ne);var r={headers:we({},n.headers)},i="",s=function(t,e){i+=i?"&"+t+"="+e:t+"="+e};return n.appbaseSettings&&n.appbaseSettings.userId&&s("user_id",n.appbaseSettings.userId),t&&(t.size&&s("size",String(t.size)),t.from&&s("from",t.from),t.to&&s("to",t.to),t.minChars&&s("min_chars",String(t.minChars)),t.customEvents&&Object.keys(t.customEvents).forEach((function(e){s(e,t.customEvents[e])}))),new Promise((function(t,s){fetch(n.url+"/_analytics/recent-searches?"+i,r).then((function(r){return r.status>=500||r.status>=400?s(r):r.json().then((function(r){var i=n.recentSearches;n.recentSearches=r.map((function(t){return{label:t.key,value:t.key}})),n._applyOptions({stateChanges:e.stateChanges},"recentSearches",i,n.recentSearches),t(n.recentSearches)})).catch((function(t){return console.warn("SearchBase: error while fetching the recent searches ",t),s(t)}))})).catch((function(t){return console.warn("SearchBase: error while fetching the recent searches ",t),s(t)}))}))})),be(_e(n),"_handleVoiceResults",(function(t,e){var r=t.results;void 0===e&&(e=$e),r&&r[0]&&r[0].isFinal&&r[0][0]&&r[0][0].transcript&&r[0][0].transcript.trim()&&n.setValue(r[0][0].transcript.trim(),we({},e,{triggerCustomQuery:!0,triggerDefaultQuery:!0}))})),be(_e(n),"_stopMic",(function(){n._micInstance&&(n._micInstance.stop(),n._micInstance=null,n._setMicStatus(Be))})),be(_e(n),"_setMicStatus",(function(t,e){void 0===e&&(e=$e);var r=n._micStatus;n._micStatus=t,n._applyOptions(e,"micStatus",r,n._micStatus)}));var F=O.id,A=O.type,I=O.react,R=O.queryFormat,P=O.dataField,D=O.categoryField,j=O.categoryValue,T=O.nestedField,E=O.from,z=O.size,q=O.sortBy,V=O.value,Q=O.aggregationField,M=O.aggregationSize,L=O.after,$=O.includeNullValues,N=O.includeFields,B=O.excludeFields,H=O.fuzziness,K=O.searchOperators,W=O.highlight,Z=O.highlightField,X=O.customHighlight,U=O.interval,Y=O.aggregations,G=O.missingLabel,J=O.showMissing,tt=O.defaultQuery,et=O.customQuery,nt=O.execute,rt=O.enableSynonyms,it=O.selectAllLabel,st=O.pagination,at=O.queryString,ot=O.distinctField,ut=O.distinctFieldConfig;if(!F)throw new Error(Oe.invalidComponentId);if(A&&A!==Ae&&Array.isArray(P))throw new Error(Oe.dataFieldAsArray);return n.id=F,n.type=A,n.react=I,n.queryFormat=R,n.dataField=P,n.categoryField=D,n.categoryValue=j,n.nestedField=T,n.from=E,n.size=z,n.sortBy=q,n.aggregationField=Q,n.aggregationSize=M,n.after=L,n.includeNullValues=$,n.includeFields=N,n.excludeFields=B,n.fuzziness=H,n.searchOperators=K,n.highlight=W,n.highlightField=Z,n.customHighlight=X,n.interval=U,n.aggregations=Y,n.missingLabel=G,n.showMissing=J,n.execute=nt,n.enableSynonyms=rt,n.selectAllLabel=it,n.pagination=st,n.queryString=at,n.defaultQuery=tt,n.customQuery=et,n.beforeValueChange=h,n.onValueChange=f,n.onResults=d,n.onAggregationData=g,n.onError=p,n.onRequestStatusChange=m,n.onQueryChange=y,n.onMicStatusChange=v,n.distinctField=ot,n.distinctFieldConfig=ut,n.enablePopularSuggestions=b,n.maxPopularSuggestions=w,n.showDistinctSuggestions=k,n.enablePredictiveSuggestions=_,n.preserveResults=S,n.clearOnQueryChange=x,n.stateChanges=new Se,n.results=new Me(C),n.aggregationData=new Le,V?n.setValue(V,{stateChanges:!0}):n.value=V,n}Ce(e,t);var n=e.prototype;return n.getSuggestionsQuery=function(){return{query:[{id:"DataSearch__suggestions",dataField:Fe,size:this.maxPopularSuggestions||5,value:this.value,defaultQuery:{query:{bool:{minimum_should_match:1,should:[{function_score:{field_value_factor:{field:"count",modifier:"sqrt",missing:1}}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],fuzziness:0,operator:"or",query:this.value,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:this.value,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:this.value,type:"phrase_prefix"}}]}}}}]}},n._appendResults=function(t){this.preserveResults&&t&&Array.isArray(t.hits&&t.hits.hits)&&Array.isArray(this.results.rawData&&this.results.rawData.hits&&this.results.rawData.hits.hits)?this.results.setRaw(we({},t,{hits:we({},t.hits,{hits:[].concat(this.results.rawData.hits.hits,t.hits.hits)})})):this.results.setRaw(t)},n._applyOptions=function(t,e,n,r){var i;("micStatus"===e&&this.onMicStatusChange&&this.onMicStatusChange(r,n),"query"===e&&this.onQueryChange&&this.onQueryChange(r,n),"value"===e&&this.onValueChange&&this.onValueChange(r,n),"error"===e&&this.onError&&this.onError(r),"results"===e&&this.onResults&&this.onResults(r,n),"aggregationData"===e&&this.onAggregationData&&this.onAggregationData(r,n),"requestStatus"===e&&this.onRequestStatusChange&&this.onRequestStatusChange(r,n),t.triggerDefaultQuery&&this.triggerDefaultQuery(),t.triggerCustomQuery&&this.triggerCustomQuery(),!1!==t.stateChanges)&&this.stateChanges.next(((i={})[e]={prev:n,next:r},i),e,this)},n._getMongoRequest=function(){var t={};return this.index&&(t.index=this.index),this.mongodb&&(this.mongodb.db&&(t.db=this.mongodb.db),this.mongodb.collection&&(t.collection=this.mongodb.collection)),t},n._fetchRequest=function(t,e){var n=this,r={method:"POST",body:JSON.stringify(we({},t,{mongodb:this._getMongoRequest()})),headers:we({},this.headers)};return new Promise((function(t,e){n._handleTransformRequest(r).then((function(r){var i=Date.now();return fetch(n.url,r).then((function(r){var s=r.headers;if(r.headers){var a=r.headers.get("X-Search-Id");a&&(n._parent?n._parent.setQueryID(a):n.setQueryID(a))}return r.status>=500||r.status>=400?e(r):r.json().then((function(r){n._handleTransformResponse(r).then((function(n){n&&Object.prototype.hasOwnProperty.call(n,"error")&&e(n);var r=we({},n,{_timestamp:i,_headers:s});return t(r)})).catch((function(t){return console.warn("SearchBase: transformResponse rejected the promise with ",t),e(t)}))}))})).catch((function(t){return e(t)}))})).catch((function(t){return console.warn("SearchBase: transformRequest rejected the promise with ",t),e(t)}))}))},n._generateQuery=function(){var t=this;if(this._parent){var e=this._parent.getComponents(),n=[];Object.keys(e).forEach((function(r){var i=e[r];i&&i.react&&(De(i.react,r).indexOf(t.id)>-1&&n.push(r))}));var r={};return n.forEach((function(e){var n=t._parent.getComponent(e);n&&(r[e]=n.componentQuery,De(n.react,n.id).forEach((function(e){if(!r[e]){var n=t._parent.getComponent(e);if(n&&n.value){var i=n.componentQuery;i.execute=!1,r[e]=i}}})))})),{requestBody:Object.values(r),orderOfQueries:n}}return{requestBody:[],orderOfQueries:[]}},n._handleTransformResponse=function(t){return this.transformResponse&&"function"==typeof this.transformResponse?this.transformResponse(t):new Promise((function(e){return e(t)}))},n._handleTransformRequest=function(t){return this.transformRequest&&"function"==typeof this.transformRequest?this.transformRequest(t):new Promise((function(e){return e(t)}))},n._handleAggregationResponse=function(t,e,n){void 0===e&&(e=$e),void 0===n&&(n=!0);var r=this.aggregationField;r||"string"!=typeof this.dataField||(r=this.dataField);var i=this.aggregationData;this.aggregationData.setRaw(t[r]),this.aggregationData.setData(r,t[r].buckets,this.preserveResults&&n),this._applyOptions({stateChanges:e.stateChanges},"aggregationData",i,this.aggregationData)},n._setError=function(t,e){void 0===e&&(e=$e),this._setRequestStatus(Xe);var n=this.error;this.error=t,this._applyOptions(e,"error",n,this.error)},n._setRequestStatus=function(t){var e=this.requestStatus;this.requestStatus=t,this._applyOptions({stateChanges:!0},"requestStatus",e,this.requestStatus)},n._updateQuery=function(t){var e,n=this;e=we({},this._query);var r=[this.componentQuery];De(this.react,this.id).forEach((function(t){var e=n._parent.getComponent(t);if(e&&e.value){var i=e.componentQuery;i.execute=!1,r.push(i)}})),this._query=t||r,this._applyOptions({stateChanges:!1},"query",e,this._query)},ve(e,[{key:"micStatus",get:function(){return this._micStatus}},{key:"micInstance",get:function(){return this._micInstance}},{key:"micActive",get:function(){return this._micStatus===He}},{key:"micInactive",get:function(){return this._micStatus===Be}},{key:"micDenied",get:function(){return this._micStatus===Ke}},{key:"query",get:function(){return this._query}},{key:"requestPending",get:function(){return this.requestStatus===Ze}},{key:"appbaseSettings",get:function(){var t=this.appbaseConfig||{};return{recordAnalytics:t.recordAnalytics,customEvents:t.customEvents,enableQueryRules:t.enableQueryRules,userId:t.userId}}},{key:"suggestions",get:function(){if(this.type&&this.type!==Ae)return[];if(this.results){var t=Re(this.dataField)||[];return 0===t.length&&this.results.data&&Array.isArray(this.results.data)&&this.results.data.length>0&&this.results.data[0]&&(t=Object.keys(this.results.data[0]).filter((function(t){return!["_id","_click_id","_index","_score","_type"].includes(t)}))),this.enablePopularSuggestions&&(t=[].concat(t,Fe)),Ee(t,this.results.data,this.value,this.showDistinctSuggestions,this.enablePredictiveSuggestions).slice(0,this.size)}return[]}},{key:"componentQuery",get:function(){return{id:this.id,type:this.type,dataField:Re(this.dataField),react:this.react,highlight:this.highlight,highlightField:Re(this.highlightField),fuzziness:this.fuzziness,searchOperators:this.searchOperators,includeFields:this.includeFields,excludeFields:this.excludeFields,size:this.size,from:this.from,queryFormat:this.queryFormat,sortBy:this.sortBy,fieldWeights:Pe(this.dataField),includeNullValues:this.includeNullValues,aggregationField:this.aggregationField,aggregationSize:this.aggregationSize,categoryField:this.categoryField,missingLabel:this.missingLabel,showMissing:this.showMissing,nestedField:this.nestedField,interval:this.interval,customHighlight:this.customHighlight,customQuery:this.customQuery?this.customQuery(this):void 0,defaultQuery:this.defaultQuery?this.defaultQuery(this):void 0,value:this.value,categoryValue:this.categoryValue,after:this.after,aggregations:this.aggregations,enableSynonyms:this.enableSynonyms,selectAllLabel:this.selectAllLabel,pagination:this.pagination,queryString:this.queryString,distinctField:this.distinctField,distinctFieldConfig:this.distinctFieldConfig,index:this.index}}},{key:"queryId",get:function(){return this._parent&&this._parent._queryId?this._parent._queryId:this._queryId?this._queryId:""}},{key:"mappedProps",get:function(){var t=this,e={};return Object.keys(qe).forEach((function(n){e[qe[n]]=t[n]})),e}}]),e}(Qe),Ye=function(t){function e(e){var n,r=e.index,i=e.url,s=e.mongodb,a=e.credentials,o=e.headers,u=e.appbaseConfig,c=e.transformRequest,l=e.transformResponse;return be(_e(n=t.call(this,{index:r,url:i,mongodb:s,credentials:a,headers:o,appbaseConfig:u,transformRequest:c,transformResponse:l})||this),"register",(function(t,e){if(!t)throw new Error(Oe.invalidComponentId);if(n._components[t])return n._components[t];var r=e;return!e||e instanceof Ue?r.id=t:r=new Ue(we({},e,{id:t,index:e.index||n.index,url:e.url||n.url,mongodb:e.mongodb||n.mongodb,credentials:e.credentials||n.credentials,headers:e.headers||n.headers,transformRequest:e.transformRequest||n.transformRequest,transformResponse:e.transformResponse||n.transformResponse,appbaseConfig:e.appbaseConfig||n.appbaseConfig})),n._components[t]=r,r.setParent(_e(n)),r})),be(_e(n),"unregister",(function(t){t&&delete n._components[t]})),be(_e(n),"getComponent",(function(t){return n._components[t]})),be(_e(n),"getComponents",(function(){return n._components})),n._components={},n}return Ce(e,t),e}(Qe),Ge={name:"search-base",props:{index:F.string,url:R.url,mongodb:F.object,credentials:F.string,headers:R.headers,appbaseConfig:R.appbaseConfig,transformRequest:F.func,transformResponse:F.func},provide:function(){return this.searchbase=new Ye({index:this.$props.index,url:this.$props.url,mongodb:this.$props.mongodb,credentials:this.$props.credentials,headers:this.$props.headers,appbaseConfig:this.$props.appbaseConfig,transformRequest:this.$props.transformRequest,transformResponse:this.$props.transformResponse}),{searchbase:this.searchbase}},render:function(){var t=arguments[0];return t("div",[this.$slots.default])},install:function(t){t.component(Ge.name,Ge)}},Je=[me,Ge,W],tn=function(t){Je.map((function(e){return t.use(e),null}))};"undefined"!=typeof window&&window.Vue&&tn(window.Vue);var en={version:"0.0.2",install:tn};t.SearchBase=Ge,t.SearchBox=me,t.SearchComponent=W,t.default=en,t.install=tn,t.version="0.0.2",Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=vue-searchbox.umd.min.js.map