marketplacepos 2.4.8 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/Marketplace/162.380fb02c77fa6ec0.js +1 -0
  2. package/Marketplace/174.d9e54ac6a8d68fed.js +1 -0
  3. package/Marketplace/180.bfed0f08b5cdbbde.js +1 -0
  4. package/Marketplace/25.5e00713dbd080b64.js +1 -0
  5. package/Marketplace/32.9c83cc1dfc19e37d.js +1 -0
  6. package/Marketplace/360.4fa1f449dc516500.js +1 -0
  7. package/Marketplace/369.9e98af5ff042d408.js +1 -0
  8. package/Marketplace/397.017f0dd05d9d37c5.js +1 -0
  9. package/Marketplace/3rdpartylicenses.txt +568 -0
  10. package/Marketplace/455.fc7663306b753727.js +1 -0
  11. package/Marketplace/463.7140b32660c473a4.js +1 -0
  12. package/Marketplace/512.96a1a3c8c51a8727.js +1 -0
  13. package/Marketplace/516.f335756d88de781a.js +1 -0
  14. package/Marketplace/585.9e916b668a91cc94.js +1 -0
  15. package/Marketplace/6.fc79ecc0c0a33462.js +1 -0
  16. package/Marketplace/616.fb179a9605c3e98c.js +1 -0
  17. package/Marketplace/716.65e3e9a36c3e8be6.js +1 -0
  18. package/Marketplace/717.ea775a267d795788.js +1 -0
  19. package/Marketplace/739.82b92600f9519019.js +1 -0
  20. package/Marketplace/785.e0040d021febffb1.js +1 -0
  21. package/Marketplace/796.d34bd45b5a924fca.js +1 -0
  22. package/Marketplace/832.6082371d3ebb95a0.js +1 -0
  23. package/Marketplace/874.472e0cd7c75127ca.js +1 -0
  24. package/Marketplace/common.3f5874655db24424.js +1 -0
  25. package/Marketplace/index.html +22 -23
  26. package/Marketplace/main.5d7fbf88ea2e3736.js +1 -0
  27. package/Marketplace/polyfills.8d85b0533e3f867a.js +1 -0
  28. package/Marketplace/runtime.7fbde9d6c7315628.js +1 -0
  29. package/Marketplace/scripts.09af772bfa77d50d.js +1 -0
  30. package/Marketplace/styles.dff58ae3c0783953.css +20 -0
  31. package/package.json +1 -1
  32. package/Marketplace/common.js +0 -238
  33. package/Marketplace/common.js.map +0 -1
  34. package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js +0 -9551
  35. package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js.map +0 -1
  36. package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js +0 -797
  37. package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js.map +0 -1
  38. package/Marketplace/default-node_modules_angular_material_fesm2020_slide-toggle_mjs.js +0 -669
  39. package/Marketplace/default-node_modules_angular_material_fesm2020_slide-toggle_mjs.js.map +0 -1
  40. package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js +0 -4632
  41. package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js.map +0 -1
  42. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js +0 -6841
  43. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js.map +0 -1
  44. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-src_app_services_biggerPicture_service_ts-s-b16afe.js +0 -3316
  45. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-src_app_services_biggerPicture_service_ts-s-b16afe.js.map +0 -1
  46. package/Marketplace/default-src_app_model_enums_FilterType_enum_ts-src_app_sharing-module_table_table_component_ts.js +0 -6219
  47. package/Marketplace/default-src_app_model_enums_FilterType_enum_ts-src_app_sharing-module_table_table_component_ts.js.map +0 -1
  48. package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js +0 -19965
  49. package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js.map +0 -1
  50. package/Marketplace/main.js +0 -622
  51. package/Marketplace/main.js.map +0 -1
  52. package/Marketplace/polyfills.js +0 -3398
  53. package/Marketplace/polyfills.js.map +0 -1
  54. package/Marketplace/runtime.js +0 -346
  55. package/Marketplace/runtime.js.map +0 -1
  56. package/Marketplace/scripts.js +0 -9
  57. package/Marketplace/scripts.js.map +0 -1
  58. package/Marketplace/src_app_login_login_module_ts.js +0 -651
  59. package/Marketplace/src_app_login_login_module_ts.js.map +0 -1
  60. package/Marketplace/src_app_menu_ReportOrder_order_order_module_ts.js +0 -872
  61. package/Marketplace/src_app_menu_ReportOrder_order_order_module_ts.js.map +0 -1
  62. package/Marketplace/src_app_menu_ReportOrder_product-statistic_product-statistic_module_ts.js +0 -422
  63. package/Marketplace/src_app_menu_ReportOrder_product-statistic_product-statistic_module_ts.js.map +0 -1
  64. package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js +0 -283
  65. package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js.map +0 -1
  66. package/Marketplace/src_app_menu_channels_channels_module_ts.js +0 -9605
  67. package/Marketplace/src_app_menu_channels_channels_module_ts.js.map +0 -1
  68. package/Marketplace/src_app_menu_inventory_inventory_module_ts.js +0 -1547
  69. package/Marketplace/src_app_menu_inventory_inventory_module_ts.js.map +0 -1
  70. package/Marketplace/src_app_menu_logistic_logistic_module_ts.js +0 -245
  71. package/Marketplace/src_app_menu_logistic_logistic_module_ts.js.map +0 -1
  72. package/Marketplace/src_app_menu_menu_module_ts.js +0 -40326
  73. package/Marketplace/src_app_menu_menu_module_ts.js.map +0 -1
  74. package/Marketplace/src_app_menu_notification_notification_module_ts.js +0 -285
  75. package/Marketplace/src_app_menu_notification_notification_module_ts.js.map +0 -1
  76. package/Marketplace/src_app_menu_object-log_logs_module_ts.js +0 -1817
  77. package/Marketplace/src_app_menu_object-log_logs_module_ts.js.map +0 -1
  78. package/Marketplace/src_app_menu_orders_orders_module_ts.js +0 -4867
  79. package/Marketplace/src_app_menu_orders_orders_module_ts.js.map +0 -1
  80. package/Marketplace/src_app_menu_price_price_module_ts.js +0 -1885
  81. package/Marketplace/src_app_menu_price_price_module_ts.js.map +0 -1
  82. package/Marketplace/src_app_menu_products_product_module_ts.js +0 -2692
  83. package/Marketplace/src_app_menu_products_product_module_ts.js.map +0 -1
  84. package/Marketplace/styles.css +0 -16565
  85. package/Marketplace/styles.css.map +0 -1
  86. package/Marketplace/vendor.js +0 -71624
  87. package/Marketplace/vendor.js.map +0 -1
@@ -1,1885 +0,0 @@
1
- "use strict";
2
- (self["webpackChunkpos_marketplace"] = self["webpackChunkpos_marketplace"] || []).push([["src_app_menu_price_price_module_ts"],{
3
-
4
- /***/ 4035:
5
- /*!***********************************************************************************!*\
6
- !*** ./src/app/menu/price/custom-channel-price/custom-channel-price.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 */ "CustomChannelPriceComponent": () => (/* binding */ CustomChannelPriceComponent)
13
- /* harmony export */ });
14
- /* harmony import */ var _modals_modal_update_channels_modal_update_channels_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../modals/modal-update-channels/modal-update-channels.component */ 6304);
15
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs/operators */ 116);
16
- /* harmony import */ var src_app_model_Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/model/Constants */ 1889);
17
- /* harmony import */ var src_app_model_enums_FilterType_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/model/enums/FilterType.enum */ 8705);
18
- /* harmony import */ var src_app_sharing_module_table_table_dialog_table_dialog_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/sharing-module/table/table-dialog/table-dialog.component */ 9411);
19
- /* harmony import */ var src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/model/ProductFilter */ 1290);
20
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 2560);
21
- /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
22
- /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-toastr */ 4817);
23
- /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
24
- /* harmony import */ var src_app_services_product_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/services/product.service */ 6082);
25
- /* harmony import */ var src_app_services_biggerPicture_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/services/biggerPicture.service */ 886);
26
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/common */ 4666);
27
- /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/forms */ 2508);
28
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
29
- /* harmony import */ var _sharing_module_radio_options_radio_options__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../sharing-module/radio-options/radio-options */ 4452);
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
- function CustomChannelPriceComponent_button_9_Template(rf, ctx) { if (rf & 1) {
47
- const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
48
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "button", 19);
49
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function CustomChannelPriceComponent_button_9_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r4.onUpdateItems()); });
50
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](1, "i", 20);
51
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, " Update ");
52
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
53
- } }
54
- function CustomChannelPriceComponent_th_19_Template(rf, ctx) { if (rf & 1) {
55
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "th", 21);
56
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1);
57
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
58
- } if (rf & 2) {
59
- const ch_r6 = ctx.$implicit;
60
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1);
61
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](ch_r6.Name);
62
- } }
63
- function CustomChannelPriceComponent_ng_container_29_Template(rf, ctx) { if (rf & 1) {
64
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
65
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "th", 22);
66
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2, " Expected (POS) ");
67
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
68
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](3, "th", 22);
69
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](4, " Channel ");
70
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
71
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
72
- } }
73
- function CustomChannelPriceComponent_tbody_30_tr_1_ng_container_1_img_2_Template(rf, ctx) { if (rf & 1) {
74
- const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
75
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "img", 34);
76
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function CustomChannelPriceComponent_tbody_30_tr_1_ng_container_1_img_2_Template_img_click_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r19); const product_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3).$implicit; const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r17.onZoomImage($event, product_r8 == null ? null : product_r8.ImageUrl)); });
77
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
78
- } if (rf & 2) {
79
- const product_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](3).$implicit;
80
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpropertyInterpolate"]("src", product_r8 == null ? null : product_r8.ImageUrl, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵsanitizeUrl"]);
81
- } }
82
- function CustomChannelPriceComponent_tbody_30_tr_1_ng_container_1_ng_template_3_Template(rf, ctx) { if (rf & 1) {
83
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](0, "img", 35);
84
- } }
85
- const _c0 = function (a0) { return { "border-bottom": a0 }; };
86
- function CustomChannelPriceComponent_tbody_30_tr_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
87
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
88
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "td", 29);
89
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](2, CustomChannelPriceComponent_tbody_30_tr_1_ng_container_1_img_2_Template, 1, 1, "img", 30);
90
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](3, CustomChannelPriceComponent_tbody_30_tr_1_ng_container_1_ng_template_3_Template, 1, 0, "ng-template", null, 31, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplateRefExtractor"]);
91
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
92
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](5, "td", 32)(6, "h5", 33);
93
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](7);
94
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
95
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](8, "br");
96
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](9, "small");
97
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](10);
98
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
99
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
100
- } if (rf & 2) {
101
- const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵreference"](4);
102
- const i_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().index;
103
- const product_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
104
- const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]();
105
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1);
106
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("rowSpan", product_r8 == null ? null : product_r8.Variants.length)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](7, _c0, i_r11 + 1 == ctx_r12.products.length));
107
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1);
108
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", product_r8 == null ? null : product_r8.ImageUrl)("ngIfElse", _r15);
109
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
110
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("rowSpan", product_r8 == null ? null : product_r8.Variants.length);
111
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
112
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](product_r8 == null ? null : product_r8.Name);
113
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
114
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"]("(", product_r8 == null ? null : product_r8.Category, ")");
115
- } }
116
- const _c1 = function (a0) { return { "bg-gradient-warning": a0 }; };
117
- function CustomChannelPriceComponent_tbody_30_tr_1_ng_container_12_ng_container_1_Template(rf, ctx) { if (rf & 1) {
118
- const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
119
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
120
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "td", 38);
121
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](2);
122
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](3, "number");
123
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
124
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "td", 39)(5, "div", 40)(6, "div", 41);
125
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("click", function CustomChannelPriceComponent_tbody_30_tr_1_ng_container_12_ng_container_1_Template_div_click_6_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r30); const obj_r27 = restoredCtx.$implicit; const variant_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2).$implicit; const product_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit; const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](ctx_r28.openTableDialog(variant_r10, product_r8, obj_r27)); });
126
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](7);
127
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipe"](8, "number");
128
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](9, "br");
129
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
130
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](10, "div", 42)(11, "a", 26);
131
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](12, "i", 27);
132
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
133
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
134
- } if (rf & 2) {
135
- const obj_r27 = ctx.$implicit;
136
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
137
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](3, 4, obj_r27.PriceExpected), " ");
138
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
139
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpureFunction1"](8, _c1, obj_r27.Price != obj_r27.PriceExpected));
140
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
141
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵpipeBind1"](8, 6, obj_r27.Price), " ");
142
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](4);
143
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("href", obj_r27.Url, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵsanitizeUrl"]);
144
- } }
145
- function CustomChannelPriceComponent_tbody_30_tr_1_ng_container_12_ng_template_2_Template(rf, ctx) { if (rf & 1) {
146
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "td", 43);
147
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](1, "X");
148
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
149
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](2, "td", 43);
150
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3, "X");
151
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
152
- } }
153
- function CustomChannelPriceComponent_tbody_30_tr_1_ng_container_12_Template(rf, ctx) { if (rf & 1) {
154
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerStart"](0);
155
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, CustomChannelPriceComponent_tbody_30_tr_1_ng_container_12_ng_container_1_Template, 13, 10, "ng-container", 36);
156
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](2, CustomChannelPriceComponent_tbody_30_tr_1_ng_container_12_ng_template_2_Template, 4, 0, "ng-template", null, 37, _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplateRefExtractor"]);
157
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementContainerEnd"]();
158
- } if (rf & 2) {
159
- const ch_r23 = ctx.$implicit;
160
- const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵreference"](3);
161
- const variant_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"]().$implicit;
162
- const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
163
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1);
164
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx_r13.getItemFromChannel(variant_r10, ch_r23.ID))("ngIfElse", _r25);
165
- } }
166
- function CustomChannelPriceComponent_tbody_30_tr_1_Template(rf, ctx) { if (rf & 1) {
167
- const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵgetCurrentView"]();
168
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "tr");
169
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, CustomChannelPriceComponent_tbody_30_tr_1_ng_container_1_Template, 11, 9, "ng-container", 23);
170
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](2, "td", 24);
171
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](3);
172
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
173
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](4, "td", 24)(5, "span");
174
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](6);
175
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
176
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "span", 25)(8, "a", 26);
177
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](9, "i", 27);
178
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()();
179
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](10, "td", 28)(11, "input", 17);
180
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("ngModelChange", function CustomChannelPriceComponent_tbody_30_tr_1_Template_input_ngModelChange_11_listener($event) { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵrestoreView"](_r34); const variant_r10 = restoredCtx.$implicit; return _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵresetView"](variant_r10.selected = $event); });
181
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
182
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](12, CustomChannelPriceComponent_tbody_30_tr_1_ng_container_12_Template, 4, 2, "ng-container", 18);
183
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
184
- } if (rf & 2) {
185
- const variant_r10 = ctx.$implicit;
186
- const i_r11 = ctx.index;
187
- const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵnextContext"](2);
188
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1);
189
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", i_r11 == 0);
190
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
191
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](variant_r10 == null ? null : variant_r10.Model);
192
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
193
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtextInterpolate"](variant_r10 == null ? null : variant_r10.Code);
194
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
195
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("href", "https://" + ctx_r9.hostName + "/menu/Products/Catalog/Variants/Info?ID=" + (variant_r10 == null ? null : variant_r10.ID), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵsanitizeUrl"]);
196
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](2);
197
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("hidden", ctx_r9.searchFilter == null ? null : ctx_r9.searchFilter.HiddenIPOSInventory);
198
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1);
199
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngModel", variant_r10.selected);
200
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1);
201
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx_r9.channelOptions);
202
- } }
203
- function CustomChannelPriceComponent_tbody_30_Template(rf, ctx) { if (rf & 1) {
204
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "tbody");
205
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](1, CustomChannelPriceComponent_tbody_30_tr_1_Template, 13, 7, "tr", 18);
206
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
207
- } if (rf & 2) {
208
- const product_r8 = ctx.$implicit;
209
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1);
210
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", product_r8.Variants);
211
- } }
212
- class CustomChannelPriceComponent {
213
- constructor(http, toastr, dialog, productService, biggerPictureService) {
214
- this.http = http;
215
- this.toastr = toastr;
216
- this.dialog = dialog;
217
- this.productService = productService;
218
- this.biggerPictureService = biggerPictureService;
219
- this.searchFilter = new src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_4__.ProductFilter();
220
- this.products = [];
221
- this.checkboxState = false;
222
- this.initPageLoader();
223
- this.filterTypeOptions = [
224
- { Key: src_app_model_enums_FilterType_enum__WEBPACK_IMPORTED_MODULE_2__.FilterType.ALL, Value: "All" },
225
- { Key: src_app_model_enums_FilterType_enum__WEBPACK_IMPORTED_MODULE_2__.FilterType.DIFFERENCE, Value: "Difference" }
226
- ];
227
- this.filterType = src_app_model_enums_FilterType_enum__WEBPACK_IMPORTED_MODULE_2__.FilterType.ALL;
228
- this.pageData = {
229
- Title: "Price Realtime",
230
- Nav: [
231
- { Title: 'Price Cache', Url: '/menu/price', Active: false }
232
- ]
233
- };
234
- this.hostName = productService.getHostName();
235
- }
236
- initPageLoader() {
237
- this.http.post('/api/PriceLoader/LoadMultiple', {}).subscribe(result => {
238
- this.channelOptions = result.Options.Channel;
239
- this.searchFilter = result.Filter;
240
- this.searchFilter.HiddenIPOSInventory = false;
241
- this.onFilter();
242
- });
243
- }
244
- onSelectAllData() {
245
- this.products = this.products.map(product => {
246
- if (product.Variants) {
247
- product.Variants = product.Variants.map(variant => {
248
- variant['selected'] = this.checkboxState;
249
- return variant;
250
- });
251
- }
252
- return product;
253
- });
254
- }
255
- onFilter(event) {
256
- let params = {
257
- text: event,
258
- filterModel: this.filterType,
259
- PageNumber: this.searchFilter.PageNumber,
260
- RowCount: this.searchFilter.RowCount
261
- };
262
- this.http.post('/api/Price/GetOutletPrice', params).subscribe(result => {
263
- this.products = result.Data;
264
- });
265
- }
266
- updatePrice() {
267
- let listSelected = this.productService.selectedVariantProduct(this.products);
268
- if (listSelected.length > 0) {
269
- let listIds = listSelected.map(val => val.ID);
270
- let channelSelectedIds = this.channelOptions.filter(channel => {
271
- return channel['selected'];
272
- }).map(channel => channel.ID);
273
- let params = {
274
- ListChannelID: channelSelectedIds,
275
- ListID: listIds
276
- };
277
- this.http.post('/api/Price/UpdateChannelOutletPrice', params)
278
- .subscribe({
279
- next: (result) => {
280
- this.resetSelectedChannel();
281
- this.onFilter();
282
- this.toastr.success("Successfully updated " + params.ListID.length + " items in " + params.ListChannelID.length + " channels", "Success");
283
- },
284
- error: (err) => {
285
- this.resetSelectedChannel();
286
- }
287
- });
288
- }
289
- }
290
- resetSelectedChannel() {
291
- this.channelOptions = this.channelOptions.map(channel => {
292
- channel['selected'] = false;
293
- return channel;
294
- });
295
- }
296
- getItemFromChannel(v, ID) {
297
- return v.Channel.find(x => x.ChannelID == ID);
298
- }
299
- onUpdateItems() {
300
- const selectedItems = this.productService.selectedVariantProduct(this.products);
301
- this.dialog.open(_modals_modal_update_channels_modal_update_channels_component__WEBPACK_IMPORTED_MODULE_0__.ModalUpdateChannelsComponent, {
302
- data: {
303
- selectedItems: selectedItems,
304
- channels: this.channelOptions
305
- },
306
- width: '40%'
307
- })
308
- .afterClosed()
309
- .pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.filter)(result => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_1__.Constants.IsNotEmpty(result)))
310
- .subscribe((channels) => {
311
- this.channelOptions = channels;
312
- this.updatePrice();
313
- });
314
- }
315
- openTableDialog(variant, product, channel) {
316
- let dialogVariant = JSON.parse(JSON.stringify(variant));
317
- const dialogRef = this.dialog.open(src_app_sharing_module_table_table_dialog_table_dialog_component__WEBPACK_IMPORTED_MODULE_3__.TableDialogComponent, {
318
- data: {
319
- Name: product.Name,
320
- Variant: dialogVariant,
321
- ChannelID: channel?.ChannelID,
322
- Table: "price",
323
- ChannelItemID: channel?.ChannelItemID,
324
- },
325
- });
326
- dialogRef
327
- .afterClosed()
328
- .pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.filter)((result) => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_1__.Constants.IsNotEmpty(result)))
329
- .subscribe((result) => {
330
- this.updateProductPrice(result, channel);
331
- });
332
- }
333
- /**
334
- *
335
- * @param item
336
- * @param channelItem
337
- */
338
- updateProductPrice(item, channelItem) {
339
- let params = {
340
- ID: item.ChannelID,
341
- ChannelItemID: item.ChannelItemID,
342
- ChannelVariantID: item.ChannelVariationID,
343
- Price: parseFloat(item.Price),
344
- VariantID: item.ID,
345
- SKU: item.Sku,
346
- };
347
- this.http.post("/api/Price/UpdatePriceByID", params).subscribe((result) => {
348
- channelItem.Price = params.Price;
349
- const channel = this.productService.findChannelById(params.ID, this.channelOptions);
350
- this.toastr.success(`Successfully updated ${item.ItemName} (${item.VarName}) inventory in ${channel.Name} to ${params.Price}`, "Success");
351
- });
352
- }
353
- onZoomImage(ev, imageUrl) {
354
- this.biggerPictureService.openBiggerPicture(ev, imageUrl);
355
- }
356
- }
357
- CustomChannelPriceComponent.ɵfac = function CustomChannelPriceComponent_Factory(t) { return new (t || CustomChannelPriceComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_5__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_12__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_13__.MatDialog), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_services_product_service__WEBPACK_IMPORTED_MODULE_6__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdirectiveInject"](src_app_services_biggerPicture_service__WEBPACK_IMPORTED_MODULE_7__.BiggerPictureService)); };
358
- CustomChannelPriceComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineComponent"]({ type: CustomChannelPriceComponent, selectors: [["app-custom-channel-price"]], decls: 31, vars: 13, consts: [["headerTitle", "Price Comparison", 3, "pageData", "hideSearchBox", "hideSearchDropdown", "textButton", "onSubmit"], ["container", ""], ["name", "filterModel", 3, "model", "options", "border", "modelChange"], [1, "d-flex"], ["type", "button", "class", "btn btn-success shadow rounded", "data-toggle", "modal", 3, "click", 4, "ngIf"], [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"], ["type", "button", "data-toggle", "modal", 1, "btn", "btn-success", "shadow", "rounded", 3, "click"], [1, "fas", "fa-chevron-circle-up"], ["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, "ms-2"], ["target", "_blank", 3, "href"], [1, "fas", "fa-lg", "fa-external-link-alt", "external-link-custom"], [1, "align-middle", 3, "hidden"], [1, "text-center", 3, "rowSpan", "ngClass"], ["class", "border rounded w-img cursor-pointer", 3, "src", "click", 4, "ngIf", "ngIfElse"], ["elsePic", ""], [1, "text-center", "border-bottom", 3, "rowSpan"], [1, "mb-0", "item-name"], [1, "border", "rounded", "w-img", "cursor-pointer", 3, "src", "click"], ["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"], [1, "text-end", "border", "pointer", "cell-hover", 3, "ngClass"], [1, "row", "justify-content-end", "me-0"], [1, "col-8", "px-0", "text-center", 3, "click"], [1, "col-2", "ps-0", "text-start", "align-self-center"], [1, "table-white", "border", "text-end", 2, "color", "red"]], template: function CustomChannelPriceComponent_Template(rf, ctx) { if (rf & 1) {
359
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](0, "mainpanel", 0);
360
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("onSubmit", function CustomChannelPriceComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.onFilter($event); });
361
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
362
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](5, "Filter by");
363
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
364
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](6, "radio-options", 2);
365
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("modelChange", function CustomChannelPriceComponent_Template_radio_options_modelChange_6_listener($event) { return ctx.filterType = $event; });
366
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()();
367
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](7, "actions")(8, "div", 3);
368
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](9, CustomChannelPriceComponent_button_9_Template, 3, 0, "button", 4);
369
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
370
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](10, "content")(11, "div", 5)(12, "div", 6)(13, "div", 7)(14, "div", 8)(15, "table", 9)(16, "thead", 10)(17, "tr");
371
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelement"](18, "th", 11);
372
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](19, CustomChannelPriceComponent_th_19_Template, 2, 1, "th", 12);
373
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
374
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](20, "tr")(21, "th", 13);
375
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](22, "Product");
376
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
377
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](23, "th", 14);
378
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](24, "Variant");
379
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
380
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](25, "th", 15);
381
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtext"](26, "SKU");
382
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]();
383
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementStart"](27, "th", 16)(28, "input", 17);
384
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵlistener"]("ngModelChange", function CustomChannelPriceComponent_Template_input_ngModelChange_28_listener($event) { return ctx.checkboxState = $event; })("ngModelChange", function CustomChannelPriceComponent_Template_input_ngModelChange_28_listener() { return ctx.onSelectAllData(); });
385
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
386
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](29, CustomChannelPriceComponent_ng_container_29_Template, 5, 0, "ng-container", 18);
387
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()();
388
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵtemplate"](30, CustomChannelPriceComponent_tbody_30_Template, 2, 1, "tbody", 18);
389
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵelementEnd"]()()()()()()();
390
- } if (rf & 2) {
391
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("pageData", ctx.pageData)("hideSearchBox", false)("hideSearchDropdown", false)("textButton", "Search");
392
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](6);
393
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("model", ctx.filterType)("options", ctx.filterTypeOptions)("border", false);
394
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](3);
395
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngIf", ctx.productService.hasSelectionVariant(ctx.products));
396
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](10);
397
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx.channelOptions);
398
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](8);
399
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("hidden", ctx.searchFilter == null ? null : ctx.searchFilter.HiddenIPOSInventory);
400
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1);
401
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngModel", ctx.checkboxState);
402
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1);
403
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx.channelOptions);
404
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵadvance"](1);
405
- _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵproperty"]("ngForOf", ctx.products);
406
- } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_14__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_14__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_14__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_8__.MainPanelComponent, _sharing_module_radio_options_radio_options__WEBPACK_IMPORTED_MODULE_9__.RadioOptionsComponent, _angular_common__WEBPACK_IMPORTED_MODULE_14__.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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbS1jaGFubmVsLXByaWNlLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksVUFBQTtBQUNKOztBQUVBO0VBQ0ksVUFBQTtBQUNKOztBQUVBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7QUFDSjs7QUFFQTtFQUNJLG1CQUFBO0VBQ0EsaUJBQUE7QUFDSjs7QUFFQTtFQUNJLG9DQUFBO0FBQ0oiLCJmaWxlIjoiY3VzdG9tLWNoYW5uZWwtcHJpY2UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIudy0xMCB7XHJcbiAgICB3aWR0aDoxMCU7XHJcbn1cclxuXHJcbi53LTIwIHtcclxuICAgIHdpZHRoOjIwJTtcclxufVxyXG5cclxuLnctaW1nIHtcclxuICAgIHdpZHRoOjQwcHg7XHJcbiAgICBoZWlnaHQ6NDBweDtcclxufVxyXG5cclxuLml0ZW0tbmFtZSB7XHJcbiAgICBmb250LXdlaWdodDogbm9ybWFsO1xyXG4gICAgZm9udC1zaXplOiBsYXJnZXI7XHJcbn1cclxuXHJcbi5jZWxsLWhvdmVyOmhvdmVyIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNjOWM5YzkhaW1wb3J0YW50O1xyXG59XHJcbiJdfQ== */"] });
407
-
408
-
409
- /***/ }),
410
-
411
- /***/ 8622:
412
- /*!*****************************************************************************!*\
413
- !*** ./src/app/menu/price/price-pos-channel/price-pos-channel.component.ts ***!
414
- \*****************************************************************************/
415
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
416
-
417
- __webpack_require__.r(__webpack_exports__);
418
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
419
- /* harmony export */ "PricePosChannelComponent": () => (/* binding */ PricePosChannelComponent)
420
- /* harmony export */ });
421
- /* harmony import */ var _modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../modals/scan-dialog/scan-dialog.component */ 8231);
422
- /* harmony import */ var _modals_modal_update_channels_modal_update_channels_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../modals/modal-update-channels/modal-update-channels.component */ 6304);
423
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs/operators */ 9337);
424
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs/operators */ 116);
425
- /* harmony import */ var src_app_model_Constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/model/Constants */ 1889);
426
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/core */ 2560);
427
- /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
428
- /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-toastr */ 4817);
429
- /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
430
- /* harmony import */ var src_app_services_infinite_pagination_infinite_pagination_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/infinite-pagination/infinite-pagination.service */ 4660);
431
- /* harmony import */ var src_app_services_product_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/services/product.service */ 6082);
432
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ 4666);
433
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
434
- /* harmony import */ var _sharing_module_table_table_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../sharing-module/table/table.component */ 6114);
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
- function PricePosChannelComponent_mainpanel_0_div_3_button_1_Template(rf, ctx) {
450
- if (rf & 1) {
451
- const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
452
-
453
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "button", 16);
454
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function PricePosChannelComponent_mainpanel_0_div_3_button_1_Template_button_click_0_listener() {
455
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r12);
456
- const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](3);
457
- return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r11.openScanDialog());
458
- });
459
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 17);
460
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, " Scan Channel ");
461
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
462
- }
463
- }
464
-
465
- function PricePosChannelComponent_mainpanel_0_div_3_button_2_Template(rf, ctx) {
466
- if (rf & 1) {
467
- const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
468
-
469
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "button", 18);
470
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function PricePosChannelComponent_mainpanel_0_div_3_button_2_Template_button_click_0_listener() {
471
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r15);
472
- const data_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]().ngIf;
473
- const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
474
- return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r13.onUpdateItems(data_r8));
475
- });
476
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 19);
477
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, " Update ");
478
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
479
- }
480
- }
481
-
482
- function PricePosChannelComponent_mainpanel_0_div_3_Template(rf, ctx) {
483
- if (rf & 1) {
484
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div");
485
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](1, PricePosChannelComponent_mainpanel_0_div_3_button_1_Template, 3, 0, "button", 14);
486
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](2, PricePosChannelComponent_mainpanel_0_div_3_button_2_Template, 3, 0, "button", 15);
487
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
488
- }
489
-
490
- if (rf & 2) {
491
- const data_r8 = ctx.ngIf;
492
- const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
493
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](1);
494
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r2.productService.hasSelectionVariant(data_r8));
495
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](1);
496
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r2.productService.hasSelectionVariant(data_r8));
497
- }
498
- }
499
-
500
- function PricePosChannelComponent_mainpanel_0_div_8_Template(rf, ctx) {
501
- if (rf & 1) {
502
- const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
503
-
504
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "div", 20)(1, "app-table", 21);
505
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("onToggle", function PricePosChannelComponent_mainpanel_0_div_8_Template_app_table_onToggle_1_listener($event) {
506
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r18);
507
- const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
508
- return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r17.onShowDifferencePrice($event));
509
- })("onSubmit", function PricePosChannelComponent_mainpanel_0_div_8_Template_app_table_onSubmit_1_listener($event) {
510
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r18);
511
- const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
512
- return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r19.updatePriceByVariant($event));
513
- });
514
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](2, "async");
515
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
516
- }
517
-
518
- if (rf & 2) {
519
- const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]().ngIf;
520
- const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
521
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](1);
522
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("showProductToggle", true)("data", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](2, 4, ctx_r3.paginationService.data$))("channel", loader_r1.Options.Channel)("filter", loader_r1.Filter);
523
- }
524
- }
525
-
526
- function PricePosChannelComponent_mainpanel_0_span_16_Template(rf, ctx) {
527
- if (rf & 1) {
528
- const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
529
-
530
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "span", 22);
531
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function PricePosChannelComponent_mainpanel_0_span_16_Template_span_click_0_listener() {
532
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r22);
533
- const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
534
- return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r21.getRowCount());
535
- });
536
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](1, "i", 23);
537
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, "?");
538
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
539
- }
540
- }
541
-
542
- function PricePosChannelComponent_mainpanel_0_span_17_Template(rf, ctx) {
543
- if (rf & 1) {
544
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "span");
545
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](1);
546
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](2, "number");
547
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
548
- }
549
-
550
- if (rf & 2) {
551
- const rowCount_r23 = ctx.ngIf;
552
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](1);
553
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](2, 1, rowCount_r23));
554
- }
555
- }
556
-
557
- function PricePosChannelComponent_mainpanel_0_a_21_Template(rf, ctx) {
558
- if (rf & 1) {
559
- const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
560
-
561
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "a", 24);
562
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function PricePosChannelComponent_mainpanel_0_a_21_Template_a_click_0_listener() {
563
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r25);
564
- const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
565
- return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r24.onNextPage());
566
- });
567
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 25);
568
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, " Next");
569
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
570
- }
571
- }
572
-
573
- function PricePosChannelComponent_mainpanel_0_a_22_Template(rf, ctx) {
574
- if (rf & 1) {
575
- const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
576
-
577
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "a", 26);
578
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("click", function PricePosChannelComponent_mainpanel_0_a_22_Template_a_click_0_listener() {
579
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r27);
580
- const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"](2);
581
- return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r26.onLastPage());
582
- });
583
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelement"](1, "i", 27);
584
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](2, " Last");
585
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
586
- }
587
- }
588
-
589
- function PricePosChannelComponent_mainpanel_0_Template(rf, ctx) {
590
- if (rf & 1) {
591
- const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵgetCurrentView"]();
592
-
593
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](0, "mainpanel", 1);
594
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵlistener"]("onSubmit", function PricePosChannelComponent_mainpanel_0_Template_mainpanel_onSubmit_0_listener($event) {
595
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵrestoreView"](_r29);
596
- const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
597
- return _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵresetView"](ctx_r28.onSearch($event));
598
- });
599
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](1, "actions")(2, "div", 2);
600
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](3, PricePosChannelComponent_mainpanel_0_div_3_Template, 3, 2, "div", 3);
601
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](4, "async");
602
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
603
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](5, "content")(6, "div", 4)(7, "div", 5);
604
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](8, PricePosChannelComponent_mainpanel_0_div_8_Template, 3, 6, "div", 6);
605
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](9, "async");
606
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]();
607
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](10, "div", 7)(11, "div", 8)(12, "div", 9);
608
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](13);
609
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](14, "number");
610
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](15, "async");
611
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](16, PricePosChannelComponent_mainpanel_0_span_16_Template, 3, 0, "span", 10);
612
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](17, PricePosChannelComponent_mainpanel_0_span_17_Template, 3, 3, "span", 3);
613
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](18, "async");
614
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtext"](19);
615
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()();
616
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementStart"](20, "div", 11);
617
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](21, PricePosChannelComponent_mainpanel_0_a_21_Template, 3, 0, "a", 12);
618
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](22, PricePosChannelComponent_mainpanel_0_a_22_Template, 3, 0, "a", 13);
619
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵelementEnd"]()()()()();
620
- }
621
-
622
- if (rf & 2) {
623
- const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵnextContext"]();
624
- let tmp_5_0;
625
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("pageData", ctx_r0.pageData)("hideSearchDropdown", true)("textButton", "Search");
626
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
627
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](4, 11, ctx_r0.paginationService.data$));
628
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
629
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](9, 13, ctx_r0.paginationService.data$));
630
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](5);
631
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" Showing 1 - ", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](14, 15, (tmp_5_0 = _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](15, 17, ctx_r0.paginationService.data$)) == null ? null : tmp_5_0.length), " of ");
632
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](3);
633
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r0.paginationService.hideCount);
634
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](1);
635
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", !ctx_r0.paginationService.hideCount && _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](18, 19, ctx_r0.allDataCount$));
636
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
637
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtextInterpolate1"](" records ~ ", ctx_r0.paginationService.footerPageNumber, " Page ");
638
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](2);
639
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r0.paginationService.disableNextButton && !ctx_r0.paginationService.goToLastPage);
640
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵadvance"](1);
641
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", ctx_r0.paginationService.disableNextButton && !ctx_r0.paginationService.goToLastPage);
642
- }
643
- }
644
-
645
- class PricePosChannelComponent {
646
- constructor(http, toastr, dialog, paginationService, productService) {
647
- this.http = http;
648
- this.toastr = toastr;
649
- this.dialog = dialog;
650
- this.paginationService = paginationService;
651
- this.productService = productService;
652
- this.loaderAPI = "PriceLoader/LoadMultiple";
653
- this.getDataAPI = "Price/GetMultipleChannelComparison";
654
- this.rowCountAPI = "Inventory/GetMultipleChannelComparisonRowCount";
655
- this.filterOptions = [{
656
- Key: 1,
657
- Value: "All"
658
- }, {
659
- Key: 3,
660
- Value: "Difference"
661
- }];
662
- this.pageData = {
663
- Title: "Price",
664
- Nav: [{
665
- Title: "Price Cache",
666
- Url: "/menu/price",
667
- Active: true
668
- }, {
669
- Title: "Price Realtime",
670
- Url: "/menu/price/realtime",
671
- Active: false
672
- }]
673
- };
674
- }
675
-
676
- ngOnInit() {
677
- this.initPageLoader();
678
- }
679
-
680
- initPageLoader() {
681
- this.paginationService.fetchDataEndpoint = this.getDataAPI;
682
- this.loader$ = this.http.post(`/api/${this.loaderAPI}`).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.tap)(loader => {
683
- this.channelOptions = loader.Options.Channel;
684
- loader.Filter = {
685
- PageNumber: loader.Filter.PageNumber,
686
- RowCount: loader.Filter.RowCount,
687
- filterModel: 1
688
- };
689
- this.searchFilter = loader.Filter;
690
- this.paginationService.resetToFirstPage(this.searchFilter);
691
- }));
692
- }
693
-
694
- onShowDifferencePrice(event) {
695
- this.searchFilter.filterModel = 1;
696
-
697
- if (event) {
698
- this.searchFilter.filterModel = 3;
699
- }
700
-
701
- this.paginationService.resetToFirstPage(this.searchFilter);
702
- }
703
-
704
- onSearch(text) {
705
- this.searchFilter.text = text;
706
- this.paginationService.resetToFirstPage(this.searchFilter);
707
- }
708
- /**
709
- * Opens the scan dialog and pass the Channel list and the filter variable
710
- * It will return the modified filter and will run the scan function that the user has selected (full or quick)
711
- */
712
-
713
-
714
- openScanDialog() {
715
- this.searchFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_2__.Constants.GuidEMpty;
716
- let dialogFilter = JSON.parse(JSON.stringify(this.searchFilter));
717
- const dialogRef = this.dialog.open(_modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ScanDialogComponent, {
718
- data: {
719
- filter: dialogFilter,
720
- channelOptions: this.channelOptions
721
- },
722
- width: "40%"
723
- });
724
- dialogRef.afterClosed().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.filter)(result => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_2__.Constants.IsNotEmpty(result))).subscribe(result => {
725
- this.searchFilter.ChannelID = result.ChannelID;
726
- this.searchFilter.ScanFull = result.ScanFull;
727
- this.searchFilter.UpdatedProduct = result.UpdatedProduct;
728
- this.searchFilter.Async = result.Async;
729
- this.scanAll();
730
- });
731
- }
732
-
733
- scanAll() {
734
- this.productService.scanAll(this.searchFilter.ChannelID, this.searchFilter.ScanFull, this.searchFilter.UpdatedProduct, this.searchFilter.Async).subscribe(result => {
735
- if (this.searchFilter.Async) {
736
- this.toastr.warning("You will be notified when the scan is completed.", "Scan In Progress", {
737
- toastClass: 'ngx-toastr toast-waiting'
738
- });
739
- } else {
740
- let channel = this.productService.findChannelById(this.searchFilter.ChannelID, this.channelOptions); // init loader to get last sync date and get new data after scan
741
-
742
- this.initPageLoader();
743
- this.productService.successToastrScanAllProduct(result, channel, !this.searchFilter.UpdatedProduct);
744
- }
745
- });
746
- }
747
-
748
- updatePrice(data) {
749
- let listSelected = this.productService.selectedVariantProduct(data);
750
-
751
- if (listSelected.length > 0) {
752
- let request = listSelected.map(m => {
753
- return {
754
- ID: m.ID,
755
- Code: m.Code,
756
- Price: m.UnitPrice
757
- };
758
- });
759
- var selectedID = this.channelOptions.filter(channel => {
760
- return channel["selected"];
761
- }).map(channel => {
762
- return channel.ID;
763
- });
764
- let payload = {
765
- ListChannelID: selectedID,
766
- ListPrice: request
767
- };
768
- this.http.post("/api/Price/UpdateChannel", payload).subscribe(result => {
769
- this.paginationService.resetToFirstPage(this.searchFilter);
770
- this.toastr.success("Successfully updated " + payload.ListPrice.length + " items in " + payload.ListChannelID.length + " channels", "Success");
771
- });
772
- }
773
- }
774
-
775
- updatePriceByVariant(item) {
776
- let params = {
777
- ID: item.ChannelID,
778
- ChannelItemID: item.ChannelItemID,
779
- ChannelVariantID: item.ChannelVariationID,
780
- Price: item.Price - 0,
781
- VariantID: item.ID
782
- };
783
- this.http.post("/api/Price/UpdatePriceByID", params).subscribe(result => {
784
- let channel = this.productService.findChannelById(params.ID, this.channelOptions);
785
- this.toastr.success("Successfully updated " + item.ItemName + "(" + item.VarName + ") price in " + channel.Name + " to " + params.Price, "Success");
786
- this.paginationService.resetToFirstPage(this.searchFilter);
787
- });
788
- }
789
-
790
- onUpdateItems(data) {
791
- const selectedItems = this.productService.selectedVariantProduct(data);
792
- this.dialog.open(_modals_modal_update_channels_modal_update_channels_component__WEBPACK_IMPORTED_MODULE_1__.ModalUpdateChannelsComponent, {
793
- data: {
794
- selectedItems: selectedItems,
795
- channels: this.channelOptions
796
- },
797
- width: "40%"
798
- }).afterClosed().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.filter)(val => val !== undefined)).subscribe(channels => {
799
- this.channelOptions = channels;
800
- this.updatePrice(data);
801
- });
802
- }
803
-
804
- getRowCount() {
805
- this.paginationService.hideCount = false;
806
- this.allDataCount$ = this.http.post(`/api/${this.rowCountAPI}`, {});
807
- }
808
-
809
- onNextPage() {
810
- this.paginationService.onNextPage(this.searchFilter);
811
- }
812
-
813
- onLastPage() {
814
- this.http.post(`/api/${this.rowCountAPI}`, {}).subscribe({
815
- next: response => {
816
- this.searchFilter.PageNumber = 1;
817
- this.paginationService.getAllData(this.searchFilter, response);
818
- }
819
- });
820
- }
821
-
822
- ngOnDestroy() {
823
- this.paginationService.destroy();
824
- }
825
-
826
- }
827
-
828
- PricePosChannelComponent.ɵfac = function PricePosChannelComponent_Factory(t) {
829
- return new (t || PricePosChannelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_3__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_11__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_12__.MatDialog), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_services_infinite_pagination_infinite_pagination_service__WEBPACK_IMPORTED_MODULE_4__.InfinitePaginationService), _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdirectiveInject"](src_app_services_product_service__WEBPACK_IMPORTED_MODULE_5__.ProductService));
830
- };
831
-
832
- PricePosChannelComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵdefineComponent"]({
833
- type: PricePosChannelComponent,
834
- selectors: [["app-price-pos-channel"]],
835
- decls: 2,
836
- vars: 3,
837
- consts: [["headerTitle", "Price Comparison", 3, "pageData", "hideSearchDropdown", "textButton", "onSubmit", 4, "ngIf"], ["headerTitle", "Price Comparison", 3, "pageData", "hideSearchDropdown", "textButton", "onSubmit"], [1, "d-flex"], [4, "ngIf"], [1, "container-fluid", "mt-3"], [1, "row"], ["class", "col-md-12", 4, "ngIf"], [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"], ["type", "button", "data-cy", "scanInPos", "class", "btn btn-outline-secondary shadow rounded me-3", 3, "click", 4, "ngIf"], ["type", "button", "class", "btn btn-success shadow rounded", "data-toggle", "modal", 3, "click", 4, "ngIf"], ["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, "click"], [1, "fas", "fa-chevron-circle-up"], [1, "col-md-12"], ["productToggleTitle", "Filter Different Price", "table", "price", 3, "showProductToggle", "data", "channel", "filter", "onToggle", "onSubmit"], [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"]],
838
- template: function PricePosChannelComponent_Template(rf, ctx) {
839
- if (rf & 1) {
840
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵtemplate"](0, PricePosChannelComponent_mainpanel_0_Template, 23, 21, "mainpanel", 0);
841
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipe"](1, "async");
842
- }
843
-
844
- if (rf & 2) {
845
- _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_8__["ɵɵpipeBind1"](1, 1, ctx.loader$));
846
- }
847
- },
848
- dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_13__.NgIf, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__.MainPanelComponent, _sharing_module_table_table_component__WEBPACK_IMPORTED_MODULE_7__.TableComponent, _angular_common__WEBPACK_IMPORTED_MODULE_13__.AsyncPipe, _angular_common__WEBPACK_IMPORTED_MODULE_13__.DecimalPipe],
849
- styles: [".no-bullet[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByaWNlLXBvcy1jaGFubmVsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0kscUJBQUE7QUFDSiIsImZpbGUiOiJwcmljZS1wb3MtY2hhbm5lbC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uby1idWxsZXR7XHJcbiAgICBsaXN0LXN0eWxlLXR5cGU6bm9uZTtcclxufSJdfQ== */"]
850
- });
851
-
852
- /***/ }),
853
-
854
- /***/ 3658:
855
- /*!****************************************************!*\
856
- !*** ./src/app/menu/price/price-routing.module.ts ***!
857
- \****************************************************/
858
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
859
-
860
- __webpack_require__.r(__webpack_exports__);
861
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
862
- /* harmony export */ "PriceRoutingModule": () => (/* binding */ PriceRoutingModule)
863
- /* harmony export */ });
864
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 4666);
865
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ 124);
866
- /* harmony import */ var _price_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./price.component */ 8286);
867
- /* harmony import */ var _price_pos_channel_price_pos_channel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./price-pos-channel/price-pos-channel.component */ 8622);
868
- /* harmony import */ var _custom_channel_price_custom_channel_price_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./custom-channel-price/custom-channel-price.component */ 4035);
869
- /* harmony import */ var _price_single_channel_price_single_channel_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./price-single-channel/price-single-channel.component */ 8863);
870
- /* harmony import */ var src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/auth.guard */ 8063);
871
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560);
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
-
880
-
881
- const routes = [
882
- {
883
- path: "",
884
- component: _price_component__WEBPACK_IMPORTED_MODULE_0__.PriceComponent,
885
- children: [
886
- {
887
- path: "",
888
- redirectTo: "SingleChannel",
889
- pathMatch: "full",
890
- },
891
- {
892
- path: "pos",
893
- component: _price_pos_channel_price_pos_channel_component__WEBPACK_IMPORTED_MODULE_1__.PricePosChannelComponent,
894
- canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_4__.AuthGuard],
895
- data: { title: "Global Price Comparison" },
896
- },
897
- {
898
- path: "OutletPrice",
899
- component: _custom_channel_price_custom_channel_price_component__WEBPACK_IMPORTED_MODULE_2__.CustomChannelPriceComponent,
900
- canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_4__.AuthGuard],
901
- data: { title: "Outlet Price Comparison" },
902
- },
903
- {
904
- path: "SingleChannel",
905
- component: _price_single_channel_price_single_channel_component__WEBPACK_IMPORTED_MODULE_3__.PriceSingleChannelComponent,
906
- canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_4__.AuthGuard],
907
- data: { title: "Price Single Channel Comparison" },
908
- },
909
- ],
910
- },
911
- ];
912
- class PriceRoutingModule {
913
- }
914
- PriceRoutingModule.ɵfac = function PriceRoutingModule_Factory(t) { return new (t || PriceRoutingModule)(); };
915
- PriceRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({ type: PriceRoutingModule });
916
- PriceRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule,
917
- _angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterModule.forChild(routes)] });
918
- (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] }); })();
919
-
920
-
921
- /***/ }),
922
-
923
- /***/ 8863:
924
- /*!***********************************************************************************!*\
925
- !*** ./src/app/menu/price/price-single-channel/price-single-channel.component.ts ***!
926
- \***********************************************************************************/
927
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
928
-
929
- __webpack_require__.r(__webpack_exports__);
930
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
931
- /* harmony export */ "PriceSingleChannelComponent": () => (/* binding */ PriceSingleChannelComponent)
932
- /* harmony export */ });
933
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs/operators */ 9337);
934
- /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rxjs/operators */ 116);
935
- /* harmony import */ var src_app_model_Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/model/Constants */ 1889);
936
- /* harmony import */ var src_app_model_enums_FilterType_enum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/model/enums/FilterType.enum */ 8705);
937
- /* harmony import */ var src_app_sharing_module_table_table_dialog_table_dialog_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/sharing-module/table/table-dialog/table-dialog.component */ 9411);
938
- /* harmony import */ var _modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../modals/scan-dialog/scan-dialog.component */ 8231);
939
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 2560);
940
- /* harmony import */ var src_app_services_http_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/http.service */ 6858);
941
- /* harmony import */ var src_app_services_infinite_pagination_infinite_pagination_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/services/infinite-pagination/infinite-pagination.service */ 4660);
942
- /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-toastr */ 4817);
943
- /* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
944
- /* harmony import */ var src_app_services_product_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/services/product.service */ 6082);
945
- /* harmony import */ var src_app_services_biggerPicture_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/services/biggerPicture.service */ 886);
946
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/common */ 4666);
947
- /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/forms */ 2508);
948
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
949
- /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
950
- /* harmony import */ var _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/material/slide-toggle */ 4714);
951
- /* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/material/tooltip */ 6896);
952
-
953
-
954
-
955
-
956
-
957
-
958
-
959
-
960
-
961
-
962
-
963
-
964
-
965
-
966
-
967
-
968
-
969
-
970
-
971
- function PriceSingleChannelComponent_mainpanel_0_actions_7_button_3_Template(rf, ctx) {
972
- if (rf & 1) {
973
- const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
974
-
975
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "button", 8);
976
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_actions_7_button_3_Template_button_click_0_listener() {
977
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r9);
978
- const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).ngIf;
979
- const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
980
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r7.openScanDialog(loader_r1));
981
- });
982
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 9);
983
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, " Scan Channel ");
984
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
985
- }
986
- }
987
-
988
- function PriceSingleChannelComponent_mainpanel_0_actions_7_button_4_Template(rf, ctx) {
989
- if (rf & 1) {
990
- const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
991
-
992
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "button", 10);
993
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_actions_7_button_4_Template_button_click_0_listener() {
994
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r12);
995
- const data_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().ngIf;
996
- const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
997
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r10.updateStock(data_r4));
998
- });
999
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 11);
1000
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, " Update ");
1001
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1002
- }
1003
- }
1004
-
1005
- function PriceSingleChannelComponent_mainpanel_0_actions_7_Template(rf, ctx) {
1006
- if (rf & 1) {
1007
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "actions")(1, "div", 5)(2, "div");
1008
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](3, PriceSingleChannelComponent_mainpanel_0_actions_7_button_3_Template, 3, 0, "button", 6);
1009
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, PriceSingleChannelComponent_mainpanel_0_actions_7_button_4_Template, 3, 0, "button", 7);
1010
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
1011
- }
1012
-
1013
- if (rf & 2) {
1014
- const data_r4 = ctx.ngIf;
1015
- const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
1016
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
1017
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx_r2.productService.hasSelectionVariant(data_r4));
1018
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1019
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r2.productService.hasSelectionVariant(data_r4));
1020
- }
1021
- }
1022
-
1023
- function PriceSingleChannelComponent_mainpanel_0_content_9_ng_option_22_Template(rf, ctx) {
1024
- if (rf & 1) {
1025
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "ng-option", 32);
1026
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "img", 33);
1027
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
1028
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1029
- }
1030
-
1031
- if (rf & 2) {
1032
- const c_r19 = ctx.$implicit;
1033
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", c_r19.ID);
1034
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1035
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpropertyInterpolate"]("src", c_r19.Img, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsanitizeUrl"]);
1036
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1037
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"]("", c_r19.Name, " ");
1038
- }
1039
- }
1040
-
1041
- function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_input_3_Template(rf, ctx) {
1042
- if (rf & 1) {
1043
- const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
1044
-
1045
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "input", 53);
1046
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_input_3_Template_input_ngModelChange_0_listener($event) {
1047
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r33);
1048
- const product_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
1049
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](product_r20.selected = $event);
1050
- })("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_input_3_Template_input_ngModelChange_0_listener() {
1051
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r33);
1052
- const product_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
1053
- const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
1054
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r34.onCheckboxStateProduct(product_r20));
1055
- });
1056
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1057
- }
1058
-
1059
- if (rf & 2) {
1060
- const product_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
1061
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngModel", product_r20.selected);
1062
- }
1063
- }
1064
-
1065
- function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_img_4_Template(rf, ctx) {
1066
- if (rf & 1) {
1067
- const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
1068
-
1069
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "img", 54);
1070
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_img_4_Template_img_click_0_listener($event) {
1071
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r39);
1072
- const product_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
1073
- const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
1074
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r37.onZoomImage($event, product_r20 == null ? null : product_r20.ImageUrl));
1075
- });
1076
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1077
- }
1078
-
1079
- if (rf & 2) {
1080
- const product_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3).$implicit;
1081
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpropertyInterpolate"]("src", product_r20.ThumbnailUrl, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsanitizeUrl"]);
1082
- }
1083
- }
1084
-
1085
- function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_ng_template_5_Template(rf, ctx) {
1086
- if (rf & 1) {
1087
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](0, "img", 55);
1088
- }
1089
- }
1090
-
1091
- function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_Template(rf, ctx) {
1092
- if (rf & 1) {
1093
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
1094
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "td", 46)(2, "div", 47);
1095
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](3, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_input_3_Template, 1, 1, "input", 48);
1096
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](4, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_img_4_Template, 1, 1, "img", 49);
1097
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](5, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_ng_template_5_Template, 1, 0, "ng-template", null, 50, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplateRefExtractor"]);
1098
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
1099
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](7, "td", 51)(8, "span", 52);
1100
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](9);
1101
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1102
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](10, "br");
1103
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](11, "small");
1104
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](12);
1105
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
1106
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
1107
- }
1108
-
1109
- if (rf & 2) {
1110
- const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵreference"](6);
1111
-
1112
- const variant_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
1113
- const product_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
1114
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1115
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("rowSpan", product_r20.Variants.length);
1116
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
1117
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", variant_r22.Inventory >= 0 || product_r20.Variants.length > 1);
1118
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1119
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", product_r20.ThumbnailUrl)("ngIfElse", _r29);
1120
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
1121
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("rowSpan", product_r20.Variants.length);
1122
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
1123
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](product_r20.Name);
1124
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
1125
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"]("(", product_r20.Category, ")");
1126
- }
1127
- }
1128
-
1129
- function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_input_11_Template(rf, ctx) {
1130
- if (rf & 1) {
1131
- const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
1132
-
1133
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "input", 56);
1134
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_input_11_Template_input_ngModelChange_0_listener($event) {
1135
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r45);
1136
- const variant_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
1137
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](variant_r22.selected = $event);
1138
- });
1139
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1140
- }
1141
-
1142
- if (rf & 2) {
1143
- const variant_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
1144
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngModel", variant_r22.selected);
1145
- }
1146
- }
1147
-
1148
- function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_div_16_Template(rf, ctx) {
1149
- if (rf & 1) {
1150
- const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
1151
-
1152
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 57)(1, "div", 58);
1153
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_div_16_Template_div_click_1_listener() {
1154
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r49);
1155
- const variant_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
1156
- const product_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
1157
- const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2).ngIf;
1158
- const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
1159
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r47.openTableDialog(variant_r22, product_r20, loader_r1));
1160
- });
1161
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
1162
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](3, "number");
1163
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
1164
- }
1165
-
1166
- if (rf & 2) {
1167
- const variant_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().$implicit;
1168
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
1169
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](3, 1, variant_r22.Channel[0] == null ? null : variant_r22.Channel[0].Price), " ");
1170
- }
1171
- }
1172
-
1173
- const _c0 = function (a0) {
1174
- return {
1175
- "bg-gradient-warning": a0
1176
- };
1177
- };
1178
-
1179
- function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_Template(rf, ctx) {
1180
- if (rf & 1) {
1181
- const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
1182
-
1183
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "tr");
1184
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_ng_container_1_Template, 13, 7, "ng-container", 4);
1185
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](2, "td", 19);
1186
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
1187
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1188
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "td", 22)(5, "span");
1189
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](6);
1190
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1191
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](7, "span", 34)(8, "a", 35);
1192
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](9, "i", 36);
1193
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
1194
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](10, "td", 37);
1195
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](11, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_input_11_Template, 1, 1, "input", 38);
1196
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1197
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](12, "td", 22);
1198
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](13);
1199
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](14, "number");
1200
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1201
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](15, "td", 39);
1202
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](16, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_div_16_Template, 4, 3, "div", 40);
1203
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1204
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](17, "td")(18, "div", 41)(19, "div", 42)(20, "a", 35);
1205
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](21, "i", 43);
1206
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1207
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](22, " \u00A0\u00A0 ");
1208
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](23, "span", 44);
1209
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_Template_span_click_23_listener() {
1210
- const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r54);
1211
- const variant_r22 = restoredCtx.$implicit;
1212
- const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
1213
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r53.refreshPrice(variant_r22));
1214
- });
1215
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](24, "i", 45);
1216
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()();
1217
- }
1218
-
1219
- if (rf & 2) {
1220
- const variant_r22 = ctx.$implicit;
1221
- const i_r23 = ctx.index;
1222
- const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
1223
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1224
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", i_r23 == 0);
1225
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
1226
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](variant_r22.Model);
1227
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
1228
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", variant_r22.Code, " ");
1229
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
1230
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("href", "https://" + ctx_r21.hostName + "/menu/Products/Catalog/Variants/Info?ID=" + (variant_r22 == null ? null : variant_r22.ID), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsanitizeUrl"]);
1231
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
1232
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", variant_r22.Inventory >= 0);
1233
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
1234
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](14, 9, variant_r22.UnitPrice), " ");
1235
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
1236
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](11, _c0, variant_r22.UnitPrice != (variant_r22.Channel[0] == null ? null : variant_r22.Channel[0].Price)));
1237
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1238
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", variant_r22.Channel.length > 0);
1239
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
1240
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("href", variant_r22.Channel[0] == null ? null : variant_r22.Channel[0].Url, _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsanitizeUrl"]);
1241
- }
1242
- }
1243
-
1244
- function PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_Template(rf, ctx) {
1245
- if (rf & 1) {
1246
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
1247
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_tr_1_Template, 25, 13, "tr", 26);
1248
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
1249
- }
1250
-
1251
- if (rf & 2) {
1252
- const product_r20 = ctx.$implicit;
1253
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1254
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", product_r20.Variants);
1255
- }
1256
- }
1257
-
1258
- function PriceSingleChannelComponent_mainpanel_0_content_9_span_31_Template(rf, ctx) {
1259
- if (rf & 1) {
1260
- const _r56 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
1261
-
1262
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "span", 59);
1263
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_content_9_span_31_Template_span_click_0_listener() {
1264
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r56);
1265
- const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
1266
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r55.getRowCount());
1267
- });
1268
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "i", 60);
1269
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, "?");
1270
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
1271
- }
1272
- }
1273
-
1274
- function PriceSingleChannelComponent_mainpanel_0_content_9_span_32_Template(rf, ctx) {
1275
- if (rf & 1) {
1276
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "span");
1277
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](1);
1278
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](2, "number");
1279
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1280
- }
1281
-
1282
- if (rf & 2) {
1283
- const allDataCount_r57 = ctx.ngIf;
1284
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1285
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](2, 1, allDataCount_r57.Total));
1286
- }
1287
- }
1288
-
1289
- function PriceSingleChannelComponent_mainpanel_0_content_9_div_35_a_1_Template(rf, ctx) {
1290
- if (rf & 1) {
1291
- const _r61 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
1292
-
1293
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "a", 64);
1294
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_content_9_div_35_a_1_Template_a_click_0_listener() {
1295
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r61);
1296
- const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
1297
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r60.onNextPage());
1298
- });
1299
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 65);
1300
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, " Next");
1301
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1302
- }
1303
- }
1304
-
1305
- function PriceSingleChannelComponent_mainpanel_0_content_9_div_35_a_2_Template(rf, ctx) {
1306
- if (rf & 1) {
1307
- const _r63 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
1308
-
1309
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "a", 66);
1310
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function PriceSingleChannelComponent_mainpanel_0_content_9_div_35_a_2_Template_a_click_0_listener() {
1311
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r63);
1312
- const ctx_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](4);
1313
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r62.onLastPage());
1314
- });
1315
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 67);
1316
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, " Last");
1317
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1318
- }
1319
- }
1320
-
1321
- function PriceSingleChannelComponent_mainpanel_0_content_9_div_35_Template(rf, ctx) {
1322
- if (rf & 1) {
1323
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 61);
1324
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](1, PriceSingleChannelComponent_mainpanel_0_content_9_div_35_a_1_Template, 3, 0, "a", 62);
1325
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, PriceSingleChannelComponent_mainpanel_0_content_9_div_35_a_2_Template, 3, 0, "a", 63);
1326
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1327
- }
1328
-
1329
- if (rf & 2) {
1330
- const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](3);
1331
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1332
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r18.paginationService.disableNextButton && !ctx_r18.paginationService.goToLastPage);
1333
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1334
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r18.paginationService.disableNextButton && !ctx_r18.paginationService.goToLastPage);
1335
- }
1336
- }
1337
-
1338
- function PriceSingleChannelComponent_mainpanel_0_content_9_Template(rf, ctx) {
1339
- if (rf & 1) {
1340
- const _r65 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
1341
-
1342
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "content")(1, "div", 12)(2, "div", 13)(3, "table", 14)(4, "thead", 15)(5, "tr")(6, "th", 16);
1343
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](7, " Product ");
1344
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](8, "div")(9, "mat-slide-toggle", 17);
1345
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_content_9_Template_mat_slide_toggle_ngModelChange_9_listener($event) {
1346
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r65);
1347
- const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
1348
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r64.toggleDifferentInventory = $event);
1349
- })("toggleChange", function PriceSingleChannelComponent_mainpanel_0_content_9_Template_mat_slide_toggle_toggleChange_9_listener() {
1350
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r65);
1351
- const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
1352
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r66.onToggleDifferentInventory());
1353
- });
1354
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](10, "small", 18);
1355
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](11, "Filter Different Price");
1356
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
1357
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](12, "th", 19);
1358
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](13, "Variant");
1359
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1360
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](14, "th", 20);
1361
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](15, "SKU");
1362
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1363
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](16, "th")(17, "input", 21);
1364
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("change", function PriceSingleChannelComponent_mainpanel_0_content_9_Template_input_change_17_listener($event) {
1365
- const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r65);
1366
- const data_r13 = restoredCtx.ngIf;
1367
- const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
1368
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r67.onSelectAllSKU($event.target.checked, data_r13));
1369
- });
1370
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
1371
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](18, "th", 22);
1372
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](19, "POS");
1373
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1374
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](20, "th")(21, "ng-select", 23);
1375
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_content_9_Template_ng_select_ngModelChange_21_listener($event) {
1376
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r65);
1377
- const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
1378
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r68.searchFilter.ChannelID = $event);
1379
- })("change", function PriceSingleChannelComponent_mainpanel_0_content_9_Template_ng_select_change_21_listener() {
1380
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r65);
1381
- const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](2);
1382
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r69.search());
1383
- });
1384
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](22, PriceSingleChannelComponent_mainpanel_0_content_9_ng_option_22_Template, 3, 3, "ng-option", 24);
1385
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
1386
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](23, "th", 25);
1387
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
1388
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](24, "tbody");
1389
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](25, PriceSingleChannelComponent_mainpanel_0_content_9_ng_container_25_Template, 2, 1, "ng-container", 26);
1390
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
1391
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](26, "div", 27)(27, "div", 28)(28, "div", 29);
1392
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](29);
1393
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](30, "number");
1394
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](31, PriceSingleChannelComponent_mainpanel_0_content_9_span_31_Template, 3, 0, "span", 30);
1395
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](32, PriceSingleChannelComponent_mainpanel_0_content_9_span_32_Template, 3, 3, "span", 4);
1396
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](33, "async");
1397
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](34);
1398
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
1399
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](35, PriceSingleChannelComponent_mainpanel_0_content_9_div_35_Template, 3, 2, "div", 31);
1400
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
1401
- }
1402
-
1403
- if (rf & 2) {
1404
- const data_r13 = ctx.ngIf;
1405
- const loader_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]().ngIf;
1406
- const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
1407
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](9);
1408
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngModel", ctx_r3.toggleDifferentInventory);
1409
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](12);
1410
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("clearable", false)("ngModel", ctx_r3.searchFilter.ChannelID);
1411
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1412
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", loader_r1.Options.Channel);
1413
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
1414
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", data_r13);
1415
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](4);
1416
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" Showing 1 - ", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](30, 10, data_r13 == null ? null : data_r13.length), " of ");
1417
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
1418
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx_r3.paginationService.hideCount);
1419
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1420
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](33, 12, !ctx_r3.paginationService.hideCount && ctx_r3.allDataCount$));
1421
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
1422
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" records ~ ", ctx_r3.paginationService.footerPageNumber, " Page ");
1423
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1424
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", data_r13.length > 0);
1425
- }
1426
- }
1427
-
1428
- function PriceSingleChannelComponent_mainpanel_0_Template(rf, ctx) {
1429
- if (rf & 1) {
1430
- const _r72 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
1431
-
1432
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "mainpanel", 1);
1433
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("textChange", function PriceSingleChannelComponent_mainpanel_0_Template_mainpanel_textChange_0_listener($event) {
1434
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r72);
1435
- const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
1436
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r71.searchFilter.text = $event);
1437
- })("onSubmit", function PriceSingleChannelComponent_mainpanel_0_Template_mainpanel_onSubmit_0_listener() {
1438
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r72);
1439
- const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
1440
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r73.search());
1441
- });
1442
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "filters")(2, "div", 2)(3, "div")(4, "label");
1443
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](5, "Page Size");
1444
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1445
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](6, "input", 3);
1446
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function PriceSingleChannelComponent_mainpanel_0_Template_input_ngModelChange_6_listener($event) {
1447
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r72);
1448
- const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
1449
- return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r74.searchFilter.RowCount = $event);
1450
- });
1451
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()();
1452
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](7, PriceSingleChannelComponent_mainpanel_0_actions_7_Template, 5, 2, "actions", 4);
1453
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](8, "async");
1454
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](9, PriceSingleChannelComponent_mainpanel_0_content_9_Template, 36, 14, "content", 4);
1455
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](10, "async");
1456
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
1457
- }
1458
-
1459
- if (rf & 2) {
1460
- const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
1461
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("headerTitle", ctx_r0.pageTitle)("text", ctx_r0.searchFilter.text);
1462
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](6);
1463
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngModel", ctx_r0.searchFilter.RowCount);
1464
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
1465
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](8, 5, ctx_r0.paginationService.data$));
1466
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
1467
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](10, 7, ctx_r0.paginationService.data$));
1468
- }
1469
- }
1470
-
1471
- class PriceSingleChannelComponent {
1472
- constructor(http, paginationService, toastr, dialog, productService, biggerPictureService) {
1473
- this.http = http;
1474
- this.paginationService = paginationService;
1475
- this.toastr = toastr;
1476
- this.dialog = dialog;
1477
- this.productService = productService;
1478
- this.biggerPictureService = biggerPictureService;
1479
- this.pageTitle = "Price Single Channel Comparison";
1480
- this.toggleDifferentInventory = false;
1481
- this.loaderEndpoint = "PriceLoader/Load";
1482
- this.dataEndpoint = "Price/GetSingleChannelComparison";
1483
- this.allDataCountEndpoint = "Inventory/GetInventoryByChannelRowCount";
1484
- this.hostName = this.productService.getHostName();
1485
- }
1486
-
1487
- ngOnInit() {
1488
- this.initPageLoader();
1489
- }
1490
-
1491
- initPageLoader() {
1492
- this.paginationService.fetchDataEndpoint = this.dataEndpoint;
1493
- this.loader$ = this.http.post(`/API/${this.loaderEndpoint}`).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.tap)(loaderResponse => {
1494
- this.searchFilter = loaderResponse.Filter;
1495
- this.searchFilter.filterModel = src_app_model_enums_FilterType_enum__WEBPACK_IMPORTED_MODULE_1__.FilterType.ALL;
1496
- this.paginationService.resetToFirstPage(this.searchFilter);
1497
- }));
1498
- }
1499
-
1500
- onToggleDifferentInventory() {
1501
- if (!this.toggleDifferentInventory) {
1502
- this.searchFilter.filterModel = src_app_model_enums_FilterType_enum__WEBPACK_IMPORTED_MODULE_1__.FilterType.DIFFERENCE;
1503
- } else {
1504
- this.searchFilter.filterModel = src_app_model_enums_FilterType_enum__WEBPACK_IMPORTED_MODULE_1__.FilterType.ALL;
1505
- }
1506
-
1507
- this.search();
1508
- }
1509
-
1510
- onCheckboxStateProduct(product) {
1511
- product.Variants = product.Variants.map(variant => {
1512
- variant.selected = product.selected;
1513
- return variant;
1514
- });
1515
- }
1516
-
1517
- openScanDialog(loader) {
1518
- let dialogFilter = JSON.parse(JSON.stringify(this.searchFilter));
1519
- dialogFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_0__.Constants.GuidEMpty;
1520
- this.dialog.open(_modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_3__.ScanDialogComponent, {
1521
- data: {
1522
- filter: dialogFilter,
1523
- channelOptions: loader.Options.Channel
1524
- },
1525
- width: "40%"
1526
- }).afterClosed().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.filter)(result => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_0__.Constants.IsNotEmpty(result))).subscribe(filter => {
1527
- this.searchFilter.ChannelID = filter.ChannelID;
1528
- this.searchFilter.ScanFull = filter.ScanFull;
1529
- this.searchFilter.UpdatedProduct = filter.UpdatedProduct;
1530
- this.searchFilter.Async = filter.Async;
1531
- this.scanAll(loader);
1532
- });
1533
- }
1534
-
1535
- scanAll(loader) {
1536
- const channel = this.productService.findChannelById(this.searchFilter.ChannelID, loader.Options.Channel);
1537
- this.productService.scanAll(this.searchFilter.ChannelID, this.searchFilter.ScanFull, this.searchFilter.UpdatedProduct, this.searchFilter.Async).subscribe(result => {
1538
- if (this.searchFilter.Async) {
1539
- this.toastr.warning("You will be notified when the scan is completed.", "Scan In Progress", {
1540
- toastClass: 'ngx-toastr toast-waiting'
1541
- });
1542
- } else {
1543
- // init loader to get last sync date and get new data after scan
1544
- this.initPageLoader();
1545
- this.toastr.success(`Successfully scanned from ${channel?.Name}`, "Success");
1546
- }
1547
- });
1548
- }
1549
-
1550
- updateStock(products) {
1551
- let selectedVariant = this.productService.selectedVariantProduct(products);
1552
- let payloadRequest = selectedVariant.map(variant => {
1553
- return {
1554
- ID: variant.ID,
1555
- ChannelID: variant.Channel[0].ChannelID,
1556
- Code: variant.Code,
1557
- Price: variant.UnitPrice
1558
- };
1559
- });
1560
- let reqPayload = {
1561
- ListChannelID: [this.searchFilter.ChannelID],
1562
- ListPrice: payloadRequest
1563
- };
1564
- this.http.post("/api/Price/UpdateChannel", reqPayload).subscribe(() => {
1565
- this.search();
1566
- this.toastr.success(`Successfully updated ${reqPayload.ListPrice.length} variants in ${reqPayload.ListChannelID.length} channels`, "Success");
1567
- });
1568
- }
1569
-
1570
- refreshPrice(variant) {
1571
- let params = {
1572
- ChannelItemID: variant?.Channel[0].ChannelItemID,
1573
- ChannelVariationID: variant?.Channel[0]?.ChannelVariationID,
1574
- ChannelID: variant?.Channel[0]?.ChannelID,
1575
- VariantID: variant.ID
1576
- };
1577
- this.http.post("/api/Price/RefreshPriceChannel", params).subscribe(result => {
1578
- this.toastr.success("Successfully updated", "Success");
1579
- this.search();
1580
- });
1581
- }
1582
- /**
1583
- * Function called in search button
1584
- * Set pageNumber to the first page
1585
- * @param filter
1586
- */
1587
-
1588
-
1589
- search() {
1590
- this.paginationService.resetToFirstPage(this.searchFilter);
1591
- }
1592
-
1593
- getRowCount() {
1594
- this.paginationService.hideCount = false;
1595
- this.allDataCount$ = this.http.post(`/API/${this.allDataCountEndpoint}`, this.searchFilter);
1596
- }
1597
-
1598
- onNextPage() {
1599
- this.paginationService.onNextPage(this.searchFilter);
1600
- }
1601
-
1602
- onLastPage() {
1603
- this.http.post(`/API/${this.allDataCountEndpoint}`, this.searchFilter).subscribe({
1604
- next: response => {
1605
- this.paginationService.getAllData(this.searchFilter, response.Total);
1606
- }
1607
- });
1608
- }
1609
-
1610
- openTableDialog(variant, product, loader) {
1611
- let dialogVariant = JSON.parse(JSON.stringify(variant));
1612
- const dialogRef = this.dialog.open(src_app_sharing_module_table_table_dialog_table_dialog_component__WEBPACK_IMPORTED_MODULE_2__.TableDialogComponent, {
1613
- data: {
1614
- Name: product.Name,
1615
- Variant: dialogVariant,
1616
- ChannelID: dialogVariant?.Channel[0]?.ChannelID,
1617
- Table: "price",
1618
- ChannelItemID: dialogVariant?.Channel[0]?.ChannelItemID
1619
- }
1620
- });
1621
- dialogRef.afterClosed().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.filter)(val => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_0__.Constants.IsNotEmpty(val))).subscribe(result => {
1622
- this.updateItemAfterDialog(result, loader, variant);
1623
- });
1624
- }
1625
-
1626
- updateItemAfterDialog(item, loader, variant) {
1627
- let params = {
1628
- ID: item.ChannelID,
1629
- ChannelItemID: item.ChannelItemID,
1630
- ChannelVariantID: item.ChannelVariationID,
1631
- Price: parseFloat(item.Price),
1632
- VariantID: item.ID,
1633
- SKU: item.Sku
1634
- };
1635
- this.http.post("/api/Price/UpdatePriceByID", params).subscribe(result => {
1636
- const channel = this.productService.findChannelById(params.ID, loader.Options.Channel);
1637
- this.toastr.success(`Successfully updated ${item.ItemName} (${item.VarName}) inventory in ${channel.Name} to ${params.Price}`, "Success");
1638
-
1639
- if (variant.Channel[0]) {
1640
- variant.Channel[0].Price = params.Price;
1641
- }
1642
- });
1643
- }
1644
-
1645
- onSelectAllSKU(checked, product) {
1646
- product = product.map(val => {
1647
- val.Variants = val.Variants.map(variant => {
1648
- variant.selected = checked;
1649
- return variant;
1650
- });
1651
- return val;
1652
- });
1653
- }
1654
-
1655
- onZoomImage(ev, imageUrl) {
1656
- this.biggerPictureService.openBiggerPicture(ev, imageUrl);
1657
- }
1658
-
1659
- ngOnDestroy() {
1660
- this.paginationService.destroy();
1661
- }
1662
-
1663
- }
1664
-
1665
- PriceSingleChannelComponent.ɵfac = function PriceSingleChannelComponent_Factory(t) {
1666
- return new (t || PriceSingleChannelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_services_http_service__WEBPACK_IMPORTED_MODULE_4__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_services_infinite_pagination_infinite_pagination_service__WEBPACK_IMPORTED_MODULE_5__.InfinitePaginationService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_12__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_13__.MatDialog), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_services_product_service__WEBPACK_IMPORTED_MODULE_6__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_services_biggerPicture_service__WEBPACK_IMPORTED_MODULE_7__.BiggerPictureService));
1667
- };
1668
-
1669
- PriceSingleChannelComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({
1670
- type: PriceSingleChannelComponent,
1671
- selectors: [["app-price-single-channel"]],
1672
- decls: 2,
1673
- vars: 3,
1674
- consts: [[3, "headerTitle", "text", "textChange", "onSubmit", 4, "ngIf"], [3, "headerTitle", "text", "textChange", "onSubmit"], ["container", ""], ["type", "number", 3, "ngModel", "ngModelChange"], [4, "ngIf"], [1, "d-flex"], ["type", "button", "data-cy", "scanInPos", "class", "btn btn-outline-secondary shadow rounded me-3", 3, "click", 4, "ngIf"], ["class", "btn btn-success", 3, "click", 4, "ngIf"], ["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", "ps-12", 2, "width", "36%"], ["name", "differentInventory", 3, "ngModel", "ngModelChange", "toggleChange"], [1, "fw-bold"], [1, "text-start"], [1, "text-end", 2, "width", "20%"], ["type", "checkbox", 1, "me-3", 3, "change"], [1, "text-end"], ["name", "channelOption", 3, "clearable", "ngModel", "ngModelChange", "change"], [3, "value", 4, "ngFor", "ngForOf"], [2, "width", "4%"], [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"], ["class", "btn-group", 4, "ngIf"], [3, "value"], [2, "width", "18px", "margin-right", "10px", 3, "src"], [1, "ms-2"], ["target", "_blank", 3, "href"], [1, "fas", "external-link-custom", "fa-external-link-alt"], [1, "align-middle"], ["type", "checkbox", 3, "ngModel", "ngModelChange", 4, "ngIf"], [1, "text-end", 3, "ngClass"], ["class", "row justify-content-end me-0", 4, "ngIf"], [1, "row"], [1, "col-12", "ps-0", "d-flex", "justify-content-between"], [1, "fas", "external-link-custom", "fa-lg", "fa-external-link-alt"], ["matTooltip", "Refresh Unit Price according to seller center", 1, "pl-5", "cursor-pointer", 2, "color", "var(--bs-link-color)", 3, "click"], [1, "fas", "external-link-custom", "fa-sync", "fa-lg"], [1, "text-start", 2, "width", "0%", 3, "rowSpan"], [1, "d-flex", "align-items-center", "justify-content-start"], ["type", "checkbox", "class", "me-3", 3, "ngModel", "ngModelChange", 4, "ngIf"], ["class", "border rounded w-img cursor-pointer", "style", "margin-left: 20px", 3, "src", "click", 4, "ngIf", "ngIfElse"], ["elsePic", ""], [1, "text-start", 3, "rowSpan"], [1, "item-name", "mb-0"], ["type", "checkbox", 1, "me-3", 3, "ngModel", "ngModelChange"], [1, "border", "rounded", "w-img", "cursor-pointer", 2, "margin-left", "20px", 3, "src", "click"], ["src", "//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png", 1, "border", "rounded", "w-img", 2, "margin-left", "20px"], ["type", "checkbox", 3, "ngModel", "ngModelChange"], [1, "row", "justify-content-end", "me-0"], [1, "col-8", "ps-0", "pe-12", "text-end", 2, "cursor", "pointer", 3, "click"], [2, "cursor", "pointer", 3, "click"], ["title", "Retreive rows count", 1, "border", "p-3"], [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"], ["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"]],
1675
- template: function PriceSingleChannelComponent_Template(rf, ctx) {
1676
- if (rf & 1) {
1677
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](0, PriceSingleChannelComponent_mainpanel_0_Template, 11, 9, "mainpanel", 0);
1678
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipe"](1, "async");
1679
- }
1680
-
1681
- if (rf & 2) {
1682
- _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpipeBind1"](1, 1, ctx.loader$));
1683
- }
1684
- },
1685
- dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_14__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_14__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_14__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_8__.MainPanelComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__.NgSelectComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__.NgOptionComponent, _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_17__.MatSlideToggle, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_18__.MatTooltip, _angular_common__WEBPACK_IMPORTED_MODULE_14__.AsyncPipe, _angular_common__WEBPACK_IMPORTED_MODULE_14__.DecimalPipe],
1686
- styles: [".w-img[_ngcontent-%COMP%] {\n width: 40px;\n height: 40px;\n}\n\ninput[type=checkbox][_ngcontent-%COMP%] {\n width: 15px;\n height: 15px;\n}\n\ni.fas.custom-size[_ngcontent-%COMP%] {\n font-size: 13px;\n}\n\n.item-name[_ngcontent-%COMP%] {\n font-size: larger;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByaWNlLXNpbmdsZS1jaGFubmVsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7QUFDSjs7QUFFQTtFQUNJLFdBQUE7RUFDQSxZQUFBO0FBQ0o7O0FBRUE7RUFDSSxlQUFBO0FBQ0o7O0FBRUE7RUFDSSxpQkFBQTtBQUNKIiwiZmlsZSI6InByaWNlLXNpbmdsZS1jaGFubmVsLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnctaW1nIHtcclxuICAgIHdpZHRoOjQwcHg7XHJcbiAgICBoZWlnaHQ6NDBweDtcclxufVxyXG5cclxuaW5wdXRbdHlwZT1cImNoZWNrYm94XCJdIHtcclxuICAgIHdpZHRoOiAxNXB4O1xyXG4gICAgaGVpZ2h0OiAxNXB4XHJcbn1cclxuXHJcbmkuZmFzLmN1c3RvbS1zaXplIHtcclxuICAgIGZvbnQtc2l6ZTogMTNweDtcclxufVxyXG5cclxuLml0ZW0tbmFtZSB7XHJcbiAgICBmb250LXNpemU6IGxhcmdlcjtcclxufSJdfQ== */"]
1687
- });
1688
-
1689
- /***/ }),
1690
-
1691
- /***/ 8286:
1692
- /*!***********************************************!*\
1693
- !*** ./src/app/menu/price/price.component.ts ***!
1694
- \***********************************************/
1695
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1696
-
1697
- __webpack_require__.r(__webpack_exports__);
1698
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1699
- /* harmony export */ "PriceComponent": () => (/* binding */ PriceComponent)
1700
- /* harmony export */ });
1701
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
1702
- /* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
1703
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
1704
-
1705
-
1706
-
1707
- class PriceComponent {
1708
- constructor() {
1709
- this.priceTabs = [
1710
- { Title: 'Single Channel Comparison', Url: '/menu/price/SingleChannel' },
1711
- { Title: 'Multi Channel Comparison', Url: '/menu/price/pos' },
1712
- { Title: 'Custom Channel Price', Url: '/menu/price/OutletPrice' }
1713
- ];
1714
- }
1715
- }
1716
- PriceComponent.ɵfac = function PriceComponent_Factory(t) { return new (t || PriceComponent)(); };
1717
- 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) {
1718
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "nav", 0)(1, "div", 1)(2, "div");
1719
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "nav-tab", 2);
1720
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
1721
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "router-outlet");
1722
- } if (rf & 2) {
1723
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
1724
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("Tabs", ctx.priceTabs);
1725
- } }, 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 */"] });
1726
-
1727
-
1728
- /***/ }),
1729
-
1730
- /***/ 823:
1731
- /*!********************************************!*\
1732
- !*** ./src/app/menu/price/price.module.ts ***!
1733
- \********************************************/
1734
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1735
-
1736
- __webpack_require__.r(__webpack_exports__);
1737
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1738
- /* harmony export */ "PriceModule": () => (/* binding */ PriceModule)
1739
- /* harmony export */ });
1740
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 4666);
1741
- /* harmony import */ var _price_pos_channel_price_pos_channel_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./price-pos-channel/price-pos-channel.component */ 8622);
1742
- /* harmony import */ var _custom_channel_price_custom_channel_price_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./custom-channel-price/custom-channel-price.component */ 4035);
1743
- /* harmony import */ var _price_single_channel_price_single_channel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./price-single-channel/price-single-channel.component */ 8863);
1744
- /* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
1745
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../main-panel/main-panel.component */ 7481);
1746
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/router */ 124);
1747
- /* harmony import */ var _price_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./price.component */ 8286);
1748
- /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 2508);
1749
- /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
1750
- /* harmony import */ var _price_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./price-routing.module */ 3658);
1751
- /* harmony import */ var _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/slide-toggle */ 4714);
1752
- /* 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);
1753
- /* harmony import */ var _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/material/checkbox */ 4792);
1754
- /* harmony import */ var src_app_sharing_module_table_table_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/sharing-module/table/table.component */ 6114);
1755
- /* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/material/tooltip */ 6896);
1756
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 2560);
1757
-
1758
-
1759
-
1760
-
1761
-
1762
-
1763
-
1764
-
1765
-
1766
-
1767
-
1768
-
1769
-
1770
-
1771
-
1772
-
1773
-
1774
- class PriceModule {
1775
- }
1776
- PriceModule.ɵfac = function PriceModule_Factory(t) { return new (t || PriceModule)(); };
1777
- PriceModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineNgModule"]({ type: PriceModule });
1778
- PriceModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.CommonModule,
1779
- _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormsModule,
1780
- _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_3__.NavTabModule,
1781
- _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__.MainPanelModule,
1782
- _angular_router__WEBPACK_IMPORTED_MODULE_12__.RouterModule,
1783
- _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__.NgSelectModule,
1784
- _price_routing_module__WEBPACK_IMPORTED_MODULE_6__.PriceRoutingModule,
1785
- _angular_forms__WEBPACK_IMPORTED_MODULE_11__.ReactiveFormsModule,
1786
- _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_14__.MatSlideToggleModule,
1787
- src_app_sharing_module_radio_options_radio_options__WEBPACK_IMPORTED_MODULE_7__.RadioOptionsModule,
1788
- _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_15__.MatCheckboxModule,
1789
- src_app_sharing_module_table_table_component__WEBPACK_IMPORTED_MODULE_8__.TableModule,
1790
- _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_16__.MatTooltipModule] });
1791
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsetNgModuleScope"](PriceModule, { declarations: [_price_component__WEBPACK_IMPORTED_MODULE_5__.PriceComponent,
1792
- _price_pos_channel_price_pos_channel_component__WEBPACK_IMPORTED_MODULE_0__.PricePosChannelComponent,
1793
- _custom_channel_price_custom_channel_price_component__WEBPACK_IMPORTED_MODULE_1__.CustomChannelPriceComponent,
1794
- _price_single_channel_price_single_channel_component__WEBPACK_IMPORTED_MODULE_2__.PriceSingleChannelComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.CommonModule,
1795
- _angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormsModule,
1796
- _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_3__.NavTabModule,
1797
- _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__.MainPanelModule,
1798
- _angular_router__WEBPACK_IMPORTED_MODULE_12__.RouterModule,
1799
- _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__.NgSelectModule,
1800
- _price_routing_module__WEBPACK_IMPORTED_MODULE_6__.PriceRoutingModule,
1801
- _angular_forms__WEBPACK_IMPORTED_MODULE_11__.ReactiveFormsModule,
1802
- _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_14__.MatSlideToggleModule,
1803
- src_app_sharing_module_radio_options_radio_options__WEBPACK_IMPORTED_MODULE_7__.RadioOptionsModule,
1804
- _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_15__.MatCheckboxModule,
1805
- src_app_sharing_module_table_table_component__WEBPACK_IMPORTED_MODULE_8__.TableModule,
1806
- _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_16__.MatTooltipModule] }); })();
1807
-
1808
-
1809
- /***/ }),
1810
-
1811
- /***/ 4452:
1812
- /*!***************************************************************!*\
1813
- !*** ./src/app/sharing-module/radio-options/radio-options.ts ***!
1814
- \***************************************************************/
1815
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1816
-
1817
- __webpack_require__.r(__webpack_exports__);
1818
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1819
- /* harmony export */ "RadioOptionsComponent": () => (/* binding */ RadioOptionsComponent),
1820
- /* harmony export */ "RadioOptionsModule": () => (/* binding */ RadioOptionsModule)
1821
- /* harmony export */ });
1822
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 4666);
1823
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560);
1824
- /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508);
1825
- /* harmony import */ var _angular_material_radio__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/radio */ 2922);
1826
-
1827
-
1828
-
1829
-
1830
-
1831
-
1832
-
1833
-
1834
- function RadioOptionsComponent_mat_radio_button_2_Template(rf, ctx) { if (rf & 1) {
1835
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-radio-button", 3);
1836
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
1837
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
1838
- } if (rf & 2) {
1839
- const item_r1 = ctx.$implicit;
1840
- const index_r2 = ctx.index;
1841
- const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
1842
- _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] : "");
1843
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
1844
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r1.Value, "");
1845
- } }
1846
- const _c0 = function (a0) { return { "border-0": a0 }; };
1847
- class RadioOptionsComponent {
1848
- constructor() {
1849
- this.modelChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
1850
- this.border = false;
1851
- this.tooltipsText = [];
1852
- }
1853
- change(event) {
1854
- this.modelChange.emit(event);
1855
- }
1856
- }
1857
- RadioOptionsComponent.ɵfac = function RadioOptionsComponent_Factory(t) { return new (t || RadioOptionsComponent)(); };
1858
- 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) {
1859
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "mat-radio-group", 1);
1860
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function RadioOptionsComponent_Template_mat_radio_group_ngModelChange_1_listener($event) { return ctx.change($event); });
1861
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, RadioOptionsComponent_mat_radio_button_2_Template, 2, 4, "mat-radio-button", 2);
1862
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
1863
- } if (rf & 2) {
1864
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](3, _c0, ctx.border == false));
1865
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
1866
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.model);
1867
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
1868
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.options);
1869
- } }, 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== */"] });
1870
- class RadioOptionsModule {
1871
- }
1872
- RadioOptionsModule.ɵfac = function RadioOptionsModule_Factory(t) { return new (t || RadioOptionsModule)(); };
1873
- RadioOptionsModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: RadioOptionsModule });
1874
- RadioOptionsModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule,
1875
- _angular_material_radio__WEBPACK_IMPORTED_MODULE_2__.MatRadioModule,
1876
- _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormsModule] });
1877
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](RadioOptionsModule, { declarations: [RadioOptionsComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule,
1878
- _angular_material_radio__WEBPACK_IMPORTED_MODULE_2__.MatRadioModule,
1879
- _angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormsModule], exports: [RadioOptionsComponent] }); })();
1880
-
1881
-
1882
- /***/ })
1883
-
1884
- }]);
1885
- //# sourceMappingURL=src_app_menu_price_price_module_ts.js.map