gunsmith-common 2.2.17 → 2.3.0

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.
Files changed (94) hide show
  1. package/esm2020/notification/notification-bar/notification-bar.component.mjs +3 -3
  2. package/esm2020/public_api.mjs +3 -1
  3. package/esm2020/shared/controls/form-error-message/form-error-message.component.mjs +17 -0
  4. package/esm2020/shared/controls/modal-header/modal-header.component.mjs +25 -0
  5. package/esm2020/shared/services/base.service.mjs +4 -1
  6. package/esm2020/shared/services/coating-value.service.mjs +25 -0
  7. package/esm2020/shared/services/coating.service.mjs +31 -29
  8. package/esm2020/shared/services/configuration.service.mjs +4 -1
  9. package/esm2020/shared/services/firearm-optic.service.mjs +25 -0
  10. package/esm2020/shared/services/firearm-sight.service.mjs +25 -0
  11. package/esm2020/shared/services/index.mjs +11 -1
  12. package/esm2020/shared/services/milling-type.service.mjs +9 -28
  13. package/esm2020/shared/services/mount-type.service.mjs +25 -0
  14. package/esm2020/shared/services/package-optional-item.service.mjs +25 -0
  15. package/esm2020/shared/services/package-variation.service.mjs +25 -0
  16. package/esm2020/shared/services/sight-material.service.mjs +25 -0
  17. package/esm2020/shared/services/sight-type.service.mjs +25 -0
  18. package/esm2020/shared/services/sight.service.mjs +25 -0
  19. package/esm2020/shared/services/slide-addon.service.mjs +25 -0
  20. package/esm2020/shared/services/waitlist-customer.service.mjs +4 -1
  21. package/esm2020/shared/shared.module.mjs +18 -21
  22. package/esm2020/shared/types/coating-value.mjs +1 -1
  23. package/esm2020/shared/types/coating.mjs +1 -1
  24. package/esm2020/shared/types/firearm-optic.mjs +9 -0
  25. package/esm2020/shared/types/firearm-series-optic.mjs +1 -1
  26. package/esm2020/shared/types/gun-part.mjs +1 -1
  27. package/esm2020/shared/types/index.mjs +9 -2
  28. package/esm2020/shared/types/inventory-item.mjs +2 -1
  29. package/esm2020/shared/types/milling-detail.mjs +1 -1
  30. package/esm2020/shared/types/milling-type.mjs +5 -1
  31. package/esm2020/shared/types/mount-type.mjs +6 -9
  32. package/esm2020/shared/types/optic-sight.mjs +4 -0
  33. package/esm2020/shared/types/optic.mjs +1 -1
  34. package/esm2020/shared/types/package-optional-item.mjs +5 -1
  35. package/esm2020/shared/types/package-variation-option.mjs +1 -1
  36. package/esm2020/shared/types/package.mjs +2 -1
  37. package/esm2020/shared/types/sight-material-type.mjs +6 -0
  38. package/esm2020/shared/types/sight-type-enum.mjs +7 -0
  39. package/esm2020/shared/types/sight-type.mjs +6 -7
  40. package/esm2020/shared/types/sight.mjs +6 -0
  41. package/esm2020/shared/types/simple-type.mjs +2 -0
  42. package/esm2020/shared/types/slide-addon.mjs +7 -0
  43. package/esm2020/shared/types/waitlist-gun.mjs +3 -1
  44. package/esm2020/shared/types/waitlist-status.mjs +2 -1
  45. package/fesm2015/gunsmith-common.mjs +417 -130
  46. package/fesm2015/gunsmith-common.mjs.map +1 -1
  47. package/fesm2020/gunsmith-common.mjs +397 -130
  48. package/fesm2020/gunsmith-common.mjs.map +1 -1
  49. package/gunsmith-common-2.3.0.tgz +0 -0
  50. package/package.json +1 -1
  51. package/public_api.d.ts +2 -0
  52. package/shared/controls/form-error-message/form-error-message.component.d.ts +8 -0
  53. package/shared/controls/modal-header/modal-header.component.d.ts +11 -0
  54. package/shared/services/base.service.d.ts +1 -0
  55. package/shared/services/coating-value.service.d.ts +11 -0
  56. package/shared/services/coating.service.d.ts +4 -8
  57. package/shared/services/configuration.service.d.ts +1 -0
  58. package/shared/services/firearm-optic.service.d.ts +11 -0
  59. package/shared/services/firearm-sight.service.d.ts +11 -0
  60. package/shared/services/index.d.ts +10 -0
  61. package/shared/services/milling-type.service.d.ts +4 -10
  62. package/shared/services/mount-type.service.d.ts +11 -0
  63. package/shared/services/package-optional-item.service.d.ts +11 -0
  64. package/shared/services/package-variation.service.d.ts +11 -0
  65. package/shared/services/sight-material.service.d.ts +11 -0
  66. package/shared/services/sight-type.service.d.ts +11 -0
  67. package/shared/services/sight.service.d.ts +11 -0
  68. package/shared/services/slide-addon.service.d.ts +11 -0
  69. package/shared/services/waitlist-customer.service.d.ts +1 -0
  70. package/shared/shared.module.d.ts +6 -4
  71. package/shared/types/coating-value.d.ts +1 -0
  72. package/shared/types/coating.d.ts +3 -0
  73. package/shared/types/firearm-optic.d.ts +19 -0
  74. package/shared/types/firearm-series-optic.d.ts +1 -2
  75. package/shared/types/gun-part.d.ts +1 -0
  76. package/shared/types/index.d.ts +8 -1
  77. package/shared/types/inventory-item.d.ts +2 -0
  78. package/shared/types/milling-detail.d.ts +5 -2
  79. package/shared/types/milling-type.d.ts +1 -0
  80. package/shared/types/mount-type.d.ts +7 -6
  81. package/shared/types/optic-sight.d.ts +8 -0
  82. package/shared/types/optic.d.ts +3 -0
  83. package/shared/types/package-optional-item.d.ts +10 -0
  84. package/shared/types/package-variation-option.d.ts +1 -0
  85. package/shared/types/package.d.ts +2 -0
  86. package/shared/types/sight-material-type.d.ts +6 -0
  87. package/shared/types/sight-type-enum.d.ts +5 -0
  88. package/shared/types/sight-type.d.ts +7 -4
  89. package/shared/types/sight.d.ts +15 -0
  90. package/shared/types/simple-type.d.ts +6 -0
  91. package/shared/types/slide-addon.d.ts +20 -0
  92. package/shared/types/waitlist-gun.d.ts +4 -0
  93. package/shared/types/waitlist-status.d.ts +2 -1
  94. package/gunsmith-common-2.2.17.tgz +0 -0
@@ -1,6 +1,6 @@
1
1
  import { DateTime } from 'luxon';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, Inject, Pipe, Directive, Input, Component, NgModule } from '@angular/core';
3
+ import { Injectable, Inject, Pipe, Directive, Input, Component, EventEmitter, Output, NgModule } from '@angular/core';
4
4
  import * as i1 from '@angular/common/http';
5
5
  import { of, switchMap as switchMap$1, Subject } from 'rxjs';
6
6
  import { switchMap } from 'rxjs/operators';
@@ -144,6 +144,8 @@ class WaitlistGun {
144
144
  this.milling = false;
145
145
  this.specialOrder = false;
146
146
  this.shippingLabel = false;
147
+ this.sights = [];
148
+ this.slideAddons = [];
147
149
  this.refinishDetails = [];
148
150
  }
149
151
  }
@@ -164,6 +166,7 @@ var WaitlistStatus;
164
166
  WaitlistStatus[WaitlistStatus["Cancelled"] = 8] = "Cancelled";
165
167
  WaitlistStatus[WaitlistStatus["OnHold"] = 9] = "OnHold";
166
168
  WaitlistStatus[WaitlistStatus["Voided"] = 10] = "Voided";
169
+ WaitlistStatus[WaitlistStatus["Pending"] = 11] = "Pending";
167
170
  })(WaitlistStatus || (WaitlistStatus = {}));
168
171
 
169
172
  var WorkOrderType;
@@ -282,21 +285,18 @@ var ChangeOrderStatus;
282
285
  ChangeOrderStatus[ChangeOrderStatus["Unconfirmed"] = 4] = "Unconfirmed";
283
286
  })(ChangeOrderStatus || (ChangeOrderStatus = {}));
284
287
 
285
- var MountType;
286
- (function (MountType) {
287
- MountType[MountType["Standard"] = 0] = "Standard";
288
- MountType[MountType["Plate"] = 1] = "Plate";
289
- MountType[MountType["DeltaPointPro"] = 2] = "DeltaPointPro";
290
- MountType[MountType["ShieldRMS"] = 3] = "ShieldRMS";
291
- MountType[MountType["PlateBUIS"] = 4] = "PlateBUIS";
292
- })(MountType || (MountType = {}));
293
-
294
- var SightType;
295
- (function (SightType) {
296
- SightType[SightType["Black"] = 0] = "Black";
297
- SightType[SightType["Tritium"] = 1] = "Tritium";
298
- SightType[SightType["FiberOptic"] = 2] = "FiberOptic";
299
- })(SightType || (SightType = {}));
288
+ class MountType {
289
+ constructor() {
290
+ this.active = true;
291
+ }
292
+ }
293
+
294
+ var SightTypeEnum;
295
+ (function (SightTypeEnum) {
296
+ SightTypeEnum[SightTypeEnum["Black"] = 0] = "Black";
297
+ SightTypeEnum[SightTypeEnum["Tritium"] = 1] = "Tritium";
298
+ SightTypeEnum[SightTypeEnum["FiberOptic"] = 2] = "FiberOptic";
299
+ })(SightTypeEnum || (SightTypeEnum = {}));
300
300
 
301
301
  class MillingDetail {
302
302
  constructor() {
@@ -341,6 +341,10 @@ var FrameMaterial;
341
341
 
342
342
  class MillingType {
343
343
  constructor() {
344
+ this.price = 0.00;
345
+ this.isCosmetic = false;
346
+ this.mustRefinish = false;
347
+ this.firearms = [];
344
348
  this.active = true;
345
349
  }
346
350
  }
@@ -393,6 +397,7 @@ class TotalItem {
393
397
 
394
398
  class InventoryItem {
395
399
  constructor() {
400
+ this.imageOverride = false;
396
401
  this.price = 0;
397
402
  this.count = 0;
398
403
  this.orderPoint = 0;
@@ -420,6 +425,7 @@ class PackageItem {
420
425
  class Package {
421
426
  constructor() {
422
427
  this.price = 0.00;
428
+ this.imageOverride = false;
423
429
  this.active = true;
424
430
  this.gunsmithOnly = false;
425
431
  this.firearms = [];
@@ -430,6 +436,10 @@ class Package {
430
436
  }
431
437
 
432
438
  class PackageOptionalItem {
439
+ constructor() {
440
+ this.subItems = [];
441
+ this.active = true;
442
+ }
433
443
  }
434
444
 
435
445
  class PackageVariation {
@@ -489,6 +499,43 @@ class ChangeOrderPackageDetail {
489
499
  }
490
500
  }
491
501
 
502
+ class Sight {
503
+ constructor() {
504
+ this.active = true;
505
+ }
506
+ }
507
+
508
+ class SightType {
509
+ constructor() {
510
+ this.active = true;
511
+ }
512
+ }
513
+
514
+ class SightMaterialType {
515
+ constructor() {
516
+ this.active = true;
517
+ }
518
+ }
519
+
520
+ class FirearmOptic {
521
+ constructor() {
522
+ this.frontSights = [];
523
+ this.rearSights = [];
524
+ this.keepDovetail = false;
525
+ this.removeDovetail = false;
526
+ }
527
+ }
528
+
529
+ class OpticSight extends Sight {
530
+ }
531
+
532
+ class SlideAddon {
533
+ constructor() {
534
+ this.subItems = [];
535
+ this.active = true;
536
+ }
537
+ }
538
+
492
539
  function adjustHoliday(finishDate, holidays) {
493
540
  while (holidays.map(h => new Date(h.holiday)).findIndex(h => DateTime.fromJSDate(h) === DateTime.fromJSDate(finishDate)) !== -1) {
494
541
  do {
@@ -1146,6 +1193,9 @@ class ConfigurationService {
1146
1193
  updateConfigs(configuration) {
1147
1194
  return this.http.put(`${this.url}/1`, configuration);
1148
1195
  }
1196
+ syncWooCommerce() {
1197
+ return this.http.post(`${this.url}/sync-woocommerce`, null);
1198
+ }
1149
1199
  }
1150
1200
  ConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
1151
1201
  ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, providedIn: 'root' });
@@ -1180,6 +1230,9 @@ class WaitlistCustomerService {
1180
1230
  params: { token: token }
1181
1231
  });
1182
1232
  }
1233
+ createWaitlistItem(waitlistItem) {
1234
+ return this.http.post(this.url, waitlistItem);
1235
+ }
1183
1236
  }
1184
1237
  WaitlistCustomerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
1185
1238
  WaitlistCustomerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, providedIn: 'root' });
@@ -1300,78 +1353,101 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1300
1353
  args: ['env']
1301
1354
  }] }]; } });
1302
1355
 
1303
- class MillingTypeService {
1304
- constructor(http, env) {
1356
+ class BaseService {
1357
+ constructor(http) {
1305
1358
  this.http = http;
1306
- this.env = env;
1307
- this.url = this.env.baseUrl + 'api/milling-types';
1308
1359
  }
1309
- readMillingTypes(includeInactive = false) {
1310
- const params = {};
1311
- if (includeInactive) {
1312
- params['includeInactive'] = includeInactive.toString();
1360
+ getUrl(...params) {
1361
+ let baseUrl = this.urlSegments[0];
1362
+ for (let i = 0; i < params.length; i++) {
1363
+ baseUrl += `/${params[i]}`;
1364
+ if (this.urlSegments.length > i + 1) {
1365
+ baseUrl += `/${this.urlSegments[i + 1]}`;
1366
+ }
1313
1367
  }
1314
- return this.http.get(this.url, {
1315
- params: params
1316
- });
1368
+ return baseUrl;
1317
1369
  }
1318
- readMillingType(id) {
1319
- return this.http.get(`${this.url}/${id}`);
1370
+ getAll(...params) {
1371
+ return this.http.get(this.getUrl(...params));
1320
1372
  }
1321
- createMillingType(millingType) {
1322
- return this.http.post(this.url, millingType);
1373
+ getAllWithParams(queryParams, ...params) {
1374
+ return this.http.get(this.getUrl(...params), { params: queryParams });
1323
1375
  }
1324
- updateMillingType(id, millingType) {
1325
- return this.http.put(`${this.url}/${id}`, millingType);
1376
+ get(...params) {
1377
+ return this.http.get(this.getUrl(...params));
1326
1378
  }
1327
- deleteMillingType(id) {
1328
- return this.http.delete(`${this.url}/${id}`);
1379
+ create(item, ...params) {
1380
+ return this.http.post(this.getUrl(...params), item);
1381
+ }
1382
+ update(item, ...params) {
1383
+ return this.http.put(this.getUrl(...params), item);
1384
+ }
1385
+ delete(...params) {
1386
+ return this.http.delete(this.getUrl(...params));
1329
1387
  }
1330
1388
  }
1331
- MillingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
1332
- MillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, providedIn: 'root' });
1333
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, decorators: [{
1389
+ BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1390
+ BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
1391
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
1334
1392
  type: Injectable,
1335
1393
  args: [{
1336
1394
  providedIn: 'root'
1337
1395
  }]
1396
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
1397
+
1398
+ class MillingTypeService extends BaseService {
1399
+ constructor(http, env) {
1400
+ super(http);
1401
+ this.http = http;
1402
+ this.env = env;
1403
+ this.urlSegments = [`${this.env.baseUrl}api/milling-types`];
1404
+ }
1405
+ }
1406
+ MillingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
1407
+ MillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, providedIn: "root" });
1408
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, decorators: [{
1409
+ type: Injectable,
1410
+ args: [{
1411
+ providedIn: "root",
1412
+ }]
1338
1413
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1339
1414
  type: Inject,
1340
- args: ['env']
1415
+ args: ["env"]
1341
1416
  }] }]; } });
1342
1417
 
1343
- class CoatingService {
1418
+ class CoatingService extends BaseService {
1344
1419
  constructor(http, env) {
1420
+ super(http);
1345
1421
  this.http = http;
1346
1422
  this.env = env;
1347
- this.url = this.env.baseUrl + 'api/coatings';
1348
- }
1349
- readCoatings(includeInactive = false) {
1350
- const params = {
1351
- includeInactive: includeInactive.toString()
1352
- };
1353
- return this.http.get(this.url, {
1354
- params: params
1355
- });
1356
- }
1357
- readCoating(id) {
1358
- return this.http.get(`${this.url}/${id}`);
1359
- }
1360
- createCoating(coating) {
1361
- return this.http.post(this.url, coating);
1362
- }
1363
- updateCoating(id, coating) {
1364
- return this.http.put(`${this.url}/${id}`, coating);
1365
- }
1366
- deleteCoating(id) {
1367
- return this.http.delete(`${this.url}/${id}`);
1368
- }
1423
+ this.urlSegments = [`${this.env.baseUrl}api/coatings`];
1424
+ }
1425
+ // readCoatings(includeInactive = false): Observable<Coating[]> {
1426
+ // const params = {
1427
+ // includeInactive: includeInactive.toString(),
1428
+ // };
1429
+ // return this.http.get<Coating[]>(this.url, {
1430
+ // params: params,
1431
+ // });
1432
+ // }
1433
+ // readCoating(id: number): Observable<Coating> {
1434
+ // return this.http.get<Coating>(`${this.url}/${id}`);
1435
+ // }
1436
+ // createCoating(coating: Coating): Observable<Coating> {
1437
+ // return this.http.post<Coating>(this.url, coating);
1438
+ // }
1439
+ // updateCoating(id: number, coating: Coating): Observable<Coating> {
1440
+ // return this.http.put<Coating>(`${this.url}/${id}`, coating);
1441
+ // }
1442
+ // deleteCoating(id: number): Observable<any> {
1443
+ // return this.http.delete(`${this.url}/${id}`);
1444
+ // }
1369
1445
  // Coating Values
1370
1446
  readCoatingValues(coatingId, includeInactive = false) {
1371
1447
  return this.http.get(`${this.url}/${coatingId}/coating-values`, {
1372
1448
  params: {
1373
- includeInactive: includeInactive.toString()
1374
- }
1449
+ includeInactive: includeInactive.toString(),
1450
+ },
1375
1451
  });
1376
1452
  }
1377
1453
  readCoatingValue(coatingId, coatingValueId) {
@@ -1387,16 +1463,16 @@ class CoatingService {
1387
1463
  return this.http.delete(`${this.url}/${coatingId}/coating-values/${coatingValueId}`);
1388
1464
  }
1389
1465
  }
1390
- CoatingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
1391
- CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn: 'root' });
1466
+ CoatingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
1467
+ CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn: "root" });
1392
1468
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, decorators: [{
1393
1469
  type: Injectable,
1394
1470
  args: [{
1395
- providedIn: 'root'
1471
+ providedIn: "root",
1396
1472
  }]
1397
1473
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1398
1474
  type: Inject,
1399
- args: ['env']
1475
+ args: ["env"]
1400
1476
  }] }]; } });
1401
1477
 
1402
1478
  class MaterialService {
@@ -1709,45 +1785,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1709
1785
  args: ['env']
1710
1786
  }] }]; } });
1711
1787
 
1712
- class BaseService {
1713
- constructor(http) {
1714
- this.http = http;
1715
- }
1716
- getUrl(...params) {
1717
- let baseUrl = this.urlSegments[0];
1718
- for (let i = 0; i < params.length; i++) {
1719
- baseUrl += `/${params[i]}`;
1720
- if (this.urlSegments.length > i + 1) {
1721
- baseUrl += `/${this.urlSegments[i + 1]}`;
1722
- }
1723
- }
1724
- return baseUrl;
1725
- }
1726
- getAll(...params) {
1727
- return this.http.get(this.getUrl(...params));
1728
- }
1729
- get(...params) {
1730
- return this.http.get(this.getUrl(...params));
1731
- }
1732
- create(item, ...params) {
1733
- return this.http.post(this.getUrl(...params), item);
1734
- }
1735
- update(item, ...params) {
1736
- return this.http.put(this.getUrl(...params), item);
1737
- }
1738
- delete(...params) {
1739
- return this.http.delete(this.getUrl(...params));
1740
- }
1741
- }
1742
- BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1743
- BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
1744
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
1745
- type: Injectable,
1746
- args: [{
1747
- providedIn: 'root'
1748
- }]
1749
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
1750
-
1751
1788
  class WorkOrderShippingItemService extends BaseService {
1752
1789
  constructor(http, env) {
1753
1790
  super(http);
@@ -1833,6 +1870,206 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1833
1870
  args: ['env']
1834
1871
  }] }]; } });
1835
1872
 
1873
+ class MountTypeService extends BaseService {
1874
+ constructor(http, env) {
1875
+ super(http);
1876
+ this.http = http;
1877
+ this.env = env;
1878
+ this.urlSegments = [`${this.env.baseUrl}api/mount-types`];
1879
+ }
1880
+ }
1881
+ MountTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
1882
+ MountTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, providedIn: "root" });
1883
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, decorators: [{
1884
+ type: Injectable,
1885
+ args: [{
1886
+ providedIn: "root",
1887
+ }]
1888
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1889
+ type: Inject,
1890
+ args: ["env"]
1891
+ }] }]; } });
1892
+
1893
+ class SightService extends BaseService {
1894
+ constructor(http, env) {
1895
+ super(http);
1896
+ this.http = http;
1897
+ this.env = env;
1898
+ this.urlSegments = [`${this.env.baseUrl}api/sights`];
1899
+ }
1900
+ }
1901
+ SightService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
1902
+ SightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, providedIn: 'root' });
1903
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, decorators: [{
1904
+ type: Injectable,
1905
+ args: [{
1906
+ providedIn: 'root'
1907
+ }]
1908
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1909
+ type: Inject,
1910
+ args: ["env"]
1911
+ }] }]; } });
1912
+
1913
+ class SightTypeService extends BaseService {
1914
+ constructor(http, env) {
1915
+ super(http);
1916
+ this.http = http;
1917
+ this.env = env;
1918
+ this.urlSegments = [`${this.env.baseUrl}api/sight-types`];
1919
+ }
1920
+ }
1921
+ SightTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
1922
+ SightTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, providedIn: 'root' });
1923
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, decorators: [{
1924
+ type: Injectable,
1925
+ args: [{
1926
+ providedIn: 'root'
1927
+ }]
1928
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1929
+ type: Inject,
1930
+ args: ["env"]
1931
+ }] }]; } });
1932
+
1933
+ class SightMaterialService extends BaseService {
1934
+ constructor(http, env) {
1935
+ super(http);
1936
+ this.http = http;
1937
+ this.env = env;
1938
+ this.urlSegments = [`${this.env.baseUrl}api/sight-materials`];
1939
+ }
1940
+ }
1941
+ SightMaterialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
1942
+ SightMaterialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, providedIn: "root" });
1943
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, decorators: [{
1944
+ type: Injectable,
1945
+ args: [{
1946
+ providedIn: "root",
1947
+ }]
1948
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1949
+ type: Inject,
1950
+ args: ["env"]
1951
+ }] }]; } });
1952
+
1953
+ class FirearmOpticService extends BaseService {
1954
+ constructor(http, env) {
1955
+ super(http);
1956
+ this.http = http;
1957
+ this.env = env;
1958
+ this.urlSegments = [`${this.env.baseUrl}api/firearms`, "optics"];
1959
+ }
1960
+ }
1961
+ FirearmOpticService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
1962
+ FirearmOpticService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, providedIn: "root" });
1963
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, decorators: [{
1964
+ type: Injectable,
1965
+ args: [{
1966
+ providedIn: "root",
1967
+ }]
1968
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1969
+ type: Inject,
1970
+ args: ["env"]
1971
+ }] }]; } });
1972
+
1973
+ class FirearmSightService extends BaseService {
1974
+ constructor(http, env) {
1975
+ super(http);
1976
+ this.http = http;
1977
+ this.env = env;
1978
+ this.urlSegments = [`${this.env.baseUrl}api/firearms`, "sights"];
1979
+ }
1980
+ }
1981
+ FirearmSightService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
1982
+ FirearmSightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, providedIn: "root" });
1983
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, decorators: [{
1984
+ type: Injectable,
1985
+ args: [{
1986
+ providedIn: "root",
1987
+ }]
1988
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1989
+ type: Inject,
1990
+ args: ["env"]
1991
+ }] }]; } });
1992
+
1993
+ class PackageOptionalItemService extends BaseService {
1994
+ constructor(http, env) {
1995
+ super(http);
1996
+ this.http = http;
1997
+ this.env = env;
1998
+ this.urlSegments = [`${this.env.baseUrl}api/packages`, "optional-items"];
1999
+ }
2000
+ }
2001
+ PackageOptionalItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
2002
+ PackageOptionalItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, providedIn: "root" });
2003
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, decorators: [{
2004
+ type: Injectable,
2005
+ args: [{
2006
+ providedIn: "root",
2007
+ }]
2008
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2009
+ type: Inject,
2010
+ args: ["env"]
2011
+ }] }]; } });
2012
+
2013
+ class PackageVariationService extends BaseService {
2014
+ constructor(http, env) {
2015
+ super(http);
2016
+ this.http = http;
2017
+ this.env = env;
2018
+ this.urlSegments = [`${this.env.baseUrl}api/packages`, "variations"];
2019
+ }
2020
+ }
2021
+ PackageVariationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
2022
+ PackageVariationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, providedIn: "root" });
2023
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, decorators: [{
2024
+ type: Injectable,
2025
+ args: [{
2026
+ providedIn: "root",
2027
+ }]
2028
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2029
+ type: Inject,
2030
+ args: ["env"]
2031
+ }] }]; } });
2032
+
2033
+ class SlideAddonService extends BaseService {
2034
+ constructor(http, env) {
2035
+ super(http);
2036
+ this.http = http;
2037
+ this.env = env;
2038
+ this.urlSegments = [`${this.env.baseUrl}api/firearms`, "slide-addons"];
2039
+ }
2040
+ }
2041
+ SlideAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
2042
+ SlideAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, providedIn: "root" });
2043
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, decorators: [{
2044
+ type: Injectable,
2045
+ args: [{
2046
+ providedIn: "root",
2047
+ }]
2048
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2049
+ type: Inject,
2050
+ args: ["env"]
2051
+ }] }]; } });
2052
+
2053
+ class CoatingValueService extends BaseService {
2054
+ constructor(http, env) {
2055
+ super(http);
2056
+ this.http = http;
2057
+ this.env = env;
2058
+ this.urlSegments = [`${this.env.baseUrl}api/coatings`, "coating-values"];
2059
+ }
2060
+ }
2061
+ CoatingValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
2062
+ CoatingValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, providedIn: "root" });
2063
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, decorators: [{
2064
+ type: Injectable,
2065
+ args: [{
2066
+ providedIn: "root",
2067
+ }]
2068
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2069
+ type: Inject,
2070
+ args: ["env"]
2071
+ }] }]; } });
2072
+
1836
2073
  class PhonePipe {
1837
2074
  transform(value, args) {
1838
2075
  if (value && value.length >= 10) {
@@ -2160,6 +2397,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2160
2397
  type: Input
2161
2398
  }] } });
2162
2399
 
2400
+ class FormErrorMessageComponent {
2401
+ }
2402
+ FormErrorMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2403
+ FormErrorMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormErrorMessageComponent, selector: "cgw-error-message", inputs: { control: "control", controlName: "controlName" }, ngImport: i0, template: "<div *ngIf=\"control.invalid && (control.dirty || control.touched)\" class=\"error-container text-danger\">\n <div *ngIf=\"control.errors.required\">\n {{controlName}} is required.\n </div>\n</div>\n", styles: [""], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2404
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, decorators: [{
2405
+ type: Component,
2406
+ args: [{ selector: 'cgw-error-message', template: "<div *ngIf=\"control.invalid && (control.dirty || control.touched)\" class=\"error-container text-danger\">\n <div *ngIf=\"control.errors.required\">\n {{controlName}} is required.\n </div>\n</div>\n", styles: [""] }]
2407
+ }], propDecorators: { control: [{
2408
+ type: Input
2409
+ }], controlName: [{
2410
+ type: Input
2411
+ }] } });
2412
+
2413
+ class ModalHeaderComponent {
2414
+ constructor() {
2415
+ this.close = new EventEmitter();
2416
+ }
2417
+ onCloseClick(e) {
2418
+ e.preventDefault();
2419
+ this.close.emit(e);
2420
+ }
2421
+ }
2422
+ ModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2423
+ ModalHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ModalHeaderComponent, selector: "cgw-modal-header", inputs: { headerTitle: "headerTitle", form: "form" }, outputs: { close: "close" }, ngImport: i0, template: "<div class=\"modal-header\">\n <div class=\"modal-title\">\n <a href=\"#\" (click)=\"onCloseClick($event)\" title=\"Close\"><i class=\"fas fa-arrow-left text-white\"></i></a>\n <span class=\"ms-2\">{{headerTitle}}</span>\n </div>\n <button class=\"btn btn-primary btn-sm float-end\"\n type=\"submit\"\n title=\"Save\"\n [class.btn-warning]=\"form.dirty\"\n [class.btn-primary]=\"!form.dirty\"\n [disabled]=\"form.invalid\">\n <i class=\"fa-fw far fa-save\"></i>\n </button>\n </div>\n", styles: [""] });
2424
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, decorators: [{
2425
+ type: Component,
2426
+ args: [{ selector: 'cgw-modal-header', template: "<div class=\"modal-header\">\n <div class=\"modal-title\">\n <a href=\"#\" (click)=\"onCloseClick($event)\" title=\"Close\"><i class=\"fas fa-arrow-left text-white\"></i></a>\n <span class=\"ms-2\">{{headerTitle}}</span>\n </div>\n <button class=\"btn btn-primary btn-sm float-end\"\n type=\"submit\"\n title=\"Save\"\n [class.btn-warning]=\"form.dirty\"\n [class.btn-primary]=\"!form.dirty\"\n [disabled]=\"form.invalid\">\n <i class=\"fa-fw far fa-save\"></i>\n </button>\n </div>\n", styles: [""] }]
2427
+ }], propDecorators: { headerTitle: [{
2428
+ type: Input
2429
+ }], form: [{
2430
+ type: Input
2431
+ }], close: [{
2432
+ type: Output
2433
+ }] } });
2434
+
2163
2435
  class SharedModule {
2164
2436
  }
2165
2437
  SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2169,22 +2441,18 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
2169
2441
  DisableControlDirective,
2170
2442
  NewLinePipe,
2171
2443
  FrameMaterialPipe,
2172
- PackageSelectorComponent], imports: [CommonModule,
2173
- DropDownsModule,
2174
- FormsModule,
2175
- ReactiveFormsModule], exports: [PhonePipe,
2444
+ PackageSelectorComponent,
2445
+ FormErrorMessageComponent,
2446
+ ModalHeaderComponent], imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule], exports: [PhonePipe,
2176
2447
  FileNamePipe,
2177
2448
  EnumPipe,
2178
2449
  NewLinePipe,
2179
2450
  DisableControlDirective,
2180
2451
  FrameMaterialPipe,
2181
- PackageSelectorComponent] });
2182
- SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[
2183
- CommonModule,
2184
- DropDownsModule,
2185
- FormsModule,
2186
- ReactiveFormsModule
2187
- ]] });
2452
+ PackageSelectorComponent,
2453
+ FormErrorMessageComponent,
2454
+ ModalHeaderComponent] });
2455
+ SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule]] });
2188
2456
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
2189
2457
  type: NgModule,
2190
2458
  args: [{
@@ -2195,14 +2463,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2195
2463
  DisableControlDirective,
2196
2464
  NewLinePipe,
2197
2465
  FrameMaterialPipe,
2198
- PackageSelectorComponent
2199
- ],
2200
- imports: [
2201
- CommonModule,
2202
- DropDownsModule,
2203
- FormsModule,
2204
- ReactiveFormsModule
2466
+ PackageSelectorComponent,
2467
+ FormErrorMessageComponent,
2468
+ ModalHeaderComponent
2205
2469
  ],
2470
+ imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule],
2206
2471
  exports: [
2207
2472
  PhonePipe,
2208
2473
  FileNamePipe,
@@ -2210,8 +2475,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2210
2475
  NewLinePipe,
2211
2476
  DisableControlDirective,
2212
2477
  FrameMaterialPipe,
2213
- PackageSelectorComponent
2214
- ]
2478
+ PackageSelectorComponent,
2479
+ FormErrorMessageComponent,
2480
+ ModalHeaderComponent
2481
+ ],
2215
2482
  }]
2216
2483
  }] });
2217
2484
 
@@ -2273,10 +2540,10 @@ class NotificationBarComponent {
2273
2540
  }
2274
2541
  }
2275
2542
  NotificationBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, deps: [{ token: NotificationService }], target: i0.ɵɵFactoryTarget.Component });
2276
- NotificationBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NotificationBarComponent, selector: "app-notification-bar", ngImport: i0, template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\n </div>\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\n</div>\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:10001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:#181818;padding:8px;text-align:center;color:#fff}.notification-bar .error{color:#711e16!important;background:#f8d8d4!important}\n"], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [fadeOutAnimation] });
2543
+ NotificationBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NotificationBarComponent, selector: "app-notification-bar", ngImport: i0, template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\n </div>\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\n</div>\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:1000001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:#181818;padding:8px;text-align:center;color:#fff}.notification-bar .error{color:#711e16!important;background:#f8d8d4!important}\n"], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [fadeOutAnimation] });
2277
2544
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, decorators: [{
2278
2545
  type: Component,
2279
- args: [{ selector: 'app-notification-bar', animations: [fadeOutAnimation], template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\n </div>\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\n</div>\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:10001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:#181818;padding:8px;text-align:center;color:#fff}.notification-bar .error{color:#711e16!important;background:#f8d8d4!important}\n"] }]
2546
+ args: [{ selector: 'app-notification-bar', animations: [fadeOutAnimation], template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\n </div>\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\n</div>\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:1000001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:#181818;padding:8px;text-align:center;color:#fff}.notification-bar .error{color:#711e16!important;background:#f8d8d4!important}\n"] }]
2280
2547
  }], ctorParameters: function () { return [{ type: NotificationService }]; } });
2281
2548
 
2282
2549
  class NotificationModule {
@@ -2315,5 +2582,5 @@ var NotificationType;
2315
2582
  * Generated bundle index. Do not edit.
2316
2583
  */
2317
2584
 
2318
- export { BaseService, BundleItem, ChangeOrderPackageDetail, ChangeOrderStatus, Coating, CoatingService, CoatingValue, Configuration, ConfigurationService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, Firearm, FirearmSeries, FirearmSeriesOptic, FirearmSeriesService, FirearmService, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeService, MountType, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageSelectorComponent, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, QuickbooksService, RearSightPosition, RefinishCode, RefinishCodeService, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, SightType, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderDiscount, WorkOrderDiscountService, WorkOrderHistory, WorkOrderInventoryItem, WorkOrderListItem, WorkOrderNonInventoryItem, WorkOrderNonInventoryItemService, WorkOrderPackageDetail, WorkOrderRefinishItem, WorkOrderService, WorkOrderShippingItem, WorkOrderShippingItemService, WorkOrderStatus, WorkOrderType, calculateFinishDate, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
2585
+ export { BaseService, BundleItem, ChangeOrderPackageDetail, ChangeOrderStatus, Coating, CoatingService, CoatingValue, CoatingValueService, Configuration, ConfigurationService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, Firearm, FirearmOptic, FirearmOpticService, FirearmSeries, FirearmSeriesOptic, FirearmSeriesService, FirearmService, FirearmSightService, FormErrorMessageComponent, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeService, ModalHeaderComponent, MountType, MountTypeService, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticSight, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageOptionalItemService, PackageSelectorComponent, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PackageVariationService, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, QuickbooksService, RearSightPosition, RefinishCode, RefinishCodeService, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, Sight, SightMaterialService, SightMaterialType, SightService, SightType, SightTypeEnum, SightTypeService, SlideAddon, SlideAddonService, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderDiscount, WorkOrderDiscountService, WorkOrderHistory, WorkOrderInventoryItem, WorkOrderListItem, WorkOrderNonInventoryItem, WorkOrderNonInventoryItemService, WorkOrderPackageDetail, WorkOrderRefinishItem, WorkOrderService, WorkOrderShippingItem, WorkOrderShippingItemService, WorkOrderStatus, WorkOrderType, calculateFinishDate, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
2319
2586
  //# sourceMappingURL=gunsmith-common.mjs.map