marketplacepos 2.4.6 → 2.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/assets/lbd/_sidebar-and-main-panel.scss +1 -1
- package/Marketplace/assets/version-adjustment-v5.scss +9 -0
- package/Marketplace/common.js +238 -0
- package/Marketplace/common.js.map +1 -0
- package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js +9551 -0
- package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js.map +1 -0
- package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js +797 -0
- package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js.map +1 -0
- package/Marketplace/default-node_modules_angular_material_fesm2020_slide-toggle_mjs.js +669 -0
- package/Marketplace/default-node_modules_angular_material_fesm2020_slide-toggle_mjs.js.map +1 -0
- package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js +4632 -0
- package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js.map +1 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js +6841 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js.map +1 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-src_app_services_biggerPicture_service_ts-s-b16afe.js +3316 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-src_app_services_biggerPicture_service_ts-s-b16afe.js.map +1 -0
- package/Marketplace/default-src_app_model_enums_FilterType_enum_ts-src_app_sharing-module_table_table_component_ts.js +6219 -0
- package/Marketplace/default-src_app_model_enums_FilterType_enum_ts-src_app_sharing-module_table_table_component_ts.js.map +1 -0
- package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js +19965 -0
- package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js.map +1 -0
- package/Marketplace/index.html +23 -22
- package/Marketplace/main.js +622 -0
- package/Marketplace/main.js.map +1 -0
- package/Marketplace/polyfills.js +3398 -0
- package/Marketplace/polyfills.js.map +1 -0
- package/Marketplace/runtime.js +346 -0
- package/Marketplace/runtime.js.map +1 -0
- package/Marketplace/scripts.js +9 -0
- package/Marketplace/scripts.js.map +1 -0
- package/Marketplace/src_app_login_login_module_ts.js +651 -0
- package/Marketplace/src_app_login_login_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_ReportOrder_order_order_module_ts.js +872 -0
- package/Marketplace/src_app_menu_ReportOrder_order_order_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_ReportOrder_product-statistic_product-statistic_module_ts.js +422 -0
- package/Marketplace/src_app_menu_ReportOrder_product-statistic_product-statistic_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js +283 -0
- package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_channels_channels_module_ts.js +9605 -0
- package/Marketplace/src_app_menu_channels_channels_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_inventory_inventory_module_ts.js +1547 -0
- package/Marketplace/src_app_menu_inventory_inventory_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_logistic_logistic_module_ts.js +245 -0
- package/Marketplace/src_app_menu_logistic_logistic_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_menu_module_ts.js +40326 -0
- package/Marketplace/src_app_menu_menu_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_notification_notification_module_ts.js +285 -0
- package/Marketplace/src_app_menu_notification_notification_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_object-log_logs_module_ts.js +1817 -0
- package/Marketplace/src_app_menu_object-log_logs_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_orders_orders_module_ts.js +4867 -0
- package/Marketplace/src_app_menu_orders_orders_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_price_price_module_ts.js +1885 -0
- package/Marketplace/src_app_menu_price_price_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_products_product_module_ts.js +2692 -0
- package/Marketplace/src_app_menu_products_product_module_ts.js.map +1 -0
- package/Marketplace/styles.css +16565 -0
- package/Marketplace/styles.css.map +1 -0
- package/Marketplace/vendor.js +71624 -0
- package/Marketplace/vendor.js.map +1 -0
- package/package.json +1 -1
- package/Marketplace/162.4f60927eda97cc16.js +0 -1
- package/Marketplace/171.9284c660e58d6f8c.js +0 -1
- package/Marketplace/174.981a3e729681507b.js +0 -1
- package/Marketplace/25.ba3606ad0ea92b4a.js +0 -1
- package/Marketplace/360.4fa1f449dc516500.js +0 -1
- package/Marketplace/369.d711344db7113e55.js +0 -1
- package/Marketplace/387.6e9471375d261f28.js +0 -1
- package/Marketplace/3rdpartylicenses.txt +0 -568
- package/Marketplace/463.e1b8208c6f571003.js +0 -1
- package/Marketplace/512.96a1a3c8c51a8727.js +0 -1
- package/Marketplace/516.57bcab321d07d544.js +0 -1
- package/Marketplace/585.9e916b668a91cc94.js +0 -1
- package/Marketplace/6.fc79ecc0c0a33462.js +0 -1
- package/Marketplace/61.481724edf2d23475.js +0 -1
- package/Marketplace/616.fb179a9605c3e98c.js +0 -1
- package/Marketplace/716.8918af413ba6d384.js +0 -1
- package/Marketplace/717.03a2e00d3bca2d89.js +0 -1
- package/Marketplace/739.82b92600f9519019.js +0 -1
- package/Marketplace/796.d34bd45b5a924fca.js +0 -1
- package/Marketplace/832.40bafce037098f88.js +0 -1
- package/Marketplace/874.63ae9bf5eecf410e.js +0 -1
- package/Marketplace/983.e83c887fe86ec996.js +0 -1
- package/Marketplace/common.3f5874655db24424.js +0 -1
- package/Marketplace/main.f2cf6124e7df7f02.js +0 -1
- package/Marketplace/polyfills.8d85b0533e3f867a.js +0 -1
- package/Marketplace/runtime.ba9ecd190eb3a539.js +0 -1
- package/Marketplace/scripts.09af772bfa77d50d.js +0 -1
- package/Marketplace/styles.dc183203b654c19c.css +0 -20
|
@@ -0,0 +1,2692 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
(self["webpackChunkpos_marketplace"] = self["webpackChunkpos_marketplace"] || []).push([["src_app_menu_products_product_module_ts"],{
|
|
3
|
+
|
|
4
|
+
/***/ 2741:
|
|
5
|
+
/*!************************************************************************!*\
|
|
6
|
+
!*** ./src/app/menu/products/duplicate-sku/duplicate-sku.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 */ "DuplicateSkuComponent": () => (/* binding */ DuplicateSkuComponent)
|
|
13
|
+
/* harmony export */ });
|
|
14
|
+
/* harmony import */ var src_app_model_Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/model/Constants */ 1889);
|
|
15
|
+
/* harmony import */ var src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/model/ProductFilter */ 1290);
|
|
16
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
17
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
18
|
+
/* harmony import */ var src_app_services_product_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/product.service */ 6082);
|
|
19
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
20
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
21
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
22
|
+
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
|
|
23
|
+
/* harmony import */ var _sharing_module_custom_paginator_custom_paginator_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../sharing-module/custom-paginator/custom-paginator.component */ 6732);
|
|
24
|
+
/* harmony import */ var _sharing_module_duplicate_product_card_duplicate_product_card_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../sharing-module/duplicate-product-card/duplicate-product-card.component */ 5631);
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
function DuplicateSkuComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span", 9);
|
|
38
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "img", 10);
|
|
39
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
40
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
|
|
41
|
+
} if (rf & 2) {
|
|
42
|
+
const item_r5 = ctx.item;
|
|
43
|
+
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
|
44
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
45
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("src", ctx_r0.getChannelLogo(item_r5.TypeID), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
|
|
46
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
47
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", item_r5.Name, " ");
|
|
48
|
+
} }
|
|
49
|
+
function DuplicateSkuComponent_ng_container_11_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
50
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 12);
|
|
51
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "app-duplicate-product-card", 13);
|
|
52
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
53
|
+
} if (rf & 2) {
|
|
54
|
+
const product_r9 = ctx.$implicit;
|
|
55
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
56
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("imageForZoom", product_r9.ImageUrl)("title", product_r9.Name)("code", product_r9.Code)("image", product_r9.ThumbnailURL)("channels", product_r9.Channel);
|
|
57
|
+
} }
|
|
58
|
+
function DuplicateSkuComponent_ng_container_11_Template(rf, ctx) { if (rf & 1) {
|
|
59
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
|
|
60
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, DuplicateSkuComponent_ng_container_11_div_1_Template, 2, 5, "div", 11);
|
|
61
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
|
|
62
|
+
} if (rf & 2) {
|
|
63
|
+
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
|
64
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
65
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r1.products);
|
|
66
|
+
} }
|
|
67
|
+
function DuplicateSkuComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
68
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 14)(1, "div");
|
|
69
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 15);
|
|
70
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
71
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "h4", 16);
|
|
72
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4, "No product found");
|
|
73
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
74
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "h6", 17);
|
|
75
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](6, "Once you have a duplicate product");
|
|
76
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
77
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](7, "h6", 18);
|
|
78
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](8, "you`ll see them here");
|
|
79
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
80
|
+
} }
|
|
81
|
+
function DuplicateSkuComponent_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
+
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
|
|
83
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
|
|
84
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "div", 19)(2, "div", 20)(3, "app-custom-paginator", 21);
|
|
85
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("next", function DuplicateSkuComponent_ng_container_14_Template_app_custom_paginator_next_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r10.onNextPage()); })("previous", function DuplicateSkuComponent_ng_container_14_Template_app_custom_paginator_previous_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r12.onPrevPage()); })("total", function DuplicateSkuComponent_ng_container_14_Template_app_custom_paginator_total_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r11); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r13.getRowCount()); });
|
|
86
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
|
87
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
|
|
88
|
+
} if (rf & 2) {
|
|
89
|
+
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
|
90
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
|
|
91
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("filter", ctx_r4.searchFilter)("totaldata", ctx_r4.products == null ? null : ctx_r4.products.length)("paginationTotal", ctx_r4.rowCount)("hasClicked", ctx_r4.hasClickedRowCount);
|
|
92
|
+
} }
|
|
93
|
+
class DuplicateSkuComponent {
|
|
94
|
+
constructor(httpService, productService) {
|
|
95
|
+
this.httpService = httpService;
|
|
96
|
+
this.productService = productService;
|
|
97
|
+
this.searchFilter = new src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_1__.ProductFilter();
|
|
98
|
+
this.products = [];
|
|
99
|
+
this.hasClickedRowCount = false;
|
|
100
|
+
this.getPageLoader();
|
|
101
|
+
}
|
|
102
|
+
getPageLoader() {
|
|
103
|
+
this.productService.loader()
|
|
104
|
+
.subscribe((result) => {
|
|
105
|
+
this.searchFilter = result.Filter;
|
|
106
|
+
this.searchFilter.PageSize = result.Filter.RowCount;
|
|
107
|
+
this.channelOptions = result.Options.Channel;
|
|
108
|
+
this.getProducts();
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
getProducts() {
|
|
112
|
+
const payload = {
|
|
113
|
+
ChannelID: this.searchFilter.ChannelID,
|
|
114
|
+
RowCount: this.searchFilter.RowCount,
|
|
115
|
+
PageNumber: this.searchFilter.PageNumber,
|
|
116
|
+
text: this.searchFilter.text
|
|
117
|
+
};
|
|
118
|
+
this.httpService
|
|
119
|
+
.post("/api/product/GetDuplicateInChannel", payload)
|
|
120
|
+
.subscribe((result) => {
|
|
121
|
+
this.products = result.Data;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
onSearch(text) {
|
|
125
|
+
this.searchFilter.text = text;
|
|
126
|
+
this.hasClickedRowCount = false;
|
|
127
|
+
this.getProducts();
|
|
128
|
+
}
|
|
129
|
+
onClearFilter() {
|
|
130
|
+
this.searchFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_0__.Constants.GuidEMpty;
|
|
131
|
+
}
|
|
132
|
+
getChannelLogo(channelType) {
|
|
133
|
+
return src_app_model_Constants__WEBPACK_IMPORTED_MODULE_0__.Constants.getChannelLogoByTypeId(channelType);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Change to next page
|
|
137
|
+
* @param pageEvent The event from paginator
|
|
138
|
+
*/
|
|
139
|
+
onNextPage() {
|
|
140
|
+
this.searchFilter.PageNumber = this.searchFilter.PageNumber + 1;
|
|
141
|
+
this.getProducts();
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Change to next page
|
|
145
|
+
* @param pageEvent The event from paginator
|
|
146
|
+
*/
|
|
147
|
+
onPrevPage() {
|
|
148
|
+
this.searchFilter.PageNumber = this.searchFilter.PageNumber - 1;
|
|
149
|
+
this.getProducts();
|
|
150
|
+
}
|
|
151
|
+
getRowCount() {
|
|
152
|
+
let payload = {
|
|
153
|
+
text: this.searchFilter.text,
|
|
154
|
+
ChannelID: this.searchFilter.ChannelID,
|
|
155
|
+
};
|
|
156
|
+
this.httpService.post('/api/product/GetDuplicateInChannelRowCount', payload)
|
|
157
|
+
.subscribe((result) => {
|
|
158
|
+
this.hasClickedRowCount = true;
|
|
159
|
+
this.rowCount = result.Total;
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
DuplicateSkuComponent.ɵfac = function DuplicateSkuComponent_Factory(t) { return new (t || DuplicateSkuComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_2__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_services_product_service__WEBPACK_IMPORTED_MODULE_3__.ProductService)); };
|
|
164
|
+
DuplicateSkuComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({ type: DuplicateSkuComponent, selectors: [["app-duplicate-sku"]], decls: 15, vars: 6, consts: [["headerTitle", "Multiple Listed SKU", "textButton", " Search", "description", "SKU(s) which is listed more than one time (one to many)", 3, "onSubmit"], ["container", ""], ["bindLabel", "Name", "name", "channelid", "bindValue", "ID", "placeholder", "Select Channel", 1, "center-text", 3, "clearable", "items", "ngModel", "ngModelChange", "clear"], ["ng-option-tmp", ""], [1, "container-fluid"], [1, "row", "mt-8", "mx-1"], [4, "ngIf", "ngIfElse"], ["EMPTY", ""], [4, "ngIf"], [1, "me-2"], ["alt", "", 2, "width", "18px", 3, "src"], ["class", "col-12 col-md-6 col-xl-4 px-3 my-3", 4, "ngFor", "ngForOf"], [1, "col-12", "col-md-6", "col-xl-4", "px-3", "my-3"], [3, "imageForZoom", "title", "code", "image", "channels"], [1, "d-flex", "flex-column", "justify-content-center", "align-items-center", 2, "margin-top", "26vh"], [1, "far", "fa-file", "text-secondary", 2, "font-size", "95px"], [1, "text-secondary", "mt-6"], [1, "text-secondary", "fw-normal", "m-2"], [1, "text-secondary", "fw-normal"], [1, "row", "mt-2", "justify-content-end"], [1, "col-md-12"], [3, "filter", "totaldata", "paginationTotal", "hasClicked", "next", "previous", "total"]], template: function DuplicateSkuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
165
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "mainpanel", 0);
|
|
166
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("onSubmit", function DuplicateSkuComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.onSearch($event); });
|
|
167
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
|
|
168
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](5, "Channel");
|
|
169
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
170
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "ng-select", 2);
|
|
171
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngModelChange", function DuplicateSkuComponent_Template_ng_select_ngModelChange_6_listener($event) { return ctx.searchFilter.ChannelID = $event; })("clear", function DuplicateSkuComponent_Template_ng_select_clear_6_listener() { return ctx.onClearFilter(); });
|
|
172
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](7, DuplicateSkuComponent_ng_template_7_Template, 3, 2, "ng-template", 3);
|
|
173
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()();
|
|
174
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](8, "content")(9, "div", 4)(10, "div", 5);
|
|
175
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](11, DuplicateSkuComponent_ng_container_11_Template, 2, 1, "ng-container", 6);
|
|
176
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](12, DuplicateSkuComponent_ng_template_12_Template, 9, 0, "ng-template", null, 7, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplateRefExtractor"]);
|
|
177
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
178
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](14, DuplicateSkuComponent_ng_container_14_Template, 4, 4, "ng-container", 8);
|
|
179
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
|
180
|
+
} if (rf & 2) {
|
|
181
|
+
const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵreference"](13);
|
|
182
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](6);
|
|
183
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("clearable", true)("items", ctx.channelOptions)("ngModel", ctx.searchFilter.ChannelID);
|
|
184
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
|
|
185
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", (ctx.products == null ? null : ctx.products.length) > 0)("ngIfElse", _r2);
|
|
186
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
|
|
187
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", (ctx.products == null ? null : ctx.products.length) > 0);
|
|
188
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_9__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__.MainPanelComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__.NgSelectComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__.NgOptionTemplateDirective, _sharing_module_custom_paginator_custom_paginator_component__WEBPACK_IMPORTED_MODULE_5__.CustomPaginatorComponent, _sharing_module_duplicate_product_card_duplicate_product_card_component__WEBPACK_IMPORTED_MODULE_6__.DuplicateProductCardComponent], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJkdXBsaWNhdGUtc2t1LmNvbXBvbmVudC5zY3NzIn0= */"] });
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
/***/ }),
|
|
192
|
+
|
|
193
|
+
/***/ 9949:
|
|
194
|
+
/*!**********************************************************!*\
|
|
195
|
+
!*** ./src/app/menu/products/in-pos/in-pos.component.ts ***!
|
|
196
|
+
\**********************************************************/
|
|
197
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
198
|
+
|
|
199
|
+
__webpack_require__.r(__webpack_exports__);
|
|
200
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
201
|
+
/* harmony export */ "InPosComponent": () => (/* binding */ InPosComponent)
|
|
202
|
+
/* harmony export */ });
|
|
203
|
+
/* harmony import */ var src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/model/ProductFilter */ 1290);
|
|
204
|
+
/* harmony import */ var _modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../modals/scan-dialog/scan-dialog.component */ 8231);
|
|
205
|
+
/* harmony import */ var _modals_uploadProductDialog_uploadProductDialog_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../modals/uploadProductDialog/uploadProductDialog.component */ 1702);
|
|
206
|
+
/* harmony import */ var _modals_modal_variant_modal_variant_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../modals/modal-variant/modal-variant.component */ 9673);
|
|
207
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs */ 116);
|
|
208
|
+
/* harmony import */ var src_app_model_Constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/model/Constants */ 1889);
|
|
209
|
+
/* harmony import */ var _modals_modal_uploadMultiple_product_modal_uploadMultiple_product_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../modals/modal-uploadMultiple-product/modal-uploadMultiple-product.component */ 1608);
|
|
210
|
+
/* harmony import */ var src_app_model_enums_ChannelType_enum__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/model/enums/ChannelType.enum */ 9694);
|
|
211
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
212
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
213
|
+
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-toastr */ 4817);
|
|
214
|
+
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
|
|
215
|
+
/* harmony import */ var src_app_services_product_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/services/product.service */ 6082);
|
|
216
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
217
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
218
|
+
/* harmony import */ var _sharing_module_product_card_product_card_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../sharing-module/product-card/product-card.component */ 6956);
|
|
219
|
+
/* harmony import */ var _sharing_module_custom_paginator_custom_paginator_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../sharing-module/custom-paginator/custom-paginator.component */ 6732);
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
function InPosComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
238
|
+
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
|
|
239
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "button", 10);
|
|
240
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function InPosComponent_button_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r4.onOpenScanDialog()); });
|
|
241
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "i", 11);
|
|
242
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, " Scan Channel ");
|
|
243
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
244
|
+
} }
|
|
245
|
+
function InPosComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
246
|
+
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
|
|
247
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "button", 12);
|
|
248
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function InPosComponent_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r6.onScanMultipleProduct()); });
|
|
249
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "i", 11);
|
|
250
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2);
|
|
251
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
252
|
+
} if (rf & 2) {
|
|
253
|
+
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
|
|
254
|
+
let tmp_0_0;
|
|
255
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
|
|
256
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" Scan Selected Product (", (tmp_0_0 = ctx_r1.productService.selectedProduct(ctx_r1.products)) == null ? null : tmp_0_0.length, ") ");
|
|
257
|
+
} }
|
|
258
|
+
function InPosComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
259
|
+
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
|
|
260
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "button", 13);
|
|
261
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function InPosComponent_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r8.onUploadMultipleProductSingleChannel()); });
|
|
262
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "i", 14);
|
|
263
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, " Upload Bulk ");
|
|
264
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
265
|
+
} }
|
|
266
|
+
function InPosComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
267
|
+
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
|
|
268
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 15)(1, "app-product-card", 16);
|
|
269
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("onUpload", function InPosComponent_div_8_Template_app_product_card_onUpload_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r13); const product_r10 = restoredCtx.$implicit; const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r12.onUploadToMultipleChannel(product_r10)); })("onScan", function InPosComponent_div_8_Template_app_product_card_onScan_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r13); const product_r10 = restoredCtx.$implicit; const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r14.onScanSingleProduct(product_r10)); })("onDescEvent", function InPosComponent_div_8_Template_app_product_card_onDescEvent_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r13); const i_r11 = restoredCtx.index; const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r15.onOpenDialogVariant(i_r11)); })("onCheckBoxChange", function InPosComponent_div_8_Template_app_product_card_onCheckBoxChange_1_listener($event) { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r13); const product_r10 = restoredCtx.$implicit; return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"]((product_r10["selected"] = $event)); });
|
|
270
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
|
|
271
|
+
} if (rf & 2) {
|
|
272
|
+
const product_r10 = ctx.$implicit;
|
|
273
|
+
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
|
|
274
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
|
|
275
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("productId", product_r10.ID)("title", product_r10 == null ? null : product_r10.Name)("image", product_r10 == null ? null : product_r10.ThumbnailUrl)("description", (product_r10 == null ? null : product_r10.Variants.length) > 1 ? (product_r10 == null ? null : product_r10.Variants.length) + " Variants" : null)("channels", ctx_r3.productService.getChannelProduct(product_r10))("code", ctx_r3.getVariantCode(product_r10 == null ? null : product_r10.Variants))("showCheckBox", (product_r10 == null ? null : product_r10.Channel.length) < ctx_r3.channelOptions.length)("scanButton", true)("uploadButton", product_r10 == null ? null : product_r10.hasUpload)("imageForZoom", product_r10 == null ? null : product_r10.ImageUrl);
|
|
276
|
+
} }
|
|
277
|
+
class InPosComponent {
|
|
278
|
+
constructor(http, toastr, dialog, productService) {
|
|
279
|
+
this.http = http;
|
|
280
|
+
this.toastr = toastr;
|
|
281
|
+
this.dialog = dialog;
|
|
282
|
+
this.productService = productService;
|
|
283
|
+
this.searchFilter = new src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_0__.ProductFilter();
|
|
284
|
+
this.rowCount = 0;
|
|
285
|
+
this.getLoaderPage();
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Get the channel list, filter options and calls GetProducts()
|
|
289
|
+
*/
|
|
290
|
+
getLoaderPage() {
|
|
291
|
+
this.productService.loader().subscribe((result) => {
|
|
292
|
+
this.channelOptions = result.Options.Channel;
|
|
293
|
+
this.searchFilter.PageNumber = result.Filter.PageNumber;
|
|
294
|
+
this.searchFilter.RowCount = result.Filter.RowCount;
|
|
295
|
+
this.searchFilter.ChannelID = null;
|
|
296
|
+
this.searchFilter.PageSize = 100;
|
|
297
|
+
this.getProducts();
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Calls GetInPOS to get the product list
|
|
302
|
+
*/
|
|
303
|
+
getProducts() {
|
|
304
|
+
const payload = {
|
|
305
|
+
PageNumber: this.searchFilter.PageNumber,
|
|
306
|
+
RowCount: this.searchFilter.RowCount,
|
|
307
|
+
text: this.searchFilter.text,
|
|
308
|
+
};
|
|
309
|
+
this.http
|
|
310
|
+
.post("/api/product/GetInPOS", payload)
|
|
311
|
+
.subscribe((result) => {
|
|
312
|
+
this.products = result.Data;
|
|
313
|
+
this.rowCount =
|
|
314
|
+
result.Total == null
|
|
315
|
+
? this.searchFilter.RowCount
|
|
316
|
+
: result.Total.toString();
|
|
317
|
+
this.products = this.productService.checkProductHasUploadBtn(this.products, this.channelOptions);
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Opens the scan dialog and pass the Channel list and the filter variable
|
|
322
|
+
* It will return the modified filter and will run the scan function that the user has selected (full or quick)
|
|
323
|
+
*/
|
|
324
|
+
onOpenScanDialog() {
|
|
325
|
+
let dialogFilter = JSON.parse(JSON.stringify(this.searchFilter));
|
|
326
|
+
dialogFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_4__.Constants.GuidEMpty;
|
|
327
|
+
const dialogRef = this.dialog.open(_modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_1__.ScanDialogComponent, {
|
|
328
|
+
data: {
|
|
329
|
+
filter: dialogFilter,
|
|
330
|
+
channelOptions: this.channelOptions,
|
|
331
|
+
},
|
|
332
|
+
width: "40%",
|
|
333
|
+
});
|
|
334
|
+
dialogRef
|
|
335
|
+
.afterClosed()
|
|
336
|
+
.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.filter)((result) => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_4__.Constants.IsNotEmpty(result)))
|
|
337
|
+
.subscribe((result) => {
|
|
338
|
+
this.searchFilter.ChannelID = result.ChannelID;
|
|
339
|
+
this.searchFilter.ScanFull = result.ScanFull;
|
|
340
|
+
this.searchFilter.UpdatedProduct = result.UpdatedProduct;
|
|
341
|
+
this.searchFilter.Async = result.Async;
|
|
342
|
+
this.scanAllProduct();
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Scan the products,then updates the product list and show the total result in a toastr
|
|
347
|
+
*/
|
|
348
|
+
scanAllProduct() {
|
|
349
|
+
if (this.searchFilter.ChannelID == null) {
|
|
350
|
+
this.toastr.error("Please Select Channel", "Error");
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
this.productService
|
|
354
|
+
.scanAll(this.searchFilter.ChannelID, this.searchFilter.ScanFull, this.searchFilter.UpdatedProduct, this.searchFilter.Async)
|
|
355
|
+
.subscribe((result) => {
|
|
356
|
+
if (this.searchFilter.Async) {
|
|
357
|
+
this.toastr.warning("You will be notified when the scan is completed.", "Scan In Progress", { toastClass: 'ngx-toastr toast-waiting' });
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
this.getLoaderPage();
|
|
361
|
+
let channel = this.productService.findChannelById(this.searchFilter.ChannelID, this.channelOptions);
|
|
362
|
+
this.productService.successToastrScanAllProduct(result, channel, !this.searchFilter.UpdatedProduct);
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Opens a dialog that shows the list of the product's variants
|
|
368
|
+
* @param index The product's index
|
|
369
|
+
*/
|
|
370
|
+
onOpenDialogVariant(index) {
|
|
371
|
+
this.dialog.open(_modals_modal_variant_modal_variant_component__WEBPACK_IMPORTED_MODULE_3__.ModalVariantComponent, {
|
|
372
|
+
data: {
|
|
373
|
+
title: this.products[index].Name,
|
|
374
|
+
variants: this.products[index].Variants,
|
|
375
|
+
},
|
|
376
|
+
width: "50%",
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* open upload product dialog for upload multiple product to single channel
|
|
381
|
+
*/
|
|
382
|
+
onUploadMultipleProductSingleChannel() {
|
|
383
|
+
this.dialog
|
|
384
|
+
.open(_modals_uploadProductDialog_uploadProductDialog_component__WEBPACK_IMPORTED_MODULE_2__.UploadProductDialogComponent, {
|
|
385
|
+
width: "350px",
|
|
386
|
+
data: {
|
|
387
|
+
item: null,
|
|
388
|
+
selectedItemMissingChannel: this.channelOptions,
|
|
389
|
+
},
|
|
390
|
+
})
|
|
391
|
+
.afterClosed()
|
|
392
|
+
.subscribe((result) => {
|
|
393
|
+
if (result) {
|
|
394
|
+
let channelID = result.channelID;
|
|
395
|
+
let categoryID = result.categoryID;
|
|
396
|
+
this.uploadMultipleProduct(channelID, categoryID);
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* call api upload multiple product to single channel
|
|
402
|
+
* @param channelID
|
|
403
|
+
* @param categoryID
|
|
404
|
+
*/
|
|
405
|
+
uploadMultipleProduct(channelID, categoryID) {
|
|
406
|
+
const selectedProducts = this.productService.selectedProduct(this.products);
|
|
407
|
+
this.productService
|
|
408
|
+
.uploadMultipleProduct(selectedProducts, channelID, categoryID)
|
|
409
|
+
.subscribe((result) => {
|
|
410
|
+
this.getProducts();
|
|
411
|
+
const selectedChannel = this.productService.findChannelById(channelID, this.channelOptions);
|
|
412
|
+
if (selectedProducts.length > 1) {
|
|
413
|
+
this.toastr.success("Successfully uploaded " +
|
|
414
|
+
selectedProducts.length +
|
|
415
|
+
" Product to channel " +
|
|
416
|
+
selectedChannel?.Name, "Success");
|
|
417
|
+
}
|
|
418
|
+
else {
|
|
419
|
+
this.toastr.success(selectedChannel?.Name + " Successfully Created", "Success");
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* open modal upload single product to multiple channel
|
|
425
|
+
* @param product
|
|
426
|
+
*/
|
|
427
|
+
onUploadToMultipleChannel(product) {
|
|
428
|
+
let productChannel = this.productService.getChannelProduct(product);
|
|
429
|
+
product.Channel = productChannel;
|
|
430
|
+
let unselectedChannel = this.productService.filterUnselectedChannel(product, this.channelOptions);
|
|
431
|
+
this.dialog
|
|
432
|
+
.open(_modals_modal_uploadMultiple_product_modal_uploadMultiple_product_component__WEBPACK_IMPORTED_MODULE_5__.ModalUploadMultipleProductComponent, {
|
|
433
|
+
width: "700px",
|
|
434
|
+
data: {
|
|
435
|
+
title: `Upload - ${product.Name}`,
|
|
436
|
+
channels: unselectedChannel,
|
|
437
|
+
products: [product],
|
|
438
|
+
},
|
|
439
|
+
})
|
|
440
|
+
.afterClosed()
|
|
441
|
+
.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.filter)(result => result !== "CANCEL"))
|
|
442
|
+
.subscribe((result) => {
|
|
443
|
+
this.getProducts();
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Searches the product based on text in the search box
|
|
448
|
+
* Will search the title, SKU, and variant names of the product
|
|
449
|
+
* @param event The event from the search bar
|
|
450
|
+
*/
|
|
451
|
+
searchProduct(text) {
|
|
452
|
+
this.searchFilter.text = text;
|
|
453
|
+
this.getProducts();
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Change to next page
|
|
457
|
+
* @param pageEvent The event from paginator
|
|
458
|
+
*/
|
|
459
|
+
onNextPage() {
|
|
460
|
+
this.searchFilter.PageNumber = this.searchFilter.PageNumber + 1;
|
|
461
|
+
this.getProducts();
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Change to next page
|
|
465
|
+
* @param pageEvent The event from paginator
|
|
466
|
+
*/
|
|
467
|
+
onPrevPage() {
|
|
468
|
+
this.searchFilter.PageNumber = this.searchFilter.PageNumber - 1;
|
|
469
|
+
this.getProducts();
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Opens the scan dialog and pass the Channel list and the filter variable
|
|
473
|
+
* It will return the modified filter and will run the scan function that the user has selected (full or quick)
|
|
474
|
+
*/
|
|
475
|
+
onScanMultipleProduct() {
|
|
476
|
+
let dialogFilter = JSON.parse(JSON.stringify(this.searchFilter));
|
|
477
|
+
dialogFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_4__.Constants.GuidEMpty;
|
|
478
|
+
let channels = this.productService.filterChannelByTypeId(this.channelOptions, [src_app_model_enums_ChannelType_enum__WEBPACK_IMPORTED_MODULE_6__.ChannelType.Tokopedia, src_app_model_enums_ChannelType_enum__WEBPACK_IMPORTED_MODULE_6__.ChannelType.Tiktok]);
|
|
479
|
+
const dialogRef = this.dialog.open(_modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_1__.ScanDialogComponent, {
|
|
480
|
+
data: {
|
|
481
|
+
filter: dialogFilter,
|
|
482
|
+
channelOptions: channels,
|
|
483
|
+
isSingleChannel: true,
|
|
484
|
+
},
|
|
485
|
+
width: "40%",
|
|
486
|
+
});
|
|
487
|
+
dialogRef
|
|
488
|
+
.afterClosed()
|
|
489
|
+
.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.filter)((result) => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_4__.Constants.IsNotEmpty(result)))
|
|
490
|
+
.subscribe((result) => {
|
|
491
|
+
this.searchFilter.ChannelID = result.ChannelID;
|
|
492
|
+
this.searchFilter.ScanFull = result.ScanFull;
|
|
493
|
+
this.searchFilter.UpdatedProduct = result.UpdatedProduct;
|
|
494
|
+
let products = this.productService.selectedProduct(this.products);
|
|
495
|
+
let codes = this.productService.getVariantCodesProducts(products);
|
|
496
|
+
this.scanSingleProduct(codes);
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
onScanSingleProduct(product) {
|
|
500
|
+
let dialogFilter = JSON.parse(JSON.stringify(this.searchFilter));
|
|
501
|
+
dialogFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_4__.Constants.GuidEMpty;
|
|
502
|
+
this.dialog
|
|
503
|
+
.open(_modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_1__.ScanDialogComponent, {
|
|
504
|
+
data: {
|
|
505
|
+
filter: dialogFilter,
|
|
506
|
+
channelOptions: this.channelOptions,
|
|
507
|
+
isSingleChannel: true,
|
|
508
|
+
},
|
|
509
|
+
width: "40%",
|
|
510
|
+
})
|
|
511
|
+
.afterClosed()
|
|
512
|
+
.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.filter)((result) => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_4__.Constants.IsNotEmpty(result)))
|
|
513
|
+
.subscribe((result) => {
|
|
514
|
+
this.searchFilter.ChannelID = result.ChannelID;
|
|
515
|
+
const codes = this.productService.getVariantCodesProduct(product);
|
|
516
|
+
this.scanSingleProduct(codes);
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* call api scan single product to single channel
|
|
521
|
+
* @param ids
|
|
522
|
+
*/
|
|
523
|
+
scanSingleProduct(ids) {
|
|
524
|
+
this.productService.scanSingle(this.searchFilter.ChannelID, ids).subscribe({
|
|
525
|
+
next: (res) => {
|
|
526
|
+
if (res) {
|
|
527
|
+
this.toastr.success("Successfully Scan ", "Success");
|
|
528
|
+
}
|
|
529
|
+
else {
|
|
530
|
+
let child = this.productService.findChannelById(this.searchFilter.ChannelID, this.channelOptions);
|
|
531
|
+
this.toastr.error(`This product is not existed in ${child?.Name} `, `Error`);
|
|
532
|
+
}
|
|
533
|
+
this.searchFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_4__.Constants.GuidEMpty;
|
|
534
|
+
if (res) {
|
|
535
|
+
this.getProducts();
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
error: (err) => {
|
|
539
|
+
this.searchFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_4__.Constants.GuidEMpty;
|
|
540
|
+
},
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Get variant code product for CARD UI
|
|
545
|
+
* @param variants
|
|
546
|
+
* @returns
|
|
547
|
+
*/
|
|
548
|
+
getVariantCode(variants) {
|
|
549
|
+
let variantCode;
|
|
550
|
+
if (variants.length > 1) {
|
|
551
|
+
let model = variants[0].model ? variants[0].model : "";
|
|
552
|
+
variantCode = model + variants[0].Code;
|
|
553
|
+
}
|
|
554
|
+
if (variants.length == 1) {
|
|
555
|
+
variantCode = variants[0].Code;
|
|
556
|
+
}
|
|
557
|
+
return variantCode;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
InPosComponent.ɵfac = function InPosComponent_Factory(t) { return new (t || InPosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_7__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_14__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_15__.MatDialog), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_services_product_service__WEBPACK_IMPORTED_MODULE_8__.ProductService)); };
|
|
561
|
+
InPosComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineComponent"]({ type: InPosComponent, selectors: [["app-in-pos"]], decls: 12, vars: 9, consts: [["hideSearchDropdown", "true", "hideSearchDropdown", "false", "description", "All products which is already available in POS", 3, "headerTitle", "onSubmit"], ["type", "button", "data-cy", "scanSoldinChannel", "class", "btn btn-outline-secondary shadow rounded", 3, "click", 4, "ngIf"], ["type", "button", "data-cy", "scanInPos", "class", "btn btn-outline-secondary shadow rounded me-2", 3, "click", 4, "ngIf"], ["class", "btn btn-light shadow rounded ms-2", 3, "click", 4, "ngIf"], [1, "container-fluid"], [1, "row", "mt-8"], ["class", "col-12 col-md-6 col-xl-4 px-3 my-3", 4, "ngFor", "ngForOf"], [1, "row", "mt-2", "justify-content-end"], [1, "col-md-12"], [3, "filter", "totaldata", "paginationTotal", "hasClicked", "next", "previous"], ["type", "button", "data-cy", "scanSoldinChannel", 1, "btn", "btn-outline-secondary", "shadow", "rounded", 3, "click"], [1, "fas", "fa-lg", "fa-crosshairs"], ["type", "button", "data-cy", "scanInPos", 1, "btn", "btn-outline-secondary", "shadow", "rounded", "me-2", 3, "click"], [1, "btn", "btn-light", "shadow", "rounded", "ms-2", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-upload"], [1, "col-12", "col-md-6", "col-xl-4", "px-3", "my-3"], [3, "productId", "title", "image", "description", "channels", "code", "showCheckBox", "scanButton", "uploadButton", "imageForZoom", "onUpload", "onScan", "onDescEvent", "onCheckBoxChange"]], template: function InPosComponent_Template(rf, ctx) { if (rf & 1) {
|
|
562
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "mainpanel", 0);
|
|
563
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("onSubmit", function InPosComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.searchProduct($event); });
|
|
564
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "actions");
|
|
565
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, InPosComponent_button_2_Template, 3, 0, "button", 1);
|
|
566
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, InPosComponent_button_3_Template, 3, 1, "button", 2);
|
|
567
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, InPosComponent_button_4_Template, 3, 0, "button", 3);
|
|
568
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
569
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](5, "content")(6, "div", 4)(7, "div", 5);
|
|
570
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](8, InPosComponent_div_8_Template, 2, 10, "div", 6);
|
|
571
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
572
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](9, "div", 7)(10, "div", 8)(11, "app-custom-paginator", 9);
|
|
573
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("next", function InPosComponent_Template_app_custom_paginator_next_11_listener() { return ctx.onNextPage(); })("previous", function InPosComponent_Template_app_custom_paginator_previous_11_listener() { return ctx.onPrevPage(); });
|
|
574
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()()()()();
|
|
575
|
+
} if (rf & 2) {
|
|
576
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("headerTitle", "In POS" + " (" + ctx.rowCount + ")");
|
|
577
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
|
|
578
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx.productService.hasSelection(ctx.products));
|
|
579
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
|
|
580
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.productService.hasSelection(ctx.products));
|
|
581
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
|
|
582
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.productService.hasSelection(ctx.products));
|
|
583
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4);
|
|
584
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngForOf", ctx.products);
|
|
585
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
|
|
586
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("filter", ctx.searchFilter)("totaldata", ctx.products == null ? null : ctx.products.length)("paginationTotal", ctx.rowCount)("hasClicked", true);
|
|
587
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_16__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_16__.NgIf, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_9__.MainPanelComponent, _sharing_module_product_card_product_card_component__WEBPACK_IMPORTED_MODULE_10__.ProductCardComponent, _sharing_module_custom_paginator_custom_paginator_component__WEBPACK_IMPORTED_MODULE_11__.CustomPaginatorComponent], styles: [".badge-pill[_ngcontent-%COMP%] {\n padding-bottom: 16px !important;\n}\n\n.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%] {\n background: #dfeffc;\n border: 1px solid #dfeffc;\n}\n\n.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%] {\n visibility: hidden;\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n border: 1px solid #ddd;\n border-radius: 3px;\n margin-right: 10px;\n cursor: pointer;\n padding: 10px;\n margin-bottom: 10px;\n color: #000;\n width: 80px;\n text-align: center;\n}\n\n.modal-dialog[_ngcontent-%COMP%] {\n max-width: 30% !important;\n}\n\n.product[_ngcontent-%COMP%] {\n height: 100% !important;\n}\n\n.text-larger[_ngcontent-%COMP%] {\n font-size: larger;\n}\n\n.row[_ngcontent-%COMP%] {\n margin-left: 0;\n margin-right: 0;\n}\n\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n\n.link[_ngcontent-%COMP%] {\n color: #0202ab;\n cursor: pointer;\n}\n\n.px-1[_ngcontent-%COMP%] {\n padding-left: 5px !important;\n}\n\n.sku[_ngcontent-%COMP%] {\n color: dimgray;\n font-style: italic;\n}\n\n.badge-pill[_ngcontent-%COMP%] {\n height: 16px;\n}\n\n.itemTitle[_ngcontent-%COMP%] {\n text-overflow: ellipsis;\n \n white-space: nowrap;\n overflow: hidden;\n}\n\n.no-title[_ngcontent-%COMP%] {\n margin-top: 0.33em;\n margin-bottom: 0.33rem;\n}\n\n.mb-upload[_ngcontent-%COMP%] {\n padding-bottom: 0.625rem;\n}\n\n.my-1rem[_ngcontent-%COMP%] {\n margin-bottom: 1rem !important;\n margin-top: 1rem !important;\n}\n\n.pr-rem[_ngcontent-%COMP%] {\n padding-right: 0.6rem;\n}\n\n.text-larger[_ngcontent-%COMP%] {\n font-size: larger;\n}\n\n.bg-lightpink[_ngcontent-%COMP%] {\n background-color: #f9dede;\n}\n\n.bottom-buttons[_ngcontent-%COMP%] {\n margin-left: 97px;\n}\n\n@media (min-width: 1200px) {\n .max-w-xl[_ngcontent-%COMP%] {\n max-width: 205px;\n }\n}\n\n.img-logo[_ngcontent-%COMP%] {\n height: 24px;\n width: 24px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uXFxwcm9kdWN0cy5jb21wb25lbnQuc2NzcyIsImluLXBvcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLCtCQUFBO0FDQ0o7O0FERUE7RUFDSSxtQkFBQTtFQUNBLHlCQUFBO0FDQ0o7O0FERUE7RUFDSSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsT0FBQTtFQUNBLE1BQUE7QUNDSjs7QURFQTtFQUNJLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtFQUNBLGVBQUE7RUFDQSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0VBQ0EsV0FBQTtFQUNBLGtCQUFBO0FDQ0o7O0FERUE7RUFDSSx5QkFBQTtBQ0NKOztBREVBO0VBQ0ksdUJBQUE7QUNDSjs7QURFQTtFQUNJLGlCQUFBO0FDQ0o7O0FERUE7RUFDSSxjQUFBO0VBQ0EsZUFBQTtBQ0NKOztBREVBO0VBQ0kscUJBQUE7QUNDSjs7QURFQTtFQUNJLGNBQUE7RUFDQSxlQUFBO0FDQ0o7O0FERUE7RUFDQyw0QkFBQTtBQ0NEOztBREVBO0VBQ0ksY0FBQTtFQUNBLGtCQUFBO0FDQ0o7O0FERUE7RUFDSSxZQUFBO0FDQ0o7O0FERUE7RUFDSSx1QkFBQTtFQUVBLDhDQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtBQ0FKOztBREdBO0VB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FkZGluZy1ib3R0b206IDAuNjI1cmVtO1xyXG59XHJcblxyXG4ubXktMXJlbSB7XHJcbiAgICBtYXJnaW4tYm90dG9tOiAxcmVtICFpbXBvcnRhbnQ7XHJcbiAgICBtYXJnaW4tdG9wOiAxcmVtICFpbXBvcnRhbnQ7XHJcbn1cclxuXHJcbi5wci1yZW0ge1xyXG4gICAgcGFkZGluZy1yaWdodDogMC42cmVtO1xyXG59XHJcblxyXG4udGV4dC1sYXJnZXIge1xyXG4gICAgZm9udC1zaXplOiBsYXJnZXI7XHJcbn1cclxuXHJcbi5iZy1saWdodHBpbmsge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2Y5ZGVkZTtcclxufVxyXG5cclxuLmJvdHRvbS1idXR0b25ze1xyXG4gICAgbWFyZ2luLWxlZnQ6IDk3cHg7XHJcbn1cclxuXHJcbi8vIEV4dHJhIGxhcmdlIGRldmljZXMgKGxhcmdlIGRlc2t0b3BzLCAxMjAwcHggYW5kIHVwKVxyXG5AbWVkaWEgKG1pbi13aWR0aDogMTIwMHB4KSB7XHJcbiAgICAubWF4LXcteGx7XHJcbiAgICAgICAgbWF4LXdpZHRoOiAyMDVweDtcclxuICAgIH1cclxufVxyXG5cclxuIiwiQGltcG9ydCAnLi4vcHJvZHVjdHMuY29tcG9uZW50LnNjc3MnO1xyXG5cclxuLmltZy1sb2dvIHtcclxuICAgIGhlaWdodDogMjRweDtcclxuICAgIHdpZHRoOiAyNHB4O1xyXG59XHJcblxyXG4iXX0= */"] });
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
/***/ }),
|
|
591
|
+
|
|
592
|
+
/***/ 3915:
|
|
593
|
+
/*!**************************************************************************!*\
|
|
594
|
+
!*** ./src/app/menu/products/not-in-channel/not-in-channel.component.ts ***!
|
|
595
|
+
\**************************************************************************/
|
|
596
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
597
|
+
|
|
598
|
+
__webpack_require__.r(__webpack_exports__);
|
|
599
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
600
|
+
/* harmony export */ "NotInChannelComponent": () => (/* binding */ NotInChannelComponent)
|
|
601
|
+
/* harmony export */ });
|
|
602
|
+
/* harmony import */ var _modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../modals/scan-dialog/scan-dialog.component */ 8231);
|
|
603
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! rxjs */ 9337);
|
|
604
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! rxjs */ 635);
|
|
605
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ 116);
|
|
606
|
+
/* harmony import */ var src_app_model_Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/model/Constants */ 1889);
|
|
607
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
608
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
609
|
+
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
|
|
610
|
+
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-toastr */ 4817);
|
|
611
|
+
/* harmony import */ var src_app_services_product_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/product.service */ 6082);
|
|
612
|
+
/* 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);
|
|
613
|
+
/* harmony import */ var src_app_services_biggerPicture_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/services/biggerPicture.service */ 886);
|
|
614
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
615
|
+
/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/tooltip */ 6896);
|
|
616
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
function NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_ng_container_1_ng_container_3_Template(rf, ctx) {
|
|
632
|
+
if (rf & 1) {
|
|
633
|
+
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
|
|
634
|
+
|
|
635
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
|
|
636
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "img", 28);
|
|
637
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_ng_container_1_ng_container_3_Template_img_click_1_listener($event) {
|
|
638
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r18);
|
|
639
|
+
const product_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
|
|
640
|
+
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
|
|
641
|
+
return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r16.onZoomImage($event, product_r6 == null ? null : product_r6.ImageUrl));
|
|
642
|
+
});
|
|
643
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
644
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
if (rf & 2) {
|
|
648
|
+
const product_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
|
|
649
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
650
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("src", product_r6 == null ? null : product_r6.ImageUrl, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
function NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_ng_container_1_ng_template_4_Template(rf, ctx) {
|
|
655
|
+
if (rf & 1) {
|
|
656
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "img", 29);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
function NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_ng_container_1_Template(rf, ctx) {
|
|
661
|
+
if (rf & 1) {
|
|
662
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
|
|
663
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "td", 21)(2, "div", 22);
|
|
664
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](3, NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_ng_container_1_ng_container_3_Template, 2, 1, "ng-container", 23);
|
|
665
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](4, NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_ng_container_1_ng_template_4_Template, 1, 0, "ng-template", null, 24, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplateRefExtractor"]);
|
|
666
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
667
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "td", 25)(7, "h4", 26)(8, "span", 27);
|
|
668
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](9);
|
|
669
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
|
670
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
if (rf & 2) {
|
|
674
|
+
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵreference"](5);
|
|
675
|
+
|
|
676
|
+
const product_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
|
|
677
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
678
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("rowSpan", product_r6 == null ? null : product_r6.Variants.length);
|
|
679
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
680
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", product_r6 == null ? null : product_r6.ImageUrl)("ngIfElse", _r14);
|
|
681
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
|
|
682
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("rowSpan", product_r6 == null ? null : product_r6.Variants.length);
|
|
683
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
684
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("matTooltip", (product_r6 == null ? null : product_r6.Name == null ? null : product_r6.Name.length) > 50 ? product_r6 == null ? null : product_r6.Name : "");
|
|
685
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
686
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", product_r6 == null ? null : product_r6.Name, " ");
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
function NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_div_12_Template(rf, ctx) {
|
|
691
|
+
if (rf & 1) {
|
|
692
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "a", 17);
|
|
693
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "img", 30);
|
|
694
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
if (rf & 2) {
|
|
698
|
+
const channel_r21 = ctx.$implicit;
|
|
699
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
700
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("href", channel_r21.URL, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
|
|
701
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
702
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("src", channel_r21.Img, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"])("matTooltip", channel_r21.Name);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
function NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_div_15_Template(rf, ctx) {
|
|
707
|
+
if (rf & 1) {
|
|
708
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div");
|
|
709
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "img", 30);
|
|
710
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
if (rf & 2) {
|
|
714
|
+
const channel_r22 = ctx.$implicit;
|
|
715
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
716
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("src", channel_r22.Img, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"])("matTooltip", channel_r22.Name);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
function NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_Template(rf, ctx) {
|
|
721
|
+
if (rf & 1) {
|
|
722
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tr");
|
|
723
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_ng_container_1_Template, 10, 6, "ng-container", 13);
|
|
724
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](2, "td");
|
|
725
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
|
|
726
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
727
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](4, "td")(5, "span");
|
|
728
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](6);
|
|
729
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
730
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](7, "span", 16)(8, "a", 17);
|
|
731
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](9, "i", 18);
|
|
732
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
|
733
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](10, "td", 19)(11, "div", 20);
|
|
734
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](12, NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_div_12_Template, 3, 3, "div", 15);
|
|
735
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
736
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](13, "td", 19)(14, "div", 20);
|
|
737
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](15, NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_div_15_Template, 2, 2, "div", 15);
|
|
738
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
if (rf & 2) {
|
|
742
|
+
const variant_r8 = ctx.$implicit;
|
|
743
|
+
const i_r9 = ctx.index;
|
|
744
|
+
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](4);
|
|
745
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
746
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", i_r9 == 0);
|
|
747
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
748
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", variant_r8.Name, " ");
|
|
749
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
|
|
750
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", variant_r8.Code, " ");
|
|
751
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
752
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("href", "https://" + ctx_r7.hostName + "/menu/Products/Catalog/Variants/Info?ID=" + (variant_r8 == null ? null : variant_r8.ID), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
|
|
753
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
|
|
754
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", variant_r8 == null ? null : variant_r8.Available);
|
|
755
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
|
|
756
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", variant_r8 == null ? null : variant_r8.NotAvailable);
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
function NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_Template(rf, ctx) {
|
|
761
|
+
if (rf & 1) {
|
|
762
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
|
|
763
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_tr_1_Template, 16, 6, "tr", 15);
|
|
764
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
if (rf & 2) {
|
|
768
|
+
const product_r6 = ctx.$implicit;
|
|
769
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
770
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", product_r6.Variants);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
function NotInChannelComponent_mainpanel_0_tbody_22_Template(rf, ctx) {
|
|
775
|
+
if (rf & 1) {
|
|
776
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "tbody");
|
|
777
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, NotInChannelComponent_mainpanel_0_tbody_22_ng_container_1_Template, 2, 1, "ng-container", 15);
|
|
778
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
if (rf & 2) {
|
|
782
|
+
const products_r4 = ctx.ngIf;
|
|
783
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
784
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", products_r4);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
function NotInChannelComponent_mainpanel_0_div_24_span_5_Template(rf, ctx) {
|
|
789
|
+
if (rf & 1) {
|
|
790
|
+
const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
|
|
791
|
+
|
|
792
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span", 38);
|
|
793
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function NotInChannelComponent_mainpanel_0_div_24_span_5_Template_span_click_0_listener() {
|
|
794
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r29);
|
|
795
|
+
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
|
|
796
|
+
return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r28.getRowCount());
|
|
797
|
+
});
|
|
798
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "i", 39);
|
|
799
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, "?");
|
|
800
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
function NotInChannelComponent_mainpanel_0_div_24_span_6_Template(rf, ctx) {
|
|
805
|
+
if (rf & 1) {
|
|
806
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "span");
|
|
807
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](1);
|
|
808
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](2, "number");
|
|
809
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
if (rf & 2) {
|
|
813
|
+
const row_r30 = ctx.ngIf;
|
|
814
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
815
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](2, 1, row_r30 == null ? null : row_r30.Count));
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
function NotInChannelComponent_mainpanel_0_div_24_a_10_Template(rf, ctx) {
|
|
820
|
+
if (rf & 1) {
|
|
821
|
+
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
|
|
822
|
+
|
|
823
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 40);
|
|
824
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function NotInChannelComponent_mainpanel_0_div_24_a_10_Template_a_click_0_listener() {
|
|
825
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r32);
|
|
826
|
+
const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
|
|
827
|
+
return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r31.onNextPage());
|
|
828
|
+
});
|
|
829
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "i", 41);
|
|
830
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, " Next");
|
|
831
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
function NotInChannelComponent_mainpanel_0_div_24_a_11_Template(rf, ctx) {
|
|
836
|
+
if (rf & 1) {
|
|
837
|
+
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
|
|
838
|
+
|
|
839
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "a", 42);
|
|
840
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function NotInChannelComponent_mainpanel_0_div_24_a_11_Template_a_click_0_listener() {
|
|
841
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r34);
|
|
842
|
+
const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
|
|
843
|
+
return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r33.onLastPage());
|
|
844
|
+
});
|
|
845
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](1, "i", 43);
|
|
846
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2, " Last");
|
|
847
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
function NotInChannelComponent_mainpanel_0_div_24_Template(rf, ctx) {
|
|
852
|
+
if (rf & 1) {
|
|
853
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 31)(1, "div", 32)(2, "div", 33);
|
|
854
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](3);
|
|
855
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](4, "number");
|
|
856
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, NotInChannelComponent_mainpanel_0_div_24_span_5_Template, 3, 0, "span", 34);
|
|
857
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](6, NotInChannelComponent_mainpanel_0_div_24_span_6_Template, 3, 3, "span", 13);
|
|
858
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](7, "async");
|
|
859
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](8);
|
|
860
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
861
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](9, "div", 35);
|
|
862
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](10, NotInChannelComponent_mainpanel_0_div_24_a_10_Template, 3, 0, "a", 36);
|
|
863
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](11, NotInChannelComponent_mainpanel_0_div_24_a_11_Template, 3, 0, "a", 37);
|
|
864
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
if (rf & 2) {
|
|
868
|
+
const products_r23 = ctx.ngIf;
|
|
869
|
+
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2);
|
|
870
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
|
|
871
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" Showing 1 - ", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](4, 6, products_r23 == null ? null : products_r23.length), " of ");
|
|
872
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
873
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r3.paginationService.hideCount);
|
|
874
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
875
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !ctx_r3.paginationService.hideCount && _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](7, 8, ctx_r3.rowCount$));
|
|
876
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
877
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" records ~ ", ctx_r3.paginationService.footerPageNumber, " Page ");
|
|
878
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
879
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r3.paginationService.disableNextButton && !ctx_r3.paginationService.goToLastPage);
|
|
880
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
881
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r3.paginationService.disableNextButton && !ctx_r3.paginationService.goToLastPage);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
function NotInChannelComponent_mainpanel_0_Template(rf, ctx) {
|
|
886
|
+
if (rf & 1) {
|
|
887
|
+
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
|
|
888
|
+
|
|
889
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "mainpanel", 1);
|
|
890
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("onSubmit", function NotInChannelComponent_mainpanel_0_Template_mainpanel_onSubmit_0_listener($event) {
|
|
891
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r36);
|
|
892
|
+
const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
|
893
|
+
return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r35.searchProduct($event));
|
|
894
|
+
});
|
|
895
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "actions")(2, "button", 2);
|
|
896
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function NotInChannelComponent_mainpanel_0_Template_button_click_2_listener() {
|
|
897
|
+
const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r36);
|
|
898
|
+
const loader_r1 = restoredCtx.ngIf;
|
|
899
|
+
const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
|
900
|
+
return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r37.openScanDialog(loader_r1));
|
|
901
|
+
});
|
|
902
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](3, "i", 3);
|
|
903
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4, " Scan Channel ");
|
|
904
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
905
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "content")(6, "div", 4)(7, "div", 5)(8, "div", 6)(9, "table", 7)(10, "thead", 8)(11, "tr")(12, "th", 9);
|
|
906
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](13, "Product");
|
|
907
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
908
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](14, "th", 10);
|
|
909
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](15, "Variant");
|
|
910
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
911
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](16, "th", 10);
|
|
912
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](17, "SKU");
|
|
913
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
914
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](18, "th", 11);
|
|
915
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](19, "Available In");
|
|
916
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
917
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](20, "th", 12);
|
|
918
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](21, "Not Available In");
|
|
919
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
|
920
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](22, NotInChannelComponent_mainpanel_0_tbody_22_Template, 2, 1, "tbody", 13);
|
|
921
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](23, "async");
|
|
922
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
|
923
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](24, NotInChannelComponent_mainpanel_0_div_24_Template, 12, 10, "div", 14);
|
|
924
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](25, "async");
|
|
925
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
if (rf & 2) {
|
|
929
|
+
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
|
930
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("hideSearchDropdown", true);
|
|
931
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](22);
|
|
932
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](23, 3, ctx_r0.data$));
|
|
933
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
934
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](25, 5, ctx_r0.data$));
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
class NotInChannelComponent {
|
|
939
|
+
constructor(http, dialog, toastr, productService, paginationService, biggerPictureService) {
|
|
940
|
+
this.http = http;
|
|
941
|
+
this.dialog = dialog;
|
|
942
|
+
this.toastr = toastr;
|
|
943
|
+
this.productService = productService;
|
|
944
|
+
this.paginationService = paginationService;
|
|
945
|
+
this.biggerPictureService = biggerPictureService;
|
|
946
|
+
this.loaderAPI = "product/Load";
|
|
947
|
+
this.rowCountAPI = "product/GetNotInChannelRowCount";
|
|
948
|
+
this.notChannelAPI = "product/GetNotInChannelV2";
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
ngOnInit() {
|
|
952
|
+
this.initPageLoader();
|
|
953
|
+
this.iniData();
|
|
954
|
+
this.initHostName();
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
initHostName() {
|
|
958
|
+
const storageData = localStorage.getItem('Authorization');
|
|
959
|
+
this.hostName = JSON.parse(storageData)?.Host;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
initPageLoader() {
|
|
963
|
+
this.paginationService.fetchDataEndpoint = this.notChannelAPI;
|
|
964
|
+
this.loader$ = this.http.post(`api/${this.loaderAPI}`, {}).pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_8__.tap)(loader => {
|
|
965
|
+
this.filterSearch = loader.Filter;
|
|
966
|
+
this.paginationService.resetToFirstPage(loader.Filter);
|
|
967
|
+
}));
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
iniData() {
|
|
971
|
+
this.data$ = this.paginationService.data$.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_9__.map)(products => {
|
|
972
|
+
products = products.map(product => {
|
|
973
|
+
product.Variants = product.Variants.map(variant => {
|
|
974
|
+
variant.Available = this.productService.sortChannel(variant.Available);
|
|
975
|
+
variant.NotAvailable = this.productService.sortChannel(variant.NotAvailable);
|
|
976
|
+
variant.Available = this.assignLogoChannel(variant.Available);
|
|
977
|
+
variant.NotAvailable = this.assignLogoChannel(variant.NotAvailable);
|
|
978
|
+
return variant;
|
|
979
|
+
});
|
|
980
|
+
return product;
|
|
981
|
+
});
|
|
982
|
+
return products;
|
|
983
|
+
}));
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
assignLogoChannel(channels) {
|
|
987
|
+
channels = channels.map(channel => {
|
|
988
|
+
channel.Img = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_1__.Constants.getChannelLogoByTypeId(channel.TypeID);
|
|
989
|
+
return channel;
|
|
990
|
+
});
|
|
991
|
+
return channels;
|
|
992
|
+
}
|
|
993
|
+
/**
|
|
994
|
+
* Search box functionality
|
|
995
|
+
* @param event Event from search bar
|
|
996
|
+
*/
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
searchProduct(text) {
|
|
1000
|
+
this.filterSearch.text = text;
|
|
1001
|
+
this.paginationService.resetToFirstPage(this.filterSearch);
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* call api ScanOptimize for scan all product to single channel
|
|
1005
|
+
*/
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
scanAllProduct(loader) {
|
|
1009
|
+
let channel = this.productService.findChannelById(this.filterSearch.ChannelID, loader.Options.Channel);
|
|
1010
|
+
this.productService.scanAll(this.filterSearch.ChannelID, this.filterSearch.ScanFull, this.filterSearch.UpdatedProduct, this.filterSearch.Async).subscribe(res => {
|
|
1011
|
+
if (this.filterSearch.Async) {
|
|
1012
|
+
this.toastr.success("You will be notified when the scan is completed.", "Scan Asynchronous");
|
|
1013
|
+
} else {
|
|
1014
|
+
this.productService.successToastrScanAllProduct(res, channel, !this.filterSearch.UpdatedProduct);
|
|
1015
|
+
this.initPageLoader();
|
|
1016
|
+
}
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Opens the scan dialog and pass the Channel list and the filter variable
|
|
1021
|
+
* It will return the modified filter and will run the scan function that the user has selected (full or quick)
|
|
1022
|
+
*/
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
openScanDialog(loader) {
|
|
1026
|
+
let dialogFilter = JSON.parse(JSON.stringify(this.filterSearch));
|
|
1027
|
+
dialogFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_1__.Constants.GuidEMpty;
|
|
1028
|
+
const dialogRef = this.dialog.open(_modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ScanDialogComponent, {
|
|
1029
|
+
data: {
|
|
1030
|
+
filter: dialogFilter,
|
|
1031
|
+
channelOptions: loader.Options.Channel
|
|
1032
|
+
},
|
|
1033
|
+
width: "40%"
|
|
1034
|
+
});
|
|
1035
|
+
dialogRef.afterClosed().pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_10__.filter)(result => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_1__.Constants.IsNotEmpty(result))).subscribe(result => {
|
|
1036
|
+
this.filterSearch.ChannelID = result.ChannelID;
|
|
1037
|
+
this.filterSearch.ScanFull = result.ScanFull;
|
|
1038
|
+
this.filterSearch.UpdatedProduct = result.UpdatedProduct;
|
|
1039
|
+
this.filterSearch.Async = result.Async;
|
|
1040
|
+
this.scanAllProduct(loader);
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
getChannelLogoById(typeId) {
|
|
1045
|
+
let logo = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_1__.Constants.getChannelLogoByTypeId(typeId);
|
|
1046
|
+
return logo;
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* upload selected product to selected channel
|
|
1050
|
+
* @param channelID The channel's ID
|
|
1051
|
+
* @param itemID The item's ID
|
|
1052
|
+
*/
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
uploadProductToSingleChannel(product, channelId, categoryId, loader) {
|
|
1056
|
+
let channel = this.productService.findChannelById(channelId, loader.Options.Channel);
|
|
1057
|
+
this.productService.uploadMultipleProduct([product], channelId, categoryId).subscribe(result => {
|
|
1058
|
+
this.paginationService.resetToFirstPage(loader.Filter);
|
|
1059
|
+
this.toastr.success("Successfully uploaded " + product.Name + " to " + channel.Name, "Success");
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
getRowCount() {
|
|
1064
|
+
this.paginationService.hideCount = false;
|
|
1065
|
+
this.rowCount$ = this.http.post(`/api/${this.rowCountAPI}`, this.filterSearch);
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
onNextPage() {
|
|
1069
|
+
this.paginationService.onNextPage(this.filterSearch);
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
onLastPage() {
|
|
1073
|
+
this.http.post(`/api/${this.rowCountAPI}`, {}).subscribe({
|
|
1074
|
+
next: response => {
|
|
1075
|
+
this.filterSearch.PageNumber = 1;
|
|
1076
|
+
this.paginationService.getAllData(this.filterSearch, response.Count);
|
|
1077
|
+
}
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
onZoomImage(ev, imageUrl) {
|
|
1082
|
+
this.biggerPictureService.openBiggerPicture(ev, imageUrl);
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
ngOnDestroy() {
|
|
1086
|
+
this.paginationService.destroy();
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
NotInChannelComponent.ɵfac = function NotInChannelComponent_Factory(t) {
|
|
1092
|
+
return new (t || NotInChannelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_2__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_11__.MatDialog), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_12__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_services_product_service__WEBPACK_IMPORTED_MODULE_3__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_services_infinite_pagination_infinite_pagination_service__WEBPACK_IMPORTED_MODULE_4__.InfinitePaginationService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](src_app_services_biggerPicture_service__WEBPACK_IMPORTED_MODULE_5__.BiggerPictureService));
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
NotInChannelComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({
|
|
1096
|
+
type: NotInChannelComponent,
|
|
1097
|
+
selectors: [["app-not-in-channel"]],
|
|
1098
|
+
decls: 2,
|
|
1099
|
+
vars: 3,
|
|
1100
|
+
consts: [["headerTitle", "Not in Channel", "description", "SKU has not been sold on one of channels", 3, "hideSearchDropdown", "onSubmit", 4, "ngIf"], ["headerTitle", "Not in Channel", "description", "SKU has not been sold on one of channels", 3, "hideSearchDropdown", "onSubmit"], ["data-cy", "scanNotinChannel", "type", "button", 1, "btn", "btn-outline-secondary", "shadow", "rounded", 3, "click"], [1, "fas", "fa-lg", "fa-crosshairs"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table", "border-bottom"], [1, "thead-light", "sticky-top-thead"], ["colspan", "2", 1, "ms-5", "text-center", 2, "width", "450px"], [2, "width", "150px"], [2, "width", "20%"], [2, "width", "16%"], [4, "ngIf"], ["class", "d-flex justify-content-between mt-5", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "ms-1"], ["target", "_blank", 3, "href"], [1, "fas", "fa-lg", "fa-external-link-alt", "external-link-custom"], [2, "padding-left", "0px"], [1, "d-flex", "flex-wrap", "mb-1"], [1, "text-center", 3, "rowSpan"], [2, "padding-right", "0px"], [4, "ngIf", "ngIfElse"], ["elsePic", ""], [1, "text-start", 3, "rowSpan"], [1, "ms-5", "fw-normal", "text-ellipsis", 2, "max-width", "26vw !important"], [3, "matTooltip"], [1, "border", "rounded", "cursor-pointer", 2, "max-width", "40px", 3, "src", "click"], ["src", "//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png", 1, "border", "rounded", 2, "max-width", "40px"], ["alt", "", 1, "channel-logo", "cursor-pointer", "ms-4", "mt-3", 3, "src", "matTooltip"], [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"], [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"]],
|
|
1101
|
+
template: function NotInChannelComponent_Template(rf, ctx) {
|
|
1102
|
+
if (rf & 1) {
|
|
1103
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](0, NotInChannelComponent_mainpanel_0_Template, 26, 7, "mainpanel", 0);
|
|
1104
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipe"](1, "async");
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
if (rf & 2) {
|
|
1108
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpipeBind1"](1, 1, ctx.loader$));
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_13__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_13__.NgIf, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_14__.MatTooltip, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__.MainPanelComponent, _angular_common__WEBPACK_IMPORTED_MODULE_13__.AsyncPipe, _angular_common__WEBPACK_IMPORTED_MODULE_13__.DecimalPipe],
|
|
1112
|
+
styles: [".badge-pill[_ngcontent-%COMP%] {\n padding-bottom: 16px !important;\n}\n\n.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%] {\n background: #dfeffc;\n border: 1px solid #dfeffc;\n}\n\n.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%] {\n visibility: hidden;\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n border: 1px solid #ddd;\n border-radius: 3px;\n margin-right: 10px;\n cursor: pointer;\n padding: 10px;\n margin-bottom: 10px;\n color: #000;\n width: 80px;\n text-align: center;\n}\n\n.modal-dialog[_ngcontent-%COMP%] {\n max-width: 30% !important;\n}\n\n.product[_ngcontent-%COMP%] {\n height: 100% !important;\n}\n\n.text-larger[_ngcontent-%COMP%] {\n font-size: larger;\n}\n\n.row[_ngcontent-%COMP%] {\n margin-left: 0;\n margin-right: 0;\n}\n\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n\n.link[_ngcontent-%COMP%] {\n color: #0202ab;\n cursor: pointer;\n}\n\n.px-1[_ngcontent-%COMP%] {\n padding-left: 5px !important;\n}\n\n.sku[_ngcontent-%COMP%] {\n color: dimgray;\n font-style: italic;\n}\n\n.badge-pill[_ngcontent-%COMP%] {\n height: 16px;\n}\n\n.itemTitle[_ngcontent-%COMP%] {\n text-overflow: ellipsis;\n \n white-space: nowrap;\n overflow: hidden;\n}\n\n.no-title[_ngcontent-%COMP%] {\n margin-top: 0.33em;\n margin-bottom: 0.33rem;\n}\n\n.mb-upload[_ngcontent-%COMP%] {\n padding-bottom: 0.625rem;\n}\n\n.my-1rem[_ngcontent-%COMP%] {\n margin-bottom: 1rem !important;\n margin-top: 1rem !important;\n}\n\n.pr-rem[_ngcontent-%COMP%] {\n padding-right: 0.6rem;\n}\n\n.text-larger[_ngcontent-%COMP%] {\n font-size: larger;\n}\n\n.bg-lightpink[_ngcontent-%COMP%] {\n background-color: #f9dede;\n}\n\n.bottom-buttons[_ngcontent-%COMP%] {\n margin-left: 97px;\n}\n\n@media (min-width: 1200px) {\n .max-w-xl[_ngcontent-%COMP%] {\n max-width: 205px;\n }\n}\n\nthead[_ngcontent-%COMP%] {\n position: sticky;\n top: 0;\n}\n\n.channel-logo[_ngcontent-%COMP%] {\n width: 20px;\n}\n\n.w-img[_ngcontent-%COMP%] {\n width: 100%;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uXFxwcm9kdWN0cy5jb21wb25lbnQuc2NzcyIsIm5vdC1pbi1jaGFubmVsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksK0JBQUE7QUNDSjs7QURFQTtFQUNJLG1CQUFBO0VBQ0EseUJBQUE7QUNDSjs7QURFQTtFQUNJLGtCQUFBO0VBQ0Esa0JBQUE7RUFDQSxPQUFBO0VBQ0EsTUFBQTtBQ0NKOztBREVBO0VBQ0ksc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsZUFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7QUNDSjs7QURFQTtFQUNJLHlCQUFBO0FDQ0o7O0FERUE7RUFDSSx1QkFBQTtBQ0NKOztBREVBO0VBQ0ksaUJBQUE7QUNDSjs7QURFQTtFQUNJLGNBQUE7RUFDQSxlQUFBO0FDQ0o7O0FERUE7RUFDSSxxQkFBQTtBQ0NKOztBREVBO0VBQ0ksY0FBQTtFQUNBLGVBQUE7QUNDSjs7QURFQTtFQUNDLDRCQUFBO0FDQ0Q7O0FERUE7RUFDSSxjQUFBO0VBQ0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1113
|
+
});
|
|
1114
|
+
|
|
1115
|
+
/***/ }),
|
|
1116
|
+
|
|
1117
|
+
/***/ 7925:
|
|
1118
|
+
/*!******************************************************************!*\
|
|
1119
|
+
!*** ./src/app/menu/products/not-in-pos/not-in-pos.component.ts ***!
|
|
1120
|
+
\******************************************************************/
|
|
1121
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1122
|
+
|
|
1123
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1124
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1125
|
+
/* harmony export */ "NotInPosComponent": () => (/* binding */ NotInPosComponent)
|
|
1126
|
+
/* harmony export */ });
|
|
1127
|
+
/* harmony import */ var _modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../modals/scan-dialog/scan-dialog.component */ 8231);
|
|
1128
|
+
/* harmony import */ var _model_ProductFilter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../model/ProductFilter */ 1290);
|
|
1129
|
+
/* harmony import */ var _modals_modal_variants_modal_variants_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../modals/modal-variants/modal-variants.component */ 3943);
|
|
1130
|
+
/* harmony import */ var src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/model/Constants */ 1889);
|
|
1131
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ 116);
|
|
1132
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
1133
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
1134
|
+
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
|
|
1135
|
+
/* harmony import */ var src_app_services_product_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/services/product.service */ 6082);
|
|
1136
|
+
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-toastr */ 4817);
|
|
1137
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/router */ 124);
|
|
1138
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
1139
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
1140
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
1141
|
+
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
|
|
1142
|
+
/* harmony import */ var _sharing_module_product_card_product_card_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../sharing-module/product-card/product-card.component */ 6956);
|
|
1143
|
+
/* harmony import */ var _sharing_module_custom_paginator_custom_paginator_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../sharing-module/custom-paginator/custom-paginator.component */ 6732);
|
|
1144
|
+
/* harmony import */ var _angular_material_radio__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/material/radio */ 2922);
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
function NotInPosComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
1164
|
+
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
|
|
1165
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "button", 13);
|
|
1166
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function NotInPosComponent_button_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r5.openScanDialog()); });
|
|
1167
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "i", 14);
|
|
1168
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2, " Scan Channel ");
|
|
1169
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
|
|
1170
|
+
} }
|
|
1171
|
+
function NotInPosComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
1172
|
+
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
|
|
1173
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerStart"](0);
|
|
1174
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "button", 15);
|
|
1175
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("click", function NotInPosComponent_ng_container_3_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r8); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r7.onDownloadAllProduct("SELECTED")); });
|
|
1176
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](2, "i", 16);
|
|
1177
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](3);
|
|
1178
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
|
|
1179
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementContainerEnd"]();
|
|
1180
|
+
} if (rf & 2) {
|
|
1181
|
+
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
|
|
1182
|
+
let tmp_0_0;
|
|
1183
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](3);
|
|
1184
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" Download Product (", (tmp_0_0 = ctx_r1.productService.selectedProduct(ctx_r1.products)) == null ? null : tmp_0_0.length, ") ");
|
|
1185
|
+
} }
|
|
1186
|
+
function NotInPosComponent_ng_template_11_Template(rf, ctx) { if (rf & 1) {
|
|
1187
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "span", 17);
|
|
1188
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelement"](1, "img", 18);
|
|
1189
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
|
|
1190
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](2);
|
|
1191
|
+
} if (rf & 2) {
|
|
1192
|
+
const item_r9 = ctx.item;
|
|
1193
|
+
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
|
|
1194
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
|
|
1195
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("src", ctx_r2.getChannelLogo(item_r9.TypeID), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsanitizeUrl"]);
|
|
1196
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
|
|
1197
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtextInterpolate1"](" ", item_r9.Name, " ");
|
|
1198
|
+
} }
|
|
1199
|
+
const _c0 = function (a0) { return [a0]; };
|
|
1200
|
+
const _c1 = function () { return []; };
|
|
1201
|
+
function NotInPosComponent_div_25_Template(rf, ctx) { if (rf & 1) {
|
|
1202
|
+
const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
|
|
1203
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 19)(1, "app-product-card", 20);
|
|
1204
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("onCheckBoxChange", function NotInPosComponent_div_25_Template_app_product_card_onCheckBoxChange_1_listener($event) { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r15); const i_r13 = restoredCtx.index; const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r14.onSelectProduct($event, i_r13)); })("onDescEvent", function NotInPosComponent_div_25_Template_app_product_card_onDescEvent_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r15); const i_r13 = restoredCtx.index; const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r16.onShowVariantDetail(i_r13)); })("onDownload", function NotInPosComponent_div_25_Template_app_product_card_onDownload_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r15); const product_r12 = restoredCtx.$implicit; const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r17.onDownloadProduct(product_r12)); })("onScan", function NotInPosComponent_div_25_Template_app_product_card_onScan_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r15); const product_r12 = restoredCtx.$implicit; const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r18.onScanChannel(product_r12)); });
|
|
1205
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
|
|
1206
|
+
} if (rf & 2) {
|
|
1207
|
+
const product_r12 = ctx.$implicit;
|
|
1208
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
|
|
1209
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("showRedirectIcon", false)("title", product_r12 == null ? null : product_r12.Name)("image", product_r12 == null ? null : product_r12.Image)("imageForZoom", product_r12 == null ? null : product_r12.Image)("code", product_r12 == null ? null : product_r12.SKU)("description", (product_r12 == null ? null : product_r12.Variant == null ? null : product_r12.Variant.length) > 0 ? (product_r12 == null ? null : product_r12.Variant == null ? null : product_r12.Variant.length) + " Variants" : null)("downloadButton", true)("channels", (product_r12 == null ? null : product_r12.Channel) ? _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction1"](10, _c0, product_r12 == null ? null : product_r12.Channel) : _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵpureFunction0"](12, _c1))("showCheckBox", true)("scanButton", true);
|
|
1210
|
+
} }
|
|
1211
|
+
function NotInPosComponent_div_26_Template(rf, ctx) { if (rf & 1) {
|
|
1212
|
+
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵgetCurrentView"]();
|
|
1213
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "div", 21)(1, "div", 22)(2, "app-custom-paginator", 23);
|
|
1214
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("total", function NotInPosComponent_div_26_Template_app_custom_paginator_total_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r20); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r19.getRowCount()); })("next", function NotInPosComponent_div_26_Template_app_custom_paginator_next_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r20); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r21.onNextPage()); })("previous", function NotInPosComponent_div_26_Template_app_custom_paginator_previous_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵrestoreView"](_r20); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵresetView"](ctx_r22.onPreviousPage()); });
|
|
1215
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
|
|
1216
|
+
} if (rf & 2) {
|
|
1217
|
+
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵnextContext"]();
|
|
1218
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
|
|
1219
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("filter", ctx_r4.searchFilter)("totaldata", ctx_r4.products == null ? null : ctx_r4.products.length)("paginationTotal", ctx_r4.rowCount)("hasClicked", ctx_r4.hasClickRowCount);
|
|
1220
|
+
} }
|
|
1221
|
+
class NotInPosComponent {
|
|
1222
|
+
constructor(http, dialog, productService, toastrService, activateRouter) {
|
|
1223
|
+
this.http = http;
|
|
1224
|
+
this.dialog = dialog;
|
|
1225
|
+
this.productService = productService;
|
|
1226
|
+
this.toastrService = toastrService;
|
|
1227
|
+
this.activateRouter = activateRouter;
|
|
1228
|
+
this.searchFilter = new _model_ProductFilter__WEBPACK_IMPORTED_MODULE_1__.ProductFilter();
|
|
1229
|
+
this.hasClickRowCount = false;
|
|
1230
|
+
}
|
|
1231
|
+
ngOnInit() {
|
|
1232
|
+
this.activateRouter.queryParams
|
|
1233
|
+
.subscribe(val => {
|
|
1234
|
+
if (val.ID) {
|
|
1235
|
+
this.initPageLoader(val.ID);
|
|
1236
|
+
}
|
|
1237
|
+
else {
|
|
1238
|
+
this.initPageLoader(src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty);
|
|
1239
|
+
}
|
|
1240
|
+
});
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Calls the Load API
|
|
1244
|
+
* Used for initialization
|
|
1245
|
+
*/
|
|
1246
|
+
initPageLoader(channelID) {
|
|
1247
|
+
this.productService.loader(channelID)
|
|
1248
|
+
.subscribe((result) => {
|
|
1249
|
+
this.channelOptions = result.Options.Channel;
|
|
1250
|
+
this.searchFilter = result.Filter;
|
|
1251
|
+
this.searchFilter.PageSize = result.Filter.RowCount;
|
|
1252
|
+
this.getProducts();
|
|
1253
|
+
});
|
|
1254
|
+
}
|
|
1255
|
+
/**
|
|
1256
|
+
* Get products not in POS
|
|
1257
|
+
*/
|
|
1258
|
+
getProducts() {
|
|
1259
|
+
const payload = {
|
|
1260
|
+
ChannelID: this.searchFilter.ChannelID,
|
|
1261
|
+
PageNumber: this.searchFilter.PageNumber,
|
|
1262
|
+
RowCount: this.searchFilter.RowCount,
|
|
1263
|
+
text: this.searchFilter.text,
|
|
1264
|
+
HaveSku: this.searchFilter.HaveSku
|
|
1265
|
+
};
|
|
1266
|
+
this.http
|
|
1267
|
+
.post("/api/product/GetProductChannelNotPOS", payload)
|
|
1268
|
+
.subscribe((result) => {
|
|
1269
|
+
this.products = result.Data;
|
|
1270
|
+
this.mapChannelToProduct();
|
|
1271
|
+
this.setSkuProduct();
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
mapChannelToProduct() {
|
|
1275
|
+
this.products = this.products.map((product) => {
|
|
1276
|
+
product.Channel = JSON.parse(JSON.stringify(this.channelOptions.find((channel) => channel.ID == product.ChannelID)));
|
|
1277
|
+
return product;
|
|
1278
|
+
})
|
|
1279
|
+
.map(product => {
|
|
1280
|
+
product.Channel.Url = product.Url;
|
|
1281
|
+
return product;
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* filter and set sku to product for showing in card UI
|
|
1286
|
+
*/
|
|
1287
|
+
setSkuProduct() {
|
|
1288
|
+
this.products = this.products.map(product => {
|
|
1289
|
+
if (product?.Variant?.length == 0) {
|
|
1290
|
+
if (src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.IsNotEmpty(product?.ChannelItemSKU)) {
|
|
1291
|
+
product['SKU'] = product?.ChannelItemSKU;
|
|
1292
|
+
}
|
|
1293
|
+
else {
|
|
1294
|
+
product['SKU'] = 'SKU not assigned';
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
else {
|
|
1298
|
+
product.SKU = product?.Variant[0]?.ChannelVariationSKU ? product?.Variant[0]?.ChannelVariationSKU : 'SKU not assigned';
|
|
1299
|
+
}
|
|
1300
|
+
return product;
|
|
1301
|
+
});
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Filters the product list. First based on channel, then by name
|
|
1305
|
+
* @param event
|
|
1306
|
+
*/
|
|
1307
|
+
onSearch(text) {
|
|
1308
|
+
this.searchFilter.text = text;
|
|
1309
|
+
this.hasClickRowCount = false;
|
|
1310
|
+
this.getProducts();
|
|
1311
|
+
}
|
|
1312
|
+
onClearChannelFilter() {
|
|
1313
|
+
this.searchFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty;
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* Calls ScanOptimized to scan channel
|
|
1317
|
+
*/
|
|
1318
|
+
onScanAll() {
|
|
1319
|
+
let channel = this.productService.findChannelById(this.searchFilter.ChannelID, this.channelOptions);
|
|
1320
|
+
this.productService
|
|
1321
|
+
.scanAll(this.searchFilter.ChannelID, this.searchFilter.ScanFull, this.searchFilter.UpdatedProduct, this.searchFilter.Async)
|
|
1322
|
+
.subscribe((result) => {
|
|
1323
|
+
if (this.searchFilter.Async) {
|
|
1324
|
+
this.toastrService.warning("You will be notified when the scan is completed.", "Scan In Progress", { toastClass: 'ngx-toastr toast-waiting' });
|
|
1325
|
+
}
|
|
1326
|
+
else {
|
|
1327
|
+
this.initPageLoader(src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty);
|
|
1328
|
+
this.productService.successToastrScanAllProduct(result, channel, !this.searchFilter.UpdatedProduct);
|
|
1329
|
+
}
|
|
1330
|
+
// reset selected filter channel
|
|
1331
|
+
this.searchFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty;
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
/**
|
|
1335
|
+
* Open the scan dialog and pass the Channel list and the filter variable
|
|
1336
|
+
* Returns the modified filter, then run the scan function
|
|
1337
|
+
*/
|
|
1338
|
+
openScanDialog() {
|
|
1339
|
+
let dialogFilter = JSON.parse(JSON.stringify(this.searchFilter));
|
|
1340
|
+
dialogFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty;
|
|
1341
|
+
const dialogRef = this.dialog.open(_modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ScanDialogComponent, {
|
|
1342
|
+
data: {
|
|
1343
|
+
filter: dialogFilter,
|
|
1344
|
+
channelOptions: this.channelOptions,
|
|
1345
|
+
},
|
|
1346
|
+
width: "40%",
|
|
1347
|
+
});
|
|
1348
|
+
dialogRef
|
|
1349
|
+
.afterClosed()
|
|
1350
|
+
.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_10__.filter)((result) => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.IsNotEmpty(result)))
|
|
1351
|
+
.subscribe((result) => {
|
|
1352
|
+
this.searchFilter.ChannelID = result.ChannelID;
|
|
1353
|
+
this.searchFilter.UpdatedProduct = result.UpdatedProduct;
|
|
1354
|
+
this.searchFilter.ScanFull = result.ScanFull;
|
|
1355
|
+
this.searchFilter.Async = result.Async;
|
|
1356
|
+
this.onScanAll();
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Retrieves product data from channel
|
|
1361
|
+
* Based on downloadType, either get all products or only selected ones
|
|
1362
|
+
*
|
|
1363
|
+
* @input downloadType: number
|
|
1364
|
+
* 0 downloads all, 1 only selected products
|
|
1365
|
+
*/
|
|
1366
|
+
onDownloadAllProduct(type) {
|
|
1367
|
+
let listSelected;
|
|
1368
|
+
if (type == "ALL") {
|
|
1369
|
+
listSelected = this.products;
|
|
1370
|
+
}
|
|
1371
|
+
else {
|
|
1372
|
+
listSelected = this.productService.selectedProduct(this.products);
|
|
1373
|
+
}
|
|
1374
|
+
if (listSelected.length > 0) {
|
|
1375
|
+
this.productService.downloadMultipleProduct(listSelected)
|
|
1376
|
+
.subscribe({
|
|
1377
|
+
next: () => {
|
|
1378
|
+
this.getProducts();
|
|
1379
|
+
}
|
|
1380
|
+
});
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
*
|
|
1385
|
+
* @param checked
|
|
1386
|
+
* @param index
|
|
1387
|
+
*/
|
|
1388
|
+
onSelectProduct(checked, index) {
|
|
1389
|
+
this.products[index].selected = checked;
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Retrieves a product's information
|
|
1393
|
+
* @param info Channel ID and Item ID
|
|
1394
|
+
*/
|
|
1395
|
+
onDownloadProduct(product) {
|
|
1396
|
+
if (!confirm(`Are you sure you want to Retrieve product ${product?.Name} from ${product?.Channel['Name']} to POS?`)) {
|
|
1397
|
+
return;
|
|
1398
|
+
}
|
|
1399
|
+
this.productService.downloadProduct(product)
|
|
1400
|
+
.subscribe({
|
|
1401
|
+
next: () => {
|
|
1402
|
+
this.getProducts();
|
|
1403
|
+
}
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
onScanChannel(product) {
|
|
1407
|
+
let payload = JSON.parse(JSON.stringify(product));
|
|
1408
|
+
delete payload.Channel;
|
|
1409
|
+
this.productService.scanCompareToPos([payload])
|
|
1410
|
+
.subscribe((result) => {
|
|
1411
|
+
if (result.Status) {
|
|
1412
|
+
this.initPageLoader(src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty);
|
|
1413
|
+
this.toastrService.success(`product ${product.Name} have been successfully scanned and synchronized with POS`, "Success");
|
|
1414
|
+
}
|
|
1415
|
+
else {
|
|
1416
|
+
//product not found
|
|
1417
|
+
this.toastrService.error(`Product ${product.Name} is not existed in POS`, "Error");
|
|
1418
|
+
}
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Opens a dialog that shows the list of the product's variants
|
|
1423
|
+
* @param index The product's index
|
|
1424
|
+
*/
|
|
1425
|
+
onShowVariantDetail(index) {
|
|
1426
|
+
let variant = this.products[index].Variant;
|
|
1427
|
+
if (variant.length > 0) {
|
|
1428
|
+
this.dialog.open(_modals_modal_variants_modal_variants_component__WEBPACK_IMPORTED_MODULE_2__.ModalVariantsComponent, {
|
|
1429
|
+
data: {
|
|
1430
|
+
title: this.products[index].Name,
|
|
1431
|
+
variants: variant,
|
|
1432
|
+
},
|
|
1433
|
+
width: "30%",
|
|
1434
|
+
});
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* get row count from api GetSoldInChannelRowCount
|
|
1439
|
+
*/
|
|
1440
|
+
getRowCount() {
|
|
1441
|
+
let payload = {
|
|
1442
|
+
ChannelID: this.searchFilter.ChannelID,
|
|
1443
|
+
text: this.searchFilter.text,
|
|
1444
|
+
HaveSku: parseInt(this.searchFilter.HaveSku)
|
|
1445
|
+
};
|
|
1446
|
+
this.http
|
|
1447
|
+
.post("/api/product/GetProductChannelNotPOSRowCount", payload)
|
|
1448
|
+
.subscribe((result) => {
|
|
1449
|
+
this.hasClickRowCount = true;
|
|
1450
|
+
this.rowCount = result.Count;
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Pagination next page
|
|
1455
|
+
*/
|
|
1456
|
+
onNextPage() {
|
|
1457
|
+
this.searchFilter.PageNumber = this.searchFilter.PageNumber + 1;
|
|
1458
|
+
this.getProducts();
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Pagination previous page
|
|
1462
|
+
*/
|
|
1463
|
+
onPreviousPage() {
|
|
1464
|
+
this.searchFilter.PageNumber = this.searchFilter.PageNumber - 1;
|
|
1465
|
+
this.getProducts();
|
|
1466
|
+
}
|
|
1467
|
+
getChannelLogo(channelType) {
|
|
1468
|
+
return src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.getChannelLogoByTypeId(channelType);
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
NotInPosComponent.ɵfac = function NotInPosComponent_Factory(t) { return new (t || NotInPosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_4__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_11__.MatDialog), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](src_app_services_product_service__WEBPACK_IMPORTED_MODULE_5__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_12__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_13__.ActivatedRoute)); };
|
|
1472
|
+
NotInPosComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineComponent"]({ type: NotInPosComponent, selectors: [["app-not-in-pos"]], decls: 27, vars: 11, consts: [["headerTitle", "Not in POS", "textButton", "Search", "description", "SKU sold in Marketplace but not exist in DEALPOS", 3, "onSubmit"], ["type", "button", "data-cy", "scanNotInPos", "class", "btn btn-outline-secondary shadow rounded", 3, "click", 4, "ngIf"], [4, "ngIf"], [1, "d-flex"], ["container", ""], ["bindLabel", "Name", "name", "channelid", "bindValue", "ID", "placeholder", "Select Channel", 1, "center-text", 3, "clearable", "items", "ngModel", "ngModelChange", "clear"], ["ng-option-tmp", ""], ["name", "haveSKU", 1, "form-control", "h-100", "pt-3", "rounded", 3, "ngModel", "ngModelChange"], [1, "me-5", 3, "value"], [1, "container-fluid", "mt-3"], [1, "row", "mt-8"], ["class", "col-12 col-md-6 col-xl-4 px-3 my-3", 4, "ngFor", "ngForOf"], ["class", "row", 4, "ngIf"], ["type", "button", "data-cy", "scanNotInPos", 1, "btn", "btn-outline-secondary", "shadow", "rounded", 3, "click"], [1, "fas", "fa-lg", "fa-crosshairs"], ["type", "button", 1, "btn", "btn-success", "shadow-sm", "rounded", "ms-3", 3, "click"], [1, "fa", "fa-download"], [1, "me-2"], ["alt", "", 2, "width", "18px", 3, "src"], [1, "col-12", "col-md-6", "col-xl-4", "px-3", "my-3"], [3, "showRedirectIcon", "title", "image", "imageForZoom", "code", "description", "downloadButton", "channels", "showCheckBox", "scanButton", "onCheckBoxChange", "onDescEvent", "onDownload", "onScan"], [1, "row"], [1, "col-12"], [3, "filter", "totaldata", "paginationTotal", "hasClicked", "total", "next", "previous"]], template: function NotInPosComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1473
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](0, "mainpanel", 0);
|
|
1474
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("onSubmit", function NotInPosComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.onSearch($event); });
|
|
1475
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](1, "actions");
|
|
1476
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](2, NotInPosComponent_button_2_Template, 3, 0, "button", 1);
|
|
1477
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](3, NotInPosComponent_ng_container_3_Template, 4, 1, "ng-container", 2);
|
|
1478
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
|
|
1479
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](4, "filters")(5, "div", 3)(6, "div", 4)(7, "div")(8, "h6");
|
|
1480
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](9, "Channel");
|
|
1481
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
|
|
1482
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](10, "ng-select", 5);
|
|
1483
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function NotInPosComponent_Template_ng_select_ngModelChange_10_listener($event) { return ctx.searchFilter.ChannelID = $event; })("clear", function NotInPosComponent_Template_ng_select_clear_10_listener() { return ctx.onClearChannelFilter(); });
|
|
1484
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](11, NotInPosComponent_ng_template_11_Template, 3, 2, "ng-template", 6);
|
|
1485
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()();
|
|
1486
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](12, "div")(13, "h6");
|
|
1487
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](14, "SKU Assigned");
|
|
1488
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
|
|
1489
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](15, "mat-radio-group", 7);
|
|
1490
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵlistener"]("ngModelChange", function NotInPosComponent_Template_mat_radio_group_ngModelChange_15_listener($event) { return ctx.searchFilter.HaveSku = $event; });
|
|
1491
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](16, "mat-radio-button", 8);
|
|
1492
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](17, " All ");
|
|
1493
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
|
|
1494
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](18, "mat-radio-button", 8);
|
|
1495
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](19, " Yes ");
|
|
1496
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
|
|
1497
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](20, "mat-radio-button", 8);
|
|
1498
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtext"](21, " No ");
|
|
1499
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()()()()();
|
|
1500
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementStart"](22, "content")(23, "div", 9)(24, "div", 10);
|
|
1501
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](25, NotInPosComponent_div_25_Template, 2, 13, "div", 11);
|
|
1502
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]();
|
|
1503
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵtemplate"](26, NotInPosComponent_div_26_Template, 3, 4, "div", 12);
|
|
1504
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵelementEnd"]()()();
|
|
1505
|
+
} if (rf & 2) {
|
|
1506
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
|
|
1507
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", !ctx.productService.hasSelection(ctx.products));
|
|
1508
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
|
|
1509
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", ctx.productService.hasSelection(ctx.products));
|
|
1510
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](7);
|
|
1511
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("clearable", true)("items", ctx.channelOptions)("ngModel", ctx.searchFilter.ChannelID);
|
|
1512
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
|
|
1513
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngModel", ctx.searchFilter.HaveSku);
|
|
1514
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
|
|
1515
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", 0);
|
|
1516
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
|
|
1517
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", 1);
|
|
1518
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](2);
|
|
1519
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("value", 2);
|
|
1520
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](5);
|
|
1521
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngForOf", ctx.products);
|
|
1522
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵadvance"](1);
|
|
1523
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵproperty"]("ngIf", (ctx.products == null ? null : ctx.products.length) > 0);
|
|
1524
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_14__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_14__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_15__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__.MainPanelComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__.NgSelectComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__.NgOptionTemplateDirective, _sharing_module_product_card_product_card_component__WEBPACK_IMPORTED_MODULE_7__.ProductCardComponent, _sharing_module_custom_paginator_custom_paginator_component__WEBPACK_IMPORTED_MODULE_8__.CustomPaginatorComponent, _angular_material_radio__WEBPACK_IMPORTED_MODULE_17__.MatRadioGroup, _angular_material_radio__WEBPACK_IMPORTED_MODULE_17__.MatRadioButton], styles: [".badge-pill[_ngcontent-%COMP%] {\n padding-bottom: 16px !important;\n}\n\n.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%] {\n background: #dfeffc;\n border: 1px solid #dfeffc;\n}\n\n.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%] {\n visibility: hidden;\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n border: 1px solid #ddd;\n border-radius: 3px;\n margin-right: 10px;\n cursor: pointer;\n padding: 10px;\n margin-bottom: 10px;\n color: #000;\n width: 80px;\n text-align: center;\n}\n\n.modal-dialog[_ngcontent-%COMP%] {\n max-width: 30% !important;\n}\n\n.product[_ngcontent-%COMP%] {\n height: 100% !important;\n}\n\n.text-larger[_ngcontent-%COMP%] {\n font-size: larger;\n}\n\n.row[_ngcontent-%COMP%] {\n margin-left: 0;\n margin-right: 0;\n}\n\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n\n.link[_ngcontent-%COMP%] {\n color: #0202ab;\n cursor: pointer;\n}\n\n.px-1[_ngcontent-%COMP%] {\n padding-left: 5px !important;\n}\n\n.sku[_ngcontent-%COMP%] {\n color: dimgray;\n font-style: italic;\n}\n\n.badge-pill[_ngcontent-%COMP%] {\n height: 16px;\n}\n\n.itemTitle[_ngcontent-%COMP%] {\n text-overflow: ellipsis;\n \n white-space: nowrap;\n overflow: hidden;\n}\n\n.no-title[_ngcontent-%COMP%] {\n margin-top: 0.33em;\n margin-bottom: 0.33rem;\n}\n\n.mb-upload[_ngcontent-%COMP%] {\n padding-bottom: 0.625rem;\n}\n\n.my-1rem[_ngcontent-%COMP%] {\n margin-bottom: 1rem !important;\n margin-top: 1rem !important;\n}\n\n.pr-rem[_ngcontent-%COMP%] {\n padding-right: 0.6rem;\n}\n\n.text-larger[_ngcontent-%COMP%] {\n font-size: larger;\n}\n\n.bg-lightpink[_ngcontent-%COMP%] {\n background-color: #f9dede;\n}\n\n.bottom-buttons[_ngcontent-%COMP%] {\n margin-left: 97px;\n}\n\n@media (min-width: 1200px) {\n .max-w-xl[_ngcontent-%COMP%] {\n max-width: 205px;\n }\n}\n\n.itemTitle[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G4ucHItcmVtIHtcclxuICAgIHBhZGRpbmctcmlnaHQ6IDAuNnJlbTtcclxufVxyXG5cclxuLnRleHQtbGFyZ2VyIHtcclxuICAgIGZvbnQtc2l6ZTogbGFyZ2VyO1xyXG59XHJcblxyXG4uYmctbGlnaHRwaW5rIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmOWRlZGU7XHJcbn1cclxuXHJcbi5ib3R0b20tYnV0dG9uc3tcclxuICAgIG1hcmdpbi1sZWZ0OiA5N3B4O1xyXG59XHJcblxyXG4vLyBFeHRyYSBsYXJnZSBkZXZpY2VzIChsYXJnZSBkZXNrdG9wcywgMTIwMHB4IGFuZCB1cClcclxuQG1lZGlhIChtaW4td2lkdGg6IDEyMDBweCkge1xyXG4gICAgLm1heC13LXhse1xyXG4gICAgICAgIG1heC13aWR0aDogMjA1cHg7XHJcbiAgICB9XHJcbn1cclxuXHJcbiIsIkBpbXBvcnQgJy4uL3Byb2R1Y3RzLmNvbXBvbmVudC5zY3NzJztcclxuXHJcbi5pdGVtVGl0bGV7XHJcbiAgICBjdXJzb3I6IHBvaW50ZXI7XHJcbn0iXX0= */"] });
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
/***/ }),
|
|
1528
|
+
|
|
1529
|
+
/***/ 3816:
|
|
1530
|
+
/*!*********************************************************!*\
|
|
1531
|
+
!*** ./src/app/menu/products/product-routing.module.ts ***!
|
|
1532
|
+
\*********************************************************/
|
|
1533
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1534
|
+
|
|
1535
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1536
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1537
|
+
/* harmony export */ "ProductRoutingModule": () => (/* binding */ ProductRoutingModule)
|
|
1538
|
+
/* harmony export */ });
|
|
1539
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
1540
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ 124);
|
|
1541
|
+
/* harmony import */ var _products_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./products.component */ 5881);
|
|
1542
|
+
/* harmony import */ var _in_pos_in_pos_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./in-pos/in-pos.component */ 9949);
|
|
1543
|
+
/* harmony import */ var _sold_in_channel_sold_in_channel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sold-in-channel/sold-in-channel.component */ 6678);
|
|
1544
|
+
/* harmony import */ var _not_in_channel_not_in_channel_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./not-in-channel/not-in-channel.component */ 3915);
|
|
1545
|
+
/* harmony import */ var _not_in_pos_not_in_pos_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./not-in-pos/not-in-pos.component */ 7925);
|
|
1546
|
+
/* harmony import */ var _duplicate_sku_duplicate_sku_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./duplicate-sku/duplicate-sku.component */ 2741);
|
|
1547
|
+
/* harmony import */ var src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/services/auth.guard */ 8063);
|
|
1548
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
|
|
1560
|
+
const routes = [
|
|
1561
|
+
{
|
|
1562
|
+
path: "",
|
|
1563
|
+
component: _products_component__WEBPACK_IMPORTED_MODULE_0__.ProductsComponent,
|
|
1564
|
+
children: [
|
|
1565
|
+
{
|
|
1566
|
+
path: "",
|
|
1567
|
+
redirectTo: "sold-in-channel",
|
|
1568
|
+
pathMatch: "full",
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
path: "in-pos",
|
|
1572
|
+
component: _in_pos_in_pos_component__WEBPACK_IMPORTED_MODULE_1__.InPosComponent,
|
|
1573
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__.AuthGuard],
|
|
1574
|
+
data: { title: "Products in POS" },
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
path: "sold-in-channel",
|
|
1578
|
+
component: _sold_in_channel_sold_in_channel_component__WEBPACK_IMPORTED_MODULE_2__.SoldInChannelComponent,
|
|
1579
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__.AuthGuard],
|
|
1580
|
+
data: { title: "Products Sold in Channel" },
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
path: "not-in-channel",
|
|
1584
|
+
component: _not_in_channel_not_in_channel_component__WEBPACK_IMPORTED_MODULE_3__.NotInChannelComponent,
|
|
1585
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__.AuthGuard],
|
|
1586
|
+
data: { title: "Products not in Channel" },
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
path: "not-in-pos",
|
|
1590
|
+
component: _not_in_pos_not_in_pos_component__WEBPACK_IMPORTED_MODULE_4__.NotInPosComponent,
|
|
1591
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__.AuthGuard],
|
|
1592
|
+
data: { title: "Products not in POS" },
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
path: "duplicate-sku",
|
|
1596
|
+
component: _duplicate_sku_duplicate_sku_component__WEBPACK_IMPORTED_MODULE_5__.DuplicateSkuComponent,
|
|
1597
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__.AuthGuard],
|
|
1598
|
+
data: { title: "Duplicate Sku in Channel" },
|
|
1599
|
+
},
|
|
1600
|
+
],
|
|
1601
|
+
},
|
|
1602
|
+
];
|
|
1603
|
+
class ProductRoutingModule {
|
|
1604
|
+
}
|
|
1605
|
+
ProductRoutingModule.ɵfac = function ProductRoutingModule_Factory(t) { return new (t || ProductRoutingModule)(); };
|
|
1606
|
+
ProductRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineNgModule"]({ type: ProductRoutingModule });
|
|
1607
|
+
ProductRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterModule.forChild(routes)] });
|
|
1608
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsetNgModuleScope"](ProductRoutingModule, { imports: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_9__.RouterModule] }); })();
|
|
1609
|
+
|
|
1610
|
+
|
|
1611
|
+
/***/ }),
|
|
1612
|
+
|
|
1613
|
+
/***/ 2837:
|
|
1614
|
+
/*!*************************************************!*\
|
|
1615
|
+
!*** ./src/app/menu/products/product.module.ts ***!
|
|
1616
|
+
\*************************************************/
|
|
1617
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1618
|
+
|
|
1619
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1620
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1621
|
+
/* harmony export */ "ProductModule": () => (/* binding */ ProductModule)
|
|
1622
|
+
/* harmony export */ });
|
|
1623
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
1624
|
+
/* harmony import */ var _duplicate_sku_duplicate_sku_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./duplicate-sku/duplicate-sku.component */ 2741);
|
|
1625
|
+
/* harmony import */ var _in_pos_in_pos_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./in-pos/in-pos.component */ 9949);
|
|
1626
|
+
/* harmony import */ var _not_in_channel_not_in_channel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./not-in-channel/not-in-channel.component */ 3915);
|
|
1627
|
+
/* harmony import */ var _sold_in_channel_sold_in_channel_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sold-in-channel/sold-in-channel.component */ 6678);
|
|
1628
|
+
/* harmony import */ var _not_in_pos_not_in_pos_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./not-in-pos/not-in-pos.component */ 7925);
|
|
1629
|
+
/* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
|
|
1630
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
1631
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/router */ 124);
|
|
1632
|
+
/* harmony import */ var _product_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./product-routing.module */ 3816);
|
|
1633
|
+
/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/material/tooltip */ 6896);
|
|
1634
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../main-panel/main-panel.component */ 7481);
|
|
1635
|
+
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
|
|
1636
|
+
/* harmony import */ var _products_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./products.component */ 5881);
|
|
1637
|
+
/* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/material/paginator */ 6060);
|
|
1638
|
+
/* harmony import */ var src_app_sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/sharing-module/mat-paginator-no-count/mat-paginator-no-count.component */ 2594);
|
|
1639
|
+
/* harmony import */ var src_app_sharing_module_product_card_product_card_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/sharing-module/product-card/product-card.module */ 3451);
|
|
1640
|
+
/* harmony import */ var src_app_sharing_module_custom_paginator_custom_paginator_module__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/sharing-module/custom-paginator/custom-paginator.module */ 7459);
|
|
1641
|
+
/* harmony import */ var src_app_sharing_module_duplicate_product_card_duplicate_product_card_module__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/sharing-module/duplicate-product-card/duplicate-product-card.module */ 6946);
|
|
1642
|
+
/* harmony import */ var _angular_material_radio__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/material/radio */ 2922);
|
|
1643
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
|
|
1665
|
+
class ProductModule {
|
|
1666
|
+
}
|
|
1667
|
+
ProductModule.ɵfac = function ProductModule_Factory(t) { return new (t || ProductModule)(); };
|
|
1668
|
+
ProductModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdefineNgModule"]({ type: ProductModule });
|
|
1669
|
+
ProductModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_14__.CommonModule,
|
|
1670
|
+
_nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_5__.NavTabModule,
|
|
1671
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormsModule,
|
|
1672
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_16__.RouterModule,
|
|
1673
|
+
_product_routing_module__WEBPACK_IMPORTED_MODULE_6__.ProductRoutingModule,
|
|
1674
|
+
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_17__.MatTooltipModule,
|
|
1675
|
+
_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_7__.MainPanelModule,
|
|
1676
|
+
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_18__.NgSelectModule,
|
|
1677
|
+
_angular_material_paginator__WEBPACK_IMPORTED_MODULE_19__.MatPaginatorModule,
|
|
1678
|
+
src_app_sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_9__.MatPaginatorNoCountModule,
|
|
1679
|
+
src_app_sharing_module_product_card_product_card_module__WEBPACK_IMPORTED_MODULE_10__.ProductCardModule,
|
|
1680
|
+
src_app_sharing_module_custom_paginator_custom_paginator_module__WEBPACK_IMPORTED_MODULE_11__.CustomPaginatorModule,
|
|
1681
|
+
src_app_sharing_module_duplicate_product_card_duplicate_product_card_module__WEBPACK_IMPORTED_MODULE_12__.DuplicateProductCardModule,
|
|
1682
|
+
_angular_material_radio__WEBPACK_IMPORTED_MODULE_20__.MatRadioModule] });
|
|
1683
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵsetNgModuleScope"](ProductModule, { declarations: [_duplicate_sku_duplicate_sku_component__WEBPACK_IMPORTED_MODULE_0__.DuplicateSkuComponent,
|
|
1684
|
+
_in_pos_in_pos_component__WEBPACK_IMPORTED_MODULE_1__.InPosComponent,
|
|
1685
|
+
_not_in_channel_not_in_channel_component__WEBPACK_IMPORTED_MODULE_2__.NotInChannelComponent,
|
|
1686
|
+
_sold_in_channel_sold_in_channel_component__WEBPACK_IMPORTED_MODULE_3__.SoldInChannelComponent,
|
|
1687
|
+
_not_in_pos_not_in_pos_component__WEBPACK_IMPORTED_MODULE_4__.NotInPosComponent,
|
|
1688
|
+
_products_component__WEBPACK_IMPORTED_MODULE_8__.ProductsComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_14__.CommonModule,
|
|
1689
|
+
_nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_5__.NavTabModule,
|
|
1690
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormsModule,
|
|
1691
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_16__.RouterModule,
|
|
1692
|
+
_product_routing_module__WEBPACK_IMPORTED_MODULE_6__.ProductRoutingModule,
|
|
1693
|
+
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_17__.MatTooltipModule,
|
|
1694
|
+
_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_7__.MainPanelModule,
|
|
1695
|
+
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_18__.NgSelectModule,
|
|
1696
|
+
_angular_material_paginator__WEBPACK_IMPORTED_MODULE_19__.MatPaginatorModule,
|
|
1697
|
+
src_app_sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_9__.MatPaginatorNoCountModule,
|
|
1698
|
+
src_app_sharing_module_product_card_product_card_module__WEBPACK_IMPORTED_MODULE_10__.ProductCardModule,
|
|
1699
|
+
src_app_sharing_module_custom_paginator_custom_paginator_module__WEBPACK_IMPORTED_MODULE_11__.CustomPaginatorModule,
|
|
1700
|
+
src_app_sharing_module_duplicate_product_card_duplicate_product_card_module__WEBPACK_IMPORTED_MODULE_12__.DuplicateProductCardModule,
|
|
1701
|
+
_angular_material_radio__WEBPACK_IMPORTED_MODULE_20__.MatRadioModule] }); })();
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
/***/ }),
|
|
1705
|
+
|
|
1706
|
+
/***/ 5881:
|
|
1707
|
+
/*!*****************************************************!*\
|
|
1708
|
+
!*** ./src/app/menu/products/products.component.ts ***!
|
|
1709
|
+
\*****************************************************/
|
|
1710
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1711
|
+
|
|
1712
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1713
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1714
|
+
/* harmony export */ "ProductsComponent": () => (/* binding */ ProductsComponent)
|
|
1715
|
+
/* harmony export */ });
|
|
1716
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
1717
|
+
/* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
|
|
1718
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
class ProductsComponent {
|
|
1723
|
+
constructor() {
|
|
1724
|
+
this.productTabs = [
|
|
1725
|
+
{ Title: 'Sold in Channel', Url: '/menu/products/sold-in-channel', Description: "SKU has been mapped between dealpos and marketplace" },
|
|
1726
|
+
{ Title: 'Not in POS', Url: '/menu/products/not-in-pos', Description: "SKU sold in Marketplace but not exist in DEALPOS" },
|
|
1727
|
+
{ Title: 'Not in Channel', Url: '/menu/products/not-in-channel', Description: "SKU has not been sold on one of channels" },
|
|
1728
|
+
{ Title: 'In POS', Url: '/menu/products/in-pos', Description: "All products which is already available in POS" },
|
|
1729
|
+
{ Title: 'Multiple Listed SKU', Url: '/menu/products/duplicate-sku', Description: "SKU(s) which is listed more than one time (one to many)" }
|
|
1730
|
+
];
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
ProductsComponent.ɵfac = function ProductsComponent_Factory(t) { return new (t || ProductsComponent)(); };
|
|
1734
|
+
ProductsComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ProductsComponent, selectors: [["app-products"]], decls: 5, vars: 1, consts: [[1, "navbar", "page-nav", "navbar-default", "py-0", "navbar-expand-lg"], [1, "container-fluid"], [3, "Tabs"]], template: function ProductsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1735
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "nav", 0)(1, "div", 1)(2, "div");
|
|
1736
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "nav-tab", 2);
|
|
1737
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
|
|
1738
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "router-outlet");
|
|
1739
|
+
} if (rf & 2) {
|
|
1740
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
|
|
1741
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("Tabs", ctx.productTabs);
|
|
1742
|
+
} }, dependencies: [_nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__.NavTabComponent, _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterOutlet], styles: [".badge-pill[_ngcontent-%COMP%] {\n padding-bottom: 16px !important;\n}\n\n.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%] {\n background: #dfeffc;\n border: 1px solid #dfeffc;\n}\n\n.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%] {\n visibility: hidden;\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n border: 1px solid #ddd;\n border-radius: 3px;\n margin-right: 10px;\n cursor: pointer;\n padding: 10px;\n margin-bottom: 10px;\n color: #000;\n width: 80px;\n text-align: center;\n}\n\n.modal-dialog[_ngcontent-%COMP%] {\n max-width: 30% !important;\n}\n\n.product[_ngcontent-%COMP%] {\n height: 100% !important;\n}\n\n.text-larger[_ngcontent-%COMP%] {\n font-size: larger;\n}\n\n.row[_ngcontent-%COMP%] {\n margin-left: 0;\n margin-right: 0;\n}\n\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n\n.link[_ngcontent-%COMP%] {\n color: #0202ab;\n cursor: pointer;\n}\n\n.px-1[_ngcontent-%COMP%] {\n padding-left: 5px !important;\n}\n\n.sku[_ngcontent-%COMP%] {\n color: dimgray;\n font-style: italic;\n}\n\n.badge-pill[_ngcontent-%COMP%] {\n height: 16px;\n}\n\n.itemTitle[_ngcontent-%COMP%] {\n text-overflow: ellipsis;\n \n white-space: nowrap;\n overflow: hidden;\n}\n\n.no-title[_ngcontent-%COMP%] {\n margin-top: 0.33em;\n margin-bottom: 0.33rem;\n}\n\n.mb-upload[_ngcontent-%COMP%] {\n padding-bottom: 0.625rem;\n}\n\n.my-1rem[_ngcontent-%COMP%] {\n margin-bottom: 1rem !important;\n margin-top: 1rem !important;\n}\n\n.pr-rem[_ngcontent-%COMP%] {\n padding-right: 0.6rem;\n}\n\n.text-larger[_ngcontent-%COMP%] {\n font-size: larger;\n}\n\n.bg-lightpink[_ngcontent-%COMP%] {\n background-color: #f9dede;\n}\n\n.bottom-buttons[_ngcontent-%COMP%] {\n margin-left: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bmctcmlnaHQ6IDAuNnJlbTtcclxufVxyXG5cclxuLnRleHQtbGFyZ2VyIHtcclxuICAgIGZvbnQtc2l6ZTogbGFyZ2VyO1xyXG59XHJcblxyXG4uYmctbGlnaHRwaW5rIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmOWRlZGU7XHJcbn1cclxuXHJcbi5ib3R0b20tYnV0dG9uc3tcclxuICAgIG1hcmdpbi1sZWZ0OiA5N3B4O1xyXG59XHJcblxyXG4vLyBFeHRyYSBsYXJnZSBkZXZpY2VzIChsYXJnZSBkZXNrdG9wcywgMTIwMHB4IGFuZCB1cClcclxuQG1lZGlhIChtaW4td2lkdGg6IDEyMDBweCkge1xyXG4gICAgLm1heC13LXhse1xyXG4gICAgICAgIG1heC13aWR0aDogMjA1cHg7XHJcbiAgICB9XHJcbn1cclxuXHJcbiJdfQ== */"] });
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
/***/ }),
|
|
1746
|
+
|
|
1747
|
+
/***/ 6678:
|
|
1748
|
+
/*!****************************************************************************!*\
|
|
1749
|
+
!*** ./src/app/menu/products/sold-in-channel/sold-in-channel.component.ts ***!
|
|
1750
|
+
\****************************************************************************/
|
|
1751
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1752
|
+
|
|
1753
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1754
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1755
|
+
/* harmony export */ "SoldInChannelComponent": () => (/* binding */ SoldInChannelComponent)
|
|
1756
|
+
/* harmony export */ });
|
|
1757
|
+
/* harmony import */ var src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/model/ProductFilter */ 1290);
|
|
1758
|
+
/* harmony import */ var _modals_modal_variant_modal_variant_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../modals/modal-variant/modal-variant.component */ 9673);
|
|
1759
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! rxjs */ 116);
|
|
1760
|
+
/* harmony import */ var src_app_model_enums_ChannelType_enum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/model/enums/ChannelType.enum */ 9694);
|
|
1761
|
+
/* harmony import */ var src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/model/Constants */ 1889);
|
|
1762
|
+
/* harmony import */ var _modals_modal_uploadMultiple_product_modal_uploadMultiple_product_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../modals/modal-uploadMultiple-product/modal-uploadMultiple-product.component */ 1608);
|
|
1763
|
+
/* harmony import */ var _modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../modals/scan-dialog/scan-dialog.component */ 8231);
|
|
1764
|
+
/* harmony import */ var _modals_uploadProductDialog_uploadProductDialog_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../modals/uploadProductDialog/uploadProductDialog.component */ 1702);
|
|
1765
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
1766
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
1767
|
+
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
|
|
1768
|
+
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-toastr */ 4817);
|
|
1769
|
+
/* harmony import */ var src_app_services_product_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/services/product.service */ 6082);
|
|
1770
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/router */ 124);
|
|
1771
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
1772
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
1773
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
1774
|
+
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
|
|
1775
|
+
/* harmony import */ var _sharing_module_product_card_product_card_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../sharing-module/product-card/product-card.component */ 6956);
|
|
1776
|
+
/* harmony import */ var _sharing_module_custom_paginator_custom_paginator_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../sharing-module/custom-paginator/custom-paginator.component */ 6732);
|
|
1777
|
+
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
|
|
1783
|
+
|
|
1784
|
+
|
|
1785
|
+
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
function SoldInChannelComponent_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
1798
|
+
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
|
|
1799
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "button", 13);
|
|
1800
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function SoldInChannelComponent_button_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r8); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r7.onOpenScanDialog()); });
|
|
1801
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "i", 14);
|
|
1802
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, " Scan Channel ");
|
|
1803
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
1804
|
+
} }
|
|
1805
|
+
function SoldInChannelComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
1806
|
+
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
|
|
1807
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "button", 15);
|
|
1808
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function SoldInChannelComponent_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r9.onScanSelectedProduct()); });
|
|
1809
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "i", 14);
|
|
1810
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2);
|
|
1811
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
1812
|
+
} if (rf & 2) {
|
|
1813
|
+
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
|
|
1814
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
|
|
1815
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" Scan Selected Product (", ctx_r1.productService.selectedProduct(ctx_r1.products).length, ") ");
|
|
1816
|
+
} }
|
|
1817
|
+
function SoldInChannelComponent_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
1818
|
+
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
|
|
1819
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "button", 16);
|
|
1820
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("click", function SoldInChannelComponent_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r11.onUploadMultipleProductSingleChannel()); });
|
|
1821
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "i", 17);
|
|
1822
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, " Upload Bulk ");
|
|
1823
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
1824
|
+
} }
|
|
1825
|
+
function SoldInChannelComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
1826
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "span", 18);
|
|
1827
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelement"](1, "img", 19);
|
|
1828
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
1829
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2);
|
|
1830
|
+
} if (rf & 2) {
|
|
1831
|
+
const item_r13 = ctx.item;
|
|
1832
|
+
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
|
|
1833
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
|
|
1834
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("src", ctx_r3.getChannelLogo(item_r13.TypeID), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵsanitizeUrl"]);
|
|
1835
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
|
|
1836
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtextInterpolate1"](" ", item_r13.Name, " ");
|
|
1837
|
+
} }
|
|
1838
|
+
function SoldInChannelComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
1839
|
+
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
|
|
1840
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div")(1, "h6");
|
|
1841
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](2, "Item ID");
|
|
1842
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
1843
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](3, "input", 20);
|
|
1844
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("ngModelChange", function SoldInChannelComponent_div_13_Template_input_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r17); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r16.searchFilter.Item_id = $event); });
|
|
1845
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
|
|
1846
|
+
} if (rf & 2) {
|
|
1847
|
+
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
|
|
1848
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](3);
|
|
1849
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngModel", ctx_r4.searchFilter.Item_id);
|
|
1850
|
+
} }
|
|
1851
|
+
function SoldInChannelComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
1852
|
+
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
|
|
1853
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 21)(1, "app-product-card", 22);
|
|
1854
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("onUpload", function SoldInChannelComponent_div_17_Template_app_product_card_onUpload_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r21); const product_r18 = restoredCtx.$implicit; const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r20.onUploadToMultipleChannel(product_r18)); })("onDescEvent", function SoldInChannelComponent_div_17_Template_app_product_card_onDescEvent_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r21); const i_r19 = restoredCtx.index; const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r22.onOpenVariantDetail(i_r19)); })("onScan", function SoldInChannelComponent_div_17_Template_app_product_card_onScan_1_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r21); const product_r18 = restoredCtx.$implicit; const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r23.onScanSingleProduct(product_r18)); })("onCheckBoxChange", function SoldInChannelComponent_div_17_Template_app_product_card_onCheckBoxChange_1_listener($event) { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r21); const product_r18 = restoredCtx.$implicit; return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"]((product_r18["selected"] = $event)); });
|
|
1855
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
|
|
1856
|
+
} if (rf & 2) {
|
|
1857
|
+
const product_r18 = ctx.$implicit;
|
|
1858
|
+
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
|
|
1859
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
|
|
1860
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("productId", product_r18 == null ? null : product_r18.ID)("title", product_r18 == null ? null : product_r18.Name)("image", product_r18 == null ? null : product_r18.ThumbnailUrl)("description", (product_r18 == null ? null : product_r18.Variants == null ? null : product_r18.Variants.length) > 1 ? (product_r18 == null ? null : product_r18.Variants == null ? null : product_r18.Variants.length) + " Variants" : null)("channels", ctx_r5.productService.getChannelProduct(product_r18))("code", ctx_r5.getVariantCode(product_r18 == null ? null : product_r18.Variants))("showCheckBox", product_r18 == null ? null : product_r18.hasScan)("scanButton", true)("uploadButton", product_r18 == null ? null : product_r18.hasUpload)("imageForZoom", product_r18 == null ? null : product_r18.ImageUrl);
|
|
1861
|
+
} }
|
|
1862
|
+
function SoldInChannelComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
1863
|
+
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵgetCurrentView"]();
|
|
1864
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "div", 23)(1, "div", 24)(2, "app-custom-paginator", 25);
|
|
1865
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("total", function SoldInChannelComponent_div_18_Template_app_custom_paginator_total_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r26); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r25.getRowCount()); })("next", function SoldInChannelComponent_div_18_Template_app_custom_paginator_next_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r26); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r27.onNextPage()); })("previous", function SoldInChannelComponent_div_18_Template_app_custom_paginator_previous_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵrestoreView"](_r26); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵresetView"](ctx_r28.onPreviousPage()); });
|
|
1866
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()();
|
|
1867
|
+
} if (rf & 2) {
|
|
1868
|
+
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵnextContext"]();
|
|
1869
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
|
|
1870
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("filter", ctx_r6.searchFilter)("totaldata", ctx_r6.products == null ? null : ctx_r6.products.length)("paginationTotal", ctx_r6.rowCount)("hasClicked", ctx_r6.hasClickRowCount);
|
|
1871
|
+
} }
|
|
1872
|
+
class SoldInChannelComponent {
|
|
1873
|
+
constructor(http, dialog, toastr, productService, activateRouter) {
|
|
1874
|
+
this.http = http;
|
|
1875
|
+
this.dialog = dialog;
|
|
1876
|
+
this.toastr = toastr;
|
|
1877
|
+
this.productService = productService;
|
|
1878
|
+
this.activateRouter = activateRouter;
|
|
1879
|
+
this.searchFilter = new src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_0__.ProductFilter();
|
|
1880
|
+
this.rowCount = 0;
|
|
1881
|
+
this.hasClickRowCount = false;
|
|
1882
|
+
this.guidEmpty = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty;
|
|
1883
|
+
}
|
|
1884
|
+
ngOnInit() {
|
|
1885
|
+
this.activateRouter.queryParams
|
|
1886
|
+
.subscribe(val => {
|
|
1887
|
+
if (val.ID) {
|
|
1888
|
+
this.initPageLoader(val.ID);
|
|
1889
|
+
}
|
|
1890
|
+
else {
|
|
1891
|
+
this.initPageLoader(src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty);
|
|
1892
|
+
}
|
|
1893
|
+
});
|
|
1894
|
+
}
|
|
1895
|
+
initPageLoader(channelID) {
|
|
1896
|
+
this.productService.loader(channelID)
|
|
1897
|
+
.subscribe((result) => {
|
|
1898
|
+
this.channelOptions = result.Options.Channel;
|
|
1899
|
+
this.searchFilter = result.Filter;
|
|
1900
|
+
if (result.Filter.ChannelID != src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty) {
|
|
1901
|
+
this.searchFilter.ListChannelID = [];
|
|
1902
|
+
this.searchFilter.ListChannelID.push(result.Filter.ChannelID);
|
|
1903
|
+
}
|
|
1904
|
+
this.searchFilter.PageSize = result.Filter.RowCount;
|
|
1905
|
+
this.searchFilter.Item_id = "";
|
|
1906
|
+
this.getProducts();
|
|
1907
|
+
});
|
|
1908
|
+
}
|
|
1909
|
+
getProducts() {
|
|
1910
|
+
const payload = {
|
|
1911
|
+
ListChannelID: this.searchFilter.ListChannelID,
|
|
1912
|
+
PageNumber: this.searchFilter.PageNumber,
|
|
1913
|
+
RowCount: this.searchFilter.RowCount,
|
|
1914
|
+
text: this.searchFilter.text,
|
|
1915
|
+
Item_id: this.searchFilter.Item_id
|
|
1916
|
+
};
|
|
1917
|
+
this.productService
|
|
1918
|
+
.findAllSoldInChannel(payload)
|
|
1919
|
+
.subscribe((result) => {
|
|
1920
|
+
this.products = result.Data;
|
|
1921
|
+
this.products = this.productService.checkProductHasUploadBtn(this.products, this.channelOptions);
|
|
1922
|
+
this.products = this.productService.checkProductHasScanButton(this.products, this.channelOptions);
|
|
1923
|
+
});
|
|
1924
|
+
}
|
|
1925
|
+
//Function: SearchProduct() will search the product by name
|
|
1926
|
+
//If not found, it will search by variant code.
|
|
1927
|
+
//If still not found, it will show the whole product list
|
|
1928
|
+
searchProduct(event) {
|
|
1929
|
+
this.searchFilter.text = event;
|
|
1930
|
+
this.hasClickRowCount = false;
|
|
1931
|
+
this.getProducts();
|
|
1932
|
+
}
|
|
1933
|
+
/**
|
|
1934
|
+
* open modal detail Variant
|
|
1935
|
+
* @param index
|
|
1936
|
+
*/
|
|
1937
|
+
onOpenVariantDetail(index) {
|
|
1938
|
+
const variant = this.products[index].Variants;
|
|
1939
|
+
this.dialog.open(_modals_modal_variant_modal_variant_component__WEBPACK_IMPORTED_MODULE_1__.ModalVariantComponent, {
|
|
1940
|
+
data: { variants: variant, title: this.products[index].Name },
|
|
1941
|
+
width: "50%",
|
|
1942
|
+
});
|
|
1943
|
+
}
|
|
1944
|
+
//Function: openScanDialog() will open the scan dialog and pass the Channel list and the filter variable
|
|
1945
|
+
//It will return the modified filter and will run the scan function that the user has selected (full or quick)
|
|
1946
|
+
onOpenScanDialog() {
|
|
1947
|
+
let dialogFilter = JSON.parse(JSON.stringify(this.searchFilter));
|
|
1948
|
+
dialogFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty;
|
|
1949
|
+
const dialogRef = this.dialog.open(_modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_5__.ScanDialogComponent, {
|
|
1950
|
+
data: {
|
|
1951
|
+
filter: dialogFilter,
|
|
1952
|
+
channelOptions: this.channelOptions,
|
|
1953
|
+
},
|
|
1954
|
+
width: "40%",
|
|
1955
|
+
});
|
|
1956
|
+
dialogRef.afterClosed()
|
|
1957
|
+
.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.filter)(result => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.IsNotEmpty(result)))
|
|
1958
|
+
.subscribe((result) => {
|
|
1959
|
+
this.searchFilter.ChannelID = result.ChannelID;
|
|
1960
|
+
this.searchFilter.ScanFull = result.ScanFull;
|
|
1961
|
+
this.searchFilter.UpdatedProduct = result.UpdatedProduct;
|
|
1962
|
+
this.searchFilter.Async = result.Async;
|
|
1963
|
+
this.scanAllProduct();
|
|
1964
|
+
});
|
|
1965
|
+
}
|
|
1966
|
+
/**
|
|
1967
|
+
* scan all product in selected channel
|
|
1968
|
+
*/
|
|
1969
|
+
scanAllProduct() {
|
|
1970
|
+
let channel = this.productService.findChannelById(this.searchFilter.ChannelID, this.channelOptions);
|
|
1971
|
+
this.productService
|
|
1972
|
+
.scanAll(this.searchFilter.ChannelID, this.searchFilter.ScanFull, this.searchFilter.UpdatedProduct, this.searchFilter.Async)
|
|
1973
|
+
.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.filter)((result) => result))
|
|
1974
|
+
.subscribe((result) => {
|
|
1975
|
+
if (this.searchFilter.Async) {
|
|
1976
|
+
this.toastr.warning("You will be notified when the scan is completed.", "Scan In Progress", { toastClass: 'ngx-toastr toast-waiting' });
|
|
1977
|
+
}
|
|
1978
|
+
else {
|
|
1979
|
+
this.productService.successToastrScanAllProduct(result, channel, !this.searchFilter.UpdatedProduct);
|
|
1980
|
+
this.initPageLoader(src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty);
|
|
1981
|
+
}
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1984
|
+
onScanSingleProduct(product) {
|
|
1985
|
+
product.Channel = this.productService.getChannelProduct(product);
|
|
1986
|
+
let dialogFilter = JSON.parse(JSON.stringify(this.searchFilter));
|
|
1987
|
+
this.dialog
|
|
1988
|
+
.open(_modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_5__.ScanDialogComponent, {
|
|
1989
|
+
data: {
|
|
1990
|
+
filter: dialogFilter,
|
|
1991
|
+
channelOptions: this.channelOptions,
|
|
1992
|
+
isSingleChannel: true,
|
|
1993
|
+
},
|
|
1994
|
+
width: "40%",
|
|
1995
|
+
})
|
|
1996
|
+
.afterClosed()
|
|
1997
|
+
.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.filter)((result) => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.IsNotEmpty(result)))
|
|
1998
|
+
.subscribe((result) => {
|
|
1999
|
+
this.searchFilter.ChannelID = result.ChannelID;
|
|
2000
|
+
const codes = this.productService.getVariantCodesProduct(product);
|
|
2001
|
+
this.scanSingleProduct(codes);
|
|
2002
|
+
});
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* open modal upload single product to multiple channel
|
|
2006
|
+
* @param product
|
|
2007
|
+
*/
|
|
2008
|
+
onUploadToMultipleChannel(product) {
|
|
2009
|
+
let productChannel = this.productService.getChannelProduct(product);
|
|
2010
|
+
product.Channel = productChannel;
|
|
2011
|
+
let unselectedChannel = this.productService.filterUnselectedChannel(product, this.channelOptions);
|
|
2012
|
+
this.dialog.open(_modals_modal_uploadMultiple_product_modal_uploadMultiple_product_component__WEBPACK_IMPORTED_MODULE_4__.ModalUploadMultipleProductComponent, {
|
|
2013
|
+
width: "700px",
|
|
2014
|
+
data: {
|
|
2015
|
+
title: `Upload - ${product.Name}`,
|
|
2016
|
+
channels: unselectedChannel,
|
|
2017
|
+
products: [product],
|
|
2018
|
+
},
|
|
2019
|
+
})
|
|
2020
|
+
.afterClosed()
|
|
2021
|
+
.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.filter)(result => result !== "CANCEL"))
|
|
2022
|
+
.subscribe({
|
|
2023
|
+
next: (res) => {
|
|
2024
|
+
this.getProducts();
|
|
2025
|
+
}
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
2028
|
+
/**
|
|
2029
|
+
* Opens the scan dialog and pass the Channel list and the filter variable
|
|
2030
|
+
* It will return the modified filter and will run the scan function that the user has selected (full or quick)
|
|
2031
|
+
*/
|
|
2032
|
+
onScanSelectedProduct() {
|
|
2033
|
+
let channels = this.productService.filterChannelByTypeId(this.channelOptions, [src_app_model_enums_ChannelType_enum__WEBPACK_IMPORTED_MODULE_2__.ChannelType.Tokopedia, src_app_model_enums_ChannelType_enum__WEBPACK_IMPORTED_MODULE_2__.ChannelType.Tiktok]);
|
|
2034
|
+
this.searchFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty;
|
|
2035
|
+
let dialogFilter = JSON.parse(JSON.stringify(this.searchFilter));
|
|
2036
|
+
const dialogRef = this.dialog.open(_modals_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_5__.ScanDialogComponent, {
|
|
2037
|
+
data: {
|
|
2038
|
+
filter: dialogFilter,
|
|
2039
|
+
channelOptions: channels,
|
|
2040
|
+
isSingleChannel: true,
|
|
2041
|
+
},
|
|
2042
|
+
width: "40%",
|
|
2043
|
+
});
|
|
2044
|
+
dialogRef
|
|
2045
|
+
.afterClosed()
|
|
2046
|
+
.pipe((0,rxjs__WEBPACK_IMPORTED_MODULE_13__.filter)((result) => src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.IsNotEmpty(result)))
|
|
2047
|
+
.subscribe((result) => {
|
|
2048
|
+
this.searchFilter.ChannelID = result.ChannelID;
|
|
2049
|
+
this.searchFilter.ScanFull = result.ScanFull;
|
|
2050
|
+
this.searchFilter.UpdatedProduct = result.UpdatedProduct;
|
|
2051
|
+
let products = this.productService.selectedProduct(this.products);
|
|
2052
|
+
let codes = this.productService.getVariantCodesProducts(products);
|
|
2053
|
+
this.scanSingleProduct(codes);
|
|
2054
|
+
});
|
|
2055
|
+
}
|
|
2056
|
+
/**
|
|
2057
|
+
* call api scan single product to single channel
|
|
2058
|
+
* @param ids
|
|
2059
|
+
*/
|
|
2060
|
+
scanSingleProduct(ids) {
|
|
2061
|
+
this.productService.scanSingle(this.searchFilter.ChannelID, ids).subscribe({
|
|
2062
|
+
next: (res) => {
|
|
2063
|
+
if (res) {
|
|
2064
|
+
this.toastr.success("Successfully Scan ", "Success");
|
|
2065
|
+
}
|
|
2066
|
+
else {
|
|
2067
|
+
let child = this.productService.findChannelById(this.searchFilter.ChannelID, this.channelOptions);
|
|
2068
|
+
this.toastr.error(`This product is not existed in ${child?.Name} `, `Error`);
|
|
2069
|
+
}
|
|
2070
|
+
this.searchFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty;
|
|
2071
|
+
if (res) {
|
|
2072
|
+
this.getProducts();
|
|
2073
|
+
}
|
|
2074
|
+
},
|
|
2075
|
+
error: (err) => {
|
|
2076
|
+
this.searchFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty;
|
|
2077
|
+
},
|
|
2078
|
+
});
|
|
2079
|
+
}
|
|
2080
|
+
/**
|
|
2081
|
+
* Get variant code product for CARD UI
|
|
2082
|
+
* @param variants
|
|
2083
|
+
* @returns
|
|
2084
|
+
*/
|
|
2085
|
+
getVariantCode(variants) {
|
|
2086
|
+
let variantCode;
|
|
2087
|
+
if (variants.length > 1) {
|
|
2088
|
+
const model = variants[0].model ? variants[0].model : "";
|
|
2089
|
+
variantCode = model + variants[0].Code;
|
|
2090
|
+
}
|
|
2091
|
+
if (variants.length == 1) {
|
|
2092
|
+
variantCode = variants[0].Code;
|
|
2093
|
+
}
|
|
2094
|
+
return variantCode;
|
|
2095
|
+
}
|
|
2096
|
+
onClearFilterChannel() {
|
|
2097
|
+
this.searchFilter.ChannelID = src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.GuidEMpty;
|
|
2098
|
+
this.searchFilter.Item_id = "";
|
|
2099
|
+
}
|
|
2100
|
+
/**
|
|
2101
|
+
* open upload product dialog for upload multiple product to single channel
|
|
2102
|
+
*/
|
|
2103
|
+
onUploadMultipleProductSingleChannel() {
|
|
2104
|
+
this.dialog
|
|
2105
|
+
.open(_modals_uploadProductDialog_uploadProductDialog_component__WEBPACK_IMPORTED_MODULE_6__.UploadProductDialogComponent, {
|
|
2106
|
+
width: "40%",
|
|
2107
|
+
data: {
|
|
2108
|
+
item: null,
|
|
2109
|
+
selectedItemMissingChannel: this.channelOptions,
|
|
2110
|
+
},
|
|
2111
|
+
})
|
|
2112
|
+
.afterClosed()
|
|
2113
|
+
.subscribe((result) => {
|
|
2114
|
+
if (result) {
|
|
2115
|
+
let channelID = result.channelID;
|
|
2116
|
+
let categoryID = result.categoryID;
|
|
2117
|
+
this.uploadMultipleProduct(channelID, categoryID);
|
|
2118
|
+
}
|
|
2119
|
+
});
|
|
2120
|
+
}
|
|
2121
|
+
/**
|
|
2122
|
+
* call api upload multiple product to single channel
|
|
2123
|
+
* @param channelID
|
|
2124
|
+
* @param categoryID
|
|
2125
|
+
*/
|
|
2126
|
+
uploadMultipleProduct(channelID, categoryID) {
|
|
2127
|
+
const selectedProducts = this.productService.selectedProduct(this.products);
|
|
2128
|
+
this.productService
|
|
2129
|
+
.uploadMultipleProduct(selectedProducts, channelID, categoryID)
|
|
2130
|
+
.subscribe((result) => {
|
|
2131
|
+
this.getProducts();
|
|
2132
|
+
const selectedChannel = this.productService.findChannelById(channelID, this.channelOptions);
|
|
2133
|
+
if (selectedProducts.length > 1) {
|
|
2134
|
+
this.toastr.success("Successfully uploaded " +
|
|
2135
|
+
selectedProducts.length +
|
|
2136
|
+
" Product to channel " +
|
|
2137
|
+
selectedChannel?.Name, "Success");
|
|
2138
|
+
}
|
|
2139
|
+
else {
|
|
2140
|
+
this.toastr.success(selectedChannel?.Name + " Successfully Created", "Success");
|
|
2141
|
+
}
|
|
2142
|
+
});
|
|
2143
|
+
}
|
|
2144
|
+
/**
|
|
2145
|
+
* get row count from api GetSoldInChannelRowCount
|
|
2146
|
+
*/
|
|
2147
|
+
getRowCount() {
|
|
2148
|
+
let payload = {
|
|
2149
|
+
ListChannelID: this.searchFilter.ListChannelID,
|
|
2150
|
+
text: this.searchFilter.text
|
|
2151
|
+
};
|
|
2152
|
+
this.http
|
|
2153
|
+
.post("/api/product/GetSoldInChannelRowCount", payload)
|
|
2154
|
+
.subscribe((result) => {
|
|
2155
|
+
this.hasClickRowCount = true;
|
|
2156
|
+
this.rowCount = result.Total;
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2159
|
+
/**
|
|
2160
|
+
* Pagination next page
|
|
2161
|
+
*/
|
|
2162
|
+
onNextPage() {
|
|
2163
|
+
this.searchFilter.PageNumber = this.searchFilter.PageNumber + 1;
|
|
2164
|
+
this.getProducts();
|
|
2165
|
+
}
|
|
2166
|
+
/**
|
|
2167
|
+
* Pagination previous page
|
|
2168
|
+
*/
|
|
2169
|
+
onPreviousPage() {
|
|
2170
|
+
this.searchFilter.PageNumber = this.searchFilter.PageNumber - 1;
|
|
2171
|
+
this.getProducts();
|
|
2172
|
+
}
|
|
2173
|
+
getChannelLogo(typeId) {
|
|
2174
|
+
return src_app_model_Constants__WEBPACK_IMPORTED_MODULE_3__.Constants.getChannelLogoByTypeId(typeId);
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
SoldInChannelComponent.ɵfac = function SoldInChannelComponent_Factory(t) { return new (t || SoldInChannelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_7__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_14__.MatDialog), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_15__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](src_app_services_product_service__WEBPACK_IMPORTED_MODULE_8__.ProductService), _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_16__.ActivatedRoute)); };
|
|
2178
|
+
SoldInChannelComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵdefineComponent"]({ type: SoldInChannelComponent, selectors: [["app-sold-in-channel"]], decls: 19, vars: 10, consts: [["headerTitle", "Sold in Channel", "description", "SKU has been mapped between dealpos and marketplace", 3, "onSubmit"], ["type", "button", "data-cy", "scanSoldinChannel", "class", "btn btn-outline-secondary shadow rounded", 3, "click", 4, "ngIf"], ["type", "button", "data-cy", "scanInPos", "class", "btn btn-outline-secondary shadow rounded me-2", 3, "click", 4, "ngIf"], ["class", "btn btn-light shadow rounded ms-2", 3, "click", 4, "ngIf"], [1, "d-flex"], ["container", ""], ["bindLabel", "Name", "name", "channelid", "bindValue", "ID", "placeholder", "Select Channel", 1, "center-text", 3, "clearable", "multiple", "items", "ngModel", "ngModelChange", "clear"], ["ng-option-tmp", ""], [4, "ngIf"], [1, "container-fluid"], [1, "row", "mt-8"], ["class", "col-12 col-md-6 col-xl-4 px-3 my-3", 4, "ngFor", "ngForOf"], ["class", "row", 4, "ngIf"], ["type", "button", "data-cy", "scanSoldinChannel", 1, "btn", "btn-outline-secondary", "shadow", "rounded", 3, "click"], [1, "fas", "fa-lg", "fa-crosshairs"], ["type", "button", "data-cy", "scanInPos", 1, "btn", "btn-outline-secondary", "shadow", "rounded", "me-2", 3, "click"], [1, "btn", "btn-light", "shadow", "rounded", "ms-2", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-upload"], [1, "me-2"], ["alt", "", 2, "width", "18px", 3, "src"], ["type", "text", "name", "Item_id", "id", "Item_id", 1, "form-control", 3, "ngModel", "ngModelChange"], [1, "col-12", "col-md-6", "col-xl-4", "px-3", "my-3"], [3, "productId", "title", "image", "description", "channels", "code", "showCheckBox", "scanButton", "uploadButton", "imageForZoom", "onUpload", "onDescEvent", "onScan", "onCheckBoxChange"], [1, "row"], [1, "col-12"], [3, "filter", "totaldata", "paginationTotal", "hasClicked", "total", "next", "previous"]], template: function SoldInChannelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2179
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](0, "mainpanel", 0);
|
|
2180
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("onSubmit", function SoldInChannelComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.searchProduct($event); });
|
|
2181
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](1, "actions");
|
|
2182
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](2, SoldInChannelComponent_button_2_Template, 3, 0, "button", 1);
|
|
2183
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](3, SoldInChannelComponent_button_3_Template, 3, 1, "button", 2);
|
|
2184
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](4, SoldInChannelComponent_button_4_Template, 3, 0, "button", 3);
|
|
2185
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
2186
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](5, "filters")(6, "div", 4)(7, "div", 5)(8, "div")(9, "h6");
|
|
2187
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtext"](10, "Channel");
|
|
2188
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
2189
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](11, "ng-select", 6);
|
|
2190
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵlistener"]("ngModelChange", function SoldInChannelComponent_Template_ng_select_ngModelChange_11_listener($event) { return ctx.searchFilter.ListChannelID = $event; })("clear", function SoldInChannelComponent_Template_ng_select_clear_11_listener() { return ctx.onClearFilterChannel(); });
|
|
2191
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](12, SoldInChannelComponent_ng_template_12_Template, 3, 2, "ng-template", 7);
|
|
2192
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()();
|
|
2193
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](13, SoldInChannelComponent_div_13_Template, 4, 1, "div", 8);
|
|
2194
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()();
|
|
2195
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementStart"](14, "content")(15, "div", 9)(16, "div", 10);
|
|
2196
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](17, SoldInChannelComponent_div_17_Template, 2, 10, "div", 11);
|
|
2197
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]();
|
|
2198
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵtemplate"](18, SoldInChannelComponent_div_18_Template, 3, 4, "div", 12);
|
|
2199
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵelementEnd"]()()();
|
|
2200
|
+
} if (rf & 2) {
|
|
2201
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
|
|
2202
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", !ctx.productService.hasSelection(ctx.products));
|
|
2203
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
|
|
2204
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.productService.hasSelection(ctx.products));
|
|
2205
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
|
|
2206
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.productService.hasSelection(ctx.products));
|
|
2207
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](7);
|
|
2208
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("clearable", true)("multiple", true)("items", ctx.channelOptions)("ngModel", ctx.searchFilter.ListChannelID);
|
|
2209
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](2);
|
|
2210
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.searchFilter.ListChannelID != undefined);
|
|
2211
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](4);
|
|
2212
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngForOf", ctx.products);
|
|
2213
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵadvance"](1);
|
|
2214
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_12__["ɵɵproperty"]("ngIf", ctx.products == null ? null : ctx.products.length);
|
|
2215
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_17__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_17__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_18__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_9__.MainPanelComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__.NgSelectComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__.NgOptionTemplateDirective, _sharing_module_product_card_product_card_component__WEBPACK_IMPORTED_MODULE_10__.ProductCardComponent, _sharing_module_custom_paginator_custom_paginator_component__WEBPACK_IMPORTED_MODULE_11__.CustomPaginatorComponent], styles: [".badge-pill[_ngcontent-%COMP%] {\n padding-bottom: 16px !important;\n}\n\n.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%] {\n background: #dfeffc;\n border: 1px solid #dfeffc;\n}\n\n.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%] {\n visibility: hidden;\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n border: 1px solid #ddd;\n border-radius: 3px;\n margin-right: 10px;\n cursor: pointer;\n padding: 10px;\n margin-bottom: 10px;\n color: #000;\n width: 80px;\n text-align: center;\n}\n\n.modal-dialog[_ngcontent-%COMP%] {\n max-width: 30% !important;\n}\n\n.product[_ngcontent-%COMP%] {\n height: 100% !important;\n}\n\n.text-larger[_ngcontent-%COMP%] {\n font-size: larger;\n}\n\n.row[_ngcontent-%COMP%] {\n margin-left: 0;\n margin-right: 0;\n}\n\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n\n.link[_ngcontent-%COMP%] {\n color: #0202ab;\n cursor: pointer;\n}\n\n.px-1[_ngcontent-%COMP%] {\n padding-left: 5px !important;\n}\n\n.sku[_ngcontent-%COMP%] {\n color: dimgray;\n font-style: italic;\n}\n\n.badge-pill[_ngcontent-%COMP%] {\n height: 16px;\n}\n\n.itemTitle[_ngcontent-%COMP%] {\n text-overflow: ellipsis;\n \n white-space: nowrap;\n overflow: hidden;\n}\n\n.no-title[_ngcontent-%COMP%] {\n margin-top: 0.33em;\n margin-bottom: 0.33rem;\n}\n\n.mb-upload[_ngcontent-%COMP%] {\n padding-bottom: 0.625rem;\n}\n\n.my-1rem[_ngcontent-%COMP%] {\n margin-bottom: 1rem !important;\n margin-top: 1rem !important;\n}\n\n.pr-rem[_ngcontent-%COMP%] {\n padding-right: 0.6rem;\n}\n\n.text-larger[_ngcontent-%COMP%] {\n font-size: larger;\n}\n\n.bg-lightpink[_ngcontent-%COMP%] {\n background-color: #f9dede;\n}\n\n.bottom-buttons[_ngcontent-%COMP%] {\n margin-left: 97px;\n}\n\n@media (min-width: 1200px) {\n .max-w-xl[_ngcontent-%COMP%] {\n max-width: 205px;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uXFxwcm9kdWN0cy5jb21wb25lbnQuc2NzcyIsInNvbGQtaW4tY2hhbm5lbC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLCtCQUFBO0FDQ0o7O0FERUE7RUFDSSxtQkFBQTtFQUNBLHlCQUFBO0FDQ0o7O0FERUE7RUFDSSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsT0FBQTtFQUNBLE1BQUE7QUNDSjs7QURFQTtFQUNJLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtFQUNBLGVBQUE7RUFDQSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0VBQ0EsV0FBQTtFQUNBLGtCQUFBO0FDQ0o7O0FERUE7RUFDSSx5QkFBQTtBQ0NKOztBREVBO0VBQ0ksdUJBQUE7QUNDSjs7QURFQTtFQUNJLGlCQUFBO0FDQ0o7O0FERUE7RUFDSSxjQUFBO0VBQ0EsZUFBQTtBQ0NKOztBREVBO0VBQ0kscUJBQUE7QUNDSjs7QURFQTtFQUNJLGNBQUE7RUFDQSxlQUFBO0FDQ0o7O0FERUE7RUFDQyw0QkFBQTtBQ0NEOztBREVBO0VBQ0ksY0FBQTtFQUNBLGtCQUFBO0FDQ0o7O0FERUE7RUFDSSxZQUFBO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TtcbiAgbWFyZ2luLWJvdHRvbTogMC4zM3JlbTtcbn1cblxuLm1iLXVwbG9hZCB7XG4gIHBhZGRpbmctYm90dG9tOiAwLjYyNXJlbTtcbn1cblxuLm15LTFyZW0ge1xuICBtYXJnaW4tYm90dG9tOiAxcmVtICFpbXBvcnRhbnQ7XG4gIG1hcmdpbi10b3A6IDFyZW0gIWltcG9ydGFudDtcbn1cblxuLnByLXJlbSB7XG4gIHBhZGRpbmctcmlnaHQ6IDAuNnJlbTtcbn1cblxuLnRleHQtbGFyZ2VyIHtcbiAgZm9udC1zaXplOiBsYXJnZXI7XG59XG5cbi5iZy1saWdodHBpbmsge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjlkZWRlO1xufVxuXG4uYm90dG9tLWJ1dHRvbnMge1xuICBtYXJnaW4tbGVmdDogOTdweDtcbn1cblxuQG1lZGlhIChtaW4td2lkdGg6IDEyMDBweCkge1xuICAubWF4LXcteGwge1xuICAgIG1heC13aWR0aDogMjA1cHg7XG4gIH1cbn0iXX0= */"] });
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
/***/ }),
|
|
2219
|
+
|
|
2220
|
+
/***/ 5631:
|
|
2221
|
+
/*!*******************************************************************************************!*\
|
|
2222
|
+
!*** ./src/app/sharing-module/duplicate-product-card/duplicate-product-card.component.ts ***!
|
|
2223
|
+
\*******************************************************************************************/
|
|
2224
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2225
|
+
|
|
2226
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2227
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2228
|
+
/* harmony export */ "DuplicateProductCardComponent": () => (/* binding */ DuplicateProductCardComponent)
|
|
2229
|
+
/* harmony export */ });
|
|
2230
|
+
/* harmony import */ var src_app_model_Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/model/Constants */ 1889);
|
|
2231
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
2232
|
+
/* harmony import */ var src_app_services_biggerPicture_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/biggerPicture.service */ 886);
|
|
2233
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
2234
|
+
/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/tooltip */ 6896);
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
|
|
2239
|
+
|
|
2240
|
+
function DuplicateProductCardComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
2241
|
+
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
|
|
2242
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
|
|
2243
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "img", 14);
|
|
2244
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DuplicateProductCardComponent_ng_container_6_Template_img_click_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r5.onZoomImage($event)); });
|
|
2245
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2246
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
|
|
2247
|
+
} if (rf & 2) {
|
|
2248
|
+
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
2249
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2250
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r0.image, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
|
|
2251
|
+
} }
|
|
2252
|
+
function DuplicateProductCardComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
2253
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 15);
|
|
2254
|
+
} }
|
|
2255
|
+
function DuplicateProductCardComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
2256
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 16);
|
|
2257
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 17);
|
|
2258
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span");
|
|
2259
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
|
|
2260
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
|
|
2261
|
+
} if (rf & 2) {
|
|
2262
|
+
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
2263
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
|
|
2264
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r3.code);
|
|
2265
|
+
} }
|
|
2266
|
+
const _c0 = function (a0) { return { "border-bottom": a0 }; };
|
|
2267
|
+
function DuplicateProductCardComponent_div_15_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
2268
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
|
|
2269
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 28)(2, "div", 29);
|
|
2270
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
|
|
2271
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2272
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div")(5, "a", 30);
|
|
2273
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "i", 31);
|
|
2274
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
|
|
2275
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
|
|
2276
|
+
} if (rf & 2) {
|
|
2277
|
+
const productDuplicate_r10 = ctx.$implicit;
|
|
2278
|
+
const i_r11 = ctx.index;
|
|
2279
|
+
const channel_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
|
|
2280
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2281
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](3, _c0, i_r11 !== (channel_r7 == null ? null : channel_r7.Map.length) - 1));
|
|
2282
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
2283
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", productDuplicate_r10.Name, " ");
|
|
2284
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
2285
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("href", productDuplicate_r10.URL, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
|
|
2286
|
+
} }
|
|
2287
|
+
const _c1 = function (a0) { return { "border-bottom-0": a0 }; };
|
|
2288
|
+
function DuplicateProductCardComponent_div_15_Template(rf, ctx) { if (rf & 1) {
|
|
2289
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18)(1, "h2", 19)(2, "button", 20)(3, "div", 21);
|
|
2290
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "img", 22);
|
|
2291
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "span", 23);
|
|
2292
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
|
|
2293
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2294
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 24)(8, "h4");
|
|
2295
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
|
|
2296
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()();
|
|
2297
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 25)(11, "div", 26);
|
|
2298
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, DuplicateProductCardComponent_div_15_ng_container_12_Template, 7, 5, "ng-container", 27);
|
|
2299
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
|
|
2300
|
+
} if (rf & 2) {
|
|
2301
|
+
const channel_r7 = ctx.$implicit;
|
|
2302
|
+
const i_r8 = ctx.index;
|
|
2303
|
+
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
2304
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](11, _c1, ctx_r4.channels.length - 1 == i_r8));
|
|
2305
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2306
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("id", "heading" + i_r8 + ctx_r4.code);
|
|
2307
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2308
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("data-bs-target", "#collapse" + i_r8 + ctx_r4.code)("aria-controls", "#collapse" + i_r8 + ctx_r4.code);
|
|
2309
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
2310
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r4.getChannelLogo(channel_r7.TypeID), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
|
|
2311
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2312
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("matTooltip", (channel_r7 == null ? null : channel_r7.Name == null ? null : channel_r7.Name.length) > 30 ? channel_r7.Name : "");
|
|
2313
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2314
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](channel_r7.Name);
|
|
2315
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
|
|
2316
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("- ", channel_r7.Map.length, " Listing");
|
|
2317
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2318
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("id", "collapse" + i_r8 + ctx_r4.code);
|
|
2319
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("aria-labelledby", "heading" + i_r8 + ctx_r4.code);
|
|
2320
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
2321
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", channel_r7.Map);
|
|
2322
|
+
} }
|
|
2323
|
+
class DuplicateProductCardComponent {
|
|
2324
|
+
constructor(biggerPictureService) {
|
|
2325
|
+
this.biggerPictureService = biggerPictureService;
|
|
2326
|
+
}
|
|
2327
|
+
getChannelLogo(typeId) {
|
|
2328
|
+
return src_app_model_Constants__WEBPACK_IMPORTED_MODULE_0__.Constants.getChannelLogoByTypeId(typeId);
|
|
2329
|
+
}
|
|
2330
|
+
onZoomImage(ev) {
|
|
2331
|
+
this.biggerPictureService.openBiggerPicture(ev, this.imageForZoom);
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
DuplicateProductCardComponent.ɵfac = function DuplicateProductCardComponent_Factory(t) { return new (t || DuplicateProductCardComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_services_biggerPicture_service__WEBPACK_IMPORTED_MODULE_1__.BiggerPictureService)); };
|
|
2335
|
+
DuplicateProductCardComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: DuplicateProductCardComponent, selectors: [["app-duplicate-product-card"]], inputs: { image: "image", imageForZoom: "imageForZoom", title: "title", code: "code", channels: "channels" }, decls: 16, vars: 5, consts: [[1, "card"], [1, "card-body", "py-6"], [1, "row"], [1, "col-4"], [1, "productUpload_defaultSize", "me-2", "image-upload"], [1, "imgContainer"], [4, "ngIf", "ngIfElse"], ["elsePic", ""], [1, "col-8", "d-inline-block", "justify-content-between", "gx-0", 2, "padding-left", "0px"], [1, "itemTitle"], ["class", "description", 4, "ngIf"], [1, "card-footer", 2, "padding-left", "0px", "padding-right", "0px"], ["id", "accordionParent", 1, "accordion", "accordion-flush"], ["class", "accordion-item border-start-0 border-end-0", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "rounded", "imgUpload", "float-left", "cursor-pointer", 3, "src", "click"], ["src", "//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png", 1, "rounded", "float-left", "imgUpload"], [1, "description"], [1, "fa", "fa-barcode", "me-2"], [1, "accordion-item", "border-start-0", "border-end-0", 3, "ngClass"], [1, "accordion-header", 3, "id"], ["type", "button", "data-bs-toggle", "collapse", "aria-expanded", "true", 1, "accordion-button", "collapsed", 2, "height", "40px"], [1, "d-flex", "align-items-center", "justify-content-start", "w-100"], ["alt", "", 1, "channel-logo", 3, "src"], [1, "fs-4", "ps-4", "text-ellipsis", 2, "max-width", "13vw", 3, "matTooltip"], [1, "ps-2"], ["data-bs-parent", "#accordionParent", 1, "accordion-collapse", "collapse", 3, "id"], [1, "accordion-body", 2, "padding-top", "0px", "padding-bottom", "0px"], [4, "ngFor", "ngForOf"], [1, "d-flex", "justify-content-between", "align-items-center", "py-4", 3, "ngClass"], [1, "text-ellipsis"], ["target", "_blank", 1, "text-secondary", 3, "href"], [1, "fa", "fa-external-link-alt"]], template: function DuplicateProductCardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2336
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "div", 5);
|
|
2337
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, DuplicateProductCardComponent_ng_container_6_Template, 2, 1, "ng-container", 6);
|
|
2338
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, DuplicateProductCardComponent_ng_template_7_Template, 1, 0, "ng-template", null, 7, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
|
|
2339
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
|
|
2340
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 8)(10, "h4", 9);
|
|
2341
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11);
|
|
2342
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2343
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, DuplicateProductCardComponent_div_12_Template, 4, 1, "div", 10);
|
|
2344
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
|
|
2345
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 11)(14, "div", 12);
|
|
2346
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, DuplicateProductCardComponent_div_15_Template, 13, 13, "div", 13);
|
|
2347
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
|
|
2348
|
+
} if (rf & 2) {
|
|
2349
|
+
const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](8);
|
|
2350
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
|
|
2351
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.image)("ngIfElse", _r1);
|
|
2352
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
|
|
2353
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.title, " ");
|
|
2354
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2355
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.code);
|
|
2356
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
|
|
2357
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.channels);
|
|
2358
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgIf, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__.MatTooltip], styles: [".productUpload_defaultSize[_ngcontent-%COMP%] {\n max-width: 100px !important;\n max-height: 100px !important;\n width: auto !important;\n height: auto !important;\n}\n\n.image-upload[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.imgContainer[_ngcontent-%COMP%] {\n width: 100%;\n height: 100px;\n}\n\n.imgUpload[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n object-fit: scale-down;\n}\n\n.channel-logo[_ngcontent-%COMP%] {\n width: 18px;\n height: 18px;\n}\n\n.accordion-button[_ngcontent-%COMP%] {\n background-color: rgba(237, 237, 237, 0.4117647059) !important;\n}\n\n.accordion-button[_ngcontent-%COMP%]:not(.collapsed) {\n background-color: rgba(237, 237, 237, 0.4117647059) !important;\n color: #333333;\n}\n\n.accordion-button[_ngcontent-%COMP%]::after {\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e\");\n}\n\n.accordion-button[_ngcontent-%COMP%]:focus {\n box-shadow: none !important;\n}\n\n.card[_ngcontent-%COMP%] {\n margin-bottom: 0px !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImR1cGxpY2F0ZS1wcm9kdWN0LWNhcmQuY29tcG9uZW50LnNjc3MiXS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OiAwcHggIWltcG9ydGFudDtcclxufSJdfQ== */"] });
|
|
2359
|
+
|
|
2360
|
+
|
|
2361
|
+
/***/ }),
|
|
2362
|
+
|
|
2363
|
+
/***/ 6946:
|
|
2364
|
+
/*!****************************************************************************************!*\
|
|
2365
|
+
!*** ./src/app/sharing-module/duplicate-product-card/duplicate-product-card.module.ts ***!
|
|
2366
|
+
\****************************************************************************************/
|
|
2367
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2368
|
+
|
|
2369
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2370
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2371
|
+
/* harmony export */ "DuplicateProductCardModule": () => (/* binding */ DuplicateProductCardModule)
|
|
2372
|
+
/* harmony export */ });
|
|
2373
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
2374
|
+
/* harmony import */ var _duplicate_product_card_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./duplicate-product-card.component */ 5631);
|
|
2375
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
2376
|
+
/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/tooltip */ 6896);
|
|
2377
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
class DuplicateProductCardModule {
|
|
2384
|
+
}
|
|
2385
|
+
DuplicateProductCardModule.ɵfac = function DuplicateProductCardModule_Factory(t) { return new (t || DuplicateProductCardModule)(); };
|
|
2386
|
+
DuplicateProductCardModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: DuplicateProductCardModule });
|
|
2387
|
+
DuplicateProductCardModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule,
|
|
2388
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormsModule,
|
|
2389
|
+
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__.MatTooltipModule] });
|
|
2390
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](DuplicateProductCardModule, { declarations: [_duplicate_product_card_component__WEBPACK_IMPORTED_MODULE_0__.DuplicateProductCardComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule,
|
|
2391
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormsModule,
|
|
2392
|
+
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__.MatTooltipModule], exports: [_duplicate_product_card_component__WEBPACK_IMPORTED_MODULE_0__.DuplicateProductCardComponent] }); })();
|
|
2393
|
+
|
|
2394
|
+
|
|
2395
|
+
/***/ }),
|
|
2396
|
+
|
|
2397
|
+
/***/ 6956:
|
|
2398
|
+
/*!***********************************************************************!*\
|
|
2399
|
+
!*** ./src/app/sharing-module/product-card/product-card.component.ts ***!
|
|
2400
|
+
\***********************************************************************/
|
|
2401
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2402
|
+
|
|
2403
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2404
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2405
|
+
/* harmony export */ "ProductCardComponent": () => (/* binding */ ProductCardComponent)
|
|
2406
|
+
/* harmony export */ });
|
|
2407
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
2408
|
+
/* harmony import */ var src_app_model_Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/model/Constants */ 1889);
|
|
2409
|
+
/* harmony import */ var src_app_services_biggerPicture_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/biggerPicture.service */ 886);
|
|
2410
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
2411
|
+
/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/tooltip */ 6896);
|
|
2412
|
+
|
|
2413
|
+
|
|
2414
|
+
|
|
2415
|
+
|
|
2416
|
+
|
|
2417
|
+
|
|
2418
|
+
function ProductCardComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
2419
|
+
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
|
|
2420
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
|
|
2421
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "img", 19);
|
|
2422
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ProductCardComponent_ng_container_6_Template_img_click_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r12.openBiggerPicture($event)); });
|
|
2423
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2424
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
|
|
2425
|
+
} if (rf & 2) {
|
|
2426
|
+
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
2427
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2428
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r0.image, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
|
|
2429
|
+
} }
|
|
2430
|
+
function ProductCardComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
2431
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 20);
|
|
2432
|
+
} }
|
|
2433
|
+
function ProductCardComponent_div_12_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
2434
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
|
|
2435
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 24)(2, "a", 25);
|
|
2436
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 26);
|
|
2437
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
|
|
2438
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
|
|
2439
|
+
} if (rf & 2) {
|
|
2440
|
+
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
|
|
2441
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
2442
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("href", ctx_r14.redirectUrl, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
|
|
2443
|
+
} }
|
|
2444
|
+
function ProductCardComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
2445
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 21);
|
|
2446
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 22);
|
|
2447
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span");
|
|
2448
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
|
|
2449
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2450
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, ProductCardComponent_div_12_ng_container_4_Template, 4, 1, "ng-container", 23);
|
|
2451
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2452
|
+
} if (rf & 2) {
|
|
2453
|
+
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
2454
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
|
|
2455
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r3.code);
|
|
2456
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2457
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r3.code !== "SKU not assigned" && ctx_r3.showRedirectIcon);
|
|
2458
|
+
} }
|
|
2459
|
+
function ProductCardComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
2460
|
+
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
|
|
2461
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 27);
|
|
2462
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ProductCardComponent_div_13_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r15.onEventDesc()); });
|
|
2463
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 28);
|
|
2464
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span");
|
|
2465
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
|
|
2466
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
|
|
2467
|
+
} if (rf & 2) {
|
|
2468
|
+
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
2469
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
|
|
2470
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r4.description);
|
|
2471
|
+
} }
|
|
2472
|
+
function ProductCardComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
2473
|
+
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
|
|
2474
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 29)(1, "input", 30);
|
|
2475
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function ProductCardComponent_div_16_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r18); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r17.onCheck($event.target.checked)); });
|
|
2476
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
|
|
2477
|
+
} }
|
|
2478
|
+
function ProductCardComponent_button_19_Template(rf, ctx) { if (rf & 1) {
|
|
2479
|
+
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
|
|
2480
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 31);
|
|
2481
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ProductCardComponent_button_19_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r20); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r19.onDownload()); });
|
|
2482
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 32);
|
|
2483
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Download ");
|
|
2484
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2485
|
+
} }
|
|
2486
|
+
function ProductCardComponent_button_20_Template(rf, ctx) { if (rf & 1) {
|
|
2487
|
+
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
|
|
2488
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 31);
|
|
2489
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ProductCardComponent_button_20_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r22); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r21.onUpload()); });
|
|
2490
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 33);
|
|
2491
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Upload ");
|
|
2492
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2493
|
+
} }
|
|
2494
|
+
function ProductCardComponent_button_21_Template(rf, ctx) { if (rf & 1) {
|
|
2495
|
+
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
|
|
2496
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 34);
|
|
2497
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ProductCardComponent_button_21_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r24); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r23.onScan()); });
|
|
2498
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 35);
|
|
2499
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Scan ");
|
|
2500
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2501
|
+
} }
|
|
2502
|
+
const _c0 = function (a0) { return { "me-3": a0 }; };
|
|
2503
|
+
function ProductCardComponent_ng_container_23_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
2504
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
|
|
2505
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "a", 37);
|
|
2506
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "img", 38);
|
|
2507
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2508
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
|
|
2509
|
+
} if (rf & 2) {
|
|
2510
|
+
const channel_r26 = ctx.$implicit;
|
|
2511
|
+
const i_r27 = ctx.index;
|
|
2512
|
+
const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
|
|
2513
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2514
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("href", channel_r26.Url, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
|
|
2515
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2516
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](4, _c0, i_r27 != ctx_r25.channels.length - 1))("src", ctx_r25.getChannelLogo(channel_r26), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"])("matTooltip", channel_r26.Title ? channel_r26.Title : channel_r26.Name);
|
|
2517
|
+
} }
|
|
2518
|
+
function ProductCardComponent_ng_container_23_Template(rf, ctx) { if (rf & 1) {
|
|
2519
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
|
|
2520
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, ProductCardComponent_ng_container_23_ng_container_1_Template, 3, 6, "ng-container", 36);
|
|
2521
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
|
|
2522
|
+
} if (rf & 2) {
|
|
2523
|
+
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
2524
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2525
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r9.channels);
|
|
2526
|
+
} }
|
|
2527
|
+
const _c1 = function (a0) { return { "border-bottom pb-2": a0 }; };
|
|
2528
|
+
function ProductCardComponent_ng_template_24_li_4_Template(rf, ctx) { if (rf & 1) {
|
|
2529
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li")(1, "div", 42)(2, "div", 43)(3, "a", 37);
|
|
2530
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "img", 44);
|
|
2531
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "span", 45);
|
|
2532
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
|
|
2533
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()();
|
|
2534
|
+
} if (rf & 2) {
|
|
2535
|
+
const channel_r29 = ctx.$implicit;
|
|
2536
|
+
const i_r30 = ctx.index;
|
|
2537
|
+
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
|
|
2538
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
2539
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](4, _c1, i_r30 != ctx_r28.channels.length - 1));
|
|
2540
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2541
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("href", channel_r29.Url, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
|
|
2542
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2543
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r28.getChannelLogo(channel_r29), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
|
|
2544
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
2545
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](channel_r29.Title);
|
|
2546
|
+
} }
|
|
2547
|
+
function ProductCardComponent_ng_template_24_Template(rf, ctx) { if (rf & 1) {
|
|
2548
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 39)(1, "button", 40);
|
|
2549
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
|
|
2550
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2551
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ul", 41);
|
|
2552
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, ProductCardComponent_ng_template_24_li_4_Template, 7, 6, "li", 36);
|
|
2553
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
|
|
2554
|
+
} if (rf & 2) {
|
|
2555
|
+
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
|
|
2556
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
2557
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r11.channels.length, " CHANNELS ");
|
|
2558
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
2559
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r11.channels);
|
|
2560
|
+
} }
|
|
2561
|
+
class ProductCardComponent {
|
|
2562
|
+
constructor(biggerPictureService) {
|
|
2563
|
+
this.biggerPictureService = biggerPictureService;
|
|
2564
|
+
this.uploadButton = false;
|
|
2565
|
+
this.scanButton = false;
|
|
2566
|
+
this.showCheckBox = false;
|
|
2567
|
+
this.downloadButton = false;
|
|
2568
|
+
this.hasZoom = true;
|
|
2569
|
+
this.showRedirectIcon = true;
|
|
2570
|
+
this.onUploadEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
|
|
2571
|
+
this.onScanEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
|
|
2572
|
+
this.checkBoxChange = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
|
|
2573
|
+
this.onDescEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
|
|
2574
|
+
this.onDownloadEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_2__.EventEmitter();
|
|
2575
|
+
}
|
|
2576
|
+
ngAfterContentInit() {
|
|
2577
|
+
this.initRedirectUrl();
|
|
2578
|
+
}
|
|
2579
|
+
initRedirectUrl() {
|
|
2580
|
+
let storageData = localStorage.getItem('Authorization');
|
|
2581
|
+
let hostName = JSON.parse(storageData)?.Host;
|
|
2582
|
+
this.redirectUrl = `https://${hostName}/menu/Products/Catalog/Products/Info?ID=${this.productId}`;
|
|
2583
|
+
}
|
|
2584
|
+
onUpload() {
|
|
2585
|
+
this.onUploadEvent.emit();
|
|
2586
|
+
}
|
|
2587
|
+
onScan() {
|
|
2588
|
+
this.onScanEvent.emit();
|
|
2589
|
+
}
|
|
2590
|
+
onCheck(value) {
|
|
2591
|
+
this.checkBoxChange.emit(value);
|
|
2592
|
+
}
|
|
2593
|
+
onEventDesc() {
|
|
2594
|
+
this.onDescEvent.emit();
|
|
2595
|
+
}
|
|
2596
|
+
onDownload() {
|
|
2597
|
+
this.onDownloadEvent.emit();
|
|
2598
|
+
}
|
|
2599
|
+
getChannelLogo(channel) {
|
|
2600
|
+
return src_app_model_Constants__WEBPACK_IMPORTED_MODULE_0__.Constants.getChannelLogoByTypeId(channel.TypeID);
|
|
2601
|
+
}
|
|
2602
|
+
openBiggerPicture(ev) {
|
|
2603
|
+
this.biggerPictureService.openBiggerPicture(ev, this.imageForZoom);
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
ProductCardComponent.ɵfac = function ProductCardComponent_Factory(t) { return new (t || ProductCardComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_services_biggerPicture_service__WEBPACK_IMPORTED_MODULE_1__.BiggerPictureService)); };
|
|
2607
|
+
ProductCardComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ProductCardComponent, selectors: [["app-product-card"]], inputs: { productId: "productId", uploadButton: "uploadButton", scanButton: "scanButton", showCheckBox: "showCheckBox", downloadButton: "downloadButton", image: "image", title: "title", code: "code", description: "description", channels: "channels", check: "check", imageForZoom: "imageForZoom", hasZoom: "hasZoom", showRedirectIcon: "showRedirectIcon" }, outputs: { onUploadEvent: "onUpload", onScanEvent: "onScan", checkBoxChange: "onCheckBoxChange", onDescEvent: "onDescEvent", onDownloadEvent: "onDownload" }, decls: 26, vars: 11, consts: [[1, "card", 2, "margin-bottom", "0px"], [1, "card-body", "py-6"], [1, "row"], [1, "col-4"], [1, "productUpload_defaultSize", "me-2", "image-upload"], [1, "imgContainer"], [4, "ngIf", "ngIfElse"], ["elsePic", ""], [1, "col-7", "d-inline-block", "justify-content-between", "gx-0", 2, "padding-left", "0px"], [1, "itemTitle", "cursor-pointer", 3, "click"], ["class", "description cursor-pointer", 4, "ngIf"], ["class", "description cursor-pointer", 3, "click", 4, "ngIf"], [1, "col-1", "gx-0", "d-flex", "justify-content-center"], [1, "text-end"], ["class", "text-end gx-0", 4, "ngIf"], [1, "card-footer", "d-flex", "justify-content-between", "py-5", "bg-footer", "align-items-center", 2, "border-top", "0.1px solid rgb(220 220 220)"], ["class", "fs-6 btn btn-light btn-sm me-3", 3, "click", 4, "ngIf"], ["class", "fs-6 btn btn-light btn-sm", 3, "click", 4, "ngIf"], ["DROPDOWN", ""], ["alt", "", 1, "rounded", "imgUpload", "float-left", 3, "src", "click"], ["src", "//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png", 1, "rounded", "float-left", "imgUpload"], [1, "description", "cursor-pointer"], [1, "fa", "fa-barcode", "me-2"], [4, "ngIf"], [1, "ms-2"], ["target", "_blank", 2, "color", "#0976b4", 3, "href"], [1, "fas", "fa-external-link-alt"], [1, "description", "cursor-pointer", 3, "click"], [1, "fa", "fa-tag", "me-2"], [1, "text-end", "gx-0"], ["type", "checkbox", 3, "change"], [1, "fs-6", "btn", "btn-light", "btn-sm", "me-3", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-download"], ["aria-hidden", "true", 1, "fa", "fa-upload"], [1, "fs-6", "btn", "btn-light", "btn-sm", 3, "click"], [1, "fa", "fa-spinner"], [4, "ngFor", "ngForOf"], ["target", "_blank", 3, "href"], ["alt", "", 1, "img-logo", 3, "ngClass", "src", "matTooltip"], [1, "dropdown"], ["type", "button", "id", "dropdownMenuButton1", "data-bs-toggle", "dropdown", "aria-expanded", "false", 1, "btn", "fs-6", "btn-sm", "btn-light", "dropdown-toggle"], [1, "dropdown-menu"], [1, "dropdown-item", "py-2", 2, "cursor", "pointer"], [3, "ngClass"], [1, "img-logo", 3, "src"], [1, "ms-4"]], template: function ProductCardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2608
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "div", 5);
|
|
2609
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, ProductCardComponent_ng_container_6_Template, 2, 1, "ng-container", 6);
|
|
2610
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, ProductCardComponent_ng_template_7_Template, 1, 0, "ng-template", null, 7, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
|
|
2611
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
|
|
2612
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 8)(10, "h4", 9);
|
|
2613
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function ProductCardComponent_Template_h4_click_10_listener() { return ctx.onEventDesc(); });
|
|
2614
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11);
|
|
2615
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2616
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, ProductCardComponent_div_12_Template, 5, 2, "div", 10);
|
|
2617
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, ProductCardComponent_div_13_Template, 4, 1, "div", 11);
|
|
2618
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2619
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 12)(15, "div", 13);
|
|
2620
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, ProductCardComponent_div_16_Template, 2, 0, "div", 14);
|
|
2621
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
|
|
2622
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 15)(18, "div");
|
|
2623
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](19, ProductCardComponent_button_19_Template, 3, 0, "button", 16);
|
|
2624
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, ProductCardComponent_button_20_Template, 3, 0, "button", 16);
|
|
2625
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, ProductCardComponent_button_21_Template, 3, 0, "button", 17);
|
|
2626
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
2627
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div");
|
|
2628
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](23, ProductCardComponent_ng_container_23_Template, 2, 1, "ng-container", 6);
|
|
2629
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](24, ProductCardComponent_ng_template_24_Template, 5, 2, "ng-template", null, 18, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
|
|
2630
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
|
|
2631
|
+
} if (rf & 2) {
|
|
2632
|
+
const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](8);
|
|
2633
|
+
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](25);
|
|
2634
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
|
|
2635
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.image)("ngIfElse", _r1);
|
|
2636
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
|
|
2637
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.title, " ");
|
|
2638
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2639
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.code);
|
|
2640
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2641
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.description);
|
|
2642
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
|
|
2643
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.showCheckBox);
|
|
2644
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
|
|
2645
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.downloadButton);
|
|
2646
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2647
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.uploadButton);
|
|
2648
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
2649
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.scanButton);
|
|
2650
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
2651
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.channels.length < 4)("ngIfElse", _r10);
|
|
2652
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgIf, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__.MatTooltip], styles: [".img-logo[_ngcontent-%COMP%] {\n height: 24px;\n width: 24px;\n}\n\n.itemTitle[_ngcontent-%COMP%] {\n text-overflow: ellipsis;\n \n white-space: nowrap;\n overflow: hidden;\n max-width: 100%;\n}\n\n.bg-footer[_ngcontent-%COMP%] {\n background-color: rgba(237, 237, 237, 0.4117647059);\n}\n\n.description[_ngcontent-%COMP%] {\n font-weight: 300;\n margin-left: 2px;\n}\n\n.productUpload_defaultSize[_ngcontent-%COMP%] {\n max-width: 100px !important;\n max-height: 100px !important;\n width: auto !important;\n height: auto !important;\n}\n\n.image-upload[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.imgContainer[_ngcontent-%COMP%] {\n width: 100%;\n height: 100px;\n}\n\n.imgUpload[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n object-fit: scale-down;\n cursor: pointer;\n}\n\n.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%] {\n top: unset !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2R1Y3QtY2FyZC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQUE7RUFDQSxXQUFBO0FBQ0Y7O0FBRUE7RUFDRSx1QkFBQTtFQUNBLDhDQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7QUFDRjs7QUFFQTtFQUNFLG1EQUFBO0FBQ0Y7O0FBRUE7RUFDRSxnQkFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSwyQkFBQTtFQUNBLDRCQUFBO0VBQ0Esc0JBQUE7RUFDQSx1QkFBQTtBQUNGOztBQUVBO0VBQ0Usa0JBQUE7QUFDRjs7QUFFQTtFQUNFLFdBQUE7RUFDQSxhQUFBO0FBQ0Y7O0FBRUE7RUFDRSxXQUFBO0VBQ0EsWUFBQTtFQUNBLHNCQUFBO0VBQ0EsZUFBQTtBQUNGOztBQUVBO0VBQ0UscUJBQUE7QUFDRiIsImZpbGUiOiJwcm9kdWN0LWNhcmQuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuaW1nLWxvZ28ge1xyXG4gIGhlaWdodDogMjRweDtcclxuICB3aWR0aDogMjRweDtc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654
|
+
|
|
2655
|
+
/***/ }),
|
|
2656
|
+
|
|
2657
|
+
/***/ 3451:
|
|
2658
|
+
/*!********************************************************************!*\
|
|
2659
|
+
!*** ./src/app/sharing-module/product-card/product-card.module.ts ***!
|
|
2660
|
+
\********************************************************************/
|
|
2661
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2662
|
+
|
|
2663
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2664
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2665
|
+
/* harmony export */ "ProductCardModule": () => (/* binding */ ProductCardModule)
|
|
2666
|
+
/* harmony export */ });
|
|
2667
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
2668
|
+
/* harmony import */ var _product_card_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./product-card.component */ 6956);
|
|
2669
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
2670
|
+
/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/tooltip */ 6896);
|
|
2671
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
2672
|
+
|
|
2673
|
+
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
|
|
2677
|
+
class ProductCardModule {
|
|
2678
|
+
}
|
|
2679
|
+
ProductCardModule.ɵfac = function ProductCardModule_Factory(t) { return new (t || ProductCardModule)(); };
|
|
2680
|
+
ProductCardModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: ProductCardModule });
|
|
2681
|
+
ProductCardModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule,
|
|
2682
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormsModule,
|
|
2683
|
+
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__.MatTooltipModule] });
|
|
2684
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](ProductCardModule, { declarations: [_product_card_component__WEBPACK_IMPORTED_MODULE_0__.ProductCardComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__.CommonModule,
|
|
2685
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_3__.FormsModule,
|
|
2686
|
+
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_4__.MatTooltipModule], exports: [_product_card_component__WEBPACK_IMPORTED_MODULE_0__.ProductCardComponent] }); })();
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
/***/ })
|
|
2690
|
+
|
|
2691
|
+
}]);
|
|
2692
|
+
//# sourceMappingURL=src_app_menu_products_product_module_ts.js.map
|