dealposbarcode 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1426 @@
1
+ "use strict";
2
+ (self["webpackChunkbarcode_app"] = self["webpackChunkbarcode_app"] || []).push([["main"],{
3
+
4
+ /***/ 158:
5
+ /*!***************************************!*\
6
+ !*** ./src/app/app-routing.module.ts ***!
7
+ \***************************************/
8
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
+
10
+ __webpack_require__.r(__webpack_exports__);
11
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
+ /* harmony export */ "AppRoutingModule": () => (/* binding */ AppRoutingModule)
13
+ /* harmony export */ });
14
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666);
15
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 2508);
16
+ /* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/platform-browser/animations */ 7146);
17
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ 124);
18
+ /* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app.component */ 5041);
19
+ /* harmony import */ var _guard_auth_guard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./guard/auth.guard */ 5826);
20
+ /* harmony import */ var _login_login_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./login/login.component */ 8458);
21
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+ const routes = [
32
+ { path: '', component: _app_component__WEBPACK_IMPORTED_MODULE_0__.AppComponent, children: [
33
+ { path: '', component: _login_login_component__WEBPACK_IMPORTED_MODULE_2__.LoginComponent },
34
+ {
35
+ path: 'pages',
36
+ loadChildren: () => __webpack_require__.e(/*! import() */ "src_app_pages_pages_module_ts").then(__webpack_require__.bind(__webpack_require__, /*! ./pages/pages.module */ 8950)).then(m => m.PagesModule),
37
+ canActivate: [_guard_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard]
38
+ },
39
+ { path: '', redirectTo: '', pathMatch: 'full' },
40
+ ] }
41
+ ];
42
+ class AppRoutingModule {
43
+ }
44
+ AppRoutingModule.ɵfac = function AppRoutingModule_Factory(t) { return new (t || AppRoutingModule)(); };
45
+ AppRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: AppRoutingModule });
46
+ AppRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule,
47
+ _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule,
48
+ _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__.BrowserAnimationsModule,
49
+ _angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterModule.forRoot(routes), _angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterModule] });
50
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](AppRoutingModule, { declarations: [_login_login_component__WEBPACK_IMPORTED_MODULE_2__.LoginComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule,
51
+ _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule,
52
+ _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__.BrowserAnimationsModule, _angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterModule], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterModule] }); })();
53
+
54
+
55
+ /***/ }),
56
+
57
+ /***/ 5041:
58
+ /*!**********************************!*\
59
+ !*** ./src/app/app.component.ts ***!
60
+ \**********************************/
61
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
62
+
63
+ __webpack_require__.r(__webpack_exports__);
64
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
65
+ /* harmony export */ "AppComponent": () => (/* binding */ AppComponent)
66
+ /* harmony export */ });
67
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 124);
68
+ /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ 2218);
69
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ 5921);
70
+ /* harmony import */ var _modal_confirm_update_modal_confirm_update_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modal-confirm-update/modal-confirm-update.component */ 1338);
71
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560);
72
+ /* harmony import */ var _services_query_param_service_query_param_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./services/query-param-service/query-param.service */ 5083);
73
+ /* harmony import */ var _angular_service_worker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/service-worker */ 3769);
74
+ /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
75
+ /* harmony import */ var ng_http_loader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ng-http-loader */ 6298);
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+ class AppComponent {
87
+ constructor(route, activateRoute, queryParamService, updates, matDialog) {
88
+ this.route = route;
89
+ this.activateRoute = activateRoute;
90
+ this.queryParamService = queryParamService;
91
+ this.matDialog = matDialog;
92
+ this.destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__.Subject();
93
+ updates.versionUpdates.subscribe(event => {
94
+ updates.activateUpdate().then(() => this.updateApp(event));
95
+ });
96
+ }
97
+ updateApp(event) {
98
+ if (event.type == 'VERSION_READY') {
99
+ this.matDialog.open(_modal_confirm_update_modal_confirm_update_component__WEBPACK_IMPORTED_MODULE_0__.ModalConfirmUpdateComponent, { disableClose: true });
100
+ }
101
+ }
102
+ ngOnInit() {
103
+ this.getLastRouteEvent();
104
+ }
105
+ getLastRouteEvent() {
106
+ this.route.events
107
+ .pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.takeUntil)(this.destroy$))
108
+ .subscribe((event) => {
109
+ if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_4__.NavigationEnd) {
110
+ this.getParam();
111
+ }
112
+ });
113
+ }
114
+ ngOnDestroy() {
115
+ this.destroy$.next(true);
116
+ this.destroy$.complete();
117
+ }
118
+ getParam() {
119
+ this.activateRoute.queryParamMap
120
+ .pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.takeUntil)(this.destroy$))
121
+ .subscribe(params => {
122
+ if (params) {
123
+ let ID = params.get('ID');
124
+ let billNumber = params.get('Number');
125
+ let outletName = params.get('Outlet');
126
+ let queryParams = { ID: ID, billNumber: billNumber, outletName: outletName };
127
+ this.queryParamService.setState(queryParams);
128
+ }
129
+ });
130
+ }
131
+ }
132
+ AppComponent.ɵfac = function AppComponent_Factory(t) { return new (t || AppComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_query_param_service_query_param_service__WEBPACK_IMPORTED_MODULE_1__.QueryParamService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_service_worker__WEBPACK_IMPORTED_MODULE_6__.SwUpdate), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__.MatDialog)); };
133
+ AppComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({ type: AppComponent, selectors: [["app-root"]], decls: 2, vars: 0, template: function AppComponent_Template(rf, ctx) { if (rf & 1) {
134
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "ng-http-loader")(1, "router-outlet");
135
+ } }, dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterOutlet, ng_http_loader__WEBPACK_IMPORTED_MODULE_8__.NgHttpLoaderComponent], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJhcHAuY29tcG9uZW50LnNjc3MifQ== */"] });
136
+
137
+
138
+ /***/ }),
139
+
140
+ /***/ 6747:
141
+ /*!*******************************!*\
142
+ !*** ./src/app/app.module.ts ***!
143
+ \*******************************/
144
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
145
+
146
+ __webpack_require__.r(__webpack_exports__);
147
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
148
+ /* harmony export */ "AppModule": () => (/* binding */ AppModule)
149
+ /* harmony export */ });
150
+ /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/platform-browser */ 4497);
151
+ /* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app-routing.module */ 158);
152
+ /* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./app.component */ 5041);
153
+ /* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/platform-browser/animations */ 7146);
154
+ /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common/http */ 8987);
155
+ /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-toastr */ 2808);
156
+ /* harmony import */ var ng_http_loader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ng-http-loader */ 6298);
157
+ /* harmony import */ var _guard_auth_guard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./guard/auth.guard */ 5826);
158
+ /* harmony import */ var _shared_components_custom_toast_custom_toast_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shared/components/custom-toast/custom-toast.component */ 3256);
159
+ /* harmony import */ var _angular_service_worker__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/service-worker */ 3769);
160
+ /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../environments/environment */ 2340);
161
+ /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
162
+ /* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./shared/shared.module */ 4466);
163
+ /* harmony import */ var _modal_confirm_update_modal_confirm_update_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./modal-confirm-update/modal-confirm-update.component */ 1338);
164
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 2560);
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+ class AppModule {
184
+ }
185
+ AppModule.ɵfac = function AppModule_Factory(t) { return new (t || AppModule)(); };
186
+ AppModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineNgModule"]({ type: AppModule, bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_1__.AppComponent] });
187
+ AppModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineInjector"]({ providers: [
188
+ _guard_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard
189
+ ], imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_8__.BrowserModule,
190
+ _app_routing_module__WEBPACK_IMPORTED_MODULE_0__.AppRoutingModule,
191
+ _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__.BrowserAnimationsModule,
192
+ _angular_common_http__WEBPACK_IMPORTED_MODULE_10__.HttpClientModule,
193
+ ngx_toastr__WEBPACK_IMPORTED_MODULE_11__.ToastrModule.forRoot({
194
+ toastComponent: _shared_components_custom_toast_custom_toast_component__WEBPACK_IMPORTED_MODULE_3__.CustomToastComponent,
195
+ positionClass: "toast-bottom-right",
196
+ closeButton: true
197
+ }),
198
+ ng_http_loader__WEBPACK_IMPORTED_MODULE_12__.NgHttpLoaderModule.forRoot(),
199
+ _angular_service_worker__WEBPACK_IMPORTED_MODULE_13__.ServiceWorkerModule.register('ngsw-worker.js', {
200
+ enabled: _environments_environment__WEBPACK_IMPORTED_MODULE_4__.environment.production,
201
+ registrationStrategy: 'registerImmediately'
202
+ }),
203
+ _angular_material_dialog__WEBPACK_IMPORTED_MODULE_14__.MatDialogModule,
204
+ _shared_shared_module__WEBPACK_IMPORTED_MODULE_5__.SharedModule] });
205
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsetNgModuleScope"](AppModule, { declarations: [_app_component__WEBPACK_IMPORTED_MODULE_1__.AppComponent, _modal_confirm_update_modal_confirm_update_component__WEBPACK_IMPORTED_MODULE_6__.ModalConfirmUpdateComponent], imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_8__.BrowserModule,
206
+ _app_routing_module__WEBPACK_IMPORTED_MODULE_0__.AppRoutingModule,
207
+ _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__.BrowserAnimationsModule,
208
+ _angular_common_http__WEBPACK_IMPORTED_MODULE_10__.HttpClientModule, ngx_toastr__WEBPACK_IMPORTED_MODULE_11__.ToastrModule, ng_http_loader__WEBPACK_IMPORTED_MODULE_12__.NgHttpLoaderModule, _angular_service_worker__WEBPACK_IMPORTED_MODULE_13__.ServiceWorkerModule, _angular_material_dialog__WEBPACK_IMPORTED_MODULE_14__.MatDialogModule,
209
+ _shared_shared_module__WEBPACK_IMPORTED_MODULE_5__.SharedModule] }); })();
210
+
211
+
212
+ /***/ }),
213
+
214
+ /***/ 5826:
215
+ /*!*************************************!*\
216
+ !*** ./src/app/guard/auth.guard.ts ***!
217
+ \*************************************/
218
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
219
+
220
+ __webpack_require__.r(__webpack_exports__);
221
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
222
+ /* harmony export */ "AuthGuard": () => (/* binding */ AuthGuard)
223
+ /* harmony export */ });
224
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
225
+ /* harmony import */ var _services_authentication_service_authentication_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../services/authentication-service/authentication.service */ 3389);
226
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
227
+
228
+
229
+
230
+ class AuthGuard {
231
+ constructor(_authService, _router) {
232
+ this._authService = _authService;
233
+ this._router = _router;
234
+ }
235
+ canActivate(next, state) {
236
+ if (this._authService.isAuthentication()) {
237
+ return true;
238
+ }
239
+ this._router.navigate(['']);
240
+ return false;
241
+ }
242
+ }
243
+ AuthGuard.ɵfac = function AuthGuard_Factory(t) { return new (t || AuthGuard)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_services_authentication_service_authentication_service__WEBPACK_IMPORTED_MODULE_0__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.Router)); };
244
+ AuthGuard.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: AuthGuard, factory: AuthGuard.ɵfac });
245
+
246
+
247
+ /***/ }),
248
+
249
+ /***/ 8458:
250
+ /*!******************************************!*\
251
+ !*** ./src/app/login/login.component.ts ***!
252
+ \******************************************/
253
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
254
+
255
+ __webpack_require__.r(__webpack_exports__);
256
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
257
+ /* harmony export */ "LoginComponent": () => (/* binding */ LoginComponent)
258
+ /* harmony export */ });
259
+ /* harmony import */ var jwt_decode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jwt-decode */ 9168);
260
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
261
+ /* harmony import */ var _services_http_service_http_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/http-service/http.service */ 734);
262
+ /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ 2808);
263
+ /* harmony import */ var _services_authentication_service_authentication_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/authentication-service/authentication.service */ 3389);
264
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666);
265
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508);
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+ const _c0 = ["domainAutoFocus"];
274
+ const _c1 = ["passAutoFocus"];
275
+ const _c2 = function (a0, a1) { return { "fa-eye-slash": a0, "fa-eye": a1 }; };
276
+ function LoginComponent_i_30_Template(rf, ctx) { if (rf & 1) {
277
+ const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
278
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "i", 38);
279
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function LoginComponent_i_30_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.hideShowPassword()); });
280
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
281
+ } if (rf & 2) {
282
+ const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
283
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction2"](1, _c2, ctx_r3.passwordIcon == "eye", ctx_r3.passwordIcon == "eye-off"));
284
+ } }
285
+ class LoginComponent {
286
+ constructor(_httpService, toastr, auth, elementRef, cdr) {
287
+ this._httpService = _httpService;
288
+ this.toastr = toastr;
289
+ this.auth = auth;
290
+ this.elementRef = elementRef;
291
+ this.cdr = cdr;
292
+ this.password = '';
293
+ this.passwordType = 'password';
294
+ this.passwordIcon = 'eye-off';
295
+ }
296
+ ngOnInit() {
297
+ //change background color to light blue
298
+ this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor = '#edefff';
299
+ }
300
+ ngAfterViewInit() {
301
+ this.initLoginForm();
302
+ }
303
+ ngOnDestroy() {
304
+ //Called once, before the instance is destroyed.
305
+ //Add 'implements OnDestroy' to the class.
306
+ this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor = 'white';
307
+ }
308
+ initLoginForm() {
309
+ let cookiesExist = this.auth.isLoginFormExist();
310
+ this.setAutoFocusDomain();
311
+ if (cookiesExist) {
312
+ this.username = this.auth.getUsername();
313
+ this.posDomain = this.auth.getDomain();
314
+ this.setAutoFocusPass();
315
+ this.cdr.detectChanges();
316
+ }
317
+ }
318
+ setAutoFocusDomain() {
319
+ this.domainElementRef.nativeElement.focus();
320
+ }
321
+ setAutoFocusPass() {
322
+ this.passElementRef.nativeElement.focus();
323
+ }
324
+ //Function: hideShowPassword() will toggle the password visibility with the eye icon
325
+ hideShowPassword() {
326
+ this.passwordType = this.passwordType === 'text' ? 'password' : 'text';
327
+ this.passwordIcon = this.passwordIcon === 'eye-off' ? 'eye' : 'eye-off';
328
+ }
329
+ login() {
330
+ var obj = {
331
+ client_id: this.username,
332
+ client_secret: this.password,
333
+ };
334
+ var check = {
335
+ POSDomain: this.posDomain
336
+ };
337
+ var url = "";
338
+ if (!this.posDomain.includes("http://")) {
339
+ url = "https://" + this.posDomain;
340
+ }
341
+ this._httpService.post(url + "/api/v3/Token", JSON.stringify(obj)).subscribe(data => {
342
+ if (data.access_token != null || data.access_token != undefined) {
343
+ let token = data.access_token;
344
+ let expiredAt = data.expiredAt;
345
+ //Set to localstorage
346
+ localStorage.setItem("Token", token);
347
+ localStorage.setItem("ExpireDate", expiredAt);
348
+ this.auth.saveLoginForm(this.posDomain, this.username);
349
+ let decoded = (0,jwt_decode__WEBPACK_IMPORTED_MODULE_0__["default"])(token);
350
+ let roles = decoded["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];
351
+ let requiredRole = roles ? roles.find(x => x == "Products" || x == "Prod") : null;
352
+ this.auth.setRoles(roles);
353
+ if (requiredRole == "Products" || requiredRole == "Prod") {
354
+ this.auth.login("/pages");
355
+ }
356
+ else {
357
+ this.toastr.error('Require products role to access this feature!', 'Error');
358
+ }
359
+ }
360
+ }, err => {
361
+ console.error(err);
362
+ });
363
+ }
364
+ }
365
+ LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_http_service_http_service__WEBPACK_IMPORTED_MODULE_1__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_authentication_service_authentication_service__WEBPACK_IMPORTED_MODULE_2__.AuthenticationService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__.ChangeDetectorRef)); };
366
+ LoginComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: LoginComponent, selectors: [["app-login"]], viewQuery: function LoginComponent_Query(rf, ctx) { if (rf & 1) {
367
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c0, 5);
368
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c1, 5);
369
+ } if (rf & 2) {
370
+ let _t;
371
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.domainElementRef = _t.first);
372
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.passElementRef = _t.first);
373
+ } }, decls: 55, vars: 5, consts: [[1, "container"], [1, "row", "mt-5", "mt-md-0", "align-self-center"], [1, "col-12", "col-md-7", "text-center"], [1, "big-display", "my-5", "py-5", "robotoslab", "d-none", "d-md-block"], ["src", "https://res.cloudinary.com/dealpos/image/upload/w_300/v1615189586/Barcode/barcode.png", "alt", "integration-image", 1, "img-fluid", "mt-5", "pt-5"], [1, "col-12", "col-md-5", "order-first", "order-md-last"], [1, "big-display", "text-center", "my-5", "py-5", "robotoslab", "d-block", "d-md-none"], [1, "card"], [1, "card-body", "py-8"], [1, "card-title", "mt-1"], [1, "ms-2", "fw-normal", "robotoslab"], [1, "mt-6"], [1, "form-label-group"], ["type", "text", "name", "inputPOSDomain", "id", "inputPOSDomain", "placeholder", "POS Domain (xyz.dealpos.com)", "required", "", "pattern", "(https:\\/\\/)?\\w+.dealpos(.com|.net|.co.id)(\\/)?", 1, "form-control", "text-start", 3, "ngModel", "ngModelChange"], ["domainAutoFocus", "", "domain", "ngModel"], ["for", "inputPOSDomain", 1, "text-start"], ["type", "text", "name", "username", "id", "inputUsername", "placeholder", "Username", "required", "", 1, "form-control", "text-start", 3, "ngModel", "ngModelChange"], ["for", "inputUsername", 1, "text-start"], [1, "form-label-group", "mb-5", "mb-md-2"], ["name", "something", "id", "inputPassword", "placeholder", "Password", "required", "", 1, "form-control", "text-start", 3, "type", "ngModel", "ngModelChange"], ["passAutoFocus", ""], ["for", "inputPassword", 1, "text-start"], ["class", "passwordIcon fas fa-lg", 3, "ngClass", "click", 4, "ngIf"], [1, "row", "justify-content-start", "align-items-center"], [1, "col-12", "col-lg-5", "order-first", "order-md-last"], ["type", "submit", 1, "btn", "btn-xl", "btn-primary", "btn-block", "font125rem", "robotoslab", "px-10", 3, "click"], [1, "col-12", "d-block", "d-md-none", "text-center"], [1, "pt-1rem", "me-3"], ["target", "_blank", "href", "https://www.dealpos.com"], ["src", "https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png", "alt", "dealpos-logo", 1, "img-fluid"], ["href", "https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete", "target", "_blank"], [1, "pt-1rem", "fst-italic"], [1, "mx-5", "pb-5", "mb-5", "d-none", "d-md-block"], [1, "row", "justify-content-between", "align-items-center"], [1, "col-auto", "d-inline-flex"], [1, "col-auto"], [1, "fw-normal"], ["href", "https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete", "target", "_blank", 2, "text-decoration", "none"], [1, "passwordIcon", "fas", "fa-lg", 3, "ngClass", "click"]], template: function LoginComponent_Template(rf, ctx) { if (rf & 1) {
374
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h1", 3);
375
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "DealPOS - Barcode");
376
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
377
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "img", 4);
378
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
379
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 5)(7, "h1", 6);
380
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, "DealPOS - Barcode");
381
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
382
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "div", 7)(10, "div", 8)(11, "div", 9)(12, "h2", 10);
383
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Sign in");
384
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
385
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "form", 11)(15, "div", 12)(16, "input", 13, 14);
386
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_16_listener($event) { return ctx.posDomain = $event; });
387
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
388
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "label", 15);
389
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](20, "POS Domain (xyz.dealpos.com)");
390
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
391
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "div", 12)(22, "input", 16);
392
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_22_listener($event) { return ctx.username = $event; });
393
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
394
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](23, "label", 17);
395
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24, "Username");
396
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
397
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "div", 18)(26, "input", 19, 20);
398
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_26_listener($event) { return ctx.password = $event; });
399
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
400
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](28, "label", 21);
401
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](29, "Password");
402
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
403
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](30, LoginComponent_i_30_Template, 1, 4, "i", 22);
404
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
405
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "div", 23)(32, "div", 24)(33, "button", 25);
406
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function LoginComponent_Template_button_click_33_listener() { return ctx.login(); });
407
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](34, "Log in");
408
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
409
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "div", 26)(36, "p", 27);
410
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](37, "Powered by : ");
411
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
412
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](38, "a", 28);
413
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](39, "img", 29);
414
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
415
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](40, "a", 30)(41, "p", 31);
416
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](42, "Version 1.3.4");
417
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
418
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](43, "footer", 32)(44, "div", 33)(45, "div", 34)(46, "p", 27);
419
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](47, "Powered by : ");
420
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
421
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](48, "a", 28);
422
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](49, "img", 29);
423
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
424
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](50, "div", 35)(51, "h5", 36)(52, "a", 37)(53, "p", 31);
425
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](54, "Version 1.3.4");
426
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()();
427
+ } if (rf & 2) {
428
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](16);
429
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.posDomain);
430
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
431
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.username);
432
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
433
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("type", ctx.passwordType)("ngModel", ctx.password);
434
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
435
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.password != "");
436
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.PatternValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgForm], styles: [".container[_ngcontent-%COMP%] {\n position: absolute;\n max-width: 100%;\n}\n\n.passwordIcon[_ngcontent-%COMP%] {\n top: 1.8rem;\n right: 0.5rem;\n position: absolute;\n margin: 0 auto !important;\n cursor: pointer;\n}\n\n.big-display[_ngcontent-%COMP%] {\n font-size: 2rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\n@media (min-width: 768px) {\n .container[_ngcontent-%COMP%] {\n max-width: 90%;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n }\n\n .big-display[_ngcontent-%COMP%] {\n font-size: 2.5rem;\n }\n}\n\n@media (min-width: 1200px) {\n .container[_ngcontent-%COMP%] {\n max-width: 70%;\n }\n\n .big-display[_ngcontent-%COMP%] {\n font-size: 3.2rem;\n }\n}\n\nhtml[_ngcontent-%COMP%], body[_ngcontent-%COMP%] {\n height: 100%;\n}\n\nbody[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding-top: 40px;\n padding-bottom: 40px;\n}\n\nfooter[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 0;\n width: 90%;\n left: 3rem;\n}\n\n.pt-1rem[_ngcontent-%COMP%] {\n padding-top: 1rem;\n}\n\n.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%] {\n color: #666666;\n}\n\n.font-xl[_ngcontent-%COMP%] {\n font-size: x-large;\n}\n\n.font125rem[_ngcontent-%COMP%] {\n font-size: 1.25rem;\n}\n\n.robotoslab[_ngcontent-%COMP%] {\n font-family: \"Roboto Slab\";\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvZ2luLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0Usa0JBQUE7RUFDQSxlQUFBO0FBQ0Y7O0FBRUE7RUFDRSxXQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0VBQ0EseUJBQUE7RUFDQSxlQUFBO0FBQ0Y7O0FBRUE7RUFDRSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxnQkFBQTtBQUNGOztBQUdBO0VBQ0U7SUFDRSxjQUFBO0lBQ0EsUUFBQTtJQUNBLFNBQUE7SUFHQSw0Q0FBQTtFQUFGOztFQUdBO0lBQ0UsaUJBQUE7RUFBRjtBQUNGOztBQUdBO0VBQ0U7SUFDRSxjQUFBO0VBREY7O0VBSUE7SUFDRSxpQkFBQTtFQURGO0FBQ0Y7O0FBSUE7O0VBRUUsWUFBQTtBQUZGOztBQUtBO0VBRUUsYUFBQTtFQUVBLG1CQUFBO0VBQ0EsaUJBQUE7RUFDQSxvQkFBQTtBQUZGOztBQUtBO0VBQ0Usa0JBQUE7RUFDQSxTQUFBO0VBQ0EsVUFBQTtFQUNBLFVBQUE7QUFGRjs7QUFLQTtFQUNFLGlCQUFBO0FBRkY7O0FBS0E7RUFDRSxjQUFBO0FBRkY7O0FBS0E7RUFDRSxrQkFBQTtBQUZGOztBQUtBO0VBQ0Usa0JBQUE7QUFGRjs7QUFLQTtFQUNFLDBCQUFBO0FBRkYiLCJmaWxlIjoibG9naW4uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY29udGFpbmVyIHtcclxuICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgbWF4LXdpZHRoOiAxMDAlO1xyXG59XHJcblxyXG4ucGFzc3dvcmRJY29uIHtcclxuICB0b3A6IDEuOHJlbTtcclxuICByaWdodDogMC41cmVtO1xyXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICBtYXJnaW46IDAgYXV0byAhaW1wb3J0YW50O1xyXG4gIGN1cnNvcjogcG9pbnRlcjtcclxufVxyXG5cclxuLmJpZy1kaXNwbGF5IHtcclxuICBmb250LXNpemU6IDJyZW07XHJcbiAgZm9udC13ZWlnaHQ6IDMwMDtcclxuICBsaW5lLWhlaWdodDogMS4yO1xyXG59XHJcblxyXG4vLyBNZWRpdW0gZGV2aWNlcyAodGFibGV0cywgNzY4cHggYW5kIHVwKVxyXG5AbWVkaWEgKG1pbi13aWR0aDogNzY4cHgpIHtcclxuICAuY29udGFpbmVyIHtcclxuICAgIG1heC13aWR0aDogOTAlO1xyXG4gICAgdG9wOiA1MCU7XHJcbiAgICBsZWZ0OiA1MCU7XHJcbiAgICAtbW96LXRyYW5zZm9ybTogdHJhbnNsYXRlWCgtNTAlKSB0cmFuc2xhdGVZKC01MCUpO1xyXG4gICAgLXdlYmtpdC10cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTUwJSkgdHJhbnNsYXRlWSgtNTAlKTtcclxuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtNTAlKSB0cmFuc2xhdGVZKC01MCUpO1xyXG4gIH1cclxuXHJcbiAgLmJpZy1kaXNwbGF5IHtcclxuICAgIGZvbnQtc2l6ZTogMi41cmVtO1xyXG4gIH1cclxufVxyXG5cclxuQG1lZGlhIChtaW4td2lkdGg6IDEyMDBweCkge1xyXG4gIC5jb250YWluZXIge1xyXG4gICAgbWF4LXdpZHRoOiA3MCU7XHJcbiAgfVxyXG5cclxuICAuYmlnLWRpc3BsYXkge1xyXG4gICAgZm9udC1zaXplOiAzLjJyZW07XHJcbiAgfVxyXG59XHJcblxyXG5odG1sLFxyXG5ib2R5IHtcclxuICBoZWlnaHQ6IDEwMCU7XHJcbn1cclxuXHJcbmJvZHkge1xyXG4gIGRpc3BsYXk6IC1tcy1mbGV4Ym94O1xyXG4gIGRpc3BsYXk6IGZsZXg7XHJcbiAgLW1zLWZsZXgtYWxpZ246IGNlbnRlcjtcclxuICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gIHBhZGRpbmctdG9wOiA0MHB4O1xyXG4gIHBhZGRpbmctYm90dG9tOiA0MHB4O1xyXG59XHJcblxyXG5mb290ZXIge1xyXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICBib3R0b206IDA7XHJcbiAgd2lkdGg6IDkwJTtcclxuICBsZWZ0OiAzcmVtO1xyXG59XHJcblxyXG4ucHQtMXJlbSB7XHJcbiAgcGFkZGluZy10b3A6IDFyZW07XHJcbn1cclxuXHJcbi5mb3JtLWxhYmVsLWdyb3VwID4gbGFiZWwge1xyXG4gIGNvbG9yOiAjNjY2NjY2O1xyXG59XHJcblxyXG4uZm9udC14bCB7XHJcbiAgZm9udC1zaXplOiB4LWxhcmdlO1xyXG59XHJcblxyXG4uZm9udDEyNXJlbSB7XHJcbiAgZm9udC1zaXplOiAxLjI1cmVtO1xyXG59XHJcblxyXG4ucm9ib3Rvc2xhYiB7XHJcbiAgZm9udC1mYW1pbHk6IFwiUm9ib3RvIFNsYWJcIjtcclxufVxyXG4iXX0= */"] });
437
+
438
+
439
+ /***/ }),
440
+
441
+ /***/ 1338:
442
+ /*!************************************************************************!*\
443
+ !*** ./src/app/modal-confirm-update/modal-confirm-update.component.ts ***!
444
+ \************************************************************************/
445
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
446
+
447
+ __webpack_require__.r(__webpack_exports__);
448
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
449
+ /* harmony export */ "ModalConfirmUpdateComponent": () => (/* binding */ ModalConfirmUpdateComponent)
450
+ /* harmony export */ });
451
+ /* harmony import */ var _shared_components_modal_material_modal_material_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../shared/components/modal-material/modal-material-config */ 6985);
452
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560);
453
+ /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
454
+ /* harmony import */ var _shared_components_modal_material_modal_material_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../shared/components/modal-material/modal-material.component */ 4405);
455
+
456
+
457
+
458
+
459
+ class ModalConfirmUpdateComponent {
460
+ constructor(dialogRef) {
461
+ this.dialogRef = dialogRef;
462
+ this.config = new _shared_components_modal_material_modal_material_config__WEBPACK_IMPORTED_MODULE_0__.ModalMaterialConfig();
463
+ this.config.title = "There is a new update available";
464
+ this.config.hideMoreButton = true;
465
+ }
466
+ onOk() {
467
+ document.location.reload();
468
+ }
469
+ }
470
+ ModalConfirmUpdateComponent.ɵfac = function ModalConfirmUpdateComponent_Factory(t) { return new (t || ModalConfirmUpdateComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__.MatDialogRef)); };
471
+ ModalConfirmUpdateComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ModalConfirmUpdateComponent, selectors: [["app-modal-confirm-update"]], decls: 5, vars: 1, consts: [[3, "config", "onOk", "onCancel"], [1, "row", "p-3"]], template: function ModalConfirmUpdateComponent_Template(rf, ctx) { if (rf & 1) {
472
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "modal-material", 0);
473
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("onOk", function ModalConfirmUpdateComponent_Template_modal_material_onOk_0_listener() { return ctx.onOk(); })("onCancel", function ModalConfirmUpdateComponent_Template_modal_material_onCancel_0_listener() { return ctx.dialogRef.close(); });
474
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "content")(2, "div", 1)(3, "h2");
475
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Do you want to refresh your current app?");
476
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
477
+ } if (rf & 2) {
478
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("config", ctx.config);
479
+ } }, dependencies: [_shared_components_modal_material_modal_material_component__WEBPACK_IMPORTED_MODULE_1__.ModalMaterialComponent], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJtb2RhbC1jb25maXJtLXVwZGF0ZS5jb21wb25lbnQuc2NzcyJ9 */"] });
480
+
481
+
482
+ /***/ }),
483
+
484
+ /***/ 3389:
485
+ /*!***************************************************************************!*\
486
+ !*** ./src/app/services/authentication-service/authentication.service.ts ***!
487
+ \***************************************************************************/
488
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
489
+
490
+ __webpack_require__.r(__webpack_exports__);
491
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
492
+ /* harmony export */ "AuthenticationService": () => (/* binding */ AuthenticationService)
493
+ /* harmony export */ });
494
+ /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 4505);
495
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
496
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
497
+ /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ 2808);
498
+
499
+
500
+
501
+
502
+ class AuthenticationService {
503
+ constructor(_router, toaster) {
504
+ this._router = _router;
505
+ this.toaster = toaster;
506
+ this._roles$ = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject([]);
507
+ }
508
+ login(redirectURL) {
509
+ this._router.navigate([redirectURL]);
510
+ }
511
+ logout() {
512
+ this._roles$.next([]);
513
+ localStorage.removeItem("Roles");
514
+ this._router.navigate(['']);
515
+ }
516
+ setRoles(roles) {
517
+ localStorage.setItem("Roles", JSON.stringify(roles));
518
+ this._roles$.next(roles);
519
+ }
520
+ getRoles() {
521
+ let roles = this._roles$.getValue();
522
+ if (roles.length == 0) {
523
+ let rolesStorage = localStorage.getItem("Roles");
524
+ roles = JSON.parse(rolesStorage);
525
+ this._roles$.next(roles);
526
+ }
527
+ return roles;
528
+ }
529
+ isAuthentication() {
530
+ return localStorage.getItem('Token') != null && !this.isTokenExpired();
531
+ }
532
+ isTokenExpired() {
533
+ const expireDate = new Date(localStorage.getItem('ExpireDate'));
534
+ if (expireDate.getTime() - new Date().getTime() > 0) {
535
+ return false;
536
+ }
537
+ return true;
538
+ }
539
+ saveLoginForm(domain, username) {
540
+ localStorage.setItem('Domain', domain);
541
+ localStorage.setItem('Username', username);
542
+ }
543
+ getUsername() {
544
+ let username = localStorage.getItem('Username');
545
+ return username;
546
+ }
547
+ getDomain() {
548
+ let domain = localStorage.getItem('Domain');
549
+ return domain;
550
+ }
551
+ isLoginFormExist() {
552
+ let isDomainExist = this.getDomain();
553
+ let isUsernameExist = this.getUsername();
554
+ let retVal = false;
555
+ if (isDomainExist && isUsernameExist) {
556
+ retVal = true;
557
+ }
558
+ return retVal;
559
+ }
560
+ }
561
+ AuthenticationService.ɵfac = function AuthenticationService_Factory(t) { return new (t || AuthenticationService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__.ToastrService)); };
562
+ AuthenticationService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: AuthenticationService, factory: AuthenticationService.ɵfac, providedIn: 'root' });
563
+
564
+
565
+ /***/ }),
566
+
567
+ /***/ 734:
568
+ /*!*******************************************************!*\
569
+ !*** ./src/app/services/http-service/http.service.ts ***!
570
+ \*******************************************************/
571
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
572
+
573
+ __webpack_require__.r(__webpack_exports__);
574
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
575
+ /* harmony export */ "HttpService": () => (/* binding */ HttpService)
576
+ /* harmony export */ });
577
+ /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 2378);
578
+ /* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ 8987);
579
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ 9019);
580
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
581
+ /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ 2808);
582
+
583
+
584
+
585
+
586
+
587
+
588
+ class HttpService {
589
+ constructor(http, toastr) {
590
+ this.http = http;
591
+ this.toastr = toastr;
592
+ }
593
+ postFormData(url, data) {
594
+ return new rxjs__WEBPACK_IMPORTED_MODULE_0__.Observable(observer => {
595
+ let token = localStorage.getItem('Token');
596
+ let httpHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
597
+ 'Authorization': 'Bearer ' + token
598
+ });
599
+ let options = {
600
+ headers: httpHeaders
601
+ };
602
+ this.http.post(url, data, options).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.timeout)(100000)).subscribe(data => {
603
+ observer.next(data);
604
+ observer.complete();
605
+ }, err => {
606
+ if (err.status == 200) {
607
+ observer.next(err.error.text);
608
+ observer.complete();
609
+ }
610
+ else {
611
+ let errMessage = this.errorMessageHandling(err);
612
+ this.toastr.error(errMessage.message, errMessage.header);
613
+ observer.error(err);
614
+ }
615
+ });
616
+ });
617
+ }
618
+ post(url, data, time = 100000) {
619
+ return new rxjs__WEBPACK_IMPORTED_MODULE_0__.Observable(observer => {
620
+ let token = localStorage.getItem('Token');
621
+ let httpHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
622
+ 'Content-Type': 'application/json',
623
+ 'Cache-Control': 'no-cache',
624
+ });
625
+ if (token) {
626
+ httpHeaders = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpHeaders({
627
+ 'Content-Type': 'application/json',
628
+ 'Cache-Control': 'no-cache',
629
+ 'Authorization': 'Bearer ' + token
630
+ });
631
+ }
632
+ let options = {
633
+ headers: httpHeaders
634
+ };
635
+ this.http.post(url, data, options).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.timeout)(time)).subscribe(result => {
636
+ observer.next(result);
637
+ observer.complete();
638
+ }, (err) => {
639
+ //Exception Handling
640
+ if (err.status == 200) {
641
+ //when Response is not application/json ex: some API return text/csv
642
+ observer.next(err.error.text);
643
+ observer.complete();
644
+ }
645
+ else {
646
+ let unauthorized = this.unauthorizedErrorHandling(err);
647
+ if (!unauthorized) {
648
+ let errMessage = this.errorMessageHandling(err);
649
+ this.toastr.error(errMessage.message != "" ? errMessage.message : "An unknown error has occured!", errMessage.header);
650
+ }
651
+ observer.error(err);
652
+ }
653
+ });
654
+ });
655
+ }
656
+ unauthorizedErrorHandling(err) {
657
+ let retVal = false;
658
+ if (err.status == 401) {
659
+ //Unauthorized Error Handling
660
+ this.toastr.error("We can't log you in because of authenctication error", "Unauthorized");
661
+ retVal = true;
662
+ }
663
+ return retVal;
664
+ }
665
+ errorMessageHandling(err) {
666
+ let header = "API Error";
667
+ let message = "Exception Message";
668
+ if (err.error) {
669
+ //Handle 4XX error and 5XX Error
670
+ header = "API Error - " + err.status;
671
+ if (err.error.Message) {
672
+ message = err.error.Message;
673
+ }
674
+ }
675
+ else {
676
+ if (err.message) {
677
+ //Handle timeout scenario we do not receive HTTP StatusCode
678
+ header = "API Error - " + err.name;
679
+ message = err.message;
680
+ }
681
+ }
682
+ return { header: header, message: message };
683
+ }
684
+ }
685
+ HttpService.ɵfac = function HttpService_Factory(t) { return new (t || HttpService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__.HttpClient), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__.ToastrService)); };
686
+ HttpService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({ token: HttpService, factory: HttpService.ɵfac, providedIn: 'root' });
687
+
688
+
689
+ /***/ }),
690
+
691
+ /***/ 5083:
692
+ /*!*********************************************************************!*\
693
+ !*** ./src/app/services/query-param-service/query-param.service.ts ***!
694
+ \*********************************************************************/
695
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
696
+
697
+ __webpack_require__.r(__webpack_exports__);
698
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
699
+ /* harmony export */ "QueryParamService": () => (/* binding */ QueryParamService)
700
+ /* harmony export */ });
701
+ /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ 4505);
702
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
703
+
704
+
705
+ class QueryParamService {
706
+ constructor() {
707
+ this.store = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject({ ID: null, billNumber: null, outletName: null });
708
+ }
709
+ getState() {
710
+ return this.store.asObservable();
711
+ }
712
+ setState(param) {
713
+ this.store.next(param);
714
+ }
715
+ }
716
+ QueryParamService.ɵfac = function QueryParamService_Factory(t) { return new (t || QueryParamService)(); };
717
+ QueryParamService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: QueryParamService, factory: QueryParamService.ɵfac, providedIn: 'root' });
718
+
719
+
720
+ /***/ }),
721
+
722
+ /***/ 1197:
723
+ /*!*************************************************************************!*\
724
+ !*** ./src/app/shared/components/autonumberic/autonumeric.directive.ts ***!
725
+ \*************************************************************************/
726
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
727
+
728
+ __webpack_require__.r(__webpack_exports__);
729
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
730
+ /* harmony export */ "AutonumericDirective": () => (/* binding */ AutonumericDirective)
731
+ /* harmony export */ });
732
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
733
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ 2508);
734
+ /* harmony import */ var autonumeric__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! autonumeric */ 7958);
735
+ /* harmony import */ var autonumeric__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(autonumeric__WEBPACK_IMPORTED_MODULE_0__);
736
+
737
+
738
+
739
+
740
+ class AutonumericDirective {
741
+ constructor(elementRef) {
742
+ this.elementRef = elementRef;
743
+ this.decimalPlaces = 4;
744
+ this.modifyValueOnWheel = true;
745
+ this.max = '999999999999999.9999';
746
+ this.min = '-999999999999999.9999';
747
+ //ControlValueAccessor implementations
748
+ this.propagateChange = (_) => { };
749
+ this.preventNegative = false;
750
+ const Options = {
751
+ digitGroupSeparator: ',',
752
+ decimalCharacter: '.',
753
+ decimalPlaces: this.decimalPlaces,
754
+ maximumValue: this.max,
755
+ minimumValue: this.min,
756
+ allowDecimalPadding: false,
757
+ showWarnings: false,
758
+ };
759
+ this.numericElement = new autonumeric__WEBPACK_IMPORTED_MODULE_0__(this.elementRef.nativeElement, null, Options);
760
+ }
761
+ set _max(value) {
762
+ if (value) {
763
+ this.max = value;
764
+ this.updateNumericSettings();
765
+ }
766
+ }
767
+ set _min(value) {
768
+ if (value) {
769
+ this.min = value;
770
+ this.updateNumericSettings();
771
+ }
772
+ }
773
+ ngOnInit() {
774
+ if (this.percentage == "") {
775
+ this.max = '100';
776
+ }
777
+ if (this.preventNegative) {
778
+ this.min = '0.00';
779
+ }
780
+ this.updateNumericSettings();
781
+ }
782
+ updateNumericSettings() {
783
+ const OptionsUpdate = {
784
+ maximumValue: this.max,
785
+ minimumValue: this.min,
786
+ readOnly: this.isElementDisabled(),
787
+ decimalPlaces: this.decimalPlaces,
788
+ modifyValueOnWheel: this.modifyValueOnWheel
789
+ };
790
+ this.numericElement.update(OptionsUpdate);
791
+ }
792
+ onKeyUp() {
793
+ let number = this.numericElement.getNumber();
794
+ this.propagateChange(number);
795
+ }
796
+ isElementDisabled() {
797
+ let retVal = false;
798
+ const readonly = this.elementRef.nativeElement.readOnly;
799
+ const disabled = this.elementRef.nativeElement.disabled;
800
+ if ((readonly === true) || (disabled === true)) {
801
+ retVal = true;
802
+ }
803
+ return retVal;
804
+ }
805
+ writeValue(newValue) {
806
+ if (newValue != null) {
807
+ this.numericElement.set(newValue);
808
+ }
809
+ }
810
+ registerOnChange(fn) {
811
+ this.propagateChange = fn;
812
+ }
813
+ registerOnTouched() { }
814
+ }
815
+ AutonumericDirective.ɵfac = function AutonumericDirective_Factory(t) { return new (t || AutonumericDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__.ElementRef)); };
816
+ AutonumericDirective.ɵdir = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({ type: AutonumericDirective, selectors: [["", "autoNum", ""]], hostBindings: function AutonumericDirective_HostBindings(rf, ctx) { if (rf & 1) {
817
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function AutonumericDirective_keyup_HostBindingHandler() { return ctx.onKeyUp(); });
818
+ } }, inputs: { percentage: "percentage", preventNegative: "preventNegative", decimalPlaces: "decimalPlaces", modifyValueOnWheel: "modifyValueOnWheel", _max: ["max", "_max"], _min: ["min", "_min"] }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([
819
+ { provide: _angular_forms__WEBPACK_IMPORTED_MODULE_2__.NG_VALUE_ACCESSOR, useExisting: (0,_angular_core__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(() => AutonumericDirective), multi: true }
820
+ ])] });
821
+
822
+
823
+ /***/ }),
824
+
825
+ /***/ 9429:
826
+ /*!**********************************************************************!*\
827
+ !*** ./src/app/shared/components/autonumberic/autonumeric.module.ts ***!
828
+ \**********************************************************************/
829
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
830
+
831
+ __webpack_require__.r(__webpack_exports__);
832
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
833
+ /* harmony export */ "AutoNumberModule": () => (/* binding */ AutoNumberModule)
834
+ /* harmony export */ });
835
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 4666);
836
+ /* harmony import */ var _autonumeric_directive__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./autonumeric.directive */ 1197);
837
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
838
+
839
+
840
+
841
+ class AutoNumberModule {
842
+ }
843
+ AutoNumberModule.ɵfac = function AutoNumberModule_Factory(t) { return new (t || AutoNumberModule)(); };
844
+ AutoNumberModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: AutoNumberModule });
845
+ AutoNumberModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule] });
846
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](AutoNumberModule, { declarations: [_autonumeric_directive__WEBPACK_IMPORTED_MODULE_0__.AutonumericDirective], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule], exports: [_autonumeric_directive__WEBPACK_IMPORTED_MODULE_0__.AutonumericDirective] }); })();
847
+
848
+
849
+ /***/ }),
850
+
851
+ /***/ 3256:
852
+ /*!**************************************************************************!*\
853
+ !*** ./src/app/shared/components/custom-toast/custom-toast.component.ts ***!
854
+ \**************************************************************************/
855
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
856
+
857
+ __webpack_require__.r(__webpack_exports__);
858
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
859
+ /* harmony export */ "CustomToastComponent": () => (/* binding */ CustomToastComponent)
860
+ /* harmony export */ });
861
+ /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/animations */ 4851);
862
+ /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ngx-toastr */ 2808);
863
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560);
864
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 4666);
865
+
866
+
867
+
868
+
869
+
870
+ const _c0 = ["custom-toast-component", ""];
871
+ function CustomToastComponent_div_1_a_6_Template(rf, ctx) { if (rf & 1) {
872
+ const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
873
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 10);
874
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CustomToastComponent_div_1_a_6_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r6.remove()); });
875
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " x ");
876
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
877
+ } }
878
+ function CustomToastComponent_div_1_Template(rf, ctx) { if (rf & 1) {
879
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 6)(1, "div", 7)(2, "div")(3, "h4");
880
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
881
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
882
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 8);
883
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, CustomToastComponent_div_1_a_6_Template, 2, 0, "a", 9);
884
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
885
+ } if (rf & 2) {
886
+ const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
887
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("display", ctx_r0.state.value === "inactive" ? "none" : "");
888
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
889
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"](ctx_r0.options.titleClass);
890
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-label", ctx_r0.title);
891
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
892
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r0.title);
893
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
894
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.options.closeButton);
895
+ } }
896
+ const _c1 = function (a0) { return { "notitle": a0 }; };
897
+ function CustomToastComponent_div_2_Template(rf, ctx) { if (rf & 1) {
898
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 11);
899
+ } if (rf & 2) {
900
+ const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
901
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"](ctx_r1.options.messageClass);
902
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](4, _c1, ctx_r1.title == null))("innerHTML", ctx_r1.message, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
903
+ } }
904
+ function CustomToastComponent_div_3_Template(rf, ctx) { if (rf & 1) {
905
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
906
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
907
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
908
+ } if (rf & 2) {
909
+ const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
910
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"](ctx_r2.options.messageClass);
911
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](5, _c1, ctx_r2.title == null));
912
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-label", ctx_r2.message);
913
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
914
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.message, " ");
915
+ } }
916
+ function CustomToastComponent_a_4_Template(rf, ctx) { if (rf & 1) {
917
+ const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
918
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 10);
919
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CustomToastComponent_a_4_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r8.remove()); });
920
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " x ");
921
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
922
+ } }
923
+ function CustomToastComponent_div_5_Template(rf, ctx) { if (rf & 1) {
924
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
925
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "div", 13);
926
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
927
+ } if (rf & 2) {
928
+ const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
929
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
930
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("width", ctx_r4.width + "%");
931
+ } }
932
+ class CustomToastComponent extends ngx_toastr__WEBPACK_IMPORTED_MODULE_1__.Toast {
933
+ // constructor is only necessary when not using AoT
934
+ constructor(toastrService, toastPackage) {
935
+ super(toastrService, toastPackage);
936
+ this.toastrService = toastrService;
937
+ this.toastPackage = toastPackage;
938
+ }
939
+ ngOnInit() {
940
+ //Called after the constructor, initializing input properties, and the first call to ngOnChanges.
941
+ //Add 'implements OnInit' to the class.
942
+ }
943
+ action(event) {
944
+ event.stopPropagation();
945
+ this.toastPackage.triggerAction();
946
+ return false;
947
+ }
948
+ }
949
+ CustomToastComponent.ɵfac = function CustomToastComponent_Factory(t) { return new (t || CustomToastComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_1__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_1__.ToastPackage)); };
950
+ CustomToastComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CustomToastComponent, selectors: [["", "custom-toast-component", ""]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]], attrs: _c0, decls: 6, vars: 5, consts: [[1, "toast-case"], ["class", "row toast-header", 3, "display", 4, "ngIf"], ["class", "row toast-body", "role", "alert", "aria-live", "polite", 3, "ngClass", "class", "innerHTML", 4, "ngIf"], ["class", "row toast-body", "role", "alert", "aria-live", "polite", 3, "ngClass", "class", 4, "ngIf"], ["class", "btn toast-close-button btn-sm ", 3, "click", 4, "ngIf"], [4, "ngIf"], [1, "row", "toast-header"], [1, "col-9", "px-0"], [1, "col-auto", "mt-5", "pr-0"], ["class", "btn toast-close-button btn-sm", 3, "click", 4, "ngIf"], [1, "btn", "toast-close-button", "btn-sm", 3, "click"], ["role", "alert", "aria-live", "polite", 1, "row", "toast-body", 3, "ngClass", "innerHTML"], ["role", "alert", "aria-live", "polite", 1, "row", "toast-body", 3, "ngClass"], [1, "toast-progress"]], template: function CustomToastComponent_Template(rf, ctx) { if (rf & 1) {
951
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
952
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CustomToastComponent_div_1_Template, 7, 7, "div", 1);
953
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, CustomToastComponent_div_2_Template, 1, 6, "div", 2);
954
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, CustomToastComponent_div_3_Template, 2, 7, "div", 3);
955
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, CustomToastComponent_a_4_Template, 2, 0, "a", 4);
956
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, CustomToastComponent_div_5_Template, 2, 2, "div", 5);
957
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
958
+ } if (rf & 2) {
959
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
960
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.title);
961
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
962
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.message && ctx.options.enableHtml);
963
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
964
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.message && !ctx.options.enableHtml);
965
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
966
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.options.closeButton && ctx.title == null);
967
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
968
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.options.progressBar);
969
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_2__.NgIf], styles: ["[_nghost-%COMP%] {\n background-color: white;\n position: relative;\n overflow: hidden;\n margin: 0 0 6px;\n width: 300px;\n border-radius: 3px 3px 3px 3px;\n color: #141414;\n pointer-events: all;\n cursor: pointer;\n}\n\n.toast-success[_nghost-%COMP%] {\n border: 1.8px solid rgb(81, 163, 81);\n}\n\n.toast-info[_nghost-%COMP%] {\n border: 1.8px solid rgb(47, 150, 180);\n}\n\n.toast-error[_nghost-%COMP%] {\n border: 1.8px solid rgb(189, 54, 47);\n}\n\n.toast-warning[_nghost-%COMP%] {\n border: 1.8px solid rgb(248, 148, 6);\n}\n\n.toast-case[_ngcontent-%COMP%] {\n margin-left: 10px;\n}\n\n.toast-header[_ngcontent-%COMP%] {\n background-clip: padding-box;\n border-bottom: solid;\n border-width: 1px;\n padding-bottom: 0rem;\n padding-top: 0rem;\n padding-right: 0px;\n}\n\n.toast-title[_ngcontent-%COMP%] {\n color: black;\n}\n\n.toast-body[_ngcontent-%COMP%] {\n padding-top: 0.6rem;\n}\n\n.notitle[_ngcontent-%COMP%] {\n margin-bottom: -1rem;\n}\n\n.toast-close-button-custom[_ngcontent-%COMP%] {\n right: 0.2em !important;\n top: -1.3em !important;\n}\n\n.toast-close-button-notitle[_ngcontent-%COMP%] {\n right: 0.1em !important;\n top: -1.3em !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbS10b2FzdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLHVCQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7RUFDQSxZQUFBO0VBQ0EsOEJBQUE7RUFDQSxjQUFBO0VBQ0EsbUJBQUE7RUFDQSxlQUFBO0FBQ0o7O0FBRUk7RUFDSSxvQ0FBQTtBQUNSOztBQUNJO0VBQ0kscUNBQUE7QUFFUjs7QUFBSTtFQUNJLG9DQUFBO0FBR1I7O0FBREk7RUFDSSxvQ0FBQTtBQUlSOztBQURFO0VBQ0UsaUJBQUE7QUFJSjs7QUFERTtFQUNFLDRCQUFBO0VBQ0Esb0JBQUE7RUFDQSxpQkFBQTtFQUNBLG9CQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtBQUlKOztBQURFO0VBQ0ksWUFBQTtBQUlOOztBQURFO0VBQ0UsbUJBQUE7QUFJSjs7QUFERTtFQUNFLG9CQUFBO0FBSUo7O0FBREU7RUFDRSx1QkFBQTtFQUNBLHNCQUFBO0FBSUo7O0FBREU7RUFDQSx1QkFBQTtFQUNBLHNCQUFBO0FBSUYiLCJmaWxlIjoiY3VzdG9tLXRvYXN0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiOmhvc3Qge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XHJcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XHJcbiAgICBvdmVyZmxvdzogaGlkZGVuO1xyXG4gICAgbWFyZ2luOiAwIDAgNnB4O1xyXG4gICAgd2lkdGg6IDMwMHB4O1xyXG4gICAgYm9yZGVyLXJhZGl1czogM3B4IDNweCAzcHggM3B4O1xyXG4gICAgY29sb3I6ICMxNDE0MTQ7XHJcbiAgICBwb2ludGVyLWV2ZW50czogYWxsO1xyXG4gICAgY3Vyc29yOiBwb2ludGVyO1xyXG4gICAgfVxyXG5cclxuICAgIDpob3N0KC50b2FzdC1zdWNjZXNzKXtcclxuICAgICAgICBib3JkZXI6IDEuOHB4IHNvbGlkIHJnYig4MSwgMTYzLCA4MSk7XHJcbiAgICB9XHJcbiAgICA6aG9zdCgudG9hc3QtaW5mbyl7XHJcbiAgICAgICAgYm9yZGVyOiAxLjhweCBzb2xpZCByZ2IoNDcsIDE1MCwgMTgwKTtcclxuICAgIH1cclxuICAgIDpob3N0KC50b2FzdC1lcnJvcil7XHJcbiAgICAgICAgYm9yZGVyOiAxLjhweCBzb2xpZCByZ2IoMTg5LCA1NCwgNDcpO1xyXG4gICAgfVxyXG4gICAgOmhvc3QoLnRvYXN0LXdhcm5pbmcpe1xyXG4gICAgICAgIGJvcmRlcjogMS44cHggc29saWQgcmdiKDI0OCwgMTQ4LCA2KTtcclxuICAgIH1cclxuXHJcbiAgLnRvYXN0LWNhc2V7XHJcbiAgICBtYXJnaW4tbGVmdDogMTBweDtcclxuICAgIH1cclxuXHJcbiAgLnRvYXN0LWhlYWRlciB7XHJcbiAgICBiYWNrZ3JvdW5kLWNsaXA6IHBhZGRpbmctYm94O1xyXG4gICAgYm9yZGVyLWJvdHRvbTogc29saWQgO1xyXG4gICAgYm9yZGVyLXdpZHRoOiAxcHg7XHJcbiAgICBwYWRkaW5nLWJvdHRvbTogMHJlbTtcclxuICAgIHBhZGRpbmctdG9wOiAwcmVtO1xyXG4gICAgcGFkZGluZy1yaWdodDogMHB4O1xyXG4gIH1cclxuXHJcbiAgLnRvYXN0LXRpdGxlIHtcclxuICAgICAgY29sb3I6IGJsYWNrO1xyXG4gIH1cclxuICBcclxuICAudG9hc3QtYm9keSB7XHJcbiAgICBwYWRkaW5nLXRvcDogMC42cmVtO1xyXG4gIH1cclxuICBcclxuICAubm90aXRsZSB7XHJcbiAgICBtYXJnaW4tYm90dG9tOiAtMXJlbTtcclxuICB9XHJcbiAgXHJcbiAgLnRvYXN0LWNsb3NlLWJ1dHRvbi1jdXN0b20ge1xyXG4gICAgcmlnaHQ6IDAuMmVtICFpbXBvcnRhbnQ7IFxyXG4gICAgdG9wOiAtMS4zZW0gIWltcG9ydGFudDtcclxuICB9XHJcbiAgXHJcbiAgLnRvYXN0LWNsb3NlLWJ1dHRvbi1ub3RpdGxlIHtcclxuICByaWdodDogMC4xZW0gIWltcG9ydGFudDtcclxuICB0b3A6IC0xLjNlbSAhaW1wb3J0YW50XHJcbiAgfVxyXG4gICJdfQ== */"], data: { animation: [
970
+ (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.trigger)('flyInOut', [
971
+ (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.state)('inactive', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.style)({
972
+ opacity: 0,
973
+ })),
974
+ (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.transition)('inactive => active', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.animate)('400ms ease-out', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.keyframes)([
975
+ (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.style)({
976
+ transform: 'translate3d(100%, 0, 0) skewX(-30deg)',
977
+ opacity: 0,
978
+ }),
979
+ (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.style)({
980
+ transform: 'skewX(20deg)',
981
+ opacity: 1,
982
+ }),
983
+ (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.style)({
984
+ transform: 'skewX(-5deg)',
985
+ opacity: 1,
986
+ }),
987
+ (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.style)({
988
+ transform: 'none',
989
+ opacity: 1,
990
+ }),
991
+ ]))),
992
+ (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.transition)('active => removed', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.animate)('400ms ease-out', (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.keyframes)([
993
+ (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.style)({
994
+ opacity: 1,
995
+ }),
996
+ (0,_angular_animations__WEBPACK_IMPORTED_MODULE_3__.style)({
997
+ transform: 'translate3d(100%, 0, 0) skewX(30deg)',
998
+ opacity: 0,
999
+ }),
1000
+ ]))),
1001
+ ]),
1002
+ ] } });
1003
+
1004
+
1005
+ /***/ }),
1006
+
1007
+ /***/ 6985:
1008
+ /*!***************************************************************************!*\
1009
+ !*** ./src/app/shared/components/modal-material/modal-material-config.ts ***!
1010
+ \***************************************************************************/
1011
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1012
+
1013
+ __webpack_require__.r(__webpack_exports__);
1014
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1015
+ /* harmony export */ "ModalMaterialConfig": () => (/* binding */ ModalMaterialConfig)
1016
+ /* harmony export */ });
1017
+ /* harmony import */ var _enums_header_type_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enums/header-type.enum */ 512);
1018
+
1019
+ class ModalMaterialConfig {
1020
+ constructor() {
1021
+ this.title = "New Modal";
1022
+ this.titleExtra = "";
1023
+ this.okText = "Ok (F2)";
1024
+ this.cancelText = "Cancel";
1025
+ this.hideFooter = false;
1026
+ this.hideCancel = false;
1027
+ this.hideOk = false;
1028
+ this.hideClose = false;
1029
+ this.eMoney = false;
1030
+ this.headerType = _enums_header_type_enum__WEBPACK_IMPORTED_MODULE_0__.HeaderType.Success;
1031
+ this.validated = true;
1032
+ this.customWidth = 'initial';
1033
+ this.bodyScrollable = false;
1034
+ this.hideScrollbar = false;
1035
+ this.disableKeyup = false;
1036
+ this.hideMoreButton = false;
1037
+ }
1038
+ }
1039
+
1040
+
1041
+ /***/ }),
1042
+
1043
+ /***/ 4405:
1044
+ /*!******************************************************************************!*\
1045
+ !*** ./src/app/shared/components/modal-material/modal-material.component.ts ***!
1046
+ \******************************************************************************/
1047
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1048
+
1049
+ __webpack_require__.r(__webpack_exports__);
1050
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1051
+ /* harmony export */ "ModalMaterialComponent": () => (/* binding */ ModalMaterialComponent)
1052
+ /* harmony export */ });
1053
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560);
1054
+ /* harmony import */ var _enums_header_type_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enums/header-type.enum */ 512);
1055
+ /* harmony import */ var _modal_material_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modal-material-config */ 6985);
1056
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 4666);
1057
+ /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+ function ModalMaterialComponent_div_2_Template(rf, ctx) { if (rf & 1) {
1065
+ const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
1066
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 8);
1067
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ModalMaterialComponent_div_2_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r4.onBack.emit()); });
1068
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "a", 9);
1069
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 10);
1070
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
1071
+ } }
1072
+ function ModalMaterialComponent_div_7_Template(rf, ctx) { if (rf & 1) {
1073
+ const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
1074
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div")(1, "a", 11);
1075
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ModalMaterialComponent_div_7_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r6.onCancel.emit()); });
1076
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 12);
1077
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
1078
+ } }
1079
+ function ModalMaterialComponent_ng_content_10_Template(rf, ctx) { if (rf & 1) {
1080
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](0, 2, ["*ngIf", "more"]);
1081
+ } }
1082
+ function ModalMaterialComponent_mat_dialog_actions_11_a_1_Template(rf, ctx) { if (rf & 1) {
1083
+ const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
1084
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 17);
1085
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ModalMaterialComponent_mat_dialog_actions_11_a_1_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r11.more = !ctx_r11.more); });
1086
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "More");
1087
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1088
+ } }
1089
+ function ModalMaterialComponent_mat_dialog_actions_11_a_3_Template(rf, ctx) { if (rf & 1) {
1090
+ const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
1091
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 18);
1092
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ModalMaterialComponent_mat_dialog_actions_11_a_3_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r13.onCancel.emit()); });
1093
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
1094
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1095
+ } if (rf & 2) {
1096
+ const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
1097
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1098
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", (ctx_r9.config == null ? null : ctx_r9.config.cancelText) ? ctx_r9.config == null ? null : ctx_r9.config.cancelText : "Cancel", "");
1099
+ } }
1100
+ function ModalMaterialComponent_mat_dialog_actions_11_button_4_Template(rf, ctx) { if (rf & 1) {
1101
+ const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
1102
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 19);
1103
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ModalMaterialComponent_mat_dialog_actions_11_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r15.onOk.emit()); });
1104
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
1105
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1106
+ } if (rf & 2) {
1107
+ const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
1108
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !(ctx_r10.config == null ? null : ctx_r10.config.validated));
1109
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1110
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", (ctx_r10.config == null ? null : ctx_r10.config.okText) ? ctx_r10.config == null ? null : ctx_r10.config.okText : "Ok (F2)", " ");
1111
+ } }
1112
+ function ModalMaterialComponent_mat_dialog_actions_11_Template(rf, ctx) { if (rf & 1) {
1113
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-dialog-actions", 13);
1114
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ModalMaterialComponent_mat_dialog_actions_11_a_1_Template, 2, 0, "a", 14);
1115
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](2, 3);
1116
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, ModalMaterialComponent_mat_dialog_actions_11_a_3_Template, 2, 1, "a", 15);
1117
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, ModalMaterialComponent_mat_dialog_actions_11_button_4_Template, 2, 2, "button", 16);
1118
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1119
+ } if (rf & 2) {
1120
+ const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
1121
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1122
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !(ctx_r3.config == null ? null : ctx_r3.config.hideMoreButton));
1123
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1124
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !(ctx_r3.config == null ? null : ctx_r3.config.hideCancel));
1125
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1126
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !(ctx_r3.config == null ? null : ctx_r3.config.hideOk));
1127
+ } }
1128
+ const _c0 = [[["header"]], [["content"]], [["more-content"]], [["footer"]]];
1129
+ const _c1 = function (a0, a1) { return { bodyScrollable: a0, hideScrollbar: a1 }; };
1130
+ const _c2 = function (a0) { return { "mx-auto": a0 }; };
1131
+ const _c3 = function (a0) { return { "show-footer": a0 }; };
1132
+ const _c4 = ["header", "content", "more-content", "footer"];
1133
+ class ModalMaterialComponent {
1134
+ constructor() {
1135
+ this.onOk = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
1136
+ this.onCancel = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
1137
+ this.onClose = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
1138
+ this.onBack = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
1139
+ this.onShowMore = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
1140
+ this.term = "";
1141
+ this.background = "";
1142
+ this.more = false;
1143
+ }
1144
+ ngOnInit() {
1145
+ if (this.config == null) {
1146
+ this.config = new _modal_material_config__WEBPACK_IMPORTED_MODULE_1__.ModalMaterialConfig();
1147
+ }
1148
+ switch (this.config.headerType) {
1149
+ case _enums_header_type_enum__WEBPACK_IMPORTED_MODULE_0__.HeaderType.Success:
1150
+ this.background = "bg-success";
1151
+ break;
1152
+ case _enums_header_type_enum__WEBPACK_IMPORTED_MODULE_0__.HeaderType.Warning:
1153
+ this.background = "bg-warning";
1154
+ break;
1155
+ case _enums_header_type_enum__WEBPACK_IMPORTED_MODULE_0__.HeaderType.Info:
1156
+ this.background = "bg-warning";
1157
+ break;
1158
+ case _enums_header_type_enum__WEBPACK_IMPORTED_MODULE_0__.HeaderType.Error:
1159
+ this.background = "bg-danger";
1160
+ break;
1161
+ default:
1162
+ this.background = "";
1163
+ break;
1164
+ }
1165
+ }
1166
+ onKeyup(event) {
1167
+ if (this.config) {
1168
+ if (!this.config.disableKeyup) {
1169
+ if (event.code == "F2") {
1170
+ this.onOk.emit();
1171
+ }
1172
+ }
1173
+ }
1174
+ }
1175
+ }
1176
+ ModalMaterialComponent.ɵfac = function ModalMaterialComponent_Factory(t) { return new (t || ModalMaterialComponent)(); };
1177
+ ModalMaterialComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ModalMaterialComponent, selectors: [["modal-material"]], inputs: { config: "config" }, outputs: { onOk: "onOk", onCancel: "onCancel", onClose: "onClose", onBack: "onBack", onShowMore: "onShowMore" }, ngContentSelectors: _c4, decls: 12, vars: 20, consts: [[1, "modal-material", "d-flex", "align-items-start", "flex-column", "position-relative", "maxHeight", 3, "ngClass", "keyup"], ["mat-dialog-title", ""], ["class", "back-button position-absolute pointer", 3, "click", 4, "ngIf"], [1, "d-flex", "flex-row", 3, "ngClass"], [1, "fw-normal"], [4, "ngIf"], [1, "modal-body", "w-100", 3, "ngClass"], ["class", "w-100 py-7 border-top d-flex justify-content-end", 4, "ngIf"], [1, "back-button", "position-absolute", "pointer", 3, "click"], [1, "btn", "back-button"], [1, "fas", "fa-arrow-left"], [1, "btn-light-blue", "btn-sm", "pointer", "close", 3, "click"], [1, "fa", "fa-times", "fa-lg", "text-primary"], [1, "w-100", "py-7", "border-top", "d-flex", "justify-content-end"], ["class", "more clearfix", 3, "click", 4, "ngIf"], ["class", "btn btn-light-blue text-primary btn-lg fw-bold mx-3", 3, "click", 4, "ngIf"], ["class", "btn btn-light-blue me-6 text-primary btn-lg fw-bold mx-3", 3, "disabled", "click", 4, "ngIf"], [1, "more", "clearfix", 3, "click"], [1, "btn", "btn-light-blue", "text-primary", "btn-lg", "fw-bold", "mx-3", 3, "click"], [1, "btn", "btn-light-blue", "me-6", "text-primary", "btn-lg", "fw-bold", "mx-3", 3, "disabled", "click"]], template: function ModalMaterialComponent_Template(rf, ctx) { if (rf & 1) {
1178
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"](_c0);
1179
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
1180
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("keyup", function ModalMaterialComponent_Template_div_keyup_0_listener($event) { return ctx.onKeyup($event); });
1181
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1);
1182
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, ModalMaterialComponent_div_2_Template, 3, 0, "div", 2);
1183
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 3)(4, "h4", 4);
1184
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5);
1185
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1186
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](6);
1187
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1188
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, ModalMaterialComponent_div_7_Template, 3, 0, "div", 5);
1189
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1190
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "mat-dialog-content", 6);
1191
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](9, 1);
1192
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, ModalMaterialComponent_ng_content_10_Template, 1, 0, "ng-content", 5);
1193
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1194
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, ModalMaterialComponent_mat_dialog_actions_11_Template, 5, 3, "mat-dialog-actions", 7);
1195
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1196
+ } if (rf & 2) {
1197
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("width", ctx.config == null ? null : ctx.config.customWidth);
1198
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](13, _c1, ctx.config == null ? null : ctx.config.bodyScrollable, ctx.config == null ? null : ctx.config.hideScrollbar));
1199
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1200
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate1"]("d-flex w-100 justify-content-between modal-header position-relative ", ctx.background, "");
1201
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1202
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.config == null ? null : ctx.config.eMoney);
1203
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1204
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](16, _c2, ctx.config == null ? null : ctx.config.eMoney));
1205
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1206
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.config == null ? null : ctx.config.title);
1207
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1208
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !(ctx.config == null ? null : ctx.config.hideClose));
1209
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1210
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](18, _c3, !(ctx.config == null ? null : ctx.config.hideFooter)));
1211
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1212
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.more);
1213
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1214
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !(ctx.config == null ? null : ctx.config.hideFooter));
1215
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgIf, _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__.MatDialogTitle, _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__.MatDialogContent, _angular_material_dialog__WEBPACK_IMPORTED_MODULE_4__.MatDialogActions], styles: ["mat-dialog-actions[_ngcontent-%COMP%] {\n bottom: 15px;\n margin-bottom: 0;\n}\nmat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%], mat-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n padding: 15px !important;\n margin-right: 12px;\n}\nmat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%] {\n margin-right: auto;\n margin-top: -3.8rem;\n padding-top: 0.2rem !important;\n margin-left: 1rem;\n}\n.back-button[_ngcontent-%COMP%] {\n top: 5px;\n left: 0px;\n}\n.close[_ngcontent-%COMP%] {\n padding: 0.4rem 0.5rem;\n}\n.mat-dialog-content[_ngcontent-%COMP%] {\n margin: auto;\n padding-bottom: 12px;\n}\nh4[_ngcontent-%COMP%] {\n font-size: 1rem;\n margin-bottom: 0;\n margin-top: 7px;\n}\ninput[type=radio][_ngcontent-%COMP%] {\n border: 0px;\n width: 100%;\n height: 2em;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGFsLW1hdGVyaWFsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksWUFBQTtFQUNBLGdCQUFBO0FBQ0o7QUFBSTtFQUNJLHdCQUFBO0VBQ0Esa0JBQUE7QUFFUjtBQUNJO0VBQ0ksa0JBQUE7RUFDQSxtQkFBQTtFQUNBLDhCQUFBO0VBQ0EsaUJBQUE7QUFDUjtBQUlBO0VBQ0ksUUFBQTtFQUNBLFNBQUE7QUFESjtBQUlBO0VBQ0ksc0JBQUE7QUFESjtBQUlBO0VBQ0ksWUFBQTtFQUNBLG9CQUFBO0FBREo7QUFJQTtFQUNJLGVBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7QUFESjtBQUlBO0VBQ0ksV0FBQTtFQUNBLFdBQUE7RUFDQSxXQUFBO0FBREoiLCJmaWxlIjoibW9kYWwtbWF0ZXJpYWwuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtZGlhbG9nLWFjdGlvbnMge1xyXG4gICAgYm90dG9tOiAxNXB4O1xyXG4gICAgbWFyZ2luLWJvdHRvbTogMDtcclxuICAgIGEsIGJ1dHRvbiB7XHJcbiAgICAgICAgcGFkZGluZzogMTVweCAhaW1wb3J0YW50O1xyXG4gICAgICAgIG1hcmdpbi1yaWdodDogMTJweDtcclxuICAgIH1cclxuICAgIFxyXG4gICAgLm1vcmUge1xyXG4gICAgICAgIG1hcmdpbi1yaWdodDogYXV0bztcclxuICAgICAgICBtYXJnaW4tdG9wOiAtMy44cmVtO1xyXG4gICAgICAgIHBhZGRpbmctdG9wOiAwLjJyZW0gIWltcG9ydGFudDtcclxuICAgICAgICBtYXJnaW4tbGVmdDogMXJlbTtcclxuICAgIH1cclxufVxyXG5cclxuXHJcbi5iYWNrLWJ1dHRvbiB7XHJcbiAgICB0b3A6IDVweDtcclxuICAgIGxlZnQ6IDBweDtcclxufVxyXG5cclxuLmNsb3NlIHtcclxuICAgIHBhZGRpbmc6IDAuNHJlbSAwLjVyZW07XHJcbn1cclxuXHJcbi5tYXQtZGlhbG9nLWNvbnRlbnQge1xyXG4gICAgbWFyZ2luOiBhdXRvO1xyXG4gICAgcGFkZGluZy1ib3R0b206IDEycHg7XHJcbn1cclxuXHJcbmg0IHtcclxuICAgIGZvbnQtc2l6ZTogMXJlbTtcclxuICAgIG1hcmdpbi1ib3R0b206IDA7XHJcbiAgICBtYXJnaW4tdG9wOiA3cHg7XHJcbn1cclxuXHJcbmlucHV0W3R5cGU9cmFkaW9dIHtcclxuICAgIGJvcmRlcjogMHB4O1xyXG4gICAgd2lkdGg6IDEwMCU7XHJcbiAgICBoZWlnaHQ6IDJlbTtcclxufSJdfQ== */"] });
1216
+
1217
+
1218
+ /***/ }),
1219
+
1220
+ /***/ 512:
1221
+ /*!**************************************************!*\
1222
+ !*** ./src/app/shared/enums/header-type.enum.ts ***!
1223
+ \**************************************************/
1224
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1225
+
1226
+ __webpack_require__.r(__webpack_exports__);
1227
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1228
+ /* harmony export */ "HeaderType": () => (/* binding */ HeaderType)
1229
+ /* harmony export */ });
1230
+ var HeaderType;
1231
+ (function (HeaderType) {
1232
+ HeaderType["Success"] = "Success";
1233
+ HeaderType["Info"] = "Info";
1234
+ HeaderType["Warning"] = "Warning";
1235
+ HeaderType["Error"] = "Error";
1236
+ })(HeaderType || (HeaderType = {}));
1237
+
1238
+
1239
+ /***/ }),
1240
+
1241
+ /***/ 3228:
1242
+ /*!********************************************************************!*\
1243
+ !*** ./src/app/shared/pipes/local-currency/local-currency.pipe.ts ***!
1244
+ \********************************************************************/
1245
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1246
+
1247
+ __webpack_require__.r(__webpack_exports__);
1248
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1249
+ /* harmony export */ "LocalCurrencyPipe": () => (/* binding */ LocalCurrencyPipe)
1250
+ /* harmony export */ });
1251
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560);
1252
+
1253
+ class LocalCurrencyPipe {
1254
+ transform(value, currencySymbol, dec) {
1255
+ let valFormated = value.toFixed(dec);
1256
+ let localCurrency = currencySymbol + " " + valFormated;
1257
+ return localCurrency;
1258
+ }
1259
+ }
1260
+ LocalCurrencyPipe.ɵfac = function LocalCurrencyPipe_Factory(t) { return new (t || LocalCurrencyPipe)(); };
1261
+ LocalCurrencyPipe.ɵpipe = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "localCurrency", type: LocalCurrencyPipe, pure: true });
1262
+
1263
+
1264
+ /***/ }),
1265
+
1266
+ /***/ 3390:
1267
+ /*!***************************************************!*\
1268
+ !*** ./src/app/shared/pipes/tax-pipe/tax.pipe.ts ***!
1269
+ \***************************************************/
1270
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1271
+
1272
+ __webpack_require__.r(__webpack_exports__);
1273
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1274
+ /* harmony export */ "TaxPipe": () => (/* binding */ TaxPipe)
1275
+ /* harmony export */ });
1276
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560);
1277
+
1278
+ class TaxPipe {
1279
+ transform(value, tax) {
1280
+ let priceCounted = value;
1281
+ let taxVal = 0;
1282
+ if (tax && tax !== 0) {
1283
+ taxVal = value * (tax / 100);
1284
+ priceCounted = value + taxVal;
1285
+ }
1286
+ return priceCounted;
1287
+ }
1288
+ }
1289
+ TaxPipe.ɵfac = function TaxPipe_Factory(t) { return new (t || TaxPipe)(); };
1290
+ TaxPipe.ɵpipe = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "taxPipe", type: TaxPipe, pure: true });
1291
+
1292
+
1293
+ /***/ }),
1294
+
1295
+ /***/ 4466:
1296
+ /*!*****************************************!*\
1297
+ !*** ./src/app/shared/shared.module.ts ***!
1298
+ \*****************************************/
1299
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1300
+
1301
+ __webpack_require__.r(__webpack_exports__);
1302
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1303
+ /* harmony export */ "SharedModule": () => (/* binding */ SharedModule)
1304
+ /* harmony export */ });
1305
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 4666);
1306
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 2508);
1307
+ /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
1308
+ /* harmony import */ var _components_modal_material_modal_material_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/modal-material/modal-material.component */ 4405);
1309
+ /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
1310
+ /* harmony import */ var _angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/autocomplete */ 8550);
1311
+ /* harmony import */ var _pipes_tax_pipe_tax_pipe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pipes/tax-pipe/tax.pipe */ 3390);
1312
+ /* harmony import */ var _pipes_local_currency_local_currency_pipe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pipes/local-currency/local-currency.pipe */ 3228);
1313
+ /* harmony import */ var _components_custom_toast_custom_toast_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/custom-toast/custom-toast.component */ 3256);
1314
+ /* harmony import */ var _components_autonumberic_autonumeric_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/autonumberic/autonumeric.module */ 9429);
1315
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560);
1316
+
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+ class SharedModule {
1328
+ }
1329
+ SharedModule.ɵfac = function SharedModule_Factory(t) { return new (t || SharedModule)(); };
1330
+ SharedModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({ type: SharedModule });
1331
+ SharedModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule,
1332
+ _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule,
1333
+ _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__.NgSelectModule,
1334
+ _angular_forms__WEBPACK_IMPORTED_MODULE_7__.ReactiveFormsModule,
1335
+ _angular_material_dialog__WEBPACK_IMPORTED_MODULE_9__.MatDialogModule,
1336
+ _angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_10__.MatAutocompleteModule,
1337
+ _components_autonumberic_autonumeric_module__WEBPACK_IMPORTED_MODULE_4__.AutoNumberModule, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule,
1338
+ _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__.NgSelectModule,
1339
+ _angular_forms__WEBPACK_IMPORTED_MODULE_7__.ReactiveFormsModule,
1340
+ //MATERIAL MODULE
1341
+ _angular_material_dialog__WEBPACK_IMPORTED_MODULE_9__.MatDialogModule,
1342
+ _angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_10__.MatAutocompleteModule,
1343
+ _components_autonumberic_autonumeric_module__WEBPACK_IMPORTED_MODULE_4__.AutoNumberModule] });
1344
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsetNgModuleScope"](SharedModule, { declarations: [_components_modal_material_modal_material_component__WEBPACK_IMPORTED_MODULE_0__.ModalMaterialComponent,
1345
+ _components_custom_toast_custom_toast_component__WEBPACK_IMPORTED_MODULE_3__.CustomToastComponent,
1346
+ _pipes_tax_pipe_tax_pipe__WEBPACK_IMPORTED_MODULE_1__.TaxPipe,
1347
+ _pipes_local_currency_local_currency_pipe__WEBPACK_IMPORTED_MODULE_2__.LocalCurrencyPipe], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule,
1348
+ _angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule,
1349
+ _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__.NgSelectModule,
1350
+ _angular_forms__WEBPACK_IMPORTED_MODULE_7__.ReactiveFormsModule,
1351
+ _angular_material_dialog__WEBPACK_IMPORTED_MODULE_9__.MatDialogModule,
1352
+ _angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_10__.MatAutocompleteModule,
1353
+ _components_autonumberic_autonumeric_module__WEBPACK_IMPORTED_MODULE_4__.AutoNumberModule], exports: [_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule,
1354
+ _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__.NgSelectModule,
1355
+ _angular_forms__WEBPACK_IMPORTED_MODULE_7__.ReactiveFormsModule,
1356
+ //MATERIAL MODULE
1357
+ _angular_material_dialog__WEBPACK_IMPORTED_MODULE_9__.MatDialogModule,
1358
+ _angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_10__.MatAutocompleteModule,
1359
+ _components_modal_material_modal_material_component__WEBPACK_IMPORTED_MODULE_0__.ModalMaterialComponent,
1360
+ _pipes_tax_pipe_tax_pipe__WEBPACK_IMPORTED_MODULE_1__.TaxPipe,
1361
+ _pipes_local_currency_local_currency_pipe__WEBPACK_IMPORTED_MODULE_2__.LocalCurrencyPipe,
1362
+ _components_autonumberic_autonumeric_module__WEBPACK_IMPORTED_MODULE_4__.AutoNumberModule] }); })();
1363
+
1364
+
1365
+ /***/ }),
1366
+
1367
+ /***/ 2340:
1368
+ /*!*****************************************!*\
1369
+ !*** ./src/environments/environment.ts ***!
1370
+ \*****************************************/
1371
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1372
+
1373
+ __webpack_require__.r(__webpack_exports__);
1374
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1375
+ /* harmony export */ "environment": () => (/* binding */ environment)
1376
+ /* harmony export */ });
1377
+ // This file can be replaced during build by using the `fileReplacements` array.
1378
+ // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
1379
+ // The list of file replacements can be found in `angular.json`.
1380
+ const environment = {
1381
+ production: false
1382
+ };
1383
+ /*
1384
+ * For easier debugging in development mode, you can import the following file
1385
+ * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
1386
+ *
1387
+ * This import should be commented out in production mode because it will have a negative impact
1388
+ * on performance if an error is thrown.
1389
+ */
1390
+ // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
1391
+
1392
+
1393
+ /***/ }),
1394
+
1395
+ /***/ 4431:
1396
+ /*!*********************!*\
1397
+ !*** ./src/main.ts ***!
1398
+ \*********************/
1399
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1400
+
1401
+ __webpack_require__.r(__webpack_exports__);
1402
+ /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/platform-browser */ 4497);
1403
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560);
1404
+ /* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./app/app.module */ 6747);
1405
+ /* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./environments/environment */ 2340);
1406
+
1407
+
1408
+
1409
+
1410
+ if (_environments_environment__WEBPACK_IMPORTED_MODULE_1__.environment.production) {
1411
+ (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.enableProdMode)();
1412
+ }
1413
+ _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__.platformBrowser().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_0__.AppModule)
1414
+ .catch(err => console.error(err));
1415
+
1416
+
1417
+ /***/ })
1418
+
1419
+ },
1420
+ /******/ __webpack_require__ => { // webpackRuntimeModules
1421
+ /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
1422
+ /******/ __webpack_require__.O(0, ["vendor"], () => (__webpack_exec__(4431)));
1423
+ /******/ var __webpack_exports__ = __webpack_require__.O();
1424
+ /******/ }
1425
+ ]);
1426
+ //# sourceMappingURL=main.js.map