Cambiar gitignore

parent 31b0ff25
# Compiled class file # General
*.class /bak
# Log file # Eclipse
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
# Created by https://www.gitignore.io/api/node,java,angular,eclipse,visualstudiocode
# Edit at https://www.gitignore.io/?templates=node,java,angular,eclipse,visualstudiocode
### Angular ###
## Angular ##
# compiled output
dist/
tmp/
app/**/*.js
app/**/*.js.map
# dependencies
node_modules/
bower_components/
# IDEs and editors
.idea/
# misc
.sass-cache/
connect.lock/
coverage/
libpeerconnection.log/
npm-debug.log
testem.log
typings/
# e2e
e2e/*.js
e2e/*.map
#System Files
.DS_Store/
### Eclipse ###
.metadata
bin/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# PyDev specific (Python IDE for Eclipse)
*.pydevproject
# CDT-specific (C/C++ Development Tooling)
.cproject
# CDT- autotools
.autotools
# Java annotation processor (APT)
.factorypath
# PDT-specific (PHP Development Tools)
.buildpath
# sbteclipse plugin
.target
# Tern plugin
.tern-project
# TeXlipse plugin
.texlipse
# STS (Spring Tool Suite)
.springBeans
# Code Recommenders
.recommenders/
# Annotation Processing
.apt_generated/
# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet
### Eclipse Patch ###
# Eclipse Core
.project .project
# JDT-specific (Eclipse Java Development Tools)
.classpath .classpath
.settings
WebContent
# Annotation Processing # Maven
.apt_generated /bin
/target
.sts4-cache/ /assembly
### Java ###
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
### Node ###
# Logs
logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
jspm_packages/
# TypeScript v1 declaration files
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# rollup.js default build output
# Uncomment the public line if your project uses Gatsby
# https://nextjs.org/blog/next-9-1#public-directory-support
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
# public
# Storybook build outputs
.out
.storybook-out
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# Temporary folders
temp/
### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
# End of https://www.gitignore.io/api/node,java,angular,eclipse,visualstudiocode # Testing
/servers
C:\\nppdf32Log\\debuglog.txt
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<display-name>DAAExample</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<filter>
<filter-name>CorsFilter</filter-name>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
<init-param>
<param-name>cors.allowed.origins</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>cors.allowed.headers</param-name>
<param-value>Authorization</param-value>
</init-param>
<init-param>
<param-name>cors.allowed.methods</param-name>
<param-value>GET, POST, DELETE, PUT</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CorsFilter</filter-name>
<url-pattern>/rest/*</url-pattern>
</filter-mapping>
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/rest/*</url-pattern>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>ADMIN</role-name>
<role-name>USER</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Admin Area</web-resource-name>
<url-pattern>/rest/people/*</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>ADMIN</role-name>
</auth-constraint>
</security-constraint>
<!-- Security roles referenced by this web application -->
<security-role>
<role-name>ADMIN</role-name>
</security-role>
<security-role>
<role-name>USER</role-name>
</security-role>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>DAAExample</realm-name>
</login-config>
</web-app>
\ No newline at end of file
<!--
~ DAA Example
~
~ Copyright (C) 2019 - Miguel Reboiro-Jato.
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>DAA Example</title>
<base href=".">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root></app-root>
<script src="runtime-es2015.js" type="module"></script><script src="runtime-es5.js" nomodule defer></script><script src="polyfills-es5.js" nomodule defer></script><script src="polyfills-es2015.js" type="module"></script><script src="styles-es2015.js" type="module"></script><script src="styles-es5.js" nomodule defer></script><script src="vendor-es2015.js" type="module"></script><script src="vendor-es5.js" nomodule defer></script><script src="main-es2015.js" type="module"></script><script src="main-es5.js" nomodule defer></script></body>
</html>
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/app.component.html":
/*!**************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/app.component.html ***!
\**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<router-outlet></router-outlet>\r\n");
/***/ }),
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/components/login-panel/login-panel.component.html":
/*!*********************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/components/login-panel/login-panel.component.html ***!
\*********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<div id=\"container\">\r\n <div class=\"form-singin\">\r\n <h1 class=\"h1 mb-3 font-weight-normal\">DAA Example - Angular</h1>\r\n\r\n <label for=\"login\" class=\"sr-only\">Usuario</label>\r\n <input id=\"login\" name=\"login\" type=\"text\" class=\"form-control\" placeholder=\"Usuario\" required autofocus\r\n [(ngModel)]=\"login\"/>\r\n\r\n <label for=\"password\" class=\"sr-only\">Contraseña</label>\r\n <input id=\"password\" name=\"password\" type=\"password\" class=\"form-control\" placeholder=\"Contraseña\" required\r\n [(ngModel)]=\"password\"/>\r\n\r\n <button class=\"btn btn-lg btn-primary btn-block mt-3\" (click)=\"onLogin()\">Entrar</button>\r\n </div>\r\n</div>\r\n");
/***/ }),
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/components/main-panel/main-panel.component.html":
/*!*******************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/components/main-panel/main-panel.component.html ***!
\*******************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<header>\r\n <div class=\"navbar navbar-dark bg-dark box-shadow\">\r\n <div class=\"container d-flex justify-content-between\">\r\n <a href=\"#\" class=\"navbar-brand d-flex align-items-center\">\r\n <strong>DAA Example</strong>\r\n </a>\r\n\r\n <button class=\"btn btn-dark\" role=\"button\" (click)=\"onLogout()\">Cerrar sesión</button>\r\n </div>\r\n </div>\r\n</header>\r\n\r\n<div class=\"container\">\r\n <router-outlet></router-outlet>\r\n</div>\r\n");
/***/ }),
/***/ "./node_modules/tslib/tslib.es6.js":
/*!*****************************************!*\
!*** ./node_modules/tslib/tslib.es6.js ***!
\*****************************************/
/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
}
return __assign.apply(this, arguments);
}
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
return t;
}
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter(thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
function __exportStar(m, exports) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
function __values(o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}
function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}
function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}
function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result.default = mod;
return result;
}
function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
/***/ }),
/***/ "./src/$$_lazy_route_resource lazy recursive":
/*!**********************************************************!*\
!*** ./src/$$_lazy_route_resource lazy namespace object ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function webpackEmptyAsyncContext(req) {
// Here Promise.resolve().then() is used instead of new Promise() to prevent
// uncaught exception popping up in devtools
return Promise.resolve().then(function() {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = "./src/$$_lazy_route_resource lazy recursive";
/***/ }),
/***/ "./src/app/app-routing.module.ts":
/*!***************************************!*\
!*** ./src/app/app-routing.module.ts ***!
\***************************************/
/*! exports provided: AppRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppRoutingModule", function() { return AppRoutingModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */ var _guards_unauthenticated_guard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./guards/unauthenticated.guard */ "./src/app/guards/unauthenticated.guard.ts");
/* harmony import */ var _guards_authenticated_guard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./guards/authenticated.guard */ "./src/app/guards/authenticated.guard.ts");
/* harmony import */ var _components_login_panel_login_panel_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/login-panel/login-panel.component */ "./src/app/components/login-panel/login-panel.component.ts");
/* harmony import */ var _components_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/main-panel/main-panel.component */ "./src/app/components/main-panel/main-panel.component.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
const routes = [
{
path: 'welcome',
pathMatch: 'full',
component: _components_login_panel_login_panel_component__WEBPACK_IMPORTED_MODULE_5__["LoginPanelComponent"],
canActivate: [_guards_unauthenticated_guard__WEBPACK_IMPORTED_MODULE_3__["UnauthenticatedGuard"]]
},
{
path: '',
component: _components_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__["MainPanelComponent"],
canActivate: [_guards_authenticated_guard__WEBPACK_IMPORTED_MODULE_4__["AuthenticatedGuard"]],
children: [
{
path: '',
redirectTo: 'people',
pathMatch: 'full'
},
{
path: 'people',
loadChildren: () => __webpack_require__.e(/*! import() | modules-people-people-module */ "modules-people-people-module").then(__webpack_require__.bind(null, /*! ./modules/people/people.module */ "./src/app/modules/people/people.module.ts")).then(m => m.PeopleModule)
},
{
path: 'listPets/:person',
redirectTo: ':person',
pathMatch: 'full'
},
{
path: ':person',
loadChildren: () => __webpack_require__.e(/*! import() | modules-pets-pets-module */ "modules-pets-pets-module").then(__webpack_require__.bind(null, /*! ./modules/pets/pets.module */ "./src/app/modules/pets/pets.module.ts")).then(m => m.PetsModule)
}
]
},
];
let AppRoutingModule = class AppRoutingModule {
};
AppRoutingModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forRoot(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
})
], AppRoutingModule);
/***/ }),
/***/ "./src/app/app.component.scss":
/*!************************************!*\
!*** ./src/app/app.component.scss ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ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CBQdWJsaWMgTGljZW5zZSBmb3IgbW9yZSBkZXRhaWxzLlxyXG4gKlxyXG4gKiBZb3Ugc2hvdWxkIGhhdmUgcmVjZWl2ZWQgYSBjb3B5IG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZVxyXG4gKiBhbG9uZyB3aXRoIHRoaXMgcHJvZ3JhbS4gSWYgbm90LCBzZWUgPGh0dHA6Ly93d3cuZ251Lm9yZy9saWNlbnNlcy8+LlxyXG4gKi9cclxuXHJcbiJdfQ== */");
/***/ }),
/***/ "./src/app/app.component.ts":
/*!**********************************!*\
!*** ./src/app/app.component.ts ***!
\**********************************/
/*! exports provided: AppComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let AppComponent = class AppComponent {
constructor() {
this.title = 'angular';
}
};
AppComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-root',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./app.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/app.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./app.component.scss */ "./src/app/app.component.scss")).default]
})
], AppComponent);
/***/ }),
/***/ "./src/app/app.module.ts":
/*!*******************************!*\
!*** ./src/app/app.module.ts ***!
\*******************************/
/*! exports provided: AppModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm2015/platform-browser.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app-routing.module */ "./src/app/app-routing.module.ts");
/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts");
/* harmony import */ var _components_login_panel_login_panel_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/login-panel/login-panel.component */ "./src/app/components/login-panel/login-panel.component.ts");
/* harmony import */ var _components_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/main-panel/main-panel.component */ "./src/app/components/main-panel/main-panel.component.ts");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm2015/http.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm2015/forms.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm2015/common.js");
/* harmony import */ var _interceptors_authentication_interceptor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./interceptors/authentication.interceptor */ "./src/app/interceptors/authentication.interceptor.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let AppModule = class AppModule {
};
AppModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"])({
declarations: [
_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"],
_components_login_panel_login_panel_component__WEBPACK_IMPORTED_MODULE_5__["LoginPanelComponent"],
_components_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__["MainPanelComponent"],
],
imports: [
_app_routing_module__WEBPACK_IMPORTED_MODULE_3__["AppRoutingModule"],
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"],
_angular_common__WEBPACK_IMPORTED_MODULE_9__["CommonModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormsModule"],
_angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClientModule"]
],
providers: [
{
provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HTTP_INTERCEPTORS"],
useClass: _interceptors_authentication_interceptor__WEBPACK_IMPORTED_MODULE_10__["AuthenticationInterceptor"],
multi: true
},
{
provide: _angular_common__WEBPACK_IMPORTED_MODULE_9__["LocationStrategy"],
useClass: _angular_common__WEBPACK_IMPORTED_MODULE_9__["HashLocationStrategy"]
}
],
bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"]]
})
], AppModule);
/***/ }),
/***/ "./src/app/components/login-panel/login-panel.component.scss":
/*!*******************************************************************!*\
!*** ./src/app/components/login-panel/login-panel.component.scss ***!
\*******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n#container {\n height: 100%;\n width: 100%;\n display: -webkit-box;\n display: flex;\n -ms-flex-align: center;\n -ms-flex-pack: center;\n -webkit-box-align: center;\n align-items: center;\n -webkit-box-pack: center;\n justify-content: center;\n padding-top: 40px;\n padding-bottom: 40px;\n}\n.form-signin {\n width: 100%;\n max-width: 330px;\n padding: 15px;\n margin: 0 auto;\n}\n.form-signin .form-control {\n position: relative;\n box-sizing: border-box;\n height: auto;\n padding: 10px;\n font-size: 16px;\n}\n.form-signin .form-control:focus {\n z-index: 2;\n}\n#login {\n margin-bottom: -1px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n#password {\n margin-bottom: 10px;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n/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gYm9yZGVyLXRvcC1yaWdodC1yYWRpdXM6IDA7XG59Il19 */");
/***/ }),
/***/ "./src/app/components/login-panel/login-panel.component.ts":
/*!*****************************************************************!*\
!*** ./src/app/components/login-panel/login-panel.component.ts ***!
\*****************************************************************/
/*! exports provided: LoginPanelComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginPanelComponent", function() { return LoginPanelComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */ var _services_authentication_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/authentication.service */ "./src/app/services/authentication.service.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let LoginPanelComponent = class LoginPanelComponent {
constructor(authenticationService, router) {
this.authenticationService = authenticationService;
this.router = router;
this.login = '';
this.password = '';
}
onLogin() {
const credentials = {
login: this.login,
password: this.password
};
this.authenticationService.tryLogin(credentials)
.subscribe(() => this.router.navigate(['/']));
}
};
LoginPanelComponent.ctorParameters = () => [
{ type: _services_authentication_service__WEBPACK_IMPORTED_MODULE_3__["AuthenticationService"] },
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] }
];
LoginPanelComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-login-panel',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./login-panel.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/components/login-panel/login-panel.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./login-panel.component.scss */ "./src/app/components/login-panel/login-panel.component.scss")).default]
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_authentication_service__WEBPACK_IMPORTED_MODULE_3__["AuthenticationService"],
_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]])
], LoginPanelComponent);
/***/ }),
/***/ "./src/app/components/main-panel/main-panel.component.scss":
/*!*****************************************************************!*\
!*** ./src/app/components/main-panel/main-panel.component.scss ***!
\*****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHA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FOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1IgQSBQQVJUSUNVTEFSIFBVUlBPU0UuIFNlZSB0aGVcclxuICogR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0YWlscy5cclxuICpcclxuICogWW91IHNob3VsZCBoYXZlIHJlY2VpdmVkIGEgY29weSBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2VcclxuICogYWxvbmcgd2l0aCB0aGlzIHByb2dyYW0uIElmIG5vdCwgc2VlIDxodHRwOi8vd3d3LmdudS5vcmcvbGljZW5zZXMvPi5cclxuICovXHJcbiJdfQ== */");
/***/ }),
/***/ "./src/app/components/main-panel/main-panel.component.ts":
/*!***************************************************************!*\
!*** ./src/app/components/main-panel/main-panel.component.ts ***!
\***************************************************************/
/*! exports provided: MainPanelComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MainPanelComponent", function() { return MainPanelComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/layout */ "./node_modules/@angular/cdk/esm2015/layout.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm2015/operators/index.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */ var _services_authentication_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../services/authentication.service */ "./src/app/services/authentication.service.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let MainPanelComponent = class MainPanelComponent {
constructor(authenticationService, breakpointObserver, router) {
this.authenticationService = authenticationService;
this.breakpointObserver = breakpointObserver;
this.router = router;
this.isHandset$ = this.breakpointObserver.observe(_angular_cdk_layout__WEBPACK_IMPORTED_MODULE_2__["Breakpoints"].Handset)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(result => result.matches));
}
onLogout() {
this.authenticationService.logout();
this.router.navigate(['welcome']);
}
};
MainPanelComponent.ctorParameters = () => [
{ type: _services_authentication_service__WEBPACK_IMPORTED_MODULE_5__["AuthenticationService"] },
{ type: _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_2__["BreakpointObserver"] },
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] }
];
MainPanelComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-main-panel',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./main-panel.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/components/main-panel/main-panel.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./main-panel.component.scss */ "./src/app/components/main-panel/main-panel.component.scss")).default]
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_authentication_service__WEBPACK_IMPORTED_MODULE_5__["AuthenticationService"],
_angular_cdk_layout__WEBPACK_IMPORTED_MODULE_2__["BreakpointObserver"],
_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]])
], MainPanelComponent);
/***/ }),
/***/ "./src/app/guards/authenticated.guard.ts":
/*!***********************************************!*\
!*** ./src/app/guards/authenticated.guard.ts ***!
\***********************************************/
/*! exports provided: AuthenticatedGuard */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthenticatedGuard", function() { return AuthenticatedGuard; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm2015/operators/index.js");
/* harmony import */ var _services_authentication_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/authentication.service */ "./src/app/services/authentication.service.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let AuthenticatedGuard = class AuthenticatedGuard {
constructor(authenticationService, router) {
this.authenticationService = authenticationService;
this.router = router;
}
canActivate(next, state) {
if (this.authenticationService.isLogged()) {
return true;
}
else {
return this.authenticationService.tryLoginWithStoredCredentials()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(user => user !== null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(isLogged => {
if (!isLogged) {
this.router.navigate(['welcome']);
}
}));
}
}
};
AuthenticatedGuard.ctorParameters = () => [
{ type: _services_authentication_service__WEBPACK_IMPORTED_MODULE_4__["AuthenticationService"] },
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] }
];
AuthenticatedGuard = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_authentication_service__WEBPACK_IMPORTED_MODULE_4__["AuthenticationService"],
_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]])
], AuthenticatedGuard);
/***/ }),
/***/ "./src/app/guards/unauthenticated.guard.ts":
/*!*************************************************!*\
!*** ./src/app/guards/unauthenticated.guard.ts ***!
\*************************************************/
/*! exports provided: UnauthenticatedGuard */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnauthenticatedGuard", function() { return UnauthenticatedGuard; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm2015/operators/index.js");
/* harmony import */ var _services_authentication_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/authentication.service */ "./src/app/services/authentication.service.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let UnauthenticatedGuard = class UnauthenticatedGuard {
constructor(authenticationService, router) {
this.authenticationService = authenticationService;
this.router = router;
}
canActivate(next, state) {
if (this.authenticationService.isLogged()) {
this.router.navigate([]);
return false;
}
else {
return this.authenticationService.tryLoginWithStoredCredentials()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(user => user === null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(isNotLogged => {
if (!isNotLogged) {
this.router.navigate([]);
}
}));
}
}
};
UnauthenticatedGuard.ctorParameters = () => [
{ type: _services_authentication_service__WEBPACK_IMPORTED_MODULE_4__["AuthenticationService"] },
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] }
];
UnauthenticatedGuard = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_authentication_service__WEBPACK_IMPORTED_MODULE_4__["AuthenticationService"],
_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]])
], UnauthenticatedGuard);
/***/ }),
/***/ "./src/app/interceptors/authentication.interceptor.ts":
/*!************************************************************!*\
!*** ./src/app/interceptors/authentication.interceptor.ts ***!
\************************************************************/
/*! exports provided: AuthenticationInterceptor */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthenticationInterceptor", function() { return AuthenticationInterceptor; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _services_authentication_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/authentication.service */ "./src/app/services/authentication.service.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let AuthenticationInterceptor = class AuthenticationInterceptor {
constructor(authenticationService) {
this.authenticationService = authenticationService;
}
intercept(request, next) {
const user = this.authenticationService.loggedUser;
if (user !== null) {
request = request.clone({
setHeaders: {
Authorization: 'Basic ' + btoa(user.login + ':' + user.password)
}
});
}
return next.handle(request);
}
};
AuthenticationInterceptor.ctorParameters = () => [
{ type: _services_authentication_service__WEBPACK_IMPORTED_MODULE_2__["AuthenticationService"] }
];
AuthenticationInterceptor = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_authentication_service__WEBPACK_IMPORTED_MODULE_2__["AuthenticationService"]])
], AuthenticationInterceptor);
/***/ }),
/***/ "./src/app/services/authentication.service.ts":
/*!****************************************************!*\
!*** ./src/app/services/authentication.service.ts ***!
\****************************************************/
/*! exports provided: AuthenticationService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthenticationService", function() { return AuthenticationService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm2015/index.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm2015/http.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm2015/operators/index.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var AuthenticationService_1;
let AuthenticationService = AuthenticationService_1 = class AuthenticationService {
constructor(http) {
this.http = http;
this._loggedUser$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](null);
}
static clearCredentials() {
localStorage.removeItem(AuthenticationService_1.USER_STORAGE_KEY);
}
static loadCredentials() {
const serializedCredentials = localStorage.getItem(AuthenticationService_1.USER_STORAGE_KEY);
if (serializedCredentials !== null) {
return JSON.parse(serializedCredentials);
}
else {
return null;
}
}
static storeCredentials(login, password) {
const credentials = { login, password };
localStorage.setItem(AuthenticationService_1.USER_STORAGE_KEY, JSON.stringify(credentials));
}
get loggedUser$() {
return this._loggedUser$.asObservable();
}
get loggedUser() {
return this._loggedUser$.value;
}
isLogged() {
return this.loggedUser !== null;
}
logout() {
AuthenticationService_1.clearCredentials();
this._loggedUser$.next(null);
}
tryLoginWithStoredCredentials() {
const credentials = AuthenticationService_1.loadCredentials();
if (credentials !== null) {
return this.tryLogin(credentials);
}
else {
return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
}
}
tryLogin(login, password) {
let userLogin;
let userPassword;
if (typeof login === 'string') {
if (password === undefined) {
throw new TypeError('password can\'t be null when login is string');
}
userLogin = login;
userPassword = password;
}
else {
userLogin = login.login;
userPassword = login.password;
}
AuthenticationService_1.storeCredentials(userLogin, userPassword);
const headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpHeaders"]()
.set('Authorization', 'Basic ' + btoa(userLogin + ':' + userPassword));
return this.http.get(`${_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].restApi}/users/${userLogin}`, {
headers: headers
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(user => this._loggedUser$.next({
login: userLogin,
password: userPassword
})), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(error => {
this._loggedUser$.next(null);
throw error;
}));
}
};
AuthenticationService.USER_STORAGE_KEY = 'user';
AuthenticationService.ctorParameters = () => [
{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClient"] }
];
AuthenticationService = AuthenticationService_1 = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClient"]])
], AuthenticationService);
/***/ }),
/***/ "./src/environments/environment.ts":
/*!*****************************************!*\
!*** ./src/environments/environment.ts ***!
\*****************************************/
/*! exports provided: environment */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
const environment = {
production: false,
restApi: 'http://localhost:9080/DAAExample/rest'
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
/***/ }),
/***/ "./src/main.ts":
/*!*********************!*\
!*** ./src/main.ts ***!
\*********************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm2015/platform-browser-dynamic.js");
/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if (_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].production) {
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["enableProdMode"])();
}
Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_2__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_3__["AppModule"])
.catch(err => console.error(err));
/***/ }),
/***/ 0:
/*!***************************!*\
!*** multi ./src/main.ts ***!
\***************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! C:\Users\Noelia\Desktop\DAA\daaexample\src\main\angular\src\main.ts */"./src/main.ts");
/***/ })
},[[0,"runtime","vendor"]]]);
//# sourceMappingURL=main-es2015.js.map
\ No newline at end of file
{"version":3,"sources":["./src/app/app.component.html","./src/app/components/login-panel/login-panel.component.html","./src/app/components/main-panel/main-panel.component.html","./node_modules/tslib/tslib.es6.js","./src/$_lazy_route_resource lazy namespace object","./src/app/app-routing.module.ts","./src/app/app.component.scss","./src/app/app.component.ts","./src/app/app.module.ts","./src/app/components/login-panel/login-panel.component.scss","./src/app/components/login-panel/login-panel.component.ts","./src/app/components/main-panel/main-panel.component.scss","./src/app/components/main-panel/main-panel.component.ts","./src/app/guards/authenticated.guard.ts","./src/app/guards/unauthenticated.guard.ts","./src/app/interceptors/authentication.interceptor.ts","./src/app/services/authentication.service.ts","./src/environments/environment.ts","./src/main.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAe,ihBAAkd,8W;;;;;;;;;;;;ACAje;AAAe,ihBAAkd,giC;;;;;;;;;;;;ACAje;AAAe,ihBAAkd,kzB;;;;;;;;;;;;ACAje;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA,+DAA+D;AAC/D;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAU,gBAAgB,sCAAsC,iBAAiB,EAAE;AACnF,yBAAyB,uDAAuD;AAChF;AACA;;AAEO;AACP;AACA,mBAAmB,sBAAsB;AACzC;AACA;;AAEO;AACP;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA,4DAA4D,cAAc;AAC1E;AAC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jC,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,YAAY;SACvB,CAAC,CAAC,EACH,iEAAU,CAAC,KAAK,CAAC,EAAE;YACjB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC7B,MAAM,KAAK,CAAC;QACd,CAAC,CAAC,CACH,CAAC;IACN,CAAC;CACF;AA9FyB,sCAAgB,GAAG,MAAM,CAAC;;YAyBzB,+DAAU;;AA1BxB,qBAAqB;IAHjC,gEAAU,CAAC;QACV,UAAU,EAAE,MAAM;KACnB,CAAC;2EA2ByB,+DAAU;GA1BxB,qBAAqB,CA+FjC;AA/FiC;;;;;;;;;;;;;AC7BlC;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAEH,gFAAgF;AAChF,0EAA0E;AAC1E,gEAAgE;AAEzD,MAAM,WAAW,GAAG;IACzB,UAAU,EAAE,KAAK;IACjB,OAAO,EAAE,uCAAuC;CACjD,CAAC;AAEF;;;;;;GAMG;AACH,mEAAmE;;;;;;;;;;;;;ACnCnE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;GAiBG;;AAE4C;AAC4B;AAE9B;AACY;AAEzD,IAAI,qEAAW,CAAC,UAAU,EAAE;IAC1B,oEAAc,EAAE,CAAC;CAClB;AAED,gGAAsB,EAAE,CAAC,eAAe,CAAC,yDAAS,CAAC;KAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC","file":"main-es2015.js","sourcesContent":["export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<router-outlet></router-outlet>\\r\\n\"","export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<div id=\\\"container\\\">\\r\\n <div class=\\\"form-singin\\\">\\r\\n <h1 class=\\\"h1 mb-3 font-weight-normal\\\">DAA Example - Angular</h1>\\r\\n\\r\\n <label for=\\\"login\\\" class=\\\"sr-only\\\">Usuario</label>\\r\\n <input id=\\\"login\\\" name=\\\"login\\\" type=\\\"text\\\" class=\\\"form-control\\\" placeholder=\\\"Usuario\\\" required autofocus\\r\\n [(ngModel)]=\\\"login\\\"/>\\r\\n\\r\\n <label for=\\\"password\\\" class=\\\"sr-only\\\">Contraseña</label>\\r\\n <input id=\\\"password\\\" name=\\\"password\\\" type=\\\"password\\\" class=\\\"form-control\\\" placeholder=\\\"Contraseña\\\" required\\r\\n [(ngModel)]=\\\"password\\\"/>\\r\\n\\r\\n <button class=\\\"btn btn-lg btn-primary btn-block mt-3\\\" (click)=\\\"onLogin()\\\">Entrar</button>\\r\\n </div>\\r\\n</div>\\r\\n\"","export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<header>\\r\\n <div class=\\\"navbar navbar-dark bg-dark box-shadow\\\">\\r\\n <div class=\\\"container d-flex justify-content-between\\\">\\r\\n <a href=\\\"#\\\" class=\\\"navbar-brand d-flex align-items-center\\\">\\r\\n <strong>DAA Example</strong>\\r\\n </a>\\r\\n\\r\\n <button class=\\\"btn btn-dark\\\" role=\\\"button\\\" (click)=\\\"onLogout()\\\">Cerrar sesión</button>\\r\\n </div>\\r\\n </div>\\r\\n</header>\\r\\n\\r\\n<div class=\\\"container\\\">\\r\\n <router-outlet></router-outlet>\\r\\n</div>\\r\\n\"","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","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 = \"./src/$$_lazy_route_resource lazy recursive\";","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport {UnauthenticatedGuard} from './guards/unauthenticated.guard';\r\nimport {AuthenticatedGuard} from './guards/authenticated.guard';\r\nimport {LoginPanelComponent} from './components/login-panel/login-panel.component';\r\nimport {MainPanelComponent} from './components/main-panel/main-panel.component';\r\nimport {PetsFormComponent} from './modules/pets/components/pets-form/pets-form.component';\r\n\r\n\r\nconst routes: Routes = [\r\n {\r\n path: 'welcome',\r\n pathMatch: 'full',\r\n component: LoginPanelComponent,\r\n canActivate: [UnauthenticatedGuard]\r\n },\r\n {\r\n path: '',\r\n component: MainPanelComponent,\r\n canActivate: [AuthenticatedGuard],\r\n children: [\r\n {\r\n path: '',\r\n redirectTo: 'people',\r\n pathMatch: 'full'\r\n },\r\n {\r\n path: 'people',\r\n loadChildren: () => import('./modules/people/people.module').then(m => m.PeopleModule)\r\n },\r\n {\r\n path: 'listPets/:person',\r\n redirectTo: ':person',\r\n pathMatch: 'full'\r\n },\r\n {\r\n path: ':person',\r\n loadChildren: () => import('./modules/pets/pets.module').then(m => m.PetsModule)\r\n }\r\n ]\r\n },\r\n \r\n\r\n \r\n \r\n \r\n /*{\r\n path: 'pets/:person',\r\n pathMatch: 'full',\r\n component: PetsFormComponent,\r\n canActivate: [AuthenticatedGuard]\r\n }*/\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\\n */\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvQzpcXFVzZXJzXFxOb2VsaWFcXERlc2t0b3BcXERBQVxcZGFhZXhhbXBsZVxcc3JjXFxtYWluXFxhbmd1bGFyL3NyY1xcYXBwXFxhcHAuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7O0VBQUEiLCJmaWxlIjoic3JjL2FwcC9hcHAuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIvKiFcclxuICogREFBIEV4YW1wbGVcclxuICpcclxuICogQ29weXJpZ2h0IChDKSAyMDE5IC0gTWlndWVsIFJlYm9pcm8tSmF0by5cclxuICpcclxuICogVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU6IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnlcclxuICogaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcclxuICogdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgZWl0aGVyIHZlcnNpb24gMyBvZiB0aGUgTGljZW5zZSwgb3JcclxuICogKGF0IHlvdXIgb3B0aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi5cclxuICpcclxuICogVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsXHJcbiAqIGJ1dCBXSVRIT1VUIEFOWSBXQVJSQU5UWTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mXHJcbiAqIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gU2VlIHRoZVxyXG4gKiBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBmb3IgbW9yZSBkZXRhaWxzLlxyXG4gKlxyXG4gKiBZb3Ugc2hvdWxkIGhhdmUgcmVjZWl2ZWQgYSBjb3B5IG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZVxyXG4gKiBhbG9uZyB3aXRoIHRoaXMgcHJvZ3JhbS4gSWYgbm90LCBzZWUgPGh0dHA6Ly93d3cuZ251Lm9yZy9saWNlbnNlcy8+LlxyXG4gKi9cclxuXHJcbiJdfQ== */\"","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.scss']\r\n})\r\nexport class AppComponent {\r\n title = 'angular';\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {BrowserModule} from '@angular/platform-browser';\r\nimport {NgModule} from '@angular/core';\r\n\r\nimport {AppRoutingModule} from './app-routing.module';\r\nimport {AppComponent} from './app.component';\r\nimport {LoginPanelComponent} from './components/login-panel/login-panel.component';\r\nimport {MainPanelComponent} from './components/main-panel/main-panel.component';\r\nimport {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';\r\nimport {FormsModule} from '@angular/forms';\r\nimport {CommonModule, HashLocationStrategy, LocationStrategy} from '@angular/common';\r\nimport {AuthenticationInterceptor} from './interceptors/authentication.interceptor';\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n LoginPanelComponent,\r\n MainPanelComponent,\r\n ],\r\n imports: [\r\n AppRoutingModule,\r\n BrowserModule,\r\n CommonModule,\r\n FormsModule,\r\n HttpClientModule\r\n ],\r\n providers: [\r\n {\r\n provide: HTTP_INTERCEPTORS,\r\n useClass: AuthenticationInterceptor,\r\n multi: true\r\n },\r\n {\r\n provide: LocationStrategy,\r\n useClass: HashLocationStrategy\r\n }\r\n ],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule {\r\n}\r\n","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\\n */\\n#container {\\n height: 100%;\\n width: 100%;\\n display: -webkit-box;\\n display: flex;\\n -ms-flex-align: center;\\n -ms-flex-pack: center;\\n -webkit-box-align: center;\\n align-items: center;\\n -webkit-box-pack: center;\\n justify-content: center;\\n padding-top: 40px;\\n padding-bottom: 40px;\\n}\\n.form-signin {\\n width: 100%;\\n max-width: 330px;\\n padding: 15px;\\n margin: 0 auto;\\n}\\n.form-signin .form-control {\\n position: relative;\\n box-sizing: border-box;\\n height: auto;\\n padding: 10px;\\n font-size: 16px;\\n}\\n.form-signin .form-control:focus {\\n z-index: 2;\\n}\\n#login {\\n margin-bottom: -1px;\\n border-bottom-right-radius: 0;\\n border-bottom-left-radius: 0;\\n}\\n#password {\\n margin-bottom: 10px;\\n border-top-left-radius: 0;\\n border-top-right-radius: 0;\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW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(C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Component} from '@angular/core';\r\nimport {Router} from '@angular/router';\r\nimport {AuthenticationService} from '../../services/authentication.service';\r\nimport {UserModel} from '../../models';\r\n\r\n@Component({\r\n selector: 'app-login-panel',\r\n templateUrl: './login-panel.component.html',\r\n styleUrls: ['./login-panel.component.scss']\r\n})\r\nexport class LoginPanelComponent {\r\n public login: string;\r\n public password: string;\r\n\r\n public constructor(\r\n private readonly authenticationService: AuthenticationService,\r\n private readonly router: Router\r\n ) {\r\n this.login = '';\r\n this.password = '';\r\n }\r\n\r\n public onLogin(): void {\r\n const credentials: UserModel = {\r\n login: this.login,\r\n password: this.password\r\n };\r\n\r\n this.authenticationService.tryLogin(credentials)\r\n .subscribe(() => this.router.navigate(['/']));\r\n }\r\n\r\n}\r\n","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\\n */\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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ZCB3YXJyYW50eSBvZlxyXG4gKiBNRVJDSEFOVEFCSUxJVFkgb3IgRklUTkVTUyBGT1IgQSBQQVJUSUNVTEFSIFBVUlBPU0UuIFNlZSB0aGVcclxuICogR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0YWlscy5cclxuICpcclxuICogWW91IHNob3VsZCBoYXZlIHJlY2VpdmVkIGEgY29weSBvZiB0aGUgR05VIEdlbmVyYWwgUHVibGljIExpY2Vuc2VcclxuICogYWxvbmcgd2l0aCB0aGlzIHByb2dyYW0uIElmIG5vdCwgc2VlIDxodHRwOi8vd3d3LmdudS5vcmcvbGljZW5zZXMvPi5cclxuICovXHJcbiJdfQ== */\"","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Component} from '@angular/core';\r\nimport {Observable} from 'rxjs';\r\nimport {BreakpointObserver, Breakpoints} from '@angular/cdk/layout';\r\nimport {map} from 'rxjs/operators';\r\nimport {Router} from '@angular/router';\r\nimport {AuthenticationService} from '../../services/authentication.service';\r\n\r\n@Component({\r\n selector: 'app-main-panel',\r\n templateUrl: './main-panel.component.html',\r\n styleUrls: ['./main-panel.component.scss']\r\n})\r\nexport class MainPanelComponent {\r\n public readonly isHandset$: Observable<boolean>;\r\n\r\n public constructor(\r\n private readonly authenticationService: AuthenticationService,\r\n private readonly breakpointObserver: BreakpointObserver,\r\n private readonly router: Router\r\n ) {\r\n this.isHandset$ = this.breakpointObserver.observe(Breakpoints.Handset)\r\n .pipe(\r\n map(result => result.matches)\r\n );\r\n }\r\n\r\n public onLogout(): void {\r\n this.authenticationService.logout();\r\n this.router.navigate(['welcome']);\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Injectable} from '@angular/core';\r\nimport {ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot} from '@angular/router';\r\nimport {Observable} from 'rxjs';\r\nimport {map, tap} from 'rxjs/operators';\r\nimport {AuthenticationService} from '../services/authentication.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthenticatedGuard implements CanActivate {\r\n public constructor(\r\n private readonly authenticationService: AuthenticationService,\r\n private readonly router: Router\r\n ) {}\r\n\r\n public canActivate(\r\n next: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot\r\n ): boolean | Observable<boolean> {\r\n if (this.authenticationService.isLogged()) {\r\n return true;\r\n } else {\r\n return this.authenticationService.tryLoginWithStoredCredentials()\r\n .pipe(\r\n map(user => user !== null),\r\n tap(isLogged => {\r\n if (!isLogged) {\r\n this.router.navigate(['welcome']);\r\n }\r\n })\r\n );\r\n }\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Injectable} from '@angular/core';\r\nimport {ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot} from '@angular/router';\r\nimport {map, tap} from 'rxjs/operators';\r\nimport {Observable} from 'rxjs';\r\nimport {AuthenticationService} from '../services/authentication.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class UnauthenticatedGuard implements CanActivate {\r\n public constructor(\r\n private readonly authenticationService: AuthenticationService,\r\n private readonly router: Router\r\n ) {}\r\n\r\n public canActivate(\r\n next: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot\r\n ): boolean | Observable<boolean> {\r\n if (this.authenticationService.isLogged()) {\r\n this.router.navigate([]);\r\n return false;\r\n } else {\r\n return this.authenticationService.tryLoginWithStoredCredentials()\r\n .pipe(\r\n map(user => user === null),\r\n tap(isNotLogged => {\r\n if (!isNotLogged) {\r\n this.router.navigate([]);\r\n }\r\n })\r\n );\r\n }\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Injectable} from '@angular/core';\r\nimport {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http';\r\nimport {Observable} from 'rxjs';\r\nimport {AuthenticationService} from '../services/authentication.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthenticationInterceptor implements HttpInterceptor {\r\n\r\n public constructor(public authenticationService: AuthenticationService) {\r\n }\r\n\r\n public intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {\r\n const user = this.authenticationService.loggedUser;\r\n\r\n if (user !== null) {\r\n request = request.clone({\r\n setHeaders: {\r\n Authorization: 'Basic ' + btoa(user.login + ':' + user.password)\r\n }\r\n });\r\n }\r\n\r\n return next.handle(request);\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Injectable} from '@angular/core';\r\nimport {BehaviorSubject, Observable, of} from 'rxjs';\r\nimport {UserModel} from '../models';\r\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\r\nimport {environment} from '../../environments/environment';\r\nimport {catchError, tap} from 'rxjs/operators';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthenticationService {\r\n private static readonly USER_STORAGE_KEY = 'user';\r\n\r\n private readonly _loggedUser$: BehaviorSubject<UserModel | null>;\r\n\r\n private static clearCredentials(): void {\r\n localStorage.removeItem(AuthenticationService.USER_STORAGE_KEY);\r\n }\r\n\r\n private static loadCredentials(): UserModel | null {\r\n const serializedCredentials = localStorage.getItem(AuthenticationService.USER_STORAGE_KEY);\r\n\r\n if (serializedCredentials !== null) {\r\n return JSON.parse(serializedCredentials);\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n private static storeCredentials(login: string, password: string): void {\r\n const credentials: UserModel = {login, password};\r\n\r\n localStorage.setItem(AuthenticationService.USER_STORAGE_KEY, JSON.stringify(credentials));\r\n }\r\n\r\n public constructor(\r\n private readonly http: HttpClient\r\n ) {\r\n this._loggedUser$ = new BehaviorSubject<UserModel | null>(null);\r\n }\r\n\r\n public get loggedUser$(): Observable<UserModel | null> {\r\n return this._loggedUser$.asObservable();\r\n }\r\n\r\n public get loggedUser(): UserModel | null {\r\n return this._loggedUser$.value;\r\n }\r\n\r\n public isLogged(): boolean {\r\n return this.loggedUser !== null;\r\n }\r\n\r\n public logout(): void {\r\n AuthenticationService.clearCredentials();\r\n this._loggedUser$.next(null);\r\n }\r\n\r\n public tryLoginWithStoredCredentials(): Observable<UserModel | null> {\r\n const credentials = AuthenticationService.loadCredentials();\r\n\r\n if (credentials !== null) {\r\n return this.tryLogin(credentials);\r\n } else {\r\n return of<UserModel | null>(null);\r\n }\r\n }\r\n\r\n public tryLogin(login: UserModel): Observable<UserModel | null>;\r\n public tryLogin(login: string, password: string): Observable<UserModel | null>;\r\n\r\n public tryLogin(login: string | UserModel, password?: string): Observable<UserModel> {\r\n let userLogin: string;\r\n let userPassword: string;\r\n\r\n if (typeof login === 'string') {\r\n if (password === undefined) {\r\n throw new TypeError('password can\\'t be null when login is string');\r\n }\r\n\r\n userLogin = login;\r\n userPassword = password;\r\n } else {\r\n userLogin = login.login;\r\n userPassword = login.password;\r\n }\r\n AuthenticationService.storeCredentials(userLogin, userPassword);\r\n\r\n const headers = new HttpHeaders()\r\n .set('Authorization', 'Basic ' + btoa(userLogin + ':' + userPassword));\r\n\r\n return this.http.get<never>(`${environment.restApi}/users/${userLogin}`, {\r\n headers: headers\r\n })\r\n .pipe(\r\n tap(user => this._loggedUser$.next({\r\n login: userLogin,\r\n password: userPassword\r\n })),\r\n catchError(error => {\r\n this._loggedUser$.next(null);\r\n throw error;\r\n })\r\n );\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\n// This file can be replaced during build by using the `fileReplacements` array.\r\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\r\n// The list of file replacements can be found in `angular.json`.\r\n\r\nexport const environment = {\r\n production: false,\r\n restApi: 'http://localhost:9080/DAAExample/rest'\r\n};\r\n\r\n/*\r\n * For easier debugging in development mode, you can import the following file\r\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\r\n *\r\n * This import should be commented out in production mode because it will have a negative impact\r\n * on performance if an error is thrown.\r\n */\r\n// import 'zone.js/dist/zone-error'; // Included with Angular CLI.\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule)\r\n .catch(err => console.error(err));\r\n"],"sourceRoot":"webpack:///"}
\ No newline at end of file
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"], {
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/app.component.html":
/*!**************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/app.component.html ***!
\**************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppAppComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<router-outlet></router-outlet>\r\n";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/components/login-panel/login-panel.component.html":
/*!*********************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/components/login-panel/login-panel.component.html ***!
\*********************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppComponentsLoginPanelLoginPanelComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<div id=\"container\">\r\n <div class=\"form-singin\">\r\n <h1 class=\"h1 mb-3 font-weight-normal\">DAA Example - Angular</h1>\r\n\r\n <label for=\"login\" class=\"sr-only\">Usuario</label>\r\n <input id=\"login\" name=\"login\" type=\"text\" class=\"form-control\" placeholder=\"Usuario\" required autofocus\r\n [(ngModel)]=\"login\"/>\r\n\r\n <label for=\"password\" class=\"sr-only\">Contraseña</label>\r\n <input id=\"password\" name=\"password\" type=\"password\" class=\"form-control\" placeholder=\"Contraseña\" required\r\n [(ngModel)]=\"password\"/>\r\n\r\n <button class=\"btn btn-lg btn-primary btn-block mt-3\" (click)=\"onLogin()\">Entrar</button>\r\n </div>\r\n</div>\r\n";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/components/main-panel/main-panel.component.html":
/*!*******************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/components/main-panel/main-panel.component.html ***!
\*******************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppComponentsMainPanelMainPanelComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<header>\r\n <div class=\"navbar navbar-dark bg-dark box-shadow\">\r\n <div class=\"container d-flex justify-content-between\">\r\n <a href=\"#\" class=\"navbar-brand d-flex align-items-center\">\r\n <strong>DAA Example</strong>\r\n </a>\r\n\r\n <button class=\"btn btn-dark\" role=\"button\" (click)=\"onLogout()\">Cerrar sesión</button>\r\n </div>\r\n </div>\r\n</header>\r\n\r\n<div class=\"container\">\r\n <router-outlet></router-outlet>\r\n</div>\r\n";
/***/
},
/***/
"./node_modules/tslib/tslib.es6.js":
/*!*****************************************!*\
!*** ./node_modules/tslib/tslib.es6.js ***!
\*****************************************/
/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
/***/
function node_modulesTslibTslibEs6Js(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__extends", function () {
return __extends;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__assign", function () {
return _assign;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__rest", function () {
return __rest;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__decorate", function () {
return __decorate;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__param", function () {
return __param;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__metadata", function () {
return __metadata;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__awaiter", function () {
return __awaiter;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__generator", function () {
return __generator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__exportStar", function () {
return __exportStar;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__values", function () {
return __values;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__read", function () {
return __read;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__spread", function () {
return __spread;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__await", function () {
return __await;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__asyncGenerator", function () {
return __asyncGenerator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__asyncDelegator", function () {
return __asyncDelegator;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__asyncValues", function () {
return __asyncValues;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function () {
return __makeTemplateObject;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__importStar", function () {
return __importStar;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "__importDefault", function () {
return __importDefault;
});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var _extendStatics = function extendStatics(d, b) {
_extendStatics = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function (d, b) {
d.__proto__ = b;
} || function (d, b) {
for (var p in b) {
if (b.hasOwnProperty(p)) d[p] = b[p];
}
};
return _extendStatics(d, b);
};
function __extends(d, b) {
_extendStatics(d, b);
function __() {
this.constructor = d;
}
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var _assign = function __assign() {
_assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) {
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
}
return t;
};
return _assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s) {
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
}
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];
}
return t;
}
function __decorate(decorators, target, key, desc) {
var c = arguments.length,
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
}
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param(paramIndex, decorator) {
return function (target, key) {
decorator(target, key, paramIndex);
};
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter(thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : new P(function (resolve) {
resolve(result.value);
}).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = {
label: 0,
sent: function sent() {
if (t[0] & 1) throw t[1];
return t[1];
},
trys: [],
ops: []
},
f,
y,
t,
g;
return g = {
next: verb(0),
"throw": verb(1),
"return": verb(2)
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
return this;
}), g;
function verb(n) {
return function (v) {
return step([n, v]);
};
}
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) {
try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
_.label++;
return {
value: op[1],
done: false
};
case 5:
_.label++;
y = op[1];
op = [0];
continue;
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2]) _.ops.pop();
_.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [6, e];
y = 0;
} finally {
f = t = 0;
}
}
if (op[0] & 5) throw op[1];
return {
value: op[0] ? op[1] : void 0,
done: true
};
}
}
function __exportStar(m, exports) {
for (var p in m) {
if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
}
function __values(o) {
var m = typeof Symbol === "function" && o[Symbol.iterator],
i = 0;
if (m) return m.call(o);
return {
next: function next() {
if (o && i >= o.length) o = void 0;
return {
value: o && o[i++],
done: !o
};
}
};
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o),
r,
ar = [],
e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
ar.push(r.value);
}
} catch (error) {
e = {
error: error
};
} finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
} finally {
if (e) throw e.error;
}
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++) {
ar = ar.concat(__read(arguments[i]));
}
return ar;
}
function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []),
i,
q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
return this;
}, i;
function verb(n) {
if (g[n]) i[n] = function (v) {
return new Promise(function (a, b) {
q.push([n, v, a, b]) > 1 || resume(n, v);
});
};
}
function resume(n, v) {
try {
step(g[n](v));
} catch (e) {
settle(q[0][3], e);
}
}
function step(r) {
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
}
function fulfill(value) {
resume("next", value);
}
function reject(value) {
resume("throw", value);
}
function settle(f, v) {
if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
}
}
function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) {
throw e;
}), verb("return"), i[Symbol.iterator] = function () {
return this;
}, i;
function verb(n, f) {
i[n] = o[n] ? function (v) {
return (p = !p) ? {
value: __await(o[n](v)),
done: n === "return"
} : f ? f(v) : v;
} : f;
}
}
function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator],
i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
return this;
}, i);
function verb(n) {
i[n] = o[n] && function (v) {
return new Promise(function (resolve, reject) {
v = o[n](v), settle(resolve, reject, v.done, v.value);
});
};
}
function settle(resolve, reject, d, v) {
Promise.resolve(v).then(function (v) {
resolve({
value: v,
done: d
});
}, reject);
}
}
function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) {
Object.defineProperty(cooked, "raw", {
value: raw
});
} else {
cooked.raw = raw;
}
return cooked;
}
;
function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) {
if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
}
result.default = mod;
return result;
}
function __importDefault(mod) {
return mod && mod.__esModule ? mod : {
default: mod
};
}
/***/
},
/***/
"./src/$$_lazy_route_resource lazy recursive":
/*!**********************************************************!*\
!*** ./src/$$_lazy_route_resource lazy namespace object ***!
\**********************************************************/
/*! no static exports found */
/***/
function src$$_lazy_route_resourceLazyRecursive(module, exports) {
function webpackEmptyAsyncContext(req) {
// Here Promise.resolve().then() is used instead of new Promise() to prevent
// uncaught exception popping up in devtools
return Promise.resolve().then(function () {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}
webpackEmptyAsyncContext.keys = function () {
return [];
};
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = "./src/$$_lazy_route_resource lazy recursive";
/***/
},
/***/
"./src/app/app-routing.module.ts":
/*!***************************************!*\
!*** ./src/app/app-routing.module.ts ***!
\***************************************/
/*! exports provided: AppRoutingModule */
/***/
function srcAppAppRoutingModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AppRoutingModule", function () {
return AppRoutingModule;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */
var _guards_unauthenticated_guard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./guards/unauthenticated.guard */
"./src/app/guards/unauthenticated.guard.ts");
/* harmony import */
var _guards_authenticated_guard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./guards/authenticated.guard */
"./src/app/guards/authenticated.guard.ts");
/* harmony import */
var _components_login_panel_login_panel_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ./components/login-panel/login-panel.component */
"./src/app/components/login-panel/login-panel.component.ts");
/* harmony import */
var _components_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! ./components/main-panel/main-panel.component */
"./src/app/components/main-panel/main-panel.component.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var routes = [{
path: 'welcome',
pathMatch: 'full',
component: _components_login_panel_login_panel_component__WEBPACK_IMPORTED_MODULE_5__["LoginPanelComponent"],
canActivate: [_guards_unauthenticated_guard__WEBPACK_IMPORTED_MODULE_3__["UnauthenticatedGuard"]]
}, {
path: '',
component: _components_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__["MainPanelComponent"],
canActivate: [_guards_authenticated_guard__WEBPACK_IMPORTED_MODULE_4__["AuthenticatedGuard"]],
children: [{
path: '',
redirectTo: 'people',
pathMatch: 'full'
}, {
path: 'people',
loadChildren: function loadChildren() {
return __webpack_require__.e(
/*! import() | modules-people-people-module */
"modules-people-people-module").then(__webpack_require__.bind(null,
/*! ./modules/people/people.module */
"./src/app/modules/people/people.module.ts")).then(function (m) {
return m.PeopleModule;
});
}
}, {
path: 'listPets/:person',
redirectTo: ':person',
pathMatch: 'full'
}, {
path: ':person',
loadChildren: function loadChildren() {
return __webpack_require__.e(
/*! import() | modules-pets-pets-module */
"modules-pets-pets-module").then(__webpack_require__.bind(null,
/*! ./modules/pets/pets.module */
"./src/app/modules/pets/pets.module.ts")).then(function (m) {
return m.PetsModule;
});
}
}]
}];
var AppRoutingModule = function AppRoutingModule() {
_classCallCheck(this, AppRoutingModule);
};
AppRoutingModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forRoot(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
})], AppRoutingModule);
/***/
},
/***/
"./src/app/app.component.scss":
/*!************************************!*\
!*** ./src/app/app.component.scss ***!
\************************************/
/*! exports provided: default */
/***/
function srcAppAppComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvQzpcXFVzZXJzXFxOb2VsaWFcXERlc2t0b3BcXERBQVxcZGFhZXhhbXBsZVxcc3JjXFxtYWluXFxhbmd1bGFyL3NyY1xcYXBwXFxhcHAuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7O0VBQUEiLCJmaWxlIjoic3JjL2FwcC9hcHAuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIvKiFcclxuICogREFBIEV4YW1wbGVcclxuICpcclxuICogQ29weXJpZ2h0IChDKSAyMDE5IC0gTWlndWVsIFJlYm9pcm8tSmF0by5cclxuICpcclxuICogVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU6IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnlcclxuICogaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcclxuICogdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgZWl0aGVyIHZlcnNpb24gMyBvZiB0aGUgTGljZW5zZSwgb3JcclxuICogKGF0IHlvdXIgb3B0aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi5cclxuICpcclxuICogVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsXHJcbiAqIGJ1dCBXSVRIT1VUIEFOWSBXQVJSQU5UWTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mXHJcbiAqIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gU2VlIHRoZVxyXG4gKiBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBmb3IgbW9yZSBkZXRhaWxzLlxyXG4gKlxyXG4gKiBZb3Ugc2hvdWxkIGhhdmUgcmVjZWl2ZWQgYSBjb3B5IG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZVxyXG4gKiBhbG9uZyB3aXRoIHRoaXMgcHJvZ3JhbS4gSWYgbm90LCBzZWUgPGh0dHA6Ly93d3cuZ251Lm9yZy9saWNlbnNlcy8+LlxyXG4gKi9cclxuXHJcbiJdfQ== */";
/***/
},
/***/
"./src/app/app.component.ts":
/*!**********************************!*\
!*** ./src/app/app.component.ts ***!
\**********************************/
/*! exports provided: AppComponent */
/***/
function srcAppAppComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AppComponent", function () {
return AppComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var AppComponent = function AppComponent() {
_classCallCheck(this, AppComponent);
this.title = 'angular';
};
AppComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-root',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./app.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/app.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./app.component.scss */
"./src/app/app.component.scss")).default]
})], AppComponent);
/***/
},
/***/
"./src/app/app.module.ts":
/*!*******************************!*\
!*** ./src/app/app.module.ts ***!
\*******************************/
/*! exports provided: AppModule */
/***/
function srcAppAppModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AppModule", function () {
return AppModule;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/platform-browser */
"./node_modules/@angular/platform-browser/fesm2015/platform-browser.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _app_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./app-routing.module */
"./src/app/app-routing.module.ts");
/* harmony import */
var _app_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./app.component */
"./src/app/app.component.ts");
/* harmony import */
var _components_login_panel_login_panel_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ./components/login-panel/login-panel.component */
"./src/app/components/login-panel/login-panel.component.ts");
/* harmony import */
var _components_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! ./components/main-panel/main-panel.component */
"./src/app/components/main-panel/main-panel.component.ts");
/* harmony import */
var _angular_common_http__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! @angular/common/http */
"./node_modules/@angular/common/fesm2015/http.js");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
/*! @angular/forms */
"./node_modules/@angular/forms/fesm2015/forms.js");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
/*! @angular/common */
"./node_modules/@angular/common/fesm2015/common.js");
/* harmony import */
var _interceptors_authentication_interceptor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
/*! ./interceptors/authentication.interceptor */
"./src/app/interceptors/authentication.interceptor.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var AppModule = function AppModule() {
_classCallCheck(this, AppModule);
};
AppModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"])({
declarations: [_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"], _components_login_panel_login_panel_component__WEBPACK_IMPORTED_MODULE_5__["LoginPanelComponent"], _components_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__["MainPanelComponent"]],
imports: [_app_routing_module__WEBPACK_IMPORTED_MODULE_3__["AppRoutingModule"], _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClientModule"]],
providers: [{
provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HTTP_INTERCEPTORS"],
useClass: _interceptors_authentication_interceptor__WEBPACK_IMPORTED_MODULE_10__["AuthenticationInterceptor"],
multi: true
}, {
provide: _angular_common__WEBPACK_IMPORTED_MODULE_9__["LocationStrategy"],
useClass: _angular_common__WEBPACK_IMPORTED_MODULE_9__["HashLocationStrategy"]
}],
bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_4__["AppComponent"]]
})], AppModule);
/***/
},
/***/
"./src/app/components/login-panel/login-panel.component.scss":
/*!*******************************************************************!*\
!*** ./src/app/components/login-panel/login-panel.component.scss ***!
\*******************************************************************/
/*! exports provided: default */
/***/
function srcAppComponentsLoginPanelLoginPanelComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n#container {\n height: 100%;\n width: 100%;\n display: -webkit-box;\n display: flex;\n -ms-flex-align: center;\n -ms-flex-pack: center;\n -webkit-box-align: center;\n align-items: center;\n -webkit-box-pack: center;\n justify-content: center;\n padding-top: 40px;\n padding-bottom: 40px;\n}\n.form-signin {\n width: 100%;\n max-width: 330px;\n padding: 15px;\n margin: 0 auto;\n}\n.form-signin .form-control {\n position: relative;\n box-sizing: border-box;\n height: auto;\n padding: 10px;\n font-size: 16px;\n}\n.form-signin .form-control:focus {\n z-index: 2;\n}\n#login {\n margin-bottom: -1px;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n#password {\n margin-bottom: 10px;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi1wYW5lbC9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGxvZ2luLXBhbmVsXFxsb2dpbi1wYW5lbC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi1wYW5lbC9sb2dpbi1wYW5lbC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7RUFBQTtBQW1CQTtFQUNFLFlBQUE7RU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A0MHB4O1xufVxuXG4uZm9ybS1zaWduaW4ge1xuICB3aWR0aDogMTAwJTtcbiAgbWF4LXdpZHRoOiAzMzBweDtcbiAgcGFkZGluZzogMTVweDtcbiAgbWFyZ2luOiAwIGF1dG87XG59XG5cbi5mb3JtLXNpZ25pbiAuZm9ybS1jb250cm9sIHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICBoZWlnaHQ6IGF1dG87XG4gIHBhZGRpbmc6IDEwcHg7XG4gIGZvbnQtc2l6ZTogMTZweDtcbn1cblxuLmZvcm0tc2lnbmluIC5mb3JtLWNvbnRyb2w6Zm9jdXMge1xuICB6LWluZGV4OiAyO1xufVxuXG4jbG9naW4ge1xuICBtYXJnaW4tYm90dG9tOiAtMXB4O1xuICBib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czogMDtcbiAgYm9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogMDtcbn1cblxuI3Bhc3N3b3JkIHtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcbiAgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogMDtcbiAgYm9yZGVyLXRvcC1yaWdodC1yYWRpdXM6IDA7XG59Il19 */";
/***/
},
/***/
"./src/app/components/login-panel/login-panel.component.ts":
/*!*****************************************************************!*\
!*** ./src/app/components/login-panel/login-panel.component.ts ***!
\*****************************************************************/
/*! exports provided: LoginPanelComponent */
/***/
function srcAppComponentsLoginPanelLoginPanelComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "LoginPanelComponent", function () {
return LoginPanelComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */
var _services_authentication_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../../services/authentication.service */
"./src/app/services/authentication.service.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var LoginPanelComponent =
/*#__PURE__*/
function () {
function LoginPanelComponent(authenticationService, router) {
_classCallCheck(this, LoginPanelComponent);
this.authenticationService = authenticationService;
this.router = router;
this.login = '';
this.password = '';
}
_createClass(LoginPanelComponent, [{
key: "onLogin",
value: function onLogin() {
var _this = this;
var credentials = {
login: this.login,
password: this.password
};
this.authenticationService.tryLogin(credentials).subscribe(function () {
return _this.router.navigate(['/']);
});
}
}]);
return LoginPanelComponent;
}();
LoginPanelComponent.ctorParameters = function () {
return [{
type: _services_authentication_service__WEBPACK_IMPORTED_MODULE_3__["AuthenticationService"]
}, {
type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]
}];
};
LoginPanelComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-login-panel',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./login-panel.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/components/login-panel/login-panel.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./login-panel.component.scss */
"./src/app/components/login-panel/login-panel.component.scss")).default]
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_authentication_service__WEBPACK_IMPORTED_MODULE_3__["AuthenticationService"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]])], LoginPanelComponent);
/***/
},
/***/
"./src/app/components/main-panel/main-panel.component.scss":
/*!*****************************************************************!*\
!*** ./src/app/components/main-panel/main-panel.component.scss ***!
\*****************************************************************/
/*! exports provided: default */
/***/
function srcAppComponentsMainPanelMainPanelComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9tYWluLXBhbmVsL0M6XFxVc2Vyc1xcTm9lbGlhXFxEZXNrdG9wXFxEQUFcXGRhYWV4YW1wbGVcXHNyY1xcbWFpblxcYW5ndWxhci9zcmNcXGFwcFxcY29tcG9uZW50c1xcbWFpbi1wYW5lbFxcbWFpbi1wYW5lbC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7RUFBQSIsImZpbGUiOiJzcmMvYXBwL2N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wOi8vd3d3LmdudS5vcmcvbGljZW5zZXMvPi5cclxuICovXHJcbiJdfQ== */";
/***/
},
/***/
"./src/app/components/main-panel/main-panel.component.ts":
/*!***************************************************************!*\
!*** ./src/app/components/main-panel/main-panel.component.ts ***!
\***************************************************************/
/*! exports provided: MainPanelComponent */
/***/
function srcAppComponentsMainPanelMainPanelComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "MainPanelComponent", function () {
return MainPanelComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/cdk/layout */
"./node_modules/@angular/cdk/esm2015/layout.js");
/* harmony import */
var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! rxjs/operators */
"./node_modules/rxjs/_esm2015/operators/index.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */
var _services_authentication_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ../../services/authentication.service */
"./src/app/services/authentication.service.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var MainPanelComponent =
/*#__PURE__*/
function () {
function MainPanelComponent(authenticationService, breakpointObserver, router) {
_classCallCheck(this, MainPanelComponent);
this.authenticationService = authenticationService;
this.breakpointObserver = breakpointObserver;
this.router = router;
this.isHandset$ = this.breakpointObserver.observe(_angular_cdk_layout__WEBPACK_IMPORTED_MODULE_2__["Breakpoints"].Handset).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (result) {
return result.matches;
}));
}
_createClass(MainPanelComponent, [{
key: "onLogout",
value: function onLogout() {
this.authenticationService.logout();
this.router.navigate(['welcome']);
}
}]);
return MainPanelComponent;
}();
MainPanelComponent.ctorParameters = function () {
return [{
type: _services_authentication_service__WEBPACK_IMPORTED_MODULE_5__["AuthenticationService"]
}, {
type: _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_2__["BreakpointObserver"]
}, {
type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]
}];
};
MainPanelComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-main-panel',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./main-panel.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/components/main-panel/main-panel.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./main-panel.component.scss */
"./src/app/components/main-panel/main-panel.component.scss")).default]
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_authentication_service__WEBPACK_IMPORTED_MODULE_5__["AuthenticationService"], _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_2__["BreakpointObserver"], _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]])], MainPanelComponent);
/***/
},
/***/
"./src/app/guards/authenticated.guard.ts":
/*!***********************************************!*\
!*** ./src/app/guards/authenticated.guard.ts ***!
\***********************************************/
/*! exports provided: AuthenticatedGuard */
/***/
function srcAppGuardsAuthenticatedGuardTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AuthenticatedGuard", function () {
return AuthenticatedGuard;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */
var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! rxjs/operators */
"./node_modules/rxjs/_esm2015/operators/index.js");
/* harmony import */
var _services_authentication_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ../services/authentication.service */
"./src/app/services/authentication.service.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var AuthenticatedGuard =
/*#__PURE__*/
function () {
function AuthenticatedGuard(authenticationService, router) {
_classCallCheck(this, AuthenticatedGuard);
this.authenticationService = authenticationService;
this.router = router;
}
_createClass(AuthenticatedGuard, [{
key: "canActivate",
value: function canActivate(next, state) {
var _this2 = this;
if (this.authenticationService.isLogged()) {
return true;
} else {
return this.authenticationService.tryLoginWithStoredCredentials().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (user) {
return user !== null;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (isLogged) {
if (!isLogged) {
_this2.router.navigate(['welcome']);
}
}));
}
}
}]);
return AuthenticatedGuard;
}();
AuthenticatedGuard.ctorParameters = function () {
return [{
type: _services_authentication_service__WEBPACK_IMPORTED_MODULE_4__["AuthenticationService"]
}, {
type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]
}];
};
AuthenticatedGuard = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_authentication_service__WEBPACK_IMPORTED_MODULE_4__["AuthenticationService"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]])], AuthenticatedGuard);
/***/
},
/***/
"./src/app/guards/unauthenticated.guard.ts":
/*!*************************************************!*\
!*** ./src/app/guards/unauthenticated.guard.ts ***!
\*************************************************/
/*! exports provided: UnauthenticatedGuard */
/***/
function srcAppGuardsUnauthenticatedGuardTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "UnauthenticatedGuard", function () {
return UnauthenticatedGuard;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */
var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! rxjs/operators */
"./node_modules/rxjs/_esm2015/operators/index.js");
/* harmony import */
var _services_authentication_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ../services/authentication.service */
"./src/app/services/authentication.service.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var UnauthenticatedGuard =
/*#__PURE__*/
function () {
function UnauthenticatedGuard(authenticationService, router) {
_classCallCheck(this, UnauthenticatedGuard);
this.authenticationService = authenticationService;
this.router = router;
}
_createClass(UnauthenticatedGuard, [{
key: "canActivate",
value: function canActivate(next, state) {
var _this3 = this;
if (this.authenticationService.isLogged()) {
this.router.navigate([]);
return false;
} else {
return this.authenticationService.tryLoginWithStoredCredentials().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (user) {
return user === null;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (isNotLogged) {
if (!isNotLogged) {
_this3.router.navigate([]);
}
}));
}
}
}]);
return UnauthenticatedGuard;
}();
UnauthenticatedGuard.ctorParameters = function () {
return [{
type: _services_authentication_service__WEBPACK_IMPORTED_MODULE_4__["AuthenticationService"]
}, {
type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]
}];
};
UnauthenticatedGuard = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_authentication_service__WEBPACK_IMPORTED_MODULE_4__["AuthenticationService"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]])], UnauthenticatedGuard);
/***/
},
/***/
"./src/app/interceptors/authentication.interceptor.ts":
/*!************************************************************!*\
!*** ./src/app/interceptors/authentication.interceptor.ts ***!
\************************************************************/
/*! exports provided: AuthenticationInterceptor */
/***/
function srcAppInterceptorsAuthenticationInterceptorTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AuthenticationInterceptor", function () {
return AuthenticationInterceptor;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _services_authentication_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../services/authentication.service */
"./src/app/services/authentication.service.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var AuthenticationInterceptor =
/*#__PURE__*/
function () {
function AuthenticationInterceptor(authenticationService) {
_classCallCheck(this, AuthenticationInterceptor);
this.authenticationService = authenticationService;
}
_createClass(AuthenticationInterceptor, [{
key: "intercept",
value: function intercept(request, next) {
var user = this.authenticationService.loggedUser;
if (user !== null) {
request = request.clone({
setHeaders: {
Authorization: 'Basic ' + btoa(user.login + ':' + user.password)
}
});
}
return next.handle(request);
}
}]);
return AuthenticationInterceptor;
}();
AuthenticationInterceptor.ctorParameters = function () {
return [{
type: _services_authentication_service__WEBPACK_IMPORTED_MODULE_2__["AuthenticationService"]
}];
};
AuthenticationInterceptor = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_authentication_service__WEBPACK_IMPORTED_MODULE_2__["AuthenticationService"]])], AuthenticationInterceptor);
/***/
},
/***/
"./src/app/services/authentication.service.ts":
/*!****************************************************!*\
!*** ./src/app/services/authentication.service.ts ***!
\****************************************************/
/*! exports provided: AuthenticationService */
/***/
function srcAppServicesAuthenticationServiceTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AuthenticationService", function () {
return AuthenticationService;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! rxjs */
"./node_modules/rxjs/_esm2015/index.js");
/* harmony import */
var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @angular/common/http */
"./node_modules/@angular/common/fesm2015/http.js");
/* harmony import */
var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ../../environments/environment */
"./src/environments/environment.ts");
/* harmony import */
var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! rxjs/operators */
"./node_modules/rxjs/_esm2015/operators/index.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var AuthenticationService_1;
var AuthenticationService = AuthenticationService_1 =
/*#__PURE__*/
function () {
function AuthenticationService(http) {
_classCallCheck(this, AuthenticationService);
this.http = http;
this._loggedUser$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](null);
}
_createClass(AuthenticationService, [{
key: "isLogged",
value: function isLogged() {
return this.loggedUser !== null;
}
}, {
key: "logout",
value: function logout() {
AuthenticationService_1.clearCredentials();
this._loggedUser$.next(null);
}
}, {
key: "tryLoginWithStoredCredentials",
value: function tryLoginWithStoredCredentials() {
var credentials = AuthenticationService_1.loadCredentials();
if (credentials !== null) {
return this.tryLogin(credentials);
} else {
return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
}
}
}, {
key: "tryLogin",
value: function tryLogin(login, password) {
var _this4 = this;
var userLogin;
var userPassword;
if (typeof login === 'string') {
if (password === undefined) {
throw new TypeError('password can\'t be null when login is string');
}
userLogin = login;
userPassword = password;
} else {
userLogin = login.login;
userPassword = login.password;
}
AuthenticationService_1.storeCredentials(userLogin, userPassword);
var headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpHeaders"]().set('Authorization', 'Basic ' + btoa(userLogin + ':' + userPassword));
return this.http.get("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].restApi, "/users/").concat(userLogin), {
headers: headers
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(function (user) {
return _this4._loggedUser$.next({
login: userLogin,
password: userPassword
});
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(function (error) {
_this4._loggedUser$.next(null);
throw error;
}));
}
}, {
key: "loggedUser$",
get: function get() {
return this._loggedUser$.asObservable();
}
}, {
key: "loggedUser",
get: function get() {
return this._loggedUser$.value;
}
}], [{
key: "clearCredentials",
value: function clearCredentials() {
localStorage.removeItem(AuthenticationService_1.USER_STORAGE_KEY);
}
}, {
key: "loadCredentials",
value: function loadCredentials() {
var serializedCredentials = localStorage.getItem(AuthenticationService_1.USER_STORAGE_KEY);
if (serializedCredentials !== null) {
return JSON.parse(serializedCredentials);
} else {
return null;
}
}
}, {
key: "storeCredentials",
value: function storeCredentials(login, password) {
var credentials = {
login: login,
password: password
};
localStorage.setItem(AuthenticationService_1.USER_STORAGE_KEY, JSON.stringify(credentials));
}
}]);
return AuthenticationService;
}();
AuthenticationService.USER_STORAGE_KEY = 'user';
AuthenticationService.ctorParameters = function () {
return [{
type: _angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClient"]
}];
};
AuthenticationService = AuthenticationService_1 = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_3__["HttpClient"]])], AuthenticationService);
/***/
},
/***/
"./src/environments/environment.ts":
/*!*****************************************!*\
!*** ./src/environments/environment.ts ***!
\*****************************************/
/*! exports provided: environment */
/***/
function srcEnvironmentsEnvironmentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "environment", function () {
return environment;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
var environment = {
production: false,
restApi: 'http://localhost:9080/DAAExample/rest'
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
/***/
},
/***/
"./src/main.ts":
/*!*********************!*\
!*** ./src/main.ts ***!
\*********************/
/*! no exports provided */
/***/
function srcMainTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/platform-browser-dynamic */
"./node_modules/@angular/platform-browser-dynamic/fesm2015/platform-browser-dynamic.js");
/* harmony import */
var _app_app_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./app/app.module */
"./src/app/app.module.ts");
/* harmony import */
var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./environments/environment */
"./src/environments/environment.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if (_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].production) {
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["enableProdMode"])();
}
Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_2__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_3__["AppModule"]).catch(function (err) {
return console.error(err);
});
/***/
},
/***/
0:
/*!***************************!*\
!*** multi ./src/main.ts ***!
\***************************/
/*! no static exports found */
/***/
function _(module, exports, __webpack_require__) {
module.exports = __webpack_require__(
/*! C:\Users\Noelia\Desktop\DAA\daaexample\src\main\angular\src\main.ts */
"./src/main.ts");
/***/
}
}, [[0, "runtime", "vendor"]]]);
//# sourceMappingURL=main-es5.js.map
\ No newline at end of file
{"version":3,"sources":["src/app/app.component.html","src/app/components/login-panel/login-panel.component.html","src/app/components/main-panel/main-panel.component.html","node_modules/tslib/tslib.es6.js","src/$_lazy_route_resource lazy namespace object","src/app/app-routing.module.ts","src/app/app.component.scss","src/app/app.component.ts","src/app/app.module.ts","src/app/components/login-panel/login-panel.component.scss","src/app/components/login-panel/login-panel.component.ts","src/app/components/main-panel/main-panel.component.scss","src/app/components/main-panel/main-panel.component.ts","src/app/guards/authenticated.guard.ts","src/app/guards/unauthenticated.guard.ts","src/app/interceptors/authentication.interceptor.ts","src/app/services/authentication.service.ts","src/environments/environment.ts","src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;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A,mBAAA;AAAA;AAAA,mDAAA,CAAA;AAAA;;;AAAA,QAAA,8DAAA,GAAA,mBAAA;AAAA;AAAA,2FAAA,CAAA;AAAA;;;AAAA,QAAA,4CAAA,GAAA,mBAAA;AAAA;AAAA,6BAAA,CAAA;AAAA;;;AAAA,QAAA,sDAAA,GAAA,mBAAA;AAAA;AAAA,uCAAA,CAAA;AAAA;;;;;;;;;;;;;;;;;;;;AAyBA,QAAI,sDAAA,CAAA,aAAA,CAAA,CAAY,UAAhB,EAA4B;AAC1B,MAAA,MAAA,CAAA,0CAAA,CAAA,gBAAA,CAAA,CAAA;AACD;;AAED,IAAA,MAAA,CAAA,8DAAA,CAAA,wBAAA,CAAA,CAAA,GAAyB,eAAzB,CAAyC,4CAAA,CAAA,WAAA,CAAzC,EACG,KADH,CACS,UAAA,GAAG;AAAA,aAAI,OAAO,CAAC,KAAR,CAAc,GAAd,CAAJ;AAAA,KADZ","sourcesContent":["export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<router-outlet></router-outlet>\\r\\n\"","export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<div id=\\\"container\\\">\\r\\n <div class=\\\"form-singin\\\">\\r\\n <h1 class=\\\"h1 mb-3 font-weight-normal\\\">DAA Example - Angular</h1>\\r\\n\\r\\n <label for=\\\"login\\\" class=\\\"sr-only\\\">Usuario</label>\\r\\n <input id=\\\"login\\\" name=\\\"login\\\" type=\\\"text\\\" class=\\\"form-control\\\" placeholder=\\\"Usuario\\\" required autofocus\\r\\n [(ngModel)]=\\\"login\\\"/>\\r\\n\\r\\n <label for=\\\"password\\\" class=\\\"sr-only\\\">Contraseña</label>\\r\\n <input id=\\\"password\\\" name=\\\"password\\\" type=\\\"password\\\" class=\\\"form-control\\\" placeholder=\\\"Contraseña\\\" required\\r\\n [(ngModel)]=\\\"password\\\"/>\\r\\n\\r\\n <button class=\\\"btn btn-lg btn-primary btn-block mt-3\\\" (click)=\\\"onLogin()\\\">Entrar</button>\\r\\n </div>\\r\\n</div>\\r\\n\"","export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<header>\\r\\n <div class=\\\"navbar navbar-dark bg-dark box-shadow\\\">\\r\\n <div class=\\\"container d-flex justify-content-between\\\">\\r\\n <a href=\\\"#\\\" class=\\\"navbar-brand d-flex align-items-center\\\">\\r\\n <strong>DAA Example</strong>\\r\\n </a>\\r\\n\\r\\n <button class=\\\"btn btn-dark\\\" role=\\\"button\\\" (click)=\\\"onLogout()\\\">Cerrar sesión</button>\\r\\n </div>\\r\\n </div>\\r\\n</header>\\r\\n\\r\\n<div class=\\\"container\\\">\\r\\n <router-outlet></router-outlet>\\r\\n</div>\\r\\n\"","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n","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 = \"./src/$$_lazy_route_resource lazy recursive\";","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport {UnauthenticatedGuard} from './guards/unauthenticated.guard';\r\nimport {AuthenticatedGuard} from './guards/authenticated.guard';\r\nimport {LoginPanelComponent} from './components/login-panel/login-panel.component';\r\nimport {MainPanelComponent} from './components/main-panel/main-panel.component';\r\nimport {PetsFormComponent} from './modules/pets/components/pets-form/pets-form.component';\r\n\r\n\r\nconst routes: Routes = [\r\n {\r\n path: 'welcome',\r\n pathMatch: 'full',\r\n component: LoginPanelComponent,\r\n canActivate: [UnauthenticatedGuard]\r\n },\r\n {\r\n path: '',\r\n component: MainPanelComponent,\r\n canActivate: [AuthenticatedGuard],\r\n children: [\r\n {\r\n path: '',\r\n redirectTo: 'people',\r\n pathMatch: 'full'\r\n },\r\n {\r\n path: 'people',\r\n loadChildren: () => import('./modules/people/people.module').then(m => m.PeopleModule)\r\n },\r\n {\r\n path: 'listPets/:person',\r\n redirectTo: ':person',\r\n pathMatch: 'full'\r\n },\r\n {\r\n path: ':person',\r\n loadChildren: () => import('./modules/pets/pets.module').then(m => m.PetsModule)\r\n }\r\n ]\r\n },\r\n \r\n\r\n \r\n \r\n \r\n /*{\r\n path: 'pets/:person',\r\n pathMatch: 'full',\r\n component: PetsFormComponent,\r\n canActivate: [AuthenticatedGuard]\r\n }*/\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\\n */\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvQzpcXFVzZXJzXFxOb2VsaWFcXERlc2t0b3BcXERBQVxcZGFhZXhhbXBsZVxcc3JjXFxtYWluXFxhbmd1bGFyL3NyY1xcYXBwXFxhcHAuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7O0VBQUEiLCJmaWxlIjoic3JjL2FwcC9hcHAuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIvKiFcclxuICogREFBIEV4YW1wbGVcclxuICpcclxuICogQ29weXJpZ2h0IChDKSAyMDE5IC0gTWlndWVsIFJlYm9pcm8tSmF0by5cclxuICpcclxuICogVGhpcyBwcm9ncmFtIGlzIGZyZWUgc29mdHdhcmU6IHlvdSBjYW4gcmVkaXN0cmlidXRlIGl0IGFuZC9vciBtb2RpZnlcclxuICogaXQgdW5kZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBhcyBwdWJsaXNoZWQgYnlcclxuICogdGhlIEZyZWUgU29mdHdhcmUgRm91bmRhdGlvbiwgZWl0aGVyIHZlcnNpb24gMyBvZiB0aGUgTGljZW5zZSwgb3JcclxuICogKGF0IHlvdXIgb3B0aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi5cclxuICpcclxuICogVGhpcyBwcm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsXHJcbiAqIGJ1dCBXSVRIT1VUIEFOWSBXQVJSQU5UWTsgd2l0aG91dCBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mXHJcbiAqIE1FUkNIQU5UQUJJTElUWSBvciBGSVRORVNTIEZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRS4gU2VlIHRoZVxyXG4gKiBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSBmb3IgbW9yZSBkZXRhaWxzLlxyXG4gKlxyXG4gKiBZb3Ugc2hvdWxkIGhhdmUgcmVjZWl2ZWQgYSBjb3B5IG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZVxyXG4gKiBhbG9uZyB3aXRoIHRoaXMgcHJvZ3JhbS4gSWYgbm90LCBzZWUgPGh0dHA6Ly93d3cuZ251Lm9yZy9saWNlbnNlcy8+LlxyXG4gKi9cclxuXHJcbiJdfQ== */\"","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.scss']\r\n})\r\nexport class AppComponent {\r\n title = 'angular';\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {BrowserModule} from '@angular/platform-browser';\r\nimport {NgModule} from '@angular/core';\r\n\r\nimport {AppRoutingModule} from './app-routing.module';\r\nimport {AppComponent} from './app.component';\r\nimport {LoginPanelComponent} from './components/login-panel/login-panel.component';\r\nimport {MainPanelComponent} from './components/main-panel/main-panel.component';\r\nimport {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';\r\nimport {FormsModule} from '@angular/forms';\r\nimport {CommonModule, HashLocationStrategy, LocationStrategy} from '@angular/common';\r\nimport {AuthenticationInterceptor} from './interceptors/authentication.interceptor';\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n LoginPanelComponent,\r\n MainPanelComponent,\r\n ],\r\n imports: [\r\n AppRoutingModule,\r\n BrowserModule,\r\n CommonModule,\r\n FormsModule,\r\n HttpClientModule\r\n ],\r\n providers: [\r\n {\r\n provide: HTTP_INTERCEPTORS,\r\n useClass: AuthenticationInterceptor,\r\n multi: true\r\n },\r\n {\r\n provide: LocationStrategy,\r\n useClass: HashLocationStrategy\r\n }\r\n ],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule {\r\n}\r\n","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\\n */\\n#container {\\n height: 100%;\\n width: 100%;\\n display: -webkit-box;\\n display: flex;\\n -ms-flex-align: center;\\n -ms-flex-pack: center;\\n -webkit-box-align: center;\\n align-items: center;\\n -webkit-box-pack: center;\\n justify-content: center;\\n padding-top: 40px;\\n padding-bottom: 40px;\\n}\\n.form-signin {\\n width: 100%;\\n max-width: 330px;\\n padding: 15px;\\n margin: 0 auto;\\n}\\n.form-signin .form-control {\\n position: relative;\\n box-sizing: border-box;\\n height: auto;\\n padding: 10px;\\n font-size: 16px;\\n}\\n.form-signin .form-control:focus {\\n z-index: 2;\\n}\\n#login {\\n margin-bottom: -1px;\\n border-bottom-right-radius: 0;\\n border-bottom-left-radius: 0;\\n}\\n#password {\\n margin-bottom: 10px;\\n border-top-left-radius: 0;\\n border-top-right-radius: 0;\\n}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi1wYW5lbC9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGxvZ2luLXBhbmVsXFxsb2dpbi1wYW5lbC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi1wYW5lbC9sb2dpbi1wYW5lbC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7RUFBQTtBQW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IHBhZGRpbmctYm90dG9tOiA0MHB4O1xufVxuXG4uZm9ybS1zaWduaW4ge1xuICB3aWR0aDogMTAwJTtcbiAgbWF4LXdpZHRoOiAzMzBweDtcbiAgcGFkZGluZzogMTVweDtcbiAgbWFyZ2luOiAwIGF1dG87XG59XG5cbi5mb3JtLXNpZ25pbiAuZm9ybS1jb250cm9sIHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICBoZWlnaHQ6IGF1dG87XG4gIHBhZGRpbmc6IDEwcHg7XG4gIGZvbnQtc2l6ZTogMTZweDtcbn1cblxuLmZvcm0tc2lnbmluIC5mb3JtLWNvbnRyb2w6Zm9jdXMge1xuICB6LWluZGV4OiAyO1xufVxuXG4jbG9naW4ge1xuICBtYXJnaW4tYm90dG9tOiAtMXB4O1xuICBib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czogMDtcbiAgYm9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogMDtcbn1cblxuI3Bhc3N3b3JkIHtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcbiAgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogMDtcbiAgYm9yZGVyLXRvcC1yaWdodC1yYWRpdXM6IDA7XG59Il19 */\"","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Component} from '@angular/core';\r\nimport {Router} from '@angular/router';\r\nimport {AuthenticationService} from '../../services/authentication.service';\r\nimport {UserModel} from '../../models';\r\n\r\n@Component({\r\n selector: 'app-login-panel',\r\n templateUrl: './login-panel.component.html',\r\n styleUrls: ['./login-panel.component.scss']\r\n})\r\nexport class LoginPanelComponent {\r\n public login: string;\r\n public password: string;\r\n\r\n public constructor(\r\n private readonly authenticationService: AuthenticationService,\r\n private readonly router: Router\r\n ) {\r\n this.login = '';\r\n this.password = '';\r\n }\r\n\r\n public onLogin(): void {\r\n const credentials: UserModel = {\r\n login: this.login,\r\n password: this.password\r\n };\r\n\r\n this.authenticationService.tryLogin(credentials)\r\n .subscribe(() => this.router.navigate(['/']));\r\n }\r\n\r\n}\r\n","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\\n */\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9tYWluLXBhbmVsL0M6XFxVc2Vyc1xcTm9lbGlhXFxEZXNrdG9wXFxEQUFcXGRhYWV4YW1wbGVcXHNyY1xcbWFpblxcYW5ndWxhci9zcmNcXGFwcFxcY29tcG9uZW50c1xcbWFpbi1wYW5lbFxcbWFpbi1wYW5lbC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7RUFBQSIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbWFp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cmcvbGljZW5zZXMvPi5cclxuICovXHJcbiJdfQ== */\"","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Component} from '@angular/core';\r\nimport {Observable} from 'rxjs';\r\nimport {BreakpointObserver, Breakpoints} from '@angular/cdk/layout';\r\nimport {map} from 'rxjs/operators';\r\nimport {Router} from '@angular/router';\r\nimport {AuthenticationService} from '../../services/authentication.service';\r\n\r\n@Component({\r\n selector: 'app-main-panel',\r\n templateUrl: './main-panel.component.html',\r\n styleUrls: ['./main-panel.component.scss']\r\n})\r\nexport class MainPanelComponent {\r\n public readonly isHandset$: Observable<boolean>;\r\n\r\n public constructor(\r\n private readonly authenticationService: AuthenticationService,\r\n private readonly breakpointObserver: BreakpointObserver,\r\n private readonly router: Router\r\n ) {\r\n this.isHandset$ = this.breakpointObserver.observe(Breakpoints.Handset)\r\n .pipe(\r\n map(result => result.matches)\r\n );\r\n }\r\n\r\n public onLogout(): void {\r\n this.authenticationService.logout();\r\n this.router.navigate(['welcome']);\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Injectable} from '@angular/core';\r\nimport {ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot} from '@angular/router';\r\nimport {Observable} from 'rxjs';\r\nimport {map, tap} from 'rxjs/operators';\r\nimport {AuthenticationService} from '../services/authentication.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthenticatedGuard implements CanActivate {\r\n public constructor(\r\n private readonly authenticationService: AuthenticationService,\r\n private readonly router: Router\r\n ) {}\r\n\r\n public canActivate(\r\n next: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot\r\n ): boolean | Observable<boolean> {\r\n if (this.authenticationService.isLogged()) {\r\n return true;\r\n } else {\r\n return this.authenticationService.tryLoginWithStoredCredentials()\r\n .pipe(\r\n map(user => user !== null),\r\n tap(isLogged => {\r\n if (!isLogged) {\r\n this.router.navigate(['welcome']);\r\n }\r\n })\r\n );\r\n }\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Injectable} from '@angular/core';\r\nimport {ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot} from '@angular/router';\r\nimport {map, tap} from 'rxjs/operators';\r\nimport {Observable} from 'rxjs';\r\nimport {AuthenticationService} from '../services/authentication.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class UnauthenticatedGuard implements CanActivate {\r\n public constructor(\r\n private readonly authenticationService: AuthenticationService,\r\n private readonly router: Router\r\n ) {}\r\n\r\n public canActivate(\r\n next: ActivatedRouteSnapshot,\r\n state: RouterStateSnapshot\r\n ): boolean | Observable<boolean> {\r\n if (this.authenticationService.isLogged()) {\r\n this.router.navigate([]);\r\n return false;\r\n } else {\r\n return this.authenticationService.tryLoginWithStoredCredentials()\r\n .pipe(\r\n map(user => user === null),\r\n tap(isNotLogged => {\r\n if (!isNotLogged) {\r\n this.router.navigate([]);\r\n }\r\n })\r\n );\r\n }\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Injectable} from '@angular/core';\r\nimport {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http';\r\nimport {Observable} from 'rxjs';\r\nimport {AuthenticationService} from '../services/authentication.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthenticationInterceptor implements HttpInterceptor {\r\n\r\n public constructor(public authenticationService: AuthenticationService) {\r\n }\r\n\r\n public intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {\r\n const user = this.authenticationService.loggedUser;\r\n\r\n if (user !== null) {\r\n request = request.clone({\r\n setHeaders: {\r\n Authorization: 'Basic ' + btoa(user.login + ':' + user.password)\r\n }\r\n });\r\n }\r\n\r\n return next.handle(request);\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Injectable} from '@angular/core';\r\nimport {BehaviorSubject, Observable, of} from 'rxjs';\r\nimport {UserModel} from '../models';\r\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\r\nimport {environment} from '../../environments/environment';\r\nimport {catchError, tap} from 'rxjs/operators';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthenticationService {\r\n private static readonly USER_STORAGE_KEY = 'user';\r\n\r\n private readonly _loggedUser$: BehaviorSubject<UserModel | null>;\r\n\r\n private static clearCredentials(): void {\r\n localStorage.removeItem(AuthenticationService.USER_STORAGE_KEY);\r\n }\r\n\r\n private static loadCredentials(): UserModel | null {\r\n const serializedCredentials = localStorage.getItem(AuthenticationService.USER_STORAGE_KEY);\r\n\r\n if (serializedCredentials !== null) {\r\n return JSON.parse(serializedCredentials);\r\n } else {\r\n return null;\r\n }\r\n }\r\n\r\n private static storeCredentials(login: string, password: string): void {\r\n const credentials: UserModel = {login, password};\r\n\r\n localStorage.setItem(AuthenticationService.USER_STORAGE_KEY, JSON.stringify(credentials));\r\n }\r\n\r\n public constructor(\r\n private readonly http: HttpClient\r\n ) {\r\n this._loggedUser$ = new BehaviorSubject<UserModel | null>(null);\r\n }\r\n\r\n public get loggedUser$(): Observable<UserModel | null> {\r\n return this._loggedUser$.asObservable();\r\n }\r\n\r\n public get loggedUser(): UserModel | null {\r\n return this._loggedUser$.value;\r\n }\r\n\r\n public isLogged(): boolean {\r\n return this.loggedUser !== null;\r\n }\r\n\r\n public logout(): void {\r\n AuthenticationService.clearCredentials();\r\n this._loggedUser$.next(null);\r\n }\r\n\r\n public tryLoginWithStoredCredentials(): Observable<UserModel | null> {\r\n const credentials = AuthenticationService.loadCredentials();\r\n\r\n if (credentials !== null) {\r\n return this.tryLogin(credentials);\r\n } else {\r\n return of<UserModel | null>(null);\r\n }\r\n }\r\n\r\n public tryLogin(login: UserModel): Observable<UserModel | null>;\r\n public tryLogin(login: string, password: string): Observable<UserModel | null>;\r\n\r\n public tryLogin(login: string | UserModel, password?: string): Observable<UserModel> {\r\n let userLogin: string;\r\n let userPassword: string;\r\n\r\n if (typeof login === 'string') {\r\n if (password === undefined) {\r\n throw new TypeError('password can\\'t be null when login is string');\r\n }\r\n\r\n userLogin = login;\r\n userPassword = password;\r\n } else {\r\n userLogin = login.login;\r\n userPassword = login.password;\r\n }\r\n AuthenticationService.storeCredentials(userLogin, userPassword);\r\n\r\n const headers = new HttpHeaders()\r\n .set('Authorization', 'Basic ' + btoa(userLogin + ':' + userPassword));\r\n\r\n return this.http.get<never>(`${environment.restApi}/users/${userLogin}`, {\r\n headers: headers\r\n })\r\n .pipe(\r\n tap(user => this._loggedUser$.next({\r\n login: userLogin,\r\n password: userPassword\r\n })),\r\n catchError(error => {\r\n this._loggedUser$.next(null);\r\n throw error;\r\n })\r\n );\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\n// This file can be replaced during build by using the `fileReplacements` array.\r\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\r\n// The list of file replacements can be found in `angular.json`.\r\n\r\nexport const environment = {\r\n production: false,\r\n restApi: 'http://localhost:9080/DAAExample/rest'\r\n};\r\n\r\n/*\r\n * For easier debugging in development mode, you can import the following file\r\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\r\n *\r\n * This import should be commented out in production mode because it will have a negative impact\r\n * on performance if an error is thrown.\r\n */\r\n// import 'zone.js/dist/zone-error'; // Included with Angular CLI.\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule)\r\n .catch(err => console.error(err));\r\n"],"sourceRoot":"webpack:///","file":"main-es5.js"}
\ No newline at end of file
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["modules-people-people-module"],{
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-form/people-form.component.html":
/*!************************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-form/people-form.component.html ***!
\************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<form id=\"people-form\" class=\"mb-5 mb-10\">\r\n <input name=\"id\" type=\"hidden\" value=\"\"/>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-sm-4\">\r\n <input name=\"name\" type=\"text\" value=\"\" placeholder=\"Nombre\" class=\"form-control\" required [(ngModel)]=\"name\"/>\r\n </div>\r\n\r\n <div class=\"col-sm-5\">\r\n <input name=\"surname\" type=\"text\" value=\"\" placeholder=\"Apellido\" class=\"form-control\" required\r\n [(ngModel)]=\"surname\"/>\r\n </div>\r\n\r\n <div class=\"col-sm-3\">\r\n <button id=\"btnSubmit\" class=\"btn btn-primary\"\r\n (click)=\"onModify()\">{{person.id === undefined ? 'Crear' : 'Editar'}}</button>\r\n <button id=\"btnClear\" class=\"btn\" (click)=\"onClean()\">Limpiar</button>\r\n </div>\r\n </div>\r\n</form>\r\n");
/***/ }),
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-list/people-list.component.html":
/*!************************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-list/people-list.component.html ***!
\************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<table id=\"people-list\" class=\"table\">\r\n <thead>\r\n <tr class=\"row\">\r\n <th class=\"col-sm-4\">Nombre</th>\r\n <th class=\"col-sm-5\">Apellido</th>\r\n <th class=\"col-sm-3\">&nbsp;</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let person of people\" class=\"row\" id=\"person-{{person.id}}\">\r\n <td class=\"col-sm-4 name\">{{person.name}}</td>\r\n <td class=\"col-sm-5 surname\">{{person.surname}}</td>\r\n <td class=\"col-sm-3\">\r\n <button class=\"btn btn-primary edit\" (click)=\"onEdit(person)\">Edit</button>\r\n <button class=\"btn btn-warning delete\" (click)=\"onDelete(person)\">Delete</button>\r\n <button class=\"btn btn-success pets \" (click)=\"pets(person)\">Pets</button>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n");
/***/ }),
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-main/people-main.component.html":
/*!************************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-main/people-main.component.html ***!
\************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<h1 class=\"display-5 mt-3 mb-3\">Personas</h1>\r\n<app-people-form [person]=\"activePerson\" (clean)=\"onCleanForm()\" (modify)=\"onModifyForm($event)\"></app-people-form>\r\n<app-people-list [people]=\"people\" (edit)=\"onEdit($event)\" (delete)=\"onDelete($event)\"></app-people-list>\r\n");
/***/ }),
/***/ "./src/app/modules/people/components/people-form/people-form.component.scss":
/*!**********************************************************************************!*\
!*** ./src/app/modules/people/components/people-form/people-form.component.scss ***!
\**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtZm9ybS9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3BsZVxcY29tcG9uZW50c1xccGVvcGxlLWZvcm1cXHBlb3BsZS1mb3JtLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7OztFQUFBIiwiZmlsZSI6InNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtZm9ybS9wZW9wbGUtZm9ybS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIVxyXG4gKiBEQUEgRXhhbXBsZVxyXG4gKlxyXG4gKiBDb3B5cmlnaHQgKEMpIDIwMTkgLSBNaWd1ZWwgUmVib2lyby1KYXRvLlxyXG4gKlxyXG4gKiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTogeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeVxyXG4gKiBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieVxyXG4gKiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxyXG4gKiAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLlxyXG4gKlxyXG4gKiBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcclxuICogYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2ZcclxuICogTUVSQ0hBTlRBQklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiBTZWUgdGhlXHJcbiAqIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGZvciBtb3JlIGRldGFpbHMuXHJcbiAqXHJcbiAqIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */");
/***/ }),
/***/ "./src/app/modules/people/components/people-form/people-form.component.ts":
/*!********************************************************************************!*\
!*** ./src/app/modules/people/components/people-form/people-form.component.ts ***!
\********************************************************************************/
/*! exports provided: PeopleFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleFormComponent", function() { return PeopleFormComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _models_person_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../models/person.model */ "./src/app/modules/people/models/person.model.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let PeopleFormComponent = class PeopleFormComponent {
constructor() {
this.modify = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.clean = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
}
set person(person) {
this.activePerson = person;
this.name = person.name;
this.surname = person.surname;
}
get person() {
return this.activePerson;
}
onModify() {
this.modify.emit({
id: this.person.id,
name: this.name,
surname: this.surname
});
}
onClean() {
this.clean.emit();
}
};
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])
], PeopleFormComponent.prototype, "modify", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])
], PeopleFormComponent.prototype, "clean", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _models_person_model__WEBPACK_IMPORTED_MODULE_2__["PersonModel"]),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_models_person_model__WEBPACK_IMPORTED_MODULE_2__["PersonModel"]])
], PeopleFormComponent.prototype, "person", null);
PeopleFormComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-people-form',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./people-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-form/people-form.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./people-form.component.scss */ "./src/app/modules/people/components/people-form/people-form.component.scss")).default]
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [])
], PeopleFormComponent);
/***/ }),
/***/ "./src/app/modules/people/components/people-list/people-list.component.scss":
/*!**********************************************************************************!*\
!*** ./src/app/modules/people/components/people-list/people-list.component.scss ***!
\**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9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W4gdGhlIGltcGxpZWQgd2FycmFudHkgb2ZcclxuICogTUVSQ0hBTlRBQklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiBTZWUgdGhlXHJcbiAqIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGZvciBtb3JlIGRldGFpbHMuXHJcbiAqXHJcbiAqIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */");
/***/ }),
/***/ "./src/app/modules/people/components/people-list/people-list.component.ts":
/*!********************************************************************************!*\
!*** ./src/app/modules/people/components/people-list/people-list.component.ts ***!
\********************************************************************************/
/*! exports provided: PeopleListComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleListComponent", function() { return PeopleListComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let PeopleListComponent = class PeopleListComponent {
constructor(router) {
this.router = router;
this.people = [];
this.edit = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.delete = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
}
onEdit(person) {
this.edit.emit(person);
}
onDelete(person) {
this.delete.emit(person);
}
pets(person) {
this.router.navigate(['//listPets', person.id]);
}
};
PeopleListComponent.ctorParameters = () => [
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] }
];
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Array)
], PeopleListComponent.prototype, "people", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])
], PeopleListComponent.prototype, "edit", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])
], PeopleListComponent.prototype, "delete", void 0);
PeopleListComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-people-list',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./people-list.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-list/people-list.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./people-list.component.scss */ "./src/app/modules/people/components/people-list/people-list.component.scss")).default]
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]])
], PeopleListComponent);
/***/ }),
/***/ "./src/app/modules/people/components/people-main/people-main.component.scss":
/*!**********************************************************************************!*\
!*** ./src/app/modules/people/components/people-main/people-main.component.scss ***!
\**********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbWFpbi9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3BsZVxcY29tcG9uZW50c1xccGVvcGxlLW1haW5cXHBlb3BsZS1tYWluLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs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xpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */");
/***/ }),
/***/ "./src/app/modules/people/components/people-main/people-main.component.ts":
/*!********************************************************************************!*\
!*** ./src/app/modules/people/components/people-main/people-main.component.ts ***!
\********************************************************************************/
/*! exports provided: PeopleMainComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleMainComponent", function() { return PeopleMainComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _services_people_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/people.service */ "./src/app/modules/people/services/people.service.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm2015/operators/index.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let PeopleMainComponent = class PeopleMainComponent {
constructor(peopleService) {
this.peopleService = peopleService;
this.people = [];
this.clearActivePerson();
}
ngOnInit() {
this.peopleService.list()
.subscribe(people => this.people = people);
}
onEdit(person) {
this.activePerson = person;
}
onDelete(person) {
if (confirm(`¿Estás seguro de que deseas eliminar a ${person.name} ${person.surname}?`)) {
this.peopleService.delete(person)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(() => this.peopleService.list()))
.subscribe(people => this.people = people);
}
}
onCleanForm() {
this.clearActivePerson();
}
onModifyForm(person) {
if (person.id === undefined) {
this.peopleService.create(person)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(() => this.peopleService.list()))
.subscribe(people => {
this.people = people;
this.clearActivePerson();
});
}
else {
this.peopleService.modify(person)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(() => this.peopleService.list()))
.subscribe(people => {
this.people = people;
this.clearActivePerson();
});
}
}
clearActivePerson() {
this.activePerson = { id: undefined, name: '', surname: '' };
}
};
PeopleMainComponent.ctorParameters = () => [
{ type: _services_people_service__WEBPACK_IMPORTED_MODULE_2__["PeopleService"] }
];
PeopleMainComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-people-main',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./people-main.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-main/people-main.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./people-main.component.scss */ "./src/app/modules/people/components/people-main/people-main.component.scss")).default]
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_people_service__WEBPACK_IMPORTED_MODULE_2__["PeopleService"]])
], PeopleMainComponent);
/***/ }),
/***/ "./src/app/modules/people/models/person.model.ts":
/*!*******************************************************!*\
!*** ./src/app/modules/people/models/person.model.ts ***!
\*******************************************************/
/*! exports provided: PersonModel */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PersonModel", function() { return PersonModel; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class PersonModel {
}
/***/ }),
/***/ "./src/app/modules/people/people-routing.module.ts":
/*!*********************************************************!*\
!*** ./src/app/modules/people/people-routing.module.ts ***!
\*********************************************************/
/*! exports provided: PeopleRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleRoutingModule", function() { return PeopleRoutingModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */ var _components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/people-main/people-main.component */ "./src/app/modules/people/components/people-main/people-main.component.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
const routes = [
{
path: '',
component: _components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_3__["PeopleMainComponent"]
}
];
let PeopleRoutingModule = class PeopleRoutingModule {
};
PeopleRoutingModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
})
], PeopleRoutingModule);
/***/ }),
/***/ "./src/app/modules/people/people.module.ts":
/*!*************************************************!*\
!*** ./src/app/modules/people/people.module.ts ***!
\*************************************************/
/*! exports provided: PeopleModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleModule", function() { return PeopleModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm2015/common.js");
/* harmony import */ var _people_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./people-routing.module */ "./src/app/modules/people/people-routing.module.ts");
/* harmony import */ var _components_people_list_people_list_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/people-list/people-list.component */ "./src/app/modules/people/components/people-list/people-list.component.ts");
/* harmony import */ var _components_people_form_people_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/people-form/people-form.component */ "./src/app/modules/people/components/people-form/people-form.component.ts");
/* harmony import */ var _components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/people-main/people-main.component */ "./src/app/modules/people/components/people-main/people-main.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm2015/forms.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let PeopleModule = class PeopleModule {
};
PeopleModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
declarations: [
_components_people_form_people_form_component__WEBPACK_IMPORTED_MODULE_5__["PeopleFormComponent"],
_components_people_list_people_list_component__WEBPACK_IMPORTED_MODULE_4__["PeopleListComponent"],
_components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_6__["PeopleMainComponent"]
],
imports: [
_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_7__["FormsModule"],
_people_routing_module__WEBPACK_IMPORTED_MODULE_3__["PeopleRoutingModule"]
]
})
], PeopleModule);
/***/ }),
/***/ "./src/app/modules/people/services/people.service.ts":
/*!***********************************************************!*\
!*** ./src/app/modules/people/services/people.service.ts ***!
\***********************************************************/
/*! exports provided: PeopleService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeopleService", function() { return PeopleService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm2015/http.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
let PeopleService = class PeopleService {
constructor(http) {
this.http = http;
}
list() {
return this.http.get(`${_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi}/people`);
}
create(person) {
const data = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]()
.set('name', person.name)
.set('surname', person.surname);
return this.http.post(`${_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi}/people`, data);
}
modify(person) {
const data = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]()
.set('name', person.name)
.set('surname', person.surname);
return this.http.put(`${_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi}/people/${person.id}`, data);
}
delete(person) {
return this.http.delete(`${_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi}/people/${person.id}`);
}
};
PeopleService.ctorParameters = () => [
{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
];
PeopleService = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
], PeopleService);
/***/ })
}]);
//# sourceMappingURL=modules-people-people-module-es2015.js.map
\ No newline at end of file
{"version":3,"sources":["./src/app/modules/people/components/people-form/people-form.component.html","./src/app/modules/people/components/people-list/people-list.component.html","./src/app/modules/people/components/people-main/people-main.component.html","./src/app/modules/people/components/people-form/people-form.component.scss","./src/app/modules/people/components/people-form/people-form.component.ts","./src/app/modules/people/components/people-list/people-list.component.scss","./src/app/modules/people/components/people-list/people-list.component.ts","./src/app/modules/people/components/people-main/people-main.component.scss","./src/app/modules/people/components/people-main/people-main.component.ts","./src/app/modules/people/models/person.model.ts","./src/app/modules/people/people-routing.module.ts","./src/app/modules/people/people.module.ts","./src/app/modules/people/services/people.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAe,ihBAAkd,u9BAAu9B,8CAA8C,yI;;;;;;;;;;;;ACAt+C;AAAe,ihBAAkd,ohBAAohB,mHAAmH,WAAW,2CAA2C,aAAa,gDAAgD,gBAAgB,uX;;;;;;;;;;;;ACA3uC;AAAe,ihBAAkd,8mB;;;;;;;;;;;;ACAje;AAAe,+eAAgb,4VAA4V,mgD;;;;;;;;;;;;ACA3xB;AAAA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U,CAAC;QACV,UAAU,EAAE,MAAM;KACnB,CAAC;2EAG0C,+DAAU;GAFzC,aAAa,CA2BzB;AA3ByB","file":"modules-people-people-module-es2015.js","sourcesContent":["export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<form id=\\\"people-form\\\" class=\\\"mb-5 mb-10\\\">\\r\\n <input name=\\\"id\\\" type=\\\"hidden\\\" value=\\\"\\\"/>\\r\\n\\r\\n <div class=\\\"row\\\">\\r\\n <div class=\\\"col-sm-4\\\">\\r\\n <input name=\\\"name\\\" type=\\\"text\\\" value=\\\"\\\" placeholder=\\\"Nombre\\\" class=\\\"form-control\\\" required [(ngModel)]=\\\"name\\\"/>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"col-sm-5\\\">\\r\\n <input name=\\\"surname\\\" type=\\\"text\\\" value=\\\"\\\" placeholder=\\\"Apellido\\\" class=\\\"form-control\\\" required\\r\\n [(ngModel)]=\\\"surname\\\"/>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"col-sm-3\\\">\\r\\n <button id=\\\"btnSubmit\\\" class=\\\"btn btn-primary\\\"\\r\\n (click)=\\\"onModify()\\\">{{person.id === undefined ? 'Crear' : 'Editar'}}</button>\\r\\n <button id=\\\"btnClear\\\" class=\\\"btn\\\" (click)=\\\"onClean()\\\">Limpiar</button>\\r\\n </div>\\r\\n </div>\\r\\n</form>\\r\\n\"","export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<table id=\\\"people-list\\\" class=\\\"table\\\">\\r\\n <thead>\\r\\n <tr class=\\\"row\\\">\\r\\n <th class=\\\"col-sm-4\\\">Nombre</th>\\r\\n <th class=\\\"col-sm-5\\\">Apellido</th>\\r\\n <th class=\\\"col-sm-3\\\">&nbsp;</th>\\r\\n </tr>\\r\\n </thead>\\r\\n <tbody>\\r\\n <tr *ngFor=\\\"let person of people\\\" class=\\\"row\\\" id=\\\"person-{{person.id}}\\\">\\r\\n <td class=\\\"col-sm-4 name\\\">{{person.name}}</td>\\r\\n <td class=\\\"col-sm-5 surname\\\">{{person.surname}}</td>\\r\\n <td class=\\\"col-sm-3\\\">\\r\\n <button class=\\\"btn btn-primary edit\\\" (click)=\\\"onEdit(person)\\\">Edit</button>\\r\\n <button class=\\\"btn btn-warning delete\\\" (click)=\\\"onDelete(person)\\\">Delete</button>\\r\\n <button class=\\\"btn btn-success pets \\\" (click)=\\\"pets(person)\\\">Pets</button>\\r\\n </td>\\r\\n </tr>\\r\\n </tbody>\\r\\n</table>\\r\\n\"","export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<h1 class=\\\"display-5 mt-3 mb-3\\\">Personas</h1>\\r\\n<app-people-form [person]=\\\"activePerson\\\" (clean)=\\\"onCleanForm()\\\" (modify)=\\\"onModifyForm($event)\\\"></app-people-form>\\r\\n<app-people-list [people]=\\\"people\\\" (edit)=\\\"onEdit($event)\\\" (delete)=\\\"onDelete($event)\\\"></app-people-list>\\r\\n\"","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\\n */\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtZm9ybS9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcm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UiBQVVJQT1NFLiBTZWUgdGhlXHJcbiAqIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGZvciBtb3JlIGRldGFpbHMuXHJcbiAqXHJcbiAqIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */\"","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\r\nimport {PersonModel} from '../../models/person.model';\r\n\r\n@Component({\r\n selector: 'app-people-form',\r\n templateUrl: './people-form.component.html',\r\n styleUrls: ['./people-form.component.scss']\r\n})\r\nexport class PeopleFormComponent {\r\n public activePerson: PersonModel;\r\n\r\n @Output()\r\n public readonly modify: EventEmitter<PersonModel>;\r\n @Output()\r\n public readonly clean: EventEmitter<never>;\r\n\r\n public name: string;\r\n public surname: string;\r\n\r\n public constructor() {\r\n this.modify = new EventEmitter<PersonModel>();\r\n this.clean = new EventEmitter<never>();\r\n }\r\n\r\n @Input()\r\n public set person(person: PersonModel) {\r\n this.activePerson = person;\r\n this.name = person.name;\r\n this.surname = person.surname;\r\n }\r\n\r\n public get person(): PersonModel {\r\n return this.activePerson;\r\n }\r\n\r\n public onModify() {\r\n this.modify.emit({\r\n id: this.person.id,\r\n name: this.name,\r\n surname: this.surname\r\n });\r\n }\r\n\r\n public onClean() {\r\n this.clean.emit();\r\n }\r\n}\r\n","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\\n */\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbGlzdC9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3BsZVxcY29tcG9uZW50c1xccGVvcGxlLWxpc3RcXHBlb3BsZS1saXN0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7OztFQUFBIiwiZmlsZSI6InNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbGlzdC9wZW9wbGUtbGlzdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIVxyXG4gKiBEQUEgRXhhbXBsZVxyXG4gKlxyXG4gKiBDb3B5cmlnaHQgKEMpIDIwMTkgLSBNaWd1ZWwgUmVib2lyby1KYXRvLlxyXG4gKlxyXG4gKiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTogeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeVxyXG4gKiBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieVxyXG4gKiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxyXG4gKiAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLlxyXG4gKlxyXG4gKiBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcclxuICogYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2ZcclxuICogTUVSQ0hBTlRBQklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiBTZWUgdGhlXHJcbiAqIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGZvciBtb3JlIGRldGFpbHMuXHJcbiAqXHJcbiAqIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */\"","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\r\nimport {PersonModel} from '../../models/person.model';\r\nimport {PeopleService} from '../../services/people.service';\r\nimport {Router} from '@angular/router';\r\n\r\n@Component({\r\n selector: 'app-people-list',\r\n templateUrl: './people-list.component.html',\r\n styleUrls: ['./people-list.component.scss']\r\n})\r\nexport class PeopleListComponent {\r\n\r\n @Input()\r\n public people: PersonModel[] = [];\r\n\r\n @Output()\r\n public readonly edit: EventEmitter<PersonModel>;\r\n @Output()\r\n public readonly delete: EventEmitter<PersonModel>;\r\n\r\n public constructor(private readonly router: Router) {\r\n this.edit = new EventEmitter<PersonModel>();\r\n this.delete = new EventEmitter<PersonModel>();\r\n }\r\n\r\n public onEdit(person: PersonModel) {\r\n this.edit.emit(person);\r\n }\r\n\r\n public onDelete(person: PersonModel) {\r\n this.delete.emit(person);\r\n }\r\n\r\n public pets(person: PersonModel){\r\n this.router.navigate(['//listPets',person.id]);\r\n }\r\n}\r\n","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://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dGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcclxuICogYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2ZcclxuICogTUVSQ0hBTlRBQklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiBTZWUgdGhlXHJcbiAqIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGZvciBtb3JlIGRldGFpbHMuXHJcbiAqXHJcbiAqIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */\"","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport { Component, OnInit } from '@angular/core';\r\nimport {PersonModel} from '../../models/person.model';\r\nimport {PeopleService} from '../../services/people.service';\r\nimport {map, mergeMap} from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: 'app-people-main',\r\n templateUrl: './people-main.component.html',\r\n styleUrls: ['./people-main.component.scss']\r\n})\r\nexport class PeopleMainComponent implements OnInit {\r\n public activePerson: PersonModel;\r\n public people: PersonModel[];\r\n\r\n public constructor(\r\n private readonly peopleService: PeopleService\r\n ) {\r\n this.people = [];\r\n this.clearActivePerson();\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.peopleService.list()\r\n .subscribe(people => this.people = people);\r\n }\r\n\r\n public onEdit(person: PersonModel): void {\r\n this.activePerson = person;\r\n }\r\n\r\n public onDelete(person: PersonModel): void {\r\n if (confirm(`¿Estás seguro de que deseas eliminar a ${person.name} ${person.surname}?`)) {\r\n this.peopleService.delete(person)\r\n .pipe(\r\n mergeMap(() => this.peopleService.list())\r\n )\r\n .subscribe(people => this.people = people);\r\n }\r\n }\r\n\r\n public onCleanForm(): void {\r\n this.clearActivePerson();\r\n }\r\n\r\n public onModifyForm(person: PersonModel): void {\r\n if (person.id === undefined) {\r\n this.peopleService.create(person)\r\n .pipe(\r\n mergeMap(() => this.peopleService.list())\r\n )\r\n .subscribe(people => {\r\n this.people = people;\r\n this.clearActivePerson();\r\n });\r\n } else {\r\n this.peopleService.modify(person)\r\n .pipe(\r\n mergeMap(() => this.peopleService.list())\r\n )\r\n .subscribe(people => {\r\n this.people = people;\r\n this.clearActivePerson();\r\n });\r\n }\r\n }\r\n\r\n private clearActivePerson(): void {\r\n this.activePerson = { id: undefined, name: '', surname: '' };\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nexport class PersonModel {\r\n id?: number;\r\n name: string;\r\n surname: string;\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {NgModule} from '@angular/core';\r\nimport {RouterModule, Routes} from '@angular/router';\r\nimport {PeopleMainComponent} from './components/people-main/people-main.component';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n component: PeopleMainComponent\r\n }\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class PeopleRoutingModule { }\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\n\r\nimport {PeopleRoutingModule} from './people-routing.module';\r\nimport {PeopleListComponent} from './components/people-list/people-list.component';\r\nimport {PeopleFormComponent} from './components/people-form/people-form.component';\r\nimport {PeopleMainComponent} from './components/people-main/people-main.component';\r\nimport {FormsModule} from '@angular/forms';\r\n\r\n@NgModule({\r\n declarations: [\r\n PeopleFormComponent,\r\n PeopleListComponent,\r\n PeopleMainComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n PeopleRoutingModule\r\n ]\r\n})\r\nexport class PeopleModule {\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Injectable} from '@angular/core';\r\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\r\nimport {environment} from '../../../../environments/environment';\r\nimport {Observable} from 'rxjs';\r\nimport {PersonModel} from '../models/person.model';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class PeopleService {\r\n\r\n public constructor(private readonly http: HttpClient) { }\r\n\r\n public list(): Observable<PersonModel[]> {\r\n return this.http.get<PersonModel[]>(`${environment.restApi}/people`);\r\n }\r\n\r\n public create(person: PersonModel): Observable<PersonModel> {\r\n const data = new HttpParams()\r\n .set('name', person.name)\r\n .set('surname', person.surname);\r\n\r\n return this.http.post<PersonModel>(`${environment.restApi}/people`, data);\r\n }\r\n\r\n public modify(person: PersonModel): Observable<PersonModel> {\r\n const data = new HttpParams()\r\n .set('name', person.name)\r\n .set('surname', person.surname);\r\n\r\n return this.http.put<PersonModel>(`${environment.restApi}/people/${person.id}`, data);\r\n }\r\n\r\n public delete(person: PersonModel): Observable<number> {\r\n return this.http.delete<number>(`${environment.restApi}/people/${person.id}`);\r\n }\r\n}\r\n"],"sourceRoot":"webpack:///"}
\ No newline at end of file
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["modules-people-people-module"], {
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-form/people-form.component.html":
/*!************************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-form/people-form.component.html ***!
\************************************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppModulesPeopleComponentsPeopleFormPeopleFormComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<form id=\"people-form\" class=\"mb-5 mb-10\">\r\n <input name=\"id\" type=\"hidden\" value=\"\"/>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-sm-4\">\r\n <input name=\"name\" type=\"text\" value=\"\" placeholder=\"Nombre\" class=\"form-control\" required [(ngModel)]=\"name\"/>\r\n </div>\r\n\r\n <div class=\"col-sm-5\">\r\n <input name=\"surname\" type=\"text\" value=\"\" placeholder=\"Apellido\" class=\"form-control\" required\r\n [(ngModel)]=\"surname\"/>\r\n </div>\r\n\r\n <div class=\"col-sm-3\">\r\n <button id=\"btnSubmit\" class=\"btn btn-primary\"\r\n (click)=\"onModify()\">{{person.id === undefined ? 'Crear' : 'Editar'}}</button>\r\n <button id=\"btnClear\" class=\"btn\" (click)=\"onClean()\">Limpiar</button>\r\n </div>\r\n </div>\r\n</form>\r\n";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-list/people-list.component.html":
/*!************************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-list/people-list.component.html ***!
\************************************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppModulesPeopleComponentsPeopleListPeopleListComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<table id=\"people-list\" class=\"table\">\r\n <thead>\r\n <tr class=\"row\">\r\n <th class=\"col-sm-4\">Nombre</th>\r\n <th class=\"col-sm-5\">Apellido</th>\r\n <th class=\"col-sm-3\">&nbsp;</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let person of people\" class=\"row\" id=\"person-{{person.id}}\">\r\n <td class=\"col-sm-4 name\">{{person.name}}</td>\r\n <td class=\"col-sm-5 surname\">{{person.surname}}</td>\r\n <td class=\"col-sm-3\">\r\n <button class=\"btn btn-primary edit\" (click)=\"onEdit(person)\">Edit</button>\r\n <button class=\"btn btn-warning delete\" (click)=\"onDelete(person)\">Delete</button>\r\n <button class=\"btn btn-success pets \" (click)=\"pets(person)\">Pets</button>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-main/people-main.component.html":
/*!************************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-main/people-main.component.html ***!
\************************************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppModulesPeopleComponentsPeopleMainPeopleMainComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<!--\r\n ~ DAA Example\r\n ~\r\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n ~\r\n ~ This program is free software: you can redistribute it and/or modify\r\n ~ it under the terms of the GNU General Public License as published by\r\n ~ the Free Software Foundation, either version 3 of the License, or\r\n ~ (at your option) any later version.\r\n ~\r\n ~ This program is distributed in the hope that it will be useful,\r\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n ~ GNU General Public License for more details.\r\n ~\r\n ~ You should have received a copy of the GNU General Public License\r\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n -->\r\n\r\n<h1 class=\"display-5 mt-3 mb-3\">Personas</h1>\r\n<app-people-form [person]=\"activePerson\" (clean)=\"onCleanForm()\" (modify)=\"onModifyForm($event)\"></app-people-form>\r\n<app-people-list [people]=\"people\" (edit)=\"onEdit($event)\" (delete)=\"onDelete($event)\"></app-people-list>\r\n";
/***/
},
/***/
"./src/app/modules/people/components/people-form/people-form.component.scss":
/*!**********************************************************************************!*\
!*** ./src/app/modules/people/components/people-form/people-form.component.scss ***!
\**********************************************************************************/
/*! exports provided: default */
/***/
function srcAppModulesPeopleComponentsPeopleFormPeopleFormComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtZm9ybS9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3BsZVxcY29tcG9uZW50c1xccGVvcGxlLWZvcm1cXHBlb3BsZS1mb3JtLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJB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IEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */";
/***/
},
/***/
"./src/app/modules/people/components/people-form/people-form.component.ts":
/*!********************************************************************************!*\
!*** ./src/app/modules/people/components/people-form/people-form.component.ts ***!
\********************************************************************************/
/*! exports provided: PeopleFormComponent */
/***/
function srcAppModulesPeopleComponentsPeopleFormPeopleFormComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PeopleFormComponent", function () {
return PeopleFormComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _models_person_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../../models/person.model */
"./src/app/modules/people/models/person.model.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var PeopleFormComponent =
/*#__PURE__*/
function () {
function PeopleFormComponent() {
_classCallCheck(this, PeopleFormComponent);
this.modify = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.clean = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
}
_createClass(PeopleFormComponent, [{
key: "onModify",
value: function onModify() {
this.modify.emit({
id: this.person.id,
name: this.name,
surname: this.surname
});
}
}, {
key: "onClean",
value: function onClean() {
this.clean.emit();
}
}, {
key: "person",
set: function set(person) {
this.activePerson = person;
this.name = person.name;
this.surname = person.surname;
},
get: function get() {
return this.activePerson;
}
}]);
return PeopleFormComponent;
}();
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PeopleFormComponent.prototype, "modify", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PeopleFormComponent.prototype, "clean", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _models_person_model__WEBPACK_IMPORTED_MODULE_2__["PersonModel"]), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_models_person_model__WEBPACK_IMPORTED_MODULE_2__["PersonModel"]])], PeopleFormComponent.prototype, "person", null);
PeopleFormComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-people-form',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./people-form.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-form/people-form.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./people-form.component.scss */
"./src/app/modules/people/components/people-form/people-form.component.scss")).default]
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [])], PeopleFormComponent);
/***/
},
/***/
"./src/app/modules/people/components/people-list/people-list.component.scss":
/*!**********************************************************************************!*\
!*** ./src/app/modules/people/components/people-list/people-list.component.scss ***!
\**********************************************************************************/
/*! exports provided: default */
/***/
function srcAppModulesPeopleComponentsPeopleListPeopleListComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbGlzdC9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3BsZVxcY29tcG9uZW50c1xccGVvcGxlLWxpc3RcXHBlb3BsZS1saXN0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7OztFQUFBIiwiZmlsZSI6InNyYy9hcH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GggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */";
/***/
},
/***/
"./src/app/modules/people/components/people-list/people-list.component.ts":
/*!********************************************************************************!*\
!*** ./src/app/modules/people/components/people-list/people-list.component.ts ***!
\********************************************************************************/
/*! exports provided: PeopleListComponent */
/***/
function srcAppModulesPeopleComponentsPeopleListPeopleListComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PeopleListComponent", function () {
return PeopleListComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var PeopleListComponent =
/*#__PURE__*/
function () {
function PeopleListComponent(router) {
_classCallCheck(this, PeopleListComponent);
this.router = router;
this.people = [];
this.edit = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.delete = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
}
_createClass(PeopleListComponent, [{
key: "onEdit",
value: function onEdit(person) {
this.edit.emit(person);
}
}, {
key: "onDelete",
value: function onDelete(person) {
this.delete.emit(person);
}
}, {
key: "pets",
value: function pets(person) {
this.router.navigate(['//listPets', person.id]);
}
}]);
return PeopleListComponent;
}();
PeopleListComponent.ctorParameters = function () {
return [{
type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]
}];
};
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Array)], PeopleListComponent.prototype, "people", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PeopleListComponent.prototype, "edit", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PeopleListComponent.prototype, "delete", void 0);
PeopleListComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-people-list',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./people-list.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-list/people-list.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./people-list.component.scss */
"./src/app/modules/people/components/people-list/people-list.component.scss")).default]
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]])], PeopleListComponent);
/***/
},
/***/
"./src/app/modules/people/components/people-main/people-main.component.scss":
/*!**********************************************************************************!*\
!*** ./src/app/modules/people/components/people-main/people-main.component.scss ***!
\**********************************************************************************/
/*! exports provided: default */
/***/
function srcAppModulesPeopleComponentsPeopleMainPeopleMainComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "/*!\n * DAA Example\n *\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbWFpbi9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3BsZVxcY29tcG9uZW50c1xccGVvcGxlLW1haW5cXHBlb3BsZS1tYWluLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7OztFQUFBIiwiZmlsZSI6InNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbWFpbi9wZW9wbGUtbWFpbi5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8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/
"./src/app/modules/people/components/people-main/people-main.component.ts":
/*!********************************************************************************!*\
!*** ./src/app/modules/people/components/people-main/people-main.component.ts ***!
\********************************************************************************/
/*! exports provided: PeopleMainComponent */
/***/
function srcAppModulesPeopleComponentsPeopleMainPeopleMainComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PeopleMainComponent", function () {
return PeopleMainComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _services_people_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../../services/people.service */
"./src/app/modules/people/services/people.service.ts");
/* harmony import */
var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! rxjs/operators */
"./node_modules/rxjs/_esm2015/operators/index.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var PeopleMainComponent =
/*#__PURE__*/
function () {
function PeopleMainComponent(peopleService) {
_classCallCheck(this, PeopleMainComponent);
this.peopleService = peopleService;
this.people = [];
this.clearActivePerson();
}
_createClass(PeopleMainComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var _this = this;
this.peopleService.list().subscribe(function (people) {
return _this.people = people;
});
}
}, {
key: "onEdit",
value: function onEdit(person) {
this.activePerson = person;
}
}, {
key: "onDelete",
value: function onDelete(person) {
var _this2 = this;
if (confirm("\xBFEst\xE1s seguro de que deseas eliminar a ".concat(person.name, " ").concat(person.surname, "?"))) {
this.peopleService.delete(person).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function () {
return _this2.peopleService.list();
})).subscribe(function (people) {
return _this2.people = people;
});
}
}
}, {
key: "onCleanForm",
value: function onCleanForm() {
this.clearActivePerson();
}
}, {
key: "onModifyForm",
value: function onModifyForm(person) {
var _this3 = this;
if (person.id === undefined) {
this.peopleService.create(person).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function () {
return _this3.peopleService.list();
})).subscribe(function (people) {
_this3.people = people;
_this3.clearActivePerson();
});
} else {
this.peopleService.modify(person).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function () {
return _this3.peopleService.list();
})).subscribe(function (people) {
_this3.people = people;
_this3.clearActivePerson();
});
}
}
}, {
key: "clearActivePerson",
value: function clearActivePerson() {
this.activePerson = {
id: undefined,
name: '',
surname: ''
};
}
}]);
return PeopleMainComponent;
}();
PeopleMainComponent.ctorParameters = function () {
return [{
type: _services_people_service__WEBPACK_IMPORTED_MODULE_2__["PeopleService"]
}];
};
PeopleMainComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-people-main',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./people-main.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/people/components/people-main/people-main.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./people-main.component.scss */
"./src/app/modules/people/components/people-main/people-main.component.scss")).default]
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_people_service__WEBPACK_IMPORTED_MODULE_2__["PeopleService"]])], PeopleMainComponent);
/***/
},
/***/
"./src/app/modules/people/models/person.model.ts":
/*!*******************************************************!*\
!*** ./src/app/modules/people/models/person.model.ts ***!
\*******************************************************/
/*! exports provided: PersonModel */
/***/
function srcAppModulesPeopleModelsPersonModelTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PersonModel", function () {
return PersonModel;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var PersonModel = function PersonModel() {
_classCallCheck(this, PersonModel);
};
/***/
},
/***/
"./src/app/modules/people/people-routing.module.ts":
/*!*********************************************************!*\
!*** ./src/app/modules/people/people-routing.module.ts ***!
\*********************************************************/
/*! exports provided: PeopleRoutingModule */
/***/
function srcAppModulesPeoplePeopleRoutingModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PeopleRoutingModule", function () {
return PeopleRoutingModule;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */
var _components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./components/people-main/people-main.component */
"./src/app/modules/people/components/people-main/people-main.component.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var routes = [{
path: '',
component: _components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_3__["PeopleMainComponent"]
}];
var PeopleRoutingModule = function PeopleRoutingModule() {
_classCallCheck(this, PeopleRoutingModule);
};
PeopleRoutingModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
})], PeopleRoutingModule);
/***/
},
/***/
"./src/app/modules/people/people.module.ts":
/*!*************************************************!*\
!*** ./src/app/modules/people/people.module.ts ***!
\*************************************************/
/*! exports provided: PeopleModule */
/***/
function srcAppModulesPeoplePeopleModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PeopleModule", function () {
return PeopleModule;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/common */
"./node_modules/@angular/common/fesm2015/common.js");
/* harmony import */
var _people_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./people-routing.module */
"./src/app/modules/people/people-routing.module.ts");
/* harmony import */
var _components_people_list_people_list_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./components/people-list/people-list.component */
"./src/app/modules/people/components/people-list/people-list.component.ts");
/* harmony import */
var _components_people_form_people_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ./components/people-form/people-form.component */
"./src/app/modules/people/components/people-form/people-form.component.ts");
/* harmony import */
var _components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! ./components/people-main/people-main.component */
"./src/app/modules/people/components/people-main/people-main.component.ts");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! @angular/forms */
"./node_modules/@angular/forms/fesm2015/forms.js");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var PeopleModule = function PeopleModule() {
_classCallCheck(this, PeopleModule);
};
PeopleModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
declarations: [_components_people_form_people_form_component__WEBPACK_IMPORTED_MODULE_5__["PeopleFormComponent"], _components_people_list_people_list_component__WEBPACK_IMPORTED_MODULE_4__["PeopleListComponent"], _components_people_main_people_main_component__WEBPACK_IMPORTED_MODULE_6__["PeopleMainComponent"]],
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["FormsModule"], _people_routing_module__WEBPACK_IMPORTED_MODULE_3__["PeopleRoutingModule"]]
})], PeopleModule);
/***/
},
/***/
"./src/app/modules/people/services/people.service.ts":
/*!***********************************************************!*\
!*** ./src/app/modules/people/services/people.service.ts ***!
\***********************************************************/
/*! exports provided: PeopleService */
/***/
function srcAppModulesPeopleServicesPeopleServiceTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PeopleService", function () {
return PeopleService;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/common/http */
"./node_modules/@angular/common/fesm2015/http.js");
/* harmony import */
var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../../../../environments/environment */
"./src/environments/environment.ts");
/*
* DAA Example
*
* Copyright (C) 2019 - Miguel Reboiro-Jato.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var PeopleService =
/*#__PURE__*/
function () {
function PeopleService(http) {
_classCallCheck(this, PeopleService);
this.http = http;
}
_createClass(PeopleService, [{
key: "list",
value: function list() {
return this.http.get("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/people"));
}
}, {
key: "create",
value: function create(person) {
var data = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]().set('name', person.name).set('surname', person.surname);
return this.http.post("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/people"), data);
}
}, {
key: "modify",
value: function modify(person) {
var data = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]().set('name', person.name).set('surname', person.surname);
return this.http.put("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/people/").concat(person.id), data);
}
}, {
key: "delete",
value: function _delete(person) {
return this.http.delete("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/people/").concat(person.id));
}
}]);
return PeopleService;
}();
PeopleService.ctorParameters = function () {
return [{
type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]
}];
};
PeopleService = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])], PeopleService);
/***/
}
}]);
//# sourceMappingURL=modules-people-people-module-es5.js.map
\ No newline at end of file
{"version":3,"sources":["src/app/modules/people/components/people-form/people-form.component.html","src/app/modules/people/components/people-list/people-list.component.html","src/app/modules/people/components/people-main/people-main.component.html","src/app/modules/people/components/people-form/people-form.component.scss","src/app/modules/people/components/people-form/people-form.component.ts","src/app/modules/people/components/people-list/people-list.component.scss","src/app/modules/people/components/people-list/people-list.component.ts","src/app/modules/people/components/people-main/people-main.component.scss","src/app/modules/people/components/people-main/people-main.component.ts","src/app/modules/people/models/person.model.ts","src/app/modules/people/people-routing.module.ts","src/app/modules/people/people.module.ts","src/app/modules/people/services/people.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAA,mBAAA,CAAA,CAAA,CAAA,mBAAA;AAAe;;;AAAA,IAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,gmDAAA;;;;;;;;;;;;;;;;ACAf,IAAA,mBAAA,CAAA,CAAA,CAAA,mBAAA;AAAe;;;AAAA,IAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,mlDAAA;;;;;;;;;;;;;;;;ACAf,IAAA,mBAAA,CAAA,CAAA,CAAA,mBAAA;AAAe;;;AAAA,IAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,gkCAAA;;;;;;;;;;;;;;;;ACAf,IAAA,mBAAA,CAAA,CAAA,CAAA,mBAAA;AAAe;;;AAAA,IAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,+wEAAA;;;;;;;;;;;;;;;;ACAf,IAAA,mBAAA,CAAA,CAAA,CAAA,mBAAA;AAAA;;;AAAA,IAAA,mBAAA,CAAA,CAAA,CAAA,mBAAA,EAAA,qBAAA,EAAA,YAAA;AAAA,aAAA,mBAAA;AAAA,KAAA;AAAA;;;AAAA,QAAA,kCAAA,GAAA,mBAAA;AAAA;AAAA,uCAAA,CAAA;AAAA;;;AAAA,QAAA,0CAAA,GAAA,mBAAA;AAAA;AAAA,mDAAA,CAAA;AAAA;;;AAAA,QAAA,iDAAA,GAAA,mBAAA;AAAA;AAAA,qDAAA,CAAA;AAAA;;;;;;;;;;;;;;;;;;;;AA2BA,QAAa,mBAAb;AAAA;AAAA;AAWE,qCAAA;AAAA;;AACE,aAAK,MAAL,GAAc,IAAI,0CAAA,CAAA,cAAA,CAAJ,EAAd;AACA,aAAK,KA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AAzE,CAAP;AACD;AAtBH;AAAA;AAAA,gCAwBgB,MAxBhB,EAwBmC;AAC/B,iBAAO,KAAK,IAAL,CAAU,MAAV,WAA4B,sDAAA,CAAA,aAAA,CAAA,CAAY,OAAxC,qBAA0D,MAAM,CAAC,EAAjE,EAAP;AACD;AA1BH;;AAAA;AAAA,OAAA;;;;cAE4C,iDAAA,CAAA,YAAA;;;;AAF/B,IAAA,aAAa,GAAA,kCAAA,CAAA,YAAA,CAAA,CAAA,CAHzB,MAAA,CAAA,0CAAA,CAAA,YAAA,CAAA,CAAA,CAAW;AACV,MAAA,UAAU,EAAE;AADF,KAAX,CAGyB,E,uEAEkB,iDAAA,CAAA,YAAA,C,EAFlB,CAAA,EAAb,aAAa,CAAb","sourcesContent":["export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<form id=\\\"people-form\\\" class=\\\"mb-5 mb-10\\\">\\r\\n <input name=\\\"id\\\" type=\\\"hidden\\\" value=\\\"\\\"/>\\r\\n\\r\\n <div class=\\\"row\\\">\\r\\n <div class=\\\"col-sm-4\\\">\\r\\n <input name=\\\"name\\\" type=\\\"text\\\" value=\\\"\\\" placeholder=\\\"Nombre\\\" class=\\\"form-control\\\" required [(ngModel)]=\\\"name\\\"/>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"col-sm-5\\\">\\r\\n <input name=\\\"surname\\\" type=\\\"text\\\" value=\\\"\\\" placeholder=\\\"Apellido\\\" class=\\\"form-control\\\" required\\r\\n [(ngModel)]=\\\"surname\\\"/>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"col-sm-3\\\">\\r\\n <button id=\\\"btnSubmit\\\" class=\\\"btn btn-primary\\\"\\r\\n (click)=\\\"onModify()\\\">{{person.id === undefined ? 'Crear' : 'Editar'}}</button>\\r\\n <button id=\\\"btnClear\\\" class=\\\"btn\\\" (click)=\\\"onClean()\\\">Limpiar</button>\\r\\n </div>\\r\\n </div>\\r\\n</form>\\r\\n\"","export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<table id=\\\"people-list\\\" class=\\\"table\\\">\\r\\n <thead>\\r\\n <tr class=\\\"row\\\">\\r\\n <th class=\\\"col-sm-4\\\">Nombre</th>\\r\\n <th class=\\\"col-sm-5\\\">Apellido</th>\\r\\n <th class=\\\"col-sm-3\\\">&nbsp;</th>\\r\\n </tr>\\r\\n </thead>\\r\\n <tbody>\\r\\n <tr *ngFor=\\\"let person of people\\\" class=\\\"row\\\" id=\\\"person-{{person.id}}\\\">\\r\\n <td class=\\\"col-sm-4 name\\\">{{person.name}}</td>\\r\\n <td class=\\\"col-sm-5 surname\\\">{{person.surname}}</td>\\r\\n <td class=\\\"col-sm-3\\\">\\r\\n <button class=\\\"btn btn-primary edit\\\" (click)=\\\"onEdit(person)\\\">Edit</button>\\r\\n <button class=\\\"btn btn-warning delete\\\" (click)=\\\"onDelete(person)\\\">Delete</button>\\r\\n <button class=\\\"btn btn-success pets \\\" (click)=\\\"pets(person)\\\">Pets</button>\\r\\n </td>\\r\\n </tr>\\r\\n </tbody>\\r\\n</table>\\r\\n\"","export default \"<!--\\r\\n ~ DAA Example\\r\\n ~\\r\\n ~ Copyright (C) 2019 - Miguel Reboiro-Jato.\\r\\n ~\\r\\n ~ This program is free software: you can redistribute it and/or modify\\r\\n ~ it under the terms of the GNU General Public License as published by\\r\\n ~ the Free Software Foundation, either version 3 of the License, or\\r\\n ~ (at your option) any later version.\\r\\n ~\\r\\n ~ This program is distributed in the hope that it will be useful,\\r\\n ~ but WITHOUT ANY WARRANTY; without even the implied warranty of\\r\\n ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\r\\n ~ GNU General Public License for more details.\\r\\n ~\\r\\n ~ You should have received a copy of the GNU General Public License\\r\\n ~ along with this program. If not, see <http://www.gnu.org/licenses/>.\\r\\n -->\\r\\n\\r\\n<h1 class=\\\"display-5 mt-3 mb-3\\\">Personas</h1>\\r\\n<app-people-form [person]=\\\"activePerson\\\" (clean)=\\\"onCleanForm()\\\" (modify)=\\\"onModifyForm($event)\\\"></app-people-form>\\r\\n<app-people-list [people]=\\\"people\\\" (edit)=\\\"onEdit($event)\\\" (delete)=\\\"onDelete($event)\\\"></app-people-list>\\r\\n\"","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\\n */\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtZm9ybS9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3BsZVxcY29tcG9uZW50c1xccGVvcGxlLWZvcm1cXHBlb3BsZS1mb3JtLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7OztFQUFBIiwiZmlsZSI6InNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtZm9ybS9wZW9wbGUtZm9ybS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIVxyXG4gKiBEQUEgRXhhbXBsZVxyXG4gKlxyXG4gKiBDb3B5cmlnaHQgKEMpIDIwMTkgLSBNaWd1ZWwgUmVib2lyby1KYXRvLlxyXG4gKlxyXG4gKiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTogeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeVxyXG4gKiBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieVxyXG4gKiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxyXG4gKiAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLlxyXG4gKlxyXG4gKiBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcclxuICogYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2ZcclxuICogTUVSQ0hBTlRBQklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiBTZWUgdGhlXHJcbiAqIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGZvciBtb3JlIGRldGFpbHMuXHJcbiAqXHJcbiAqIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */\"","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\r\nimport {PersonModel} from '../../models/person.model';\r\n\r\n@Component({\r\n selector: 'app-people-form',\r\n templateUrl: './people-form.component.html',\r\n styleUrls: ['./people-form.component.scss']\r\n})\r\nexport class PeopleFormComponent {\r\n public activePerson: PersonModel;\r\n\r\n @Output()\r\n public readonly modify: EventEmitter<PersonModel>;\r\n @Output()\r\n public readonly clean: EventEmitter<never>;\r\n\r\n public name: string;\r\n public surname: string;\r\n\r\n public constructor() {\r\n this.modify = new EventEmitter<PersonModel>();\r\n this.clean = new EventEmitter<never>();\r\n }\r\n\r\n @Input()\r\n public set person(person: PersonModel) {\r\n this.activePerson = person;\r\n this.name = person.name;\r\n this.surname = person.surname;\r\n }\r\n\r\n public get person(): PersonModel {\r\n return this.activePerson;\r\n }\r\n\r\n public onModify() {\r\n this.modify.emit({\r\n id: this.person.id,\r\n name: this.name,\r\n surname: this.surname\r\n });\r\n }\r\n\r\n public onClean() {\r\n this.clean.emit();\r\n }\r\n}\r\n","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\\n */\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbGlzdC9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3BsZVxcY29tcG9uZW50c1xccGVvcGxlLWxpc3RcXHBlb3BsZS1saXN0LmNv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FlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */\"","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\r\nimport {PersonModel} from '../../models/person.model';\r\nimport {PeopleService} from '../../services/people.service';\r\nimport {Router} from '@angular/router';\r\n\r\n@Component({\r\n selector: 'app-people-list',\r\n templateUrl: './people-list.component.html',\r\n styleUrls: ['./people-list.component.scss']\r\n})\r\nexport class PeopleListComponent {\r\n\r\n @Input()\r\n public people: PersonModel[] = [];\r\n\r\n @Output()\r\n public readonly edit: EventEmitter<PersonModel>;\r\n @Output()\r\n public readonly delete: EventEmitter<PersonModel>;\r\n\r\n public constructor(private readonly router: Router) {\r\n this.edit = new EventEmitter<PersonModel>();\r\n this.delete = new EventEmitter<PersonModel>();\r\n }\r\n\r\n public onEdit(person: PersonModel) {\r\n this.edit.emit(person);\r\n }\r\n\r\n public onDelete(person: PersonModel) {\r\n this.delete.emit(person);\r\n }\r\n\r\n public pets(person: PersonModel){\r\n this.router.navigate(['//listPets',person.id]);\r\n }\r\n}\r\n","export default \"/*!\\n * DAA Example\\n *\\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\\n *\\n * This program is free software: you can redistribute it and/or modify\\n * it under the terms of the GNU General Public License as published by\\n * the Free Software Foundation, either version 3 of the License, or\\n * (at your option) any later version.\\n *\\n * This program is distributed in the hope that it will be useful,\\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\\n * GNU General Public License for more details.\\n *\\n * You should have received a copy of the GNU General Public License\\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\\n */\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbWFpbi9DOlxcVXNlcnNcXE5vZWxpYVxcRGVza3RvcFxcREFBXFxkYWFleGFtcGxlXFxzcmNcXG1haW5cXGFuZ3VsYXIvc3JjXFxhcHBcXG1vZHVsZXNcXHBlb3BsZVxcY29tcG9uZW50c1xccGVvcGxlLW1haW5cXHBlb3BsZS1tYWluLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7OztFQUFBIiwiZmlsZSI6InNyYy9hcHAvbW9kdWxlcy9wZW9wbGUvY29tcG9uZW50cy9wZW9wbGUtbWFpbi9wZW9wbGUtbWFpbi5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIVxyXG4gKiBEQUEgRXhhbXBsZVxyXG4gKlxyXG4gKiBDb3B5cmlnaHQgKEMpIDIwMTkgLSBNaWd1ZWwgUmVib2lyby1KYXRvLlxyXG4gKlxyXG4gKiBUaGlzIHByb2dyYW0gaXMgZnJlZSBzb2Z0d2FyZTogeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5kL29yIG1vZGlmeVxyXG4gKiBpdCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGFzIHB1Ymxpc2hlZCBieVxyXG4gKiB0aGUgRnJlZSBTb2Z0d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxyXG4gKiAoYXQgeW91ciBvcHRpb24pIGFueSBsYXRlciB2ZXJzaW9uLlxyXG4gKlxyXG4gKiBUaGlzIHByb2dyYW0gaXMgZGlzdHJpYnV0ZWQgaW4gdGhlIGhvcGUgdGhhdCBpdCB3aWxsIGJlIHVzZWZ1bCxcclxuICogYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZOyB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2ZcclxuICogTUVSQ0hBTlRBQklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiBTZWUgdGhlXHJcbiAqIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIGZvciBtb3JlIGRldGFpbHMuXHJcbiAqXHJcbiAqIFlvdSBzaG91bGQgaGF2ZSByZWNlaXZlZCBhIGNvcHkgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlXHJcbiAqIGFsb25nIHdpdGggdGhpcyBwcm9ncmFtLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXHJcbiAqL1xyXG5cclxuIl19 */\"","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport { Component, OnInit } from '@angular/core';\r\nimport {PersonModel} from '../../models/person.model';\r\nimport {PeopleService} from '../../services/people.service';\r\nimport {map, mergeMap} from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: 'app-people-main',\r\n templateUrl: './people-main.component.html',\r\n styleUrls: ['./people-main.component.scss']\r\n})\r\nexport class PeopleMainComponent implements OnInit {\r\n public activePerson: PersonModel;\r\n public people: PersonModel[];\r\n\r\n public constructor(\r\n private readonly peopleService: PeopleService\r\n ) {\r\n this.people = [];\r\n this.clearActivePerson();\r\n }\r\n\r\n public ngOnInit(): void {\r\n this.peopleService.list()\r\n .subscribe(people => this.people = people);\r\n }\r\n\r\n public onEdit(person: PersonModel): void {\r\n this.activePerson = person;\r\n }\r\n\r\n public onDelete(person: PersonModel): void {\r\n if (confirm(`¿Estás seguro de que deseas eliminar a ${person.name} ${person.surname}?`)) {\r\n this.peopleService.delete(person)\r\n .pipe(\r\n mergeMap(() => this.peopleService.list())\r\n )\r\n .subscribe(people => this.people = people);\r\n }\r\n }\r\n\r\n public onCleanForm(): void {\r\n this.clearActivePerson();\r\n }\r\n\r\n public onModifyForm(person: PersonModel): void {\r\n if (person.id === undefined) {\r\n this.peopleService.create(person)\r\n .pipe(\r\n mergeMap(() => this.peopleService.list())\r\n )\r\n .subscribe(people => {\r\n this.people = people;\r\n this.clearActivePerson();\r\n });\r\n } else {\r\n this.peopleService.modify(person)\r\n .pipe(\r\n mergeMap(() => this.peopleService.list())\r\n )\r\n .subscribe(people => {\r\n this.people = people;\r\n this.clearActivePerson();\r\n });\r\n }\r\n }\r\n\r\n private clearActivePerson(): void {\r\n this.activePerson = { id: undefined, name: '', surname: '' };\r\n }\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nexport class PersonModel {\r\n id?: number;\r\n name: string;\r\n surname: string;\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {NgModule} from '@angular/core';\r\nimport {RouterModule, Routes} from '@angular/router';\r\nimport {PeopleMainComponent} from './components/people-main/people-main.component';\r\n\r\nconst routes: Routes = [\r\n {\r\n path: '',\r\n component: PeopleMainComponent\r\n }\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class PeopleRoutingModule { }\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\n\r\nimport {PeopleRoutingModule} from './people-routing.module';\r\nimport {PeopleListComponent} from './components/people-list/people-list.component';\r\nimport {PeopleFormComponent} from './components/people-form/people-form.component';\r\nimport {PeopleMainComponent} from './components/people-main/people-main.component';\r\nimport {FormsModule} from '@angular/forms';\r\n\r\n@NgModule({\r\n declarations: [\r\n PeopleFormComponent,\r\n PeopleListComponent,\r\n PeopleMainComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n PeopleRoutingModule\r\n ]\r\n})\r\nexport class PeopleModule {\r\n}\r\n","/*\r\n * DAA Example\r\n *\r\n * Copyright (C) 2019 - Miguel Reboiro-Jato.\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\r\n */\r\n\r\nimport {Injectable} from '@angular/core';\r\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\r\nimport {environment} from '../../../../environments/environment';\r\nimport {Observable} from 'rxjs';\r\nimport {PersonModel} from '../models/person.model';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class PeopleService {\r\n\r\n public constructor(private readonly http: HttpClient) { }\r\n\r\n public list(): Observable<PersonModel[]> {\r\n return this.http.get<PersonModel[]>(`${environment.restApi}/people`);\r\n }\r\n\r\n public create(person: PersonModel): Observable<PersonModel> {\r\n const data = new HttpParams()\r\n .set('name', person.name)\r\n .set('surname', person.surname);\r\n\r\n return this.http.post<PersonModel>(`${environment.restApi}/people`, data);\r\n }\r\n\r\n public modify(person: PersonModel): Observable<PersonModel> {\r\n const data = new HttpParams()\r\n .set('name', person.name)\r\n .set('surname', person.surname);\r\n\r\n return this.http.put<PersonModel>(`${environment.restApi}/people/${person.id}`, data);\r\n }\r\n\r\n public delete(person: PersonModel): Observable<number> {\r\n return this.http.delete<number>(`${environment.restApi}/people/${person.id}`);\r\n }\r\n}\r\n"],"sourceRoot":"webpack:///","file":"modules-people-people-module-es5.js"}
\ No newline at end of file
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["modules-pets-pets-module"],{
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-form/pets-form.component.html":
/*!******************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-form/pets-form.component.html ***!
\******************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\r\n <form id=\"people-form\" class=\"mb-5 mb-10\">\r\n <input name=\"id\" type=\"hidden\" value=\"\"/>\r\n \r\n <div class=\"row\">\r\n <div class=\"col-sm-4\">\r\n <input name=\"name\" type=\"text\" value=\"\" placeholder=\"Nombre\" class=\"form-control\" required [(ngModel)]=\"name\"/>\r\n </div>\r\n \r\n <div class=\"col-sm-5\">\r\n <input name=\"kind\" type=\"text\" value=\"\" placeholder=\"Tipo\" class=\"form-control\" required\r\n [(ngModel)]=\"kind\"/>\r\n </div>\r\n \r\n <div class=\"col-sm-3\">\r\n <button id=\"btnSubmit\" class=\"btn btn-primary\"\r\n (click)=\"onModify()\">{{pet.id === undefined ? 'Crear' : 'Editar'}}</button>\r\n <button id=\"btnClear\" class=\"btn\" (click)=\"onClean()\">Limpiar</button>\r\n </div>\r\n </div>\r\n </form>\r\n\r\n");
/***/ }),
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-list/pets-list.component.html":
/*!******************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-list/pets-list.component.html ***!
\******************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\r\n<table id=\"people-list\" class=\"table\">\r\n <thead>\r\n <tr class=\"row\">\r\n <th class=\"col-sm-4\">Nombre</th>\r\n <th class=\"col-sm-5\">Tipo</th>\r\n <th class=\"col-sm-3\">&nbsp;</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let pet of pets\" class=\"row\" id=\"pet-{{pet.id}}\">\r\n <td class=\"col-sm-4 name\">{{pet.name}}</td>\r\n <td class=\"col-sm-5 surname\">{{pet.kind}}</td>\r\n <td class=\"col-sm-3\">\r\n <button class=\"btn btn-primary edit\" (click)=\"onEdit(pet)\">Edit</button>\r\n <button class=\"btn btn-warning delete\" (click)=\"onDelete(pet)\">Delete</button>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n\r\n\r\n");
/***/ }),
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-main/pets-main.component.html":
/*!******************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-main/pets-main.component.html ***!
\******************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<!--\r\n<h1 class=\"display-5 mt-3 mb-3\">Personas</h1>\r\n<app-people-form [person]=\"activePerson\" (clean)=\"onCleanForm()\" (modify)=\"onModifyForm($event)\"></app-people-form>\r\n<app-people-list [people]=\"people\" (edit)=\"onEdit($event)\" (delete)=\"onDelete($event)\"></app-people-list>\r\n-->\r\n<h1 class=\"display-5 mt-3 mb-3\">Mascotas</h1>\r\n\r\n\r\n<app-pets-form [pet]=\"activePet\" [owner]=\"id\" (clean)=\"onCleanForm()\" (modify)=\"onModifyForm($event)\"></app-pets-form>\r\n<app-pets-list [pets]=\"pets\" (delete)=\"onDelete($event)\" (edit)=\"onEdit($event)\"></app-pets-list>\r\n<button class=\"btn btn-primary edit\" (click)=\"back()\">Atrás</button>");
/***/ }),
/***/ "./src/app/modules/pets/components/pets-form/pets-form.component.scss":
/*!****************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-form/pets-form.component.scss ***!
\****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtZm9ybS9wZXRzLWZvcm0uY29tcG9uZW50LnNjc3MifQ== */");
/***/ }),
/***/ "./src/app/modules/pets/components/pets-form/pets-form.component.ts":
/*!**************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-form/pets-form.component.ts ***!
\**************************************************************************/
/*! exports provided: PetsFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PetsFormComponent", function() { return PetsFormComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */ var _models_pet_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../models/pet.model */ "./src/app/modules/pets/models/pet.model.ts");
let PetsFormComponent = class PetsFormComponent {
constructor(route) {
this.route = route;
this.clean = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.modify = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
}
set pet(pet) {
this.activePet = pet;
this.name = pet.name;
this.kind = pet.kind;
}
get pet() {
return this.activePet;
}
onClean() {
this.clean.emit();
}
onModify() {
this.modify.emit({
id: this.pet.id,
name: this.name,
kind: this.kind,
owner: this.owner
});
}
};
PetsFormComponent.ctorParameters = () => [
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] }
];
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Number)
], PetsFormComponent.prototype, "owner", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])
], PetsFormComponent.prototype, "clean", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])
], PetsFormComponent.prototype, "modify", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _models_pet_model__WEBPACK_IMPORTED_MODULE_3__["PetModel"]),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_models_pet_model__WEBPACK_IMPORTED_MODULE_3__["PetModel"]])
], PetsFormComponent.prototype, "pet", null);
PetsFormComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-pets-form',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./pets-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-form/pets-form.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./pets-form.component.scss */ "./src/app/modules/pets/components/pets-form/pets-form.component.scss")).default]
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"]])
], PetsFormComponent);
/***/ }),
/***/ "./src/app/modules/pets/components/pets-list/pets-list.component.scss":
/*!****************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-list/pets-list.component.scss ***!
\****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtbGlzdC9wZXRzLWxpc3QuY29tcG9uZW50LnNjc3MifQ== */");
/***/ }),
/***/ "./src/app/modules/pets/components/pets-list/pets-list.component.ts":
/*!**************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-list/pets-list.component.ts ***!
\**************************************************************************/
/*! exports provided: PetsListComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PetsListComponent", function() { return PetsListComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
let PetsListComponent = class PetsListComponent {
constructor() {
this.pets = [];
this.delete = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.edit = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
}
onDelete(pet) {
this.delete.emit(pet);
}
onEdit(pet) {
this.edit.emit(pet);
}
};
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Array)
], PetsListComponent.prototype, "pets", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])
], PetsListComponent.prototype, "delete", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])
], PetsListComponent.prototype, "edit", void 0);
PetsListComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-pets-list',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./pets-list.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-list/pets-list.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./pets-list.component.scss */ "./src/app/modules/pets/components/pets-list/pets-list.component.scss")).default]
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [])
], PetsListComponent);
/***/ }),
/***/ "./src/app/modules/pets/components/pets-main/pets-main.component.scss":
/*!****************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-main/pets-main.component.scss ***!
\****************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtbWFpbi9wZXRzLW1haW4uY29tcG9uZW50LnNjc3MifQ== */");
/***/ }),
/***/ "./src/app/modules/pets/components/pets-main/pets-main.component.ts":
/*!**************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-main/pets-main.component.ts ***!
\**************************************************************************/
/*! exports provided: PetsMainComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PetsMainComponent", function() { return PetsMainComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _services_pets_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/pets.service */ "./src/app/modules/pets/services/pets.service.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm2015/operators/index.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
let PetsMainComponent = class PetsMainComponent {
constructor(petsService, route, router) {
this.petsService = petsService;
this.route = route;
this.router = router;
this.pets = [];
this.clearActivePet();
}
ngOnInit() {
this.id = this.route.snapshot.params.person;
this.petsService.list(this.id)
.subscribe(pets => this.pets = pets);
}
onCleanForm() {
this.clearActivePet();
}
clearActivePet() {
this.activePet = { id: undefined, name: '', kind: '', owner: undefined };
}
back() {
this.router.navigate(['/']);
}
onDelete(pet) {
if (confirm(`¿Estás seguro de que deseas eliminar a ${pet.name}?`)) {
this.petsService.delete(pet)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(() => this.petsService.list(pet.owner)))
.subscribe(pets => this.pets = pets);
}
}
onEdit(pet) {
this.activePet = pet;
console.log("Noe");
console.log(this.activePet);
}
onModifyForm(pet) {
if (pet.id === undefined) {
this.petsService.create(pet)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(() => this.petsService.list(pet.owner)))
.subscribe(pets => {
this.pets = pets;
this.clearActivePet();
});
}
else {
this.petsService.modify(pet)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(() => this.petsService.list(pet.owner)))
.subscribe(pets => {
this.pets = pets;
this.clearActivePet();
});
}
}
};
PetsMainComponent.ctorParameters = () => [
{ type: _services_pets_service__WEBPACK_IMPORTED_MODULE_2__["PetsService"] },
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"] },
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] }
];
PetsMainComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-pets-main',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! raw-loader!./pets-main.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-main/pets-main.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(/*! ./pets-main.component.scss */ "./src/app/modules/pets/components/pets-main/pets-main.component.scss")).default]
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_pets_service__WEBPACK_IMPORTED_MODULE_2__["PetsService"],
_angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"],
_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]])
], PetsMainComponent);
/***/ }),
/***/ "./src/app/modules/pets/models/pet.model.ts":
/*!**************************************************!*\
!*** ./src/app/modules/pets/models/pet.model.ts ***!
\**************************************************/
/*! exports provided: PetModel */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PetModel", function() { return PetModel; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
class PetModel {
}
/***/ }),
/***/ "./src/app/modules/pets/pets-routing.module.ts":
/*!*****************************************************!*\
!*** ./src/app/modules/pets/pets-routing.module.ts ***!
\*****************************************************/
/*! exports provided: PetsRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PetsRoutingModule", function() { return PetsRoutingModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */ var _components_pets_main_pets_main_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/pets-main/pets-main.component */ "./src/app/modules/pets/components/pets-main/pets-main.component.ts");
const routes = [
{
path: '',
component: _components_pets_main_pets_main_component__WEBPACK_IMPORTED_MODULE_3__["PetsMainComponent"]
}
];
let PetsRoutingModule = class PetsRoutingModule {
};
PetsRoutingModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
})
], PetsRoutingModule);
/***/ }),
/***/ "./src/app/modules/pets/pets.module.ts":
/*!*********************************************!*\
!*** ./src/app/modules/pets/pets.module.ts ***!
\*********************************************/
/*! exports provided: PetsModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PetsModule", function() { return PetsModule; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm2015/common.js");
/* harmony import */ var _pets_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pets-routing.module */ "./src/app/modules/pets/pets-routing.module.ts");
/* harmony import */ var _components_pets_list_pets_list_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/pets-list/pets-list.component */ "./src/app/modules/pets/components/pets-list/pets-list.component.ts");
/* harmony import */ var _components_pets_form_pets_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/pets-form/pets-form.component */ "./src/app/modules/pets/components/pets-form/pets-form.component.ts");
/* harmony import */ var _components_pets_main_pets_main_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/pets-main/pets-main.component */ "./src/app/modules/pets/components/pets-main/pets-main.component.ts");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm2015/forms.js");
let PetsModule = class PetsModule {
};
PetsModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
declarations: [
_components_pets_form_pets_form_component__WEBPACK_IMPORTED_MODULE_5__["PetsFormComponent"],
_components_pets_list_pets_list_component__WEBPACK_IMPORTED_MODULE_4__["PetsListComponent"],
_components_pets_main_pets_main_component__WEBPACK_IMPORTED_MODULE_6__["PetsMainComponent"]
],
imports: [
_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_7__["FormsModule"],
_pets_routing_module__WEBPACK_IMPORTED_MODULE_3__["PetsRoutingModule"]
]
})
], PetsModule);
/***/ }),
/***/ "./src/app/modules/pets/services/pets.service.ts":
/*!*******************************************************!*\
!*** ./src/app/modules/pets/services/pets.service.ts ***!
\*******************************************************/
/*! exports provided: PetsService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PetsService", function() { return PetsService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm2015/http.js");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
let PetsService = class PetsService {
constructor(http) {
this.http = http;
}
list(id) {
return this.http.get(`${_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi}/pets?owner=${id}`);
}
delete(pet) {
return this.http.delete(`${_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi}/pets/${pet.id}`);
}
modify(pet) {
const data = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]()
.set('name', pet.name)
.set('kind', pet.kind)
.set('owner', pet.owner.toString());
return this.http.put(`${_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi}/pets/${pet.id}`, data);
}
create(pet) {
const data = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]()
.set('name', pet.name)
.set('kind', pet.kind)
.set('owner', pet.owner.toString());
return this.http.post(`${_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi}/pets`, data);
}
};
PetsService.ctorParameters = () => [
{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }
];
PetsService = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}),
tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])
], PetsService);
/***/ })
}]);
//# sourceMappingURL=modules-pets-pets-module-es2015.js.map
\ No newline at end of file
{"version":3,"sources":["./src/app/modules/pets/components/pets-form/pets-form.component.html","./src/app/modules/pets/components/pets-list/pets-list.component.html","./src/app/modules/pets/components/pets-main/pets-main.component.html","./src/app/modules/pets/components/pets-form/pets-form.component.scss","./src/app/modules/pets/components/pets-form/pets-form.component.ts","./src/app/modules/pets/components/pets-list/pets-list.component.scss","./src/app/modules/pets/components/pets-list/pets-list.component.ts","./src/app/modules/pets/components/pets-main/pets-main.component.scss","./src/app/modules/pets/components/pets-main/pets-main.component.ts","./src/app/modules/pets/models/pet.model.ts","./src/app/modules/pets/pets-routing.module.ts","./src/app/modules/pets/pets.module.ts","./src/app/modules/pets/services/pets.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAe,uuBAAwqB,2CAA2C,qJ;;;;;;;;;;;;ACAluB;AAAe,0QAA2M,2GAA2G,QAAQ,2CAA2C,UAAU,gDAAgD,UAAU,+R;;;;;;;;;;;;ACA5b;AAAe,muB;;;;;;;;;;;;ACAf;AAAe,6GAA8C,uL;;;;;;;;;;;;;;;;;;;ACAkB;AAChC;AACG;AAOlD,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAc5B,YACU,KAAqB;QAArB,UAAK,GAAL,KAAK,CAAgB;QAE7B,IAAI,CAAC,KAAK,GAAG,IAAI,0DAAY,EAAS,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,IAAI,0DAAY,EAAY,CAAC;IAC7C,CAAC;IAGD,IAAW,GAAG,CAAC,GAAa;QAC1B,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,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EM,MAAM,CAAC,GAAa;QACzB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAS,GAAG,qEAAW,CAAC,OAAO,SAAS,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAEM,MAAM,CAAC,GAAa;QACzB,MAAM,IAAI,GAAG,IAAI,+DAAU,EAAE;aAC1B,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC;aACrB,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC;aACrB,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEtC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAW,GAAG,qEAAW,CAAC,OAAO,SAAS,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;IAEM,MAAM,CAAC,GAAa;QACzB,MAAM,IAAI,GAAG,IAAI,+DAAU,EAAE;aAC1B,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC;aACrB,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC;aACrB,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEtC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAW,GAAG,qEAAW,CAAC,OAAO,OAAO,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;CACF;;YA7BoC,+DAAU;;AAFlC,WAAW;IAHvB,gEAAU,CAAC;QACV,UAAU,EAAE,MAAM;KACnB,CAAC;2EAGmC,+DAAU;GAFlC,WAAW,CA+BvB;AA/BuB","file":"modules-pets-pets-module-es2015.js","sourcesContent":["export default \"\\r\\n <form id=\\\"people-form\\\" class=\\\"mb-5 mb-10\\\">\\r\\n <input name=\\\"id\\\" type=\\\"hidden\\\" value=\\\"\\\"/>\\r\\n \\r\\n <div class=\\\"row\\\">\\r\\n <div class=\\\"col-sm-4\\\">\\r\\n <input name=\\\"name\\\" type=\\\"text\\\" value=\\\"\\\" placeholder=\\\"Nombre\\\" class=\\\"form-control\\\" required [(ngModel)]=\\\"name\\\"/>\\r\\n </div>\\r\\n \\r\\n <div class=\\\"col-sm-5\\\">\\r\\n <input name=\\\"kind\\\" type=\\\"text\\\" value=\\\"\\\" placeholder=\\\"Tipo\\\" class=\\\"form-control\\\" required\\r\\n [(ngModel)]=\\\"kind\\\"/>\\r\\n </div>\\r\\n \\r\\n <div class=\\\"col-sm-3\\\">\\r\\n <button id=\\\"btnSubmit\\\" class=\\\"btn btn-primary\\\"\\r\\n (click)=\\\"onModify()\\\">{{pet.id === undefined ? 'Crear' : 'Editar'}}</button>\\r\\n <button id=\\\"btnClear\\\" class=\\\"btn\\\" (click)=\\\"onClean()\\\">Limpiar</button>\\r\\n </div>\\r\\n </div>\\r\\n </form>\\r\\n\\r\\n\"","export default \"\\r\\n<table id=\\\"people-list\\\" class=\\\"table\\\">\\r\\n <thead>\\r\\n <tr class=\\\"row\\\">\\r\\n <th class=\\\"col-sm-4\\\">Nombre</th>\\r\\n <th class=\\\"col-sm-5\\\">Tipo</th>\\r\\n <th class=\\\"col-sm-3\\\">&nbsp;</th>\\r\\n </tr>\\r\\n </thead>\\r\\n <tbody>\\r\\n <tr *ngFor=\\\"let pet of pets\\\" class=\\\"row\\\" id=\\\"pet-{{pet.id}}\\\">\\r\\n <td class=\\\"col-sm-4 name\\\">{{pet.name}}</td>\\r\\n <td class=\\\"col-sm-5 surname\\\">{{pet.kind}}</td>\\r\\n <td class=\\\"col-sm-3\\\">\\r\\n <button class=\\\"btn btn-primary edit\\\" (click)=\\\"onEdit(pet)\\\">Edit</button>\\r\\n <button class=\\\"btn btn-warning delete\\\" (click)=\\\"onDelete(pet)\\\">Delete</button>\\r\\n </td>\\r\\n </tr>\\r\\n </tbody>\\r\\n</table>\\r\\n\\r\\n\\r\\n\"","export default \"<!--\\r\\n<h1 class=\\\"display-5 mt-3 mb-3\\\">Personas</h1>\\r\\n<app-people-form [person]=\\\"activePerson\\\" (clean)=\\\"onCleanForm()\\\" (modify)=\\\"onModifyForm($event)\\\"></app-people-form>\\r\\n<app-people-list [people]=\\\"people\\\" (edit)=\\\"onEdit($event)\\\" (delete)=\\\"onDelete($event)\\\"></app-people-list>\\r\\n-->\\r\\n<h1 class=\\\"display-5 mt-3 mb-3\\\">Mascotas</h1>\\r\\n\\r\\n\\r\\n<app-pets-form [pet]=\\\"activePet\\\" [owner]=\\\"id\\\" (clean)=\\\"onCleanForm()\\\" (modify)=\\\"onModifyForm($event)\\\"></app-pets-form>\\r\\n<app-pets-list [pets]=\\\"pets\\\" (delete)=\\\"onDelete($event)\\\" (edit)=\\\"onEdit($event)\\\"></app-pets-list>\\r\\n<button class=\\\"btn btn-primary edit\\\" (click)=\\\"back()\\\">Atrás</button>\"","export default \"\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtZm9ybS9wZXRzLWZvcm0uY29tcG9uZW50LnNjc3MifQ== */\"","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\r\nimport {ActivatedRoute} from '@angular/router';\r\nimport { PetModel } from '../../models/pet.model';\r\n\r\n@Component({\r\n selector: 'app-pets-form',\r\n templateUrl: './pets-form.component.html',\r\n styleUrls: ['./pets-form.component.scss']\r\n})\r\nexport class PetsFormComponent {\r\n public activePet: PetModel;\r\n @Input()\r\n public owner: number;\r\n\r\n @Output()\r\n public readonly clean: EventEmitter<never>;\r\n\r\n @Output()\r\n public readonly modify: EventEmitter<PetModel>;\r\n\r\n public name: string;\r\n public kind: string;\r\n \r\n constructor(\r\n private route: ActivatedRoute\r\n ) { \r\n this.clean = new EventEmitter<never>();\r\n this.modify = new EventEmitter<PetModel>();\r\n }\r\n\r\n @Input()\r\n public set pet(pet: PetModel) {\r\n this.activePet = pet;\r\n this.name = pet.name;\r\n this.kind = pet.kind;\r\n }\r\n\r\n public get pet(): PetModel {\r\n return this.activePet;\r\n }\r\n\r\n public onClean() {\r\n this.clean.emit();\r\n }\r\n\r\n public onModify() {\r\n this.modify.emit({\r\n id: this.pet.id,\r\n name: this.name,\r\n kind: this.kind,\r\n owner: this.owner\r\n });\r\n }\r\n\r\n}\r\n","export default \"\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtbGlzdC9wZXRzLWxpc3QuY29tcG9uZW50LnNjc3MifQ== */\"","import { Component, EventEmitter, OnInit, Input, Output } from '@angular/core';\r\nimport { PetModel} from '../../models/pet.model';\r\n@Component({\r\n selector: 'app-pets-list',\r\n templateUrl: './pets-list.component.html',\r\n styleUrls: ['./pets-list.component.scss']\r\n})\r\nexport class PetsListComponent {\r\n \r\n @Input()\r\n public pets: PetModel[] = [];\r\n\r\n @Output()\r\n public readonly delete: EventEmitter<PetModel>;\r\n\r\n @Output()\r\n public readonly edit: EventEmitter<PetModel>;\r\n\r\n constructor() { \r\n this.delete = new EventEmitter<PetModel>();\r\n this.edit = new EventEmitter<PetModel>();\r\n }\r\n\r\n public onDelete(pet: PetModel) {\r\n this.delete.emit(pet);\r\n }\r\n\r\n public onEdit(pet: PetModel) {\r\n this.edit.emit(pet);\r\n }\r\n\r\n \r\n\r\n}\r\n","export default \"\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtbWFpbi9wZXRzLW1haW4uY29tcG9uZW50LnNjc3MifQ== */\"","import { Component, OnInit } from '@angular/core';\r\nimport {PetModel} from '../../models/pet.model';\r\nimport {PetsService} from '../../services/pets.service';\r\nimport {map, mergeMap} from 'rxjs/operators';\r\nimport {ActivatedRoute, Router} from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'app-pets-main',\r\n templateUrl: './pets-main.component.html',\r\n styleUrls: ['./pets-main.component.scss']\r\n})\r\nexport class PetsMainComponent implements OnInit {\r\n public id : number\r\n public activePet: PetModel;\r\n public pets: PetModel[];\r\n\r\n constructor(\r\n private readonly petsService: PetsService,\r\n private route: ActivatedRoute,\r\n private readonly router: Router\r\n ) { \r\n this.pets = [];\r\n this.clearActivePet()\r\n }\r\n\r\n ngOnInit() {\r\n this.id = this.route.snapshot.params.person;\r\n this.petsService.list(this.id)\r\n .subscribe(pets => this.pets = pets);\r\n \r\n }\r\n\r\n public onCleanForm(): void {\r\n this.clearActivePet();\r\n }\r\n\r\n public clearActivePet():void{\r\n this.activePet = { id: undefined, name: '', kind: '', owner: undefined };\r\n }\r\n\r\n public back(){\r\n this.router.navigate(['/']);\r\n }\r\n\r\n public onDelete(pet: PetModel): void {\r\n if (confirm(`¿Estás seguro de que deseas eliminar a ${pet.name}?`)) {\r\n this.petsService.delete(pet)\r\n .pipe(\r\n mergeMap(() => this.petsService.list(pet.owner))\r\n )\r\n .subscribe(pets => this.pets = pets);\r\n }\r\n }\r\n\r\n public onEdit(pet: PetModel): void {\r\n this.activePet = pet;\r\n console.log(\"Noe\")\r\n console.log(this.activePet)\r\n }\r\n\r\n public onModifyForm(pet: PetModel): void {\r\n if (pet.id === undefined) {\r\n this.petsService.create(pet)\r\n .pipe(\r\n mergeMap(() => this.petsService.list(pet.owner))\r\n )\r\n .subscribe(pets => {\r\n this.pets = pets;\r\n this.clearActivePet();\r\n });\r\n } else {\r\n this.petsService.modify(pet)\r\n .pipe(\r\n mergeMap(() => this.petsService.list(pet.owner))\r\n )\r\n .subscribe(pets => {\r\n this.pets = pets;\r\n this.clearActivePet();\r\n });\r\n }\r\n }\r\n\r\n}\r\n","export class PetModel {\r\n id?: number;\r\n name: string;\r\n kind: string;\r\n owner:number;\r\n }\r\n ","import {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {PetsMainComponent} from './components/pets-main/pets-main.component';\n\nconst routes: Routes = [\n {\n path: '',\n component: PetsMainComponent\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule]\n})\nexport class PetsRoutingModule { }\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {PetsRoutingModule} from './pets-routing.module';\nimport {PetsListComponent} from './components/pets-list/pets-list.component';\nimport {PetsFormComponent} from './components/pets-form/pets-form.component';\nimport {PetsMainComponent} from './components/pets-main/pets-main.component';\nimport {FormsModule} from '@angular/forms';\n\n@NgModule({\n declarations: [\n PetsFormComponent,\n PetsListComponent,\n PetsMainComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n PetsRoutingModule\n ]\n})\nexport class PetsModule { }\n","import { Injectable } from '@angular/core';\r\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\r\nimport {environment} from '../../../../environments/environment';\r\nimport {Observable} from 'rxjs';\r\nimport {PetModel} from '../models/pet.model';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class PetsService {\r\n\r\n constructor(private readonly http: HttpClient) { }\r\n\r\n\r\n\r\n public list(id: number): Observable<PetModel[]>{\r\n return this.http.get<PetModel[]>(`${environment.restApi}/pets?owner=${id}`);\r\n }\r\n\r\n public delete(pet: PetModel): Observable<number> {\r\n return this.http.delete<number>(`${environment.restApi}/pets/${pet.id}`);\r\n }\r\n\r\n public modify(pet: PetModel): Observable<PetModel> {\r\n const data = new HttpParams()\r\n .set('name', pet.name)\r\n .set('kind', pet.kind)\r\n .set('owner', pet.owner.toString());\r\n\r\n return this.http.put<PetModel>(`${environment.restApi}/pets/${pet.id}`, data);\r\n }\r\n\r\n public create(pet: PetModel): Observable<PetModel> {\r\n const data = new HttpParams()\r\n .set('name', pet.name)\r\n .set('kind', pet.kind)\r\n .set('owner', pet.owner.toString());\r\n\r\n return this.http.post<PetModel>(`${environment.restApi}/pets`, data);\r\n }\r\n}\r\n"],"sourceRoot":"webpack:///"}
\ No newline at end of file
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["modules-pets-pets-module"], {
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-form/pets-form.component.html":
/*!******************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-form/pets-form.component.html ***!
\******************************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppModulesPetsComponentsPetsFormPetsFormComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\r\n <form id=\"people-form\" class=\"mb-5 mb-10\">\r\n <input name=\"id\" type=\"hidden\" value=\"\"/>\r\n \r\n <div class=\"row\">\r\n <div class=\"col-sm-4\">\r\n <input name=\"name\" type=\"text\" value=\"\" placeholder=\"Nombre\" class=\"form-control\" required [(ngModel)]=\"name\"/>\r\n </div>\r\n \r\n <div class=\"col-sm-5\">\r\n <input name=\"kind\" type=\"text\" value=\"\" placeholder=\"Tipo\" class=\"form-control\" required\r\n [(ngModel)]=\"kind\"/>\r\n </div>\r\n \r\n <div class=\"col-sm-3\">\r\n <button id=\"btnSubmit\" class=\"btn btn-primary\"\r\n (click)=\"onModify()\">{{pet.id === undefined ? 'Crear' : 'Editar'}}</button>\r\n <button id=\"btnClear\" class=\"btn\" (click)=\"onClean()\">Limpiar</button>\r\n </div>\r\n </div>\r\n </form>\r\n\r\n";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-list/pets-list.component.html":
/*!******************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-list/pets-list.component.html ***!
\******************************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppModulesPetsComponentsPetsListPetsListComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\r\n<table id=\"people-list\" class=\"table\">\r\n <thead>\r\n <tr class=\"row\">\r\n <th class=\"col-sm-4\">Nombre</th>\r\n <th class=\"col-sm-5\">Tipo</th>\r\n <th class=\"col-sm-3\">&nbsp;</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let pet of pets\" class=\"row\" id=\"pet-{{pet.id}}\">\r\n <td class=\"col-sm-4 name\">{{pet.name}}</td>\r\n <td class=\"col-sm-5 surname\">{{pet.kind}}</td>\r\n <td class=\"col-sm-3\">\r\n <button class=\"btn btn-primary edit\" (click)=\"onEdit(pet)\">Edit</button>\r\n <button class=\"btn btn-warning delete\" (click)=\"onDelete(pet)\">Delete</button>\r\n </td>\r\n </tr>\r\n </tbody>\r\n</table>\r\n\r\n\r\n";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-main/pets-main.component.html":
/*!******************************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-main/pets-main.component.html ***!
\******************************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppModulesPetsComponentsPetsMainPetsMainComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<!--\r\n<h1 class=\"display-5 mt-3 mb-3\">Personas</h1>\r\n<app-people-form [person]=\"activePerson\" (clean)=\"onCleanForm()\" (modify)=\"onModifyForm($event)\"></app-people-form>\r\n<app-people-list [people]=\"people\" (edit)=\"onEdit($event)\" (delete)=\"onDelete($event)\"></app-people-list>\r\n-->\r\n<h1 class=\"display-5 mt-3 mb-3\">Mascotas</h1>\r\n\r\n\r\n<app-pets-form [pet]=\"activePet\" [owner]=\"id\" (clean)=\"onCleanForm()\" (modify)=\"onModifyForm($event)\"></app-pets-form>\r\n<app-pets-list [pets]=\"pets\" (delete)=\"onDelete($event)\" (edit)=\"onEdit($event)\"></app-pets-list>\r\n<button class=\"btn btn-primary edit\" (click)=\"back()\">Atrás</button>";
/***/
},
/***/
"./src/app/modules/pets/components/pets-form/pets-form.component.scss":
/*!****************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-form/pets-form.component.scss ***!
\****************************************************************************/
/*! exports provided: default */
/***/
function srcAppModulesPetsComponentsPetsFormPetsFormComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtZm9ybS9wZXRzLWZvcm0uY29tcG9uZW50LnNjc3MifQ== */";
/***/
},
/***/
"./src/app/modules/pets/components/pets-form/pets-form.component.ts":
/*!**************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-form/pets-form.component.ts ***!
\**************************************************************************/
/*! exports provided: PetsFormComponent */
/***/
function srcAppModulesPetsComponentsPetsFormPetsFormComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PetsFormComponent", function () {
return PetsFormComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */
var _models_pet_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../../models/pet.model */
"./src/app/modules/pets/models/pet.model.ts");
var PetsFormComponent =
/*#__PURE__*/
function () {
function PetsFormComponent(route) {
_classCallCheck(this, PetsFormComponent);
this.route = route;
this.clean = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.modify = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
}
_createClass(PetsFormComponent, [{
key: "onClean",
value: function onClean() {
this.clean.emit();
}
}, {
key: "onModify",
value: function onModify() {
this.modify.emit({
id: this.pet.id,
name: this.name,
kind: this.kind,
owner: this.owner
});
}
}, {
key: "pet",
set: function set(pet) {
this.activePet = pet;
this.name = pet.name;
this.kind = pet.kind;
},
get: function get() {
return this.activePet;
}
}]);
return PetsFormComponent;
}();
PetsFormComponent.ctorParameters = function () {
return [{
type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"]
}];
};
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Number)], PetsFormComponent.prototype, "owner", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PetsFormComponent.prototype, "clean", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PetsFormComponent.prototype, "modify", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _models_pet_model__WEBPACK_IMPORTED_MODULE_3__["PetModel"]), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_models_pet_model__WEBPACK_IMPORTED_MODULE_3__["PetModel"]])], PetsFormComponent.prototype, "pet", null);
PetsFormComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-pets-form',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./pets-form.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-form/pets-form.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./pets-form.component.scss */
"./src/app/modules/pets/components/pets-form/pets-form.component.scss")).default]
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"]])], PetsFormComponent);
/***/
},
/***/
"./src/app/modules/pets/components/pets-list/pets-list.component.scss":
/*!****************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-list/pets-list.component.scss ***!
\****************************************************************************/
/*! exports provided: default */
/***/
function srcAppModulesPetsComponentsPetsListPetsListComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtbGlzdC9wZXRzLWxpc3QuY29tcG9uZW50LnNjc3MifQ== */";
/***/
},
/***/
"./src/app/modules/pets/components/pets-list/pets-list.component.ts":
/*!**************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-list/pets-list.component.ts ***!
\**************************************************************************/
/*! exports provided: PetsListComponent */
/***/
function srcAppModulesPetsComponentsPetsListPetsListComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PetsListComponent", function () {
return PetsListComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
var PetsListComponent =
/*#__PURE__*/
function () {
function PetsListComponent() {
_classCallCheck(this, PetsListComponent);
this.pets = [];
this.delete = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.edit = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
}
_createClass(PetsListComponent, [{
key: "onDelete",
value: function onDelete(pet) {
this.delete.emit(pet);
}
}, {
key: "onEdit",
value: function onEdit(pet) {
this.edit.emit(pet);
}
}]);
return PetsListComponent;
}();
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", Array)], PetsListComponent.prototype, "pets", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PetsListComponent.prototype, "delete", void 0);
tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"])], PetsListComponent.prototype, "edit", void 0);
PetsListComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-pets-list',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./pets-list.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-list/pets-list.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./pets-list.component.scss */
"./src/app/modules/pets/components/pets-list/pets-list.component.scss")).default]
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [])], PetsListComponent);
/***/
},
/***/
"./src/app/modules/pets/components/pets-main/pets-main.component.scss":
/*!****************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-main/pets-main.component.scss ***!
\****************************************************************************/
/*! exports provided: default */
/***/
function srcAppModulesPetsComponentsPetsMainPetsMainComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtbWFpbi9wZXRzLW1haW4uY29tcG9uZW50LnNjc3MifQ== */";
/***/
},
/***/
"./src/app/modules/pets/components/pets-main/pets-main.component.ts":
/*!**************************************************************************!*\
!*** ./src/app/modules/pets/components/pets-main/pets-main.component.ts ***!
\**************************************************************************/
/*! exports provided: PetsMainComponent */
/***/
function srcAppModulesPetsComponentsPetsMainPetsMainComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PetsMainComponent", function () {
return PetsMainComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _services_pets_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../../services/pets.service */
"./src/app/modules/pets/services/pets.service.ts");
/* harmony import */
var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! rxjs/operators */
"./node_modules/rxjs/_esm2015/operators/index.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
var PetsMainComponent =
/*#__PURE__*/
function () {
function PetsMainComponent(petsService, route, router) {
_classCallCheck(this, PetsMainComponent);
this.petsService = petsService;
this.route = route;
this.router = router;
this.pets = [];
this.clearActivePet();
}
_createClass(PetsMainComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var _this = this;
this.id = this.route.snapshot.params.person;
this.petsService.list(this.id).subscribe(function (pets) {
return _this.pets = pets;
});
}
}, {
key: "onCleanForm",
value: function onCleanForm() {
this.clearActivePet();
}
}, {
key: "clearActivePet",
value: function clearActivePet() {
this.activePet = {
id: undefined,
name: '',
kind: '',
owner: undefined
};
}
}, {
key: "back",
value: function back() {
this.router.navigate(['/']);
}
}, {
key: "onDelete",
value: function onDelete(pet) {
var _this2 = this;
if (confirm("\xBFEst\xE1s seguro de que deseas eliminar a ".concat(pet.name, "?"))) {
this.petsService.delete(pet).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function () {
return _this2.petsService.list(pet.owner);
})).subscribe(function (pets) {
return _this2.pets = pets;
});
}
}
}, {
key: "onEdit",
value: function onEdit(pet) {
this.activePet = pet;
console.log("Noe");
console.log(this.activePet);
}
}, {
key: "onModifyForm",
value: function onModifyForm(pet) {
var _this3 = this;
if (pet.id === undefined) {
this.petsService.create(pet).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function () {
return _this3.petsService.list(pet.owner);
})).subscribe(function (pets) {
_this3.pets = pets;
_this3.clearActivePet();
});
} else {
this.petsService.modify(pet).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function () {
return _this3.petsService.list(pet.owner);
})).subscribe(function (pets) {
_this3.pets = pets;
_this3.clearActivePet();
});
}
}
}]);
return PetsMainComponent;
}();
PetsMainComponent.ctorParameters = function () {
return [{
type: _services_pets_service__WEBPACK_IMPORTED_MODULE_2__["PetsService"]
}, {
type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"]
}, {
type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]
}];
};
PetsMainComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-pets-main',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./pets-main.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/modules/pets/components/pets-main/pets-main.component.html")).default,
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./pets-main.component.scss */
"./src/app/modules/pets/components/pets-main/pets-main.component.scss")).default]
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_services_pets_service__WEBPACK_IMPORTED_MODULE_2__["PetsService"], _angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"], _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]])], PetsMainComponent);
/***/
},
/***/
"./src/app/modules/pets/models/pet.model.ts":
/*!**************************************************!*\
!*** ./src/app/modules/pets/models/pet.model.ts ***!
\**************************************************/
/*! exports provided: PetModel */
/***/
function srcAppModulesPetsModelsPetModelTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PetModel", function () {
return PetModel;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
var PetModel = function PetModel() {
_classCallCheck(this, PetModel);
};
/***/
},
/***/
"./src/app/modules/pets/pets-routing.module.ts":
/*!*****************************************************!*\
!*** ./src/app/modules/pets/pets-routing.module.ts ***!
\*****************************************************/
/*! exports provided: PetsRoutingModule */
/***/
function srcAppModulesPetsPetsRoutingModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PetsRoutingModule", function () {
return PetsRoutingModule;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */
var _components_pets_main_pets_main_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./components/pets-main/pets-main.component */
"./src/app/modules/pets/components/pets-main/pets-main.component.ts");
var routes = [{
path: '',
component: _components_pets_main_pets_main_component__WEBPACK_IMPORTED_MODULE_3__["PetsMainComponent"]
}];
var PetsRoutingModule = function PetsRoutingModule() {
_classCallCheck(this, PetsRoutingModule);
};
PetsRoutingModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
})], PetsRoutingModule);
/***/
},
/***/
"./src/app/modules/pets/pets.module.ts":
/*!*********************************************!*\
!*** ./src/app/modules/pets/pets.module.ts ***!
\*********************************************/
/*! exports provided: PetsModule */
/***/
function srcAppModulesPetsPetsModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PetsModule", function () {
return PetsModule;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/common */
"./node_modules/@angular/common/fesm2015/common.js");
/* harmony import */
var _pets_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./pets-routing.module */
"./src/app/modules/pets/pets-routing.module.ts");
/* harmony import */
var _components_pets_list_pets_list_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./components/pets-list/pets-list.component */
"./src/app/modules/pets/components/pets-list/pets-list.component.ts");
/* harmony import */
var _components_pets_form_pets_form_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ./components/pets-form/pets-form.component */
"./src/app/modules/pets/components/pets-form/pets-form.component.ts");
/* harmony import */
var _components_pets_main_pets_main_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! ./components/pets-main/pets-main.component */
"./src/app/modules/pets/components/pets-main/pets-main.component.ts");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! @angular/forms */
"./node_modules/@angular/forms/fesm2015/forms.js");
var PetsModule = function PetsModule() {
_classCallCheck(this, PetsModule);
};
PetsModule = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
declarations: [_components_pets_form_pets_form_component__WEBPACK_IMPORTED_MODULE_5__["PetsFormComponent"], _components_pets_list_pets_list_component__WEBPACK_IMPORTED_MODULE_4__["PetsListComponent"], _components_pets_main_pets_main_component__WEBPACK_IMPORTED_MODULE_6__["PetsMainComponent"]],
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["FormsModule"], _pets_routing_module__WEBPACK_IMPORTED_MODULE_3__["PetsRoutingModule"]]
})], PetsModule);
/***/
},
/***/
"./src/app/modules/pets/services/pets.service.ts":
/*!*******************************************************!*\
!*** ./src/app/modules/pets/services/pets.service.ts ***!
\*******************************************************/
/*! exports provided: PetsService */
/***/
function srcAppModulesPetsServicesPetsServiceTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "PetsService", function () {
return PetsService;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/common/http */
"./node_modules/@angular/common/fesm2015/http.js");
/* harmony import */
var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../../../../environments/environment */
"./src/environments/environment.ts");
var PetsService =
/*#__PURE__*/
function () {
function PetsService(http) {
_classCallCheck(this, PetsService);
this.http = http;
}
_createClass(PetsService, [{
key: "list",
value: function list(id) {
return this.http.get("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/pets?owner=").concat(id));
}
}, {
key: "delete",
value: function _delete(pet) {
return this.http.delete("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/pets/").concat(pet.id));
}
}, {
key: "modify",
value: function modify(pet) {
var data = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]().set('name', pet.name).set('kind', pet.kind).set('owner', pet.owner.toString());
return this.http.put("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/pets/").concat(pet.id), data);
}
}, {
key: "create",
value: function create(pet) {
var data = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]().set('name', pet.name).set('kind', pet.kind).set('owner', pet.owner.toString());
return this.http.post("".concat(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].restApi, "/pets"), data);
}
}]);
return PetsService;
}();
PetsService.ctorParameters = function () {
return [{
type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]
}];
};
PetsService = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
providedIn: 'root'
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]])], PetsService);
/***/
}
}]);
//# sourceMappingURL=modules-pets-pets-module-es5.js.map
\ No newline at end of file
{"version":3,"sources":["src/app/modules/pets/components/pets-form/pets-form.component.html","src/app/modules/pets/components/pets-list/pets-list.component.html","src/app/modules/pets/components/pets-main/pets-main.component.html","src/app/modules/pets/components/pets-form/pets-form.component.scss","src/app/modules/pets/components/pets-form/pets-form.component.ts","src/app/modules/pets/components/pets-list/pets-list.component.scss","src/app/modules/pets/components/pets-list/pets-list.component.ts","src/app/modules/pets/components/pets-main/pets-main.component.scss","src/app/modules/pets/components/pets-main/pets-main.component.ts","src/app/modules/pets/models/pet.model.ts","src/app/modules/pets/pets-routing.module.ts","src/app/modules/pets/pets.module.ts","src/app/modules/pets/services/pets.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAA,mBAAA,CAAA,CAAA,CAAA,mBAAA;AAAe;;;AAAA,IAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,w2BAAA;;;;;;;;;;;;;;;;ACAf,IAAA,mBAAA,CAAA,CAAA,CAAA,mBAAA;AAAe;;;AAAA,IAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,4sBAAA;;;;;;;;;;;;;;;;ACAf,IAAA,mBAAA,CAAA,CAAA,CAAA,mBAAA;AAAe;;;AAAA,IAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,oqBAAA;;;;;;;;;;;;;;;;ACAf,IAAA,mBAAA,CAAA,CAAA,CAAA,mBAAA;AAAe;;;AAAA,IAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,qOAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACSf,QAAa,iBAAb;AAAA;AAAA;AAcE,iCACU,KADV,EAC+B;A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,iDAAA,CAAA,YAAA,C,EAFb,CAAA,EAAX,WAAW,CAAX","sourcesContent":["export default \"\\r\\n <form id=\\\"people-form\\\" class=\\\"mb-5 mb-10\\\">\\r\\n <input name=\\\"id\\\" type=\\\"hidden\\\" value=\\\"\\\"/>\\r\\n \\r\\n <div class=\\\"row\\\">\\r\\n <div class=\\\"col-sm-4\\\">\\r\\n <input name=\\\"name\\\" type=\\\"text\\\" value=\\\"\\\" placeholder=\\\"Nombre\\\" class=\\\"form-control\\\" required [(ngModel)]=\\\"name\\\"/>\\r\\n </div>\\r\\n \\r\\n <div class=\\\"col-sm-5\\\">\\r\\n <input name=\\\"kind\\\" type=\\\"text\\\" value=\\\"\\\" placeholder=\\\"Tipo\\\" class=\\\"form-control\\\" required\\r\\n [(ngModel)]=\\\"kind\\\"/>\\r\\n </div>\\r\\n \\r\\n <div class=\\\"col-sm-3\\\">\\r\\n <button id=\\\"btnSubmit\\\" class=\\\"btn btn-primary\\\"\\r\\n (click)=\\\"onModify()\\\">{{pet.id === undefined ? 'Crear' : 'Editar'}}</button>\\r\\n <button id=\\\"btnClear\\\" class=\\\"btn\\\" (click)=\\\"onClean()\\\">Limpiar</button>\\r\\n </div>\\r\\n </div>\\r\\n </form>\\r\\n\\r\\n\"","export default \"\\r\\n<table id=\\\"people-list\\\" class=\\\"table\\\">\\r\\n <thead>\\r\\n <tr class=\\\"row\\\">\\r\\n <th class=\\\"col-sm-4\\\">Nombre</th>\\r\\n <th class=\\\"col-sm-5\\\">Tipo</th>\\r\\n <th class=\\\"col-sm-3\\\">&nbsp;</th>\\r\\n </tr>\\r\\n </thead>\\r\\n <tbody>\\r\\n <tr *ngFor=\\\"let pet of pets\\\" class=\\\"row\\\" id=\\\"pet-{{pet.id}}\\\">\\r\\n <td class=\\\"col-sm-4 name\\\">{{pet.name}}</td>\\r\\n <td class=\\\"col-sm-5 surname\\\">{{pet.kind}}</td>\\r\\n <td class=\\\"col-sm-3\\\">\\r\\n <button class=\\\"btn btn-primary edit\\\" (click)=\\\"onEdit(pet)\\\">Edit</button>\\r\\n <button class=\\\"btn btn-warning delete\\\" (click)=\\\"onDelete(pet)\\\">Delete</button>\\r\\n </td>\\r\\n </tr>\\r\\n </tbody>\\r\\n</table>\\r\\n\\r\\n\\r\\n\"","export default \"<!--\\r\\n<h1 class=\\\"display-5 mt-3 mb-3\\\">Personas</h1>\\r\\n<app-people-form [person]=\\\"activePerson\\\" (clean)=\\\"onCleanForm()\\\" (modify)=\\\"onModifyForm($event)\\\"></app-people-form>\\r\\n<app-people-list [people]=\\\"people\\\" (edit)=\\\"onEdit($event)\\\" (delete)=\\\"onDelete($event)\\\"></app-people-list>\\r\\n-->\\r\\n<h1 class=\\\"display-5 mt-3 mb-3\\\">Mascotas</h1>\\r\\n\\r\\n\\r\\n<app-pets-form [pet]=\\\"activePet\\\" [owner]=\\\"id\\\" (clean)=\\\"onCleanForm()\\\" (modify)=\\\"onModifyForm($event)\\\"></app-pets-form>\\r\\n<app-pets-list [pets]=\\\"pets\\\" (delete)=\\\"onDelete($event)\\\" (edit)=\\\"onEdit($event)\\\"></app-pets-list>\\r\\n<button class=\\\"btn btn-primary edit\\\" (click)=\\\"back()\\\">Atrás</button>\"","export default \"\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtZm9ybS9wZXRzLWZvcm0uY29tcG9uZW50LnNjc3MifQ== */\"","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\r\nimport {ActivatedRoute} from '@angular/router';\r\nimport { PetModel } from '../../models/pet.model';\r\n\r\n@Component({\r\n selector: 'app-pets-form',\r\n templateUrl: './pets-form.component.html',\r\n styleUrls: ['./pets-form.component.scss']\r\n})\r\nexport class PetsFormComponent {\r\n public activePet: PetModel;\r\n @Input()\r\n public owner: number;\r\n\r\n @Output()\r\n public readonly clean: EventEmitter<never>;\r\n\r\n @Output()\r\n public readonly modify: EventEmitter<PetModel>;\r\n\r\n public name: string;\r\n public kind: string;\r\n \r\n constructor(\r\n private route: ActivatedRoute\r\n ) { \r\n this.clean = new EventEmitter<never>();\r\n this.modify = new EventEmitter<PetModel>();\r\n }\r\n\r\n @Input()\r\n public set pet(pet: PetModel) {\r\n this.activePet = pet;\r\n this.name = pet.name;\r\n this.kind = pet.kind;\r\n }\r\n\r\n public get pet(): PetModel {\r\n return this.activePet;\r\n }\r\n\r\n public onClean() {\r\n this.clean.emit();\r\n }\r\n\r\n public onModify() {\r\n this.modify.emit({\r\n id: this.pet.id,\r\n name: this.name,\r\n kind: this.kind,\r\n owner: this.owner\r\n });\r\n }\r\n\r\n}\r\n","export default \"\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtbGlzdC9wZXRzLWxpc3QuY29tcG9uZW50LnNjc3MifQ== */\"","import { Component, EventEmitter, OnInit, Input, Output } from '@angular/core';\r\nimport { PetModel} from '../../models/pet.model';\r\n@Component({\r\n selector: 'app-pets-list',\r\n templateUrl: './pets-list.component.html',\r\n styleUrls: ['./pets-list.component.scss']\r\n})\r\nexport class PetsListComponent {\r\n \r\n @Input()\r\n public pets: PetModel[] = [];\r\n\r\n @Output()\r\n public readonly delete: EventEmitter<PetModel>;\r\n\r\n @Output()\r\n public readonly edit: EventEmitter<PetModel>;\r\n\r\n constructor() { \r\n this.delete = new EventEmitter<PetModel>();\r\n this.edit = new EventEmitter<PetModel>();\r\n }\r\n\r\n public onDelete(pet: PetModel) {\r\n this.delete.emit(pet);\r\n }\r\n\r\n public onEdit(pet: PetModel) {\r\n this.edit.emit(pet);\r\n }\r\n\r\n \r\n\r\n}\r\n","export default \"\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21vZHVsZXMvcGV0cy9jb21wb25lbnRzL3BldHMtbWFpbi9wZXRzLW1haW4uY29tcG9uZW50LnNjc3MifQ== */\"","import { Component, OnInit } from '@angular/core';\r\nimport {PetModel} from '../../models/pet.model';\r\nimport {PetsService} from '../../services/pets.service';\r\nimport {map, mergeMap} from 'rxjs/operators';\r\nimport {ActivatedRoute, Router} from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'app-pets-main',\r\n templateUrl: './pets-main.component.html',\r\n styleUrls: ['./pets-main.component.scss']\r\n})\r\nexport class PetsMainComponent implements OnInit {\r\n public id : number\r\n public activePet: PetModel;\r\n public pets: PetModel[];\r\n\r\n constructor(\r\n private readonly petsService: PetsService,\r\n private route: ActivatedRoute,\r\n private readonly router: Router\r\n ) { \r\n this.pets = [];\r\n this.clearActivePet()\r\n }\r\n\r\n ngOnInit() {\r\n this.id = this.route.snapshot.params.person;\r\n this.petsService.list(this.id)\r\n .subscribe(pets => this.pets = pets);\r\n \r\n }\r\n\r\n public onCleanForm(): void {\r\n this.clearActivePet();\r\n }\r\n\r\n public clearActivePet():void{\r\n this.activePet = { id: undefined, name: '', kind: '', owner: undefined };\r\n }\r\n\r\n public back(){\r\n this.router.navigate(['/']);\r\n }\r\n\r\n public onDelete(pet: PetModel): void {\r\n if (confirm(`¿Estás seguro de que deseas eliminar a ${pet.name}?`)) {\r\n this.petsService.delete(pet)\r\n .pipe(\r\n mergeMap(() => this.petsService.list(pet.owner))\r\n )\r\n .subscribe(pets => this.pets = pets);\r\n }\r\n }\r\n\r\n public onEdit(pet: PetModel): void {\r\n this.activePet = pet;\r\n console.log(\"Noe\")\r\n console.log(this.activePet)\r\n }\r\n\r\n public onModifyForm(pet: PetModel): void {\r\n if (pet.id === undefined) {\r\n this.petsService.create(pet)\r\n .pipe(\r\n mergeMap(() => this.petsService.list(pet.owner))\r\n )\r\n .subscribe(pets => {\r\n this.pets = pets;\r\n this.clearActivePet();\r\n });\r\n } else {\r\n this.petsService.modify(pet)\r\n .pipe(\r\n mergeMap(() => this.petsService.list(pet.owner))\r\n )\r\n .subscribe(pets => {\r\n this.pets = pets;\r\n this.clearActivePet();\r\n });\r\n }\r\n }\r\n\r\n}\r\n","export class PetModel {\r\n id?: number;\r\n name: string;\r\n kind: string;\r\n owner:number;\r\n }\r\n ","import {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {PetsMainComponent} from './components/pets-main/pets-main.component';\n\nconst routes: Routes = [\n {\n path: '',\n component: PetsMainComponent\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule]\n})\nexport class PetsRoutingModule { }\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {PetsRoutingModule} from './pets-routing.module';\nimport {PetsListComponent} from './components/pets-list/pets-list.component';\nimport {PetsFormComponent} from './components/pets-form/pets-form.component';\nimport {PetsMainComponent} from './components/pets-main/pets-main.component';\nimport {FormsModule} from '@angular/forms';\n\n@NgModule({\n declarations: [\n PetsFormComponent,\n PetsListComponent,\n PetsMainComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n PetsRoutingModule\n ]\n})\nexport class PetsModule { }\n","import { Injectable } from '@angular/core';\r\nimport {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';\r\nimport {environment} from '../../../../environments/environment';\r\nimport {Observable} from 'rxjs';\r\nimport {PetModel} from '../models/pet.model';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class PetsService {\r\n\r\n constructor(private readonly http: HttpClient) { }\r\n\r\n\r\n\r\n public list(id: number): Observable<PetModel[]>{\r\n return this.http.get<PetModel[]>(`${environment.restApi}/pets?owner=${id}`);\r\n }\r\n\r\n public delete(pet: PetModel): Observable<number> {\r\n return this.http.delete<number>(`${environment.restApi}/pets/${pet.id}`);\r\n }\r\n\r\n public modify(pet: PetModel): Observable<PetModel> {\r\n const data = new HttpParams()\r\n .set('name', pet.name)\r\n .set('kind', pet.kind)\r\n .set('owner', pet.owner.toString());\r\n\r\n return this.http.put<PetModel>(`${environment.restApi}/pets/${pet.id}`, data);\r\n }\r\n\r\n public create(pet: PetModel): Observable<PetModel> {\r\n const data = new HttpParams()\r\n .set('name', pet.name)\r\n .set('kind', pet.kind)\r\n .set('owner', pet.owner.toString());\r\n\r\n return this.http.post<PetModel>(`${environment.restApi}/pets`, data);\r\n }\r\n}\r\n"],"sourceRoot":"webpack:///","file":"modules-pets-pets-module-es5.js"}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0, resolves = [];
/******/ for(;i < chunkIds.length; i++) {
/******/ chunkId = chunkIds[i];
/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ resolves.push(installedChunks[chunkId][0]);
/******/ }
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ for(moduleId in moreModules) {
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
/******/ modules[moduleId] = moreModules[moduleId];
/******/ }
/******/ }
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
/******/
/******/ while(resolves.length) {
/******/ resolves.shift()();
/******/ }
/******/
/******/ // add entry modules from loaded chunk to deferred list
/******/ deferredModules.push.apply(deferredModules, executeModules || []);
/******/
/******/ // run deferred modules when all chunks ready
/******/ return checkDeferredModules();
/******/ };
/******/ function checkDeferredModules() {
/******/ var result;
/******/ for(var i = 0; i < deferredModules.length; i++) {
/******/ var deferredModule = deferredModules[i];
/******/ var fulfilled = true;
/******/ for(var j = 1; j < deferredModule.length; j++) {
/******/ var depId = deferredModule[j];
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
/******/ }
/******/ if(fulfilled) {
/******/ deferredModules.splice(i--, 1);
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
/******/ }
/******/ }
/******/
/******/ return result;
/******/ }
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ // Promise = chunk loading, 0 = chunk loaded
/******/ var installedChunks = {
/******/ "runtime": 0
/******/ };
/******/
/******/ var deferredModules = [];
/******/
/******/ // script path function
/******/ function jsonpScriptSrc(chunkId) {
/******/ return __webpack_require__.p + "" + ({"modules-people-people-module":"modules-people-people-module","modules-pets-pets-module":"modules-pets-pets-module"}[chunkId]||chunkId) + "-es2015.js"
/******/ }
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ var promises = [];
/******/
/******/
/******/ // JSONP chunk loading for javascript
/******/
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunkData) {
/******/ promises.push(installedChunkData[2]);
/******/ } else {
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ promises.push(installedChunkData[2] = promise);
/******/
/******/ // start chunk loading
/******/ var script = document.createElement('script');
/******/ var onScriptComplete;
/******/
/******/ script.charset = 'utf-8';
/******/ script.timeout = 120;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = jsonpScriptSrc(chunkId);
/******/
/******/ // create error before stack unwound to get useful stacktrace later
/******/ var error = new Error();
/******/ onScriptComplete = function (event) {
/******/ // avoid mem leaks in IE.
/******/ script.onerror = script.onload = null;
/******/ clearTimeout(timeout);
/******/ var chunk = installedChunks[chunkId];
/******/ if(chunk !== 0) {
/******/ if(chunk) {
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
/******/ var realSrc = event && event.target && event.target.src;
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
/******/ error.name = 'ChunkLoadError';
/******/ error.type = errorType;
/******/ error.request = realSrc;
/******/ chunk[1](error);
/******/ }
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ var timeout = setTimeout(function(){
/******/ onScriptComplete({ type: 'timeout', target: script });
/******/ }, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
/******/ document.head.appendChild(script);
/******/ }
/******/ }
/******/ return Promise.all(promises);
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // on error function for async loading
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
/******/ jsonpArray.push = webpackJsonpCallback;
/******/ jsonpArray = jsonpArray.slice();
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
/******/ var parentJsonpFunction = oldJsonpFunction;
/******/
/******/
/******/ // run deferred modules from other chunks
/******/ checkDeferredModules();
/******/ })
/************************************************************************/
/******/ ([]);
//# sourceMappingURL=runtime-es2015.js.map
\ No newline at end of file
{"version":3,"sources":["webpack/bootstrap"],"names":[],"mappings":";QAAA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA,QAAQ,oBAAoB;QAC5B;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA,iBAAiB,4BAA4B;QAC7C;QACA;QACA,kBAAkB,2BAA2B;QAC7C;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;;QAEA;;QAEA;QACA;QACA,yCAAyC,oHAAoH;QAC7J;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;QAEA;QACA;QACA;QACA;;;QAGA;;QAEA;QACA,iCAAiC;;QAEjC;QACA;QACA;QACA,KAAK;QACL;QACA;QACA;QACA,MAAM;QACN;;QAEA;QACA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,wBAAwB,kCAAkC;QAC1D,MAAM;QACN;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA,0CAA0C,oBAAoB,WAAW;;QAEzE;QACA;QACA;QACA;QACA,gBAAgB,uBAAuB;QACvC;;;QAGA;QACA","file":"runtime-es2015.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"runtime\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"\" + ({\"modules-people-people-module\":\"modules-people-people-module\",\"modules-pets-pets-module\":\"modules-pets-pets-module\"}[chunkId]||chunkId) + \"-es2015.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":"webpack:///"}
\ No newline at end of file
/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0, resolves = [];
/******/ for(;i < chunkIds.length; i++) {
/******/ chunkId = chunkIds[i];
/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
/******/ resolves.push(installedChunks[chunkId][0]);
/******/ }
/******/ installedChunks[chunkId] = 0;
/******/ }
/******/ for(moduleId in moreModules) {
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
/******/ modules[moduleId] = moreModules[moduleId];
/******/ }
/******/ }
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
/******/
/******/ while(resolves.length) {
/******/ resolves.shift()();
/******/ }
/******/
/******/ // add entry modules from loaded chunk to deferred list
/******/ deferredModules.push.apply(deferredModules, executeModules || []);
/******/
/******/ // run deferred modules when all chunks ready
/******/ return checkDeferredModules();
/******/ };
/******/ function checkDeferredModules() {
/******/ var result;
/******/ for(var i = 0; i < deferredModules.length; i++) {
/******/ var deferredModule = deferredModules[i];
/******/ var fulfilled = true;
/******/ for(var j = 1; j < deferredModule.length; j++) {
/******/ var depId = deferredModule[j];
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
/******/ }
/******/ if(fulfilled) {
/******/ deferredModules.splice(i--, 1);
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
/******/ }
/******/ }
/******/
/******/ return result;
/******/ }
/******/
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // object to store loaded and loading chunks
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
/******/ // Promise = chunk loading, 0 = chunk loaded
/******/ var installedChunks = {
/******/ "runtime": 0
/******/ };
/******/
/******/ var deferredModules = [];
/******/
/******/ // script path function
/******/ function jsonpScriptSrc(chunkId) {
/******/ return __webpack_require__.p + "" + ({"modules-people-people-module":"modules-people-people-module","modules-pets-pets-module":"modules-pets-pets-module"}[chunkId]||chunkId) + "-es5.js"
/******/ }
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/ // This file contains only the entry chunk.
/******/ // The chunk loading function for additional chunks
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
/******/ var promises = [];
/******/
/******/
/******/ // JSONP chunk loading for javascript
/******/
/******/ var installedChunkData = installedChunks[chunkId];
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
/******/
/******/ // a Promise means "currently loading".
/******/ if(installedChunkData) {
/******/ promises.push(installedChunkData[2]);
/******/ } else {
/******/ // setup Promise in chunk cache
/******/ var promise = new Promise(function(resolve, reject) {
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
/******/ });
/******/ promises.push(installedChunkData[2] = promise);
/******/
/******/ // start chunk loading
/******/ var script = document.createElement('script');
/******/ var onScriptComplete;
/******/
/******/ script.charset = 'utf-8';
/******/ script.timeout = 120;
/******/ if (__webpack_require__.nc) {
/******/ script.setAttribute("nonce", __webpack_require__.nc);
/******/ }
/******/ script.src = jsonpScriptSrc(chunkId);
/******/
/******/ // create error before stack unwound to get useful stacktrace later
/******/ var error = new Error();
/******/ onScriptComplete = function (event) {
/******/ // avoid mem leaks in IE.
/******/ script.onerror = script.onload = null;
/******/ clearTimeout(timeout);
/******/ var chunk = installedChunks[chunkId];
/******/ if(chunk !== 0) {
/******/ if(chunk) {
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
/******/ var realSrc = event && event.target && event.target.src;
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
/******/ error.name = 'ChunkLoadError';
/******/ error.type = errorType;
/******/ error.request = realSrc;
/******/ chunk[1](error);
/******/ }
/******/ installedChunks[chunkId] = undefined;
/******/ }
/******/ };
/******/ var timeout = setTimeout(function(){
/******/ onScriptComplete({ type: 'timeout', target: script });
/******/ }, 120000);
/******/ script.onerror = script.onload = onScriptComplete;
/******/ document.head.appendChild(script);
/******/ }
/******/ }
/******/ return Promise.all(promises);
/******/ };
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // on error function for async loading
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
/******/
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
/******/ jsonpArray.push = webpackJsonpCallback;
/******/ jsonpArray = jsonpArray.slice();
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
/******/ var parentJsonpFunction = oldJsonpFunction;
/******/
/******/
/******/ // run deferred modules from other chunks
/******/ checkDeferredModules();
/******/ })
/************************************************************************/
/******/ ([]);
//# sourceMappingURL=runtime-es5.js.map
\ No newline at end of file
{"version":3,"sources":["webpack/bootstrap"],"names":[],"mappings":";QAAA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA,QAAQ,oBAAoB;QAC5B;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA,iBAAiB,4BAA4B;QAC7C;QACA;QACA,kBAAkB,2BAA2B;QAC7C;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;;QAEA;;QAEA;QACA;QACA,yCAAyC,oHAAoH;QAC7J;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;QAEA;QACA;QACA;QACA;;;QAGA;;QAEA;QACA,iCAAiC;;QAEjC;QACA;QACA;QACA,KAAK;QACL;QACA;QACA;QACA,MAAM;QACN;;QAEA;QACA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,wBAAwB,kCAAkC;QAC1D,MAAM;QACN;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA,0CAA0C,oBAAoB,WAAW;;QAEzE;QACA;QACA;QACA;QACA,gBAAgB,uBAAuB;QACvC;;;QAGA;QACA","file":"runtime-es5.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"runtime\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"\" + ({\"modules-people-people-module\":\"modules-people-people-module\",\"modules-pets-pets-module\":\"modules-pets-pets-module\"}[chunkId]||chunkId) + \"-es2015.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":"webpack:///"}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{"version":3,"sources":["node_modules/bootstrap/dist/css/bootstrap.css","src/styles.scss","webpack:///node_modules/bootstrap/dist/css/bootstrap.css?4290","node_modules/style-loader/dist/runtime/injectStylesIntoStyle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AAEA,YAAA,OAAA,EAAA;AACA,cAAA,SAAA,GAAA,YAAA,CAAA,OAAA,EAAA,OAAA,CAAA;AACA,UAAA,cAAA,CAAA,SAAA,EAAA,OAAA,CAAA;AACA;;AAEA,aAAA,IAAA,EAAA,GAAA,CAAA,EAAoB,EAAA,GAAA,SAAA,CAAA,MAApB,EAA2C,EAAA,EAA3C,EAA2C;AAC3C,cAAA,SAAA,GAAA,SAAA,CAAA,EAAA,CAAA;;AAEA,cAAA,SAAA,CAAA,IAAA,KAAA,CAAA,EAAA;AACA,iBAAA,IAAA,CAAA,GAAA,CAAA,EAAuB,CAAA,GAAA,SAAA,CAAA,KAAA,CAAA,MAAvB,EAAmD,CAAA,EAAnD,EAAmD;AACnD,cAAA,SAAA,CAAA,KAAA,CAAA,CAAA;AACA;;AAEA,mBAAA,WAAA,CAAA,SAAA,CAAA,EAAA,CAAA;AACA;AACA;AACA,OA7BA;AA8BA,KAzCA;;;;;;;;;;;;;;;AChPA,QAAA,OAAA,GAAc,mBAAO;AAAC;AAAA,0MAAD,CAArB;;AAEA,QAAA,OAAA,OAAA,KAAA,QAAA,EAAA;AACA,MAAA,OAAA,GAAA,CAAA,CAAc,MAAA,CAAA,CAAd,EAAuB,OAAvB,EAAuB,EAAvB,CAAA,CAAA;AACA;;AAEA,QAAA,OAAA,GAAA,EAAA;AAEA,IAAA,OAAA,CAAA,MAAA,GAAA,MAAA;AACA,IAAA,OAAA,CAAA,SAAA,GAAA,KAAA;;AAEA,QAAA,MAAA,GAAa,mBAAO;AAAC;AAAA,0EAAD,CAAP,CAAgF,OAAhF,EAAgF,OAAhF,CAAb;;AAEA,QAAA,OAAA,CAAA,MAAA,EAAA;AACA,MAAA,MAAA,CAAA,OAAA,GAAA,OAAA,CAAA,MAAA;AACA","file":"styles-es5.js","sourceRoot":"webpack:///"}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
es\uvigo\esei\daa\rest\PeopleResource.class es\uvigo\esei\daa\rest\PeopleResource.class
es\uvigo\esei\daa\dao\PeopleDAO.class es\uvigo\esei\daa\dao\PeopleDAO.class
es\uvigo\esei\daa\rest\PetsResource.class
es\uvigo\esei\daa\dao\PetsDAO.class
es\uvigo\esei\daa\entities\Pet.class
es\uvigo\esei\daa\entities\User.class es\uvigo\esei\daa\entities\User.class
es\uvigo\esei\daa\dao\UsersDAO.class es\uvigo\esei\daa\dao\UsersDAO.class
es\uvigo\esei\daa\dao\DAOException.class es\uvigo\esei\daa\dao\DAOException.class
es\uvigo\esei\daa\DAAExampleApplication.class
es\uvigo\esei\daa\dao\DAO.class es\uvigo\esei\daa\dao\DAO.class
es\uvigo\esei\daa\entities\Person.class es\uvigo\esei\daa\entities\Person.class
es\uvigo\esei\daa\rest\UsersResource.class es\uvigo\esei\daa\rest\UsersResource.class
es\uvigo\esei\daa\listeners\DbManagementTestExecutionListener.class es\uvigo\esei\daa\listeners\DbManagementTestExecutionListener.class
es\uvigo\esei\daa\filters\AuthorizationFilter.class
es\uvigo\esei\daa\listeners\DbManagementAction.class es\uvigo\esei\daa\listeners\DbManagementAction.class
es\uvigo\esei\daa\filters\AuthorizationFilter$UserSecurityContext.class es\uvigo\esei\daa\filters\AuthorizationFilter$UserSecurityContext.class
es\uvigo\esei\daa\listeners\ApplicationContextBindings.class es\uvigo\esei\daa\listeners\ApplicationContextBindings.class
es\uvigo\esei\daa\suites\AcceptanceTestSuite.class
es\uvigo\esei\daa\util\DatabaseQueryUnitTest.class es\uvigo\esei\daa\util\DatabaseQueryUnitTest.class
es\uvigo\esei\daa\listeners\DbManagement.class
es\uvigo\esei\daa\web\pages\MainPage$PersonForm.class es\uvigo\esei\daa\web\pages\MainPage$PersonForm.class
es\uvigo\esei\daa\web\pages\MainPage$PeopleTable.class es\uvigo\esei\daa\rest\PetsResourceUnitTest.class
es\uvigo\esei\daa\entities\PetUnitTest.class es\uvigo\esei\daa\dao\PetsDAOUnitTest.class
es\uvigo\esei\daa\rest\PetsResourceTest.class
es\uvigo\esei\daa\dao\PeopleDAOUnitTest.class es\uvigo\esei\daa\dao\PeopleDAOUnitTest.class
es\uvigo\esei\daa\listeners\DbManagementTestExecutionListener$1.class
es\uvigo\esei\daa\matchers\IsEqualToPerson.class
es\uvigo\esei\daa\dataset\PeopleDataset.class es\uvigo\esei\daa\dataset\PeopleDataset.class
es\uvigo\esei\daa\rest\PeopleResourceUnitTest.class es\uvigo\esei\daa\rest\PeopleResourceUnitTest.class
es\uvigo\esei\daa\util\ContextUtils.class es\uvigo\esei\daa\util\ContextUtils.class
...@@ -19,15 +15,30 @@ es\uvigo\esei\daa\entities\PersonUnitTest.class ...@@ -19,15 +15,30 @@ es\uvigo\esei\daa\entities\PersonUnitTest.class
es\uvigo\esei\daa\matchers\HasHttpStatus.class es\uvigo\esei\daa\matchers\HasHttpStatus.class
es\uvigo\esei\daa\listeners\ApplicationContextJndiBindingTestExecutionListener.class es\uvigo\esei\daa\listeners\ApplicationContextJndiBindingTestExecutionListener.class
es\uvigo\esei\daa\listeners\ApplicationContextBinding$None.class es\uvigo\esei\daa\listeners\ApplicationContextBinding$None.class
es\uvigo\esei\daa\filters\AuthorizationFilter$1.class
es\uvigo\esei\daa\filters\AuthorizationFilter$UserSecurityContext$1.class es\uvigo\esei\daa\filters\AuthorizationFilter$UserSecurityContext$1.class
es\uvigo\esei\daa\listeners\ApplicationContextBinding.class
es\uvigo\esei\daa\matchers\IsEqualToUser.class es\uvigo\esei\daa\matchers\IsEqualToUser.class
es\uvigo\esei\daa\web\pages\MainPage.class
es\uvigo\esei\daa\dao\PeopleDAOTest.class es\uvigo\esei\daa\dao\PeopleDAOTest.class
es\uvigo\esei\daa\util\JSWaiter.class es\uvigo\esei\daa\rest\UsersResourceTest.class
es\uvigo\esei\daa\matchers\IsEqualToEntity.class es\uvigo\esei\daa\matchers\IsEqualToEntity.class
es\uvigo\esei\daa\web\PeopleWebTest.class
es\uvigo\esei\daa\dataset\UsersDataset.class es\uvigo\esei\daa\dataset\UsersDataset.class
es\uvigo\esei\daa\dao\PetsDAOTest.class
es\uvigo\esei\daa\rest\PeopleResourceTest.class
es\uvigo\esei\daa\filters\AuthorizationFilter.class
es\uvigo\esei\daa\dataset\PetsDataset.class
es\uvigo\esei\daa\suites\AcceptanceTestSuite.class
es\uvigo\esei\daa\listeners\DbManagement.class
es\uvigo\esei\daa\matchers\IsEqualToPet.class
es\uvigo\esei\daa\suites\IntegrationTestSuite.class
es\uvigo\esei\daa\web\pages\MainPage$PeopleTable.class
es\uvigo\esei\daa\entities\PetUnitTest.class
es\uvigo\esei\daa\listeners\DbManagementTestExecutionListener$1.class
es\uvigo\esei\daa\matchers\IsEqualToPerson.class
es\uvigo\esei\daa\filters\AuthorizationFilter$1.class
es\uvigo\esei\daa\listeners\ApplicationContextBinding.class
es\uvigo\esei\daa\DAAExampleTestApplication.class
es\uvigo\esei\daa\rest\PetsResourceTest$1.class
es\uvigo\esei\daa\web\pages\MainPage.class
es\uvigo\esei\daa\util\JSWaiter.class
es\uvigo\esei\daa\web\PeopleWebTest.class
es\uvigo\esei\daa\rest\PeopleResourceTest$1.class es\uvigo\esei\daa\rest\PeopleResourceTest$1.class
es\uvigo\esei\daa\suites\UnitTestSuite.class es\uvigo\esei\daa\suites\UnitTestSuite.class
...@@ -2,18 +2,23 @@ C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\dao\Peopl ...@@ -2,18 +2,23 @@ C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\dao\Peopl
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\entities\PetUnitTest.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\entities\PetUnitTest.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\rest\UsersResourceTest.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\rest\UsersResourceTest.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\suites\UnitTestSuite.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\suites\UnitTestSuite.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\dataset\PetsDataset.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\entities\PersonUnitTest.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\entities\PersonUnitTest.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\dataset\PeopleDataset.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\dataset\PeopleDataset.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\rest\PetsResourceTest.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\util\DatabaseQueryUnitTest.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\util\DatabaseQueryUnitTest.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\DbManagementAction.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\DbManagementAction.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\matchers\IsEqualToPet.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\ApplicationContextJndiBindingTestExecutionListener.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\ApplicationContextJndiBindingTestExecutionListener.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\ApplicationContextBindings.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\ApplicationContextBindings.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\suites\IntegrationTestSuite.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\suites\IntegrationTestSuite.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\dao\PetsDAOTest.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\matchers\IsEqualToPerson.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\matchers\IsEqualToPerson.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\dao\PeopleDAOUnitTest.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\dao\PeopleDAOUnitTest.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\ApplicationContextBinding.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\ApplicationContextBinding.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\matchers\IsEqualToEntity.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\matchers\IsEqualToEntity.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\util\ContextUtils.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\util\ContextUtils.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\dao\PetsDAOUnitTest.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\DbManagementTestExecutionListener.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\DbManagementTestExecutionListener.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\filters\AuthorizationFilter.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\filters\AuthorizationFilter.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\web\pages\MainPage.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\web\pages\MainPage.java
...@@ -26,4 +31,5 @@ C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\rest\Peop ...@@ -26,4 +31,5 @@ C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\rest\Peop
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\dataset\UsersDataset.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\dataset\UsersDataset.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\DAAExampleTestApplication.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\DAAExampleTestApplication.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\DbManagement.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\listeners\DbManagement.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\rest\PetsResourceUnitTest.java
C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\web\PeopleWebTest.java C:\Users\Noelia\Desktop\DAA\daaexample\src\test\java\es\uvigo\esei\daa\web\PeopleWebTest.java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Generated by Apache Maven Doxia Site Renderer 1.6 at 2020-03-19 --> <!-- Generated by Apache Maven Doxia Site Renderer 1.6 at 2020-03-29 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
@import url("./css/site.css"); @import url("./css/site.css");
</style> </style>
<link rel="stylesheet" href="./css/print.css" type="text/css" media="print" /> <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
<meta name="Date-Revision-yyyymmdd" content="20200319" /> <meta name="Date-Revision-yyyymmdd" content="20200329" />
<meta http-equiv="Content-Language" content="es" /> <meta http-equiv="Content-Language" content="es" />
</head> </head>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<div class="xleft"> <div class="xleft">
<span id="publishDate">Publicado el: 2020-03-19</span> <span id="publishDate">Publicado el: 2020-03-29</span>
&nbsp;| <span id="projectVersion">Versión: 0.2.0-SNAPSHOT</span> &nbsp;| <span id="projectVersion">Versión: 0.2.0-SNAPSHOT</span>
</div> </div>
<div class="xright"> <div class="xright">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment