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 {
@@ -1168,6 +1215,9 @@ class ConfigurationService {
1168
1215
  updateConfigs(configuration) {
1169
1216
  return this.http.put(`${this.url}/1`, configuration);
1170
1217
  }
1218
+ syncWooCommerce() {
1219
+ return this.http.post(`${this.url}/sync-woocommerce`, null);
1220
+ }
1171
1221
  }
1172
1222
  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 });
1173
1223
  ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, providedIn: 'root' });
@@ -1204,6 +1254,9 @@ class WaitlistCustomerService {
1204
1254
  params: { token: token }
1205
1255
  });
1206
1256
  }
1257
+ createWaitlistItem(waitlistItem) {
1258
+ return this.http.post(this.url, waitlistItem);
1259
+ }
1207
1260
  }
1208
1261
  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 });
1209
1262
  WaitlistCustomerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, providedIn: 'root' });
@@ -1332,80 +1385,103 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1332
1385
  }] }];
1333
1386
  } });
1334
1387
 
1335
- class MillingTypeService {
1336
- constructor(http, env) {
1388
+ class BaseService {
1389
+ constructor(http) {
1337
1390
  this.http = http;
1338
- this.env = env;
1339
- this.url = this.env.baseUrl + 'api/milling-types';
1340
1391
  }
1341
- readMillingTypes(includeInactive = false) {
1342
- const params = {};
1343
- if (includeInactive) {
1344
- params['includeInactive'] = includeInactive.toString();
1392
+ getUrl(...params) {
1393
+ let baseUrl = this.urlSegments[0];
1394
+ for (let i = 0; i < params.length; i++) {
1395
+ baseUrl += `/${params[i]}`;
1396
+ if (this.urlSegments.length > i + 1) {
1397
+ baseUrl += `/${this.urlSegments[i + 1]}`;
1398
+ }
1345
1399
  }
1346
- return this.http.get(this.url, {
1347
- params: params
1348
- });
1400
+ return baseUrl;
1349
1401
  }
1350
- readMillingType(id) {
1351
- return this.http.get(`${this.url}/${id}`);
1402
+ getAll(...params) {
1403
+ return this.http.get(this.getUrl(...params));
1352
1404
  }
1353
- createMillingType(millingType) {
1354
- return this.http.post(this.url, millingType);
1405
+ getAllWithParams(queryParams, ...params) {
1406
+ return this.http.get(this.getUrl(...params), { params: queryParams });
1355
1407
  }
1356
- updateMillingType(id, millingType) {
1357
- return this.http.put(`${this.url}/${id}`, millingType);
1408
+ get(...params) {
1409
+ return this.http.get(this.getUrl(...params));
1358
1410
  }
1359
- deleteMillingType(id) {
1360
- return this.http.delete(`${this.url}/${id}`);
1411
+ create(item, ...params) {
1412
+ return this.http.post(this.getUrl(...params), item);
1413
+ }
1414
+ update(item, ...params) {
1415
+ return this.http.put(this.getUrl(...params), item);
1416
+ }
1417
+ delete(...params) {
1418
+ return this.http.delete(this.getUrl(...params));
1361
1419
  }
1362
1420
  }
1363
- 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 });
1364
- MillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, providedIn: 'root' });
1365
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, decorators: [{
1421
+ BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1422
+ BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
1423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
1366
1424
  type: Injectable,
1367
1425
  args: [{
1368
1426
  providedIn: 'root'
1369
1427
  }]
1428
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
1429
+
1430
+ class MillingTypeService extends BaseService {
1431
+ constructor(http, env) {
1432
+ super(http);
1433
+ this.http = http;
1434
+ this.env = env;
1435
+ this.urlSegments = [`${this.env.baseUrl}api/milling-types`];
1436
+ }
1437
+ }
1438
+ 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 });
1439
+ MillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, providedIn: "root" });
1440
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, decorators: [{
1441
+ type: Injectable,
1442
+ args: [{
1443
+ providedIn: "root",
1444
+ }]
1370
1445
  }], ctorParameters: function () {
1371
1446
  return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1372
1447
  type: Inject,
1373
- args: ['env']
1448
+ args: ["env"]
1374
1449
  }] }];
1375
1450
  } });
1376
1451
 
1377
- class CoatingService {
1452
+ class CoatingService extends BaseService {
1378
1453
  constructor(http, env) {
1454
+ super(http);
1379
1455
  this.http = http;
1380
1456
  this.env = env;
1381
- this.url = this.env.baseUrl + 'api/coatings';
1382
- }
1383
- readCoatings(includeInactive = false) {
1384
- const params = {
1385
- includeInactive: includeInactive.toString()
1386
- };
1387
- return this.http.get(this.url, {
1388
- params: params
1389
- });
1390
- }
1391
- readCoating(id) {
1392
- return this.http.get(`${this.url}/${id}`);
1393
- }
1394
- createCoating(coating) {
1395
- return this.http.post(this.url, coating);
1396
- }
1397
- updateCoating(id, coating) {
1398
- return this.http.put(`${this.url}/${id}`, coating);
1399
- }
1400
- deleteCoating(id) {
1401
- return this.http.delete(`${this.url}/${id}`);
1402
- }
1457
+ this.urlSegments = [`${this.env.baseUrl}api/coatings`];
1458
+ }
1459
+ // readCoatings(includeInactive = false): Observable<Coating[]> {
1460
+ // const params = {
1461
+ // includeInactive: includeInactive.toString(),
1462
+ // };
1463
+ // return this.http.get<Coating[]>(this.url, {
1464
+ // params: params,
1465
+ // });
1466
+ // }
1467
+ // readCoating(id: number): Observable<Coating> {
1468
+ // return this.http.get<Coating>(`${this.url}/${id}`);
1469
+ // }
1470
+ // createCoating(coating: Coating): Observable<Coating> {
1471
+ // return this.http.post<Coating>(this.url, coating);
1472
+ // }
1473
+ // updateCoating(id: number, coating: Coating): Observable<Coating> {
1474
+ // return this.http.put<Coating>(`${this.url}/${id}`, coating);
1475
+ // }
1476
+ // deleteCoating(id: number): Observable<any> {
1477
+ // return this.http.delete(`${this.url}/${id}`);
1478
+ // }
1403
1479
  // Coating Values
1404
1480
  readCoatingValues(coatingId, includeInactive = false) {
1405
1481
  return this.http.get(`${this.url}/${coatingId}/coating-values`, {
1406
1482
  params: {
1407
- includeInactive: includeInactive.toString()
1408
- }
1483
+ includeInactive: includeInactive.toString(),
1484
+ },
1409
1485
  });
1410
1486
  }
1411
1487
  readCoatingValue(coatingId, coatingValueId) {
@@ -1421,17 +1497,17 @@ class CoatingService {
1421
1497
  return this.http.delete(`${this.url}/${coatingId}/coating-values/${coatingValueId}`);
1422
1498
  }
1423
1499
  }
1424
- 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 });
1425
- CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn: 'root' });
1500
+ 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 });
1501
+ CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn: "root" });
1426
1502
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, decorators: [{
1427
1503
  type: Injectable,
1428
1504
  args: [{
1429
- providedIn: 'root'
1505
+ providedIn: "root",
1430
1506
  }]
1431
1507
  }], ctorParameters: function () {
1432
1508
  return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1433
1509
  type: Inject,
1434
- args: ['env']
1510
+ args: ["env"]
1435
1511
  }] }];
1436
1512
  } });
1437
1513
 
@@ -1761,45 +1837,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1761
1837
  }] }];
1762
1838
  } });
1763
1839
 
1764
- class BaseService {
1765
- constructor(http) {
1766
- this.http = http;
1767
- }
1768
- getUrl(...params) {
1769
- let baseUrl = this.urlSegments[0];
1770
- for (let i = 0; i < params.length; i++) {
1771
- baseUrl += `/${params[i]}`;
1772
- if (this.urlSegments.length > i + 1) {
1773
- baseUrl += `/${this.urlSegments[i + 1]}`;
1774
- }
1775
- }
1776
- return baseUrl;
1777
- }
1778
- getAll(...params) {
1779
- return this.http.get(this.getUrl(...params));
1780
- }
1781
- get(...params) {
1782
- return this.http.get(this.getUrl(...params));
1783
- }
1784
- create(item, ...params) {
1785
- return this.http.post(this.getUrl(...params), item);
1786
- }
1787
- update(item, ...params) {
1788
- return this.http.put(this.getUrl(...params), item);
1789
- }
1790
- delete(...params) {
1791
- return this.http.delete(this.getUrl(...params));
1792
- }
1793
- }
1794
- BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1795
- BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
1796
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
1797
- type: Injectable,
1798
- args: [{
1799
- providedIn: 'root'
1800
- }]
1801
- }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
1802
-
1803
1840
  class WorkOrderShippingItemService extends BaseService {
1804
1841
  constructor(http, env) {
1805
1842
  super(http);
@@ -1893,6 +1930,226 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
1893
1930
  }] }];
1894
1931
  } });
1895
1932
 
1933
+ class MountTypeService extends BaseService {
1934
+ constructor(http, env) {
1935
+ super(http);
1936
+ this.http = http;
1937
+ this.env = env;
1938
+ this.urlSegments = [`${this.env.baseUrl}api/mount-types`];
1939
+ }
1940
+ }
1941
+ 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 });
1942
+ MountTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, providedIn: "root" });
1943
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, decorators: [{
1944
+ type: Injectable,
1945
+ args: [{
1946
+ providedIn: "root",
1947
+ }]
1948
+ }], ctorParameters: function () {
1949
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1950
+ type: Inject,
1951
+ args: ["env"]
1952
+ }] }];
1953
+ } });
1954
+
1955
+ class SightService extends BaseService {
1956
+ constructor(http, env) {
1957
+ super(http);
1958
+ this.http = http;
1959
+ this.env = env;
1960
+ this.urlSegments = [`${this.env.baseUrl}api/sights`];
1961
+ }
1962
+ }
1963
+ 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 });
1964
+ SightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, providedIn: 'root' });
1965
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, decorators: [{
1966
+ type: Injectable,
1967
+ args: [{
1968
+ providedIn: 'root'
1969
+ }]
1970
+ }], ctorParameters: function () {
1971
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1972
+ type: Inject,
1973
+ args: ["env"]
1974
+ }] }];
1975
+ } });
1976
+
1977
+ class SightTypeService extends BaseService {
1978
+ constructor(http, env) {
1979
+ super(http);
1980
+ this.http = http;
1981
+ this.env = env;
1982
+ this.urlSegments = [`${this.env.baseUrl}api/sight-types`];
1983
+ }
1984
+ }
1985
+ 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 });
1986
+ SightTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, providedIn: 'root' });
1987
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, decorators: [{
1988
+ type: Injectable,
1989
+ args: [{
1990
+ providedIn: 'root'
1991
+ }]
1992
+ }], ctorParameters: function () {
1993
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1994
+ type: Inject,
1995
+ args: ["env"]
1996
+ }] }];
1997
+ } });
1998
+
1999
+ class SightMaterialService extends BaseService {
2000
+ constructor(http, env) {
2001
+ super(http);
2002
+ this.http = http;
2003
+ this.env = env;
2004
+ this.urlSegments = [`${this.env.baseUrl}api/sight-materials`];
2005
+ }
2006
+ }
2007
+ 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 });
2008
+ SightMaterialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, providedIn: "root" });
2009
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, decorators: [{
2010
+ type: Injectable,
2011
+ args: [{
2012
+ providedIn: "root",
2013
+ }]
2014
+ }], ctorParameters: function () {
2015
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2016
+ type: Inject,
2017
+ args: ["env"]
2018
+ }] }];
2019
+ } });
2020
+
2021
+ class FirearmOpticService extends BaseService {
2022
+ constructor(http, env) {
2023
+ super(http);
2024
+ this.http = http;
2025
+ this.env = env;
2026
+ this.urlSegments = [`${this.env.baseUrl}api/firearms`, "optics"];
2027
+ }
2028
+ }
2029
+ 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 });
2030
+ FirearmOpticService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, providedIn: "root" });
2031
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, decorators: [{
2032
+ type: Injectable,
2033
+ args: [{
2034
+ providedIn: "root",
2035
+ }]
2036
+ }], ctorParameters: function () {
2037
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2038
+ type: Inject,
2039
+ args: ["env"]
2040
+ }] }];
2041
+ } });
2042
+
2043
+ class FirearmSightService extends BaseService {
2044
+ constructor(http, env) {
2045
+ super(http);
2046
+ this.http = http;
2047
+ this.env = env;
2048
+ this.urlSegments = [`${this.env.baseUrl}api/firearms`, "sights"];
2049
+ }
2050
+ }
2051
+ 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 });
2052
+ FirearmSightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, providedIn: "root" });
2053
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, decorators: [{
2054
+ type: Injectable,
2055
+ args: [{
2056
+ providedIn: "root",
2057
+ }]
2058
+ }], ctorParameters: function () {
2059
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2060
+ type: Inject,
2061
+ args: ["env"]
2062
+ }] }];
2063
+ } });
2064
+
2065
+ class PackageOptionalItemService extends BaseService {
2066
+ constructor(http, env) {
2067
+ super(http);
2068
+ this.http = http;
2069
+ this.env = env;
2070
+ this.urlSegments = [`${this.env.baseUrl}api/packages`, "optional-items"];
2071
+ }
2072
+ }
2073
+ 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 });
2074
+ PackageOptionalItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, providedIn: "root" });
2075
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, decorators: [{
2076
+ type: Injectable,
2077
+ args: [{
2078
+ providedIn: "root",
2079
+ }]
2080
+ }], ctorParameters: function () {
2081
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2082
+ type: Inject,
2083
+ args: ["env"]
2084
+ }] }];
2085
+ } });
2086
+
2087
+ class PackageVariationService extends BaseService {
2088
+ constructor(http, env) {
2089
+ super(http);
2090
+ this.http = http;
2091
+ this.env = env;
2092
+ this.urlSegments = [`${this.env.baseUrl}api/packages`, "variations"];
2093
+ }
2094
+ }
2095
+ 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 });
2096
+ PackageVariationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, providedIn: "root" });
2097
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, decorators: [{
2098
+ type: Injectable,
2099
+ args: [{
2100
+ providedIn: "root",
2101
+ }]
2102
+ }], ctorParameters: function () {
2103
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2104
+ type: Inject,
2105
+ args: ["env"]
2106
+ }] }];
2107
+ } });
2108
+
2109
+ class SlideAddonService extends BaseService {
2110
+ constructor(http, env) {
2111
+ super(http);
2112
+ this.http = http;
2113
+ this.env = env;
2114
+ this.urlSegments = [`${this.env.baseUrl}api/firearms`, "slide-addons"];
2115
+ }
2116
+ }
2117
+ 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 });
2118
+ SlideAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, providedIn: "root" });
2119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, decorators: [{
2120
+ type: Injectable,
2121
+ args: [{
2122
+ providedIn: "root",
2123
+ }]
2124
+ }], ctorParameters: function () {
2125
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2126
+ type: Inject,
2127
+ args: ["env"]
2128
+ }] }];
2129
+ } });
2130
+
2131
+ class CoatingValueService extends BaseService {
2132
+ constructor(http, env) {
2133
+ super(http);
2134
+ this.http = http;
2135
+ this.env = env;
2136
+ this.urlSegments = [`${this.env.baseUrl}api/coatings`, "coating-values"];
2137
+ }
2138
+ }
2139
+ 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 });
2140
+ CoatingValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, providedIn: "root" });
2141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, decorators: [{
2142
+ type: Injectable,
2143
+ args: [{
2144
+ providedIn: "root",
2145
+ }]
2146
+ }], ctorParameters: function () {
2147
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2148
+ type: Inject,
2149
+ args: ["env"]
2150
+ }] }];
2151
+ } });
2152
+
1896
2153
  class PhonePipe {
1897
2154
  transform(value, args) {
1898
2155
  if (value && value.length >= 10) {
@@ -2221,6 +2478,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2221
2478
  type: Input
2222
2479
  }] } });
2223
2480
 
2481
+ class FormErrorMessageComponent {
2482
+ }
2483
+ FormErrorMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2484
+ 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"] }] });
2485
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, decorators: [{
2486
+ type: Component,
2487
+ 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: [""] }]
2488
+ }], propDecorators: { control: [{
2489
+ type: Input
2490
+ }], controlName: [{
2491
+ type: Input
2492
+ }] } });
2493
+
2494
+ class ModalHeaderComponent {
2495
+ constructor() {
2496
+ this.close = new EventEmitter();
2497
+ }
2498
+ onCloseClick(e) {
2499
+ e.preventDefault();
2500
+ this.close.emit(e);
2501
+ }
2502
+ }
2503
+ ModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2504
+ 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: [""] });
2505
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, decorators: [{
2506
+ type: Component,
2507
+ 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: [""] }]
2508
+ }], propDecorators: { headerTitle: [{
2509
+ type: Input
2510
+ }], form: [{
2511
+ type: Input
2512
+ }], close: [{
2513
+ type: Output
2514
+ }] } });
2515
+
2224
2516
  class SharedModule {
2225
2517
  }
2226
2518
  SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2230,22 +2522,18 @@ SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
2230
2522
  DisableControlDirective,
2231
2523
  NewLinePipe,
2232
2524
  FrameMaterialPipe,
2233
- PackageSelectorComponent], imports: [CommonModule,
2234
- DropDownsModule,
2235
- FormsModule,
2236
- ReactiveFormsModule], exports: [PhonePipe,
2525
+ PackageSelectorComponent,
2526
+ FormErrorMessageComponent,
2527
+ ModalHeaderComponent], imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule], exports: [PhonePipe,
2237
2528
  FileNamePipe,
2238
2529
  EnumPipe,
2239
2530
  NewLinePipe,
2240
2531
  DisableControlDirective,
2241
2532
  FrameMaterialPipe,
2242
- PackageSelectorComponent] });
2243
- SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[
2244
- CommonModule,
2245
- DropDownsModule,
2246
- FormsModule,
2247
- ReactiveFormsModule
2248
- ]] });
2533
+ PackageSelectorComponent,
2534
+ FormErrorMessageComponent,
2535
+ ModalHeaderComponent] });
2536
+ SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule]] });
2249
2537
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
2250
2538
  type: NgModule,
2251
2539
  args: [{
@@ -2256,14 +2544,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2256
2544
  DisableControlDirective,
2257
2545
  NewLinePipe,
2258
2546
  FrameMaterialPipe,
2259
- PackageSelectorComponent
2260
- ],
2261
- imports: [
2262
- CommonModule,
2263
- DropDownsModule,
2264
- FormsModule,
2265
- ReactiveFormsModule
2547
+ PackageSelectorComponent,
2548
+ FormErrorMessageComponent,
2549
+ ModalHeaderComponent
2266
2550
  ],
2551
+ imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule],
2267
2552
  exports: [
2268
2553
  PhonePipe,
2269
2554
  FileNamePipe,
@@ -2271,8 +2556,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
2271
2556
  NewLinePipe,
2272
2557
  DisableControlDirective,
2273
2558
  FrameMaterialPipe,
2274
- PackageSelectorComponent
2275
- ]
2559
+ PackageSelectorComponent,
2560
+ FormErrorMessageComponent,
2561
+ ModalHeaderComponent
2562
+ ],
2276
2563
  }]
2277
2564
  }] });
2278
2565
 
@@ -2334,10 +2621,10 @@ class NotificationBarComponent {
2334
2621
  }
2335
2622
  }
2336
2623
  NotificationBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, deps: [{ token: NotificationService }], target: i0.ɵɵFactoryTarget.Component });
2337
- 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] });
2624
+ 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] });
2338
2625
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, decorators: [{
2339
2626
  type: Component,
2340
- 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"] }]
2627
+ 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"] }]
2341
2628
  }], ctorParameters: function () { return [{ type: NotificationService }]; } });
2342
2629
 
2343
2630
  class NotificationModule {
@@ -2376,5 +2663,5 @@ var NotificationType;
2376
2663
  * Generated bundle index. Do not edit.
2377
2664
  */
2378
2665
 
2379
- 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 };
2666
+ 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 };
2380
2667
  //# sourceMappingURL=gunsmith-common.mjs.map