gunsmith-common 2.1.11

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 (213) hide show
  1. package/bundles/gunsmith-common.umd.js +2093 -0
  2. package/bundles/gunsmith-common.umd.js.map +1 -0
  3. package/esm2015/gunsmith-common.js +5 -0
  4. package/esm2015/notification/fade-out.animation.js +10 -0
  5. package/esm2015/notification/index.js +4 -0
  6. package/esm2015/notification/notification-bar/notification-bar.component.js +48 -0
  7. package/esm2015/notification/notification-message.js +3 -0
  8. package/esm2015/notification/notification-type.enum.js +6 -0
  9. package/esm2015/notification/notification.module.js +26 -0
  10. package/esm2015/notification/notification.service.js +21 -0
  11. package/esm2015/public_api.js +12 -0
  12. package/esm2015/shared/directives/disable-control.directive.js +24 -0
  13. package/esm2015/shared/directives/index.js +3 -0
  14. package/esm2015/shared/directives/refinish-details-validators.js +45 -0
  15. package/esm2015/shared/pipes/enum.pipe.js +16 -0
  16. package/esm2015/shared/pipes/file-name.pipe.js +16 -0
  17. package/esm2015/shared/pipes/frame-material.pipe.js +24 -0
  18. package/esm2015/shared/pipes/index.js +6 -0
  19. package/esm2015/shared/pipes/new-line.pipe.js +16 -0
  20. package/esm2015/shared/pipes/phone.pipe.js +19 -0
  21. package/esm2015/shared/services/coating.service.js +63 -0
  22. package/esm2015/shared/services/configuration.service.js +29 -0
  23. package/esm2015/shared/services/cosmetic-milling.service.js +42 -0
  24. package/esm2015/shared/services/customer.service.js +47 -0
  25. package/esm2015/shared/services/dealer.service.js +45 -0
  26. package/esm2015/shared/services/file-upload.service.js +39 -0
  27. package/esm2015/shared/services/firearm-series.service.js +45 -0
  28. package/esm2015/shared/services/firearm.service.js +48 -0
  29. package/esm2015/shared/services/gun-part.service.js +52 -0
  30. package/esm2015/shared/services/index.js +25 -0
  31. package/esm2015/shared/services/inventory.service.js +32 -0
  32. package/esm2015/shared/services/material.service.js +30 -0
  33. package/esm2015/shared/services/milling-type.service.js +44 -0
  34. package/esm2015/shared/services/optic.service.js +42 -0
  35. package/esm2015/shared/services/product.service.js +29 -0
  36. package/esm2015/shared/services/purchase-order.service.js +87 -0
  37. package/esm2015/shared/services/state.service.js +26 -0
  38. package/esm2015/shared/services/totals.service.js +50 -0
  39. package/esm2015/shared/services/user.service.js +26 -0
  40. package/esm2015/shared/services/vendor.service.js +42 -0
  41. package/esm2015/shared/services/waitlist-customer.service.js +38 -0
  42. package/esm2015/shared/services/waitlist-project.service.js +38 -0
  43. package/esm2015/shared/services/waitlist.service.js +83 -0
  44. package/esm2015/shared/services/work-holiday.service.js +32 -0
  45. package/esm2015/shared/services/work-order.service.js +150 -0
  46. package/esm2015/shared/shared.module.js +46 -0
  47. package/esm2015/shared/types/bundle-item.js +6 -0
  48. package/esm2015/shared/types/change-order-status.js +9 -0
  49. package/esm2015/shared/types/coating-value.js +6 -0
  50. package/esm2015/shared/types/coating.js +8 -0
  51. package/esm2015/shared/types/configuration.js +3 -0
  52. package/esm2015/shared/types/cosmetic-milling.js +6 -0
  53. package/esm2015/shared/types/customer.js +6 -0
  54. package/esm2015/shared/types/dealer-contact.js +3 -0
  55. package/esm2015/shared/types/dealer-coupon.js +3 -0
  56. package/esm2015/shared/types/dealer.js +7 -0
  57. package/esm2015/shared/types/filter-options.js +9 -0
  58. package/esm2015/shared/types/firearm-series-optic.js +9 -0
  59. package/esm2015/shared/types/firearm-series.js +8 -0
  60. package/esm2015/shared/types/firearm.js +6 -0
  61. package/esm2015/shared/types/frame-material.js +8 -0
  62. package/esm2015/shared/types/gun-caliber.js +7 -0
  63. package/esm2015/shared/types/gun-part.js +10 -0
  64. package/esm2015/shared/types/index.js +56 -0
  65. package/esm2015/shared/types/inventory-item.js +6 -0
  66. package/esm2015/shared/types/j-file.js +3 -0
  67. package/esm2015/shared/types/material.js +6 -0
  68. package/esm2015/shared/types/milling-detail.js +7 -0
  69. package/esm2015/shared/types/milling-item.js +3 -0
  70. package/esm2015/shared/types/milling-type.js +6 -0
  71. package/esm2015/shared/types/mount-type.js +6 -0
  72. package/esm2015/shared/types/optic-status.js +7 -0
  73. package/esm2015/shared/types/optic.js +6 -0
  74. package/esm2015/shared/types/product.js +3 -0
  75. package/esm2015/shared/types/project-type.js +7 -0
  76. package/esm2015/shared/types/purchase-order-refinish-item.js +3 -0
  77. package/esm2015/shared/types/purchase-order-status.js +8 -0
  78. package/esm2015/shared/types/purchase-order.js +9 -0
  79. package/esm2015/shared/types/rear-sight-position.js +6 -0
  80. package/esm2015/shared/types/refinish-detail.js +3 -0
  81. package/esm2015/shared/types/report-milling-item.js +3 -0
  82. package/esm2015/shared/types/report-refinish-item.js +3 -0
  83. package/esm2015/shared/types/sight-type.js +6 -0
  84. package/esm2015/shared/types/state.js +3 -0
  85. package/esm2015/shared/types/total-item.js +3 -0
  86. package/esm2015/shared/types/total.js +3 -0
  87. package/esm2015/shared/types/vendor-contact.js +3 -0
  88. package/esm2015/shared/types/vendor.js +7 -0
  89. package/esm2015/shared/types/waitlist-action.js +9 -0
  90. package/esm2015/shared/types/waitlist-gun.js +12 -0
  91. package/esm2015/shared/types/waitlist-history.js +3 -0
  92. package/esm2015/shared/types/waitlist-item.js +12 -0
  93. package/esm2015/shared/types/waitlist-status.js +15 -0
  94. package/esm2015/shared/types/work-change-order.js +3 -0
  95. package/esm2015/shared/types/work-holiday.js +3 -0
  96. package/esm2015/shared/types/work-order-action.js +7 -0
  97. package/esm2015/shared/types/work-order-history.js +3 -0
  98. package/esm2015/shared/types/work-order-refinish-item.js +3 -0
  99. package/esm2015/shared/types/work-order-status.js +14 -0
  100. package/esm2015/shared/types/work-order-type.js +8 -0
  101. package/esm2015/shared/types/work-order.js +18 -0
  102. package/esm2015/shared/utils/coating-helpers.js +22 -0
  103. package/esm2015/shared/utils/enum-object.js +10 -0
  104. package/esm2015/shared/utils/finish-date-calculator.js +30 -0
  105. package/esm2015/shared/utils/index.js +5 -0
  106. package/esm2015/shared/utils/invalid-form-control-toucher.js +7 -0
  107. package/fesm2015/gunsmith-common.js +1767 -0
  108. package/fesm2015/gunsmith-common.js.map +1 -0
  109. package/gunsmith-common.d.ts +5 -0
  110. package/notification/fade-out.animation.d.ts +2 -0
  111. package/notification/index.d.ts +3 -0
  112. package/notification/notification-bar/notification-bar.component.d.ts +18 -0
  113. package/notification/notification-message.d.ts +6 -0
  114. package/notification/notification-type.enum.d.ts +4 -0
  115. package/notification/notification.module.d.ts +8 -0
  116. package/notification/notification.service.d.ts +12 -0
  117. package/package.json +24 -0
  118. package/public_api.d.ts +8 -0
  119. package/shared/directives/disable-control.directive.d.ts +9 -0
  120. package/shared/directives/index.d.ts +2 -0
  121. package/shared/directives/refinish-details-validators.d.ts +4 -0
  122. package/shared/pipes/enum.pipe.d.ts +7 -0
  123. package/shared/pipes/file-name.pipe.d.ts +7 -0
  124. package/shared/pipes/frame-material.pipe.d.ts +11 -0
  125. package/shared/pipes/index.d.ts +5 -0
  126. package/shared/pipes/new-line.pipe.d.ts +7 -0
  127. package/shared/pipes/phone.pipe.d.ts +7 -0
  128. package/shared/services/coating.service.d.ts +22 -0
  129. package/shared/services/configuration.service.d.ts +14 -0
  130. package/shared/services/cosmetic-milling.service.d.ts +17 -0
  131. package/shared/services/customer.service.d.ts +17 -0
  132. package/shared/services/dealer.service.d.ts +19 -0
  133. package/shared/services/file-upload.service.d.ts +14 -0
  134. package/shared/services/firearm-series.service.d.ts +18 -0
  135. package/shared/services/firearm.service.d.ts +20 -0
  136. package/shared/services/gun-part.service.d.ts +18 -0
  137. package/shared/services/index.d.ts +24 -0
  138. package/shared/services/inventory.service.d.ts +13 -0
  139. package/shared/services/material.service.d.ts +13 -0
  140. package/shared/services/milling-type.service.d.ts +17 -0
  141. package/shared/services/optic.service.d.ts +17 -0
  142. package/shared/services/product.service.d.ts +15 -0
  143. package/shared/services/purchase-order.service.d.ts +27 -0
  144. package/shared/services/state.service.d.ts +13 -0
  145. package/shared/services/totals.service.d.ts +15 -0
  146. package/shared/services/user.service.d.ts +12 -0
  147. package/shared/services/vendor.service.d.ts +17 -0
  148. package/shared/services/waitlist-customer.service.d.ts +15 -0
  149. package/shared/services/waitlist-project.service.d.ts +17 -0
  150. package/shared/services/waitlist.service.d.ts +24 -0
  151. package/shared/services/work-holiday.service.d.ts +15 -0
  152. package/shared/services/work-order.service.d.ts +41 -0
  153. package/shared/shared.module.d.ts +12 -0
  154. package/shared/types/bundle-item.d.ts +11 -0
  155. package/shared/types/change-order-status.d.ts +7 -0
  156. package/shared/types/coating-value.d.ts +6 -0
  157. package/shared/types/coating.d.ts +11 -0
  158. package/shared/types/configuration.d.ts +11 -0
  159. package/shared/types/cosmetic-milling.d.ts +6 -0
  160. package/shared/types/customer.d.ts +14 -0
  161. package/shared/types/dealer-contact.d.ts +9 -0
  162. package/shared/types/dealer-coupon.d.ts +5 -0
  163. package/shared/types/dealer.d.ts +24 -0
  164. package/shared/types/filter-options.d.ts +6 -0
  165. package/shared/types/firearm-series-optic.d.ts +12 -0
  166. package/shared/types/firearm-series.d.ts +9 -0
  167. package/shared/types/firearm.d.ts +10 -0
  168. package/shared/types/frame-material.d.ts +6 -0
  169. package/shared/types/gun-caliber.d.ts +5 -0
  170. package/shared/types/gun-part.d.ts +11 -0
  171. package/shared/types/index.d.ts +55 -0
  172. package/shared/types/inventory-item.d.ts +8 -0
  173. package/shared/types/j-file.d.ts +5 -0
  174. package/shared/types/material.d.ts +6 -0
  175. package/shared/types/milling-detail.d.ts +17 -0
  176. package/shared/types/milling-item.d.ts +8 -0
  177. package/shared/types/milling-type.d.ts +8 -0
  178. package/shared/types/mount-type.d.ts +4 -0
  179. package/shared/types/optic-status.d.ts +5 -0
  180. package/shared/types/optic.d.ts +6 -0
  181. package/shared/types/product.d.ts +7 -0
  182. package/shared/types/project-type.d.ts +5 -0
  183. package/shared/types/purchase-order-refinish-item.d.ts +16 -0
  184. package/shared/types/purchase-order-status.d.ts +6 -0
  185. package/shared/types/purchase-order.d.ts +11 -0
  186. package/shared/types/rear-sight-position.d.ts +4 -0
  187. package/shared/types/refinish-detail.d.ts +11 -0
  188. package/shared/types/report-milling-item.d.ts +16 -0
  189. package/shared/types/report-refinish-item.d.ts +16 -0
  190. package/shared/types/sight-type.d.ts +4 -0
  191. package/shared/types/state.d.ts +4 -0
  192. package/shared/types/total-item.d.ts +4 -0
  193. package/shared/types/total.d.ts +5 -0
  194. package/shared/types/vendor-contact.d.ts +9 -0
  195. package/shared/types/vendor.d.ts +20 -0
  196. package/shared/types/waitlist-action.d.ts +7 -0
  197. package/shared/types/waitlist-gun.d.ts +22 -0
  198. package/shared/types/waitlist-history.d.ts +8 -0
  199. package/shared/types/waitlist-item.d.ts +25 -0
  200. package/shared/types/waitlist-status.d.ts +13 -0
  201. package/shared/types/work-change-order.d.ts +10 -0
  202. package/shared/types/work-holiday.d.ts +4 -0
  203. package/shared/types/work-order-action.d.ts +5 -0
  204. package/shared/types/work-order-history.d.ts +8 -0
  205. package/shared/types/work-order-refinish-item.d.ts +16 -0
  206. package/shared/types/work-order-status.d.ts +12 -0
  207. package/shared/types/work-order-type.d.ts +6 -0
  208. package/shared/types/work-order.d.ts +31 -0
  209. package/shared/utils/coating-helpers.d.ts +5 -0
  210. package/shared/utils/enum-object.d.ts +5 -0
  211. package/shared/utils/finish-date-calculator.d.ts +2 -0
  212. package/shared/utils/index.d.ts +4 -0
  213. package/shared/utils/invalid-form-control-toucher.d.ts +2 -0
@@ -0,0 +1,2093 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('luxon'), require('@angular/core'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('@angular/forms'), require('@angular/common'), require('@angular/animations')) :
3
+ typeof define === 'function' && define.amd ? define('gunsmith-common', ['exports', 'luxon', '@angular/core', '@angular/common/http', 'rxjs', 'rxjs/operators', '@angular/forms', '@angular/common', '@angular/animations'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['gunsmith-common'] = {}, global.luxon, global.ng.core, global.ng.common.http, global.rxjs, global.rxjs.operators, global.ng.forms, global.ng.common, global.ng.animations));
5
+ }(this, (function (exports, luxon, i0, i1, rxjs, operators, i1$1, i2, animations) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () {
17
+ return e[k];
18
+ }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n['default'] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
30
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
+
32
+ function touchControls(formGroup) {
33
+ Object.keys(formGroup.controls).forEach(function (field) {
34
+ var control = formGroup.get(field);
35
+ control.markAsTouched({ onlySelf: true });
36
+ });
37
+ }
38
+
39
+ function convertEnumToObjectArray(value) {
40
+ var enumObject = [];
41
+ for (var n in value) {
42
+ if (typeof value[n] === 'number') {
43
+ enumObject.push({ id: value[n], name: n.replace(/([A-Z])/g, ' $1').trim() });
44
+ }
45
+ }
46
+ return enumObject;
47
+ }
48
+
49
+ function getCoatings(part, coatings, material) {
50
+ if (part && part.id === 1)
51
+ return coatings.filter(function (c) { return part.coatings.map(function (pc) { return pc.id; }).includes(c.id)
52
+ && c.materials.map(function (m) { return m.id; }).includes(material.id); });
53
+ else if (part)
54
+ return coatings.filter(function (c) { return part.coatings.map(function (pc) { return pc.id; }).includes(c.id); });
55
+ else
56
+ return [];
57
+ }
58
+ function getCoatingValues(coating) {
59
+ if (coating)
60
+ return coating.coatingValues;
61
+ else
62
+ return [];
63
+ }
64
+ function hasCoatingValues(coating) {
65
+ return coating && coating.coatingValues && coating.coatingValues.length > 0;
66
+ }
67
+ function hasCoatingDescription(coating) {
68
+ return coating && coating.valueLabel && (!coating.coatingValues || !coating.coatingValues.length);
69
+ }
70
+
71
+ var Configuration = /** @class */ (function () {
72
+ function Configuration() {
73
+ }
74
+ return Configuration;
75
+ }());
76
+
77
+ var Customer = /** @class */ (function () {
78
+ function Customer() {
79
+ this.active = true;
80
+ }
81
+ return Customer;
82
+ }());
83
+
84
+ var Dealer = /** @class */ (function () {
85
+ function Dealer() {
86
+ this.active = true;
87
+ this.contacts = [];
88
+ }
89
+ return Dealer;
90
+ }());
91
+
92
+ var DealerContact = /** @class */ (function () {
93
+ function DealerContact() {
94
+ }
95
+ return DealerContact;
96
+ }());
97
+
98
+ var DealerCoupon = /** @class */ (function () {
99
+ function DealerCoupon() {
100
+ }
101
+ return DealerCoupon;
102
+ }());
103
+
104
+ var FilterOptions = /** @class */ (function () {
105
+ function FilterOptions() {
106
+ this.workOrderType = true;
107
+ this.status = true;
108
+ this.warranty = true;
109
+ this.specialOrder = true;
110
+ }
111
+ return FilterOptions;
112
+ }());
113
+
114
+ exports.GunCaliber = void 0;
115
+ (function (GunCaliber) {
116
+ GunCaliber[GunCaliber["9mm"] = 0] = "9mm";
117
+ GunCaliber[GunCaliber["40Caliber"] = 1] = "40Caliber";
118
+ GunCaliber[GunCaliber["45Caliber"] = 2] = "45Caliber";
119
+ })(exports.GunCaliber || (exports.GunCaliber = {}));
120
+
121
+ var Firearm = /** @class */ (function () {
122
+ function Firearm() {
123
+ this.active = true;
124
+ }
125
+ return Firearm;
126
+ }());
127
+
128
+ var GunPart = /** @class */ (function () {
129
+ function GunPart() {
130
+ this.coatings = [];
131
+ this.defaultControl = false;
132
+ this.customer = false;
133
+ this.gunsmith = false;
134
+ this.active = true;
135
+ }
136
+ return GunPart;
137
+ }());
138
+
139
+ var Vendor = /** @class */ (function () {
140
+ function Vendor() {
141
+ this.active = true;
142
+ this.contacts = [];
143
+ }
144
+ return Vendor;
145
+ }());
146
+
147
+ var VendorContact = /** @class */ (function () {
148
+ function VendorContact() {
149
+ }
150
+ return VendorContact;
151
+ }());
152
+
153
+ var State = /** @class */ (function () {
154
+ function State() {
155
+ }
156
+ return State;
157
+ }());
158
+
159
+ exports.WaitlistAction = void 0;
160
+ (function (WaitlistAction) {
161
+ WaitlistAction[WaitlistAction["SendShipmentEmail"] = 0] = "SendShipmentEmail";
162
+ WaitlistAction[WaitlistAction["SendShipmentNoResponse"] = 2] = "SendShipmentNoResponse";
163
+ WaitlistAction[WaitlistAction["SendWaitingOnShipmentEmail"] = 3] = "SendWaitingOnShipmentEmail";
164
+ WaitlistAction[WaitlistAction["SendWaitingOnShipmentNoResponse"] = 5] = "SendWaitingOnShipmentNoResponse";
165
+ WaitlistAction[WaitlistAction["SendInShopEmail"] = 6] = "SendInShopEmail";
166
+ })(exports.WaitlistAction || (exports.WaitlistAction = {}));
167
+
168
+ exports.ProjectType = void 0;
169
+ (function (ProjectType) {
170
+ ProjectType[ProjectType["Firearm"] = 0] = "Firearm";
171
+ ProjectType[ProjectType["SlideOnly"] = 1] = "SlideOnly";
172
+ ProjectType[ProjectType["PartsOnly"] = 2] = "PartsOnly";
173
+ })(exports.ProjectType || (exports.ProjectType = {}));
174
+
175
+ var WaitlistGun = /** @class */ (function () {
176
+ function WaitlistGun() {
177
+ this.projectType = exports.ProjectType.Firearm;
178
+ this.logo = false;
179
+ this.refinish = false;
180
+ this.milling = false;
181
+ this.specialOrder = false;
182
+ this.refinishDetails = [];
183
+ }
184
+ return WaitlistGun;
185
+ }());
186
+
187
+ var WaitlistHistory = /** @class */ (function () {
188
+ function WaitlistHistory() {
189
+ }
190
+ return WaitlistHistory;
191
+ }());
192
+
193
+ exports.WaitlistStatus = void 0;
194
+ (function (WaitlistStatus) {
195
+ WaitlistStatus[WaitlistStatus["NewRequest"] = 0] = "NewRequest";
196
+ WaitlistStatus[WaitlistStatus["ShipmentEmailSent"] = 1] = "ShipmentEmailSent";
197
+ WaitlistStatus[WaitlistStatus["ShipmentEmailReminderSent"] = 2] = "ShipmentEmailReminderSent";
198
+ WaitlistStatus[WaitlistStatus["ShipmentEmailNoResponse"] = 3] = "ShipmentEmailNoResponse";
199
+ WaitlistStatus[WaitlistStatus["WaitingOnShipment"] = 4] = "WaitingOnShipment";
200
+ WaitlistStatus[WaitlistStatus["WaitingOnShipmentReminderSent"] = 5] = "WaitingOnShipmentReminderSent";
201
+ WaitlistStatus[WaitlistStatus["WaitingOnShipmentNoResponse"] = 6] = "WaitingOnShipmentNoResponse";
202
+ WaitlistStatus[WaitlistStatus["InShop"] = 7] = "InShop";
203
+ WaitlistStatus[WaitlistStatus["Cancelled"] = 8] = "Cancelled";
204
+ WaitlistStatus[WaitlistStatus["OnHold"] = 9] = "OnHold";
205
+ WaitlistStatus[WaitlistStatus["Voided"] = 10] = "Voided";
206
+ })(exports.WaitlistStatus || (exports.WaitlistStatus = {}));
207
+
208
+ exports.WorkOrderType = void 0;
209
+ (function (WorkOrderType) {
210
+ WorkOrderType[WorkOrderType["Standard"] = 0] = "Standard";
211
+ WorkOrderType[WorkOrderType["NewInBox"] = 1] = "NewInBox";
212
+ WorkOrderType[WorkOrderType["Expedited"] = 2] = "Expedited";
213
+ WorkOrderType[WorkOrderType["Warranty"] = 5] = "Warranty";
214
+ })(exports.WorkOrderType || (exports.WorkOrderType = {}));
215
+
216
+ var WaitlistItem = /** @class */ (function () {
217
+ function WaitlistItem() {
218
+ this.requestDate = new Date();
219
+ this.status = exports.WaitlistStatus.NewRequest;
220
+ this.workOrderType = exports.WorkOrderType.Standard;
221
+ this.guns = [];
222
+ this.histories = [];
223
+ }
224
+ return WaitlistItem;
225
+ }());
226
+
227
+ var WorkChangeOrder = /** @class */ (function () {
228
+ function WorkChangeOrder() {
229
+ }
230
+ return WorkChangeOrder;
231
+ }());
232
+
233
+ var WorkHoliday = /** @class */ (function () {
234
+ function WorkHoliday() {
235
+ }
236
+ return WorkHoliday;
237
+ }());
238
+
239
+ exports.WorkOrderStatus = void 0;
240
+ (function (WorkOrderStatus) {
241
+ WorkOrderStatus[WorkOrderStatus["InShop"] = 0] = "InShop";
242
+ WorkOrderStatus[WorkOrderStatus["OnBench"] = 1] = "OnBench";
243
+ WorkOrderStatus[WorkOrderStatus["OutOfShop"] = 2] = "OutOfShop";
244
+ WorkOrderStatus[WorkOrderStatus["WaitingOnCustomer"] = 3] = "WaitingOnCustomer";
245
+ WorkOrderStatus[WorkOrderStatus["CustomerNotified"] = 4] = "CustomerNotified";
246
+ WorkOrderStatus[WorkOrderStatus["ReadyToShip"] = 5] = "ReadyToShip";
247
+ WorkOrderStatus[WorkOrderStatus["Completed"] = 6] = "Completed";
248
+ WorkOrderStatus[WorkOrderStatus["Cancelled"] = 7] = "Cancelled";
249
+ WorkOrderStatus[WorkOrderStatus["Voided"] = 8] = "Voided";
250
+ WorkOrderStatus[WorkOrderStatus["OnHold"] = 9] = "OnHold";
251
+ })(exports.WorkOrderStatus || (exports.WorkOrderStatus = {}));
252
+
253
+ var WorkOrder = /** @class */ (function () {
254
+ function WorkOrder() {
255
+ this.id = 0;
256
+ this.receivedDate = new Date();
257
+ this.workOrderType = exports.WorkOrderType.Standard;
258
+ this.refinish = false;
259
+ this.logo = false;
260
+ this.milling = false;
261
+ this.specialOrder = false;
262
+ this.projectType = exports.ProjectType.Firearm;
263
+ this.status = exports.WorkOrderStatus.InShop;
264
+ this.histories = [];
265
+ }
266
+ return WorkOrder;
267
+ }());
268
+
269
+ var WorkOrderHistory = /** @class */ (function () {
270
+ function WorkOrderHistory() {
271
+ }
272
+ return WorkOrderHistory;
273
+ }());
274
+
275
+ var RefinishDetail = /** @class */ (function () {
276
+ function RefinishDetail() {
277
+ }
278
+ return RefinishDetail;
279
+ }());
280
+
281
+ var Coating = /** @class */ (function () {
282
+ function Coating() {
283
+ this.coatingValues = [];
284
+ this.materials = [];
285
+ this.active = true;
286
+ }
287
+ return Coating;
288
+ }());
289
+
290
+ var CoatingValue = /** @class */ (function () {
291
+ function CoatingValue() {
292
+ this.active = true;
293
+ }
294
+ return CoatingValue;
295
+ }());
296
+
297
+ exports.WorkOrderAction = void 0;
298
+ (function (WorkOrderAction) {
299
+ WorkOrderAction[WorkOrderAction["SendOnBenchEmail"] = 1] = "SendOnBenchEmail";
300
+ WorkOrderAction[WorkOrderAction["SendWaitingOnCustomerEmail"] = 3] = "SendWaitingOnCustomerEmail";
301
+ WorkOrderAction[WorkOrderAction["SendCustomerNotification"] = 4] = "SendCustomerNotification";
302
+ })(exports.WorkOrderAction || (exports.WorkOrderAction = {}));
303
+
304
+ var Optic = /** @class */ (function () {
305
+ function Optic() {
306
+ this.active = true;
307
+ }
308
+ return Optic;
309
+ }());
310
+
311
+ exports.OpticStatus = void 0;
312
+ (function (OpticStatus) {
313
+ OpticStatus[OpticStatus["Included"] = 0] = "Included";
314
+ OpticStatus[OpticStatus["NotIncluded"] = 1] = "NotIncluded";
315
+ OpticStatus[OpticStatus["Supply"] = 2] = "Supply";
316
+ })(exports.OpticStatus || (exports.OpticStatus = {}));
317
+
318
+ var Product = /** @class */ (function () {
319
+ function Product() {
320
+ }
321
+ return Product;
322
+ }());
323
+
324
+ var BundleItem = /** @class */ (function () {
325
+ function BundleItem() {
326
+ this.allowedVariations = [];
327
+ }
328
+ return BundleItem;
329
+ }());
330
+
331
+ exports.ChangeOrderStatus = void 0;
332
+ (function (ChangeOrderStatus) {
333
+ ChangeOrderStatus[ChangeOrderStatus["WaitingOnCustomer"] = 0] = "WaitingOnCustomer";
334
+ ChangeOrderStatus[ChangeOrderStatus["Confirmed"] = 1] = "Confirmed";
335
+ ChangeOrderStatus[ChangeOrderStatus["Cancelled"] = 2] = "Cancelled";
336
+ ChangeOrderStatus[ChangeOrderStatus["NoResponse"] = 3] = "NoResponse";
337
+ ChangeOrderStatus[ChangeOrderStatus["Unconfirmed"] = 4] = "Unconfirmed";
338
+ })(exports.ChangeOrderStatus || (exports.ChangeOrderStatus = {}));
339
+
340
+ exports.MountType = void 0;
341
+ (function (MountType) {
342
+ MountType[MountType["Direct"] = 0] = "Direct";
343
+ MountType[MountType["Plate"] = 1] = "Plate";
344
+ })(exports.MountType || (exports.MountType = {}));
345
+
346
+ exports.SightType = void 0;
347
+ (function (SightType) {
348
+ SightType[SightType["Black"] = 0] = "Black";
349
+ SightType[SightType["Tritium"] = 1] = "Tritium";
350
+ })(exports.SightType || (exports.SightType = {}));
351
+
352
+ var MillingDetail = /** @class */ (function () {
353
+ function MillingDetail() {
354
+ this.barrelCrown = false;
355
+ this.bushingInstallation = false;
356
+ }
357
+ return MillingDetail;
358
+ }());
359
+
360
+ exports.RearSightPosition = void 0;
361
+ (function (RearSightPosition) {
362
+ RearSightPosition[RearSightPosition["InFront"] = 0] = "InFront";
363
+ RearSightPosition[RearSightPosition["Behind"] = 1] = "Behind";
364
+ })(exports.RearSightPosition || (exports.RearSightPosition = {}));
365
+
366
+ var FirearmSeries = /** @class */ (function () {
367
+ function FirearmSeries() {
368
+ this.active = true;
369
+ this.millingFrontSights = false;
370
+ this.firearmSeriesOptics = [];
371
+ }
372
+ return FirearmSeries;
373
+ }());
374
+
375
+ var FirearmSeriesOptic = /** @class */ (function () {
376
+ function FirearmSeriesOptic() {
377
+ this.rearFrontSightBlack = false;
378
+ this.rearFrontSightTritium = false;
379
+ this.rearBehindSightBlack = false;
380
+ this.rearBehindSightTritium = false;
381
+ }
382
+ return FirearmSeriesOptic;
383
+ }());
384
+
385
+ exports.FrameMaterial = void 0;
386
+ (function (FrameMaterial) {
387
+ FrameMaterial[FrameMaterial["All"] = 0] = "All";
388
+ FrameMaterial[FrameMaterial["Polymer"] = 1] = "Polymer";
389
+ FrameMaterial[FrameMaterial["Aluminum"] = 2] = "Aluminum";
390
+ FrameMaterial[FrameMaterial["Steel"] = 3] = "Steel";
391
+ })(exports.FrameMaterial || (exports.FrameMaterial = {}));
392
+
393
+ var MillingType = /** @class */ (function () {
394
+ function MillingType() {
395
+ this.active = true;
396
+ }
397
+ return MillingType;
398
+ }());
399
+
400
+ var CosmeticMilling = /** @class */ (function () {
401
+ function CosmeticMilling() {
402
+ this.active = true;
403
+ }
404
+ return CosmeticMilling;
405
+ }());
406
+
407
+ var MillingItem = /** @class */ (function () {
408
+ function MillingItem() {
409
+ }
410
+ return MillingItem;
411
+ }());
412
+
413
+ var WorkOrderRefinishItem = /** @class */ (function () {
414
+ function WorkOrderRefinishItem() {
415
+ }
416
+ return WorkOrderRefinishItem;
417
+ }());
418
+
419
+ var PurchaseOrderRefinishItem = /** @class */ (function () {
420
+ function PurchaseOrderRefinishItem() {
421
+ }
422
+ return PurchaseOrderRefinishItem;
423
+ }());
424
+
425
+ var Material = /** @class */ (function () {
426
+ function Material() {
427
+ this.active = true;
428
+ }
429
+ return Material;
430
+ }());
431
+
432
+ exports.PurchaseOrderStatus = void 0;
433
+ (function (PurchaseOrderStatus) {
434
+ PurchaseOrderStatus[PurchaseOrderStatus["Open"] = 0] = "Open";
435
+ PurchaseOrderStatus[PurchaseOrderStatus["Closed"] = 1] = "Closed";
436
+ PurchaseOrderStatus[PurchaseOrderStatus["Cancelled"] = 2] = "Cancelled";
437
+ PurchaseOrderStatus[PurchaseOrderStatus["Voided"] = 3] = "Voided";
438
+ })(exports.PurchaseOrderStatus || (exports.PurchaseOrderStatus = {}));
439
+
440
+ var PurchaseOrder = /** @class */ (function () {
441
+ function PurchaseOrder() {
442
+ this.date = new Date();
443
+ this.status = exports.PurchaseOrderStatus.Open;
444
+ this.refinishItems = [];
445
+ }
446
+ return PurchaseOrder;
447
+ }());
448
+
449
+ var ReportMillingItem = /** @class */ (function () {
450
+ function ReportMillingItem() {
451
+ }
452
+ return ReportMillingItem;
453
+ }());
454
+
455
+ var ReportRefinishItem = /** @class */ (function () {
456
+ function ReportRefinishItem() {
457
+ }
458
+ return ReportRefinishItem;
459
+ }());
460
+
461
+ var Total = /** @class */ (function () {
462
+ function Total() {
463
+ }
464
+ return Total;
465
+ }());
466
+
467
+ var TotalItem = /** @class */ (function () {
468
+ function TotalItem() {
469
+ }
470
+ return TotalItem;
471
+ }());
472
+
473
+ var InventoryItem = /** @class */ (function () {
474
+ function InventoryItem() {
475
+ this.active = true;
476
+ }
477
+ return InventoryItem;
478
+ }());
479
+
480
+ var JFile = /** @class */ (function () {
481
+ function JFile() {
482
+ }
483
+ return JFile;
484
+ }());
485
+
486
+ function adjustHoliday(finishDate, holidays) {
487
+ while (holidays.map(function (h) { return new Date(h.holiday); }).findIndex(function (h) { return luxon.DateTime.fromJSDate(h) === luxon.DateTime.fromJSDate(finishDate); }) !== -1) {
488
+ do {
489
+ finishDate = luxon.DateTime.fromJSDate(finishDate).plus({ days: 1 }).toJSDate();
490
+ } while (finishDate.getDay() === 0 || finishDate.getDay() === 6);
491
+ }
492
+ return finishDate;
493
+ }
494
+ function calculateFinishDate(receivedDate, workOrderType, configs, holidays) {
495
+ if (!receivedDate) {
496
+ return null;
497
+ }
498
+ var finishDate = luxon.DateTime.fromJSDate(receivedDate).startOf("day");
499
+ if (workOrderType === exports.WorkOrderType.Warranty) {
500
+ finishDate = finishDate.plus({ weeks: configs.warrantyWeeks });
501
+ }
502
+ else if (workOrderType === exports.WorkOrderType.Expedited) {
503
+ finishDate = finishDate.plus({ weeks: configs.expeditedWeeks });
504
+ }
505
+ else if (workOrderType === exports.WorkOrderType.NewInBox) {
506
+ finishDate = finishDate.plus({ weeks: configs.newInBoxWeeks });
507
+ }
508
+ else {
509
+ finishDate = finishDate.plus({ weeks: configs.standardWeeks });
510
+ }
511
+ return adjustHoliday(finishDate.toJSDate(), holidays);
512
+ }
513
+
514
+ var CustomerService = /** @class */ (function () {
515
+ function CustomerService(http, env) {
516
+ this.http = http;
517
+ this.env = env;
518
+ this.url = this.env.baseUrl + 'api/customers';
519
+ }
520
+ CustomerService.prototype.readCustomers = function (includeInactive, filter) {
521
+ if (includeInactive === void 0) { includeInactive = false; }
522
+ if (filter === void 0) { filter = null; }
523
+ var params = {};
524
+ if (includeInactive) {
525
+ params['includeInactive'] = includeInactive.toString();
526
+ }
527
+ if (filter) {
528
+ params['filter'] = filter;
529
+ }
530
+ return this.http.get(this.url, {
531
+ params: params
532
+ });
533
+ };
534
+ CustomerService.prototype.readCustomer = function (id) {
535
+ return this.http.get(this.url + "/" + id);
536
+ };
537
+ CustomerService.prototype.createCustomer = function (customer) {
538
+ return this.http.post(this.url, customer);
539
+ };
540
+ CustomerService.prototype.updateCustomer = function (id, customer) {
541
+ return this.http.put(this.url + "/" + id, customer);
542
+ };
543
+ CustomerService.prototype.deleteCustomer = function (id) {
544
+ return this.http.delete(this.url + "/" + id);
545
+ };
546
+ return CustomerService;
547
+ }());
548
+ CustomerService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: CustomerService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
549
+ CustomerService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: CustomerService, providedIn: 'root' });
550
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: CustomerService, decorators: [{
551
+ type: i0.Injectable,
552
+ args: [{
553
+ providedIn: 'root'
554
+ }]
555
+ }], ctorParameters: function () {
556
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
557
+ type: i0.Inject,
558
+ args: ['env']
559
+ }] }];
560
+ } });
561
+
562
+ var FirearmService = /** @class */ (function () {
563
+ function FirearmService(http, env) {
564
+ this.http = http;
565
+ this.env = env;
566
+ this.url = this.env.baseUrl + 'api/firearms';
567
+ }
568
+ FirearmService.prototype.readFirearms = function (includeInactive) {
569
+ if (includeInactive === void 0) { includeInactive = false; }
570
+ return this.http.get(this.url, {
571
+ params: {
572
+ includeInactive: includeInactive.toString()
573
+ }
574
+ });
575
+ };
576
+ FirearmService.prototype.readFirearm = function (firearmId) {
577
+ return this.http.get(this.url + "/" + firearmId);
578
+ };
579
+ FirearmService.prototype.createFirearm = function (firearm) {
580
+ return this.http.post(this.url, firearm);
581
+ };
582
+ FirearmService.prototype.updateFirearm = function (firearmId, firearm) {
583
+ return this.http.put(this.url + "/" + firearmId, firearm);
584
+ };
585
+ FirearmService.prototype.deleteFirearm = function (firearmId) {
586
+ return this.http.delete(this.url + "/" + firearmId);
587
+ };
588
+ FirearmService.prototype.readFirearmSeries = function (firearmId) {
589
+ return this.http.get(this.url + "/" + firearmId + "/series");
590
+ };
591
+ FirearmService.prototype.readFirearmMaterial = function (firearmId) {
592
+ return this.http.get(this.url + "/" + firearmId + "/material");
593
+ };
594
+ return FirearmService;
595
+ }());
596
+ FirearmService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FirearmService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
597
+ FirearmService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FirearmService, providedIn: 'root' });
598
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FirearmService, decorators: [{
599
+ type: i0.Injectable,
600
+ args: [{
601
+ providedIn: 'root'
602
+ }]
603
+ }], ctorParameters: function () {
604
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
605
+ type: i0.Inject,
606
+ args: ['env']
607
+ }] }];
608
+ } });
609
+
610
+ var GunPartService = /** @class */ (function () {
611
+ function GunPartService(http, env) {
612
+ this.http = http;
613
+ this.env = env;
614
+ this.url = this.env.baseUrl + 'api/gun-parts';
615
+ }
616
+ GunPartService.prototype.readGunParts = function (includeInactive, gunsmith, customer) {
617
+ if (includeInactive === void 0) { includeInactive = false; }
618
+ if (gunsmith === void 0) { gunsmith = null; }
619
+ if (customer === void 0) { customer = null; }
620
+ var params = {
621
+ includeInactive: includeInactive.toString()
622
+ };
623
+ if (gunsmith !== null) {
624
+ params['gunsmith'] = gunsmith.toString();
625
+ }
626
+ if (customer !== null) {
627
+ params['customer'] = customer.toString();
628
+ }
629
+ return this.http.get(this.url, {
630
+ params: params
631
+ });
632
+ };
633
+ GunPartService.prototype.readGunPart = function (id) {
634
+ return this.http.get(this.url + "/" + id);
635
+ };
636
+ GunPartService.prototype.createGunPart = function (gunPart) {
637
+ return this.http.post(this.url, gunPart);
638
+ };
639
+ GunPartService.prototype.updateGunPart = function (id, gunPart) {
640
+ return this.http.put(this.url + "/" + id, gunPart);
641
+ };
642
+ GunPartService.prototype.deleteGunPart = function (id) {
643
+ return this.http.delete(this.url + "/" + id);
644
+ };
645
+ GunPartService.prototype.readPartCoatings = function (id) {
646
+ return this.http.get(this.url + "/" + id + "/coatings");
647
+ };
648
+ return GunPartService;
649
+ }());
650
+ GunPartService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: GunPartService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
651
+ GunPartService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: GunPartService, providedIn: 'root' });
652
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: GunPartService, decorators: [{
653
+ type: i0.Injectable,
654
+ args: [{
655
+ providedIn: 'root'
656
+ }]
657
+ }], ctorParameters: function () {
658
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
659
+ type: i0.Inject,
660
+ args: ['env']
661
+ }] }];
662
+ } });
663
+
664
+ var StateService = /** @class */ (function () {
665
+ function StateService(http, env) {
666
+ this.http = http;
667
+ this.env = env;
668
+ this.url = this.env.baseUrl + 'api/states';
669
+ }
670
+ StateService.prototype.getStates = function () {
671
+ return this.http.get(this.url);
672
+ };
673
+ return StateService;
674
+ }());
675
+ StateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: StateService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
676
+ StateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: StateService, providedIn: 'root' });
677
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: StateService, decorators: [{
678
+ type: i0.Injectable,
679
+ args: [{
680
+ providedIn: 'root'
681
+ }]
682
+ }], ctorParameters: function () {
683
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
684
+ type: i0.Inject,
685
+ args: ['env']
686
+ }] }];
687
+ } });
688
+
689
+ var VendorService = /** @class */ (function () {
690
+ function VendorService(http, env) {
691
+ this.http = http;
692
+ this.env = env;
693
+ this.url = this.env.baseUrl + 'api/vendors';
694
+ }
695
+ VendorService.prototype.readVendors = function (includeInactive) {
696
+ if (includeInactive === void 0) { includeInactive = false; }
697
+ return this.http.get(this.url, {
698
+ params: {
699
+ includeInactive: includeInactive.toString()
700
+ }
701
+ });
702
+ };
703
+ VendorService.prototype.readVendor = function (id) {
704
+ return this.http.get(this.url + "/" + id);
705
+ };
706
+ VendorService.prototype.createVendor = function (Vendor) {
707
+ return this.http.post(this.url, Vendor);
708
+ };
709
+ VendorService.prototype.updateVendor = function (id, Vendor) {
710
+ return this.http.put(this.url + "/" + id, Vendor);
711
+ };
712
+ VendorService.prototype.deleteVendor = function (id) {
713
+ return this.http.delete(this.url + "/" + id);
714
+ };
715
+ return VendorService;
716
+ }());
717
+ VendorService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: VendorService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
718
+ VendorService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: VendorService, providedIn: 'root' });
719
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: VendorService, decorators: [{
720
+ type: i0.Injectable,
721
+ args: [{
722
+ providedIn: 'root'
723
+ }]
724
+ }], ctorParameters: function () {
725
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
726
+ type: i0.Inject,
727
+ args: ['env']
728
+ }] }];
729
+ } });
730
+
731
+ var TotalsService = /** @class */ (function () {
732
+ function TotalsService(http, env) {
733
+ this.http = http;
734
+ this.env = env;
735
+ this.url = this.env.baseUrl + 'api/';
736
+ }
737
+ TotalsService.prototype.readTotals = function (startDate, endDate, groupBy) {
738
+ return this.http.get(this.url + 'work-orders/totals', {
739
+ params: {
740
+ startDate: startDate.toUTCString(),
741
+ endDate: endDate.toUTCString(),
742
+ groupBy: groupBy.toString()
743
+ }
744
+ });
745
+ };
746
+ TotalsService.prototype.readMillingTotals = function (startDate, endDate, groupBy) {
747
+ return this.http.get(this.url + 'milling-totals', {
748
+ params: {
749
+ startDate: startDate.toUTCString(),
750
+ endDate: endDate.toUTCString(),
751
+ groupBy: groupBy.toString()
752
+ }
753
+ });
754
+ };
755
+ TotalsService.prototype.readRefinishTotals = function (startDate, endDate, groupBy) {
756
+ return this.http.get(this.url + 'refinish-totals', {
757
+ params: {
758
+ startDate: startDate.toUTCString(),
759
+ endDate: endDate.toUTCString(),
760
+ groupBy: groupBy.toString()
761
+ }
762
+ });
763
+ };
764
+ return TotalsService;
765
+ }());
766
+ TotalsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: TotalsService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
767
+ TotalsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: TotalsService, providedIn: 'root' });
768
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: TotalsService, decorators: [{
769
+ type: i0.Injectable,
770
+ args: [{
771
+ providedIn: 'root'
772
+ }]
773
+ }], ctorParameters: function () {
774
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
775
+ type: i0.Inject,
776
+ args: ['env']
777
+ }] }];
778
+ } });
779
+
780
+ var WorkHolidayService = /** @class */ (function () {
781
+ function WorkHolidayService(http, env) {
782
+ this.http = http;
783
+ this.env = env;
784
+ this.url = this.env.baseUrl + 'api/holidays';
785
+ }
786
+ WorkHolidayService.prototype.readHolidays = function () {
787
+ return this.http.get(this.url);
788
+ };
789
+ WorkHolidayService.prototype.createHoliday = function (holiday) {
790
+ return this.http.post(this.url, holiday);
791
+ };
792
+ WorkHolidayService.prototype.deleteHoliday = function (id) {
793
+ return this.http.delete(this.url + "/" + id);
794
+ };
795
+ return WorkHolidayService;
796
+ }());
797
+ WorkHolidayService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WorkHolidayService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
798
+ WorkHolidayService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WorkHolidayService, providedIn: 'root' });
799
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WorkHolidayService, decorators: [{
800
+ type: i0.Injectable,
801
+ args: [{
802
+ providedIn: 'root'
803
+ }]
804
+ }], ctorParameters: function () {
805
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
806
+ type: i0.Inject,
807
+ args: ['env']
808
+ }] }];
809
+ } });
810
+
811
+ var WorkOrderService = /** @class */ (function () {
812
+ function WorkOrderService(http, env) {
813
+ this.http = http;
814
+ this.env = env;
815
+ this.url = this.env.baseUrl + 'api/work-orders';
816
+ }
817
+ WorkOrderService.prototype.doWorkOrderAction = function (id, actionId) {
818
+ return this.http.get(this.url + "/" + id + "/actions/" + actionId);
819
+ };
820
+ WorkOrderService.prototype.readWorkOrders = function (statuses, id, customerName, customerEmail, serialNumber, orderTypes, projectTypes, users, specialOrder) {
821
+ if (statuses === void 0) { statuses = null; }
822
+ if (id === void 0) { id = null; }
823
+ if (customerName === void 0) { customerName = null; }
824
+ if (customerEmail === void 0) { customerEmail = null; }
825
+ if (serialNumber === void 0) { serialNumber = null; }
826
+ if (orderTypes === void 0) { orderTypes = null; }
827
+ if (projectTypes === void 0) { projectTypes = null; }
828
+ if (users === void 0) { users = null; }
829
+ if (specialOrder === void 0) { specialOrder = null; }
830
+ var params = {};
831
+ if (statuses) {
832
+ params['statuses'] = statuses.map(function (status) { return status.toString(); });
833
+ }
834
+ if (id) {
835
+ params['id'] = id.toString();
836
+ }
837
+ if (customerName) {
838
+ params['customerName'] = customerName;
839
+ }
840
+ if (customerEmail) {
841
+ params['customerEmail'] = customerEmail;
842
+ }
843
+ if (serialNumber) {
844
+ params['serialNumber'] = serialNumber;
845
+ }
846
+ if (orderTypes !== null) {
847
+ params['orderTypes'] = orderTypes.map(function (type) { return type.toString(); });
848
+ }
849
+ if (projectTypes) {
850
+ params['projectTypes'] = projectTypes.map(function (t) { return t.toString(); });
851
+ }
852
+ if (users) {
853
+ params['users'] = users;
854
+ }
855
+ if (specialOrder) {
856
+ params['specialOrder'] = specialOrder.toString();
857
+ }
858
+ return this.http.get(this.url, {
859
+ params: params
860
+ });
861
+ };
862
+ WorkOrderService.prototype.readWorkOrder = function (workOrderId) {
863
+ return this.http.get(this.url + "/" + workOrderId);
864
+ };
865
+ WorkOrderService.prototype.createWorkOrder = function (workOrder) {
866
+ return this.http.post(this.url, workOrder);
867
+ };
868
+ WorkOrderService.prototype.updateWorkOrder = function (workOrderId, workOrder) {
869
+ return this.http.put(this.url + "/" + workOrderId, workOrder);
870
+ };
871
+ WorkOrderService.prototype.deleteWorkOrder = function (workOrderId) {
872
+ return this.http.delete(this.url + "/" + workOrderId);
873
+ };
874
+ WorkOrderService.prototype.recalcWorkDates = function () {
875
+ return this.http.get(this.url + "/recalc-dates");
876
+ };
877
+ // Change Orders
878
+ WorkOrderService.prototype.readChangeOrders = function (workOrderId) {
879
+ return this.http.get(this.url + "/" + workOrderId + "/change-orders");
880
+ };
881
+ WorkOrderService.prototype.readChangeOrder = function (workOrderId, changeOrderId) {
882
+ return this.http.get(this.url + "/" + workOrderId + "/change-orders/" + changeOrderId);
883
+ };
884
+ WorkOrderService.prototype.createChangeOrder = function (workOrderId, changeOrder) {
885
+ return this.http.post(this.url + "/" + workOrderId + "/change-orders", changeOrder);
886
+ };
887
+ WorkOrderService.prototype.updateChangeOrder = function (workOrderId, changeOrderId, changeOrder) {
888
+ return this.http.put(this.url + "/" + workOrderId + "/change-orders/" + changeOrderId, changeOrder);
889
+ };
890
+ WorkOrderService.prototype.deleteChangeOrder = function (workOrderId, changeOrderId) {
891
+ return this.http.delete(this.url + "/" + workOrderId + "/change-orders/" + changeOrderId);
892
+ };
893
+ WorkOrderService.prototype.confirmChangeOrder = function (token) {
894
+ return this.http.get(this.env.baseUrl + "api/change-orders/customer", {
895
+ params: {
896
+ token: token
897
+ }
898
+ });
899
+ };
900
+ WorkOrderService.prototype.cancelChangeOrder = function (token) {
901
+ return this.http.delete(this.env.baseUrl + "api/change-orders/customer", {
902
+ params: {
903
+ token: token
904
+ }
905
+ });
906
+ };
907
+ // Checklist
908
+ WorkOrderService.prototype.createChecklists = function (workOrderId, refinishItemIds) {
909
+ return this.http.get(this.url + "/" + workOrderId + "/refinish-items/" + refinishItemIds.join(',') + '/pdfs', { responseType: "blob" });
910
+ };
911
+ // Refinish Items
912
+ WorkOrderService.prototype.readRefinishItems = function (workOrderId) {
913
+ return this.http.get(this.url + "/" + workOrderId + "/refinish-items");
914
+ };
915
+ WorkOrderService.prototype.readRefinishItemCollection = function (workOrderId, itemIds) {
916
+ return this.http.get(this.url + "/" + workOrderId + "/refinish-items/collection/" + itemIds.join(','));
917
+ };
918
+ WorkOrderService.prototype.readRefinishItem = function (workOrderId, refinishItemId) {
919
+ return this.http.get(this.url + "/" + workOrderId + "/refinish-items/" + refinishItemId);
920
+ };
921
+ WorkOrderService.prototype.createRefinishItems = function (workOrderId, refinishItems) {
922
+ return this.http.post(this.url + "/" + workOrderId + "/refinish-items/collection", refinishItems);
923
+ };
924
+ WorkOrderService.prototype.updateRefinishItem = function (workOrderId, refinishItemId, refinishItem) {
925
+ return this.http.put(this.url + "/" + workOrderId + "/refinish-items/" + refinishItemId, refinishItem);
926
+ };
927
+ WorkOrderService.prototype.deleteRefinishItem = function (workOrderId, refinishItemId) {
928
+ return this.http.delete(this.url + "/" + workOrderId + "/refinish-items/" + refinishItemId);
929
+ };
930
+ // Milling Items
931
+ WorkOrderService.prototype.readMillingItems = function (workOrderId) {
932
+ return this.http.get(this.url + "/" + workOrderId + "/milling-items");
933
+ };
934
+ WorkOrderService.prototype.readMillingItem = function (workOrderId, millingItemId) {
935
+ return this.http.get(this.url + "/" + workOrderId + "/milling-items/" + millingItemId);
936
+ };
937
+ WorkOrderService.prototype.createMillingItem = function (workOrderId, millingItem) {
938
+ return this.http.post(this.url + "/" + workOrderId + "/milling-items", millingItem);
939
+ };
940
+ WorkOrderService.prototype.updateMillingItem = function (workOrderId, millingItemId, millingItem) {
941
+ return this.http.put(this.url + "/" + workOrderId + "/milling-items/" + millingItemId, millingItem);
942
+ };
943
+ WorkOrderService.prototype.deleteMillingItem = function (workOrderId, millingItemId) {
944
+ return this.http.delete(this.url + "/" + workOrderId + "/milling-items/" + millingItemId);
945
+ };
946
+ // Report Items
947
+ WorkOrderService.prototype.readReportMillingItems = function () {
948
+ return this.http.get(this.env.baseUrl + "api/report-milling-items");
949
+ };
950
+ WorkOrderService.prototype.readReportRefinishItems = function () {
951
+ return this.http.get(this.env.baseUrl + "api/report-refinish-items");
952
+ };
953
+ return WorkOrderService;
954
+ }());
955
+ WorkOrderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WorkOrderService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
956
+ WorkOrderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WorkOrderService, providedIn: 'root' });
957
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WorkOrderService, decorators: [{
958
+ type: i0.Injectable,
959
+ args: [{
960
+ providedIn: 'root'
961
+ }]
962
+ }], ctorParameters: function () {
963
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
964
+ type: i0.Inject,
965
+ args: ['env']
966
+ }] }];
967
+ } });
968
+
969
+ var DealerService = /** @class */ (function () {
970
+ function DealerService(http, env) {
971
+ this.http = http;
972
+ this.env = env;
973
+ this.url = this.env.baseUrl + 'api/dealers';
974
+ }
975
+ DealerService.prototype.readDealers = function (includeInactive) {
976
+ if (includeInactive === void 0) { includeInactive = false; }
977
+ return this.http.get(this.url, {
978
+ params: {
979
+ includeInactive: includeInactive.toString()
980
+ }
981
+ });
982
+ };
983
+ DealerService.prototype.readDealer = function (id) {
984
+ return this.http.get(this.url + "/" + id);
985
+ };
986
+ DealerService.prototype.createDealer = function (dealer) {
987
+ return this.http.post(this.url, dealer);
988
+ };
989
+ DealerService.prototype.updateDealer = function (id, dealer) {
990
+ return this.http.put(this.url + "/" + id, dealer);
991
+ };
992
+ DealerService.prototype.deleteDealer = function (id) {
993
+ return this.http.delete(this.url + "/" + id);
994
+ };
995
+ DealerService.prototype.updateDealerCoupon = function (dealerId, couponId, dealerCoupon) {
996
+ return this.http.put(this.url + "/" + dealerId + "/coupons/" + couponId, dealerCoupon);
997
+ };
998
+ return DealerService;
999
+ }());
1000
+ DealerService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: DealerService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1001
+ DealerService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: DealerService, providedIn: 'root' });
1002
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: DealerService, decorators: [{
1003
+ type: i0.Injectable,
1004
+ args: [{
1005
+ providedIn: 'root'
1006
+ }]
1007
+ }], ctorParameters: function () {
1008
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1009
+ type: i0.Inject,
1010
+ args: ['env']
1011
+ }] }];
1012
+ } });
1013
+
1014
+ var FileUploadService = /** @class */ (function () {
1015
+ function FileUploadService(http, env) {
1016
+ this.http = http;
1017
+ this.env = env;
1018
+ this.url = this.env.baseUrl + 'api/uploads';
1019
+ }
1020
+ FileUploadService.prototype.deleteFile = function (fileName) {
1021
+ return this.http.delete(this.url + "/" + fileName);
1022
+ };
1023
+ FileUploadService.prototype.saveFile = function (file) {
1024
+ var formData = new FormData();
1025
+ formData.append('fileKey', file, file.name);
1026
+ return this.http.post(this.url, formData, { responseType: "text" });
1027
+ };
1028
+ FileUploadService.prototype.retrieveFile = function (fileName) {
1029
+ return this.http.get(this.url + "/" + fileName, { responseType: 'blob' })
1030
+ .pipe(operators.switchMap(function (response) {
1031
+ return rxjs.of(new File([response], fileName, { type: response.type }));
1032
+ }));
1033
+ };
1034
+ return FileUploadService;
1035
+ }());
1036
+ FileUploadService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FileUploadService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1037
+ FileUploadService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FileUploadService, providedIn: 'root' });
1038
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FileUploadService, decorators: [{
1039
+ type: i0.Injectable,
1040
+ args: [{
1041
+ providedIn: 'root'
1042
+ }]
1043
+ }], ctorParameters: function () {
1044
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1045
+ type: i0.Inject,
1046
+ args: ['env']
1047
+ }] }];
1048
+ } });
1049
+
1050
+ var WaitlistService = /** @class */ (function () {
1051
+ function WaitlistService(http, env) {
1052
+ this.http = http;
1053
+ this.env = env;
1054
+ this.url = this.env.baseUrl + 'api/waitlist-items';
1055
+ }
1056
+ WaitlistService.prototype.retrieveWaitlistItems = function (statuses, id, customerName, customerEmail, serialNumber, workOrderTypes, projectTypes) {
1057
+ if (statuses === void 0) { statuses = null; }
1058
+ if (id === void 0) { id = null; }
1059
+ if (customerName === void 0) { customerName = null; }
1060
+ if (customerEmail === void 0) { customerEmail = null; }
1061
+ if (serialNumber === void 0) { serialNumber = null; }
1062
+ if (workOrderTypes === void 0) { workOrderTypes = null; }
1063
+ if (projectTypes === void 0) { projectTypes = null; }
1064
+ var params = {};
1065
+ if (statuses) {
1066
+ params['statuses'] = statuses.map(function (status) { return status.toString(); });
1067
+ }
1068
+ if (id) {
1069
+ params['id'] = id.toString();
1070
+ }
1071
+ if (customerName) {
1072
+ params['customerName'] = customerName;
1073
+ }
1074
+ if (customerEmail) {
1075
+ params['customerEmail'] = customerEmail;
1076
+ }
1077
+ if (serialNumber) {
1078
+ params['serialNumber'] = serialNumber;
1079
+ }
1080
+ if (workOrderTypes) {
1081
+ params['workOrderTypes'] = workOrderTypes.map(function (t) { return t.toString(); });
1082
+ }
1083
+ if (projectTypes) {
1084
+ params['projectTypes'] = projectTypes.map(function (t) { return t.toString(); });
1085
+ }
1086
+ return this.http.get(this.url, {
1087
+ params: params
1088
+ });
1089
+ };
1090
+ WaitlistService.prototype.retrieveWaitlistItem = function (id) {
1091
+ return this.http.get(this.url + "/" + id);
1092
+ };
1093
+ WaitlistService.prototype.createWaitlistItem = function (waitlistItem) {
1094
+ return this.http.post(this.url, waitlistItem);
1095
+ };
1096
+ WaitlistService.prototype.updateWaitlistItem = function (id, waitlistItem) {
1097
+ return this.http.put(this.url + "/" + id, waitlistItem);
1098
+ };
1099
+ WaitlistService.prototype.deleteWaitlistItem = function (id) {
1100
+ return this.http.delete(this.url + "/" + id);
1101
+ };
1102
+ WaitlistService.prototype.doWaitlistAction = function (id, actionId) {
1103
+ return this.http.get(this.url + "/" + id + "/actions/" + actionId);
1104
+ };
1105
+ WaitlistService.prototype.retrieveProjectPdf = function (id, projectId) {
1106
+ return this.http.get(this.url + "/" + id + "/projects/" + projectId + "/pdf", { responseType: "blob" });
1107
+ };
1108
+ WaitlistService.prototype.retrieveProjects = function (waitlistId) {
1109
+ return this.http.get(this.url + "/" + waitlistId + "/projects");
1110
+ };
1111
+ WaitlistService.prototype.retrieveProject = function (waitlistId, projectId) {
1112
+ return this.http.get(this.url + "/" + waitlistId + "/projects/" + projectId);
1113
+ };
1114
+ WaitlistService.prototype.createProject = function (waitlistId, project) {
1115
+ return this.http.post(this.url + "/" + waitlistId + "/projects", project);
1116
+ };
1117
+ WaitlistService.prototype.updateProject = function (waitlistId, projectId, project) {
1118
+ return this.http.put(this.url + "/" + waitlistId + "/projects/" + projectId, project);
1119
+ };
1120
+ WaitlistService.prototype.deleteProject = function (waitlistId, projectId) {
1121
+ return this.http.delete(this.url + "/" + waitlistId + "/projects/" + projectId);
1122
+ };
1123
+ return WaitlistService;
1124
+ }());
1125
+ WaitlistService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WaitlistService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1126
+ WaitlistService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WaitlistService, providedIn: 'root' });
1127
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WaitlistService, decorators: [{
1128
+ type: i0.Injectable,
1129
+ args: [{
1130
+ providedIn: 'root'
1131
+ }]
1132
+ }], ctorParameters: function () {
1133
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1134
+ type: i0.Inject,
1135
+ args: ['env']
1136
+ }] }];
1137
+ } });
1138
+
1139
+ var ConfigurationService = /** @class */ (function () {
1140
+ function ConfigurationService(http, env) {
1141
+ this.http = http;
1142
+ this.env = env;
1143
+ this.url = this.env.baseUrl + 'api/configs';
1144
+ }
1145
+ ConfigurationService.prototype.readConfigs = function () {
1146
+ return this.http.get(this.url);
1147
+ };
1148
+ ConfigurationService.prototype.updateConfigs = function (configuration) {
1149
+ return this.http.put(this.url + "/1", configuration);
1150
+ };
1151
+ return ConfigurationService;
1152
+ }());
1153
+ ConfigurationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ConfigurationService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1154
+ ConfigurationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ConfigurationService, providedIn: 'root' });
1155
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ConfigurationService, decorators: [{
1156
+ type: i0.Injectable,
1157
+ args: [{
1158
+ providedIn: 'root'
1159
+ }]
1160
+ }], ctorParameters: function () {
1161
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1162
+ type: i0.Inject,
1163
+ args: ['env']
1164
+ }] }];
1165
+ } });
1166
+
1167
+ var WaitlistCustomerService = /** @class */ (function () {
1168
+ function WaitlistCustomerService(http, env) {
1169
+ this.http = http;
1170
+ this.env = env;
1171
+ this.url = this.env.baseUrl + 'api/waitlist-items/customer';
1172
+ }
1173
+ WaitlistCustomerService.prototype.readWaitlistItem = function (token) {
1174
+ return this.http.get(this.url, {
1175
+ params: { token: token }
1176
+ });
1177
+ };
1178
+ WaitlistCustomerService.prototype.updateWaitlistItem = function (token, waitlistItem) {
1179
+ return this.http.put(this.url + "/" + waitlistItem.id, waitlistItem, {
1180
+ params: { token: token }
1181
+ });
1182
+ };
1183
+ WaitlistCustomerService.prototype.cancelWaitlistItem = function (token) {
1184
+ return this.http.delete("" + this.url, {
1185
+ params: { token: token }
1186
+ });
1187
+ };
1188
+ return WaitlistCustomerService;
1189
+ }());
1190
+ WaitlistCustomerService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WaitlistCustomerService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1191
+ WaitlistCustomerService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WaitlistCustomerService, providedIn: 'root' });
1192
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WaitlistCustomerService, decorators: [{
1193
+ type: i0.Injectable,
1194
+ args: [{
1195
+ providedIn: 'root'
1196
+ }]
1197
+ }], ctorParameters: function () {
1198
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1199
+ type: i0.Inject,
1200
+ args: ['env']
1201
+ }] }];
1202
+ } });
1203
+
1204
+ var OpticService = /** @class */ (function () {
1205
+ function OpticService(http, env) {
1206
+ this.http = http;
1207
+ this.env = env;
1208
+ this.url = this.env.baseUrl + 'api/optics';
1209
+ }
1210
+ OpticService.prototype.readOptics = function (includeInactive) {
1211
+ if (includeInactive === void 0) { includeInactive = false; }
1212
+ return this.http.get(this.url, {
1213
+ params: {
1214
+ includeInactive: includeInactive.toString()
1215
+ }
1216
+ });
1217
+ };
1218
+ OpticService.prototype.readOptic = function (opticId) {
1219
+ return this.http.get(this.url + "/" + opticId);
1220
+ };
1221
+ OpticService.prototype.createOptic = function (optic) {
1222
+ return this.http.post(this.url, optic);
1223
+ };
1224
+ OpticService.prototype.updateOptic = function (opticId, optic) {
1225
+ return this.http.put(this.url + "/" + opticId, optic);
1226
+ };
1227
+ OpticService.prototype.deleteOptic = function (opticId) {
1228
+ return this.http.delete(this.url + "/" + opticId);
1229
+ };
1230
+ return OpticService;
1231
+ }());
1232
+ OpticService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: OpticService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1233
+ OpticService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: OpticService, providedIn: 'root' });
1234
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: OpticService, decorators: [{
1235
+ type: i0.Injectable,
1236
+ args: [{
1237
+ providedIn: 'root'
1238
+ }]
1239
+ }], ctorParameters: function () {
1240
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1241
+ type: i0.Inject,
1242
+ args: ['env']
1243
+ }] }];
1244
+ } });
1245
+
1246
+ var ProductService = /** @class */ (function () {
1247
+ function ProductService(http, env) {
1248
+ this.http = http;
1249
+ this.env = env;
1250
+ this.url = this.env.baseUrl + 'api/products';
1251
+ }
1252
+ ProductService.prototype.readProducts = function (sku) {
1253
+ return this.http.get(this.url, { params: { sku: sku } });
1254
+ };
1255
+ ProductService.prototype.readProductBundleItems = function (id) {
1256
+ return this.http.get(this.url + "/" + id + "/bundle-items");
1257
+ };
1258
+ return ProductService;
1259
+ }());
1260
+ ProductService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ProductService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1261
+ ProductService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ProductService, providedIn: 'root' });
1262
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ProductService, decorators: [{
1263
+ type: i0.Injectable,
1264
+ args: [{
1265
+ providedIn: 'root'
1266
+ }]
1267
+ }], ctorParameters: function () {
1268
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1269
+ type: i0.Inject,
1270
+ args: ['env']
1271
+ }] }];
1272
+ } });
1273
+
1274
+ var FirearmSeriesService = /** @class */ (function () {
1275
+ function FirearmSeriesService(http, env) {
1276
+ this.http = http;
1277
+ this.env = env;
1278
+ this.url = this.env.baseUrl + 'api/firearm-serieses';
1279
+ }
1280
+ FirearmSeriesService.prototype.readSerieses = function (includeInactive) {
1281
+ if (includeInactive === void 0) { includeInactive = false; }
1282
+ return this.http.get(this.url, {
1283
+ params: {
1284
+ includeInactive: includeInactive.toString()
1285
+ }
1286
+ });
1287
+ };
1288
+ FirearmSeriesService.prototype.readSeries = function (firearmSeriesId) {
1289
+ return this.http.get(this.url + "/" + firearmSeriesId);
1290
+ };
1291
+ FirearmSeriesService.prototype.createSeries = function (firearmSeries) {
1292
+ return this.http.post(this.url, firearmSeries);
1293
+ };
1294
+ FirearmSeriesService.prototype.updateSeries = function (firearmSeriesId, firearmSeries) {
1295
+ return this.http.put(this.url + "/" + firearmSeriesId, firearmSeries);
1296
+ };
1297
+ FirearmSeriesService.prototype.deleteSeries = function (firearmSeriesId) {
1298
+ return this.http.delete(this.url + "/" + firearmSeriesId);
1299
+ };
1300
+ FirearmSeriesService.prototype.readSeriesOptics = function (firearmSeriesId) {
1301
+ return this.http.get(this.url + "/" + firearmSeriesId + "/optics");
1302
+ };
1303
+ return FirearmSeriesService;
1304
+ }());
1305
+ FirearmSeriesService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FirearmSeriesService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1306
+ FirearmSeriesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FirearmSeriesService, providedIn: 'root' });
1307
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FirearmSeriesService, decorators: [{
1308
+ type: i0.Injectable,
1309
+ args: [{
1310
+ providedIn: 'root'
1311
+ }]
1312
+ }], ctorParameters: function () {
1313
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1314
+ type: i0.Inject,
1315
+ args: ['env']
1316
+ }] }];
1317
+ } });
1318
+
1319
+ var MillingTypeService = /** @class */ (function () {
1320
+ function MillingTypeService(http, env) {
1321
+ this.http = http;
1322
+ this.env = env;
1323
+ this.url = this.env.baseUrl + 'api/milling-types';
1324
+ }
1325
+ MillingTypeService.prototype.readMillingTypes = function (includeInactive) {
1326
+ if (includeInactive === void 0) { includeInactive = false; }
1327
+ var params = {};
1328
+ if (includeInactive) {
1329
+ params['includeInactive'] = includeInactive.toString();
1330
+ }
1331
+ return this.http.get(this.url, {
1332
+ params: params
1333
+ });
1334
+ };
1335
+ MillingTypeService.prototype.readMillingType = function (id) {
1336
+ return this.http.get(this.url + "/" + id);
1337
+ };
1338
+ MillingTypeService.prototype.createMillingType = function (millingType) {
1339
+ return this.http.post(this.url, millingType);
1340
+ };
1341
+ MillingTypeService.prototype.updateMillingType = function (id, millingType) {
1342
+ return this.http.put(this.url + "/" + id, millingType);
1343
+ };
1344
+ MillingTypeService.prototype.deleteMillingType = function (id) {
1345
+ return this.http.delete(this.url + "/" + id);
1346
+ };
1347
+ return MillingTypeService;
1348
+ }());
1349
+ MillingTypeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MillingTypeService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1350
+ MillingTypeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MillingTypeService, providedIn: 'root' });
1351
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MillingTypeService, decorators: [{
1352
+ type: i0.Injectable,
1353
+ args: [{
1354
+ providedIn: 'root'
1355
+ }]
1356
+ }], ctorParameters: function () {
1357
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1358
+ type: i0.Inject,
1359
+ args: ['env']
1360
+ }] }];
1361
+ } });
1362
+
1363
+ var CosmeticMillingService = /** @class */ (function () {
1364
+ function CosmeticMillingService(http, env) {
1365
+ this.http = http;
1366
+ this.env = env;
1367
+ this.url = this.env.baseUrl + 'api/cosmetic-millings';
1368
+ }
1369
+ CosmeticMillingService.prototype.readCosmeticMillings = function (includeInactive) {
1370
+ if (includeInactive === void 0) { includeInactive = false; }
1371
+ return this.http.get(this.url, {
1372
+ params: {
1373
+ includeInactive: includeInactive.toString()
1374
+ }
1375
+ });
1376
+ };
1377
+ CosmeticMillingService.prototype.readCosmeticMilling = function (id) {
1378
+ return this.http.get(this.url + "/" + id);
1379
+ };
1380
+ CosmeticMillingService.prototype.createCosmeticMilling = function (cosmeticMilling) {
1381
+ return this.http.post(this.url, cosmeticMilling);
1382
+ };
1383
+ CosmeticMillingService.prototype.updateCosmeticMilling = function (id, cosmeticMilling) {
1384
+ return this.http.put(this.url + "/" + id, cosmeticMilling);
1385
+ };
1386
+ CosmeticMillingService.prototype.deleteCosmeticMilling = function (id) {
1387
+ return this.http.delete(this.url + "/" + id);
1388
+ };
1389
+ return CosmeticMillingService;
1390
+ }());
1391
+ CosmeticMillingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: CosmeticMillingService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1392
+ CosmeticMillingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: CosmeticMillingService, providedIn: 'root' });
1393
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: CosmeticMillingService, decorators: [{
1394
+ type: i0.Injectable,
1395
+ args: [{
1396
+ providedIn: 'root'
1397
+ }]
1398
+ }], ctorParameters: function () {
1399
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1400
+ type: i0.Inject,
1401
+ args: ['env']
1402
+ }] }];
1403
+ } });
1404
+
1405
+ var CoatingService = /** @class */ (function () {
1406
+ function CoatingService(http, env) {
1407
+ this.http = http;
1408
+ this.env = env;
1409
+ this.url = this.env.baseUrl + 'api/coatings';
1410
+ }
1411
+ CoatingService.prototype.readCoatings = function (includeInactive) {
1412
+ if (includeInactive === void 0) { includeInactive = false; }
1413
+ var params = {
1414
+ includeInactive: includeInactive.toString()
1415
+ };
1416
+ return this.http.get(this.url, {
1417
+ params: params
1418
+ });
1419
+ };
1420
+ CoatingService.prototype.readCoating = function (id) {
1421
+ return this.http.get(this.url + "/" + id);
1422
+ };
1423
+ CoatingService.prototype.createCoating = function (coating) {
1424
+ return this.http.post(this.url, coating);
1425
+ };
1426
+ CoatingService.prototype.updateCoating = function (id, coating) {
1427
+ return this.http.put(this.url + "/" + id, coating);
1428
+ };
1429
+ CoatingService.prototype.deleteCoating = function (id) {
1430
+ return this.http.delete(this.url + "/" + id);
1431
+ };
1432
+ // Coating Values
1433
+ CoatingService.prototype.readCoatingValues = function (coatingId, includeInactive) {
1434
+ if (includeInactive === void 0) { includeInactive = false; }
1435
+ return this.http.get(this.url + "/" + coatingId + "/coating-values", {
1436
+ params: {
1437
+ includeInactive: includeInactive.toString()
1438
+ }
1439
+ });
1440
+ };
1441
+ CoatingService.prototype.readCoatingValue = function (coatingId, coatingValueId) {
1442
+ return this.http.get(this.url + "/" + coatingId + "/coating-values/" + coatingValueId);
1443
+ };
1444
+ CoatingService.prototype.createCoatingValue = function (coatingId, coatingValue) {
1445
+ return this.http.post(this.url + "/" + coatingId + "/coating-values", coatingValue);
1446
+ };
1447
+ CoatingService.prototype.updateCoatingValue = function (coatingId, coatingValueId, coatingValue) {
1448
+ return this.http.put(this.url + "/" + coatingId + "/coating-values/" + coatingValueId, coatingValue);
1449
+ };
1450
+ CoatingService.prototype.deleteCoatingValue = function (coatingId, coatingValueId) {
1451
+ return this.http.delete(this.url + "/" + coatingId + "/coating-values/" + coatingValueId);
1452
+ };
1453
+ return CoatingService;
1454
+ }());
1455
+ CoatingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: CoatingService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1456
+ CoatingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: CoatingService, providedIn: 'root' });
1457
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: CoatingService, decorators: [{
1458
+ type: i0.Injectable,
1459
+ args: [{
1460
+ providedIn: 'root'
1461
+ }]
1462
+ }], ctorParameters: function () {
1463
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1464
+ type: i0.Inject,
1465
+ args: ['env']
1466
+ }] }];
1467
+ } });
1468
+
1469
+ var MaterialService = /** @class */ (function () {
1470
+ function MaterialService(http, env) {
1471
+ this.http = http;
1472
+ this.env = env;
1473
+ this.url = this.env.baseUrl + 'api/materials';
1474
+ }
1475
+ MaterialService.prototype.readMaterials = function (includeInactive) {
1476
+ if (includeInactive === void 0) { includeInactive = false; }
1477
+ return this.http.get(this.url, {
1478
+ params: {
1479
+ includeInactive: includeInactive.toString()
1480
+ }
1481
+ });
1482
+ };
1483
+ return MaterialService;
1484
+ }());
1485
+ MaterialService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MaterialService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1486
+ MaterialService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MaterialService, providedIn: 'root' });
1487
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MaterialService, decorators: [{
1488
+ type: i0.Injectable,
1489
+ args: [{
1490
+ providedIn: 'root'
1491
+ }]
1492
+ }], ctorParameters: function () {
1493
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1494
+ type: i0.Inject,
1495
+ args: ['env']
1496
+ }] }];
1497
+ } });
1498
+
1499
+ var PurchaseOrderService = /** @class */ (function () {
1500
+ function PurchaseOrderService(http, env) {
1501
+ this.http = http;
1502
+ this.env = env;
1503
+ this.url = this.env.baseUrl + 'api/purchase-orders';
1504
+ }
1505
+ PurchaseOrderService.prototype.readPurchaseOrders = function (statuses, id, date, vendorId, serialNumber) {
1506
+ if (statuses === void 0) { statuses = null; }
1507
+ if (id === void 0) { id = null; }
1508
+ if (date === void 0) { date = null; }
1509
+ if (vendorId === void 0) { vendorId = null; }
1510
+ if (serialNumber === void 0) { serialNumber = null; }
1511
+ var params = {};
1512
+ if (statuses) {
1513
+ params['statuses'] = statuses.map(function (s) { return s.toString(); });
1514
+ }
1515
+ if (id) {
1516
+ params['id'] = id;
1517
+ }
1518
+ if (date) {
1519
+ params['date'] = date;
1520
+ }
1521
+ if (vendorId) {
1522
+ params['vendorId'] = vendorId;
1523
+ }
1524
+ if (serialNumber) {
1525
+ params['serialNumber'] = serialNumber;
1526
+ }
1527
+ return this.http.get(this.url, {
1528
+ params: params
1529
+ });
1530
+ };
1531
+ PurchaseOrderService.prototype.readPurchaseOrder = function (id) {
1532
+ return this.http.get(this.url + "/" + id);
1533
+ };
1534
+ PurchaseOrderService.prototype.createPurchaseOrder = function (purchaseOrder) {
1535
+ return this.http.post(this.url, purchaseOrder);
1536
+ };
1537
+ PurchaseOrderService.prototype.updatePurchaseOrder = function (id, purchaseOrder) {
1538
+ return this.http.put(this.url + "/" + id, purchaseOrder);
1539
+ };
1540
+ PurchaseOrderService.prototype.deletePurchaseOrder = function (id) {
1541
+ return this.http.delete(this.url + "/" + id);
1542
+ };
1543
+ PurchaseOrderService.prototype.getRefinishItems = function () {
1544
+ return this.http.get(this.env.baseUrl + "api/purchase-order-refinish-items");
1545
+ };
1546
+ // Refinish Items
1547
+ PurchaseOrderService.prototype.readRefinishItemCollection = function (purchaseOrderId, itemIds) {
1548
+ return this.http.get(this.url + "/" + purchaseOrderId + "/refinish-items/collection/" + itemIds.join(','));
1549
+ };
1550
+ PurchaseOrderService.prototype.readRefinishItem = function (purchaseOrderId, refinishItemId) {
1551
+ return this.http.get(this.url + "/" + purchaseOrderId + "/refinish-items/" + refinishItemId);
1552
+ };
1553
+ PurchaseOrderService.prototype.createRefinishItem = function (purchaseOrderId, refinishItem) {
1554
+ return this.http.post(this.url + "/" + purchaseOrderId + "/refinish-items", refinishItem);
1555
+ };
1556
+ PurchaseOrderService.prototype.createRefinishItemCollection = function (purchaseOrderId, refinishItems) {
1557
+ return this.http.post(this.url + "/" + purchaseOrderId + "/refinish-items/collection", refinishItems);
1558
+ };
1559
+ PurchaseOrderService.prototype.updateRefinishItem = function (purchaseOrderId, refinishItemId, refinishItem) {
1560
+ return this.http.put(this.url + "/" + purchaseOrderId + "/refinish-items/" + refinishItemId, refinishItem);
1561
+ };
1562
+ PurchaseOrderService.prototype.updateRefinishItemCollection = function (purchaseOrderId, itemIds, refinishItems) {
1563
+ return this.http.put(this.url + "/" + purchaseOrderId + "/refinish-items/collection/" + itemIds.join(','), refinishItems);
1564
+ };
1565
+ PurchaseOrderService.prototype.deleteRefinishItem = function (purchaseOrderId, refinishItemId) {
1566
+ return this.http.delete(this.url + "/" + purchaseOrderId + "/refinish-items/" + refinishItemId);
1567
+ };
1568
+ PurchaseOrderService.prototype.getPdf = function (purchaseOrderId) {
1569
+ return this.http.get(this.url + "/" + purchaseOrderId + "/pdf", { responseType: "blob" });
1570
+ };
1571
+ PurchaseOrderService.prototype.getBatf = function (purchaseOrderId) {
1572
+ return this.http.get(this.url + "/" + purchaseOrderId + "/batf", { responseType: "blob" });
1573
+ };
1574
+ return PurchaseOrderService;
1575
+ }());
1576
+ PurchaseOrderService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: PurchaseOrderService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1577
+ PurchaseOrderService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: PurchaseOrderService, providedIn: 'root' });
1578
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: PurchaseOrderService, decorators: [{
1579
+ type: i0.Injectable,
1580
+ args: [{
1581
+ providedIn: 'root'
1582
+ }]
1583
+ }], ctorParameters: function () {
1584
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1585
+ type: i0.Inject,
1586
+ args: ['env']
1587
+ }] }];
1588
+ } });
1589
+
1590
+ var UserService = /** @class */ (function () {
1591
+ function UserService(http, env) {
1592
+ this.http = http;
1593
+ this.env = env;
1594
+ this.url = this.env.baseUrl + 'api/users';
1595
+ }
1596
+ UserService.prototype.readUsers = function () {
1597
+ return this.http.get(this.url);
1598
+ };
1599
+ return UserService;
1600
+ }());
1601
+ UserService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: UserService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1602
+ UserService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: UserService, providedIn: 'root' });
1603
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: UserService, decorators: [{
1604
+ type: i0.Injectable,
1605
+ args: [{
1606
+ providedIn: 'root'
1607
+ }]
1608
+ }], ctorParameters: function () {
1609
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1610
+ type: i0.Inject,
1611
+ args: ['env']
1612
+ }] }];
1613
+ } });
1614
+
1615
+ var WaitlistProjectService = /** @class */ (function () {
1616
+ function WaitlistProjectService(http, env) {
1617
+ this.http = http;
1618
+ this.env = env;
1619
+ this.url = this.env.baseUrl + 'api/waitlist-projects';
1620
+ }
1621
+ WaitlistProjectService.prototype.readRefinishDetails = function (projectId) {
1622
+ return this.http.get(this.url + "/" + projectId + "/refinish-details");
1623
+ };
1624
+ WaitlistProjectService.prototype.updateRefinishDetails = function (projectId, details) {
1625
+ return this.http.put(this.url + "/" + projectId + "/refinish-details", details);
1626
+ };
1627
+ WaitlistProjectService.prototype.readMillingDetail = function (projectId) {
1628
+ return this.http.get(this.url + "/" + projectId + "/milling-details");
1629
+ };
1630
+ WaitlistProjectService.prototype.createMillingDetail = function (projectId, detail) {
1631
+ return this.http.post(this.url + "/" + projectId + "/milling-details", detail);
1632
+ };
1633
+ WaitlistProjectService.prototype.updateMillingDetail = function (projectId, detailId, detail) {
1634
+ return this.http.put(this.url + "/" + projectId + "/milling-details/" + detailId, detail);
1635
+ };
1636
+ return WaitlistProjectService;
1637
+ }());
1638
+ WaitlistProjectService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WaitlistProjectService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1639
+ WaitlistProjectService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WaitlistProjectService, providedIn: 'root' });
1640
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WaitlistProjectService, decorators: [{
1641
+ type: i0.Injectable,
1642
+ args: [{
1643
+ providedIn: 'root'
1644
+ }]
1645
+ }], ctorParameters: function () {
1646
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1647
+ type: i0.Inject,
1648
+ args: ['env']
1649
+ }] }];
1650
+ } });
1651
+
1652
+ var InventoryService = /** @class */ (function () {
1653
+ function InventoryService(http, env) {
1654
+ this.http = http;
1655
+ this.env = env;
1656
+ this.url = this.env.baseUrl + 'api/inventory-items';
1657
+ }
1658
+ InventoryService.prototype.readInventoryItems = function (includeInactive, search) {
1659
+ if (includeInactive === void 0) { includeInactive = false; }
1660
+ if (search === void 0) { search = null; }
1661
+ var params = {
1662
+ includeInactive: includeInactive.toString()
1663
+ };
1664
+ if (search !== null) {
1665
+ params['search'] = search;
1666
+ }
1667
+ return this.http.get(this.url, { params: params });
1668
+ };
1669
+ return InventoryService;
1670
+ }());
1671
+ InventoryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: InventoryService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1672
+ InventoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: InventoryService, providedIn: 'root' });
1673
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: InventoryService, decorators: [{
1674
+ type: i0.Injectable,
1675
+ args: [{
1676
+ providedIn: 'root'
1677
+ }]
1678
+ }], ctorParameters: function () {
1679
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1680
+ type: i0.Inject,
1681
+ args: ['env']
1682
+ }] }];
1683
+ } });
1684
+
1685
+ var PhonePipe = /** @class */ (function () {
1686
+ function PhonePipe() {
1687
+ }
1688
+ PhonePipe.prototype.transform = function (value, args) {
1689
+ if (value && value.length >= 10) {
1690
+ return "(" + value.slice(0, 3) + ") " + value.slice(3, 6) + "-" + value.slice(6);
1691
+ }
1692
+ return '';
1693
+ };
1694
+ return PhonePipe;
1695
+ }());
1696
+ PhonePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: PhonePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1697
+ PhonePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: PhonePipe, name: "phone" });
1698
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: PhonePipe, decorators: [{
1699
+ type: i0.Pipe,
1700
+ args: [{
1701
+ name: 'phone'
1702
+ }]
1703
+ }] });
1704
+
1705
+ var FileNamePipe = /** @class */ (function () {
1706
+ function FileNamePipe() {
1707
+ }
1708
+ FileNamePipe.prototype.transform = function (value, args) {
1709
+ return value.replace(/(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}-/, '');
1710
+ };
1711
+ return FileNamePipe;
1712
+ }());
1713
+ FileNamePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FileNamePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1714
+ FileNamePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FileNamePipe, name: "fileName" });
1715
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FileNamePipe, decorators: [{
1716
+ type: i0.Pipe,
1717
+ args: [{
1718
+ name: 'fileName'
1719
+ }]
1720
+ }] });
1721
+
1722
+ var EnumPipe = /** @class */ (function () {
1723
+ function EnumPipe() {
1724
+ }
1725
+ EnumPipe.prototype.transform = function (value, args) {
1726
+ return value.replace(/([A-Z])/g, ' $1').trim();
1727
+ };
1728
+ return EnumPipe;
1729
+ }());
1730
+ EnumPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: EnumPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1731
+ EnumPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: EnumPipe, name: "enum" });
1732
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: EnumPipe, decorators: [{
1733
+ type: i0.Pipe,
1734
+ args: [{
1735
+ name: 'enum'
1736
+ }]
1737
+ }] });
1738
+
1739
+ var NewLinePipe = /** @class */ (function () {
1740
+ function NewLinePipe() {
1741
+ }
1742
+ NewLinePipe.prototype.transform = function (value, args) {
1743
+ return value ? value.replace(/(?:\r\n|\r|\n)/g, '<br>') : '';
1744
+ };
1745
+ return NewLinePipe;
1746
+ }());
1747
+ NewLinePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NewLinePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1748
+ NewLinePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NewLinePipe, name: "newLine" });
1749
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NewLinePipe, decorators: [{
1750
+ type: i0.Pipe,
1751
+ args: [{
1752
+ name: 'newLine'
1753
+ }]
1754
+ }] });
1755
+
1756
+ var FrameMaterialPipe = /** @class */ (function () {
1757
+ function FrameMaterialPipe() {
1758
+ this.frameMaterial = [
1759
+ { id: 0, name: 'All' },
1760
+ { id: 1, name: 'Polymer' },
1761
+ { id: 2, name: 'Aluminum' },
1762
+ { id: 3, name: 'Steel' },
1763
+ ];
1764
+ }
1765
+ FrameMaterialPipe.prototype.transform = function (value, args) {
1766
+ return this.frameMaterial.find(function (fm) { return fm.id == value; }).name;
1767
+ };
1768
+ return FrameMaterialPipe;
1769
+ }());
1770
+ FrameMaterialPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FrameMaterialPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1771
+ FrameMaterialPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FrameMaterialPipe, name: "frameMaterial" });
1772
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: FrameMaterialPipe, decorators: [{
1773
+ type: i0.Pipe,
1774
+ args: [{
1775
+ name: 'frameMaterial'
1776
+ }]
1777
+ }] });
1778
+
1779
+ var DisableControlDirective = /** @class */ (function () {
1780
+ function DisableControlDirective(ngControl) {
1781
+ this.ngControl = ngControl;
1782
+ }
1783
+ Object.defineProperty(DisableControlDirective.prototype, "disableControl", {
1784
+ set: function (condition) {
1785
+ var action = condition ? 'disable' : 'enable';
1786
+ this.ngControl.control[action]();
1787
+ },
1788
+ enumerable: false,
1789
+ configurable: true
1790
+ });
1791
+ return DisableControlDirective;
1792
+ }());
1793
+ DisableControlDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: DisableControlDirective, deps: [{ token: i1__namespace$1.NgControl }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1794
+ DisableControlDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.1.2", type: DisableControlDirective, selector: "[disableControl]", inputs: { disableControl: "disableControl" }, ngImport: i0__namespace });
1795
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: DisableControlDirective, decorators: [{
1796
+ type: i0.Directive,
1797
+ args: [{
1798
+ selector: '[disableControl]'
1799
+ }]
1800
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.NgControl }]; }, propDecorators: { disableControl: [{
1801
+ type: i0.Input
1802
+ }] } });
1803
+
1804
+ function coatingValueValidator() {
1805
+ return function (control) {
1806
+ if (!control.parent) {
1807
+ return null;
1808
+ }
1809
+ var coatingControl = control.parent.get('coating');
1810
+ if (!coatingControl) {
1811
+ return null;
1812
+ }
1813
+ var coating = coatingControl.value;
1814
+ return coating && coating.valueLabel && coating.coatingValues && coating.coatingValues.length &&
1815
+ !control.value ? { value: control.value } : null;
1816
+ };
1817
+ }
1818
+ function coatingDescriptionValidator() {
1819
+ return function (control) {
1820
+ if (!control.parent) {
1821
+ return null;
1822
+ }
1823
+ var coatingControl = control.parent.get('coating');
1824
+ if (!coatingControl) {
1825
+ return null;
1826
+ }
1827
+ var coating = coatingControl.value;
1828
+ return coating && coating.valueLabel && (!coating.coatingValues || !coating.coatingValues.length) &&
1829
+ !control.value ? { value: control.value } : null;
1830
+ };
1831
+ }
1832
+ function refinishDetailsValidator() {
1833
+ return function (control) {
1834
+ var formArray = control;
1835
+ var isValid = false;
1836
+ if (!formArray.controls.length) {
1837
+ isValid = true;
1838
+ }
1839
+ for (var i = 0; i < formArray.controls.length; i++) {
1840
+ var formGroup = formArray.controls[i];
1841
+ if (formGroup.get('coating').value && formGroup.get('coating').value.id) {
1842
+ isValid = true;
1843
+ }
1844
+ }
1845
+ return !isValid ? { 'allNone': { value: true } } : null;
1846
+ };
1847
+ }
1848
+
1849
+ var SharedModule = /** @class */ (function () {
1850
+ function SharedModule() {
1851
+ }
1852
+ return SharedModule;
1853
+ }());
1854
+ SharedModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: SharedModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1855
+ SharedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: SharedModule, declarations: [PhonePipe,
1856
+ FileNamePipe,
1857
+ EnumPipe,
1858
+ DisableControlDirective,
1859
+ NewLinePipe,
1860
+ FrameMaterialPipe], exports: [PhonePipe,
1861
+ FileNamePipe,
1862
+ EnumPipe,
1863
+ NewLinePipe,
1864
+ DisableControlDirective,
1865
+ FrameMaterialPipe] });
1866
+ SharedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: SharedModule, imports: [[]] });
1867
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: SharedModule, decorators: [{
1868
+ type: i0.NgModule,
1869
+ args: [{
1870
+ declarations: [
1871
+ PhonePipe,
1872
+ FileNamePipe,
1873
+ EnumPipe,
1874
+ DisableControlDirective,
1875
+ NewLinePipe,
1876
+ FrameMaterialPipe
1877
+ ],
1878
+ imports: [],
1879
+ exports: [
1880
+ PhonePipe,
1881
+ FileNamePipe,
1882
+ EnumPipe,
1883
+ NewLinePipe,
1884
+ DisableControlDirective,
1885
+ FrameMaterialPipe
1886
+ ]
1887
+ }]
1888
+ }] });
1889
+
1890
+ var fadeOutAnimation = animations.trigger('fadeOutAnimation', [
1891
+ animations.transition('true => void', [
1892
+ animations.style({
1893
+ opacity: 1
1894
+ }),
1895
+ animations.animate('0.2s', animations.style({ opacity: 0 })),
1896
+ ])
1897
+ ]);
1898
+
1899
+ var NotificationService = /** @class */ (function () {
1900
+ function NotificationService() {
1901
+ this.messageUpdatedSource = new rxjs.Subject();
1902
+ this.messageUpdated = this.messageUpdatedSource.asObservable();
1903
+ }
1904
+ NotificationService.prototype.addMessage = function (type, message) {
1905
+ this.messageUpdatedSource.next({ index: 0, type: type, message: message });
1906
+ };
1907
+ return NotificationService;
1908
+ }());
1909
+ NotificationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NotificationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1910
+ NotificationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NotificationService, providedIn: 'root' });
1911
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NotificationService, decorators: [{
1912
+ type: i0.Injectable,
1913
+ args: [{
1914
+ providedIn: 'root'
1915
+ }]
1916
+ }], ctorParameters: function () { return []; } });
1917
+
1918
+ var NotificationBarComponent = /** @class */ (function () {
1919
+ function NotificationBarComponent(notificationService) {
1920
+ this.notificationService = notificationService;
1921
+ this.messages = [];
1922
+ }
1923
+ Object.defineProperty(NotificationBarComponent.prototype, "viewMessages", {
1924
+ get: function () {
1925
+ if (this.messages.length > 3) {
1926
+ return this.messages.slice(0).reverse().slice(0, 2);
1927
+ }
1928
+ return this.messages.slice(0).reverse();
1929
+ },
1930
+ enumerable: false,
1931
+ configurable: true
1932
+ });
1933
+ ;
1934
+ NotificationBarComponent.prototype.ngOnInit = function () {
1935
+ var _this = this;
1936
+ this.notificationService.messageUpdated.subscribe(function (message) {
1937
+ _this.messages.push(message);
1938
+ setTimeout(function () {
1939
+ _this.messages.shift();
1940
+ }, 4000);
1941
+ });
1942
+ };
1943
+ NotificationBarComponent.prototype.getIconClass = function (message) {
1944
+ return {
1945
+ 'fa-exclamation-triangle': message.type == 1,
1946
+ 'fa-info-circle': message.type == 0,
1947
+ };
1948
+ };
1949
+ NotificationBarComponent.prototype.shouldFade = function () {
1950
+ return this.messages.length < 3;
1951
+ };
1952
+ return NotificationBarComponent;
1953
+ }());
1954
+ NotificationBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NotificationBarComponent, deps: [{ token: NotificationService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1955
+ NotificationBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: NotificationBarComponent, selector: "app-notification-bar", ngImport: i0__namespace, template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\r\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\r\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ml-1\">{{message.message}}</span>\r\n </div>\r\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\r\n</div>\r\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:20px;color:#2a2b4b;background:#f2f2f2;padding:8px;text-align:center;box-shadow:inset 0 2px 4px hsla(0,0%,100%,.5),inset 0 -2px 4px rgba(0,0,0,.9),0 2px 4px rgba(0,0,0,.5)}.notification-bar .error{color:#711e16!important;background:#f8d8d4!important}"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [fadeOutAnimation] });
1956
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NotificationBarComponent, decorators: [{
1957
+ type: i0.Component,
1958
+ args: [{
1959
+ selector: 'app-notification-bar',
1960
+ templateUrl: './notification-bar.component.html',
1961
+ styleUrls: ['./notification-bar.component.scss'],
1962
+ animations: [fadeOutAnimation],
1963
+ }]
1964
+ }], ctorParameters: function () { return [{ type: NotificationService }]; } });
1965
+
1966
+ var NotificationModule = /** @class */ (function () {
1967
+ function NotificationModule() {
1968
+ }
1969
+ return NotificationModule;
1970
+ }());
1971
+ NotificationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NotificationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1972
+ NotificationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NotificationModule, declarations: [NotificationBarComponent], imports: [i2.CommonModule], exports: [NotificationBarComponent] });
1973
+ NotificationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NotificationModule, imports: [[
1974
+ i2.CommonModule
1975
+ ]] });
1976
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NotificationModule, decorators: [{
1977
+ type: i0.NgModule,
1978
+ args: [{
1979
+ imports: [
1980
+ i2.CommonModule
1981
+ ],
1982
+ exports: [
1983
+ NotificationBarComponent
1984
+ ],
1985
+ declarations: [
1986
+ NotificationBarComponent
1987
+ ]
1988
+ }]
1989
+ }] });
1990
+
1991
+ exports.NotificationType = void 0;
1992
+ (function (NotificationType) {
1993
+ NotificationType[NotificationType["Info"] = 0] = "Info";
1994
+ NotificationType[NotificationType["Error"] = 1] = "Error";
1995
+ })(exports.NotificationType || (exports.NotificationType = {}));
1996
+
1997
+ /*
1998
+ * Public API Surface of gunsmith-common
1999
+ */
2000
+
2001
+ /**
2002
+ * Generated bundle index. Do not edit.
2003
+ */
2004
+
2005
+ exports.BundleItem = BundleItem;
2006
+ exports.Coating = Coating;
2007
+ exports.CoatingService = CoatingService;
2008
+ exports.CoatingValue = CoatingValue;
2009
+ exports.Configuration = Configuration;
2010
+ exports.ConfigurationService = ConfigurationService;
2011
+ exports.CosmeticMilling = CosmeticMilling;
2012
+ exports.CosmeticMillingService = CosmeticMillingService;
2013
+ exports.Customer = Customer;
2014
+ exports.CustomerService = CustomerService;
2015
+ exports.Dealer = Dealer;
2016
+ exports.DealerContact = DealerContact;
2017
+ exports.DealerCoupon = DealerCoupon;
2018
+ exports.DealerService = DealerService;
2019
+ exports.DisableControlDirective = DisableControlDirective;
2020
+ exports.EnumPipe = EnumPipe;
2021
+ exports.FileNamePipe = FileNamePipe;
2022
+ exports.FileUploadService = FileUploadService;
2023
+ exports.FilterOptions = FilterOptions;
2024
+ exports.Firearm = Firearm;
2025
+ exports.FirearmSeries = FirearmSeries;
2026
+ exports.FirearmSeriesOptic = FirearmSeriesOptic;
2027
+ exports.FirearmSeriesService = FirearmSeriesService;
2028
+ exports.FirearmService = FirearmService;
2029
+ exports.FrameMaterialPipe = FrameMaterialPipe;
2030
+ exports.GunPart = GunPart;
2031
+ exports.GunPartService = GunPartService;
2032
+ exports.InventoryItem = InventoryItem;
2033
+ exports.InventoryService = InventoryService;
2034
+ exports.JFile = JFile;
2035
+ exports.Material = Material;
2036
+ exports.MaterialService = MaterialService;
2037
+ exports.MillingDetail = MillingDetail;
2038
+ exports.MillingItem = MillingItem;
2039
+ exports.MillingType = MillingType;
2040
+ exports.MillingTypeService = MillingTypeService;
2041
+ exports.NewLinePipe = NewLinePipe;
2042
+ exports.NotificationBarComponent = NotificationBarComponent;
2043
+ exports.NotificationModule = NotificationModule;
2044
+ exports.NotificationService = NotificationService;
2045
+ exports.Optic = Optic;
2046
+ exports.OpticService = OpticService;
2047
+ exports.PhonePipe = PhonePipe;
2048
+ exports.Product = Product;
2049
+ exports.ProductService = ProductService;
2050
+ exports.PurchaseOrder = PurchaseOrder;
2051
+ exports.PurchaseOrderRefinishItem = PurchaseOrderRefinishItem;
2052
+ exports.PurchaseOrderService = PurchaseOrderService;
2053
+ exports.RefinishDetail = RefinishDetail;
2054
+ exports.ReportMillingItem = ReportMillingItem;
2055
+ exports.ReportRefinishItem = ReportRefinishItem;
2056
+ exports.SharedModule = SharedModule;
2057
+ exports.State = State;
2058
+ exports.StateService = StateService;
2059
+ exports.Total = Total;
2060
+ exports.TotalItem = TotalItem;
2061
+ exports.TotalsService = TotalsService;
2062
+ exports.UserService = UserService;
2063
+ exports.Vendor = Vendor;
2064
+ exports.VendorContact = VendorContact;
2065
+ exports.VendorService = VendorService;
2066
+ exports.WaitlistCustomerService = WaitlistCustomerService;
2067
+ exports.WaitlistGun = WaitlistGun;
2068
+ exports.WaitlistHistory = WaitlistHistory;
2069
+ exports.WaitlistItem = WaitlistItem;
2070
+ exports.WaitlistProjectService = WaitlistProjectService;
2071
+ exports.WaitlistService = WaitlistService;
2072
+ exports.WorkChangeOrder = WorkChangeOrder;
2073
+ exports.WorkHoliday = WorkHoliday;
2074
+ exports.WorkHolidayService = WorkHolidayService;
2075
+ exports.WorkOrder = WorkOrder;
2076
+ exports.WorkOrderHistory = WorkOrderHistory;
2077
+ exports.WorkOrderRefinishItem = WorkOrderRefinishItem;
2078
+ exports.WorkOrderService = WorkOrderService;
2079
+ exports.calculateFinishDate = calculateFinishDate;
2080
+ exports.coatingDescriptionValidator = coatingDescriptionValidator;
2081
+ exports.coatingValueValidator = coatingValueValidator;
2082
+ exports.convertEnumToObjectArray = convertEnumToObjectArray;
2083
+ exports.getCoatingValues = getCoatingValues;
2084
+ exports.getCoatings = getCoatings;
2085
+ exports.hasCoatingDescription = hasCoatingDescription;
2086
+ exports.hasCoatingValues = hasCoatingValues;
2087
+ exports.refinishDetailsValidator = refinishDetailsValidator;
2088
+ exports.touchControls = touchControls;
2089
+
2090
+ Object.defineProperty(exports, '__esModule', { value: true });
2091
+
2092
+ })));
2093
+ //# sourceMappingURL=gunsmith-common.umd.js.map