angular-docs-cn/aio/dist/search-file-not-found-searc...

2 lines
1.2 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{Afo1:function(e,s,t){"use strict";t.r(s),t.d(s,"FileNotFoundSearchModule",function(){return h});var c=t("ofXK"),n=t("PCNd"),o=t("eIep"),r=t("fXoL"),a=t("/lUL"),i=t("to4i"),u=t("LwjS");let l=(()=>{class e{constructor(e,s){this.location=e,this.search=s}ngOnInit(){this.searchResults=this.location.currentPath.pipe(Object(o.a)(e=>{const s=e.split(/\W+/).join(" ");return this.search.search(s)}))}}return e.\u0275fac=function(s){return new(s||e)(r.Ob(a.a),r.Ob(i.a))},e.\u0275cmp=r.Ib({type:e,selectors:[["aio-file-not-found-search"]],decls:4,vars:3,consts:[[1,"embedded",3,"searchResults"]],template:function(e,s){1&e&&(r.Tb(0,"p"),r.Ac(1,"Let's see if any of these search results help..."),r.Sb(),r.Pb(2,"aio-search-results",0),r.fc(3,"async")),2&e&&(r.Cb(2),r.jc("searchResults",r.gc(3,1,s.searchResults)))},directives:[u.a],pipes:[c.b],encapsulation:2}),e})(),h=(()=>{class e{constructor(){this.customElementComponent=l}}return e.\u0275mod=r.Mb({type:e}),e.\u0275inj=r.Lb({factory:function(s){return new(s||e)},imports:[[c.c,n.a]]}),e})()}}]);
//# sourceMappingURL=search-file-not-found-search-module-es2015.5f87faadeb778e77ea33.js.map