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AG;MACPH,KAAK,CAACD,KAAK,GAAGI,MAAM,CAACJ,KAAK;MAC1BC,KAAK,CAACJ,OAAO,GAAG,KAAK;IACvB,CAAC,EACDQ,KAAK,IAAG;MACNJ,KAAK,CAACJ,OAAO,GAAG,KAAK;IACvB,CAAC,CACF;EACH;EAEAS,QAAQA,CAAA,GACR;EAEAC,WAAWA,CAACC,IAAI;IACd,IAAI,CAACd,MAAM,CAACe,QAAQ,CAAC,CAAC,eAAe,CAAC,EAAE;MAACC,KAAK,EAAE;QAACC,KAAK,EAAEH,IAAI,CAACG,KAAK;QAAEC,IAAI,EAAEJ,IAAI,CAACI,IAAI;QAAEC,KAAK,EAAEL,IAAI,CAACK;MAAK;IAAC,CAAC,CAAC;EAC3G;;;;;;;;;;;AA9BWvC,UAAU,GAAAK,iDAAA,EALtBS,wDAAS,CAAC;EACT0B,QAAQ,EAAE,YAAY;EACtBC,QAAA,EAAAC,yDAAiC;;CAElC,CAAC,GACW1C,UAAU,CAgCtB;;;;;;;;;;AC3CD;AACA,4CAA4C,mBAAO,CAAC,uEAA6D;AACjH,kCAAkC,mBAAO,CAAC,gEAAsD;AAChG;AACA;AACA,iDAAiD,kEAAkE;AACnH;AACA","sources":["./src/app/libros/libros-routing.module.ts","./src/app/libros/libros.module.ts","./src/app/libros/libros.page.ts","./src/app/libros/libros.page.scss"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { LibrosPage } from './libros.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: LibrosPage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class LibrosPageRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { LibrosPageRoutingModule } from './libros-routing.module';\n\nimport { LibrosPage } from './libros.page';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n LibrosPageRoutingModule\n ],\n declarations: [LibrosPage]\n})\nexport class LibrosPageModule {}\n","import { Component, OnInit } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { LoadingController } from '@ionic/angular';\nimport { APP_APIS } from '../app.apis';\nimport { ApiService } from '../services/api.service';\n\n@Component({\n selector: 'app-libros',\n templateUrl: './libros.page.html',\n styleUrls: ['./libros.page.scss'],\n})\nexport class LibrosPage implements OnInit {\n\n private loading:boolean = false;\n private url_api:string = APP_APIS.url;\n private books:any = [];\n\n constructor(\n private router: Router,\n private loadingCtrl: LoadingController,\n private apiService: ApiService\n ) {\n let _root = this;\n\n _root.loading = true;\n _root.apiService.virtualbooks().subscribe(\n result => {\n _root.books = result.books;\n _root.loading = false;\n },\n error => {\n _root.loading = false;\n }\n );\n }\n\n ngOnInit() {\n }\n\n onClickBook(book) {\n this.router.navigate(['libro-virtual'], {state: {title: book.title, uuid: book.uuid, count: book.count}});\n }\n\n}\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ``, \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n"],"names":["NgModule","RouterModule","LibrosPage","routes","path","component","LibrosPageRoutingModule","__decorate","imports","forChild","exports","CommonModule","FormsModule","IonicModule","LibrosPageModule","declarations","Component","Router","LoadingController","APP_APIS","ApiService","constructor","router","loadingCtrl","apiService","loading","url_api","url","books","_root","virtualbooks","subscribe","result","error","ngOnInit","onClickBook","book","navigate","state","title","uuid","count","selector","template","__NG_CLI_RESOURCE__0"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}