(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
/***/ "./src/$$_lazy_route_resource lazy recursive":
/*!**********************************************************!*\
!*** ./src/$$_lazy_route_resource lazy namespace object ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var map = {
"./modules/account/account.module": [
"./src/app/modules/account/account.module.ts",
"modules-account-account-module"
],
"./modules/accounting/accounting.module": [
"./src/app/modules/accounting/accounting.module.ts",
"default~modules-accounting-accounting-module~modules-transaction-transaction-module",
"common",
"modules-accounting-accounting-module"
],
"./modules/client-transaction/client-transaction.module": [
"./src/app/modules/client-transaction/client-transaction.module.ts",
"common",
"modules-client-transaction-client-transaction-module"
],
"./modules/contract-management/contract-management.module": [
"./src/app/modules/contract-management/contract-management.module.ts",
"default~modules-contract-management-contract-management-module~modules-reservation-reservation-modul~541be745",
"common",
"modules-contract-management-contract-management-module"
],
"./modules/home/home.module": [
"./src/app/modules/home/home.module.ts",
"common",
"modules-home-home-module"
],
"./modules/login/login.module": [
"./src/app/modules/login/login.module.ts",
"modules-login-login-module"
],
"./modules/profile/profile.module": [
"./src/app/modules/profile/profile.module.ts",
"common",
"modules-profile-profile-module"
],
"./modules/project-board/project-board.module": [
"./src/app/modules/project-board/project-board.module.ts",
"common",
"modules-project-board-project-board-module"
],
"./modules/project-dashboard/project-dashboard.module": [
"./src/app/modules/project-dashboard/project-dashboard.module.ts",
"common",
"modules-project-dashboard-project-dashboard-module"
],
"./modules/reservation/reservation.module": [
"./src/app/modules/reservation/reservation.module.ts",
"default~modules-contract-management-contract-management-module~modules-reservation-reservation-modul~541be745",
"common",
"modules-reservation-reservation-module"
],
"./modules/transaction/transaction.module": [
"./src/app/modules/transaction/transaction.module.ts",
"default~modules-accounting-accounting-module~modules-transaction-transaction-module",
"common",
"modules-transaction-transaction-module"
],
"./modules/user-management/user-management.module": [
"./src/app/modules/user-management/user-management.module.ts",
"common",
"modules-user-management-user-management-module"
],
"./modules/users/users.module": [
"./src/app/modules/users/users.module.ts",
"common",
"modules-users-users-module"
]
};
function webpackAsyncContext(req) {
var ids = map[req];
if(!ids) {
return Promise.resolve().then(function() {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}
return Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {
var id = ids[0];
return __webpack_require__.t(id, 7);
});
}
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
return Object.keys(map);
};
webpackAsyncContext.id = "./src/$$_lazy_route_resource lazy recursive";
module.exports = webpackAsyncContext;
/***/ }),
/***/ "./src/app/app.component.html":
/*!************************************!*\
!*** ./src/app/app.component.html ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = " \n \n"
/***/ }),
/***/ "./src/app/app.component.scss":
/*!************************************!*\
!*** ./src/app/app.component.scss ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FwcC5jb21wb25lbnQuc2NzcyJ9 */"
/***/ }),
/***/ "./src/app/app.component.ts":
/*!**********************************!*\
!*** ./src/app/app.component.ts ***!
\**********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var pub_sub_service_1 = __webpack_require__(/*! @app/core/services/pub-sub.service */ "./src/app/infrastructure/core/services/pub-sub.service.ts");
var app_enum_1 = __webpack_require__(/*! ./app.enum */ "./src/app/app.enum.ts");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var utils_1 = __webpack_require__(/*! ngx-bootstrap/utils */ "./node_modules/ngx-bootstrap/utils/fesm5/ngx-bootstrap-utils.js");
var project_service_1 = __webpack_require__(/*! @app/data/services/project/project.service */ "./src/app/infrastructure/data/services/project/project.service.ts");
var media_file_service_1 = __webpack_require__(/*! @app/data/services/media-file.service */ "./src/app/infrastructure/data/services/media-file.service.ts");
var page_component_base_1 = __webpack_require__(/*! ./common/page-component-base */ "./src/app/common/page-component-base.ts");
var AppComponent = /** @class */ (function (_super) {
tslib_1.__extends(AppComponent, _super);
function AppComponent(pubsub, router, projectSvc, mediaFileSvc, cdRef) {
var _this = _super.call(this) || this;
_this.pubsub = pubsub;
_this.router = router;
_this.projectSvc = projectSvc;
_this.mediaFileSvc = mediaFileSvc;
_this.cdRef = cdRef;
_this.title = 'starkwood-web';
utils_1.setTheme('bs4');
pubsub.On(app_enum_1.App.OnBusy).subscribe(function (data) {
_this.IS_BUSY = data;
_this.cdRef.detectChanges();
});
return _this;
}
AppComponent.prototype.ngOnInit = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var _this = this;
return tslib_1.__generator(this, function (_a) {
this.router.events.subscribe(function (evt) {
if (evt instanceof router_1.NavigationEnd) {
if (window.location.pathname.includes('portfolio')) {
document.body.classList.add('reservation');
}
else if (window.location.pathname.includes('admin')) {
document.body.classList.remove('reservation');
}
var url = evt.url.split('?');
if (url[0] === '/') {
document.getElementById('body').classList.add('home');
document.getElementById('body').classList.remove('admin');
document.getElementById('body').classList.remove('login');
document.getElementById('body').classList.remove('contact-us');
}
else if (url[0].includes('/admin')) {
document.getElementById('body').classList.add('admin');
document.getElementById('body').classList.remove('home');
document.getElementById('body').classList.remove('login');
document.getElementById('body').classList.remove('contact-us');
}
else if (url[0].includes('/contact-us')) {
document.getElementById('body').classList.add('contact-us');
document.getElementById('body').classList.remove('admin');
document.getElementById('body').classList.remove('login');
document.getElementById('body').classList.remove('home');
}
else if (url[0].includes('/login') || url[0].includes('/account')) {
document.getElementById('body').classList.add('login');
document.getElementById('body').classList.remove('home');
document.getElementById('body').classList.remove('contact-us');
}
else {
document.getElementById('body').classList.remove('login');
document.getElementById('body').classList.remove('home');
document.getElementById('body').classList.remove('admin');
document.getElementById('body').classList.remove('contact-us');
}
setTimeout(function () {
document.getElementById('app-root').classList.remove('hide');
document.getElementById('body').classList.remove('pre-loader');
$('#pre-loader').remove();
}, 300);
_this.IS_BUSY = false;
}
else if (evt instanceof router_1.NavigationStart) {
_this.IS_BUSY = true;
}
});
return [2 /*return*/];
});
});
};
AppComponent.prototype.ngOnDestroy = function () {
};
AppComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-root',
template: __webpack_require__(/*! ./app.component.html */ "./src/app/app.component.html"),
styles: [__webpack_require__(/*! ./app.component.scss */ "./src/app/app.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [pub_sub_service_1.PubSubService,
router_1.Router,
project_service_1.ProjectService,
media_file_service_1.MediaFileService,
core_1.ChangeDetectorRef])
], AppComponent);
return AppComponent;
}(page_component_base_1.PageComponentBase));
exports.AppComponent = AppComponent;
/***/ }),
/***/ "./src/app/app.enum.ts":
/*!*****************************!*\
!*** ./src/app/app.enum.ts ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var App;
(function (App) {
App["OnBusy"] = "AppOnBusy";
App["OnAdminPageBusy"] = "AppOnAdminPageBusy";
App["OnAdminTopBarTitleChange"] = "AppOnAdminTopBarTitleChange";
App["OnShowDrawerOverlay"] = "AppOnShowDrawerOverlay";
})(App = exports.App || (exports.App = {}));
/***/ }),
/***/ "./src/app/app.module.ts":
/*!*******************************!*\
!*** ./src/app/app.module.ts ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
__webpack_require__(/*! ./app.prototypes */ "./src/app/app.prototypes.ts");
var platform_browser_1 = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var animations_1 = __webpack_require__(/*! @angular/platform-browser/animations */ "./node_modules/@angular/platform-browser/fesm5/animations.js");
var app_component_1 = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts");
var home_page_component_1 = __webpack_require__(/*! ./main/pages/home-page/home-page.component */ "./src/app/main/pages/home-page/home-page.component.ts");
var login_page_component_1 = __webpack_require__(/*! ./main/pages/login-page/login-page.component */ "./src/app/main/pages/login-page/login-page.component.ts");
var header_component_1 = __webpack_require__(/*! ./main/components/header/header.component */ "./src/app/main/components/header/header.component.ts");
var footer_bar_component_1 = __webpack_require__(/*! ./main/components/footer-bar/footer-bar.component */ "./src/app/main/components/footer-bar/footer-bar.component.ts");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var app_routes_1 = __webpack_require__(/*! ./app.routes */ "./src/app/app.routes.ts");
var core_module_1 = __webpack_require__(/*! @app/core/core.module */ "./src/app/infrastructure/core/core.module.ts");
var shared_module_1 = __webpack_require__(/*! @app/shared/shared.module */ "./src/app/infrastructure/shared/shared.module.ts");
var data_module_1 = __webpack_require__(/*! @app/data/data.module */ "./src/app/infrastructure/data/data.module.ts");
var ngx_wow_1 = __webpack_require__(/*! ngx-wow */ "./node_modules/ngx-wow/esm5/ngx-wow.es5.js");
var material_1 = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
var admin_page_component_1 = __webpack_require__(/*! ./main/pages/admin-page/admin-page.component */ "./src/app/main/pages/admin-page/admin-page.component.ts");
var auth_guard_1 = __webpack_require__(/*! ./guards/auth.guard */ "./src/app/guards/auth.guard.ts");
var session_initializer_service_1 = __webpack_require__(/*! ./initializer/session-initializer.service */ "./src/app/initializer/session-initializer.service.ts");
var http_1 = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
var login_guard_1 = __webpack_require__(/*! ./guards/login.guard */ "./src/app/guards/login.guard.ts");
var account_page_component_1 = __webpack_require__(/*! ./main/pages/account-page/account-page.component */ "./src/app/main/pages/account-page/account-page.component.ts");
var AppModule = /** @class */ (function () {
function AppModule() {
}
AppModule = tslib_1.__decorate([
core_1.NgModule({
declarations: [
app_component_1.AppComponent,
home_page_component_1.HomePageComponent,
login_page_component_1.LoginPageComponent,
header_component_1.HeaderComponent,
footer_bar_component_1.FooterBarComponent,
admin_page_component_1.AdminPageComponent,
account_page_component_1.AccountPageComponent
],
imports: [
platform_browser_1.BrowserModule,
animations_1.BrowserAnimationsModule,
common_1.CommonModule,
http_1.HttpClientModule,
forms_1.FormsModule,
forms_1.ReactiveFormsModule,
shared_module_1.SharedModule,
data_module_1.DataModule,
core_module_1.CoreModule.forRoot(),
ngx_wow_1.NgwWowModule,
material_1.MatButtonModule,
material_1.MatFormFieldModule,
material_1.MatInputModule,
material_1.MatCardModule,
material_1.MatProgressBarModule,
material_1.MatDialogModule,
material_1.MatCheckboxModule,
material_1.MatDatepickerModule,
material_1.MatRadioModule,
material_1.MatTooltipModule,
router_1.RouterModule.forRoot(app_routes_1.AppRoutes, { enableTracing: false })
],
providers: [
auth_guard_1.AuthGuard,
login_guard_1.LoginGuard,
common_1.DatePipe,
session_initializer_service_1.SessionInitializerService,
{
provide: core_1.APP_INITIALIZER,
useFactory: SetupApp,
deps: [session_initializer_service_1.SessionInitializerService],
multi: true
},
{
provide: core_1.LOCALE_ID,
useValue: 'en-pH'
}
],
bootstrap: [app_component_1.AppComponent]
})
], AppModule);
return AppModule;
}());
exports.AppModule = AppModule;
function SetupApp(setup) {
return function () { return setup.initialize(); };
}
exports.SetupApp = SetupApp;
/***/ }),
/***/ "./src/app/app.prototypes.ts":
/*!***********************************!*\
!*** ./src/app/app.prototypes.ts ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports) {
Date.prototype.addDays = function (days) {
var dat = new Date(this.valueOf());
dat.setDate(dat.getDate() + days);
return dat;
};
Date.prototype.minusDays = function (days) {
var dat = new Date(this.valueOf());
dat.setDate(dat.getDate() - days);
return dat;
};
Date.prototype.addYears = function (years) {
var yr = new Date(this.valueOf());
yr.setFullYear(yr.getFullYear() + years);
return yr;
};
Date.prototype.subtractYears = function (years) {
var yr = new Date(this.valueOf());
yr.setFullYear(yr.getFullYear() - years);
return yr;
};
Date.prototype.toStringFormat = function (format) {
return '';
};
/***/ }),
/***/ "./src/app/app.routes.ts":
/*!*******************************!*\
!*** ./src/app/app.routes.ts ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var home_page_component_1 = __webpack_require__(/*! ./main/pages/home-page/home-page.component */ "./src/app/main/pages/home-page/home-page.component.ts");
var login_page_component_1 = __webpack_require__(/*! ./main/pages/login-page/login-page.component */ "./src/app/main/pages/login-page/login-page.component.ts");
var admin_page_component_1 = __webpack_require__(/*! ./main/pages/admin-page/admin-page.component */ "./src/app/main/pages/admin-page/admin-page.component.ts");
var auth_guard_1 = __webpack_require__(/*! ./guards/auth.guard */ "./src/app/guards/auth.guard.ts");
var login_guard_1 = __webpack_require__(/*! ./guards/login.guard */ "./src/app/guards/login.guard.ts");
var account_page_component_1 = __webpack_require__(/*! ./main/pages/account-page/account-page.component */ "./src/app/main/pages/account-page/account-page.component.ts");
var client_guard_1 = __webpack_require__(/*! ./guards/client.guard */ "./src/app/guards/client.guard.ts");
var role_guard_1 = __webpack_require__(/*! ./guards/role.guard */ "./src/app/guards/role.guard.ts");
exports.AppRoutes = [
{
path: '', component: home_page_component_1.HomePageComponent,
loadChildren: './modules/home/home.module#HomeModule'
},
{
path: 'admin', component: admin_page_component_1.AdminPageComponent,
canActivate: [auth_guard_1.AuthGuard],
data: {
prohibitedRoles: ['investor'],
allowedRoles: '*'
},
children: [
{
path: '',
loadChildren: './modules/project-dashboard/project-dashboard.module#ProjectDashboardModule',
data: {
module: 'project-dashboard.view',
access: [],
title: 'Projects'
}
},
{
path: 'projects',
loadChildren: './modules/project-board/project-board.module#ProjectBoardModule',
canLoad: [role_guard_1.RoleGuard],
data: {
module: 'project-board.view',
access: [],
title: 'Projects'
}
},
{
path: 'reservation',
loadChildren: './modules/reservation/reservation.module#ReservationModule',
canLoad: [role_guard_1.RoleGuard],
data: {
module: 'reservation.view',
access: [],
title: 'Reservation'
}
},
{
path: 'contract',
loadChildren: './modules/contract-management/contract-management.module#ContractManagementModule',
canLoad: [role_guard_1.RoleGuard],
data: {
module: 'contract-management.view',
access: [],
title: 'Contract Management'
}
},
{
path: 'accounting',
loadChildren: './modules/accounting/accounting.module#AccountingModule',
canLoad: [role_guard_1.RoleGuard],
data: {
module: 'chart-of-accounts.view, journal-entries.view, accounting-reports.view, accounting-settings.view',
access: [],
title: 'Accounting'
}
},
{
path: 'transaction',
loadChildren: './modules/transaction/transaction.module#TransactionModule',
canLoad: [role_guard_1.RoleGuard],
data: {
module: 'transaction.view',
access: [],
title: 'Transactions'
}
},
{
path: 'users',
loadChildren: './modules/users/users.module#UsersModule',
canLoad: [role_guard_1.RoleGuard],
data: {
module: 'users.view',
access: [],
title: 'Users'
}
},
{
path: 'client',
loadChildren: './modules/client-transaction/client-transaction.module#ClientTransactionModule',
canLoad: [role_guard_1.RoleGuard],
data: {
module: 'client',
access: [],
title: 'Client'
}
},
{
path: 'user-management',
loadChildren: './modules/user-management/user-management.module#UserManagementModule',
canLoad: [role_guard_1.RoleGuard],
data: {
module: 'user-management.account',
access: [],
title: 'User Management'
}
},
{
path: 'profile',
loadChildren: './modules/profile/profile.module#ProfileModule',
}
]
},
{
path: 'client', component: admin_page_component_1.AdminPageComponent, canActivate: [auth_guard_1.AuthGuard],
data: {
prohibitedRoles: '*',
allowedRoles: ['client']
},
children: [
{
path: '',
loadChildren: './modules/client-transaction/client-transaction.module#ClientTransactionModule',
canActivate: [client_guard_1.ClientGuard]
}
]
},
{
path: 'investor', component: admin_page_component_1.AdminPageComponent, canActivate: [auth_guard_1.AuthGuard],
data: {
prohibitedRoles: '*',
allowedRoles: ['investor']
},
children: [
{
path: '',
loadChildren: './modules/project-dashboard/project-dashboard.module#ProjectDashboardModule',
canActivate: [client_guard_1.ClientGuard]
}
]
},
{
path: 'login', component: login_page_component_1.LoginPageComponent,
loadChildren: './modules/login/login.module#LoginModule',
canActivate: [login_guard_1.LoginGuard]
},
{
path: 'account', component: account_page_component_1.AccountPageComponent,
loadChildren: './modules/account/account.module#AccountModule'
},
{
path: '**', redirectTo: ''
}
];
/***/ }),
/***/ "./src/app/common/component-base.ts":
/*!******************************************!*\
!*** ./src/app/common/component-base.ts ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
var ComponentBase = /** @class */ (function () {
function ComponentBase() {
this.IS_BUSY = false;
this.BUSY_CONTENT = '';
this.IS_FIRST_LOAD = true;
}
ComponentBase.prototype.getErrorMessage = function (obj) {
if (obj !== null) {
if (obj.hasOwnProperty('minlength')) {
return "Minimum length should be " + obj.minlength.requiredLength;
}
else if (obj.hasOwnProperty('maxlength')) {
return "Max length should be " + obj.maxlength.requiredLength;
}
else if (obj.hasOwnProperty('required')) {
return "This field is required";
}
else if (obj.hasOwnProperty('email')) {
return "Invalid email address";
}
else if (obj.hasOwnProperty('strong')) {
return "Password is not strong it must contain one digit, one uppercase and one lowercase letter";
}
else if (obj.hasOwnProperty('passwordNotMatch')) {
return "Password and Confirm Password does not match";
}
else if (obj.hasOwnProperty('min')) {
return "Minimum value must be greater than " + obj.min.min;
}
else if (obj.hasOwnProperty('max')) {
return "Maximum value must not be greater than " + obj.max.max;
}
else {
return '';
}
}
else {
return '';
}
};
ComponentBase.prototype.showFormErrors = function (form) {
for (var x in form.controls) {
if (x) {
form.get(x).markAsDirty();
form.get(x).updateValueAndValidity();
form.get(x).markAsTouched();
if (form.get(x) instanceof forms_1.FormGroup) {
this.showFormErrors(form.controls[x]);
}
if (form.get(x) instanceof forms_1.FormArray) {
for (var _i = 0, _a = form.controls[x].controls; _i < _a.length; _i++) {
var y = _a[_i];
if (y instanceof forms_1.FormGroup) {
this.showFormErrors(y);
}
else {
y.markAsDirty();
y.updateValueAndValidity();
}
}
}
}
}
};
ComponentBase.prototype.isStandardParams = function (param) {
return ['sortName', 'sortOrder', 'page', 'size', 'all', 'query'].includes(param);
};
return ComponentBase;
}());
exports.ComponentBase = ComponentBase;
/***/ }),
/***/ "./src/app/common/constants.ts":
/*!*************************************!*\
!*** ./src/app/common/constants.ts ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppConstants = {
DEFAULT_PAGE_SIZE: 5,
SOCIAL: {
FB: 'https://www.facebook.com/starkwoodproperties',
TWITTER: 'https://twitter.com/starkwoodph',
INSTAGRAM: 'https://www.instagram.com/starkwoodph/'
},
INTAC: {
SITE: 'http://www.intac.tech'
},
API_TOKEN_USERNAME: 'starkwood-client',
API_TOKEN_PASS: 'starkwood-secret',
COMPANY: {
PHONE_NUMBER: '+63 949 350 9999',
EMAIL: 'info@starkwood.com.ph',
ADDRESS: '2nd Level, Right Wing, Gaisano Country Mall, Banilad, Cebu City, Philippines'
}
};
/***/ }),
/***/ "./src/app/common/page-component-base.ts":
/*!***********************************************!*\
!*** ./src/app/common/page-component-base.ts ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var component_base_1 = __webpack_require__(/*! ./component-base */ "./src/app/common/component-base.ts");
var PageComponentBase = /** @class */ (function (_super) {
tslib_1.__extends(PageComponentBase, _super);
function PageComponentBase() {
return _super.call(this) || this;
}
return PageComponentBase;
}(component_base_1.ComponentBase));
exports.PageComponentBase = PageComponentBase;
/***/ }),
/***/ "./src/app/guards/auth.guard.ts":
/*!**************************************!*\
!*** ./src/app/guards/auth.guard.ts ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var session_logger_service_1 = __webpack_require__(/*! @app/core/services/session-logger.service */ "./src/app/infrastructure/core/services/session-logger.service.ts");
var application_storage_service_1 = __webpack_require__(/*! @app/shared/services/application-storage.service */ "./src/app/infrastructure/shared/services/application-storage.service.ts");
var STORAGE_TOKEN_KEY = 'starkwood.token';
var AuthGuard = /** @class */ (function () {
function AuthGuard(router, sessionLogger, applicationStorage) {
this.router = router;
this.sessionLogger = sessionLogger;
this.applicationStorage = applicationStorage;
}
AuthGuard.prototype.canActivate = function (route, state) {
if (this.sessionLogger.isLoggedIn()) {
var data = route.data;
var currentUser = this.sessionLogger.getUserInfo();
if (currentUser == null) {
this.router.navigate(['/']);
return false;
}
if (data.prohibitedRoles == null && data.allowedRoles == null) {
this.router.navigate(['/']);
return false;
}
if (data.prohibitedRoles && data.allowedRoles) {
if (typeof data.prohibitedRoles === 'string' && data.prohibitedRoles === '*') {
var hasRole = data.allowedRoles.includes(currentUser.loginInfo.roleName.toLowerCase());
if (!hasRole) {
this.router.navigate(['/']);
}
return hasRole;
}
else {
var isProhibited = data.prohibitedRoles.includes(currentUser.loginInfo.roleName.toLowerCase());
if (isProhibited) {
this.router.navigate(['/']);
}
return !isProhibited;
}
}
return false;
}
this.router.navigate(['/login'], { queryParams: { returnUrl: state.url } });
return false;
};
AuthGuard = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [router_1.Router,
session_logger_service_1.SessionLoggerService,
application_storage_service_1.ApplicationStorageService])
], AuthGuard);
return AuthGuard;
}());
exports.AuthGuard = AuthGuard;
/***/ }),
/***/ "./src/app/guards/client.guard.ts":
/*!****************************************!*\
!*** ./src/app/guards/client.guard.ts ***!
\****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var session_logger_service_1 = __webpack_require__(/*! @app/core/services/session-logger.service */ "./src/app/infrastructure/core/services/session-logger.service.ts");
var ClientGuard = /** @class */ (function () {
function ClientGuard(sessionLogger, router, activatedRoute) {
this.sessionLogger = sessionLogger;
this.router = router;
this.activatedRoute = activatedRoute;
}
ClientGuard.prototype.canActivate = function (next, state) {
if (window.location.pathname === '/admin' && this.sessionLogger.getUserInfo().loginInfo.roleName !== 'Client') {
return true;
}
else if (this.sessionLogger.getUserInfo().loginInfo.roleName === 'Client') {
if (window.location.pathname === '/client') {
return true;
}
else {
this.router.navigate(['/client']);
return true;
}
}
else if (this.sessionLogger.getUserInfo().loginInfo.roleName === 'admin') {
return true;
}
else {
return true;
}
};
ClientGuard = tslib_1.__decorate([
core_1.Injectable({
providedIn: 'root'
}),
tslib_1.__metadata("design:paramtypes", [session_logger_service_1.SessionLoggerService,
router_1.Router,
router_1.ActivatedRoute])
], ClientGuard);
return ClientGuard;
}());
exports.ClientGuard = ClientGuard;
/***/ }),
/***/ "./src/app/guards/login.guard.ts":
/*!***************************************!*\
!*** ./src/app/guards/login.guard.ts ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var session_logger_service_1 = __webpack_require__(/*! @app/core/services/session-logger.service */ "./src/app/infrastructure/core/services/session-logger.service.ts");
var LoginGuard = /** @class */ (function () {
function LoginGuard(sessionLogger, router) {
this.sessionLogger = sessionLogger;
this.router = router;
}
LoginGuard.prototype.canActivate = function (next, state) {
if (this.sessionLogger.isLoggedIn()) {
this.router.navigate(['/admin']);
return false;
}
return true;
};
LoginGuard = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [session_logger_service_1.SessionLoggerService,
router_1.Router])
], LoginGuard);
return LoginGuard;
}());
exports.LoginGuard = LoginGuard;
/***/ }),
/***/ "./src/app/guards/role.guard.ts":
/*!**************************************!*\
!*** ./src/app/guards/role.guard.ts ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var session_logger_service_1 = __webpack_require__(/*! @app/core/services/session-logger.service */ "./src/app/infrastructure/core/services/session-logger.service.ts");
var permission_service_1 = __webpack_require__(/*! @app/shared/service/permission.service */ "./src/app/infrastructure/shared/service/permission.service.ts");
var RoleGuard = /** @class */ (function () {
function RoleGuard(sessionLogger, router, permissionSvc) {
this.sessionLogger = sessionLogger;
this.router = router;
this.permissionSvc = permissionSvc;
}
RoleGuard.prototype.canLoad = function (route, segments) {
var data = route.data;
var currentUser = this.sessionLogger.getUserInfo();
if (currentUser == null) {
this.router.navigate(['/']);
return false;
}
if (data.module == null) {
this.router.navigate(['/']);
return false;
}
if (data.module) {
var hasAccess = this.permissionSvc.hasAccess(data.module);
if (!hasAccess) {
this.router.navigate(['/']);
}
return hasAccess;
}
return false;
};
RoleGuard = tslib_1.__decorate([
core_1.Injectable({
providedIn: 'root'
}),
tslib_1.__metadata("design:paramtypes", [session_logger_service_1.SessionLoggerService,
router_1.Router,
permission_service_1.PermissionService])
], RoleGuard);
return RoleGuard;
}());
exports.RoleGuard = RoleGuard;
/***/ }),
/***/ "./src/app/infrastructure/core/core.module.ts":
/*!****************************************************!*\
!*** ./src/app/infrastructure/core/core.module.ts ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var shared_module_1 = __webpack_require__(/*! @app/shared/shared.module */ "./src/app/infrastructure/shared/shared.module.ts");
var session_logger_service_1 = __webpack_require__(/*! @app/core/services/session-logger.service */ "./src/app/infrastructure/core/services/session-logger.service.ts");
var pub_sub_service_1 = __webpack_require__(/*! @app/core/services/pub-sub.service */ "./src/app/infrastructure/core/services/pub-sub.service.ts");
/**
* This module handles all the singleton services
*/
var CoreModule = /** @class */ (function () {
function CoreModule(parentModule) {
if (parentModule) {
throw new Error('CoreModule is already loaded. Import it in the AppModule only');
}
}
CoreModule_1 = CoreModule;
CoreModule.forRoot = function () {
return {
ngModule: CoreModule_1,
providers: [session_logger_service_1.SessionLoggerService, pub_sub_service_1.PubSubService]
};
};
var CoreModule_1;
CoreModule = CoreModule_1 = tslib_1.__decorate([
core_1.NgModule({
imports: [
shared_module_1.SharedModule
],
exports: [],
declarations: [],
providers: [session_logger_service_1.SessionLoggerService, pub_sub_service_1.PubSubService]
}),
tslib_1.__param(0, core_1.Optional()), tslib_1.__param(0, core_1.SkipSelf()),
tslib_1.__metadata("design:paramtypes", [CoreModule])
], CoreModule);
return CoreModule;
}());
exports.CoreModule = CoreModule;
/***/ }),
/***/ "./src/app/infrastructure/core/services/pub-sub.service.ts":
/*!*****************************************************************!*\
!*** ./src/app/infrastructure/core/services/pub-sub.service.ts ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var rxjs_1 = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/**
* Publisher/Subscriber Service
*/
var PubSubService = /** @class */ (function () {
function PubSubService() {
this.events = new Map();
}
/**
* Subscribes the instance of the assigned event name
* @param eventName
* Event name of the delegate
*/
PubSubService.prototype.On = function (eventName) {
if (!this.events.has(eventName.toString())) {
this.events.set(eventName.toString(), new rxjs_1.Subject());
}
return this.events.get(eventName.toString());
};
/**
* Broadcast data to the specified event channel
* @param eventName
* Event name of the delegate
* @param eventArgs
* Arguments to pass through the connected channel
*/
PubSubService.prototype.Broadcast = function (eventName, eventArgs) {
if (!this.events.has(eventName.toString())) {
return;
}
this.events.get(eventName.toString()).next(eventArgs);
};
/**
* Destroy subscriptions by eventName
* @param eventName
* event name to destroy
*/
PubSubService.prototype.destroy = function () {
var _this = this;
var eventName = [];
for (var _i = 0; _i < arguments.length; _i++) {
eventName[_i] = arguments[_i];
}
eventName.forEach(function (e) {
if (_this.events.has(e)) {
_this.events.get(e).unsubscribe();
_this.events.delete(e);
}
});
};
PubSubService = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [])
], PubSubService);
return PubSubService;
}());
exports.PubSubService = PubSubService;
/***/ }),
/***/ "./src/app/infrastructure/core/services/session-logger.service.ts":
/*!************************************************************************!*\
!*** ./src/app/infrastructure/core/services/session-logger.service.ts ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var user_model_1 = __webpack_require__(/*! @app/data/models/user.model */ "./src/app/infrastructure/data/models/user.model.ts");
var application_storage_service_1 = __webpack_require__(/*! @app/shared/services/application-storage.service */ "./src/app/infrastructure/shared/services/application-storage.service.ts");
var SessionLoggerService = /** @class */ (function () {
function SessionLoggerService(applicationStorage) {
this.applicationStorage = applicationStorage;
this.currentUserInfo = null;
}
SessionLoggerService.prototype.getUserInfo = function () {
return this.currentUserInfo ? this.currentUserInfo : null;
};
SessionLoggerService.prototype.isLoggedIn = function () {
return typeof this.currentUserInfo !== 'undefined' &&
this.currentUserInfo !== null;
};
SessionLoggerService.prototype.logout = function () {
this.applicationStorage.RemoveItem(application_storage_service_1.ApplicationStorageKey.token);
this.applicationStorage.RemoveItem(application_storage_service_1.ApplicationStorageKey.userInfo);
};
SessionLoggerService = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [application_storage_service_1.ApplicationStorageService])
], SessionLoggerService);
return SessionLoggerService;
}());
exports.SessionLoggerService = SessionLoggerService;
var CurrentUser = /** @class */ (function (_super) {
tslib_1.__extends(CurrentUser, _super);
function CurrentUser() {
return _super !== null && _super.apply(this, arguments) || this;
}
return CurrentUser;
}(user_model_1.User));
exports.CurrentUser = CurrentUser;
/***/ }),
/***/ "./src/app/infrastructure/data/ajax/common-ajax.service.ts":
/*!*****************************************************************!*\
!*** ./src/app/infrastructure/data/ajax/common-ajax.service.ts ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var http_1 = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
var common_ajax_base_1 = __webpack_require__(/*! ../common-ajax-base */ "./src/app/infrastructure/data/common-ajax-base.ts");
var operators_1 = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var CommonAjaxService = /** @class */ (function (_super) {
tslib_1.__extends(CommonAjaxService, _super);
function CommonAjaxService(http) {
var _this = _super.call(this) || this;
_this.http = http;
return _this;
}
CommonAjaxService.prototype.get = function (path, options) {
return this.http.get(path, options).pipe(operators_1.catchError(this.handleError));
};
CommonAjaxService.prototype.post = function (path, payload, options) {
return this.http.post(path, payload, options).pipe(operators_1.catchError(this.handleError));
};
CommonAjaxService.prototype.put = function (id, path, payload, options) {
return this.http.put(path + "/" + id, payload, options).pipe(operators_1.catchError(this.handleError));
};
CommonAjaxService.prototype.patch = function (id, path, payload, options) {
return this.http.patch(path + "/" + id, payload, options).pipe(operators_1.catchError(this.handleError));
};
CommonAjaxService.prototype.delete = function (id, path, options) {
return this.http.delete(path + "/" + id, options).pipe(operators_1.catchError(this.handleError));
};
CommonAjaxService.prototype.request = function (method, path, options) {
return this.http.request(method, path, options).pipe(operators_1.catchError(this.handleError));
};
CommonAjaxService.prototype.getBlob = function (path) {
return this.http.request('get', path, {
responseType: 'blob'
}).pipe(operators_1.mergeMap(function (source) {
return new Promise(function (resolve, reject) {
var reader = new FileReader();
reader.readAsDataURL(source);
reader.onload = function (e) {
resolve(e.target.result);
};
});
}), operators_1.catchError(this.handleError));
};
CommonAjaxService = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [http_1.HttpClient])
], CommonAjaxService);
return CommonAjaxService;
}(common_ajax_base_1.CommonAjaxBase));
exports.CommonAjaxService = CommonAjaxService;
var CommonAjaxOptions = /** @class */ (function () {
function CommonAjaxOptions() {
}
return CommonAjaxOptions;
}());
exports.CommonAjaxOptions = CommonAjaxOptions;
/***/ }),
/***/ "./src/app/infrastructure/data/auth/auth.service.ts":
/*!**********************************************************!*\
!*** ./src/app/infrastructure/data/auth/auth.service.ts ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var rxjs_1 = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var http_1 = __webpack_require__(/*! ../../../../../node_modules/@angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
var environment_1 = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
var common_ajax_base_1 = __webpack_require__(/*! ../common-ajax-base */ "./src/app/infrastructure/data/common-ajax-base.ts");
var operators_1 = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var AuthService = /** @class */ (function (_super) {
tslib_1.__extends(AuthService, _super);
function AuthService(http) {
var _this = _super.call(this) || this;
_this.http = http;
_this.authToken = new rxjs_1.BehaviorSubject(null);
_this.authenticated = new rxjs_1.BehaviorSubject(false);
return _this;
}
Object.defineProperty(AuthService.prototype, "accessToken", {
get: function () {
return this.authToken.getValue()
? this.authToken.getValue().access_token
: null;
},
enumerable: true,
configurable: true
});
Object.defineProperty(AuthService.prototype, "basicAuth", {
get: function () {
return btoa(this.API_TOKEN_USERNAME + ":" + this.API_TOKEN_PASS);
},
enumerable: true,
configurable: true
});
AuthService.prototype.login = function (username, password) {
var url = environment_1.environment.apiUrl + "/oauth/token";
var body = new http_1.HttpParams()
.set('grant_type', 'password')
.set('username', username)
.set('password', password);
return this.http
.post(url, body, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
'Authorization': "Basic " + this.basicAuth
}
})
.pipe(operators_1.catchError(this.handleError));
};
AuthService.prototype.getUserInfo = function (username) {
var url = environment_1.environment.apiUrl + "/users/me";
return this.http
.get(url)
.pipe(operators_1.catchError(this.handleError));
};
AuthService = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [http_1.HttpClient])
], AuthService);
return AuthService;
}(common_ajax_base_1.CommonAjaxBase));
exports.AuthService = AuthService;
var AuthToken = /** @class */ (function () {
function AuthToken() {
}
return AuthToken;
}());
exports.AuthToken = AuthToken;
/***/ }),
/***/ "./src/app/infrastructure/data/common-ajax-base.ts":
/*!*********************************************************!*\
!*** ./src/app/infrastructure/data/common-ajax-base.ts ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var rxjs_1 = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var constants_1 = __webpack_require__(/*! @app/common/constants */ "./src/app/common/constants.ts");
var CommonAjaxBase = /** @class */ (function () {
function CommonAjaxBase() {
this.API_TOKEN_USERNAME = constants_1.AppConstants.API_TOKEN_USERNAME;
this.API_TOKEN_PASS = constants_1.AppConstants.API_TOKEN_PASS;
}
CommonAjaxBase.prototype.handleError = function (error) {
var errorResponse = null;
if (error.error instanceof ErrorEvent) {
// A client-side or network error occurred. Handle it accordingly.
console.error('An error occurred:', error);
errorResponse = null;
}
else if (error.error instanceof ProgressEvent) {
errorResponse = error;
console.error(error.message);
}
else {
// The backend returned an unsuccessful response code.
// The response body may contain clues as to what went wrong,
console.error("Backend returned code " + error.status + ", " +
"body was: ", error.error);
errorResponse = error;
}
// return an throwError with a user-facing error message
return rxjs_1.throwError(errorResponse);
};
CommonAjaxBase.prototype.fetchAsnyc = function (promise) {
return promise
.then(function (data) { return ({ data: data, error: null }); })
.catch(function (error) { return ({ error: error, data: null }); });
};
return CommonAjaxBase;
}());
exports.CommonAjaxBase = CommonAjaxBase;
/***/ }),
/***/ "./src/app/infrastructure/data/config/data-http-interceptor.ts":
/*!*********************************************************************!*\
!*** ./src/app/infrastructure/data/config/data-http-interceptor.ts ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var http_1 = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
var operators_1 = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var application_storage_service_1 = __webpack_require__(/*! @app/shared/services/application-storage.service */ "./src/app/infrastructure/shared/services/application-storage.service.ts");
var session_logger_service_1 = __webpack_require__(/*! @app/core/services/session-logger.service */ "./src/app/infrastructure/core/services/session-logger.service.ts");
var utilities_service_1 = __webpack_require__(/*! @app/shared/services/utilities.service */ "./src/app/infrastructure/shared/services/utilities.service.ts");
var DataHttpInterceptor = /** @class */ (function () {
function DataHttpInterceptor(applicationStorage, sessionLogger, utilities) {
this.applicationStorage = applicationStorage;
this.sessionLogger = sessionLogger;
this.utilities = utilities;
}
DataHttpInterceptor.prototype.intercept = function (req, next) {
var _this = this;
var token = this.applicationStorage.GetItem(application_storage_service_1.ApplicationStorageKey.token);
if (token && this.utilities.validURL(req.url)) {
var tokenData = JSON.parse(token);
if (tokenData.hasOwnProperty('access_token')) {
req = req.clone({ headers: req.headers.set('Authorization', "Bearer " + tokenData.access_token) });
}
}
return next.handle(req).pipe(operators_1.tap(function (event) {
if (event instanceof http_1.HttpResponse) {
// do stuff with response if you want
}
}, function (err) {
if (err instanceof http_1.HttpErrorResponse) {
console.log('err: ', err);
if (err.status === 401 || err.status === 403) {
_this.sessionLogger.logout();
location.reload();
}
}
}));
};
DataHttpInterceptor = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [application_storage_service_1.ApplicationStorageService,
session_logger_service_1.SessionLoggerService,
utilities_service_1.UtilitiesService])
], DataHttpInterceptor);
return DataHttpInterceptor;
}());
exports.DataHttpInterceptor = DataHttpInterceptor;
/***/ }),
/***/ "./src/app/infrastructure/data/config/external-config.service.ts":
/*!***********************************************************************!*\
!*** ./src/app/infrastructure/data/config/external-config.service.ts ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var http_1 = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
var environment_1 = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/**
* This services is needed by angular4-hal module
*/
var ExternalConfigService = /** @class */ (function () {
function ExternalConfigService(http) {
this.http = http;
}
ExternalConfigService.prototype.deserialize = function () {
};
ExternalConfigService.prototype.getExternalConfiguration = function () {
return null;
};
ExternalConfigService.prototype.getHttp = function () {
return this.http;
};
ExternalConfigService.prototype.getProxyUri = function () {
return null;
};
ExternalConfigService.prototype.getRootUri = function () {
return environment_1.environment.apiUrl;
};
ExternalConfigService.prototype.serialize = function () {
};
ExternalConfigService.prototype.setExternalConfiguration = function (externalConfiguration) {
};
ExternalConfigService = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [http_1.HttpClient])
], ExternalConfigService);
return ExternalConfigService;
}());
exports.ExternalConfigService = ExternalConfigService;
/***/ }),
/***/ "./src/app/infrastructure/data/data.module.ts":
/*!****************************************************!*\
!*** ./src/app/infrastructure/data/data.module.ts ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
var http_1 = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
var data_http_interceptor_1 = __webpack_require__(/*! ./config/data-http-interceptor */ "./src/app/infrastructure/data/config/data-http-interceptor.ts");
var angular4_hal_1 = __webpack_require__(/*! angular4-hal */ "./node_modules/angular4-hal/index.js");
var external_config_service_1 = __webpack_require__(/*! ./config/external-config.service */ "./src/app/infrastructure/data/config/external-config.service.ts");
var auth_service_1 = __webpack_require__(/*! ./auth/auth.service */ "./src/app/infrastructure/data/auth/auth.service.ts");
var shared_module_1 = __webpack_require__(/*! @app/shared/shared.module */ "./src/app/infrastructure/shared/shared.module.ts");
var common_ajax_service_1 = __webpack_require__(/*! ./ajax/common-ajax.service */ "./src/app/infrastructure/data/ajax/common-ajax.service.ts");
var project_media_files_service_1 = __webpack_require__(/*! ./services/project/project-media-files.service */ "./src/app/infrastructure/data/services/project/project-media-files.service.ts");
var DataModule = /** @class */ (function () {
function DataModule() {
}
DataModule = tslib_1.__decorate([
core_1.NgModule({
imports: [
common_1.CommonModule,
http_1.HttpClientModule,
angular4_hal_1.AngularHalModule,
shared_module_1.SharedModule
],
declarations: [],
providers: [
common_ajax_service_1.CommonAjaxService,
auth_service_1.AuthService,
{
provide: http_1.HTTP_INTERCEPTORS,
useClass: data_http_interceptor_1.DataHttpInterceptor,
multi: true
},
{
provide: 'ExternalConfigurationService',
useClass: external_config_service_1.ExternalConfigService
},
project_media_files_service_1.ProjectMediaFilesService
]
})
], DataModule);
return DataModule;
}());
exports.DataModule = DataModule;
/***/ }),
/***/ "./src/app/infrastructure/data/models/base.model.ts":
/*!**********************************************************!*\
!*** ./src/app/infrastructure/data/models/base.model.ts ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var angular4_hal_1 = __webpack_require__(/*! angular4-hal */ "./node_modules/angular4-hal/index.js");
var BaseModel = /** @class */ (function (_super) {
tslib_1.__extends(BaseModel, _super);
function BaseModel(_a) {
if (_a === void 0) { _a = {}; }
var props = tslib_1.__rest(_a, []);
var _this = _super.call(this) || this;
// convert object to resource model, instead of type casting
angular4_hal_1.ResourceHelper.instantiateResource(_this, props);
return _this;
}
return BaseModel;
}(angular4_hal_1.Resource));
exports.BaseModel = BaseModel;
/***/ }),
/***/ "./src/app/infrastructure/data/models/media-file.model.ts":
/*!****************************************************************!*\
!*** ./src/app/infrastructure/data/models/media-file.model.ts ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var base_model_1 = __webpack_require__(/*! ./base.model */ "./src/app/infrastructure/data/models/base.model.ts");
var MediaFile = /** @class */ (function (_super) {
tslib_1.__extends(MediaFile, _super);
function MediaFile() {
return _super !== null && _super.apply(this, arguments) || this;
}
return MediaFile;
}(base_model_1.BaseModel));
exports.MediaFile = MediaFile;
/***/ }),
/***/ "./src/app/infrastructure/data/models/project/amenity.model.ts":
/*!*********************************************************************!*\
!*** ./src/app/infrastructure/data/models/project/amenity.model.ts ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var base_model_1 = __webpack_require__(/*! ../base.model */ "./src/app/infrastructure/data/models/base.model.ts");
var Amenity = /** @class */ (function (_super) {
tslib_1.__extends(Amenity, _super);
function Amenity() {
return _super !== null && _super.apply(this, arguments) || this;
}
return Amenity;
}(base_model_1.BaseModel));
exports.Amenity = Amenity;
/***/ }),
/***/ "./src/app/infrastructure/data/models/project/block.model.ts":
/*!*******************************************************************!*\
!*** ./src/app/infrastructure/data/models/project/block.model.ts ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var base_model_1 = __webpack_require__(/*! ../base.model */ "./src/app/infrastructure/data/models/base.model.ts");
var unit_model_1 = __webpack_require__(/*! ./unit.model */ "./src/app/infrastructure/data/models/project/unit.model.ts");
var Block = /** @class */ (function (_super) {
tslib_1.__extends(Block, _super);
function Block() {
return _super !== null && _super.apply(this, arguments) || this;
}
Block.prototype.getUnits = function () {
return this.getRelationArray(unit_model_1.Unit, 'units');
};
return Block;
}(base_model_1.BaseModel));
exports.Block = Block;
/***/ }),
/***/ "./src/app/infrastructure/data/models/project/phase.model.ts":
/*!*******************************************************************!*\
!*** ./src/app/infrastructure/data/models/project/phase.model.ts ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var base_model_1 = __webpack_require__(/*! ../base.model */ "./src/app/infrastructure/data/models/base.model.ts");
var media_file_model_1 = __webpack_require__(/*! ../media-file.model */ "./src/app/infrastructure/data/models/media-file.model.ts");
var block_model_1 = __webpack_require__(/*! ./block.model */ "./src/app/infrastructure/data/models/project/block.model.ts");
var amenity_model_1 = __webpack_require__(/*! ./amenity.model */ "./src/app/infrastructure/data/models/project/amenity.model.ts");
var Phase = /** @class */ (function (_super) {
tslib_1.__extends(Phase, _super);
function Phase() {
return _super !== null && _super.apply(this, arguments) || this;
}
Phase.prototype.getBlocks = function () {
return this.getRelationArray(block_model_1.Block, 'blocks');
};
Phase.prototype.getMap = function () {
return this.getRelation(media_file_model_1.MediaFile, 'map');
};
Phase.prototype.getAmenities = function () {
return this.getRelationArray(amenity_model_1.Amenity, 'amenities');
};
return Phase;
}(base_model_1.BaseModel));
exports.Phase = Phase;
/***/ }),
/***/ "./src/app/infrastructure/data/models/project/project-media-file.model.ts":
/*!********************************************************************************!*\
!*** ./src/app/infrastructure/data/models/project/project-media-file.model.ts ***!
\********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var media_file_model_1 = __webpack_require__(/*! ../media-file.model */ "./src/app/infrastructure/data/models/media-file.model.ts");
var ProjectMediaFile = /** @class */ (function (_super) {
tslib_1.__extends(ProjectMediaFile, _super);
function ProjectMediaFile() {
return _super !== null && _super.apply(this, arguments) || this;
}
return ProjectMediaFile;
}(media_file_model_1.MediaFile));
exports.ProjectMediaFile = ProjectMediaFile;
/***/ }),
/***/ "./src/app/infrastructure/data/models/project/project.model.ts":
/*!*********************************************************************!*\
!*** ./src/app/infrastructure/data/models/project/project.model.ts ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var base_model_1 = __webpack_require__(/*! ../base.model */ "./src/app/infrastructure/data/models/base.model.ts");
var phase_model_1 = __webpack_require__(/*! ./phase.model */ "./src/app/infrastructure/data/models/project/phase.model.ts");
var amenity_model_1 = __webpack_require__(/*! ./amenity.model */ "./src/app/infrastructure/data/models/project/amenity.model.ts");
var unit_type_model_1 = __webpack_require__(/*! ./unit-type.model */ "./src/app/infrastructure/data/models/project/unit-type.model.ts");
var project_media_file_model_1 = __webpack_require__(/*! ./project-media-file.model */ "./src/app/infrastructure/data/models/project/project-media-file.model.ts");
var Project = /** @class */ (function (_super) {
tslib_1.__extends(Project, _super);
function Project() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.phases = [];
_this.amenities = [];
_this['unit-types'] = [];
_this.images = [];
return _this;
}
Project.prototype.getPhases = function () {
return this.getRelationArray(phase_model_1.Phase, 'phases');
};
Project.prototype.getAmenities = function () {
return this.getRelationArray(amenity_model_1.Amenity, 'amenities');
};
Project.prototype.getUnitTypes = function () {
return this.getRelationArray(unit_type_model_1.UnitType, 'unit-types');
};
Project.prototype.getImages = function () {
return this.getRelationArray(project_media_file_model_1.ProjectMediaFile, 'images');
};
Project.prototype.addImage = function (file) {
return this.updateRelation('images', file);
};
Project.prototype.removeImage = function (file) {
return this.deleteRelation('images', file);
};
return Project;
}(base_model_1.BaseModel));
exports.Project = Project;
/***/ }),
/***/ "./src/app/infrastructure/data/models/project/temp-reservation.model.ts":
/*!******************************************************************************!*\
!*** ./src/app/infrastructure/data/models/project/temp-reservation.model.ts ***!
\******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var base_model_1 = __webpack_require__(/*! @app/data/models/base.model */ "./src/app/infrastructure/data/models/base.model.ts");
var TempReservation = /** @class */ (function (_super) {
tslib_1.__extends(TempReservation, _super);
function TempReservation() {
return _super !== null && _super.apply(this, arguments) || this;
}
return TempReservation;
}(base_model_1.BaseModel));
exports.TempReservation = TempReservation;
/***/ }),
/***/ "./src/app/infrastructure/data/models/project/unit-status.model.ts":
/*!*************************************************************************!*\
!*** ./src/app/infrastructure/data/models/project/unit-status.model.ts ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var UnitStatus;
(function (UnitStatus) {
UnitStatus["AVAILABLE"] = "AVAILABLE";
UnitStatus["TEMP_RESERVED"] = "TEMP_RESERVED";
UnitStatus["RESERVED"] = "RESERVED";
UnitStatus["SOLD"] = "SOLD";
})(UnitStatus = exports.UnitStatus || (exports.UnitStatus = {}));
/***/ }),
/***/ "./src/app/infrastructure/data/models/project/unit-type.model.ts":
/*!***********************************************************************!*\
!*** ./src/app/infrastructure/data/models/project/unit-type.model.ts ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var base_model_1 = __webpack_require__(/*! ../base.model */ "./src/app/infrastructure/data/models/base.model.ts");
var UnitType = /** @class */ (function (_super) {
tslib_1.__extends(UnitType, _super);
function UnitType() {
return _super !== null && _super.apply(this, arguments) || this;
}
return UnitType;
}(base_model_1.BaseModel));
exports.UnitType = UnitType;
/***/ }),
/***/ "./src/app/infrastructure/data/models/project/unit.model.ts":
/*!******************************************************************!*\
!*** ./src/app/infrastructure/data/models/project/unit.model.ts ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var unit_type_model_1 = __webpack_require__(/*! ./unit-type.model */ "./src/app/infrastructure/data/models/project/unit-type.model.ts");
var base_model_1 = __webpack_require__(/*! ../base.model */ "./src/app/infrastructure/data/models/base.model.ts");
var block_model_1 = __webpack_require__(/*! @app/data/models/project/block.model */ "./src/app/infrastructure/data/models/project/block.model.ts");
var Unit = /** @class */ (function (_super) {
tslib_1.__extends(Unit, _super);
function Unit() {
return _super !== null && _super.apply(this, arguments) || this;
}
Unit.prototype.getBlock = function () {
return this.getRelation(block_model_1.Block, 'block');
};
Unit.prototype.getType = function () {
return this.getRelation(unit_type_model_1.UnitType, 'type');
};
return Unit;
}(base_model_1.BaseModel));
exports.Unit = Unit;
/***/ }),
/***/ "./src/app/infrastructure/data/models/tmpReservaion.model.ts":
/*!*******************************************************************!*\
!*** ./src/app/infrastructure/data/models/tmpReservaion.model.ts ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var TmpReservation = /** @class */ (function () {
function TmpReservation() {
}
return TmpReservation;
}());
exports.TmpReservation = TmpReservation;
/***/ }),
/***/ "./src/app/infrastructure/data/models/user.model.ts":
/*!**********************************************************!*\
!*** ./src/app/infrastructure/data/models/user.model.ts ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var base_model_1 = __webpack_require__(/*! @app/data/models/base.model */ "./src/app/infrastructure/data/models/base.model.ts");
var media_file_model_1 = __webpack_require__(/*! @app/data/models/media-file.model */ "./src/app/infrastructure/data/models/media-file.model.ts");
var User = /** @class */ (function (_super) {
tslib_1.__extends(User, _super);
function User() {
return _super !== null && _super.apply(this, arguments) || this;
}
User.prototype.getProfilePhoto = function () {
return this.getRelation(media_file_model_1.MediaFile, 'profilePhoto');
};
return User;
}(base_model_1.BaseModel));
exports.User = User;
/***/ }),
/***/ "./src/app/infrastructure/data/services/base-service.ts":
/*!**************************************************************!*\
!*** ./src/app/infrastructure/data/services/base-service.ts ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var angular4_hal_1 = __webpack_require__(/*! angular4-hal */ "./node_modules/angular4-hal/index.js");
var BaseService = /** @class */ (function (_super) {
tslib_1.__extends(BaseService, _super);
function BaseService() {
return _super !== null && _super.apply(this, arguments) || this;
}
BaseService.prototype.fetchAsnyc = function (promise) {
return promise
.then(function (data) { return ({ data: data, error: null }); })
.catch(function (error) { return ({ error: error, data: null }); });
};
return BaseService;
}(angular4_hal_1.RestService));
exports.BaseService = BaseService;
/***/ }),
/***/ "./src/app/infrastructure/data/services/media-file.service.ts":
/*!********************************************************************!*\
!*** ./src/app/infrastructure/data/services/media-file.service.ts ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var media_file_model_1 = __webpack_require__(/*! ../models/media-file.model */ "./src/app/infrastructure/data/models/media-file.model.ts");
var base_service_1 = __webpack_require__(/*! ./base-service */ "./src/app/infrastructure/data/services/base-service.ts");
var MediaFileService = /** @class */ (function (_super) {
tslib_1.__extends(MediaFileService, _super);
function MediaFileService(injector) {
return _super.call(this, media_file_model_1.MediaFile, 'media-files', injector) || this;
}
MediaFileService = tslib_1.__decorate([
core_1.Injectable({
providedIn: 'root'
}),
tslib_1.__metadata("design:paramtypes", [core_1.Injector])
], MediaFileService);
return MediaFileService;
}(base_service_1.BaseService));
exports.MediaFileService = MediaFileService;
/***/ }),
/***/ "./src/app/infrastructure/data/services/project/project-media-files.service.ts":
/*!*************************************************************************************!*\
!*** ./src/app/infrastructure/data/services/project/project-media-files.service.ts ***!
\*************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var project_media_file_model_1 = __webpack_require__(/*! @app/data/models/project/project-media-file.model */ "./src/app/infrastructure/data/models/project/project-media-file.model.ts");
var base_service_1 = __webpack_require__(/*! ../base-service */ "./src/app/infrastructure/data/services/base-service.ts");
var ProjectMediaFilesService = /** @class */ (function (_super) {
tslib_1.__extends(ProjectMediaFilesService, _super);
function ProjectMediaFilesService(injector) {
return _super.call(this, project_media_file_model_1.ProjectMediaFile, 'project-media-files', injector) || this;
}
ProjectMediaFilesService = tslib_1.__decorate([
core_1.Injectable({
providedIn: 'root'
}),
tslib_1.__metadata("design:paramtypes", [core_1.Injector])
], ProjectMediaFilesService);
return ProjectMediaFilesService;
}(base_service_1.BaseService));
exports.ProjectMediaFilesService = ProjectMediaFilesService;
/***/ }),
/***/ "./src/app/infrastructure/data/services/project/project.service.ts":
/*!*************************************************************************!*\
!*** ./src/app/infrastructure/data/services/project/project.service.ts ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var project_model_1 = __webpack_require__(/*! ../../models/project/project.model */ "./src/app/infrastructure/data/models/project/project.model.ts");
var base_service_1 = __webpack_require__(/*! ../base-service */ "./src/app/infrastructure/data/services/base-service.ts");
var ProjectService = /** @class */ (function (_super) {
tslib_1.__extends(ProjectService, _super);
function ProjectService(injector) {
return _super.call(this, project_model_1.Project, 'projects', injector) || this;
}
ProjectService.prototype.getActiveProjects = function (options) {
return this.search('public-all-active', options);
};
ProjectService = tslib_1.__decorate([
core_1.Injectable({
providedIn: 'root'
}),
tslib_1.__metadata("design:paramtypes", [core_1.Injector])
], ProjectService);
return ProjectService;
}(base_service_1.BaseService));
exports.ProjectService = ProjectService;
/***/ }),
/***/ "./src/app/infrastructure/data/services/project/unit.service.ts":
/*!**********************************************************************!*\
!*** ./src/app/infrastructure/data/services/project/unit.service.ts ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var unit_model_1 = __webpack_require__(/*! ../../models/project/unit.model */ "./src/app/infrastructure/data/models/project/unit.model.ts");
var base_service_1 = __webpack_require__(/*! ../base-service */ "./src/app/infrastructure/data/services/base-service.ts");
var UnitService = /** @class */ (function (_super) {
tslib_1.__extends(UnitService, _super);
function UnitService(injector) {
return _super.call(this, unit_model_1.Unit, 'units', injector) || this;
}
UnitService = tslib_1.__decorate([
core_1.Injectable({
providedIn: 'root'
}),
tslib_1.__metadata("design:paramtypes", [core_1.Injector])
], UnitService);
return UnitService;
}(base_service_1.BaseService));
exports.UnitService = UnitService;
/***/ }),
/***/ "./src/app/infrastructure/data/services/temp-reservation.service.ts":
/*!**************************************************************************!*\
!*** ./src/app/infrastructure/data/services/temp-reservation.service.ts ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var temp_reservation_model_1 = __webpack_require__(/*! ../models/project/temp-reservation.model */ "./src/app/infrastructure/data/models/project/temp-reservation.model.ts");
var base_service_1 = __webpack_require__(/*! ./base-service */ "./src/app/infrastructure/data/services/base-service.ts");
var TempReservationService = /** @class */ (function (_super) {
tslib_1.__extends(TempReservationService, _super);
function TempReservationService(injector) {
return _super.call(this, temp_reservation_model_1.TempReservation, 'temp-reservations', injector) || this;
}
TempReservationService = tslib_1.__decorate([
core_1.Injectable({
providedIn: 'root'
}),
tslib_1.__metadata("design:paramtypes", [core_1.Injector])
], TempReservationService);
return TempReservationService;
}(base_service_1.BaseService));
exports.TempReservationService = TempReservationService;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/admin-sidebar/admin-sidebar.component.html":
/*!*********************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/admin-sidebar/admin-sidebar.component.html ***!
\*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "
"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/admin-sidebar/admin-sidebar.component.scss":
/*!*********************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/admin-sidebar/admin-sidebar.component.scss ***!
\*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".admin-sidebar {\n background: #0A2F44;\n color: white;\n width: 220px;\n height: 100%;\n position: relative;\n background-image: url(\"/assets/images/admin-wave.svg\");\n background-position: bottom;\n background-repeat: no-repeat;\n background-size: contain;\n transition: width 0.1s ease-in-out, -webkit-transform 0.1s ease-in-out;\n transition: transform 0.1s ease-in-out, width 0.1s ease-in-out;\n transition: transform 0.1s ease-in-out, width 0.1s ease-in-out, -webkit-transform 0.1s ease-in-out; }\n @media (max-width: 800px) {\n .admin-sidebar {\n width: 0; } }\n @media (max-width: 800px) {\n .admin-sidebar-show .admin-sidebar {\n width: 220px; } }\n .admin-sidebar .admin-sidebar-header .logo {\n cursor: pointer;\n text-decoration: none;\n padding: 10px;\n font-size: 40px;\n text-align: center; }\n .admin-sidebar .admin-sidebar-header .logo img {\n width: 100% !important;\n max-width: 98px;\n height: auto !important; }\n .admin-sidebar .admin-sidebar-body {\n overflow: auto;\n height: 80%; }\n .admin-sidebar .admin-sidebar-footer {\n height: 40px; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL2FwcC9pbmZyYXN0cnVjdHVyZS9zaGFyZWQvY29tcG9uZW50cy9hZG1pbi1zaWRlYmFyL2FkbWluLXNpZGViYXIuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxtQkFBbUI7RUFDbkIsWUFBWTtFQUNaLFlBQVk7RUFDWixZQUFZO0VBQ1osa0JBQWtCO0VBQ2xCLHNEQUFzRDtFQ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ci1zaG93IHtcbiAgICAgICAgQG1lZGlhKG1heC13aWR0aDogODAwcHgpIHtcbiAgICAgICAgICAgIC5hZG1pbi1zaWRlYmFyIHtcbiAgICAgICAgICAgICAgICB3aWR0aDogMjIwcHg7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgdHJhbnNpdGlvbjogdHJhbnNmb3JtIDAuMXMgZWFzZS1pbi1vdXQsXG4gICAgd2lkdGggMC4xcyBlYXNlLWluLW91dDtcbiAgICAuYWRtaW4tc2lkZWJhci1oZWFkZXIge1xuICAgICAgICAubG9nbyB7XG4gICAgICAgICAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgICAgICAgICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gICAgICAgICAgICBwYWRkaW5nOiAxMHB4O1xuICAgICAgICAgICAgZm9udC1zaXplOiA0MHB4O1xuICAgICAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICAgICAgaW1nIHtcbiAgICAgICAgICAgICAgICB3aWR0aDogMTAwJSAhaW1wb3J0YW50O1xuICAgICAgICAgICAgICAgIG1heC13aWR0aDogOThweDtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IGF1dG8gIWltcG9ydGFudDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbiAgICAuYWRtaW4tc2lkZWJhci1ib2R5IHtcbiAgICAgICAgb3ZlcmZsb3c6IGF1dG87XG4gICAgICAgIGhlaWdodDogODAlO1xuICAgIH1cbiAgICAuYWRtaW4tc2lkZWJhci1mb290ZXIge1xuICAgICAgICBoZWlnaHQ6IDQwcHg7XG4gICAgfVxufSJdfQ== */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/admin-sidebar/admin-sidebar.component.ts":
/*!*******************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/admin-sidebar/admin-sidebar.component.ts ***!
\*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var component_base_1 = __webpack_require__(/*! app/common/component-base */ "./src/app/common/component-base.ts");
var admin_sidebar_wrapper_directive_1 = __webpack_require__(/*! @app/shared/directives/admin-sidebar-wrapper.directive */ "./src/app/infrastructure/shared/directives/admin-sidebar-wrapper.directive.ts");
var admin_sidebar_link_directive_1 = __webpack_require__(/*! @app/shared/directives/admin-sidebar-link.directive */ "./src/app/infrastructure/shared/directives/admin-sidebar-link.directive.ts");
var admin_sidebar_header_wrapper_directive_1 = __webpack_require__(/*! @app/shared/directives/admin-sidebar-header-wrapper.directive */ "./src/app/infrastructure/shared/directives/admin-sidebar-header-wrapper.directive.ts");
var AdminSidebarComponent = /** @class */ (function (_super) {
tslib_1.__extends(AdminSidebarComponent, _super);
function AdminSidebarComponent() {
return _super.call(this) || this;
}
AdminSidebarComponent.prototype.ngOnInit = function () {
};
AdminSidebarComponent.prototype.ngAfterContentInit = function () {
};
AdminSidebarComponent.prototype.ngOnDestroy = function () {
};
tslib_1.__decorate([
core_1.ContentChildren(admin_sidebar_wrapper_directive_1.AdminSidebarWrapperDirective),
tslib_1.__metadata("design:type", core_1.QueryList)
], AdminSidebarComponent.prototype, "contentWidget", void 0);
tslib_1.__decorate([
core_1.ContentChildren(admin_sidebar_header_wrapper_directive_1.AdminSidebarHeaderWrapperDirective),
tslib_1.__metadata("design:type", core_1.QueryList)
], AdminSidebarComponent.prototype, "headerWidget", void 0);
tslib_1.__decorate([
core_1.ContentChildren(admin_sidebar_link_directive_1.AdminSidebarLinkDirective),
tslib_1.__metadata("design:type", core_1.QueryList)
], AdminSidebarComponent.prototype, "links", void 0);
AdminSidebarComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-admin-sidebar',
template: __webpack_require__(/*! ./admin-sidebar.component.html */ "./src/app/infrastructure/shared/components/admin-sidebar/admin-sidebar.component.html"),
encapsulation: core_1.ViewEncapsulation.None,
styles: [__webpack_require__(/*! ./admin-sidebar.component.scss */ "./src/app/infrastructure/shared/components/admin-sidebar/admin-sidebar.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [])
], AdminSidebarComponent);
return AdminSidebarComponent;
}(component_base_1.ComponentBase));
exports.AdminSidebarComponent = AdminSidebarComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/admin-topbar/admin-topbar.component.html":
/*!*******************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/admin-topbar/admin-topbar.component.html ***!
\*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n
\n
\n
\n
\n \n {{ fullName }} \n \n \n \n
\n
\n
\n
\n
\n
\n
"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/admin-topbar/admin-topbar.component.scss":
/*!*******************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/admin-topbar/admin-topbar.component.scss ***!
\*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".admin-topbar {\n display: flex;\n justify-content: space-between;\n background: transparent;\n padding: 10px;\n width: 100%;\n min-height: 70px; }\n .admin-topbar .item-left .title {\n font-size: 18px;\n text-transform: uppercase;\n font-weight: 600; }\n .admin-topbar .item-right {\n margin-right: 10px; }\n .admin-topbar .item-right .admin-right-item {\n display: inline-block; }\n .admin-topbar .item-right .admin-right-item .admin-dropdown button {\n font-size: 13px;\n background: transparent; }\n .admin-topbar .item-right .admin-right-item .admin-dropdown .dropdown-menu {\n left: -15% !important; }\n .admin-topbar .item-right .admin-right-item .profile-image {\n height: 30px;\n width: 30px; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL2FwcC9pbmZyYXN0cnVjdHVyZS9zaGFyZWQvY29tcG9uZW50cy9hZG1pbi10b3BiYXIvYWRtaW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JpZ2h0LWl0ZW0ge1xuICAgICAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgICAgICAgICAgLmFkbWluLWRyb3Bkb3duIHtcbiAgICAgICAgICAgICAgICBidXR0b24ge1xuICAgICAgICAgICAgICAgICAgICBmb250LXNpemU6IDEzcHg7XG4gICAgICAgICAgICAgICAgICAgIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAuZHJvcGRvd24tbWVudSB7XG4gICAgICAgICAgICAgICAgICAgIGxlZnQ6IC0xNSUgIWltcG9ydGFudDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAucHJvZmlsZS1pbWFnZXtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IDMwcHg7XG4gICAgICAgICAgICAgICAgd2lkdGg6IDMwcHg7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59Il19 */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/admin-topbar/admin-topbar.component.ts":
/*!*****************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/admin-topbar/admin-topbar.component.ts ***!
\*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var component_base_1 = __webpack_require__(/*! @app/common/component-base */ "./src/app/common/component-base.ts");
var pub_sub_service_1 = __webpack_require__(/*! @app/core/services/pub-sub.service */ "./src/app/infrastructure/core/services/pub-sub.service.ts");
var session_logger_service_1 = __webpack_require__(/*! @app/core/services/session-logger.service */ "./src/app/infrastructure/core/services/session-logger.service.ts");
var app_enum_1 = __webpack_require__(/*! app/app.enum */ "./src/app/app.enum.ts");
var AdminTopbarComponent = /** @class */ (function (_super) {
tslib_1.__extends(AdminTopbarComponent, _super);
function AdminTopbarComponent(PUBSUB, sessionLoggerService) {
var _this = _super.call(this) || this;
_this.PUBSUB = PUBSUB;
_this.sessionLoggerService = sessionLoggerService;
_this.title = '';
_this.onTitleChangeListener = _this.PUBSUB.On(app_enum_1.App.OnAdminTopBarTitleChange)
.subscribe(function (res) {
_this.title = res;
});
var userInfo = _this.sessionLoggerService.getUserInfo();
_this.fullName = userInfo.firstName + ' ' + userInfo.lastName;
return _this;
}
AdminTopbarComponent.prototype.ngOnInit = function () {
};
AdminTopbarComponent.prototype.logout = function () {
this.sessionLoggerService.logout();
window.location.reload();
};
AdminTopbarComponent.prototype.ngOnDestroy = function () {
this.onTitleChangeListener.unsubscribe();
};
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", String)
], AdminTopbarComponent.prototype, "title", void 0);
AdminTopbarComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-admin-topbar',
template: __webpack_require__(/*! ./admin-topbar.component.html */ "./src/app/infrastructure/shared/components/admin-topbar/admin-topbar.component.html"),
styles: [__webpack_require__(/*! ./admin-topbar.component.scss */ "./src/app/infrastructure/shared/components/admin-topbar/admin-topbar.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [pub_sub_service_1.PubSubService,
session_logger_service_1.SessionLoggerService])
], AdminTopbarComponent);
return AdminTopbarComponent;
}(component_base_1.ComponentBase));
exports.AdminTopbarComponent = AdminTopbarComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/busy-indicator/busy-indicator.component.html":
/*!***********************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/busy-indicator/busy-indicator.component.html ***!
\***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n "
/***/ }),
/***/ "./src/app/infrastructure/shared/components/busy-indicator/busy-indicator.component.scss":
/*!***********************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/busy-indicator/busy-indicator.component.scss ***!
\***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".busy-indicator {\n top: 0;\n width: 100%;\n height: 100%;\n z-index: 1000; }\n .busy-indicator .busy-indicator-wrapper {\n background-color: rgba(230, 230, 230, 0.5);\n width: 100%;\n height: 100%; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL2FwcC9pbmZyYXN0cnVjdHVyZS9zaGFyZWQvY29tcG9uZW50cy9idXN5LWluZGljYXRvci9idXN5LWluZGljYXRvci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLE1BQU07RUFDTixXQUFXO0VBQ1gsWUFBWTtFQUNaLGFBQWEsRUFBQTtFQUpqQjtJQU1RLDBDQUEwQztJQUMxQyxXQUFXO0lBQ1gsWUFBWSxFQUFBIiwiZmlsZSI6InNyYy9hcHAvaW5mcmFzdHJ1Y3R1cmUvc2hhcmVkL2NvbXBvbmVudHMvYnVzeS1pbmRpY2F0b3IvYnVzeS1pbmRpY2F0b3IuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuYnVzeS1pbmRpY2F0b3Ige1xuICAgIHRvcDogMDtcbiAgICB3aWR0aDogMTAwJTtcbiAgICBoZWlnaHQ6IDEwMCU7XG4gICAgei1pbmRleDogMTAwMDtcbiAgICAuYnVzeS1pbmRpY2F0b3Itd3JhcHBlciB7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMjMwLCAyMzAsIDIzMCwgMC41KTtcbiAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgIGhlaWdodDogMTAwJTtcbiAgICB9XG59Il19 */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/busy-indicator/busy-indicator.component.ts":
/*!*********************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/busy-indicator/busy-indicator.component.ts ***!
\*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var component_base_1 = __webpack_require__(/*! @app/common/component-base */ "./src/app/common/component-base.ts");
var BusyIndicatorComponent = /** @class */ (function (_super) {
tslib_1.__extends(BusyIndicatorComponent, _super);
function BusyIndicatorComponent() {
var _this = _super.call(this) || this;
_this.position = 'absolute';
_this.isBusy = true;
return _this;
}
BusyIndicatorComponent.prototype.ngOnInit = function () {
};
BusyIndicatorComponent.prototype.ngOnDestroy = function () {
};
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], BusyIndicatorComponent.prototype, "position", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], BusyIndicatorComponent.prototype, "isBusy", void 0);
BusyIndicatorComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-busy-indicator',
template: __webpack_require__(/*! ./busy-indicator.component.html */ "./src/app/infrastructure/shared/components/busy-indicator/busy-indicator.component.html"),
styles: [__webpack_require__(/*! ./busy-indicator.component.scss */ "./src/app/infrastructure/shared/components/busy-indicator/busy-indicator.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [])
], BusyIndicatorComponent);
return BusyIndicatorComponent;
}(component_base_1.ComponentBase));
exports.BusyIndicatorComponent = BusyIndicatorComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/file-drawer-viewer/file-drawer-viewer.component.html":
/*!*******************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/file-drawer-viewer/file-drawer-viewer.component.html ***!
\*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n
\n
\n Files \n \n \n Download \n \n \n {{file.item.fileName}} \n
\n {{file.item.mimeType}}
\n \n \n
\n
\n Remove \n
\n
"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/file-drawer-viewer/file-drawer-viewer.component.scss":
/*!*******************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/file-drawer-viewer/file-drawer-viewer.component.scss ***!
\*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".file-drawer-viewer {\n position: relative; }\n .file-drawer-viewer-body .mat-list {\n padding-bottom: 50px;\n max-height: 80vh;\n overflow-x: scroll; }\n .file-drawer-viewer-body .mat-list .file-item {\n cursor: pointer; }\n .file-drawer-viewer .actions {\n min-height: 50px;\n bottom: 0;\n position: fixed;\n padding: 10px;\n width: 100%;\n background: white; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL2FwcC9pbmZyYXN0cnVjdHVyZS9zaGFyZWQvY29tcG9uZW50cy9maWxlLWRyYXdlci12aWV3ZXIvZmlsZS1kcmF3ZXItdmlld2VyLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksa0JBQWtCLEVBQUE7RUFFakI7SUFFTyxvQkFBb0I7SUFDcEIsZ0JBQWdCO0lBQ2hCLGtCQUFrQixFQUFBO0VBSnpCO01BTVcsZUFBZSxFQUFBO0VBVC9CO0lBY1EsZ0JBQWdCO0lBQ2hCLFNBQVM7SUFDVCxlQUFlO0lBQ2YsYUFBYTtJQUNiLFdBQVc7SUFDWCxpQkFBaUIsRUFBQSIsImZpbGUiOiJzcmMvYXBwL2luZnJhc3RydWN0dXJlL3NoYXJlZC9jb21wb25lbnRzL2ZpbGUtZHJhd2VyLXZpZXdlci9maWxlLWRyYXdlci12aWV3ZXIuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZmlsZS1kcmF3ZXItdmlld2VyIHtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgJi1oZWFkZXIge31cbiAgICAmLWJvZHkge1xuICAgICAgICAubWF0LWxpc3Qge1xuICAgICAgICAgICAgcGFkZGluZy1ib3R0b206IDUwcHg7XG4gICAgICAgICAgICBtYXgtaGVpZ2h0OiA4MHZoO1xuICAgICAgICAgICAgb3ZlcmZsb3cteDogc2Nyb2xsO1xuICAgICAgICAgICAgLmZpbGUtaXRlbXtcbiAgICAgICAgICAgICAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgLmFjdGlvbnMge1xuICAgICAgICBtaW4taGVpZ2h0OiA1MHB4O1xuICAgICAgICBib3R0b206IDA7XG4gICAgICAgIHBvc2l0aW9uOiBmaXhlZDtcbiAgICAgICAgcGFkZGluZzogMTBweDtcbiAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgIGJhY2tncm91bmQ6IHdoaXRlO1xuICAgIH1cbn0iXX0= */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/file-drawer-viewer/file-drawer-viewer.component.ts":
/*!*****************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/file-drawer-viewer/file-drawer-viewer.component.ts ***!
\*****************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var component_base_1 = __webpack_require__(/*! @app/common/component-base */ "./src/app/common/component-base.ts");
var material_1 = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
var lightbox_1 = __webpack_require__(/*! @ngx-gallery/lightbox */ "./node_modules/@ngx-gallery/lightbox/fesm5/ngx-gallery-lightbox.js");
var core_2 = __webpack_require__(/*! @ngx-gallery/core */ "./node_modules/@ngx-gallery/core/fesm5/ngx-gallery-core.js");
var media_file_service_1 = __webpack_require__(/*! @app/data/services/media-file.service */ "./src/app/infrastructure/data/services/media-file.service.ts");
var common_ajax_service_1 = __webpack_require__(/*! @app/data/ajax/common-ajax.service */ "./src/app/infrastructure/data/ajax/common-ajax.service.ts");
var session_logger_service_1 = __webpack_require__(/*! @app/core/services/session-logger.service */ "./src/app/infrastructure/core/services/session-logger.service.ts");
var application_storage_service_1 = __webpack_require__(/*! @app/shared/services/application-storage.service */ "./src/app/infrastructure/shared/services/application-storage.service.ts");
var file_saver_1 = __webpack_require__(/*! file-saver */ "./node_modules/file-saver/FileSaver.js");
var FileDrawerViewerComponent = /** @class */ (function (_super) {
tslib_1.__extends(FileDrawerViewerComponent, _super);
function FileDrawerViewerComponent(bottomSheetRef, data, lightbox, gallery, MEDIA_FILE_SERVICE, commonAjaxService, applicationStorage, sessionLogger) {
var _this = _super.call(this) || this;
_this.bottomSheetRef = bottomSheetRef;
_this.data = data;
_this.lightbox = lightbox;
_this.gallery = gallery;
_this.MEDIA_FILE_SERVICE = MEDIA_FILE_SERVICE;
_this.commonAjaxService = commonAjaxService;
_this.applicationStorage = applicationStorage;
_this.sessionLogger = sessionLogger;
_this.itemsource = [];
_this.source = [];
_this.lightBoxItems = [];
_this.mode = 'update';
_this.itemsource = data.items;
_this.mode = data.mode;
_this.source = [];
var lightboxRef = _this.gallery.ref('lightbox');
lightboxRef.reset();
if (_this.mode === 'readonly') {
_this.IS_BUSY = true;
_this.processFiles();
_this.IS_BUSY = false;
_this.populate(_this.itemsource, lightboxRef);
}
else {
_this.populate(_this.itemsource, lightboxRef);
}
return _this;
}
FileDrawerViewerComponent.prototype.populate = function (itemsource, lightboxRef) {
if (itemsource) {
for (var _i = 0, itemsource_1 = itemsource; _i < itemsource_1.length; _i++) {
var x = itemsource_1[_i];
this.source.push({
selected: false,
item: x
});
if (x.mimeType.includes('application/pdf') || x.mimeType.includes('text/')) {
lightboxRef.addIframe({
src: x.content || x['_links']['preview'].href + "?access_token=" + this.sessionLogger.access_token,
thumb: '',
title: x.fileName,
type: x.mimeType
});
}
else if (x.mimeType.includes('image')) {
lightboxRef.addImage({
src: x.content || x['_links']['preview'].href + "?access_token=" + this.sessionLogger.access_token,
thumb: x.content || x['_links']['preview'].href + "?access_token=" + this.sessionLogger.access_token,
title: x.fileName
});
}
}
}
};
FileDrawerViewerComponent.prototype.processFiles = function () {
if (this.itemsource) {
var token = this.applicationStorage.GetItem(application_storage_service_1.ApplicationStorageKey.token);
if (token) {
var source = JSON.parse(token);
for (var _i = 0, _a = this.itemsource; _i < _a.length; _i++) {
var x = _a[_i];
x.content = x._links['preview'].href + "?access_token=" + source.access_token;
}
}
}
};
FileDrawerViewerComponent.prototype.ngOnInit = function () {
};
FileDrawerViewerComponent.prototype.viewFile = function (index) {
this.lightbox.open(index, 'lightbox');
};
FileDrawerViewerComponent.prototype.canDelete = function () {
var can = false;
for (var _i = 0, _a = this.source; _i < _a.length; _i++) {
var x = _a[_i];
if (x.selected) {
can = true;
break;
}
}
return can;
};
FileDrawerViewerComponent.prototype.delete = function () {
var toDeleteFiles = this.source
.filter(function (item) { return item.selected; });
this.bottomSheetRef.dismiss(toDeleteFiles);
};
FileDrawerViewerComponent.prototype.download = function (doc) {
var _this = this;
this.commonAjaxService.getBlob(doc.content)
.subscribe(function (res) {
file_saver_1.saveAs(_this.base64toBlob(res, doc.mimeType), doc.fileName);
}, function (err) {
});
};
FileDrawerViewerComponent.prototype.base64toBlob = function (base64Data, contentType) {
contentType = contentType || '';
var sliceSize = 1024;
var byteCharacters = atob(base64Data.split(',')[1]);
var bytesLength = byteCharacters.length;
var slicesCount = Math.ceil(bytesLength / sliceSize);
var byteArrays = new Array(slicesCount);
for (var sliceIndex = 0; sliceIndex < slicesCount; ++sliceIndex) {
var begin = sliceIndex * sliceSize;
var end = Math.min(begin + sliceSize, bytesLength);
var bytes = new Array(end - begin);
for (var offset = begin, i = 0; offset < end; ++i, ++offset) {
bytes[i] = byteCharacters[offset].charCodeAt(0);
}
byteArrays[sliceIndex] = new Uint8Array(bytes);
}
return new Blob(byteArrays, { type: contentType });
};
FileDrawerViewerComponent.prototype.ngOnDestroy = function () {
};
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], FileDrawerViewerComponent.prototype, "itemsource", void 0);
FileDrawerViewerComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-file-drawer-viewer',
template: __webpack_require__(/*! ./file-drawer-viewer.component.html */ "./src/app/infrastructure/shared/components/file-drawer-viewer/file-drawer-viewer.component.html"),
styles: [__webpack_require__(/*! ./file-drawer-viewer.component.scss */ "./src/app/infrastructure/shared/components/file-drawer-viewer/file-drawer-viewer.component.scss")]
}),
tslib_1.__param(1, core_1.Inject(material_1.MAT_BOTTOM_SHEET_DATA)),
tslib_1.__metadata("design:paramtypes", [material_1.MatBottomSheetRef, Object, lightbox_1.Lightbox,
core_2.Gallery,
media_file_service_1.MediaFileService,
common_ajax_service_1.CommonAjaxService,
application_storage_service_1.ApplicationStorageService,
session_logger_service_1.SessionLoggerService])
], FileDrawerViewerComponent);
return FileDrawerViewerComponent;
}(component_base_1.ComponentBase));
exports.FileDrawerViewerComponent = FileDrawerViewerComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/gallery-carousel/gallery-carousel.component.html":
/*!***************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/gallery-carousel/gallery-carousel.component.html ***!
\***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n \n \n \n \n \n
"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/gallery-carousel/gallery-carousel.component.scss":
/*!***************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/gallery-carousel/gallery-carousel.component.scss ***!
\***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "/** ALL COLORS DECLARED TO BE USED FOR AIHRIS APP **/\n/** END OF COLOR DECLARATION **/\n/** BORDER RADIUS **/\n.gallery-carousel {\n position: relative;\n display: block;\n width: 100%; }\n\n/*# sourceMappingURL=data:application/json;base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CQ0NCO1xuJGdyZXktMzogIzRCNEI0QjtcbiRncmV5LTQ6ICMzMjMwMzE7XG4kYmxhY2s6ICMwMDAwMDA7XG4kd2hpdGU6ICNGRkZGRkY7XG4kaG92ZXItYmc6ICMyQjJFMzc7XG4vKiogRU5EIE9GIENPTE9SIERFQ0xBUkFUSU9OICoqL1xuXG4vKiogQk9SREVSIFJBRElVUyAqKi9cblxuJGhlaWd0LTEwMDogMTAwJTtcbiRoZWlndC0xOiA1cmVtO1xuJHdpZHRoLTEwMDogMTAwJTtcbiRob21lLWJvZHktcGFkZGluZzogNjBweDtcbiRob21lLWNvbnRlbnQtcGFkZGluZzogMzBweCA2MHB4IDYwcHggNjBweDtcbiRhZG1pbi1ib2R5LXBhZGRpbmc6IDE1cHg7IiwiQGltcG9ydCBcIi4uLy4uLy4uLy4uLy4uL3Njc3MvbWl4aW5zLnNjc3NcIjtcbi5nYWxsZXJ5LWNhcm91c2VsIHtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgZGlzcGxheTogYmxvY2s7XG4gICAgd2lkdGg6IDEwMCU7XG59Il19 */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/gallery-carousel/gallery-carousel.component.ts":
/*!*************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/gallery-carousel/gallery-carousel.component.ts ***!
\*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var core_2 = __webpack_require__(/*! @ngx-gallery/core */ "./node_modules/@ngx-gallery/core/fesm5/ngx-gallery-core.js");
var lightbox_1 = __webpack_require__(/*! @ngx-gallery/lightbox */ "./node_modules/@ngx-gallery/lightbox/fesm5/ngx-gallery-lightbox.js");
var GalleryCarouselComponent = /** @class */ (function () {
function GalleryCarouselComponent(gallery, lightbox) {
this.gallery = gallery;
this.lightbox = lightbox;
this.items = [];
this.imageSource = [];
this.disableThumb = false;
this.imageSize = 'cover';
this.counter = true;
this.sliderInterval = 10000;
this.galleryId = "gallery-" + Math.floor(Math.random() * 30);
this.galleryMobileHeight = {
height: '784px'
};
this.selectedImageFile = null;
this.galleryId = "gallery-" + Math.floor(Math.random() * 10000000);
this.checkWidth(window.innerWidth);
}
GalleryCarouselComponent.prototype.onResize = function (event) {
this.checkWidth(event.target.innerWidth);
};
GalleryCarouselComponent.prototype.checkWidth = function (width) {
if (width <= 980) {
// this.imageSize = 'contain';
this.galleryMobileHeight.height = '500px';
if (width <= 400) {
this.galleryMobileHeight.height = '200px';
}
else if (width <= 700) {
this.galleryMobileHeight.height = '300px';
}
else if (width <= 850) {
this.galleryMobileHeight.height = '400px';
}
}
else {
this.galleryMobileHeight.height = '784px';
// this.imageSize = 'cover';
}
};
GalleryCarouselComponent.prototype.ngOnInit = function () {
this.process();
};
GalleryCarouselComponent.prototype.process = function () {
this.items = this.imageSource.map(function (item) { return new core_2.ImageItem({ src: item, thumb: item }); });
};
GalleryCarouselComponent.prototype.ngOnChanges = function (changes) {
if (changes.imageSource != null && !changes.imageSource.firstChange && changes.imageSource.currentValue) {
this.process();
}
};
GalleryCarouselComponent.prototype.selectImage = function (image) {
this.selectedImageFile = image;
};
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], GalleryCarouselComponent.prototype, "imageSource", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], GalleryCarouselComponent.prototype, "disableThumb", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", String)
], GalleryCarouselComponent.prototype, "imageSize", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], GalleryCarouselComponent.prototype, "counter", void 0);
tslib_1.__decorate([
core_1.HostListener('window:resize', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:returntype", void 0)
], GalleryCarouselComponent.prototype, "onResize", null);
GalleryCarouselComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-gallery-carousel',
template: __webpack_require__(/*! ./gallery-carousel.component.html */ "./src/app/infrastructure/shared/components/gallery-carousel/gallery-carousel.component.html"),
styles: [__webpack_require__(/*! ./gallery-carousel.component.scss */ "./src/app/infrastructure/shared/components/gallery-carousel/gallery-carousel.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [core_2.Gallery,
lightbox_1.Lightbox])
], GalleryCarouselComponent);
return GalleryCarouselComponent;
}());
exports.GalleryCarouselComponent = GalleryCarouselComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-board-new/map-board-new.component.html":
/*!*********************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-board-new/map-board-new.component.html ***!
\*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n
\n
\n
\n
\n
\n
\n
\n\n
\n
"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-board-new/map-board-new.component.scss":
/*!*********************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-board-new/map-board-new.component.scss ***!
\*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".map-board {\n width: 100%;\n overflow: auto;\n position: relative; }\n .map-board .map-board-remove {\n position: relative;\n min-height: 30px; }\n .map-board .map-board-remove a {\n position: absolute;\n right: 0;\n font-size: 12px; }\n .map-board .map-board-content {\n position: relative; }\n .map-board .map-board-content #mapBoard {\n width: 100%;\n height: 100%; }\n .map-board .map-board-overlay {\n position: absolute;\n cursor: not-allowed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 10; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3Ny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yZC1jb250ZW50IHtcbiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgICAgICAjbWFwQm9hcmQge1xuICAgICAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICAgIH1cbiAgICB9XG4gICAgLm1hcC1ib2FyZC1vdmVybGF5IHtcbiAgICAgICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgICBjdXJzb3I6IG5vdC1hbGxvd2VkO1xuICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgICAgICB0b3A6IDA7XG4gICAgICAgIGxlZnQ6IDA7XG4gICAgICAgIHJpZ2h0OiAwO1xuICAgICAgICBib3R0b206IDA7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgICAgICAgei1pbmRleDogMTA7XG4gICAgfVxufSJdfQ== */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-board-new/map-board-new.component.ts":
/*!*******************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-board-new/map-board-new.component.ts ***!
\*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var component_base_1 = __webpack_require__(/*! @app/common/component-base */ "./src/app/common/component-base.ts");
var unit_model_1 = __webpack_require__(/*! @app/data/models/project/unit.model */ "./src/app/infrastructure/data/models/project/unit.model.ts");
var local_storage_service_1 = __webpack_require__(/*! @app/shared/services/local-storage.service */ "./src/app/infrastructure/shared/services/local-storage.service.ts");
var utilities_service_1 = __webpack_require__(/*! @app/shared/services/utilities.service */ "./src/app/infrastructure/shared/services/utilities.service.ts");
var common_ajax_service_1 = __webpack_require__(/*! @app/data/ajax/common-ajax.service */ "./src/app/infrastructure/data/ajax/common-ajax.service.ts");
var platform_browser_1 = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
var rxjs_1 = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var phase_model_1 = __webpack_require__(/*! @app/data/models/project/phase.model */ "./src/app/infrastructure/data/models/project/phase.model.ts");
var unit_status_model_1 = __webpack_require__(/*! @app/data/models/project/unit-status.model */ "./src/app/infrastructure/data/models/project/unit-status.model.ts");
var pub_sub_service_1 = __webpack_require__(/*! @app/core/services/pub-sub.service */ "./src/app/infrastructure/core/services/pub-sub.service.ts");
var MapBoarMarker = /** @class */ (function () {
function MapBoarMarker() {
this.width = 25;
this.height = 25;
}
return MapBoarMarker;
}());
exports.MapBoarMarker = MapBoarMarker;
var MapBoardNewComponent = /** @class */ (function (_super) {
tslib_1.__extends(MapBoardNewComponent, _super);
function MapBoardNewComponent(local, utilities, commonAjaxService, sanitizer, changeRef, pubsub) {
var _this = _super.call(this) || this;
_this.local = local;
_this.utilities = utilities;
_this.commonAjaxService = commonAjaxService;
_this.sanitizer = sanitizer;
_this.changeRef = changeRef;
_this.pubsub = pubsub;
_this.mapImage = new Image();
_this.markers = [];
_this.MAP_STYLES = {
'min-height': '500px'
};
_this.pins = [];
_this.phaseIndex = -1;
_this.uniqueId = -1;
_this.enableRemoveButton = false;
_this.imageWasRemoved = new core_1.EventEmitter();
_this.blocks = [];
_this.unitTypes = [];
_this.isReadOnly = false;
_this.galleryImages = [];
_this.mapClick = new core_1.EventEmitter();
// tslint:disable-next-line:no-output-on-prefix
_this.onAfterReserve = new core_1.EventEmitter();
_this.viewingType = 'create';
_this.isAddFormDisabled = false;
_this.pinSource = [];
_this.IS_FIRST_LOAD = true;
/**
* Itemsource for viewing
*/
_this.mapUnitSource = [];
_this.CANVAS_DIMESIONS_STYLES = {
height: '0px',
width: '0px'
};
_this.editState = null;
_this.removedUnitIdsEdit = [];
_this.isOnMoveState = false;
_this.listener = _this.pubsub.On('PinUpdate')
.subscribe(function (res) {
_this.IS_BUSY = res;
});
_this.moveListener = _this.pubsub.On('OnMapPinNewMove')
.subscribe(function (res) {
});
return _this;
}
MapBoardNewComponent.prototype.ngOnInit = function () {
this.mapImage.src = this.imageSrc;
this.pinSource = this.pins;
if (this.viewingType === 'edit') {
for (var _i = 0, _a = this.pins; _i < _a.length; _i++) {
var x = _a[_i];
if (x.y_pos === null || x.x_pos === null) {
this.removedUnitIdsEdit.push(x);
}
}
}
};
MapBoardNewComponent.prototype.removeImage = function () {
this.imageSrc = null;
this.imageWasRemoved.emit(true);
};
MapBoardNewComponent.prototype.ngAfterViewInit = function () {
var _this = this;
setTimeout(function () {
_this.draw();
}, 200);
};
MapBoardNewComponent.prototype.processChange = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var workers, _loop_1, _i, _a, item;
return tslib_1.__generator(this, function (_b) {
if (this.viewingType === 'reservation' || this.viewingType === 'view') {
workers = [];
_loop_1 = function (item) {
if (item.mapPin) {
var itemResult = new Promise(function (resolve) {
resolve(item);
});
var blockResult = item.getBlock().toPromise();
var unitTypeResult = item.getType().toPromise();
workers.push(rxjs_1.forkJoin([itemResult, blockResult, unitTypeResult]));
}
};
for (_i = 0, _a = this.mapUnitSource; _i < _a.length; _i++) {
item = _a[_i];
_loop_1(item);
}
return [2 /*return*/, rxjs_1.forkJoin(workers).toPromise()];
}
else {
return [2 /*return*/, new Promise(function (resolve) {
resolve([]);
})];
}
return [2 /*return*/];
});
});
};
MapBoardNewComponent.prototype.onMouseDown = function (event) {
var _this = this;
event.preventDefault();
if (this.isReadOnly || this.isOnMoveState) {
return;
}
this.pins = this.pins.filter(function (x) { return x.id !== -1; });
setTimeout(function () {
// Move the marker when placed to a better location
var marker = new MapBoarMarker();
marker.x_pos = event.offsetX - (marker.width / 4);
marker.y_pos = event.offsetY - (marker.height / 3);
var results = new unit_model_1.Unit({
id: -1,
mapPin: {
x: marker.x_pos,
y: marker.y_pos
},
lotNumber: null,
status: unit_status_model_1.UnitStatus.AVAILABLE,
});
_this.pins.push(results);
}, 100);
};
/**
* This one is to make the image generate its consitent resolution
*/
MapBoardNewComponent.prototype.draw = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var request_1;
var _this = this;
return tslib_1.__generator(this, function (_a) {
if (this.utilities.validURL(this.imageSrc) && this.imageSrc !== null) {
this.IS_BUSY = true;
this.commonAjaxService.request('get', this.imageSrc, { responseType: 'blob' })
.subscribe(function (res) {
var reader = new FileReader();
reader.readAsDataURL(res);
reader.onload = function (e) {
var imageData = new Image();
imageData.src = e.target.result;
_this.pinImageSrc = _this.sanitizer.bypassSecurityTrustResourceUrl(e.target.result);
setTimeout(function () {
_this.CANVAS_DIMESIONS_STYLES.height = imageData.height + "px";
_this.CANVAS_DIMESIONS_STYLES.width = imageData.width + "px";
if (_this.viewingType === 'reservation' || _this.viewingType === 'view') {
setTimeout(function () {
_this.processChange().then(function (source) {
_this.processPins(source);
_this.IS_FIRST_LOAD = false;
_this.IS_BUSY = false;
});
}, 200);
}
else {
_this.IS_BUSY = false;
}
}, 50);
};
}, function (err) {
_this.IS_BUSY = false;
});
}
else {
if (this.imageSrc !== null) {
this.pinImageSrc = this.imageSrc;
request_1 = new XMLHttpRequest();
request_1.open('GET', this.imageSrc, true);
request_1.responseType = 'blob';
request_1.onload = function () {
var reader = new FileReader();
reader.readAsDataURL(request_1.response);
reader.onload = function (e) {
var imageData = new Image();
imageData.src = e.target.result;
setTimeout(function () {
_this.CANVAS_DIMESIONS_STYLES.height = imageData.height + "px";
_this.CANVAS_DIMESIONS_STYLES.width = imageData.width + "px";
}, 50);
};
};
request_1.send();
}
}
return [2 /*return*/];
});
});
};
MapBoardNewComponent.prototype.onMapSubmit = function (data, index) {
this.pins[index] = data;
this.mapClick.emit(data);
};
MapBoardNewComponent.prototype.onUnMapData = function (data, index) {
if (data.id === -1) {
this.pins.splice(index, 1);
}
};
MapBoardNewComponent.prototype.processPins = function (source) {
this.pins = [];
for (var _i = 0, source_1 = source; _i < source_1.length; _i++) {
var item = source_1[_i];
this.pins.push({
id: item[0].id,
status: item[0].status,
x_pos: item[0].mapPin.x,
y_pos: item[0].mapPin.y,
lotNumber: item[0].lotNumber,
uniqueId: item[0].typeId,
blockId: item[1].id,
pinTitle: "" + item[2].name,
others: {
block: item[1],
unitType: item[2],
unit: item[0]
}
});
}
};
MapBoardNewComponent.prototype.ngOnDestroy = function () {
this.listener.unsubscribe();
};
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardNewComponent.prototype, "MAP_STYLES", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapBoardNewComponent.prototype, "pins", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardNewComponent.prototype, "phaseIndex", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", String)
], MapBoardNewComponent.prototype, "imageSrc", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardNewComponent.prototype, "uniqueId", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardNewComponent.prototype, "enableRemoveButton", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapBoardNewComponent.prototype, "imageWasRemoved", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", phase_model_1.Phase)
], MapBoardNewComponent.prototype, "phase", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapBoardNewComponent.prototype, "blocks", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapBoardNewComponent.prototype, "unitTypes", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardNewComponent.prototype, "isReadOnly", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapBoardNewComponent.prototype, "galleryImages", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapBoardNewComponent.prototype, "mapClick", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapBoardNewComponent.prototype, "onAfterReserve", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardNewComponent.prototype, "viewingType", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapBoardNewComponent.prototype, "mapUnitSource", void 0);
MapBoardNewComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-map-board-new',
template: __webpack_require__(/*! ./map-board-new.component.html */ "./src/app/infrastructure/shared/components/map-board-new/map-board-new.component.html"),
styles: [__webpack_require__(/*! ./map-board-new.component.scss */ "./src/app/infrastructure/shared/components/map-board-new/map-board-new.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [local_storage_service_1.LocalStorageService,
utilities_service_1.UtilitiesService,
common_ajax_service_1.CommonAjaxService,
platform_browser_1.DomSanitizer,
core_1.ChangeDetectorRef,
pub_sub_service_1.PubSubService])
], MapBoardNewComponent);
return MapBoardNewComponent;
}(component_base_1.ComponentBase));
exports.MapBoardNewComponent = MapBoardNewComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-board/map-board.component.html":
/*!*************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-board/map-board.component.html ***!
\*************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n
\n
\n
\n
\n
\n
\n
\n\n
\n
"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-board/map-board.component.scss":
/*!*************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-board/map-board.component.scss ***!
\*************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".map-board {\n width: 100%;\n overflow: auto;\n position: relative; }\n .map-board .map-board-remove {\n position: relative;\n min-height: 30px; }\n .map-board .map-board-remove a {\n position: absolute;\n right: 0;\n font-size: 12px; }\n .map-board .map-board-content {\n position: relative; }\n .map-board .map-board-content #mapBoard {\n width: 100%;\n height: 100%; }\n .map-board .map-board-overlay {\n position: absolute;\n cursor: not-allowed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 10; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL2FwcC9pbmZyYXN0cnVjdHVyZS9zaGFyZWQvY29tcG9uZW50cy9tYXAtYm9hcmQvbWFwLWJvYXJkLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksV0FBVztFQUNYLGNBQWM7RUFDZCxrQkFBa0IsRUFBQTtFQUh0QjtJQUtRLGtCQUFrQjtJQUNsQixnQkFBZ0IsRUFBQTtFQU54QjtNQVFZLGtCQUFrQjtNQUNsQixRQUFRO01BQ1IsZUFBZSxFQUFBO0VBVjNCO0lBY1Esa0JBQWtCLEVBQUE7RUFkMUI7TUFnQlksV0FBVztNQUNYLFlBQVksRUFBQTtFQWpCeEI7SUFxQlEsa0JBQWtCO0lBQ2xCLG1CQUFtQjtJQUNuQixXQUFXO0lBQ1gsWUFBWTtJQUNaLE1BQU07SUFDTixPQUFPO0lBQ1AsUUFBUTtJQUNSLFNBQVM7SUFDVCxvQ0FBb0M7SUFDcEMsV0FBVyxFQUFBIiwiZmlsZSI6InNyYy9hcHAvaW5mcmFzdHJ1Y3R1cmUvc2hhcmVkL2NvbXBvbmVudHMvbWFwLWJvYXJkL21hcC1ib2FyZC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5tYXAtYm9hcmQge1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIG92ZXJmbG93OiBhdXRvO1xuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICAubWFwLWJvYXJkLXJlbW92ZSB7XG4gICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICAgICAgbWluLWhlaWdodDogMzBweDtcbiAgICAgICAgYSB7XG4gICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgICByaWdodDogMDtcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTJweDtcbiAgICAgICAgfVxuICAgIH1cbiAgICAubWFwLWJvYXJkLWNvbnRlbnQge1xuICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICAgICNtYXBCb2FyZCB7XG4gICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICAgIGhlaWdodDogMTAwJTtcbiAgICAgICAgfVxuICAgIH1cbiAgICAubWFwLWJvYXJkLW92ZXJsYXkge1xuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICAgIHRvcDogMDtcbiAgICAgICAgbGVmdDogMDtcbiAgICAgICAgcmlnaHQ6IDA7XG4gICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgICAgICB6LWluZGV4OiAxMDtcbiAgICB9XG59Il19 */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-board/map-board.component.ts":
/*!***********************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-board/map-board.component.ts ***!
\***********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var local_storage_service_1 = __webpack_require__(/*! @app/shared/services/local-storage.service */ "./src/app/infrastructure/shared/services/local-storage.service.ts");
var utilities_service_1 = __webpack_require__(/*! @app/shared/services/utilities.service */ "./src/app/infrastructure/shared/services/utilities.service.ts");
var component_base_1 = __webpack_require__(/*! @app/common/component-base */ "./src/app/common/component-base.ts");
var _ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
var common_ajax_service_1 = __webpack_require__(/*! @app/data/ajax/common-ajax.service */ "./src/app/infrastructure/data/ajax/common-ajax.service.ts");
var platform_browser_1 = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
var MapBoarMarker = /** @class */ (function () {
function MapBoarMarker() {
this.width = 25;
this.height = 25;
}
return MapBoarMarker;
}());
exports.MapBoarMarker = MapBoarMarker;
var MapPinMarker = /** @class */ (function () {
function MapPinMarker() {
}
return MapPinMarker;
}());
exports.MapPinMarker = MapPinMarker;
var MapBoardComponent = /** @class */ (function (_super) {
tslib_1.__extends(MapBoardComponent, _super);
function MapBoardComponent(local, utilities, commonAjaxService, sanitizer, changeRef) {
var _this = _super.call(this) || this;
_this.local = local;
_this.utilities = utilities;
_this.commonAjaxService = commonAjaxService;
_this.sanitizer = sanitizer;
_this.changeRef = changeRef;
_this.mapImage = new Image();
_this.markers = [];
_this.pins = [];
_this.phaseIndex = -1;
_this.uniqueId = -1;
_this.pinLimit = 0;
_this.enableRemoveButton = false;
_this.imageWasRemoved = new core_1.EventEmitter();
_this.galleryImages = [];
_this.mapClick = new core_1.EventEmitter();
// tslint:disable-next-line:no-output-on-prefix
_this.onAfterReserve = new core_1.EventEmitter();
_this.viewingType = 'create';
_this.isAddFormDisabled = false;
_this.pinSource = [];
_this.IS_FIRST_LOAD = true;
/**
* Itemsource for adding
*/
_this.blockSource = {
id: -1,
pinLimit: 0,
title: '',
other: null
};
/**
* Itemsource for viewing
*/
_this.mapUnitSource = [];
_this.CANVAS_DIMESIONS_STYLES = {
height: '0px',
width: '0px'
};
_this.editState = null;
_this.removedUnitIdsEdit = [];
return _this;
}
MapBoardComponent.prototype.ngOnInit = function () {
this.mapImage.src = this.imageSrc;
this.pinSource = this.pins;
if (this.viewingType === 'edit') {
for (var _i = 0, _a = this.pins; _i < _a.length; _i++) {
var x = _a[_i];
if (x.y_pos === null || x.x_pos === null) {
this.removedUnitIdsEdit.push(x);
}
}
}
};
MapBoardComponent.prototype.ngOnChanges = function (changes) {
var _this = this;
this.isAddFormDisabled = this.blockSource == null || typeof this.blockSource === 'undefined';
if (this.viewingType === 'reservation' || this.viewingType === 'view') {
if (!this.IS_FIRST_LOAD) {
this.IS_BUSY = true;
setTimeout(function () {
_this.processChange().then(function (res) {
_this.processPins(res);
_this.IS_FIRST_LOAD = false;
_this.IS_BUSY = false;
});
}, 1000);
}
}
};
MapBoardComponent.prototype.removeImage = function () {
this.imageSrc = null;
this.imageWasRemoved.emit(true);
};
MapBoardComponent.prototype.ngAfterViewInit = function () {
var _this = this;
setTimeout(function () {
_this.isAddFormDisabled = _this.blockSource == null || typeof _this.blockSource === 'undefined';
_this.draw();
}, 200);
};
MapBoardComponent.prototype.processChange = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var _this = this;
return tslib_1.__generator(this, function (_a) {
if (this.viewingType === 'reservation' || this.viewingType === 'view') {
return [2 /*return*/, new Promise(function (resolve) {
resolve(_this.mapUnitSource);
})];
}
else {
return [2 /*return*/, new Promise(function (resolve) {
resolve([]);
})];
}
return [2 /*return*/];
});
});
};
MapBoardComponent.prototype.onMouseDown = function (event) {
var _this = this;
if (this.viewingType === 'create' || this.viewingType === 'edit') {
if (this.uniqueId === -1) {
this.utilities.ShowMaterialMessageBox({
title: 'Notice',
content: 'Please select what type of unit'
}, 'warning').afterClosed().subscribe(function () {
return;
});
}
else {
var pinFiltered = this.pinSource.filter(function (data) {
return data.uniqueId === _this.uniqueId && data.blockId === _this.blockSource.id
&& data.x_pos !== null && data.y_pos !== null &&
(_this.blockSource.data != null ? data.others.data.sqm
=== _this.blockSource.data.sqm : data.others.data.sqm === _this.blockSource.other.data.sqm);
});
if (+this.blockSource.pinLimit <= pinFiltered.length) {
this.utilities.ShowMaterialMessageBox({
title: 'Warning',
content: 'Maximum number of pins reached'
}, 'warning').afterClosed().subscribe(function () {
return;
});
}
else {
// Move the marker when placed to a better location
var marker = new MapBoarMarker();
marker.x_pos = event.offsetX - (marker.width / 4);
marker.y_pos = event.offsetY - (marker.height / 3);
var sqm = this.blockSource.data != null ? this.blockSource.data.sqm : this.blockSource.other.data.sqm;
var results = {
id: -1,
x_pos: marker.x_pos,
y_pos: marker.y_pos,
lotNumber: null,
status: 'on-set',
uniqueId: this.uniqueId,
pinTitle: this.blockSource.title + " (" + sqm + " sqm)",
others: this.blockSource.other,
blockId: this.blockSource.id
};
if (this.viewingType === 'create') {
this.pins.push(results);
}
else if (this.viewingType === 'edit') {
var randomSourceIndex = this.removedUnitIdsEdit.findIndex(function (r) {
return r.blockId === _this.blockSource.id
&& r.others.data.id === _this.blockSource.other.data.id;
});
if (randomSourceIndex !== -1) {
var randomSource = this.removedUnitIdsEdit.splice(randomSourceIndex, 1);
if (randomSource && randomSource.length >= 1) {
var randomPin_1 = randomSource[0];
var pin = this.pins.findIndex(function (item) {
return item.blockId === randomPin_1.blockId
&& item.uniqueId === randomPin_1.uniqueId
&& item.others.data.id === randomPin_1.others.data.id
&& item.x_pos === null
&& item.y_pos === null;
});
if (pin !== -1) {
results.id = randomPin_1.id;
this.pins[pin].lotNumber = null;
this.pins[pin].x_pos = results.x_pos;
this.pins[pin].y_pos = results.y_pos;
}
}
}
else {
this.pins.push(results);
}
}
}
}
}
else {
}
};
/**
* This one is to make the image generate its consitent resolution
*/
MapBoardComponent.prototype.draw = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var request_1;
var _this = this;
return tslib_1.__generator(this, function (_a) {
if (this.utilities.validURL(this.imageSrc) && this.imageSrc !== null) {
this.IS_BUSY = true;
this.commonAjaxService.request('get', this.imageSrc, { responseType: 'blob' })
.subscribe(function (res) {
var reader = new FileReader();
reader.readAsDataURL(res);
reader.onload = function (e) {
var imageData = new Image();
imageData.src = e.target.result;
_this.pinImageSrc = _this.sanitizer.bypassSecurityTrustResourceUrl(e.target.result);
setTimeout(function () {
_this.CANVAS_DIMESIONS_STYLES.height = imageData.height + "px";
_this.CANVAS_DIMESIONS_STYLES.width = imageData.width + "px";
if (_this.viewingType === 'reservation' || _this.viewingType === 'view') {
setTimeout(function () {
_this.processChange().then(function (source) {
_this.processPins(source);
_this.IS_FIRST_LOAD = false;
_this.IS_BUSY = false;
});
}, 200);
}
else {
_this.IS_BUSY = false;
}
}, 50);
};
}, function (err) {
_this.IS_BUSY = false;
});
}
else {
if (this.imageSrc !== null) {
this.pinImageSrc = this.imageSrc;
request_1 = new XMLHttpRequest();
request_1.open('GET', this.imageSrc, true);
request_1.responseType = 'blob';
request_1.onload = function () {
var reader = new FileReader();
reader.readAsDataURL(request_1.response);
reader.onload = function (e) {
var imageData = new Image();
imageData.src = e.target.result;
setTimeout(function () {
_this.CANVAS_DIMESIONS_STYLES.height = imageData.height + "px";
_this.CANVAS_DIMESIONS_STYLES.width = imageData.width + "px";
}, 50);
};
};
request_1.send();
}
}
return [2 /*return*/];
});
});
};
MapBoardComponent.prototype.onMapSubmit = function (data, index) {
this.pins[index] = data;
this.mapClick.emit({ source: this.pins[index], phaseIndex: this.phaseIndex, unitIndex: index, type: 'update' });
};
MapBoardComponent.prototype.onUnMapData = function (data, index) {
if (this.viewingType === 'create') {
this.mapClick.emit({ source: this.pins[index], phaseIndex: this.phaseIndex, unitIndex: index, type: 'removed' });
this.pins.splice(index, 1);
}
else if (this.viewingType === 'edit') {
this.pins[index].x_pos = null;
this.pins[index].y_pos = null;
this.removedUnitIdsEdit.push(_.cloneDeep(this.pins[index]));
}
};
MapBoardComponent.prototype.processPins = function (source) {
this.pins = [];
for (var _i = 0, source_1 = source; _i < source_1.length; _i++) {
var item = source_1[_i];
this.pins.push({
id: item.id,
status: item.status,
x_pos: item.mapPin.x,
y_pos: item.mapPin.y,
lotNumber: item.lotNumber,
uniqueId: item.typeId,
blockId: item.block.id,
pinTitle: item.type.alias + " (" + item.type.name + ")",
others: {
block: item.block,
unitType: item.type,
unit: item,
images: item.images
}
});
}
};
MapBoardComponent.prototype.ngOnDestroy = function () {
};
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapBoardComponent.prototype, "pins", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardComponent.prototype, "phaseIndex", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", String)
], MapBoardComponent.prototype, "imageSrc", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardComponent.prototype, "uniqueId", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardComponent.prototype, "pinLimit", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardComponent.prototype, "enableRemoveButton", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapBoardComponent.prototype, "imageWasRemoved", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapBoardComponent.prototype, "galleryImages", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapBoardComponent.prototype, "mapClick", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapBoardComponent.prototype, "onAfterReserve", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardComponent.prototype, "viewingType", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapBoardComponent.prototype, "blockSource", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapBoardComponent.prototype, "mapUnitSource", void 0);
MapBoardComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-map-board',
template: __webpack_require__(/*! ./map-board.component.html */ "./src/app/infrastructure/shared/components/map-board/map-board.component.html"),
styles: [__webpack_require__(/*! ./map-board.component.scss */ "./src/app/infrastructure/shared/components/map-board/map-board.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [local_storage_service_1.LocalStorageService,
utilities_service_1.UtilitiesService,
common_ajax_service_1.CommonAjaxService,
platform_browser_1.DomSanitizer,
core_1.ChangeDetectorRef])
], MapBoardComponent);
return MapBoardComponent;
}(component_base_1.ComponentBase));
exports.MapBoardComponent = MapBoardComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-pin-new/map-pin-new.component.html":
/*!*****************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-pin-new/map-pin-new.component.html ***!
\*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n\n \n \n Confirm \n Cancel \n
\n \n \n \n \n\n "
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-pin-new/map-pin-new.component.scss":
/*!*****************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-pin-new/map-pin-new.component.scss ***!
\*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "/** ALL COLORS DECLARED TO BE USED FOR AIHRIS APP **/\n/** END OF COLOR DECLARATION **/\n/** BORDER RADIUS **/\n.lot-title {\n padding: 10px;\n padding-top: 0;\n text-align: center;\n font-weight: 600;\n font-size: 20px; }\n.pin-form .pin-actions {\n display: flex; }\n.pin-form .pin-actions button {\n flex: 1; }\n.pin-form form .mat-form-field {\n width: 100%; }\n.close {\n color: white !important;\n font-size: 30px; }\n.reservation {\n padding: 20px; }\n.reservation .reservation-row {\n display: flex; }\n.reservation .reservation-row .reservation-item {\n font-size: 12px;\n padding-right: 5px;\n min-width: 150px; }\n.reservation .reservation-row .reservation-item a {\n cursor: pointer;\n color: #0E4563;\n text-decoration: underline; }\n.reservation .reservation-form {\n padding: 20px; }\n.reservation .reservation-form .reservation-form-header {\n font-size: 20px;\n text-align: center; }\n.reservation .reservation-form form {\n padding-top: 15px; }\n.reservation .reservation-tracking {\n padding-top: 20px;\n text-align: center; }\n.reservation .reservation-tracking .reservation-tracking-header {\n padding: 5px; }\n.reservation .reservation-tracking .reservation-tracking-body {\n padding: 5px; }\n.reservation .reservation-tracking .reservation-tracking-body .tracing-code {\n font-size: 20px;\n padding: 10px;\n background-color: #BCBCCB; }\n.modal-header-custom {\n background: #092433;\n color: white;\n font-weight: lighter;\n text-align: center;\n box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4) !important; }\n.modal-header-custom h4 {\n font-weight: lighter;\n width: 100%; }\n.modal-dialog {\n max-width: 100% !important; }\n.map-pin-drag {\n -webkit-animation: anim-glow 2s ease infinite;\n animation: anim-glow 2s ease infinite;\n cursor: -webkit-grabbing;\n cursor: grabbing;\n z-index: 1000; }\n.move-pin-form button {\n margin: 10px; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL3Njc3MvdmFyaWFibGVzLnNjc3MiLCIvZGlzdC9zcmMvYXBwL3NyYy9hcHAvaW5mcmFzdHJ1Y3R1cmUvc2hhcmVkL2NvbXBvbmVudHMvbWFwLXBpbi1uZXcvbWFwLXBpbi1uZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0RBQUE7QUFxQkEsK0JBQUE7QUFFQSxvQkFBQTtBQ3JCQTtFQUNJLGFBQWE7RUFDYixjQUFjO0VBQ2Qsa0JBQWtCO0VBQ2xCLGdCQUFnQjtFQ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IHBhZGRpbmc6IDEwcHg7XG4gICAgcGFkZGluZy10b3A6IDA7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XG4gICAgZm9udC1zaXplOiAyMHB4O1xufVxuXG4ucGluLWZvcm0ge1xuICAgIC5waW4tYWN0aW9ucyB7XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGJ1dHRvbiB7XG4gICAgICAgICAgICBmbGV4OiAxO1xuICAgICAgICB9XG4gICAgfVxuICAgIGZvcm0ge1xuICAgICAgICAubWF0LWZvcm0tZmllbGQge1xuICAgICAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbi5jbG9zZSB7XG4gICAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XG4gICAgZm9udC1zaXplOiAzMHB4O1xufVxuXG4ucmVzZXJ2YXRpb24ge1xuICAgIHBhZGRpbmc6IDIwcHg7XG4gICAgLnJlc2VydmF0aW9uLXJvdyB7XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIC5yZXNlcnZhdGlvbi1pdGVtIHtcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTJweDtcbiAgICAgICAgICAgIHBhZGRpbmctcmlnaHQ6IDVweDtcbiAgICAgICAgICAgIG1pbi13aWR0aDogMTUwcHg7XG4gICAgICAgICAgICBhIHtcbiAgICAgICAgICAgICAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgICAgICAgICAgICAgY29sb3I6ICRwcmltYXJ5LWJsdWU7XG4gICAgICAgICAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgLnJlc2VydmF0aW9uLWZvcm0ge1xuICAgICAgICBwYWRkaW5nOiAyMHB4O1xuICAgICAgICAucmVzZXJ2YXRpb24tZm9ybS1oZWFkZXIge1xuICAgICAgICAgICAgZm9udC1zaXplOiAyMHB4O1xuICAgICAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICB9XG4gICAgICAgIGZvcm0ge1xuICAgICAgICAgICAgcGFkZGluZy10b3A6IDE1cHg7XG4gICAgICAgIH1cbiAgICB9XG4gICAgLnJlc2VydmF0aW9uLXRyYWNraW5nIHtcbiAgICAgICAgcGFkZGluZy10b3A6IDIwcHg7XG4gICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgLnJlc2VydmF0aW9uLXRyYWNraW5nLWhlYWRlciB7XG4gICAgICAgICAgICBwYWRkaW5nOiA1cHg7XG4gICAgICAgIH1cbiAgICAgICAgLnJlc2VydmF0aW9uLXRyYWNraW5nLWJvZHkge1xuICAgICAgICAgICAgcGFkZGluZzogNXB4O1xuICAgICAgICAgICAgLnRyYWNpbmctY29kZSB7XG4gICAgICAgICAgICAgICAgZm9udC1zaXplOiAyMHB4O1xuICAgICAgICAgICAgICAgIHBhZGRpbmc6IDEwcHg7XG4gICAgICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogJGdyZXktMjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cblxuLm1vZGFsLWhlYWRlci1jdXN0b20ge1xuICAgIGJhY2tncm91bmQ6ICMwOTI0MzM7XG4gICAgY29sb3I6IHdoaXRlO1xuICAgIGZvbnQtd2VpZ2h0OiBsaWdodGVyO1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICBib3gtc2hhZG93OiAwIDAgMTBweCAwIHJnYmEoMCwgMCwgMCwgMC40KSAhaW1wb3J0YW50O1xuICAgIGg0IHtcbiAgICAgICAgZm9udC13ZWlnaHQ6IGxpZ2h0ZXI7XG4gICAgICAgIHdpZHRoOiAxMDAlO1xuICAgIH1cbn1cblxuLm1vZGFsLWRpYWxvZyB7XG4gICAgbWF4LXdpZHRoOiAxMDAlICFpbXBvcnRhbnQ7XG59XG4ubWFwLXBpbi1kcmFnIHtcbiAgICAtd2Via2l0LWFuaW1hdGlvbjogYW5pbS1nbG93IDJzIGVhc2UgaW5maW5pdGU7XG4gICAgYW5pbWF0aW9uOiBhbmltLWdsb3cgMnMgZWFzZSBpbmZpbml0ZTtcbiAgICBjdXJzb3I6IC13ZWJraXQtZ3JhYmJpbmc7XG4gICAgY3Vyc29yOiBncmFiYmluZztcbiAgICB6LWluZGV4OiAxMDAwO1xufVxuXG4ubW92ZS1waW4tZm9ybSB7XG4gICAgYnV0dG9uIHtcbiAgICAgICAgbWFyZ2luOiAxMHB4O1xuICAgIH1cbn1cbiJdfQ== */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-pin-new/map-pin-new.component.ts":
/*!***************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-pin-new/map-pin-new.component.ts ***!
\***************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
var ngx_bootstrap_1 = __webpack_require__(/*! ngx-bootstrap */ "./node_modules/ngx-bootstrap/esm5/ngx-bootstrap.js");
var lightbox_1 = __webpack_require__(/*! @ngx-gallery/lightbox */ "./node_modules/@ngx-gallery/lightbox/fesm5/ngx-gallery-lightbox.js");
var core_2 = __webpack_require__(/*! @ngx-gallery/core */ "./node_modules/@ngx-gallery/core/fesm5/ngx-gallery-core.js");
var component_base_1 = __webpack_require__(/*! @app/common/component-base */ "./src/app/common/component-base.ts");
var phase_model_1 = __webpack_require__(/*! @app/data/models/project/phase.model */ "./src/app/infrastructure/data/models/project/phase.model.ts");
var unit_model_1 = __webpack_require__(/*! @app/data/models/project/unit.model */ "./src/app/infrastructure/data/models/project/unit.model.ts");
var unit_service_1 = __webpack_require__(/*! @app/data/services/project/unit.service */ "./src/app/infrastructure/data/services/project/unit.service.ts");
var unit_status_model_1 = __webpack_require__(/*! @app/data/models/project/unit-status.model */ "./src/app/infrastructure/data/models/project/unit-status.model.ts");
var pub_sub_service_1 = __webpack_require__(/*! @app/core/services/pub-sub.service */ "./src/app/infrastructure/core/services/pub-sub.service.ts");
var MapPinNewComponent = /** @class */ (function (_super) {
tslib_1.__extends(MapPinNewComponent, _super);
function MapPinNewComponent(formBuilder, modalService, lightbox, gallery, UNIT_SERVICE, pubsub, renderer) {
var _this = _super.call(this) || this;
_this.formBuilder = formBuilder;
_this.modalService = modalService;
_this.lightbox = lightbox;
_this.gallery = gallery;
_this.UNIT_SERVICE = UNIT_SERVICE;
_this.pubsub = pubsub;
_this.renderer = renderer;
_this.source = new unit_model_1.Unit();
_this.blocks = [];
_this.unitTypes = [];
_this.phase = null;
_this.pinViewingType = 'create';
_this.disableAddForm = false;
_this.galleryImages = [];
_this.clickPin = new core_1.EventEmitter();
_this.isUnMap = new core_1.EventEmitter();
// tslint:disable-next-line:no-output-on-prefix
_this.onAfterReserve = new core_1.EventEmitter();
_this.STATUS_CLASS = 'available';
_this.pinTitle = '';
_this.unitGalleryPictures = [];
_this.PIN_STYLES = {
'top': '0px',
'left': '0px'
};
_this.filteredBlocks = [];
_this.draggable = false;
_this.moveSource = {
x: 0,
y: 0
};
return _this;
}
MapPinNewComponent.prototype.onKeydownHandler = function (event) {
if (event.key === 'Escape') {
// Do things
this.pop.hide();
}
};
MapPinNewComponent.prototype.onHidden = function () {
if ((this.pinViewingType === 'create' || this.pinViewingType === 'edit') && this.lotForm.invalid) {
this.isUnMap.emit(this.source);
}
};
MapPinNewComponent.prototype.submitForm = function (data) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var val, block, unitType, unit, unit;
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0:
this.source.lotNumber = data.name;
this.pop.hide();
val = this.lotForm.value;
block = this.blocks.find(function (x) { return x.id === +val.block; });
unitType = this.unitTypes.find(function (x) { return x.id === +val.unitType; });
this.pubsub.Broadcast('PinUpdate', true);
if (!(this.lotForm.valid && this.source.id === -1)) return [3 /*break*/, 2];
return [4 /*yield*/, this.UNIT_SERVICE.create(new unit_model_1.Unit({
lotNumber: +val.lotNumber,
area: val.lotArea,
totalContractPrice: val.totalContractPrice,
type: unitType._links['self'].href,
mapPin: this.source.mapPin,
status: unit_status_model_1.UnitStatus.AVAILABLE,
block: block._links['self'].href,
floorArea: val.floorArea
})).toPromise()];
case 1:
unit = _a.sent();
this.source = unit;
this.clickPin.emit(unit);
return [3 /*break*/, 4];
case 2: return [4 /*yield*/, this.UNIT_SERVICE.patch(new unit_model_1.Unit({
id: this.source.id,
lotNumber: +val.lotNumber,
area: val.lotArea,
totalContractPrice: val.totalContractPrice,
type: unitType._links['self'].href,
mapPin: this.source.mapPin,
status: this.source.status,
block: block._links['self'].href,
floorArea: val.floorArea,
_links: this.source._links
})).toPromise()];
case 3:
unit = _a.sent();
this.source = unit;
this.clickPin.emit(unit);
_a.label = 4;
case 4:
this.pubsub.Broadcast('PinUpdate', false);
return [2 /*return*/];
}
});
});
};
MapPinNewComponent.prototype.unMap = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
this.pubsub.Broadcast('PinUpdate', true);
if (this.source.id !== -1) {
this.source.id = -1;
}
this.pop.hide();
this.isUnMap.emit(this.source);
this.pubsub.Broadcast('PinUpdate', false);
return [2 /*return*/];
});
});
};
MapPinNewComponent.prototype.ngOnInit = function () {
var _this = this;
this.filteredBlocks = this.blocks.filter(function (x) { return x.phaseId === _this.phase.id; });
this.PIN_STYLES['top'] = this.source.mapPin.y + "px";
this.PIN_STYLES['left'] = this.source.mapPin.x + "px";
this.STATUS_CLASS = this.source.status;
this.pinTitle = "Unit For: (" + this.phase.name + ")";
this.lotForm = this.formBuilder.group({
'lotNumber': new forms_1.FormControl(this.source.lotNumber, [forms_1.Validators.required, forms_1.Validators.minLength(1)]),
'block': ['', forms_1.Validators.required],
'unitType': ['', forms_1.Validators.required],
'lotArea': ['', forms_1.Validators.required],
'floorArea': ['', forms_1.Validators.required],
'totalContractPrice': [0, forms_1.Validators.required]
});
if (this.source.id !== -1) {
this.lotForm = this.formBuilder.group({
'lotNumber': new forms_1.FormControl(this.source.lotNumber, [forms_1.Validators.required, forms_1.Validators.minLength(1)]),
'block': [this.source.blockId, forms_1.Validators.required],
'unitType': [this.source.typeId, forms_1.Validators.required],
'lotArea': [this.source.area, forms_1.Validators.required],
'floorArea': [this.source.floorArea, forms_1.Validators.required],
'totalContractPrice': [this.source.totalContractPrice, forms_1.Validators.required]
});
}
else {
setTimeout(function () {
if (typeof _this.lotForm !== 'undefined' && _this.lotForm.invalid) {
_this.pop.show();
}
}, 100);
}
};
MapPinNewComponent.prototype.openReservationModal = function (template) {
this.modalRef = this.modalService.show(template, {});
this.pop.hide();
};
MapPinNewComponent.prototype.openImageModal = function () {
if (this.unitGalleryPictures === null || this.unitGalleryPictures.length <= 0) {
return;
}
// Get a lightbox gallery ref
var lightboxRef = this.gallery.ref('lightbox');
// Add custom gallery config to the lightbox (optional)
lightboxRef.setConfig({
imageSize: core_2.ImageSize.Cover,
thumbPosition: core_2.ThumbnailsPosition.Left
});
// Load items into the lightbox gallery ref
lightboxRef.load(this.unitGalleryPictures);
this.lightbox.open(0);
};
MapPinNewComponent.prototype.guid = function () {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + '-' + s4();
};
MapPinNewComponent.prototype.submitReserveForm = function () {
this.pop.hide();
};
MapPinNewComponent.prototype.setMoveMode = function () {
this.draggable = true;
this.STATUS_CLASS = 'MOVE';
this.pinTitle = "Confirm Move Pin [Unit For: (" + this.phase.name + ")]";
this.renderer.addClass(this.mapPinTemplate.nativeElement, 'map-pin-drag');
this.moveSource = this.source.mapPin;
this.pop.hide();
};
MapPinNewComponent.prototype.onDrop = function (event) {
if (this.draggable) {
var element = event.getRootElement();
var boundingClientRect = element.style.transform.replace('translate3d(', '').replace(')', '');
var finalCoordinates = boundingClientRect.split(',');
this.moveSource = {
x: this.source.mapPin.x + +(finalCoordinates[0].replace('px', '')),
y: this.source.mapPin.y + +(finalCoordinates[1].replace('px', ''))
};
}
};
MapPinNewComponent.prototype.confirmMove = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0:
this.source.mapPin = this.moveSource;
return [4 /*yield*/, this.submitForm(this.lotForm.value)];
case 1:
_a.sent();
this.ngOnInit();
this.clearMovePin();
return [2 /*return*/];
}
});
});
};
MapPinNewComponent.prototype.cancelMove = function () {
this.clearMovePin();
this.ngOnInit();
};
MapPinNewComponent.prototype.clearMovePin = function () {
this.draggable = false;
this.renderer.removeClass(this.mapPinTemplate.nativeElement, 'map-pin-drag');
this.renderer.removeClass(this.mapPinTemplate.nativeElement, 'cdk-drag');
this.mapPinTemplate.nativeElement.style.transform = null;
};
MapPinNewComponent.prototype.ngAfterViewInit = function () {
};
MapPinNewComponent.prototype.ngOnDestroy = function () {
};
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", unit_model_1.Unit)
], MapPinNewComponent.prototype, "source", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapPinNewComponent.prototype, "blocks", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapPinNewComponent.prototype, "unitTypes", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", phase_model_1.Phase)
], MapPinNewComponent.prototype, "phase", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", String)
], MapPinNewComponent.prototype, "title", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapPinNewComponent.prototype, "pinViewingType", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapPinNewComponent.prototype, "disableAddForm", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapPinNewComponent.prototype, "galleryImages", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapPinNewComponent.prototype, "clickPin", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapPinNewComponent.prototype, "isUnMap", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapPinNewComponent.prototype, "onAfterReserve", void 0);
tslib_1.__decorate([
core_1.ViewChild('pop'),
tslib_1.__metadata("design:type", Object)
], MapPinNewComponent.prototype, "pop", void 0);
tslib_1.__decorate([
core_1.ViewChild('lotNoInput'),
tslib_1.__metadata("design:type", core_1.ElementRef)
], MapPinNewComponent.prototype, "lotNoInput", void 0);
tslib_1.__decorate([
core_1.ViewChild('mapPinTemplate'),
tslib_1.__metadata("design:type", core_1.ElementRef)
], MapPinNewComponent.prototype, "mapPinTemplate", void 0);
tslib_1.__decorate([
core_1.HostListener('document:keydown', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [KeyboardEvent]),
tslib_1.__metadata("design:returntype", void 0)
], MapPinNewComponent.prototype, "onKeydownHandler", null);
MapPinNewComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-map-pin-new',
template: __webpack_require__(/*! ./map-pin-new.component.html */ "./src/app/infrastructure/shared/components/map-pin-new/map-pin-new.component.html"),
styles: [__webpack_require__(/*! ./map-pin-new.component.scss */ "./src/app/infrastructure/shared/components/map-pin-new/map-pin-new.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [forms_1.FormBuilder,
ngx_bootstrap_1.BsModalService,
lightbox_1.Lightbox,
core_2.Gallery,
unit_service_1.UnitService,
pub_sub_service_1.PubSubService,
core_1.Renderer2])
], MapPinNewComponent);
return MapPinNewComponent;
}(component_base_1.ComponentBase));
exports.MapPinNewComponent = MapPinNewComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-pin/map-pin.component.html":
/*!*********************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-pin/map-pin.component.html ***!
\*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n\n \n \n\n \n \n \n\n \n \n
\n
\n Your booking form to this unit has been added to our system.\n To complete the booking process, please submit all the\n required documents to our office within 48 hrs.\n
\n
\n
\n Please be informed that this failure to submit the documents at the allocated time would mean forfeiture of this\n booking unit.\n
\n
\n \n
\n
\n {{trackingNo}}\n
\n
\n \n
\n
\n
\n
\n "
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-pin/map-pin.component.scss":
/*!*********************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-pin/map-pin.component.scss ***!
\*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "/** ALL COLORS DECLARED TO BE USED FOR AIHRIS APP **/\n/** END OF COLOR DECLARATION **/\n/** BORDER RADIUS **/\n.lot-title {\n padding: 10px;\n padding-top: 0;\n text-align: center;\n font-weight: 600;\n font-size: 20px; }\n.pin-form .pin-actions {\n display: flex; }\n.pin-form .pin-actions button {\n flex: 1; }\n.close {\n color: white !important;\n font-size: 30px; }\n.reservation {\n padding: 20px; }\n.reservation .reservation-row {\n display: flex; }\n.reservation .reservation-row .reservation-item {\n font-size: 12px;\n padding-right: 5px;\n min-width: 150px; }\n.reservation .reservation-row .reservation-item a {\n cursor: pointer;\n color: #0E4563;\n text-decoration: underline; }\n.reservation .reservation-form {\n padding: 20px; }\n.reservation .reservation-form .reservation-form-header {\n font-size: 20px;\n text-align: center; }\n.reservation .reservation-form form {\n padding-top: 15px; }\n.reservation .reservation-tracking {\n padding-top: 20px;\n text-align: center; }\n.reservation .reservation-tracking .reservation-tracking-header {\n padding: 5px; }\n.reservation .reservation-tracking .reservation-tracking-body {\n padding: 5px; }\n.reservation .reservation-tracking .reservation-tracking-body .tracing-code {\n font-size: 20px;\n padding: 10px;\n background-color: #BCBCCB; }\n.modal-header-custom {\n background: #092433;\n color: white;\n font-weight: lighter;\n text-align: center;\n box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4) !important; }\n.modal-header-custom h4 {\n font-weight: lighter;\n width: 100%; }\n.modal-dialog {\n max-width: 100% !important; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL3Njc3MvdmFyaWFibGVzLnNjc3MiLCIvZGlzdC9zcmMvYXBwL3NyYy9hcHAvaW5mcmFzdHJ1Y3R1cmUvc2hhcmVkL2NvbXBvbmVudHMvbWFwLXBpbi9tYXAtcGluLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9EQUFBO0FBcUJBLCtCQUFBO0FBRUEsb0JBQUE7QUNyQkE7RUFDSSxhQUFhO0VBQ2IsY0FBYztFQUNkLGtCQUFrQjtFQUNsQixnQkFBZ0I7RUFDaEIsZUFBZSxFQUFBO0FBR25CO0VBRVEsYUFBYSxFQUFBO0FBRnJCO0lBSVksT0FBTyxFQUFBO0FBS25CO0VBQ0ksdUJBQXVCO0VBQ3ZCLGVBQWUsRUFBQTtBQUduQjtFQUNJLGFBQWEsRUFBQTtBQURqQjtJQUdRLGFBQWEsRUFBQTtBQUhyQjtNQUtZLGVBQWU7TUFDZixrQkFBa0I7TUFDbEIsZ0JBQWdCLEVBQUE7QUFQNUI7UUFTZ0IsZUFBZTtRQUNmLGNEaENNO1FDaUNOLDBCQUEwQixFQUFBO0FBWDFDO0lBZ0JRLGFBQWEsRUFBQTtBQWhCckI7TUFrQlksZUFBZTtNQUNmLGtCQUFrQixFQUFBO0FBbkI5QjtNQXNCWSxpQkFBaUIsRUFBQTtBQXRCN0I7SUEwQlEsaUJBQWlCO0lBQ2pCL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Ege1xuICAgICAgICAgICAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICAgICAgICAgICAgICBjb2xvcjogJHByaW1hcnktYmx1ZTtcbiAgICAgICAgICAgICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbiAgICAucmVzZXJ2YXRpb24tZm9ybSB7XG4gICAgICAgIHBhZGRpbmc6IDIwcHg7XG4gICAgICAgIC5yZXNlcnZhdGlvbi1mb3JtLWhlYWRlciB7XG4gICAgICAgICAgICBmb250LXNpemU6IDIwcHg7XG4gICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgIH1cbiAgICAgICAgZm9ybSB7XG4gICAgICAgICAgICBwYWRkaW5nLXRvcDogMTVweDtcbiAgICAgICAgfVxuICAgIH1cbiAgICAucmVzZXJ2YXRpb24tdHJhY2tpbmcge1xuICAgICAgICBwYWRkaW5nLXRvcDogMjBweDtcbiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICAucmVzZXJ2YXRpb24tdHJhY2tpbmctaGVhZGVyIHtcbiAgICAgICAgICAgIHBhZGRpbmc6IDVweDtcbiAgICAgICAgfVxuICAgICAgICAucmVzZXJ2YXRpb24tdHJhY2tpbmctYm9keSB7XG4gICAgICAgICAgICBwYWRkaW5nOiA1cHg7XG4gICAgICAgICAgICAudHJhY2luZy1jb2RlIHtcbiAgICAgICAgICAgICAgICBmb250LXNpemU6IDIwcHg7XG4gICAgICAgICAgICAgICAgcGFkZGluZzogMTBweDtcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAkZ3JleS0yO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuXG4ubW9kYWwtaGVhZGVyLWN1c3RvbSB7XG4gICAgYmFja2dyb3VuZDogIzA5MjQzMztcbiAgICBjb2xvcjogd2hpdGU7XG4gICAgZm9udC13ZWlnaHQ6IGxpZ2h0ZXI7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIGJveC1zaGFkb3c6IDAgMCAxMHB4IDAgcmdiYSgwLCAwLCAwLCAwLjQpICFpbXBvcnRhbnQ7XG4gICAgaDQge1xuICAgICAgICBmb250LXdlaWdodDogbGlnaHRlcjtcbiAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgfVxufVxuXG4ubW9kYWwtZGlhbG9nIHtcbiAgICBtYXgtd2lkdGg6IDEwMCUgIWltcG9ydGFudDtcbn1cbiJdfQ== */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/map-pin/map-pin.component.ts":
/*!*******************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/map-pin/map-pin.component.ts ***!
\*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var local_storage_service_1 = __webpack_require__(/*! @app/shared/services/local-storage.service */ "./src/app/infrastructure/shared/services/local-storage.service.ts");
var map_board_component_1 = __webpack_require__(/*! ../map-board/map-board.component */ "./src/app/infrastructure/shared/components/map-board/map-board.component.ts");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
var ngx_bootstrap_1 = __webpack_require__(/*! ngx-bootstrap */ "./node_modules/ngx-bootstrap/esm5/ngx-bootstrap.js");
var temp_reservation_service_1 = __webpack_require__(/*! @app/data/services/temp-reservation.service */ "./src/app/infrastructure/data/services/temp-reservation.service.ts");
var rxjs_1 = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var common_ajax_service_1 = __webpack_require__(/*! @app/data/ajax/common-ajax.service */ "./src/app/infrastructure/data/ajax/common-ajax.service.ts");
var environment_1 = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
var tmpReservaion_model_1 = __webpack_require__(/*! @app/data/models/tmpReservaion.model */ "./src/app/infrastructure/data/models/tmpReservaion.model.ts");
var lightbox_1 = __webpack_require__(/*! @ngx-gallery/lightbox */ "./node_modules/@ngx-gallery/lightbox/fesm5/ngx-gallery-lightbox.js");
var core_2 = __webpack_require__(/*! @ngx-gallery/core */ "./node_modules/@ngx-gallery/core/fesm5/ngx-gallery-core.js");
var utilities_service_1 = __webpack_require__(/*! @app/shared/services/utilities.service */ "./src/app/infrastructure/shared/services/utilities.service.ts");
var component_base_1 = __webpack_require__(/*! @app/common/component-base */ "./src/app/common/component-base.ts");
var MapPinComponent = /** @class */ (function (_super) {
tslib_1.__extends(MapPinComponent, _super);
function MapPinComponent(local, formBuilder, modalService, tmpReservationSvc, commonAjaxSvc, lightbox, gallery, UTILITIES) {
var _this = _super.call(this) || this;
_this.local = local;
_this.formBuilder = formBuilder;
_this.modalService = modalService;
_this.tmpReservationSvc = tmpReservationSvc;
_this.commonAjaxSvc = commonAjaxSvc;
_this.lightbox = lightbox;
_this.gallery = gallery;
_this.UTILITIES = UTILITIES;
_this.$destroyed = new rxjs_1.Subject();
_this.pinViewingType = 'create';
_this.disableAddForm = false;
_this.galleryImages = [];
_this.clickPin = new core_1.EventEmitter();
_this.isUnMap = new core_1.EventEmitter();
// tslint:disable-next-line:no-output-on-prefix
_this.onAfterReserve = new core_1.EventEmitter();
_this.STATUS_CLASS = 'available';
_this.pinTitle = '';
_this.unitGalleryPictures = [];
_this.PIN_STYLES = {
'top': '0px',
'left': '0px'
};
return _this;
}
MapPinComponent.prototype.onHidden = function () {
if ((this.pinViewingType === 'create' || this.pinViewingType === 'edit') && this.lotForm.invalid) {
this.isUnMap.emit(this.source);
}
};
MapPinComponent.prototype.ngOnChanges = function (changes) {
this.PIN_STYLES['top'] = this.source.y_pos + "px";
this.PIN_STYLES['left'] = this.source.x_pos + "px";
this.STATUS_CLASS = this.source.status;
};
MapPinComponent.prototype.submitForm = function (data) {
this.source.lotNumber = data.name;
this.pop.hide();
this.clickPin.emit(this.source);
};
MapPinComponent.prototype.unMap = function () {
this.pop.hide();
this.isUnMap.emit(this.source);
};
MapPinComponent.prototype.ngOnInit = function () {
var _this = this;
this.PIN_STYLES['top'] = this.source.y_pos + "px";
this.PIN_STYLES['left'] = this.source.x_pos + "px";
this.STATUS_CLASS = this.source.status;
this.pinTitle = this.title;
if (this.source.others && this.source.others.data) {
this.pinTitle = this.title + " (" + this.source.others.data.sqm + " sqm)";
}
if (this.pinViewingType === 'reservation') {
if (this.galleryImages != null) {
for (var _i = 0, _a = this.galleryImages; _i < _a.length; _i++) {
var x = _a[_i];
if (this.source.others.unitType.id === x.typeId) {
this.unitGalleryPictures.push(new core_2.ImageItem({
src: x.src,
thumb: x.src
}));
}
}
}
this.pinTitle = this.source.pinTitle;
this.pinTitle = '';
this.reserveForm = this.formBuilder.group({
'email': new forms_1.FormControl('', [forms_1.Validators.required, forms_1.Validators.email])
});
}
else {
if (typeof this.source !== 'undefined' && typeof this.source.lotNumber !== 'undefined') {
this.lotForm = this.formBuilder.group({
'name': new forms_1.FormControl(this.source.lotNumber, [forms_1.Validators.required, forms_1.Validators.minLength(1)])
});
}
else {
this.lotForm = this.formBuilder.group({
'name': new forms_1.FormControl('', [forms_1.Validators.required, forms_1.Validators.minLength(1)])
});
}
setTimeout(function () {
if (_this.lotNoInput && _this.lotNoInput.nativeElement) {
_this.lotNoInput.nativeElement.focus();
}
}, 150);
}
this.reservationSlotForm = this.formBuilder.group({
firstName: new forms_1.FormControl('', [forms_1.Validators.required, forms_1.Validators.minLength(2)]),
lastName: new forms_1.FormControl('', [forms_1.Validators.required, forms_1.Validators.minLength(2)]),
contactNo: new forms_1.FormControl('', [forms_1.Validators.required, forms_1.Validators.minLength(10)]),
email: new forms_1.FormControl('', [forms_1.Validators.required, forms_1.Validators.email]),
address: new forms_1.FormControl('', [forms_1.Validators.required, forms_1.Validators.minLength(5)])
});
setTimeout(function () {
if (typeof _this.lotForm !== 'undefined' && _this.lotForm.invalid) {
_this.pop.show();
}
}, 100);
};
MapPinComponent.prototype.openReservationModal = function (template) {
this.modalRef = this.modalService.show(template, {});
this.pop.hide();
};
MapPinComponent.prototype.submitReservationModal = function (clientForm, unitData) {
var _this = this;
if (this.reservationSlotForm.invalid) {
this.UTILITIES.ShowMaterialMessageBox({
title: 'Opps!',
content: 'Your form is incomplete, please review again'
}, 'warning', 'ok');
return;
}
var clientData = clientForm;
var tmpReservation = new tmpReservaion_model_1.TmpReservation();
tmpReservation.contactNo = clientData.contactNo;
tmpReservation.firstName = clientData.firstName;
tmpReservation.lastName = clientData.lastName;
tmpReservation.unitId = unitData.id;
tmpReservation.email = clientData.email;
tmpReservation.address = clientData.address;
var enpdpoint = environment_1.environment.apiUrl + "/reservations/public-reserve/";
this.commonAjaxSvc.post(enpdpoint, tmpReservation).subscribe(function (resp) {
_this.modalRef.hide();
_this.trackingNo = resp;
_this.STATUS_CLASS = 'TEMP_RESERVED';
_this.onAfterReserve.emit({ trackingNumber: resp });
_this.openReservationModal(_this.reservationConfirmationModal);
_this.pop.hide();
}, function (err) {
_this.UTILITIES.ShowMaterialMessageBox({
title: 'Oh No!',
content: 'We\'re unable to proceed your reservation, ' +
' please contact us via Contact Us page so we could resolve it immediately.'
}, 'danger', 'ok');
});
};
MapPinComponent.prototype.openImageModal = function () {
if (this.unitGalleryPictures === null || this.unitGalleryPictures.length <= 0) {
return;
}
// Get a lightbox gallery ref
var lightboxRef = this.gallery.ref('lightbox');
// Add custom gallery config to the lightbox (optional)
lightboxRef.setConfig({
imageSize: core_2.ImageSize.Cover,
thumbPosition: core_2.ThumbnailsPosition.Left
});
// Load items into the lightbox gallery ref
lightboxRef.load(this.unitGalleryPictures);
this.lightbox.open(0);
};
MapPinComponent.prototype.guid = function () {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + '-' + s4();
};
MapPinComponent.prototype.submitReserveForm = function () {
this.pop.hide();
};
MapPinComponent.prototype.ngAfterViewInit = function () {
};
MapPinComponent.prototype.ngOnDestroy = function () {
};
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", map_board_component_1.MapPinMarker)
], MapPinComponent.prototype, "source", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", String)
], MapPinComponent.prototype, "title", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapPinComponent.prototype, "pinViewingType", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], MapPinComponent.prototype, "disableAddForm", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], MapPinComponent.prototype, "galleryImages", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapPinComponent.prototype, "clickPin", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapPinComponent.prototype, "isUnMap", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], MapPinComponent.prototype, "onAfterReserve", void 0);
tslib_1.__decorate([
core_1.ViewChild('pop'),
tslib_1.__metadata("design:type", Object)
], MapPinComponent.prototype, "pop", void 0);
tslib_1.__decorate([
core_1.ViewChild('reservationConfirmationModal'),
tslib_1.__metadata("design:type", Object)
], MapPinComponent.prototype, "reservationConfirmationModal", void 0);
tslib_1.__decorate([
core_1.ViewChild('imageModal'),
tslib_1.__metadata("design:type", Object)
], MapPinComponent.prototype, "imageModal", void 0);
tslib_1.__decorate([
core_1.ViewChild('lotNoInput'),
tslib_1.__metadata("design:type", core_1.ElementRef)
], MapPinComponent.prototype, "lotNoInput", void 0);
MapPinComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-map-pin',
template: __webpack_require__(/*! ./map-pin.component.html */ "./src/app/infrastructure/shared/components/map-pin/map-pin.component.html"),
styles: [__webpack_require__(/*! ./map-pin.component.scss */ "./src/app/infrastructure/shared/components/map-pin/map-pin.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [local_storage_service_1.LocalStorageService,
forms_1.FormBuilder,
ngx_bootstrap_1.BsModalService,
temp_reservation_service_1.TempReservationService,
common_ajax_service_1.CommonAjaxService,
lightbox_1.Lightbox,
core_2.Gallery,
utilities_service_1.UtilitiesService])
], MapPinComponent);
return MapPinComponent;
}(component_base_1.ComponentBase));
exports.MapPinComponent = MapPinComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/message-box-bs/message-box-bs.component.html":
/*!***********************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/message-box-bs/message-box-bs.component.html ***!
\***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n
\n
\n \n \n \n \n \n
\n
\n
{{title == '' ? 'Inquiry' : title}} \n {{title == '' ? 'Info' : title}} \n {{title == '' ? 'Success' : title}} \n {{title == '' ? 'Warning' : title}} \n {{title == '' ? 'Error' : title}} \n \n
\n
\n \n
"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/message-box-bs/message-box-bs.component.scss":
/*!***********************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/message-box-bs/message-box-bs.component.scss ***!
\***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "/** ALL COLORS DECLARED TO BE USED FOR AIHRIS APP **/\n/** END OF COLOR DECLARATION **/\n/** BORDER RADIUS **/\n/** ALL COLORS DECLARED TO BE USED FOR AIHRIS APP **/\n/** END OF COLOR DECLARATION **/\n/** BORDER RADIUS **/\n.message-box-bs .modal-body {\n text-align: center;\n padding: 5px; }\n.message-box-bs .modal-body .logo {\n font-size: 35px; }\n.message-box-bs .modal-body .logo.success i {\n color: #57B847; }\n.message-box-bs .modal-body .logo.primary i {\n color: #0E4563; }\n.message-box-bs .modal-body .logo.warning i {\n color: #D19C27; }\n.message-box-bs .modal-body .logo.danger i {\n color: #E73438; }\n.message-box-bs .modal-body .logo.default i {\n color: black; }\n.message-box-bs .modal-body h4 {\n font-size: 15px;\n text-transform: uppercase; }\n.message-box-bs .modal-footer {\n text-align: center;\n display: block;\n justify-content: none;\n font-size: 16px;\n font-weight: 400;\n cursor: pointer;\n transition: all .2s ease-in;\n padding: 0;\n color: white; }\n.message-box-bs .modal-footer .modal-footer-item {\n padding: 9px; }\n.message-box-bs .modal-footer .modal-footer-item:hover {\n opacity: 0.5; }\n.message-box-bs .modal-footer.yesNo {\n padding: 0px;\n cursor: auto; }\n.message-box-bs .modal-footer.yesNo .modal-footer-item {\n display: flex;\n padding: 0px; }\n.message-box-bs .modal-footer.yesNo .modal-footer-item button {\n width: 100%;\n padding: 9px;\n flex: 1; }\n.message-box-bs .modal-footer.yesNo .modal-footer-item:hover {\n opacity: 1; }\n.success.modal-footer .modal-footer-item {\n background-color: #57B847; }\n.primary.modal-footer .modal-footer-item {\n background-color: #0E4563; }\n.warning.modal-footer .modal-footer-item {\n background-color: #D19C27; }\n.danger.modal-footer .modal-footer-item {\n background-color: #E73438; }\n.default.modal-footer .modal-footer-item {\n background-color: white;\n color: black; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL3Njc3MvdmFyaWFibGVzLnNjc3MiLCIvZGlzdC9zcmMvYXBwL3NyYy9hcHAvaW5mcmFzdHJ1Y3R1cmUvc2hhcmVkL2NvbXBvbmVudHMvbWVzc2FnZS1ib3gtYnMvbWVzc2FnZS1ib3gtYnMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0RBQUE7QUFxQkEsK0JBQUE7QUFFQSxvQkFBQTtBQXZCQSxvREFBQTtBQXFCQSwrQkFBQTtBQUVBLG9CQUFBO0FDckJBO0VBRVEsa0JBQWtCO0VBQ2xCLFlBQVksRUFBQTtBQUhwQjtJQUtZLGVBQWUsRUFBQTtBQ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5sb2dvIHtcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMzVweDtcbiAgICAgICAgICAgICYuc3VjY2VzcyB7XG4gICAgICAgICAgICAgICAgaSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbG9yOiAkcHJpbWFyeS1ncmVlbjtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAmLnByaW1hcnkge1xuICAgICAgICAgICAgICAgIGkge1xuICAgICAgICAgICAgICAgICAgICBjb2xvcjogJHByaW1hcnktYmx1ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAmLndhcm5pbmcge1xuICAgICAgICAgICAgICAgIGkge1xuICAgICAgICAgICAgICAgICAgICBjb2xvcjogJHByaW1hcnktb3JhbmdlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgICYuZGFuZ2VyIHtcbiAgICAgICAgICAgICAgICBpIHtcbiAgICAgICAgICAgICAgICAgICAgY29sb3I6ICRwcmltYXJ5LXJlZDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAmLmRlZmF1bHQge1xuICAgICAgICAgICAgICAgIGkge1xuICAgICAgICAgICAgICAgICAgICBjb2xvcjogYmxhY2s7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGg0IHtcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMTVweDtcbiAgICAgICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG4gICAgICAgIH1cbiAgICB9XG4gICAgLm1vZGFsLWZvb3RlciB7XG4gICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogbm9uZTtcbiAgICAgICAgZm9udC1zaXplOiAxNnB4O1xuICAgICAgICBmb250LXdlaWdodDogNDAwO1xuICAgICAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgICAgIHRyYW5zaXRpb246IGFsbCAuMnMgZWFzZS1pbjtcbiAgICAgICAgcGFkZGluZzogMDtcbiAgICAgICAgY29sb3I6IHdoaXRlO1xuICAgICAgICAubW9kYWwtZm9vdGVyLWl0ZW0ge1xuICAgICAgICAgICAgcGFkZGluZzogOXB4O1xuICAgICAgICAgICAgJjpob3ZlciB7XG4gICAgICAgICAgICAgICAgb3BhY2l0eTogMC41O1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgICYueWVzTm8ge1xuICAgICAgICAgICAgcGFkZGluZzogMHB4O1xuICAgICAgICAgICAgY3Vyc29yOiBhdXRvO1xuICAgICAgICAgICAgLm1vZGFsLWZvb3Rlci1pdGVtIHtcbiAgICAgICAgICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICAgICAgICAgIHBhZGRpbmc6IDBweDtcbiAgICAgICAgICAgICAgICBidXR0b24ge1xuICAgICAgICAgICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogOXB4O1xuICAgICAgICAgICAgICAgICAgICBmbGV4OiAxO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAmOmhvdmVyIHtcbiAgICAgICAgICAgICAgICAgICAgb3BhY2l0eTogMTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59XG5cbi5tb2RhbC1mb290ZXIge1xuICAgIC5tb2RhbC1mb290ZXItaXRlbSB7XG4gICAgICAgIEBhdC1yb290IC5zdWNjZXNzI3smfSB7XG4gICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAkcHJpbWFyeS1ncmVlbjtcbiAgICAgICAgfVxuICAgICAgICBAYXQtcm9vdCAucHJpbWFyeSN7Jn0ge1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHByaW1hcnktYmx1ZTtcbiAgICAgICAgfVxuICAgICAgICBAYXQtcm9vdCAud2FybmluZyN7Jn0ge1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHByaW1hcnktb3JhbmdlO1xuICAgICAgICB9XG4gICAgICAgIEBhdC1yb290IC5kYW5nZXIjeyZ9IHtcbiAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICRwcmltYXJ5LXJlZDtcbiAgICAgICAgfVxuICAgICAgICBAYXQtcm9vdCAuZGVmYXVsdCN7Jn0ge1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XG4gICAgICAgICAgICBjb2xvcjogYmxhY2s7XG4gICAgICAgIH1cbiAgICB9XG59Il19 */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/message-box-bs/message-box-bs.component.ts":
/*!*********************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/message-box-bs/message-box-bs.component.ts ***!
\*********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var ngx_bootstrap_1 = __webpack_require__(/*! ngx-bootstrap */ "./node_modules/ngx-bootstrap/esm5/ngx-bootstrap.js");
var platform_browser_1 = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
var MessageBoxBsComponent = /** @class */ (function () {
function MessageBoxBsComponent(bsModalRef, sanitizer) {
this.bsModalRef = bsModalRef;
this.sanitizer = sanitizer;
this.type = 'success';
this.buttons = 'ok';
this.content = '';
this.title = '';
}
MessageBoxBsComponent.prototype.ngOnInit = function () {
};
MessageBoxBsComponent.prototype.ngAfterViewInit = function () {
var _this = this;
setTimeout(function () {
_this.content = _this.bsModalRef.content.content;
_this.domContent = _this.sanitizer.bypassSecurityTrustHtml(_this.content);
_this.title = _this.bsModalRef.content.title;
_this.type = _this.bsModalRef.content.type;
_this.buttons = _this.bsModalRef.content.buttons;
_this.footer.nativeElement.classList.add(_this.bsModalRef.content.type);
_this.footer.nativeElement.classList.add(_this.bsModalRef.content.buttons);
_this.logo.nativeElement.classList.add(_this.bsModalRef.content.type);
}, 15);
};
MessageBoxBsComponent.prototype.close = function () {
this.bsModalRef.hide();
};
MessageBoxBsComponent.prototype.yesNo = function (result) {
this.bsModalRef.content.reason = result;
this.bsModalRef.hide();
};
tslib_1.__decorate([
core_1.ViewChild('footer'),
tslib_1.__metadata("design:type", core_1.ElementRef)
], MessageBoxBsComponent.prototype, "footer", void 0);
tslib_1.__decorate([
core_1.ViewChild('logo'),
tslib_1.__metadata("design:type", core_1.ElementRef)
], MessageBoxBsComponent.prototype, "logo", void 0);
MessageBoxBsComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-message-box-bs',
template: __webpack_require__(/*! ./message-box-bs.component.html */ "./src/app/infrastructure/shared/components/message-box-bs/message-box-bs.component.html"),
styles: [__webpack_require__(/*! ./message-box-bs.component.scss */ "./src/app/infrastructure/shared/components/message-box-bs/message-box-bs.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [ngx_bootstrap_1.BsModalRef,
platform_browser_1.DomSanitizer])
], MessageBoxBsComponent);
return MessageBoxBsComponent;
}());
exports.MessageBoxBsComponent = MessageBoxBsComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/message-box/message-box.component.html":
/*!*****************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/message-box/message-box.component.html ***!
\*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n
\n
\n \n \n \n \n \n
\n
\n
{{config.config.title == '' ? 'Inquiry' : config.config.title}} \n {{config.config.title == '' ? 'Info' : config.config.title}} \n {{config.config.title == '' ? 'Success' : config.config.title}} \n {{config.config.title == '' ? 'Warning' : config.config.title}} \n {{config.config.title == '' ? 'Error' : config.config.title}} \n \n
\n
\n
\n \n
"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/message-box/message-box.component.scss":
/*!*****************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/message-box/message-box.component.scss ***!
\*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "/** ALL COLORS DECLARED TO BE USED FOR AIHRIS APP **/\n/** END OF COLOR DECLARATION **/\n/** BORDER RADIUS **/\n/** ALL COLORS DECLARED TO BE USED FOR AIHRIS APP **/\n/** END OF COLOR DECLARATION **/\n/** BORDER RADIUS **/\n.message-box {\n min-width: 400px; }\n.message-box .modal-body {\n text-align: center;\n padding-bottom: 20px; }\n.message-box .modal-body .cotent-data {\n padding: 0 10px; }\n.message-box .modal-body .logo {\n font-size: 35px; }\n.message-box .modal-body .logo.success i {\n color: #57B847; }\n.message-box .modal-body .logo.primary i {\n color: #0E4563; }\n.message-box .modal-body .logo.warning i {\n color: #D19C27; }\n.message-box .modal-body .logo.danger i {\n color: #E73438; }\n.message-box .modal-body .logo.default i {\n color: black; }\n.message-box .modal-body h4 {\n font-size: 15px;\n text-transform: uppercase; }\n.message-box .modal-footer {\n padding-top: 10px;\n text-align: center;\n display: block;\n justify-content: none;\n font-size: 16px;\n font-weight: 400;\n cursor: pointer;\n transition: all .2s ease-in;\n padding: 0;\n color: white; }\n.message-box .modal-footer .modal-footer-item {\n display: flex;\n padding: 0px; }\n.message-box .modal-footer .modal-footer-item button {\n width: 100%;\n padding: 9px;\n flex: 1; }\n.message-box .modal-footer .modal-footer-item button.confirm {\n background: #57B847 !important;\n color: white !important; }\n.message-box .modal-footer .modal-footer-item button.warn {\n background: #E73438 !important;\n color: white !important; }\n.message-box .modal-footer.yesNo {\n cursor: auto; }\n.message-box .modal-footer.yesNo .modal-footer-item:hover {\n opacity: 1; }\n.success.modal-footer .modal-footer-item button {\n background-color: #57B847; }\n.primary.modal-footer .modal-footer-item button {\n background-color: #0E4563; }\n.warning.modal-footer .modal-footer-item button {\n background-color: #D19C27; }\n.danger.modal-footer .modal-footer-item button {\n background-color: #E73438; }\n.default.modal-footer .modal-footer-item button {\n background-color: white;\n color: black; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL3Njc3MvdmFyaWFibGVzLnNjc3MiLCIvZGlzdC9zcmMvYXBwL3NyYy9hcHAvaW5mcmFzdHJ1Y3R1cmUvc2hhcmVkL2NvbXBvbmVudHMvbWVzc2FnZS1ib3gvbWVzc2FnZS1ib3guY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0RBQUE7QUFxQkEsK0JBQUE7QUFFQSxvQkFBQTtBQXZCQSxvREFBQTtBQXFCQSwrQkFBQTtBQUVBLG9CQUFBO0FDckJBO0VBQ0ksZ0JBQWdCLEVBQUE7QUFEcEI7SUFHUSxrQkFBa0I7SUFDbEIsb0JBQW9CLEVBQUE7QUFKNUI7TUFNWSxlQUFlLEVBQUE7QUFOM0I7TUFTWSxlQUFlLEVBQUE7QUFUM0I7UUFZb0IsY0RSRyxFQUFBO0FDSnZCO1FBaUJvQixjRGpCRSxFQUFBO0FDQXRCO1FBc0JvQixjRGpCSSxFQUFBO0FDTHhCO1FBMkJvQixjRDFCQyxFQUFBO0FDRHJCO1FBZ0NvQixZQUFZLEVBQUE7QUFoQ2hDO01BcUNZLGVBQWU7TUFDZix5QkFBeUIsRUFBQTtBQXRDckM7SUEwQ1EsaUJBQWlCO0lBQ2pCLGtCQUFrQjtJQUNsQixjQUFjO0lBQ2QscUJBQXFCO0lBQ3JCLGVBQWU7SUFDZixnQkFBZ0I7SUFDaEIsZUFBZTtJQUNmLDJCQUEyQjtJQUMzQixVQUFVO0lBQ1YsWUFBWSxFQUFBO0FBbkRwQjtNQXFEWSxhQUFhO01BQ2IsWUFBWSxFQUFBO0FBdER4QjtRQXdEZ0IsV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YXJ5LWJsdWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgJi53YXJuaW5nIHtcbiAgICAgICAgICAgICAgICBpIHtcbiAgICAgICAgICAgICAgICAgICAgY29sb3I6ICRwcmltYXJ5LW9yYW5nZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAmLmRhbmdlciB7XG4gICAgICAgICAgICAgICAgaSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbG9yOiAkcHJpbWFyeS1yZWQ7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgJi5kZWZhdWx0IHtcbiAgICAgICAgICAgICAgICBpIHtcbiAgICAgICAgICAgICAgICAgICAgY29sb3I6IGJsYWNrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBoNCB7XG4gICAgICAgICAgICBmb250LXNpemU6IDE1cHg7XG4gICAgICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuICAgICAgICB9XG4gICAgfVxuICAgIC5tb2RhbC1mb290ZXIge1xuICAgICAgICBwYWRkaW5nLXRvcDogMTBweDtcbiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICBkaXNwbGF5OiBibG9jaztcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBub25lO1xuICAgICAgICBmb250LXNpemU6IDE2cHg7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiA0MDA7XG4gICAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICAgICAgdHJhbnNpdGlvbjogYWxsIC4ycyBlYXNlLWluO1xuICAgICAgICBwYWRkaW5nOiAwO1xuICAgICAgICBjb2xvcjogd2hpdGU7XG4gICAgICAgIC5tb2RhbC1mb290ZXItaXRlbSB7XG4gICAgICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICAgICAgcGFkZGluZzogMHB4O1xuICAgICAgICAgICAgYnV0dG9uIHtcbiAgICAgICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICAgICAgICBwYWRkaW5nOiA5cHg7XG4gICAgICAgICAgICAgICAgZmxleDogMTtcbiAgICAgICAgICAgICAgICAmLmNvbmZpcm0ge1xuICAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiAkcHJpbWFyeS1ncmVlbiAhaW1wb3J0YW50O1xuICAgICAgICAgICAgICAgICAgICBjb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgJi53YXJuIHtcbiAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZDogJHByaW1hcnktcmVkICFpbXBvcnRhbnQ7XG4gICAgICAgICAgICAgICAgICAgIGNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICAmLnllc05vIHtcbiAgICAgICAgICAgIGN1cnNvcjogYXV0bztcbiAgICAgICAgICAgIC5tb2RhbC1mb290ZXItaXRlbSB7XG4gICAgICAgICAgICAgICAgJjpob3ZlciB7XG4gICAgICAgICAgICAgICAgICAgIG9wYWNpdHk6IDE7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuXG4ubW9kYWwtZm9vdGVyIHtcbiAgICAubW9kYWwtZm9vdGVyLWl0ZW0ge1xuICAgICAgICBAYXQtcm9vdCAuc3VjY2VzcyN7Jn0ge1xuICAgICAgICAgICAgYnV0dG9uIHtcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAkcHJpbWFyeS1ncmVlbjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBAYXQtcm9vdCAucHJpbWFyeSN7Jn0ge1xuICAgICAgICAgICAgYnV0dG9uIHtcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAkcHJpbWFyeS1ibHVlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIEBhdC1yb290IC53YXJuaW5nI3smfSB7XG4gICAgICAgICAgICBidXR0b24ge1xuICAgICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICRwcmltYXJ5LW9yYW5nZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBAYXQtcm9vdCAuZGFuZ2VyI3smfSB7XG4gICAgICAgICAgICBidXR0b24ge1xuICAgICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICRwcmltYXJ5LXJlZDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBAYXQtcm9vdCAuZGVmYXVsdCN7Jn0ge1xuICAgICAgICAgICAgYnV0dG9uIHtcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbiAgICAgICAgICAgICAgICBjb2xvcjogYmxhY2s7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59Il19 */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/message-box/message-box.component.ts":
/*!***************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/message-box/message-box.component.ts ***!
\***************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var material_1 = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
var MessageBoxComponent = /** @class */ (function () {
function MessageBoxComponent(dialogRef, data) {
this.dialogRef = dialogRef;
this.data = data;
this.content = [];
this.config = data;
}
MessageBoxComponent.prototype.ngOnInit = function () {
};
MessageBoxComponent.prototype.ngAfterViewInit = function () {
var _this = this;
setTimeout(function () {
if (typeof _this.config.config.content === 'string') {
_this.content = _this.config.config.content.split(/\n/);
}
else {
_this.content = _this.config.config.content;
}
_this.footer.nativeElement.classList.add(_this.config.type);
_this.footer.nativeElement.classList.add(_this.config.buttons);
_this.logo.nativeElement.classList.add(_this.config.type);
}, 15);
};
MessageBoxComponent.prototype.checkType = function (value) {
return typeof value;
};
MessageBoxComponent.prototype.close = function () {
this.dialogRef.close();
};
MessageBoxComponent.prototype.executeResult = function (result) {
this.dialogRef.close(result);
};
tslib_1.__decorate([
core_1.ViewChild('footer'),
tslib_1.__metadata("design:type", core_1.ElementRef)
], MessageBoxComponent.prototype, "footer", void 0);
tslib_1.__decorate([
core_1.ViewChild('logo'),
tslib_1.__metadata("design:type", core_1.ElementRef)
], MessageBoxComponent.prototype, "logo", void 0);
MessageBoxComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-message-box',
template: __webpack_require__(/*! ./message-box.component.html */ "./src/app/infrastructure/shared/components/message-box/message-box.component.html"),
styles: [__webpack_require__(/*! ./message-box.component.scss */ "./src/app/infrastructure/shared/components/message-box/message-box.component.scss")]
}),
tslib_1.__param(1, core_1.Inject(material_1.MAT_DIALOG_DATA)),
tslib_1.__metadata("design:paramtypes", [material_1.MatDialogRef, Object])
], MessageBoxComponent);
return MessageBoxComponent;
}());
exports.MessageBoxComponent = MessageBoxComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/shared-autocomplete/shared-autocomplete.component.html":
/*!*********************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/shared-autocomplete/shared-autocomplete.component.html ***!
\*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n \n {{label}} \n \n This field is required. \n {{hint}} \n \n \n \n \n \n \n \n ADD NEW\n \n \n \n \n \n {{displayWith(item)}}\n \n \n \n \n {{displayWith(item)}}\n \n \n \n "
/***/ }),
/***/ "./src/app/infrastructure/shared/components/shared-autocomplete/shared-autocomplete.component.scss":
/*!*********************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/shared-autocomplete/shared-autocomplete.component.scss ***!
\*********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2luZnJhc3RydWN0dXJlL3NoYXJlZC9jb21wb25lbnRzL3NoYXJlZC1hdXRvY29tcGxldGUvc2hhcmVkLWF1dG9jb21wbGV0ZS5jb21wb25lbnQuc2NzcyJ9 */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/shared-autocomplete/shared-autocomplete.component.ts":
/*!*******************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/shared-autocomplete/shared-autocomplete.component.ts ***!
\*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
var startWith_1 = __webpack_require__(/*! rxjs/internal/operators/startWith */ "./node_modules/rxjs/internal/operators/startWith.js");
var map_1 = __webpack_require__(/*! rxjs/internal/operators/map */ "./node_modules/rxjs/internal/operators/map.js");
var debounceTime_1 = __webpack_require__(/*! rxjs/internal/operators/debounceTime */ "./node_modules/rxjs/internal/operators/debounceTime.js");
var distinctUntilChanged_1 = __webpack_require__(/*! rxjs/internal/operators/distinctUntilChanged */ "./node_modules/rxjs/internal/operators/distinctUntilChanged.js");
var component_base_1 = __webpack_require__(/*! @app/common/component-base */ "./src/app/common/component-base.ts");
var SharedAutocompleteComponent = /** @class */ (function (_super) {
tslib_1.__extends(SharedAutocompleteComponent, _super);
function SharedAutocompleteComponent(cd) {
var _this = _super.call(this) || this;
_this.cd = cd;
_this.floatLabel = 'always';
_this.data = [];
_this.optionValueName = '';
_this.drawerOpened = new core_1.EventEmitter();
_this.optionSelected = new core_1.EventEmitter();
_this.data = [];
return _this;
}
SharedAutocompleteComponent.prototype.ngOnInit = function () {
var _this = this;
this.cd.detectChanges();
this.parentListner = this.parentFormGroup.get(this.name).valueChanges.pipe(distinctUntilChanged_1.distinctUntilChanged(), debounceTime_1.debounceTime(50), startWith_1.startWith(''), map_1.map(function (value) {
if (typeof value !== 'object') {
_this.selected = null;
}
return _this._filter(value).slice(0, 20);
})).subscribe(function (data) {
_this.filteredData = data;
});
};
SharedAutocompleteComponent.prototype.ngOnChanges = function (change) {
if (change['data']) {
this.filteredData = (this.data || []).slice(0, 20);
}
};
SharedAutocompleteComponent.prototype.openDrawer = function () {
this.drawerOpened.emit(true);
};
SharedAutocompleteComponent.prototype.select = function (event) {
this.hasSelected = true;
this.selected = event.option.value;
this.optionSelected.emit(event);
};
SharedAutocompleteComponent.prototype.focusOut = function () {
var val = this.parentFormGroup.get(this.name).value;
if (this.selected === null && typeof val !== 'object') {
this.parentFormGroup.get(this.name).setValue('');
this.optionSelected.emit(null);
}
};
SharedAutocompleteComponent.prototype._filter = function (value) {
var _this = this;
value = value == null ? '' : value;
var filterValue = '';
if (typeof value !== 'object') {
filterValue = (value || '').toLowerCase();
}
else {
filterValue = (this.displayWith(value) + '').toLowerCase();
}
this.data = this.data || [];
return this.data.filter(function (option) { return _this._data(option).indexOf(filterValue) !== -1; });
};
SharedAutocompleteComponent.prototype._data = function (option) {
var keywords = '';
if (typeof option !== 'object') {
keywords = (option || '');
}
else {
keywords = (this.displayWith(option) || '') + '';
}
return keywords.trim().toLowerCase();
};
SharedAutocompleteComponent.prototype.ngOnDestroy = function () {
this.parentListner.unsubscribe();
};
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SharedAutocompleteComponent.prototype, "floatLabel", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", String)
], SharedAutocompleteComponent.prototype, "placeholder", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", String)
], SharedAutocompleteComponent.prototype, "label", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", String)
], SharedAutocompleteComponent.prototype, "name", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Function)
], SharedAutocompleteComponent.prototype, "displayWith", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], SharedAutocompleteComponent.prototype, "data", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", forms_1.FormGroup)
], SharedAutocompleteComponent.prototype, "parentFormGroup", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Boolean)
], SharedAutocompleteComponent.prototype, "canAdd", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Boolean)
], SharedAutocompleteComponent.prototype, "loading", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", String)
], SharedAutocompleteComponent.prototype, "hint", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Boolean)
], SharedAutocompleteComponent.prototype, "readonly", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SharedAutocompleteComponent.prototype, "optionValueName", void 0);
tslib_1.__decorate([
core_1.ViewChild('formControlInstance'),
tslib_1.__metadata("design:type", forms_1.FormControl)
], SharedAutocompleteComponent.prototype, "formControlInstance", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SharedAutocompleteComponent.prototype, "drawerOpened", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SharedAutocompleteComponent.prototype, "optionSelected", void 0);
SharedAutocompleteComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-shared-autocomplete',
template: __webpack_require__(/*! ./shared-autocomplete.component.html */ "./src/app/infrastructure/shared/components/shared-autocomplete/shared-autocomplete.component.html"),
styles: [__webpack_require__(/*! ./shared-autocomplete.component.scss */ "./src/app/infrastructure/shared/components/shared-autocomplete/shared-autocomplete.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [core_1.ChangeDetectorRef])
], SharedAutocompleteComponent);
return SharedAutocompleteComponent;
}(component_base_1.ComponentBase));
exports.SharedAutocompleteComponent = SharedAutocompleteComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/slick/slick.component.html":
/*!*****************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/slick/slick.component.html ***!
\*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = " "
/***/ }),
/***/ "./src/app/infrastructure/shared/components/slick/slick.component.ts":
/*!***************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/slick/slick.component.ts ***!
\***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
var SlickComponent = /** @class */ (function () {
/**
* Constructor
*/
function SlickComponent(el, zone) {
this.el = el;
this.zone = zone;
this.afterChange = new core_1.EventEmitter();
this.beforeChange = new core_1.EventEmitter();
this.breakpoint = new core_1.EventEmitter();
this.destroy = new core_1.EventEmitter();
this.init = new core_1.EventEmitter();
this.slides = [];
this.initialized = false;
}
SlickComponent_1 = SlickComponent;
/**
* On component destroy
*/
SlickComponent.prototype.ngOnDestroy = function () {
this.unslick();
};
/**
* On component view init
*/
SlickComponent.prototype.ngAfterViewInit = function () {
};
/**
* init slick
*/
SlickComponent.prototype.initSlick = function () {
var _this = this;
var self = this;
this.zone.runOutsideAngular(function () {
jQuery(_this.el.nativeElement)[0].innerHTML = '';
_this.$instance = jQuery(_this.el.nativeElement);
_this.$instance.on('init', function (event, slick) {
_this.zone.run(function () {
_this.init.emit({ event: event, slick: slick });
});
});
_this.$instance.slick(_this.config);
_this.initialized = true;
_this.$instance.on('afterChange', function (event, slick, currentSlide) {
self.zone.run(function () {
self.afterChange.emit({ event: event, slick: slick, currentSlide: currentSlide });
});
});
_this.$instance.on('beforeChange', function (event, slick, currentSlide, nextSlide) {
self.zone.run(function () {
self.beforeChange.emit({ event: event, slick: slick, currentSlide: currentSlide, nextSlide: nextSlide });
});
});
_this.$instance.on('breakpoint', function (event, slick, breakpoint) {
self.zone.run(function () {
self.breakpoint.emit({ event: event, slick: slick, breakpoint: breakpoint });
});
});
_this.$instance.on('destroy', function (event, slick) {
self.zone.run(function () {
self.destroy.emit({ event: event, slick: slick });
});
});
});
};
SlickComponent.prototype.addSlide = function (slickItem) {
var _this = this;
if (!this.initialized) {
this.initSlick();
}
this.slides.push(slickItem);
this.zone.run(function () {
_this.$instance.slick('slickAdd', slickItem.el.nativeElement);
});
};
SlickComponent.prototype.removeSlide = function (slickItem) {
var _this = this;
var idx = this.slides.indexOf(slickItem);
this.zone.run(function () {
_this.$instance.slick('slickRemove', idx);
});
this.slides = this.slides.filter(function (s) { return s !== slickItem; });
};
/**
* Slick Method
*/
SlickComponent.prototype.slickGoTo = function (index) {
var _this = this;
this.zone.run(function () {
_this.$instance.slick('slickGoTo', index);
});
};
SlickComponent.prototype.slickNext = function () {
var _this = this;
this.zone.run(function () {
_this.$instance.slick('slickNext');
});
};
SlickComponent.prototype.slickPrev = function () {
var _this = this;
this.zone.run(function () {
_this.$instance.slick('slickPrev');
});
};
SlickComponent.prototype.slickPause = function () {
var _this = this;
this.zone.run(function () {
_this.$instance.slick('slickPause');
});
};
SlickComponent.prototype.slickPlay = function () {
var _this = this;
this.zone.run(function () {
_this.$instance.slick('slickPlay');
});
};
SlickComponent.prototype.unslick = function () {
var _this = this;
if (this.$instance) {
this.zone.run(function () {
_this.$instance.slick('unslick');
});
}
this.initialized = false;
};
var SlickComponent_1;
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SlickComponent.prototype, "config", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SlickComponent.prototype, "afterChange", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SlickComponent.prototype, "beforeChange", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SlickComponent.prototype, "breakpoint", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SlickComponent.prototype, "destroy", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SlickComponent.prototype, "init", void 0);
SlickComponent = SlickComponent_1 = tslib_1.__decorate([
core_1.Component({
selector: 'app-slick',
template: __webpack_require__(/*! ./slick.component.html */ "./src/app/infrastructure/shared/components/slick/slick.component.html"),
exportAs: 'slick-modal',
providers: [
{
provide: forms_1.NG_VALUE_ACCESSOR,
useExisting: core_1.forwardRef(function () { return SlickComponent_1; }),
multi: true
}
]
}),
tslib_1.__metadata("design:paramtypes", [core_1.ElementRef, core_1.NgZone])
], SlickComponent);
return SlickComponent;
}());
exports.SlickComponent = SlickComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/sw-table-control/sw-table-control.component.html":
/*!***************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/sw-table-control/sw-table-control.component.html ***!
\***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ "./src/app/infrastructure/shared/components/sw-table-control/sw-table-control.component.scss":
/*!***************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/sw-table-control/sw-table-control.component.scss ***!
\***************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "/** ALL COLORS DECLARED TO BE USED FOR AIHRIS APP **/\n/** END OF COLOR DECLARATION **/\n/** BORDER RADIUS **/\n.sw-table-control {\n position: relative;\n width: 100%;\n padding: 10px;\n background: white; }\n.sw-table-control .sw-table-control-header {\n padding: 0 15px;\n padding-top: 10px; }\n.sw-table-control .sw-table-control-header .mat-button {\n min-width: auto; }\n.sw-table-control .sw-table-control-header .col-action {\n display: flex;\n align-items: center;\n cursor: pointer;\n color: #238A9A;\n justify-content: center; }\n.sw-table-control .sw-table-control-header .mat-form-field {\n width: 100%; }\n.sw-table-control .sw-table-control-body {\n position: relative;\n width: 100%; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL3Njc3MvdmFyaWFibGVzLnNjc3MiLCIvZGlzdC9zcmMvYXBwL3NyYy9hcHAvaW5mcmFzdHJ1Y3R1cmUvc2hhcmVkL2NvbXBvbmVudHMvc3ctdGFibGUtY29udHJvbC9zdy10YWJsZS1jb250cm9sLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLG9EQUFBO0FBcUJBLCtCQUFBO0FBRUEsb0JBQUE7QUN0QkE7RUFDSSxrQkFBa0I7RUFDbEIsV0FBVztFQUNYLGFBQWE7RUFDYixpQkFBaUIsRUFBQTtBQUpyQjtJQU1RLGVBQWU7SUFDZixpQkFBaUIsRUFBQTtBQVB6QjtNQVNZLGVBQWUsRUFBQTtBQVQzQjtNQVlZLGFBQWE7TUFDYixtQkFBbUI7TUFDbkIsZUFBZTtNQUNmLGNEWlU7TUNhVix1QkFBdUIsRUFBQTtBQWhCbkM7TUFtQlksV0FBVyxFQUFBO0FBbkJ2QjtJQXVCUSxrQkFBa0I7SUFDbEIsV0FBVyxFQUFBIiwiZmlsZS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HktcGFkZGluZzogMTVweDsiLCJAaW1wb3J0ICcuLi8uLi8uLi8uLi8uLi9zY3NzL3ZhcmlhYmxlcy5zY3NzJztcbi5zdy10YWJsZS1jb250cm9sIHtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgcGFkZGluZzogMTBweDtcbiAgICBiYWNrZ3JvdW5kOiB3aGl0ZTtcbiAgICAuc3ctdGFibGUtY29udHJvbC1oZWFkZXIge1xuICAgICAgICBwYWRkaW5nOiAwIDE1cHg7XG4gICAgICAgIHBhZGRpbmctdG9wOiAxMHB4O1xuICAgICAgICAubWF0LWJ1dHRvbiB7XG4gICAgICAgICAgICBtaW4td2lkdGg6IGF1dG87XG4gICAgICAgIH1cbiAgICAgICAgLmNvbC1hY3Rpb24ge1xuICAgICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgICAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgICAgICAgICBjb2xvcjogJHByaW1hcnktdGVhbDtcbiAgICAgICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICB9XG4gICAgICAgIC5tYXQtZm9ybS1maWVsZCB7XG4gICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgfVxuICAgIH1cbiAgICAuc3ctdGFibGUtY29udHJvbC1ib2R5IHtcbiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgICAgICB3aWR0aDogMTAwJTtcbiAgICB9XG59Il19 */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/sw-table-control/sw-table-control.component.ts":
/*!*************************************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/sw-table-control/sw-table-control.component.ts ***!
\*************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var component_base_1 = __webpack_require__(/*! @app/common/component-base */ "./src/app/common/component-base.ts");
var SwTableControlComponent = /** @class */ (function (_super) {
tslib_1.__extends(SwTableControlComponent, _super);
function SwTableControlComponent() {
var _this = _super.call(this) || this;
_this.download = new core_1.EventEmitter();
_this.settings = new core_1.EventEmitter();
_this.applyFilter = new core_1.EventEmitter();
_this.pageChanged = new core_1.EventEmitter();
_this.pageSizeOptions = [5, 10, 20];
_this.page = 0;
_this.pageLength = 0;
_this.pageSize = _this.pageSizeOptions[0];
_this.searchQuery = '';
_this.filterList = [];
_this.noActionButtons = false;
return _this;
}
SwTableControlComponent.prototype.ngOnInit = function () {
if (this.selectedFilter) {
if (!this.isStandardParams(this.selectedFilter.name)) {
this.searchQuery = this.selectedFilter.value;
this.selectedFilterValue = this.selectedFilter.name;
}
}
};
SwTableControlComponent.prototype.onSearch = function () {
var _this = this;
var filter = this.filterList.find(function (item) { return item.value === _this.selectedFilterValue; });
this.applyFilter.emit({
value: filter.value,
name: filter.name,
query: this.searchQuery
});
};
SwTableControlComponent.prototype.swPageChange = function (evt) {
this.pageChanged.emit(evt);
};
SwTableControlComponent.prototype.swFilterChange = function () {
var _this = this;
var filter = this.filterList.find(function (item) { return item.value === _this.selectedFilter.value; });
this.applyFilter.emit({
value: filter.value,
name: filter.name,
query: this.searchQuery
});
};
SwTableControlComponent.prototype.ngOnDestroy = function () {
};
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SwTableControlComponent.prototype, "download", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SwTableControlComponent.prototype, "settings", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SwTableControlComponent.prototype, "applyFilter", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SwTableControlComponent.prototype, "pageChanged", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], SwTableControlComponent.prototype, "pageSizeOptions", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SwTableControlComponent.prototype, "page", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SwTableControlComponent.prototype, "pageLength", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SwTableControlComponent.prototype, "pageSize", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SwTableControlComponent.prototype, "searchQuery", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], SwTableControlComponent.prototype, "filterList", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SwTableControlComponent.prototype, "selectedFilter", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SwTableControlComponent.prototype, "noActionButtons", void 0);
SwTableControlComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-sw-table-control',
template: __webpack_require__(/*! ./sw-table-control.component.html */ "./src/app/infrastructure/shared/components/sw-table-control/sw-table-control.component.html"),
styles: [__webpack_require__(/*! ./sw-table-control.component.scss */ "./src/app/infrastructure/shared/components/sw-table-control/sw-table-control.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [])
], SwTableControlComponent);
return SwTableControlComponent;
}(component_base_1.ComponentBase));
exports.SwTableControlComponent = SwTableControlComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/components/sw-table/sw-table.component.html":
/*!***********************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/sw-table/sw-table.component.html ***!
\***********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n\n \n
\n
\n \n Filter \n \n ALL \n {{columns[col]}} \n \n \n \n Type here... \n \n \n \n
\n
\n \n \n
\n
\n \n\n \n
\n
\n \n {{columns[col]}} \n \n \n \n \n \n {{formatData(row, col)}} \n
\n \n 0\">\n {{formatData(row, col)}}\n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n \n
\n No records found.\n
\n \n
\n \n\n \n\n
\n \n
\n\n
"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/sw-table/sw-table.component.scss":
/*!***********************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/sw-table/sw-table.component.scss ***!
\***********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".shared-grid .mat-header-cell {\n background: #354052;\n color: white; }\n\n.shared-grid tr.mat-row:hover {\n background: lightblue; }\n\n.shared-grid .fa-file {\n color: green; }\n\n.shared-grid .fa-trash {\n color: red; }\n\n.shared-grid .fa-search {\n font-size: 16px; }\n\n.shared-grid .table-wrapper {\n height: auto;\n max-height: calc(100% - 124px);\n overflow: auto; }\n\n.shared-grid .spinner {\n position: absolute;\n background: rgba(0, 0, 0, 0.2);\n z-index: 999;\n height: 100%;\n width: 100%;\n align-items: center;\n justify-content: center;\n display: flex;\n left: 0px; }\n\n.shared-grid .download-menu {\n max-height: 200px; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL2FwcC9pbmZyYXN0cnVjdHVyZS9zaGFyZWQvY29tcG9uZW50cy9zdy10YWJsZS9zdy10YWJsZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUVRLG1CQUFtQjtFQUNuQixZQUFZLEVBQUE7O0FBSHBCO0VBTVEscUJBQXFCLEVBQUE7O0FBTjdCO0VBVVEsWUFBWSxFQUFBOztBQVZwQjtFQWNRLFVBQVUsRUFBQTs7QUFkbEI7RUFrQlEsZUFBZSxFQUFBOztBQWxCdkI7RUFzQlEsWUFBWTt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B3aGl0ZTtcbiAgICAgICAgei1pbmRleDogOTk5O1xuICAgICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgbGVmdDogMHB4O1xuICAgIH1cblxuICAgIC5kb3dubG9hZC1tZW51IHtcbiAgICAgICAgbWF4LWhlaWdodDogMjAwcHg7XG4gICAgfVxufSJdfQ== */"
/***/ }),
/***/ "./src/app/infrastructure/shared/components/sw-table/sw-table.component.ts":
/*!*********************************************************************************!*\
!*** ./src/app/infrastructure/shared/components/sw-table/sw-table.component.ts ***!
\*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var material_1 = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
var takeUntil_1 = __webpack_require__(/*! rxjs/internal/operators/takeUntil */ "./node_modules/rxjs/internal/operators/takeUntil.js");
var rxjs_1 = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var Actions;
(function (Actions) {
Actions["DOWNLOAD"] = "download";
Actions["EDIT"] = "edit";
Actions["DELETE"] = "delete";
})(Actions = exports.Actions || (exports.Actions = {}));
var SwTableComponent = /** @class */ (function () {
function SwTableComponent(cdf) {
this.cdf = cdf;
this.$destroy = new rxjs_1.Subject();
this.data = [];
this.showFilter = true;
this.pageState = {};
this.actionClicked = new core_1.EventEmitter();
// tslint:disable-next-line:no-output-on-prefix
this.onRowClick = new core_1.EventEmitter();
this.sortChanged = new core_1.EventEmitter();
this.pageChanged = new core_1.EventEmitter();
this.dataSource = new material_1.MatTableDataSource([]);
this.formatData = function (data, col) { return data[col]; };
}
SwTableComponent.prototype.ngOnInit = function () {
var _this = this;
if (!this.isBackendPaginated) {
this.dataSource.paginator = this.paginator;
}
this.dataSource.sort = this.sort;
rxjs_1.merge(this.sort.sortChange, this.paginator.page)
.pipe(takeUntil_1.takeUntil(this.$destroy)).subscribe(function (state) {
_this.pageChanged.emit(state);
});
};
SwTableComponent.prototype.ngOnChanges = function (change) {
if (change['data']) {
this.dataSource.data = this.data;
if (this.isBackendPaginated && this.pageState && this.pageState.length) {
this.paginator._pageIndex = this.pageState.pageIndex || 0;
this.paginator.pageSize = this.pageState.pageSize || 5;
this.paginator.length = this.pageState.length;
}
}
if (change['columns']) {
this.displayedColumns = Object.keys(this.columns);
this.filterColumns = this.displayedColumns.filter(function (col) { return col !== 'actions'; });
}
if (change['customSort']) {
this.dataSource.sortingDataAccessor = this.customSort;
}
if (change['customFilter']) {
this.dataSource.filterPredicate = this.customFilter;
}
};
SwTableComponent.prototype.ngOnDestroy = function () {
this.$destroy.next(true);
this.$destroy.unsubscribe();
};
SwTableComponent.prototype.ngAfterViewInit = function () {
};
SwTableComponent.prototype.download = function (data) {
this.docs = data.documents;
this.actionClicked.emit({ type: Actions.DOWNLOAD, data: data });
};
SwTableComponent.prototype.edit = function (data) {
this.actionClicked.emit({ type: Actions.EDIT, data: data });
};
SwTableComponent.prototype.delete = function (data) {
this.actionClicked.emit({ type: Actions.DELETE, data: data });
};
SwTableComponent.prototype.filter = function (keyword) {
this.dataSource.filter = keyword.trim().toLowerCase();
};
SwTableComponent.prototype.rowClick = function (row) {
this.onRowClick.emit(row);
};
SwTableComponent.prototype.paginate = function (event) {
this.pageChanged.emit(event);
};
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SwTableComponent.prototype, "columns", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], SwTableComponent.prototype, "actions", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], SwTableComponent.prototype, "data", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SwTableComponent.prototype, "showFilter", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Function)
], SwTableComponent.prototype, "customSort", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Function)
], SwTableComponent.prototype, "customFilter", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Function)
], SwTableComponent.prototype, "formatData", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Boolean)
], SwTableComponent.prototype, "showSpinner", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], SwTableComponent.prototype, "pageState", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Boolean)
], SwTableComponent.prototype, "isBackendPaginated", void 0);
tslib_1.__decorate([
core_1.ViewChild(material_1.MatPaginator),
tslib_1.__metadata("design:type", material_1.MatPaginator)
], SwTableComponent.prototype, "paginator", void 0);
tslib_1.__decorate([
core_1.ViewChild(material_1.MatSort),
tslib_1.__metadata("design:type", material_1.MatSort)
], SwTableComponent.prototype, "sort", void 0);
tslib_1.__decorate([
core_1.ViewChild(material_1.MatTable),
tslib_1.__metadata("design:type", material_1.MatTable)
], SwTableComponent.prototype, "table", void 0);
tslib_1.__decorate([
core_1.ContentChild(core_1.TemplateRef),
tslib_1.__metadata("design:type", core_1.TemplateRef)
], SwTableComponent.prototype, "avatarRef", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SwTableComponent.prototype, "actionClicked", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SwTableComponent.prototype, "onRowClick", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SwTableComponent.prototype, "sortChanged", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], SwTableComponent.prototype, "pageChanged", void 0);
SwTableComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-sw-table',
template: __webpack_require__(/*! ./sw-table.component.html */ "./src/app/infrastructure/shared/components/sw-table/sw-table.component.html"),
changeDetection: core_1.ChangeDetectionStrategy.OnPush,
styles: [__webpack_require__(/*! ./sw-table.component.scss */ "./src/app/infrastructure/shared/components/sw-table/sw-table.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [core_1.ChangeDetectorRef])
], SwTableComponent);
return SwTableComponent;
}());
exports.SwTableComponent = SwTableComponent;
/***/ }),
/***/ "./src/app/infrastructure/shared/directives/admin-sidebar-header-wrapper.directive.ts":
/*!********************************************************************************************!*\
!*** ./src/app/infrastructure/shared/directives/admin-sidebar-header-wrapper.directive.ts ***!
\********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var AdminSidebarHeaderWrapperDirective = /** @class */ (function () {
function AdminSidebarHeaderWrapperDirective(template) {
this.template = template;
}
AdminSidebarHeaderWrapperDirective = tslib_1.__decorate([
core_1.Directive({
selector: '[appAdminSidebarHeaderWrapper]'
}),
tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
], AdminSidebarHeaderWrapperDirective);
return AdminSidebarHeaderWrapperDirective;
}());
exports.AdminSidebarHeaderWrapperDirective = AdminSidebarHeaderWrapperDirective;
/***/ }),
/***/ "./src/app/infrastructure/shared/directives/admin-sidebar-link.directive.ts":
/*!**********************************************************************************!*\
!*** ./src/app/infrastructure/shared/directives/admin-sidebar-link.directive.ts ***!
\**********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var AdminSidebarLinkDirective = /** @class */ (function () {
function AdminSidebarLinkDirective(template) {
this.template = template;
}
AdminSidebarLinkDirective = tslib_1.__decorate([
core_1.Directive({
selector: '[appAdminSidebarLink]'
}),
tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
], AdminSidebarLinkDirective);
return AdminSidebarLinkDirective;
}());
exports.AdminSidebarLinkDirective = AdminSidebarLinkDirective;
/***/ }),
/***/ "./src/app/infrastructure/shared/directives/admin-sidebar-wrapper.directive.ts":
/*!*************************************************************************************!*\
!*** ./src/app/infrastructure/shared/directives/admin-sidebar-wrapper.directive.ts ***!
\*************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var AdminSidebarWrapperDirective = /** @class */ (function () {
function AdminSidebarWrapperDirective(template) {
this.template = template;
}
AdminSidebarWrapperDirective = tslib_1.__decorate([
core_1.Directive({
selector: '[appAdminSidebarWrapper]'
}),
tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
], AdminSidebarWrapperDirective);
return AdminSidebarWrapperDirective;
}());
exports.AdminSidebarWrapperDirective = AdminSidebarWrapperDirective;
/***/ }),
/***/ "./src/app/infrastructure/shared/directives/file-drop.directive.ts":
/*!*************************************************************************!*\
!*** ./src/app/infrastructure/shared/directives/file-drop.directive.ts ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var platform_browser_1 = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
var FileDropDirective = /** @class */ (function () {
function FileDropDirective(sanitizer) {
this.sanitizer = sanitizer;
this.allowedExtensions = ['png', 'jpg', 'bmp', 'jpeg'];
this.withBorder = true;
this.filesChangeTrigger = new core_1.EventEmitter();
this.filesInvalidTrigger = new core_1.EventEmitter();
this.background = 'rgb(249, 249, 249)';
}
FileDropDirective.prototype.ngOnInit = function () {
};
FileDropDirective.prototype.ngAfterViewInit = function () {
var _this = this;
setTimeout(function () {
if (_this.withBorder === false) {
_this.border = '';
}
else {
_this.border = _this.sanitizer.bypassSecurityTrustStyle('1.2px dashed rgb(185, 185, 185)');
}
}, 20);
};
FileDropDirective.prototype.onDragOver = function (evt) {
evt.preventDefault();
evt.stopPropagation();
this.background = '#999';
};
FileDropDirective.prototype.onDragLeave = function (evt) {
evt.preventDefault();
evt.stopPropagation();
this.background = '#eee';
};
FileDropDirective.prototype.onDrop = function (evt) {
evt.preventDefault();
evt.stopPropagation();
this.background = '#eee';
var files = evt.dataTransfer.files;
var valid_files = [];
var invalid_files = [];
if (files.length > 0) {
for (var _i = 0, files_1 = files; _i < files_1.length; _i++) {
var file = files_1[_i];
var ext = file.name.split('.')[file.name.split('.').length - 1];
if (this.allowedExtensions.lastIndexOf(ext) !== -1) {
valid_files.push(file);
}
else {
invalid_files.push(file);
}
}
if (valid_files.length >= 1) {
this.filesChangeTrigger.emit(valid_files);
}
if (invalid_files.length >= 1) {
this.filesInvalidTrigger.emit(invalid_files);
}
}
};
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Array)
], FileDropDirective.prototype, "allowedExtensions", void 0);
tslib_1.__decorate([
core_1.Input(),
tslib_1.__metadata("design:type", Object)
], FileDropDirective.prototype, "withBorder", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], FileDropDirective.prototype, "filesChangeTrigger", void 0);
tslib_1.__decorate([
core_1.Output(),
tslib_1.__metadata("design:type", core_1.EventEmitter)
], FileDropDirective.prototype, "filesInvalidTrigger", void 0);
tslib_1.__decorate([
core_1.HostBinding('style.background'),
tslib_1.__metadata("design:type", Object)
], FileDropDirective.prototype, "background", void 0);
tslib_1.__decorate([
core_1.HostBinding('style.border'),
tslib_1.__metadata("design:type", Object)
], FileDropDirective.prototype, "border", void 0);
tslib_1.__decorate([
core_1.HostListener('dragover', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:returntype", void 0)
], FileDropDirective.prototype, "onDragOver", null);
tslib_1.__decorate([
core_1.HostListener('dragleave', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:returntype", void 0)
], FileDropDirective.prototype, "onDragLeave", null);
tslib_1.__decorate([
core_1.HostListener('drop', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:returntype", void 0)
], FileDropDirective.prototype, "onDrop", null);
FileDropDirective = tslib_1.__decorate([
core_1.Directive({
selector: '[appFileDrop]'
}),
tslib_1.__metadata("design:paramtypes", [platform_browser_1.DomSanitizer])
], FileDropDirective);
return FileDropDirective;
}());
exports.FileDropDirective = FileDropDirective;
/***/ }),
/***/ "./src/app/infrastructure/shared/directives/permission.directive.ts":
/*!**************************************************************************!*\
!*** ./src/app/infrastructure/shared/directives/permission.directive.ts ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var application_storage_service_1 = __webpack_require__(/*! ../services/application-storage.service */ "./src/app/infrastructure/shared/services/application-storage.service.ts");
var permission_service_1 = __webpack_require__(/*! @app/shared/service/permission.service */ "./src/app/infrastructure/shared/service/permission.service.ts");
var PermissionDirective = /** @class */ (function () {
function PermissionDirective(storage, permissionSvc, el) {
this.storage = storage;
this.permissionSvc = permissionSvc;
this.el = el;
}
PermissionDirective.prototype.ngOnInit = function () {
var userInfo = this.storage.GetItem(application_storage_service_1.ApplicationStorageKey.userInfo);
if (!userInfo) {
return;
}
var user = JSON.parse(userInfo);
if (user.loginInfo.roleName !== 'Client' && this.key === 'clients.view') {
this.el.nativeElement.style.display = 'none';
}
else {
this.el.nativeElement.style.display = this.permissionSvc.hasAccess(this.key) ? '' : 'none';
}
};
tslib_1.__decorate([
core_1.Input('appPermission'),
tslib_1.__metadata("design:type", String)
], PermissionDirective.prototype, "key", void 0);
PermissionDirective = tslib_1.__decorate([
core_1.Directive({
selector: '[appPermission]'
}),
tslib_1.__metadata("design:paramtypes", [application_storage_service_1.ApplicationStorageService,
permission_service_1.PermissionService,
core_1.ElementRef])
], PermissionDirective);
return PermissionDirective;
}());
exports.PermissionDirective = PermissionDirective;
/***/ }),
/***/ "./src/app/infrastructure/shared/directives/slick-item.directive.ts":
/*!**************************************************************************!*\
!*** ./src/app/infrastructure/shared/directives/slick-item.directive.ts ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var slick_component_1 = __webpack_require__(/*! ../components/slick/slick.component */ "./src/app/infrastructure/shared/components/slick/slick.component.ts");
var SlickItemDirective = /** @class */ (function () {
function SlickItemDirective(el, carousel) {
this.el = el;
this.carousel = carousel;
}
SlickItemDirective.prototype.ngAfterViewInit = function () {
this.carousel.addSlide(this);
};
SlickItemDirective.prototype.ngOnDestroy = function () {
this.carousel.removeSlide(this);
};
SlickItemDirective = tslib_1.__decorate([
core_1.Directive({
selector: '[appSlickItem]'
}),
tslib_1.__param(1, core_1.Host()),
tslib_1.__metadata("design:paramtypes", [core_1.ElementRef, slick_component_1.SlickComponent])
], SlickItemDirective);
return SlickItemDirective;
}());
exports.SlickItemDirective = SlickItemDirective;
/***/ }),
/***/ "./src/app/infrastructure/shared/directives/sw-table-source.directive.ts":
/*!*******************************************************************************!*\
!*** ./src/app/infrastructure/shared/directives/sw-table-source.directive.ts ***!
\*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var SwTableSourceDirective = /** @class */ (function () {
function SwTableSourceDirective(template) {
this.template = template;
}
SwTableSourceDirective = tslib_1.__decorate([
core_1.Directive({
selector: '[appSwTableSource]'
}),
tslib_1.__metadata("design:paramtypes", [core_1.TemplateRef])
], SwTableSourceDirective);
return SwTableSourceDirective;
}());
exports.SwTableSourceDirective = SwTableSourceDirective;
/***/ }),
/***/ "./src/app/infrastructure/shared/pipes/recent-transaction-type.pipe.ts":
/*!*****************************************************************************!*\
!*** ./src/app/infrastructure/shared/pipes/recent-transaction-type.pipe.ts ***!
\*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var RecentTransactionTypePipe = /** @class */ (function () {
function RecentTransactionTypePipe() {
}
RecentTransactionTypePipe.prototype.transform = function (value, args) {
if (value === 'client_contract') {
return 'Client Contract';
}
else if (value === 'contractor_contract') {
return 'Contractor Contract';
}
else if (value === 'billing') {
return 'Billing';
}
else {
return 'Sales Invoice';
}
};
RecentTransactionTypePipe = tslib_1.__decorate([
core_1.Pipe({
name: 'recentTransactionType'
})
], RecentTransactionTypePipe);
return RecentTransactionTypePipe;
}());
exports.RecentTransactionTypePipe = RecentTransactionTypePipe;
/***/ }),
/***/ "./src/app/infrastructure/shared/pipes/value-change.pipe.ts":
/*!******************************************************************!*\
!*** ./src/app/infrastructure/shared/pipes/value-change.pipe.ts ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var ValueChangePipe = /** @class */ (function () {
function ValueChangePipe() {
}
ValueChangePipe.prototype.transform = function (value, change) {
if (value === null || value === '') {
if (typeof change === 'undefined' || change == null) {
return 'N/A';
}
else {
return change;
}
}
return value;
};
ValueChangePipe = tslib_1.__decorate([
core_1.Pipe({
name: 'valueChange'
})
], ValueChangePipe);
return ValueChangePipe;
}());
exports.ValueChangePipe = ValueChangePipe;
/***/ }),
/***/ "./src/app/infrastructure/shared/service/permission.service.ts":
/*!*********************************************************************!*\
!*** ./src/app/infrastructure/shared/service/permission.service.ts ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var application_storage_service_1 = __webpack_require__(/*! @app/shared/services/application-storage.service */ "./src/app/infrastructure/shared/services/application-storage.service.ts");
var PermissionService = /** @class */ (function () {
function PermissionService(storage) {
this.storage = storage;
}
PermissionService.prototype.hasAccess = function (permissionKey) {
var userInfo = this.storage.GetItem(application_storage_service_1.ApplicationStorageKey.userInfo);
if (!userInfo) {
return false;
}
var user = JSON.parse(userInfo);
var keys = permissionKey.split(/\s*,\s*/);
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
var key = keys_1[_i];
if (!user.loginInfo || !user.loginInfo.roleId || key.match(new RegExp(user.loginInfo.permissionPattern))) {
return true;
}
}
return false;
};
PermissionService = tslib_1.__decorate([
core_1.Injectable({
providedIn: 'root'
}),
tslib_1.__metadata("design:paramtypes", [application_storage_service_1.ApplicationStorageService])
], PermissionService);
return PermissionService;
}());
exports.PermissionService = PermissionService;
/***/ }),
/***/ "./src/app/infrastructure/shared/services/application-storage.service.ts":
/*!*******************************************************************************!*\
!*** ./src/app/infrastructure/shared/services/application-storage.service.ts ***!
\*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var local_storage_service_1 = __webpack_require__(/*! ./local-storage.service */ "./src/app/infrastructure/shared/services/local-storage.service.ts");
var session_storage_service_1 = __webpack_require__(/*! ./session-storage.service */ "./src/app/infrastructure/shared/services/session-storage.service.ts");
var ApplicationStorageKey;
(function (ApplicationStorageKey) {
ApplicationStorageKey["token"] = "token";
ApplicationStorageKey["userInfo"] = "userInfo";
})(ApplicationStorageKey = exports.ApplicationStorageKey || (exports.ApplicationStorageKey = {}));
var StorageType;
(function (StorageType) {
StorageType[StorageType["local"] = 0] = "local";
StorageType[StorageType["session"] = 1] = "session";
StorageType[StorageType["cookie"] = 2] = "cookie";
})(StorageType = exports.StorageType || (exports.StorageType = {}));
var ApplicationStorageService = /** @class */ (function () {
function ApplicationStorageService(LocalStorage, SessionStorage) {
this.LocalStorage = LocalStorage;
this.SessionStorage = SessionStorage;
}
ApplicationStorageService.prototype.SetItem = function (key, value, storageType) {
if (storageType === void 0) { storageType = StorageType.local; }
if (storageType === StorageType.local) {
this.LocalStorage.setItem(key.toString(), value);
return true;
}
else if (storageType === StorageType.session) {
this.SessionStorage.setItem(key.toString(), value);
return true;
}
else {
return false;
}
};
ApplicationStorageService.prototype.GetItem = function (key, storageType) {
if (storageType === void 0) { storageType = StorageType.local; }
if (storageType === StorageType.local) {
return this.LocalStorage.getItem(key.toString());
}
else if (storageType === StorageType.session) {
return this.SessionStorage.getItem(key.toString());
}
else {
return null;
}
};
ApplicationStorageService.prototype.RemoveItem = function (key, storageType) {
if (storageType === void 0) { storageType = StorageType.local; }
if (storageType === StorageType.local) {
this.LocalStorage.removeItem(key.toString());
return true;
}
else if (storageType === StorageType.session) {
this.SessionStorage.removeItem(key.toString());
return true;
}
else {
return false;
}
};
ApplicationStorageService.prototype.Clear = function (storageType) {
if (storageType === void 0) { storageType = StorageType.local; }
if (storageType === StorageType.local) {
this.LocalStorage.clear();
return true;
}
else if (storageType === StorageType.session) {
this.SessionStorage.clear();
return true;
}
else {
return false;
}
};
ApplicationStorageService = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [local_storage_service_1.LocalStorageService,
session_storage_service_1.SessionStorageService])
], ApplicationStorageService);
return ApplicationStorageService;
}());
exports.ApplicationStorageService = ApplicationStorageService;
/***/ }),
/***/ "./src/app/infrastructure/shared/services/cookie-storage.service.ts":
/*!**************************************************************************!*\
!*** ./src/app/infrastructure/shared/services/cookie-storage.service.ts ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var CookieStorageService = /** @class */ (function () {
function CookieStorageService() {
}
CookieStorageService = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [])
], CookieStorageService);
return CookieStorageService;
}());
exports.CookieStorageService = CookieStorageService;
/***/ }),
/***/ "./src/app/infrastructure/shared/services/local-storage.service.ts":
/*!*************************************************************************!*\
!*** ./src/app/infrastructure/shared/services/local-storage.service.ts ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var lz_string_1 = __webpack_require__(/*! lz-string */ "./node_modules/lz-string/libs/lz-string.js");
var LocalStorageService = /** @class */ (function () {
function LocalStorageService() {
this.length = localStorage.length;
}
LocalStorageService.prototype.getItem = function (key) {
var item = lz_string_1.decompress(localStorage.getItem(key));
try {
var data = item;
return data;
}
catch (_a) {
return null;
}
};
LocalStorageService.prototype.setItem = function (key, value) {
var item = lz_string_1.compress(value);
localStorage.setItem(key, item);
};
LocalStorageService.prototype.removeItem = function (key) {
localStorage.removeItem(key);
};
LocalStorageService.prototype.key = function (index) {
return localStorage.key(index);
};
LocalStorageService.prototype.clear = function () {
localStorage.clear();
};
LocalStorageService = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [])
], LocalStorageService);
return LocalStorageService;
}());
exports.LocalStorageService = LocalStorageService;
/***/ }),
/***/ "./src/app/infrastructure/shared/services/session-storage.service.ts":
/*!***************************************************************************!*\
!*** ./src/app/infrastructure/shared/services/session-storage.service.ts ***!
\***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var lz_string_1 = __webpack_require__(/*! lz-string */ "./node_modules/lz-string/libs/lz-string.js");
var SessionStorageService = /** @class */ (function () {
function SessionStorageService() {
this.length = sessionStorage.length;
}
SessionStorageService.prototype.getItem = function (key) {
var item = lz_string_1.decompress(sessionStorage.getItem(key));
return JSON.parse(item);
};
SessionStorageService.prototype.setItem = function (key, value) {
var item = lz_string_1.compress(JSON.stringify(value));
sessionStorage.setItem(key, item);
};
SessionStorageService.prototype.removeItem = function (key) {
sessionStorage.removeItem(key);
};
SessionStorageService.prototype.key = function (index) {
return sessionStorage.key(index);
};
SessionStorageService.prototype.clear = function () {
sessionStorage.clear();
};
SessionStorageService = tslib_1.__decorate([
core_1.Injectable({
providedIn: 'root'
}),
tslib_1.__metadata("design:paramtypes", [])
], SessionStorageService);
return SessionStorageService;
}());
exports.SessionStorageService = SessionStorageService;
/***/ }),
/***/ "./src/app/infrastructure/shared/services/utilities.service.ts":
/*!*********************************************************************!*\
!*** ./src/app/infrastructure/shared/services/utilities.service.ts ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var material_1 = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
var message_box_component_1 = __webpack_require__(/*! ../components/message-box/message-box.component */ "./src/app/infrastructure/shared/components/message-box/message-box.component.ts");
var message_box_bs_component_1 = __webpack_require__(/*! ../components/message-box-bs/message-box-bs.component */ "./src/app/infrastructure/shared/components/message-box-bs/message-box-bs.component.ts");
var ngx_bootstrap_1 = __webpack_require__(/*! ngx-bootstrap */ "./node_modules/ngx-bootstrap/esm5/ngx-bootstrap.js");
var file_drawer_viewer_component_1 = __webpack_require__(/*! ../components/file-drawer-viewer/file-drawer-viewer.component */ "./src/app/infrastructure/shared/components/file-drawer-viewer/file-drawer-viewer.component.ts");
var UtilitiesService = /** @class */ (function () {
function UtilitiesService(dialog, modalService, bottomSheet) {
this.dialog = dialog;
this.modalService = modalService;
this.bottomSheet = bottomSheet;
}
UtilitiesService.prototype.ShowMaterialMessageBox = function (config, type, buttons) {
if (type === void 0) { type = 'primary'; }
if (buttons === void 0) { buttons = 'ok'; }
var dialogRef = this.dialog.open(message_box_component_1.MessageBoxComponent, {
width: 'auto',
height: 'auto',
panelClass: 'app-material-modal',
data: {
config: config,
type: type,
buttons: buttons
}
});
return dialogRef;
};
UtilitiesService.prototype.ShowBSMessageBox = function (config, type, buttons) {
var _this = this;
if (type === void 0) { type = 'primary'; }
if (buttons === void 0) { buttons = 'ok'; }
var data = config;
data.type = type;
data.buttons = buttons;
var modal = this.modalService.show(message_box_bs_component_1.MessageBoxBsComponent, {
class: 'modal-dialog-centered',
initialState: data
});
var listener = this.modalService.onHide.subscribe(function (res) {
listener.unsubscribe();
_this.modalService.setDismissReason(modal.content);
});
return this.modalService;
};
UtilitiesService.prototype.ShowFileDrawer = function (items, mode) {
if (mode === void 0) { mode = 'update'; }
return this.bottomSheet.open(file_drawer_viewer_component_1.FileDrawerViewerComponent, {
data: {
items: items,
mode: mode
}
});
};
UtilitiesService.prototype.validURL = function (str) {
var result = false;
try {
var pattern = /(http|https):\/\/(\w+:{0,1}\w*)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%!\-\/]))?/; // fragment locater
if (!pattern.test(str)) {
result = false;
}
else {
result = true;
}
}
catch (error) {
result = false;
}
return result;
};
UtilitiesService = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [material_1.MatDialog,
ngx_bootstrap_1.BsModalService,
material_1.MatBottomSheet])
], UtilitiesService);
return UtilitiesService;
}());
exports.UtilitiesService = UtilitiesService;
/***/ }),
/***/ "./src/app/infrastructure/shared/shared.module.ts":
/*!********************************************************!*\
!*** ./src/app/infrastructure/shared/shared.module.ts ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
var cookie_storage_service_1 = __webpack_require__(/*! ./services/cookie-storage.service */ "./src/app/infrastructure/shared/services/cookie-storage.service.ts");
var local_storage_service_1 = __webpack_require__(/*! ./services/local-storage.service */ "./src/app/infrastructure/shared/services/local-storage.service.ts");
var session_storage_service_1 = __webpack_require__(/*! ./services/session-storage.service */ "./src/app/infrastructure/shared/services/session-storage.service.ts");
var utilities_service_1 = __webpack_require__(/*! ./services/utilities.service */ "./src/app/infrastructure/shared/services/utilities.service.ts");
var application_storage_service_1 = __webpack_require__(/*! ./services/application-storage.service */ "./src/app/infrastructure/shared/services/application-storage.service.ts");
var admin_sidebar_component_1 = __webpack_require__(/*! ./components/admin-sidebar/admin-sidebar.component */ "./src/app/infrastructure/shared/components/admin-sidebar/admin-sidebar.component.ts");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
var material_1 = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
var ngx_bootstrap_1 = __webpack_require__(/*! ngx-bootstrap */ "./node_modules/ngx-bootstrap/esm5/ngx-bootstrap.js");
var admin_topbar_component_1 = __webpack_require__(/*! ./components/admin-topbar/admin-topbar.component */ "./src/app/infrastructure/shared/components/admin-topbar/admin-topbar.component.ts");
var admin_sidebar_wrapper_directive_1 = __webpack_require__(/*! ./directives/admin-sidebar-wrapper.directive */ "./src/app/infrastructure/shared/directives/admin-sidebar-wrapper.directive.ts");
var admin_sidebar_link_directive_1 = __webpack_require__(/*! ./directives/admin-sidebar-link.directive */ "./src/app/infrastructure/shared/directives/admin-sidebar-link.directive.ts");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var map_board_component_1 = __webpack_require__(/*! ./components/map-board/map-board.component */ "./src/app/infrastructure/shared/components/map-board/map-board.component.ts");
var map_pin_component_1 = __webpack_require__(/*! ./components/map-pin/map-pin.component */ "./src/app/infrastructure/shared/components/map-pin/map-pin.component.ts");
var shared_autocomplete_component_1 = __webpack_require__(/*! ./components/shared-autocomplete/shared-autocomplete.component */ "./src/app/infrastructure/shared/components/shared-autocomplete/shared-autocomplete.component.ts");
var message_box_component_1 = __webpack_require__(/*! ./components/message-box/message-box.component */ "./src/app/infrastructure/shared/components/message-box/message-box.component.ts");
var admin_sidebar_header_wrapper_directive_1 = __webpack_require__(/*! ./directives/admin-sidebar-header-wrapper.directive */ "./src/app/infrastructure/shared/directives/admin-sidebar-header-wrapper.directive.ts");
var gallery_carousel_component_1 = __webpack_require__(/*! ./components/gallery-carousel/gallery-carousel.component */ "./src/app/infrastructure/shared/components/gallery-carousel/gallery-carousel.component.ts");
var message_box_bs_component_1 = __webpack_require__(/*! ./components/message-box-bs/message-box-bs.component */ "./src/app/infrastructure/shared/components/message-box-bs/message-box-bs.component.ts");
var file_drop_directive_1 = __webpack_require__(/*! ./directives/file-drop.directive */ "./src/app/infrastructure/shared/directives/file-drop.directive.ts");
var slick_component_1 = __webpack_require__(/*! ./components/slick/slick.component */ "./src/app/infrastructure/shared/components/slick/slick.component.ts");
var slick_item_directive_1 = __webpack_require__(/*! ./directives/slick-item.directive */ "./src/app/infrastructure/shared/directives/slick-item.directive.ts");
var value_change_pipe_1 = __webpack_require__(/*! ./pipes/value-change.pipe */ "./src/app/infrastructure/shared/pipes/value-change.pipe.ts");
var core_2 = __webpack_require__(/*! @ngx-gallery/core */ "./node_modules/@ngx-gallery/core/fesm5/ngx-gallery-core.js");
var lightbox_1 = __webpack_require__(/*! @ngx-gallery/lightbox */ "./node_modules/@ngx-gallery/lightbox/fesm5/ngx-gallery-lightbox.js");
var gallerize_1 = __webpack_require__(/*! @ngx-gallery/gallerize */ "./node_modules/@ngx-gallery/gallerize/fesm5/ngx-gallery-gallerize.js");
var busy_indicator_component_1 = __webpack_require__(/*! ./components/busy-indicator/busy-indicator.component */ "./src/app/infrastructure/shared/components/busy-indicator/busy-indicator.component.ts");
var sw_table_component_1 = __webpack_require__(/*! ./components/sw-table/sw-table.component */ "./src/app/infrastructure/shared/components/sw-table/sw-table.component.ts");
var permission_directive_1 = __webpack_require__(/*! ./directives/permission.directive */ "./src/app/infrastructure/shared/directives/permission.directive.ts");
var sw_table_control_component_1 = __webpack_require__(/*! ./components/sw-table-control/sw-table-control.component */ "./src/app/infrastructure/shared/components/sw-table-control/sw-table-control.component.ts");
var sw_table_source_directive_1 = __webpack_require__(/*! ./directives/sw-table-source.directive */ "./src/app/infrastructure/shared/directives/sw-table-source.directive.ts");
var file_drawer_viewer_component_1 = __webpack_require__(/*! ./components/file-drawer-viewer/file-drawer-viewer.component */ "./src/app/infrastructure/shared/components/file-drawer-viewer/file-drawer-viewer.component.ts");
var recent_transaction_type_pipe_1 = __webpack_require__(/*! ./pipes/recent-transaction-type.pipe */ "./src/app/infrastructure/shared/pipes/recent-transaction-type.pipe.ts");
var map_board_new_component_1 = __webpack_require__(/*! ./components/map-board-new/map-board-new.component */ "./src/app/infrastructure/shared/components/map-board-new/map-board-new.component.ts");
var map_pin_new_component_1 = __webpack_require__(/*! ./components/map-pin-new/map-pin-new.component */ "./src/app/infrastructure/shared/components/map-pin-new/map-pin-new.component.ts");
var drag_drop_1 = __webpack_require__(/*! @angular/cdk/drag-drop */ "./node_modules/@angular/cdk/esm5/drag-drop.es5.js");
var SharedModule = /** @class */ (function () {
function SharedModule() {
}
SharedModule = tslib_1.__decorate([
core_1.NgModule({
imports: [
common_1.CommonModule,
forms_1.FormsModule,
forms_1.ReactiveFormsModule,
router_1.RouterModule,
ngx_bootstrap_1.BsDropdownModule.forRoot(),
ngx_bootstrap_1.BsDatepickerModule.forRoot(),
ngx_bootstrap_1.PopoverModule.forRoot(),
ngx_bootstrap_1.PaginationModule.forRoot(),
ngx_bootstrap_1.ModalModule.forRoot(),
drag_drop_1.DragDropModule,
material_1.MatButtonModule,
material_1.MatFormFieldModule,
material_1.MatInputModule,
material_1.MatCardModule,
material_1.MatProgressBarModule,
material_1.MatDialogModule,
material_1.MatCheckboxModule,
material_1.MatDatepickerModule,
material_1.MatRadioModule,
material_1.MatTableModule,
material_1.MatPaginatorModule,
material_1.MatAutocompleteModule,
material_1.MatProgressSpinnerModule,
material_1.MatDividerModule,
material_1.MatSortModule,
material_1.MatSelectModule,
material_1.MatIconModule,
core_2.GalleryModule,
lightbox_1.LightboxModule,
gallerize_1.GallerizeModule,
material_1.MatMenuModule,
material_1.MatBottomSheetModule,
material_1.MatListModule
],
exports: [
admin_sidebar_component_1.AdminSidebarComponent,
admin_topbar_component_1.AdminTopbarComponent,
admin_sidebar_wrapper_directive_1.AdminSidebarWrapperDirective,
admin_sidebar_link_directive_1.AdminSidebarLinkDirective,
map_board_component_1.MapBoardComponent,
sw_table_component_1.SwTableComponent,
shared_autocomplete_component_1.SharedAutocompleteComponent,
admin_sidebar_header_wrapper_directive_1.AdminSidebarHeaderWrapperDirective,
gallery_carousel_component_1.GalleryCarouselComponent,
file_drop_directive_1.FileDropDirective,
slick_component_1.SlickComponent,
slick_item_directive_1.SlickItemDirective,
value_change_pipe_1.ValueChangePipe,
busy_indicator_component_1.BusyIndicatorComponent,
permission_directive_1.PermissionDirective,
sw_table_control_component_1.SwTableControlComponent,
sw_table_source_directive_1.SwTableSourceDirective,
recent_transaction_type_pipe_1.RecentTransactionTypePipe,
map_board_new_component_1.MapBoardNewComponent
],
declarations: [
admin_sidebar_component_1.AdminSidebarComponent,
admin_topbar_component_1.AdminTopbarComponent,
admin_sidebar_wrapper_directive_1.AdminSidebarWrapperDirective,
admin_sidebar_link_directive_1.AdminSidebarLinkDirective,
map_board_component_1.MapBoardComponent,
map_pin_component_1.MapPinComponent,
sw_table_component_1.SwTableComponent,
shared_autocomplete_component_1.SharedAutocompleteComponent,
message_box_component_1.MessageBoxComponent,
admin_sidebar_header_wrapper_directive_1.AdminSidebarHeaderWrapperDirective,
gallery_carousel_component_1.GalleryCarouselComponent,
message_box_bs_component_1.MessageBoxBsComponent,
file_drop_directive_1.FileDropDirective,
slick_component_1.SlickComponent,
slick_item_directive_1.SlickItemDirective,
value_change_pipe_1.ValueChangePipe,
busy_indicator_component_1.BusyIndicatorComponent,
permission_directive_1.PermissionDirective,
sw_table_control_component_1.SwTableControlComponent,
sw_table_source_directive_1.SwTableSourceDirective,
file_drawer_viewer_component_1.FileDrawerViewerComponent,
recent_transaction_type_pipe_1.RecentTransactionTypePipe,
map_board_new_component_1.MapBoardNewComponent,
map_pin_new_component_1.MapPinNewComponent
],
providers: [
cookie_storage_service_1.CookieStorageService,
local_storage_service_1.LocalStorageService,
session_storage_service_1.SessionStorageService,
utilities_service_1.UtilitiesService,
application_storage_service_1.ApplicationStorageService
],
entryComponents: [
message_box_component_1.MessageBoxComponent,
message_box_bs_component_1.MessageBoxBsComponent,
file_drawer_viewer_component_1.FileDrawerViewerComponent
]
})
], SharedModule);
return SharedModule;
}());
exports.SharedModule = SharedModule;
/***/ }),
/***/ "./src/app/initializer/session-initializer.service.ts":
/*!************************************************************!*\
!*** ./src/app/initializer/session-initializer.service.ts ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var application_storage_service_1 = __webpack_require__(/*! @app/shared/services/application-storage.service */ "./src/app/infrastructure/shared/services/application-storage.service.ts");
var session_logger_service_1 = __webpack_require__(/*! @app/core/services/session-logger.service */ "./src/app/infrastructure/core/services/session-logger.service.ts");
var auth_service_1 = __webpack_require__(/*! ../infrastructure/data/auth/auth.service */ "./src/app/infrastructure/data/auth/auth.service.ts");
var SessionInitializerService = /** @class */ (function () {
function SessionInitializerService(applicationStorage, sessionLogger, AUTH_SERVICE) {
this.applicationStorage = applicationStorage;
this.sessionLogger = sessionLogger;
this.AUTH_SERVICE = AUTH_SERVICE;
}
SessionInitializerService.prototype.initialize = function () {
var _this = this;
return new Promise(function (resolve, reject) {
var token = _this.applicationStorage.GetItem(application_storage_service_1.ApplicationStorageKey.token);
var userInfo = _this.applicationStorage.GetItem(application_storage_service_1.ApplicationStorageKey.userInfo);
if (token && userInfo) {
var tokenData = JSON.parse(token);
var userInfoData = JSON.parse(userInfo);
if (tokenData.hasOwnProperty('access_token')) {
_this.sessionLogger.access_token = tokenData.access_token;
_this.AUTH_SERVICE.getUserInfo(userInfoData.loginInfo.username)
.subscribe(function (res) {
_this.applicationStorage.SetItem(application_storage_service_1.ApplicationStorageKey.userInfo, JSON.stringify(res));
_this.sessionLogger.currentUserInfo = res;
resolve();
}, function (err) {
_this.sessionLogger.logout();
resolve();
});
}
}
else {
resolve();
}
});
};
SessionInitializerService = tslib_1.__decorate([
core_1.Injectable(),
tslib_1.__metadata("design:paramtypes", [application_storage_service_1.ApplicationStorageService,
session_logger_service_1.SessionLoggerService,
auth_service_1.AuthService])
], SessionInitializerService);
return SessionInitializerService;
}());
exports.SessionInitializerService = SessionInitializerService;
/***/ }),
/***/ "./src/app/main/components/footer-bar/footer-bar.component.html":
/*!**********************************************************************!*\
!*** ./src/app/main/components/footer-bar/footer-bar.component.html ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n\n"
/***/ }),
/***/ "./src/app/main/components/footer-bar/footer-bar.component.scss":
/*!**********************************************************************!*\
!*** ./src/app/main/components/footer-bar/footer-bar.component.scss ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".footer {\n color: white;\n padding-bottom: 20px;\n margin-top: 20px;\n padding-bottom: 20px;\n margin-top: 83px;\n background: #052936;\n position: relative; }\n .footer ul {\n list-style: none;\n display: block;\n text-align: center;\n padding: 0px;\n margin: 0px;\n width: 400px;\n margin: 0 auto; }\n .footer ul li {\n float: left; }\n .footer-separator {\n position: relative;\n height: 120px;\n width: 100%;\n overflow: hidden;\n margin-bottom: -119px; }\n .footer-separator:before {\n background: #8CAE8A;\n width: 110%;\n content: \"\";\n height: 300px;\n position: absolute;\n -webkit-transform: rotate(1deg);\n transform: rotate(1deg);\n left: -10px;\n top: 69px; }\n .footer-separator:after {\n background: #0C5407;\n width: 110%;\n content: \"\";\n height: 300px;\n position: absolute;\n -webkit-transform: rotate(-2deg);\n transform: rotate(-2deg);\n left: -10px;\n top: 59px; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL2FwcC9tYWluL2NvbXBvbmVudHMvZm9vdGVyLWJhci9mb290ZXItYmFyLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNHO0VBQ0ssWUFBWTtFQUNaLG9CQUFvQjtFQUNwQixnQkFBZ0I7RUFDaEIsb0JBQW9CO0VBQ3BCLGdCQUFnQjtFQUNoQixtQkFBbUI7RUFDbkIsa0JBQWtCLEVBQUE7RUFQdkI7SUFTUyxnQkFBZ0I7SUFDaEIsY0FBYztJQUNkLGtCQUFrQjtJQUNsQixZQUFZO0lBQ1osV0FBVztJQUNYLFlBQVk7SUFDWixjQUFjLEVBQUE7RUFmdkI7TUFpQmEsV0FBVSxFQUFBO0VBSXRCO0VBQ0ksa0JBQWtCO0VBQ2xCLGFBQWE7RUFDYixXQUFXO0VBQ1gsZ0JBQWdCO0VBQ2hCLHFCQUFxQixFQUFBO0VBTHpCO0lBT1EsbUJBQW1CO0lBQ25CLFdBQVc7SUFDWCxXQUFXO0lBQ1gsYUFBYTtJQUNiLGtCQUFrQjtJQUNsQiwrQkFBK0I7SUFDL0IsdUJBQXVCO0lBQ3ZCLFdBQVc7SUFDWCxTQUFTLEVB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kZW47XG4gICAgICAgIG1hcmdpbi1ib3R0b206IC0xMTlweDtcbiAgICAgICAgJjpiZWZvcmUge1xuICAgICAgICAgICAgYmFja2dyb3VuZDogIzhDQUU4QTtcbiAgICAgICAgICAgIHdpZHRoOiAxMTAlO1xuICAgICAgICAgICAgY29udGVudDogXCJcIjtcbiAgICAgICAgICAgIGhlaWdodDogMzAwcHg7XG4gICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgICAtd2Via2l0LXRyYW5zZm9ybTogcm90YXRlKDFkZWcpO1xuICAgICAgICAgICAgdHJhbnNmb3JtOiByb3RhdGUoMWRlZyk7XG4gICAgICAgICAgICBsZWZ0OiAtMTBweDtcbiAgICAgICAgICAgIHRvcDogNjlweDtcbiBcbiAgICAgICAgIH1cblxuICAgICAgICAgJjphZnRlciB7XG4gICAgICAgICAgICBiYWNrZ3JvdW5kOiAjMEM1NDA3O1xuICAgICAgICAgICAgd2lkdGg6IDExMCU7XG4gICAgICAgICAgICBjb250ZW50OiBcIlwiO1xuICAgICAgICAgICAgaGVpZ2h0OiAzMDBweDtcbiAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiByb3RhdGUoLTJkZWcpO1xuICAgICAgICAgICAgdHJhbnNmb3JtOiByb3RhdGUoLTJkZWcpO1xuICAgICAgICAgICAgbGVmdDogLTEwcHg7XG4gICAgICAgICAgICB0b3A6IDU5cHg7XG4gXG4gICAgICAgICB9XG4gICAgfSJdfQ== */"
/***/ }),
/***/ "./src/app/main/components/footer-bar/footer-bar.component.ts":
/*!********************************************************************!*\
!*** ./src/app/main/components/footer-bar/footer-bar.component.ts ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var session_logger_service_1 = __webpack_require__(/*! @app/core/services/session-logger.service */ "./src/app/infrastructure/core/services/session-logger.service.ts");
var FooterBarComponent = /** @class */ (function () {
function FooterBarComponent(router, sessionLogger) {
var _this = this;
this.router = router;
this.sessionLogger = sessionLogger;
this.activeLink = '';
this.routeEventListener = router.events.subscribe(function (event) {
if (event instanceof router_1.NavigationEnd) {
_this.activeLink = event.url;
}
});
}
FooterBarComponent.prototype.ngOnInit = function () {
};
FooterBarComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-footer-bar',
template: __webpack_require__(/*! ./footer-bar.component.html */ "./src/app/main/components/footer-bar/footer-bar.component.html"),
styles: [__webpack_require__(/*! ./footer-bar.component.scss */ "./src/app/main/components/footer-bar/footer-bar.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [router_1.Router,
session_logger_service_1.SessionLoggerService])
], FooterBarComponent);
return FooterBarComponent;
}());
exports.FooterBarComponent = FooterBarComponent;
/***/ }),
/***/ "./src/app/main/components/header/header.component.html":
/*!**************************************************************!*\
!*** ./src/app/main/components/header/header.component.html ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ "./src/app/main/components/header/header.component.scss":
/*!**************************************************************!*\
!*** ./src/app/main/components/header/header.component.scss ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "/** ALL COLORS DECLARED TO BE USED FOR AIHRIS APP **/\n/** END OF COLOR DECLARATION **/\n/** BORDER RADIUS **/\n.header {\n position: relative;\n padding: 0px !important; }\n.header .bg-svg,\n .header .bg-svg-i {\n height: 403px;\n overflow: hidden;\n position: absolute;\n width: 100%;\n z-index: 0; }\n.header .bg-svg-i {\n -webkit-transform: rotate(0deg) scaleX(-1);\n transform: rotate(0deg) scaleX(-1); }\n.header .navbar-menu {\n display: flex;\n width: 100%;\n justify-content: flex-end;\n padding: 0 25px; }\n@media (max-width: 600px) {\n .header .navbar-menu {\n padding: 0 !important; } }\n@media (max-width: 600px) {\n .header .navbar-menu .navbar-menu-item {\n margin-right: 4%; } }\n.header .navbar-menu .navbar-menu-item .menu-item {\n display: inline-block;\n margin-left: 20px;\n font-size: 10px;\n color: white;\n cursor: pointer; }\n.header nav.navbar {\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n padding: 0px !important;\n color: white; }\n.header nav.navbar .navbar-brand {\n display: inline-block;\n padding-top: .3125rem;\n padding-bottom: .3125rem;\n margin-right: 1rem;\n font-size: 35px;\n line-height: inherit;\n white-space: nowrap;\n text-transform: uppercase;\n color: white;\n margin: 15px;\n margin-left: 0px;\n margin-right: 0px; }\n@media (max-width: 600px) {\n .header nav.navbar .navbar-brand {\n margin-left: 30px; } }\n.header nav.navbar .navbar-toggler {\n color: white;\n margin-right: 34px; }\n.header nav.navbar .navbar-collapse {\n justify-content: space-between;\n overflow: hidden; }\n.header nav.navbar .navbar-collapse .navbar-right ul {\n margin-bottom: 0; }\n.header nav.navbar .navbar-collapse .navbar-right ul li {\n display: inline-block;\n cursor: pointer;\n font-size: 15px;\n text-transform: uppercase;\n list-style-type: none; }\n.header nav.navbar .navbar-collapse .navbar-right ul li a {\n color: white;\n text-decoration: none;\n padding: 10px;\n padding-left: 30px;\n padding-right: 30px;\n margin-left: 10px;\n float: left;\n border-bottom: 4px solid transparent; }\n.header nav.navbar .navbar-collapse .navbar-right ul li .active,\n .header nav.navbar .navbar-collapse .navbar-right ul li :hover {\n border-bottom: 4px solid #57b847; }\n@media (max-width: 991px) {\n .header nav.navbar .navbar-collapse {\n position: absolute;\n top: 100%;\n width: 100%;\n background: #0A2F44;\n z-index: 200;\n left: 0; }\n .header nav.navbar .navbar-collapse .navbar-right ul {\n margin-bottom: 0;\n padding: 0;\n margin-left: -10px; }\n .header nav.navbar .navbar-collapse .navbar-right ul li {\n display: block;\n cursor: pointer;\n margin-right: 0px;\n font-size: 20px;\n text-transform: uppercase;\n list-style-type: none; }\n .header nav.navbar .navbar-collapse .navbar-right ul li a {\n text-decoration: none;\n padding: 0.7em 1em;\n color: #fff;\n width: 100%;\n float: left; }\n .header nav.navbar .navbar-collapse .navbar-right ul li a:hover {\n background-color: #F0F0F7;\n color: #0A2F44; } }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL3Njc3MvdmFyaWFibGVzLnNjc3MiLCIvZGlzdC9zcmMvYXBwL3NyYy9hcHAvbWFpbi9jb21wb25lbnRzL2hlYWRlci9oZWFkZXIuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0RBQUE7QUFxQkEsK0JBQUE7QUFFQSxvQkFBQTtBQ3JCQTtFQUNJLGtCQUFrQjtFQUNsQix1QkFBdUIsRUFBQTtBQUYzQjs7SUFNUSxhQUFhO0lBQ2IsZ0JBQWdCO0lBQ2hCLGtCQUFrQjtJQUNsQixXQUFXO0lBQ1gsVUFBVSxFQUFBO0FBVmxCO0lBY1EsMENBQWtDO1lBQWxDLGtDQUFrQyxFQUFBO0FBZDFDO0lBa0JRLGFBQWE7SUFDYixXQUFXO0lBQ1gseUJBQXlCO0lBQ3pCLGVBQWUsRUFBQTtBQUVmO01BdkJSO1FBd0JZLHFCQUFxQixFQUFBLEVBZ0I1QjtBQVpPO01BNUJaO1FBNkJnQixnQkFBZ0IsRUFBQSxFQVV2QjtBQXZDVDtNQWlDZ0IscUJBQXFCO01BQ3JCLGlCQUFpQjtNQUNqQixlQUFlO01BQ2YsWUFBWTtNQUNaLGVBQWUsRUFBQTtBQXJDL0I7SUEyQ1Esa0JBQWtCO0lBQ2xCLGFBQWE7SUFFYixlQUFlO0lBQ2YsbUJBQW1CO0lBQ25CLDhCQUE4QjtJQUM5Qix1QkFBdUI7SU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NvbnRlbnQtcGFkZGluZzogMzBweCA2MHB4IDYwcHggNjBweDtcbiRhZG1pbi1ib2R5LXBhZGRpbmc6IDE1cHg7IiwiQGltcG9ydCBcIi4uLy4uLy4uLy4uL3Njc3MvdmFyaWFibGVzLnNjc3NcIjtcblxuLmhlYWRlciB7XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIHBhZGRpbmc6IDBweCAhaW1wb3J0YW50O1xuXG4gICAgLmJnLXN2ZyxcbiAgICAuYmctc3ZnLWkge1xuICAgICAgICBoZWlnaHQ6IDQwM3B4O1xuICAgICAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICB6LWluZGV4OiAwO1xuICAgIH1cblxuICAgIC5iZy1zdmctaSB7XG4gICAgICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpIHNjYWxlWCgtMSk7XG4gICAgfVxuXG4gICAgLm5hdmJhci1tZW51IHtcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogZmxleC1lbmQ7XG4gICAgICAgIHBhZGRpbmc6IDAgMjVweDtcblxuICAgICAgICBAbWVkaWEobWF4LXdpZHRoOiA2MDBweCkge1xuICAgICAgICAgICAgcGFkZGluZzogMCAhaW1wb3J0YW50O1xuICAgICAgICB9XG5cbiAgICAgICAgLm5hdmJhci1tZW51LWl0ZW0ge1xuICAgICAgICAgICAgQG1lZGlhKG1heC13aWR0aDogNjAwcHgpIHtcbiAgICAgICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDQlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAubWVudS1pdGVtIHtcbiAgICAgICAgICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgICAgICAgICAgICAgbWFyZ2luLWxlZnQ6IDIwcHg7XG4gICAgICAgICAgICAgICAgZm9udC1zaXplOiAxMHB4O1xuICAgICAgICAgICAgICAgIGNvbG9yOiB3aGl0ZTtcbiAgICAgICAgICAgICAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBuYXYubmF2YmFyIHtcbiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICAtbXMtZmxleC13cmFwOiB3cmFwO1xuICAgICAgICBmbGV4LXdyYXA6IHdyYXA7XG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICAgICAgcGFkZGluZzogMHB4ICFpbXBvcnRhbnQ7XG4gICAgICAgIGNvbG9yOiB3aGl0ZTtcblxuICAgICAgICAvLyBiYWNrZ3JvdW5kOiAjMDcyODNhO1xuICAgICAgICAvLyBib3gtc2hhZG93OiAwIDAgMTBweCAwIHJnYmEoMCwwLDAsLjQwKSFpbXBvcnRhbnQ7XG4gICAgICAgIC5uYXZiYXItYnJhbmQge1xuICAgICAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgICAgICAgICAgcGFkZGluZy10b3A6IC4zMTI1cmVtO1xuICAgICAgICAgICAgcGFkZGluZy1ib3R0b206IC4zMTI1cmVtO1xuICAgICAgICAgICAgbWFyZ2luLXJpZ2h0OiAxcmVtO1xuICAgICAgICAgICAgZm9udC1zaXplOiAzNXB4O1xuICAgICAgICAgICAgbGluZS1oZWlnaHQ6IGluaGVyaXQ7XG4gICAgICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICAgICAgICAgICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbiAgICAgICAgICAgIGNvbG9yOiB3aGl0ZTtcbiAgICAgICAgICAgIG1hcmdpbjogMTVweDtcbiAgICAgICAgICAgIG1hcmdpbi1sZWZ0OiAwcHg7XG4gICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDBweDtcblxuICAgICAgICAgICAgQG1lZGlhKG1heC13aWR0aDogNjAwcHgpIHtcbiAgICAgICAgICAgICAgICBtYXJnaW4tbGVmdDogMzBweDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC5uYXZiYXItdG9nZ2xlciB7XG4gICAgICAgICAgICBjb2xvcjogd2hpdGU7XG4gICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDM0cHg7XG4gICAgICAgIH1cblxuICAgICAgICAubmF2YmFyLWNvbGxhcHNlIHtcbiAgICAgICAgICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICAgICAgICAgIG92ZXJmbG93OiBoaWRkZW47XG5cbiAgICAgICAgICAgIC5uYXZiYXItbGVmdCB7fVxuXG4gICAgICAgICAgICAubmF2YmFyLXJpZ2h0IHtcbiAgICAgICAgICAgICAgICB1bCB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDA7XG5cbiAgICAgICAgICAgICAgICAgICAgbGkge1xuICAgICAgICAgICAgICAgICAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgICAgICAgICAgICAgICAgICAgICAgY3Vyc29yOiBwb2ludGVyO1xuICAgICAgICAgICAgICAgICAgICAgICAgZm9udC1zaXplOiAxNXB4O1xuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcblxuXG4gICAgICAgICAgICAgICAgICAgICAgICBhIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb2xvcjogd2hpdGU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhZGRpbmc6IDEwcHg7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFkZGluZy1sZWZ0OiAzMHB4O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhZGRpbmctcmlnaHQ6IDMwcHg7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luLWxlZnQ6IDEwcHg7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZmxvYXQ6IGxlZnQ7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYm9yZGVyLWJvdHRvbTogNHB4IHNvbGlkIHRyYW5zcGFyZW50O1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAuYWN0aXZlLFxuICAgICAgICAgICAgICAgICAgICAgICAgOmhvdmVyIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBiYWNrZ3JvdW5kLWNvbG9yOiAjNTdiODQ3O1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJvcmRlci1ib3R0b206IDRweCBzb2xpZCAjNTdiODQ3O1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIEBtZWRpYSAobWF4LXdpZHRoOiA5OTFweCkge1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgICAgICAgICB0b3A6IDEwMCU7XG4gICAgICAgICAgICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICAgICAgICAgICAgYmFja2dyb3VuZDogJGRhcmstYmx1ZTtcbiAgICAgICAgICAgICAgICB6LWluZGV4OiAyMDA7XG4gICAgICAgICAgICAgICAgbGVmdDogMDtcblxuICAgICAgICAgICAgICAgIC5uYXZiYXItcmlnaHQge1xuICAgICAgICAgICAgICAgICAgICB1bCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW4tYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgICAgICAgICAgcGFkZGluZzogMDtcbiAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbi1sZWZ0OiAtMTBweDtcblxuICAgICAgICAgICAgICAgICAgICAgICAgbGkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW4tcmlnaHQ6IDBweDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb250LXNpemU6IDIwcHg7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYWRkaW5nOiAwLjdlbSAxZW07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmxvYXQ6IGxlZnQ7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJjpob3ZlciB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAkZ3JleS0xO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29sb3I6ICRkYXJrLWJsdWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59Il19 */"
/***/ }),
/***/ "./src/app/main/components/header/header.component.ts":
/*!************************************************************!*\
!*** ./src/app/main/components/header/header.component.ts ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var session_logger_service_1 = __webpack_require__(/*! @app/core/services/session-logger.service */ "./src/app/infrastructure/core/services/session-logger.service.ts");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var HeaderComponent = /** @class */ (function () {
function HeaderComponent(router, sessionLogger) {
var _this = this;
this.router = router;
this.sessionLogger = sessionLogger;
this.activeLink = '';
this.isLoggedIn = false;
this.routeEventListener = router.events.subscribe(function (event) {
if (event instanceof router_1.NavigationEnd) {
_this.activeLink = event.url;
}
});
}
HeaderComponent.prototype.ngOnInit = function () {
this.isLoggedIn = this.sessionLogger.isLoggedIn();
this.currentUser = this.sessionLogger.currentUserInfo;
};
HeaderComponent.prototype.navigate = function () {
if (this.currentUser.loginInfo.roleName.toLowerCase() === 'investor') {
this.router.navigate(['/investor']);
}
else if (this.currentUser.loginInfo.roleName.toLowerCase() === 'client') {
this.router.navigate(['/client']);
}
else {
this.router.navigate([this.currentUser.loginInfo.landingPage]);
}
};
HeaderComponent.prototype.toggle = function () {
if (this.navbar.nativeElement.classList.contains('nav-hide')) {
this.navbar.nativeElement.classList.remove('nav-hide');
}
else {
this.navbar.nativeElement.classList.add('nav-hide');
}
};
tslib_1.__decorate([
core_1.ViewChild('navbar'),
tslib_1.__metadata("design:type", core_1.ElementRef)
], HeaderComponent.prototype, "navbar", void 0);
HeaderComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-header',
template: __webpack_require__(/*! ./header.component.html */ "./src/app/main/components/header/header.component.html"),
styles: [__webpack_require__(/*! ./header.component.scss */ "./src/app/main/components/header/header.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [router_1.Router,
session_logger_service_1.SessionLoggerService])
], HeaderComponent);
return HeaderComponent;
}());
exports.HeaderComponent = HeaderComponent;
/***/ }),
/***/ "./src/app/main/pages/account-page/account-page.component.html":
/*!*********************************************************************!*\
!*** ./src/app/main/pages/account-page/account-page.component.html ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = " \n"
/***/ }),
/***/ "./src/app/main/pages/account-page/account-page.component.scss":
/*!*********************************************************************!*\
!*** ./src/app/main/pages/account-page/account-page.component.scss ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21haW4vcGFnZXMvYWNjb3VudC1wYWdlL2FjY291bnQtcGFnZS5jb21wb25lbnQuc2NzcyJ9 */"
/***/ }),
/***/ "./src/app/main/pages/account-page/account-page.component.ts":
/*!*******************************************************************!*\
!*** ./src/app/main/pages/account-page/account-page.component.ts ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var component_base_1 = __webpack_require__(/*! @app/common/component-base */ "./src/app/common/component-base.ts");
var AccountPageComponent = /** @class */ (function (_super) {
tslib_1.__extends(AccountPageComponent, _super);
function AccountPageComponent() {
return _super.call(this) || this;
}
AccountPageComponent.prototype.ngOnDestroy = function () {
// throw new Error("Method not implemented.");
};
AccountPageComponent.prototype.ngOnInit = function () {
};
AccountPageComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-account-page',
template: __webpack_require__(/*! ./account-page.component.html */ "./src/app/main/pages/account-page/account-page.component.html"),
styles: [__webpack_require__(/*! ./account-page.component.scss */ "./src/app/main/pages/account-page/account-page.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [])
], AccountPageComponent);
return AccountPageComponent;
}(component_base_1.ComponentBase));
exports.AccountPageComponent = AccountPageComponent;
/***/ }),
/***/ "./src/app/main/pages/admin-page/admin-page.component.html":
/*!*****************************************************************!*\
!*** ./src/app/main/pages/admin-page/admin-page.component.html ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n"
/***/ }),
/***/ "./src/app/main/pages/admin-page/admin-page.component.scss":
/*!*****************************************************************!*\
!*** ./src/app/main/pages/admin-page/admin-page.component.scss ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".admin-page .admin-page-wrapper .admin-page-sidebar {\n height: 100%;\n width: 62px;\n position: fixed;\n z-index: 15;\n top: 0;\n left: 0;\n background-color: #FBFCFD;\n overflow-x: hidden;\n padding-top: 75px;\n transition: margin .3s ease-in-out, -webkit-transform .3s ease-in-out;\n transition: transform .3s ease-in-out, margin .3s ease-in-out;\n transition: transform .3s ease-in-out, margin .3s ease-in-out, -webkit-transform .3s ease-in-out; }\n .admin-page .admin-page-wrapper .admin-page-sidebar a {\n padding: 12px 20px;\n text-decoration: none;\n border-left: 3px solid #FBFCFD;\n font-size: 18px;\n color: #A7A7A7;\n transition: .5s;\n display: block;\n cursor: pointer; }\n .admin-page .admin-page-wrapper .admin-page-sidebar a:hover, .admin-page .admin-page-wrapper .admin-page-sidebar a.active {\n color: #5783FB;\n padding: 12px 20px;\n border-left: 3px solid #5783FB; }\n .admin-page .admin-page-wrapper .admin-page-body {\n margin-left: 283px;\n overflow-y: hidden;\n position: relative;\n overflow-x: hidden;\n transition: margin .3s ease-in-out, -webkit-transform .3s ease-in-out;\n transition: transform .3s ease-in-out, margin .3s ease-in-out;\n transition: transform .3s ease-in-out, margin .3s ease-in-out, -webkit-transform .3s ease-in-out; }\n @media (max-width: 800px) {\n .admin-page .admin-page-wrapper .admin-page-body {\n margin-left: 60px; } }\n @media (max-width: 800px) {\n .admin-sidebar-show .admin-page-body-overlay {\n position: absolute;\n cursor: pointer;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 10; } }\n .admin-page .admin-page-wrapper .admin-page-overlay {\n margin-left: 295px; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL2FwcC9tYWluL3BhZ2VzL2FkbWluLXBhZ2UvYWRtaW4tcGFnZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUdZLFlBQVk7RUFDWixXQUFXO0VBQ1gsZUFBZTtFQUNmLFdBQVc7RUFDWCxNQUFNO0VBQ04sT0FBTztFQUNQLHlCQUF5QjtFQUN6QixrQkFBa0I7RUFDbEIsaUJBQWlCO0VBQ2pCLHFFQUE2RDtFQUE3RCw2REFBNkQ7RUFBN0QsZ0dBQTZELEVBQUE7RUFaekU7SUFjZ0Isa0JBQWtCO0lBQ2xCLHFCQUFxQjtJQUNyQiw4QkFBOEI7SUFDOUIsZUFBZTtJQUNmLGNBQWM7SUFJZCxlQUFlO0lBQ2YsY0FBYztJQUNkLGVBQWUsRUFBQTtFQXhCL0I7TUEyQm9CLGNBQWM7TUFDZCxrQkFBa0I7TUFDbEIsOEJBQThCLEVBQUE7RUE3QmxEO0VBa0NZLGtCQUFrQjtFQUNsQixrQkFBa0I7RUFDbEI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3JhdGlvbjogbm9uZTtcbiAgICAgICAgICAgICAgICBib3JkZXItbGVmdDogM3B4IHNvbGlkICNGQkZDRkQ7XG4gICAgICAgICAgICAgICAgZm9udC1zaXplOiAxOHB4O1xuICAgICAgICAgICAgICAgIGNvbG9yOiAjQTdBN0E3O1xuICAgICAgICAgICAgICAgIC1tcy10cmFuc2l0aW9uOiAuNXM7XG4gICAgICAgICAgICAgICAgLW1vei10cmFuc2l0aW9uOiAuNXM7XG4gICAgICAgICAgICAgICAgLXdlYmtpdC10cmFuc2l0aW9uOiAuNXM7XG4gICAgICAgICAgICAgICAgdHJhbnNpdGlvbjogLjVzO1xuICAgICAgICAgICAgICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgICAgICAgICAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICAgICAgICAgICAgICAmOmhvdmVyLFxuICAgICAgICAgICAgICAgICYuYWN0aXZlIHtcbiAgICAgICAgICAgICAgICAgICAgY29sb3I6ICM1NzgzRkI7XG4gICAgICAgICAgICAgICAgICAgIHBhZGRpbmc6IDEycHggMjBweDtcbiAgICAgICAgICAgICAgICAgICAgYm9yZGVyLWxlZnQ6IDNweCBzb2xpZCAjNTc4M0ZCO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICAuYWRtaW4tcGFnZS1ib2R5IHtcbiAgICAgICAgICAgIG1hcmdpbi1sZWZ0OiAyODNweDtcbiAgICAgICAgICAgIG92ZXJmbG93LXk6IGhpZGRlbjtcbiAgICAgICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICAgICAgICAgIG92ZXJmbG93LXg6IGhpZGRlbjtcbiAgICAgICAgICAgIHRyYW5zaXRpb246IHRyYW5zZm9ybSAuM3MgZWFzZS1pbi1vdXQsIG1hcmdpbiAuM3MgZWFzZS1pbi1vdXQ7XG4gICAgICAgICAgICBAbWVkaWEobWF4LXdpZHRoOiA4MDBweCkge1xuICAgICAgICAgICAgICAgIG1hcmdpbi1sZWZ0OiA2MHB4O1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgQGF0LXJvb3QgLmFkbWluLXNpZGViYXItc2hvdyB7XG4gICAgICAgICAgICAgICAgQG1lZGlhKG1heC13aWR0aDogODAwcHgpIHtcbiAgICAgICAgICAgICAgICAgICAgLmFkbWluLXBhZ2UtYm9keS1vdmVybGF5IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICAgICAgICAgICAgICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiAxMDAlO1xuICAgICAgICAgICAgICAgICAgICAgICAgdG9wOiAwO1xuICAgICAgICAgICAgICAgICAgICAgICAgbGVmdDogMDtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJpZ2h0OiAwO1xuICAgICAgICAgICAgICAgICAgICAgICAgYm90dG9tOiAwO1xuICAgICAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgei1pbmRleDogMTA7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgLmFkbWluLXBhZ2Utb3ZlcmxheXtcbiAgICAgICAgICAgIG1hcmdpbi1sZWZ0OiAyOTVweDtcbiAgICAgICAgfVxuICAgIH1cbn0iXX0= */"
/***/ }),
/***/ "./src/app/main/pages/admin-page/admin-page.component.ts":
/*!***************************************************************!*\
!*** ./src/app/main/pages/admin-page/admin-page.component.ts ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var component_base_1 = __webpack_require__(/*! app/common/component-base */ "./src/app/common/component-base.ts");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var pub_sub_service_1 = __webpack_require__(/*! @app/core/services/pub-sub.service */ "./src/app/infrastructure/core/services/pub-sub.service.ts");
var app_enum_1 = __webpack_require__(/*! app/app.enum */ "./src/app/app.enum.ts");
var angular4_hal_1 = __webpack_require__(/*! angular4-hal */ "./node_modules/angular4-hal/index.js");
var AdminPageComponent = /** @class */ (function (_super) {
tslib_1.__extends(AdminPageComponent, _super);
function AdminPageComponent(router, pubSub) {
var _this = _super.call(this) || this;
_this.router = router;
_this.pubSub = pubSub;
_this.STYLES = {
'min-height': '0px'
};
_this.activeLink = '';
_this.showOverlay = false;
angular4_hal_1.CacheHelper.isActive = false;
angular4_hal_1.CacheHelper.initClearCacheProcess();
_this.STYLES['min-height'] = window.innerHeight + "px";
_this.routeEventListener = router.events.subscribe(function (event) {
if (event instanceof router_1.NavigationEnd) {
if (event.url.includes('/client')) {
_this.activeLink = 'client';
}
if (event.url.includes('/admin') && !event.url.includes('profile')) {
_this.activeLink = '/';
}
if (event.url.includes('/admin/projects')) {
_this.activeLink = 'projects';
}
if (event.url.includes('/admin/users')) {
_this.activeLink = 'users';
}
if (event.url.includes('/admin/reservation')) {
_this.activeLink = 'reservation';
}
if (event.url.includes('/admin/contract')) {
_this.activeLink = 'contract';
}
if (event.url.includes('/admin/user-management')) {
_this.activeLink = 'user-management';
}
if (event.url.includes('/admin/accounting')) {
_this.activeLink = 'accounting';
}
if (event.url.includes('/admin/transaction')) {
_this.activeLink = 'transaction';
}
}
});
_this.pubSubListener = _this.pubSub.On(app_enum_1.App.OnAdminPageBusy)
.subscribe(function (res) {
_this.IS_BUSY = res;
});
_this.overlayListener = _this.pubSub.On(app_enum_1.App.OnShowDrawerOverlay)
.subscribe(function (showOverlay) { return _this.showOverlay = showOverlay; });
return _this;
}
AdminPageComponent.prototype.ngOnInit = function () {
};
AdminPageComponent.prototype.onResize = function (event) {
this.STYLES['min-height'] = window.innerHeight + "px";
};
AdminPageComponent.prototype.goToPage = function (path, activeLink) {
if (window.innerWidth > 800 || this.activeLink !== activeLink) {
this.router.navigate([path]);
}
else {
document.getElementById('body').classList.toggle('admin-sidebar-show');
}
};
AdminPageComponent.prototype.closeOverlay = function () {
document.getElementById('body').classList.remove('admin-sidebar-show');
};
AdminPageComponent.prototype.ngOnDestroy = function () {
if (this.routeEventListener != null) {
this.routeEventListener.unsubscribe();
}
if (this.pubSubListener) {
this.pubSubListener.unsubscribe();
}
if (this.overlayListener) {
this.overlayListener.unsubscribe();
}
};
tslib_1.__decorate([
core_1.HostListener('window:resize', ['$event']),
tslib_1.__metadata("design:type", Function),
tslib_1.__metadata("design:paramtypes", [Object]),
tslib_1.__metadata("design:returntype", void 0)
], AdminPageComponent.prototype, "onResize", null);
AdminPageComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-admin-page',
template: __webpack_require__(/*! ./admin-page.component.html */ "./src/app/main/pages/admin-page/admin-page.component.html"),
encapsulation: core_1.ViewEncapsulation.None,
styles: [__webpack_require__(/*! ./admin-page.component.scss */ "./src/app/main/pages/admin-page/admin-page.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [router_1.Router,
pub_sub_service_1.PubSubService])
], AdminPageComponent);
return AdminPageComponent;
}(component_base_1.ComponentBase));
exports.AdminPageComponent = AdminPageComponent;
/***/ }),
/***/ "./src/app/main/pages/home-page/home-page.component.html":
/*!***************************************************************!*\
!*** ./src/app/main/pages/home-page/home-page.component.html ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ "./src/app/main/pages/home-page/home-page.component.scss":
/*!***************************************************************!*\
!*** ./src/app/main/pages/home-page/home-page.component.scss ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ".home-page {\n background: white; }\n .home-page .home-page-header {\n position: absolute;\n top: 0;\n width: 100%;\n z-index: 2; }\n .home-page .home-page-body {\n color: white; }\n .home-page .home-footer {\n margin-top: -87px;\n position: relative;\n z-index: 1; }\n .home-page .home-footer a {\n color: #57b847;\n padding: 10px;\n text-decoration: none; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9kaXN0L3NyYy9hcHAvc3JjL2FwcC9tYWluL3BhZ2VzL2hvbWUtcGFnZS9ob21lLXBhZ2UuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxpQkFBaUIsRUFBQTtFQURyQjtJQUlRLGtCQUFrQjtJQUNsQixNQUFNO0lBQ04sV0FBVztJQUNYLFVBQVUsRUFBQTtFQVBsQjtJQVdRLFlBQVksRUFBQTtFQVhwQjtJQWVRLGlCQUFpQjtJQUNqQixrQkFBa0I7SUFDbEIsVUFBVSxFQUFBO0VBakJsQjtNQW1CWSxjQUFjO01BQ2QsYUFBYTtNQUNiLHFCQUFxQixFQUFBIiwiZmlsZSI6InNyYy9hcHAvbWFpbi9wYWdlcy9ob21lLXBhZ2UvaG9tZS1wYWdlLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmhvbWUtcGFnZSB7XG4gICAgYmFja2dyb3VuZDogd2hpdGU7XG5cbiAgICAuaG9tZS1wYWdlLWhlYWRlciB7XG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgdG9wOiAwO1xuICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgei1pbmRleDogMjtcbiAgICB9XG5cbiAgICAuaG9tZS1wYWdlLWJvZHkge1xuICAgICAgICBjb2xvcjogd2hpdGU7XG4gICAgfVxuXG4gICAgLmhvbWUtZm9vdGVyIHtcbiAgICAgICAgbWFyZ2luLXRvcDogLTg3cHg7XG4gICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICAgICAgei1pbmRleDogMTtcbiAgICAgICAgYSB7XG4gICAgICAgICAgICBjb2xvcjogIzU3Yjg0NztcbiAgICAgICAgICAgIHBhZGRpbmc6IDEwcHg7XG4gICAgICAgICAgICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gICAgICAgIH1cbiAgICB9XG59Il19 */"
/***/ }),
/***/ "./src/app/main/pages/home-page/home-page.component.ts":
/*!*************************************************************!*\
!*** ./src/app/main/pages/home-page/home-page.component.ts ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var page_component_base_1 = __webpack_require__(/*! ../../../common/page-component-base */ "./src/app/common/page-component-base.ts");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
var HomePageComponent = /** @class */ (function (_super) {
tslib_1.__extends(HomePageComponent, _super);
function HomePageComponent(router) {
var _this = _super.call(this) || this;
_this.router = router;
_this.isUrlEmpty = false;
_this.isUrlEmpty = _this.router.url !== '/' ? true : false;
return _this;
}
HomePageComponent.prototype.ngOnInit = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var _this = this;
return tslib_1.__generator(this, function (_a) {
this.router.events.subscribe(function (evt) {
if (evt instanceof router_1.NavigationEnd) {
_this.isUrlEmpty = _this.router.url !== '/' ? true : false;
}
});
return [2 /*return*/];
});
});
};
HomePageComponent.prototype.ngOnDestroy = function () {
};
HomePageComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-home-page',
template: __webpack_require__(/*! ./home-page.component.html */ "./src/app/main/pages/home-page/home-page.component.html"),
encapsulation: core_1.ViewEncapsulation.None,
styles: [__webpack_require__(/*! ./home-page.component.scss */ "./src/app/main/pages/home-page/home-page.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [router_1.Router])
], HomePageComponent);
return HomePageComponent;
}(page_component_base_1.PageComponentBase));
exports.HomePageComponent = HomePageComponent;
/***/ }),
/***/ "./src/app/main/pages/login-page/login-page.component.html":
/*!*****************************************************************!*\
!*** ./src/app/main/pages/login-page/login-page.component.html ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = " "
/***/ }),
/***/ "./src/app/main/pages/login-page/login-page.component.scss":
/*!*****************************************************************!*\
!*** ./src/app/main/pages/login-page/login-page.component.scss ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL21haW4vcGFnZXMvbG9naW4tcGFnZS9sb2dpbi1wYWdlLmNvbXBvbmVudC5zY3NzIn0= */"
/***/ }),
/***/ "./src/app/main/pages/login-page/login-page.component.ts":
/*!***************************************************************!*\
!*** ./src/app/main/pages/login-page/login-page.component.ts ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var page_component_base_1 = __webpack_require__(/*! ../../../common/page-component-base */ "./src/app/common/page-component-base.ts");
var LoginPageComponent = /** @class */ (function (_super) {
tslib_1.__extends(LoginPageComponent, _super);
function LoginPageComponent() {
return _super.call(this) || this;
}
LoginPageComponent.prototype.ngOnInit = function () {
};
LoginPageComponent.prototype.ngOnDestroy = function () {
};
LoginPageComponent = tslib_1.__decorate([
core_1.Component({
selector: 'app-login-page',
template: __webpack_require__(/*! ./login-page.component.html */ "./src/app/main/pages/login-page/login-page.component.html"),
styles: [__webpack_require__(/*! ./login-page.component.scss */ "./src/app/main/pages/login-page/login-page.component.scss")]
}),
tslib_1.__metadata("design:paramtypes", [])
], LoginPageComponent);
return LoginPageComponent;
}(page_component_base_1.PageComponentBase));
exports.LoginPageComponent = LoginPageComponent;
/***/ }),
/***/ "./src/environments/environment.ts":
/*!*****************************************!*\
!*** ./src/environments/environment.ts ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.environment = {
production: false,
apiUrl: 'https://api.starkwood.com.ph'
};
/***/ }),
/***/ "./src/main.ts":
/*!*********************!*\
!*** ./src/main.ts ***!
\*********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
var platform_browser_dynamic_1 = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm5/platform-browser-dynamic.js");
var app_module_1 = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts");
var environment_1 = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts");
if (environment_1.environment.production) {
core_1.enableProdMode();
}
platform_browser_dynamic_1.platformBrowserDynamic().bootstrapModule(app_module_1.AppModule)
.catch(function (err) { return console.log(err); });
/***/ }),
/***/ 0:
/*!***************************!*\
!*** multi ./src/main.ts ***!
\***************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! /dist/src/app/src/main.ts */"./src/main.ts");
/***/ })
},[[0,"runtime","vendor"]]]);
//# sourceMappingURL=main.js.map