marketplacepos 2.2.4 → 2.2.7
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/common.js +46 -0
- package/Marketplace/common.js.map +1 -0
- package/Marketplace/{default-src_app_services_checkbrowser_service_ts-node_modules_angular_forms_fesm2020_forms_mjs.js → default-node_modules_angular_forms_fesm2020_forms_mjs.js} +2 -43
- 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_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 +6836 -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-node_modules_angular_material_fesm2020_slid-566c11.js +722 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js.map +1 -0
- package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js +19951 -0
- package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js.map +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main.js +161 -161
- package/Marketplace/main.js.map +1 -1
- package/Marketplace/runtime.js +1 -1
- package/Marketplace/runtime.js.map +1 -1
- package/Marketplace/src_app_login_login_module_ts.js +10 -5
- package/Marketplace/src_app_login_login_module_ts.js.map +1 -1
- package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js +1060 -0
- package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_channels_channels_module_ts.js +9710 -0
- package/Marketplace/src_app_menu_channels_channels_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_inventory_inventory_module_ts.js +1069 -0
- package/Marketplace/src_app_menu_inventory_inventory_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_logistic_logistic_module_ts.js +232 -0
- package/Marketplace/src_app_menu_logistic_logistic_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_menu_module_ts.js +27861 -86252
- package/Marketplace/src_app_menu_menu_module_ts.js.map +1 -1
- package/Marketplace/src_app_menu_notification_notification_module_ts.js +192 -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 +1997 -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 +2449 -0
- package/Marketplace/src_app_menu_orders_orders_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_price_price_module_ts.js +1713 -0
- package/Marketplace/src_app_menu_price_price_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_products_product_module_ts.js +2196 -0
- package/Marketplace/src_app_menu_products_product_module_ts.js.map +1 -0
- package/Marketplace/styles.css +3 -0
- package/Marketplace/styles.css.map +1 -1
- package/package.json +1 -1
- package/Marketplace/default-src_app_services_checkbrowser_service_ts-node_modules_angular_forms_fesm2020_forms_mjs.js.map +0 -1
|
@@ -0,0 +1,2196 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
(self["webpackChunkpos_marketplace"] = self["webpackChunkpos_marketplace"] || []).push([["src_app_menu_products_product_module_ts"],{
|
|
3
|
+
|
|
4
|
+
/***/ 7398:
|
|
5
|
+
/*!***************************************************!*\
|
|
6
|
+
!*** ./src/app/menu/nav-tab/nav-tab.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 */ "NavTabComponent": () => (/* binding */ NavTabComponent),
|
|
13
|
+
/* harmony export */ "NavTabModule": () => (/* binding */ NavTabModule)
|
|
14
|
+
/* harmony export */ });
|
|
15
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
16
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
|
|
17
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
function NavTabComponent_li_1_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 2)(1, "a", 3);
|
|
25
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
|
|
26
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
|
|
27
|
+
} if (rf & 2) {
|
|
28
|
+
const tabMenu_r1 = ctx.$implicit;
|
|
29
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
|
|
30
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("routerLink", tabMenu_r1.Url);
|
|
31
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
|
|
32
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", tabMenu_r1.Title, " ");
|
|
33
|
+
} }
|
|
34
|
+
class NavTabComponent {
|
|
35
|
+
}
|
|
36
|
+
NavTabComponent.ɵfac = function NavTabComponent_Factory(t) { return new (t || NavTabComponent)(); };
|
|
37
|
+
NavTabComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NavTabComponent, selectors: [["nav-tab"]], inputs: { Tabs: "Tabs" }, decls: 2, vars: 1, consts: [[1, "nav", "navbar-nav", "navbar-left", "nav-tab-arrow"], ["routerLinkActive", "active", "class", "nav-item me-6", 4, "ngFor", "ngForOf"], ["routerLinkActive", "active", 1, "nav-item", "me-6"], [1, "nav-link", "nav-link-arrow", "mb-0", 3, "routerLink"]], template: function NavTabComponent_Template(rf, ctx) { if (rf & 1) {
|
|
38
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul", 0);
|
|
39
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NavTabComponent_li_1_Template, 3, 2, "li", 1);
|
|
40
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
|
|
41
|
+
} if (rf & 2) {
|
|
42
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
|
|
43
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.Tabs);
|
|
44
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgForOf, _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterLinkWithHref, _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterLinkActive], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJuYXYtdGFiLmNvbXBvbmVudC5zY3NzIn0= */"] });
|
|
45
|
+
class NavTabModule {
|
|
46
|
+
}
|
|
47
|
+
NavTabModule.ɵfac = function NavTabModule_Factory(t) { return new (t || NavTabModule)(); };
|
|
48
|
+
NavTabModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NavTabModule });
|
|
49
|
+
NavTabModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule,
|
|
50
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterModule] });
|
|
51
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NavTabModule, { declarations: [NavTabComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule,
|
|
52
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterModule], exports: [NavTabComponent] }); })();
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/***/ }),
|
|
56
|
+
|
|
57
|
+
/***/ 2741:
|
|
58
|
+
/*!************************************************************************!*\
|
|
59
|
+
!*** ./src/app/menu/products/duplicate-sku/duplicate-sku.component.ts ***!
|
|
60
|
+
\************************************************************************/
|
|
61
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
62
|
+
|
|
63
|
+
__webpack_require__.r(__webpack_exports__);
|
|
64
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
65
|
+
/* harmony export */ "DuplicateSkuComponent": () => (/* binding */ DuplicateSkuComponent)
|
|
66
|
+
/* harmony export */ });
|
|
67
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
68
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
69
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
70
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
71
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
72
|
+
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
function DuplicateSkuComponent_div_11_img_5_Template(rf, ctx) { if (rf & 1) {
|
|
80
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 16);
|
|
81
|
+
} }
|
|
82
|
+
function DuplicateSkuComponent_div_11_img_6_Template(rf, ctx) { if (rf & 1) {
|
|
83
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 17);
|
|
84
|
+
} }
|
|
85
|
+
function DuplicateSkuComponent_div_11_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
86
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18)(1, "table", 19)(2, "tr")(3, "td", 20);
|
|
87
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "img", 21);
|
|
88
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
89
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td", 22)(6, "a", 23);
|
|
90
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7);
|
|
91
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
92
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div");
|
|
93
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
|
|
94
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](10, "number");
|
|
95
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()();
|
|
96
|
+
} if (rf & 2) {
|
|
97
|
+
const i_r5 = ctx.$implicit;
|
|
98
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
|
|
99
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("src", i_r5.ImageURL, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
|
|
100
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
101
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("href", i_r5.URL, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
|
|
102
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
103
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](i_r5.Name);
|
|
104
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
|
|
105
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Rp. ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](10, 4, i_r5.Price), "");
|
|
106
|
+
} }
|
|
107
|
+
function DuplicateSkuComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
108
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 6)(1, "div", 7)(2, "div", 8)(3, "div", 4)(4, "div", 9);
|
|
109
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, DuplicateSkuComponent_div_11_img_5_Template, 1, 0, "img", 10);
|
|
110
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, DuplicateSkuComponent_div_11_img_6_Template, 1, 0, "img", 11);
|
|
111
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
112
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 12)(8, "h4");
|
|
113
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
|
|
114
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
|
|
115
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 13)(11, "div", 14);
|
|
116
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, DuplicateSkuComponent_div_11_div_12_Template, 11, 6, "div", 15);
|
|
117
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
|
|
118
|
+
} if (rf & 2) {
|
|
119
|
+
const m_r1 = ctx.$implicit;
|
|
120
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
|
|
121
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", m_r1.TypeID == 1);
|
|
122
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
|
|
123
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", m_r1.TypeID == 0);
|
|
124
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
|
|
125
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("", m_r1 == null ? null : m_r1.SKU, " (", m_r1 == null ? null : m_r1.Child == null ? null : m_r1.Child.length, " Alies)");
|
|
126
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
|
|
127
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", m_r1.Child);
|
|
128
|
+
} }
|
|
129
|
+
class DuplicateSkuComponent {
|
|
130
|
+
constructor(http) {
|
|
131
|
+
this.http = http;
|
|
132
|
+
this.filter = {
|
|
133
|
+
ChannelID: ''
|
|
134
|
+
};
|
|
135
|
+
this.Load();
|
|
136
|
+
}
|
|
137
|
+
ngOnInit() {
|
|
138
|
+
}
|
|
139
|
+
Load() {
|
|
140
|
+
this.http.post('/api/product/Load', {}).subscribe(result => {
|
|
141
|
+
this.filter.ChannelID = null;
|
|
142
|
+
this.Channel = result.Options.Channel;
|
|
143
|
+
this.Get();
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
SearchProduct(event) {
|
|
147
|
+
}
|
|
148
|
+
Get() {
|
|
149
|
+
this.http.post('/api/product/GetDuplicateSkuInChannel', this.filter).subscribe(result => {
|
|
150
|
+
this.data = result.Data;
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
DuplicateSkuComponent.ɵfac = function DuplicateSkuComponent_Factory(t) { return new (t || DuplicateSkuComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService)); };
|
|
155
|
+
DuplicateSkuComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: DuplicateSkuComponent, selectors: [["app-duplicate-sku"]], decls: 12, vars: 5, consts: [["textButton", " Search", 3, "Title", "onSubmit"], ["container", ""], ["bindLabel", "Name", "name", "channelid", "bindValue", "ID", "placeholder", "Select Channel", 1, "center-text", 3, "clearable", "items", "ngModel", "ngModelChange"], [1, "container-fluid", "mt-3"], [1, "row"], ["class", "col-md-4", 4, "ngFor", "ngForOf"], [1, "col-md-4"], [1, "card"], [1, "card-header", "border-bottom"], [1, "col-md-1", "pb-2"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png", 4, "ngIf"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png", 4, "ngIf"], [1, "col-10", "text-center"], [1, "card-body"], [1, "row", "g-0", "p-5"], ["class", "col-md-12", 4, "ngFor", "ngForOf"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png"], [1, "col-md-12"], [1, "table"], [2, "width", "100px"], [1, "img-thumbnail", 3, "src"], [1, "text-start"], ["target", "_blank", 3, "href"]], template: function DuplicateSkuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
156
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mainpanel", 0);
|
|
157
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("onSubmit", function DuplicateSkuComponent_Template_mainpanel_onSubmit_0_listener() { return ctx.Get(); });
|
|
158
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "actions");
|
|
159
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "filters")(3, "div", 1)(4, "div")(5, "h6");
|
|
160
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Channel");
|
|
161
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
|
|
162
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "ng-select", 2);
|
|
163
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function DuplicateSkuComponent_Template_ng_select_ngModelChange_7_listener($event) { return ctx.filter.ChannelID = $event; });
|
|
164
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
|
|
165
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "content")(9, "div", 3)(10, "div", 4);
|
|
166
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, DuplicateSkuComponent_div_11_Template, 13, 5, "div", 5);
|
|
167
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
|
|
168
|
+
} if (rf & 2) {
|
|
169
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("Title", "Duplicate Sku" + " (" + (ctx.data ? ctx.data.length : "0") + ")");
|
|
170
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
|
|
171
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("clearable", true)("items", ctx.Channel)("ngModel", ctx.filter.ChannelID);
|
|
172
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
|
|
173
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.data);
|
|
174
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_4__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__.MainPanelComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_5__.NgSelectComponent, _angular_common__WEBPACK_IMPORTED_MODULE_3__.DecimalPipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJkdXBsaWNhdGUtc2t1LmNvbXBvbmVudC5zY3NzIn0= */"] });
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
/***/ }),
|
|
178
|
+
|
|
179
|
+
/***/ 9949:
|
|
180
|
+
/*!**********************************************************!*\
|
|
181
|
+
!*** ./src/app/menu/products/in-pos/in-pos.component.ts ***!
|
|
182
|
+
\**********************************************************/
|
|
183
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
184
|
+
|
|
185
|
+
__webpack_require__.r(__webpack_exports__);
|
|
186
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
187
|
+
/* harmony export */ "InPosComponent": () => (/* binding */ InPosComponent)
|
|
188
|
+
/* harmony export */ });
|
|
189
|
+
/* harmony import */ var src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/model/ProductFilter */ 1290);
|
|
190
|
+
/* harmony import */ var _scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scan-dialog/scan-dialog.component */ 5241);
|
|
191
|
+
/* harmony import */ var _dialog_uploadProductDialog_uploadProductDialog_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dialog/uploadProductDialog/uploadProductDialog.component */ 8856);
|
|
192
|
+
/* harmony import */ var _modal_variant_modal_variant_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modal-variant/modal-variant.component */ 5553);
|
|
193
|
+
/* harmony import */ var src_app_model_enums_ChannelLogo_enum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/model/enums/ChannelLogo.enum */ 4461);
|
|
194
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
195
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
196
|
+
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ 4817);
|
|
197
|
+
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
|
|
198
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
199
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
200
|
+
/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/tooltip */ 6896);
|
|
201
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
function InPosComponent_div_14_img_4_Template(rf, ctx) { if (rf & 1) {
|
|
216
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "img", 27);
|
|
217
|
+
} if (rf & 2) {
|
|
218
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
|
|
219
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpropertyInterpolate"]("src", item_r1 == null ? null : item_r1.ThumbnailUrl, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
|
|
220
|
+
} }
|
|
221
|
+
function InPosComponent_div_14_img_5_Template(rf, ctx) { if (rf & 1) {
|
|
222
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](0, "img", 28);
|
|
223
|
+
} }
|
|
224
|
+
function InPosComponent_div_14_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
225
|
+
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
|
|
226
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 29)(1, "input", 30);
|
|
227
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("ngModelChange", function InPosComponent_div_14_div_11_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r14); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit; return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](item_r1.selected = $event); });
|
|
228
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
229
|
+
} if (rf & 2) {
|
|
230
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
|
|
231
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
232
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngModel", item_r1.selected);
|
|
233
|
+
} }
|
|
234
|
+
function InPosComponent_div_14_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
235
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
|
|
236
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "div", 31)(2, "h4")(3, "span", 32);
|
|
237
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4);
|
|
238
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
|
239
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
|
|
240
|
+
} if (rf & 2) {
|
|
241
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
|
|
242
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
|
|
243
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"](" ", item_r1 == null ? null : item_r1.Variants.length, "");
|
|
244
|
+
} }
|
|
245
|
+
function InPosComponent_div_14_div_15_Template(rf, ctx) { if (rf & 1) {
|
|
246
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "span", 33);
|
|
247
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
|
|
248
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
249
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "span", 33);
|
|
250
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4);
|
|
251
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
252
|
+
} if (rf & 2) {
|
|
253
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
|
|
254
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
255
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](item_r1 == null ? null : item_r1.Variants[0].Model);
|
|
256
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
257
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](item_r1 == null ? null : item_r1.Variants[0].Code);
|
|
258
|
+
} }
|
|
259
|
+
function InPosComponent_div_14_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
260
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div")(1, "span", 34);
|
|
261
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](2);
|
|
262
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
263
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "span", 33);
|
|
264
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4);
|
|
265
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
266
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](5, "br");
|
|
267
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
268
|
+
} if (rf & 2) {
|
|
269
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
|
|
270
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
271
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](item_r1 == null ? null : item_r1.Variants[0].Model);
|
|
272
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
273
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](item_r1 == null ? null : item_r1.Variants[0].Code);
|
|
274
|
+
} }
|
|
275
|
+
function InPosComponent_div_14_ng_container_18_Template(rf, ctx) { if (rf & 1) {
|
|
276
|
+
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
|
|
277
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
|
|
278
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "div", 35)(2, "button", 36);
|
|
279
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function InPosComponent_div_14_ng_container_18_Template_button_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r21); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit; const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r19.openUploadModal(item_r1)); });
|
|
280
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](3, "i", 5);
|
|
281
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4, " Upload");
|
|
282
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
283
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
|
|
284
|
+
} }
|
|
285
|
+
function InPosComponent_div_14_ng_container_19_ng_container_2_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
286
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 40)(1, "a", 41);
|
|
287
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "img", 42);
|
|
288
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
289
|
+
} if (rf & 2) {
|
|
290
|
+
const c_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
|
|
291
|
+
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3);
|
|
292
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
293
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpropertyInterpolate"]("href", c_r24.Url, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
|
|
294
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpropertyInterpolate"]("matTooltip", c_r24.Title);
|
|
295
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
296
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("src", ctx_r26.getChannelLogo(c_r24), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
|
|
297
|
+
} }
|
|
298
|
+
function InPosComponent_div_14_ng_container_19_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
299
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
|
|
300
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](1, InPosComponent_div_14_ng_container_19_ng_container_2_div_1_Template, 3, 3, "div", 39);
|
|
301
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
|
|
302
|
+
} if (rf & 2) {
|
|
303
|
+
const i_r25 = ctx.index;
|
|
304
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
305
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", i_r25 < 4);
|
|
306
|
+
} }
|
|
307
|
+
const _c0 = function (a0) { return { "border-bottom pb-2": a0 }; };
|
|
308
|
+
function InPosComponent_div_14_ng_container_19_div_3_li_4_Template(rf, ctx) { if (rf & 1) {
|
|
309
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "li")(1, "div", 46)(2, "div", 47)(3, "a", 48);
|
|
310
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](4, "img", 49);
|
|
311
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "span", 50);
|
|
312
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](6);
|
|
313
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()();
|
|
314
|
+
} if (rf & 2) {
|
|
315
|
+
const moreChannel_r29 = ctx.$implicit;
|
|
316
|
+
const i_r30 = ctx.index;
|
|
317
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](3).$implicit;
|
|
318
|
+
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
|
319
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
320
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction1"](4, _c0, i_r30 != ctx_r28.sortVariant(item_r1 == null ? null : item_r1.Variants).length - 1));
|
|
321
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
322
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpropertyInterpolate"]("href", moreChannel_r29.Url, _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
|
|
323
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
324
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("src", ctx_r28.getChannelLogo(moreChannel_r29), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵsanitizeUrl"]);
|
|
325
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
326
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate"](moreChannel_r29.Title);
|
|
327
|
+
} }
|
|
328
|
+
function InPosComponent_div_14_ng_container_19_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
329
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 40)(1, "div", 43);
|
|
330
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](2, "i", 44);
|
|
331
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](3, "ul", 45);
|
|
332
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](4, InPosComponent_div_14_ng_container_19_div_3_li_4_Template, 7, 6, "li", 38);
|
|
333
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
|
334
|
+
} if (rf & 2) {
|
|
335
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](2).$implicit;
|
|
336
|
+
const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
|
337
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
|
|
338
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r23.sortVariant(item_r1 == null ? null : item_r1.Variants));
|
|
339
|
+
} }
|
|
340
|
+
function InPosComponent_div_14_ng_container_19_Template(rf, ctx) { if (rf & 1) {
|
|
341
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerStart"](0);
|
|
342
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "div", 37);
|
|
343
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](2, InPosComponent_div_14_ng_container_19_ng_container_2_Template, 2, 1, "ng-container", 38);
|
|
344
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](3, InPosComponent_div_14_ng_container_19_div_3_Template, 5, 1, "div", 39);
|
|
345
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
346
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementContainerEnd"]();
|
|
347
|
+
} if (rf & 2) {
|
|
348
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]().$implicit;
|
|
349
|
+
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
|
350
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](2);
|
|
351
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx_r10.sortVariant(item_r1 == null ? null : item_r1.Variants));
|
|
352
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
353
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", ctx_r10.sortVariant(item_r1 == null ? null : item_r1.Variants).length > 3);
|
|
354
|
+
} }
|
|
355
|
+
const _c1 = function () { return { "no-title": "item?.Variants.length <= 1" }; };
|
|
356
|
+
const _c2 = function (a0, a1) { return { "justify-content-between": a0, "justify-content-end": a1 }; };
|
|
357
|
+
function InPosComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
358
|
+
const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵgetCurrentView"]();
|
|
359
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "div", 12)(1, "div", 13)(2, "div", 14)(3, "div", 15);
|
|
360
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](4, InPosComponent_div_14_img_4_Template, 1, 1, "img", 16);
|
|
361
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](5, InPosComponent_div_14_img_5_Template, 1, 0, "img", 17);
|
|
362
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
363
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](6, "div", 18)(7, "div", 19)(8, "div", 20)(9, "h4", 21);
|
|
364
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function InPosComponent_div_14_Template_h4_click_9_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵrestoreView"](_r35); const i_r2 = restoredCtx.index; const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵresetView"](ctx_r34.DialogVariant(i_r2)); });
|
|
365
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](10);
|
|
366
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
367
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](11, InPosComponent_div_14_div_11_Template, 2, 1, "div", 22);
|
|
368
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](12, InPosComponent_div_14_ng_container_12_Template, 5, 1, "ng-container", 23);
|
|
369
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
370
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](13, "div", 24)(14, "div", 25);
|
|
371
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](15, InPosComponent_div_14_div_15_Template, 5, 2, "div", 23);
|
|
372
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](16, InPosComponent_div_14_div_16_Template, 6, 2, "div", 23);
|
|
373
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()();
|
|
374
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](17, "div", 26);
|
|
375
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](18, InPosComponent_div_14_ng_container_18_Template, 5, 0, "ng-container", 23);
|
|
376
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](19, InPosComponent_div_14_ng_container_19_Template, 4, 2, "ng-container", 23);
|
|
377
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()();
|
|
378
|
+
} if (rf & 2) {
|
|
379
|
+
const item_r1 = ctx.$implicit;
|
|
380
|
+
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵnextContext"]();
|
|
381
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
|
|
382
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", item_r1 == null ? null : item_r1.ImageUrl);
|
|
383
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
384
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", !(item_r1 == null ? null : item_r1.ImageUrl));
|
|
385
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](4);
|
|
386
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction0"](11, _c1));
|
|
387
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
388
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtextInterpolate1"]("", item_r1 == null ? null : item_r1.Name, " ");
|
|
389
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
390
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", (item_r1 == null ? null : item_r1.Channel.length) < ctx_r0.Channel.length);
|
|
391
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
392
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", (item_r1 == null ? null : item_r1.Variants.length) > 1);
|
|
393
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
|
|
394
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", (item_r1 == null ? null : item_r1.Variants.length) > 1);
|
|
395
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
396
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", (item_r1 == null ? null : item_r1.Variants.length) == 1);
|
|
397
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
398
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵpureFunction2"](12, _c2, (item_r1 == null ? null : item_r1.Channel.length) < ctx_r0.Channel.length, (item_r1 == null ? null : item_r1.Channel.length) == ctx_r0.Channel.length));
|
|
399
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
400
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", (item_r1 == null ? null : item_r1.Channel.length) < ctx_r0.Channel.length);
|
|
401
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](1);
|
|
402
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngIf", (item_r1 == null ? null : item_r1.Channel.length) > 0);
|
|
403
|
+
} }
|
|
404
|
+
class InPosComponent {
|
|
405
|
+
constructor(http, toastr, dialog) {
|
|
406
|
+
this.http = http;
|
|
407
|
+
this.toastr = toastr;
|
|
408
|
+
this.dialog = dialog;
|
|
409
|
+
this.filter = new src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_0__.ProductFilter();
|
|
410
|
+
this.total = 0;
|
|
411
|
+
this.loading = false;
|
|
412
|
+
this.syncupdatefull = false;
|
|
413
|
+
this.OptionVisible = false;
|
|
414
|
+
this.channelLogo = src_app_model_enums_ChannelLogo_enum__WEBPACK_IMPORTED_MODULE_4__.ChannelLogo;
|
|
415
|
+
this.Load();
|
|
416
|
+
}
|
|
417
|
+
ngOnInit() { }
|
|
418
|
+
/**
|
|
419
|
+
* Get the channel list, filter options and calls GetProducts()
|
|
420
|
+
*/
|
|
421
|
+
Load() {
|
|
422
|
+
this.http.post("/api/product/Load", {}).subscribe((result) => {
|
|
423
|
+
this.Channel = result.Options.Channel;
|
|
424
|
+
this.filter.PageNumber = result.Filter.PageNumber;
|
|
425
|
+
this.filter.RowCount = result.Filter.RowCount;
|
|
426
|
+
this.filter.ChannelID = null;
|
|
427
|
+
this.filter.sync = true;
|
|
428
|
+
this.TokopediaCategory = result.Options.Tokopedia;
|
|
429
|
+
this.ShopeeCategory = result.Options.Shopee;
|
|
430
|
+
this.GetProducts();
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Calls GetInPOS to get the product list
|
|
435
|
+
*/
|
|
436
|
+
GetProducts() {
|
|
437
|
+
var params = {
|
|
438
|
+
PageNumber: this.filter.PageNumber,
|
|
439
|
+
RowCount: this.filter.RowCount,
|
|
440
|
+
};
|
|
441
|
+
this.http.post("/api/product/GetInPOS", params).subscribe((result) => {
|
|
442
|
+
this.data = result.Data;
|
|
443
|
+
this.total = result.Total;
|
|
444
|
+
this.paginationTotal =
|
|
445
|
+
result.Total == null ? this.filter.RowCount : result.Total.toString();
|
|
446
|
+
this.paginationPageSize =
|
|
447
|
+
this.filter.RowCount > this.paginationTotal
|
|
448
|
+
? this.paginationTotal
|
|
449
|
+
: this.filter.RowCount;
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Scan the products, then updates the product list and show the total result in a toastr
|
|
454
|
+
*/
|
|
455
|
+
SyncFast() {
|
|
456
|
+
if (this.filter.ChannelID == null) {
|
|
457
|
+
this.toastr.error("Please Select Channel", "Error");
|
|
458
|
+
return;
|
|
459
|
+
}
|
|
460
|
+
let params = {
|
|
461
|
+
ID: this.filter.ChannelID,
|
|
462
|
+
ScanFull: this.filter.ScanFull,
|
|
463
|
+
};
|
|
464
|
+
this.http
|
|
465
|
+
.post("/api/product/ScanOptimized", params)
|
|
466
|
+
.subscribe((res) => {
|
|
467
|
+
this.GetProducts();
|
|
468
|
+
let productNotInPOS = res.NotInPOS ? res.NotInPOS.Product : 0;
|
|
469
|
+
let productInChannel = res.InChannel ? res.InChannel.Product : 0;
|
|
470
|
+
this.toastr.success(productNotInPOS +
|
|
471
|
+
productInChannel +
|
|
472
|
+
" found in " +
|
|
473
|
+
this.getChannelName(this.filter.ChannelID) +
|
|
474
|
+
"</br> ( " +
|
|
475
|
+
productInChannel +
|
|
476
|
+
" In POS + " +
|
|
477
|
+
productNotInPOS +
|
|
478
|
+
" Not In POS )", "Scan Complete!", {
|
|
479
|
+
timeOut: 5000,
|
|
480
|
+
enableHtml: true,
|
|
481
|
+
});
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Will call SyncUpdateMap
|
|
486
|
+
* @deprecated Not used anymore
|
|
487
|
+
*/
|
|
488
|
+
SyncProductMap() {
|
|
489
|
+
if (this.filter.ChannelID == null) {
|
|
490
|
+
this.toastr.error("Please Select Channel", "Error");
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
let params = {
|
|
494
|
+
ID: this.filter.ChannelID,
|
|
495
|
+
};
|
|
496
|
+
this.http
|
|
497
|
+
.post("/api/product/SyncUpdateMap", params)
|
|
498
|
+
.subscribe((result) => {
|
|
499
|
+
this.data = result.Data;
|
|
500
|
+
})
|
|
501
|
+
.add(() => {
|
|
502
|
+
// always gets called
|
|
503
|
+
this.GetProducts();
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Opens a dialog that shows the list of the product's variants
|
|
508
|
+
* @param index The product's index
|
|
509
|
+
*/
|
|
510
|
+
DialogVariant(index) {
|
|
511
|
+
this.dialogName = this.data[index].Name;
|
|
512
|
+
this.variant = this.data[index].Variants;
|
|
513
|
+
this.dialog.open(_modal_variant_modal_variant_component__WEBPACK_IMPORTED_MODULE_3__.ModalVariantComponent, {
|
|
514
|
+
data: {
|
|
515
|
+
title: this.data[index].Name,
|
|
516
|
+
variants: this.data[index].Variants,
|
|
517
|
+
},
|
|
518
|
+
width: "40%",
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Change to next page
|
|
523
|
+
* @param pageEvent The event from paginator
|
|
524
|
+
*/
|
|
525
|
+
changePage(pageEvent) {
|
|
526
|
+
this.filter.PageNumber = pageEvent.pageIndex + 1;
|
|
527
|
+
this.GetProducts();
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Searches the product based on text in the search box
|
|
531
|
+
* Will search the title, SKU, and variant names of the product
|
|
532
|
+
* @param event The event from the search bar
|
|
533
|
+
*/
|
|
534
|
+
SearchProduct(event) {
|
|
535
|
+
let params = {
|
|
536
|
+
Text: event,
|
|
537
|
+
};
|
|
538
|
+
this.http.post("/api/product/GetInPOS", params).subscribe((result) => {
|
|
539
|
+
this.data = result.Data;
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Sets the selectedItem and open the upload modal
|
|
544
|
+
* Will filter the Channel so it only shows the Channel the product isn't sold on
|
|
545
|
+
* @param item The selected item
|
|
546
|
+
*/
|
|
547
|
+
openUploadModal(item) {
|
|
548
|
+
let selectedItemMissingChannel;
|
|
549
|
+
this.selectedItem = item;
|
|
550
|
+
if (item.Channel.length == 0) {
|
|
551
|
+
selectedItemMissingChannel = this.Channel;
|
|
552
|
+
}
|
|
553
|
+
else {
|
|
554
|
+
//source: https://stackoverflow.com/questions/49814733/getting-difference-between-2-arrays-of-objects-in-javascript
|
|
555
|
+
selectedItemMissingChannel = this.Channel.filter((x) => !item.Channel.some((y) => x.ID == y.ChannelID));
|
|
556
|
+
}
|
|
557
|
+
this.dialog
|
|
558
|
+
.open(_dialog_uploadProductDialog_uploadProductDialog_component__WEBPACK_IMPORTED_MODULE_2__.UploadProductDialogComponent, {
|
|
559
|
+
width: "600px",
|
|
560
|
+
data: {
|
|
561
|
+
item: item,
|
|
562
|
+
selectedItemMissingChannel: selectedItemMissingChannel,
|
|
563
|
+
},
|
|
564
|
+
})
|
|
565
|
+
.afterClosed()
|
|
566
|
+
.subscribe((result) => {
|
|
567
|
+
if (result) {
|
|
568
|
+
let channelID = result.channelID;
|
|
569
|
+
let categoryID = result.categoryID;
|
|
570
|
+
let itemID = [];
|
|
571
|
+
itemID.push(this.selectedItem.ID);
|
|
572
|
+
this.uploadProduct(channelID, itemID, categoryID);
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
openUploadBulkModal() {
|
|
577
|
+
this.dialog
|
|
578
|
+
.open(_dialog_uploadProductDialog_uploadProductDialog_component__WEBPACK_IMPORTED_MODULE_2__.UploadProductDialogComponent, {
|
|
579
|
+
width: "350px",
|
|
580
|
+
data: {
|
|
581
|
+
item: null,
|
|
582
|
+
selectedItemMissingChannel: this.Channel,
|
|
583
|
+
},
|
|
584
|
+
})
|
|
585
|
+
.afterClosed()
|
|
586
|
+
.subscribe((result) => {
|
|
587
|
+
if (result) {
|
|
588
|
+
let channelID = result.channelID;
|
|
589
|
+
let categoryID = result.categoryID;
|
|
590
|
+
var listSelected = this.getSelected();
|
|
591
|
+
if (listSelected.length > 0) {
|
|
592
|
+
var listIds = [];
|
|
593
|
+
listSelected.forEach((m) => listIds.push(m.ID));
|
|
594
|
+
this.uploadProduct(channelID, listIds, categoryID);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Uploads the product to marketplace
|
|
601
|
+
* After calling the API, it will refresh the products list
|
|
602
|
+
* @param channelID Selected channel ID
|
|
603
|
+
* @param itemID The selected item's ID
|
|
604
|
+
*/
|
|
605
|
+
uploadProduct(channelID, itemID, CategoryID) {
|
|
606
|
+
let params = {
|
|
607
|
+
ChannelID: channelID,
|
|
608
|
+
Products: itemID,
|
|
609
|
+
CategoryID: CategoryID ? CategoryID : 0,
|
|
610
|
+
};
|
|
611
|
+
this.http
|
|
612
|
+
.post("/api/product/UploadToMarketplace", params)
|
|
613
|
+
.subscribe((result) => {
|
|
614
|
+
this.GetProducts();
|
|
615
|
+
let selectedItem = this.Channel.find((x) => x.ID == channelID);
|
|
616
|
+
if (itemID.length > 1) {
|
|
617
|
+
this.toastr.success("Successfully uploaded " +
|
|
618
|
+
itemID.length +
|
|
619
|
+
" Product to channel " +
|
|
620
|
+
selectedItem.Name, "Success");
|
|
621
|
+
}
|
|
622
|
+
else {
|
|
623
|
+
this.toastr.success(this.selectedItem.Name + " Successfully Created", "Success");
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Looks through all variants and make a list of all the unique channels
|
|
629
|
+
* Then it will return a sorted channel list
|
|
630
|
+
* @param variants The list of Variants
|
|
631
|
+
* @returns A list of variants
|
|
632
|
+
*/
|
|
633
|
+
sortVariant(variants) {
|
|
634
|
+
var list = [];
|
|
635
|
+
for (let x of variants) {
|
|
636
|
+
if (x.Channel == null) {
|
|
637
|
+
continue;
|
|
638
|
+
}
|
|
639
|
+
else {
|
|
640
|
+
for (let ch of x.Channel) {
|
|
641
|
+
if (list.filter((y) => y.ChannelID == ch.ChannelID).length == 0) {
|
|
642
|
+
list.push(ch);
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
return this.sortChannel(list);
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* Sorts the list in decending order based on its TypeID
|
|
651
|
+
* It is used so that tokopedia link will be printed first
|
|
652
|
+
* Source : https://stackoverflow.com/questions/48403154/orderby-with-ngfor-array
|
|
653
|
+
* @param list The list that is going to be sorted
|
|
654
|
+
* @returns The sorted list
|
|
655
|
+
*/
|
|
656
|
+
sortChannel(list) {
|
|
657
|
+
return list.sort((a, b) => a["TypeID"] < b["TypeID"] ? 1 : a["TypeID"] === b["TypeID"] ? 0 : -1);
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* Opens the scan dialog and pass the Channel list and the filter variable
|
|
661
|
+
* It will return the modified filter and will run the scan function that the user has selected (full or quick)
|
|
662
|
+
*/
|
|
663
|
+
openScanDialog() {
|
|
664
|
+
const dialogRef = this.dialog.open(_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_1__.ScanDialogComponent, {
|
|
665
|
+
data: {
|
|
666
|
+
filter: this.filter,
|
|
667
|
+
Channel: this.Channel,
|
|
668
|
+
},
|
|
669
|
+
width: "30%",
|
|
670
|
+
});
|
|
671
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
672
|
+
if (result != null) {
|
|
673
|
+
this.filter = result.filter;
|
|
674
|
+
if (this.filter.sync) {
|
|
675
|
+
this.SyncFast();
|
|
676
|
+
}
|
|
677
|
+
else if (!this.filter.sync) {
|
|
678
|
+
this.SyncFast();
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* Opens the scan dialog and pass the Channel list and the filter variable
|
|
685
|
+
* It will return the modified filter and will run the scan function that the user has selected (full or quick)
|
|
686
|
+
*/
|
|
687
|
+
openScanSingleDialog() {
|
|
688
|
+
const dialogRef = this.dialog.open(_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_1__.ScanDialogComponent, {
|
|
689
|
+
data: {
|
|
690
|
+
filter: this.filter,
|
|
691
|
+
Channel: this.Channel.filter((m) => m.TypeID == 1),
|
|
692
|
+
},
|
|
693
|
+
width: "30%",
|
|
694
|
+
});
|
|
695
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
696
|
+
if (result != null) {
|
|
697
|
+
this.ScanSingle();
|
|
698
|
+
}
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
ScanSingle() {
|
|
702
|
+
if (this.filter.ChannelID == null) {
|
|
703
|
+
this.toastr.error("Please Select Channel", "Error");
|
|
704
|
+
return;
|
|
705
|
+
}
|
|
706
|
+
var listIds = [];
|
|
707
|
+
var listSelected = this.getSelected();
|
|
708
|
+
if (listSelected.length > 0) {
|
|
709
|
+
for (const p of listSelected) {
|
|
710
|
+
for (let v of p.Variants) {
|
|
711
|
+
listIds.push(v.Code);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
let params = {
|
|
716
|
+
ID: this.filter.ChannelID,
|
|
717
|
+
SKU: listIds,
|
|
718
|
+
};
|
|
719
|
+
this.http.post("/api/product/ScanSingle", params).subscribe((res) => {
|
|
720
|
+
this.GetProducts();
|
|
721
|
+
if (res) {
|
|
722
|
+
this.toastr.success("Successfully Scan ", "Success");
|
|
723
|
+
}
|
|
724
|
+
else {
|
|
725
|
+
this.toastr.error("This product is not existed in Tokopedia ", "Error");
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
getSelected() {
|
|
730
|
+
if (this.data) {
|
|
731
|
+
return this.data.filter((m) => m.selected);
|
|
732
|
+
}
|
|
733
|
+
else {
|
|
734
|
+
return [];
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
hasSelection() {
|
|
738
|
+
if (this.data) {
|
|
739
|
+
return this.getSelected().length > 0;
|
|
740
|
+
}
|
|
741
|
+
else {
|
|
742
|
+
return false;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Returns the Channel's name based on the ID given as input
|
|
747
|
+
* @param ID The Channel's ID
|
|
748
|
+
* @returns The channel's name
|
|
749
|
+
*/
|
|
750
|
+
getChannelName(ID) {
|
|
751
|
+
let channel = this.Channel.find((x) => x.ID == ID);
|
|
752
|
+
return channel.Name;
|
|
753
|
+
}
|
|
754
|
+
getChannelLogo(channel) {
|
|
755
|
+
let logo;
|
|
756
|
+
switch (channel.TypeID) {
|
|
757
|
+
case 0:
|
|
758
|
+
logo = src_app_model_enums_ChannelLogo_enum__WEBPACK_IMPORTED_MODULE_4__.ChannelLogo.SHOOPE;
|
|
759
|
+
break;
|
|
760
|
+
case 1:
|
|
761
|
+
logo = src_app_model_enums_ChannelLogo_enum__WEBPACK_IMPORTED_MODULE_4__.ChannelLogo.TOKOPEDIA;
|
|
762
|
+
break;
|
|
763
|
+
case 2:
|
|
764
|
+
logo = src_app_model_enums_ChannelLogo_enum__WEBPACK_IMPORTED_MODULE_4__.ChannelLogo.WOOCOMMERCE;
|
|
765
|
+
break;
|
|
766
|
+
case 5:
|
|
767
|
+
logo = src_app_model_enums_ChannelLogo_enum__WEBPACK_IMPORTED_MODULE_4__.ChannelLogo.SHOOPE;
|
|
768
|
+
break;
|
|
769
|
+
case 6:
|
|
770
|
+
logo = src_app_model_enums_ChannelLogo_enum__WEBPACK_IMPORTED_MODULE_4__.ChannelLogo.TIKTOK;
|
|
771
|
+
break;
|
|
772
|
+
}
|
|
773
|
+
return logo;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
InPosComponent.ɵfac = function InPosComponent_Factory(t) { return new (t || InPosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_5__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_9__.MatDialog)); };
|
|
777
|
+
InPosComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineComponent"]({ type: InPosComponent, selectors: [["app-in-pos"]], decls: 18, vars: 7, consts: [["hideSearchDropdown", "true", "hideSearchDropdown", "false", 3, "Title", "onSubmit"], ["type", "button", "data-cy", "scanInPos", 1, "btn", "btn-outline-secondary", "shadow", "rounded", "me-2", 3, "click"], [1, "fas", "fa-lg", "fa-crosshairs"], ["type", "button", "data-cy", "scanInPos", 1, "btn", "btn-outline-secondary", "shadow", "rounded", "me-2", 3, "hidden", "click"], [1, "btn", "btn-light", "shadow", "rounded", "ms-2", 3, "hidden", "click"], ["aria-hidden", "true", 1, "fa", "fa-upload"], [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, "length", "pageSize", "pageIndex", "page"], [1, "col-12", "col-md-6", "col-xl-4", "px-3", "my-3"], [1, "card", "product"], [1, "row", "h-100", "g-0", "px-6"], [1, "col-auto", "pe-xl-0"], ["class", "border rounded-lg mx-auto text-center mt-5", "style", "width: 82px;; ", 3, "src", 4, "ngIf"], ["class", " text-center border rounded-lg mx-auto mt-5", "style", "width: 82px;;", "src", "//res.cloudinary.com/pos/image/upload/w_80/POS/Images/Icon/products_thumb.png", 4, "ngIf"], [1, "col", "mt-5", "px-xl-0", "px-0"], [1, "row", "align-items-center", "justify-content-start"], [1, "col-auto", "pt-0", "pe-4", "max-w-xl"], [1, "text-start", "itemTitle", "pointer", 3, "ngClass", "click"], ["class", "col text-end gx-0", 4, "ngIf"], [4, "ngIf"], [1, "row"], [1, "col-12"], [1, "row", "mt-5", "bottom-buttons", 3, "ngClass"], [1, "border", "rounded-lg", "mx-auto", "text-center", "mt-5", 2, "width", "82px", 3, "src"], ["src", "//res.cloudinary.com/pos/image/upload/w_80/POS/Images/Icon/products_thumb.png", 1, "text-center", "border", "rounded-lg", "mx-auto", "mt-5", 2, "width", "82px"], [1, "col", "text-end", "gx-0"], ["type", "checkbox", 3, "ngModel", "ngModelChange"], [1, "col-auto", "gx-0"], [1, "badge", "rounded-pill", "bg-warning", "m-2", "text-dark"], [1, "d-block", "default"], [1, "d-none", "default"], [1, "col-auto", "mb-upload"], [1, "btn", "btn-light", "btn-sm", 3, "click"], [1, "row", "me-0", "me-md-5", "justify-content-end", "align-items-center", "gx-0", "w-auto"], [4, "ngFor", "ngForOf"], ["class", "col-auto px-1 px-md-3 mb-1 pb-3", 4, "ngIf"], [1, "col-auto", "px-1", "px-md-3", "mb-1", "pb-3"], ["target", "_blank", "data-placement", "top", 3, "href", "matTooltip"], [3, "src"], [1, "btn-group"], ["id", "moreMenu", "data-bs-toggle", "dropdown", 1, "fas", "fa-ellipsis-h", "fs-4", "cursor-pointer"], ["aria-labelledby", "moreMenu", 1, "dropdown-menu"], [1, "dropdown-item", "py-2", 2, "cursor", "pointer"], [3, "ngClass"], ["target", "_blank", 3, "href"], [1, "img-logo", 3, "src"], [1, "ms-4"]], template: function InPosComponent_Template(rf, ctx) { if (rf & 1) {
|
|
778
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](0, "mainpanel", 0);
|
|
779
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("onSubmit", function InPosComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.SearchProduct($event); });
|
|
780
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](1, "actions")(2, "button", 1);
|
|
781
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function InPosComponent_Template_button_click_2_listener() { return ctx.openScanDialog(); });
|
|
782
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](3, "i", 2);
|
|
783
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](4, " Scan Channel ");
|
|
784
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
785
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](5, "button", 3);
|
|
786
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function InPosComponent_Template_button_click_5_listener() { return ctx.openScanSingleDialog(); });
|
|
787
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](6, "i", 2);
|
|
788
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](7, " Scan Single Channel ");
|
|
789
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
790
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](8, "button", 4);
|
|
791
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("click", function InPosComponent_Template_button_click_8_listener() { return ctx.openUploadBulkModal(); });
|
|
792
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelement"](9, "i", 5);
|
|
793
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtext"](10, " Upload Bulk");
|
|
794
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()();
|
|
795
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](11, "content")(12, "div", 6)(13, "div", 7);
|
|
796
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵtemplate"](14, InPosComponent_div_14_Template, 20, 15, "div", 8);
|
|
797
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]();
|
|
798
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementStart"](15, "div", 9)(16, "div", 10)(17, "mat-paginator", 11);
|
|
799
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵlistener"]("page", function InPosComponent_Template_mat_paginator_page_17_listener($event) { return ctx.changePage($event); });
|
|
800
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵelementEnd"]()()()()()();
|
|
801
|
+
} if (rf & 2) {
|
|
802
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("Title", "In POS" + " (" + ctx.total + ")");
|
|
803
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](5);
|
|
804
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("hidden", !ctx.hasSelection());
|
|
805
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
|
|
806
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("hidden", !ctx.hasSelection());
|
|
807
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](6);
|
|
808
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("ngForOf", ctx.data);
|
|
809
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵadvance"](3);
|
|
810
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵproperty"]("length", ctx.paginationTotal)("pageSize", ctx.paginationPageSize)("pageIndex", (ctx.filter == null ? null : ctx.filter.PageNumber) == 0 ? 0 : (ctx.filter == null ? null : ctx.filter.PageNumber) - 1);
|
|
811
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_10__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_11__.NgModel, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_12__.MatTooltip, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_6__.MainPanelComponent], 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: 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ICBtYXJnaW4tdG9wOiAxcmVtICFpbXBvcnRhbnQ7XHJcbn1cclxuXHJcbi5wci1yZW0ge1xyXG4gICAgcGFkZGluZy1yaWdodDogMC42cmVtO1xyXG59XHJcblxyXG4udGV4dC1sYXJnZXIge1xyXG4gICAgZm9udC1zaXplOiBsYXJnZXI7XHJcbn1cclxuXHJcbi5iZy1saWdodHBpbmsge1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2Y5ZGVkZTtcclxufVxyXG5cclxuLmJvdHRvbS1idXR0b25ze1xyXG4gICAgbWFyZ2luLWxlZnQ6IDk3cHg7XHJcbn1cclxuXHJcbi8vIEV4dHJhIGxhcmdlIGRldmljZXMgKGxhcmdlIGRlc2t0b3BzLCAxMjAwcHggYW5kIHVwKVxyXG5AbWVkaWEgKG1pbi13aWR0aDogMTIwMHB4KSB7XHJcbiAgICAubWF4LXcteGx7XHJcbiAgICAgICAgbWF4LXdpZHRoOiAyMDVweDtcclxuICAgIH1cclxufVxyXG5cclxuIiwiQGltcG9ydCAnLi4vcHJvZHVjdHMuY29tcG9uZW50LnNjc3MnO1xyXG5cclxuLmltZy1sb2dvIHtcclxuICAgIGhlaWdodDogMzBweDtcclxuICAgIHdpZHRoOiAzMHB4O1xyXG59XHJcblxyXG4iXX0= */"] });
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
/***/ }),
|
|
815
|
+
|
|
816
|
+
/***/ 3915:
|
|
817
|
+
/*!**************************************************************************!*\
|
|
818
|
+
!*** ./src/app/menu/products/not-in-channel/not-in-channel.component.ts ***!
|
|
819
|
+
\**************************************************************************/
|
|
820
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
821
|
+
|
|
822
|
+
__webpack_require__.r(__webpack_exports__);
|
|
823
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
824
|
+
/* harmony export */ "NotInChannelComponent": () => (/* binding */ NotInChannelComponent)
|
|
825
|
+
/* harmony export */ });
|
|
826
|
+
/* harmony import */ var src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/model/ProductFilter */ 1290);
|
|
827
|
+
/* harmony import */ var _scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scan-dialog/scan-dialog.component */ 5241);
|
|
828
|
+
/* harmony import */ var _dialog_uploadProductDialog_uploadProductDialog_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dialog/uploadProductDialog/uploadProductDialog.component */ 8856);
|
|
829
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
830
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
831
|
+
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
|
|
832
|
+
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ 4817);
|
|
833
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
834
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
function NotInChannelComponent_tbody_24_img_3_Template(rf, ctx) { if (rf & 1) {
|
|
845
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "img", 16);
|
|
846
|
+
} if (rf & 2) {
|
|
847
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
|
|
848
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpropertyInterpolate"]("src", item_r1 == null ? null : item_r1.ImageUrl, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
|
|
849
|
+
} }
|
|
850
|
+
function NotInChannelComponent_tbody_24_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
851
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "img", 17);
|
|
852
|
+
} }
|
|
853
|
+
function NotInChannelComponent_tbody_24_li_14_Template(rf, ctx) { if (rf & 1) {
|
|
854
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "li");
|
|
855
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
|
|
856
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
857
|
+
} if (rf & 2) {
|
|
858
|
+
const v_r8 = ctx.$implicit;
|
|
859
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
|
|
860
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](v_r8 == null ? null : v_r8.Model);
|
|
861
|
+
} }
|
|
862
|
+
function NotInChannelComponent_tbody_24_li_17_Template(rf, ctx) { if (rf & 1) {
|
|
863
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "li");
|
|
864
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
|
|
865
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
866
|
+
} if (rf & 2) {
|
|
867
|
+
const ch_r9 = ctx.$implicit;
|
|
868
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
|
|
869
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](ch_r9 == null ? null : ch_r9.Title);
|
|
870
|
+
} }
|
|
871
|
+
function NotInChannelComponent_tbody_24_Template(rf, ctx) { if (rf & 1) {
|
|
872
|
+
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
|
|
873
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "tbody")(1, "tr")(2, "td", 10);
|
|
874
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, NotInChannelComponent_tbody_24_img_3_Template, 1, 1, "img", 11);
|
|
875
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, NotInChannelComponent_tbody_24_ng_template_4_Template, 1, 0, "ng-template", null, 12, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplateRefExtractor"]);
|
|
876
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "h4", 13);
|
|
877
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](7);
|
|
878
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
|
|
879
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](8, "td");
|
|
880
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](9);
|
|
881
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
882
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "td");
|
|
883
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11);
|
|
884
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
885
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "td")(13, "ul");
|
|
886
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](14, NotInChannelComponent_tbody_24_li_14_Template, 2, 1, "li", 9);
|
|
887
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
|
|
888
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](15, "td")(16, "ul");
|
|
889
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](17, NotInChannelComponent_tbody_24_li_17_Template, 2, 1, "li", 9);
|
|
890
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
|
|
891
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](18, "td")(19, "button", 14);
|
|
892
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function NotInChannelComponent_tbody_24_Template_button_click_19_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r11); const item_r1 = restoredCtx.$implicit; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r10.openUploadModal(item_r1)); });
|
|
893
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](20, "i", 15);
|
|
894
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](21, " Upload");
|
|
895
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
|
|
896
|
+
} if (rf & 2) {
|
|
897
|
+
const item_r1 = ctx.$implicit;
|
|
898
|
+
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵreference"](5);
|
|
899
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
|
|
900
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", item_r1 == null ? null : item_r1.ImageUrl)("ngIfElse", _r3);
|
|
901
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
|
|
902
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](item_r1 == null ? null : item_r1.Name);
|
|
903
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
|
|
904
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](item_r1 == null ? null : item_r1.Category);
|
|
905
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
|
|
906
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](item_r1 == null ? null : item_r1.Code);
|
|
907
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
|
|
908
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", item_r1.Variants);
|
|
909
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
|
|
910
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", item_r1.Channel);
|
|
911
|
+
} }
|
|
912
|
+
class NotInChannelComponent {
|
|
913
|
+
constructor(http, dialog, toastr) {
|
|
914
|
+
this.http = http;
|
|
915
|
+
this.dialog = dialog;
|
|
916
|
+
this.toastr = toastr;
|
|
917
|
+
this.filter = new src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_0__.ProductFilter;
|
|
918
|
+
this.loading = false;
|
|
919
|
+
this.Load();
|
|
920
|
+
this.GetProducts();
|
|
921
|
+
}
|
|
922
|
+
ngOnInit() {
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* /**
|
|
926
|
+
* Get the channel list, filter options and calls GetProducts()
|
|
927
|
+
*/
|
|
928
|
+
Load() {
|
|
929
|
+
this.http.post('/api/product/Load', {}).subscribe(result => {
|
|
930
|
+
this.Channel = result.Options.Channel;
|
|
931
|
+
this.filter = result.Filter;
|
|
932
|
+
this.filter.ChannelID = null;
|
|
933
|
+
this.filter.sync = true;
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* Get products from the server
|
|
938
|
+
*/
|
|
939
|
+
GetProducts() {
|
|
940
|
+
this.http.post('/api/product/GetNotInChannel', { sync: false }).subscribe(result => {
|
|
941
|
+
this.data = result.Data;
|
|
942
|
+
this.temp = result.Data;
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* Search box functionality
|
|
947
|
+
* @param event Event from search bar
|
|
948
|
+
*/
|
|
949
|
+
SearchProduct(event) {
|
|
950
|
+
if (event != "") {
|
|
951
|
+
this.data = this.temp.filter(ex => ex.Name.toLowerCase().indexOf(event.toLowerCase()) !== -1);
|
|
952
|
+
}
|
|
953
|
+
else {
|
|
954
|
+
this.data = this.temp;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* Scans the products from marketplace
|
|
959
|
+
*/
|
|
960
|
+
SyncProduct() {
|
|
961
|
+
let params = {
|
|
962
|
+
ID: this.filter.ChannelID
|
|
963
|
+
};
|
|
964
|
+
this.http.post('/api/product/ScanNotinChannel', params).subscribe(res => {
|
|
965
|
+
let NotInChannel = res.NotInChannel ? res.NotInChannel.Product : 0;
|
|
966
|
+
let productInChannel = res.InChannel ? res.InChannel.Product : 0;
|
|
967
|
+
this.toastr.success((NotInChannel + productInChannel) + " found in " + this.getChannelName(this.filter.ChannelID) + "</br> ( " + productInChannel + " In POS + " + NotInChannel + " Not In Channel )", "Scan Complete!", {
|
|
968
|
+
timeOut: 5000,
|
|
969
|
+
enableHtml: true,
|
|
970
|
+
});
|
|
971
|
+
}).add(() => {
|
|
972
|
+
// always gets called
|
|
973
|
+
this.GetProducts();
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* Opens the scan dialog and pass the Channel list and the filter variable
|
|
978
|
+
* It will return the modified filter and will run the scan function that the user has selected (full or quick)
|
|
979
|
+
*/
|
|
980
|
+
openScanDialog() {
|
|
981
|
+
const dialogRef = this.dialog.open(_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_1__.ScanDialogComponent, {
|
|
982
|
+
data: {
|
|
983
|
+
filter: this.filter,
|
|
984
|
+
Channel: this.Channel,
|
|
985
|
+
hiddenRadioButton: true
|
|
986
|
+
},
|
|
987
|
+
width: '30%'
|
|
988
|
+
});
|
|
989
|
+
dialogRef.afterClosed().subscribe(result => {
|
|
990
|
+
if (result != null) {
|
|
991
|
+
this.filter = result.filter;
|
|
992
|
+
this.SyncProduct();
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Not used
|
|
998
|
+
* @param item
|
|
999
|
+
*/
|
|
1000
|
+
filterChannel(item) {
|
|
1001
|
+
let channelItem = item.Channel ? item.Channel : [];
|
|
1002
|
+
let index;
|
|
1003
|
+
let channels = this.Channel.filter(val => {
|
|
1004
|
+
index = channelItem.findIndex(x => x.ChannelID === val.ID);
|
|
1005
|
+
return index !== -1;
|
|
1006
|
+
});
|
|
1007
|
+
return channels;
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Opens the upload modal and sets the selected item
|
|
1011
|
+
* @param item The selected item
|
|
1012
|
+
*/
|
|
1013
|
+
openUploadModal(item) {
|
|
1014
|
+
this.selectedItem = item;
|
|
1015
|
+
let channels = this.filterChannel(item);
|
|
1016
|
+
this.dialog.open(_dialog_uploadProductDialog_uploadProductDialog_component__WEBPACK_IMPORTED_MODULE_2__.UploadProductDialogComponent, {
|
|
1017
|
+
width: '350px',
|
|
1018
|
+
data: {
|
|
1019
|
+
item: item,
|
|
1020
|
+
selectedItemMissingChannel: channels,
|
|
1021
|
+
}
|
|
1022
|
+
})
|
|
1023
|
+
.afterClosed()
|
|
1024
|
+
.subscribe((result) => {
|
|
1025
|
+
if (result) {
|
|
1026
|
+
let channelID = result.channelID;
|
|
1027
|
+
let itemID = this.selectedItem.ID;
|
|
1028
|
+
this.uploadProduct(channelID, itemID);
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
/**
|
|
1033
|
+
* Uploads the selected products
|
|
1034
|
+
* @param channelID The channel's ID
|
|
1035
|
+
* @param itemID The item's ID
|
|
1036
|
+
*/
|
|
1037
|
+
uploadProduct(channelID, itemID) {
|
|
1038
|
+
let params = {
|
|
1039
|
+
ChannelID: channelID,
|
|
1040
|
+
Products: [itemID]
|
|
1041
|
+
};
|
|
1042
|
+
this.http.post('/api/product/UploadToMarketplace', params).subscribe(result => {
|
|
1043
|
+
this.GetProducts();
|
|
1044
|
+
this.toastr.success("Successfully uploaded " + this.selectedItem.Name + " to " + this.getChannelName(channelID), "Success");
|
|
1045
|
+
});
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
* Returns the Channel's name based on the ID given as input
|
|
1049
|
+
* @param ID The Channel's ID
|
|
1050
|
+
* @returns The channel's name
|
|
1051
|
+
*/
|
|
1052
|
+
getChannelName(ID) {
|
|
1053
|
+
let channel = this.Channel.find(x => x.ID == ID);
|
|
1054
|
+
return channel.Name;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
NotInChannelComponent.ɵfac = function NotInChannelComponent_Factory(t) { return new (t || NotInChannelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_3__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__.MatDialog), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__.ToastrService)); };
|
|
1058
|
+
NotInChannelComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({ type: NotInChannelComponent, selectors: [["app-not-in-channel"]], decls: 25, vars: 2, consts: [["hideSearchDropdown", "false", 3, "Title", "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"], [1, "ms-5"], [4, "ngFor", "ngForOf"], [1, "text-start"], ["class", "border rounded", "style", "width: 40px;", 3, "src", 4, "ngIf", "ngIfElse"], ["elsePic", ""], [1, "ms-5", "d-inline", "fw-normal"], [1, "btn", "btn-link", "btn-sm", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-upload"], [1, "border", "rounded", 2, "width", "40px", 3, "src"], ["src", "//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png", 1, "border", "rounded", "w-img"]], template: function NotInChannelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1059
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "mainpanel", 0);
|
|
1060
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("onSubmit", function NotInChannelComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.SearchProduct($event); });
|
|
1061
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "actions")(2, "button", 1);
|
|
1062
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function NotInChannelComponent_Template_button_click_2_listener() { return ctx.openScanDialog(); });
|
|
1063
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "i", 2);
|
|
1064
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, " Scan Channel ");
|
|
1065
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
|
|
1066
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "content")(6, "div", 3)(7, "div", 4)(8, "div", 5)(9, "table", 6)(10, "thead", 7)(11, "tr")(12, "th", 8);
|
|
1067
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](13, "Product");
|
|
1068
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1069
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](14, "th");
|
|
1070
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](15, "Category");
|
|
1071
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1072
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](16, "th");
|
|
1073
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](17, "SKU");
|
|
1074
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1075
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](18, "th");
|
|
1076
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](19, "Variant");
|
|
1077
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1078
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](20, "th");
|
|
1079
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](21, "Missing Channel");
|
|
1080
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1081
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](22, "th");
|
|
1082
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](23, "Actions");
|
|
1083
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
|
|
1084
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](24, NotInChannelComponent_tbody_24_Template, 22, 7, "tbody", 9);
|
|
1085
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()()()();
|
|
1086
|
+
} if (rf & 2) {
|
|
1087
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("Title", "Not in Channel" + " (" + (ctx.data ? ctx.data.length : "0") + ")");
|
|
1088
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](24);
|
|
1089
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx.data);
|
|
1090
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__.MainPanelComponent], 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/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uXFxwcm9kdWN0cy5jb21wb25lbnQuc2NzcyIsIm5vdC1pbi1jaGFubmVsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksK0JBQUE7QUNDSjs7QURFQTtFQUNJLG1CQUFBO0VBQ0EseUJBQUE7QUNDSjs7QURFQTtFQUNJLGtCQUFBO0VBQ0Esa0JBQUE7RUFDQSxPQUFBO0VBQ0EsTUFBQTtBQ0NKOztBREVB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rdG9wcywgMTIwMHB4IGFuZCB1cClcclxuQG1lZGlhIChtaW4td2lkdGg6IDEyMDBweCkge1xyXG4gICAgLm1heC13LXhse1xyXG4gICAgICAgIG1heC13aWR0aDogMjA1cHg7XHJcbiAgICB9XHJcbn1cclxuXHJcbiIsIkBpbXBvcnQgJy4uL3Byb2R1Y3RzLmNvbXBvbmVudC5zY3NzJztcclxuXHJcbnRoZWFkIHsgcG9zaXRpb246IHN0aWNreTsgdG9wOiAwOyB9Il19 */"] });
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
/***/ }),
|
|
1094
|
+
|
|
1095
|
+
/***/ 7925:
|
|
1096
|
+
/*!******************************************************************!*\
|
|
1097
|
+
!*** ./src/app/menu/products/not-in-pos/not-in-pos.component.ts ***!
|
|
1098
|
+
\******************************************************************/
|
|
1099
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1100
|
+
|
|
1101
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1102
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1103
|
+
/* harmony export */ "NotInPosComponent": () => (/* binding */ NotInPosComponent)
|
|
1104
|
+
/* harmony export */ });
|
|
1105
|
+
/* harmony import */ var _scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scan-dialog/scan-dialog.component */ 5241);
|
|
1106
|
+
/* harmony import */ var _model_ProductFilter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../model/ProductFilter */ 1290);
|
|
1107
|
+
/* harmony import */ var _modal_download_modal_download_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modal-download/modal-download.component */ 9744);
|
|
1108
|
+
/* harmony import */ var _modal_instruction_modal_instruction_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modal-instruction/modal-instruction.component */ 3566);
|
|
1109
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
1110
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
1111
|
+
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ 4817);
|
|
1112
|
+
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
|
|
1113
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
1114
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
1115
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
1116
|
+
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
function NotInPosComponent_div_18_img_4_Template(rf, ctx) { if (rf & 1) {
|
|
1130
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](0, "img", 30);
|
|
1131
|
+
} if (rf & 2) {
|
|
1132
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
|
|
1133
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpropertyInterpolate"]("src", item_r1 == null ? null : item_r1.Image, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsanitizeUrl"]);
|
|
1134
|
+
} }
|
|
1135
|
+
function NotInPosComponent_div_18_img_5_Template(rf, ctx) { if (rf & 1) {
|
|
1136
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](0, "img", 31);
|
|
1137
|
+
} }
|
|
1138
|
+
function NotInPosComponent_div_18_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
1139
|
+
const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
|
|
1140
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 32)(1, "input", 33);
|
|
1141
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("ngModelChange", function NotInPosComponent_div_18_div_10_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r15); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit; return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](item_r1.selected = $event); });
|
|
1142
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
|
|
1143
|
+
} if (rf & 2) {
|
|
1144
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
|
|
1145
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1146
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngModel", item_r1.selected);
|
|
1147
|
+
} }
|
|
1148
|
+
function NotInPosComponent_div_18_ng_container_13_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
1149
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
|
|
1150
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
|
|
1151
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
|
|
1152
|
+
} if (rf & 2) {
|
|
1153
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2).$implicit;
|
|
1154
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1155
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", item_r1.ChannelItemSKU, " ");
|
|
1156
|
+
} }
|
|
1157
|
+
const _c0 = function (a0) { return { "border-0": a0 }; };
|
|
1158
|
+
function NotInPosComponent_div_18_ng_container_13_Template(rf, ctx) { if (rf & 1) {
|
|
1159
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
|
|
1160
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "div", 34)(2, "table", 35)(3, "tbody")(4, "tr")(5, "td", 36);
|
|
1161
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](6, NotInPosComponent_div_18_ng_container_13_ng_container_6_Template, 2, 1, "ng-container", 24);
|
|
1162
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()();
|
|
1163
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
|
|
1164
|
+
} if (rf & 2) {
|
|
1165
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
|
|
1166
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](5);
|
|
1167
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](2, _c0, item_r1.ChannelItemSKU == null));
|
|
1168
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1169
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", item_r1.ChannelItemSKU != null);
|
|
1170
|
+
} }
|
|
1171
|
+
function NotInPosComponent_div_18_ng_container_14_tr_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
1172
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
|
|
1173
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
|
|
1174
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
|
|
1175
|
+
} if (rf & 2) {
|
|
1176
|
+
const v_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
|
|
1177
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1178
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", v_r21.Name, " ");
|
|
1179
|
+
} }
|
|
1180
|
+
function NotInPosComponent_div_18_ng_container_14_tr_4_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
1181
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
|
|
1182
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](1);
|
|
1183
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
|
|
1184
|
+
} if (rf & 2) {
|
|
1185
|
+
const v_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
|
|
1186
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1187
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtextInterpolate1"](" ", v_r21.ChannelVariationSKU, " ");
|
|
1188
|
+
} }
|
|
1189
|
+
function NotInPosComponent_div_18_ng_container_14_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
1190
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "tr")(1, "td", 38);
|
|
1191
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](2, NotInPosComponent_div_18_ng_container_14_tr_4_ng_container_2_Template, 2, 1, "ng-container", 24);
|
|
1192
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1193
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](3, "td", 39);
|
|
1194
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, NotInPosComponent_div_18_ng_container_14_tr_4_ng_container_4_Template, 2, 1, "ng-container", 24);
|
|
1195
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
|
|
1196
|
+
} if (rf & 2) {
|
|
1197
|
+
const v_r21 = ctx.$implicit;
|
|
1198
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2).$implicit;
|
|
1199
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1200
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](4, _c0, v_r21.Name == null));
|
|
1201
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1202
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", v_r21.Name != null && item_r1.Variant.length > 1);
|
|
1203
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1204
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](6, _c0, v_r21.ChannelVariationSKU == null));
|
|
1205
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1206
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", v_r21.ChannelVariationSKU != null);
|
|
1207
|
+
} }
|
|
1208
|
+
function NotInPosComponent_div_18_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
1209
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
|
|
1210
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "div", 34)(2, "table", 35)(3, "tbody");
|
|
1211
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, NotInPosComponent_div_18_ng_container_14_tr_4_Template, 5, 8, "tr", 37);
|
|
1212
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()();
|
|
1213
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
|
|
1214
|
+
} if (rf & 2) {
|
|
1215
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit;
|
|
1216
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
|
|
1217
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", item_r1.Variant);
|
|
1218
|
+
} }
|
|
1219
|
+
function NotInPosComponent_div_18_button_17_Template(rf, ctx) { if (rf & 1) {
|
|
1220
|
+
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
|
|
1221
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "button", 40);
|
|
1222
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function NotInPosComponent_div_18_button_17_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r30); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit; const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r28.RetrieveData(item_r1)); });
|
|
1223
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "i", 41);
|
|
1224
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, " Download ");
|
|
1225
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1226
|
+
} }
|
|
1227
|
+
function NotInPosComponent_div_18_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
1228
|
+
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
|
|
1229
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "button", 42);
|
|
1230
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function NotInPosComponent_div_18_ng_template_18_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r33); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]().$implicit; const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r31.openInstruction(item_r1)); });
|
|
1231
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "i", 43);
|
|
1232
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](2, " No SKU ");
|
|
1233
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1234
|
+
} }
|
|
1235
|
+
function NotInPosComponent_div_18_ng_container_21_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
1236
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "a", 46);
|
|
1237
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "img", 47);
|
|
1238
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1239
|
+
} if (rf & 2) {
|
|
1240
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2).$implicit;
|
|
1241
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpropertyInterpolate"]("href", (item_r1 == null ? null : item_r1.Variant.length) > 0 ? item_r1 == null ? null : item_r1.Variant[0] == null ? null : item_r1.Variant[0].URL : item_r1.Url, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsanitizeUrl"]);
|
|
1242
|
+
} }
|
|
1243
|
+
function NotInPosComponent_div_18_ng_container_21_a_3_Template(rf, ctx) { if (rf & 1) {
|
|
1244
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "a", 46);
|
|
1245
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "img", 48);
|
|
1246
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1247
|
+
} if (rf & 2) {
|
|
1248
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2).$implicit;
|
|
1249
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpropertyInterpolate"]("href", (item_r1 == null ? null : item_r1.Variant.length) > 0 ? item_r1 == null ? null : item_r1.Variant[0] == null ? null : item_r1.Variant[0].URL : item_r1.Url, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsanitizeUrl"]);
|
|
1250
|
+
} }
|
|
1251
|
+
function NotInPosComponent_div_18_ng_container_21_a_4_Template(rf, ctx) { if (rf & 1) {
|
|
1252
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "a", 46);
|
|
1253
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "img", 49);
|
|
1254
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1255
|
+
} if (rf & 2) {
|
|
1256
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2).$implicit;
|
|
1257
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpropertyInterpolate"]("href", (item_r1 == null ? null : item_r1.Variant.length) > 0 ? item_r1 == null ? null : item_r1.Variant[0] == null ? null : item_r1.Variant[0].URL : item_r1.Url, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsanitizeUrl"]);
|
|
1258
|
+
} }
|
|
1259
|
+
function NotInPosComponent_div_18_ng_container_21_a_5_Template(rf, ctx) { if (rf & 1) {
|
|
1260
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "a", 46);
|
|
1261
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](1, "img", 50);
|
|
1262
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1263
|
+
} if (rf & 2) {
|
|
1264
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2).$implicit;
|
|
1265
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpropertyInterpolate"]("href", (item_r1 == null ? null : item_r1.Variant.length) > 0 ? item_r1 == null ? null : item_r1.Variant[0] == null ? null : item_r1.Variant[0].URL : item_r1.Url, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsanitizeUrl"]);
|
|
1266
|
+
} }
|
|
1267
|
+
function NotInPosComponent_div_18_ng_container_21_Template(rf, ctx) { if (rf & 1) {
|
|
1268
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerStart"](0);
|
|
1269
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "div", 44);
|
|
1270
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](2, NotInPosComponent_div_18_ng_container_21_a_2_Template, 2, 1, "a", 45);
|
|
1271
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](3, NotInPosComponent_div_18_ng_container_21_a_3_Template, 2, 1, "a", 45);
|
|
1272
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, NotInPosComponent_div_18_ng_container_21_a_4_Template, 2, 1, "a", 45);
|
|
1273
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](5, NotInPosComponent_div_18_ng_container_21_a_5_Template, 2, 1, "a", 45);
|
|
1274
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1275
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementContainerEnd"]();
|
|
1276
|
+
} if (rf & 2) {
|
|
1277
|
+
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](2);
|
|
1278
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](2);
|
|
1279
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r11.ch.TypeID == 0);
|
|
1280
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1281
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r11.ch.TypeID == 1);
|
|
1282
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1283
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r11.ch.TypeID == 2);
|
|
1284
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1285
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r11.ch.TypeID == 6);
|
|
1286
|
+
} }
|
|
1287
|
+
const _c1 = function (a0) { return { itemTitle: a0 }; };
|
|
1288
|
+
function NotInPosComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
1289
|
+
const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵgetCurrentView"]();
|
|
1290
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "div", 11)(1, "div", 12)(2, "div", 13)(3, "div", 14);
|
|
1291
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](4, NotInPosComponent_div_18_img_4_Template, 1, 1, "img", 15);
|
|
1292
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](5, NotInPosComponent_div_18_img_5_Template, 1, 0, "img", 16);
|
|
1293
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1294
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](6, "div", 17)(7, "div", 18)(8, "div", 19)(9, "h4", 20);
|
|
1295
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function NotInPosComponent_div_18_Template_h4_click_9_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵrestoreView"](_r43); const item_r1 = restoredCtx.$implicit; const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵresetView"](ctx_r42.showFullTitle(item_r1)); });
|
|
1296
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
|
|
1297
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](10, NotInPosComponent_div_18_div_10_Template, 2, 1, "div", 21);
|
|
1298
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1299
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](11, "div", 22)(12, "div", 23);
|
|
1300
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](13, NotInPosComponent_div_18_ng_container_13_Template, 7, 4, "ng-container", 24);
|
|
1301
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](14, NotInPosComponent_div_18_ng_container_14_Template, 5, 1, "ng-container", 24);
|
|
1302
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
|
|
1303
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](15, "div", 25)(16, "div", 26);
|
|
1304
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](17, NotInPosComponent_div_18_button_17_Template, 3, 0, "button", 27);
|
|
1305
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](18, NotInPosComponent_div_18_ng_template_18_Template, 3, 0, "ng-template", null, 28, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplateRefExtractor"]);
|
|
1306
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1307
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](20, "div", 29);
|
|
1308
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](21, NotInPosComponent_div_18_ng_container_21_Template, 6, 4, "ng-container", 24);
|
|
1309
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
|
|
1310
|
+
} if (rf & 2) {
|
|
1311
|
+
const item_r1 = ctx.$implicit;
|
|
1312
|
+
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵnextContext"]();
|
|
1313
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
|
|
1314
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", item_r1 == null ? null : item_r1.Image);
|
|
1315
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1316
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", !(item_r1 == null ? null : item_r1.Image));
|
|
1317
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
|
|
1318
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵpureFunction1"](9, _c1, !item_r1.fullTitle))("innerHTML", item_r1 == null ? null : item_r1.Name, _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsanitizeHtml"]);
|
|
1319
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1320
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", item_r1.upload);
|
|
1321
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
|
|
1322
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", item_r1.Variant.length < 1);
|
|
1323
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](1);
|
|
1324
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", item_r1.Variant != null);
|
|
1325
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](3);
|
|
1326
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", item_r1.upload);
|
|
1327
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
|
|
1328
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngIf", ctx_r0.GetProductChannel(item_r1));
|
|
1329
|
+
} }
|
|
1330
|
+
class NotInPosComponent {
|
|
1331
|
+
constructor(http, toastr, dialog) {
|
|
1332
|
+
this.http = http;
|
|
1333
|
+
this.toastr = toastr;
|
|
1334
|
+
this.dialog = dialog;
|
|
1335
|
+
this.filter = new _model_ProductFilter__WEBPACK_IMPORTED_MODULE_1__.ProductFilter();
|
|
1336
|
+
this.loading = false;
|
|
1337
|
+
this.syncupdatefull = false;
|
|
1338
|
+
}
|
|
1339
|
+
ngOnInit() {
|
|
1340
|
+
this.Load();
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* Calls the Load API
|
|
1344
|
+
* Used for initialization
|
|
1345
|
+
*/
|
|
1346
|
+
Load() {
|
|
1347
|
+
this.http.post("/api/product/Load", {}).subscribe((result) => {
|
|
1348
|
+
this.Channel = result.Options.Channel;
|
|
1349
|
+
this.filter = result.Filter;
|
|
1350
|
+
this.filter.ChannelID = null;
|
|
1351
|
+
this.filter.sync = true;
|
|
1352
|
+
this.GetProducts();
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1356
|
+
* Get products not in POS
|
|
1357
|
+
*/
|
|
1358
|
+
GetProducts() {
|
|
1359
|
+
let params = {
|
|
1360
|
+
ID: this.filter.ChannelID,
|
|
1361
|
+
};
|
|
1362
|
+
this.http
|
|
1363
|
+
.post("/api/product/GetProductChannelNotPOS", params)
|
|
1364
|
+
.subscribe((result) => {
|
|
1365
|
+
this.data = result.Data;
|
|
1366
|
+
for (let p of this.data) {
|
|
1367
|
+
p.fullTitle = false;
|
|
1368
|
+
if (p.Variant.length > 0) {
|
|
1369
|
+
let filter = p.Variant.find((x) => x.ChannelVariationSKU == null);
|
|
1370
|
+
if (filter == undefined) {
|
|
1371
|
+
p.upload = true;
|
|
1372
|
+
}
|
|
1373
|
+
else {
|
|
1374
|
+
p.upload = false;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
else {
|
|
1378
|
+
if (p.ChannelItemSKU != null) {
|
|
1379
|
+
p.upload = true;
|
|
1380
|
+
}
|
|
1381
|
+
else {
|
|
1382
|
+
p.upload = false;
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
this.originalData = result.Data;
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Filters the product list. First based on channel, then by name
|
|
1391
|
+
* @param event
|
|
1392
|
+
*/
|
|
1393
|
+
SearchProduct(event) {
|
|
1394
|
+
var filteredData = this.originalData;
|
|
1395
|
+
if (this.filter.ChannelID != null) {
|
|
1396
|
+
filteredData = filteredData.filter((item) => item.ChannelID == this.filter.ChannelID);
|
|
1397
|
+
}
|
|
1398
|
+
if (event != null && event != "") {
|
|
1399
|
+
filteredData = filteredData.filter((item) => item.Name !== null &&
|
|
1400
|
+
item.Name.toLowerCase().includes(event.toLowerCase()));
|
|
1401
|
+
if (filteredData.length < 1) {
|
|
1402
|
+
filteredData = this.originalData.filter((item) => item.ChannelItemSKU !== null && item.ChannelItemSKU.includes(event));
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
this.data = filteredData;
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* Get the Channel of an item
|
|
1409
|
+
* @param item Selected Item
|
|
1410
|
+
*/
|
|
1411
|
+
GetProductChannel(item) {
|
|
1412
|
+
this.ch = this.Channel.find((name) => name.Name == item.Channel);
|
|
1413
|
+
if (!this.ch) {
|
|
1414
|
+
return false;
|
|
1415
|
+
}
|
|
1416
|
+
else {
|
|
1417
|
+
return true;
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Calls ScanOptimized to scan channel
|
|
1422
|
+
*/
|
|
1423
|
+
Refresh() {
|
|
1424
|
+
if (this.filter.ChannelID === null || this.filter.mode == null) {
|
|
1425
|
+
alert("Please select channel");
|
|
1426
|
+
return;
|
|
1427
|
+
}
|
|
1428
|
+
let params = {
|
|
1429
|
+
ID: this.filter.ChannelID,
|
|
1430
|
+
mode: this.filter.mode,
|
|
1431
|
+
ScanFull: this.filter.ScanFull
|
|
1432
|
+
};
|
|
1433
|
+
this.http.post("/api/product/ScanOptimized", params).subscribe((res) => {
|
|
1434
|
+
this.GetProducts();
|
|
1435
|
+
let productNotInPOS = res.NotInPOS ? res.NotInPOS.Product : 0;
|
|
1436
|
+
this.toastr.success(productNotInPOS +
|
|
1437
|
+
" found in " +
|
|
1438
|
+
this.getChannelName(this.filter.ChannelID) +
|
|
1439
|
+
"</br> ( " +
|
|
1440
|
+
productNotInPOS +
|
|
1441
|
+
" Not In POS )", "Scan Complete!", {
|
|
1442
|
+
timeOut: 5000,
|
|
1443
|
+
enableHtml: true,
|
|
1444
|
+
});
|
|
1445
|
+
});
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* Open the scan dialog and pass the Channel list and the filter variable
|
|
1449
|
+
* Returns the modified filter, then run the scan function
|
|
1450
|
+
*/
|
|
1451
|
+
openScanDialog() {
|
|
1452
|
+
const dialogRef = this.dialog.open(_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ScanDialogComponent, {
|
|
1453
|
+
data: {
|
|
1454
|
+
filter: this.filter,
|
|
1455
|
+
Channel: this.Channel,
|
|
1456
|
+
notInPOS: true,
|
|
1457
|
+
},
|
|
1458
|
+
width: "30%",
|
|
1459
|
+
});
|
|
1460
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
1461
|
+
if (result != null) {
|
|
1462
|
+
this.filter = result.filter;
|
|
1463
|
+
this.Refresh();
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
* Get all selected products
|
|
1469
|
+
*/
|
|
1470
|
+
getSelected() {
|
|
1471
|
+
if (this.data) {
|
|
1472
|
+
return this.data.filter((m) => m.selected);
|
|
1473
|
+
}
|
|
1474
|
+
else {
|
|
1475
|
+
return [];
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
/**
|
|
1479
|
+
* Checks if product is selected or not
|
|
1480
|
+
*/
|
|
1481
|
+
hasSelection() {
|
|
1482
|
+
if (this.data) {
|
|
1483
|
+
return this.getSelected().length > 0;
|
|
1484
|
+
}
|
|
1485
|
+
else {
|
|
1486
|
+
return false;
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* Retrieves product data from channel
|
|
1491
|
+
* Based on downloadType, either get all products or only selected ones
|
|
1492
|
+
*
|
|
1493
|
+
* @input downloadType: number
|
|
1494
|
+
* 0 downloads all, 1 only selected products
|
|
1495
|
+
*/
|
|
1496
|
+
RetrieveAllData(downloadType = 0) {
|
|
1497
|
+
let listSelected;
|
|
1498
|
+
if (downloadType == 0) {
|
|
1499
|
+
listSelected = this.data;
|
|
1500
|
+
}
|
|
1501
|
+
else if (downloadType == 1) {
|
|
1502
|
+
listSelected = this.getSelected();
|
|
1503
|
+
}
|
|
1504
|
+
if (listSelected.length > 0) {
|
|
1505
|
+
let listIds = [];
|
|
1506
|
+
listSelected.forEach((m) => listIds.push(m));
|
|
1507
|
+
this.http
|
|
1508
|
+
.post("/api/product/DownloadMultipleProductFromChannel", listIds)
|
|
1509
|
+
.subscribe((result) => {
|
|
1510
|
+
this.GetProducts();
|
|
1511
|
+
this.toastr.success("Retrieved Product successfully!", "Success");
|
|
1512
|
+
});
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* Retrieves a product's information
|
|
1517
|
+
* @param info Channel ID and Item ID
|
|
1518
|
+
*/
|
|
1519
|
+
RetrieveData(info) {
|
|
1520
|
+
if (!confirm("Are you sure you want to Retrieve product '" +
|
|
1521
|
+
info.Name +
|
|
1522
|
+
"' from '" +
|
|
1523
|
+
info.Channel +
|
|
1524
|
+
"' to POS?"))
|
|
1525
|
+
return;
|
|
1526
|
+
let param = {
|
|
1527
|
+
ChannelItemID: info.ChannelItemID,
|
|
1528
|
+
ChannelID: info.ChannelID,
|
|
1529
|
+
};
|
|
1530
|
+
this.http
|
|
1531
|
+
.post("/api/product/DownloadProductFromChannel", param)
|
|
1532
|
+
.subscribe((result) => {
|
|
1533
|
+
this.GetProducts();
|
|
1534
|
+
this.toastr.success("Retrieved Product successfully!", "Success");
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
/**
|
|
1538
|
+
* Return the Channel's name based on the ID given as input
|
|
1539
|
+
* @param ID Channel ID
|
|
1540
|
+
*/
|
|
1541
|
+
getChannelName(ID) {
|
|
1542
|
+
let channel = this.Channel.find((x) => x.ID == ID);
|
|
1543
|
+
return channel.Name;
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* Opens the instruction Modal
|
|
1547
|
+
* @param item Selected item
|
|
1548
|
+
*/
|
|
1549
|
+
openInstruction(item) {
|
|
1550
|
+
this.dialogName = item.Name;
|
|
1551
|
+
this.GetProductChannel(item);
|
|
1552
|
+
this.dialogType = this.ch.TypeID;
|
|
1553
|
+
this.dialog.open(_modal_instruction_modal_instruction_component__WEBPACK_IMPORTED_MODULE_3__.ModalInstructionComponent, {
|
|
1554
|
+
data: {
|
|
1555
|
+
type: this.dialogType,
|
|
1556
|
+
name: this.dialogName
|
|
1557
|
+
},
|
|
1558
|
+
width: "30%"
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
* Opens the download Modal
|
|
1563
|
+
*/
|
|
1564
|
+
openDownloadModal() {
|
|
1565
|
+
const dialogRef = this.dialog.open(_modal_download_modal_download_component__WEBPACK_IMPORTED_MODULE_2__.ModalDownloadComponent, {
|
|
1566
|
+
data: {
|
|
1567
|
+
hasSelection: this.hasSelection(),
|
|
1568
|
+
},
|
|
1569
|
+
width: "30%",
|
|
1570
|
+
});
|
|
1571
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
1572
|
+
if (result != null) {
|
|
1573
|
+
this.RetrieveAllData(result);
|
|
1574
|
+
}
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
/**
|
|
1578
|
+
* Toggles showing the item's full name in the UI
|
|
1579
|
+
* @param item The selected Item
|
|
1580
|
+
*/
|
|
1581
|
+
showFullTitle(item) {
|
|
1582
|
+
item.fullTitle = !item.fullTitle;
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
NotInPosComponent.ɵfac = function NotInPosComponent_Factory(t) { return new (t || NotInPosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_4__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_8__.MatDialog)); };
|
|
1586
|
+
NotInPosComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineComponent"]({ type: NotInPosComponent, selectors: [["app-not-in-pos"]], decls: 19, vars: 5, consts: [["textButton", " Search", 3, "Title", "onSubmit"], ["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, "d-flex"], ["container", ""], ["bindLabel", "Name", "name", "channelid", "bindValue", "ID", "placeholder", "Select Channel", 1, "center-text", 3, "clearable", "items", "ngModel", "ngModelChange"], [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"], [1, "col-12", "col-md-6", "col-xl-4", "px-3", "my-3"], [1, "card", "product"], [1, "row", "h-100", "g-0", "px-6"], [1, "col-auto", "pe-xl-0"], ["class", "border rounded-lg mx-auto text-center mt-5", "style", "width: 80px; max-height: 80px", 3, "src", 4, "ngIf"], ["class", "text-center border rounded-lg mx-auto mt-5", "style", "width: 80px; max-height: 80px", "src", "//res.cloudinary.com/pos/image/upload/w_80/POS/Images/Icon/products_thumb.png", 4, "ngIf"], [1, "col", "mt-5", "px-xl-0"], [1, "row", "align-items-center", "justify-content-start"], [1, "col-auto", "pt-0", "pe-4", "max-w-xl", "ms-3"], [1, "text-start", 3, "ngClass", "innerHTML", "click"], ["class", "col text-end gx-0", 4, "ngIf"], [1, "row", "mb-auto"], [1, "col-12", "mt-5"], [4, "ngIf"], [1, "row", "mt-5", "justify-content-between", "bottom-buttons"], [1, "col-auto", "mb-upload"], ["class", "btn btn-light btn-sm", 3, "click", 4, "ngIf"], ["cantUpload", ""], [1, "row", "me-0", "me-md-5", "justify-content-end", "w-auto", "gx-0"], [1, "border", "rounded-lg", "mx-auto", "text-center", "mt-5", 2, "width", "80px", "max-height", "80px", 3, "src"], ["src", "//res.cloudinary.com/pos/image/upload/w_80/POS/Images/Icon/products_thumb.png", 1, "text-center", "border", "rounded-lg", "mx-auto", "mt-5", 2, "width", "80px", "max-height", "80px"], [1, "col", "text-end", "gx-0"], ["type", "checkbox", 3, "ngModel", "ngModelChange"], [1, "ps-3", "my-3", "table-responsive"], [1, "table", "table-bordered"], [1, "text-larger", 3, "ngClass"], [4, "ngFor", "ngForOf"], [3, "ngClass"], [1, "text-larger", "mx-auto", 3, "ngClass"], [1, "btn", "btn-light", "btn-sm", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-download"], [1, "btn", "text-danger", "bg-lightpink", "btn-sm", 3, "click"], ["aria-hidden", "true", 1, "fas", "fa-barcode"], [1, "col-auto", "px-1", "px-md-3", "mb-1", "pb-3"], ["target", "_blank", 3, "href", 4, "ngIf"], ["target", "_blank", 3, "href"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png"], ["src", "https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp"], ["src", "https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png"]], template: function NotInPosComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1587
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](0, "mainpanel", 0);
|
|
1588
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("onSubmit", function NotInPosComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.SearchProduct($event); });
|
|
1589
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](1, "actions")(2, "button", 1);
|
|
1590
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function NotInPosComponent_Template_button_click_2_listener() { return ctx.openScanDialog(); });
|
|
1591
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](3, "i", 2);
|
|
1592
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](4, " Scan Channel ");
|
|
1593
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1594
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](5, "button", 3);
|
|
1595
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("click", function NotInPosComponent_Template_button_click_5_listener() { return ctx.openDownloadModal(); });
|
|
1596
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelement"](6, "i", 4);
|
|
1597
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](7, " Download ");
|
|
1598
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()();
|
|
1599
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](8, "filters")(9, "div", 5)(10, "div", 6)(11, "div")(12, "h6");
|
|
1600
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtext"](13, "Channel");
|
|
1601
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]();
|
|
1602
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](14, "ng-select", 7);
|
|
1603
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵlistener"]("ngModelChange", function NotInPosComponent_Template_ng_select_ngModelChange_14_listener($event) { return ctx.filter.ChannelID = $event; });
|
|
1604
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()()();
|
|
1605
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementStart"](15, "content")(16, "div", 8)(17, "div", 9);
|
|
1606
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵtemplate"](18, NotInPosComponent_div_18_Template, 22, 11, "div", 10);
|
|
1607
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵelementEnd"]()()()();
|
|
1608
|
+
} if (rf & 2) {
|
|
1609
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("Title", "Not in POS" + " (" + (ctx.originalData ? ctx.originalData.length : "0") + ")");
|
|
1610
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](14);
|
|
1611
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("clearable", true)("items", ctx.Channel)("ngModel", ctx.filter.ChannelID);
|
|
1612
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵadvance"](4);
|
|
1613
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵproperty"]("ngForOf", ctx.data);
|
|
1614
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_9__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_9__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_10__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_5__.MainPanelComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__.NgSelectComponent], 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[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uXFxwcm9kdWN0cy5jb21wb25lbnQuc2NzcyIsIm5vdC1pbi1wb3MuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSwrQkFBQTtBQ0NKOztBREVBO0VBQ0ksbUJBQUE7RUFDQSx5QkFBQTtBQ0NKOztBREVBO0VBQ0ksa0JBQUE7RUFDQSxrQkFBQTtFQUNBLE9BQUE7RUFDQSxNQUFBO0FDQ0o7O0FERUE7RUFDSSxzQkFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7RUFDQSxlQUFBO0VBQ0EsYUFBQTtFQUNB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AgIG1heC13aWR0aDogMjA1cHg7XHJcbiAgICB9XHJcbn1cclxuXHJcbiIsIkBpbXBvcnQgJy4uL3Byb2R1Y3RzLmNvbXBvbmVudC5zY3NzJztcclxuXHJcbi5pdGVtVGl0bGV7XHJcbiAgICBjdXJzb3I6IHBvaW50ZXI7XHJcbn0iXX0= */"] });
|
|
1615
|
+
|
|
1616
|
+
|
|
1617
|
+
/***/ }),
|
|
1618
|
+
|
|
1619
|
+
/***/ 3816:
|
|
1620
|
+
/*!*********************************************************!*\
|
|
1621
|
+
!*** ./src/app/menu/products/product-routing.module.ts ***!
|
|
1622
|
+
\*********************************************************/
|
|
1623
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1624
|
+
|
|
1625
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1626
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1627
|
+
/* harmony export */ "ProductRoutingModule": () => (/* binding */ ProductRoutingModule)
|
|
1628
|
+
/* harmony export */ });
|
|
1629
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
1630
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ 124);
|
|
1631
|
+
/* harmony import */ var _products_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./products.component */ 5881);
|
|
1632
|
+
/* harmony import */ var _in_pos_in_pos_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./in-pos/in-pos.component */ 9949);
|
|
1633
|
+
/* harmony import */ var _sold_in_channel_sold_in_channel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sold-in-channel/sold-in-channel.component */ 6678);
|
|
1634
|
+
/* harmony import */ var _not_in_channel_not_in_channel_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./not-in-channel/not-in-channel.component */ 3915);
|
|
1635
|
+
/* harmony import */ var _not_in_pos_not_in_pos_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./not-in-pos/not-in-pos.component */ 7925);
|
|
1636
|
+
/* harmony import */ var _duplicate_sku_duplicate_sku_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./duplicate-sku/duplicate-sku.component */ 2741);
|
|
1637
|
+
/* harmony import */ var src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/services/auth.guard */ 8063);
|
|
1638
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
1639
|
+
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
const routes = [
|
|
1651
|
+
{
|
|
1652
|
+
path: "",
|
|
1653
|
+
component: _products_component__WEBPACK_IMPORTED_MODULE_0__.ProductsComponent,
|
|
1654
|
+
children: [
|
|
1655
|
+
{
|
|
1656
|
+
path: "",
|
|
1657
|
+
redirectTo: "in-pos",
|
|
1658
|
+
pathMatch: "full",
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
path: "in-pos",
|
|
1662
|
+
component: _in_pos_in_pos_component__WEBPACK_IMPORTED_MODULE_1__.InPosComponent,
|
|
1663
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__.AuthGuard],
|
|
1664
|
+
data: { title: "Products in POS" },
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
path: "sold-in-channel",
|
|
1668
|
+
component: _sold_in_channel_sold_in_channel_component__WEBPACK_IMPORTED_MODULE_2__.SoldInChannelComponent,
|
|
1669
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__.AuthGuard],
|
|
1670
|
+
data: { title: "Products Sold in Channel" },
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
path: "not-in-channel",
|
|
1674
|
+
component: _not_in_channel_not_in_channel_component__WEBPACK_IMPORTED_MODULE_3__.NotInChannelComponent,
|
|
1675
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__.AuthGuard],
|
|
1676
|
+
data: { title: "Products not in Channel" },
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
path: "not-in-pos",
|
|
1680
|
+
component: _not_in_pos_not_in_pos_component__WEBPACK_IMPORTED_MODULE_4__.NotInPosComponent,
|
|
1681
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__.AuthGuard],
|
|
1682
|
+
data: { title: "Products not in POS" },
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
path: "duplicate-sku",
|
|
1686
|
+
component: _duplicate_sku_duplicate_sku_component__WEBPACK_IMPORTED_MODULE_5__.DuplicateSkuComponent,
|
|
1687
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_6__.AuthGuard],
|
|
1688
|
+
data: { title: "Duplicate Sku in Channel" },
|
|
1689
|
+
},
|
|
1690
|
+
],
|
|
1691
|
+
},
|
|
1692
|
+
];
|
|
1693
|
+
class ProductRoutingModule {
|
|
1694
|
+
}
|
|
1695
|
+
ProductRoutingModule.ɵfac = function ProductRoutingModule_Factory(t) { return new (t || ProductRoutingModule)(); };
|
|
1696
|
+
ProductRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_7__["ɵɵdefineNgModule"]({ type: ProductRoutingModule });
|
|
1697
|
+
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)] });
|
|
1698
|
+
(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] }); })();
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
/***/ }),
|
|
1702
|
+
|
|
1703
|
+
/***/ 2837:
|
|
1704
|
+
/*!*************************************************!*\
|
|
1705
|
+
!*** ./src/app/menu/products/product.module.ts ***!
|
|
1706
|
+
\*************************************************/
|
|
1707
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1708
|
+
|
|
1709
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1710
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1711
|
+
/* harmony export */ "ProductModule": () => (/* binding */ ProductModule)
|
|
1712
|
+
/* harmony export */ });
|
|
1713
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
1714
|
+
/* harmony import */ var _duplicate_sku_duplicate_sku_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./duplicate-sku/duplicate-sku.component */ 2741);
|
|
1715
|
+
/* harmony import */ var _in_pos_in_pos_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./in-pos/in-pos.component */ 9949);
|
|
1716
|
+
/* harmony import */ var _not_in_channel_not_in_channel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./not-in-channel/not-in-channel.component */ 3915);
|
|
1717
|
+
/* harmony import */ var _sold_in_channel_sold_in_channel_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sold-in-channel/sold-in-channel.component */ 6678);
|
|
1718
|
+
/* harmony import */ var _not_in_pos_not_in_pos_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./not-in-pos/not-in-pos.component */ 7925);
|
|
1719
|
+
/* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
|
|
1720
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
1721
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/router */ 124);
|
|
1722
|
+
/* harmony import */ var _product_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./product-routing.module */ 3816);
|
|
1723
|
+
/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/tooltip */ 6896);
|
|
1724
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../main-panel/main-panel.component */ 7481);
|
|
1725
|
+
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
|
|
1726
|
+
/* harmony import */ var _products_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./products.component */ 5881);
|
|
1727
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
|
|
1733
|
+
|
|
1734
|
+
|
|
1735
|
+
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
class ProductModule {
|
|
1744
|
+
}
|
|
1745
|
+
ProductModule.ɵfac = function ProductModule_Factory(t) { return new (t || ProductModule)(); };
|
|
1746
|
+
ProductModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineNgModule"]({ type: ProductModule });
|
|
1747
|
+
ProductModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.CommonModule,
|
|
1748
|
+
_nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_5__.NavTabModule,
|
|
1749
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormsModule,
|
|
1750
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_12__.RouterModule,
|
|
1751
|
+
_product_routing_module__WEBPACK_IMPORTED_MODULE_6__.ProductRoutingModule,
|
|
1752
|
+
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_13__.MatTooltipModule,
|
|
1753
|
+
_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_7__.MainPanelModule,
|
|
1754
|
+
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__.NgSelectModule] });
|
|
1755
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_9__["ɵɵsetNgModuleScope"](ProductModule, { declarations: [_duplicate_sku_duplicate_sku_component__WEBPACK_IMPORTED_MODULE_0__.DuplicateSkuComponent,
|
|
1756
|
+
_in_pos_in_pos_component__WEBPACK_IMPORTED_MODULE_1__.InPosComponent,
|
|
1757
|
+
_not_in_channel_not_in_channel_component__WEBPACK_IMPORTED_MODULE_2__.NotInChannelComponent,
|
|
1758
|
+
_sold_in_channel_sold_in_channel_component__WEBPACK_IMPORTED_MODULE_3__.SoldInChannelComponent,
|
|
1759
|
+
_not_in_pos_not_in_pos_component__WEBPACK_IMPORTED_MODULE_4__.NotInPosComponent,
|
|
1760
|
+
_products_component__WEBPACK_IMPORTED_MODULE_8__.ProductsComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_10__.CommonModule,
|
|
1761
|
+
_nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_5__.NavTabModule,
|
|
1762
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_11__.FormsModule,
|
|
1763
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_12__.RouterModule,
|
|
1764
|
+
_product_routing_module__WEBPACK_IMPORTED_MODULE_6__.ProductRoutingModule,
|
|
1765
|
+
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_13__.MatTooltipModule,
|
|
1766
|
+
_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_7__.MainPanelModule,
|
|
1767
|
+
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__.NgSelectModule] }); })();
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
/***/ }),
|
|
1771
|
+
|
|
1772
|
+
/***/ 5881:
|
|
1773
|
+
/*!*****************************************************!*\
|
|
1774
|
+
!*** ./src/app/menu/products/products.component.ts ***!
|
|
1775
|
+
\*****************************************************/
|
|
1776
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1777
|
+
|
|
1778
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1779
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1780
|
+
/* harmony export */ "ProductsComponent": () => (/* binding */ ProductsComponent)
|
|
1781
|
+
/* harmony export */ });
|
|
1782
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
1783
|
+
/* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
|
|
1784
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
|
|
1785
|
+
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
class ProductsComponent {
|
|
1789
|
+
constructor() {
|
|
1790
|
+
this.productTabs = [
|
|
1791
|
+
{ Title: 'In POS', Url: '/menu/products/in-pos' },
|
|
1792
|
+
{ Title: 'Not in POS', Url: '/menu/products/not-in-pos' },
|
|
1793
|
+
{ Title: 'Sold in Channel', Url: '/menu/products/sold-in-channel' },
|
|
1794
|
+
{ Title: 'Not in Channel', Url: '/menu/products/not-in-channel' },
|
|
1795
|
+
{ Title: 'Duplicate SKU', Url: '/menu/products/duplicate-sku' }
|
|
1796
|
+
];
|
|
1797
|
+
}
|
|
1798
|
+
ngOnInit() {
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
ProductsComponent.ɵfac = function ProductsComponent_Factory(t) { return new (t || ProductsComponent)(); };
|
|
1802
|
+
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) {
|
|
1803
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "nav", 0)(1, "div", 1)(2, "div");
|
|
1804
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "nav-tab", 2);
|
|
1805
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
|
|
1806
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "router-outlet");
|
|
1807
|
+
} if (rf & 2) {
|
|
1808
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
|
|
1809
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("Tabs", ctx.productTabs);
|
|
1810
|
+
} }, 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: 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2R1Y3RzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksK0JBQUE7QUFDSjs7QUFFQTtFQUNJLG1CQUFBO0VBQ0EseUJBQUE7QUFDSjs7QUFFQTtFQUNJLGtCQUFBO0VBQ0Esa0JBQUE7RUFDQSxPQUFBO0VBQ0EsTUFBQTtBQUNKOztBQUVBO0VBQ0ksc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsZUFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7QUFDSjs7QUFFQTtFQUNJLHlCQUFBO0FBQ0o7O0FBRUE7RUFDSSx1QkFBQTtBQUNKOztBQUVBO0VBQ0ksaUJBQUE7QUFDSjs7QUFFQTtFQUNJLGNBQUE7RUFDQSxlQUFBO0FBQ0o7O0FBRUE7RUFDSSxxQkFBQTtBQUNKOztBQUVBO0VBQ0ksY0FBQTtFQUNBLGVBQUE7QUFDSjs7QUFFQTtFQUNDLDRCQUFBO0FBQ0Q7O0FBRUE7RUFDSSxjQUFBO0VBQ0Esa0JBQUE7QUFDSjs7QUFFQTtFQUNJLFlBQUE7QUFDSjs7QUFFQTtFQUNJLHVCQUFBO0VBRUEsOENBQUE7RUFDQSxtQkFBQTtFQUNBLGdCQUFBO0FBQUo7O0FBR0E7RUFDSSxrQkFBQTtFQUNBLHNCQUFBO0FBQUo7O0FBR0E7RUFDSSx3QkFBQTtBQUFKOztBQUdBO0VBQ0ksOEJBQUE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AgbWFyZ2luLXRvcDogMXJlbSAhaW1wb3J0YW50O1xyXG59XHJcblxyXG4ucHItcmVtIHtcclxuICAgIHBhZGRpbmctcmlnaHQ6IDAuNnJlbTtcclxufVxyXG5cclxuLnRleHQtbGFyZ2VyIHtcclxuICAgIGZvbnQtc2l6ZTogbGFyZ2VyO1xyXG59XHJcblxyXG4uYmctbGlnaHRwaW5rIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmOWRlZGU7XHJcbn1cclxuXHJcbi5ib3R0b20tYnV0dG9uc3tcclxuICAgIG1hcmdpbi1sZWZ0OiA5N3B4O1xyXG59XHJcblxyXG4vLyBFeHRyYSBsYXJnZSBkZXZpY2VzIChsYXJnZSBkZXNrdG9wcywgMTIwMHB4IGFuZCB1cClcclxuQG1lZGlhIChtaW4td2lkdGg6IDEyMDBweCkge1xyXG4gICAgLm1heC13LXhse1xyXG4gICAgICAgIG1heC13aWR0aDogMjA1cHg7XHJcbiAgICB9XHJcbn1cclxuXHJcbiJdfQ== */"] });
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
/***/ }),
|
|
1814
|
+
|
|
1815
|
+
/***/ 6678:
|
|
1816
|
+
/*!****************************************************************************!*\
|
|
1817
|
+
!*** ./src/app/menu/products/sold-in-channel/sold-in-channel.component.ts ***!
|
|
1818
|
+
\****************************************************************************/
|
|
1819
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1820
|
+
|
|
1821
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1822
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1823
|
+
/* harmony export */ "SoldInChannelComponent": () => (/* binding */ SoldInChannelComponent)
|
|
1824
|
+
/* harmony export */ });
|
|
1825
|
+
/* harmony import */ var _scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scan-dialog/scan-dialog.component */ 5241);
|
|
1826
|
+
/* harmony import */ var src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/model/ProductFilter */ 1290);
|
|
1827
|
+
/* harmony import */ var _modal_variant_list_modal_variant_list_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modal-variant-list/modal-variant-list.component */ 982);
|
|
1828
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
1829
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
1830
|
+
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
|
|
1831
|
+
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ 4817);
|
|
1832
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
1833
|
+
/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/tooltip */ 6896);
|
|
1834
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
function SoldInChannelComponent_div_8_img_4_Template(rf, ctx) { if (rf & 1) {
|
|
1846
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "img", 24);
|
|
1847
|
+
} if (rf & 2) {
|
|
1848
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
|
|
1849
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpropertyInterpolate"]("src", item_r1 == null ? null : item_r1.ImageUrl, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
|
|
1850
|
+
} }
|
|
1851
|
+
function SoldInChannelComponent_div_8_img_5_Template(rf, ctx) { if (rf & 1) {
|
|
1852
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](0, "img", 25);
|
|
1853
|
+
} }
|
|
1854
|
+
function SoldInChannelComponent_div_8_span_14_Template(rf, ctx) { if (rf & 1) {
|
|
1855
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "span", 26);
|
|
1856
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](1);
|
|
1857
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1858
|
+
} if (rf & 2) {
|
|
1859
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
|
|
1860
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
|
|
1861
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"](" ", item_r1 == null ? null : item_r1.Variants.length, "");
|
|
1862
|
+
} }
|
|
1863
|
+
function SoldInChannelComponent_div_8_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
1864
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "span", 27);
|
|
1865
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
|
|
1866
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1867
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "span", 27);
|
|
1868
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
|
|
1869
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
|
|
1870
|
+
} if (rf & 2) {
|
|
1871
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
|
|
1872
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
|
|
1873
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](item_r1 == null ? null : item_r1.Variants[0].Model);
|
|
1874
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
|
|
1875
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](item_r1 == null ? null : item_r1.Variants[0].Code);
|
|
1876
|
+
} }
|
|
1877
|
+
function SoldInChannelComponent_div_8_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
1878
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div")(1, "span", 28);
|
|
1879
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](2);
|
|
1880
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1881
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](3, "span", 27);
|
|
1882
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4);
|
|
1883
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
|
|
1884
|
+
} if (rf & 2) {
|
|
1885
|
+
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
|
|
1886
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
|
|
1887
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](item_r1 == null ? null : item_r1.Variants[0].Model);
|
|
1888
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
|
|
1889
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate"](item_r1 == null ? null : item_r1.Variants[0].Code);
|
|
1890
|
+
} }
|
|
1891
|
+
function SoldInChannelComponent_div_8_ng_container_20_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
1892
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "a", 32);
|
|
1893
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "img", 33);
|
|
1894
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1895
|
+
} if (rf & 2) {
|
|
1896
|
+
const c_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
|
|
1897
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpropertyInterpolate"]("href", c_r13.Url, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
|
|
1898
|
+
} }
|
|
1899
|
+
function SoldInChannelComponent_div_8_ng_container_20_a_3_Template(rf, ctx) { if (rf & 1) {
|
|
1900
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "a", 32);
|
|
1901
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "img", 34);
|
|
1902
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1903
|
+
} if (rf & 2) {
|
|
1904
|
+
const c_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
|
|
1905
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpropertyInterpolate"]("href", c_r13.Url, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
|
|
1906
|
+
} }
|
|
1907
|
+
function SoldInChannelComponent_div_8_ng_container_20_a_4_Template(rf, ctx) { if (rf & 1) {
|
|
1908
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "a", 32);
|
|
1909
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "img", 35);
|
|
1910
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1911
|
+
} if (rf & 2) {
|
|
1912
|
+
const c_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
|
|
1913
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpropertyInterpolate"]("href", c_r13.Url, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
|
|
1914
|
+
} }
|
|
1915
|
+
function SoldInChannelComponent_div_8_ng_container_20_a_5_Template(rf, ctx) { if (rf & 1) {
|
|
1916
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "a", 36);
|
|
1917
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](1, "img", 37);
|
|
1918
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1919
|
+
} if (rf & 2) {
|
|
1920
|
+
const c_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]().$implicit;
|
|
1921
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpropertyInterpolate"]("href", c_r13.Url, _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsanitizeUrl"]);
|
|
1922
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpropertyInterpolate"]("matTooltip", c_r13.Title);
|
|
1923
|
+
} }
|
|
1924
|
+
function SoldInChannelComponent_div_8_ng_container_20_Template(rf, ctx) { if (rf & 1) {
|
|
1925
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerStart"](0);
|
|
1926
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "div", 29);
|
|
1927
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](2, SoldInChannelComponent_div_8_ng_container_20_a_2_Template, 2, 1, "a", 30);
|
|
1928
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](3, SoldInChannelComponent_div_8_ng_container_20_a_3_Template, 2, 1, "a", 30);
|
|
1929
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, SoldInChannelComponent_div_8_ng_container_20_a_4_Template, 2, 1, "a", 30);
|
|
1930
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, SoldInChannelComponent_div_8_ng_container_20_a_5_Template, 2, 2, "a", 31);
|
|
1931
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1932
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementContainerEnd"]();
|
|
1933
|
+
} if (rf & 2) {
|
|
1934
|
+
const c_r13 = ctx.$implicit;
|
|
1935
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
|
|
1936
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", c_r13.TypeID == 0 || c_r13.TypeID == 5);
|
|
1937
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
|
|
1938
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", c_r13.TypeID == 1);
|
|
1939
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
|
|
1940
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", c_r13.TypeID == 2);
|
|
1941
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
|
|
1942
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", c_r13.TypeID == 6);
|
|
1943
|
+
} }
|
|
1944
|
+
const _c0 = function () { return { "no-title": "item?.Variants.length <= 1" }; };
|
|
1945
|
+
function SoldInChannelComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
1946
|
+
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵgetCurrentView"]();
|
|
1947
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "div", 6)(1, "div", 7)(2, "div", 8)(3, "div", 9);
|
|
1948
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](4, SoldInChannelComponent_div_8_img_4_Template, 1, 1, "img", 10);
|
|
1949
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](5, SoldInChannelComponent_div_8_img_5_Template, 1, 0, "img", 11);
|
|
1950
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]();
|
|
1951
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](6, "div", 12)(7, "div", 13)(8, "div", 14)(9, "a", 15);
|
|
1952
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function SoldInChannelComponent_div_8_Template_a_click_9_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵrestoreView"](_r24); const i_r2 = restoredCtx.index; const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵresetView"](ctx_r23.DialogVariant(i_r2)); });
|
|
1953
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](10, "h4", 16);
|
|
1954
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](11);
|
|
1955
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
|
|
1956
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](12, "div", 17)(13, "h4");
|
|
1957
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](14, SoldInChannelComponent_div_8_span_14_Template, 2, 1, "span", 18);
|
|
1958
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
|
|
1959
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](15, "div", 19)(16, "div", 20);
|
|
1960
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](17, SoldInChannelComponent_div_8_div_17_Template, 5, 2, "div", 21);
|
|
1961
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](18, SoldInChannelComponent_div_8_div_18_Template, 5, 2, "div", 21);
|
|
1962
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
|
|
1963
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](19, "div", 22);
|
|
1964
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](20, SoldInChannelComponent_div_8_ng_container_20_Template, 6, 4, "ng-container", 23);
|
|
1965
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()();
|
|
1966
|
+
} if (rf & 2) {
|
|
1967
|
+
const item_r1 = ctx.$implicit;
|
|
1968
|
+
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵnextContext"]();
|
|
1969
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](4);
|
|
1970
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", item_r1 == null ? null : item_r1.ImageUrl);
|
|
1971
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
|
|
1972
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", !(item_r1 == null ? null : item_r1.ImageUrl));
|
|
1973
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](5);
|
|
1974
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵpureFunction0"](8, _c0));
|
|
1975
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
|
|
1976
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtextInterpolate1"]("", item_r1 == null ? null : item_r1.Name, " ");
|
|
1977
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
|
|
1978
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (item_r1 == null ? null : item_r1.Variants.length) > 1);
|
|
1979
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](3);
|
|
1980
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (item_r1 == null ? null : item_r1.Variants.length) > 1);
|
|
1981
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](1);
|
|
1982
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngIf", (item_r1 == null ? null : item_r1.Variants.length) == 1);
|
|
1983
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](2);
|
|
1984
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx_r0.sortVariant(item_r1 == null ? null : item_r1.Variants));
|
|
1985
|
+
} }
|
|
1986
|
+
class SoldInChannelComponent {
|
|
1987
|
+
constructor(http, dialog, toastr) {
|
|
1988
|
+
this.http = http;
|
|
1989
|
+
this.dialog = dialog;
|
|
1990
|
+
this.toastr = toastr;
|
|
1991
|
+
this.filter = new src_app_model_ProductFilter__WEBPACK_IMPORTED_MODULE_1__.ProductFilter();
|
|
1992
|
+
this.loading = false;
|
|
1993
|
+
this.syncupdatefull = false;
|
|
1994
|
+
this.Load();
|
|
1995
|
+
this.GetProducts();
|
|
1996
|
+
}
|
|
1997
|
+
ngOnInit() { }
|
|
1998
|
+
Load() {
|
|
1999
|
+
this.http.post("/api/product/Load", {}).subscribe((result) => {
|
|
2000
|
+
this.Channel = result.Options.Channel;
|
|
2001
|
+
this.filter = result.Filter;
|
|
2002
|
+
this.filter.ChannelID = null;
|
|
2003
|
+
this.filter.sync = false;
|
|
2004
|
+
this.filter.mode = 1;
|
|
2005
|
+
});
|
|
2006
|
+
}
|
|
2007
|
+
GetProducts() {
|
|
2008
|
+
this.http
|
|
2009
|
+
.post("/api/product/GetSoldInChannel", {})
|
|
2010
|
+
.subscribe((result) => {
|
|
2011
|
+
this.data = result.Data;
|
|
2012
|
+
this.temp = result.Data;
|
|
2013
|
+
});
|
|
2014
|
+
}
|
|
2015
|
+
//Function: SearchProduct() will search the product by name
|
|
2016
|
+
//If not found, it will search by variant code.
|
|
2017
|
+
//If still not found, it will show the whole product list
|
|
2018
|
+
SearchProduct(event) {
|
|
2019
|
+
if (event != "") {
|
|
2020
|
+
let result = this.temp.filter((ex) => ex.Name.toLowerCase().indexOf(event.toLowerCase()) !== -1);
|
|
2021
|
+
if (result.length == 0) {
|
|
2022
|
+
for (let item of this.temp) {
|
|
2023
|
+
var u = item.Variants.filter((v) => v.Code.toLowerCase().indexOf(event.toLowerCase()) !== -1);
|
|
2024
|
+
if (u.length > 0) {
|
|
2025
|
+
result.push(item);
|
|
2026
|
+
continue;
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
this.data = result;
|
|
2031
|
+
}
|
|
2032
|
+
else {
|
|
2033
|
+
this.data = this.temp;
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
SyncProduct() {
|
|
2037
|
+
if (this.filter.ChannelID === null || this.filter.mode == null) {
|
|
2038
|
+
alert("Please select channel");
|
|
2039
|
+
return;
|
|
2040
|
+
}
|
|
2041
|
+
let params = {
|
|
2042
|
+
ID: this.filter.ChannelID,
|
|
2043
|
+
ScanFull: this.filter.ScanFull,
|
|
2044
|
+
};
|
|
2045
|
+
this.http
|
|
2046
|
+
.post("/api/product/ScanOptimized", params)
|
|
2047
|
+
.subscribe((res) => {
|
|
2048
|
+
let productNotInPOS = res.NotInPOS ? res.NotInPOS.Product : 0;
|
|
2049
|
+
let productInChannel = res.InChannel ? res.InChannel.Product : 0;
|
|
2050
|
+
this.toastr.success(productNotInPOS +
|
|
2051
|
+
productInChannel +
|
|
2052
|
+
" found in " +
|
|
2053
|
+
this.getChannelName(this.filter.ChannelID) +
|
|
2054
|
+
"</br> ( " +
|
|
2055
|
+
productInChannel +
|
|
2056
|
+
" In POS + " +
|
|
2057
|
+
productNotInPOS +
|
|
2058
|
+
" Not In POS )", "Scan Complete!", {
|
|
2059
|
+
timeOut: 5000,
|
|
2060
|
+
enableHtml: true,
|
|
2061
|
+
});
|
|
2062
|
+
})
|
|
2063
|
+
.add(() => {
|
|
2064
|
+
// always gets called
|
|
2065
|
+
this.GetProducts();
|
|
2066
|
+
});
|
|
2067
|
+
}
|
|
2068
|
+
SyncProductMap() {
|
|
2069
|
+
let params = {
|
|
2070
|
+
ID: this.filter.ChannelID,
|
|
2071
|
+
};
|
|
2072
|
+
this.http
|
|
2073
|
+
.post("/api/product/SyncUpdateMap", params)
|
|
2074
|
+
.subscribe((result) => {
|
|
2075
|
+
this.data = result.Data;
|
|
2076
|
+
})
|
|
2077
|
+
.add(() => {
|
|
2078
|
+
// always gets called
|
|
2079
|
+
this.GetProducts();
|
|
2080
|
+
});
|
|
2081
|
+
}
|
|
2082
|
+
DialogVariant(index) {
|
|
2083
|
+
this.variant = this.data[index].Variants;
|
|
2084
|
+
this.dialogName = this.data[index].Name;
|
|
2085
|
+
this.dialog.open(_modal_variant_list_modal_variant_list_component__WEBPACK_IMPORTED_MODULE_2__.ModalVariantListComponent, {
|
|
2086
|
+
data: { variants: this.variant, title: this.data[index].Name },
|
|
2087
|
+
width: "40%"
|
|
2088
|
+
});
|
|
2089
|
+
}
|
|
2090
|
+
//Function: sortVariant() will look through all variants and make a list of all the unique channels
|
|
2091
|
+
//Then it will return a sorted channel list
|
|
2092
|
+
sortVariant(variants) {
|
|
2093
|
+
var list = [];
|
|
2094
|
+
for (let x of variants) {
|
|
2095
|
+
if (x.Channel == null) {
|
|
2096
|
+
continue;
|
|
2097
|
+
}
|
|
2098
|
+
else {
|
|
2099
|
+
for (let ch of x.Channel) {
|
|
2100
|
+
if (list.filter((y) => y.ChannelID == ch.ChannelID).length == 0) {
|
|
2101
|
+
list.push(ch);
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
return this.sortChannel(list);
|
|
2107
|
+
}
|
|
2108
|
+
//Function: sortChannel(list) will sort the list in decending order based on its TypeID
|
|
2109
|
+
//It is used so that tokopedia link will be printed first
|
|
2110
|
+
//Source : https://stackoverflow.com/questions/48403154/orderby-with-ngfor-array
|
|
2111
|
+
sortChannel(list) {
|
|
2112
|
+
return list.sort((a, b) => a["TypeID"] < b["TypeID"] ? 1 : a["TypeID"] === b["TypeID"] ? 0 : -1);
|
|
2113
|
+
}
|
|
2114
|
+
//Function: openScanDialog() will open the scan dialog and pass the Channel list and the filter variable
|
|
2115
|
+
//It will return the modified filter and will run the scan function that the user has selected (full or quick)
|
|
2116
|
+
openScanDialog() {
|
|
2117
|
+
const dialogRef = this.dialog.open(_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ScanDialogComponent, {
|
|
2118
|
+
data: {
|
|
2119
|
+
filter: this.filter,
|
|
2120
|
+
Channel: this.Channel,
|
|
2121
|
+
},
|
|
2122
|
+
width: "40%",
|
|
2123
|
+
});
|
|
2124
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
2125
|
+
if (result != null) {
|
|
2126
|
+
this.filter = result.filter;
|
|
2127
|
+
this.SyncProduct();
|
|
2128
|
+
}
|
|
2129
|
+
});
|
|
2130
|
+
}
|
|
2131
|
+
//Function: getChannelName() will return the Channel's name based on the ID given as input
|
|
2132
|
+
getChannelName(ID) {
|
|
2133
|
+
let channel = this.Channel.find((x) => x.ID == ID);
|
|
2134
|
+
return channel.Name;
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
SoldInChannelComponent.ɵfac = function SoldInChannelComponent_Factory(t) { return new (t || SoldInChannelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_3__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__.MatDialog), _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__.ToastrService)); };
|
|
2138
|
+
SoldInChannelComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineComponent"]({ type: SoldInChannelComponent, selectors: [["app-sold-in-channel"]], decls: 9, vars: 2, consts: [["hideSearchDropdown", "false", 3, "Title", "onSubmit"], ["type", "button", "data-cy", "scanSoldinChannel", 1, "btn", "btn-outline-secondary", "shadow", "rounded", 3, "click"], [1, "fas", "fa-lg", "fa-crosshairs"], [1, "container-fluid"], [1, "row", "mt-8"], ["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"], [1, "card", "product"], [1, "row", "h-100", "gx-0", "px-6"], [1, "col-auto", "pe-xl-0"], ["class", "border rounded-lg mx-auto text-center mt-5", "style", "width: 80px;max-height:80px; ", 3, "src", 4, "ngIf"], ["class", " text-center border rounded-lg mx-auto mt-5", "style", "width: 80px;max-height:80px;", "src", "//res.cloudinary.com/pos/image/upload/w_80/POS/Images/Icon/products_thumb.png", 4, "ngIf"], [1, "col", "mt-5", "px-xl-0"], [1, "row", "align-items-center", "justify-content-start"], [1, "col-auto", "pt-0", "pe-4", "max-w-xl"], ["role", "button", 1, "text-start", 3, "click"], [1, "itemTitle", 3, "ngClass"], [1, "col-auto", "px-0"], ["class", "badge badge-pill bg-warning m-2", 4, "ngIf"], [1, "row"], [1, "col-12"], [4, "ngIf"], [1, "row", "bottom-buttons", "me-0", "me-md-5", "justify-content-end"], [4, "ngFor", "ngForOf"], [1, "border", "rounded-lg", "mx-auto", "text-center", "mt-5", 2, "width", "80px", "max-height", "80px", 3, "src"], ["src", "//res.cloudinary.com/pos/image/upload/w_80/POS/Images/Icon/products_thumb.png", 1, "text-center", "border", "rounded-lg", "mx-auto", "mt-5", 2, "width", "80px", "max-height", "80px"], [1, "badge", "badge-pill", "bg-warning", "m-2"], [1, "d-block", "default"], [1, "d-none", "default"], [1, "col-auto", "px-1", "px-md-3", "mt-5", "mb-1", "pb-3"], ["target", "_blank", 3, "href", 4, "ngIf"], ["target", "_blank", "data-placement", "top", 3, "href", "matTooltip", 4, "ngIf"], ["target", "_blank", 3, "href"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png"], ["src", "https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp"], ["target", "_blank", "data-placement", "top", 3, "href", "matTooltip"], ["src", "https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png"]], template: function SoldInChannelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2139
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](0, "mainpanel", 0);
|
|
2140
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("onSubmit", function SoldInChannelComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.SearchProduct($event); });
|
|
2141
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](1, "actions")(2, "button", 1);
|
|
2142
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵlistener"]("click", function SoldInChannelComponent_Template_button_click_2_listener() { return ctx.openScanDialog(); });
|
|
2143
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelement"](3, "i", 2);
|
|
2144
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtext"](4, " Scan Channel ");
|
|
2145
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()();
|
|
2146
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementStart"](5, "content")(6, "div", 3)(7, "div", 4);
|
|
2147
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵtemplate"](8, SoldInChannelComponent_div_8_Template, 21, 9, "div", 5);
|
|
2148
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵelementEnd"]()()()();
|
|
2149
|
+
} if (rf & 2) {
|
|
2150
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("Title", "Sold in Channel" + " (" + (ctx.data ? ctx.data.length : "0") + ")");
|
|
2151
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵadvance"](8);
|
|
2152
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵproperty"]("ngForOf", ctx.data);
|
|
2153
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_8__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_8__.NgIf, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_9__.MatTooltip, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_4__.MainPanelComponent], 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uXFxwcm9kdWN0cy5jb21wb25lbnQuc2NzcyIsInNvbGQtaW4tY2hhbm5lbC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLCtCQUFBO0FDQ0o7O0FERUE7RUFDSSxtQkFBQTtFQUNBLHlCQUFBO0FDQ0o7O0FERUE7RUFDSSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsT0FBQTtFQUNBLE1BQUE7QUNDSjs7QURFQTtFQUNJLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtFQUNBLGVBQUE7RUFDQSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0VBQ0EsV0FBQTtFQUNBLGtCQUFBO0FDQ0o7O0FERUE7RUFDSSx5QkFBQTtBQ0NKOztBREVBO0VBQ0ksdUJBQUE7QUNDSjs7QURFQTtFQUNJLGlCQUFBO0FDQ0o7O0FERUE7RUFDSSxjQUFBO0VBQ0EsZUFBQTtBQ0NKOztBREVBO0VBQ0kscUJBQUE7QUNDSjs7QURFQTtFQUNJLGNBQUE7RUFDQSxlQUFBO0FDQ0o7O0FERUE7RUFDQyw0QkFBQTtBQ0NEOztBREVBO0VBQ0ksY0FBQTtFQUNBLGtCQUFBO0FDQ0o7O0FERUE7RUFDSSxZQUFBO0FDQ0o7O0FERUE7RUFDSSx1QkFBQTtFQUVBLDhDQUFBO0VBQ0EsbUJBQUE7RUF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4gIHBhZGRpbmctYm90dG9tOiAwLjYyNXJlbTtcbn1cblxuLm15LTFyZW0ge1xuICBtYXJnaW4tYm90dG9tOiAxcmVtICFpbXBvcnRhbnQ7XG4gIG1hcmdpbi10b3A6IDFyZW0gIWltcG9ydGFudDtcbn1cblxuLnByLXJlbSB7XG4gIHBhZGRpbmctcmlnaHQ6IDAuNnJlbTtcbn1cblxuLnRleHQtbGFyZ2VyIHtcbiAgZm9udC1zaXplOiBsYXJnZXI7XG59XG5cbi5iZy1saWdodHBpbmsge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjlkZWRlO1xufVxuXG4uYm90dG9tLWJ1dHRvbnMge1xuICBtYXJnaW4tbGVmdDogOTdweDtcbn1cblxuQG1lZGlhIChtaW4td2lkdGg6IDEyMDBweCkge1xuICAubWF4LXcteGwge1xuICAgIG1heC13aWR0aDogMjA1cHg7XG4gIH1cbn0iXX0= */"] });
|
|
2154
|
+
|
|
2155
|
+
|
|
2156
|
+
/***/ }),
|
|
2157
|
+
|
|
2158
|
+
/***/ 1290:
|
|
2159
|
+
/*!****************************************!*\
|
|
2160
|
+
!*** ./src/app/model/ProductFilter.ts ***!
|
|
2161
|
+
\****************************************/
|
|
2162
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2163
|
+
|
|
2164
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2165
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2166
|
+
/* harmony export */ "ProductFilter": () => (/* binding */ ProductFilter)
|
|
2167
|
+
/* harmony export */ });
|
|
2168
|
+
class ProductFilter {
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
|
|
2172
|
+
/***/ }),
|
|
2173
|
+
|
|
2174
|
+
/***/ 4461:
|
|
2175
|
+
/*!*************************************************!*\
|
|
2176
|
+
!*** ./src/app/model/enums/ChannelLogo.enum.ts ***!
|
|
2177
|
+
\*************************************************/
|
|
2178
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2179
|
+
|
|
2180
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2181
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2182
|
+
/* harmony export */ "ChannelLogo": () => (/* binding */ ChannelLogo)
|
|
2183
|
+
/* harmony export */ });
|
|
2184
|
+
var ChannelLogo;
|
|
2185
|
+
(function (ChannelLogo) {
|
|
2186
|
+
ChannelLogo["SHOOPE"] = "//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png";
|
|
2187
|
+
ChannelLogo["WOOCOMMERCE"] = "//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp";
|
|
2188
|
+
ChannelLogo["TOKOPEDIA"] = "//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png";
|
|
2189
|
+
ChannelLogo["TIKTOK"] = "//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png";
|
|
2190
|
+
})(ChannelLogo || (ChannelLogo = {}));
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
/***/ })
|
|
2194
|
+
|
|
2195
|
+
}]);
|
|
2196
|
+
//# sourceMappingURL=src_app_menu_products_product_module_ts.js.map
|