-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsrc_app_custom-elements_search_file-not-found-search_module_ts.3660ed1c5b64024b.js.map
1 lines (1 loc) · 2.43 KB
/
src_app_custom-elements_search_file-not-found-search_module_ts.3660ed1c5b64024b.js.map
1
{"version":3,"file":"src_app_custom-elements_search_file-not-found-search_module_ts.3660ed1c5b64024b.js","mappings":"+QAeO,IAAMA,EAAb,MAAM,MAAOA,EAEXC,YAAoBC,EAAmCC,GAAnCC,gBAAmCA,cAEvDC,WACED,KAAKE,cAAgBF,KAAKF,SAASK,YAAYC,MAAKC,OAAUC,IAC5D,MAAMC,EAAQD,EAAKE,MAAM,OAAOC,KAAK,KACrC,OAAOT,KAAKD,OAAOA,OAAOQ,oDAPnBX,GAA2Bc,gDAA3Bd,EAA2Be,yJALrCD,iBAA8B,OACxBA,4DAAgDA,UAEvDA,wDAAqCA,uGAE1Bd,GAAb,GCLagB,EAAb,MAAM,MAAOA,EAJbf,cAKEG,4BAAoCJ,gDADzBgB,4DAHAC,KAAcC,OAGdF,GAAb","names":["FileNotFoundSearchComponent","constructor","location","search","this","ngOnInit","searchResults","currentPath","pipe","switchMap","path","query","split","join","i0","selectors","FileNotFoundSearchModule","CommonModule","SharedModule"],"sourceRoot":"webpack:///","sources":["./src/app/custom-elements/search/file-not-found-search.component.ts","./src/app/custom-elements/search/file-not-found-search.module.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { switchMap } from 'rxjs/operators';\nimport { LocationService } from 'app/shared/location.service';\nimport { SearchResults } from 'app/search/interfaces';\nimport { SearchService } from 'app/search/search.service';\n\n@Component({\n selector: 'aio-file-not-found-search',\n template:\n `<div class=\"alert is-helpful\">\n <p>Let's see if any of these search results help...</p>\n </div>\n <aio-search-results class=\"embedded\" [searchResults]=\"searchResults | async\"></aio-search-results>`\n})\nexport class FileNotFoundSearchComponent implements OnInit {\n searchResults: Observable<SearchResults>;\n constructor(private location: LocationService, private search: SearchService) {}\n\n ngOnInit() {\n this.searchResults = this.location.currentPath.pipe(switchMap(path => {\n const query = path.split(/\\W+/).join(' ');\n return this.search.search(query);\n }));\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SharedModule } from '../../shared/shared.module';\nimport { FileNotFoundSearchComponent } from './file-not-found-search.component';\nimport { WithCustomElementComponent } from '../element-registry';\n\n@NgModule({\n imports: [ CommonModule, SharedModule ],\n declarations: [ FileNotFoundSearchComponent ]\n})\nexport class FileNotFoundSearchModule implements WithCustomElementComponent {\n customElementComponent: Type<any> = FileNotFoundSearchComponent;\n}\n"]}