-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-search-jsx-9ef45c8413248ee09a04.js
3 lines (3 loc) · 21.3 KB
/
component---src-pages-search-jsx-9ef45c8413248ee09a04.js
1
2
3
/*! For license information please see component---src-pages-search-jsx-9ef45c8413248ee09a04.js.LICENSE.txt */
(self.webpackChunkunittestbot_web=self.webpackChunkunittestbot_web||[]).push([[995],{27815:function(e,t,n){var o,i;!function(){var r,s,a,u,l,c,d,f,h,p,v,m,y,g,x,S,b,w,I,E,_,D,F,P,N,O=function e(t){var n=new e.Index;return n.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),t&&t.call(n,n),n};O.version="0.9.5",lunr=O,(O.utils={}).warn=(r=this,function(e){r.console&&console.warn&&console.warn(e)}),O.utils.toString=function(e){return null==e?"":e.toString()},(O.EventEmitter=function(){this.events={}}).prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach((function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)}),this)},O.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);-1!==n&&(this.events[e].splice(n,1),0==this.events[e].length&&delete this.events[e])}},O.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach((function(e){e.apply(void 0,t)}),this)}},O.EventEmitter.prototype.hasHandler=function(e){return e in this.events},(O.tokenizer=function(e){if(!arguments.length||null==e)return[];if(Array.isArray(e)){var t=e.filter((function(e){return null!=e}));t=t.map((function(e){return O.utils.toString(e).toLowerCase()}));var n=[];return t.forEach((function(e){var t=e.split(O.tokenizer.seperator);n=n.concat(t)}),this),n}return e.toString().trim().toLowerCase().split(O.tokenizer.seperator)}).defaultSeperator=/[\s\-]+/,O.tokenizer.seperator=O.tokenizer.defaultSeperator,O.tokenizer.setSeperator=function(e){null!=e&&"object"==typeof e&&(O.tokenizer.seperator=e)},O.tokenizer.resetSeperator=function(){O.tokenizer.seperator=O.tokenizer.defaultSeperator},O.tokenizer.getSeperator=function(){return O.tokenizer.seperator},(O.Pipeline=function(){this._queue=[]}).registeredFunctions={},O.Pipeline.registerFunction=function(e,t){t in O.Pipeline.registeredFunctions&&O.utils.warn("Overwriting existing registered function: "+t),e.label=t,O.Pipeline.registeredFunctions[t]=e},O.Pipeline.getRegisteredFunction=function(e){return e in O.Pipeline.registeredFunctions!=!0?null:O.Pipeline.registeredFunctions[e]},O.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||O.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},O.Pipeline.load=function(e){var t=new O.Pipeline;return e.forEach((function(e){var n=O.Pipeline.getRegisteredFunction(e);if(!n)throw new Error("Cannot load un-registered function: "+e);t.add(n)})),t},O.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach((function(e){O.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)}),this)},O.Pipeline.prototype.after=function(e,t){O.Pipeline.warnIfFunctionNotRegistered(t);var n=this._queue.indexOf(e);if(-1===n)throw new Error("Cannot find existingFn");this._queue.splice(n+1,0,t)},O.Pipeline.prototype.before=function(e,t){O.Pipeline.warnIfFunctionNotRegistered(t);var n=this._queue.indexOf(e);if(-1===n)throw new Error("Cannot find existingFn");this._queue.splice(n,0,t)},O.Pipeline.prototype.remove=function(e){var t=this._queue.indexOf(e);-1!==t&&this._queue.splice(t,1)},O.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,o=this._queue.length,i=0;i<n;i++){for(var r=e[i],s=0;s<o&&null!=(r=this._queue[s](r,i,e));s++);null!=r&&t.push(r)}return t},O.Pipeline.prototype.reset=function(){this._queue=[]},O.Pipeline.prototype.get=function(){return this._queue},O.Pipeline.prototype.toJSON=function(){return this._queue.map((function(e){return O.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},(O.Index=function(){this._fields=[],this._ref="id",this.pipeline=new O.Pipeline,this.documentStore=new O.DocumentStore,this.index={},this.eventEmitter=new O.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))}).prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},O.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},O.Index.load=function(e){e.version!==O.version&&O.utils.warn("version mismatch: current "+O.version+" importing "+e.version);var t=new this;for(var n in t._fields=e.fields,t._ref=e.ref,t.documentStore=O.DocumentStore.load(e.documentStore),t.pipeline=O.Pipeline.load(e.pipeline),t.index={},e.index)t.index[n]=O.InvertedIndex.load(e.index[n]);return t},O.Index.prototype.addField=function(e){return this._fields.push(e),this.index[e]=new O.InvertedIndex,this},O.Index.prototype.setRef=function(e){return this._ref=e,this},O.Index.prototype.saveDocument=function(e){return this.documentStore=new O.DocumentStore(e),this},O.Index.prototype.addDoc=function(e,t){if(e){t=void 0===t||t;var n=e[this._ref];this.documentStore.addDoc(n,e),this._fields.forEach((function(t){var o=this.pipeline.run(O.tokenizer(e[t]));this.documentStore.addFieldLength(n,t,o.length);var i={};for(var r in o.forEach((function(e){e in i?i[e]+=1:i[e]=1}),this),i){var s=i[r];s=Math.sqrt(s),this.index[t].addToken(r,{ref:n,tf:s})}}),this),t&&this.eventEmitter.emit("add",e,this)}},O.Index.prototype.removeDocByRef=function(e,t){if(e&&!1!==this.documentStore.isDocStored()&&this.documentStore.hasDoc(e)){var n=this.documentStore.getDoc(e);this.removeDoc(n,!1)}},O.Index.prototype.removeDoc=function(e,t){if(e){t=void 0===t||t;var n=e[this._ref];this.documentStore.hasDoc(n)&&(this.documentStore.removeDoc(n),this._fields.forEach((function(t){this.pipeline.run(O.tokenizer(e[t])).forEach((function(e){this.index[t].removeToken(e,n)}),this)}),this),t&&this.eventEmitter.emit("remove",e,this))}},O.Index.prototype.updateDoc=function(e,t){t=void 0===t||t;this.removeDocByRef(e[this._ref],!1),this.addDoc(e,!1),t&&this.eventEmitter.emit("update",e,this)},O.Index.prototype.idf=function(e,t){var n="@"+t+"/"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,n))return this._idfCache[n];var o=this.index[t].getDocFreq(e),i=1+Math.log(this.documentStore.length/(o+1));return this._idfCache[n]=i,i},O.Index.prototype.getFields=function(){return this._fields.slice()},O.Index.prototype.search=function(e,t){if(!e)return[];var n=null;null!=t&&(n=JSON.stringify(t));var o=new O.Configuration(n,this.getFields()).get(),i=this.pipeline.run(O.tokenizer(e)),r={};for(var s in o){var a=this.fieldSearch(i,s,o),u=o[s].boost;for(var l in a)a[l]=a[l]*u;for(var l in a)l in r?r[l]+=a[l]:r[l]=a[l]}var c=[];for(var l in r)c.push({ref:l,score:r[l]});return c.sort((function(e,t){return t.score-e.score})),c},O.Index.prototype.fieldSearch=function(e,t,n){var o=n[t].bool,i=n[t].expand,r=n[t].boost,s=null,a={};if(0!==r)return e.forEach((function(e){var n=[e];1==i&&(n=this.index[t].expandToken(e));var r={};n.forEach((function(n){var i=this.index[t].getDocs(n),u=this.idf(n,t);if(s&&"AND"==o){var l={};for(var c in s)c in i&&(l[c]=i[c]);i=l}for(var c in n==e&&this.fieldSearchStats(a,n,i),i){var d=this.index[t].getTermFrequency(n,c),f=this.documentStore.getFieldLength(c,t),h=1;0!=f&&(h=1/Math.sqrt(f));var p=1;n!=e&&(p=.15*(1-(n.length-e.length)/n.length));var v=d*u*h*p;c in r?r[c]+=v:r[c]=v}}),this),s=this.mergeScores(s,r,o)}),this),s=this.coordNorm(s,a,e.length)},O.Index.prototype.mergeScores=function(e,t,n){if(!e)return t;if("AND"==n){var o={};for(var i in t)i in e&&(o[i]=e[i]+t[i]);return o}for(var i in t)i in e?e[i]+=t[i]:e[i]=t[i];return e},O.Index.prototype.fieldSearchStats=function(e,t,n){for(var o in n)o in e?e[o].push(t):e[o]=[t]},O.Index.prototype.coordNorm=function(e,t,n){for(var o in e)if(o in t){var i=t[o].length;e[o]=e[o]*i/n}return e},O.Index.prototype.toJSON=function(){var e={};return this._fields.forEach((function(t){e[t]=this.index[t].toJSON()}),this),{version:O.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),index:e,pipeline:this.pipeline.toJSON()}},O.Index.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},(O.DocumentStore=function(e){this._save=null==e||e,this.docs={},this.docInfo={},this.length=0}).load=function(e){var t=new this;return t.length=e.length,t.docs=e.docs,t.docInfo=e.docInfo,t._save=e.save,t},O.DocumentStore.prototype.isDocStored=function(){return this._save},O.DocumentStore.prototype.addDoc=function(e,t){this.hasDoc(e)||this.length++,!0===this._save?this.docs[e]=function(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(t):this.docs[e]=null},O.DocumentStore.prototype.getDoc=function(e){return!1===this.hasDoc(e)?null:this.docs[e]},O.DocumentStore.prototype.hasDoc=function(e){return e in this.docs},O.DocumentStore.prototype.removeDoc=function(e){this.hasDoc(e)&&(delete this.docs[e],delete this.docInfo[e],this.length--)},O.DocumentStore.prototype.addFieldLength=function(e,t,n){null!=e&&0!=this.hasDoc(e)&&(this.docInfo[e]||(this.docInfo[e]={}),this.docInfo[e][t]=n)},O.DocumentStore.prototype.updateFieldLength=function(e,t,n){null!=e&&0!=this.hasDoc(e)&&this.addFieldLength(e,t,n)},O.DocumentStore.prototype.getFieldLength=function(e,t){return null==e?0:e in this.docs&&t in this.docInfo[e]?this.docInfo[e][t]:0},O.DocumentStore.prototype.toJSON=function(){return{docs:this.docs,docInfo:this.docInfo,length:this.length,save:this._save}},O.stemmer=(s={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},u="[aeiouy]",l="[^aeiou][^aeiouy]*",c=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),d=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),f=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),h=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),p=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,m=/^(.+?)eed$/,y=/^(.+?)(ed|ing)$/,g=/.$/,x=/(at|bl|iz)$/,S=new RegExp("([^aeiouylsz])\\1$"),b=new RegExp("^"+l+u+"[^aeiouwxy]$"),w=/^(.+?[^aeiou])y$/,I=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,_=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,D=/^(.+?)(s|t)(ion)$/,F=/^(.+?)e$/,P=/ll$/,N=new RegExp("^"+l+u+"[^aeiouwxy]$"),function(e){var t,n,o,i,r,u,l;if(e.length<3)return e;if("y"==(o=e.substr(0,1))&&(e=o.toUpperCase()+e.substr(1)),r=v,(i=p).test(e)?e=e.replace(i,"$1$2"):r.test(e)&&(e=e.replace(r,"$1$2")),r=y,(i=m).test(e)){var O=i.exec(e);(i=c).test(O[1])&&(i=g,e=e.replace(i,""))}else r.test(e)&&(t=(O=r.exec(e))[1],(r=h).test(t)&&(u=S,l=b,(r=x).test(e=t)?e+="e":u.test(e)?(i=g,e=e.replace(i,"")):l.test(e)&&(e+="e")));return(i=w).test(e)&&(e=(t=(O=i.exec(e))[1])+"i"),(i=I).test(e)&&(t=(O=i.exec(e))[1],n=O[2],(i=c).test(t)&&(e=t+s[n])),(i=E).test(e)&&(t=(O=i.exec(e))[1],n=O[2],(i=c).test(t)&&(e=t+a[n])),r=D,(i=_).test(e)?(t=(O=i.exec(e))[1],(i=d).test(t)&&(e=t)):r.test(e)&&(t=(O=r.exec(e))[1]+O[2],(r=d).test(t)&&(e=t)),(i=F).test(e)&&(t=(O=i.exec(e))[1],r=f,u=N,((i=d).test(t)||r.test(t)&&!u.test(t))&&(e=t)),r=d,(i=P).test(e)&&r.test(e)&&(i=g,e=e.replace(i,"")),"y"==o&&(e=o.toLowerCase()+e.substr(1)),e}),O.Pipeline.registerFunction(O.stemmer,"stemmer"),O.stopWordFilter=function(e){if(e&&!0!==O.stopWordFilter.stopWords[e])return e},O.clearStopWords=function(){O.stopWordFilter.stopWords={}},O.addStopWords=function(e){null!=e&&!1!==Array.isArray(e)&&e.forEach((function(e){O.stopWordFilter.stopWords[e]=!0}),this)},O.resetStopWords=function(){O.stopWordFilter.stopWords=O.defaultStopWords},O.defaultStopWords={"":!0,a:!0,able:!0,about:!0,across:!0,after:!0,all:!0,almost:!0,also:!0,am:!0,among:!0,an:!0,and:!0,any:!0,are:!0,as:!0,at:!0,be:!0,because:!0,been:!0,but:!0,by:!0,can:!0,cannot:!0,could:!0,dear:!0,did:!0,do:!0,does:!0,either:!0,else:!0,ever:!0,every:!0,for:!0,from:!0,get:!0,got:!0,had:!0,has:!0,have:!0,he:!0,her:!0,hers:!0,him:!0,his:!0,how:!0,however:!0,i:!0,if:!0,in:!0,into:!0,is:!0,it:!0,its:!0,just:!0,least:!0,let:!0,like:!0,likely:!0,may:!0,me:!0,might:!0,most:!0,must:!0,my:!0,neither:!0,no:!0,nor:!0,not:!0,of:!0,off:!0,often:!0,on:!0,only:!0,or:!0,other:!0,our:!0,own:!0,rather:!0,said:!0,say:!0,says:!0,she:!0,should:!0,since:!0,so:!0,some:!0,than:!0,that:!0,the:!0,their:!0,them:!0,then:!0,there:!0,these:!0,they:!0,this:!0,tis:!0,to:!0,too:!0,twas:!0,us:!0,wants:!0,was:!0,we:!0,were:!0,what:!0,when:!0,where:!0,which:!0,while:!0,who:!0,whom:!0,why:!0,will:!0,with:!0,would:!0,yet:!0,you:!0,your:!0},O.stopWordFilter.stopWords=O.defaultStopWords,O.Pipeline.registerFunction(O.stopWordFilter,"stopWordFilter"),O.trimmer=function(e){if(null==e)throw new Error("token should not be undefined");return e.replace(/^\W+/,"").replace(/\W+$/,"")},O.Pipeline.registerFunction(O.trimmer,"trimmer"),(O.InvertedIndex=function(){this.root={docs:{},df:0}}).load=function(e){var t=new this;return t.root=e.root,t},O.InvertedIndex.prototype.addToken=function(e,t,n){n=n||this.root;for(var o=0;o<=e.length-1;){var i=e[o];i in n||(n[i]={docs:{},df:0}),o+=1,n=n[i]}var r=t.ref;n.docs[r]?n.docs[r]={tf:t.tf}:(n.docs[r]={tf:t.tf},n.df+=1)},O.InvertedIndex.prototype.hasToken=function(e){if(!e)return!1;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return!1;t=t[e[n]]}return!0},O.InvertedIndex.prototype.getNode=function(e){if(!e)return null;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return null;t=t[e[n]]}return t},O.InvertedIndex.prototype.getDocs=function(e){var t=this.getNode(e);return null==t?{}:t.docs},O.InvertedIndex.prototype.getTermFrequency=function(e,t){var n=this.getNode(e);return null==n?0:t in n.docs?n.docs[t].tf:0},O.InvertedIndex.prototype.getDocFreq=function(e){var t=this.getNode(e);return null==t?0:t.df},O.InvertedIndex.prototype.removeToken=function(e,t){if(e){var n=this.getNode(e);null!=n&&t in n.docs&&(delete n.docs[t],n.df-=1)}},O.InvertedIndex.prototype.expandToken=function(e,t,n){if(null==e||""==e)return[];t=t||[];if(null==n&&null==(n=this.getNode(e)))return t;for(var o in n.df>0&&t.push(e),n)"docs"!==o&&"df"!==o&&this.expandToken(e+o,t,n[o]);return t},O.InvertedIndex.prototype.toJSON=function(){return{root:this.root}},(O.Configuration=function(e,t){var n;e=e||"";if(null==t||null==t)throw new Error("fields should not be null");this.config={};try{n=JSON.parse(e),this.buildUserConfig(n,t)}catch(o){O.utils.warn("user configuration parse failed, will use default configuration"),this.buildDefaultConfig(t)}}).prototype.buildDefaultConfig=function(e){this.reset(),e.forEach((function(e){this.config[e]={boost:1,bool:"OR",expand:!1}}),this)},O.Configuration.prototype.buildUserConfig=function(e,t){var n="OR",o=!1;if(this.reset(),"bool"in e&&(n=e.bool||n),"expand"in e&&(o=e.expand||o),"fields"in e)for(var i in e.fields)if(t.indexOf(i)>-1){var r=e.fields[i],s=o;null!=r.expand&&(s=r.expand),this.config[i]={boost:r.boost||0===r.boost?r.boost:1,bool:r.bool||n,expand:s}}else O.utils.warn("field name in user configuration not found in index instance fields");else this.addAllFields2UserConfig(n,o,t)},O.Configuration.prototype.addAllFields2UserConfig=function(e,t,n){n.forEach((function(n){this.config[n]={boost:1,bool:e,expand:t}}),this)},O.Configuration.prototype.get=function(){return this.config},O.Configuration.prototype.reset=function(){this.config={}},lunr.SortedSet=function(){this.length=0,this.elements=[]},lunr.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},lunr.SortedSet.prototype.add=function(){var e,t;for(e=0;e<arguments.length;e++)t=arguments[e],~this.indexOf(t)||this.elements.splice(this.locationFor(t),0,t);this.length=this.elements.length},lunr.SortedSet.prototype.toArray=function(){return this.elements.slice()},lunr.SortedSet.prototype.map=function(e,t){return this.elements.map(e,t)},lunr.SortedSet.prototype.forEach=function(e,t){return this.elements.forEach(e,t)},lunr.SortedSet.prototype.indexOf=function(e){for(var t=0,n=this.elements.length,o=n-t,i=t+Math.floor(o/2),r=this.elements[i];o>1;){if(r===e)return i;r<e&&(t=i),r>e&&(n=i),o=n-t,i=t+Math.floor(o/2),r=this.elements[i]}return r===e?i:-1},lunr.SortedSet.prototype.locationFor=function(e){for(var t=0,n=this.elements.length,o=n-t,i=t+Math.floor(o/2),r=this.elements[i];o>1;)r<e&&(t=i),r>e&&(n=i),o=n-t,i=t+Math.floor(o/2),r=this.elements[i];return r>e?i:r<e?i+1:void 0},lunr.SortedSet.prototype.intersect=function(e){for(var t=new lunr.SortedSet,n=0,o=0,i=this.length,r=e.length,s=this.elements,a=e.elements;!(n>i-1||o>r-1);)s[n]!==a[o]?s[n]<a[o]?n++:s[n]>a[o]&&o++:(t.add(s[n]),n++,o++);return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){var t,n,o;this.length>=e.length?(t=this,n=e):(t=e,n=this),o=t.clone();for(var i=0,r=n.toArray();i<r.length;i++)o.add(r[i]);return o},lunr.SortedSet.prototype.toJSON=function(){return this.toArray()},void 0===(i="function"==typeof(o=function(){return O})?o.call(t,n,t,e):o)||(e.exports=i)}()},1418:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return W}});var o=n(15007),i=n(87462),r=n(63366),s=n(75900),a=n.n(s),u=n(99541),l=n(38870),c=function(e){return o.default.forwardRef((function(t,n){return o.default.createElement("div",(0,i.Z)({},t,{ref:n,className:a()(t.className,e)}))}))},d=n(29503),f=o.default.forwardRef((function(e,t){var n=e.bsPrefix,s=e.className,l=e.variant,c=e.as,d=void 0===c?"img":c,f=(0,r.Z)(e,["bsPrefix","className","variant","as"]),h=(0,u.vE)(n,"card-img");return o.default.createElement(d,(0,i.Z)({ref:t,className:a()(l?h+"-"+l:h,s)},f))}));f.displayName="CardImg",f.defaultProps={variant:null};var h=f,p=c("h5"),v=c("h6"),m=(0,l.Z)("card-body"),y=(0,l.Z)("card-title",{Component:p}),g=(0,l.Z)("card-subtitle",{Component:v}),x=(0,l.Z)("card-link",{Component:"a"}),S=(0,l.Z)("card-text",{Component:"p"}),b=(0,l.Z)("card-header"),w=(0,l.Z)("card-footer"),I=(0,l.Z)("card-img-overlay"),E=o.default.forwardRef((function(e,t){var n=e.bsPrefix,s=e.className,l=e.bg,c=e.text,f=e.border,h=e.body,p=e.children,v=e.as,y=void 0===v?"div":v,g=(0,r.Z)(e,["bsPrefix","className","bg","text","border","body","children","as"]),x=(0,u.vE)(n,"card"),S=(0,o.useMemo)((function(){return{cardHeaderBsPrefix:x+"-header"}}),[x]);return o.default.createElement(d.Z.Provider,{value:S},o.default.createElement(y,(0,i.Z)({ref:t},g,{className:a()(s,x,l&&"bg-"+l,c&&"text-"+c,f&&"border-"+f)}),h?o.default.createElement(m,null,p):p))}));E.displayName="Card",E.defaultProps={body:!1},E.Img=h,E.Title=y,E.Subtitle=g,E.Body=m,E.Link=x,E.Text=S,E.Header=b,E.Footer=w,E.ImgOverlay=I;var _=E,D=n(35903),F=n(27815),P=n(68270),N=n(13879),O=function(e){return(0,N.tZ)("li",{key:e.route},(0,N.tZ)("h3",{className:"search-results-list__heading"},(0,N.tZ)("a",{href:e.route,className:"search-results-list__link"},e.name)),(0,N.tZ)("small",null,e.route),(0,N.tZ)("p",null,e.description))},C=O;O&&O===Object(O)&&Object.isExtensible(O)&&!Object.prototype.hasOwnProperty.call(O,"__filemeta")&&Object.defineProperty(O,"__filemeta",{configurable:!0,value:{name:"SearchListElement",filename:"src/components/search/SearchListElement.jsx"}});var Z=function(e){var t=(void 0!==e.objects?e.objects:[]).filter((function(e){return void 0!==e.name&&void 0!==e.description&&void 0!==e.route}));return(0,N.tZ)("section",{className:"searchResults","aria-label":"Search results over documentation"},(0,N.tZ)("ol",{className:"search-results-list"},t.map((function(e){return(0,N.tZ)(C,{route:e.route,name:e.name,description:e.description})}))))},k=Z;Z&&Z===Object(Z)&&Object.isExtensible(Z)&&!Object.prototype.hasOwnProperty.call(Z,"__filemeta")&&Object.defineProperty(Z,"__filemeta",{configurable:!0,value:{name:"SearchResultsList",filename:"src/components/search/SearchResultsList.jsx"}});var R=n(433),z=n(81277),q=n(80235),$=function(e){var t=(0,P.$)(),n=t.t,o=(t.i18n,"");"undefined"!=typeof window&&(o=new URL(window.location.href).searchParams.get("query")||"");var i,r,s=(i=o,(r=F.Index.load(e.searchIndex)).search(i,{expand:!0}).map((function(e){var t=e.ref;return r.documentStore.getDoc(t)})));return(0,N.tZ)(R.Z,null,(0,N.tZ)("div",{className:"pageFlexContainer"},(0,N.tZ)(z.Z,{title:"Search"}),(0,N.tZ)(_,{className:"searchCard",bg:"light"},(0,N.tZ)(_.Header,{as:"h3"},n("search.title")),(0,N.tZ)(_.Body,null,(0,N.tZ)("span",null,(0,N.tZ)("input",{type:"search",placeholder:n("search.placeholder"),className:"form-control mr-sm-2",value:o,onKeyDown:function(e){"Enter"===e.key&&!1===e.shiftKey&&(e.preventDefault(),(0,D.navigate)("/search?query="+encodeURIComponent(o)))},onChange:function(e){var t="/search?query="+encodeURIComponent(e.target.value);(0,D.navigate)(t)}})))),(0,N.tZ)(k,{objects:s})))},j=(0,q.Z)((function(){return(0,N.tZ)(D.StaticQuery,{query:"2744294623",render:function(e){return(0,N.tZ)($,{searchIndex:e.siteSearchIndex.index})}})})),W=j;void 0!==j&&j&&j===Object(j)&&Object.isExtensible(j)&&!Object.prototype.hasOwnProperty.call(j,"__filemeta")&&Object.defineProperty(j,"__filemeta",{configurable:!0,value:{name:"__DOCZ_DUMMY_EXPORT_DEFAULT",filename:"src/pages/search.jsx"}})}}]);
//# sourceMappingURL=component---src-pages-search-jsx-9ef45c8413248ee09a04.js.map