gunsmith-common 2.2.16 → 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 (96) 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/firearm.service.mjs +4 -1
  12. package/esm2020/shared/services/index.mjs +11 -1
  13. package/esm2020/shared/services/milling-type.service.mjs +9 -37
  14. package/esm2020/shared/services/mount-type.service.mjs +25 -0
  15. package/esm2020/shared/services/package-optional-item.service.mjs +25 -0
  16. package/esm2020/shared/services/package-variation.service.mjs +25 -0
  17. package/esm2020/shared/services/sight-material.service.mjs +25 -0
  18. package/esm2020/shared/services/sight-type.service.mjs +25 -0
  19. package/esm2020/shared/services/sight.service.mjs +25 -0
  20. package/esm2020/shared/services/slide-addon.service.mjs +25 -0
  21. package/esm2020/shared/services/waitlist-customer.service.mjs +4 -1
  22. package/esm2020/shared/shared.module.mjs +18 -21
  23. package/esm2020/shared/types/coating-value.mjs +1 -1
  24. package/esm2020/shared/types/coating.mjs +1 -1
  25. package/esm2020/shared/types/firearm-optic.mjs +9 -0
  26. package/esm2020/shared/types/firearm-series-optic.mjs +1 -1
  27. package/esm2020/shared/types/gun-part.mjs +1 -1
  28. package/esm2020/shared/types/index.mjs +9 -2
  29. package/esm2020/shared/types/inventory-item.mjs +2 -1
  30. package/esm2020/shared/types/milling-detail.mjs +1 -1
  31. package/esm2020/shared/types/milling-type.mjs +5 -1
  32. package/esm2020/shared/types/mount-type.mjs +6 -9
  33. package/esm2020/shared/types/optic-sight.mjs +4 -0
  34. package/esm2020/shared/types/optic.mjs +1 -1
  35. package/esm2020/shared/types/package-optional-item.mjs +5 -1
  36. package/esm2020/shared/types/package-variation-option.mjs +1 -1
  37. package/esm2020/shared/types/package.mjs +2 -1
  38. package/esm2020/shared/types/sight-material-type.mjs +6 -0
  39. package/esm2020/shared/types/sight-type-enum.mjs +7 -0
  40. package/esm2020/shared/types/sight-type.mjs +6 -7
  41. package/esm2020/shared/types/sight.mjs +6 -0
  42. package/esm2020/shared/types/simple-type.mjs +2 -0
  43. package/esm2020/shared/types/slide-addon.mjs +7 -0
  44. package/esm2020/shared/types/waitlist-gun.mjs +3 -1
  45. package/esm2020/shared/types/waitlist-status.mjs +2 -1
  46. package/fesm2015/gunsmith-common.mjs +419 -138
  47. package/fesm2015/gunsmith-common.mjs.map +1 -1
  48. package/fesm2020/gunsmith-common.mjs +399 -138
  49. package/fesm2020/gunsmith-common.mjs.map +1 -1
  50. package/gunsmith-common-2.3.0.tgz +0 -0
  51. package/package.json +1 -1
  52. package/public_api.d.ts +2 -0
  53. package/shared/controls/form-error-message/form-error-message.component.d.ts +8 -0
  54. package/shared/controls/modal-header/modal-header.component.d.ts +11 -0
  55. package/shared/services/base.service.d.ts +1 -0
  56. package/shared/services/coating-value.service.d.ts +11 -0
  57. package/shared/services/coating.service.d.ts +4 -8
  58. package/shared/services/configuration.service.d.ts +1 -0
  59. package/shared/services/firearm-optic.service.d.ts +11 -0
  60. package/shared/services/firearm-sight.service.d.ts +11 -0
  61. package/shared/services/firearm.service.d.ts +2 -1
  62. package/shared/services/index.d.ts +10 -0
  63. package/shared/services/milling-type.service.d.ts +4 -11
  64. package/shared/services/mount-type.service.d.ts +11 -0
  65. package/shared/services/package-optional-item.service.d.ts +11 -0
  66. package/shared/services/package-variation.service.d.ts +11 -0
  67. package/shared/services/sight-material.service.d.ts +11 -0
  68. package/shared/services/sight-type.service.d.ts +11 -0
  69. package/shared/services/sight.service.d.ts +11 -0
  70. package/shared/services/slide-addon.service.d.ts +11 -0
  71. package/shared/services/waitlist-customer.service.d.ts +1 -0
  72. package/shared/shared.module.d.ts +6 -4
  73. package/shared/types/coating-value.d.ts +1 -0
  74. package/shared/types/coating.d.ts +3 -0
  75. package/shared/types/firearm-optic.d.ts +19 -0
  76. package/shared/types/firearm-series-optic.d.ts +1 -2
  77. package/shared/types/gun-part.d.ts +1 -0
  78. package/shared/types/index.d.ts +8 -1
  79. package/shared/types/inventory-item.d.ts +2 -0
  80. package/shared/types/milling-detail.d.ts +5 -2
  81. package/shared/types/milling-type.d.ts +4 -0
  82. package/shared/types/mount-type.d.ts +7 -6
  83. package/shared/types/optic-sight.d.ts +8 -0
  84. package/shared/types/optic.d.ts +3 -0
  85. package/shared/types/package-optional-item.d.ts +10 -0
  86. package/shared/types/package-variation-option.d.ts +1 -0
  87. package/shared/types/package.d.ts +2 -0
  88. package/shared/types/sight-material-type.d.ts +6 -0
  89. package/shared/types/sight-type-enum.d.ts +5 -0
  90. package/shared/types/sight-type.d.ts +7 -4
  91. package/shared/types/sight.d.ts +15 -0
  92. package/shared/types/simple-type.d.ts +6 -0
  93. package/shared/types/slide-addon.d.ts +20 -0
  94. package/shared/types/waitlist-gun.d.ts +4 -0
  95. package/shared/types/waitlist-status.d.ts +2 -1
  96. package/gunsmith-common-2.2.16.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 {
@@ -591,6 +638,9 @@ class FirearmService {
591
638
  readFirearmMaterial(firearmId) {
592
639
  return this.http.get(`${this.url}/${firearmId}/material`);
593
640
  }
641
+ readFirearmCosmetics(firearmId) {
642
+ return this.http.get(`${this.url}/${firearmId}/cosmetics`);
643
+ }
594
644
  }
595
645
  FirearmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
596
646
  FirearmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, providedIn: 'root' });
@@ -1143,6 +1193,9 @@ class ConfigurationService {
1143
1193
  updateConfigs(configuration) {
1144
1194
  return this.http.put(`${this.url}/1`, configuration);
1145
1195
  }
1196
+ syncWooCommerce() {
1197
+ return this.http.post(`${this.url}/sync-woocommerce`, null);
1198
+ }
1146
1199
  }
1147
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 });
1148
1201
  ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, providedIn: 'root' });
@@ -1177,6 +1230,9 @@ class WaitlistCustomerService {
1177
1230
  params: { token: token }
1178
1231
  });
1179
1232
  }
1233
+ createWaitlistItem(waitlistItem) {
1234
+ return this.http.post(this.url, waitlistItem);
1235
+ }
1180
1236
  }
1181
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 });
1182
1238
  WaitlistCustomerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, providedIn: 'root' });
@@ -1297,87 +1353,101 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1297
1353
  args: ['env']
1298
1354
  }] }]; } });
1299
1355
 
1300
- class MillingTypeService {
1301
- constructor(http, env) {
1356
+ class BaseService {
1357
+ constructor(http) {
1302
1358
  this.http = http;
1303
- this.env = env;
1304
- this.url = this.env.baseUrl + 'api/milling-types';
1305
1359
  }
1306
- readMillingTypes(includeInactive = false) {
1307
- const params = {};
1308
- if (includeInactive) {
1309
- 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
+ }
1310
1367
  }
1311
- return this.http.get(this.url, {
1312
- params: params
1313
- });
1368
+ return baseUrl;
1314
1369
  }
1315
- readCosmeticMillings(includeInactive = false) {
1316
- const params = {};
1317
- if (includeInactive) {
1318
- params['includeInactive'] = includeInactive.toString();
1319
- }
1320
- return this.http.get(`${this.url}/cosmetics`, {
1321
- params: params
1322
- });
1370
+ getAll(...params) {
1371
+ return this.http.get(this.getUrl(...params));
1323
1372
  }
1324
- readMillingType(id) {
1325
- return this.http.get(`${this.url}/${id}`);
1373
+ getAllWithParams(queryParams, ...params) {
1374
+ return this.http.get(this.getUrl(...params), { params: queryParams });
1326
1375
  }
1327
- createMillingType(millingType) {
1328
- return this.http.post(this.url, millingType);
1376
+ get(...params) {
1377
+ return this.http.get(this.getUrl(...params));
1329
1378
  }
1330
- updateMillingType(id, millingType) {
1331
- return this.http.put(`${this.url}/${id}`, millingType);
1379
+ create(item, ...params) {
1380
+ return this.http.post(this.getUrl(...params), item);
1332
1381
  }
1333
- deleteMillingType(id) {
1334
- return this.http.delete(`${this.url}/${id}`);
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));
1335
1387
  }
1336
1388
  }
1337
- 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 });
1338
- MillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, providedIn: 'root' });
1339
- 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: [{
1340
1392
  type: Injectable,
1341
1393
  args: [{
1342
1394
  providedIn: 'root'
1343
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
+ }]
1344
1413
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1345
1414
  type: Inject,
1346
- args: ['env']
1415
+ args: ["env"]
1347
1416
  }] }]; } });
1348
1417
 
1349
- class CoatingService {
1418
+ class CoatingService extends BaseService {
1350
1419
  constructor(http, env) {
1420
+ super(http);
1351
1421
  this.http = http;
1352
1422
  this.env = env;
1353
- this.url = this.env.baseUrl + 'api/coatings';
1354
- }
1355
- readCoatings(includeInactive = false) {
1356
- const params = {
1357
- includeInactive: includeInactive.toString()
1358
- };
1359
- return this.http.get(this.url, {
1360
- params: params
1361
- });
1362
- }
1363
- readCoating(id) {
1364
- return this.http.get(`${this.url}/${id}`);
1365
- }
1366
- createCoating(coating) {
1367
- return this.http.post(this.url, coating);
1368
- }
1369
- updateCoating(id, coating) {
1370
- return this.http.put(`${this.url}/${id}`, coating);
1371
- }
1372
- deleteCoating(id) {
1373
- return this.http.delete(`${this.url}/${id}`);
1374
- }
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
+ // }
1375
1445
  // Coating Values
1376
1446
  readCoatingValues(coatingId, includeInactive = false) {
1377
1447
  return this.http.get(`${this.url}/${coatingId}/coating-values`, {
1378
1448
  params: {
1379
- includeInactive: includeInactive.toString()
1380
- }
1449
+ includeInactive: includeInactive.toString(),
1450
+ },
1381
1451
  });
1382
1452
  }
1383
1453
  readCoatingValue(coatingId, coatingValueId) {
@@ -1393,16 +1463,16 @@ class CoatingService {
1393
1463
  return this.http.delete(`${this.url}/${coatingId}/coating-values/${coatingValueId}`);
1394
1464
  }
1395
1465
  }
1396
- 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 });
1397
- 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" });
1398
1468
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, decorators: [{
1399
1469
  type: Injectable,
1400
1470
  args: [{
1401
- providedIn: 'root'
1471
+ providedIn: "root",
1402
1472
  }]
1403
1473
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1404
1474
  type: Inject,
1405
- args: ['env']
1475
+ args: ["env"]
1406
1476
  }] }]; } });
1407
1477
 
1408
1478
  class MaterialService {
@@ -1715,45 +1785,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1715
1785
  args: ['env']
1716
1786
  }] }]; } });
1717
1787
 
1718
- class BaseService {
1719
- constructor(http) {
1720
- this.http = http;
1721
- }
1722
- getUrl(...params) {
1723
- let baseUrl = this.urlSegments[0];
1724
- for (let i = 0; i < params.length; i++) {
1725
- baseUrl += `/${params[i]}`;
1726
- if (this.urlSegments.length > i + 1) {
1727
- baseUrl += `/${this.urlSegments[i + 1]}`;
1728
- }
1729
- }
1730
- return baseUrl;
1731
- }
1732
- getAll(...params) {
1733
- return this.http.get(this.getUrl(...params));
1734
- }
1735
- get(...params) {
1736
- return this.http.get(this.getUrl(...params));
1737
- }
1738
- create(item, ...params) {
1739
- return this.http.post(this.getUrl(...params), item);
1740
- }
1741
- update(item, ...params) {
1742
- return this.http.put(this.getUrl(...params), item);
1743
- }
1744
- delete(...params) {
1745
- return this.http.delete(this.getUrl(...params));
1746
- }
1747
- }
1748
- BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1749
- BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
1750
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
1751
- type: Injectable,
1752
- args: [{
1753
- providedIn: 'root'
1754
- }]
1755
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
1756
-
1757
1788
  class WorkOrderShippingItemService extends BaseService {
1758
1789
  constructor(http, env) {
1759
1790
  super(http);
@@ -1839,6 +1870,206 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1839
1870
  args: ['env']
1840
1871
  }] }]; } });
1841
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
+
1842
2073
  class PhonePipe {
1843
2074
  transform(value, args) {
1844
2075
  if (value && value.length >= 10) {
@@ -2166,6 +2397,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2166
2397
  type: Input
2167
2398
  }] } });
2168
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
+
2169
2435
  class SharedModule {
2170
2436
  }
2171
2437
  SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2175,22 +2441,18 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
2175
2441
  DisableControlDirective,
2176
2442
  NewLinePipe,
2177
2443
  FrameMaterialPipe,
2178
- PackageSelectorComponent], imports: [CommonModule,
2179
- DropDownsModule,
2180
- FormsModule,
2181
- ReactiveFormsModule], exports: [PhonePipe,
2444
+ PackageSelectorComponent,
2445
+ FormErrorMessageComponent,
2446
+ ModalHeaderComponent], imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule], exports: [PhonePipe,
2182
2447
  FileNamePipe,
2183
2448
  EnumPipe,
2184
2449
  NewLinePipe,
2185
2450
  DisableControlDirective,
2186
2451
  FrameMaterialPipe,
2187
- PackageSelectorComponent] });
2188
- SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[
2189
- CommonModule,
2190
- DropDownsModule,
2191
- FormsModule,
2192
- ReactiveFormsModule
2193
- ]] });
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]] });
2194
2456
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
2195
2457
  type: NgModule,
2196
2458
  args: [{
@@ -2201,14 +2463,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2201
2463
  DisableControlDirective,
2202
2464
  NewLinePipe,
2203
2465
  FrameMaterialPipe,
2204
- PackageSelectorComponent
2205
- ],
2206
- imports: [
2207
- CommonModule,
2208
- DropDownsModule,
2209
- FormsModule,
2210
- ReactiveFormsModule
2466
+ PackageSelectorComponent,
2467
+ FormErrorMessageComponent,
2468
+ ModalHeaderComponent
2211
2469
  ],
2470
+ imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule],
2212
2471
  exports: [
2213
2472
  PhonePipe,
2214
2473
  FileNamePipe,
@@ -2216,8 +2475,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2216
2475
  NewLinePipe,
2217
2476
  DisableControlDirective,
2218
2477
  FrameMaterialPipe,
2219
- PackageSelectorComponent
2220
- ]
2478
+ PackageSelectorComponent,
2479
+ FormErrorMessageComponent,
2480
+ ModalHeaderComponent
2481
+ ],
2221
2482
  }]
2222
2483
  }] });
2223
2484
 
@@ -2279,10 +2540,10 @@ class NotificationBarComponent {
2279
2540
  }
2280
2541
  }
2281
2542
  NotificationBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, deps: [{ token: NotificationService }], target: i0.ɵɵFactoryTarget.Component });
2282
- 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] });
2283
2544
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, decorators: [{
2284
2545
  type: Component,
2285
- 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"] }]
2286
2547
  }], ctorParameters: function () { return [{ type: NotificationService }]; } });
2287
2548
 
2288
2549
  class NotificationModule {
@@ -2321,5 +2582,5 @@ var NotificationType;
2321
2582
  * Generated bundle index. Do not edit.
2322
2583
  */
2323
2584
 
2324
- 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 };
2325
2586
  //# sourceMappingURL=gunsmith-common.mjs.map