text: (window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"b6l/":function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),a=n.n(r),c=n("35OZ"),l=n("Vbab"),o=n("f6+g"),u=n("kdy/"),i=n("Wbzz"),s=n("BUe3"),m=n("GZI6"),f=n("53zH"),p=n("VsLj"),d=l.c.search;t.default=function(){var e=Object(f.c)(o.b),t=Object(f.c)(u.a),n=e.query,r=n.query,l=n.page,g=void 0===l?1:l,b=g-1,E=Array.from(t.articleIdMap.values());r&&(E=E.filter((function(e){return!!e.some((function(e){return e.frontmatter.title.toUpperCase().includes(r.toUpperCase())}))||!!e.some((function(e){return null!==e.frontmatter.tags&&e.frontmatter.tags.some((function(e){return t.getAllVariationsOfTag(e).some((function(e){return e.toUpperCase().includes(r.toUpperCase())}))}))}))}))),E.sort((function(e,t){return new Date(t[0].frontmatter.date).getTime()-new Date(e[0].frontmatter.date).getTime()}));var w=E.length,h=Math.ceil(w/5);return E=E.slice(5*b,5*b+5),a.a.createElement(m.a,null,a.a.createElement(p.a,{titleId:d.title}),a.a.createElement("h3",null,a.a.createElement(c.b,{id:d.title,replacements:[a.a.createElement("strong",{key:"query"},r)]})),a.a.createElement("small",null,a.a.createElement(c.b,{id:d.info,replacements:[w]})),a.a.createElement("hr",null),a.a.createElement(s.a,{ids:E.map((function(e){return e[0].frontmatter.id})),pageCount:h,pageIndex:g-1,toPage:function(e){var t="/articles/search?query="+encodeURIComponent(r||"")+"&page="+(e+1);return function(){return Object(i.navigate)(t)}}}))}}}]);
  //# sourceMappingURL=component---src-pages-articles-search-tsx-6f3890afe020131f1a91.js.map