marketplacepos 2.2.5 → 2.2.8

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 (45) hide show
  1. package/Marketplace/common.js +46 -0
  2. package/Marketplace/common.js.map +1 -0
  3. package/Marketplace/{default-src_app_services_checkbrowser_service_ts-node_modules_angular_forms_fesm2020_forms_mjs.js → default-node_modules_angular_forms_fesm2020_forms_mjs.js} +2 -43
  4. package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js.map +1 -0
  5. package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js +797 -0
  6. package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js.map +1 -0
  7. package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js +4632 -0
  8. package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js.map +1 -0
  9. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js +6836 -0
  10. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js.map +1 -0
  11. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js +722 -0
  12. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js.map +1 -0
  13. package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js +19951 -0
  14. package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js.map +1 -0
  15. package/Marketplace/index.html +2 -2
  16. package/Marketplace/main.js +161 -161
  17. package/Marketplace/main.js.map +1 -1
  18. package/Marketplace/runtime.js +1 -1
  19. package/Marketplace/runtime.js.map +1 -1
  20. package/Marketplace/src_app_login_login_module_ts.js +3 -3
  21. package/Marketplace/src_app_login_login_module_ts.js.map +1 -1
  22. package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js +1060 -0
  23. package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js.map +1 -0
  24. package/Marketplace/src_app_menu_channels_channels_module_ts.js +9710 -0
  25. package/Marketplace/src_app_menu_channels_channels_module_ts.js.map +1 -0
  26. package/Marketplace/src_app_menu_inventory_inventory_module_ts.js +1069 -0
  27. package/Marketplace/src_app_menu_inventory_inventory_module_ts.js.map +1 -0
  28. package/Marketplace/src_app_menu_logistic_logistic_module_ts.js +232 -0
  29. package/Marketplace/src_app_menu_logistic_logistic_module_ts.js.map +1 -0
  30. package/Marketplace/src_app_menu_menu_module_ts.js +27869 -86265
  31. package/Marketplace/src_app_menu_menu_module_ts.js.map +1 -1
  32. package/Marketplace/src_app_menu_notification_notification_module_ts.js +192 -0
  33. package/Marketplace/src_app_menu_notification_notification_module_ts.js.map +1 -0
  34. package/Marketplace/src_app_menu_object-log_logs_module_ts.js +1997 -0
  35. package/Marketplace/src_app_menu_object-log_logs_module_ts.js.map +1 -0
  36. package/Marketplace/src_app_menu_orders_orders_module_ts.js +2449 -0
  37. package/Marketplace/src_app_menu_orders_orders_module_ts.js.map +1 -0
  38. package/Marketplace/src_app_menu_price_price_module_ts.js +1713 -0
  39. package/Marketplace/src_app_menu_price_price_module_ts.js.map +1 -0
  40. package/Marketplace/src_app_menu_products_product_module_ts.js +2196 -0
  41. package/Marketplace/src_app_menu_products_product_module_ts.js.map +1 -0
  42. package/Marketplace/styles.css +3 -0
  43. package/Marketplace/styles.css.map +1 -1
  44. package/package.json +1 -1
  45. package/Marketplace/default-src_app_services_checkbrowser_service_ts-node_modules_angular_forms_fesm2020_forms_mjs.js.map +0 -1
@@ -0,0 +1,1713 @@
1
+ "use strict";
2
+ (self["webpackChunkpos_marketplace"] = self["webpackChunkpos_marketplace"] || []).push([["src_app_menu_price_price_module_ts"],{
3
+
4
+ /***/ 3109:
5
+ /*!*************************************************************!*\
6
+ !*** ./src/app/menu/price/price-pos/price-pos.component.ts ***!
7
+ \*************************************************************/
8
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
+
10
+ __webpack_require__.r(__webpack_exports__);
11
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
+ /* harmony export */ "PricePosComponent": () => (/* binding */ PricePosComponent)
13
+ /* harmony export */ });
14
+ /* harmony import */ var _products_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../products/scan-dialog/scan-dialog.component */ 5241);
15
+ /* harmony import */ var _inventory_inventory_pos_modal_update_channels_modal_update_channels_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../inventory/inventory-pos/modal-update-channels/modal-update-channels.component */ 2486);
16
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ 116);
17
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 2560);
18
+ /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
19
+ /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ 4817);
20
+ /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
21
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
22
+ /* harmony import */ var _sharing_module_radio_options_radio_options__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../sharing-module/radio-options/radio-options */ 4452);
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+ class PricePosComponent {
33
+ constructor(http, toastr, dialog) {
34
+ this.http = http;
35
+ this.toastr = toastr;
36
+ this.dialog = dialog;
37
+ this.loading = false;
38
+ this.LoaderChannel();
39
+ this.Options = [
40
+ { Key: 1, Value: "All" },
41
+ { Key: 3, Value: "Difference" }
42
+ ];
43
+ this.filterModel = 1;
44
+ this.pageData = {
45
+ Title: "Price",
46
+ Nav: [
47
+ { Title: 'Price Cache', Url: '/menu/price', Active: true },
48
+ { Title: 'Price Realtime', Url: '/menu/price/realtime', Active: false }
49
+ ]
50
+ };
51
+ }
52
+ ngOnInit() {
53
+ }
54
+ LoaderChannel() {
55
+ this.http.post('/api/PriceLoader/LoadMultiple', {}).subscribe(result => {
56
+ this.Channel = result.Options.Channel;
57
+ this.filter = result.Filter;
58
+ this.Filter();
59
+ });
60
+ }
61
+ /**
62
+ * Opens the scan dialog and pass the Channel list and the filter variable
63
+ * It will return the modified filter and will run the scan function that the user has selected (full or quick)
64
+ */
65
+ openScanDialog() {
66
+ const dialogRef = this.dialog.open(_products_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ScanDialogComponent, {
67
+ data: {
68
+ filter: this.filter,
69
+ Channel: this.Channel
70
+ },
71
+ width: '30%'
72
+ });
73
+ dialogRef.afterClosed().subscribe(result => {
74
+ if (result != null) {
75
+ this.filter = result.filter;
76
+ this.RefreshChannel();
77
+ }
78
+ });
79
+ }
80
+ RefreshChannel() {
81
+ let params = {
82
+ ID: this.filter.ID,
83
+ ScanFull: this.filter.ScanFull
84
+ };
85
+ this.http.post('/api/product/ScanOptimized', params).subscribe(result => {
86
+ this.info = result.Data;
87
+ this.Filter();
88
+ this.toastr.success("Successfully scanned from " + this.getChannelName(this.filter.ID), "Success");
89
+ });
90
+ }
91
+ Filter(event) {
92
+ let params = {
93
+ text: event,
94
+ filterModel: this.filterModel,
95
+ PageNumber: this.filter.PageNumber,
96
+ RowCount: this.filter.RowCount
97
+ };
98
+ this.http.post('/api/Price/GetMultipleChannelComparison', params).subscribe(result => {
99
+ this.data = result.Data;
100
+ });
101
+ }
102
+ UpdatePrice() {
103
+ let listSelected = this.getSelected();
104
+ if (listSelected.length > 0) {
105
+ let Request = [];
106
+ listSelected.forEach(m => Request.push({
107
+ ID: m.ID,
108
+ Code: m.Code,
109
+ Price: m.UnitPrice
110
+ }));
111
+ var selectedID = [];
112
+ for (let ch of this.Channel) {
113
+ if (ch.selected) {
114
+ selectedID.push(ch.ID);
115
+ }
116
+ }
117
+ let params = {
118
+ ListChannelID: selectedID,
119
+ ListPrice: Request
120
+ };
121
+ this.http.post('/api/Price/UpdateChannel', params).subscribe(result => {
122
+ this.info = result.Data;
123
+ this.Filter();
124
+ this.toastr.success("Successfully updated " + params.ListPrice.length + " items in " + params.ListChannelID.length + " channels", "Success");
125
+ });
126
+ }
127
+ }
128
+ getSelected() {
129
+ let listvariant = Array();
130
+ if (this.data) {
131
+ for (let p of this.data) {
132
+ for (let v of p.Variants) {
133
+ if (v.selected) {
134
+ listvariant.push(v);
135
+ }
136
+ }
137
+ }
138
+ return listvariant;
139
+ }
140
+ else {
141
+ return [];
142
+ }
143
+ }
144
+ hasSelection() {
145
+ if (this.data) {
146
+ let selected = this.getSelected();
147
+ if (selected.length > 0) {
148
+ return true;
149
+ }
150
+ else {
151
+ return false;
152
+ }
153
+ }
154
+ else {
155
+ return false;
156
+ }
157
+ }
158
+ UpdatePriceByVariant(item) {
159
+ let params = {
160
+ ID: item.ChannelID,
161
+ ChannelItemID: item.ChannelItemID,
162
+ ChannelVariantID: item.ChannelVariationID,
163
+ Price: item.Price - 0,
164
+ VariantID: item.ID
165
+ };
166
+ this.http.post('/api/Price/UpdatePriceByID', params).subscribe(result => {
167
+ this.info = result.Data;
168
+ this.toastr.success("Successfully updated " + item.ItemName + '(' + item.VarName + ") price in " + this.getChannelName(params.ID) + " to " + params.Price, "Success");
169
+ this.Filter();
170
+ });
171
+ }
172
+ //Function: getChannelName() will return the Channel's name based on the ID given as input
173
+ getChannelName(ID) {
174
+ let channel = this.Channel.find(x => x.ID == ID);
175
+ return channel.Name;
176
+ }
177
+ onUpdateItems() {
178
+ const selectedItems = this.getSelected();
179
+ this.dialog.open(_inventory_inventory_pos_modal_update_channels_modal_update_channels_component__WEBPACK_IMPORTED_MODULE_1__.ModalUpdateChannelsComponent, {
180
+ data: {
181
+ selectedItems: selectedItems,
182
+ channels: this.Channel
183
+ },
184
+ width: '40%'
185
+ })
186
+ .afterClosed()
187
+ .pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.filter)(val => val !== undefined))
188
+ .subscribe((channels) => {
189
+ this.Channel = channels;
190
+ this.UpdatePrice();
191
+ });
192
+ }
193
+ }
194
+ PricePosComponent.ɵfac = function PricePosComponent_Factory(t) { return new (t || PricePosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_2__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_8__.MatDialog)); };
195
+ PricePosComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({ type: PricePosComponent, selectors: [["app-price-pos"]], decls: 21, vars: 12, consts: [[3, "Title", "pageData", "hideSearchBox", "hideSearchDropdown", "textButton", "onSubmit"], ["container", ""], ["name", "filterModel", 3, "model", "options", "border", "modelChange"], [1, "d-flex"], ["type", "button", "data-cy", "scanInPos", 1, "btn", "btn-outline-secondary", "shadow", "rounded", "me-3", 3, "click"], [1, "fas", "fa-lg", "fa-crosshairs"], ["type", "button", "data-toggle", "modal", 1, "btn", "btn-success", "shadow", "rounded", 3, "hidden", "click"], [1, "fas", "fa-chevron-circle-up"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], ["table", "price", 3, "data", "channel", "filter", "onSubmit"]], template: function PricePosComponent_Template(rf, ctx) { if (rf & 1) {
196
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "mainpanel", 0);
197
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("onSubmit", function PricePosComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Filter($event); });
198
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
199
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](5, "Filter by");
200
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
201
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "radio-options", 2);
202
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("modelChange", function PricePosComponent_Template_radio_options_modelChange_6_listener($event) { return ctx.filterModel = $event; });
203
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
204
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](7, "actions")(8, "div", 3)(9, "div")(10, "button", 4);
205
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function PricePosComponent_Template_button_click_10_listener() { return ctx.openScanDialog(); });
206
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](11, "i", 5);
207
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](12, " Scan Channel ");
208
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
209
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](13, "button", 6);
210
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function PricePosComponent_Template_button_click_13_listener() { return ctx.onUpdateItems(); });
211
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](14, "i", 7);
212
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](15, " Update ");
213
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
214
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](16, "content")(17, "div", 8)(18, "div", 9)(19, "div", 10)(20, "app-table", 11);
215
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("onSubmit", function PricePosComponent_Template_app_table_onSubmit_20_listener($event) { return ctx.UpdatePriceByVariant($event); });
216
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()()();
217
+ } if (rf & 2) {
218
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("Title", "Price Comparison")("pageData", ctx.pageData)("hideSearchBox", false)("hideSearchDropdown", false)("textButton", "Search");
219
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](6);
220
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("model", ctx.filterModel)("options", ctx.Options)("border", false);
221
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7);
222
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("hidden", !ctx.hasSelection());
223
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](7);
224
+ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("data", ctx.data)("channel", ctx.Channel)("filter", ctx.filter);
225
+ } }, dependencies: [_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_3__.MainPanelComponent, _sharing_module_radio_options_radio_options__WEBPACK_IMPORTED_MODULE_4__.RadioOptionsComponent], styles: [".no-bullet[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByaWNlLXBvcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLHFCQUFBO0FBQ0oiLCJmaWxlIjoicHJpY2UtcG9zLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5vLWJ1bGxldHtcclxuICAgIGxpc3Qtc3R5bGUtdHlwZTpub25lO1xyXG59Il19 */"] });
226
+
227
+
228
+ /***/ }),
229
+
230
+ /***/ 1740:
231
+ /*!***********************************************************************!*\
232
+ !*** ./src/app/menu/price/price-realtime/price-realtime.component.ts ***!
233
+ \***********************************************************************/
234
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
235
+
236
+ __webpack_require__.r(__webpack_exports__);
237
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
238
+ /* harmony export */ "PriceRealtimeComponent": () => (/* binding */ PriceRealtimeComponent)
239
+ /* harmony export */ });
240
+ /* harmony import */ var _inventory_inventory_pos_modal_update_channels_modal_update_channels_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../inventory/inventory-pos/modal-update-channels/modal-update-channels.component */ 2486);
241
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ 116);
242
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560);
243
+ /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
244
+ /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ 4817);
245
+ /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
246
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 4666);
247
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 2508);
248
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
249
+ /* harmony import */ var _sharing_module_radio_options_radio_options__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharing-module/radio-options/radio-options */ 4452);
250
+ /* harmony import */ var _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/checkbox */ 4792);
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+ function PriceRealtimeComponent_th_21_Template(rf, ctx) { if (rf & 1) {
263
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "th", 33);
264
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
265
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
266
+ } if (rf & 2) {
267
+ const ch_r4 = ctx.$implicit;
268
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
269
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ch_r4.Name);
270
+ } }
271
+ function PriceRealtimeComponent_ng_container_31_Template(rf, ctx) { if (rf & 1) {
272
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
273
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "th", 34);
274
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, " Expected (POS) ");
275
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
276
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "th", 34);
277
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, " Channel ");
278
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
279
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
280
+ } }
281
+ function PriceRealtimeComponent_tbody_32_tr_1_ng_container_1_img_2_Template(rf, ctx) { if (rf & 1) {
282
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "img", 43);
283
+ } if (rf & 2) {
284
+ const item_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](3).$implicit;
285
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("src", item_r6 == null ? null : item_r6.ImageUrl, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
286
+ } }
287
+ function PriceRealtimeComponent_tbody_32_tr_1_ng_container_1_ng_template_3_Template(rf, ctx) { if (rf & 1) {
288
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "img", 44);
289
+ } }
290
+ const _c0 = function (a0) { return { "border-bottom": a0 }; };
291
+ function PriceRealtimeComponent_tbody_32_tr_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
292
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
293
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "td", 38);
294
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, PriceRealtimeComponent_tbody_32_tr_1_ng_container_1_img_2_Template, 1, 1, "img", 39);
295
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](3, PriceRealtimeComponent_tbody_32_tr_1_ng_container_1_ng_template_3_Template, 1, 0, "ng-template", null, 40, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"]);
296
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
297
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "td", 41)(6, "h5", 42);
298
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](7);
299
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
300
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](8, "br");
301
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "small");
302
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10);
303
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
304
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
305
+ } if (rf & 2) {
306
+ const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](4);
307
+ const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().index;
308
+ const item_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
309
+ const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
310
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
311
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("rowSpan", item_r6 == null ? null : item_r6.Variants.length)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](7, _c0, i_r9 + 1 == ctx_r10.data.length));
312
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
313
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", item_r6 == null ? null : item_r6.ImageUrl)("ngIfElse", _r13);
314
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
315
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("rowSpan", item_r6 == null ? null : item_r6.Variants.length);
316
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
317
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r6 == null ? null : item_r6.Name);
318
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
319
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"]("(", item_r6 == null ? null : item_r6.Category, ")");
320
+ } }
321
+ const _c1 = function (a0) { return { "bg-err": a0 }; };
322
+ function PriceRealtimeComponent_tbody_32_tr_1_ng_container_8_ng_container_1_Template(rf, ctx) { if (rf & 1) {
323
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
324
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "td", 47);
325
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
326
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](3, "number");
327
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
328
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "td", 48)(5, "div", 49)(6, "div", 50);
329
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](7);
330
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](8, "number");
331
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](9, "br");
332
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
333
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "div", 51)(11, "a", 52);
334
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](12, "i", 53);
335
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
336
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
337
+ } if (rf & 2) {
338
+ const obj_r22 = ctx.$implicit;
339
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
340
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](3, 4, obj_r22.PriceExpected), " ");
341
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
342
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](8, _c1, obj_r22.Price != obj_r22.PriceExpected));
343
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
344
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](8, 6, obj_r22.Price), " ");
345
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
346
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("href", obj_r22.Url, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
347
+ } }
348
+ function PriceRealtimeComponent_tbody_32_tr_1_ng_container_8_ng_template_2_Template(rf, ctx) { if (rf & 1) {
349
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "td", 54);
350
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1, "X");
351
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
352
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "td", 54);
353
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3, "X");
354
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
355
+ } }
356
+ function PriceRealtimeComponent_tbody_32_tr_1_ng_container_8_Template(rf, ctx) { if (rf & 1) {
357
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
358
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, PriceRealtimeComponent_tbody_32_tr_1_ng_container_8_ng_container_1_Template, 13, 10, "ng-container", 45);
359
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, PriceRealtimeComponent_tbody_32_tr_1_ng_container_8_ng_template_2_Template, 4, 0, "ng-template", null, 46, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"]);
360
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
361
+ } if (rf & 2) {
362
+ const ch_r18 = ctx.$implicit;
363
+ const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](3);
364
+ const v_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
365
+ const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
366
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
367
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r11.getItemFromChannel(v_r8, ch_r18.ID))("ngIfElse", _r20);
368
+ } }
369
+ function PriceRealtimeComponent_tbody_32_tr_1_Template(rf, ctx) { if (rf & 1) {
370
+ const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
371
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr");
372
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, PriceRealtimeComponent_tbody_32_tr_1_ng_container_1_Template, 11, 9, "ng-container", 35);
373
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "td", 36);
374
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
375
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
376
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "td", 36);
377
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5);
378
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
379
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "td", 37)(7, "input", 18);
380
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function PriceRealtimeComponent_tbody_32_tr_1_Template_input_ngModelChange_7_listener($event) { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r25); const v_r8 = restoredCtx.$implicit; return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](v_r8.selected = $event); });
381
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
382
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](8, PriceRealtimeComponent_tbody_32_tr_1_ng_container_8_Template, 4, 2, "ng-container", 19);
383
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
384
+ } if (rf & 2) {
385
+ const v_r8 = ctx.$implicit;
386
+ const i_r9 = ctx.index;
387
+ const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
388
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
389
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", i_r9 == 0);
390
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
391
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](v_r8 == null ? null : v_r8.Model);
392
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
393
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](v_r8 == null ? null : v_r8.Code);
394
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
395
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("hidden", ctx_r7.filter.HiddenIPOSInventory);
396
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
397
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", v_r8.selected);
398
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
399
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r7.Channel);
400
+ } }
401
+ function PriceRealtimeComponent_tbody_32_Template(rf, ctx) { if (rf & 1) {
402
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tbody");
403
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, PriceRealtimeComponent_tbody_32_tr_1_Template, 9, 6, "tr", 19);
404
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
405
+ } if (rf & 2) {
406
+ const item_r6 = ctx.$implicit;
407
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
408
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", item_r6.Variants);
409
+ } }
410
+ function PriceRealtimeComponent_li_52_Template(rf, ctx) { if (rf & 1) {
411
+ const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
412
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "li")(1, "mat-checkbox", 55);
413
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function PriceRealtimeComponent_li_52_Template_mat_checkbox_ngModelChange_1_listener($event) { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r28); const ch_r26 = restoredCtx.$implicit; return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ch_r26.selected = $event); });
414
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "div", 3)(3, "h6", 56);
415
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4);
416
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
417
+ } if (rf & 2) {
418
+ const ch_r26 = ctx.$implicit;
419
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
420
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ch_r26.selected);
421
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
422
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](ch_r26.Name);
423
+ } }
424
+ class PriceRealtimeComponent {
425
+ constructor(http, toastr, dialog) {
426
+ this.http = http;
427
+ this.toastr = toastr;
428
+ this.dialog = dialog;
429
+ this.filter = {
430
+ ChannelID: ""
431
+ };
432
+ this.loading = false;
433
+ this.checkboxState = false;
434
+ this.LoaderChannel();
435
+ this.Options = [
436
+ { Key: 1, Value: "All" },
437
+ { Key: 3, Value: "Difference" }
438
+ ];
439
+ this.filterModel = 1;
440
+ this.pageData = {
441
+ Title: "Price Realtime",
442
+ Nav: [
443
+ { Title: 'Price Cache', Url: '/menu/price', Active: false }
444
+ ]
445
+ };
446
+ }
447
+ ngOnInit() {
448
+ }
449
+ LoaderChannel() {
450
+ this.http.post('/api/PriceLoader/LoadMultiple', {}).subscribe(result => {
451
+ this.Channel = result.Options.Channel;
452
+ this.filter = result.Filter;
453
+ this.filter.HiddenIPOSInventory = false;
454
+ this.Filter();
455
+ });
456
+ }
457
+ onCheckboxStateChange() {
458
+ for (let item of this.data) {
459
+ for (let v of item.Variants) {
460
+ v.selected = this.checkboxState;
461
+ }
462
+ }
463
+ }
464
+ getSelected() {
465
+ let listvariant = Array();
466
+ if (this.data) {
467
+ for (let p of this.data) {
468
+ for (let v of p.Variants) {
469
+ if (v.selected) {
470
+ listvariant.push(v);
471
+ }
472
+ }
473
+ }
474
+ return listvariant;
475
+ }
476
+ else {
477
+ return [];
478
+ }
479
+ }
480
+ hasSelection() {
481
+ if (this.data) {
482
+ let selected = this.getSelected();
483
+ if (selected.length > 0) {
484
+ return true;
485
+ }
486
+ else {
487
+ return false;
488
+ }
489
+ }
490
+ else {
491
+ return false;
492
+ }
493
+ }
494
+ Filter(event) {
495
+ let params = {
496
+ text: event,
497
+ filterModel: this.filterModel,
498
+ PageNumber: this.filter.PageNumber,
499
+ RowCount: this.filter.RowCount
500
+ };
501
+ this.http.post('/api/Price/GetOutletPrice', params).subscribe(result => {
502
+ this.data = result.Data;
503
+ });
504
+ }
505
+ UpdatePrice() {
506
+ let listSelected = this.getSelected();
507
+ if (listSelected.length > 0) {
508
+ let listIds = [];
509
+ listSelected.forEach(m => listIds.push(m.ID));
510
+ var selectedID = [];
511
+ for (let ch of this.Channel) {
512
+ if (ch.selected) {
513
+ selectedID.push(ch.ID);
514
+ }
515
+ }
516
+ let params = {
517
+ ListChannelID: selectedID,
518
+ ListID: listIds
519
+ };
520
+ this.http.post('/api/Price/UpdateChannelOutletPrice', params).subscribe(result => {
521
+ this.info = result.Data;
522
+ this.Filter();
523
+ this.toastr.success("Successfully updated " + params.ListID.length + " items in " + params.ListChannelID.length + " channels", "Success");
524
+ });
525
+ }
526
+ }
527
+ getItemFromChannel(v, ID) {
528
+ return v.Channel.find(x => x.ChannelID == ID);
529
+ }
530
+ Actual(item) {
531
+ return item.Price;
532
+ }
533
+ Expected(item) {
534
+ return item.PriceExpected;
535
+ }
536
+ UpdatePriceByVariant(ChannelItemID, ChannelVariantID, Price, VariantID) {
537
+ let params = {
538
+ ID: this.filter.ChannelID,
539
+ ChannelItemID: ChannelItemID,
540
+ ChannelVariantID: ChannelVariantID,
541
+ Price: Price,
542
+ VariantID: VariantID,
543
+ };
544
+ this.http.post('/api/Price/UpdatePriceByID', params).subscribe(result => {
545
+ this.toastr.success(result.Data, "Success", {
546
+ closeButton: true,
547
+ positionClass: "toast-bottom-right"
548
+ });
549
+ for (let p of this.data) {
550
+ if (p.ChannelItemID === ChannelItemID) {
551
+ for (let v of p.Variants) {
552
+ if (v.ChannelVariationID == ChannelVariantID) {
553
+ v.Price = parseFloat(Price);
554
+ }
555
+ }
556
+ }
557
+ }
558
+ });
559
+ }
560
+ onUpdateItems() {
561
+ const selectedItems = this.getSelected();
562
+ this.dialog.open(_inventory_inventory_pos_modal_update_channels_modal_update_channels_component__WEBPACK_IMPORTED_MODULE_0__.ModalUpdateChannelsComponent, {
563
+ data: {
564
+ selectedItems: selectedItems,
565
+ channels: this.Channel
566
+ },
567
+ width: '40%'
568
+ })
569
+ .afterClosed()
570
+ .pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.filter)(val => val !== undefined))
571
+ .subscribe((channels) => {
572
+ this.Channel = channels;
573
+ this.UpdatePrice();
574
+ });
575
+ }
576
+ }
577
+ PriceRealtimeComponent.ɵfac = function PriceRealtimeComponent_Factory(t) { return new (t || PriceRealtimeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_1__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_7__.MatDialog)); };
578
+ PriceRealtimeComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: PriceRealtimeComponent, selectors: [["app-price-realtime"]], decls: 58, vars: 16, consts: [[3, "Title", "pageData", "hideSearchBox", "hideSearchDropdown", "textButton", "onSubmit"], ["container", ""], ["name", "filterModel", 3, "model", "options", "border", "modelChange"], [1, "d-flex"], ["type", "button", "data-toggle", "modal", 1, "btn", "btn-success", "shadow", "rounded", 3, "hidden", "click"], [1, "fas", "fa-chevron-circle-up"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table-responsive"], [1, "table"], [1, "thead-light", "sticky-top-thead"], ["colspan", "5"], ["scope", "col", "colspan", "2", "class", "text-center border-bottom-0 border w-10 text-uppercase", 4, "ngFor", "ngForOf"], ["scope", "col", "colspan", "2", 1, "text-center", "w-20"], ["scope", "col", 1, "text-start"], ["scope", "col", 1, "text-start", "w-10"], [3, "hidden"], ["type", "checkbox", 3, "ngModel", "ngModelChange"], [4, "ngFor", "ngForOf"], ["id", "ModalScan", "tabindex", "-1", "role", "dialog", "aria-labelledby", "ModalScan", "aria-hidden", "true", 1, "modal", "pe-0", "ps-5", "ms-5"], [1, "modal-dialog", "modal-dialog-centered", "w-75"], [1, "modal-content", "w-50"], [1, "modal-header"], ["id", "exampleModalLabel", 1, "modal-title"], ["type", "button", "data-dismiss", "modal", "aria-label", "Close", 1, "close"], ["aria-hidden", "true"], [1, "modal-body"], [1, "fw-light"], [1, "no-bullet"], [1, "modal-footer"], ["type", "button", "data-dismiss", "modal", 1, "btn", "btn-secondary"], ["type", "button", 1, "btn", "btn-success", 3, "click"], ["scope", "col", "colspan", "2", 1, "text-center", "border-bottom-0", "border", "w-10", "text-uppercase"], [1, "text-end", "border-top-0", "border", "w-10"], [4, "ngIf"], [1, "text-start", "border-bottom"], [1, "align-middle", 3, "hidden"], [1, "text-center", 3, "rowSpan", "ngClass"], ["class", "border rounded w-img", 3, "src", 4, "ngIf", "ngIfElse"], ["elsePic", ""], [1, "text-center", "border-bottom", 3, "rowSpan"], [1, "mb-0", "item-name"], [1, "border", "rounded", "w-img", 3, "src"], ["src", "//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png", 1, "border", "rounded", "w-img"], [4, "ngIf", "ngIfElse"], ["elseCol", ""], [1, "text-end", "border", "pointer", "cell-hover"], [1, "text-end", "border", "pointer", "cell-hover", 3, "ngClass"], [1, "row", "justify-content-end", "me-0"], [1, "col-8", "px-0", "text-center"], [1, "col-2", "ps-0", "text-start", "align-self-center"], ["target", "_blank", 3, "href"], [1, "fas", "fa-lg", "fa-external-link-alt"], [1, "table-white", "border", "text-end", 2, "color", "red"], [3, "ngModel", "ngModelChange"], [1, "fw-light", "me-2", "my-auto"]], template: function PriceRealtimeComponent_Template(rf, ctx) { if (rf & 1) {
579
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "mainpanel", 0);
580
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("onSubmit", function PriceRealtimeComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Filter($event); });
581
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
582
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5, "Filter by");
583
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
584
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "radio-options", 2);
585
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("modelChange", function PriceRealtimeComponent_Template_radio_options_modelChange_6_listener($event) { return ctx.filterModel = $event; });
586
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
587
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "actions")(8, "div", 3)(9, "button", 4);
588
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function PriceRealtimeComponent_Template_button_click_9_listener() { return ctx.onUpdateItems(); });
589
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](10, "i", 5);
590
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](11, " Update ");
591
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
592
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "content")(13, "div", 6)(14, "div", 7)(15, "div", 8)(16, "div", 9)(17, "table", 10)(18, "thead", 11)(19, "tr");
593
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](20, "th", 12);
594
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](21, PriceRealtimeComponent_th_21_Template, 2, 1, "th", 13);
595
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
596
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](22, "tr")(23, "th", 14);
597
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](24, "Product");
598
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
599
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](25, "th", 15);
600
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](26, "Variant");
601
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
602
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](27, "th", 16);
603
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](28, "SKU");
604
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
605
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](29, "th", 17)(30, "input", 18);
606
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function PriceRealtimeComponent_Template_input_ngModelChange_30_listener($event) { return ctx.checkboxState = $event; })("ngModelChange", function PriceRealtimeComponent_Template_input_ngModelChange_30_listener() { return ctx.onCheckboxStateChange(); });
607
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
608
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](31, PriceRealtimeComponent_ng_container_31_Template, 5, 0, "ng-container", 19);
609
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
610
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](32, PriceRealtimeComponent_tbody_32_Template, 2, 1, "tbody", 19);
611
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
612
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](33, "div", 20)(34, "div", 21)(35, "div", 22)(36, "div", 23)(37, "h5", 24);
613
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](38, "Update Price from POS to Channel");
614
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
615
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](39, "button", 25)(40, "span", 26);
616
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](41, "\u00D7");
617
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
618
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](42, "div", 27)(43, "div")(44, "h6", 28);
619
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](45);
620
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](46, "br")(47, "br");
621
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](48, " Choose channels to update : ");
622
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](49, "br")(50, "br");
623
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
624
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](51, "ul", 29);
625
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](52, PriceRealtimeComponent_li_52_Template, 5, 2, "li", 19);
626
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
627
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](53, "div", 30)(54, "button", 31);
628
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](55, "Close");
629
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
630
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](56, "button", 32);
631
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function PriceRealtimeComponent_Template_button_click_56_listener() { return ctx.UpdatePrice(); });
632
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](57, "Update");
633
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()()()();
634
+ } if (rf & 2) {
635
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("Title", "Price Comparison")("pageData", ctx.pageData)("hideSearchBox", false)("hideSearchDropdown", false)("textButton", "Search");
636
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
637
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("model", ctx.filterModel)("options", ctx.Options)("border", false);
638
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
639
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("hidden", !ctx.hasSelection());
640
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](12);
641
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.Channel);
642
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](8);
643
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("hidden", ctx.filter.HiddenIPOSInventory);
644
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
645
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx.checkboxState);
646
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
647
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.Channel);
648
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
649
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.data);
650
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](13);
651
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"]("Updating ", ctx.getSelected().length, " items ");
652
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7);
653
+ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.Channel);
654
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__.MainPanelComponent, _sharing_module_radio_options_radio_options__WEBPACK_IMPORTED_MODULE_3__.RadioOptionsComponent, _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_10__.MatCheckbox, _angular_common__WEBPACK_IMPORTED_MODULE_8__.DecimalPipe], styles: [".w-10[_ngcontent-%COMP%] {\n width: 10%;\n}\n\n.w-20[_ngcontent-%COMP%] {\n width: 20%;\n}\n\n.w-img[_ngcontent-%COMP%] {\n width: 40px;\n height: 40px;\n}\n\n.item-name[_ngcontent-%COMP%] {\n font-weight: normal;\n font-size: larger;\n}\n\n.cell-hover[_ngcontent-%COMP%]:hover {\n background-color: #c9c9c9 !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByaWNlLXJlYWx0aW1lLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksVUFBQTtBQUNKOztBQUVBO0VBQ0ksVUFBQTtBQUNKOztBQUVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7QUFDSjs7QUFFQTtFQUNJLG1CQUFBO0VBQ0EsaUJBQUE7QUFDSjs7QUFFQTtFQUNJLG9DQUFBO0FBQ0oiLCJmaWxlIjoicHJpY2UtcmVhbHRpbWUuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIudy0xMCB7XHJcbiAgICB3aWR0aDoxMCU7XHJcbn1cclxuXHJcbi53LTIwIHtcclxuICAgIHdpZHRoOjIwJTtcclxufVxyXG5cclxuLnctaW1nIHtcclxuICAgIHdpZHRoOjQwcHg7XHJcbiAgICBoZWlnaHQ6NDBweDtcclxufVxyXG5cclxuLml0ZW0tbmFtZSB7XHJcbiAgICBmb250LXdlaWdodDogbm9ybWFsO1xyXG4gICAgZm9udC1zaXplOiBsYXJnZXI7XHJcbn1cclxuXHJcbi5jZWxsLWhvdmVyOmhvdmVyIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNjOWM5YzkhaW1wb3J0YW50O1xyXG59XHJcbiJdfQ== */"] });
655
+
656
+
657
+ /***/ }),
658
+
659
+ /***/ 3658:
660
+ /*!****************************************************!*\
661
+ !*** ./src/app/menu/price/price-routing.module.ts ***!
662
+ \****************************************************/
663
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
664
+
665
+ __webpack_require__.r(__webpack_exports__);
666
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
667
+ /* harmony export */ "PriceRoutingModule": () => (/* binding */ PriceRoutingModule)
668
+ /* harmony export */ });
669
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 4666);
670
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ 124);
671
+ /* harmony import */ var _price_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./price.component */ 8286);
672
+ /* harmony import */ var _price_pos_price_pos_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./price-pos/price-pos.component */ 3109);
673
+ /* harmony import */ var _price_realtime_price_realtime_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./price-realtime/price-realtime.component */ 1740);
674
+ /* harmony import */ var _price_single_channel_price_single_channel_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./price-single-channel/price-single-channel.component */ 8863);
675
+ /* harmony import */ var src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.guard */ 8063);
676
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560);
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+ const routes = [
687
+ {
688
+ path: "",
689
+ component: _price_component__WEBPACK_IMPORTED_MODULE_0__.PriceComponent,
690
+ children: [
691
+ {
692
+ path: "",
693
+ redirectTo: "SingleChannel",
694
+ pathMatch: "full",
695
+ },
696
+ {
697
+ path: "pos",
698
+ component: _price_pos_price_pos_component__WEBPACK_IMPORTED_MODULE_1__.PricePosComponent,
699
+ canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_4__.AuthGuard],
700
+ data: { title: "Global Price Comparison" },
701
+ },
702
+ {
703
+ path: "OutletPrice",
704
+ component: _price_realtime_price_realtime_component__WEBPACK_IMPORTED_MODULE_2__.PriceRealtimeComponent,
705
+ canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_4__.AuthGuard],
706
+ data: { title: "Outlet Price Comparison" },
707
+ },
708
+ {
709
+ path: "SingleChannel",
710
+ component: _price_single_channel_price_single_channel_component__WEBPACK_IMPORTED_MODULE_3__.PriceSingleChannelComponent,
711
+ canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_4__.AuthGuard],
712
+ data: { title: "Price Single Channel Comparison" },
713
+ },
714
+ ],
715
+ },
716
+ ];
717
+ class PriceRoutingModule {
718
+ }
719
+ PriceRoutingModule.ɵfac = function PriceRoutingModule_Factory(t) { return new (t || PriceRoutingModule)(); };
720
+ PriceRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({ type: PriceRoutingModule });
721
+ PriceRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule,
722
+ _angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterModule.forChild(routes)] });
723
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsetNgModuleScope"](PriceRoutingModule, { imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterModule] }); })();
724
+
725
+
726
+ /***/ }),
727
+
728
+ /***/ 6069:
729
+ /*!**********************************************************************************************************************!*\
730
+ !*** ./src/app/menu/price/price-single-channel/infinite-list-pagination-service/infinite-list-pagination.service.ts ***!
731
+ \**********************************************************************************************************************/
732
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
733
+
734
+ __webpack_require__.r(__webpack_exports__);
735
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
736
+ /* harmony export */ "InfiniteListPaginationService": () => (/* binding */ InfiniteListPaginationService)
737
+ /* harmony export */ });
738
+ /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ 6317);
739
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ 116);
740
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ 3853);
741
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ 635);
742
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ 538);
743
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 4503);
744
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 9337);
745
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs/operators */ 9196);
746
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 2560);
747
+ /* harmony import */ var src_app_services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/services/http.service */ 6858);
748
+
749
+
750
+
751
+
752
+ class InfiniteListPaginationService {
753
+ constructor(http) {
754
+ this.http = http;
755
+ /** Notify to fetch data with loader*/
756
+ this.pagination$ = new rxjs__WEBPACK_IMPORTED_MODULE_1__.BehaviorSubject(null);
757
+ this.data$ = this.pagination$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_2__.filter)((pagination) => pagination != null), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_3__.concatMap)((pagination) => {
758
+ return this.http.post(`/API/${this.fetchDataEndpoint}`, JSON.stringify(pagination))
759
+ .pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.map)((response) => response.Data));
760
+ }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.withLatestFrom)(this.pagination$), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.scan)((acc, value) => {
761
+ const [previousData, pagination] = acc;
762
+ const [nextData] = value;
763
+ return pagination.PageNumber == 1 ? [nextData, pagination] : [previousData.concat(nextData), pagination];
764
+ }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.tap)(([products, pagination]) => {
765
+ this.setPageNumberFooter(pagination);
766
+ this.setPaginationButtonState(pagination, (products).length);
767
+ }), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.map)(([product]) => product), (0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.shareReplay)());
768
+ }
769
+ onNextPage(pagination) {
770
+ pagination.PageNumber += 1;
771
+ this.pagination$.next(pagination);
772
+ }
773
+ setPageNumberFooter(pagination) {
774
+ this.footerPageNumber = pagination.PageNumber;
775
+ }
776
+ setPaginationButtonState(pagination, dataLength) {
777
+ if (dataLength == 0) {
778
+ this.disableNextButton = true;
779
+ }
780
+ else {
781
+ this.disableNextButton = dataLength < pagination.RowCount * pagination.PageNumber ? false : true;
782
+ }
783
+ }
784
+ resetToFirstPage(pagination) {
785
+ pagination.PageNumber = 1;
786
+ this.pagination$.next(pagination);
787
+ this.hideCount = true;
788
+ this.goToLastPage = false;
789
+ }
790
+ getAllData(pagination, totalDataLength) {
791
+ pagination.RowCount = totalDataLength;
792
+ this.pagination$.next(pagination);
793
+ this.goToLastPage = true;
794
+ }
795
+ }
796
+ InfiniteListPaginationService.ɵfac = function InfiniteListPaginationService_Factory(t) { return new (t || InfiniteListPaginationService)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵinject"](src_app_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService)); };
797
+ InfiniteListPaginationService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineInjectable"]({ token: InfiniteListPaginationService, factory: InfiniteListPaginationService.ɵfac, providedIn: 'root' });
798
+
799
+
800
+ /***/ }),
801
+
802
+ /***/ 8863:
803
+ /*!***********************************************************************************!*\
804
+ !*** ./src/app/menu/price/price-single-channel/price-single-channel.component.ts ***!
805
+ \***********************************************************************************/
806
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
807
+
808
+ __webpack_require__.r(__webpack_exports__);
809
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
810
+ /* harmony export */ "PriceSingleChannelComponent": () => (/* binding */ PriceSingleChannelComponent)
811
+ /* harmony export */ });
812
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ 9337);
813
+ /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs/operators */ 116);
814
+ /* harmony import */ var _products_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../products/scan-dialog/scan-dialog.component */ 5241);
815
+ /* harmony import */ var _table_table_dialog_table_dialog_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../table/table-dialog/table-dialog.component */ 1576);
816
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560);
817
+ /* harmony import */ var src_app_services_http_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/http.service */ 6858);
818
+ /* harmony import */ var _infinite_list_pagination_service_infinite_list_pagination_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./infinite-list-pagination-service/infinite-list-pagination.service */ 6069);
819
+ /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ 4817);
820
+ /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
821
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 4666);
822
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 2508);
823
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
824
+ /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
825
+ /* harmony import */ var _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/slide-toggle */ 4714);
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+
836
+
837
+
838
+
839
+
840
+ function PriceSingleChannelComponent_mainpanel_0_actions_7_Template(rf, ctx) {
841
+ if (rf & 1) {
842
+ const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
843
+
844
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "actions")(1, "div", 5)(2, "div")(3, "button", 6);
845
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_actions_7_Template_button_click_3_listener() {
846
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r7);
847
+ const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
848
+ const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
849
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r5.openScanDialog(loader_r1.Filter, loader_r1));
850
+ });
851
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](4, "i", 7);
852
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, " Channel ");
853
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
854
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "button", 8);
855
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_actions_7_Template_button_click_6_listener() {
856
+ const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r7);
857
+ const data_r4 = restoredCtx.ngIf;
858
+ const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
859
+ const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
860
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r8.updateStock(data_r4, loader_r1.Filter));
861
+ });
862
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](7, "i", 9);
863
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](8, " Update ");
864
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
865
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](9, "div")(10, "div");
866
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
867
+ }
868
+ }
869
+
870
+ function PriceSingleChannelComponent_mainpanel_0_content_9_ng_option_22_Template(rf, ctx) {
871
+ if (rf & 1) {
872
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "ng-option", 30);
873
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "img", 31);
874
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
875
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
876
+ }
877
+
878
+ if (rf & 2) {
879
+ const c_r17 = ctx.$implicit;
880
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("value", c_r17.ID);
881
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
882
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpropertyInterpolate"]("src", c_r17.Img, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
883
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
884
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](c_r17.Name);
885
+ }
886
+ }
887
+
888
+ function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_input_3_Template(rf, ctx) {
889
+ if (rf & 1) {
890
+ const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
891
+
892
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "input", 41);
893
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_input_3_Template_input_ngModelChange_0_listener($event) {
894
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r31);
895
+ const row_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3).$implicit;
896
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](row_r18.selected = $event);
897
+ })("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_input_3_Template_input_ngModelChange_0_listener() {
898
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r31);
899
+ const row_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3).$implicit;
900
+ const data_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
901
+ const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
902
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r32.onCheckboxStateProduct(data_r10, row_r18.ID));
903
+ });
904
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
905
+ }
906
+
907
+ if (rf & 2) {
908
+ const row_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3).$implicit;
909
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngModel", row_r18.selected);
910
+ }
911
+ }
912
+
913
+ function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_img_4_Template(rf, ctx) {
914
+ if (rf & 1) {
915
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "img", 42);
916
+ }
917
+
918
+ if (rf & 2) {
919
+ const row_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](3).$implicit;
920
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpropertyInterpolate"]("src", row_r18.ThumbnailUrl, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
921
+ }
922
+ }
923
+
924
+ function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_ng_template_5_Template(rf, ctx) {
925
+ if (rf & 1) {
926
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "img", 43);
927
+ }
928
+ }
929
+
930
+ function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_Template(rf, ctx) {
931
+ if (rf & 1) {
932
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
933
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "td", 35)(2, "div", 36);
934
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_input_3_Template, 1, 1, "input", 37);
935
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_img_4_Template, 1, 1, "img", 38);
936
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_ng_template_5_Template, 1, 0, "ng-template", null, 39, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplateRefExtractor"]);
937
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
938
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](7, "td", 35)(8, "span", 40);
939
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9);
940
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
941
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](10, "br");
942
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](11, "small");
943
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](12);
944
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
945
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
946
+ }
947
+
948
+ if (rf & 2) {
949
+ const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](6);
950
+
951
+ const v_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
952
+ const row_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
953
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
954
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("rowSpan", row_r18.Variants.length);
955
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
956
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", v_r20.Inventory >= 0 || row_r18.Variants.length > 1);
957
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
958
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", row_r18.ThumbnailUrl)("ngIfElse", _r27);
959
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
960
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("rowSpan", row_r18.Variants.length);
961
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
962
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](row_r18.Name);
963
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
964
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("(", row_r18.Category, ")");
965
+ }
966
+ }
967
+
968
+ function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_input_7_Template(rf, ctx) {
969
+ if (rf & 1) {
970
+ const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
971
+
972
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "input", 44);
973
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_input_7_Template_input_ngModelChange_0_listener($event) {
974
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r41);
975
+ const v_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
976
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](v_r20.selected = $event);
977
+ });
978
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
979
+ }
980
+
981
+ if (rf & 2) {
982
+ const v_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
983
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngModel", v_r20.selected);
984
+ }
985
+ }
986
+
987
+ const _c0 = function (a0) {
988
+ return {
989
+ "bg-err": a0
990
+ };
991
+ };
992
+
993
+ function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_td_11_Template(rf, ctx) {
994
+ if (rf & 1) {
995
+ const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
996
+
997
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "td", 45)(1, "div", 46)(2, "div", 47);
998
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_td_11_Template_div_click_2_listener() {
999
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r45);
1000
+ const v_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
1001
+ const row_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
1002
+ const data_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
1003
+ const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
1004
+ const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
1005
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r43.openTableDialog(row_r18.Name, v_r20, v_r20 == null ? null : v_r20.Channel[0].ChannelID, v_r20.Channel[0].ChannelItemID, data_r10, loader_r1));
1006
+ });
1007
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
1008
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](4, "number");
1009
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1010
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "div", 48)(6, "a", 49);
1011
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](7, "i", 50);
1012
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
1013
+ }
1014
+
1015
+ if (rf & 2) {
1016
+ const v_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
1017
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction1"](5, _c0, v_r20.UnitPrice != v_r20.Channel[0].Price));
1018
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
1019
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](4, 3, v_r20.Channel[0].Price), " ");
1020
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
1021
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("href", v_r20.Channel[0].Url, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
1022
+ }
1023
+ }
1024
+
1025
+ function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_Template(rf, ctx) {
1026
+ if (rf & 1) {
1027
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tr");
1028
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_Template, 13, 7, "ng-container", 4);
1029
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](2, "td", 17);
1030
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](3);
1031
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1032
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](4, "td", 18);
1033
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5);
1034
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1035
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "td", 32);
1036
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_input_7_Template, 1, 1, "input", 33);
1037
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1038
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "td", 18);
1039
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9);
1040
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](10, "number");
1041
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1042
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](11, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_td_11_Template, 8, 7, "td", 34);
1043
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1044
+ }
1045
+
1046
+ if (rf & 2) {
1047
+ const v_r20 = ctx.$implicit;
1048
+ const i_r21 = ctx.index;
1049
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
1050
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", i_r21 == 0);
1051
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
1052
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](v_r20.Model);
1053
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
1054
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", v_r20.Code, " ");
1055
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
1056
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", v_r20.Inventory >= 0);
1057
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
1058
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](10, 6, v_r20.UnitPrice), " ");
1059
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
1060
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", v_r20.Channel.length > 0);
1061
+ }
1062
+ }
1063
+
1064
+ function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_Template(rf, ctx) {
1065
+ if (rf & 1) {
1066
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
1067
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](1, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_Template, 12, 8, "tr", 22);
1068
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
1069
+ }
1070
+
1071
+ if (rf & 2) {
1072
+ const row_r18 = ctx.$implicit;
1073
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
1074
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", row_r18.Variants);
1075
+ }
1076
+ }
1077
+
1078
+ function PriceSingleChannelComponent_mainpanel_0_content_9_span_31_Template(rf, ctx) {
1079
+ if (rf & 1) {
1080
+ const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
1081
+
1082
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 51);
1083
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_content_9_span_31_Template_span_click_0_listener() {
1084
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r52);
1085
+ const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).ngIf;
1086
+ const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
1087
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r50.getAllDataCount(loader_r1.Filter));
1088
+ });
1089
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "i", 52);
1090
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, "?");
1091
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
1092
+ }
1093
+ }
1094
+
1095
+ function PriceSingleChannelComponent_mainpanel_0_content_9_span_32_Template(rf, ctx) {
1096
+ if (rf & 1) {
1097
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span");
1098
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
1099
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](2, "number");
1100
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1101
+ }
1102
+
1103
+ if (rf & 2) {
1104
+ const allDataCount_r53 = ctx.ngIf;
1105
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
1106
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](2, 1, allDataCount_r53.Total));
1107
+ }
1108
+ }
1109
+
1110
+ function PriceSingleChannelComponent_mainpanel_0_content_9_a_36_Template(rf, ctx) {
1111
+ if (rf & 1) {
1112
+ const _r56 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
1113
+
1114
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "a", 53);
1115
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_content_9_a_36_Template_a_click_0_listener() {
1116
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r56);
1117
+ const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).ngIf;
1118
+ const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
1119
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r54.nextPage(loader_r1.Filter));
1120
+ });
1121
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 54);
1122
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Next");
1123
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1124
+ }
1125
+ }
1126
+
1127
+ function PriceSingleChannelComponent_mainpanel_0_content_9_a_37_Template(rf, ctx) {
1128
+ if (rf & 1) {
1129
+ const _r59 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
1130
+
1131
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "a", 55);
1132
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_content_9_a_37_Template_a_click_0_listener() {
1133
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r59);
1134
+ const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2).ngIf;
1135
+ const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
1136
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r57.getAllData(loader_r1.Filter));
1137
+ });
1138
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "i", 56);
1139
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2, " Last");
1140
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1141
+ }
1142
+ }
1143
+
1144
+ function PriceSingleChannelComponent_mainpanel_0_content_9_Template(rf, ctx) {
1145
+ if (rf & 1) {
1146
+ const _r61 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
1147
+
1148
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "content")(1, "div", 10)(2, "div", 11)(3, "table", 12)(4, "thead", 13)(5, "tr")(6, "th", 14);
1149
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7, " Product ");
1150
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "div")(9, "mat-slide-toggle", 15);
1151
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_content_9_Template_mat_slide_toggle_ngModelChange_9_listener($event) {
1152
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r61);
1153
+ const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
1154
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r60.toggleDifferentInventory = $event);
1155
+ })("toggleChange", function PriceSingleChannelComponent_mainpanel_0_content_9_Template_mat_slide_toggle_toggleChange_9_listener() {
1156
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r61);
1157
+ const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
1158
+ const ctx_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
1159
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r62.onToggleDifferentInventory(loader_r1));
1160
+ });
1161
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "small", 16);
1162
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11, "Filter Different Inventory");
1163
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
1164
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "th", 17);
1165
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "Variant");
1166
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1167
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "th", 18);
1168
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](15, "SKU");
1169
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1170
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "th")(17, "input", 19);
1171
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("change", function PriceSingleChannelComponent_mainpanel_0_content_9_Template_input_change_17_listener($event) {
1172
+ const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r61);
1173
+ const data_r10 = restoredCtx.ngIf;
1174
+ const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](2);
1175
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r64.onSelectAllSKU($event.target.checked, data_r10));
1176
+ });
1177
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
1178
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](18, "th", 18);
1179
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](19, "POS");
1180
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1181
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](20, "th")(21, "ng-select", 20);
1182
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_content_9_Template_ng_select_ngModelChange_21_listener($event) {
1183
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r61);
1184
+ const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
1185
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](loader_r1.Filter.ID = $event);
1186
+ })("change", function PriceSingleChannelComponent_mainpanel_0_content_9_Template_ng_select_change_21_listener() {
1187
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r61);
1188
+ const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
1189
+ const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
1190
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r67.search(loader_r1.Filter));
1191
+ });
1192
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](22, PriceSingleChannelComponent_mainpanel_0_content_9_ng_option_22_Template, 3, 3, "ng-option", 21);
1193
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
1194
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](23, "th");
1195
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
1196
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](24, "tbody");
1197
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](25, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_Template, 2, 1, "ng-container", 22);
1198
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
1199
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](26, "div", 23)(27, "div", 24)(28, "div", 25);
1200
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](29);
1201
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](30, "number");
1202
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](31, PriceSingleChannelComponent_mainpanel_0_content_9_span_31_Template, 3, 0, "span", 26);
1203
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](32, PriceSingleChannelComponent_mainpanel_0_content_9_span_32_Template, 3, 3, "span", 4);
1204
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](33, "async");
1205
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](34);
1206
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
1207
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](35, "div", 27);
1208
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](36, PriceSingleChannelComponent_mainpanel_0_content_9_a_36_Template, 3, 0, "a", 28);
1209
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](37, PriceSingleChannelComponent_mainpanel_0_content_9_a_37_Template, 3, 0, "a", 29);
1210
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()();
1211
+ }
1212
+
1213
+ if (rf & 2) {
1214
+ const data_r10 = ctx.ngIf;
1215
+ const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().ngIf;
1216
+ const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
1217
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](9);
1218
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngModel", ctx_r3.toggleDifferentInventory);
1219
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](12);
1220
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("clearable", false)("ngModel", loader_r1.Filter.ID);
1221
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
1222
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", loader_r1.Options.Channel);
1223
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
1224
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", data_r10);
1225
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
1226
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" Showing 1 - ", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](30, 11, data_r10 == null ? null : data_r10.length), " of ");
1227
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
1228
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.infP.hideCount);
1229
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
1230
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](33, 13, !ctx_r3.infP.hideCount && ctx_r3.allDataCount$));
1231
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
1232
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" records ~ ", ctx_r3.infP.footerPageNumber, " Page ");
1233
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
1234
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.infP.disableNextButton && !ctx_r3.infP.goToLastPage);
1235
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
1236
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", ctx_r3.infP.disableNextButton && !ctx_r3.infP.goToLastPage);
1237
+ }
1238
+ }
1239
+
1240
+ function PriceSingleChannelComponent_mainpanel_0_Template(rf, ctx) {
1241
+ if (rf & 1) {
1242
+ const _r71 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
1243
+
1244
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "mainpanel", 1);
1245
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("textChange", function PriceSingleChannelComponent_mainpanel_0_Template_mainpanel_textChange_0_listener($event) {
1246
+ const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r71);
1247
+ const loader_r1 = restoredCtx.ngIf;
1248
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](loader_r1.Filter.text = $event);
1249
+ })("onSubmit", function PriceSingleChannelComponent_mainpanel_0_Template_mainpanel_onSubmit_0_listener() {
1250
+ const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r71);
1251
+ const loader_r1 = restoredCtx.ngIf;
1252
+ const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
1253
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r72.search(loader_r1.Filter));
1254
+ });
1255
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "filters")(2, "div", 2)(3, "div")(4, "label");
1256
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](5, "Page Size");
1257
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1258
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "input", 3);
1259
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_Template_input_ngModelChange_6_listener($event) {
1260
+ const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r71);
1261
+ const loader_r1 = restoredCtx.ngIf;
1262
+ return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](loader_r1.Filter.RowCount = $event);
1263
+ });
1264
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
1265
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](7, PriceSingleChannelComponent_mainpanel_0_actions_7_Template, 11, 0, "actions", 4);
1266
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](8, "async");
1267
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](9, PriceSingleChannelComponent_mainpanel_0_content_9_Template, 38, 15, "content", 4);
1268
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](10, "async");
1269
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
1270
+ }
1271
+
1272
+ if (rf & 2) {
1273
+ const loader_r1 = ctx.ngIf;
1274
+ const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
1275
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("Title", ctx_r0.pageTitle)("text", loader_r1.Filter.text);
1276
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](6);
1277
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngModel", loader_r1.Filter.RowCount);
1278
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
1279
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](8, 5, ctx_r0.infP.data$));
1280
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
1281
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](10, 7, ctx_r0.infP.data$));
1282
+ }
1283
+ }
1284
+
1285
+ class PriceSingleChannelComponent {
1286
+ constructor(http, infPagination, toastr, dialog) {
1287
+ this.http = http;
1288
+ this.infPagination = infPagination;
1289
+ this.toastr = toastr;
1290
+ this.dialog = dialog;
1291
+ this.pageTitle = 'Price Single Channel Comparison';
1292
+ this.toggleDifferentInventory = false;
1293
+ this.loaderEndpoint = 'PriceLoader/Load';
1294
+ this.dataEndpoint = 'Price/GetSingleChannelComparison';
1295
+ this.allDataCountEndpoint = 'Inventory/GetInventoryByChannelRowCount';
1296
+ }
1297
+
1298
+ get infP() {
1299
+ return this.infPagination;
1300
+ }
1301
+
1302
+ ngOnInit() {
1303
+ this.infP.fetchDataEndpoint = this.dataEndpoint;
1304
+ this.loader$ = this.http.post(`/API/${this.loaderEndpoint}`).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.tap)(loaderResponse => {
1305
+ this.infP.resetToFirstPage(loaderResponse.Filter);
1306
+ }));
1307
+ }
1308
+
1309
+ onToggleDifferentInventory(loader) {
1310
+ if (!this.toggleDifferentInventory) {
1311
+ loader.Filter.filterModel = 3;
1312
+ } else {
1313
+ loader.Filter.filterModel = 1;
1314
+ }
1315
+
1316
+ this.search(loader.Filter);
1317
+ }
1318
+
1319
+ onCheckboxStateProduct(data, id) {
1320
+ let selectedProduct = data.filter(x => x.ID == id);
1321
+
1322
+ if (selectedProduct.length > 0) {
1323
+ selectedProduct[0].Variants.forEach(v => v.selected = selectedProduct[0].selected);
1324
+ }
1325
+ }
1326
+
1327
+ openScanDialog(filterVal, loader) {
1328
+ this.dialog.open(_products_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ScanDialogComponent, {
1329
+ data: {
1330
+ filter: filterVal,
1331
+ Channel: loader.Options.Channel
1332
+ },
1333
+ width: '30%'
1334
+ }).afterClosed().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.filter)(val => val)).subscribe(result => {
1335
+ this.refreshChannel(loader);
1336
+ });
1337
+ }
1338
+
1339
+ refreshChannel(loader) {
1340
+ let params = {
1341
+ ID: loader.Filter.ID,
1342
+ ScanFull: loader.Filter.ScanFull
1343
+ };
1344
+ console.log(loader, params);
1345
+ this.http.post('/api/product/ScanOptimized', params).subscribe(() => {
1346
+ this.search(loader.Filter);
1347
+ this.toastr.success("Successfully scanned from " + this.getChannelName(loader.Options.Channel, params.ID), "Success");
1348
+ });
1349
+ }
1350
+
1351
+ getChannelName(channels, ID) {
1352
+ let channel = channels.find(x => x.ID == ID);
1353
+ return channel.Name;
1354
+ }
1355
+
1356
+ updateStock(data, filter) {
1357
+ const selectedList = data;
1358
+ let requestList = [];
1359
+ selectedList.forEach(i => i.Variants.filter(v => v.selected)?.forEach(v => {
1360
+ const obj = {
1361
+ ID: v.ID,
1362
+ ChannelID: v.Channel[0].ChannelID,
1363
+ Code: v.Code,
1364
+ Price: v.UnitPrice
1365
+ };
1366
+ requestList.push(obj);
1367
+ }));
1368
+ let reqPayload = {
1369
+ ListChannelID: [filter.ID],
1370
+ ListPrice: requestList
1371
+ };
1372
+ this.http.post('/api/Price/UpdateChannel', reqPayload).subscribe(() => {
1373
+ this.search(filter);
1374
+ this.toastr.success("Successfully updated " + reqPayload.ListPrice.length + " variants in " + reqPayload.ListChannelID.length + " channels", "Success");
1375
+ });
1376
+ }
1377
+
1378
+ getSelectedProduct(data) {
1379
+ return data.filter(d => d.selected);
1380
+ }
1381
+ /**
1382
+ * Function called in search button
1383
+ * Set pageNumber to the first page
1384
+ * @param filter
1385
+ */
1386
+
1387
+
1388
+ search(filter) {
1389
+ this.infP.resetToFirstPage(filter);
1390
+ }
1391
+
1392
+ getAllDataCount(filter) {
1393
+ this.infP.hideCount = false; //TODO: Error handling to set hideCount back to true
1394
+
1395
+ this.allDataCount$ = this.http.post(`/API/${this.allDataCountEndpoint}`, filter);
1396
+ }
1397
+
1398
+ nextPage(filter) {
1399
+ this.infP.onNextPage(filter);
1400
+ }
1401
+
1402
+ getAllData(filter) {
1403
+ this.http.post(`/API/${this.allDataCountEndpoint}`, filter).subscribe({
1404
+ next: response => {
1405
+ this.infP.getAllData(filter, response.Total);
1406
+ }
1407
+ });
1408
+ }
1409
+
1410
+ openTableDialog(name, item, ID, ChannelItemID, data, loader) {
1411
+ const dialogRef = this.dialog.open(_table_table_dialog_table_dialog_component__WEBPACK_IMPORTED_MODULE_1__.TableDialogComponent, {
1412
+ data: {
1413
+ Name: name,
1414
+ Variant: item,
1415
+ ChannelID: ID,
1416
+ Table: 'price',
1417
+ ChannelItemID: ChannelItemID
1418
+ }
1419
+ });
1420
+ dialogRef.afterClosed().subscribe(result => {
1421
+ if (result != null) {
1422
+ this.updateItemAfterDialog(result, data, loader);
1423
+ }
1424
+ });
1425
+ }
1426
+
1427
+ updateItemAfterDialog(item, data, loader) {
1428
+ let params = {
1429
+ ID: item.ChannelID,
1430
+ ChannelItemID: item.ChannelItemID,
1431
+ ChannelVariantID: item.ChannelVariationID,
1432
+ Price: parseFloat(item.Price),
1433
+ VariantID: item.ID,
1434
+ SKU: item.Sku
1435
+ };
1436
+ this.http.post('/api/Price/UpdatePriceByID', params).subscribe(result => {
1437
+ this.toastr.success("Successfully updated " + item.ItemName + '(' + item.VarName + ") inventory in " + this.getChannelName(loader.Options.Channel, params.ID) + " to " + params.Price, "Success");
1438
+ });
1439
+ }
1440
+
1441
+ onSelectAllSKU(checked, data) {
1442
+ data.forEach(d => d.Variants.forEach(v => v.selected = checked));
1443
+ }
1444
+
1445
+ }
1446
+
1447
+ PriceSingleChannelComponent.ɵfac = function PriceSingleChannelComponent_Factory(t) {
1448
+ return new (t || PriceSingleChannelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](src_app_services_http_service__WEBPACK_IMPORTED_MODULE_2__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_infinite_list_pagination_service_infinite_list_pagination_service__WEBPACK_IMPORTED_MODULE_3__.InfiniteListPaginationService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_9__.MatDialog));
1449
+ };
1450
+
1451
+ PriceSingleChannelComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({
1452
+ type: PriceSingleChannelComponent,
1453
+ selectors: [["app-price-single-channel"]],
1454
+ decls: 2,
1455
+ vars: 3,
1456
+ consts: [[3, "Title", "text", "textChange", "onSubmit", 4, "ngIf"], [3, "Title", "text", "textChange", "onSubmit"], ["container", ""], ["type", "number", 3, "ngModel", "ngModelChange"], [4, "ngIf"], [1, "d-flex"], ["type", "button", "data-cy", "scanInPos", 1, "btn", "btn-outline-secondary", "shadow", "rounded", "me-3", 3, "click"], [1, "fas", "fa-lg", "fa-crosshairs"], [1, "btn", "btn-success", 3, "click"], [1, "fas", "fa-chevron-circle-up"], [1, "container-fluid", "mt-5"], [1, "table-responsive"], [1, "table"], [1, "thead-light", "sticky-top-thead"], ["colspan", "2", 1, "text-center"], ["name", "differentInventory", 3, "ngModel", "ngModelChange", "toggleChange"], [1, "font-weight-bold"], [1, "text-left"], [1, "text-right"], ["type", "checkbox", 1, "me-3", 3, "change"], ["name", "channelOption", 3, "clearable", "ngModel", "ngModelChange", "change"], [3, "value", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], [1, "d-flex", "justify-content-between", "mt-5"], [1, "me-auto", "d-sm-block", "collapse", "mt-3"], [1, "font-weight-bold", "font-italic", "hidden-xxs"], ["style", "cursor:pointer", 3, "click", 4, "ngIf"], [1, "btn-group"], ["role", "button", "class", "btn btn-outline-secondary btn-sm text-primary", "title", "Load more for 20 products", 3, "click", 4, "ngIf"], ["role", "button", "class", "btn btn-outline-secondary btn-sm text-primary", "title", "Load all products", 3, "click", 4, "ngIf"], [3, "value"], [2, "width", "18px", "margin-right", "10px", 3, "src"], [1, "align-middle"], ["type", "checkbox", 3, "ngModel", "ngModelChange", 4, "ngIf"], ["class", "text-center", 3, "ngClass", 4, "ngIf"], [1, "text-center", 3, "rowSpan"], [1, "d-flex", "align-items-center", "justify-content-center"], ["type", "checkbox", "class", "me-3", 3, "ngModel", "ngModelChange", 4, "ngIf"], ["class", "border rounded w-img", 3, "src", 4, "ngIf", "ngIfElse"], ["elsePic", ""], [1, "item-name", "mb-0"], ["type", "checkbox", 1, "me-3", 3, "ngModel", "ngModelChange"], [1, "border", "rounded", "w-img", 3, "src"], ["src", "//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png", 1, "border", "rounded", "w-img"], ["type", "checkbox", 3, "ngModel", "ngModelChange"], [1, "text-center", 3, "ngClass"], [1, "row", "justify-content-end", "me-0"], [1, "col-8", "px-0", "text-center", 2, "cursor", "pointer", 3, "click"], [1, "col-2", "ps-0", "text-left", "align-self-center"], ["target", "_blank", 3, "href"], [1, "fas", "fa-lg", "fa-external-link-alt"], [2, "cursor", "pointer", 3, "click"], ["title", "Retreive rows count", 1, "border", "p-3"], ["role", "button", "title", "Load more for 20 products", 1, "btn", "btn-outline-secondary", "btn-sm", "text-primary", 3, "click"], [1, "fas", "fa-arrow-right"], ["role", "button", "title", "Load all products", 1, "btn", "btn-outline-secondary", "btn-sm", "text-primary", 3, "click"], [1, "fas", "fa-share"]],
1457
+ template: function PriceSingleChannelComponent_Template(rf, ctx) {
1458
+ if (rf & 1) {
1459
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](0, PriceSingleChannelComponent_mainpanel_0_Template, 11, 9, "mainpanel", 0);
1460
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipe"](1, "async");
1461
+ }
1462
+
1463
+ if (rf & 2) {
1464
+ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpipeBind1"](1, 1, ctx.loader$));
1465
+ }
1466
+ },
1467
+ dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__.MainPanelComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__.NgSelectComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__.NgOptionComponent, _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_13__.MatSlideToggle, _angular_common__WEBPACK_IMPORTED_MODULE_10__.AsyncPipe, _angular_common__WEBPACK_IMPORTED_MODULE_10__.DecimalPipe],
1468
+ styles: [".w-img[_ngcontent-%COMP%] {\n width: 40px;\n height: 40px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByaWNlLXNpbmdsZS1jaGFubmVsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7QUFDSiIsImZpbGUiOiJwcmljZS1zaW5nbGUtY2hhbm5lbC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi53LWltZyB7XHJcbiAgICB3aWR0aDo0MHB4O1xyXG4gICAgaGVpZ2h0OjQwcHg7XHJcbn0iXX0= */"]
1469
+ });
1470
+
1471
+ /***/ }),
1472
+
1473
+ /***/ 8286:
1474
+ /*!***********************************************!*\
1475
+ !*** ./src/app/menu/price/price.component.ts ***!
1476
+ \***********************************************/
1477
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1478
+
1479
+ __webpack_require__.r(__webpack_exports__);
1480
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1481
+ /* harmony export */ "PriceComponent": () => (/* binding */ PriceComponent)
1482
+ /* harmony export */ });
1483
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
1484
+ /* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
1485
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
1486
+
1487
+
1488
+
1489
+ class PriceComponent {
1490
+ constructor() {
1491
+ this.priceTabs = [
1492
+ { Title: 'Price Single Channel', Url: '/menu/price/SingleChannel' },
1493
+ { Title: 'POS vs Channel Price', Url: '/menu/price/pos' },
1494
+ { Title: 'Custom Channel Price', Url: '/menu/price/OutletPrice' }
1495
+ ];
1496
+ }
1497
+ ngOnInit() {
1498
+ }
1499
+ }
1500
+ PriceComponent.ɵfac = function PriceComponent_Factory(t) { return new (t || PriceComponent)(); };
1501
+ PriceComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: PriceComponent, selectors: [["app-price"]], decls: 5, vars: 1, consts: [[1, "navbar", "page-nav", "navbar-default", "py-0", "navbar-expand-lg"], [1, "container-fluid"], [3, "Tabs"]], template: function PriceComponent_Template(rf, ctx) { if (rf & 1) {
1502
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "nav", 0)(1, "div", 1)(2, "div");
1503
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "nav-tab", 2);
1504
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
1505
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "router-outlet");
1506
+ } if (rf & 2) {
1507
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
1508
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("Tabs", ctx.priceTabs);
1509
+ } }, dependencies: [_nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__.NavTabComponent, _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterOutlet], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJwcmljZS5jb21wb25lbnQuc2NzcyJ9 */"] });
1510
+
1511
+
1512
+ /***/ }),
1513
+
1514
+ /***/ 823:
1515
+ /*!********************************************!*\
1516
+ !*** ./src/app/menu/price/price.module.ts ***!
1517
+ \********************************************/
1518
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1519
+
1520
+ __webpack_require__.r(__webpack_exports__);
1521
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1522
+ /* harmony export */ "PriceModule": () => (/* binding */ PriceModule)
1523
+ /* harmony export */ });
1524
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 4666);
1525
+ /* harmony import */ var _price_pos_price_pos_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./price-pos/price-pos.component */ 3109);
1526
+ /* harmony import */ var _price_realtime_price_realtime_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./price-realtime/price-realtime.component */ 1740);
1527
+ /* harmony import */ var _price_single_channel_price_single_channel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./price-single-channel/price-single-channel.component */ 8863);
1528
+ /* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
1529
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../main-panel/main-panel.component */ 7481);
1530
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/router */ 124);
1531
+ /* harmony import */ var _price_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./price.component */ 8286);
1532
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 2508);
1533
+ /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
1534
+ /* harmony import */ var _price_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./price-routing.module */ 3658);
1535
+ /* harmony import */ var _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/slide-toggle */ 4714);
1536
+ /* harmony import */ var src_app_sharing_module_radio_options_radio_options__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/sharing-module/radio-options/radio-options */ 4452);
1537
+ /* harmony import */ var _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/checkbox */ 4792);
1538
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 2560);
1539
+
1540
+
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+ class PriceModule {
1555
+ }
1556
+ PriceModule.ɵfac = function PriceModule_Factory(t) { return new (t || PriceModule)(); };
1557
+ PriceModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineNgModule"]({ type: PriceModule });
1558
+ PriceModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.CommonModule,
1559
+ _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormsModule,
1560
+ _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_3__.NavTabModule,
1561
+ _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__.MainPanelModule,
1562
+ _angular_router__WEBPACK_IMPORTED_MODULE_11__.RouterModule,
1563
+ _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__.NgSelectModule,
1564
+ _price_routing_module__WEBPACK_IMPORTED_MODULE_6__.PriceRoutingModule,
1565
+ _angular_forms__WEBPACK_IMPORTED_MODULE_10__.ReactiveFormsModule,
1566
+ _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_13__.MatSlideToggleModule,
1567
+ src_app_sharing_module_radio_options_radio_options__WEBPACK_IMPORTED_MODULE_7__.RadioOptionsModule,
1568
+ _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_14__.MatCheckboxModule] });
1569
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵsetNgModuleScope"](PriceModule, { declarations: [_price_component__WEBPACK_IMPORTED_MODULE_5__.PriceComponent,
1570
+ _price_pos_price_pos_component__WEBPACK_IMPORTED_MODULE_0__.PricePosComponent,
1571
+ _price_realtime_price_realtime_component__WEBPACK_IMPORTED_MODULE_1__.PriceRealtimeComponent,
1572
+ _price_single_channel_price_single_channel_component__WEBPACK_IMPORTED_MODULE_2__.PriceSingleChannelComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.CommonModule,
1573
+ _angular_forms__WEBPACK_IMPORTED_MODULE_10__.FormsModule,
1574
+ _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_3__.NavTabModule,
1575
+ _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__.MainPanelModule,
1576
+ _angular_router__WEBPACK_IMPORTED_MODULE_11__.RouterModule,
1577
+ _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__.NgSelectModule,
1578
+ _price_routing_module__WEBPACK_IMPORTED_MODULE_6__.PriceRoutingModule,
1579
+ _angular_forms__WEBPACK_IMPORTED_MODULE_10__.ReactiveFormsModule,
1580
+ _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_13__.MatSlideToggleModule,
1581
+ src_app_sharing_module_radio_options_radio_options__WEBPACK_IMPORTED_MODULE_7__.RadioOptionsModule,
1582
+ _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_14__.MatCheckboxModule] }); })();
1583
+
1584
+
1585
+ /***/ }),
1586
+
1587
+ /***/ 4452:
1588
+ /*!***************************************************************!*\
1589
+ !*** ./src/app/sharing-module/radio-options/radio-options.ts ***!
1590
+ \***************************************************************/
1591
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1592
+
1593
+ __webpack_require__.r(__webpack_exports__);
1594
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1595
+ /* harmony export */ "RadioOptionsComponent": () => (/* binding */ RadioOptionsComponent),
1596
+ /* harmony export */ "RadioOptionsModule": () => (/* binding */ RadioOptionsModule)
1597
+ /* harmony export */ });
1598
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 4666);
1599
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560);
1600
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508);
1601
+ /* harmony import */ var _angular_material_radio__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/radio */ 2922);
1602
+
1603
+
1604
+
1605
+
1606
+
1607
+
1608
+
1609
+
1610
+ function RadioOptionsComponent_mat_radio_button_2_Template(rf, ctx) { if (rf & 1) {
1611
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-radio-button", 3);
1612
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
1613
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
1614
+ } if (rf & 2) {
1615
+ const item_r1 = ctx.$implicit;
1616
+ const index_r2 = ctx.index;
1617
+ const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
1618
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r1.Key)("name", ctx_r0.name)("title", ctx_r0.tooltipsText[index_r2] ? ctx_r0.tooltipsText[index_r2] : "");
1619
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
1620
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r1.Value, "");
1621
+ } }
1622
+ const _c0 = function (a0) { return { "border-0": a0 }; };
1623
+ class RadioOptionsComponent {
1624
+ constructor() {
1625
+ this.modelChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
1626
+ this.border = false;
1627
+ this.tooltipsText = [];
1628
+ }
1629
+ change(event) {
1630
+ this.modelChange.emit(event);
1631
+ }
1632
+ }
1633
+ RadioOptionsComponent.ɵfac = function RadioOptionsComponent_Factory(t) { return new (t || RadioOptionsComponent)(); };
1634
+ RadioOptionsComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: RadioOptionsComponent, selectors: [["radio-options"]], inputs: { model: "model", options: "options", border: "border", name: "name", tooltipsText: "tooltipsText" }, outputs: { modelChange: "modelChange" }, decls: 3, vars: 5, consts: [[1, "form-control", "h-100", 3, "ngClass"], [3, "ngModel", "ngModelChange"], ["class", "me-5", "data-toggle", "tooltip", "data-placement", "right", 3, "value", "name", "title", 4, "ngFor", "ngForOf"], ["data-toggle", "tooltip", "data-placement", "right", 1, "me-5", 3, "value", "name", "title"]], template: function RadioOptionsComponent_Template(rf, ctx) { if (rf & 1) {
1635
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "mat-radio-group", 1);
1636
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function RadioOptionsComponent_Template_mat_radio_group_ngModelChange_1_listener($event) { return ctx.change($event); });
1637
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, RadioOptionsComponent_mat_radio_button_2_Template, 2, 4, "mat-radio-button", 2);
1638
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
1639
+ } if (rf & 2) {
1640
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](3, _c0, ctx.border == false));
1641
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
1642
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.model);
1643
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
1644
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.options);
1645
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_1__.NgForOf, _angular_material_radio__WEBPACK_IMPORTED_MODULE_2__.MatRadioGroup, _angular_material_radio__WEBPACK_IMPORTED_MODULE_2__.MatRadioButton, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NgModel], styles: [".mat-radio-label {\n margin-top: auto;\n margin-bottom: auto;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJhZGlvLW9wdGlvbnMuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGdCQUFBO0VBQ0EsbUJBQUE7QUFDSiIsImZpbGUiOiJyYWRpby1vcHRpb25zLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyI6Om5nLWRlZXAgLm1hdC1yYWRpby1sYWJlbCB7XHJcbiAgICBtYXJnaW4tdG9wOiBhdXRvO1xyXG4gICAgbWFyZ2luLWJvdHRvbTogYXV0bztcclxufSJdfQ== */"] });
1646
+ class RadioOptionsModule {
1647
+ }
1648
+ RadioOptionsModule.ɵfac = function RadioOptionsModule_Factory(t) { return new (t || RadioOptionsModule)(); };
1649
+ RadioOptionsModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: RadioOptionsModule });
1650
+ RadioOptionsModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule,
1651
+ _angular_material_radio__WEBPACK_IMPORTED_MODULE_2__.MatRadioModule,
1652
+ _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormsModule] });
1653
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](RadioOptionsModule, { declarations: [RadioOptionsComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule,
1654
+ _angular_material_radio__WEBPACK_IMPORTED_MODULE_2__.MatRadioModule,
1655
+ _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormsModule], exports: [RadioOptionsComponent] }); })();
1656
+
1657
+
1658
+ /***/ }),
1659
+
1660
+ /***/ 538:
1661
+ /*!*************************************************************************!*\
1662
+ !*** ./node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js ***!
1663
+ \*************************************************************************/
1664
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1665
+
1666
+ __webpack_require__.r(__webpack_exports__);
1667
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1668
+ /* harmony export */ "withLatestFrom": () => (/* binding */ withLatestFrom)
1669
+ /* harmony export */ });
1670
+ /* harmony import */ var _util_lift__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/lift */ 1944);
1671
+ /* harmony import */ var _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OperatorSubscriber */ 3945);
1672
+ /* harmony import */ var _observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/innerFrom */ 4987);
1673
+ /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/identity */ 9173);
1674
+ /* harmony import */ var _util_noop__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/noop */ 9635);
1675
+ /* harmony import */ var _util_args__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/args */ 420);
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+ function withLatestFrom(...inputs) {
1683
+ const project = (0,_util_args__WEBPACK_IMPORTED_MODULE_0__.popResultSelector)(inputs);
1684
+ return (0,_util_lift__WEBPACK_IMPORTED_MODULE_1__.operate)((source, subscriber) => {
1685
+ const len = inputs.length;
1686
+ const otherValues = new Array(len);
1687
+ let hasValue = inputs.map(() => false);
1688
+ let ready = false;
1689
+
1690
+ for (let i = 0; i < len; i++) {
1691
+ (0,_observable_innerFrom__WEBPACK_IMPORTED_MODULE_2__.innerFrom)(inputs[i]).subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_3__.createOperatorSubscriber)(subscriber, value => {
1692
+ otherValues[i] = value;
1693
+
1694
+ if (!ready && !hasValue[i]) {
1695
+ hasValue[i] = true;
1696
+ (ready = hasValue.every(_util_identity__WEBPACK_IMPORTED_MODULE_4__.identity)) && (hasValue = null);
1697
+ }
1698
+ }, _util_noop__WEBPACK_IMPORTED_MODULE_5__.noop));
1699
+ }
1700
+
1701
+ source.subscribe((0,_OperatorSubscriber__WEBPACK_IMPORTED_MODULE_3__.createOperatorSubscriber)(subscriber, value => {
1702
+ if (ready) {
1703
+ const values = [value, ...otherValues];
1704
+ subscriber.next(project ? project(...values) : values);
1705
+ }
1706
+ }));
1707
+ });
1708
+ }
1709
+
1710
+ /***/ })
1711
+
1712
+ }]);
1713
+ //# sourceMappingURL=src_app_menu_price_price_module_ts.js.map