This commit is contained in:
Zuhdan Ubay 2020-06-04 12:55:38 +07:00
commit 135a2f9fd2
209 changed files with 2091 additions and 851121 deletions

View file

@ -1,82 +1,277 @@
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<div class="form-group">
<label class="label">Client</label>
<input nbInput fullWidth [(ngModel)]="data.customerCode" disabled>
</div>
<div class="form-group"> <div class="form-group">
<label class="label">Partner Code</label> <label class="label">Partner Code</label>
<input nbInput fullWidth [(ngModel)]="data.customerCode" disabled> <input nbInput fullWidth [(ngModel)]="data.customerCode" disabled>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="label">Partner Name</label> <label class="label">SA No</label>
<input nbInput fullWidth [(ngModel)]="data.customerFullname"> <input nbInput fullWidth [(ngModel)]="data.saNo" disabled>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="label">Partner Short Name </label> <label class="label">Request Type</label>
<input nbInput fullWidth [(ngModel)]="data.customerShortname">
</div>
<div class="form-group">
<label class="label">Start Time</label>
<input nbInput
placeholder="Select Date"
[nbDatepicker]="formpickerstart"
[(ngModel)]="data.startTime">
<nb-datepicker #formpickerstart></nb-datepicker>
</div>
<div class="form-group">
<label class="label">End Time</label>
<input nbInput
placeholder="Select Date"
[nbDatepicker]="formpickerend"
[(ngModel)]="data.endTime">
<nb-datepicker #formpickerend></nb-datepicker>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label class="label">Bill Title</label>
<nb-card-body> <nb-card-body>
<nb-select> <nb-select [(selected)]="data.requestType">
<nb-option value="1">Invoice</nb-option> <nb-option value="1">New</nb-option>
<nb-option value="2">Debit Note</nb-option> <nb-option value="2">Renewal</nb-option>
<nb-option value="3">Surat Perintah Penagihan</nb-option>
</nb-select> </nb-select>
</nb-card-body> </nb-card-body>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="label">Bill Code</label> <label class="label">Partner Type</label>
<input nbInput fullWidth [(ngModel)]="data.billCode"> <nb-card-body>
<nb-select [(selected)]="data.requestType">
<nb-option value="1">B2B</nb-option>
<nb-option value="2">B2C</nb-option>
<nb-option value="3">B2B2C</nb-option>
<nb-option value="4">Platform</nb-option>
</nb-select>
</nb-card-body>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="label">Next Billing Time</label> <label class="label">Partner Bill Code</label>
<input nbInput <input nbInput fullWidth [(ngModel)]="data.partnerBillCode">
placeholder="Select Date"
[nbDatepicker]="formpickernextbilling"
[(ngModel)]="data.nextBillTm">
<nb-datepicker #formpickernextbilling></nb-datepicker>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="label">Tax</label> <label class="label">Item Type</label>
<nb-radio-group [(value)]="data.tax"> <nb-card-body>
<nb-select [(selected)]="data.itemType">
<nb-option value="1">Doc</nb-option>
<nb-option value="2">Electronoc & Gadget</nb-option>
<nb-option value="3">Multiple Categories</nb-option>
<nb-option value="4">Others</nb-option>
</nb-select>
</nb-card-body>
</div>
<div class="form-group">
<label class="label">Item Type Others</label>
<input nbInput fullWidth [(ngModel)]="data.itemTypeOthers">
</div>
<label class="label">Company Information</label>
<div class="form-group">
<label class="label">Company or Personal Name</label>
<input nbInput fullWidth [(ngModel)]="data.compName">
</div>
<div class="form-group">
<label class="label">ID Number</label>
<input nbInput fullWidth [(ngModel)]="data.compIdNumber">
</div>
<div class="form-group">
<label class="label">Industri</label>
<input nbInput fullWidth [(ngModel)]="data.compIndustry">
</div>
<div class="form-group">
<label class="label">Address</label>
<input nbInput fullWidth [(ngModel)]="data.compAddress">
</div>
<div class="form-group">
<label class="label">Phone</label>
<input nbInput fullWidth [(ngModel)]="data.compPhone">
</div>
<div class="form-group">
<label class="label">No HP</label>
<input nbInput fullWidth [(ngModel)]="data.compNoHp">
</div>
<label class="label">Personal Information</label>
<div class="form-group">
<label class="label">Contact Name</label>
<input nbInput fullWidth [(ngModel)]="data.personalName">
</div>
<div class="form-group">
<label class="label">Job Title/Dept</label>
<input nbInput fullWidth [(ngModel)]="data.personalJobTitle">
</div>
<div class="form-group">
<label class="label">SIUP No</label>
<input nbInput fullWidth [(ngModel)]="data.personalSiupNo">
</div>
<div class="form-group">
<label class="label">NPWP No</label>
<input nbInput fullWidth [(ngModel)]="data.personalNpwp">
</div>
<div class="form-group">
<label class="label">Email</label>
<input nbInput fullWidth [(ngModel)]="data.personalEmail">
</div>
<div class="form-group">
<label class="label">Fax No</label>
<input nbInput fullWidth [(ngModel)]="data.personalFaxNo">
</div>
<div class="form-group">
<label class="label">Email Address</label>
<input nbInput fullWidth [(ngModel)]="data.personalAddress">
</div>
<label class="label">CS Information</label>
<div class="form-group">
<label class="label">Company or Personal Name</label>
<input nbInput fullWidth [(ngModel)]="data.csName">
</div>
<div class="form-group">
<label class="label">Address</label>
<textarea rows="5" nbInput fullWidth shape="round" placeholder="Address" [(ngModel)]="data.csAddress"></textarea>
</div>
<div class="form-group">
<label class="label">Contact Name</label>
<input nbInput fullWidth [(ngModel)]="data.csContactName">
</div>
<div class="form-group">
<label class="label">No HP</label>
<input nbInput fullWidth [(ngModel)]="data.csHp">
</div>
<div class="form-group">
<label class="label">Email</label>
<input nbInput fullWidth [(ngModel)]="data.csEmail">
</div>
<label class="label">Finance Information</label>
<div class="form-group">
<label class="label">Company or Personal Name</label>
<input nbInput fullWidth [(ngModel)]="data.financeName">
</div>
<div class="form-group">
<label class="label">Address</label>
<textarea rows="5" nbInput fullWidth shape="round" placeholder="Address" [(ngModel)]="data.financeAddress"></textarea>
</div>
<div class="form-group">
<label class="label">Contact Name</label>
<input nbInput fullWidth [(ngModel)]="data.financeContactName">
</div>
<div class="form-group">
<label class="label">No HP</label>
<input nbInput fullWidth [(ngModel)]="data.financeHp">
</div>
<div class="form-group">
<label class="label">Email</label>
<input nbInput fullWidth [(ngModel)]="data.financeEmail">
</div>
<div class="form-group">
<label class="label">Service Profile</label>
<nb-checkbox>Regular Service</nb-checkbox>
<nb-checkbox [value]="true">NextDay Service</nb-checkbox>
<nb-checkbox>Doc</nb-checkbox>
<nb-checkbox>Project</nb-checkbox>
</div>
<div class="form-group">
<label class="label">Pickup Address</label>
<textarea rows="5" nbInput fullWidth shape="round" placeholder="Pickup Address" [(ngModel)]="data.pickupAddress"></textarea>
</div>
<label class="label">Payment</label>
<div class="form-group">
<label class="label">Surcharge</label>
<nb-checkbox>Insurance</nb-checkbox>
<nb-checkbox [value]="true">Orther</nb-checkbox>
<input nbInput fullWidth [(ngModel)]="data.paymentSurcharge">
</div>
<div class="form-group">
<label class="label">Billing Cycle</label>
<nb-card-body>
<nb-select [(selected)]="data.paymentBillingCycle">
<nb-option value="1">Weekly</nb-option>
<nb-option value="2">Biweekly</nb-option>
<nb-option value="3">Monthly</nb-option>
<nb-option value="4">Every 15th and End of the month</nb-option>
</nb-select>
</nb-card-body>
</div>
<div class="form-group">
<label class="label">Term of Payment</label>
<nb-radio-group [(value)]="data.paymentTermOfPayment">
<nb-radio <nb-radio
[value]="1"> [value]="1">
Exclude 14 Calendar Days
</nb-radio> </nb-radio>
<nb-radio <nb-radio
[value]="2"> [value]="2">
Include Other
</nb-radio> </nb-radio>
</nb-radio-group> <input nbInput fullWidth [(ngModel)]="data.paymentTermOfPayment">
</nb-radio-group>
</div>
<label class="label">Document Requirement</label>
<div class="form-group">
<label class="label">Company</label>
<nb-checkbox>KTP PIC</nb-checkbox>
<nb-checkbox>NPWP & SKT</nb-checkbox>
<nb-checkbox>DOMICILE</nb-checkbox>
<nb-checkbox>SKPD</nb-checkbox>
<nb-checkbox>SIUP/PMA</nb-checkbox>
<nb-checkbox>NIB</nb-checkbox>
<nb-checkbox>SPPKP(for PFT)</nb-checkbox>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="label">VAT</label> <label class="label">Personal</label>
<input> % <nb-checkbox>KTP/KITAS/Passport</nb-checkbox>
<nb-checkbox [value]="true">NPWP</nb-checkbox>
</div>
<label class="label">Sign</label>
<div class="form-group">
<label class="label">Sales Name</label>
<input nbInput fullWidth [(ngModel)]="data.signSalesName">
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="label">Insurance</label> <label class="label">Sales Date</label>
Rp.<input nbInput [(ngModel)]="data.price"> <input nbInput
<input nbInput fullWidth [(ngModel)]="data.percentage">% placeholder="Select Date"
[nbDatepicker]="formpickerstart"
[(ngModel)]="data.signSalesDate">
<nb-datepicker #formpickerstart></nb-datepicker>
</div>
<div class="form-group">
<label class="label">VP Sales Name</label>
<input nbInput fullWidth [(ngModel)]="data.signVpSalesName" disabled>
</div>
<div class="form-group">
<label class="label">VP Sales Date</label>
<input nbInput
placeholder="Select Date"
[nbDatepicker]="formpickerstart"
[(ngModel)]="data.signVpSalesDate">
<nb-datepicker #formpickerstart></nb-datepicker>
</div>
<div class="form-group">
<label class="label">Finance Name</label>
<input nbInput fullWidth [(ngModel)]="data.signFinanceName" disabled>
</div>
<div class="form-group">
<label class="label">Finance Date</label>
<input nbInput
placeholder="Select Date"
[nbDatepicker]="formpickerstart"
[(ngModel)]="data.signFinanceDate">
<nb-datepicker #formpickerstart></nb-datepicker>
</div>
<div class="form-group">
<label class="label">VP Finance Name</label>
<input nbInput fullWidth [(ngModel)]="data.signVpFinanceName" disabled>
</div>
<div class="form-group">
<label class="label">VP Finance Date</label>
<input nbInput
placeholder="Select Date"
[nbDatepicker]="formpickerstart"
[(ngModel)]="data.signVpFinanceDate">
<nb-datepicker #formpickerstart></nb-datepicker>
</div>
<div class="form-group">
<label class="label">Partner Sign Date </label>
<input nbInput
placeholder="Select Date"
[nbDatepicker]="formpickerstart"
[(ngModel)]="data.partnerSignDate">
<nb-datepicker #formpickerstart></nb-datepicker>
</div>
<div class="form-group">
<label class="label">Status</label>
<nb-card-body>
<nb-select [(selected)]="data.status">
<nb-option value="0">Draft</nb-option>
<nb-option value="1">Active</nb-option>
</nb-select>
</nb-card-body>
</div>
<div class="form-group">
<label class="label">ECM </label>
<input nbInput fullWidth [(ngModel)]="data.ecmUrl">
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

Before

Width:  |  Height:  |  Size: 732 KiB

After

Width:  |  Height:  |  Size: 732 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 758 KiB

After

Width:  |  Height:  |  Size: 758 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 738 KiB

After

Width:  |  Height:  |  Size: 738 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 760 KiB

After

Width:  |  Height:  |  Size: 760 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 726 KiB

After

Width:  |  Height:  |  Size: 726 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 750 KiB

After

Width:  |  Height:  |  Size: 750 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 736 KiB

After

Width:  |  Height:  |  Size: 736 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 761 KiB

After

Width:  |  Height:  |  Size: 761 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 716 KiB

After

Width:  |  Height:  |  Size: 716 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 743 KiB

After

Width:  |  Height:  |  Size: 743 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 726 KiB

After

Width:  |  Height:  |  Size: 726 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 756 KiB

After

Width:  |  Height:  |  Size: 756 KiB

Before After
Before After

View file

@ -1,394 +0,0 @@
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["auth-login-module"],{
/***/ "./src/app/@core/data/user.ts":
/*!************************************!*\
!*** ./src/app/@core/data/user.ts ***!
\************************************/
/*! exports provided: User */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "User", function() { return User; });
class User {
}
/***/ }),
/***/ "./src/app/auth/login-routing.module.ts":
/*!**********************************************!*\
!*** ./src/app/auth/login-routing.module.ts ***!
\**********************************************/
/*! exports provided: routes, AuthRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "routes", function() { return routes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthRoutingModule", function() { return AuthRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var _nebular_auth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nebular/auth */ "./node_modules/@nebular/auth/__ivy_ngcc__/fesm2015/index.js");
/* harmony import */ var _login_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./login.component */ "./src/app/auth/login.component.ts");
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
const routes = [
{
path: '',
component: _nebular_auth__WEBPACK_IMPORTED_MODULE_2__["NbAuthComponent"],
children: [
{
path: 'login',
component: _login_component__WEBPACK_IMPORTED_MODULE_3__["LoginComponent"],
},
],
},
];
class AuthRoutingModule {
}
AuthRoutingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: AuthRoutingModule });
AuthRoutingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function AuthRoutingModule_Factory(t) { return new (t || AuthRoutingModule)(); }, imports: [[_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(routes)],
_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](AuthRoutingModule, { imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]] }); })();
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AuthRoutingModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
args: [{
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
}]
}], null, null); })();
/***/ }),
/***/ "./src/app/auth/login.component.ts":
/*!*****************************************!*\
!*** ./src/app/auth/login.component.ts ***!
\*****************************************/
/*! exports provided: LoginComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginComponent", function() { return LoginComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _nebular_auth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nebular/auth */ "./node_modules/@nebular/auth/__ivy_ngcc__/fesm2015/index.js");
/* harmony import */ var _core_data_user__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../@core/data/user */ "./src/app/@core/data/user.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */ var _login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./login.service */ "./src/app/auth/login.service.ts");
/* harmony import */ var _nebular_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @nebular/theme */ "./node_modules/@nebular/theme/__ivy_ngcc__/fesm2015/index.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
function LoginComponent_nb_alert_2_li_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const error_r79 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](error_r79);
} }
function LoginComponent_nb_alert_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "nb-alert", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Oh snap!");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ul", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LoginComponent_nb_alert_2_li_5_Template, 2, 1, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r72.errors);
} }
function LoginComponent_nb_alert_3_li_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const message_r81 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](message_r81);
} }
function LoginComponent_nb_alert_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "nb-alert", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Hooray!");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ul", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LoginComponent_nb_alert_3_li_5_Template, 2, 1, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r73.messages);
} }
function LoginComponent_ng_container_9_p_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " NIK is required! ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LoginComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LoginComponent_ng_container_9_p_1_Template, 2, 0, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const _r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", _r74.errors == null ? null : _r74.errors.required);
} }
function LoginComponent_ng_container_15_p_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Password is required! ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LoginComponent_ng_container_15_p_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r84 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" Password should contains from ", ctx_r84.getConfigValue("forms.validation.password.minLength"), " to ", ctx_r84.getConfigValue("forms.validation.password.maxLength"), " characters ");
} }
function LoginComponent_ng_container_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LoginComponent_ng_container_15_p_1_Template, 2, 0, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, LoginComponent_ng_container_15_p_2_Template, 2, 2, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const _r76 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", _r76.errors == null ? null : _r76.errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (_r76.errors == null ? null : _r76.errors.minlength) || (_r76.errors == null ? null : _r76.errors.maxlength));
} }
class LoginComponent extends _nebular_auth__WEBPACK_IMPORTED_MODULE_1__["NbLoginComponent"] {
constructor(toastrService, authService, service, options, cd, routes) {
super(service, options, cd, routes);
this.toastrService = toastrService;
this.authService = authService;
this.index = 1;
this.destroyByClick = true;
this.duration = 2000;
this.hasIcon = true;
this.position = _nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbGlobalPhysicalPosition"].TOP_RIGHT;
this.preventDuplicates = false;
this.status = 'primary';
this.title = 'Login Symfonia';
this.content = `Anda tidak mempunyai akses ke Symfonia`;
this.avail = false;
}
onLogin() {
this.authService.login(this.user).subscribe((res) => {
if (res.username != null) {
for (var i = 0; i < res.value.length; i++) {
if (res.value[i].resourcealias == "IDM.Symfonia") {
this.avail = true;
}
}
if (this.avail) {
this.router.navigate(['/pages/partner-price']);
}
else if (res.value.length == 0) {
this.makeToast(this.content);
}
}
else {
this.makeToast("User tidak di temukan, atau password anda salah.");
}
});
}
makeToast(cont) {
this.showToast(this.status, this.title, cont);
}
showToast(type, title, body) {
const config = {
status: type,
destroyByClick: this.destroyByClick,
duration: this.duration,
hasIcon: this.hasIcon,
position: this.position,
preventDuplicates: this.preventDuplicates,
};
const titleContent = title ? `. ${title}` : '';
this.index += 1;
this.toastrService.show(body, titleContent, config);
}
}
LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_nebular_auth__WEBPACK_IMPORTED_MODULE_1__["NbAuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_nebular_auth__WEBPACK_IMPORTED_MODULE_1__["NB_AUTH_OPTIONS"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"])); };
LoginComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LoginComponent, selectors: [["ngx-login"]], inputs: { user: "user" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]], decls: 18, vars: 14, consts: [["id", "title", 1, "title"], ["outline", "danger", "role", "alert", 4, "ngIf"], ["outline", "success", "role", "alert", 4, "ngIf"], [1, "form-control-group"], ["for", "input-email", 1, "label"], ["nbInput", "", "fullWidth", "", "name", "nik", "id", "input-nik", "placeholder", "NIK", "autofocus", "", 3, "ngModel", "ngModelChange"], ["email", "ngModel"], [4, "ngIf"], ["for", "input-password", 1, "label"], ["nbInput", "", "fullWidth", "", "name", "password", "type", "password", "id", "input-password", "placeholder", "Password", 3, "ngModel", "status", "required", "minlength", "maxlength", "ngModelChange"], ["password", "ngModel"], ["nbButton", "", "fullWidth", "", "status", "success", 3, "disabled", "click"], ["outline", "danger", "role", "alert"], [1, "alert-title"], [1, "alert-message-list"], ["class", "alert-message", 4, "ngFor", "ngForOf"], [1, "alert-message"], ["outline", "success", "role", "alert"], ["class", "caption status-danger", 4, "ngIf"], [1, "caption", "status-danger"]], template: function LoginComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h1", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Sign In");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, LoginComponent_nb_alert_2_Template, 6, 1, "nb-alert", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LoginComponent_nb_alert_3_Template, 6, 1, "nb-alert", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "label", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "NIK:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "input", 5, 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_7_listener($event) { return ctx.user.username = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, LoginComponent_ng_container_9_Template, 2, 1, "ng-container", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Password:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "input", 9, 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_13_listener($event) { return ctx.user.password = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, LoginComponent_ng_container_15_Template, 3, 2, "ng-container", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LoginComponent_Template_button_click_16_listener() { return ctx.onLogin(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Sign In\n");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](8);
const _r76 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showMessages.error && (ctx.errors == null ? null : ctx.errors.length) && !ctx.submitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showMessages.success && (ctx.messages == null ? null : ctx.messages.length) && !ctx.submitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.user.username);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", _r74.invalid && _r74.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.user.password)("status", _r76.dirty ? _r76.invalid ? "danger" : "success" : "basic")("required", ctx.getConfigValue("forms.validation.password.required"))("minlength", ctx.getConfigValue("forms.validation.password.minLength"))("maxlength", ctx.getConfigValue("forms.validation.password.maxLength"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-invalid", _r76.invalid && _r76.touched ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", _r76.invalid && _r76.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("btn-pulse", ctx.submitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.submitted);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbInputDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgModel"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["RequiredValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["MinLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["MaxLengthValidator"], _nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbButtonComponent"], _nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbAlertComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LoginComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'ngx-login',
templateUrl: './login.component.html',
}]
}], function () { return [{ type: _nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbToastrService"] }, { type: _login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] }, { type: _nebular_auth__WEBPACK_IMPORTED_MODULE_1__["NbAuthService"] }, { type: undefined, decorators: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
args: [_nebular_auth__WEBPACK_IMPORTED_MODULE_1__["NB_AUTH_OPTIONS"]]
}] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }]; }, { user: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "./src/app/auth/login.module.ts":
/*!**************************************!*\
!*** ./src/app/auth/login.module.ts ***!
\**************************************/
/*! exports provided: AuthModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthModule", function() { return AuthModule; });
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */ var _nebular_auth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @nebular/auth */ "./node_modules/@nebular/auth/__ivy_ngcc__/fesm2015/index.js");
/* harmony import */ var _nebular_theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @nebular/theme */ "./node_modules/@nebular/theme/__ivy_ngcc__/fesm2015/index.js");
/* harmony import */ var _login_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./login.component */ "./src/app/auth/login.component.ts");
/* harmony import */ var _login_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./login-routing.module */ "./src/app/auth/login-routing.module.ts");
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
class AuthModule {
}
AuthModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: AuthModule });
AuthModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ factory: function AuthModule_Factory(t) { return new (t || AuthModule)(); }, imports: [[
_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormsModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbAlertModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbInputModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbButtonModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbCheckboxModule"],
_login_routing_module__WEBPACK_IMPORTED_MODULE_6__["AuthRoutingModule"],
_nebular_auth__WEBPACK_IMPORTED_MODULE_3__["NbAuthModule"],
]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](AuthModule, { declarations: [_login_component__WEBPACK_IMPORTED_MODULE_5__["LoginComponent"]], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormsModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbAlertModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbInputModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbButtonModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbCheckboxModule"],
_login_routing_module__WEBPACK_IMPORTED_MODULE_6__["AuthRoutingModule"],
_nebular_auth__WEBPACK_IMPORTED_MODULE_3__["NbAuthModule"]] }); })();
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AuthModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
args: [{
imports: [
_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormsModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbAlertModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbInputModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbButtonModule"],
_nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbCheckboxModule"],
_login_routing_module__WEBPACK_IMPORTED_MODULE_6__["AuthRoutingModule"],
_nebular_auth__WEBPACK_IMPORTED_MODULE_3__["NbAuthModule"],
],
declarations: [
_login_component__WEBPACK_IMPORTED_MODULE_5__["LoginComponent"],
],
}]
}], null, null); })();
/***/ })
}]);
//# sourceMappingURL=auth-login-module-es2015.js.map

File diff suppressed because one or more lines are too long

View file

@ -1,737 +0,0 @@
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["auth-login-module"], {
/***/
"./src/app/@core/data/user.ts":
/*!************************************!*\
!*** ./src/app/@core/data/user.ts ***!
\************************************/
/*! exports provided: User */
/***/
function srcAppCoreDataUserTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "User", function () {
return User;
});
var User = function User() {
_classCallCheck(this, User);
};
/***/
},
/***/
"./src/app/auth/login-routing.module.ts":
/*!**********************************************!*\
!*** ./src/app/auth/login-routing.module.ts ***!
\**********************************************/
/*! exports provided: routes, AuthRoutingModule */
/***/
function srcAppAuthLoginRoutingModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "routes", function () {
return routes;
});
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AuthRoutingModule", function () {
return AuthRoutingModule;
});
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */
var _nebular_auth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @nebular/auth */
"./node_modules/@nebular/auth/__ivy_ngcc__/fesm2015/index.js");
/* harmony import */
var _login_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ./login.component */
"./src/app/auth/login.component.ts");
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
var routes = [{
path: '',
component: _nebular_auth__WEBPACK_IMPORTED_MODULE_2__["NbAuthComponent"],
children: [{
path: 'login',
component: _login_component__WEBPACK_IMPORTED_MODULE_3__["LoginComponent"]
}]
}];
var AuthRoutingModule = function AuthRoutingModule() {
_classCallCheck(this, AuthRoutingModule);
};
AuthRoutingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
type: AuthRoutingModule
});
AuthRoutingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
factory: function AuthRoutingModule_Factory(t) {
return new (t || AuthRoutingModule)();
},
imports: [[_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(routes)], _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
});
(function () {
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](AuthRoutingModule, {
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
});
})();
/*@__PURE__*/
(function () {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AuthRoutingModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
args: [{
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
}]
}], null, null);
})();
/***/
},
/***/
"./src/app/auth/login.component.ts":
/*!*****************************************!*\
!*** ./src/app/auth/login.component.ts ***!
\*****************************************/
/*! exports provided: LoginComponent */
/***/
function srcAppAuthLoginComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "LoginComponent", function () {
return LoginComponent;
});
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */
var _nebular_auth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @nebular/auth */
"./node_modules/@nebular/auth/__ivy_ngcc__/fesm2015/index.js");
/* harmony import */
var _core_data_user__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../@core/data/user */
"./src/app/@core/data/user.ts");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
/* harmony import */
var _login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ./login.service */
"./src/app/auth/login.service.ts");
/* harmony import */
var _nebular_theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! @nebular/theme */
"./node_modules/@nebular/theme/__ivy_ngcc__/fesm2015/index.js");
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! @angular/common */
"./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! @angular/forms */
"./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
function LoginComponent_nb_alert_2_li_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
}
if (rf & 2) {
var error_r79 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](error_r79);
}
}
function LoginComponent_nb_alert_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "nb-alert", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Oh snap!");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ul", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LoginComponent_nb_alert_2_li_5_Template, 2, 1, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
}
if (rf & 2) {
var ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r72.errors);
}
}
function LoginComponent_nb_alert_3_li_5_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
}
if (rf & 2) {
var message_r81 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](message_r81);
}
}
function LoginComponent_nb_alert_3_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "nb-alert", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Hooray!");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ul", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LoginComponent_nb_alert_3_li_5_Template, 2, 1, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
}
if (rf & 2) {
var ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r73.messages);
}
}
function LoginComponent_ng_container_9_p_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " NIK is required! ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
}
}
function LoginComponent_ng_container_9_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LoginComponent_ng_container_9_p_1_Template, 2, 0, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
var _r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", _r74.errors == null ? null : _r74.errors.required);
}
}
function LoginComponent_ng_container_15_p_1_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Password is required! ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
}
}
function LoginComponent_ng_container_15_p_2_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
}
if (rf & 2) {
var ctx_r84 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" Password should contains from ", ctx_r84.getConfigValue("forms.validation.password.minLength"), " to ", ctx_r84.getConfigValue("forms.validation.password.maxLength"), " characters ");
}
}
function LoginComponent_ng_container_15_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LoginComponent_ng_container_15_p_1_Template, 2, 0, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, LoginComponent_ng_container_15_p_2_Template, 2, 2, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
}
if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
var _r76 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", _r76.errors == null ? null : _r76.errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (_r76.errors == null ? null : _r76.errors.minlength) || (_r76.errors == null ? null : _r76.errors.maxlength));
}
}
var LoginComponent =
/*#__PURE__*/
function (_nebular_auth__WEBPAC) {
_inherits(LoginComponent, _nebular_auth__WEBPAC);
function LoginComponent(toastrService, authService, service, options, cd, routes) {
var _this;
_classCallCheck(this, LoginComponent);
_this = _possibleConstructorReturn(this, _getPrototypeOf(LoginComponent).call(this, service, options, cd, routes));
_this.toastrService = toastrService;
_this.authService = authService;
_this.index = 1;
_this.destroyByClick = true;
_this.duration = 2000;
_this.hasIcon = true;
_this.position = _nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbGlobalPhysicalPosition"].TOP_RIGHT;
_this.preventDuplicates = false;
_this.status = 'primary';
_this.title = 'Login Symfonia';
_this.content = "Anda tidak mempunyai akses ke Symfonia";
_this.avail = false;
return _this;
}
_createClass(LoginComponent, [{
key: "onLogin",
value: function onLogin() {
var _this2 = this;
this.authService.login(this.user).subscribe(function (res) {
if (res.username != null) {
for (var i = 0; i < res.value.length; i++) {
if (res.value[i].resourcealias == "IDM.Symfonia") {
_this2.avail = true;
}
}
if (_this2.avail) {
_this2.router.navigate(['/pages/partner-price']);
} else if (res.value.length == 0) {
_this2.makeToast(_this2.content);
}
} else {
_this2.makeToast("User tidak di temukan, atau password anda salah.");
}
});
}
}, {
key: "makeToast",
value: function makeToast(cont) {
this.showToast(this.status, this.title, cont);
}
}, {
key: "showToast",
value: function showToast(type, title, body) {
var config = {
status: type,
destroyByClick: this.destroyByClick,
duration: this.duration,
hasIcon: this.hasIcon,
position: this.position,
preventDuplicates: this.preventDuplicates
};
var titleContent = title ? ". ".concat(title) : '';
this.index += 1;
this.toastrService.show(body, titleContent, config);
}
}]);
return LoginComponent;
}(_nebular_auth__WEBPACK_IMPORTED_MODULE_1__["NbLoginComponent"]);
LoginComponent.ɵfac = function LoginComponent_Factory(t) {
return new (t || LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_nebular_auth__WEBPACK_IMPORTED_MODULE_1__["NbAuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_nebular_auth__WEBPACK_IMPORTED_MODULE_1__["NB_AUTH_OPTIONS"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]));
};
LoginComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
type: LoginComponent,
selectors: [["ngx-login"]],
inputs: {
user: "user"
},
features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
decls: 18,
vars: 14,
consts: [["id", "title", 1, "title"], ["outline", "danger", "role", "alert", 4, "ngIf"], ["outline", "success", "role", "alert", 4, "ngIf"], [1, "form-control-group"], ["for", "input-email", 1, "label"], ["nbInput", "", "fullWidth", "", "name", "nik", "id", "input-nik", "placeholder", "NIK", "autofocus", "", 3, "ngModel", "ngModelChange"], ["email", "ngModel"], [4, "ngIf"], ["for", "input-password", 1, "label"], ["nbInput", "", "fullWidth", "", "name", "password", "type", "password", "id", "input-password", "placeholder", "Password", 3, "ngModel", "status", "required", "minlength", "maxlength", "ngModelChange"], ["password", "ngModel"], ["nbButton", "", "fullWidth", "", "status", "success", 3, "disabled", "click"], ["outline", "danger", "role", "alert"], [1, "alert-title"], [1, "alert-message-list"], ["class", "alert-message", 4, "ngFor", "ngForOf"], [1, "alert-message"], ["outline", "success", "role", "alert"], ["class", "caption status-danger", 4, "ngIf"], [1, "caption", "status-danger"]],
template: function LoginComponent_Template(rf, ctx) {
if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h1", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Sign In");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, LoginComponent_nb_alert_2_Template, 6, 1, "nb-alert", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LoginComponent_nb_alert_3_Template, 6, 1, "nb-alert", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "label", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "NIK:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "input", 5, 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_7_listener($event) {
return ctx.user.username = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, LoginComponent_ng_container_9_Template, 2, 1, "ng-container", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Password:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "input", 9, 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LoginComponent_Template_input_ngModelChange_13_listener($event) {
return ctx.user.password = $event;
});
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, LoginComponent_ng_container_15_Template, 3, 2, "ng-container", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LoginComponent_Template_button_click_16_listener() {
return ctx.onLogin();
});
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Sign In\n");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
}
if (rf & 2) {
var _r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](8);
var _r76 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showMessages.error && (ctx.errors == null ? null : ctx.errors.length) && !ctx.submitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showMessages.success && (ctx.messages == null ? null : ctx.messages.length) && !ctx.submitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.user.username);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", _r74.invalid && _r74.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.user.password)("status", _r76.dirty ? _r76.invalid ? "danger" : "success" : "basic")("required", ctx.getConfigValue("forms.validation.password.required"))("minlength", ctx.getConfigValue("forms.validation.password.minLength"))("maxlength", ctx.getConfigValue("forms.validation.password.maxLength"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-invalid", _r76.invalid && _r76.touched ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", _r76.invalid && _r76.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("btn-pulse", ctx.submitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.submitted);
}
},
directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbInputDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgModel"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["RequiredValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["MinLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["MaxLengthValidator"], _nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbButtonComponent"], _nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbAlertComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"]],
encapsulation: 2
});
/*@__PURE__*/
(function () {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LoginComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'ngx-login',
templateUrl: './login.component.html'
}]
}], function () {
return [{
type: _nebular_theme__WEBPACK_IMPORTED_MODULE_5__["NbToastrService"]
}, {
type: _login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"]
}, {
type: _nebular_auth__WEBPACK_IMPORTED_MODULE_1__["NbAuthService"]
}, {
type: undefined,
decorators: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
args: [_nebular_auth__WEBPACK_IMPORTED_MODULE_1__["NB_AUTH_OPTIONS"]]
}]
}, {
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
}, {
type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]
}];
}, {
user: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}]
});
})();
/***/
},
/***/
"./src/app/auth/login.module.ts":
/*!**************************************!*\
!*** ./src/app/auth/login.module.ts ***!
\**************************************/
/*! exports provided: AuthModule */
/***/
function srcAppAuthLoginModuleTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AuthModule", function () {
return AuthModule;
});
/* harmony import */
var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! @angular/common */
"./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/forms */
"./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
/* harmony import */
var _nebular_auth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @nebular/auth */
"./node_modules/@nebular/auth/__ivy_ngcc__/fesm2015/index.js");
/* harmony import */
var _nebular_theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @nebular/theme */
"./node_modules/@nebular/theme/__ivy_ngcc__/fesm2015/index.js");
/* harmony import */
var _login_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ./login.component */
"./src/app/auth/login.component.ts");
/* harmony import */
var _login_routing_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! ./login-routing.module */
"./src/app/auth/login-routing.module.ts");
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
var AuthModule = function AuthModule() {
_classCallCheck(this, AuthModule);
};
AuthModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
type: AuthModule
});
AuthModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
factory: function AuthModule_Factory(t) {
return new (t || AuthModule)();
},
imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormsModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbAlertModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbInputModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbButtonModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbCheckboxModule"], _login_routing_module__WEBPACK_IMPORTED_MODULE_6__["AuthRoutingModule"], _nebular_auth__WEBPACK_IMPORTED_MODULE_3__["NbAuthModule"]]]
});
(function () {
(typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](AuthModule, {
declarations: [_login_component__WEBPACK_IMPORTED_MODULE_5__["LoginComponent"]],
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormsModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbAlertModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbInputModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbButtonModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbCheckboxModule"], _login_routing_module__WEBPACK_IMPORTED_MODULE_6__["AuthRoutingModule"], _nebular_auth__WEBPACK_IMPORTED_MODULE_3__["NbAuthModule"]]
});
})();
/*@__PURE__*/
(function () {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AuthModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
args: [{
imports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormsModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbAlertModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbInputModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbButtonModule"], _nebular_theme__WEBPACK_IMPORTED_MODULE_4__["NbCheckboxModule"], _login_routing_module__WEBPACK_IMPORTED_MODULE_6__["AuthRoutingModule"], _nebular_auth__WEBPACK_IMPORTED_MODULE_3__["NbAuthModule"]],
declarations: [_login_component__WEBPACK_IMPORTED_MODULE_5__["LoginComponent"]]
}]
}], null, null);
})();
/***/
}
}]);
//# sourceMappingURL=auth-login-module-es5.js.map

File diff suppressed because one or more lines are too long

View file

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

Before After
Before After

Some files were not shown because too many files have changed in this diff Show more