documentation/assets/js/10.bcaf3754.js
2021-02-15 00:27:26 +00:00

1 line
5.2 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[10,13,25],{314:function(t,e){t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},315:function(t,e,s){var n=s(26),i="["+s(314)+"]",o=RegExp("^"+i+i+"*"),u=RegExp(i+i+"*$"),r=function(t){return function(e){var s=String(n(e));return 1&t&&(s=s.replace(o,"")),2&t&&(s=s.replace(u,"")),s}};t.exports={start:r(1),end:r(2),trim:r(3)}},327:function(t,e,s){"use strict";var n=s(0),i=s(315).trim;n({target:"String",proto:!0,forced:s(328)("trim")},{trim:function(){return i(this)}})},328:function(t,e,s){var n=s(2),i=s(314);t.exports=function(t){return n((function(){return!!i[t]()||"…"!="…"[t]()||i[t].name!==t}))}},332:function(t,e,s){"use strict";s.r(e);s(177),s(327);var n={data:function(){return{query:"",focused:!1,focusIndex:0}},computed:{showSuggestions:function(){return this.focused&&this.suggestions&&this.suggestions.length},suggestions:function(){var t=this.query.trim().toLowerCase();if(t){for(var e=this.$site,s=e.pages,n=e.themeConfig.searchMaxSuggestions||5,i=this.$localePath,o=function(e){return e.title&&e.title.toLowerCase().indexOf(t)>-1},u=[],r=0;r<s.length&&!(u.length>=n);r++){var a=s[r];if(this.getPageLocalePath(a)===i)if(o(a))u.push(a);else if(a.headers)for(var c=0;c<a.headers.length&&!(u.length>=n);c++){var l=a.headers[c];o(l)&&u.push(Object.assign({},a,{path:a.path+"#"+l.slug,header:l}))}}return u}},alignRight:function(){return(this.$site.themeConfig.nav||[]).length+(this.$site.repo?1:0)<=2}},methods:{getPageLocalePath:function(t){for(var e in this.$site.locales||{})if("/"!==e&&0===t.path.indexOf(e))return e;return"/"},onUp:function(){this.showSuggestions&&(this.focusIndex>0?this.focusIndex--:this.focusIndex=this.suggestions.length-1)},onDown:function(){this.showSuggestions&&(this.focusIndex<this.suggestions.length-1?this.focusIndex++:this.focusIndex=0)},go:function(t){this.showSuggestions&&(this.$router.push(this.suggestions[t].path),this.query="",this.focusIndex=0)},focus:function(t){this.focusIndex=t},unfocus:function(){this.focusIndex=-1}}},i=s(46),o=Object(i.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"search-box"},[s("input",{attrs:{"aria-label":"Search",placeholder:"Search",autocomplete:"off",spellcheck:"false"},domProps:{value:t.query},on:{input:function(e){t.query=e.target.value},focus:function(e){t.focused=!0},blur:function(e){t.focused=!1},keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.go(t.focusIndex)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:t.onUp(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t.onDown(e)}]}}),t._v(" "),t.showSuggestions?s("div",{staticClass:"suggestion-container",on:{mouseleave:t.unfocus}},[s("div",{staticClass:"suggestion-padding"}),t._v(" "),s("ul",{staticClass:"suggestions",class:{"align-right":t.alignRight}},t._l(t.suggestions,(function(e,n){return s("li",{staticClass:"suggestion",class:{focused:n===t.focusIndex},on:{mousedown:function(e){return t.go(n)},mouseenter:function(e){return t.focus(n)}}},[s("a",{attrs:{href:e.path},on:{click:function(t){t.preventDefault()}}},[s("span",{staticClass:"page-title"},[t._v(t._s(e.title||e.path))]),t._v(" "),e.header?s("span",{staticClass:"header"},[t._v("> "+t._s(e.header.title))]):t._e()])])})),0)]):t._e()])}),[],!1,null,null,null);e.default=o.exports},335:function(t,e,s){"use strict";s.r(e);var n=s(46),i=Object(n.a)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"sidebar-button",on:{click:function(e){return t.$emit("toggle-sidebar")}}},[s("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",viewBox:"0 0 448 512"}},[s("path",{attrs:{fill:"currentColor",d:"M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"}})])])}),[],!1,null,null,null);e.default=i.exports},343:function(t,e,s){"use strict";s.r(e);var n=s(335),i=s(332),o=s(333),u={components:{SidebarButton:n.default,NavLinks:o.default,SearchBox:i.default},computed:{}},r=s(46),a=Object(r.a)(u,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("header",{staticClass:"nav"},[s("SidebarButton",{staticClass:"block md:hidden flex-no-shrink",on:{"toggle-sidebar":function(e){return t.$emit("toggle-sidebar")}}}),t._v(" "),s("div",{staticClass:"logo-container"},[s("router-link",{staticClass:"home-link",attrs:{to:t.$localePath}},[t.$site.themeConfig.logo?s("img",{staticClass:"logo",attrs:{src:t.$withBase(t.$site.themeConfig.logo)}}):t._e(),t._v(" "),t.$siteTitle?s("span",{staticClass:"site-name hidden md:inline",class:{"can-hide":t.$site.themeConfig.logo}},[t._v(t._s(t.$siteTitle))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex"},[s("SearchBox"),t._v(" "),s("NavLinks",{staticClass:"hidden md:flex"})],1)])],1)}),[],!1,null,null,null);e.default=a.exports}}]);