(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{ /***/ "./$$_lazy_route_resource lazy recursive": /*!******************************************************!*\ !*** ./$$_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 = "./$$_lazy_route_resource lazy recursive"; /***/ }), /***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$": /*!**************************************************!*\ !*** ./node_modules/moment/locale sync ^\.\/.*$ ***! \**************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var map = { "./af": "./node_modules/moment/locale/af.js", "./af.js": "./node_modules/moment/locale/af.js", "./ar": "./node_modules/moment/locale/ar.js", "./ar-dz": "./node_modules/moment/locale/ar-dz.js", "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js", "./ar-kw": "./node_modules/moment/locale/ar-kw.js", "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js", "./ar-ly": "./node_modules/moment/locale/ar-ly.js", "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js", "./ar-ma": "./node_modules/moment/locale/ar-ma.js", "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js", "./ar-ps": "./node_modules/moment/locale/ar-ps.js", "./ar-ps.js": "./node_modules/moment/locale/ar-ps.js", "./ar-sa": "./node_modules/moment/locale/ar-sa.js", "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js", "./ar-tn": "./node_modules/moment/locale/ar-tn.js", "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js", "./ar.js": "./node_modules/moment/locale/ar.js", "./az": "./node_modules/moment/locale/az.js", "./az.js": "./node_modules/moment/locale/az.js", "./be": "./node_modules/moment/locale/be.js", "./be.js": "./node_modules/moment/locale/be.js", "./bg": "./node_modules/moment/locale/bg.js", "./bg.js": "./node_modules/moment/locale/bg.js", "./bm": "./node_modules/moment/locale/bm.js", "./bm.js": "./node_modules/moment/locale/bm.js", "./bn": "./node_modules/moment/locale/bn.js", "./bn-bd": "./node_modules/moment/locale/bn-bd.js", "./bn-bd.js": "./node_modules/moment/locale/bn-bd.js", "./bn.js": "./node_modules/moment/locale/bn.js", "./bo": "./node_modules/moment/locale/bo.js", "./bo.js": "./node_modules/moment/locale/bo.js", "./br": "./node_modules/moment/locale/br.js", "./br.js": "./node_modules/moment/locale/br.js", "./bs": "./node_modules/moment/locale/bs.js", "./bs.js": "./node_modules/moment/locale/bs.js", "./ca": "./node_modules/moment/locale/ca.js", "./ca.js": "./node_modules/moment/locale/ca.js", "./cs": "./node_modules/moment/locale/cs.js", "./cs.js": "./node_modules/moment/locale/cs.js", "./cv": "./node_modules/moment/locale/cv.js", "./cv.js": "./node_modules/moment/locale/cv.js", "./cy": "./node_modules/moment/locale/cy.js", "./cy.js": "./node_modules/moment/locale/cy.js", "./da": "./node_modules/moment/locale/da.js", "./da.js": "./node_modules/moment/locale/da.js", "./de": "./node_modules/moment/locale/de.js", "./de-at": "./node_modules/moment/locale/de-at.js", "./de-at.js": "./node_modules/moment/locale/de-at.js", "./de-ch": "./node_modules/moment/locale/de-ch.js", "./de-ch.js": "./node_modules/moment/locale/de-ch.js", "./de.js": "./node_modules/moment/locale/de.js", "./dv": "./node_modules/moment/locale/dv.js", "./dv.js": "./node_modules/moment/locale/dv.js", "./el": "./node_modules/moment/locale/el.js", "./el.js": "./node_modules/moment/locale/el.js", "./en-au": "./node_modules/moment/locale/en-au.js", "./en-au.js": "./node_modules/moment/locale/en-au.js", "./en-ca": "./node_modules/moment/locale/en-ca.js", "./en-ca.js": "./node_modules/moment/locale/en-ca.js", "./en-gb": "./node_modules/moment/locale/en-gb.js", "./en-gb.js": "./node_modules/moment/locale/en-gb.js", "./en-ie": "./node_modules/moment/locale/en-ie.js", "./en-ie.js": "./node_modules/moment/locale/en-ie.js", "./en-il": "./node_modules/moment/locale/en-il.js", "./en-il.js": "./node_modules/moment/locale/en-il.js", "./en-in": "./node_modules/moment/locale/en-in.js", "./en-in.js": "./node_modules/moment/locale/en-in.js", "./en-nz": "./node_modules/moment/locale/en-nz.js", "./en-nz.js": "./node_modules/moment/locale/en-nz.js", "./en-sg": "./node_modules/moment/locale/en-sg.js", "./en-sg.js": "./node_modules/moment/locale/en-sg.js", "./eo": "./node_modules/moment/locale/eo.js", "./eo.js": "./node_modules/moment/locale/eo.js", "./es": "./node_modules/moment/locale/es.js", "./es-do": "./node_modules/moment/locale/es-do.js", "./es-do.js": "./node_modules/moment/locale/es-do.js", "./es-mx": "./node_modules/moment/locale/es-mx.js", "./es-mx.js": "./node_modules/moment/locale/es-mx.js", "./es-us": "./node_modules/moment/locale/es-us.js", "./es-us.js": "./node_modules/moment/locale/es-us.js", "./es.js": "./node_modules/moment/locale/es.js", "./et": "./node_modules/moment/locale/et.js", "./et.js": "./node_modules/moment/locale/et.js", "./eu": "./node_modules/moment/locale/eu.js", "./eu.js": "./node_modules/moment/locale/eu.js", "./fa": "./node_modules/moment/locale/fa.js", "./fa.js": "./node_modules/moment/locale/fa.js", "./fi": "./node_modules/moment/locale/fi.js", "./fi.js": "./node_modules/moment/locale/fi.js", "./fil": "./node_modules/moment/locale/fil.js", "./fil.js": "./node_modules/moment/locale/fil.js", "./fo": "./node_modules/moment/locale/fo.js", "./fo.js": "./node_modules/moment/locale/fo.js", "./fr": "./node_modules/moment/locale/fr.js", "./fr-ca": "./node_modules/moment/locale/fr-ca.js", "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js", "./fr-ch": "./node_modules/moment/locale/fr-ch.js", "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js", "./fr.js": "./node_modules/moment/locale/fr.js", "./fy": "./node_modules/moment/locale/fy.js", "./fy.js": "./node_modules/moment/locale/fy.js", "./ga": "./node_modules/moment/locale/ga.js", "./ga.js": "./node_modules/moment/locale/ga.js", "./gd": "./node_modules/moment/locale/gd.js", "./gd.js": "./node_modules/moment/locale/gd.js", "./gl": "./node_modules/moment/locale/gl.js", "./gl.js": "./node_modules/moment/locale/gl.js", "./gom-deva": "./node_modules/moment/locale/gom-deva.js", "./gom-deva.js": "./node_modules/moment/locale/gom-deva.js", "./gom-latn": "./node_modules/moment/locale/gom-latn.js", "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js", "./gu": "./node_modules/moment/locale/gu.js", "./gu.js": "./node_modules/moment/locale/gu.js", "./he": "./node_modules/moment/locale/he.js", "./he.js": "./node_modules/moment/locale/he.js", "./hi": "./node_modules/moment/locale/hi.js", "./hi.js": "./node_modules/moment/locale/hi.js", "./hr": "./node_modules/moment/locale/hr.js", "./hr.js": "./node_modules/moment/locale/hr.js", "./hu": "./node_modules/moment/locale/hu.js", "./hu.js": "./node_modules/moment/locale/hu.js", "./hy-am": "./node_modules/moment/locale/hy-am.js", "./hy-am.js": "./node_modules/moment/locale/hy-am.js", "./id": "./node_modules/moment/locale/id.js", "./id.js": "./node_modules/moment/locale/id.js", "./is": "./node_modules/moment/locale/is.js", "./is.js": "./node_modules/moment/locale/is.js", "./it": "./node_modules/moment/locale/it.js", "./it-ch": "./node_modules/moment/locale/it-ch.js", "./it-ch.js": "./node_modules/moment/locale/it-ch.js", "./it.js": "./node_modules/moment/locale/it.js", "./ja": "./node_modules/moment/locale/ja.js", "./ja.js": "./node_modules/moment/locale/ja.js", "./jv": "./node_modules/moment/locale/jv.js", "./jv.js": "./node_modules/moment/locale/jv.js", "./ka": "./node_modules/moment/locale/ka.js", "./ka.js": "./node_modules/moment/locale/ka.js", "./kk": "./node_modules/moment/locale/kk.js", "./kk.js": "./node_modules/moment/locale/kk.js", "./km": "./node_modules/moment/locale/km.js", "./km.js": "./node_modules/moment/locale/km.js", "./kn": "./node_modules/moment/locale/kn.js", "./kn.js": "./node_modules/moment/locale/kn.js", "./ko": "./node_modules/moment/locale/ko.js", "./ko.js": "./node_modules/moment/locale/ko.js", "./ku": "./node_modules/moment/locale/ku.js", "./ku-kmr": "./node_modules/moment/locale/ku-kmr.js", "./ku-kmr.js": "./node_modules/moment/locale/ku-kmr.js", "./ku.js": "./node_modules/moment/locale/ku.js", "./ky": "./node_modules/moment/locale/ky.js", "./ky.js": "./node_modules/moment/locale/ky.js", "./lb": "./node_modules/moment/locale/lb.js", "./lb.js": "./node_modules/moment/locale/lb.js", "./lo": "./node_modules/moment/locale/lo.js", "./lo.js": "./node_modules/moment/locale/lo.js", "./lt": "./node_modules/moment/locale/lt.js", "./lt.js": "./node_modules/moment/locale/lt.js", "./lv": "./node_modules/moment/locale/lv.js", "./lv.js": "./node_modules/moment/locale/lv.js", "./me": "./node_modules/moment/locale/me.js", "./me.js": "./node_modules/moment/locale/me.js", "./mi": "./node_modules/moment/locale/mi.js", "./mi.js": "./node_modules/moment/locale/mi.js", "./mk": "./node_modules/moment/locale/mk.js", "./mk.js": "./node_modules/moment/locale/mk.js", "./ml": "./node_modules/moment/locale/ml.js", "./ml.js": "./node_modules/moment/locale/ml.js", "./mn": "./node_modules/moment/locale/mn.js", "./mn.js": "./node_modules/moment/locale/mn.js", "./mr": "./node_modules/moment/locale/mr.js", "./mr.js": "./node_modules/moment/locale/mr.js", "./ms": "./node_modules/moment/locale/ms.js", "./ms-my": "./node_modules/moment/locale/ms-my.js", "./ms-my.js": "./node_modules/moment/locale/ms-my.js", "./ms.js": "./node_modules/moment/locale/ms.js", "./mt": "./node_modules/moment/locale/mt.js", "./mt.js": "./node_modules/moment/locale/mt.js", "./my": "./node_modules/moment/locale/my.js", "./my.js": "./node_modules/moment/locale/my.js", "./nb": "./node_modules/moment/locale/nb.js", "./nb.js": "./node_modules/moment/locale/nb.js", "./ne": "./node_modules/moment/locale/ne.js", "./ne.js": "./node_modules/moment/locale/ne.js", "./nl": "./node_modules/moment/locale/nl.js", "./nl-be": "./node_modules/moment/locale/nl-be.js", "./nl-be.js": "./node_modules/moment/locale/nl-be.js", "./nl.js": "./node_modules/moment/locale/nl.js", "./nn": "./node_modules/moment/locale/nn.js", "./nn.js": "./node_modules/moment/locale/nn.js", "./oc-lnc": "./node_modules/moment/locale/oc-lnc.js", "./oc-lnc.js": "./node_modules/moment/locale/oc-lnc.js", "./pa-in": "./node_modules/moment/locale/pa-in.js", "./pa-in.js": "./node_modules/moment/locale/pa-in.js", "./pl": "./node_modules/moment/locale/pl.js", "./pl.js": "./node_modules/moment/locale/pl.js", "./pt": "./node_modules/moment/locale/pt.js", "./pt-br": "./node_modules/moment/locale/pt-br.js", "./pt-br.js": "./node_modules/moment/locale/pt-br.js", "./pt.js": "./node_modules/moment/locale/pt.js", "./ro": "./node_modules/moment/locale/ro.js", "./ro.js": "./node_modules/moment/locale/ro.js", "./ru": "./node_modules/moment/locale/ru.js", "./ru.js": "./node_modules/moment/locale/ru.js", "./sd": "./node_modules/moment/locale/sd.js", "./sd.js": "./node_modules/moment/locale/sd.js", "./se": "./node_modules/moment/locale/se.js", "./se.js": "./node_modules/moment/locale/se.js", "./si": "./node_modules/moment/locale/si.js", "./si.js": "./node_modules/moment/locale/si.js", "./sk": "./node_modules/moment/locale/sk.js", "./sk.js": "./node_modules/moment/locale/sk.js", "./sl": "./node_modules/moment/locale/sl.js", "./sl.js": "./node_modules/moment/locale/sl.js", "./sq": "./node_modules/moment/locale/sq.js", "./sq.js": "./node_modules/moment/locale/sq.js", "./sr": "./node_modules/moment/locale/sr.js", "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js", "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js", "./sr.js": "./node_modules/moment/locale/sr.js", "./ss": "./node_modules/moment/locale/ss.js", "./ss.js": "./node_modules/moment/locale/ss.js", "./sv": "./node_modules/moment/locale/sv.js", "./sv.js": "./node_modules/moment/locale/sv.js", "./sw": "./node_modules/moment/locale/sw.js", "./sw.js": "./node_modules/moment/locale/sw.js", "./ta": "./node_modules/moment/locale/ta.js", "./ta.js": "./node_modules/moment/locale/ta.js", "./te": "./node_modules/moment/locale/te.js", "./te.js": "./node_modules/moment/locale/te.js", "./tet": "./node_modules/moment/locale/tet.js", "./tet.js": "./node_modules/moment/locale/tet.js", "./tg": "./node_modules/moment/locale/tg.js", "./tg.js": "./node_modules/moment/locale/tg.js", "./th": "./node_modules/moment/locale/th.js", "./th.js": "./node_modules/moment/locale/th.js", "./tk": "./node_modules/moment/locale/tk.js", "./tk.js": "./node_modules/moment/locale/tk.js", "./tl-ph": "./node_modules/moment/locale/tl-ph.js", "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js", "./tlh": "./node_modules/moment/locale/tlh.js", "./tlh.js": "./node_modules/moment/locale/tlh.js", "./tr": "./node_modules/moment/locale/tr.js", "./tr.js": "./node_modules/moment/locale/tr.js", "./tzl": "./node_modules/moment/locale/tzl.js", "./tzl.js": "./node_modules/moment/locale/tzl.js", "./tzm": "./node_modules/moment/locale/tzm.js", "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js", "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js", "./tzm.js": "./node_modules/moment/locale/tzm.js", "./ug-cn": "./node_modules/moment/locale/ug-cn.js", "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js", "./uk": "./node_modules/moment/locale/uk.js", "./uk.js": "./node_modules/moment/locale/uk.js", "./ur": "./node_modules/moment/locale/ur.js", "./ur.js": "./node_modules/moment/locale/ur.js", "./uz": "./node_modules/moment/locale/uz.js", "./uz-latn": "./node_modules/moment/locale/uz-latn.js", "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js", "./uz.js": "./node_modules/moment/locale/uz.js", "./vi": "./node_modules/moment/locale/vi.js", "./vi.js": "./node_modules/moment/locale/vi.js", "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js", "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js", "./yo": "./node_modules/moment/locale/yo.js", "./yo.js": "./node_modules/moment/locale/yo.js", "./zh-cn": "./node_modules/moment/locale/zh-cn.js", "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js", "./zh-hk": "./node_modules/moment/locale/zh-hk.js", "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js", "./zh-mo": "./node_modules/moment/locale/zh-mo.js", "./zh-mo.js": "./node_modules/moment/locale/zh-mo.js", "./zh-tw": "./node_modules/moment/locale/zh-tw.js", "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js" }; function webpackContext(req) { var id = webpackContextResolve(req); return __webpack_require__(id); } function webpackContextResolve(req) { if(!__webpack_require__.o(map, req)) { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; } return map[req]; } webpackContext.keys = function webpackContextKeys() { return Object.keys(map); }; webpackContext.resolve = webpackContextResolve; module.exports = webpackContext; webpackContext.id = "./node_modules/moment/locale sync 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 _components_login_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/login/reset-password/reset-password.component */ "./src/app/components/login/reset-password/reset-password.component.ts"); /* harmony import */ var _components_login_lost_password_lost_password_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/login/lost-password/lost-password.component */ "./src/app/components/login/lost-password/lost-password.component.ts"); /* harmony import */ var _components_admin_assistance_assistance_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/admin/assistance/assistance.component */ "./src/app/components/admin/assistance/assistance.component.ts"); /* harmony import */ var _components_shared_politique_confidentialite_politique_confidentialite_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/shared/politique-confidentialite/politique-confidentialite.component */ "./src/app/components/shared/politique-confidentialite/politique-confidentialite.component.ts"); /* harmony import */ var _components_shared_mentions_legales_mentions_legales_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/shared/mentions-legales/mentions-legales.component */ "./src/app/components/shared/mentions-legales/mentions-legales.component.ts"); /* harmony import */ var _components_shared_cgu_cgu_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/shared/cgu/cgu.component */ "./src/app/components/shared/cgu/cgu.component.ts"); /* harmony import */ var _components_admin_emailing_emailing_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/admin/emailing/emailing.component */ "./src/app/components/admin/emailing/emailing.component.ts"); /* harmony import */ var _components_admin_statistic_statistic_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/admin/statistic/statistic.component */ "./src/app/components/admin/statistic/statistic.component.ts"); /* harmony import */ var _components_auth_profil_profil_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./components/auth/profil/profil.component */ "./src/app/components/auth/profil/profil.component.ts"); /* harmony import */ var _components_auth_gain_gain_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./components/auth/gain/gain.component */ "./src/app/components/auth/gain/gain.component.ts"); /* harmony import */ var _components_admin_users_users_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/admin/users/users.component */ "./src/app/components/admin/users/users.component.ts"); /* harmony import */ var _components_shared_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/shared/not-found/not-found.component */ "./src/app/components/shared/not-found/not-found.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"); /* harmony import */ var src_app_components_login_login_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/components/login/login.component */ "./src/app/components/login/login.component.ts"); /* harmony import */ var src_app_components_register_register_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/components/register/register.component */ "./src/app/components/register/register.component.ts"); /* harmony import */ var src_app_components_shared_contact_contact_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! src/app/components/shared/contact/contact.component */ "./src/app/components/shared/contact/contact.component.ts"); /* harmony import */ var _components_home_home_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/home/home.component */ "./src/app/components/home/home.component.ts"); /* harmony import */ var _guards_auth_guard__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./guards/auth.guard */ "./src/app/guards/auth.guard.ts"); /* harmony import */ var _components_admin_admin_login_admin_login_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/admin/admin-login/admin-login.component */ "./src/app/components/admin/admin-login/admin-login.component.ts"); /* harmony import */ var _components_auth_tirage_tirage_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/auth/tirage/tirage.component */ "./src/app/components/auth/tirage/tirage.component.ts"); //import { NavbarComponent } from 'src/app/components/shared/navbar/navbar.component'; const routes = [ { path: '', component: _components_home_home_component__WEBPACK_IMPORTED_MODULE_17__["HomeComponent"] }, { path: 'login', component: src_app_components_login_login_component__WEBPACK_IMPORTED_MODULE_14__["LoginComponent"] }, { path: 'login/lost-password', component: _components_login_lost_password_lost_password_component__WEBPACK_IMPORTED_MODULE_1__["LostPasswordComponent"] }, { path: 'login/reset-password/:token', component: _components_login_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_0__["ResetPasswordComponent"] }, { path: 'register', component: src_app_components_register_register_component__WEBPACK_IMPORTED_MODULE_15__["RegisterComponent"] }, { path: 'cgu', component: _components_shared_cgu_cgu_component__WEBPACK_IMPORTED_MODULE_5__["CguComponent"] }, { path: 'mention-legales', component: _components_shared_mentions_legales_mentions_legales_component__WEBPACK_IMPORTED_MODULE_4__["MentionsLegalesComponent"] }, { path: 'politique-de-confidentialite', component: _components_shared_politique_confidentialite_politique_confidentialite_component__WEBPACK_IMPORTED_MODULE_3__["PolitiqueConfidentialiteComponent"] }, { path: 'admin', component: _components_admin_admin_login_admin_login_component__WEBPACK_IMPORTED_MODULE_19__["AdminLoginComponent"] }, { path: 'users', component: _components_admin_users_users_component__WEBPACK_IMPORTED_MODULE_10__["UsersComponent"] }, { path: 'statistique', component: _components_admin_statistic_statistic_component__WEBPACK_IMPORTED_MODULE_7__["StatisticComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_18__["AuthGuard"]], data: { roles: ['admin'] } }, { path: 'emailing', component: _components_admin_emailing_emailing_component__WEBPACK_IMPORTED_MODULE_6__["EmailingComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_18__["AuthGuard"]], data: { roles: ['admin'] } }, { path: 'assistance', component: _components_admin_assistance_assistance_component__WEBPACK_IMPORTED_MODULE_2__["AssistanceComponent"], canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_18__["AuthGuard"]], data: { roles: ['admin'] } }, { path: 'contact', component: src_app_components_shared_contact_contact_component__WEBPACK_IMPORTED_MODULE_16__["ContactComponent"] }, { path: 'home', component: _components_home_home_component__WEBPACK_IMPORTED_MODULE_17__["HomeComponent"] }, { path: 'auth', component: _components_auth_gain_gain_component__WEBPACK_IMPORTED_MODULE_9__["GainComponent"] }, { path: 'tirage', component: _components_auth_tirage_tirage_component__WEBPACK_IMPORTED_MODULE_20__["TirageComponent"] }, { path: 'profil', component: _components_auth_profil_profil_component__WEBPACK_IMPORTED_MODULE_8__["ProfilComponent"] }, { path: '**', component: _components_shared_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_11__["NotFoundComponent"] } ]; class AppRoutingModule { } AppRoutingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineNgModule"]({ type: AppRoutingModule }); AppRoutingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineInjector"]({ factory: function AppRoutingModule_Factory(t) { return new (t || AppRoutingModule)(); }, imports: [[_angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"].forRoot(routes, { initialNavigation: 'enabled' })], _angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"]] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵsetNgModuleScope"](AppRoutingModule, { imports: [_angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"]], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"]] }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵsetClassMetadata"](AppRoutingModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_12__["NgModule"], args: [{ imports: [_angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"].forRoot(routes, { initialNavigation: 'enabled' })], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_13__["RouterModule"]] }] }], null, null); })(); /***/ }), /***/ "./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 _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _components_shared_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/shared/navbar/navbar.component */ "./src/app/components/shared/navbar/navbar.component.ts"); class AppComponent { constructor() { this.title = 'fatboar'; } } AppComponent.ɵfac = function AppComponent_Factory(t) { return new (t || AppComponent)(); }; AppComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AppComponent, selectors: [["app-root"]], decls: 1, vars: 0, template: function AppComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-navbar"); } }, directives: [_components_shared_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_1__["NavbarComponent"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FwcC5jb21wb25lbnQuc2NzcyJ9 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AppComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }] }], null, null); })(); /***/ }), /***/ "./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 _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_common_locales_fr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/locales/fr */ "./node_modules/@angular/common/locales/fr.js"); /* harmony import */ var _angular_common_locales_fr__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_angular_common_locales_fr__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! saturn-datepicker */ "./node_modules/saturn-datepicker/__ivy_ngcc__/fesm2015/saturn-datepicker.js"); /* harmony import */ var _interceptors_jwt_interceptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interceptors/jwt.interceptor */ "./src/app/interceptors/jwt.interceptor.ts"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app-routing.module */ "./src/app/app-routing.module.ts"); /* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts"); /* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/platform-browser/animations */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/animations.js"); /* harmony import */ var _material_material_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./material/material.module */ "./src/app/material/material.module.ts"); /* harmony import */ var _angular_flex_layout__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/flex-layout */ "./node_modules/@angular/flex-layout/__ivy_ngcc__/esm2015/flex-layout.js"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"); /* harmony import */ var ng2_charts__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ng2-charts */ "./node_modules/ng2-charts/__ivy_ngcc__/fesm2015/ng2-charts.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _components_login_login_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/login/login.component */ "./src/app/components/login/login.component.ts"); /* harmony import */ var _components_shared_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/shared/navbar/navbar.component */ "./src/app/components/shared/navbar/navbar.component.ts"); /* harmony import */ var _components_shared_footer_footer_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/shared/footer/footer.component */ "./src/app/components/shared/footer/footer.component.ts"); /* harmony import */ var _components_admin_statistic_statistic_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/admin/statistic/statistic.component */ "./src/app/components/admin/statistic/statistic.component.ts"); /* harmony import */ var _components_shared_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./components/shared/alert-message/alert-message.component */ "./src/app/components/shared/alert-message/alert-message.component.ts"); /* harmony import */ var _components_register_register_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/register/register.component */ "./src/app/components/register/register.component.ts"); /* harmony import */ var _components_shared_contact_contact_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./components/shared/contact/contact.component */ "./src/app/components/shared/contact/contact.component.ts"); /* harmony import */ var _components_shared_contact_map_map_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/shared/contact/map/map.component */ "./src/app/components/shared/contact/map/map.component.ts"); /* harmony import */ var _components_shared_contact_formulaire_formulaire_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/shared/contact/formulaire/formulaire.component */ "./src/app/components/shared/contact/formulaire/formulaire.component.ts"); /* harmony import */ var _components_shared_contact_information_information_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/shared/contact/information/information.component */ "./src/app/components/shared/contact/information/information.component.ts"); /* harmony import */ var _components_admin_users_users_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/admin/users/users.component */ "./src/app/components/admin/users/users.component.ts"); /* harmony import */ var _components_admin_users_users_list_users_list_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/admin/users/users-list/users-list.component */ "./src/app/components/admin/users/users-list/users-list.component.ts"); /* harmony import */ var _components_admin_users_users_details_users_details_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./components/admin/users/users-details/users-details.component */ "./src/app/components/admin/users/users-details/users-details.component.ts"); /* harmony import */ var _components_admin_users_users_edit_users_edit_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./components/admin/users/users-edit/users-edit.component */ "./src/app/components/admin/users/users-edit/users-edit.component.ts"); /* harmony import */ var _components_admin_users_users_delete_users_delete_component__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/admin/users/users-delete/users-delete.component */ "./src/app/components/admin/users/users-delete/users-delete.component.ts"); /* harmony import */ var _components_shared_contact_formulaire_confirm_confirm_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./components/shared/contact/formulaire/confirm/confirm.component */ "./src/app/components/shared/contact/formulaire/confirm/confirm.component.ts"); /* harmony import */ var _components_shared_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./components/shared/not-found/not-found.component */ "./src/app/components/shared/not-found/not-found.component.ts"); /* harmony import */ var _components_home_home_component__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/home/home.component */ "./src/app/components/home/home.component.ts"); /* harmony import */ var _components_auth_gain_gain_component__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./components/auth/gain/gain.component */ "./src/app/components/auth/gain/gain.component.ts"); /* harmony import */ var _components_auth_gain_gain_list_gain_list_component__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./components/auth/gain/gain-list/gain-list.component */ "./src/app/components/auth/gain/gain-list/gain-list.component.ts"); /* harmony import */ var _components_auth_gain_gain_form_gain_form_component__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./components/auth/gain/gain-form/gain-form.component */ "./src/app/components/auth/gain/gain-form/gain-form.component.ts"); /* harmony import */ var _components_shared_mentions_legales_mentions_legales_component__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./components/shared/mentions-legales/mentions-legales.component */ "./src/app/components/shared/mentions-legales/mentions-legales.component.ts"); /* harmony import */ var _components_shared_politique_confidentialite_politique_confidentialite_component__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./components/shared/politique-confidentialite/politique-confidentialite.component */ "./src/app/components/shared/politique-confidentialite/politique-confidentialite.component.ts"); /* harmony import */ var _components_shared_cgu_cgu_component__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./components/shared/cgu/cgu.component */ "./src/app/components/shared/cgu/cgu.component.ts"); /* harmony import */ var _components_admin_users_users_form_users_form_component__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./components/admin/users/users-form/users-form.component */ "./src/app/components/admin/users/users-form/users-form.component.ts"); /* harmony import */ var _components_admin_emailing_emailing_component__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./components/admin/emailing/emailing.component */ "./src/app/components/admin/emailing/emailing.component.ts"); /* harmony import */ var _components_auth_profil_profil_component__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./components/auth/profil/profil.component */ "./src/app/components/auth/profil/profil.component.ts"); /* harmony import */ var _components_admin_emailing_email_form_email_form_component__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./components/admin/emailing/email-form/email-form.component */ "./src/app/components/admin/emailing/email-form/email-form.component.ts"); /* harmony import */ var _components_admin_lots_lots_component__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./components/admin/lots/lots.component */ "./src/app/components/admin/lots/lots.component.ts"); /* harmony import */ var _components_auth_profil_edit_profil_info_connexion_edit_profil_info_connexion_component__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./components/auth/profil/edit-profil-info-connexion/edit-profil-info-connexion.component */ "./src/app/components/auth/profil/edit-profil-info-connexion/edit-profil-info-connexion.component.ts"); /* harmony import */ var _components_auth_profil_edit_profil_info_user_edit_profil_info_user_component__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./components/auth/profil/edit-profil-info-user/edit-profil-info-user.component */ "./src/app/components/auth/profil/edit-profil-info-user/edit-profil-info-user.component.ts"); /* harmony import */ var _components_admin_assistance_assistance_component__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./components/admin/assistance/assistance.component */ "./src/app/components/admin/assistance/assistance.component.ts"); /* harmony import */ var _components_admin_assistance_assistance_list_assistance_list_component__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./components/admin/assistance/assistance-list/assistance-list.component */ "./src/app/components/admin/assistance/assistance-list/assistance-list.component.ts"); /* harmony import */ var _components_admin_users_users_bloque_users_bloque_component__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./components/admin/users/users-bloque/users-bloque.component */ "./src/app/components/admin/users/users-bloque/users-bloque.component.ts"); /* harmony import */ var _components_login_lost_password_lost_password_component__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./components/login/lost-password/lost-password.component */ "./src/app/components/login/lost-password/lost-password.component.ts"); /* harmony import */ var _components_login_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./components/login/reset-password/reset-password.component */ "./src/app/components/login/reset-password/reset-password.component.ts"); /* harmony import */ var _components_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./components/shared/confirm-message/confirm-message.component */ "./src/app/components/shared/confirm-message/confirm-message.component.ts"); /* harmony import */ var _components_admin_assistance_response_contact_response_contact_component__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./components/admin/assistance/response-contact/response-contact.component */ "./src/app/components/admin/assistance/response-contact/response-contact.component.ts"); /* harmony import */ var _components_admin_admin_login_admin_login_component__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./components/admin/admin-login/admin-login.component */ "./src/app/components/admin/admin-login/admin-login.component.ts"); /* harmony import */ var _components_auth_tirage_tirage_component__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./components/auth/tirage/tirage.component */ "./src/app/components/auth/tirage/tirage.component.ts"); //components Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["registerLocaleData"])(_angular_common_locales_fr__WEBPACK_IMPORTED_MODULE_1___default.a, 'fr'); class AppModule { } AppModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({ type: AppModule, bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_7__["AppComponent"]] }); AppModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); }, providers: [ { provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_11__["HTTP_INTERCEPTORS"], useClass: _interceptors_jwt_interceptor__WEBPACK_IMPORTED_MODULE_3__["JwtInterceptor"], multi: true }, // { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }, { provide: _angular_core__WEBPACK_IMPORTED_MODULE_5__["LOCALE_ID"], useValue: 'fr-FR' }, ], imports: [[ _angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__["BrowserModule"].withServerTransition({ appId: 'serverApp' }), _app_routing_module__WEBPACK_IMPORTED_MODULE_6__["AppRoutingModule"], _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__["BrowserAnimationsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_11__["HttpClientModule"], _material_material_module__WEBPACK_IMPORTED_MODULE_9__["MaterialModule"], _angular_flex_layout__WEBPACK_IMPORTED_MODULE_10__["FlexLayoutModule"], ng2_charts__WEBPACK_IMPORTED_MODULE_12__["ChartsModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__["FormsModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__["ReactiveFormsModule"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatDatepickerModule"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatNativeDateModule"], ]] }); (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsetNgModuleScope"](AppModule, { declarations: [_app_component__WEBPACK_IMPORTED_MODULE_7__["AppComponent"], _components_shared_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_15__["NavbarComponent"], _components_shared_footer_footer_component__WEBPACK_IMPORTED_MODULE_16__["FooterComponent"], _components_admin_statistic_statistic_component__WEBPACK_IMPORTED_MODULE_17__["StatisticComponent"], _components_login_login_component__WEBPACK_IMPORTED_MODULE_14__["LoginComponent"], _components_shared_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_18__["AlertMessageComponent"], _components_register_register_component__WEBPACK_IMPORTED_MODULE_19__["RegisterComponent"], _components_shared_contact_contact_component__WEBPACK_IMPORTED_MODULE_20__["ContactComponent"], _components_shared_contact_map_map_component__WEBPACK_IMPORTED_MODULE_21__["MapComponent"], _components_shared_contact_formulaire_formulaire_component__WEBPACK_IMPORTED_MODULE_22__["FormulaireComponent"], _components_shared_contact_information_information_component__WEBPACK_IMPORTED_MODULE_23__["InformationComponent"], _components_admin_users_users_component__WEBPACK_IMPORTED_MODULE_24__["UsersComponent"], _components_admin_users_users_list_users_list_component__WEBPACK_IMPORTED_MODULE_25__["UsersListComponent"], _components_admin_users_users_details_users_details_component__WEBPACK_IMPORTED_MODULE_26__["UsersDetailsComponent"], _components_admin_users_users_edit_users_edit_component__WEBPACK_IMPORTED_MODULE_27__["UsersEditComponent"], _components_admin_users_users_delete_users_delete_component__WEBPACK_IMPORTED_MODULE_28__["UsersDeleteComponent"], _components_shared_contact_formulaire_confirm_confirm_component__WEBPACK_IMPORTED_MODULE_29__["ConfirmComponent"], _components_shared_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_30__["NotFoundComponent"], _components_home_home_component__WEBPACK_IMPORTED_MODULE_31__["HomeComponent"], _components_auth_gain_gain_component__WEBPACK_IMPORTED_MODULE_32__["GainComponent"], _components_auth_gain_gain_list_gain_list_component__WEBPACK_IMPORTED_MODULE_33__["GainListComponent"], _components_auth_gain_gain_form_gain_form_component__WEBPACK_IMPORTED_MODULE_34__["GainFormComponent"], _components_shared_mentions_legales_mentions_legales_component__WEBPACK_IMPORTED_MODULE_35__["MentionsLegalesComponent"], _components_shared_politique_confidentialite_politique_confidentialite_component__WEBPACK_IMPORTED_MODULE_36__["PolitiqueConfidentialiteComponent"], _components_shared_cgu_cgu_component__WEBPACK_IMPORTED_MODULE_37__["CguComponent"], _components_admin_users_users_form_users_form_component__WEBPACK_IMPORTED_MODULE_38__["UsersFormComponent"], _components_admin_emailing_emailing_component__WEBPACK_IMPORTED_MODULE_39__["EmailingComponent"], _components_auth_profil_profil_component__WEBPACK_IMPORTED_MODULE_40__["ProfilComponent"], _components_admin_emailing_email_form_email_form_component__WEBPACK_IMPORTED_MODULE_41__["EmailFormComponent"], _components_admin_lots_lots_component__WEBPACK_IMPORTED_MODULE_42__["LotsComponent"], _components_auth_profil_edit_profil_info_connexion_edit_profil_info_connexion_component__WEBPACK_IMPORTED_MODULE_43__["EditProfilInfoConnexionComponent"], _components_auth_profil_edit_profil_info_user_edit_profil_info_user_component__WEBPACK_IMPORTED_MODULE_44__["EditProfilInfoUserComponent"], _components_admin_assistance_assistance_component__WEBPACK_IMPORTED_MODULE_45__["AssistanceComponent"], _components_admin_assistance_assistance_list_assistance_list_component__WEBPACK_IMPORTED_MODULE_46__["AssistanceListComponent"], _components_admin_assistance_response_contact_response_contact_component__WEBPACK_IMPORTED_MODULE_51__["ResponseContactComponent"], _components_admin_users_users_bloque_users_bloque_component__WEBPACK_IMPORTED_MODULE_47__["UsersBloqueComponent"], _components_login_lost_password_lost_password_component__WEBPACK_IMPORTED_MODULE_48__["LostPasswordComponent"], _components_login_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_49__["ResetPasswordComponent"], _components_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_50__["ConfirmMessageComponent"], _components_admin_admin_login_admin_login_component__WEBPACK_IMPORTED_MODULE_52__["AdminLoginComponent"], _components_auth_tirage_tirage_component__WEBPACK_IMPORTED_MODULE_53__["TirageComponent"]], imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__["BrowserModule"], _app_routing_module__WEBPACK_IMPORTED_MODULE_6__["AppRoutingModule"], _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__["BrowserAnimationsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_11__["HttpClientModule"], _material_material_module__WEBPACK_IMPORTED_MODULE_9__["MaterialModule"], _angular_flex_layout__WEBPACK_IMPORTED_MODULE_10__["FlexLayoutModule"], ng2_charts__WEBPACK_IMPORTED_MODULE_12__["ChartsModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__["FormsModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__["ReactiveFormsModule"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatDatepickerModule"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatNativeDateModule"]] }); })(); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵsetClassMetadata"](AppModule, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_5__["NgModule"], args: [{ declarations: [ _app_component__WEBPACK_IMPORTED_MODULE_7__["AppComponent"], _components_shared_navbar_navbar_component__WEBPACK_IMPORTED_MODULE_15__["NavbarComponent"], _components_shared_footer_footer_component__WEBPACK_IMPORTED_MODULE_16__["FooterComponent"], _components_admin_statistic_statistic_component__WEBPACK_IMPORTED_MODULE_17__["StatisticComponent"], _components_login_login_component__WEBPACK_IMPORTED_MODULE_14__["LoginComponent"], _components_shared_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_18__["AlertMessageComponent"], _components_register_register_component__WEBPACK_IMPORTED_MODULE_19__["RegisterComponent"], _components_shared_contact_contact_component__WEBPACK_IMPORTED_MODULE_20__["ContactComponent"], _components_shared_contact_map_map_component__WEBPACK_IMPORTED_MODULE_21__["MapComponent"], _components_shared_contact_formulaire_formulaire_component__WEBPACK_IMPORTED_MODULE_22__["FormulaireComponent"], _components_shared_contact_information_information_component__WEBPACK_IMPORTED_MODULE_23__["InformationComponent"], _components_admin_users_users_component__WEBPACK_IMPORTED_MODULE_24__["UsersComponent"], _components_admin_users_users_list_users_list_component__WEBPACK_IMPORTED_MODULE_25__["UsersListComponent"], _components_admin_users_users_details_users_details_component__WEBPACK_IMPORTED_MODULE_26__["UsersDetailsComponent"], _components_admin_users_users_edit_users_edit_component__WEBPACK_IMPORTED_MODULE_27__["UsersEditComponent"], _components_admin_users_users_delete_users_delete_component__WEBPACK_IMPORTED_MODULE_28__["UsersDeleteComponent"], _components_shared_contact_formulaire_confirm_confirm_component__WEBPACK_IMPORTED_MODULE_29__["ConfirmComponent"], _components_shared_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_30__["NotFoundComponent"], _components_home_home_component__WEBPACK_IMPORTED_MODULE_31__["HomeComponent"], _components_auth_gain_gain_component__WEBPACK_IMPORTED_MODULE_32__["GainComponent"], _components_auth_gain_gain_list_gain_list_component__WEBPACK_IMPORTED_MODULE_33__["GainListComponent"], _components_auth_gain_gain_form_gain_form_component__WEBPACK_IMPORTED_MODULE_34__["GainFormComponent"], _components_shared_mentions_legales_mentions_legales_component__WEBPACK_IMPORTED_MODULE_35__["MentionsLegalesComponent"], _components_shared_politique_confidentialite_politique_confidentialite_component__WEBPACK_IMPORTED_MODULE_36__["PolitiqueConfidentialiteComponent"], _components_shared_cgu_cgu_component__WEBPACK_IMPORTED_MODULE_37__["CguComponent"], _components_admin_users_users_form_users_form_component__WEBPACK_IMPORTED_MODULE_38__["UsersFormComponent"], _components_admin_emailing_emailing_component__WEBPACK_IMPORTED_MODULE_39__["EmailingComponent"], _components_auth_profil_profil_component__WEBPACK_IMPORTED_MODULE_40__["ProfilComponent"], _components_admin_emailing_email_form_email_form_component__WEBPACK_IMPORTED_MODULE_41__["EmailFormComponent"], _components_admin_lots_lots_component__WEBPACK_IMPORTED_MODULE_42__["LotsComponent"], _components_auth_profil_edit_profil_info_connexion_edit_profil_info_connexion_component__WEBPACK_IMPORTED_MODULE_43__["EditProfilInfoConnexionComponent"], _components_auth_profil_edit_profil_info_user_edit_profil_info_user_component__WEBPACK_IMPORTED_MODULE_44__["EditProfilInfoUserComponent"], _components_admin_assistance_assistance_component__WEBPACK_IMPORTED_MODULE_45__["AssistanceComponent"], _components_admin_assistance_assistance_list_assistance_list_component__WEBPACK_IMPORTED_MODULE_46__["AssistanceListComponent"], _components_admin_assistance_response_contact_response_contact_component__WEBPACK_IMPORTED_MODULE_51__["ResponseContactComponent"], _components_admin_users_users_bloque_users_bloque_component__WEBPACK_IMPORTED_MODULE_47__["UsersBloqueComponent"], _components_login_lost_password_lost_password_component__WEBPACK_IMPORTED_MODULE_48__["LostPasswordComponent"], _components_login_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_49__["ResetPasswordComponent"], _components_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_50__["ConfirmMessageComponent"], _components_admin_admin_login_admin_login_component__WEBPACK_IMPORTED_MODULE_52__["AdminLoginComponent"], _components_auth_tirage_tirage_component__WEBPACK_IMPORTED_MODULE_53__["TirageComponent"], ], imports: [ _angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__["BrowserModule"].withServerTransition({ appId: 'serverApp' }), _app_routing_module__WEBPACK_IMPORTED_MODULE_6__["AppRoutingModule"], _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__["BrowserAnimationsModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_11__["HttpClientModule"], _material_material_module__WEBPACK_IMPORTED_MODULE_9__["MaterialModule"], _angular_flex_layout__WEBPACK_IMPORTED_MODULE_10__["FlexLayoutModule"], ng2_charts__WEBPACK_IMPORTED_MODULE_12__["ChartsModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__["FormsModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_13__["ReactiveFormsModule"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatDatepickerModule"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_2__["SatNativeDateModule"], ], providers: [ { provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_11__["HTTP_INTERCEPTORS"], useClass: _interceptors_jwt_interceptor__WEBPACK_IMPORTED_MODULE_3__["JwtInterceptor"], multi: true }, // { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }, { provide: _angular_core__WEBPACK_IMPORTED_MODULE_5__["LOCALE_ID"], useValue: 'fr-FR' }, ], bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_7__["AppComponent"]] }] }], null, null); })(); /***/ }), /***/ "./src/app/components/admin/admin-login/admin-login.component.ts": /*!***********************************************************************!*\ !*** ./src/app/components/admin/admin-login/admin-login.component.ts ***! \***********************************************************************/ /*! exports provided: AdminLoginComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdminLoginComponent", function() { return AdminLoginComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"); /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js"); /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js"); /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js"); function AdminLoginComponent_mat_progress_bar_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "mat-progress-bar", 13); } } function AdminLoginComponent_mat_error_12_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorEmail(), " "); } } function AdminLoginComponent_mat_error_18_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorPassword(), " "); } } class AdminLoginComponent { constructor(router, snackBar, authService, formBuilder, matIconRegistry, domSanitizer) { this.router = router; this.snackBar = snackBar; this.authService = authService; this.formBuilder = formBuilder; this.matIconRegistry = matIconRegistry; this.domSanitizer = domSanitizer; this.submitted = false; this.loading = false; this.hide = true; } ngOnInit() { this.createForm(); } createForm() { let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; this.formGroup = this.formBuilder.group({ email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(emailregex)]], password: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, this.checkPassword]], }); } checkPassword(control) { let enteredPassword = control.value; let passwordCheck = /^(?=.*[a-z])(?=.{6,})/; return (!passwordCheck.test(enteredPassword) && enteredPassword) ? { 'requirements': true } : null; } getErrorEmail() { return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' : this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : ''; } getErrorPassword() { return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' : this.formGroup.get('password').hasError('requirements') ? 'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule' : ''; } get f() { return this.formGroup.controls; } // login signIn() { this.submitted = true; if (this.formGroup.invalid) { return; } this.loading = true; this.authService.signInAdmin(this.formGroup.value).subscribe(data => { // this.router.navigate([this.returnUrl]); console.log(data); this.loading = false; this.router.navigate(['/tirage']); setTimeout(() => { document.location.reload(); }, 800); }, err => { this.loading = false; console.log(err.error.message); this.authService.openSnackBar(err.error.message); }); // this.router.navigate(['/']); } } AdminLoginComponent.ɵfac = function AdminLoginComponent_Factory(t) { return new (t || AdminLoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__["MatSnackBar"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"])); }; AdminLoginComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AdminLoginComponent, selectors: [["app-admin-login"]], decls: 25, vars: 6, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-11", "col-lg-5", 2, "border-radius", "10px"], ["class", "col-12", "mode", "indeterminate", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "col-10"], ["matInput", "", "placeholder", "Adresse email", "formControlName", "email", "required", ""], [4, "ngIf"], ["matInput", "", "placeholder", "Mot de passe", "formControlName", "password", "required", "", 3, "type"], ["matSuffix", "", 3, "click"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-6", "color-theme"], ["routerLink", "/login/lost-password"], ["mode", "indeterminate", 1, "col-12"]], template: function AdminLoginComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-card", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AdminLoginComponent_mat_progress_bar_3_Template, 1, 0, "mat-progress-bar", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "form", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function AdminLoginComponent_Template_form_ngSubmit_5_listener() { return ctx.signIn(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h1", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "b"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Connexion"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "mat-form-field", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, AdminLoginComponent_mat_error_12_Template, 2, 1, "mat-error", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "mat-form-field", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "input", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "mat-icon", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AdminLoginComponent_Template_mat_icon_click_16_listener() { return ctx.hide = !ctx.hide; }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, AdminLoginComponent_mat_error_18_Template, 2, 1, "mat-error", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Se connecter"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "p", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "a", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Mot de passe oubli\u00E9 ?"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loading); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid && ctx.formGroup.controls["email"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("type", ctx.hide ? "password" : "text"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.hide ? "visibility_off" : "visibility"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid && ctx.formGroup.controls["password"].touched); } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCard"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_10__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIcon"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__["MatSuffix"], _angular_material_button__WEBPACK_IMPORTED_MODULE_11__["MatButton"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterLinkWithHref"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 10em;\n margin-bottom: 3em;\n}\n\n.facebooklogin[_ngcontent-%COMP%] {\n margin-bottom: -0.5em !important;\n}\n\n.googlelogin[_ngcontent-%COMP%] {\n margin-bottom: -0.5em !important;\n}\n\n.marginButton[_ngcontent-%COMP%] {\n margin-bottom: 0em !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9hZG1pbi1sb2dpbi9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhZG1pblxcYWRtaW4tbG9naW5cXGFkbWluLWxvZ2luLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL2FkbWluLWxvZ2luL2FkbWluLWxvZ2luLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksZ0JBQUE7RUFDQSxrQkFBQTtBQ0NKOztBREVFO0VBQ0UsZ0NBQUE7QUNDSjs7QURDRTtFQUNFLGdDQUFBO0FDRUo7O0FEQUU7RUFDRSw2QkFBQTtBQ0dKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9hZG1pbi1sb2dpbi9hZG1pbi1sb2dpbi5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiAxMGVtO1xyXG4gICAgbWFyZ2luLWJvdHRvbTogM2VtO1xyXG4gIH1cclxuIFxyXG4gIC5mYWNlYm9va2xvZ2lue1xyXG4gICAgbWFyZ2luLWJvdHRvbTogLTAuNWVtICFpbXBvcnRhbnQ7XHJcbiAgfVxyXG4gIC5nb29nbGVsb2dpbntcclxuICAgIG1hcmdpbi1ib3R0b206IC0wLjVlbSAhaW1wb3J0YW50O1xyXG4gIH1cclxuICAubWFyZ2luQnV0dG9ue1xyXG4gICAgbWFyZ2luLWJvdHRvbTogMGVtICFpbXBvcnRhbnQ7XHJcbiAgfSIsIi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiAxMGVtO1xuICBtYXJnaW4tYm90dG9tOiAzZW07XG59XG5cbi5mYWNlYm9va2xvZ2luIHtcbiAgbWFyZ2luLWJvdHRvbTogLTAuNWVtICFpbXBvcnRhbnQ7XG59XG5cbi5nb29nbGVsb2dpbiB7XG4gIG1hcmdpbi1ib3R0b206IC0wLjVlbSAhaW1wb3J0YW50O1xufVxuXG4ubWFyZ2luQnV0dG9uIHtcbiAgbWFyZ2luLWJvdHRvbTogMGVtICFpbXBvcnRhbnQ7XG59Il19 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AdminLoginComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-admin-login', templateUrl: './admin-login.component.html', styleUrls: ['./admin-login.component.scss'] }] }], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] }, { type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__["MatSnackBar"] }, { type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/admin/assistance/assistance-list/assistance-list.component.ts": /*!******************************************************************************************!*\ !*** ./src/app/components/admin/assistance/assistance-list/assistance-list.component.ts ***! \******************************************************************************************/ /*! exports provided: AssistanceListComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AssistanceListComponent", function() { return AssistanceListComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/expansion */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/expansion.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); function AssistanceListComponent_div_0_div_11_Template(rf, ctx) { if (rf & 1) { const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssistanceListComponent_div_0_div_11_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r3.responseMessage(item_r1); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "R\u00E9pondre"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssistanceListComponent_div_0_div_11_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.closeMessage(item_r1); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Supprimer"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function AssistanceListComponent_div_0_Template(rf, ctx) { if (rf & 1) { const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-accordion", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-expansion-panel", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("opened", function AssistanceListComponent_div_0_Template_mat_expansion_panel_opened_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.panelOpenState = true; })("closed", function AssistanceListComponent_div_0_Template_mat_expansion_panel_closed_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r10.panelOpenState = false; }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "mat-expansion-panel-header"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "mat-panel-title"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "mat-panel-description"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "p", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, AssistanceListComponent_div_0_div_11_Template, 5, 0, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const item_r1 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r1.email, " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 4, item_r1.created_date, "short"), " "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r1.message); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r1.is_closed === false); } } class AssistanceListComponent { constructor() { this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.close = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.panelOpenState = false; } responseMessage(event) { this.response.emit(event); } closeMessage(event) { this.close.emit(event); } ngOnInit() { } } AssistanceListComponent.ɵfac = function AssistanceListComponent_Factory(t) { return new (t || AssistanceListComponent)(); }; AssistanceListComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AssistanceListComponent, selectors: [["app-assistance-list"]], inputs: { listOpenMessage: "listOpenMessage" }, outputs: { response: "response", close: "close" }, decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"], [1, ""], [1, "mb-3", 3, "opened", "closed"], [1, "text-center", "font-weight-bold"], ["class", "row justify-content-center mt-2", 4, "ngIf"], [1, "row", "justify-content-center", "mt-2"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function AssistanceListComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, AssistanceListComponent_div_0_Template, 12, 7, "div", 0); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.listOpenMessage); } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatAccordion"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanel"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanelHeader"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanelTitle"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanelDescription"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_3__["MatButton"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DatePipe"]], styles: [".mat-form-field[_ngcontent-%COMP%] + .mat-form-field[_ngcontent-%COMP%] {\n margin-left: 8px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9hc3Npc3RhbmNlL2Fzc2lzdGFuY2UtbGlzdC9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhZG1pblxcYXNzaXN0YW5jZVxcYXNzaXN0YW5jZS1saXN0XFxhc3Npc3RhbmNlLWxpc3QuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vYXNzaXN0YW5jZS9hc3Npc3RhbmNlLWxpc3QvYXNzaXN0YW5jZS1saXN0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksZ0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vYXNzaXN0YW5jZS9hc3Npc3RhbmNlLWxpc3QvYXNzaXN0YW5jZS1saXN0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm1hdC1mb3JtLWZpZWxkICsgLm1hdC1mb3JtLWZpZWxkIHtcclxuICAgIG1hcmdpbi1sZWZ0OiA4cHg7XHJcbiAgfSIsIi5tYXQtZm9ybS1maWVsZCArIC5tYXQtZm9ybS1maWVsZCB7XG4gIG1hcmdpbi1sZWZ0OiA4cHg7XG59Il19 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AssistanceListComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-assistance-list', templateUrl: './assistance-list.component.html', styleUrls: ['./assistance-list.component.scss'] }] }], function () { return []; }, { listOpenMessage: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }], response: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }], close: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }] }); })(); /***/ }), /***/ "./src/app/components/admin/assistance/assistance.component.ts": /*!*********************************************************************!*\ !*** ./src/app/components/admin/assistance/assistance.component.ts ***! \*********************************************************************/ /*! exports provided: AssistanceComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AssistanceComponent", function() { return AssistanceComponent; }); /* harmony import */ var _response_contact_response_contact_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./response-contact/response-contact.component */ "./src/app/components/admin/assistance/response-contact/response-contact.component.ts"); /* harmony import */ var _shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../shared/confirm-message/confirm-message.component */ "./src/app/components/shared/confirm-message/confirm-message.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/contact.service */ "./src/app/services/contact.service.ts"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var _assistance_list_assistance_list_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./assistance-list/assistance-list.component */ "./src/app/components/admin/assistance/assistance-list/assistance-list.component.ts"); class AssistanceComponent { constructor(contactService, dialog) { this.contactService = contactService; this.dialog = dialog; } ngOnInit() { this.subscribeToGetOpenMessage(); } //sbscribe statistic subscribeToGetOpenMessage() { this.contactService.getOpenMessage().subscribe((res) => { this.listOpenMessage = res; console.log(JSON.stringify(this.listOpenMessage)); }); } subscribeToGetCloseMessage() { this.contactService.getColseMessage().subscribe((res) => { this.listOpenMessage = res; console.log(JSON.stringify(this.listOpenMessage)); }); } responseMessage($event) { this.openResponseContact($event); console.log($event); } closeMessage($event) { this.openDialog($event); console.log(JSON.stringify($event)); ; } openResponseContact(event) { const dialogRef = this.dialog.open(_response_contact_response_contact_component__WEBPACK_IMPORTED_MODULE_0__["ResponseContactComponent"], { width: '48%', data: event }); dialogRef.afterClosed().subscribe(() => { // this.contactService.closeContact() }); } openDialog(event) { const dialogRef = this.dialog.open(_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_1__["ConfirmMessageComponent"], { width: '38%', data: { response: event } }); dialogRef.afterClosed().subscribe(() => { // this.contactService.closeContact() }); } } AssistanceComponent.ɵfac = function AssistanceComponent_Factory(t) { return new (t || AssistanceComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__["MatDialog"])); }; AssistanceComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: AssistanceComponent, selectors: [["app-assistance"]], decls: 7, vars: 1, consts: [[1, "container", "navtop", "assistance"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "my-2"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "color", "primary", 1, "btn", "ml-2", 3, "click"], [3, "listOpenMessage", "response", "close"]], template: function AssistanceComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "button", 2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AssistanceComponent_Template_button_click_2_listener() { return ctx.subscribeToGetOpenMessage(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Nouveaux Messages"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "button", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AssistanceComponent_Template_button_click_4_listener() { return ctx.subscribeToGetCloseMessage(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Messages ferm\u00E9s"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "app-assistance-list", 4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("response", function AssistanceComponent_Template_app_assistance_list_response_6_listener($event) { return ctx.responseMessage($event); })("close", function AssistanceComponent_Template_app_assistance_list_close_6_listener($event) { return ctx.closeMessage($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("listOpenMessage", ctx.listOpenMessage); } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_5__["MatButton"], _assistance_list_assistance_list_component__WEBPACK_IMPORTED_MODULE_6__["AssistanceListComponent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 14em;\n margin-bottom: 4em;\n min-height: 250px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9hc3Npc3RhbmNlL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGFkbWluXFxhc3Npc3RhbmNlXFxhc3Npc3RhbmNlLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL2Fzc2lzdGFuY2UvYXNzaXN0YW5jZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxpQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9hc3Npc3RhbmNlL2Fzc2lzdGFuY2UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2dG9we1xyXG4gICAgbWFyZ2luLXRvcDogMTRlbTtcclxuICAgIG1hcmdpbi1ib3R0b206IDRlbTtcclxuICAgIG1pbi1oZWlnaHQ6IDI1MHB4O1xyXG4gIH1cclxuIiwiLm5hdnRvcCB7XG4gIG1hcmdpbi10b3A6IDE0ZW07XG4gIG1hcmdpbi1ib3R0b206IDRlbTtcbiAgbWluLWhlaWdodDogMjUwcHg7XG59Il19 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](AssistanceComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"], args: [{ selector: 'app-assistance', templateUrl: './assistance.component.html', styleUrls: ['./assistance.component.scss'] }] }], function () { return [{ type: src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__["MatDialog"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/admin/assistance/response-contact/response-contact.component.ts": /*!********************************************************************************************!*\ !*** ./src/app/components/admin/assistance/response-contact/response-contact.component.ts ***! \********************************************************************************************/ /*! exports provided: ResponseContactComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResponseContactComponent", function() { return ResponseContactComponent; }); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/contact.service */ "./src/app/services/contact.service.ts"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); function ResponseContactComponent_mat_error_12_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r0.getErrorMessage(), " "); } } class ResponseContactComponent { constructor(element, dialogRef, formBuilder, contactService, router) { this.element = element; this.dialogRef = dialogRef; this.formBuilder = formBuilder; this.contactService = contactService; this.router = router; this.submitted = false; } ngOnInit() { this.createForm(); } createForm() { this.formGroup = this.formBuilder.group({ text: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required], }); } sendResponse() { this.submitted = true; if (this.formGroup.invalid) { return; } console.log(this.formGroup.value); this.contactService.responseContact(this.element._id, this.formGroup.value).subscribe(data => { // this.router.navigate([this.returnUrl]); console.log(data); this.router.navigate(['/assistance']); // this.loading = false; // this.router.navigate(['auth']); }, err => { // this.loading = false; // console.log(err.error.message) // this.authService.openSnackBar(err.error.message) }); } getErrorMessage() { return this.formGroup.get('text').hasError('required') ? 'Message requis' : ''; } onConfirm() { // Close the dialog, return true this.dialogRef.close(true); } onNoClick() { this.dialogRef.close(false); } } ResponseContactComponent.ɵfac = function ResponseContactComponent_Factory(t) { return new (t || ResponseContactComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"])); }; ResponseContactComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ResponseContactComponent, selectors: [["app-response-contact"]], decls: 18, vars: 3, consts: [["mat-dialog-title", "", 1, "text-center"], [1, ""], [1, "font-weight-bold"], [3, "formGroup"], ["mat-dialog-content", "", 1, ""], [1, "row"], [1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["appearance", "outline", 1, "col-7", "col-md-5"], ["rows", "7", "matInput", "", "formControlName", "text"], [4, "ngIf"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-2"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function ResponseContactComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h3", 0); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "R\u00E9pondre \u00E0 "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "form", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "p", 6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Message :"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "mat-form-field", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "textarea", 8); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, ResponseContactComponent_mat_error_12_Template, 2, 1, "mat-error", 9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 10); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ResponseContactComponent_Template_button_click_14_listener() { return ctx.sendResponse(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "R\u00E9pondre"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 12); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ResponseContactComponent_Template_button_click_16_listener() { return ctx.onNoClick(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "Annuler"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.element.email); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.formGroup); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["text"].valid || ctx.formGroup.controls["text"].touched); } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogTitle"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormGroupDirective"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_6__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormControlName"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_8__["MatButton"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_5__["MatError"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vYXNzaXN0YW5jZS9yZXNwb25zZS1jb250YWN0L3Jlc3BvbnNlLWNvbnRhY3QuY29tcG9uZW50LnNjc3MifQ== */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](ResponseContactComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"], args: [{ selector: 'app-response-contact', templateUrl: './response-contact.component.html', styleUrls: ['./response-contact.component.scss'] }] }], function () { return [{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"], args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]] }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"] }, { type: src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/admin/emailing/email-form/email-form.component.ts": /*!******************************************************************************!*\ !*** ./src/app/components/admin/emailing/email-form/email-form.component.ts ***! \******************************************************************************/ /*! exports provided: EmailFormComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailFormComponent", function() { return EmailFormComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _services_email_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../services/email.service */ "./src/app/services/email.service.ts"); /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js"); /* harmony import */ var _angular_material_radio__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/radio */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/radio.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); function EmailFormComponent_mat_radio_button_7_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-radio-button", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const option_r6 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", option_r6.value); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", option_r6.checked); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", option_r6.label, " "); } } function EmailFormComponent_div_8_mat_error_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error", 24); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Adresse email Invalide "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !(_r7.errors == null ? null : _r7.errors.pattern)); } } function EmailFormComponent_div_8_Template(rf, ctx) { if (rf & 1) { const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Adresse email :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "mat-form-field", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 21, 22); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EmailFormComponent_div_8_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.adressemail = $event; }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, EmailFormComponent_div_8_mat_error_6_Template, 2, 1, "mat-error", 23); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](5); const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.adressemail); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", _r7.errors && (_r7.touched || _r7.dirty)); } } function EmailFormComponent_mat_error_15_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorTitle(), " "); } } function EmailFormComponent_mat_error_21_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r3.getErrorDescription(), " "); } } function EmailFormComponent_mat_error_27_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r4.getErrorObject(), " "); } } function EmailFormComponent_mat_error_33_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r5.getErrorMessage(), " "); } } class EmailFormComponent { constructor(formBuilder, emailService) { this.formBuilder = formBuilder; this.emailService = emailService; //radio button this.userOptions = [ { label: 'Tout les clients', value: '0', checked: true }, { label: 'Clients gagnant', value: '1', checked: false }, { label: 'Clients non gagnant', value: '2', checked: false }, { label: 'Clients compte actives', value: '3', checked: false }, { label: 'Clients bloqués', value: '4', checked: false }, { label: 'Adresse email', value: '5', checked: false } ]; } ngOnInit() { this.createForm(); } //select radio button selectValue($event) { this.selectedRadio = $event.source.value; } createForm() { let caracereregex = /^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/; this.formGroup = this.formBuilder.group({ title: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]], description: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]], subject: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]], text: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]] }); } getErrorTitle() { return this.formGroup.get('title').hasError('required') ? 'Titre requis' : this.formGroup.get('title').hasError('pattern') ? 'Titre non valide' : 'Titre non valide'; } getErrorDescription() { return this.formGroup.get('description').hasError('required') ? 'Description requise' : this.formGroup.get('description').hasError('pattern') ? 'Description non valide' : 'Description non valide'; } getErrorObject() { return this.formGroup.get('subject').hasError('required') ? 'Objet requis' : this.formGroup.get('subject').hasError('pattern') ? 'Objet non valide' : 'Objet non valide'; } getErrorMessage() { return this.formGroup.get('text').hasError('required') ? 'Message requis' : this.formGroup.get('text').hasError('pattern') ? 'Message non valide' : 'Message non valide'; } get f() { return this.formGroup.controls; } // rest form resetForm() { this.formGroup.reset(); } // send email sendEmail() { if (this.formGroup.invalid) { return; } let email = ''; let isgain = ''; let isactive = ''; if (this.selectedRadio == 5) { email = this.adressemail; } if (this.selectedRadio == 1) { isgain = true; } if (this.selectedRadio == 2) { isgain = false; } if (this.selectedRadio == 3) { isactive = true; } if (this.selectedRadio == 4) { isactive = false; } this.emailService.sendEmail(this.formGroup.value, email, isgain, isactive).subscribe(res => res); } } EmailFormComponent.ɵfac = function EmailFormComponent_Factory(t) { return new (t || EmailFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_email_service__WEBPACK_IMPORTED_MODULE_2__["EmailService"])); }; EmailFormComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: EmailFormComponent, selectors: [["app-email-form"]], decls: 39, vars: 7, consts: [[1, ""], [1, "row", "justify-content-center", "mb-4"], [1, "row", "justify-content-center", "mb-3"], ["aria-label", "Select an option", 3, "change"], [3, "checked", "value", 4, "ngFor", "ngForOf"], ["class", "row mb-4", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "row"], [1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["appearance", "outline", 1, "col-7", "col-md-5"], ["matInput", "", "placeholder", "", "formControlName", "title", "required", ""], [4, "ngIf"], ["matInput", "", "placeholder", "", "formControlName", "description", "required", ""], ["matInput", "", "placeholder", "", "formControlName", "subject", "required", ""], ["appearance", "outline", 1, "col-7", "col-md-5", 2, "width", "500px"], ["matInput", "", "rows", "13", "formControlName", "text"], [1, "row", "justify-content-center", "my-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "mr-4"], ["mat-raised-button", "", "color", "primary", 1, "", 3, "click"], [3, "checked", "value"], [1, "row", "mb-4"], ["matInput", "", "type", "text", "pattern", "[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,3}$", "id", "email", "name", "email", "required", "", 3, "ngModel", "ngModelChange"], ["emailref", "ngModel"], [3, "hidden", 4, "ngIf"], [3, "hidden"]], template: function EmailFormComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-card", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h1", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "b"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Emailing"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "mat-radio-group", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function EmailFormComponent_Template_mat_radio_group_change_6_listener($event) { return ctx.selectValue($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, EmailFormComponent_mat_radio_button_7_Template, 2, 3, "mat-radio-button", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, EmailFormComponent_div_8_Template, 7, 2, "div", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "form", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function EmailFormComponent_Template_form_ngSubmit_9_listener() { return ctx.sendEmail(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "p", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Titre :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "mat-form-field", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "input", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, EmailFormComponent_mat_error_15_Template, 2, 1, "mat-error", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "p", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "Description :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "mat-form-field", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "input", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, EmailFormComponent_mat_error_21_Template, 2, 1, "mat-error", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "p", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Objet :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "mat-form-field", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "input", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, EmailFormComponent_mat_error_27_Template, 2, 1, "mat-error", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "p", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Message :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "mat-form-field", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](32, "textarea", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](33, EmailFormComponent_mat_error_33_Template, 2, 1, "mat-error", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "button", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "Envoyer"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "button", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EmailFormComponent_Template_button_click_37_listener() { return ctx.resetForm(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "Effacer"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.userOptions); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.selectedRadio == 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["title"].valid || ctx.formGroup.controls["title"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["description"].valid || ctx.formGroup.controls["description"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["subject"].valid || ctx.formGroup.controls["subject"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["text"].valid || ctx.formGroup.controls["text"].touched); } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_3__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_3__["MatCardContent"], _angular_material_radio__WEBPACK_IMPORTED_MODULE_4__["MatRadioGroup"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_7__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_button__WEBPACK_IMPORTED_MODULE_8__["MatButton"], _angular_material_radio__WEBPACK_IMPORTED_MODULE_4__["MatRadioButton"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["PatternValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgModel"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatError"]], styles: [".parag[_ngcontent-%COMP%] {\n margin-top: 1em;\n}\n\n.mat-radio-button[_ngcontent-%COMP%] ~ .mat-radio-button[_ngcontent-%COMP%] {\n margin-left: 16px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9lbWFpbGluZy9lbWFpbC1mb3JtL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGFkbWluXFxlbWFpbGluZ1xcZW1haWwtZm9ybVxcZW1haWwtZm9ybS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9lbWFpbGluZy9lbWFpbC1mb3JtL2VtYWlsLWZvcm0uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxlQUFBO0FDQ0o7O0FER0E7RUFDSSxpQkFBQTtBQ0FKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9lbWFpbGluZy9lbWFpbC1mb3JtL2VtYWlsLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIucGFyYWd7XHJcbiAgICBtYXJnaW4tdG9wOiAxZW07XHJcbn1cclxuXHJcblxyXG4ubWF0LXJhZGlvLWJ1dHRvbiB+IC5tYXQtcmFkaW8tYnV0dG9uIHtcclxuICAgIG1hcmdpbi1sZWZ0OiAxNnB4O1xyXG4gIH0iLCIucGFyYWcge1xuICBtYXJnaW4tdG9wOiAxZW07XG59XG5cbi5tYXQtcmFkaW8tYnV0dG9uIH4gLm1hdC1yYWRpby1idXR0b24ge1xuICBtYXJnaW4tbGVmdDogMTZweDtcbn0iXX0= */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](EmailFormComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-email-form', templateUrl: './email-form.component.html', styleUrls: ['./email-form.component.scss'] }] }], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _services_email_service__WEBPACK_IMPORTED_MODULE_2__["EmailService"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/admin/emailing/emailing.component.ts": /*!*****************************************************************!*\ !*** ./src/app/components/admin/emailing/emailing.component.ts ***! \*****************************************************************/ /*! exports provided: EmailingComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailingComponent", function() { return EmailingComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _email_form_email_form_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./email-form/email-form.component */ "./src/app/components/admin/emailing/email-form/email-form.component.ts"); class EmailingComponent { constructor() { } ngOnInit() { } } EmailingComponent.ɵfac = function EmailingComponent_Factory(t) { return new (t || EmailingComponent)(); }; EmailingComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: EmailingComponent, selectors: [["app-emailing"]], decls: 2, vars: 0, consts: [[1, "container", "navtop"]], template: function EmailingComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "app-email-form"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } }, directives: [_email_form_email_form_component__WEBPACK_IMPORTED_MODULE_1__["EmailFormComponent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9lbWFpbGluZy9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhZG1pblxcZW1haWxpbmdcXGVtYWlsaW5nLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL2VtYWlsaW5nL2VtYWlsaW5nLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksZUFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9lbWFpbGluZy9lbWFpbGluZy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiA3ZW07XHJcbiAgfSIsIi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiA3ZW07XG59Il19 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](EmailingComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-emailing', templateUrl: './emailing.component.html', styleUrls: ['./emailing.component.scss'] }] }], function () { return []; }, null); })(); /***/ }), /***/ "./src/app/components/admin/lots/lots.component.ts": /*!*********************************************************!*\ !*** ./src/app/components/admin/lots/lots.component.ts ***! \*********************************************************/ /*! exports provided: LotsComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LotsComponent", function() { return LotsComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); class LotsComponent { constructor() { } ngOnInit() { } } LotsComponent.ɵfac = function LotsComponent_Factory(t) { return new (t || LotsComponent)(); }; LotsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LotsComponent, selectors: [["app-lots"]], decls: 2, vars: 0, template: function LotsComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "lots works!"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } }, styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vbG90cy9sb3RzLmNvbXBvbmVudC5zY3NzIn0= */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LotsComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-lots', templateUrl: './lots.component.html', styleUrls: ['./lots.component.scss'] }] }], function () { return []; }, null); })(); /***/ }), /***/ "./src/app/components/admin/statistic/statistic.component.ts": /*!*******************************************************************!*\ !*** ./src/app/components/admin/statistic/statistic.component.ts ***! \*******************************************************************/ /*! exports provided: StatisticComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticComponent", function() { return StatisticComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _services_statistic_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../services/statistic.service */ "./src/app/services/statistic.service.ts"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var ng2_charts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ng2-charts */ "./node_modules/ng2-charts/__ivy_ngcc__/fesm2015/ng2-charts.js"); /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/table */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/table.js"); function StatisticComponent_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "canvas", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("datasets", ctx_r0.barChartData)("labels", ctx_r0.barChartLabels)("options", ctx_r0.barChartOptions)("plugins", ctx_r0.barChartPlugins)("legend", ctx_r0.barChartLegend)("chartType", ctx_r0.barChartBar); } } function StatisticComponent_div_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "canvas", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("datasets", ctx_r1.barChartData)("labels", ctx_r1.barChartLabels)("options", ctx_r1.barChartOptions)("plugins", ctx_r1.barChartPlugins)("legend", ctx_r1.barChartLegend)("chartType", ctx_r1.barChartHorizontal); } } function StatisticComponent_table_10_th_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 23); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Gain"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function StatisticComponent_table_10_td_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 24); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const element_r18 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r18.gain, " "); } } function StatisticComponent_table_10_td_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 25); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Totale"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function StatisticComponent_table_10_th_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 26); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Utilis\u00E9"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function StatisticComponent_table_10_td_7_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 27); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const element_r19 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r19.used, " "); } } function StatisticComponent_table_10_td_8_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 28); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r8.getUsed(), " "); } } function StatisticComponent_table_10_th_10_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 26); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Server"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function StatisticComponent_table_10_td_11_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 27); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const element_r20 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r20.served, " "); } } function StatisticComponent_table_10_td_12_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 28); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r11.getServed(), " "); } } function StatisticComponent_table_10_th_14_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 26); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Totalit\u00E9"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function StatisticComponent_table_10_td_15_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 27); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const element_r21 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r21.total, " "); } } function StatisticComponent_table_10_td_16_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 28); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r14.getTotal(), " "); } } function StatisticComponent_table_10_tr_17_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "tr", 29); } } function StatisticComponent_table_10_tr_18_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "tr", 30); } } function StatisticComponent_table_10_tr_19_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "tr", 31); } } function StatisticComponent_table_10_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](1, 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, StatisticComponent_table_10_th_2_Template, 2, 0, "th", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, StatisticComponent_table_10_td_3_Template, 2, 1, "td", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, StatisticComponent_table_10_td_4_Template, 2, 0, "td", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](5, 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, StatisticComponent_table_10_th_6_Template, 2, 0, "th", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, StatisticComponent_table_10_td_7_Template, 2, 1, "td", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, StatisticComponent_table_10_td_8_Template, 2, 1, "td", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](9, 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, StatisticComponent_table_10_th_10_Template, 2, 0, "th", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, StatisticComponent_table_10_td_11_Template, 2, 1, "td", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, StatisticComponent_table_10_td_12_Template, 2, 1, "td", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](13, 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, StatisticComponent_table_10_th_14_Template, 2, 0, "th", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, StatisticComponent_table_10_td_15_Template, 2, 1, "td", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, StatisticComponent_table_10_td_16_Template, 2, 1, "td", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, StatisticComponent_table_10_tr_17_Template, 1, 0, "tr", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, StatisticComponent_table_10_tr_18_Template, 1, 0, "tr", 21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, StatisticComponent_table_10_tr_19_Template, 1, 0, "tr", 22); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("dataSource", ctx_r2.statisticArray); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matHeaderRowDef", ctx_r2.displayedColumns); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRowDefColumns", ctx_r2.displayedColumns); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matFooterRowDef", ctx_r2.displayedColumns); } } class StatisticComponent { constructor(StatisticService) { this.StatisticService = StatisticService; this.statisticArray = []; this.barChartData = []; this.isFoo = true; //chart this.barChartOptions = { responsive: true, }; this.barChartLabels = ['Une entrée ou un dessert au choix', 'Un burger au choix', 'Un menu du jour', 'Un menu au choix', '70% de réduction']; this.barChartBar = 'bar'; this.barChartHorizontal = 'horizontalBar'; this.barChartLegend = true; this.barChartPlugins = []; this.displayedColumns = ['gain', 'used', 'served', 'total']; } ngOnInit() { this.subscribeToStatistic(); } //sbscribe statistic subscribeToStatistic() { this.StatisticService.getStatistic().subscribe((res) => { this.statisticArray = res.data; this.barChartData = [ { data: this.statisticArray.map(res => res.total), label: 'totalité' }, { data: this.statisticArray.map(res => res.used), label: 'utiliser' }, { data: this.statisticArray.map(res => res.served), label: 'server' } ]; }); } getTotal() { return this.statisticArray.map(t => t.total).reduce((acc, value) => acc + value, 0); } getUsed() { return this.statisticArray.map(t => t.used).reduce((acc, value) => acc + value, 0); } getServed() { return this.statisticArray.map(t => t.served).reduce((acc, value) => acc + value, 0); } //texte button getBtnText() { if (this.isFoo) { return 'diagramme à bandes horizontales'; } else return 'diagramme à bandes verticales'; } } StatisticComponent.ɵfac = function StatisticComponent_Factory(t) { return new (t || StatisticComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_statistic_service__WEBPACK_IMPORTED_MODULE_1__["StatisticService"])); }; StatisticComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: StatisticComponent, selectors: [["app-statistic"]], decls: 11, vars: 4, consts: [[1, "container", "navtop"], [1, "mb-5"], [1, "row", "justify-content-center"], ["class", "col-sm-12 col-lg-8", 4, "ngIf"], ["mat-raised-button", "", "color", "primary", 1, "mt-4", 3, "click"], [1, "row", "justify-content-center", "my-5"], ["mat-table", "", "class", "mat-elevation-z8 col-11 col-lg-8", 3, "dataSource", 4, "ngIf"], [1, "col-sm-12", "col-lg-8"], ["baseChart", "", 3, "datasets", "labels", "options", "plugins", "legend", "chartType"], ["mat-table", "", 1, "mat-elevation-z8", "col-11", "col-lg-8", 3, "dataSource"], ["matColumnDef", "gain"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", "class", "text-left", 4, "matCellDef"], ["mat-footer-cell", "", "class", "text-left", 4, "matFooterCellDef"], ["matColumnDef", "used"], ["mat-header-cell", "", "class", "text-center", 4, "matHeaderCellDef"], ["mat-cell", "", 4, "matCellDef"], ["mat-footer-cell", "", 4, "matFooterCellDef"], ["matColumnDef", "served"], ["matColumnDef", "total"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], ["mat-footer-row", "", 4, "matFooterRowDef"], ["mat-header-cell", ""], ["mat-cell", "", 1, "text-left"], ["mat-footer-cell", "", 1, "text-left"], ["mat-header-cell", "", 1, "text-center"], ["mat-cell", ""], ["mat-footer-cell", ""], ["mat-header-row", ""], ["mat-row", ""], ["mat-footer-row", ""]], template: function StatisticComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h1", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Statistiques du jeux"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, StatisticComponent_div_4_Template, 2, 6, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, StatisticComponent_div_6_Template, 2, 6, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "button", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function StatisticComponent_Template_button_click_7_listener() { return ctx.isFoo = !ctx.isFoo; }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, StatisticComponent_table_10_Template, 20, 4, "table", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isFoo); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isFoo); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.getBtnText()); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.statisticArray); } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_3__["MatButton"], ng2_charts__WEBPACK_IMPORTED_MODULE_4__["BaseChartDirective"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatTable"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatColumnDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatHeaderCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatFooterCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatHeaderRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatFooterRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatHeaderCell"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatCell"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatFooterCell"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatHeaderRow"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatRow"], _angular_material_table__WEBPACK_IMPORTED_MODULE_5__["MatFooterRow"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 3em;\n}\n\ntr.mat-footer-row[_ngcontent-%COMP%] {\n font-weight: bold;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9zdGF0aXN0aWMvQzpcXEZhdGJvYXJQcm9qZWN0XFxhbmd1bGFyLWNsaWVudC9zcmNcXGFwcFxcY29tcG9uZW50c1xcYWRtaW5cXHN0YXRpc3RpY1xcc3RhdGlzdGljLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL3N0YXRpc3RpYy9zdGF0aXN0aWMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxlQUFBO0FDQ0Y7O0FER0U7RUFDRSxpQkFBQTtBQ0FKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi9zdGF0aXN0aWMvc3RhdGlzdGljLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdnRvcHtcclxuICBtYXJnaW4tdG9wOiAzZW07XHJcbn1cclxuXHJcblxyXG4gIHRyLm1hdC1mb290ZXItcm93IHtcclxuICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xyXG4gIH0iLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogM2VtO1xufVxuXG50ci5tYXQtZm9vdGVyLXJvdyB7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xufSJdfQ== */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StatisticComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-statistic', templateUrl: './statistic.component.html', styleUrls: ['./statistic.component.scss'] }] }], function () { return [{ type: _services_statistic_service__WEBPACK_IMPORTED_MODULE_1__["StatisticService"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/admin/users/users-bloque/users-bloque.component.ts": /*!*******************************************************************************!*\ !*** ./src/app/components/admin/users/users-bloque/users-bloque.component.ts ***! \*******************************************************************************/ /*! exports provided: UsersBloqueComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersBloqueComponent", function() { return UsersBloqueComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); class UsersBloqueComponent { constructor(data, dialogRef) { this.data = data; this.dialogRef = dialogRef; } onConfirm() { // Close the dialog, return true this.dialogRef.close(true); } onNoClick() { this.dialogRef.close(false); } } UsersBloqueComponent.ɵfac = function UsersBloqueComponent_Factory(t) { return new (t || UsersBloqueComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"])); }; UsersBloqueComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersBloqueComponent, selectors: [["app-users-bloque"]], decls: 7, vars: 1, consts: [["mat-dialog-content", "", 1, "text-center"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function UsersBloqueComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersBloqueComponent_Template_button_click_3_listener() { return ctx.onConfirm(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Oui"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersBloqueComponent_Template_button_click_5_listener() { return ctx.onNoClick(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Non"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data, " "); } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vdXNlcnMvdXNlcnMtYmxvcXVlL3VzZXJzLWJsb3F1ZS5jb21wb25lbnQuc2NzcyJ9 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersBloqueComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-users-bloque', templateUrl: './users-bloque.component.html', styleUrls: ['./users-bloque.component.scss'] }] }], function () { return [{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]] }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/admin/users/users-delete/users-delete.component.ts": /*!*******************************************************************************!*\ !*** ./src/app/components/admin/users/users-delete/users-delete.component.ts ***! \*******************************************************************************/ /*! exports provided: UsersDeleteComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersDeleteComponent", function() { return UsersDeleteComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); class UsersDeleteComponent { constructor(data, dialogRef) { this.data = data; this.dialogRef = dialogRef; } onConfirm() { // Close the dialog, return true this.dialogRef.close(true); } onNoClick() { this.dialogRef.close(false); } } UsersDeleteComponent.ɵfac = function UsersDeleteComponent_Factory(t) { return new (t || UsersDeleteComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"])); }; UsersDeleteComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersDeleteComponent, selectors: [["app-users-delete"]], decls: 7, vars: 1, consts: [["mat-dialog-content", "", 1, "text-center"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function UsersDeleteComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersDeleteComponent_Template_button_click_3_listener() { return ctx.onConfirm(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Oui"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersDeleteComponent_Template_button_click_5_listener() { return ctx.onNoClick(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Non"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data, " "); } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vdXNlcnMvdXNlcnMtZGVsZXRlL3VzZXJzLWRlbGV0ZS5jb21wb25lbnQuc2NzcyJ9 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersDeleteComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-users-delete', templateUrl: './users-delete.component.html', styleUrls: ['./users-delete.component.scss'] }] }], function () { return [{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]] }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/admin/users/users-details/users-details.component.ts": /*!*********************************************************************************!*\ !*** ./src/app/components/admin/users/users-details/users-details.component.ts ***! \*********************************************************************************/ /*! exports provided: UsersDetailsComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersDetailsComponent", function() { return UsersDetailsComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js"); function UsersDetailsComponent_mat_icon_44_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "done"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function UsersDetailsComponent_mat_icon_45_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "clear"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function UsersDetailsComponent_mat_icon_50_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "done"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function UsersDetailsComponent_mat_icon_51_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "clear"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function UsersDetailsComponent_div_59_ul_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const item_r6 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r6.gains, " "); } } function UsersDetailsComponent_div_59_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Gains :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, UsersDetailsComponent_div_59_ul_4_Template, 3, 1, "ul", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r4.element.gains); } } class UsersDetailsComponent { constructor(element, dialogRef) { this.element = element; this.dialogRef = dialogRef; } onConfirm() { // Close the dialog, return true this.dialogRef.close(true); } onNoClick() { this.dialogRef.close(false); } } UsersDetailsComponent.ɵfac = function UsersDetailsComponent_Factory(t) { return new (t || UsersDetailsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"])); }; UsersDetailsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersDetailsComponent, selectors: [["app-users-details"]], decls: 60, vars: 20, consts: [["mat-dialog-title", "", 1, "text-center", "font-weight-bold"], ["mat-dialog-content", "", 1, ""], [1, "row"], [1, "col-4", "font-weight-bold", "text-lg-right"], [1, "col-4"], ["class", "done", "aria-hidden", "false", "aria-label", "Example home icon", 4, "ngIf"], ["aria-hidden", "false", "aria-label", "Example home icon", 4, "ngIf"], ["color", "warn", "aria-hidden", "false", "aria-label", "Example home icon", 4, "ngIf"], ["class", "row", 4, "ngIf"], ["aria-hidden", "false", "aria-label", "Example home icon", 1, "done"], ["aria-hidden", "false", "aria-label", "Example home icon"], ["color", "warn", "aria-hidden", "false", "aria-label", "Example home icon"], [4, "ngFor", "ngForOf"]], template: function UsersDetailsComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h1", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Nom :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "p", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Pr\u00E9nom :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "p", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Email :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "p", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, "Num\u00E9ro de t\u00E9l\u00E9phone :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "p", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "Adresse :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "p", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "Date de naissance :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](39, "date"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "p", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, "Compte :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](44, UsersDetailsComponent_mat_icon_44_Template, 2, 0, "mat-icon", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, UsersDetailsComponent_mat_icon_45_Template, 2, 0, "mat-icon", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "p", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "Lots :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](50, UsersDetailsComponent_mat_icon_50_Template, 2, 0, "mat-icon", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](51, UsersDetailsComponent_mat_icon_51_Template, 2, 0, "mat-icon", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "p", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, "Date d'inscription :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](57); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](58, "date"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](59, UsersDetailsComponent_div_59_Template, 5, 1, "div", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", ctx.element.lastname, " ", ctx.element.firstname, ""); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.element.lastname); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.element.firstname); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.element.email); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.element.phonenumber); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.element.adress); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](39, 14, ctx.element.birthday, "longDate")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.element.isActive); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.element.isActive); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.element.isGain); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.element.isGain); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](58, 17, ctx.element.register_date, "longDate")); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.element.isGain); } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogTitle"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__["MatIcon"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["DatePipe"]], styles: [".done[_ngcontent-%COMP%] {\n color: #39C965;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy91c2Vycy1kZXRhaWxzL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGFkbWluXFx1c2Vyc1xcdXNlcnMtZGV0YWlsc1xcdXNlcnMtZGV0YWlscy5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy91c2Vycy1kZXRhaWxzL3VzZXJzLWRldGFpbHMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7RUFDSSxjQUFBO0FDREoiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL3VzZXJzL3VzZXJzLWRldGFpbHMvdXNlcnMtZGV0YWlscy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG5cclxuLmRvbmV7XHJcbiAgICBjb2xvcjojMzlDOTY1IDtcclxuICB9IiwiLmRvbmUge1xuICBjb2xvcjogIzM5Qzk2NTtcbn0iXX0= */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersDetailsComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-users-details', templateUrl: './users-details.component.html', styleUrls: ['./users-details.component.scss'] }] }], function () { return [{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]] }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/admin/users/users-edit/users-edit.component.ts": /*!***************************************************************************!*\ !*** ./src/app/components/admin/users/users-edit/users-edit.component.ts ***! \***************************************************************************/ /*! exports provided: UsersEditComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersEditComponent", function() { return UsersEditComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); class UsersEditComponent { constructor(data, dialogRef) { this.data = data; this.dialogRef = dialogRef; } onConfirm() { // Close the dialog, return true this.dialogRef.close(true); } onNoClick() { this.dialogRef.close(false); } ngOnInit() { } } UsersEditComponent.ɵfac = function UsersEditComponent_Factory(t) { return new (t || UsersEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"])); }; UsersEditComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersEditComponent, selectors: [["app-users-edit"]], decls: 7, vars: 1, consts: [["mat-dialog-content", "", 1, "text-center"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function UsersEditComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersEditComponent_Template_button_click_3_listener() { return ctx.onConfirm(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Oui"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersEditComponent_Template_button_click_5_listener() { return ctx.onNoClick(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Non"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data, " "); } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vdXNlcnMvdXNlcnMtZWRpdC91c2Vycy1lZGl0LmNvbXBvbmVudC5zY3NzIn0= */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersEditComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-users-edit', templateUrl: './users-edit.component.html', styleUrls: ['./users-edit.component.scss'] }] }], function () { return [{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]] }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/admin/users/users-form/users-form.component.ts": /*!***************************************************************************!*\ !*** ./src/app/components/admin/users/users-form/users-form.component.ts ***! \***************************************************************************/ /*! exports provided: UsersFormComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersFormComponent", function() { return UsersFormComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/expansion */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/expansion.js"); /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_material_select__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/select */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/select.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var saturn_datepicker__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! saturn-datepicker */ "./node_modules/saturn-datepicker/__ivy_ngcc__/fesm2015/saturn-datepicker.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/core */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/core.js"); function UsersFormComponent_mat_option_26_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-option", 21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const topping_r2 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", topping_r2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](topping_r2); } } class UsersFormComponent { constructor(formBuilder) { this.formBuilder = formBuilder; this.filterUsers = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); this.toppings = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"](); this.toppingList = ['Gagnant', 'Bloqué', 'servé']; this.form = formBuilder.group({ lastname: [''], firstname: [''], email: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].email], adress: [''], date: [{ begin: this.startDate, end: this.endDate }] }); } ngOnInit() { } filterUser() { this.filterUsers.emit(this.form.value); } reset() { this.form.reset(); } } UsersFormComponent.ɵfac = function UsersFormComponent_Factory(t) { return new (t || UsersFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"])); }; UsersFormComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersFormComponent, selectors: [["app-users-form"]], outputs: { filterUsers: "filterUsers" }, decls: 46, vars: 6, consts: [[1, "mx-5", "my-5"], [1, "search"], [1, "row", "ml-2"], ["aria-hidden", "false", "aria-label", "Example home icon", 1, "mx-2"], [1, ""], [3, "formGroup", "ngSubmit"], [1, "row"], [1, "col-4"], ["matInput", "", "formControlName", "lastname"], ["matInput", "", "formControlName", "firstname"], ["multiple", "", 3, "formControl"], [3, "value", 4, "ngFor", "ngForOf"], ["matInput", "", "name", "email", "formControlName", "email"], ["matInput", "", "placeholder", "Inscription :", "formControlName", "date", 3, "satDatepicker"], ["matSuffix", "", 3, "for"], ["touchUi", "true", 3, "rangeMode"], ["picker", ""], ["matInput", "", "formControlName", "adress"], [1, "row", "justify-content-center"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "mr-3"], ["mat-raised-button", "", "color", "primary", 3, "click"], [3, "value"]], template: function UsersFormComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-accordion"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-expansion-panel"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "mat-expansion-panel-header", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "mat-panel-title"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "mat-icon", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "group"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "p", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Rechercher des utilisateurs"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "form", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function UsersFormComponent_Template_form_ngSubmit_12_listener() { return ctx.filterUser(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "mat-form-field", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "mat-label"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Nom :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "input", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "mat-form-field", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "mat-label"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Pr\u00E9nom :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](21, "input", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "mat-form-field", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "mat-label"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Etat client :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "mat-select", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, UsersFormComponent_mat_option_26_Template, 2, 2, "mat-option", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "mat-form-field", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "mat-label"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Adresse mail :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "mat-form-field", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](33, "input", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](34, "sat-datepicker-toggle", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](35, "sat-datepicker", 15, 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "mat-form-field", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "mat-label"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, "Adresse :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](40, "input", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "button", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "Rechercher"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "button", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersFormComponent_Template_button_click_44_listener() { return ctx.reset(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, "Effacer"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](36); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.form); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControl", ctx.toppings); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.toppingList); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("satDatepicker", _r1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("for", _r1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("rangeMode", true); } }, directives: [_angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatAccordion"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanel"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanelHeader"], _angular_material_expansion__WEBPACK_IMPORTED_MODULE_2__["MatExpansionPanelTitle"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__["MatIcon"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatFormField"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatLabel"], _angular_material_input__WEBPACK_IMPORTED_MODULE_5__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_material_select__WEBPACK_IMPORTED_MODULE_6__["MatSelect"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgForOf"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_8__["SatDatepickerInput"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_8__["SatDatepickerToggle"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatSuffix"], saturn_datepicker__WEBPACK_IMPORTED_MODULE_8__["SatDatepicker"], _angular_material_button__WEBPACK_IMPORTED_MODULE_9__["MatButton"], _angular_material_core__WEBPACK_IMPORTED_MODULE_10__["MatOption"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYWRtaW4vdXNlcnMvdXNlcnMtZm9ybS91c2Vycy1mb3JtLmNvbXBvbmVudC5zY3NzIn0= */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersFormComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-users-form', templateUrl: './users-form.component.html', styleUrls: ['./users-form.component.scss'], }] }], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }]; }, { filterUsers: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }] }); })(); /***/ }), /***/ "./src/app/components/admin/users/users-list/users-list.component.ts": /*!***************************************************************************!*\ !*** ./src/app/components/admin/users/users-list/users-list.component.ts ***! \***************************************************************************/ /*! exports provided: UsersListComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersListComponent", function() { return UsersListComponent; }); /* harmony import */ var _users_edit_users_edit_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../users-edit/users-edit.component */ "./src/app/components/admin/users/users-edit/users-edit.component.ts"); /* harmony import */ var _users_bloque_users_bloque_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../users-bloque/users-bloque.component */ "./src/app/components/admin/users/users-bloque/users-bloque.component.ts"); /* harmony import */ var _users_details_users_details_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../users-details/users-details.component */ "./src/app/components/admin/users/users-details/users-details.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/table */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/table.js"); /* harmony import */ var _users_delete_users_delete_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../users-delete/users-delete.component */ "./src/app/components/admin/users/users-delete/users-delete.component.ts"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _services_users_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../services/users.service */ "./src/app/services/users.service.ts"); /* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/paginator */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/paginator.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); function UsersListComponent_th_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Nom "); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } } function UsersListComponent_td_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } if (rf & 2) { const element_r16 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", element_r16.lastname, " "); } } function UsersListComponent_th_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Pr\u00E9nom "); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } } function UsersListComponent_td_7_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } if (rf & 2) { const element_r17 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", element_r17.firstname, " "); } } function UsersListComponent_th_9_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Adresse email "); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } } function UsersListComponent_td_10_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } if (rf & 2) { const element_r18 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", element_r18.email, " "); } } function UsersListComponent_th_12_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " D\u00E9tails "); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } } function UsersListComponent_td_13_Template(rf, ctx) { if (rf & 1) { const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "button", 16); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function UsersListComponent_td_13_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r21); const element_r19 = ctx.$implicit; const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r20.detailUser(element_r19); }); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "mat-icon", 17); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "reorder"); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } } function UsersListComponent_th_15_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Modifier "); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } } function UsersListComponent_td_16_Template(rf, ctx) { if (rf & 1) { const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "button", 18); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function UsersListComponent_td_16_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r24); const element_r22 = ctx.$implicit; const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r23.editUser(element_r22); }); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "mat-icon", 17); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "system_update"); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } } function UsersListComponent_th_18_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Bloquer "); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } } function UsersListComponent_td_19_button_1_Template(rf, ctx) { if (rf & 1) { const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "button", 20); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function UsersListComponent_td_19_button_1_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r29); const element_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit; const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r27.bloqueUser(element_r25); }); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "mat-icon", 17); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2, "not_interested"); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } } function UsersListComponent_td_19_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, UsersListComponent_td_19_button_1_Template, 3, 0, "button", 19); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } if (rf & 2) { const element_r25 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", element_r25.isActive); } } function UsersListComponent_th_21_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 14); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Supprimer "); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } } function UsersListComponent_td_22_Template(rf, ctx) { if (rf & 1) { const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 15); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "button", 20); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function UsersListComponent_td_22_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r32); const element_r30 = ctx.$implicit; const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return ctx_r31.deleteUser(element_r30); }); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](2, "mat-icon", 17); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "delete"); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } } function UsersListComponent_tr_23_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "tr", 21); } } function UsersListComponent_tr_24_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "tr", 22); } } const _c0 = function () { return [5, 10, 20, 50]; }; class UsersListComponent { constructor(dialog, usersService) { this.dialog = dialog; this.usersService = usersService; this.users = []; this.filter = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"](); this.displayedColumns = ['lastname', 'firstname', 'email', 'details', 'update', 'bloque', 'delete']; this.dataSource = new _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatTableDataSource"](this.users); } handlePage($event) { this.filter.emit($event); } // detail user detailUser(element) { const dialogRef = this.dialog.open(_users_details_users_details_component__WEBPACK_IMPORTED_MODULE_2__["UsersDetailsComponent"], { width: '650px', height: '440px', data: element }); dialogRef.afterClosed().subscribe(result => { // if (result) { // this.bookService.cancelBook(this._book.id).subscribe( // response => { // this.openDialog() // } // ) // } }); } // edit user editUser(element) { console.log(JSON.stringify(element)); const dialogRef = this.dialog.open(_users_edit_users_edit_component__WEBPACK_IMPORTED_MODULE_0__["UsersEditComponent"], { width: '550px', height: '340px', data: "Souhaitez-vous modifier cet utilisateur ?" }); let bloqued = { isActive: false }; dialogRef.afterClosed().subscribe(result => { if (result) { console.log(JSON.stringify(result)); this.usersService.editOneUser(element._id, bloqued).subscribe(response => { // this.openDialog() console.log(response); }); } }); } // bloque user bloqueUser(element) { const dialogRef = this.dialog.open(_users_bloque_users_bloque_component__WEBPACK_IMPORTED_MODULE_1__["UsersBloqueComponent"], { width: '350px', height: '140px', data: "Souhaitez-vous bloquer cet utilisateur ?" }); let bloqued = { isActive: false }; dialogRef.afterClosed().subscribe(result => { if (result) { this.usersService.editOneUser(element._id, bloqued).subscribe(response => { // this.openDialog() console.log(response); }); } }); } // delete user deleteUser(element) { const dialogRef = this.dialog.open(_users_delete_users_delete_component__WEBPACK_IMPORTED_MODULE_5__["UsersDeleteComponent"], { width: '350px', height: '140px', data: "Souhaitez-vous supprimer cet utilisateur ?" }); dialogRef.afterClosed().subscribe(result => { if (result) { this.usersService.deleteOneUser(element._id).subscribe(response => { // this.openDialog() console.log(response); }); } }); } } UsersListComponent.ɵfac = function UsersListComponent_Factory(t) { return new (t || UsersListComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__["MatDialog"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"])); }; UsersListComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: UsersListComponent, selectors: [["app-users-list"]], inputs: { users: "users", page: "page", pageSize: "pageSize", total: "total" }, outputs: { filter: "filter" }, decls: 26, vars: 8, consts: [[1, "mat-elevation-z8", "col-12", "col-lg-12", "mb-5", "justify-content-center"], ["mat-table", "", 3, "dataSource"], ["matColumnDef", "lastname"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", "class", "text-left", 4, "matCellDef"], ["matColumnDef", "firstname"], ["matColumnDef", "email"], ["matColumnDef", "details"], ["matColumnDef", "update"], ["matColumnDef", "bloque"], ["matColumnDef", "delete"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], [3, "length", "pageSize", "pageSizeOptions", "showFirstLastButtons", "page"], ["mat-header-cell", ""], ["mat-cell", "", 1, "text-left"], ["mat-icon-button", "", "color", "primary", 3, "click"], [1, "mat-18"], ["mat-icon-button", "", "color", "accent", 1, "update", 3, "click"], ["mat-icon-button", "", "color", "warn", 3, "click", 4, "ngIf"], ["mat-icon-button", "", "color", "warn", 3, "click"], ["mat-header-row", ""], ["mat-row", ""]], template: function UsersListComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "table", 1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](2, 2); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, UsersListComponent_th_3_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, UsersListComponent_td_4_Template, 2, 1, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](5, 5); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](6, UsersListComponent_th_6_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, UsersListComponent_td_7_Template, 2, 1, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](8, 6); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](9, UsersListComponent_th_9_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](10, UsersListComponent_td_10_Template, 2, 1, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](11, 7); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](12, UsersListComponent_th_12_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](13, UsersListComponent_td_13_Template, 4, 0, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](14, 8); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](15, UsersListComponent_th_15_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](16, UsersListComponent_td_16_Template, 4, 0, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](17, 9); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](18, UsersListComponent_th_18_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](19, UsersListComponent_td_19_Template, 2, 1, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](20, 10); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](21, UsersListComponent_th_21_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](22, UsersListComponent_td_22_Template, 4, 0, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](23, UsersListComponent_tr_23_Template, 1, 0, "tr", 11); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](24, UsersListComponent_tr_24_Template, 1, 0, "tr", 12); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "mat-paginator", 13); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("page", function UsersListComponent_Template_mat_paginator_page_25_listener($event) { return ctx.handlePage($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("dataSource", ctx.users); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](22); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("matHeaderRowDef", ctx.displayedColumns); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("matRowDefColumns", ctx.displayedColumns); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("length", ctx.total)("pageSize", ctx.pageSize)("pageSizeOptions", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction0"](7, _c0))("showFirstLastButtons", true); } }, directives: [_angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatTable"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatColumnDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatHeaderCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatHeaderRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatRowDef"], _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__["MatPaginator"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatHeaderCell"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatCell"], _angular_material_button__WEBPACK_IMPORTED_MODULE_9__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_10__["MatIcon"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatHeaderRow"], _angular_material_table__WEBPACK_IMPORTED_MODULE_4__["MatRow"]], styles: ["table[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.update[_ngcontent-%COMP%] {\n color: #39C965;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy91c2Vycy1saXN0L0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGFkbWluXFx1c2Vyc1xcdXNlcnMtbGlzdFxcdXNlcnMtbGlzdC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy91c2Vycy1saXN0L3VzZXJzLWxpc3QuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxXQUFBO0FDQ0o7O0FERUU7RUFDRSxjQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL3VzZXJzL3VzZXJzLWxpc3QvdXNlcnMtbGlzdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbInRhYmxlIHtcclxuICAgIHdpZHRoOiAxMDAlO1xyXG4gIH1cclxuXHJcbiAgLnVwZGF0ZXtcclxuICAgIGNvbG9yOiMzOUM5NjUgO1xyXG4gIH0iLCJ0YWJsZSB7XG4gIHdpZHRoOiAxMDAlO1xufVxuXG4udXBkYXRlIHtcbiAgY29sb3I6ICMzOUM5NjU7XG59Il19 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](UsersListComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"], args: [{ selector: 'app-users-list', templateUrl: './users-list.component.html', styleUrls: ['./users-list.component.scss'] }] }], function () { return [{ type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__["MatDialog"] }, { type: _services_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"] }]; }, { users: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], page: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], pageSize: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], total: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }], filter: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }] }); })(); /***/ }), /***/ "./src/app/components/admin/users/users.component.ts": /*!***********************************************************!*\ !*** ./src/app/components/admin/users/users.component.ts ***! \***********************************************************/ /*! exports provided: UsersComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersComponent", function() { return UsersComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _services_users_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../services/users.service */ "./src/app/services/users.service.ts"); /* harmony import */ var _users_form_users_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./users-form/users-form.component */ "./src/app/components/admin/users/users-form/users-form.component.ts"); /* harmony import */ var _users_list_users_list_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./users-list/users-list.component */ "./src/app/components/admin/users/users-list/users-list.component.ts"); class UsersComponent { constructor(UsersService) { this.UsersService = UsersService; this.page = 1; this.pageSize = 10; this.startregister = ''; this.endregister = ''; this.firstname = ''; this.lastname = ''; this.email = ''; this.adress = ''; } ngOnInit() { this.subscribeToUsers(); } filterUsersPage($event) { this.UsersService.getUsers($event.pageIndex + 1, $event.pageSize, this.lastname, this.firstname, this.email, this.adress, this.startregister, this.endregister).subscribe((res) => { this.users = res.users; this.total = res.total; }); console.log('1', $event); } filterUsersForm(userObject) { console.log('2', userObject); if (userObject.date == null) { var start = null; var end = null; } if (userObject.date !== null) { var start = userObject.date.begin; var end = userObject.date.end; } console.log('start : ' + start); console.log('end : ' + end); this.UsersService.getUsers(this.page, this.pageSize, userObject.lastname, userObject.firstname, userObject.email, userObject.adress, start, end).subscribe((res) => { this.users = res.users; this.total = res.total; }); this.firstname = userObject.firstname; this.lastname = userObject.lastname; this.email = userObject.email; this.startregister = start; this.endregister = end; console.log('2', userObject); } // sbscribe users subscribeToUsers() { this.UsersService.getUsers(this.page, this.pageSize, this.lastname, this.firstname, this.email, this.adress, this.startregister, this.endregister).subscribe((res) => { this.users = res.users; this.page = res.page; this.total = res.total; }); } } UsersComponent.ɵfac = function UsersComponent_Factory(t) { return new (t || UsersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_users_service__WEBPACK_IMPORTED_MODULE_1__["UsersService"])); }; UsersComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersComponent, selectors: [["app-users"]], decls: 5, vars: 4, consts: [[1, "container", "navtop"], [1, "mb-5"], [3, "filterUsers"], [3, "users", "total", "page", "pageSize", "filter"]], template: function UsersComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h1", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Liste des utilisateurs du jeux"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "app-users-form", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("filterUsers", function UsersComponent_Template_app_users_form_filterUsers_3_listener($event) { return ctx.filterUsersForm($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "app-users-list", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("filter", function UsersComponent_Template_app_users_list_filter_4_listener($event) { return ctx.filterUsersPage($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("users", ctx.users)("total", ctx.total)("page", ctx.page)("pageSize", ctx.pageSize); } }, directives: [_users_form_users_form_component__WEBPACK_IMPORTED_MODULE_2__["UsersFormComponent"], _users_list_users_list_component__WEBPACK_IMPORTED_MODULE_3__["UsersListComponent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 3em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhZG1pblxcdXNlcnNcXHVzZXJzLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2FkbWluL3VzZXJzL3VzZXJzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksZUFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hZG1pbi91c2Vycy91c2Vycy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiAzZW07XHJcbiAgfSIsIi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiAzZW07XG59Il19 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-users', templateUrl: './users.component.html', styleUrls: ['./users.component.scss'] }] }], function () { return [{ type: _services_users_service__WEBPACK_IMPORTED_MODULE_1__["UsersService"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/auth/gain/gain-form/gain-form.component.ts": /*!***********************************************************************!*\ !*** ./src/app/components/auth/gain/gain-form/gain-form.component.ts ***! \***********************************************************************/ /*! exports provided: GainFormComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GainFormComponent", function() { return GainFormComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); function GainFormComponent_mat_error_13_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.getErrorCode(), " "); } } class GainFormComponent { constructor(formBuilder) { this.formBuilder = formBuilder; this.code = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](); } ngOnInit() { this.createForm(); } createForm() { this.formGroup = this.formBuilder.group({ code: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required] }); } getErrorCode() { return this.formGroup.get('code').hasError('required') ? 'code requis' : ''; } get f() { return this.formGroup.controls; } sendCodeGain() { if (this.formGroup.invalid) { return; } this.code.emit(this.formGroup.value); } } GainFormComponent.ɵfac = function GainFormComponent_Factory(t) { return new (t || GainFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"])); }; GainFormComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: GainFormComponent, selectors: [["app-gain-form"]], outputs: { code: "code" }, decls: 20, vars: 2, consts: [[1, "v"], [3, "formGroup", "ngSubmit"], [1, "row", "justify-content-center", "font-weight-bold"], [1, "row", "justify-content-center"], ["appearance", "outline", 1, "formu"], ["matInput", "", "formControlName", "code", "type", "number", "placeholder", "Exemple : 1234567890"], ["matSuffix", ""], [4, "ngIf"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-4", "color-theme"]], template: function GainFormComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-card", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "form", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function GainFormComponent_Template_form_ngSubmit_2_listener() { return ctx.sendCodeGain(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h1", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Tentez votre chance, et repartez peut-etre avec votre Range Rover"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h2", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Entrez votre code"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "mat-form-field", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "input", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "mat-icon", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "card_giftcard"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, GainFormComponent_mat_error_13_Template, 2, 1, "mat-error", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "button", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Je v\u00E9rifie"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "h1", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "b"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "100% gagnant"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["code"].valid || ctx.formGroup.controls["code"].touched); } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_2__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_2__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_4__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIcon"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__["MatSuffix"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_7__["MatButton"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__["MatError"]], styles: [".formu[_ngcontent-%COMP%] {\n background-color: white !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL2dhaW4vZ2Fpbi1mb3JtL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGF1dGhcXGdhaW5cXGdhaW4tZm9ybVxcZ2Fpbi1mb3JtLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2F1dGgvZ2Fpbi9nYWluLWZvcm0vZ2Fpbi1mb3JtLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksa0NBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYXV0aC9nYWluL2dhaW4tZm9ybS9nYWluLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZm9ybXV7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xyXG59XHJcblxyXG4iLCIuZm9ybXUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xufSJdfQ== */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GainFormComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-gain-form', templateUrl: './gain-form.component.html', styleUrls: ['./gain-form.component.scss'] }] }], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }]; }, { code: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }] }); })(); /***/ }), /***/ "./src/app/components/auth/gain/gain-list/gain-list.component.ts": /*!***********************************************************************!*\ !*** ./src/app/components/auth/gain/gain-list/gain-list.component.ts ***! \***********************************************************************/ /*! exports provided: GainListComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GainListComponent", function() { return GainListComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/table */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/table.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js"); function GainListComponent_table_0_th_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Num\u00E9ro "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function GainListComponent_table_0_td_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const element_r13 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r13.index, " "); } } function GainListComponent_table_0_th_5_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Code "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function GainListComponent_table_0_td_6_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const element_r14 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r14.code, " "); } } function GainListComponent_table_0_th_8_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Lot gagn\u00E9 "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function GainListComponent_table_0_td_9_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const element_r15 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", element_r15.gains, " "); } } function GainListComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Servi "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function GainListComponent_table_0_td_12_mat_icon_1_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "done_outline"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function GainListComponent_table_0_td_12_mat_icon_2_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-icon", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "hourglass_bottom"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function GainListComponent_table_0_td_12_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, GainListComponent_table_0_td_12_mat_icon_1_Template, 2, 0, "mat-icon", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, GainListComponent_table_0_td_12_mat_icon_2_Template, 2, 0, "mat-icon", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const element_r16 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", element_r16.isServed === true); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", element_r16.isServed === false); } } function GainListComponent_table_0_th_14_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Date d'utilisation "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } } function GainListComponent_table_0_td_15_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const element_r19 = ctx.$implicit; _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 1, element_r19.date_used, "longDate"), " "); } } function GainListComponent_table_0_tr_16_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "tr", 17); } } function GainListComponent_table_0_tr_17_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "tr", 18); } } function GainListComponent_table_0_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](1, 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, GainListComponent_table_0_th_2_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, GainListComponent_table_0_td_3_Template, 2, 1, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](4, 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, GainListComponent_table_0_th_5_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, GainListComponent_table_0_td_6_Template, 2, 1, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](7, 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, GainListComponent_table_0_th_8_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, GainListComponent_table_0_td_9_Template, 2, 1, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](10, 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, GainListComponent_table_0_th_11_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, GainListComponent_table_0_td_12_Template, 3, 2, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](13, 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, GainListComponent_table_0_th_14_Template, 2, 0, "th", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, GainListComponent_table_0_td_15_Template, 3, 4, "td", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, GainListComponent_table_0_tr_16_Template, 1, 0, "tr", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, GainListComponent_table_0_tr_17_Template, 1, 0, "tr", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("dataSource", ctx_r0.lots); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matHeaderRowDef", ctx_r0.displayedColumns); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRowDefColumns", ctx_r0.displayedColumns); } } class GainListComponent { constructor() { this.lots = []; this.displayedColumns = ['index', 'code', 'gain', 'isServed', 'date_used']; this.dataSource = new _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTableDataSource"](); } subscribeToUsers() { // this.UsersService.getUsers(this.page,this.pageSize).subscribe((res) => { // this.usersArray = res.users // this.length = res.total // this.page = res.page // console.log(res.users) // }) } ngOnInit() { this.dataSource.data = this.lots; } } GainListComponent.ɵfac = function GainListComponent_Factory(t) { return new (t || GainListComponent)(); }; GainListComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: GainListComponent, selectors: [["app-gain-list"]], inputs: { lots: "lots" }, decls: 1, vars: 1, consts: [["mat-table", "", "class", "tablegain", 3, "dataSource", 4, "ngIf"], ["mat-table", "", 1, "tablegain", 3, "dataSource"], ["matColumnDef", "index"], ["mat-header-cell", "", 4, "matHeaderCellDef"], ["mat-cell", "", "class", "text-left", 4, "matCellDef"], ["matColumnDef", "code"], ["matColumnDef", "gain"], ["matColumnDef", "isServed"], ["matColumnDef", "date_used"], ["mat-header-row", "", 4, "matHeaderRowDef"], ["mat-row", "", 4, "matRowDef", "matRowDefColumns"], ["mat-header-cell", ""], ["mat-cell", "", 1, "text-left"], ["class", "icon mr-2", "style", "color:#296119", 4, "ngIf"], ["class", "icon mr-2", "style", "color:rgb(67, 151, 230)", 4, "ngIf"], [1, "icon", "mr-2", 2, "color", "#296119"], [1, "icon", "mr-2", 2, "color", "rgb(67, 151, 230)"], ["mat-header-row", ""], ["mat-row", ""]], template: function GainListComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, GainListComponent_table_0_Template, 18, 3, "table", 0); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.lots); } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTable"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatColumnDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatCellDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatRowDef"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderCell"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatCell"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_3__["MatIcon"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderRow"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatRow"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["DatePipe"]], styles: ["table[_ngcontent-%COMP%] {\n width: 100%;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL2dhaW4vZ2Fpbi1saXN0L0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGF1dGhcXGdhaW5cXGdhaW4tbGlzdFxcZ2Fpbi1saXN0LmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2F1dGgvZ2Fpbi9nYWluLWxpc3QvZ2Fpbi1saXN0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksV0FBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hdXRoL2dhaW4vZ2Fpbi1saXN0L2dhaW4tbGlzdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbInRhYmxlIHtcclxuICAgIHdpZHRoOiAxMDAlO1xyXG4gIH1cclxuXHJcblxyXG4iLCJ0YWJsZSB7XG4gIHdpZHRoOiAxMDAlO1xufSJdfQ== */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GainListComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-gain-list', templateUrl: './gain-list.component.html', styleUrls: ['./gain-list.component.scss'] }] }], function () { return []; }, { lots: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }); })(); /***/ }), /***/ "./src/app/components/auth/gain/gain.component.ts": /*!********************************************************!*\ !*** ./src/app/components/auth/gain/gain.component.ts ***! \********************************************************/ /*! exports provided: GainComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GainComponent", function() { return GainComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"); /* harmony import */ var _services_users_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../services/users.service */ "./src/app/services/users.service.ts"); /* harmony import */ var _gain_form_gain_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./gain-form/gain-form.component */ "./src/app/components/auth/gain/gain-form/gain-form.component.ts"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _gain_list_gain_list_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./gain-list/gain-list.component */ "./src/app/components/auth/gain/gain-list/gain-list.component.ts"); function GainComponent_div_4_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "app-gain-list", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("lots", ctx_r0.lots); } } class GainComponent { constructor(authService, route, userService) { this.authService = authService; this.route = route; this.userService = userService; } ngOnInit() { this.getInfoUser(); // Récupérer le token JWT de l'URL this.route.queryParams.subscribe(params => { this.token = params['token']; }); } getInfoUser() { this.authService.getUserInfo().subscribe((user) => { this.user = user, this.lots = user.gains; }); } receiveCode($event) { let id = this.authService.userValue._id; this.userService.verifyLotUser(id, $event).subscribe((res) => { if (res) { this.lots = []; this.lots.push(res); } }); console.log(' Retour de la requete', this.lots); } } GainComponent.ɵfac = function GainComponent_Factory(t) { return new (t || GainComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"])); }; GainComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: GainComponent, selectors: [["app-gain"]], inputs: { lots: "lots" }, decls: 5, vars: 2, consts: [[1, "container", "navtop"], [3, "hidden"], [3, "code"], ["class", "my-3", 4, "ngIf"], [1, "my-3"], [3, "lots"]], template: function GainComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "app-gain-form", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("code", function GainComponent_Template_app_gain_form_code_3_listener($event) { return ctx.receiveCode($event); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, GainComponent_div_4_Template, 2, 1, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", ctx.user.role != "client"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.lots); } }, directives: [_gain_form_gain_form_component__WEBPACK_IMPORTED_MODULE_4__["GainFormComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _gain_list_gain_list_component__WEBPACK_IMPORTED_MODULE_6__["GainListComponent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 6em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL2dhaW4vQzpcXEZhdGJvYXJQcm9qZWN0XFxhbmd1bGFyLWNsaWVudC9zcmNcXGFwcFxcY29tcG9uZW50c1xcYXV0aFxcZ2FpblxcZ2Fpbi5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL2dhaW4vZ2Fpbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGVBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYXV0aC9nYWluL2dhaW4uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2dG9we1xyXG4gICAgbWFyZ2luLXRvcDogNmVtO1xyXG4gIH0iLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogNmVtO1xufSJdfQ== */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GainComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-gain', templateUrl: './gain.component.html', styleUrls: ['./gain.component.scss'] }] }], function () { return [{ type: _services_auth_service__WEBPACK_IMPORTED_MODULE_1__["AuthService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] }, { type: _services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"] }]; }, { lots: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }] }); })(); /***/ }), /***/ "./src/app/components/auth/profil/edit-profil-info-connexion/edit-profil-info-connexion.component.ts": /*!***********************************************************************************************************!*\ !*** ./src/app/components/auth/profil/edit-profil-info-connexion/edit-profil-info-connexion.component.ts ***! \***********************************************************************************************************/ /*! exports provided: EditProfilInfoConnexionComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditProfilInfoConnexionComponent", function() { return EditProfilInfoConnexionComponent; }); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _services_users_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../../services/users.service */ "./src/app/services/users.service.ts"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); function EditProfilInfoConnexionComponent_mat_error_9_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r0.getErrorEmail(), " "); } } function EditProfilInfoConnexionComponent_mat_error_15_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorPassword(), " "); } } class EditProfilInfoConnexionComponent { constructor(element, dialogRef, formBuilder, usersService) { this.element = element; this.dialogRef = dialogRef; this.formBuilder = formBuilder; this.usersService = usersService; this.submitted = false; this.user = this.element; } ngOnInit() { this.createForm(); } createForm() { let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; this.formGroup = this.formBuilder.group({ email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].pattern(emailregex)]], password: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required, this.checkPassword]] }); } checkPassword(control) { let enteredPassword = control.value; let passwordCheck = /^(?=.*[A-Z])(?=.*[a-z])(?=.{8,})/; return (!passwordCheck.test(enteredPassword) && enteredPassword) ? { 'requirements': true } : null; } getErrorEmail() { return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' : this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : ''; } getErrorPassword() { return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' : this.formGroup.get('password').hasError('requirements') ? 'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule, une lettre majuscule' : ''; } // login updateProfil() { this.submitted = true; if (this.formGroup.invalid) { return; } this.usersService.editOneUser(this.element._id, this.formGroup.value).subscribe(data => { // this.router.navigate([this.returnUrl]); console.log(data); // this.loading = false; // this.router.navigate(['auth']); }, err => { // this.loading = false; // console.log(err.error.message) // this.authService.openSnackBar(err.error.message) }); } onConfirm() { // Close the dialog, return true this.dialogRef.close(true); } onNoClick() { this.dialogRef.close(false); } } EditProfilInfoConnexionComponent.ɵfac = function EditProfilInfoConnexionComponent_Factory(t) { return new (t || EditProfilInfoConnexionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"])); }; EditProfilInfoConnexionComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: EditProfilInfoConnexionComponent, selectors: [["app-edit-profil-info-connexion"]], decls: 21, vars: 5, consts: [["mat-dialog-title", "", 1, "text-center", "font-weight-bold"], [3, "formGroup", "ngSubmit"], ["mat-dialog-content", "", 1, ""], [1, "row"], [1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["appearance", "outline", 1, "col-7", "col-md-5"], ["matInput", "", "placeholder", "", "formControlName", "email", "required", ""], [4, "ngIf"], ["matInput", "", "placeholder", "", "formControlName", "password", "required", ""], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-2"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function EditProfilInfoConnexionComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h1", 0); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngSubmit", function EditProfilInfoConnexionComponent_Template_form_ngSubmit_2_listener() { return ctx.updateProfil(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "p", 4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Email:"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "mat-form-field", 5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "input", 6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, EditProfilInfoConnexionComponent_mat_error_9_Template, 2, 1, "mat-error", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "p", 4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Mot de passe:"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "mat-form-field", 5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](14, "input", 8); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, EditProfilInfoConnexionComponent_mat_error_15_Template, 2, 1, "mat-error", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "button", 10); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EditProfilInfoConnexionComponent_Template_button_click_17_listener() { return ctx.updateProfil(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "Modifier"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EditProfilInfoConnexionComponent_Template_button_click_19_listener() { return ctx.onNoClick(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20, "Annuler"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("", ctx.element.lastname, " ", ctx.element.firstname, ""); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.formGroup); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid || ctx.formGroup.controls["email"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid || ctx.formGroup.controls["password"].touched); } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogTitle"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormGroupDirective"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_5__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["RequiredValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_7__["MatButton"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatError"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvYXV0aC9wcm9maWwvZWRpdC1wcm9maWwtaW5mby1jb25uZXhpb24vZWRpdC1wcm9maWwtaW5mby1jb25uZXhpb24uY29tcG9uZW50LnNjc3MifQ== */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](EditProfilInfoConnexionComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"], args: [{ selector: 'app-edit-profil-info-connexion', templateUrl: './edit-profil-info-connexion.component.html', styleUrls: ['./edit-profil-info-connexion.component.scss'] }] }], function () { return [{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"], args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]] }] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"] }, { type: _services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/auth/profil/edit-profil-info-user/edit-profil-info-user.component.ts": /*!*************************************************************************************************!*\ !*** ./src/app/components/auth/profil/edit-profil-info-user/edit-profil-info-user.component.ts ***! \*************************************************************************************************/ /*! exports provided: EditProfilInfoUserComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditProfilInfoUserComponent", function() { return EditProfilInfoUserComponent; }); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"); /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _services_users_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../services/users.service */ "./src/app/services/users.service.ts"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); function EditProfilInfoUserComponent_mat_error_9_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r0.getErrorPhonenumber(), " "); } } class EditProfilInfoUserComponent { constructor(element, router, authService, dialogRef, formBuilder, usersService) { this.element = element; this.router = router; this.authService = authService; this.dialogRef = dialogRef; this.formBuilder = formBuilder; this.usersService = usersService; this.submitted = false; this.loading = false; this.user = this.element; } ngOnInit() { this.createForm(); } createForm() { let phonenumberregex = /^(?:(?:\+|00)33|0)\s*[1-9](?:[\s.-]*\d{2}){4}$/; this.formGroup = this.formBuilder.group({ phonenumber: [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].pattern(phonenumberregex)], adress: [] }); } // login updateProfil() { this.submitted = true; if (this.formGroup.invalid) { return; } this.usersService.editOneUser(this.element._id, this.formGroup.value).subscribe(data => { // this.router.navigate([this.returnUrl]); console.log(data); this.loading = false; this.dialogRef.close(true); //this.router.navigate(['auth']); }, err => { this.loading = false; console.log(err.error.message); this.authService.openSnackBar(err.error.message); }); } getErrorPhonenumber() { return this.formGroup.get('phonenumber').hasError('pattern') ? 'Numéro de téléphone non valide' : ''; } onConfirm() { // Close the dialog, return true this.dialogRef.close(true); } onNoClick() { this.dialogRef.close(false); } } EditProfilInfoUserComponent.ɵfac = function EditProfilInfoUserComponent_Factory(t) { return new (t || EditProfilInfoUserComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_users_service__WEBPACK_IMPORTED_MODULE_5__["UsersService"])); }; EditProfilInfoUserComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: EditProfilInfoUserComponent, selectors: [["app-edit-profil-info-user"]], decls: 20, vars: 6, consts: [["mat-dialog-title", "", 1, "text-center", "font-weight-bold"], [3, "formGroup", "ngSubmit"], ["mat-dialog-content", "", 1, ""], [1, "row"], [1, "col-5", "col-md-4", "font-weight-bold", "text-lg-right", "parag"], ["appearance", "outline", 1, "col-7", "col-md-5"], ["matInput", "", "placeholder", "", "formControlName", "phonenumber", "required", "", 3, "ngModel", "ngModelChange"], [4, "ngIf"], ["matInput", "", "placeholder", "", "formControlName", "adress", "required", "", 3, "ngModel", "ngModelChange"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-2"], ["mat-raised-button", "", "color", "primary", 1, "btn", "mr-2", 3, "click"], ["mat-raised-button", "", "cdkFocusInitial", "", "color", "primary", 1, "btn", "ml-2", 3, "click"]], template: function EditProfilInfoUserComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h1", 0); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngSubmit", function EditProfilInfoUserComponent_Template_form_ngSubmit_2_listener() { return ctx.updateProfil(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "p", 4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "T\u00E9l\u00E9phone :"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "mat-form-field", 5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "input", 6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function EditProfilInfoUserComponent_Template_input_ngModelChange_8_listener($event) { return ctx.user.phonenumber = $event; }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, EditProfilInfoUserComponent_mat_error_9_Template, 2, 1, "mat-error", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "p", 4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Adresse :"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "mat-form-field", 5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "input", 8); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function EditProfilInfoUserComponent_Template_input_ngModelChange_14_listener($event) { return ctx.user.adress = $event; }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 10); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EditProfilInfoUserComponent_Template_button_click_16_listener() { return ctx.updateProfil(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "Modifier"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function EditProfilInfoUserComponent_Template_button_click_18_listener() { return ctx.onNoClick(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, "Annuler"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("", ctx.element.lastname, " ", ctx.element.firstname, ""); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.formGroup); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.user.phonenumber); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["phonenumber"].valid || ctx.formGroup.controls["phonenumber"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.user.adress); } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogTitle"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormGroupDirective"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_7__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["RequiredValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_9__["MatButton"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatError"]], styles: [".parag[_ngcontent-%COMP%] {\n margin-top: 1em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3Byb2ZpbC9lZGl0LXByb2ZpbC1pbmZvLXVzZXIvQzpcXEZhdGJvYXJQcm9qZWN0XFxhbmd1bGFyLWNsaWVudC9zcmNcXGFwcFxcY29tcG9uZW50c1xcYXV0aFxccHJvZmlsXFxlZGl0LXByb2ZpbC1pbmZvLXVzZXJcXGVkaXQtcHJvZmlsLWluZm8tdXNlci5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3Byb2ZpbC9lZGl0LXByb2ZpbC1pbmZvLXVzZXIvZWRpdC1wcm9maWwtaW5mby11c2VyLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBO0VBQ0ksZUFBQTtBQ0RKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3Byb2ZpbC9lZGl0LXByb2ZpbC1pbmZvLXVzZXIvZWRpdC1wcm9maWwtaW5mby11c2VyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiXHJcblxyXG4ucGFyYWd7XHJcbiAgICBtYXJnaW4tdG9wOiAxZW07XHJcbn0iLCIucGFyYWcge1xuICBtYXJnaW4tdG9wOiAxZW07XG59Il19 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](EditProfilInfoUserComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"], args: [{ selector: 'app-edit-profil-info-user', templateUrl: './edit-profil-info-user.component.html', styleUrls: ['./edit-profil-info-user.component.scss'] }] }], function () { return [{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"], args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]] }] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }, { type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"] }, { type: _services_users_service__WEBPACK_IMPORTED_MODULE_5__["UsersService"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/auth/profil/profil.component.ts": /*!************************************************************!*\ !*** ./src/app/components/auth/profil/profil.component.ts ***! \************************************************************/ /*! exports provided: ProfilComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProfilComponent", function() { return ProfilComponent; }); /* harmony import */ var _edit_profil_info_connexion_edit_profil_info_connexion_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./edit-profil-info-connexion/edit-profil-info-connexion.component */ "./src/app/components/auth/profil/edit-profil-info-connexion/edit-profil-info-connexion.component.ts"); /* harmony import */ var _edit_profil_info_user_edit_profil_info_user_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./edit-profil-info-user/edit-profil-info-user.component */ "./src/app/components/auth/profil/edit-profil-info-user/edit-profil-info-user.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); class ProfilComponent { constructor(authService, dialog) { this.authService = authService; this.dialog = dialog; this.authService.user_info.subscribe((x) => { this.user = x; }); } ngOnInit() { } //edit info user editInfoUser() { const dialogRef = this.dialog.open(_edit_profil_info_user_edit_profil_info_user_component__WEBPACK_IMPORTED_MODULE_1__["EditProfilInfoUserComponent"], { width: '450px', height: '280px', data: this.user }); dialogRef.afterClosed().subscribe(result => { // if (result) { // this.bookService.cancelBook(this._book.id).subscribe( // response => { // this.openDialog() // } // ) // } }); } editInfoUserConnexion() { const dialogRef = this.dialog.open(_edit_profil_info_connexion_edit_profil_info_connexion_component__WEBPACK_IMPORTED_MODULE_0__["EditProfilInfoConnexionComponent"], { width: '450px', height: '280px', data: this.user }); dialogRef.afterClosed().subscribe(result => { // if (result) { // this.bookService.cancelBook(this._book.id).subscribe( // response => { // this.openDialog() // } // ) // } }); } } ProfilComponent.ɵfac = function ProfilComponent_Factory(t) { return new (t || ProfilComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__["MatDialog"])); }; ProfilComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ProfilComponent, selectors: [["app-profil"]], decls: 65, vars: 11, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-11", "col-md-8"], [1, "row"], [1, "col-md-6", "border-right"], ["width", "120", "height", "120", "src", "assets/img/profil/profil.png", "alt", ""], [1, "row", "justify-content-center", "mb-3"], [1, "col-5"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-6", 3, "click"], [1, "col-md-6"], ["mat-raised-button", "", "color", "primary", 1, "col-6", 3, "click"]], template: function ProfilComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "mat-card", 2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "img", 5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "b"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "p", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, " Email : "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "p", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "p", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, " Mot de passe : "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "p", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "***********"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 8); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "button", 9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ProfilComponent_Template_button_click_23_listener() { return ctx.editInfoUserConnexion(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24, "Modifier"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 10); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Nom : "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "Pr\u00E9nom : "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43, "Num\u00E9ro de t\u00E9l\u00E9phone : "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "Date de naissance : "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](53); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](54, "date"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](58, "Adresse : "); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](61); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "div", 8); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ProfilComponent_Template_button_click_63_listener() { return ctx.editInfoUser(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](64, "Modifier"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("", ctx.user.firstname, " ", ctx.user.lastname, ""); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.user.email); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.user.firstname); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.user.lastname); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.user.phonenumber); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](54, 8, ctx.user.birthday, "longDate")); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.user.adress); } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_5__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_5__["MatCardContent"], _angular_material_button__WEBPACK_IMPORTED_MODULE_6__["MatButton"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_7__["DatePipe"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 8.6em;\n margin-bottom: 4em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3Byb2ZpbC9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhdXRoXFxwcm9maWxcXHByb2ZpbC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3Byb2ZpbC9wcm9maWwuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxpQkFBQTtFQUNBLGtCQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2F1dGgvcHJvZmlsL3Byb2ZpbC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiA4LjZlbTtcclxuICAgIG1hcmdpbi1ib3R0b206IDRlbTtcclxuICB9XHJcbiAiLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogOC42ZW07XG4gIG1hcmdpbi1ib3R0b206IDRlbTtcbn0iXX0= */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](ProfilComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"], args: [{ selector: 'app-profil', templateUrl: './profil.component.html', styleUrls: ['./profil.component.scss'] }] }], function () { return [{ type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__["MatDialog"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/auth/tirage/tirage.component.ts": /*!************************************************************!*\ !*** ./src/app/components/auth/tirage/tirage.component.ts ***! \************************************************************/ /*! exports provided: TirageComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TirageComponent", function() { return TirageComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var src_app_services_users_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/users.service */ "./src/app/services/users.service.ts"); /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"); /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js"); /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); function TirageComponent_mat_error_10_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.messageError, " "); } } class TirageComponent { constructor(authService, userService, fb, http, snackbar) { this.authService = authService; this.userService = userService; this.fb = fb; this.http = http; this.snackbar = snackbar; this.URL = "http://localhost:4000"; this.messageError = null; this.tirage = { message: '', success: false, }; } ngOnInit() { this.authService.getUserInfo().subscribe(user => this.user = user); this.createdForm(); } createdForm() { this.formTirage = this.fb.group({ date: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required] }); } postDateTirage() { console.log('date: ', this.formTirage.value); const tiragedate = this.formTirage.value; const reponse = this.http.post(`${this.URL}/api/tirage/date`, tiragedate); reponse.toPromise().then(res => { this.snackbar.open(res.message, 'close'); }).catch(err => { console.log('message erreur =>', err.error.message); this.messageError = err.error.message; }); } getTirage() { const resultatTirage = this.http.get(`${this.URL}/api/tirage`); resultatTirage.toPromise().then((res) => { this.tirage = res; console.log('resultar ', this.tirage); }).catch(err => console.log('err', err)); } getWinner(user) { } } TirageComponent.ɵfac = function TirageComponent_Factory(t) { return new (t || TirageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_4__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__["MatSnackBar"])); }; TirageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: TirageComponent, selectors: [["app-tirage"]], decls: 21, vars: 3, consts: [[1, "navtop"], [3, "formGroup", "ngSubmit"], [1, "row", "justify-content-center", "mt-3"], ["appearance", "fill", 1, "formu"], ["matInput", "", "formControlName", "date", "type", "date"], [4, "ngIf"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-4", "color-theme"], ["mat-raised-button", "", "color", "primary", 1, "col-4", "color-theme", 3, "click"]], template: function TirageComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-card", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "form", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function TirageComponent_Template_form_ngSubmit_2_listener() { return ctx.postDateTirage(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "mat-form-field", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "mat-label"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Choose a date"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, TirageComponent_mat_error_10_Template, 2, 1, "mat-error", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Excuter"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TirageComponent_Template_button_click_16_listener() { return ctx.getTirage(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Lancer le tirage"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formTirage); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.messageError != null); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.tirage.message, " "); } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_6__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_6__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_7__["MatFormField"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_7__["MatLabel"], _angular_material_input__WEBPACK_IMPORTED_MODULE_8__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_10__["MatButton"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_7__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 12em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3RpcmFnZS9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxhdXRoXFx0aXJhZ2VcXHRpcmFnZS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3RpcmFnZS90aXJhZ2UuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxnQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9hdXRoL3RpcmFnZS90aXJhZ2UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2dG9we1xyXG4gICAgbWFyZ2luLXRvcDogMTJlbTtcclxuICB9IiwiLm5hdnRvcCB7XG4gIG1hcmdpbi10b3A6IDEyZW07XG59Il19 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TirageComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-tirage', templateUrl: './tirage.component.html', styleUrls: ['./tirage.component.scss'] }] }], function () { return [{ type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"] }, { type: src_app_services_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_4__["HttpClient"] }, { type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__["MatSnackBar"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/home/home.component.ts": /*!***************************************************!*\ !*** ./src/app/components/home/home.component.ts ***! \***************************************************/ /*! exports provided: HomeComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomeComponent", function() { return HomeComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"); const imgRange = "assets/img/concours/range.png"; const imgReduction = "assets/img/concours/70.png"; const imgBurger = "assets/img/concours/burger2.png"; const imgDessert = "assets/img/concours/dessert5.png"; const imgMenuJour = "assets/img/concours/menu-jour.png"; const imgMenuChoix = "assets/img/concours/menu-choix.png"; class HomeComponent { constructor(domSanitizer) { this.domSanitizer = domSanitizer; } ngOnInit() { } getImgRange() { return this.domSanitizer.bypassSecurityTrustResourceUrl(imgRange); } getDessert() { return this.domSanitizer.bypassSecurityTrustResourceUrl(imgDessert); } getBurger() { return this.domSanitizer.bypassSecurityTrustResourceUrl(imgBurger); } getMenuJour() { return this.domSanitizer.bypassSecurityTrustResourceUrl(imgMenuJour); } getMenuChoix() { return this.domSanitizer.bypassSecurityTrustResourceUrl(imgMenuChoix); } getReduction() { return this.domSanitizer.bypassSecurityTrustResourceUrl(imgReduction); } } HomeComponent.ɵfac = function HomeComponent_Factory(t) { return new (t || HomeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"])); }; HomeComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: HomeComponent, selectors: [["app-home"]], decls: 48, vars: 6, consts: [[1, "container", "navtop"], [1, "text-center", "gain", "mb-4"], [1, "range"], [1, "text-center", "concours", "font-weight-bold"], [1, "text-center", "concours"], [1, "row"], [1, "col-12", "col-md-6", "order-2", "order-md-1"], [1, "col-12", "col-md-9"], [1, "col-12", "col-md-6", "order-1", "order-md-2"], ["alt", "Image of rangeRover", "width", "80%", 1, "rangeRover", 3, "src"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", "routerLink", "/login", 1, "col-8", "col-md-4", "color-theme"], [1, "lots", "mt-4"], [1, "text-center", "font-weight-bold"], [1, "row", "mt-5"], [1, "col-4"], ["alt", "A description of dessert au choix", "width", "100%", 3, "src"], [1, "text-center", "font-weight-bold", "dessert"], ["alt", "A description burger au choix", "width", "90%", 3, "src"], ["alt", "A description of menu du jour", "width", "60%", 3, "src"], [1, "row", "justify-content-center"], ["alt", "A description of menu au choix", "width", "90%", 3, "src"], ["alt", "A description of 70% de r\u00E9duction", "width", "90%", 3, "src"]], template: function HomeComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h1", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "jeu-concours"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "h2", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Tentez de gagner un Range Rover"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h3", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Du 16 juillet 2020 au 16 septembre 2020"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "h4", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Pour tout achat d'une valeur de 18\u20AC ou plus dans l'un de nos restaurants re\u00E7oit un code Promo"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "h4", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "A l'occasion de l'ouverture de notre 100e restaurants Fatboar, Tentez de repartir avec un Range Rover d'une valeur de 59900\u20AC en participant \u00E0 notre Grand jeu-concours FatBoar."); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "h4", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Il vous suffi d'une seule participation \u00E0 notre jeu concours pour avoir une chance d'\u00EAtre tir\u00E9 au sort et gagner votre Range Rover !"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "h4", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "A noter que chacunes de vos participations vous offrons une r\u00E9compences !"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "img", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Je participe"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "h2", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "100% des tickets seront gagnants"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](28, "img", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "h2", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Un dessert au choix"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](32, "img", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "h2", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "Un burger au choix"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "img", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "h2", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "Un menu du jour"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](41, "img", 21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "h2", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "Un menu au choix"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](45, "img", 22); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "h2", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, "70% de r\u00E9duction"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getImgRange(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getDessert(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getBurger(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getMenuJour(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getMenuChoix(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx.getReduction(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]); } }, directives: [_angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterLink"]], styles: ["@import url(\"https://fonts.googleapis.com/css2?family=Indie+Flower&family=Pacifico&family=Pangolin&family=Permanent+Marker&display=swap\");\n@import url(\"https://fonts.googleapis.com/css2?family=Maven+Pro:wght@900&display=swap\");\n.navtop[_ngcontent-%COMP%] {\n margin-top: 6em;\n}\n.gain[_ngcontent-%COMP%] {\n color: #1e0338;\n font-family: \"Indie Flower\", cursive;\n font-family: \"Pacifico\", cursive;\n font-family: \"Pangolin\", cursive;\n font-family: \"Permanent Marker\", cursive;\n font-size: 2.5em;\n}\n@media screen and (max-width: 640px) {\n .rangeRover[_ngcontent-%COMP%] {\n margin-left: 3em;\n }\n}\n.tex[_ngcontent-%COMP%] {\n font-family: \"Maven Pro\", sans-serif;\n}\n.dessert[_ngcontent-%COMP%] {\n margin-top: 0.7em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9ob21lL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGhvbWVcXGhvbWUuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvaG9tZS9ob21lLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNRLHlJQUFBO0FBRUEsdUZBQUE7QUFFUjtFQUNJLGVBQUE7QUNGSjtBREtFO0VBQ0UsY0FBQTtFQUNBLG9DQUFBO0VBQ0EsZ0NBQUE7RUFDQSxnQ0FBQTtFQUNBLHdDQUFBO0VBQ0EsZ0JBQUE7QUNGSjtBRE1FO0VBQ0U7SUFDRyxnQkFBQTtFQ0hMO0FBQ0Y7QURNQTtFQUNFLG9DQUFBO0FDSkY7QURPQTtFQUNFLGlCQUFBO0FDSkYiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2hvbWUvaG9tZS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIlxyXG5AaW1wb3J0IHVybCgnaHR0cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9jc3MyP2ZhbWlseT1JbmRpZStGbG93ZXImZmFtaWx5PVBhY2lmaWNvJmZhbWlseT1QYW5nb2xpbiZmYW1pbHk9UGVybWFuZW50K01hcmtlciZkaXNwbGF5PXN3YXAnKTtcclxuXHJcbkBpbXBvcnQgdXJsKCdodHRwczovL2ZvbnRzLmdvb2dsZWFwaXMuY29tL2NzczI/ZmFtaWx5PU1hdmVuK1Bybzp3Z2h0QDkwMCZkaXNwbGF5PXN3YXAnKTtcclxuXHJcbi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiA2ZW07XHJcbiAgfVxyXG5cclxuICAuZ2FpbntcclxuICAgIGNvbG9yOnJnYigzMCwgMywgNTYpO1xyXG4gICAgZm9udC1mYW1pbHk6ICdJbmRpZSBGbG93ZXInLCBjdXJzaXZlO1xyXG4gICAgZm9udC1mYW1pbHk6ICdQYWNpZmljbycsIGN1cnNpdmU7XHJcbiAgICBmb250LWZhbWlseTogJ1BhbmdvbGluJywgY3Vyc2l2ZTtcclxuICAgIGZvbnQtZmFtaWx5OiAnUGVybWFuZW50IE1hcmtlcicsIGN1cnNpdmU7XHJcbiAgICBmb250LXNpemU6IDIuNWVtO1xyXG4gIH1cclxuXHJcblxyXG4gIEBtZWRpYSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDY0MHB4KSB7XHJcbiAgICAucmFuZ2VSb3ZlciB7XHJcbiAgICAgICBtYXJnaW4tbGVmdDogM2VtIDtcclxuICAgIH1cclxuICB9XHJcblxyXG4udGV4e1xyXG4gIGZvbnQtZmFtaWx5OiAnTWF2ZW4gUHJvJywgc2Fucy1zZXJpZjtcclxufVxyXG5cclxuLmRlc3NlcnR7XHJcbiAgbWFyZ2luLXRvcDogMC43ZW07XHJcbn1cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuICBcclxuXHJcbiIsIkBpbXBvcnQgdXJsKFwiaHR0cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9jc3MyP2ZhbWlseT1JbmRpZStGbG93ZXImZmFtaWx5PVBhY2lmaWNvJmZhbWlseT1QYW5nb2xpbiZmYW1pbHk9UGVybWFuZW50K01hcmtlciZkaXNwbGF5PXN3YXBcIik7XG5AaW1wb3J0IHVybChcImh0dHBzOi8vZm9udHMuZ29vZ2xlYXBpcy5jb20vY3NzMj9mYW1pbHk9TWF2ZW4rUHJvOndnaHRAOTAwJmRpc3BsYXk9c3dhcFwiKTtcbi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiA2ZW07XG59XG5cbi5nYWluIHtcbiAgY29sb3I6ICMxZTAzMzg7XG4gIGZvbnQtZmFtaWx5OiBcIkluZGllIEZsb3dlclwiLCBjdXJzaXZlO1xuICBmb250LWZhbWlseTogXCJQYWNpZmljb1wiLCBjdXJzaXZlO1xuICBmb250LWZhbWlseTogXCJQYW5nb2xpblwiLCBjdXJzaXZlO1xuICBmb250LWZhbWlseTogXCJQZXJtYW5lbnQgTWFya2VyXCIsIGN1cnNpdmU7XG4gIGZvbnQtc2l6ZTogMi41ZW07XG59XG5cbkBtZWRpYSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDY0MHB4KSB7XG4gIC5yYW5nZVJvdmVyIHtcbiAgICBtYXJnaW4tbGVmdDogM2VtO1xuICB9XG59XG4udGV4IHtcbiAgZm9udC1mYW1pbHk6IFwiTWF2ZW4gUHJvXCIsIHNhbnMtc2VyaWY7XG59XG5cbi5kZXNzZXJ0IHtcbiAgbWFyZ2luLXRvcDogMC43ZW07XG59Il19 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HomeComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.scss'] }] }], function () { return [{ type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/login/login.component.ts": /*!*****************************************************!*\ !*** ./src/app/components/login/login.component.ts ***! \*****************************************************/ /*! exports provided: LoginComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginComponent", function() { return LoginComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"); /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js"); /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js"); /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js"); function LoginComponent_mat_progress_bar_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "mat-progress-bar", 24); } } function LoginComponent_mat_error_32_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorEmail(), " "); } } function LoginComponent_mat_error_38_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorPassword(), " "); } } const googleLogoURL = "../assets/img/social/google+.svg"; const facebookLogoURL = "../assets/img/social/facebook.svg"; class LoginComponent { constructor(router, snackBar, authService, formBuilder, matIconRegistry, domSanitizer) { this.router = router; this.snackBar = snackBar; this.authService = authService; this.formBuilder = formBuilder; this.matIconRegistry = matIconRegistry; this.domSanitizer = domSanitizer; this.submitted = false; this.loading = false; this.hide = true; this.matIconRegistry.addSvgIcon("googleLogo", this.domSanitizer.bypassSecurityTrustResourceUrl(googleLogoURL)), this.matIconRegistry.addSvgIcon("facebookLogo", this.domSanitizer.bypassSecurityTrustResourceUrl(facebookLogoURL)); } ngOnInit() { this.createForm(); } createForm() { let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; this.formGroup = this.formBuilder.group({ email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(emailregex)]], password: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, this.checkPassword]], }); } checkPassword(control) { let enteredPassword = control.value; let passwordCheck = /^(?=.*[a-z])(?=.{6,})/; return (!passwordCheck.test(enteredPassword) && enteredPassword) ? { 'requirements': true } : null; } getErrorEmail() { return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' : this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : ''; } getErrorPassword() { return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' : this.formGroup.get('password').hasError('requirements') ? 'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule' : ''; } get f() { return this.formGroup.controls; } // login signIn() { this.submitted = true; if (this.formGroup.invalid) { return; } this.loading = true; this.authService.signIn(this.formGroup.value).subscribe(data => { // this.router.navigate([this.returnUrl]); console.log(data); this.loading = false; this.router.navigate(['/auth']); setTimeout(() => { document.location.reload(); }, 1000); }, err => { this.loading = false; console.log(err.error.message); this.authService.openSnackBar(err.error.message); }); // this.router.navigate(['/']); } } LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__["MatSnackBar"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"])); }; LoginComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LoginComponent, selectors: [["app-login"]], decls: 49, vars: 6, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-11", "col-lg-5", 2, "border-radius", "10px"], ["class", "col-12", "mode", "indeterminate", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "row", "justify-content-center", "mb-3"], ["mat-raised-button", "", 1, "col-10", "col-md-8", "googlelogin", 2, "background-color", "#AD0505", "color", "white"], [1, "row", "mt-1", "ml-3"], ["svgIcon", "googleLogo", 1, "ml-2"], [1, "ml-2", "marginButton"], ["mat-raised-button", "", 1, "col-10", "col-md-8", "facebooklogin", 2, "background-color", "#2121A1", "color", "white"], ["svgIcon", "facebookLogo", 1, "ml-2"], [1, "row", "mt-3", "justify-content-center"], [1, "col-4"], [1, "col-1"], [1, "col-10"], ["matInput", "", "placeholder", "Adresse email", "formControlName", "email", "required", ""], [4, "ngIf"], ["matInput", "", "placeholder", "Mot de passe", "formControlName", "password", "required", "", 3, "type"], ["matSuffix", "", 3, "click"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-6", "color-theme"], ["_ngcontent-yhd-c250", "", "routerlink", "/login/lost-password", "ng-reflect-router-link", "/login/lost-password", "href", "/login/lost-password", 2, "color", "rgb(0, 81, 168)", "background-color", "rgb(255, 255, 255)"], ["_ngcontent-yhd-c250", "", "routerlink", "/register", "ng-reflect-router-link", "/register", "href", "/register", 1, "ml-1", 2, "color", "rgb(0, 81, 168)", "background-color", "rgb(255, 255, 255)"], ["mode", "indeterminate", 1, "col-12"]], template: function LoginComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-card", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LoginComponent_mat_progress_bar_3_Template, 1, 0, "mat-progress-bar", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "form", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function LoginComponent_Template_form_ngSubmit_5_listener() { return ctx.signIn(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h1", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "b"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Connexion"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "mat-icon", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "p", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Se connecter avec Google"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "mat-icon", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "p", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Se connecter avec Facebook"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "hr"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "ou"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](28, "hr"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "mat-form-field", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](32, LoginComponent_mat_error_32_Template, 2, 1, "mat-error", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "mat-form-field", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](35, "input", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "mat-icon", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LoginComponent_Template_mat_icon_click_36_listener() { return ctx.hide = !ctx.hide; }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](38, LoginComponent_mat_error_38_Template, 2, 1, "mat-error", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "button", 21); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Se connecter"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "p", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "a", 22); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, " Mot de passe oubli\u00E9 ? "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "p", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Vous n'avez pas encore de compte?"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "a", 23); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "\nCr\u00E9er un compte\n"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loading); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](27); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid && ctx.formGroup.controls["email"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("type", ctx.hide ? "password" : "text"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.hide ? "visibility_off" : "visibility"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid && ctx.formGroup.controls["password"].touched); } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCard"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_button__WEBPACK_IMPORTED_MODULE_9__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIcon"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_11__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatSuffix"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n margin-bottom: 3em;\n}\n\n.facebooklogin[_ngcontent-%COMP%] {\n margin-bottom: -0.5em !important;\n}\n\n.googlelogin[_ngcontent-%COMP%] {\n margin-bottom: -0.5em !important;\n}\n\n.marginButton[_ngcontent-%COMP%] {\n margin-bottom: 0em !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxsb2dpblxcbG9naW4uY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvbG9naW4vbG9naW4uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxlQUFBO0VBQ0Esa0JBQUE7QUNDSjs7QURFRTtFQUNFLGdDQUFBO0FDQ0o7O0FEQ0U7RUFDRSxnQ0FBQTtBQ0VKOztBREFFO0VBQ0UsNkJBQUE7QUNHSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvbG9naW4vbG9naW4uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2dG9we1xyXG4gICAgbWFyZ2luLXRvcDogN2VtO1xyXG4gICAgbWFyZ2luLWJvdHRvbTogM2VtO1xyXG4gIH1cclxuIFxyXG4gIC5mYWNlYm9va2xvZ2lue1xyXG4gICAgbWFyZ2luLWJvdHRvbTogLTAuNWVtICFpbXBvcnRhbnQ7XHJcbiAgfVxyXG4gIC5nb29nbGVsb2dpbntcclxuICAgIG1hcmdpbi1ib3R0b206IC0wLjVlbSAhaW1wb3J0YW50O1xyXG4gIH1cclxuICAubWFyZ2luQnV0dG9ue1xyXG4gICAgbWFyZ2luLWJvdHRvbTogMGVtICFpbXBvcnRhbnQ7XHJcbiAgfVxyXG5cclxuICIsIi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiA3ZW07XG4gIG1hcmdpbi1ib3R0b206IDNlbTtcbn1cblxuLmZhY2Vib29rbG9naW4ge1xuICBtYXJnaW4tYm90dG9tOiAtMC41ZW0gIWltcG9ydGFudDtcbn1cblxuLmdvb2dsZWxvZ2luIHtcbiAgbWFyZ2luLWJvdHRvbTogLTAuNWVtICFpbXBvcnRhbnQ7XG59XG5cbi5tYXJnaW5CdXR0b24ge1xuICBtYXJnaW4tYm90dG9tOiAwZW0gIWltcG9ydGFudDtcbn0iXX0= */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LoginComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-login', templateUrl: './login.component.html', styleUrls: ['./login.component.scss'] }] }], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] }, { type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_3__["MatSnackBar"] }, { type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/login/lost-password/lost-password.component.ts": /*!***************************************************************************!*\ !*** ./src/app/components/login/lost-password/lost-password.component.ts ***! \***************************************************************************/ /*! exports provided: LostPasswordComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LostPasswordComponent", function() { return LostPasswordComponent; }); /* harmony import */ var _shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../shared/confirm-message/confirm-message.component */ "./src/app/components/shared/confirm-message/confirm-message.component.ts"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"); /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js"); function LostPasswordComponent_mat_progress_bar_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "mat-progress-bar", 12); } } function LostPasswordComponent_mat_error_14_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorEmail(), " "); } } class LostPasswordComponent { constructor(router, snackBar, dialog, authService, formBuilder) { this.router = router; this.snackBar = snackBar; this.dialog = dialog; this.authService = authService; this.formBuilder = formBuilder; this.submitted = false; this.loading = false; } ngOnInit() { this.createForm(); } createForm() { let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; this.formGroup = this.formBuilder.group({ email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(emailregex)]] }); } getErrorEmail() { return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' : this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : ''; } get f() { return this.formGroup.controls; } // lost password lostPassword() { this.submitted = true; if (this.formGroup.invalid) { return; } this.loading = true; this.authService.lostPassword(this.formGroup.value).subscribe(data => { console.log(JSON.stringify(data)); this.loading = false; this.openDialog(data); }, err => { this.loading = false; this.authService.openSnackBar(err.error.message); }); } openDialog(data) { const dialogRef = this.dialog.open(_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_0__["ConfirmMessageComponent"], { width: '38%', data: { response: data } }); dialogRef.afterClosed().subscribe(() => { this.router.navigate(['/login']); }); } } LostPasswordComponent.ɵfac = function LostPasswordComponent_Factory(t) { return new (t || LostPasswordComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_4__["MatSnackBar"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__["MatDialog"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_6__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"])); }; LostPasswordComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: LostPasswordComponent, selectors: [["app-lost-password"]], decls: 18, vars: 3, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-10", "col-lg-7", 2, "border-radius", "30px"], ["class", "col-12", "mode", "indeterminate", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "row", "justify-content-center", "mt-2"], [1, "text-center"], [1, "col-10"], ["matInput", "", "placeholder", "Adresse email", "formControlName", "email", "required", ""], [4, "ngIf"], [1, "row", "justify-content-center", "my-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-8", "col-md-4", "color-theme"], ["mode", "indeterminate", 1, "col-12"]], template: function LostPasswordComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "mat-card", 2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, LostPasswordComponent_mat_progress_bar_3_Template, 1, 0, "mat-progress-bar", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "form", 4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngSubmit", function LostPasswordComponent_Template_form_ngSubmit_5_listener() { return ctx.lostPassword(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "h1", 5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "b"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Mot de passe oubli\u00E9 ?"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "h3", 6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Pas de probl\u00E8me ! Renseignez votre adresse e-mail ci-dessous, nous vous enverrons un lien pour r\u00E9initialiser votre mot de passe."); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "mat-form-field", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "input", 8); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, LostPasswordComponent_mat_error_14_Template, 2, 1, "mat-error", 9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 10); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 11); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " Envoyer"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.loading); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.formGroup); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid || ctx.formGroup.controls["email"].touched); } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCard"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_10__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_button__WEBPACK_IMPORTED_MODULE_11__["MatButton"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_12__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_9__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 10em;\n margin-bottom: 5.2em;\n}\n\n.marginButton[_ngcontent-%COMP%] {\n margin-bottom: 0em !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi9sb3N0LXBhc3N3b3JkL0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXGxvZ2luXFxsb3N0LXBhc3N3b3JkXFxsb3N0LXBhc3N3b3JkLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2xvZ2luL2xvc3QtcGFzc3dvcmQvbG9zdC1wYXNzd29yZC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGdCQUFBO0VBQ0Esb0JBQUE7QUNDSjs7QURHRTtFQUNFLDZCQUFBO0FDQUoiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL2xvZ2luL2xvc3QtcGFzc3dvcmQvbG9zdC1wYXNzd29yZC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiAxMGVtO1xyXG4gICAgbWFyZ2luLWJvdHRvbTogNS4yZW07XHJcbiAgfVxyXG4gXHJcblxyXG4gIC5tYXJnaW5CdXR0b257XHJcbiAgICBtYXJnaW4tYm90dG9tOiAwZW0gIWltcG9ydGFudDtcclxuICB9XHJcblxyXG4gIiwiLm5hdnRvcCB7XG4gIG1hcmdpbi10b3A6IDEwZW07XG4gIG1hcmdpbi1ib3R0b206IDUuMmVtO1xufVxuXG4ubWFyZ2luQnV0dG9uIHtcbiAgbWFyZ2luLWJvdHRvbTogMGVtICFpbXBvcnRhbnQ7XG59Il19 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](LostPasswordComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"], args: [{ selector: 'app-lost-password', templateUrl: './lost-password.component.html', styleUrls: ['./lost-password.component.scss'] }] }], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }, { type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_4__["MatSnackBar"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__["MatDialog"] }, { type: _services_auth_service__WEBPACK_IMPORTED_MODULE_6__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/login/reset-password/reset-password.component.ts": /*!*****************************************************************************!*\ !*** ./src/app/components/login/reset-password/reset-password.component.ts ***! \*****************************************************************************/ /*! exports provided: ResetPasswordComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResetPasswordComponent", function() { return ResetPasswordComponent; }); /* harmony import */ var _shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../shared/confirm-message/confirm-message.component */ "./src/app/components/shared/confirm-message/confirm-message.component.ts"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _shared_validator_confirm_password_validator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../shared/validator/confirm-password.validator */ "./src/app/components/shared/validator/confirm-password.validator.ts"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"); /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js"); /* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js"); function ResetPasswordComponent_mat_progress_bar_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "mat-progress-bar", 13); } } function ResetPasswordComponent_mat_error_14_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorPassword(), " "); } } function ResetPasswordComponent_mat_error_18_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorConfirmPassword(), " "); } } class ResetPasswordComponent { constructor(router, snackBar, activatedRoute, authService, formBuilder, dialog) { this.router = router; this.snackBar = snackBar; this.activatedRoute = activatedRoute; this.authService = authService; this.formBuilder = formBuilder; this.dialog = dialog; this.submitted = false; this.loading = false; } ngOnInit() { this.createForm(); this.subscription = this.activatedRoute.params.subscribe(params => { this.token = params.token; }); } ngOnDestroy() { this.subscription.unsubscribe(); } createForm() { this.formGroup = this.formBuilder.group({ password: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, this.checkPassword]], confirmPassword: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required] }, { validator: Object(_shared_validator_confirm_password_validator__WEBPACK_IMPORTED_MODULE_3__["MustMatch"])('password', 'confirmPassword') }); } checkPassword(control) { let enteredPassword = control.value; let passwordCheck = /^(?=.*[a-z])(?=.{6,})/; return (!passwordCheck.test(enteredPassword) && enteredPassword) ? { 'requirements': true } : null; } getErrorPassword() { return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' : this.formGroup.get('password').hasError('requirements') ? 'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule' : ''; } getErrorConfirmPassword() { return this.formGroup.get('confirmPassword').hasError('required') ? 'Confirmation mot de passe requise' : this.formGroup.hasError('MustMatch') ? '' : 'Les mots de passe saisis ne sont pas identiques'; } get f() { return this.formGroup.controls; } // login ResetPassword() { this.submitted = true; if (this.formGroup.invalid) { return; } this.loading = true; let data = { 'password': this.formGroup.value.password, 'resetLink': this.token }; this.authService.resetPassword(data).subscribe(data => { console.log(data); this.loading = false; this.openDialog(data); }, err => { this.loading = false; this.authService.openSnackBar(err.error.message); }); } openDialog(data) { const dialogRef = this.dialog.open(_shared_confirm_message_confirm_message_component__WEBPACK_IMPORTED_MODULE_0__["ConfirmMessageComponent"], { width: '38%', data: { response: data } }); dialogRef.afterClosed().subscribe(() => { this.router.navigate(['/login']); }); } } ResetPasswordComponent.ɵfac = function ResetPasswordComponent_Factory(t) { return new (t || ResetPasswordComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__["MatSnackBar"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_auth_service__WEBPACK_IMPORTED_MODULE_6__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__["MatDialog"])); }; ResetPasswordComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ResetPasswordComponent, selectors: [["app-reset-password"]], decls: 22, vars: 4, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-10", "col-lg-7", 2, "border-radius", "30px"], ["class", "col-12", "mode", "indeterminate", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "row", "justify-content-center", "mt-2"], [1, "text-center"], [1, "col-10"], ["matInput", "", "placeholder", "Nouveau mot de passe", "type", "password", "formControlName", "password", "required", ""], [4, "ngIf"], ["matInput", "", "placeholder", "Confirmer votre mot de passe", "type", "password", "formControlName", "confirmPassword", "required", ""], [1, "row", "justify-content-center", "my-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-8", "col-md-4", "color-theme"], ["mode", "indeterminate", 1, "col-12"]], template: function ResetPasswordComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "mat-card", 2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, ResetPasswordComponent_mat_progress_bar_3_Template, 1, 0, "mat-progress-bar", 3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "form", 4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngSubmit", function ResetPasswordComponent_Template_form_ngSubmit_5_listener() { return ctx.ResetPassword(); }); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "h1", 5); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "b"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "R\u00E9initialiser votre mot de passe"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "h3", 6); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Renseignez votre nouveau mot de passe ci-dessous."); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "mat-form-field", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "input", 8); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, ResetPasswordComponent_mat_error_14_Template, 2, 1, "mat-error", 9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "mat-form-field", 7); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](17, "input", 10); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, ResetPasswordComponent_mat_error_18_Template, 2, 1, "mat-error", 9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 11); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "button", 12); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, " Envoyer"); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.loading); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.formGroup); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid || ctx.formGroup.controls["password"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid || ctx.formGroup.controls["password"].touched); } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_8__["MatCard"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _angular_material_card__WEBPACK_IMPORTED_MODULE_8__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_11__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_button__WEBPACK_IMPORTED_MODULE_12__["MatButton"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_13__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 9em;\n margin-bottom: 3.8em;\n}\n\n.marginButton[_ngcontent-%COMP%] {\n margin-bottom: 0em !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi9yZXNldC1wYXNzd29yZC9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxsb2dpblxccmVzZXQtcGFzc3dvcmRcXHJlc2V0LXBhc3N3b3JkLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9jb21wb25lbnRzL2xvZ2luL3Jlc2V0LXBhc3N3b3JkL3Jlc2V0LXBhc3N3b3JkLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksZUFBQTtFQUNBLG9CQUFBO0FDQ0o7O0FER0U7RUFDRSw2QkFBQTtBQ0FKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9sb2dpbi9yZXNldC1wYXNzd29yZC9yZXNldC1wYXNzd29yZC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXZ0b3B7XHJcbiAgICBtYXJnaW4tdG9wOiA5ZW07XHJcbiAgICBtYXJnaW4tYm90dG9tOiAzLjhlbTtcclxuICB9XHJcbiBcclxuXHJcbiAgLm1hcmdpbkJ1dHRvbntcclxuICAgIG1hcmdpbi1ib3R0b206IDBlbSAhaW1wb3J0YW50O1xyXG4gIH1cclxuXHJcbiAiLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogOWVtO1xuICBtYXJnaW4tYm90dG9tOiAzLjhlbTtcbn1cblxuLm1hcmdpbkJ1dHRvbiB7XG4gIG1hcmdpbi1ib3R0b206IDBlbSAhaW1wb3J0YW50O1xufSJdfQ== */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](ResetPasswordComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"], args: [{ selector: 'app-reset-password', templateUrl: './reset-password.component.html', styleUrls: ['./reset-password.component.scss'] }] }], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] }, { type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_5__["MatSnackBar"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"] }, { type: _services_auth_service__WEBPACK_IMPORTED_MODULE_6__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__["MatDialog"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/register/register.component.ts": /*!***********************************************************!*\ !*** ./src/app/components/register/register.component.ts ***! \***********************************************************/ /*! exports provided: RegisterComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RegisterComponent", function() { return RegisterComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var _shared_validator_confirm_password_validator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../shared/validator/confirm-password.validator */ "./src/app/components/shared/validator/confirm-password.validator.ts"); /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"); /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js"); /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js"); /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/datepicker */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/datepicker.js"); /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js"); function RegisterComponent_mat_progress_bar_5_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "mat-progress-bar", 36); } } function RegisterComponent_mat_error_31_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorLastname(), " "); } } function RegisterComponent_mat_error_34_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorFirstname(), " "); } } function RegisterComponent_mat_error_38_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r3.getErrorPhonenumber(), " "); } } function RegisterComponent_mat_error_47_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r5.getErrorDate(), " "); } } function RegisterComponent_mat_error_51_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r6.getErrorAdress(), " "); } } function RegisterComponent_mat_error_55_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r7.getErrorEmail(), " "); } } function RegisterComponent_mat_error_61_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r8.getErrorPassword(), " "); } } function RegisterComponent_mat_error_67_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r9.getErrorConfirmPassword(), " "); } } function RegisterComponent_mat_error_79_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-error", 37); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r10.getErrorTerms(), " "); } } const googleLogoURL = "../assets/img/social/google+.svg"; const facebookLogoURL = "../assets/img/social/facebook.svg"; class RegisterComponent { constructor(router, authService, formBuilder, matIconRegistry, domSanitizer) { this.router = router; this.authService = authService; this.formBuilder = formBuilder; this.matIconRegistry = matIconRegistry; this.domSanitizer = domSanitizer; this.submitted = false; this.loading = false; this.hide = true; this.matIconRegistry.addSvgIcon("googleLogo", this.domSanitizer.bypassSecurityTrustResourceUrl(googleLogoURL)), this.matIconRegistry.addSvgIcon("facebookLogo", this.domSanitizer.bypassSecurityTrustResourceUrl(facebookLogoURL)); const currentYear = new Date().getFullYear(); this.maxDate = new Date(currentYear - 10, 11, 31); } ngOnInit() { this.createForm(); } createForm() { let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; let caracereregex = /^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/; let adressregex = /^[A-z0-9À-ž\s ,.'-]+$/; let phonenumberregex = /^(?:(?:\+|00)33|0)\s*[1-9](?:[\s.-]*\d{2}){4}$/; let dateregex = /^((31(?!\ (Feb(ruary)?|Apr(il)?|June?|(Sep(?=\b|t)t?|Nov)(ember)?)))|((30|29)(?!\ Feb(ruary)?))|(29(?=\ Feb(ruary)?\ (((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))))|(0?[1-9])|1\d|2[0-8])\ (Jan(uary)?|Feb(ruary)?|Ma(r(ch)?|y)|Apr(il)?|Ju((ly?)|(ne?))|Aug(ust)?|Oct(ober)?|(Sep(?=\b|t)t?|Nov|Dec)(ember)?)\ ((1[6-9]|[2-9]\d)\d{2})$/; this.formGroup = this.formBuilder.group({ lastname: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]], firstname: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(caracereregex)]], phonenumber: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(phonenumberregex)]], birthday: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]], terms: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].requiredTrue], adress: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(adressregex)]], email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].pattern(emailregex)]], password: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required, this.checkPassword]], confirmPassword: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required] }, { validator: Object(_shared_validator_confirm_password_validator__WEBPACK_IMPORTED_MODULE_2__["MustMatch"])('password', 'confirmPassword') }); } checkPasswords(group) { let pass = group.controls.password.value; let confirmPass = group.controls.confirmPassword.value; return pass === confirmPass ? null : { notSame: true }; } getErrorLastname() { return this.formGroup.get('lastname').hasError('required') ? 'Nom requis' : this.formGroup.get('lastname').hasError('pattern') ? 'Nom non valide' : 'Nom non valide'; } getErrorFirstname() { return this.formGroup.get('firstname').hasError('required') ? 'Prénom requis' : this.formGroup.get('firstname').hasError('pattern') ? 'Prénom non valide' : 'Prénom non valide'; } getErrorPhonenumber() { return this.formGroup.get('phonenumber').hasError('required') ? 'Numéro de téléphone requis' : this.formGroup.get('phonenumber').hasError('pattern') ? 'Numéro de téléphone non valide' : ''; } getErrorAdress() { return this.formGroup.get('adress').hasError('required') ? 'adresse requise' : this.formGroup.get('adress').hasError('pattern') ? 'Prénom non valide' : 'Prénom non valide'; } getErrorDate() { return this.formGroup.get('birthday').hasError('required') ? 'Date de naissance requise' : this.formGroup.get('birthday').hasError('pattern') ? 'Date de naissance non valide' : ''; } getErrorTerms() { return this.formGroup.get('terms').hasError('required') ? 'Please accept the terms' : this.formGroup.get('terms').hasError('pattern') ? 'terms not accepted' : ''; } getErrorConfirmPassword() { return this.formGroup.get('confirmPassword').hasError('required') ? 'Confirmation mot de passe requise' : this.formGroup.hasError('MustMatch') ? '' : 'Les mots de passe saisis ne sont pas identiques'; } checkPassword(control) { let enteredPassword = control.value; let passwordCheck = /^(?=.*[A-Z])(?=.*[a-z])(?=.{8,})/; return (!passwordCheck.test(enteredPassword) && enteredPassword) ? { 'requirements': true } : null; } getErrorEmail() { return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' : this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : ''; } getErrorPassword() { return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' : this.formGroup.get('password').hasError('requirements') ? 'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule, une lettre majuscule' : ''; } get f() { return this.formGroup.controls; } // openSnackBar(message : string) { // this.snackBar.open(message, 'action', { // duration: 5000, // }); // } //google signIn signInWithGoogle() { this.authService.signInWithGoogle().subscribe(_user => { // Redirection après l'authentification réussie avec Google this.router.navigate(['/auth']); }, error => { console.log(error); // Gérer l'erreur }); } // this.authService.signGoogle().subscribe( // data=> { // console.log(data); // this.router.navigate(['/auth']); // }, // error=> { // console.log(error); // }); signUp() { this.submitted = true; if (this.formGroup.invalid) { return; } this.loading = true; this.authService.signUP(this.formGroup.value).subscribe(data => { // this.router.navigate([this.returnUrl]); console.log(data); this.loading = false; this.router.navigate(['/auth']); }, err => { this.loading = false; console.log(err.error.message); this.authService.openSnackBar(err.error.message); }); console.log(this.formGroup.value); } } RegisterComponent.ɵfac = function RegisterComponent_Factory(t) { return new (t || RegisterComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"])); }; RegisterComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: RegisterComponent, selectors: [["app-register"]], decls: 87, vars: 18, consts: [[1, "container", "navtop"], [1, "row", "justify-content-center"], [1, "col-11", "col-lg-7"], [3, "formGroup", "ngSubmit"], ["class", "row ", "mode", "indeterminate", 4, "ngIf"], ["mat-raised-button", "", 1, "col-10", "col-lg-5", "mr-lg-2", "mb-2", "googlelogin", 2, "background-color", "#AD0505", "color", "white", 3, "click"], [1, "row", "mt-1", "ml-3"], ["svgIcon", "googleLogo", 1, "ml-2"], [1, "ml-2", "marginButton"], ["mat-raised-button", "", 1, "col-10", "col-lg-5", "ml-lg-2", "mb-2", "facebooklogin", 2, "background-color", "#2121A1", "color", "white"], ["svgIcon", "facebookLogo", 1, "ml-2"], [1, "col-4"], [1, "col-1"], [1, "col-5"], ["matInput", "", "placeholder", "Nom :", "formControlName", "lastname", "required", ""], [4, "ngIf"], ["matInput", "", "placeholder", "Pr\u00E9nom :", "formControlName", "firstname", "required", ""], [1, "col-10"], ["matInput", "", "placeholder", "Num\u00E9ro de t\u00E9l\u00E9phone :", "formControlName", "phonenumber", "required", ""], ["matInput", "", "disabled", "true", "formControlName", "birthday", "required", "", 3, "matDatepicker", "max", "click"], ["matSuffix", "", 3, "for"], ["touchUi", "", "disabled", "false"], ["picker", ""], ["matInput", "", "placeholder", "Adresse :", "formControlName", "adress", "required", ""], ["matInput", "", "placeholder", "Adresse email :", "formControlName", "email", "required", ""], ["matInput", "", "placeholder", "Mot de passe :", "formControlName", "password", "required", "", 3, "type"], ["matSuffix", "", 3, "click"], ["matInput", "", "placeholder", "Confirmer le mot de passe :", "formControlName", "confirmPassword", "required", "", 3, "type"], [1, "stay-signed", "in", "checkbox-container"], [1, "terms"], ["type", "checkbox", "formControlName", "terms"], ["href", "#", 2, "color", "rgb(0, 81, 168)", "background-color", "rgb(255, 255, 255)"], ["style", "color: rgb(170, 19, 8); background-color: rgb(255, 255, 255);", 4, "ngIf"], [1, "row", "justify-content-center", "mt-3"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-6", "color-theme"], ["routerLink", "/login", 1, "ml-1", 2, "color", "rgb(0, 81, 168)", "background-color", "rgb(255, 255, 255)"], ["mode", "indeterminate", 1, "row"], [2, "color", "rgb(170, 19, 8)", "background-color", "rgb(255, 255, 255)"]], template: function RegisterComponent_Template(rf, ctx) { if (rf & 1) { const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "mat-card", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "form", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function RegisterComponent_Template_form_ngSubmit_4_listener() { return ctx.signUp(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, RegisterComponent_mat_progress_bar_5_Template, 1, 0, "mat-progress-bar", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h1", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "b"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Inscription"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function RegisterComponent_Template_button_click_10_listener() { return ctx.signInWithGoogle(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "mat-icon", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "p", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Se connecter avec Google"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "button", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "mat-icon", 10); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "p", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Se connecter avec Facebook"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "hr"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "ou"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 11); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](27, "hr"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "mat-form-field", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](30, "input", 14); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](31, RegisterComponent_mat_error_31_Template, 2, 1, "mat-error", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "mat-form-field", 13); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](33, "input", 16); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, RegisterComponent_mat_error_34_Template, 2, 1, "mat-error", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "mat-form-field", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](37, "input", 18); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](38, RegisterComponent_mat_error_38_Template, 2, 1, "mat-error", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "mat-form-field", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "mat-label"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, "Date de naissance :"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "input", 19); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function RegisterComponent_Template_input_click_43_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](46); return _r4.open(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](44, "mat-datepicker-toggle", 20); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](45, "mat-datepicker", 21, 22); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](47, RegisterComponent_mat_error_47_Template, 2, 1, "mat-error", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "mat-form-field", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](50, "input", 23); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](51, RegisterComponent_mat_error_51_Template, 2, 1, "mat-error", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "mat-form-field", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](54, "input", 24); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](55, RegisterComponent_mat_error_55_Template, 2, 1, "mat-error", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "mat-form-field", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](58, "input", 25); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "mat-icon", 26); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function RegisterComponent_Template_mat_icon_click_59_listener() { return ctx.hide = !ctx.hide; }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](61, RegisterComponent_mat_error_61_Template, 2, 1, "mat-error", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "mat-form-field", 17); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](64, "input", 27); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "mat-icon", 26); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function RegisterComponent_Template_mat_icon_click_65_listener() { return ctx.hide = !ctx.hide; }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](66); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](67, RegisterComponent_mat_error_67_Template, 2, 1, "mat-error", 15); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "span", 28); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "label", 29); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](71, "input", 30); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](72, " J'ai lu et j'accepte "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "a", 31); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74, " les conditions g\u00E9n\u00E9rales d'utilisation "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](75, " et j'ai pris connaissance de la "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "a", 31); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77, " politique de confidentialit\u00E9."); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "label", 29); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](79, RegisterComponent_mat_error_79_Template, 2, 1, "mat-error", 32); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "div", 33); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](81, "button", 34); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](82, "S'inscrire"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](83, "p", 33); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](84, "Vous avez un compte?"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](85, "a", 35); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](86, "Se connecter"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](46); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loading); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](26); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["lastname"].valid || ctx.formGroup.controls["lastname"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["firstname"].valid || ctx.formGroup.controls["firstname"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["phonenumber"].valid || ctx.formGroup.controls["phonenumber"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matDatepicker", _r4)("max", ctx.maxDate); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("for", _r4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["birthday"].valid || ctx.formGroup.controls["birthday"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["adress"].valid || ctx.formGroup.controls["adress"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid || ctx.formGroup.controls["email"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("type", ctx.hide ? "password" : "text"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.hide ? "visibility_off" : "visibility"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid || ctx.formGroup.controls["password"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("type", ctx.hide ? "password" : "text"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.hide ? "visibility_off" : "visibility"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["password"].valid || ctx.formGroup.controls["password"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["terms"].valid || ctx.formGroup.controls["terms"].touched); } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_7__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_material_button__WEBPACK_IMPORTED_MODULE_9__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIcon"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_11__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatLabel"], _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_12__["MatDatepickerInput"], _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_12__["MatDatepickerToggle"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatSuffix"], _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_12__["MatDatepicker"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["CheckboxControlValueAccessor"], _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterLinkWithHref"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_13__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_10__["MatError"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n margin-bottom: 3em;\n}\n\n.marginButton[_ngcontent-%COMP%] {\n margin-bottom: 0em !important;\n}\n\n.terms[_ngcontent-%COMP%] {\n display: inline-block;\n margin-inline: 4.5rem;\n margin-top: 0.5rem;\n}\n\n.test[_ngcontent-%COMP%] {\n display: block;\n margin-left: 3.5rem;\n}\n\n.checkbox[_ngcontent-%COMP%] {\n display: block;\n margin-right: 3.5rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9yZWdpc3Rlci9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxyZWdpc3RlclxccmVnaXN0ZXIuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvcmVnaXN0ZXIvcmVnaXN0ZXIuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxlQUFBO0VBQ0Esa0JBQUE7QUNDRjs7QURFRTtFQUNFLDZCQUFBO0FDQ0o7O0FERUE7RUFDRSxxQkFBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7QUNDRjs7QURFRTtFQUNFLGNBQUE7RUFDQSxtQkFBQTtBQ0NKOztBRENBO0VBQ0UsY0FBQTtFQUNBLG9CQUFBO0FDRUYiLCJmaWxlIjoic3JjL2FwcC9jb21wb25lbnRzL3JlZ2lzdGVyL3JlZ2lzdGVyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdnRvcHtcclxuICBtYXJnaW4tdG9wOiA3ZW07XHJcbiAgbWFyZ2luLWJvdHRvbTogM2VtO1xyXG4gIH1cclxuXHJcbiAgLm1hcmdpbkJ1dHRvbntcclxuICAgIG1hcmdpbi1ib3R0b206IDBlbSAhaW1wb3J0YW50O1xyXG4gIH1cclxuICBcclxuLnRlcm1zeyAgXHJcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xyXG4gIG1hcmdpbi1pbmxpbmU6IDQuNXJlbTtcclxuICBtYXJnaW4tdG9wOiAwLjVyZW07XHJcbiAgfVxyXG5cclxuICAudGVzdHsgXHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIG1hcmdpbi1sZWZ0OiAzLjVyZW07XHJcbn1cclxuLmNoZWNrYm94eyAgXHJcbiAgZGlzcGxheTogYmxvY2s7XHJcbiAgbWFyZ2luLXJpZ2h0OiAzLjVyZW07XHJcbiAgfVxyXG4iLCIubmF2dG9wIHtcbiAgbWFyZ2luLXRvcDogN2VtO1xuICBtYXJnaW4tYm90dG9tOiAzZW07XG59XG5cbi5tYXJnaW5CdXR0b24ge1xuICBtYXJnaW4tYm90dG9tOiAwZW0gIWltcG9ydGFudDtcbn1cblxuLnRlcm1zIHtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBtYXJnaW4taW5saW5lOiA0LjVyZW07XG4gIG1hcmdpbi10b3A6IDAuNXJlbTtcbn1cblxuLnRlc3Qge1xuICBkaXNwbGF5OiBibG9jaztcbiAgbWFyZ2luLWxlZnQ6IDMuNXJlbTtcbn1cblxuLmNoZWNrYm94IHtcbiAgZGlzcGxheTogYmxvY2s7XG4gIG1hcmdpbi1yaWdodDogMy41cmVtO1xufSJdfQ== */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RegisterComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-register', templateUrl: './register.component.html', styleUrls: ['./register.component.scss'] }] }], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }, { type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _angular_material_icon__WEBPACK_IMPORTED_MODULE_5__["MatIconRegistry"] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_6__["DomSanitizer"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/shared/alert-message/alert-message.component.ts": /*!****************************************************************************!*\ !*** ./src/app/components/shared/alert-message/alert-message.component.ts ***! \****************************************************************************/ /*! exports provided: AlertMessageComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlertMessageComponent", function() { return AlertMessageComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/snack-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/snack-bar.js"); class AlertMessageComponent { constructor(snackBarRef, data) { this.snackBarRef = snackBarRef; this.data = data; } } AlertMessageComponent.ɵfac = function AlertMessageComponent_Factory(t) { return new (t || AlertMessageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__["MatSnackBarRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__["MAT_SNACK_BAR_DATA"])); }; AlertMessageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AlertMessageComponent, selectors: [["app-alert-message"]], decls: 8, vars: 1, consts: [[1, ""], [1, "row"], [1, "col-10"], [1, "col-1", "text-right"], [3, "click"]], template: function AlertMessageComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "p", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AlertMessageComponent_Template_p_click_6_listener() { return ctx.snackBarRef.dismiss(); }); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "X"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.data); } }, styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2FsZXJ0LW1lc3NhZ2UvYWxlcnQtbWVzc2FnZS5jb21wb25lbnQuc2NzcyJ9 */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AlertMessageComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-alert-message', templateUrl: './alert-message.component.html', styleUrls: ['./alert-message.component.scss'] }] }], function () { return [{ type: _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__["MatSnackBarRef"] }, { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_1__["MAT_SNACK_BAR_DATA"]] }] }]; }, null); })(); /***/ }), /***/ "./src/app/components/shared/cgu/cgu.component.ts": /*!********************************************************!*\ !*** ./src/app/components/shared/cgu/cgu.component.ts ***! \********************************************************/ /*! exports provided: CguComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CguComponent", function() { return CguComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); class CguComponent { constructor() { } ngOnInit() { } } CguComponent.ɵfac = function CguComponent_Factory(t) { return new (t || CguComponent)(); }; CguComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CguComponent, selectors: [["app-cgu"]], decls: 21, vars: 0, consts: [[1, "container", "navtop"]], template: function CguComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h3"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "ARTICLE 1 \u2013 SOCIETE ORGANISATRICE"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "p"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " La soci\u00E9t\u00E9 Fatboar, soci\u00E9t\u00E9 anonyme au capital de 750 000 Euros, immatricul\u00E9e au RCS de Paris sous le num\u00E9ro 484 969 950, ayant son si\u00E8ge social au 1 bis Rue Gustave Eiffel, 78280 Guyancourt (ci-apr\u00E8s, \u00AB la Soci\u00E9t\u00E9 Organisatrice \u00BB), organise du 16 d\u00E9cembre 2019 au 19 d\u00E9cembre 2019, un jeu gratuit avec obligation d\u2019achat (ci-apr\u00E8s d\u00E9nomm\u00E9 le \u00AB Jeu \u00BB), sur www.fatboar.ovh (ci-apr\u00E8s le \u00AB Site internet \u00BB)."); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Les modalit\u00E9s de participation au Jeu et les modalit\u00E9s de d\u00E9signation des gagnants sont d\u00E9crites dans le pr\u00E9sent r\u00E8glement (ci-apr\u00E8s \u00AB le R\u00E8glement \u00BB). Le R\u00E8glement peut \u00EAtre consult\u00E9 pendant toute la dur\u00E9e du Jeu sur le Site internet, \u00E0 l\u2019adresse url suivante : https://fatboar.ovh/cgu. "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h3"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " ARTICLE 2 \u2013 PARTICIPANTS "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "\nLa participation au Jeu est ouverte \u00E0 toute personne physique majeure domicili\u00E9e en France m\u00E9tropolitaine (ci-apr\u00E8s d\u00E9nomm\u00E9 le ou les \u00AB Participant(s) \u00BB). Toute indication d'identit\u00E9 fausse, erron\u00E9e, incompl\u00E8te entra\u00EEnera l'\u00E9limination imm\u00E9diate de la participation. Fatboar se r\u00E9serve le droit de proc\u00E9der \u00E0 toutes v\u00E9rifications concernant notamment l\u2019identit\u00E9, l\u2018\u00E2ge, les coordonn\u00E9es postales des Participants pour le respect du pr\u00E9sent article comme de l'ensemble du R\u00E8glement, notamment pour \u00E9carter tout Participant ayant commis un abus quelconque, sans toutefois qu'elle ait l'obligation de proc\u00E9der \u00E0 une v\u00E9rification syst\u00E9matique de l'ensemble des Participants, pouvant limiter cette v\u00E9rification au gagnant du Jeu Concours.\n"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "h3"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "\nARTICLE 3 \u2013 MODALITES DE PARTICIPATION"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "\nLa participation au Jeu implique l\u2019acceptation pleine, enti\u00E8re et sans r\u00E9serve du pr\u00E9sent R\u00E8glement, de la l\u00E9gislation en vigueur sur le territoire fran\u00E7ais (notamment, les lois relatives \u00E0 l\u2019Informatique et aux Libert\u00E9s, au respect des bonnes m\u0153urs, \u00E0 la propri\u00E9t\u00E9 litt\u00E9raire et artistique) ainsi que des r\u00E8gles de d\u00E9ontologie en vigueur sur Internet (n\u00E9tiquette, chartes de bonnes conduites, etc.). La participation au Jeu est sous obligation d\u2019achat. Pour participer au Jeu, le Participant doit d\u00E9tenir un code ou qrcode obtenu en caisse apr\u00E8s achat en restaurant d\u2019un montant \u00E9gal ou sup\u00E9rieur \u00E0 18 euros. Ne seront pris en consid\u00E9ration que les formulaires de participations correctement remplis. Les frais de communication et de connexion au r\u00E9seau Internet engag\u00E9s pour la participation au Jeu Concours demeurent \u00E0 la charge du Participant. L\u2019inscription au Jeu est strictement nominative et le joueur ne peut en aucun cas s\u2019y inscrire \u00E0 l\u2019aide de plusieurs comptes, plusieurs pseudonymes, ni pour le compte d'autres participants ou sous une ou plusieurs fausse(s) identit\u00E9(s). Les Participants qui tenteraient de participer au Jeu par des moyens tels qu\u2019automates de participation, programmes \u00E9labor\u00E9s pour des participations automatis\u00E9es, utilisation d\u2019informations autres que celles correspondant \u00E0 leur identit\u00E9, et plus g\u00E9n\u00E9ralement par tous moyens non conformes au pr\u00E9sent R\u00E8glement seraient automatiquement \u00E9limin\u00E9s. Toute inscription au Jeu non conforme aux caract\u00E9ristiques \u00E9nonc\u00E9es ci-dessus ne sera pas prise en compte. Notamment, toute indication d'identit\u00E9 ou d'adresse fausse, erron\u00E9e, incompl\u00E8te entra\u00EEnera l'\u00E9limination imm\u00E9diate de la participation. Toute participation incompl\u00E8te, illisible et/ou incompr\u00E9hensible sera consid\u00E9r\u00E9e comme nulle pour la participation au Jeu.\n"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "h3"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "\nARTICLE 4 \u2013 DESIGNATIONS DES GAGNANTS ET DOTATIONS\n"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "\nDotation mise en jeu lors du tirage au sort, 100 % des tickets seront gagnants, pour un total de 1 500 000 lots dont la r\u00E9partition des gains est d\u00E9finie de la fa\u00E7on suivante : 60% des tickets offrent une entr\u00E9e ou un dessert au choix soit 900000 tickets.\n20% des tickets offrent un burger au choix soit 300000 tickets.\n10% des tickets offrent un menu du jour soit 150000 tickets.\n6% des tickets offrent un menu au choix soit 90000 tickets.\n4% des tickets offrent une r\u00E9duction de 70% sur la commande soit 60000 tickets.\n1 v\u00E9hicule Range Rover Evoque (Tirage au sort \u00E0 la fin du jeu).\nA titre d\u2019information Le v\u00E9hicule Range Rover Evoque est \u00E9quip\u00E9 d\u2019une option roue de secours et carte mains libres, d\u2019une valeur de 59 900 \u20AC TTC (selon le tarif applicable au 16 f\u00E9vrier 2019), consommation mixte (5,4-8,1 L/100km mixte). homologu\u00E9 selon r\u00E9glementation applicable. Les frais d\u2019immatriculation et de mise \u00E0 la route sont \u00E0 la charge du gagnant. Le gagnant devra r\u00E9pondre \u00E0 la soci\u00E9t\u00E9 organisatrice avant le 30/06/2020 pour confirmer l\u2019acceptation du lot gagn\u00E9. Tout gagnant qui ne se sera pas manifest\u00E9 avant cette date sera consid\u00E9r\u00E9 comme ayant d\u00E9finitivement renonc\u00E9 \u00E0 son gain.\n"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "h3"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "\nARTICLE 5 \u2013 ATTRIBUTION DES LOTS"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "\nLes Gagnants seront contact\u00E9s par Fatboar par mail sur l\u2019adresse utilis\u00E9 par le Gagnant lors de la participation au Jeu, dans un d\u00E9lai de dix (10) jours ouvr\u00E9s \u00E0 compter de la fin du Jeu. Toute coordonn\u00E9e incompl\u00E8te, inexacte ou r\u00E9v\u00E9lant une in\u00E9ligibilit\u00E9 sera consid\u00E9r\u00E9e comme nulle et ne permettra pas au Gagnant d\u2019obtenir sa dotation. L\u2019absence de r\u00E9ponse dans les dix (10) jours ouvr\u00E9s vaudra abandon de la dotation par le Gagnant. En cas d\u2019abandon de la dotation par le Gagnant et/ou en l\u2019absence de Gagnant \u00E0 l\u2019issue du Jeu, il sera proc\u00E9d\u00E9 \u00E0 la d\u00E9signation d\u2019un autre gagnant.\n"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "h3"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "\nARTICLE 6 \u2013 RESPONSABILITE"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "\nLa participation au Jeu implique la connaissance et l'acceptation des caract\u00E9ristiques et des limites de l'Internet, notamment en ce qui concerne les performances techniques, les risques d'interruption, et plus g\u00E9n\u00E9ralement, les risques inh\u00E9rents \u00E0 toute connexion et transmission sur Internet, l'absence de protection de certaines donn\u00E9es contre des d\u00E9tournements \u00E9ventuels et les risques de contamination par des \u00E9ventuels virus circulant sur le r\u00E9seau. Fatboar ne saurait donc \u00EAtre tenue pour responsable de la contamination par d\u2019\u00E9ventuels virus ou de l\u2019intrusion d\u2019un tiers dans le syst\u00E8me du terminal des Participants au Jeu et d\u00E9cline toute responsabilit\u00E9 quant aux cons\u00E9quences de la connexion des Participants au r\u00E9seau via le Site internet pour des causes qui ne seraient pas directement et exclusivement imputables \u00E0 Fatboar. Fatboar ne pourra \u00EAtre tenue pour responsable en cas de dysfonctionnements du r\u00E9seau Internet, notamment dus \u00E0 des actes de malveillance externe, qui emp\u00EAcheraient le bon d\u00E9roulement du Jeu et notamment l\u2019acc\u00E8s au Site internet. Fatboar ne pourra \u00EAtre tenue responsable si, pour une raison ind\u00E9pendante de sa volont\u00E9 et/ou en cas de force majeure, le Jeu venait \u00E0 \u00EAtre \u00E9court\u00E9, prolong\u00E9, modifi\u00E9, report\u00E9 ou annul\u00E9 par annonce de Fatboar et ce sans qu\u2019une quelconque indemnisation ne soit due aux Participants. Ces annonces seront consid\u00E9r\u00E9es comme des annexes au pr\u00E9sent R\u00E8glement. ARTICLE 7 \u2013 PUBLICITE\nLe Gagnant autorise Fatboar \u00E0 diffuser, dans le cadre du Jeu, leurs noms, coordonn\u00E9es et images (photographie ou film) sur tout support pendant un d\u00E9lai d'un an \u00E0 compter de la date de fin du Jeu. La diffusion du nom, des coordonn\u00E9es et/ou de l'image du Gagnant n\u2019ouvre droit, dans les conditions susvis\u00E9es \u00E0 aucun droit ou contrepartie financi\u00E8re \u00E0 leur profit. Fatboar se r\u00E9serve le droit d\u2019exiger le cas \u00E9ch\u00E9ant du Gagnants la signature d\u2019un document confirmant le droit susvis\u00E9 de diffuser leur image avant de b\u00E9n\u00E9ficier de leur dotation. ARTICLE 8 \u2013 DONNEES A CARACTERE PERSONNEL\nLa fourniture d\u2019informations nominatives concernant le Participant est n\u00E9cessaire \u00E0 la bonne ex\u00E9cution et gestion du pr\u00E9sent Jeu. Ces informations nominatives sont destin\u00E9es \u00E0 Fatboar repr\u00E9sent\u00E9e par son Directeur G\u00E9n\u00E9ral aux fins d\u2019organisation et de gestion du Jeu. Ces donn\u00E9es sont conserv\u00E9es pour la dur\u00E9e d\u2019ex\u00E9cution du Jeu en ce compris, le cas \u00E9ch\u00E9ant, pour la dur\u00E9e n\u00E9cessaire \u00E0 la gestion des dotations attribu\u00E9es aux Gagnants et/ou conform\u00E9ment \u00E0 ce que la loi oblige. Conform\u00E9ment \u00E0 la r\u00E8glementation relative \u00E0 la protection des donn\u00E9es personnelles, le Participant dispose d\u2019un droit d'acc\u00E8s, d'opposition, de rectification, d'effacement des donn\u00E9es personnelles le concernant, ainsi que du droit d'obtenir la limitation du traitement et de retirer son consentement qu\u2019il peut exercer en justifiant de son identit\u00E9 et en s\u2019adressant \u00E0 Fatboar : Par courrier postal : Fatboar \u2013 1 bis rue Gustave Eiffel, 78280 Guyancourt. Ou par email \u00E0 l\u2019adresse suivante : support@fatboar.ovh. Il dispose \u00E9galement du droit d'introduire une r\u00E9clamation aupr\u00E8s d'une autorit\u00E9 de contr\u00F4le. ARTICLE 9 \u2013 LOI APPLICABLE\nLe R\u00E8glement est soumis \u00E0 la loi fran\u00E7aise. "); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } }, styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n margin-bottom: 3em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY2d1L0M6XFxGYXRib2FyUHJvamVjdFxcYW5ndWxhci1jbGllbnQvc3JjXFxhcHBcXGNvbXBvbmVudHNcXHNoYXJlZFxcY2d1XFxjZ3UuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NndS9jZ3UuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxlQUFBO0VBQ0Esa0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NndS9jZ3UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2dG9we1xyXG4gICAgbWFyZ2luLXRvcDogN2VtO1xyXG4gICAgbWFyZ2luLWJvdHRvbTogM2VtO1xyXG4gICAgfSIsIi5uYXZ0b3Age1xuICBtYXJnaW4tdG9wOiA3ZW07XG4gIG1hcmdpbi1ib3R0b206IDNlbTtcbn0iXX0= */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CguComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-cgu', templateUrl: './cgu.component.html', styleUrls: ['./cgu.component.scss'] }] }], function () { return []; }, null); })(); /***/ }), /***/ "./src/app/components/shared/confirm-message/confirm-message.component.ts": /*!********************************************************************************!*\ !*** ./src/app/components/shared/confirm-message/confirm-message.component.ts ***! \********************************************************************************/ /*! exports provided: ConfirmMessageComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfirmMessageComponent", function() { return ConfirmMessageComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); class ConfirmMessageComponent { constructor(data) { this.data = data; } } ConfirmMessageComponent.ɵfac = function ConfirmMessageComponent_Factory(t) { return new (t || ConfirmMessageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"])); }; ConfirmMessageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ConfirmMessageComponent, selectors: [["app-confirm-message"]], decls: 8, vars: 2, consts: [[1, "container"], [1, "justify-content-center", "mb-2"], ["mat-dialog-content", "", 1, "row", "justify-content-center", "my-2"], [1, "text-center"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-2", "mb-1"], ["mat-raised-button", "", "color", "primary", 3, "mat-dialog-close"]], template: function ConfirmMessageComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h3", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "button", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Ok"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.data.response.message); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("mat-dialog-close", true); } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogClose"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NvbmZpcm0tbWVzc2FnZS9jb25maXJtLW1lc3NhZ2UuY29tcG9uZW50LnNjc3MifQ== */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ConfirmMessageComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-confirm-message', templateUrl: './confirm-message.component.html', styleUrls: ['./confirm-message.component.scss'] }] }], function () { return [{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]] }] }]; }, null); })(); /***/ }), /***/ "./src/app/components/shared/contact/contact.component.ts": /*!****************************************************************!*\ !*** ./src/app/components/shared/contact/contact.component.ts ***! \****************************************************************/ /*! exports provided: ContactComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContactComponent", function() { return ContactComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _formulaire_formulaire_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formulaire/formulaire.component */ "./src/app/components/shared/contact/formulaire/formulaire.component.ts"); /* harmony import */ var _information_information_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./information/information.component */ "./src/app/components/shared/contact/information/information.component.ts"); /* harmony import */ var _map_map_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./map/map.component */ "./src/app/components/shared/contact/map/map.component.ts"); class ContactComponent { constructor() { } ngOnInit() { } } ContactComponent.ɵfac = function ContactComponent_Factory(t) { return new (t || ContactComponent)(); }; ContactComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ContactComponent, selectors: [["app-contact"]], decls: 7, vars: 0, consts: [[1, "container", "navtop"], [1, "row"], [1, "col-md-6"]], template: function ContactComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "app-formulaire"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "app-information"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "app-map"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } }, directives: [_formulaire_formulaire_component__WEBPACK_IMPORTED_MODULE_1__["FormulaireComponent"], _information_information_component__WEBPACK_IMPORTED_MODULE_2__["InformationComponent"], _map_map_component__WEBPACK_IMPORTED_MODULE_3__["MapComponent"]], styles: [".navtop[_ngcontent-%COMP%] {\n margin-top: 7em;\n margin-bottom: 3em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY29udGFjdC9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxzaGFyZWRcXGNvbnRhY3RcXGNvbnRhY3QuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NvbnRhY3QvY29udGFjdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGVBQUE7RUFDQSxrQkFBQTtBQ0NKIiwiZmlsZSI6InNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY29udGFjdC9jb250YWN0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdnRvcHtcclxuICAgIG1hcmdpbi10b3A6IDdlbTtcclxuICAgIG1hcmdpbi1ib3R0b206IDNlbTtcclxuICB9IiwiLm5hdnRvcCB7XG4gIG1hcmdpbi10b3A6IDdlbTtcbiAgbWFyZ2luLWJvdHRvbTogM2VtO1xufSJdfQ== */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ContactComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-contact', templateUrl: './contact.component.html', styleUrls: ['./contact.component.scss'] }] }], function () { return []; }, null); })(); /***/ }), /***/ "./src/app/components/shared/contact/formulaire/confirm/confirm.component.ts": /*!***********************************************************************************!*\ !*** ./src/app/components/shared/contact/formulaire/confirm/confirm.component.ts ***! \***********************************************************************************/ /*! exports provided: ConfirmComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfirmComponent", function() { return ConfirmComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); class ConfirmComponent { constructor(data) { this.data = data; } } ConfirmComponent.ɵfac = function ConfirmComponent_Factory(t) { return new (t || ConfirmComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"])); }; ConfirmComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ConfirmComponent, selectors: [["app-confirm"]], decls: 10, vars: 2, consts: [[1, "container"], [1, "justify-content-center", "mb-4"], ["mat-dialog-title", "", 1, "text-center"], ["mat-dialog-content", "", 1, "row", "justify-content-center", "my-2"], [1, "text-center"], ["mat-dialog-actions", "", 1, "row", "justify-content-center", "mt-5"], ["mat-raised-button", "", "color", "primary", 3, "mat-dialog-close"]], template: function ConfirmComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h1", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Merci pour votre message"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h3", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Ok"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.data.response); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("mat-dialog-close", true); } }, directives: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogTitle"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogContent"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogActions"], _angular_material_button__WEBPACK_IMPORTED_MODULE_2__["MatButton"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MatDialogClose"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NvbnRhY3QvZm9ybXVsYWlyZS9jb25maXJtL2NvbmZpcm0uY29tcG9uZW50LnNjc3MifQ== */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ConfirmComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-confirm', templateUrl: './confirm.component.html', styleUrls: ['./confirm.component.scss'] }] }], function () { return [{ type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_material_dialog__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"]] }] }]; }, null); })(); /***/ }), /***/ "./src/app/components/shared/contact/formulaire/formulaire.component.ts": /*!******************************************************************************!*\ !*** ./src/app/components/shared/contact/formulaire/formulaire.component.ts ***! \******************************************************************************/ /*! exports provided: FormulaireComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormulaireComponent", function() { return FormulaireComponent; }); /* harmony import */ var _confirm_confirm_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./confirm/confirm.component */ "./src/app/components/shared/contact/formulaire/confirm/confirm.component.ts"); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"); /* harmony import */ var src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/contact.service */ "./src/app/services/contact.service.ts"); /* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts"); /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/dialog */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/dialog.js"); /* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/card */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/card.js"); /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"); /* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/form-field */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/form-field.js"); /* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/input */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/input.js"); /* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/button */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/button.js"); /* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/progress-bar */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/progress-bar.js"); function FormulaireComponent_mat_progress_bar_3_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "mat-progress-bar", 11); } } function FormulaireComponent_mat_error_12_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.getErrorLastname(), " "); } } function FormulaireComponent_mat_error_18_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.getErrorEmail(), " "); } } function FormulaireComponent_mat_error_24_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-error"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); } if (rf & 2) { const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r3.getErrorMessage(), " "); } } const googleLogoURL = "../assets/img/social/google+.svg"; const facebookLogoURL = "../assets/img/social/facebook.svg"; class FormulaireComponent { constructor(contactService, authService, formBuilder, dialog) { this.contactService = contactService; this.authService = authService; this.formBuilder = formBuilder; this.dialog = dialog; this.submitted = false; this.loading = false; } ngOnInit() { this.createForm(); } createForm() { let caracereregex = /^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/; let emailregex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; this.formGroup = this.formBuilder.group({ lastname: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern(caracereregex)]], email: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern(emailregex)]], message: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required], }); } getErrorLastname() { return this.formGroup.get('lastname').hasError('required') ? 'Nom requis' : this.formGroup.get('lastname').hasError('pattern') ? 'Nom non valide' : ''; } getErrorEmail() { return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' : this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : ''; } getErrorMessage() { return this.formGroup.get('message').hasError('required') ? 'Message requis' : ''; } get f() { return this.formGroup.controls; } sendMsgContact() { this.submitted = true; if (this.formGroup.invalid) { return; } this.loading = true; this.contactService.sendMsgContact(this.formGroup.value).subscribe(data => { console.log(data); this.response = data.message; this.loading = false; this.openDialog(); }, err => { this.loading = false; console.log(err.error.message); this.authService.openSnackBar(err.error.message); }); } openDialog() { const dialogRef = this.dialog.open(_confirm_confirm_component__WEBPACK_IMPORTED_MODULE_0__["ConfirmComponent"], { height: '40%', width: '38%', data: { response: this.response } }); dialogRef.afterClosed().subscribe(() => { location.reload(); }); } } FormulaireComponent.ɵfac = function FormulaireComponent_Factory(t) { return new (t || FormulaireComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__["MatDialog"])); }; FormulaireComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: FormulaireComponent, selectors: [["app-formulaire"]], decls: 28, vars: 5, consts: [[1, ""], [3, "formGroup", "ngSubmit"], ["class", "row ", "mode", "indeterminate", 4, "ngIf"], [1, "row", "justify-content-center"], ["appearance", "outline", 1, "col-10"], ["matInput", "", "placeholder", "Nom", "formControlName", "lastname"], [4, "ngIf"], ["matInput", "", "placeholder", "Adresse email", "formControlName", "email"], ["rows", "7", "matInput", "", "formControlName", "message"], [1, "row", "justify-content-center", "mt-3", "mb-2"], ["mat-raised-button", "", "color", "primary", "type", "submit", 1, "col-6", "color-theme"], ["mode", "indeterminate", 1, "row"]], template: function FormulaireComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-card", 0); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "mat-card-content"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "form", 1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function FormulaireComponent_Template_form_ngSubmit_2_listener() { return ctx.sendMsgContact(); }); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, FormulaireComponent_mat_progress_bar_3_Template, 1, 0, "mat-progress-bar", 2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "h1", 3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "b"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Contactez-nous"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "mat-form-field", 4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "mat-label"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Nom"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "input", 5); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, FormulaireComponent_mat_error_12_Template, 2, 1, "mat-error", 6); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "mat-form-field", 4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "mat-label"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "Adresse email"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 7); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, FormulaireComponent_mat_error_18_Template, 2, 1, "mat-error", 6); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "mat-form-field", 4); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "mat-label"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, "Message"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](23, "textarea", 8); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, FormulaireComponent_mat_error_24_Template, 2, 1, "mat-error", 6); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 9); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "button", 10); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27, "Envoyer"); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"](); } if (rf & 2) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.formGroup); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.loading); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["lastname"].valid && ctx.formGroup.controls["lastname"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["email"].valid && ctx.formGroup.controls["email"].touched); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.formGroup.controls["message"].valid && ctx.formGroup.controls["message"].touched); } }, directives: [_angular_material_card__WEBPACK_IMPORTED_MODULE_6__["MatCard"], _angular_material_card__WEBPACK_IMPORTED_MODULE_6__["MatCardContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__["MatFormField"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__["MatLabel"], _angular_material_input__WEBPACK_IMPORTED_MODULE_9__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], _angular_material_button__WEBPACK_IMPORTED_MODULE_10__["MatButton"], _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_11__["MatProgressBar"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_8__["MatError"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NvbnRhY3QvZm9ybXVsYWlyZS9mb3JtdWxhaXJlLmNvbXBvbmVudC5zY3NzIn0= */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FormulaireComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"], args: [{ selector: 'app-formulaire', templateUrl: './formulaire.component.html', styleUrls: ['./formulaire.component.scss'] }] }], function () { return [{ type: src_app_services_contact_service__WEBPACK_IMPORTED_MODULE_3__["ContactService"] }, { type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_5__["MatDialog"] }]; }, null); })(); /***/ }), /***/ "./src/app/components/shared/contact/information/information.component.ts": /*!********************************************************************************!*\ !*** ./src/app/components/shared/contact/information/information.component.ts ***! \********************************************************************************/ /*! exports provided: InformationComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InformationComponent", function() { return InformationComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var _angular_material_list__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material/list */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/list.js"); /* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/icon */ "./node_modules/@angular/material/__ivy_ngcc__/fesm2015/icon.js"); class InformationComponent { constructor() { } ngOnInit() { } } InformationComponent.ɵfac = function InformationComponent_Factory(t) { return new (t || InformationComponent)(); }; InformationComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: InformationComponent, selectors: [["app-information"]], decls: 25, vars: 0, consts: [["lang", "en"], ["charset", "utf-8"], [1, "text-center"], [1, "info"], ["mat-list-item", ""], [1, "icon", "mr-2"], [1, "label"], ["mat-list-item", "", "type", "button"], [1, "mr-2"], [1, ""]], template: function InformationComponent_Template(rf, ctx) { if (rf & 1) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "html", 0); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "head"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "meta", 1); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "title"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "FatBoar - Page de contact o\u00F9 un client peut venir faire une r\u00E9clamation ou bien si il a besoins d'informations par rapport au jeu concours"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "body"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h1", 2); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "FatBoar"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 3); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "a", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "mat-icon", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "room"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "span", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "1 Bis Rue Gustave Eiffel, 78280 Guyancourt"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "a", 7); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "mat-icon", 8); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "phone_enabled"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "label", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "01 74 56 64 31"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "a", 4); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "mat-icon", 5); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "email"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "span", 6); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 9); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "contact@fatboar.fr"); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"](); } }, directives: [_angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatListItem"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_2__["MatIcon"]], styles: [".info[_ngcontent-%COMP%] {\n margin-left: 4em;\n margin-right: auto;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY29udGFjdC9pbmZvcm1hdGlvbi9DOlxcRmF0Ym9hclByb2plY3RcXGFuZ3VsYXItY2xpZW50L3NyY1xcYXBwXFxjb21wb25lbnRzXFxzaGFyZWRcXGNvbnRhY3RcXGluZm9ybWF0aW9uXFxpbmZvcm1hdGlvbi5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvY29tcG9uZW50cy9zaGFyZWQvY29udGFjdC9pbmZvcm1hdGlvbi9pbmZvcm1hdGlvbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGdCQUFBO0VBQ0Esa0JBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL2NvbXBvbmVudHMvc2hhcmVkL2NvbnRhY3QvaW5mb3JtYXRpb24vaW5mb3JtYXRpb24uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuaW5mb3tcclxuICAgIG1hcmdpbi1sZWZ0OiA0ZW07XHJcbiAgICBtYXJnaW4tcmlnaHQ6IGF1dG87XHJcbn0iLCIuaW5mbyB7XG4gIG1hcmdpbi1sZWZ0OiA0ZW07XG4gIG1hcmdpbi1yaWdodDogYXV0bztcbn0iXX0= */"] }); /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](InformationComponent, [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"], args: [{ selector: 'app-information', templateUrl: './information.component.html', styleUrls: ['./information.component.scss'] }] }], function () { return []; }, null); })(); /***/ }), /***/ "./src/app/components/shared/contact/map/map.component.ts": /*!****************************************************************!*\ !*** ./src/app/components/shared/contact/map/map.component.ts ***! \****************************************************************/ /*! exports provided: MapComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MapComponent", function() { return MapComponent; }); /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"); /* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! leaflet */ "./node_modules/leaflet/dist/leaflet-src.js"); /* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(leaflet__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var src_app_services_restaurants_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/restaurants.service */ "./src/app/services/restaurants.service.ts"); class MapComponent { constructor(restaurantsService) { this.restaurantsService = restaurantsService; } // Fonction d'initialisation du composant. ngOnInit() { // Déclaration de la carte avec les coordonnées du centre et le niveau de zoom. const macarte = leaflet__WEBPACK_IMPORTED_MODULE_1__["map"]('frugalmap').setView([48.85513, 2.353429], 9); leaflet__WEBPACK_IMPORTED_MODULE_1__["tileLayer"]('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: 'FatBoar', }).addTo(macarte); const myIcon = leaflet__WEBPACK_IMPORTED_MODULE_1__["icon"]({ // iconUrl: 'https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.2.0/images/marker-icon.png' iconUrl: "../assets/img/marker/markericon.png" }); this.restaurantsService.getRestaurants().subscribe((data) => { console.log('test resto', data); data.forEach((res) => { var marker = leaflet__WEBPACK_IMPORTED_MODULE_1__["marker"]([res.latitude, res.longitude], { icon: myIcon }).addTo(macarte); marker.bindPopup(`