marketplacepos 2.2.8 → 2.3.1
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/126.9c69aee32875d325.js +1 -0
- package/Marketplace/185.1b988f70ad8b4f58.js +1 -0
- package/Marketplace/22.3829c474fb5bad35.js +1 -0
- package/Marketplace/231.231da11ec44f3fe8.js +1 -0
- package/Marketplace/285.17f6cbef78acd327.js +1 -0
- package/Marketplace/3rdpartylicenses.txt +490 -0
- package/Marketplace/46.502e626256bc5b7c.js +1 -0
- package/Marketplace/472.974dc0a1dade2b29.js +1 -0
- package/Marketplace/512.eddb4675a9016de6.js +1 -0
- package/Marketplace/518.3ea4f72f7ca0ce3c.js +1 -0
- package/Marketplace/585.c93552ac67f4550c.js +1 -0
- package/Marketplace/6.fc79ecc0c0a33462.js +1 -0
- package/Marketplace/616.507588c0a5d7b9e1.js +1 -0
- package/Marketplace/717.62ca448a74adc1c2.js +1 -0
- package/Marketplace/739.82b92600f9519019.js +1 -0
- package/Marketplace/763.42fa4c0d665819d3.js +1 -0
- package/Marketplace/767.0ce42314dea8dfea.js +1 -0
- package/Marketplace/796.3be8ad424aad7864.js +1 -0
- package/Marketplace/common.34d3e7dcd2b85c7a.js +1 -0
- package/Marketplace/index.html +22 -23
- package/Marketplace/main.6481a1f35d927562.js +1 -0
- package/Marketplace/polyfills.8d85b0533e3f867a.js +1 -0
- package/Marketplace/runtime.307954efca5e3eeb.js +1 -0
- package/Marketplace/scripts.512baec01df5d79f.js +1 -0
- package/Marketplace/styles.d8aa52b2e9cd02ae.css +39 -0
- package/package.json +1 -1
- package/Marketplace/common.js +0 -46
- package/Marketplace/common.js.map +0 -1
- package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js +0 -9551
- package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js.map +0 -1
- package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js +0 -797
- package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js.map +0 -1
- package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js +0 -4632
- package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js.map +0 -1
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js +0 -6836
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js.map +0 -1
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js +0 -722
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js.map +0 -1
- package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js +0 -19951
- package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js.map +0 -1
- package/Marketplace/main.js +0 -617
- package/Marketplace/main.js.map +0 -1
- package/Marketplace/polyfills.js +0 -3398
- package/Marketplace/polyfills.js.map +0 -1
- package/Marketplace/runtime.js +0 -346
- package/Marketplace/runtime.js.map +0 -1
- package/Marketplace/scripts.js +0 -2634
- package/Marketplace/scripts.js.map +0 -1
- package/Marketplace/src_app_login_login_module_ts.js +0 -538
- package/Marketplace/src_app_login_login_module_ts.js.map +0 -1
- package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js +0 -1060
- package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js.map +0 -1
- package/Marketplace/src_app_menu_channels_channels_module_ts.js +0 -9710
- package/Marketplace/src_app_menu_channels_channels_module_ts.js.map +0 -1
- package/Marketplace/src_app_menu_inventory_inventory_module_ts.js +0 -1069
- package/Marketplace/src_app_menu_inventory_inventory_module_ts.js.map +0 -1
- package/Marketplace/src_app_menu_logistic_logistic_module_ts.js +0 -232
- package/Marketplace/src_app_menu_logistic_logistic_module_ts.js.map +0 -1
- package/Marketplace/src_app_menu_menu_module_ts.js +0 -38973
- package/Marketplace/src_app_menu_menu_module_ts.js.map +0 -1
- package/Marketplace/src_app_menu_notification_notification_module_ts.js +0 -192
- package/Marketplace/src_app_menu_notification_notification_module_ts.js.map +0 -1
- package/Marketplace/src_app_menu_object-log_logs_module_ts.js +0 -1997
- package/Marketplace/src_app_menu_object-log_logs_module_ts.js.map +0 -1
- package/Marketplace/src_app_menu_orders_orders_module_ts.js +0 -2449
- package/Marketplace/src_app_menu_orders_orders_module_ts.js.map +0 -1
- package/Marketplace/src_app_menu_price_price_module_ts.js +0 -1713
- package/Marketplace/src_app_menu_price_price_module_ts.js.map +0 -1
- package/Marketplace/src_app_menu_products_product_module_ts.js +0 -2196
- package/Marketplace/src_app_menu_products_product_module_ts.js.map +0 -1
- package/Marketplace/styles.css +0 -30612
- package/Marketplace/styles.css.map +0 -1
- package/Marketplace/vendor.js +0 -71753
- package/Marketplace/vendor.js.map +0 -1
|
@@ -1,538 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
(self["webpackChunkpos_marketplace"] = self["webpackChunkpos_marketplace"] || []).push([["src_app_login_login_module_ts"],{
|
|
3
|
-
|
|
4
|
-
/***/ 5393:
|
|
5
|
-
/*!***********************************************!*\
|
|
6
|
-
!*** ./src/app/login/login-routing.module.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 */ "LoginRoutingModule": () => (/* binding */ LoginRoutingModule)
|
|
13
|
-
/* harmony export */ });
|
|
14
|
-
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 124);
|
|
15
|
-
/* harmony import */ var _login_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./login.component */ 8458);
|
|
16
|
-
/* harmony import */ var _shopee_authorized_shopee_authorized_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shopee-authorized/shopee-authorized.component */ 1136);
|
|
17
|
-
/* harmony import */ var _tiktok_tiktok_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tiktok/tiktok.component */ 3904);
|
|
18
|
-
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const routes = [
|
|
26
|
-
{ path: '', component: _login_component__WEBPACK_IMPORTED_MODULE_0__.LoginComponent, data: { title: 'Dealpos x Marketplace' } },
|
|
27
|
-
{ path: 'shopee', component: _shopee_authorized_shopee_authorized_component__WEBPACK_IMPORTED_MODULE_1__.ShopeeAuthorizedComponent, data: { title: 'Success' } },
|
|
28
|
-
{ path: 'tiktok', component: _tiktok_tiktok_component__WEBPACK_IMPORTED_MODULE_2__.TiktokComponent, data: { title: 'Success' } }
|
|
29
|
-
];
|
|
30
|
-
class LoginRoutingModule {
|
|
31
|
-
}
|
|
32
|
-
LoginRoutingModule.ɵfac = function LoginRoutingModule_Factory(t) { return new (t || LoginRoutingModule)(); };
|
|
33
|
-
LoginRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: LoginRoutingModule });
|
|
34
|
-
LoginRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ imports: [_angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterModule.forChild(routes), _angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterModule] });
|
|
35
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](LoginRoutingModule, { imports: [_angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterModule], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterModule] }); })();
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/***/ }),
|
|
39
|
-
|
|
40
|
-
/***/ 8458:
|
|
41
|
-
/*!******************************************!*\
|
|
42
|
-
!*** ./src/app/login/login.component.ts ***!
|
|
43
|
-
\******************************************/
|
|
44
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
45
|
-
|
|
46
|
-
__webpack_require__.r(__webpack_exports__);
|
|
47
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
48
|
-
/* harmony export */ "LoginComponent": () => (/* binding */ LoginComponent)
|
|
49
|
-
/* harmony export */ });
|
|
50
|
-
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
51
|
-
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../services/http.service */ 6858);
|
|
52
|
-
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 124);
|
|
53
|
-
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ 4817);
|
|
54
|
-
/* harmony import */ var _services_checkbrowser_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../services/checkbrowser.service */ 4810);
|
|
55
|
-
/* harmony import */ var _services_token_decode_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/token-decode.service */ 8002);
|
|
56
|
-
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
57
|
-
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const _c0 = ["domainAutoFocus"];
|
|
67
|
-
const _c1 = ["passAutoFocus"];
|
|
68
|
-
function LoginComponent_div_21_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "p");
|
|
70
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Domain is required ");
|
|
71
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
72
|
-
} }
|
|
73
|
-
function LoginComponent_div_21_p_2_Template(rf, ctx) { if (rf & 1) {
|
|
74
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "p");
|
|
75
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Please enter a valid dealpos domain ");
|
|
76
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
77
|
-
} }
|
|
78
|
-
function LoginComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
79
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 38);
|
|
80
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, LoginComponent_div_21_p_1_Template, 2, 0, "p", 39);
|
|
81
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, LoginComponent_div_21_p_2_Template, 2, 0, "p", 39);
|
|
82
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
83
|
-
} if (rf & 2) {
|
|
84
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
|
|
85
|
-
const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](18);
|
|
86
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
|
87
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _r1.errors.required);
|
|
88
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
|
89
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _r1.errors.pattern);
|
|
90
|
-
} }
|
|
91
|
-
function LoginComponent_div_27_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "p");
|
|
93
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Username is required ");
|
|
94
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
95
|
-
} }
|
|
96
|
-
function LoginComponent_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
97
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 38);
|
|
98
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, LoginComponent_div_27_p_1_Template, 2, 0, "p", 39);
|
|
99
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
100
|
-
} if (rf & 2) {
|
|
101
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
|
|
102
|
-
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](24);
|
|
103
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
|
104
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _r3.errors.required);
|
|
105
|
-
} }
|
|
106
|
-
const _c2 = function (a0, a1) { return { "fa-eye": a0, "fa-eye-slash": a1 }; };
|
|
107
|
-
function LoginComponent_i_34_Template(rf, ctx) { if (rf & 1) {
|
|
108
|
-
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
|
|
109
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "i", 40);
|
|
110
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function LoginComponent_i_34_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r13.hideShowPassword()); });
|
|
111
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
112
|
-
} if (rf & 2) {
|
|
113
|
-
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
|
|
114
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction2"](1, _c2, ctx_r7.passwordIcon == "eye-off", ctx_r7.passwordIcon == "eye"));
|
|
115
|
-
} }
|
|
116
|
-
function LoginComponent_div_35_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
117
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "p");
|
|
118
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, " Password is required ");
|
|
119
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
120
|
-
} }
|
|
121
|
-
function LoginComponent_div_35_Template(rf, ctx) { if (rf & 1) {
|
|
122
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 38);
|
|
123
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, LoginComponent_div_35_p_1_Template, 2, 0, "p", 39);
|
|
124
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
125
|
-
} if (rf & 2) {
|
|
126
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
|
|
127
|
-
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](31);
|
|
128
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
|
129
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _r6.errors.required);
|
|
130
|
-
} }
|
|
131
|
-
function LoginComponent_a_38_Template(rf, ctx) { if (rf & 1) {
|
|
132
|
-
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
|
|
133
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "a", 41);
|
|
134
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function LoginComponent_a_38_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r17); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r16.redirectForgetPass()); });
|
|
135
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1, "Forgot Password?");
|
|
136
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
137
|
-
} }
|
|
138
|
-
class LoginComponent {
|
|
139
|
-
constructor(http, _router, elementRef, toastr, checkBrowser, konversi) {
|
|
140
|
-
this.http = http;
|
|
141
|
-
this._router = _router;
|
|
142
|
-
this.elementRef = elementRef;
|
|
143
|
-
this.toastr = toastr;
|
|
144
|
-
this.checkBrowser = checkBrowser;
|
|
145
|
-
this.konversi = konversi;
|
|
146
|
-
this.login = {
|
|
147
|
-
Host: '',
|
|
148
|
-
Username: '',
|
|
149
|
-
Password: ''
|
|
150
|
-
};
|
|
151
|
-
//For eye toggle icon : https://stackoverflow.com/questions/46815831/how-to-create-login-in-ionic-2-with-show-hide-password
|
|
152
|
-
this.passwordType = 'password';
|
|
153
|
-
this.passwordIcon = 'eye-off';
|
|
154
|
-
this.getCookies();
|
|
155
|
-
var data = JSON.parse(window.localStorage.getItem('user'));
|
|
156
|
-
let now = new Date();
|
|
157
|
-
if (data != null) {
|
|
158
|
-
if (data.expiredAt != undefined) {
|
|
159
|
-
window.localStorage.removeItem("user");
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
let expired = new Date(data.Token.expiredAt);
|
|
163
|
-
if (expired > now) {
|
|
164
|
-
this._router.navigate(['menu']);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
ngOnInit() {
|
|
170
|
-
//change background color to light blue
|
|
171
|
-
this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor = '#dfeffc';
|
|
172
|
-
this.browser = this.checkBrowser.getBrowserName();
|
|
173
|
-
}
|
|
174
|
-
ngOnDestroy() {
|
|
175
|
-
//Called once, before the instance is destroyed.
|
|
176
|
-
//Add 'implements OnDestroy' to the class.
|
|
177
|
-
this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor = 'white';
|
|
178
|
-
}
|
|
179
|
-
getCookies() {
|
|
180
|
-
let Authorization = localStorage.getItem("Authorization");
|
|
181
|
-
if (Authorization != null) {
|
|
182
|
-
let model = JSON.parse(Authorization);
|
|
183
|
-
this.login.Host = model.Host;
|
|
184
|
-
this.login.Username = model.Username;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
setAutoFocusDomain() {
|
|
188
|
-
this.domainElementRef.nativeElement.focus();
|
|
189
|
-
}
|
|
190
|
-
setAutoFocusPass() {
|
|
191
|
-
this.passElementRef.nativeElement.focus();
|
|
192
|
-
}
|
|
193
|
-
DoLogin() {
|
|
194
|
-
//Implement redirect to /menu
|
|
195
|
-
this.http.post('/api/token/Login', this.login).subscribe(result => {
|
|
196
|
-
if (result.Token.access_token != null) {
|
|
197
|
-
window.localStorage.removeItem("user");
|
|
198
|
-
window.localStorage.setItem('user', JSON.stringify(result));
|
|
199
|
-
let msg = "This user is lack of these following roles :";
|
|
200
|
-
let SellCreateRole = true;
|
|
201
|
-
let SellEditorRole = true;
|
|
202
|
-
let deliveryRole = true;
|
|
203
|
-
let paymentRole = true;
|
|
204
|
-
let m = this.konversi.GetNamePOS();
|
|
205
|
-
if (m.Sell != "True") {
|
|
206
|
-
SellCreateRole = false;
|
|
207
|
-
msg = `${msg} <br/> Sell Create`;
|
|
208
|
-
}
|
|
209
|
-
if (m.SellEditor != "True") {
|
|
210
|
-
SellEditorRole = false;
|
|
211
|
-
msg = `${msg} <br/> Sell Editor`;
|
|
212
|
-
}
|
|
213
|
-
if (m.DelC != "True") {
|
|
214
|
-
deliveryRole = false;
|
|
215
|
-
msg = `${msg} <br/> Delivery Create`;
|
|
216
|
-
}
|
|
217
|
-
if (m.PayC != "True") {
|
|
218
|
-
paymentRole = false;
|
|
219
|
-
msg = `${msg} <br/> Payment Create`;
|
|
220
|
-
}
|
|
221
|
-
if (!SellCreateRole || !SellEditorRole || !deliveryRole || !paymentRole) {
|
|
222
|
-
this.toastr.warning(msg, "Warning!", { enableHtml: true });
|
|
223
|
-
}
|
|
224
|
-
window.localStorage.removeItem("Intercom");
|
|
225
|
-
window.localStorage.setItem('Intercom', JSON.stringify(result.IntercomWidget));
|
|
226
|
-
window.localStorage.removeItem("Authorization");
|
|
227
|
-
let temp = {
|
|
228
|
-
Host: this.login.Host,
|
|
229
|
-
Username: this.login.Username
|
|
230
|
-
};
|
|
231
|
-
window.localStorage.setItem('Authorization', JSON.stringify(temp));
|
|
232
|
-
if (result.Channel.length < 1) {
|
|
233
|
-
this._router.navigate(['menu/channel']);
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
this._router.navigate(['menu']);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
redirectForgetPass() {
|
|
242
|
-
window.open(this.makeForgotPassLink(), "_blank");
|
|
243
|
-
}
|
|
244
|
-
makeForgotPassLink() {
|
|
245
|
-
var link = this.login.Host;
|
|
246
|
-
if (link[(link.length - 1)] == '/') {
|
|
247
|
-
link = link.slice(0, -1);
|
|
248
|
-
}
|
|
249
|
-
if (!link.includes('https://')) {
|
|
250
|
-
link = 'https://' + link;
|
|
251
|
-
}
|
|
252
|
-
return link + "/ForgotPassword";
|
|
253
|
-
}
|
|
254
|
-
//Function: hideShowPassword() will toggle the password visibility with the eye icon
|
|
255
|
-
hideShowPassword() {
|
|
256
|
-
this.passwordType = this.passwordType === 'text' ? 'password' : 'text';
|
|
257
|
-
this.passwordIcon = this.passwordIcon === 'eye-off' ? 'eye' : 'eye-off';
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.Router), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__.ElementRef), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_checkbrowser_service__WEBPACK_IMPORTED_MODULE_1__.CheckbrowserService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_token_decode_service__WEBPACK_IMPORTED_MODULE_2__.TokenDecodeService)); };
|
|
261
|
-
LoginComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: LoginComponent, selectors: [["app-login"]], viewQuery: function LoginComponent_Query(rf, ctx) { if (rf & 1) {
|
|
262
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c0, 5);
|
|
263
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c1, 5);
|
|
264
|
-
} if (rf & 2) {
|
|
265
|
-
let _t;
|
|
266
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.domainElementRef = _t.first);
|
|
267
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.passElementRef = _t.first);
|
|
268
|
-
} }, decls: 60, vars: 9, consts: [[1, "container"], [1, "row", "mt-md-0", "align-self-center"], [1, "col-12", "col-md-7", "text-center"], [1, "big-display", "robotoslab", "d-none", "d-sm-block"], ["src", "https://res.cloudinary.com/pos/image/upload/v1657855612/Apps/Login/Omnichannel.png", "alt", "integration-image", 1, "img-fluid"], [1, "col-12", "col-md-5", "order-first", "order-md-last", "mt-12"], [1, "big-display", "text-center", "my-5", "py-5", "robotoslab", "d-block", "d-sm-none"], [1, "card"], [1, "card-body"], [1, "card-title"], [1, "ms-2", "fw-normal", "font-xl", "robotoslab"], [1, "mt-10"], [1, "form-label-group"], ["type", "text", "required", "", "name", "Host", "id", "inputHost", "placeholder", "POS Domain (xyz.dealpos.com)", "pattern", "(https:\\/\\/)?\\w+.dealpos(.com|.net|.co.id)(\\/)?", 1, "form-control", "text-start", 3, "ngModel", "ngModelChange"], ["domainAutoFocus", "", "domain", "ngModel"], ["for", "inputHost", 1, "text-start"], ["class", "text-danger", 4, "ngIf"], ["type", "text", "name", "Username", "id", "inputUsername", "placeholder", "Username", "required", "", 1, "form-control", "text-start", 3, "ngModel", "ngModelChange"], ["username", "ngModel"], ["for", "inputUsername", 1, "text-start"], [1, "form-label-group", "mb-5", "mb-sm-2"], ["name", "Password", "id", "inputPassword", "placeholder", "Password", "required", "", 1, "form-control", "text-start", 3, "type", "ngModel", "ngModelChange"], ["passAutoFocus", "", "password", "ngModel"], ["for", "inputPassword", 1, "text-start"], ["class", "passwordIcon fas fa-lg", 3, "ngClass", "click", 4, "ngIf"], [1, "row", "justify-content-between", "align-items-center"], [1, "col-12", "col-lg-auto", "order-first", "order-lg-last"], ["href", "", 3, "click", 4, "ngIf"], [1, "col-12", "col-lg-5", "order-last", "order-lg-last", "text-end"], ["data-cy", "login", "type", "submit", 1, "btn", "btn-lg", "btn-primary", "btn-block", "font125rem", "robotoslab", "w-100", 3, "click"], [1, "col-12", "d-block", "d-md-none", "text-center"], [1, "pt-1rem", "me-3"], ["target", "_blank", "href", "https://www.dealpos.com"], ["src", "https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png", "alt", "dealpos-logo", 1, "img-fluid"], ["target", "_blank", "href", "https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete", 1, "pt-1rem", "font-italic"], [1, "mx-5", "pb-5", "mb-5", "d-none", "d-md-block"], [1, "col-auto", "d-inline-flex"], [1, "col-auto"], [1, "text-danger"], [4, "ngIf"], [1, "passwordIcon", "fas", "fa-lg", 3, "ngClass", "click"], ["href", "", 3, "click"]], template: function LoginComponent_Template(rf, ctx) { if (rf & 1) {
|
|
269
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h1", 3);
|
|
270
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "DealPOS Omnichannel");
|
|
271
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
272
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "img", 4);
|
|
273
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
274
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "div", 5)(7, "h1", 6);
|
|
275
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8, "DealPOS X Marketplace");
|
|
276
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
277
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "div", 7)(10, "div", 8)(11, "div", 9)(12, "h2", 10);
|
|
278
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Sign in");
|
|
279
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
|
|
280
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "form", 11)(15, "div", 12)(16, "input", 13, 14);
|
|
281
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_16_listener($event) { return ctx.login.Host = $event; });
|
|
282
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
283
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "label", 15);
|
|
284
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](20, "POS Domain (xyz.dealpos.com)");
|
|
285
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
|
|
286
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](21, LoginComponent_div_21_Template, 3, 2, "div", 16);
|
|
287
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](22, "div", 12)(23, "input", 17, 18);
|
|
288
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_23_listener($event) { return ctx.login.Username = $event; });
|
|
289
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
290
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "label", 19);
|
|
291
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26, "Username");
|
|
292
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
|
|
293
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](27, LoginComponent_div_27_Template, 2, 1, "div", 16);
|
|
294
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](28, "div", 20)(29, "input", 21, 22);
|
|
295
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_29_listener($event) { return ctx.login.Password = $event; });
|
|
296
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
297
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](32, "label", 23);
|
|
298
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](33, "Password");
|
|
299
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
300
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](34, LoginComponent_i_34_Template, 1, 4, "i", 24);
|
|
301
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
302
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](35, LoginComponent_div_35_Template, 2, 1, "div", 16);
|
|
303
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](36, "div", 25)(37, "div", 26);
|
|
304
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](38, LoginComponent_a_38_Template, 2, 0, "a", 27);
|
|
305
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
306
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](39, "div", 28)(40, "button", 29);
|
|
307
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function LoginComponent_Template_button_click_40_listener() { return ctx.DoLogin(); });
|
|
308
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](41, "Log in");
|
|
309
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
|
|
310
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](42, "div", 30)(43, "p", 31);
|
|
311
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](44, "Powered by : ");
|
|
312
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
313
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](45, "a", 32);
|
|
314
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](46, "img", 33);
|
|
315
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
316
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](47, "br");
|
|
317
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](48, "a", 34);
|
|
318
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](49, "Version 2.2.8");
|
|
319
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
|
|
320
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](50, "footer", 35)(51, "div", 25)(52, "div", 36)(53, "p", 31);
|
|
321
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](54, "Powered by : ");
|
|
322
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
|
|
323
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](55, "a", 32);
|
|
324
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](56, "img", 33);
|
|
325
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
|
|
326
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](57, "div", 37)(58, "a", 34);
|
|
327
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](59, "Version 2.2.8");
|
|
328
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
|
|
329
|
-
} if (rf & 2) {
|
|
330
|
-
const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](18);
|
|
331
|
-
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](24);
|
|
332
|
-
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵreference"](31);
|
|
333
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](16);
|
|
334
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.login.Host);
|
|
335
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
|
|
336
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _r1.invalid && (_r1.dirty || _r1.touched));
|
|
337
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
|
|
338
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.login.Username);
|
|
339
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
|
|
340
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _r3.invalid && (_r3.dirty || _r3.touched));
|
|
341
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
|
|
342
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("type", ctx.passwordType)("ngModel", ctx.login.Password);
|
|
343
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](5);
|
|
344
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.login.Password != "" && ctx.browser != "edge");
|
|
345
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
|
|
346
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _r6.invalid && (_r6.dirty || _r6.touched));
|
|
347
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
|
|
348
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", _r1.valid);
|
|
349
|
-
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵNgNoValidate"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatusGroup, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.RequiredValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.PatternValidator, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgModel, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgForm], styles: [".container[_ngcontent-%COMP%] {\n position: absolute;\n max-width: 100%;\n}\n\n.card[_ngcontent-%COMP%] {\n margin-bottom: 30px;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n\n.passwordIcon[_ngcontent-%COMP%] {\n top: 1.5rem;\n right: 0.5rem;\n position: absolute;\n margin: 0 auto !important;\n cursor: pointer;\n}\n\n.big-display[_ngcontent-%COMP%] {\n font-size: 2rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\n@media (min-width: 768px) {\n .container[_ngcontent-%COMP%] {\n max-width: 70%;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n }\n\n .big-display[_ngcontent-%COMP%] {\n font-size: 3rem;\n }\n}\n\nhtml[_ngcontent-%COMP%], body[_ngcontent-%COMP%] {\n height: 100%;\n}\n\nbody[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding-top: 40px;\n padding-bottom: 40px;\n}\n\nfooter[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 0;\n width: 90%;\n left: 3rem;\n}\n\n.pt-1rem[_ngcontent-%COMP%] {\n padding-top: 1rem;\n}\n\n.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%] {\n color: #666666;\n}\n\n.font-xl[_ngcontent-%COMP%] {\n font-size: x-large;\n}\n\n.font125rem[_ngcontent-%COMP%] {\n font-size: 1.25rem;\n}\n\n.robotoslab[_ngcontent-%COMP%] {\n font-family: \"Roboto Slab\";\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxvZ2luLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0Usa0JBQUE7RUFDQS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OiAwO1xyXG4gIHdpZHRoOiA5MCU7XHJcbiAgbGVmdDogM3JlbTtcclxuIH1cclxuXHJcbiAucHQtMXJlbSB7XHJcbiAgIHBhZGRpbmctdG9wOiAxcmVtO1xyXG4gfVxyXG5cclxuIC5mb3JtLWxhYmVsLWdyb3VwID4gbGFiZWwgeyBcclxuICBjb2xvcjojNjY2NjY2IDtcclxufVxyXG5cclxuLmZvbnQteGwge1xyXG4gIGZvbnQtc2l6ZTogeC1sYXJnZTtcclxufVxyXG5cclxuLmZvbnQxMjVyZW0ge1xyXG4gIGZvbnQtc2l6ZTogMS4yNXJlbTtcclxufVxyXG5cclxuLnJvYm90b3NsYWIge1xyXG4gIGZvbnQtZmFtaWx5OiAnUm9ib3RvIFNsYWInO1xyXG59XHJcblxyXG4iXX0= */"] });
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
/***/ }),
|
|
353
|
-
|
|
354
|
-
/***/ 107:
|
|
355
|
-
/*!***************************************!*\
|
|
356
|
-
!*** ./src/app/login/login.module.ts ***!
|
|
357
|
-
\***************************************/
|
|
358
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
359
|
-
|
|
360
|
-
__webpack_require__.r(__webpack_exports__);
|
|
361
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
362
|
-
/* harmony export */ "LoginModule": () => (/* binding */ LoginModule)
|
|
363
|
-
/* harmony export */ });
|
|
364
|
-
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
365
|
-
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
366
|
-
/* harmony import */ var _login_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./login-routing.module */ 5393);
|
|
367
|
-
/* harmony import */ var _login_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./login.component */ 8458);
|
|
368
|
-
/* harmony import */ var _shopee_authorized_shopee_authorized_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shopee-authorized/shopee-authorized.component */ 1136);
|
|
369
|
-
/* harmony import */ var _tiktok_tiktok_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tiktok/tiktok.component */ 3904);
|
|
370
|
-
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
class LoginModule {
|
|
379
|
-
}
|
|
380
|
-
LoginModule.ɵfac = function LoginModule_Factory(t) { return new (t || LoginModule)(); };
|
|
381
|
-
LoginModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({ type: LoginModule });
|
|
382
|
-
LoginModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.CommonModule,
|
|
383
|
-
_angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormsModule,
|
|
384
|
-
_login_routing_module__WEBPACK_IMPORTED_MODULE_0__.LoginRoutingModule] });
|
|
385
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](LoginModule, { declarations: [_login_component__WEBPACK_IMPORTED_MODULE_1__.LoginComponent, _shopee_authorized_shopee_authorized_component__WEBPACK_IMPORTED_MODULE_2__.ShopeeAuthorizedComponent, _tiktok_tiktok_component__WEBPACK_IMPORTED_MODULE_3__.TiktokComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.CommonModule,
|
|
386
|
-
_angular_forms__WEBPACK_IMPORTED_MODULE_6__.FormsModule,
|
|
387
|
-
_login_routing_module__WEBPACK_IMPORTED_MODULE_0__.LoginRoutingModule] }); })();
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
/***/ }),
|
|
391
|
-
|
|
392
|
-
/***/ 1136:
|
|
393
|
-
/*!************************************************************************!*\
|
|
394
|
-
!*** ./src/app/login/shopee-authorized/shopee-authorized.component.ts ***!
|
|
395
|
-
\************************************************************************/
|
|
396
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
397
|
-
|
|
398
|
-
__webpack_require__.r(__webpack_exports__);
|
|
399
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
400
|
-
/* harmony export */ "ShopeeAuthorizedComponent": () => (/* binding */ ShopeeAuthorizedComponent)
|
|
401
|
-
/* harmony export */ });
|
|
402
|
-
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
403
|
-
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
|
|
404
|
-
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../services/http.service */ 6858);
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
class ShopeeAuthorizedComponent {
|
|
409
|
-
constructor(route, http, service) {
|
|
410
|
-
this.route = route;
|
|
411
|
-
this.http = http;
|
|
412
|
-
this.service = service;
|
|
413
|
-
}
|
|
414
|
-
ngOnInit() {
|
|
415
|
-
this.route.queryParams.subscribe(params => {
|
|
416
|
-
this.shopID = params['shop_id'],
|
|
417
|
-
this.code = params['code'];
|
|
418
|
-
});
|
|
419
|
-
}
|
|
420
|
-
addShopee() {
|
|
421
|
-
let form = {
|
|
422
|
-
ShopID: Number(this.shopID),
|
|
423
|
-
Code: this.code
|
|
424
|
-
};
|
|
425
|
-
const Api = '/api/ChannelAdd/ShopeeV2';
|
|
426
|
-
this.http.post(Api, form).subscribe(result => {
|
|
427
|
-
this.service.navigate(["/menu/channel"]);
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
ShopeeAuthorizedComponent.ɵfac = function ShopeeAuthorizedComponent_Factory(t) { return new (t || ShopeeAuthorizedComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.Router)); };
|
|
432
|
-
ShopeeAuthorizedComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ShopeeAuthorizedComponent, selectors: [["shopee-authorized"]], decls: 20, vars: 1, consts: [[1, "container"], [1, "row", "d-flex", "justify-content-center"], [1, "col-md-4"], [1, "card"], [1, "card-header", "text-center"], [1, "far", "fa-check-circle", "text-success", 2, "font-size", "115px"], [1, "h3", "fw-bold"], [1, "card-body", "text-center"], [1, "text-shopee", "fw-bold"], ["type", "button", 1, "btn", "btn-success", "mt-5", 3, "click"], [1, "fas", "fa-undo"]], template: function ShopeeAuthorizedComponent_Template(rf, ctx) { if (rf & 1) {
|
|
433
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4);
|
|
434
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "i", 5);
|
|
435
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 6);
|
|
436
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Success !");
|
|
437
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
|
438
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 7)(9, "div");
|
|
439
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "You have successfully authorized ");
|
|
440
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
|
441
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div");
|
|
442
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "DEALPOS to manage your Shopee");
|
|
443
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
|
444
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div");
|
|
445
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " Your shopID is ");
|
|
446
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "span", 8);
|
|
447
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16);
|
|
448
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
|
449
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "button", 9);
|
|
450
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShopeeAuthorizedComponent_Template_button_click_17_listener() { return ctx.addShopee(); });
|
|
451
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "i", 10);
|
|
452
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, " Add to my Channel");
|
|
453
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()();
|
|
454
|
-
} if (rf & 2) {
|
|
455
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
|
|
456
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.shopID);
|
|
457
|
-
} }, styles: [".container[_ngcontent-%COMP%] {\n position: absolute;\n max-width: 100%;\n}\n\n.card[_ngcontent-%COMP%] {\n margin-bottom: 30px;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n\n.passwordIcon[_ngcontent-%COMP%] {\n top: 1.5rem;\n right: 0.5rem;\n position: absolute;\n margin: 0 auto !important;\n cursor: pointer;\n}\n\n.big-display[_ngcontent-%COMP%] {\n font-size: 2rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\n@media (min-width: 768px) {\n .container[_ngcontent-%COMP%] {\n max-width: 70%;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n }\n\n .big-display[_ngcontent-%COMP%] {\n font-size: 3rem;\n }\n}\n\nhtml[_ngcontent-%COMP%], body[_ngcontent-%COMP%] {\n height: 100%;\n}\n\nbody[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding-top: 40px;\n padding-bottom: 40px;\n}\n\nfooter[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 0;\n width: 90%;\n left: 3rem;\n}\n\n.pt-1rem[_ngcontent-%COMP%] {\n padding-top: 1rem;\n}\n\n.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%] {\n color: #666666;\n}\n\n.font-xl[_ngcontent-%COMP%] {\n font-size: x-large;\n}\n\n.font125rem[_ngcontent-%COMP%] {\n font-size: 1.25rem;\n}\n\n.robotoslab[_ngcontent-%COMP%] {\n font-family: \"Roboto Slab\";\n}\n\n.form-signin[_ngcontent-%COMP%] {\n max-width: 600px;\n}\n\n.card[_ngcontent-%COMP%] {\n font: 100 14px/25px Roboto, \"Helvetica Neue\", sans-serif;\n border-radius: 13px;\n box-sizing: border-box;\n}\n\n.text-shopee[_ngcontent-%COMP%] {\n color: #f53d2d;\n}\n/*# sourceM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i50ZXh0LXNob3BlZXtcclxuICAgIGNvbG9yOiAjZjUzZDJkO1xyXG59Il19 */"] });
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
/***/ }),
|
|
461
|
-
|
|
462
|
-
/***/ 3904:
|
|
463
|
-
/*!**************************************************!*\
|
|
464
|
-
!*** ./src/app/login/tiktok/tiktok.component.ts ***!
|
|
465
|
-
\**************************************************/
|
|
466
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
467
|
-
|
|
468
|
-
__webpack_require__.r(__webpack_exports__);
|
|
469
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
470
|
-
/* harmony export */ "TiktokComponent": () => (/* binding */ TiktokComponent)
|
|
471
|
-
/* harmony export */ });
|
|
472
|
-
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
473
|
-
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
|
|
474
|
-
/* harmony import */ var src_app_services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/services/http.service */ 6858);
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
class TiktokComponent {
|
|
479
|
-
constructor(route, http, service) {
|
|
480
|
-
this.route = route;
|
|
481
|
-
this.http = http;
|
|
482
|
-
this.service = service;
|
|
483
|
-
}
|
|
484
|
-
ngOnInit() {
|
|
485
|
-
this.route.queryParams.subscribe(params => {
|
|
486
|
-
this.code = params['code'],
|
|
487
|
-
this.state = params['state'];
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
addChannelTiktok() {
|
|
491
|
-
let form = {
|
|
492
|
-
Code: this.code
|
|
493
|
-
};
|
|
494
|
-
this.http.post('/api/ChannelAdd/AddTiktok', form).subscribe(result => {
|
|
495
|
-
this.service.navigate(["/menu/channel"]);
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
TiktokComponent.ɵfac = function TiktokComponent_Factory(t) { return new (t || TiktokComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__.Router)); };
|
|
500
|
-
TiktokComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: TiktokComponent, selectors: [["app-tiktok"]], decls: 24, vars: 2, consts: [[1, "container"], [1, "row", "d-flex", "justify-content-center"], [1, "col-md-4"], [1, "card"], [1, "card-header", "text-center"], [1, "far", "fa-check-circle", "text-success", 2, "font-size", "115px"], [1, "h3", "fw-bold"], [1, "card-body", "text-center"], [1, "text-shopee", "fw-bold"], ["type", "button", 1, "btn", "btn-success", "mt-5", 3, "click"], [1, "fas", "fa-undo"]], template: function TiktokComponent_Template(rf, ctx) { if (rf & 1) {
|
|
501
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4);
|
|
502
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "i", 5);
|
|
503
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 6);
|
|
504
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Success !");
|
|
505
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
|
506
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 7)(9, "div");
|
|
507
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "You have successfully authorized ");
|
|
508
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
|
509
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div");
|
|
510
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "DEALPOS to manage your Tiktok");
|
|
511
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
|
512
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div");
|
|
513
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " Your Code is ");
|
|
514
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "span", 8);
|
|
515
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16);
|
|
516
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
|
517
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div");
|
|
518
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, " Your State is ");
|
|
519
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "span", 8);
|
|
520
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20);
|
|
521
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
|
522
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "button", 9);
|
|
523
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function TiktokComponent_Template_button_click_21_listener() { return ctx.addChannelTiktok(); });
|
|
524
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](22, "i", 10);
|
|
525
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, " Add to my Channel");
|
|
526
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()()()()();
|
|
527
|
-
} if (rf & 2) {
|
|
528
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
|
|
529
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.code);
|
|
530
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
|
|
531
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.state);
|
|
532
|
-
} }, styles: [".container[_ngcontent-%COMP%] {\n position: absolute;\n max-width: 100%;\n}\n\n.card[_ngcontent-%COMP%] {\n margin-bottom: 30px;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n\n.passwordIcon[_ngcontent-%COMP%] {\n top: 1.5rem;\n right: 0.5rem;\n position: absolute;\n margin: 0 auto !important;\n cursor: pointer;\n}\n\n.big-display[_ngcontent-%COMP%] {\n font-size: 2rem;\n font-weight: 300;\n line-height: 1.2;\n}\n\n@media (min-width: 768px) {\n .container[_ngcontent-%COMP%] {\n max-width: 70%;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n }\n\n .big-display[_ngcontent-%COMP%] {\n font-size: 3rem;\n }\n}\n\nhtml[_ngcontent-%COMP%], body[_ngcontent-%COMP%] {\n height: 100%;\n}\n\nbody[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding-top: 40px;\n padding-bottom: 40px;\n}\n\nfooter[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 0;\n width: 90%;\n left: 3rem;\n}\n\n.pt-1rem[_ngcontent-%COMP%] {\n padding-top: 1rem;\n}\n\n.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%] {\n color: #666666;\n}\n\n.font-xl[_ngcontent-%COMP%] {\n font-size: x-large;\n}\n\n.font125rem[_ngcontent-%COMP%] {\n font-size: 1.25rem;\n}\n\n.robotoslab[_ngcontent-%COMP%] {\n font-family: \"Roboto Slab\";\n}\n\n.form-signin[_ngcontent-%COMP%] {\n max-width: 600px;\n}\n\n.card[_ngcontent-%COMP%] {\n font: 100 14px/25px Roboto, \"Helvetica Neue\", sans-serif;\n border-radius: 13px;\n box-sizing: border-box;\n}\n\n.text-shopee[_ngcontent-%COMP%] {\n color: #f53d2d;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uXFxsb2dpbi5jb21wb25lbnQuc2NzcyIsInRpa3Rvay5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGtCQUFBO0VBQ0EsZUFBQTtBQ0NGOztBREVBO0VBQ0UsbUJBQUE7RUFDQSxtQkFBQTtFQUNBLGdCQUFBO0FDQ0Y7O0FERUE7RUFDRSxXQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0VBQ0EseUJBQUE7RUFDQSxlQUFBO0FDQ0Y7O0FERUE7RUFDRSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxnQkFBQTtBQ0NGOztBREdBO0VBQ0U7SUFDRSxjQUFBO0lBQ0EsUUFBQTtJQUNBLFNBQUE7SUFHQSw0Q0FBQTtFQ0FGOztFREdBO0lBQ0UsZUFBQTtFQ0FGO0FBQ0Y7O0FESUE7O0VBRUUsWUFBQTtBQ0ZGOztBREtBO0VBRUUsYUFBQTtFQUVBLG1CQUFBO0VBQ0EsaUJBQUE7RUFDQSxvQkFBQTtBQ0ZGOztBRE9BO0VBQ0Usa0JBQUE7RUFDQSxTQUFBO0VBQ0EsVUFBQTtFQUNBLFVBQUE7QUNKRjs7QURPQztFQUNFLGlCQUFBO0FDSkg7O0FET0M7RUFDQyxjQUFBO0FDSkY7O0FET0E7RUFDRSxr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zc1wiO1xyXG5cclxuLmZvcm0tc2lnbmluIHtcclxuICAgIG1heC13aWR0aDogNjAwcHg7XHJcbn1cclxuXHJcbi5jYXJkXHJcbntcclxuICAgIGZvbnQ6IDEwMCAxNHB4LzI1cHggUm9ib3RvLCBcIkhlbHZldGljYSBOZXVlXCIsIHNhbnMtc2VyaWY7XHJcbiAgICBib3JkZXItcmFkaXVzOiAxM3B4O1xyXG4gICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcclxufVxyXG5cclxuLnRleHQtc2hvcGVle1xyXG4gICAgY29sb3I6ICNmNTNkMmQ7XHJcbn0iXX0= */"] });
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
/***/ })
|
|
536
|
-
|
|
537
|
-
}]);
|
|
538
|
-
//# sourceMappingURL=src_app_login_login_module_ts.js.map
|