-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-es5.js.map
1 lines (1 loc) · 36.5 KB
/
main-es5.js.map
1
{"version":3,"sources":["webpack:///$_lazy_route_resource lazy namespace object","webpack:///src/app/app-routing.module.ts","webpack:///src/app/app.component.ts","webpack:///src/app/app.component.html","webpack:///src/app/app.module.ts","webpack:///src/app/components/hf-card-list/hf-card-list.component.ts","webpack:///src/app/components/hf-card-list/hf-card-list.component.html","webpack:///src/app/components/hf-chips-list/hf-chips-list.component.ts","webpack:///src/app/components/hf-chips-list/hf-chips-list.component.html","webpack:///src/app/components/hf-filter-block/hf-filter-block.component.ts","webpack:///src/app/components/hf-filter-block/hf-filter-block.component.html","webpack:///src/app/components/hf-pagination-block/hf-pagination-block.component.ts","webpack:///src/app/components/hf-pagination-block/hf-pagination-block.component.html","webpack:///src/app/directives/human-finder.directive.ts","webpack:///src/app/pipes/hf-sort.pipe.ts","webpack:///src/app/pipes/hf-time.pipe.ts","webpack:///src/app/services/hf-list.service.ts","webpack:///src/app/shared/humanfinder.module.ts","webpack:///src/environments/environment.ts","webpack:///src/main.ts"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","module","exports","id","routes","AppRoutingModule","forRoot","imports","AppComponent","title","selector","templateUrl","styleUrls","AppModule","declarations","providers","bootstrap","HfCardListComponent","_rmsService","page","count","currentpage","pages","perPage","selectedFilter","filterList","getAllFilterList","getAllCharacters","query","length","forEach","item","name","toLowerCase","searchName","subscribe","res","info","allCharacters","results","err","evt","index","findIndex","sFilter","push","mainCat","find","subItem","items","sItem","selected","splice","val","sortOrder","filterChange","goToPage","HfChipsListComponent","removeFilter","emit","chipsInput","removeChip","HfFilterBlockComponent","f","data","HfPaginationBlockComponent","currentPage","prev","next","goPage","n","totalItemsCount","goToPrevPage","goToNextPage","HighLightDirective","el","highLight","highlightColor","color","nativeElement","style","backgroundColor","SortPipe","attrName","compareByCost","p1","p2","comparer","sort","pure","ElaspedTimePipe","window","fromNow","RmsShowService","_http","filter","queryString","get","url","pipe","handleError","error","errorMessage","ErrorEvent","message","status","HumanFinderModule","environment","production","bootstrapModule","catch","console"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,aAASA,wBAAT,CAAkCC,GAAlC,EAAuC;AACtC;AACA;AACA,aAAOC,OAAO,CAACC,OAAR,GAAkBC,IAAlB,CAAuB,YAAW;AACxC,YAAIC,CAAC,GAAG,IAAIC,KAAJ,CAAU,yBAAyBL,GAAzB,GAA+B,GAAzC,CAAR;AACAI,SAAC,CAACE,IAAF,GAAS,kBAAT;AACA,cAAMF,CAAN;AACA,OAJM,CAAP;AAKA;;AACDL,4BAAwB,CAACQ,IAAzB,GAAgC,YAAW;AAAE,aAAO,EAAP;AAAY,KAAzD;;AACAR,4BAAwB,CAACG,OAAzB,GAAmCH,wBAAnC;AACAS,UAAM,CAACC,OAAP,GAAiBV,wBAAjB;AACAA,4BAAwB,CAACW,EAAzB,GAA8B,yCAA9B;;;;;;;;;;;;;;;;ACZA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;;AAIA,QAAMC,MAAM,GAAW,EAAvB;;QAMaC,gB;;;;;YAAAA;;;;yBAAAA,gB;AAAgB,O;AAAA,gBAHlB,CAAC,6DAAaC,OAAb,CAAqBF,MAArB,CAAD,CAGkB,EAFjB,4DAEiB;;;;0HAAhBC,gB,EAAgB;AAAA;AAAA,kBAFjB,4DAEiB;AAAA,O;AAFL,K;;;;;sEAEXA,gB,EAAgB;cAJ5B,sDAI4B;eAJnB;AACRE,iBAAO,EAAE,CAAC,6DAAaD,OAAb,CAAqBF,MAArB,CAAD,CADD;AAERF,iBAAO,EAAE,CAAC,4DAAD;AAFD,S;AAImB,Q;;;;;;;;;;;;;;;;;;ACV7B;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;;QAOaM,Y,GALb;AA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IP,oEAJO,EAKP,0EALO,EAMP,oEANO,EAOP,4EAPO,EAQP,wEARO,EASP,qEATO,EAUP,uEAVO,EAWP,0DAXO,CAVD;AAuBRL,iBAAO,EAAC,CACN,qEADM,EAEN,qEAFM,EAGN,oEAHM,EAIN,0EAJM,EAKN,oEALM,EAMN,4EANM,EAON,wEAPM,EAQN,qEARM,EASN,uEATM,EAUN,0DAVM,EAWN,oEAXM,EAYN,6DAZM,EAaN,sFAbM,EAcN,oGAdM,EAeN,uGAfM,EAgBN,6GAhBM;AAvBA,S;AA0CoB,Q;;;;;;;;;;;;;;;;;;ACpE9B;AAAA;;;AAAA;AAAA;AAAA,O,CAAA;AACA;AACA;;;AAEO,QAAMyG,WAAW,GAAG;AACzBC,gBAAU,EAAE,KADa;AAEzBV,SAAG,EAAC;AAFqB,KAApB;AAKP;;;;;;;AAOA;;;;;;;;;;;;;;;;;AChBA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;;AAMA,QAAI,sEAAYU,UAAhB,EAA4B;AAC1B;AACD;;AAED,gFAAyBC,eAAzB,CAAyC,yDAAzC,EACGC,KADH,CACS,UAAAtE,GAAG;AAAA,aAAIuE,OAAO,CAACV,KAAR,CAAc7D,GAAd,CAAJ;AAAA,KADZ","file":"main-es5.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = \"./$$_lazy_route_resource lazy recursive\";","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\n\nconst routes: Routes = [];\n\n@NgModule({\n imports: [RouterModule.forRoot(routes)],\n exports: [RouterModule]\n})\nexport class AppRoutingModule { }\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.scss']\n})\nexport class AppComponent {\n title = 'human-finder';\n}\n","<app-hf-card-list></app-hf-card-list>","import { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { AppRoutingModule } from './app-routing.module';\nimport { AppComponent } from './app.component';\n\nimport { HumanFinderModule } from '../app/shared/humanfinder.module';\nimport { RmsShowService } from './services/hf-list.service';\n\n@NgModule({\n declarations: [\n AppComponent\n \n ],\n imports: [\n BrowserModule,\n AppRoutingModule,\n HumanFinderModule\n ],\n providers: [RmsShowService],\n bootstrap: [AppComponent]\n})\nexport class AppModule { }\n","import { Component, OnInit } from '@angular/core';\nimport { RmsShowService } from '../../services/hf-list.service';\nimport {Page, Character, FILTER} from '../../models/hf-components.model';\nimport { CHIPMODEL } from '../../models/hf-chip.model';\n\n@Component({\n selector: 'app-hf-card-list',\n templateUrl: './hf-card-list.component.html',\n styleUrls: ['./hf-card-list.component.scss']\n})\nexport class HfCardListComponent implements OnInit {\n\n\n searchName: string;\n sortOrder: string;\n page:Page = {\n count:0,\n currentpage:1,\n pages:0,\n perPage:20\n };\n allCharacters: any[];\n filterList:FILTER[];\n selectedFilter: CHIPMODEL[]=[];\n constructor(private _rmsService: RmsShowService) { }\n\n ngOnInit(): void {\n this.filterList = this._rmsService.getAllFilterList();\n this.getAllCharacters(1)\n }\n\n getAllCharacters(page:number){\n let query = '';\n if(this.selectedFilter.length > 0){\n this.selectedFilter.forEach(item=>{\n query +='&' +item.name.name.toLowerCase() +'='+item.item.name \n })\n }\n if(this.searchName){\n query += '&name='+this.searchName\n }\n this._rmsService.getAllCharacters(page,query).subscribe(\n (res:{info:any,results:Character[]})=>{\n this.page.count = res.info.count;\n this.page.pages = res.info.pages;\n this.allCharacters = res.results;\n },\n err=>{\n }\n )\n }\n filterChange(evt){\n let index = this.selectedFilter.findIndex(sFilter=> sFilter.item === evt.item);\n if(index === -1){\n this.selectedFilter.push(evt);\n }else{\n let mainCat = this.filterList.find(item=> item.name === this.selectedFilter[index].name.name);\n let subItem = mainCat.items.find(sItem=> sItem.name === this.selectedFilter[index].item.name);\n subItem.selected = false;\n this.selectedFilter.splice(index,1);\n }\n this.getAllCharacters(this.page.currentpage);\n }\n\n goToPage(evt){\n this.page.currentpage = evt;\n this.getAllCharacters(this.page.currentpage);\n }\n\n sortingOnChange(val){\n this.sortOrder = val;\n this.allCharacters = [...this.allCharacters]\n }\n\n}\n","<div fxLayout=\"row\" fxLayout.xs=\"column\" fxFlex fxLayoutGap=\"20px\">\n\n <div fxLayout=\"column\" fxFlex=\"20\" class=\"p-l-20\">\n <h4>Filter</h4>\n <app-hf-filter-block [filterList]=\"filterList\" (filterChange)=\"filterChange($event)\"></app-hf-filter-block>\n </div>\n\n <div fxLayout=\"column\" fxFlex=\"80\">\n\n <div fxLayout=\"row wrap\" class=\"m-r-20\" fxFlex>\n <div fxFlex=\"100\" class=\"p-10 p-l-none\">\n <h3>Selected Filters</h3>\n \n <mat-chip-list aria-label=\"\" *ngIf=\"selectedFilter.length > 0\" > \n \n <app-hf-chips-list *ngFor=\"let item of selectedFilter\" [chipsInput]=\"item\" (removeFilter)=\"filterChange($event)\"></app-hf-chips-list>\n </mat-chip-list>\n \n </div>\n <div fxFlex=\"50\" class=\"p-10 p-l-none\">\n <div class=\"\">\n <label for=\"search\">Search By Name</label>\n <input type=\"text\" id=\"search\" placeholder=\"\" [(ngModel)]=\"searchName\">\n <button color=\"primary\" (click)=\"getAllCharacters(page.currentpage)\">Search</button>\n </div>\n </div>\n <div fxFlex=\"50\" class=\"p-10 p-r-none\" fxLayoutAlign=\"end\">\n <div class=\"\">\n <select (change)=\"sortOrder = $event.target.value\" #sortVar>\n <option value=\"asc\">Ascending</option>\n <option value=\"desc\">Descending</option>\n </select>\n </div>\n </div>\n\n \n <div fxFlex=\"25\" fxFlex.xs=\"50\" class=\"p-10 bg-black cards\" *ngFor=\"let char of allCharacters | sort:'id': sortOrder\">\n \n <mat-card class=\"\"> \n <img mat-card-image [src]=\"char.image\" alt=\"{{char.image}}\">\n <mat-card-header> \n <mat-card-title>{{char.name}}</mat-card-title>\n <mat-card-subtitle class=\"text-11\">id: {{char.id}} - {{ char.created}}</mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <mat-list dense>\n <mat-list-item>\n <div fxLayoutAlign=\"start\" fxLayout.lt-sm=\"column\" fxFill>\n <span fxFlex=\"50%\" fxLayoutAlign=\"start\" class=\"color-grey\">STATUS</span>\n <span fxFlex=\"50%\" fxLayoutAlign=\"end\" class=\"color-dark-yellow\">{{char.status}}</span>\n </div> \n </mat-list-item>\n <mat-list-item>\n <div fxLayoutAlign=\"start\" fxLayout.lt-sm=\"column\" fxFill>\n <span fxFlex=\"50%\" fxLayoutAlign=\"start\" class=\"color-grey\">SPECIES</span>\n <span fxFlex=\"50%\" fxLayoutAlign=\"end\" class=\"color-dark-yellow\">{{char.species}}</span>\n </div> \n </mat-list-item>\n <mat-list-item>\n <div fxLayoutAlign=\"start\" fxLayout.lt-sm=\"column\" fxFill>\n <span fxFlex=\"50%\" fxLayoutAlign=\"start\" class=\"color-grey\">GENDER</span>\n <span fxFlex=\"50%\" fxLayoutAlign=\"end\" class=\"color-dark-yellow\">{{char.gender}}</span>\n </div> \n </mat-list-item>\n <mat-list-item>\n <div fxLayoutAlign=\"start\" fxLayout.lt-sm=\"column\" fxFill>\n <span fxFlex=\"50%\" fxLayoutAlign=\"start\" class=\"color-grey\">ORIGIN</span>\n <span fxFlex=\"50%\" fxLayoutAlign=\"end\" class=\"color-dark-yellow text-right\">{{char.origin.name}}</span>\n </div> \n </mat-list-item>\n <mat-list-item>\n <div fxLayoutAlign=\"start\" fxLayout.lt-sm=\"column\" fxFill>\n <span fxFlex=\"30%\" fxLayoutAlign=\"start\" class=\"color-grey\">LAST LOCATION</span>\n <span fxFlex=\"70%\" fxLayoutAlign=\"end\" class=\"color-dark-yellow text-right\">{{char.location.name}}</span>\n </div> \n </mat-list-item> \n </mat-list>\n </mat-card-content> \n </mat-card>\n \n </div>\n </div>\n\n <div fxLayoutAlign=\"end\">\n <app-hf-pagination-block [currentPage]=\"page.currentpage\" [totalItemsCount]=\"page.count\" [perPage]=\"page.perPage\" [pagesToShow]=\"page.pages > 4 ? 4: page.pages\"\n (prev)=\"goToPage($event)\" (next)=\"goToPage($event)\" (goPage)=\"goToPage($event)\"></app-hf-pagination-block>\n </div>\n\n </div>\n </div>","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { CHIPMODEL } from '../../models/hf-chip.model';\n\n@Component({\n selector: 'app-hf-chips-list',\n templateUrl: './hf-chips-list.component.html',\n styleUrls: ['./hf-chips-list.component.scss']\n})\nexport class HfChipsListComponent implements OnInit {\n\n \n@Input()chipsInput:CHIPMODEL;\n\n@Output()removeFilter:EventEmitter<CHIPMODEL> = new EventEmitter();\n constructor() { }\n\n ngOnInit(): void {\n }\n\n removeChip(){\n this.removeFilter.emit(this.chipsInput)\n }\n\n}\n","<!-- <div class=\"chip\" fxLayoutAlign=\"center center\">\n <span>{{chipsInput.item.name}}</span>\n <span fxFlex></span>\n <button mat-icon-button aria-label=\"Remove Filter\" (click)=\"removeChip()\">\n <mat-icon>clear</mat-icon>\n </button>\n</div> -->\n<!-- <mat-chip >\n sdfsdf\n <mat-icon _ngcontent-lkl-c162=\"\" role=\"img\" type=\"button\" matchipremove=\"\" class=\"mat-icon notranslate mat-chip-remove mat-chip-trailing-icon material-icons mat-icon-no-color ng-star-inserted\" aria-hidden=\"true\">cancel</mat-icon>\n </mat-chip> -->\n \n \n <mat-chip >{{chipsInput.item.name}}<span class=\"p-l-5\" (click)=\"removeChip()\">x</span></mat-chip> \n\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-hf-filter-block',\n templateUrl: './hf-filter-block.component.html',\n styleUrls: ['./hf-filter-block.component.scss']\n})\nexport class HfFilterBlockComponent implements OnInit {\n @Input()filterList:any[];\n @Output() filterChange: EventEmitter<any> = new EventEmitter();\n constructor() { }\n \n ngOnInit(): void {\n }\n \n toggleFilter(f,item){\n let data = {\n name:f,\n item:item\n }\n this.filterChange.emit(data)\n }\n\n}\n","<div class=\"f-container\" fxLayout=\"column\" *ngFor=\"let f of filterList\">\n <h4>{{f.name}}</h4>\n <mat-checkbox *ngFor=\"let item of f.items\" [(ngModel)]=\"item.selected\" (change)=\"toggleFilter(f,item)\">{{item.name}}</mat-checkbox>\n</div>","import { Component, OnInit, Input, EventEmitter, Output, OnChanges } from '@angular/core';\n\n@Component({\n selector: 'app-hf-pagination-block',\n templateUrl: './hf-pagination-block.component.html',\n styleUrls: ['./hf-pagination-block.component.scss']\n})\nexport class HfPaginationBlockComponent implements OnInit {\n\n @Input('currentPage') currentPage: number = 1;\n @Input('totalItemsCount') totalItemsCount: number;\n @Input('perPage') perPage: number=20;\n @Input('pagesToShow') pagesToShow: number;\n\n @Output() prev = new EventEmitter<number>();\n @Output() next = new EventEmitter<number>();\n @Output() goPage = new EventEmitter<number>();\n\n constructor() {\n }\n\n \n ngOnInit() {\n }\n\n goToPage(n: number): void {\n this.currentPage = n;\n this.goPage.emit(n);\n }\n goToPrevPage(): void {\n this.goToPage(this.currentPage-1); \n }\n\n goToNextPage(): void {\n this.goToPage(this.currentPage+1);\n \n }\n\n ifLastPage(): boolean {\n return this.perPage * this.currentPage >= this.totalItemsCount;\n }\n\n\n \n\n\n\n}\n","<div class=\"mat-paginator-range-actions\"> \n <button (click)=\"goToPrevPage()\" [disabled]=\"currentPage === 1\" mat-icon-button=\"\" type=\"button\" class=\"mat-focus-indicator mat-paginator-navigation-previous mat-icon-button mat-button-base\" aria-label=\"Previous page\">\n <span class=\"mat-button-wrapper\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\" class=\"mat-paginator-icon\">\n <path d=\"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\"></path>\n </svg>\n </span>\n <div matripple=\"\" class=\"mat-ripple mat-button-ripple mat-button-ripple-round\"></div>\n <div class=\"mat-button-focus-overlay\"></div>\n </button>\n\n <button (click)=\"goToNextPage()\" [disabled]=\"ifLastPage()\" mat-icon-button=\"\" type=\"button\" class=\"page-link page-item disabled mat-focus-indicator mat-paginator-navigation-next mat-icon-button mat-button-base\" aria-label=\"Next page\">\n <span class=\"mat-button-wrapper\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\" class=\"mat-paginator-icon\">\n <path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"></path>\n </svg>\n </span>\n <div matripple=\"\" class=\"mat-ripple mat-button-ripple mat-button-ripple-round\"></div>\n <div class=\"mat-button-focus-overlay\"></div>\n </button> \n</div>\n\n\n","import { Directive, ElementRef, HostListener, Input } from '@angular/core';\n\n@Directive({\n selector: '[rmsHighLight]'\n})\nexport class HighLightDirective {\n\n @Input() highlightColor: string;\n constructor(private el: ElementRef) { }\n \n @HostListener('mouseenter') onMouseEnter(){\n this.highLight(this.highlightColor || 'green')\n }\n @HostListener('mouseleave') onMouseLeave(){\n this.highLight(null)\n }\n private highLight(color:string){\n this.el.nativeElement.style.backgroundColor = color;\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\ninterface Comparer{\n (p1: any, p2: any): number\n}\n@Pipe({\n name: 'sort',\n pure: true\n})\nexport class SortPipe implements PipeTransform {\n private getComparer(attrName) : Comparer {\n return function compareByCost(p1 : any, p2 : any) : number {\n if (p1[attrName] < p2[attrName]) return -1;\n if (p1[attrName] > p2[attrName]) return 1;\n return 0;\n }\n}\n\nprivate getDescendigComparer(comparer) : Comparer {\n return function (p1 : any, p2 : any) : number {\n return comparer(p1, p2) * -1;\n }\n}\ntransform(data : any[], ...args : any[] ){\n let attrName = args[0];\n let sort = args[1]\n if (!data || !data.length || !attrName) return data;\n // let comparer = this.getComparer(attrName);\n // if (isDesc)\n // comparer = this.getDescendigComparer(comparer);\n data.sort((p1:any,p2:any)=>{\n if(sort === 'desc'){\n if (p1[attrName] < p2[attrName]) return 1;\n if (p1[attrName] > p2[attrName]) return -1;\n return 0;\n }else{\n if (p1[attrName] < p2[attrName]) return -1;\n if (p1[attrName] > p2[attrName]) return 1;\n return 0;\n } \n });\n return data;\n}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'elaspedTime'\n})\nexport class ElaspedTimePipe implements PipeTransform {\n\n transform(data:string):string{\n return window['moment'](data).fromNow();\n}\n\n}\n","import { Injectable } from '@angular/core';\nimport {environment} from './../../environments/environment';\nimport { throwError } from 'rxjs';\nimport { HttpClient } from '@angular/common/http';\nimport {retry, catchError} from 'rxjs/operators';\n\n@Injectable()\nexport class RmsShowService {\n\n constructor(private _http: HttpClient) { \n }\n\n getAllFilterList(){\n let filter = [\n {\n name: 'Species',\n items:[{name:'Human',selected:false}, {name:'Mytholog',selected:false},{name:'Other Species',selected:false}]\n },\n {\n name:'Gender',\n items:[{name:'Male',selected:false},{name:'Female',selected:false}]\n },\n {\n name: 'Origin',\n items:[{name:'Unknown',selected:false},{name:'Post Apocalyptic Earth',selected:false}, {name:'Nuptia 4',selected:false},{name:'Other Origins',selected:false}]\n }\n ]\n return filter;\n }\n getAllCharacters(page:number,query:string){\n\n let queryString = query.length > 0 ? (page+query) :page;\n return this._http.get(environment.url+'character?page='+queryString).pipe(\n retry(1),\n catchError(this.handleError)\n )\n }\n handleError(error) {\n let errorMessage = '';\n if (error.error instanceof ErrorEvent) {\n // client-side error\n errorMessage = `Error: ${error.error.message}`;\n } else {\n // server-side error\n errorMessage = `Error Code: ${error.status}\\nMessage: ${error.message}`;\n }\n return throwError(errorMessage);\n}\n}\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { HttpClientModule } from '@angular/common/http';\r\nimport { FlexLayoutModule } from '@angular/flex-layout';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { MatCardModule} from '@angular/material/card';\r\nimport { MatDividerModule} from '@angular/material/divider';\r\nimport { MatListModule} from '@angular/material/list';\r\nimport { MatCheckboxModule} from '@angular/material/checkbox';\r\nimport { MatButtonModule} from '@angular/material/button';\r\nimport { MatIconModule} from '@angular/material/icon';\r\nimport { MatChipsModule } from '@angular/material/chips';\r\n\r\nimport { SortPipe } from '../pipes/hf-sort.pipe';\r\nimport { ElaspedTimePipe } from '../pipes/hf-time.pipe';\r\n\r\nimport { HighLightDirective } from '../directives/human-finder.directive';\r\n\r\nimport { HfCardListComponent } from '../components/hf-card-list/hf-card-list.component';\r\nimport { HfChipsListComponent } from '../components/hf-chips-list/hf-chips-list.component';\r\nimport { HfFilterBlockComponent } from '../components/hf-filter-block/hf-filter-block.component';\r\nimport { HfPaginationBlockComponent } from '../components/hf-pagination-block/hf-pagination-block.component';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n HfCardListComponent,\r\n HfChipsListComponent,\r\n HfFilterBlockComponent,\r\n HfPaginationBlockComponent,\r\n ElaspedTimePipe, \r\n SortPipe, \r\n HighLightDirective\r\n ],\r\n imports: [\r\n CommonModule,\r\n HttpClientModule,\r\n FlexLayoutModule,\r\n MatCardModule,\r\n MatDividerModule,\r\n MatListModule,\r\n MatCheckboxModule,\r\n MatButtonModule,\r\n MatIconModule,\r\n MatChipsModule,\r\n FormsModule\r\n ],\r\n exports:[\r\n HttpClientModule,\r\n FlexLayoutModule,\r\n MatCardModule,\r\n MatDividerModule,\r\n MatListModule,\r\n MatCheckboxModule,\r\n MatButtonModule,\r\n MatIconModule,\r\n MatChipsModule,\r\n FormsModule,\r\n ElaspedTimePipe,\r\n SortPipe,\r\n HighLightDirective,\r\n HfCardListComponent,\r\n HfChipsListComponent,\r\n HfFilterBlockComponent\r\n ]\r\n})\r\nexport class HumanFinderModule { }\r\n","// This file can be replaced during build by using the `fileReplacements` array.\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\n// The list of file replacements can be found in `angular.json`.\n\nexport const environment = {\n production: false,\n url:'https://rickandmortyapi.com/api/'\n};\n\n/*\n * For easier debugging in development mode, you can import the following file\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\n *\n * This import should be commented out in production mode because it will have a negative impact\n * on performance if an error is thrown.\n */\n// import 'zone.js/dist/zone-error'; // Included with Angular CLI.\n","import { enableProdMode } from '@angular/core';\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app/app.module';\nimport { environment } from './environments/environment';\n\nif (environment.production) {\n enableProdMode();\n}\n\nplatformBrowserDynamic().bootstrapModule(AppModule)\n .catch(err => console.error(err));\n"]}