(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{

/***/ "./$$_lazy_route_resource lazy recursive":
/*!******************************************************!*\
  !*** ./$$_lazy_route_resource lazy namespace object ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function webpackEmptyAsyncContext(req) {
	// Here Promise.resolve().then() is used instead of new Promise() to prevent
	// uncaught exception popping up in devtools
	return Promise.resolve().then(function() {
		var e = new Error("Cannot find module '" + req + "'");
		e.code = 'MODULE_NOT_FOUND';
		throw e;
	});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = "./$$_lazy_route_resource lazy recursive";

/***/ }),

/***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$":
/*!**************************************************!*\
  !*** ./node_modules/moment/locale sync ^\.\/.*$ ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

var map = {
	"./af": "./node_modules/moment/locale/af.js",
	"./af.js": "./node_modules/moment/locale/af.js",
	"./ar": "./node_modules/moment/locale/ar.js",
	"./ar-dz": "./node_modules/moment/locale/ar-dz.js",
	"./ar-dz.js": "./node_modules/moment/locale/ar-dz.js",
	"./ar-kw": "./node_modules/moment/locale/ar-kw.js",
	"./ar-kw.js": "./node_modules/moment/locale/ar-kw.js",
	"./ar-ly": "./node_modules/moment/locale/ar-ly.js",
	"./ar-ly.js": "./node_modules/moment/locale/ar-ly.js",
	"./ar-ma": "./node_modules/moment/locale/ar-ma.js",
	"./ar-ma.js": "./node_modules/moment/locale/ar-ma.js",
	"./ar-ps": "./node_modules/moment/locale/ar-ps.js",
	"./ar-ps.js": "./node_modules/moment/locale/ar-ps.js",
	"./ar-sa": "./node_modules/moment/locale/ar-sa.js",
	"./ar-sa.js": "./node_modules/moment/locale/ar-sa.js",
	"./ar-tn": "./node_modules/moment/locale/ar-tn.js",
	"./ar-tn.js": "./node_modules/moment/locale/ar-tn.js",
	"./ar.js": "./node_modules/moment/locale/ar.js",
	"./az": "./node_modules/moment/locale/az.js",
	"./az.js": "./node_modules/moment/locale/az.js",
	"./be": "./node_modules/moment/locale/be.js",
	"./be.js": "./node_modules/moment/locale/be.js",
	"./bg": "./node_modules/moment/locale/bg.js",
	"./bg.js": "./node_modules/moment/locale/bg.js",
	"./bm": "./node_modules/moment/locale/bm.js",
	"./bm.js": "./node_modules/moment/locale/bm.js",
	"./bn": "./node_modules/moment/locale/bn.js",
	"./bn-bd": "./node_modules/moment/locale/bn-bd.js",
	"./bn-bd.js": "./node_modules/moment/locale/bn-bd.js",
	"./bn.js": "./node_modules/moment/locale/bn.js",
	"./bo": "./node_modules/moment/locale/bo.js",
	"./bo.js": "./node_modules/moment/locale/bo.js",
	"./br": "./node_modules/moment/locale/br.js",
	"./br.js": "./node_modules/moment/locale/br.js",
	"./bs": "./node_modules/moment/locale/bs.js",
	"./bs.js": "./node_modules/moment/locale/bs.js",
	"./ca": "./node_modules/moment/locale/ca.js",
	"./ca.js": "./node_modules/moment/locale/ca.js",
	"./cs": "./node_modules/moment/locale/cs.js",
	"./cs.js": "./node_modules/moment/locale/cs.js",
	"./cv": "./node_modules/moment/locale/cv.js",
	"./cv.js": "./node_modules/moment/locale/cv.js",
	"./cy": "./node_modules/moment/locale/cy.js",
	"./cy.js": "./node_modules/moment/locale/cy.js",
	"./da": "./node_modules/moment/locale/da.js",
	"./da.js": "./node_modules/moment/locale/da.js",
	"./de": "./node_modules/moment/locale/de.js",
	"./de-at": "./node_modules/moment/locale/de-at.js",
	"./de-at.js": "./node_modules/moment/locale/de-at.js",
	"./de-ch": "./node_modules/moment/locale/de-ch.js",
	"./de-ch.js": "./node_modules/moment/locale/de-ch.js",
	"./de.js": "./node_modules/moment/locale/de.js",
	"./dv": "./node_modules/moment/locale/dv.js",
	"./dv.js": "./node_modules/moment/locale/dv.js",
	"./el": "./node_modules/moment/locale/el.js",
	"./el.js": "./node_modules/moment/locale/el.js",
	"./en-au": "./node_modules/moment/locale/en-au.js",
	"./en-au.js": "./node_modules/moment/locale/en-au.js",
	"./en-ca": "./node_modules/moment/locale/en-ca.js",
	"./en-ca.js": "./node_modules/moment/locale/en-ca.js",
	"./en-gb": "./node_modules/moment/locale/en-gb.js",
	"./en-gb.js": "./node_modules/moment/locale/en-gb.js",
	"./en-ie": "./node_modules/moment/locale/en-ie.js",
	"./en-ie.js": "./node_modules/moment/locale/en-ie.js",
	"./en-il": "./node_modules/moment/locale/en-il.js",
	"./en-il.js": "./node_modules/moment/locale/en-il.js",
	"./en-in": "./node_modules/moment/locale/en-in.js",
	"./en-in.js": "./node_modules/moment/locale/en-in.js",
	"./en-nz": "./node_modules/moment/locale/en-nz.js",
	"./en-nz.js": "./node_modules/moment/locale/en-nz.js",
	"./en-sg": "./node_modules/moment/locale/en-sg.js",
	"./en-sg.js": "./node_modules/moment/locale/en-sg.js",
	"./eo": "./node_modules/moment/locale/eo.js",
	"./eo.js": "./node_modules/moment/locale/eo.js",
	"./es": "./node_modules/moment/locale/es.js",
	"./es-do": "./node_modules/moment/locale/es-do.js",
	"./es-do.js": "./node_modules/moment/locale/es-do.js",
	"./es-mx": "./node_modules/moment/locale/es-mx.js",
	"./es-mx.js": "./node_modules/moment/locale/es-mx.js",
	"./es-us": "./node_modules/moment/locale/es-us.js",
	"./es-us.js": "./node_modules/moment/locale/es-us.js",
	"./es.js": "./node_modules/moment/locale/es.js",
	"./et": "./node_modules/moment/locale/et.js",
	"./et.js": "./node_modules/moment/locale/et.js",
	"./eu": "./node_modules/moment/locale/eu.js",
	"./eu.js": "./node_modules/moment/locale/eu.js",
	"./fa": "./node_modules/moment/locale/fa.js",
	"./fa.js": "./node_modules/moment/locale/fa.js",
	"./fi": "./node_modules/moment/locale/fi.js",
	"./fi.js": "./node_modules/moment/locale/fi.js",
	"./fil": "./node_modules/moment/locale/fil.js",
	"./fil.js": "./node_modules/moment/locale/fil.js",
	"./fo": "./node_modules/moment/locale/fo.js",
	"./fo.js": "./node_modules/moment/locale/fo.js",
	"./fr": "./node_modules/moment/locale/fr.js",
	"./fr-ca": "./node_modules/moment/locale/fr-ca.js",
	"./fr-ca.js": "./node_modules/moment/locale/fr-ca.js",
	"./fr-ch": "./node_modules/moment/locale/fr-ch.js",
	"./fr-ch.js": "./node_modules/moment/locale/fr-ch.js",
	"./fr.js": "./node_modules/moment/locale/fr.js",
	"./fy": "./node_modules/moment/locale/fy.js",
	"./fy.js": "./node_modules/moment/locale/fy.js",
	"./ga": "./node_modules/moment/locale/ga.js",
	"./ga.js": "./node_modules/moment/locale/ga.js",
	"./gd": "./node_modules/moment/locale/gd.js",
	"./gd.js": "./node_modules/moment/locale/gd.js",
	"./gl": "./node_modules/moment/locale/gl.js",
	"./gl.js": "./node_modules/moment/locale/gl.js",
	"./gom-deva": "./node_modules/moment/locale/gom-deva.js",
	"./gom-deva.js": "./node_modules/moment/locale/gom-deva.js",
	"./gom-latn": "./node_modules/moment/locale/gom-latn.js",
	"./gom-latn.js": "./node_modules/moment/locale/gom-latn.js",
	"./gu": "./node_modules/moment/locale/gu.js",
	"./gu.js": "./node_modules/moment/locale/gu.js",
	"./he": "./node_modules/moment/locale/he.js",
	"./he.js": "./node_modules/moment/locale/he.js",
	"./hi": "./node_modules/moment/locale/hi.js",
	"./hi.js": "./node_modules/moment/locale/hi.js",
	"./hr": "./node_modules/moment/locale/hr.js",
	"./hr.js": "./node_modules/moment/locale/hr.js",
	"./hu": "./node_modules/moment/locale/hu.js",
	"./hu.js": "./node_modules/moment/locale/hu.js",
	"./hy-am": "./node_modules/moment/locale/hy-am.js",
	"./hy-am.js": "./node_modules/moment/locale/hy-am.js",
	"./id": "./node_modules/moment/locale/id.js",
	"./id.js": "./node_modules/moment/locale/id.js",
	"./is": "./node_modules/moment/locale/is.js",
	"./is.js": "./node_modules/moment/locale/is.js",
	"./it": "./node_modules/moment/locale/it.js",
	"./it-ch": "./node_modules/moment/locale/it-ch.js",
	"./it-ch.js": "./node_modules/moment/locale/it-ch.js",
	"./it.js": "./node_modules/moment/locale/it.js",
	"./ja": "./node_modules/moment/locale/ja.js",
	"./ja.js": "./node_modules/moment/locale/ja.js",
	"./jv": "./node_modules/moment/locale/jv.js",
	"./jv.js": "./node_modules/moment/locale/jv.js",
	"./ka": "./node_modules/moment/locale/ka.js",
	"./ka.js": "./node_modules/moment/locale/ka.js",
	"./kk": "./node_modules/moment/locale/kk.js",
	"./kk.js": "./node_modules/moment/locale/kk.js",
	"./km": "./node_modules/moment/locale/km.js",
	"./km.js": "./node_modules/moment/locale/km.js",
	"./kn": "./node_modules/moment/locale/kn.js",
	"./kn.js": "./node_modules/moment/locale/kn.js",
	"./ko": "./node_modules/moment/locale/ko.js",
	"./ko.js": "./node_modules/moment/locale/ko.js",
	"./ku": "./node_modules/moment/locale/ku.js",
	"./ku-kmr": "./node_modules/moment/locale/ku-kmr.js",
	"./ku-kmr.js": "./node_modules/moment/locale/ku-kmr.js",
	"./ku.js": "./node_modules/moment/locale/ku.js",
	"./ky": "./node_modules/moment/locale/ky.js",
	"./ky.js": "./node_modules/moment/locale/ky.js",
	"./lb": "./node_modules/moment/locale/lb.js",
	"./lb.js": "./node_modules/moment/locale/lb.js",
	"./lo": "./node_modules/moment/locale/lo.js",
	"./lo.js": "./node_modules/moment/locale/lo.js",
	"./lt": "./node_modules/moment/locale/lt.js",
	"./lt.js": "./node_modules/moment/locale/lt.js",
	"./lv": "./node_modules/moment/locale/lv.js",
	"./lv.js": "./node_modules/moment/locale/lv.js",
	"./me": "./node_modules/moment/locale/me.js",
	"./me.js": "./node_modules/moment/locale/me.js",
	"./mi": "./node_modules/moment/locale/mi.js",
	"./mi.js": "./node_modules/moment/locale/mi.js",
	"./mk": "./node_modules/moment/locale/mk.js",
	"./mk.js": "./node_modules/moment/locale/mk.js",
	"./ml": "./node_modules/moment/locale/ml.js",
	"./ml.js": "./node_modules/moment/locale/ml.js",
	"./mn": "./node_modules/moment/locale/mn.js",
	"./mn.js": "./node_modules/moment/locale/mn.js",
	"./mr": "./node_modules/moment/locale/mr.js",
	"./mr.js": "./node_modules/moment/locale/mr.js",
	"./ms": "./node_modules/moment/locale/ms.js",
	"./ms-my": "./node_modules/moment/locale/ms-my.js",
	"./ms-my.js": "./node_modules/moment/locale/ms-my.js",
	"./ms.js": "./node_modules/moment/locale/ms.js",
	"./mt": "./node_modules/moment/locale/mt.js",
	"./mt.js": "./node_modules/moment/locale/mt.js",
	"./my": "./node_modules/moment/locale/my.js",
	"./my.js": "./node_modules/moment/locale/my.js",
	"./nb": "./node_modules/moment/locale/nb.js",
	"./nb.js": "./node_modules/moment/locale/nb.js",
	"./ne": "./node_modules/moment/locale/ne.js",
	"./ne.js": "./node_modules/moment/locale/ne.js",
	"./nl": "./node_modules/moment/locale/nl.js",
	"./nl-be": "./node_modules/moment/locale/nl-be.js",
	"./nl-be.js": "./node_modules/moment/locale/nl-be.js",
	"./nl.js": "./node_modules/moment/locale/nl.js",
	"./nn": "./node_modules/moment/locale/nn.js",
	"./nn.js": "./node_modules/moment/locale/nn.js",
	"./oc-lnc": "./node_modules/moment/locale/oc-lnc.js",
	"./oc-lnc.js": "./node_modules/moment/locale/oc-lnc.js",
	"./pa-in": "./node_modules/moment/locale/pa-in.js",
	"./pa-in.js": "./node_modules/moment/locale/pa-in.js",
	"./pl": "./node_modules/moment/locale/pl.js",
	"./pl.js": "./node_modules/moment/locale/pl.js",
	"./pt": "./node_modules/moment/locale/pt.js",
	"./pt-br": "./node_modules/moment/locale/pt-br.js",
	"./pt-br.js": "./node_modules/moment/locale/pt-br.js",
	"./pt.js": "./node_modules/moment/locale/pt.js",
	"./ro": "./node_modules/moment/locale/ro.js",
	"./ro.js": "./node_modules/moment/locale/ro.js",
	"./ru": "./node_modules/moment/locale/ru.js",
	"./ru.js": "./node_modules/moment/locale/ru.js",
	"./sd": "./node_modules/moment/locale/sd.js",
	"./sd.js": "./node_modules/moment/locale/sd.js",
	"./se": "./node_modules/moment/locale/se.js",
	"./se.js": "./node_modules/moment/locale/se.js",
	"./si": "./node_modules/moment/locale/si.js",
	"./si.js": "./node_modules/moment/locale/si.js",
	"./sk": "./node_modules/moment/locale/sk.js",
	"./sk.js": "./node_modules/moment/locale/sk.js",
	"./sl": "./node_modules/moment/locale/sl.js",
	"./sl.js": "./node_modules/moment/locale/sl.js",
	"./sq": "./node_modules/moment/locale/sq.js",
	"./sq.js": "./node_modules/moment/locale/sq.js",
	"./sr": "./node_modules/moment/locale/sr.js",
	"./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js",
	"./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js",
	"./sr.js": "./node_modules/moment/locale/sr.js",
	"./ss": "./node_modules/moment/locale/ss.js",
	"./ss.js": "./node_modules/moment/locale/ss.js",
	"./sv": "./node_modules/moment/locale/sv.js",
	"./sv.js": "./node_modules/moment/locale/sv.js",
	"./sw": "./node_modules/moment/locale/sw.js",
	"./sw.js": "./node_modules/moment/locale/sw.js",
	"./ta": "./node_modules/moment/locale/ta.js",
	"./ta.js": "./node_modules/moment/locale/ta.js",
	"./te": "./node_modules/moment/locale/te.js",
	"./te.js": "./node_modules/moment/locale/te.js",
	"./tet": "./node_modules/moment/locale/tet.js",
	"./tet.js": "./node_modules/moment/locale/tet.js",
	"./tg": "./node_modules/moment/locale/tg.js",
	"./tg.js": "./node_modules/moment/locale/tg.js",
	"./th": "./node_modules/moment/locale/th.js",
	"./th.js": "./node_modules/moment/locale/th.js",
	"./tk": "./node_modules/moment/locale/tk.js",
	"./tk.js": "./node_modules/moment/locale/tk.js",
	"./tl-ph": "./node_modules/moment/locale/tl-ph.js",
	"./tl-ph.js": "./node_modules/moment/locale/tl-ph.js",
	"./tlh": "./node_modules/moment/locale/tlh.js",
	"./tlh.js": "./node_modules/moment/locale/tlh.js",
	"./tr": "./node_modules/moment/locale/tr.js",
	"./tr.js": "./node_modules/moment/locale/tr.js",
	"./tzl": "./node_modules/moment/locale/tzl.js",
	"./tzl.js": "./node_modules/moment/locale/tzl.js",
	"./tzm": "./node_modules/moment/locale/tzm.js",
	"./tzm-latn": "./node_modules/moment/locale/tzm-latn.js",
	"./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js",
	"./tzm.js": "./node_modules/moment/locale/tzm.js",
	"./ug-cn": "./node_modules/moment/locale/ug-cn.js",
	"./ug-cn.js": "./node_modules/moment/locale/ug-cn.js",
	"./uk": "./node_modules/moment/locale/uk.js",
	"./uk.js": "./node_modules/moment/locale/uk.js",
	"./ur": "./node_modules/moment/locale/ur.js",
	"./ur.js": "./node_modules/moment/locale/ur.js",
	"./uz": "./node_modules/moment/locale/uz.js",
	"./uz-latn": "./node_modules/moment/locale/uz-latn.js",
	"./uz-latn.js": "./node_modules/moment/locale/uz-latn.js",
	"./uz.js": "./node_modules/moment/locale/uz.js",
	"./vi": "./node_modules/moment/locale/vi.js",
	"./vi.js": "./node_modules/moment/locale/vi.js",
	"./x-pseudo": "./node_modules/moment/locale/x-pseudo.js",
	"./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js",
	"./yo": "./node_modules/moment/locale/yo.js",
	"./yo.js": "./node_modules/moment/locale/yo.js",
	"./zh-cn": "./node_modules/moment/locale/zh-cn.js",
	"./zh-cn.js": "./node_modules/moment/locale/zh-cn.js",
	"./zh-hk": "./node_modules/moment/locale/zh-hk.js",
	"./zh-hk.js": "./node_modules/moment/locale/zh-hk.js",
	"./zh-mo": "./node_modules/moment/locale/zh-mo.js",
	"./zh-mo.js": "./node_modules/moment/locale/zh-mo.js",
	"./zh-tw": "./node_modules/moment/locale/zh-tw.js",
	"./zh-tw.js": "./node_modules/moment/locale/zh-tw.js"
};


function webpackContext(req) {
	var id = webpackContextResolve(req);
	return __webpack_require__(id);
}
function webpackContextResolve(req) {
	if(!__webpack_require__.o(map, req)) {
		var e = new Error("Cannot find module '" + req + "'");
		e.code = 'MODULE_NOT_FOUND';
		throw e;
	}
	return map[req];
}
webpackContext.keys = function webpackContextKeys() {
	return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";

/***/ }),

/***/ "./node_modules/typescript/lib sync recursive":
/*!******************************************!*\
  !*** ./node_modules/typescript/lib sync ***!
  \******************************************/
/*! no static exports found */
/***/ (function(module, exports) {

function webpackEmptyContext(req) {
	var e = new Error("Cannot find module '" + req + "'");
	e.code = 'MODULE_NOT_FOUND';
	throw e;
}
webpackEmptyContext.keys = function() { return []; };
webpackEmptyContext.resolve = webpackEmptyContext;
module.exports = webpackEmptyContext;
webpackEmptyContext.id = "./node_modules/typescript/lib sync recursive";

/***/ }),

/***/ "./src/app/app-routing.module.ts":
/*!***************************************!*\
  !*** ./src/app/app-routing.module.ts ***!
  \***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AppRoutingModule = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var routes = [
    { path: '', redirectTo: 'sign-in', pathMatch: 'full' },
    { path: 'login', redirectTo: 'sign-in', pathMatch: 'full' },
];
var AppRoutingModule = /** @class */ (function () {
    function AppRoutingModule() {
    }
    AppRoutingModule.ɵmod = i0.ɵɵdefineNgModule({ type: AppRoutingModule });
    AppRoutingModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppRoutingModule_Factory(t) { return new (t || AppRoutingModule)(); }, imports: [[router_1.RouterModule.forRoot(routes, { useHash: true })], router_1.RouterModule] });
    return AppRoutingModule;
}());
exports.AppRoutingModule = AppRoutingModule;
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AppRoutingModule, { imports: [i1.RouterModule], exports: [router_1.RouterModule] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AppRoutingModule, [{
        type: core_1.NgModule,
        args: [{
                imports: [router_1.RouterModule.forRoot(routes, { useHash: true })],
                exports: [router_1.RouterModule]
            }]
    }], null, null); })();


/***/ }),

/***/ "./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 });
exports.AppComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var api_1 = __webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js");
var defaultLanguage = tslib_1.__importStar(__webpack_require__(/*! src/assets/i18n/en.json */ "./src/assets/i18n/en.json"));
var jaLanguage = tslib_1.__importStar(__webpack_require__(/*! ./../assets/i18n/ja.json */ "./src/assets/i18n/ja.json"));
var viLanguage = tslib_1.__importStar(__webpack_require__(/*! ./../assets/i18n/vi.json */ "./src/assets/i18n/vi.json"));
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ./shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! primeng/toast */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-toast.js"));
var AppComponent = /** @class */ (function () {
    function AppComponent(primengConfig, translate, messageService, broadcastService) {
        var _this = this;
        this.primengConfig = primengConfig;
        this.translate = translate;
        this.messageService = messageService;
        this.broadcastService = broadcastService;
        translate.setTranslation('en', jaLanguage);
        translate.setDefaultLang('en');
        this.broadcastService.subscribe('change-language', function (lang) {
            _this.changeLanguage(lang);
        });
    }
    AppComponent.prototype.title = function (title) {
        throw new Error('Method not implemented.');
    };
    AppComponent.prototype.ngOnInit = function () {
        this.primengConfig.ripple = true;
        this.changeLanguage(null);
    };
    AppComponent.prototype.doDetectBrowserLang = function () {
        switch (this.translate.getBrowserLang().toLocaleLowerCase()) {
            case 'vi':
            case 'vi-vn':
                return 'vi';
            case 'ja':
                return 'ja';
            default:
                return 'en';
        }
    };
    AppComponent.prototype.changeLanguage = function (lang) {
        if (lang !== null) {
            switch (lang) {
                case 'vi':
                    this.translate.setTranslation('vi', viLanguage);
                    break;
                case 'ja':
                    this.translate.setTranslation('ja', jaLanguage);
                    break;
                default:
                    lang = 'en';
                    this.translate.setTranslation('en', defaultLanguage);
                    // lang = 'ja';
                    // this.translate.setTranslation('ja', jaLanguage);
                    break;
            }
            // this language will be used as a fallback when a translation isn't found in the current language
            this.translate.setDefaultLang(lang);
            // the lang to use, if the lang isn't available, it will use the current loader to get them
            this.translate.use(lang);
        }
        else {
            switch (this.doDetectBrowserLang()) {
                case 'vi':
                    this.translate.setTranslation('vi', viLanguage);
                    break;
                case 'ja':
                    this.translate.setTranslation('ja', jaLanguage);
                    break;
                default:
                    this.translate.setTranslation('en', defaultLanguage);
                    break;
            }
            this.translate.setDefaultLang(this.doDetectBrowserLang());
            this.translate.use(this.doDetectBrowserLang());
        }
    };
    AppComponent.ɵfac = function AppComponent_Factory(t) { return new (t || AppComponent)(i0.ɵɵdirectiveInject(i1.PrimeNGConfig), i0.ɵɵdirectiveInject(i2.TranslateService), i0.ɵɵdirectiveInject(i1.MessageService), i0.ɵɵdirectiveInject(i3.BroadcastService)); };
    AppComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AppComponent, selectors: [["app-root"]], features: [i0.ɵɵProvidersFeature([api_1.MessageService])], decls: 2, vars: 1, consts: [["position", "top-center", "key", "toast", 3, "baseZIndex"]], template: function AppComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "router-outlet");
            i0.ɵɵelement(1, "p-toast", 0);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("baseZIndex", 10001);
        } }, directives: [i4.RouterOutlet, i5.Toast], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FwcC5jb21wb25lbnQuc2NzcyJ9 */"] });
    return AppComponent;
}());
exports.AppComponent = AppComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AppComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-root',
                templateUrl: './app.component.html',
                styleUrls: ['./app.component.scss'],
                providers: [api_1.MessageService]
            }]
    }], function () { return [{ type: i1.PrimeNGConfig }, { type: i2.TranslateService }, { type: i1.MessageService }, { type: i3.BroadcastService }]; }, null); })();


/***/ }),

/***/ "./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 });
exports.AppModule = exports.HttpLoaderFactory = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var platform_browser_1 = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var app_routing_module_1 = __webpack_require__(/*! ./app-routing.module */ "./src/app/app-routing.module.ts");
var app_component_1 = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts");
var animations_1 = __webpack_require__(/*! @angular/platform-browser/animations */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/animations.js");
var core_2 = __webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js");
var http_1 = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
var http_loader_1 = __webpack_require__(/*! @ngx-translate/http-loader */ "./node_modules/@ngx-translate/http-loader/__ivy_ngcc__/fesm2015/ngx-translate-http-loader.js");
var authentication_module_1 = __webpack_require__(/*! ./authentication/authentication.module */ "./src/app/authentication/authentication.module.ts");
var team_admin_module_1 = __webpack_require__(/*! ./team-admin/team-admin.module */ "./src/app/team-admin/team-admin.module.ts");
var ngx_cookie_service_1 = __webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js");
var intercept_header_https_1 = __webpack_require__(/*! ./helpers/intercept.header.https */ "./src/app/helpers/intercept.header.https.ts");
var api_1 = __webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js");
var shared_module_1 = __webpack_require__(/*! ./shared/shared.module */ "./src/app/shared/shared.module.ts");
var rib_layout_module_1 = __webpack_require__(/*! ./rib-layout/rib-layout.module */ "./src/app/rib-layout/rib-layout.module.ts");
var intercept_error_https_1 = __webpack_require__(/*! ./helpers/intercept.error.https */ "./src/app/helpers/intercept.error.https.ts");
var broadcast_service_1 = __webpack_require__(/*! ./shared/broadcast.service */ "./src/app/shared/broadcast.service.ts");
var dynamicdialog_1 = __webpack_require__(/*! primeng/dynamicdialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dynamicdialog.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function HttpLoaderFactory(http) {
    return new http_loader_1.TranslateHttpLoader(new http_1.HttpClient(http), './assets/i18n/', '.json');
}
exports.HttpLoaderFactory = HttpLoaderFactory;
var AppModule = /** @class */ (function () {
    function AppModule() {
    }
    AppModule.ɵmod = i0.ɵɵdefineNgModule({ type: AppModule, bootstrap: [app_component_1.AppComponent] });
    AppModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); }, providers: [
            {
                provide: http_1.HTTP_INTERCEPTORS,
                useClass: intercept_header_https_1.InterceptHeaderHttps,
                multi: true
            }, {
                provide: http_1.HTTP_INTERCEPTORS,
                useClass: intercept_error_https_1.InterceptHeaderErrorHttps,
                multi: true
            },
            { provide: common_1.LocationStrategy, useClass: common_1.HashLocationStrategy },
            api_1.MessageService,
            ngx_cookie_service_1.CookieService,
            broadcast_service_1.BroadcastService,
            dynamicdialog_1.DialogService
        ], imports: [[
                platform_browser_1.BrowserModule,
                app_routing_module_1.AppRoutingModule,
                animations_1.BrowserAnimationsModule,
                http_1.HttpClientModule,
                core_2.TranslateModule.forRoot({
                    defaultLanguage: 'en',
                    loader: {
                        provide: core_2.TranslateLoader,
                        useFactory: HttpLoaderFactory,
                        deps: [http_1.HttpBackend]
                    }
                }),
                shared_module_1.SharedModule,
                authentication_module_1.AuthenticationModule,
                rib_layout_module_1.RibLayoutModule,
                team_admin_module_1.TeamAdminModule
            ]] });
    return AppModule;
}());
exports.AppModule = AppModule;
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AppModule, { declarations: [app_component_1.AppComponent], imports: [platform_browser_1.BrowserModule,
        app_routing_module_1.AppRoutingModule,
        animations_1.BrowserAnimationsModule,
        http_1.HttpClientModule, i1.TranslateModule, shared_module_1.SharedModule,
        authentication_module_1.AuthenticationModule,
        rib_layout_module_1.RibLayoutModule,
        team_admin_module_1.TeamAdminModule] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AppModule, [{
        type: core_1.NgModule,
        args: [{
                declarations: [
                    app_component_1.AppComponent
                ],
                imports: [
                    platform_browser_1.BrowserModule,
                    app_routing_module_1.AppRoutingModule,
                    animations_1.BrowserAnimationsModule,
                    http_1.HttpClientModule,
                    core_2.TranslateModule.forRoot({
                        defaultLanguage: 'en',
                        loader: {
                            provide: core_2.TranslateLoader,
                            useFactory: HttpLoaderFactory,
                            deps: [http_1.HttpBackend]
                        }
                    }),
                    shared_module_1.SharedModule,
                    authentication_module_1.AuthenticationModule,
                    rib_layout_module_1.RibLayoutModule,
                    team_admin_module_1.TeamAdminModule
                ],
                providers: [
                    {
                        provide: http_1.HTTP_INTERCEPTORS,
                        useClass: intercept_header_https_1.InterceptHeaderHttps,
                        multi: true
                    }, {
                        provide: http_1.HTTP_INTERCEPTORS,
                        useClass: intercept_error_https_1.InterceptHeaderErrorHttps,
                        multi: true
                    },
                    { provide: common_1.LocationStrategy, useClass: common_1.HashLocationStrategy },
                    api_1.MessageService,
                    ngx_cookie_service_1.CookieService,
                    broadcast_service_1.BroadcastService,
                    dynamicdialog_1.DialogService
                ],
                bootstrap: [app_component_1.AppComponent]
            }]
    }], null, null); })();


/***/ }),

/***/ "./src/app/authentication/authentication-container/authentication-container.component.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/authentication/authentication-container/authentication-container.component.ts ***!
  \***********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthenticationContainerComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../logo/logo.component */ "./src/app/authentication/logo/logo.component.ts"));
var AuthenticationContainerComponent = /** @class */ (function () {
    function AuthenticationContainerComponent() {
    }
    AuthenticationContainerComponent.prototype.ngOnInit = function () {
    };
    AuthenticationContainerComponent.ɵfac = function AuthenticationContainerComponent_Factory(t) { return new (t || AuthenticationContainerComponent)(); };
    AuthenticationContainerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AuthenticationContainerComponent, selectors: [["app-authentication-container"]], decls: 6, vars: 0, consts: [[1, "p-grid", "p-m-4"], [1, "p-col", "p-md-10", "p-md-offset-1", "p-lg-8", "p-lg-offset-2"], [1, "p-shadow-8", "p-card"], [1, "p-p-4", "p-col", "p-md-8", "p-md-offset-2"]], template: function AuthenticationContainerComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "div", 3);
            i0.ɵɵelementStart(4, "router-outlet");
            i0.ɵɵelement(5, "app-logo");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } }, directives: [i1.RouterOutlet, i2.LogoComponent], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2F1dGhlbnRpY2F0aW9uL2F1dGhlbnRpY2F0aW9uLWNvbnRhaW5lci9hdXRoZW50aWNhdGlvbi1jb250YWluZXIuY29tcG9uZW50LnNjc3MifQ== */"] });
    return AuthenticationContainerComponent;
}());
exports.AuthenticationContainerComponent = AuthenticationContainerComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AuthenticationContainerComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-authentication-container',
                templateUrl: './authentication-container.component.html',
                styleUrls: ['./authentication-container.component.scss']
            }]
    }], function () { return []; }, null); })();


/***/ }),

/***/ "./src/app/authentication/authentication-routing.module.ts":
/*!*****************************************************************!*\
  !*** ./src/app/authentication/authentication-routing.module.ts ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthenticationRoutingModule = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
var sign_in_component_1 = __webpack_require__(/*! ./sign-in/sign-in.component */ "./src/app/authentication/sign-in/sign-in.component.ts");
var authentication_container_component_1 = __webpack_require__(/*! ./authentication-container/authentication-container.component */ "./src/app/authentication/authentication-container/authentication-container.component.ts");
var reset_password_component_1 = __webpack_require__(/*! ./reset-password/reset-password.component */ "./src/app/authentication/reset-password/reset-password.component.ts");
var forgot_password_component_1 = __webpack_require__(/*! ./forgot-password/forgot-password.component */ "./src/app/authentication/forgot-password/forgot-password.component.ts");
var change_email_component_1 = __webpack_require__(/*! ./change-email/change-email.component */ "./src/app/authentication/change-email/change-email.component.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var routes = [
    {
        path: '',
        component: authentication_container_component_1.AuthenticationContainerComponent,
        children: [
            { path: 'sign-in', component: sign_in_component_1.SignInComponent },
            { path: 'forgot-pass', component: forgot_password_component_1.ForgotPasswordComponent },
            { path: 'reset-pass/:reset_key', component: reset_password_component_1.ResetPasswordComponent },
            { path: 'change-email/:confirm_code', component: change_email_component_1.ChangeEmailComponent }
        ]
    }
];
var AuthenticationRoutingModule = /** @class */ (function () {
    function AuthenticationRoutingModule() {
    }
    AuthenticationRoutingModule.ɵmod = i0.ɵɵdefineNgModule({ type: AuthenticationRoutingModule });
    AuthenticationRoutingModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AuthenticationRoutingModule_Factory(t) { return new (t || AuthenticationRoutingModule)(); }, imports: [[router_1.RouterModule.forChild(routes)], router_1.RouterModule] });
    return AuthenticationRoutingModule;
}());
exports.AuthenticationRoutingModule = AuthenticationRoutingModule;
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AuthenticationRoutingModule, { imports: [i1.RouterModule], exports: [router_1.RouterModule] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AuthenticationRoutingModule, [{
        type: core_1.NgModule,
        args: [{
                imports: [router_1.RouterModule.forChild(routes)],
                exports: [router_1.RouterModule]
            }]
    }], null, null); })();


/***/ }),

/***/ "./src/app/authentication/authentication.module.ts":
/*!*********************************************************!*\
  !*** ./src/app/authentication/authentication.module.ts ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthenticationModule = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var authentication_routing_module_1 = __webpack_require__(/*! ./authentication-routing.module */ "./src/app/authentication/authentication-routing.module.ts");
var sign_in_component_1 = __webpack_require__(/*! ./sign-in/sign-in.component */ "./src/app/authentication/sign-in/sign-in.component.ts");
var shared_module_1 = __webpack_require__(/*! ../shared/shared.module */ "./src/app/shared/shared.module.ts");
var authentication_container_component_1 = __webpack_require__(/*! ./authentication-container/authentication-container.component */ "./src/app/authentication/authentication-container/authentication-container.component.ts");
var autofocus_directive_1 = __webpack_require__(/*! ../directive/autofocus.directive */ "./src/app/directive/autofocus.directive.ts");
var forgot_password_component_1 = __webpack_require__(/*! ./forgot-password/forgot-password.component */ "./src/app/authentication/forgot-password/forgot-password.component.ts");
var reset_password_component_1 = __webpack_require__(/*! ./reset-password/reset-password.component */ "./src/app/authentication/reset-password/reset-password.component.ts");
var logo_component_1 = __webpack_require__(/*! ./logo/logo.component */ "./src/app/authentication/logo/logo.component.ts");
var change_email_component_1 = __webpack_require__(/*! ./change-email/change-email.component */ "./src/app/authentication/change-email/change-email.component.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var AuthenticationModule = /** @class */ (function () {
    function AuthenticationModule() {
    }
    AuthenticationModule.ɵmod = i0.ɵɵdefineNgModule({ type: AuthenticationModule });
    AuthenticationModule.ɵinj = i0.ɵɵdefineInjector({ factory: function AuthenticationModule_Factory(t) { return new (t || AuthenticationModule)(); }, imports: [[
                common_1.CommonModule,
                authentication_routing_module_1.AuthenticationRoutingModule,
                shared_module_1.SharedModule
            ]] });
    return AuthenticationModule;
}());
exports.AuthenticationModule = AuthenticationModule;
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AuthenticationModule, { declarations: [sign_in_component_1.SignInComponent,
        authentication_container_component_1.AuthenticationContainerComponent,
        autofocus_directive_1.AutofocusDirective,
        forgot_password_component_1.ForgotPasswordComponent,
        reset_password_component_1.ResetPasswordComponent,
        logo_component_1.LogoComponent,
        change_email_component_1.ChangeEmailComponent], imports: [common_1.CommonModule,
        authentication_routing_module_1.AuthenticationRoutingModule,
        shared_module_1.SharedModule], exports: [sign_in_component_1.SignInComponent,
        authentication_container_component_1.AuthenticationContainerComponent] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AuthenticationModule, [{
        type: core_1.NgModule,
        args: [{
                declarations: [
                    sign_in_component_1.SignInComponent,
                    authentication_container_component_1.AuthenticationContainerComponent,
                    autofocus_directive_1.AutofocusDirective,
                    forgot_password_component_1.ForgotPasswordComponent,
                    reset_password_component_1.ResetPasswordComponent,
                    logo_component_1.LogoComponent,
                    change_email_component_1.ChangeEmailComponent
                ],
                exports: [
                    sign_in_component_1.SignInComponent,
                    authentication_container_component_1.AuthenticationContainerComponent
                ],
                imports: [
                    common_1.CommonModule,
                    authentication_routing_module_1.AuthenticationRoutingModule,
                    shared_module_1.SharedModule
                ]
            }]
    }], null, null); })();


/***/ }),

/***/ "./src/app/authentication/change-email/change-email.component.ts":
/*!***********************************************************************!*\
  !*** ./src/app/authentication/change-email/change-email.component.ts ***!
  \***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ChangeEmailComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var constant_module_1 = __webpack_require__(/*! ../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function ChangeEmailComponent_div_8_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function ChangeEmailComponent_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.invalid_email"), " ");
} }
function ChangeEmailComponent_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 12);
    i0.ɵɵtemplate(1, ChangeEmailComponent_div_8_div_1_Template, 3, 3, "div", 13);
    i0.ɵɵtemplate(2, ChangeEmailComponent_div_8_div_2_Template, 3, 3, "div", 13);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.changeEmailFrm.controls["email"].errors == null ? null : ctx_r0.changeEmailFrm.controls["email"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.changeEmailFrm.controls["email"].errors == null ? null : ctx_r0.changeEmailFrm.controls["email"].errors.pattern);
} }
var ChangeEmailComponent = /** @class */ (function () {
    function ChangeEmailComponent(fb, authenticateService, router, utils, messageService, activatedRoute) {
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.router = router;
        this.utils = utils;
        this.messageService = messageService;
        this.activatedRoute = activatedRoute;
        this.confirmCode = '';
        this.changeEmailFrm = new forms_1.FormGroup({});
        this.submitting = false;
    }
    ChangeEmailComponent.prototype.ngOnInit = function () {
        this.confirmCode = this.activatedRoute.snapshot.paramMap.get('confirm_code');
        if (this.confirmCode == '') {
            this.router.navigate(['/sign-in']);
        }
        this.changeEmailFrm = this.fb.group({
            email: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.EMAIL_PATTERN)
                ]],
        });
    };
    ChangeEmailComponent.prototype.doChangeEmail = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submitting = true;
        var params = {
            'mail_address': this.changeEmailFrm.controls.email.value,
            'confirm_code': this.confirmCode,
        };
        this.authenticateService.changeEmail(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.save_success')
                });
                _this.router.navigate(['/sign-in']);
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
                _this.submitting = false;
                if (res.status === 102) {
                    _this.router.navigate(['/sign-in']);
                }
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.102')
            });
            _this.submitting = false;
        });
    };
    ChangeEmailComponent.prototype.doBack = function () {
        this.router.navigate(['sign-in']);
    };
    ;
    ChangeEmailComponent.ɵfac = function ChangeEmailComponent_Factory(t) { return new (t || ChangeEmailComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.AuthenticateService), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject(i4.UtilsService), i0.ɵɵdirectiveInject(i5.MessageService), i0.ɵɵdirectiveInject(i3.ActivatedRoute)); };
    ChangeEmailComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ChangeEmailComponent, selectors: [["app-change-email"]], decls: 17, vars: 13, consts: [["name", "changeEmailFrm", 3, "formGroup", "ngSubmit"], [1, "p-pt-3"], [1, "p-col"], [1, "p-inputgroup"], [1, "p-inputgroup-addon"], [1, "pi", "pi-envelope"], ["type", "text", "formControlName", "email", "required", "", "pInputText", "", 3, "ngClass", "placeholder"], ["class", "p-invalid", 4, "ngIf"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-col-12", "p-button-raised", "p-button-primary", 3, "disabled", "label"], [1, "p-field", "p-formgroup-inline"], [1, "p-col", "p-md-5", "p-text-left"], [1, "cs-pointer", "p-text-capitalize", 3, "click"], [1, "p-invalid"], [4, "ngIf"]], template: function ChangeEmailComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "form", 0);
            i0.ɵɵlistener("ngSubmit", function ChangeEmailComponent_Template_form_ngSubmit_0_listener() { return ctx.doChangeEmail(ctx.changeEmailFrm.valid); });
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "div", 3);
            i0.ɵɵelementStart(4, "span", 4);
            i0.ɵɵelement(5, "i", 5);
            i0.ɵɵelementEnd();
            i0.ɵɵelement(6, "input", 6);
            i0.ɵɵpipe(7, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(8, ChangeEmailComponent_div_8_Template, 3, 2, "div", 7);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(9, "div", 2);
            i0.ɵɵelement(10, "button", 8);
            i0.ɵɵpipe(11, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(12, "div", 9);
            i0.ɵɵelementStart(13, "div", 10);
            i0.ɵɵelementStart(14, "span", 11);
            i0.ɵɵlistener("click", function ChangeEmailComponent_Template_span_click_14_listener() { return ctx.doBack(); });
            i0.ɵɵtext(15);
            i0.ɵɵpipe(16, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵproperty("formGroup", ctx.changeEmailFrm);
            i0.ɵɵadvance(6);
            i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(7, 7, "login.email"));
            i0.ɵɵproperty("ngClass", (ctx.changeEmailFrm.controls["email"].touched || ctx.changeEmailFrm.controls["email"].dirty) && ctx.changeEmailFrm.controls["email"].invalid ? "p-invalid" : "");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", (ctx.changeEmailFrm.controls["email"].touched || ctx.changeEmailFrm.controls["email"].dirty) && (ctx.changeEmailFrm.controls["email"].invalid || (ctx.changeEmailFrm.controls["email"].errors == null ? null : ctx.changeEmailFrm.controls["email"].errors.pattern)));
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(11, 9, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.changeEmailFrm.valid || ctx.submitting);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 11, "button.back"), " ");
        } }, directives: [i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.DefaultValueAccessor, i1.NgControlStatus, i1.FormControlName, i1.RequiredValidator, i6.InputText, i7.NgClass, i7.NgIf, i8.ButtonDirective, i9.Ripple], pipes: [i10.TranslatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2F1dGhlbnRpY2F0aW9uL2NoYW5nZS1lbWFpbC9jaGFuZ2UtZW1haWwuY29tcG9uZW50LnNjc3MifQ== */"] });
    return ChangeEmailComponent;
}());
exports.ChangeEmailComponent = ChangeEmailComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ChangeEmailComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-change-email',
                templateUrl: './change-email.component.html',
                styleUrls: ['./change-email.component.scss']
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.AuthenticateService }, { type: i3.Router }, { type: i4.UtilsService }, { type: i5.MessageService }, { type: i3.ActivatedRoute }]; }, null); })();


/***/ }),

/***/ "./src/app/authentication/forgot-password/forgot-password.component.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/authentication/forgot-password/forgot-password.component.ts ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ForgotPasswordComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var constant_module_1 = __webpack_require__(/*! ../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! ../../directive/autofocus.directive */ "./src/app/directive/autofocus.directive.ts"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/messages */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-messages.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/radiobutton */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-radiobutton.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! primeng/scrollpanel */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-scrollpanel.js"));
function ForgotPasswordComponent_form_0_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 14);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.invalid_email"), " ");
} }
function ForgotPasswordComponent_form_0_Template(rf, ctx) { if (rf & 1) {
    var _r4 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "form", 2);
    i0.ɵɵlistener("ngSubmit", function ForgotPasswordComponent_form_0_Template_form_ngSubmit_0_listener() { i0.ɵɵrestoreView(_r4); var ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.doForgotStep1(ctx_r3.forgotFrm.valid); });
    i0.ɵɵelementStart(1, "div", 3);
    i0.ɵɵelementStart(2, "div", 4);
    i0.ɵɵelementStart(3, "div", 5);
    i0.ɵɵelementStart(4, "span", 6);
    i0.ɵɵelement(5, "i", 7);
    i0.ɵɵelementEnd();
    i0.ɵɵelement(6, "input", 8);
    i0.ɵɵpipe(7, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(8, ForgotPasswordComponent_form_0_div_8_Template, 3, 3, "div", 9);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "div", 4);
    i0.ɵɵelement(10, "button", 10);
    i0.ɵɵpipe(11, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(12, "div", 11);
    i0.ɵɵelementStart(13, "div", 12);
    i0.ɵɵelementStart(14, "span", 13);
    i0.ɵɵlistener("click", function ForgotPasswordComponent_form_0_Template_span_click_14_listener() { i0.ɵɵrestoreView(_r4); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.doBack(); });
    i0.ɵɵtext(15);
    i0.ɵɵpipe(16, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("formGroup", ctx_r0.forgotFrm);
    i0.ɵɵadvance(6);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(7, 6, "login.email"));
    i0.ɵɵproperty("appAutofocus", ctx_r0.forgotStep1);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", (ctx_r0.userName.touched || ctx_r0.userName.dirty) && (ctx_r0.userName.errors == null ? null : ctx_r0.userName.errors.pattern));
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(11, 8, "button.continue"));
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 10, "button.back"), " ");
} }
function ForgotPasswordComponent_form_1_div_1_p_messages_2_ng_template_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "div", 24);
} if (rf & 2) {
    var ctx_r11 = i0.ɵɵnextContext(4);
    i0.ɵɵproperty("innerHtml", ctx_r11.mgsLockout.message, i0.ɵɵsanitizeHtml);
} }
function ForgotPasswordComponent_form_1_div_1_p_messages_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "p-messages", 22);
    i0.ɵɵtemplate(1, ForgotPasswordComponent_form_1_div_1_p_messages_2_ng_template_1_Template, 1, 1, "ng-template", 23);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r8 = i0.ɵɵnextContext(3);
    i0.ɵɵpropertyInterpolate("severity", ctx_r8.mgsLockout.severity);
} }
function ForgotPasswordComponent_form_1_div_1_p_messages_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "p-messages", 25);
} if (rf & 2) {
    i0.ɵɵproperty("closable", false);
} }
function ForgotPasswordComponent_form_1_div_1_div_4_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
    var _r17 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 32);
    i0.ɵɵelementStart(1, "p-radioButton", 33);
    i0.ɵɵlistener("ngModelChange", function ForgotPasswordComponent_form_1_div_1_div_4_div_6_div_1_Template_p_radioButton_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r17); var ctx_r16 = i0.ɵɵnextContext(5); return ctx_r16.selectedTeam = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(2, "label", 34);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var team_r15 = ctx.$implicit;
    var ctx_r14 = i0.ɵɵnextContext(5);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("inputId", team_r15.team_id)("value", team_r15)("ngModel", ctx_r14.selectedTeam);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("for", team_r15.team_id);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(team_r15.team_name);
} }
function ForgotPasswordComponent_form_1_div_1_div_4_div_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 30);
    i0.ɵɵtemplate(1, ForgotPasswordComponent_form_1_div_1_div_4_div_6_div_1_Template, 4, 5, "div", 31);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r12 = i0.ɵɵnextContext(4);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r12.user_team.data);
} }
function ForgotPasswordComponent_form_1_div_1_div_4_div_7_div_2_Template(rf, ctx) { if (rf & 1) {
    var _r22 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 37);
    i0.ɵɵelementStart(1, "p-radioButton", 33);
    i0.ɵɵlistener("ngModelChange", function ForgotPasswordComponent_form_1_div_1_div_4_div_7_div_2_Template_p_radioButton_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r22); var ctx_r21 = i0.ɵɵnextContext(5); return ctx_r21.selectedTeam = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(2, "label", 34);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var team_r19 = ctx.$implicit;
    var i_r20 = ctx.index;
    var ctx_r18 = i0.ɵɵnextContext(5);
    i0.ɵɵproperty("ngClass", i_r20 === ctx_r18.user_team.data.length - 1 ? "p-pb-4" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("inputId", team_r19.team_id)("value", team_r19)("ngModel", ctx_r18.selectedTeam);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("for", team_r19.team_id);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(team_r19.team_name);
} }
var _c0 = function () { return { width: "100%", height: "115px" }; };
function ForgotPasswordComponent_form_1_div_1_div_4_div_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 30);
    i0.ɵɵelementStart(1, "p-scrollPanel", 35);
    i0.ɵɵtemplate(2, ForgotPasswordComponent_form_1_div_1_div_4_div_7_div_2_Template, 4, 6, "div", 36);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r13 = i0.ɵɵnextContext(4);
    i0.ɵɵadvance(1);
    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(3, _c0));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r13.user_team.data);
} }
function ForgotPasswordComponent_form_1_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 4);
    i0.ɵɵelementStart(1, "div", 26);
    i0.ɵɵelementStart(2, "div", 27);
    i0.ɵɵelementStart(3, "span", 28);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(6, ForgotPasswordComponent_form_1_div_1_div_4_div_6_Template, 2, 1, "div", 29);
    i0.ɵɵtemplate(7, ForgotPasswordComponent_form_1_div_1_div_4_div_7_Template, 3, 4, "div", 29);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r10 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 3, "login.choose_team"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r10.user_team.data.length <= 4);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r10.user_team.data.length > 4);
} }
function ForgotPasswordComponent_form_1_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 3);
    i0.ɵɵelementStart(1, "div", 4);
    i0.ɵɵtemplate(2, ForgotPasswordComponent_form_1_div_1_p_messages_2_Template, 2, 1, "p-messages", 18);
    i0.ɵɵtemplate(3, ForgotPasswordComponent_form_1_div_1_p_messages_3_Template, 1, 1, "p-messages", 19);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(4, ForgotPasswordComponent_form_1_div_1_div_4_Template, 8, 5, "div", 20);
    i0.ɵɵelementStart(5, "div", 4);
    i0.ɵɵelement(6, "button", 21);
    i0.ɵɵpipe(7, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r6.mgsLockout);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r6.selectedTeam);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r6.user_team && ctx_r6.user_team.data && ctx_r6.user_team.data.length > 1);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(7, 5, "button.continue"));
    i0.ɵɵproperty("disabled", !ctx_r6.forgotFrm2.valid);
} }
function ForgotPasswordComponent_form_1_div_2_Template(rf, ctx) { if (rf & 1) {
    var _r24 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 3);
    i0.ɵɵelementStart(1, "div", 4);
    i0.ɵɵelementStart(2, "p-messages", 38);
    i0.ɵɵlistener("valueChange", function ForgotPasswordComponent_form_1_div_2_Template_p_messages_valueChange_2_listener($event) { i0.ɵɵrestoreView(_r24); var ctx_r23 = i0.ɵɵnextContext(2); return ctx_r23.msgsSuccess = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r7 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("value", ctx_r7.msgsSuccess)("closable", false);
} }
function ForgotPasswordComponent_form_1_Template(rf, ctx) { if (rf & 1) {
    var _r26 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "form", 15);
    i0.ɵɵlistener("ngSubmit", function ForgotPasswordComponent_form_1_Template_form_ngSubmit_0_listener() { i0.ɵɵrestoreView(_r26); var ctx_r25 = i0.ɵɵnextContext(); return ctx_r25.doForgotPassword(); });
    i0.ɵɵtemplate(1, ForgotPasswordComponent_form_1_div_1_Template, 8, 7, "div", 16);
    i0.ɵɵtemplate(2, ForgotPasswordComponent_form_1_div_2_Template, 3, 2, "div", 16);
    i0.ɵɵelementStart(3, "div", 11);
    i0.ɵɵelementStart(4, "div", 17);
    i0.ɵɵelementStart(5, "span", 13);
    i0.ɵɵlistener("click", function ForgotPasswordComponent_form_1_Template_span_click_5_listener() { i0.ɵɵrestoreView(_r26); var ctx_r27 = i0.ɵɵnextContext(); return ctx_r27.doBack(); });
    i0.ɵɵtext(6);
    i0.ɵɵpipe(7, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵproperty("formGroup", ctx_r1.forgotFrm2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r1.messageForgotSuccess);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.messageForgotSuccess);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 4, "button.back"), " ");
} }
var ForgotPasswordComponent = /** @class */ (function () {
    function ForgotPasswordComponent(translate, fb, authenticateService, router, utils, messageService) {
        this.translate = translate;
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.router = router;
        this.utils = utils;
        this.messageService = messageService;
        this.forgotFrm = new forms_1.FormGroup({});
        this.forgotFrm2 = new forms_1.FormGroup({});
        this.selectedTeamOld = {};
        this.msgsSuccess = [];
    }
    Object.defineProperty(ForgotPasswordComponent.prototype, "userName", {
        get: function () {
            return this.forgotFrm.get('userName');
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(ForgotPasswordComponent.prototype, "password", {
        get: function () {
            return this.forgotFrm2.get('password');
        },
        enumerable: false,
        configurable: true
    });
    ForgotPasswordComponent.prototype.ngOnInit = function () {
        this.forgotFrm = this.fb.group({
            userName: ['', [forms_1.Validators.pattern(constant_module_1.Constant.EMAIL_PATTERN)]]
        });
        this.forgotFrm2 = this.fb.group({
            selectedTeam: []
        });
        this.forgotStep1 = true;
        this.forgotStep2 = false;
        this.messageForgotSuccess = false;
        this.onChanges();
    };
    ForgotPasswordComponent.prototype.onChanges = function () {
        var _this = this;
        this.selectedTeamOld.team_id = null;
        this.forgotFrm2.valueChanges.subscribe(function (val) {
            if (val && val.selectedTeam) {
                if (_this.selectedTeamOld.team_id !== val.selectedTeam.team_id) {
                    _this.mgsLockout = undefined;
                    _this.messageService.clear();
                }
                _this.selectedTeamOld = val.selectedTeam;
            }
        });
    };
    ForgotPasswordComponent.prototype.doForgotStep1 = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submitting = true;
        this.authenticateService.getUserTeams(this.userName.value).subscribe(function (res) {
            if (res.status === 200) {
                _this.user_team = res;
                _this.forgotStep1 = false;
                _this.forgotStep2 = true;
                if (_this.user_team && _this.user_team["data"] && _this.user_team["data"].length === 1) {
                    _this.doForgotPassword();
                }
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
                _this.submitting = false;
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    ForgotPasswordComponent.prototype.doForgotPassword = function () {
        var _this = this;
        this.submitting = true;
        var params = {
            team_id: '',
            email: this.forgotFrm.value.userName
        };
        if (this.user_team && this.user_team["data"] && this.user_team["data"].length > 1) {
            if (!this.forgotFrm2.value.selectedTeam
                || !this.forgotFrm2.value.selectedTeam.team_id) {
                this.messageService.clear('alert');
                this.messageService.add({
                    key: 'alert',
                    severity: 'error',
                    detail: this.utils.translate('errors.error_choose_team_reset_password')
                });
                this.submitting = false;
                return;
            }
            else {
                params.team_id = this.forgotFrm2.value.selectedTeam.team_id;
            }
        }
        else {
            params.team_id = this.user_team["data"][0].team_id;
        }
        this.authenticateService.forgotPasswordRequest(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageForgotSuccess = true;
                _this.msgsSuccess.push({
                    severity: 'success',
                    detail: _this.utils.translate('login.forgot_success_mgs')
                });
            }
            else {
                if (res.status === 112) {
                    _this.mgsLockout = {
                        message: _this.utils.translate('sever_errors.112'),
                        severity: "error"
                    };
                }
                else {
                    _this.messageService.add({
                        key: 'toast',
                        severity: 'error',
                        detail: _this.utils.translate('sever_errors.' + res.status)
                    });
                }
            }
            _this.submitting = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    ForgotPasswordComponent.prototype.doBack = function () {
        this.router.navigate(['sign-in']);
    };
    ;
    ForgotPasswordComponent.ɵfac = function ForgotPasswordComponent_Factory(t) { return new (t || ForgotPasswordComponent)(i0.ɵɵdirectiveInject(i1.TranslateService), i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(i3.AuthenticateService), i0.ɵɵdirectiveInject(i4.Router), i0.ɵɵdirectiveInject(i5.UtilsService), i0.ɵɵdirectiveInject(i6.MessageService)); };
    ForgotPasswordComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ForgotPasswordComponent, selectors: [["app-forgot-password"]], decls: 2, vars: 2, consts: [[3, "formGroup", "ngSubmit", 4, "ngIf"], ["name", "loginForm2", 3, "formGroup", "ngSubmit", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "p-pt-3"], [1, "p-col"], [1, "p-inputgroup"], [1, "p-inputgroup-addon"], [1, "pi", "pi-envelope"], ["type", "text", "maxlength", "64", "required", "", "formControlName", "userName", "pInputText", "", 3, "appAutofocus", "placeholder"], ["class", "p-invalid", 4, "ngIf"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-col-12", "p-button-raised", "p-button-primary", "p-text-capitalize", 3, "label"], [1, "p-field", "p-formgroup-inline"], [1, "p-col", "p-text-left"], [1, "cs-pointer", "p-text-capitalize", 3, "click"], [1, "p-invalid"], ["name", "loginForm2", 3, "formGroup", "ngSubmit"], ["class", "p-pt-3", 4, "ngIf"], [1, "p-col", "p-md-5", "p-text-left"], ["styleClass", "display-contents", 3, "severity", 4, "ngIf"], ["key", "alert", 3, "closable", 4, "ngIf"], ["class", "p-col", 4, "ngIf"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-col-12", "p-button-raised", "p-button-primary", "p-text-capitalize", 3, "disabled", "label"], ["styleClass", "display-contents", 3, "severity"], ["pTemplate", ""], [3, "innerHtml"], ["key", "alert", 3, "closable"], [1, "p-card"], [1, "p-card-title", "p-text-left"], [1, ""], ["class", "p-card-content", 4, "ngIf"], [1, "p-card-content"], ["class", "p-field-radiobutton", 4, "ngFor", "ngForOf"], [1, "p-field-radiobutton"], ["name", "selectedTeam", "formControlName", "selectedTeam", 3, "inputId", "value", "ngModel", "ngModelChange"], [1, "cs-pointer", 3, "for"], ["styleClass", "custombar1"], ["class", "p-field-radiobutton", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "p-field-radiobutton", 3, "ngClass"], [3, "value", "closable", "valueChange"]], template: function ForgotPasswordComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵtemplate(0, ForgotPasswordComponent_form_0_Template, 17, 12, "form", 0);
            i0.ɵɵtemplate(1, ForgotPasswordComponent_form_1_Template, 8, 6, "form", 1);
        } if (rf & 2) {
            i0.ɵɵproperty("ngIf", ctx.forgotStep1);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.forgotStep2);
        } }, directives: [i7.NgIf, i2.ɵangular_packages_forms_forms_y, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.DefaultValueAccessor, i2.MaxLengthValidator, i2.RequiredValidator, i2.NgControlStatus, i2.FormControlName, i8.InputText, i9.AutofocusDirective, i10.ButtonDirective, i11.Ripple, i12.Messages, i6.PrimeTemplate, i7.NgForOf, i13.RadioButton, i14.ScrollPanel, i7.NgClass], pipes: [i1.TranslatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2F1dGhlbnRpY2F0aW9uL2ZvcmdvdC1wYXNzd29yZC9mb3Jnb3QtcGFzc3dvcmQuY29tcG9uZW50LnNjc3MifQ== */"] });
    return ForgotPasswordComponent;
}());
exports.ForgotPasswordComponent = ForgotPasswordComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ForgotPasswordComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-forgot-password',
                templateUrl: './forgot-password.component.html',
                styleUrls: ['./forgot-password.component.scss']
            }]
    }], function () { return [{ type: i1.TranslateService }, { type: i2.FormBuilder }, { type: i3.AuthenticateService }, { type: i4.Router }, { type: i5.UtilsService }, { type: i6.MessageService }]; }, null); })();


/***/ }),

/***/ "./src/app/authentication/logo/logo.component.ts":
/*!*******************************************************!*\
  !*** ./src/app/authentication/logo/logo.component.ts ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.LogoComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var LogoComponent = /** @class */ (function () {
    function LogoComponent() {
    }
    LogoComponent.prototype.ngOnInit = function () {
    };
    LogoComponent.ɵfac = function LogoComponent_Factory(t) { return new (t || LogoComponent)(); };
    LogoComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LogoComponent, selectors: [["app-logo"]], decls: 3, vars: 0, consts: [[1, "p-grid", "p-text-center"], [1, "p-col-12"], ["alt", "main-logo", "height", "auto", "width", "200", "src", "assets/images/689Cloud-large.png"]], template: function LogoComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelement(2, "img", 2);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } }, styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2F1dGhlbnRpY2F0aW9uL2xvZ28vbG9nby5jb21wb25lbnQuc2NzcyJ9 */"] });
    return LogoComponent;
}());
exports.LogoComponent = LogoComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(LogoComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-logo',
                templateUrl: './logo.component.html',
                styleUrls: ['./logo.component.scss']
            }]
    }], function () { return []; }, null); })();


/***/ }),

/***/ "./src/app/authentication/reset-password/reset-password.component.ts":
/*!***************************************************************************!*\
  !*** ./src/app/authentication/reset-password/reset-password.component.ts ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ResetPasswordComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var validator_module_1 = __webpack_require__(/*! ../../common/validator.module */ "./src/app/common/validator.module.ts");
var constant_module_1 = __webpack_require__(/*! ../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! src/app/shared/services/team-setting.service */ "./src/app/shared/services/team-setting.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! src/app/shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/aes.service */ "./src/app/shared/services/aes.service.ts"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
function ResetPasswordComponent_div_8_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function ResetPasswordComponent_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r3.notificationError, " ");
} }
function ResetPasswordComponent_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 14);
    i0.ɵɵtemplate(1, ResetPasswordComponent_div_8_div_1_Template, 3, 3, "div", 15);
    i0.ɵɵtemplate(2, ResetPasswordComponent_div_8_div_2_Template, 2, 1, "div", 15);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.newPassword.errors == null ? null : ctx_r0.newPassword.errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.newPassword.errors == null ? null : ctx_r0.newPassword.errors.pattern);
} }
function ResetPasswordComponent_div_15_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function ResetPasswordComponent_div_15_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.password_not_match"), " ");
} }
function ResetPasswordComponent_div_15_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 14);
    i0.ɵɵtemplate(1, ResetPasswordComponent_div_15_div_1_Template, 3, 3, "div", 15);
    i0.ɵɵtemplate(2, ResetPasswordComponent_div_15_div_2_Template, 3, 3, "div", 15);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.confirmPassword.errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.confirmPassword.errors.confirmedValidator);
} }
var ResetPasswordComponent = /** @class */ (function () {
    function ResetPasswordComponent(translate, fb, authenticateService, teamSettingService, router, utils, activatedRoute, cookieService, encryptionService, messageService) {
        this.translate = translate;
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.teamSettingService = teamSettingService;
        this.router = router;
        this.utils = utils;
        this.activatedRoute = activatedRoute;
        this.cookieService = cookieService;
        this.encryptionService = encryptionService;
        this.messageService = messageService;
        this.changePassFrm = new forms_1.FormGroup({});
        this.submitting = false;
        this.resetKey = '';
    }
    Object.defineProperty(ResetPasswordComponent.prototype, "frm", {
        get: function () {
            return this.changePassFrm.controls;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(ResetPasswordComponent.prototype, "newPassword", {
        get: function () {
            return this.changePassFrm.get('newPassword');
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(ResetPasswordComponent.prototype, "confirmPassword", {
        get: function () {
            return this.changePassFrm.get('confirmPassword');
        },
        enumerable: false,
        configurable: true
    });
    ResetPasswordComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.resetKey = this.activatedRoute.snapshot.paramMap.get('reset_key');
        if (this.resetKey == '') {
            this.router.navigate(['/sign-in']);
        }
        var params = {
            auth_token: this.resetKey
        };
        this.teamSettingService.getPasswordPolicySetting(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.passwordPolicies = JSON.parse(res.data.password_setting);
                _this.pw_max_length = _this.passwordPolicies.max;
                _this.passwordPattern = new RegExp(_this.passwordPolicies.regex);
                _this.utils.getPasswordPolicyError(_this.passwordPolicies, function (response) {
                    _this.notificationError = response;
                });
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
                _this.submitting = false;
                if (res.status === 401) {
                    _this.router.navigate(['/sign-in']);
                }
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
        this.changePassFrm = this.fb.group({
            newPassword: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(this.passwordPattern)
                ]],
            confirmPassword: ['', [forms_1.Validators.required]],
        }, {
            validator: validator_module_1.ConfirmedValidator('newPassword', 'confirmPassword')
        });
    };
    ResetPasswordComponent.prototype.doResetPassword = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submitting = true;
        var params = {
            'new_password': this.newPassword.value,
            'confirm_password': this.confirmPassword.value,
            'auth_token': this.resetKey
        };
        this.authenticateService.resetPassword(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_pass_success')
                });
                var email = _this.activatedRoute.snapshot.queryParamMap.get('hash');
                var keepMe = _this.activatedRoute.snapshot.queryParamMap.get('keep');
                var teamId = _this.activatedRoute.snapshot.queryParamMap.get('team');
                if (email && teamId) {
                    var params_1 = {
                        team_id: teamId,
                        email: _this.encryptionService.decode(email),
                        password: _this.newPassword.value,
                        keep_login: keepMe
                    };
                    _this.authenticateService.login(params_1).subscribe(function (res) {
                        if (res.status === 200) {
                            if (res.data.role_id === constant_module_1.SystemRole.TeamAdmin) {
                                _this.cookieService.set('a_t', res.data.session_id);
                                _this.router.navigate(['/member/list']);
                            }
                            else {
                                _this.router.navigate(['/sign-in']);
                            }
                        }
                        else {
                            _this.messageService.add({
                                key: 'toast',
                                severity: 'error',
                                detail: _this.utils.translate('errors.invalid_credentials')
                            });
                        }
                        _this.submitting = false;
                    }, function (err) {
                        _this.messageService.add({
                            key: 'toast',
                            severity: 'error',
                            detail: _this.utils.translate('sever_errors.' + err.status)
                        });
                        _this.submitting = false;
                    });
                }
                else {
                    _this.router.navigate(['/sign-in']);
                }
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
                _this.submitting = false;
                if (res.status === 102) {
                    _this.router.navigate(['/sign-in']);
                }
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    ResetPasswordComponent.prototype.doBack = function () {
        this.router.navigate(['sign-in']);
    };
    ;
    ResetPasswordComponent.ɵfac = function ResetPasswordComponent_Factory(t) { return new (t || ResetPasswordComponent)(i0.ɵɵdirectiveInject(i1.TranslateService), i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(i3.AuthenticateService), i0.ɵɵdirectiveInject(i4.TeamSettingService), i0.ɵɵdirectiveInject(i5.Router), i0.ɵɵdirectiveInject(i6.UtilsService), i0.ɵɵdirectiveInject(i5.ActivatedRoute), i0.ɵɵdirectiveInject(i7.CookieService), i0.ɵɵdirectiveInject(i8.EncryptionService), i0.ɵɵdirectiveInject(i9.MessageService)); };
    ResetPasswordComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ResetPasswordComponent, selectors: [["app-reset-password"]], decls: 24, vars: 21, consts: [["name", "changePassForm", 3, "formGroup", "ngSubmit"], [1, "p-pt-3"], [1, "p-col"], [1, "p-inputgroup"], [1, "p-inputgroup-addon"], [1, "pi", "pi-lock"], ["type", "password", "formControlName", "newPassword", "required", "", "pInputText", "", 3, "maxlength", "ngClass", "pattern", "placeholder"], ["class", "p-invalid", 4, "ngIf"], [1, "pi", "pi-clone"], ["type", "password", "formControlName", "confirmPassword", "required", "", "pInputText", "", 3, "maxlength", "ngClass", "placeholder"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-col-12", "p-button-raised", "p-button-primary", 3, "disabled", "label"], [1, "p-field", "p-formgroup-inline"], [1, "p-col", "p-md-5", "p-text-left"], [1, "cs-pointer", "p-text-capitalize", 3, "click"], [1, "p-invalid"], [4, "ngIf"]], template: function ResetPasswordComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "form", 0);
            i0.ɵɵlistener("ngSubmit", function ResetPasswordComponent_Template_form_ngSubmit_0_listener() { return ctx.doResetPassword(ctx.changePassFrm.valid); });
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "div", 3);
            i0.ɵɵelementStart(4, "span", 4);
            i0.ɵɵelement(5, "i", 5);
            i0.ɵɵelementEnd();
            i0.ɵɵelement(6, "input", 6);
            i0.ɵɵpipe(7, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(8, ResetPasswordComponent_div_8_Template, 3, 2, "div", 7);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(9, "div", 2);
            i0.ɵɵelementStart(10, "div", 3);
            i0.ɵɵelementStart(11, "span", 4);
            i0.ɵɵelement(12, "i", 8);
            i0.ɵɵelementEnd();
            i0.ɵɵelement(13, "input", 9);
            i0.ɵɵpipe(14, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(15, ResetPasswordComponent_div_15_Template, 3, 2, "div", 7);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(16, "div", 2);
            i0.ɵɵelement(17, "button", 10);
            i0.ɵɵpipe(18, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(19, "div", 11);
            i0.ɵɵelementStart(20, "div", 12);
            i0.ɵɵelementStart(21, "span", 13);
            i0.ɵɵlistener("click", function ResetPasswordComponent_Template_span_click_21_listener() { return ctx.doBack(); });
            i0.ɵɵtext(22);
            i0.ɵɵpipe(23, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵproperty("formGroup", ctx.changePassFrm);
            i0.ɵɵadvance(6);
            i0.ɵɵpropertyInterpolate("maxlength", ctx.pw_max_length);
            i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(7, 13, "login.new_password"));
            i0.ɵɵproperty("ngClass", (ctx.newPassword.touched || ctx.newPassword.dirty) && ctx.newPassword.invalid ? "p-invalid" : "")("pattern", ctx.passwordPattern);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", (ctx.newPassword.touched || ctx.newPassword.dirty) && (ctx.newPassword.invalid || (ctx.newPassword.errors == null ? null : ctx.newPassword.errors.pattern)));
            i0.ɵɵadvance(5);
            i0.ɵɵpropertyInterpolate("maxlength", ctx.pw_max_length);
            i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(14, 15, "login.confirm_password"));
            i0.ɵɵproperty("ngClass", (ctx.confirmPassword.touched || ctx.confirmPassword.dirty) && ctx.confirmPassword.invalid ? "p-invalid" : "");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", (ctx.confirmPassword.touched || ctx.confirmPassword.dirty) && ctx.confirmPassword.invalid);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(18, 17, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.changePassFrm.valid || ctx.submitting);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 19, "button.back"), " ");
        } }, directives: [i2.ɵangular_packages_forms_forms_y, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName, i2.RequiredValidator, i10.InputText, i2.MaxLengthValidator, i11.NgClass, i2.PatternValidator, i11.NgIf, i12.ButtonDirective, i13.Ripple], pipes: [i1.TranslatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2F1dGhlbnRpY2F0aW9uL3Jlc2V0LXBhc3N3b3JkL3Jlc2V0LXBhc3N3b3JkLmNvbXBvbmVudC5zY3NzIn0= */"] });
    return ResetPasswordComponent;
}());
exports.ResetPasswordComponent = ResetPasswordComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ResetPasswordComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-reset-password',
                templateUrl: './reset-password.component.html',
                styleUrls: ['./reset-password.component.scss']
            }]
    }], function () { return [{ type: i1.TranslateService }, { type: i2.FormBuilder }, { type: i3.AuthenticateService }, { type: i4.TeamSettingService }, { type: i5.Router }, { type: i6.UtilsService }, { type: i5.ActivatedRoute }, { type: i7.CookieService }, { type: i8.EncryptionService }, { type: i9.MessageService }]; }, null); })();


/***/ }),

/***/ "./src/app/authentication/sign-in/sign-in.component.ts":
/*!*************************************************************!*\
  !*** ./src/app/authentication/sign-in/sign-in.component.ts ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.SignInComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var constant_module_1 = __webpack_require__(/*! ../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/aes.service */ "./src/app/shared/services/aes.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! ../../directive/autofocus.directive */ "./src/app/directive/autofocus.directive.ts"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/messages */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-messages.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! primeng/radiobutton */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-radiobutton.js"));
var i15 = tslib_1.__importStar(__webpack_require__(/*! primeng/scrollpanel */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-scrollpanel.js"));
var i16 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var i17 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function SignInComponent_form_0_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 15);
    i0.ɵɵelementStart(1, "small");
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "errors.invalid_email"));
} }
function SignInComponent_form_0_Template(rf, ctx) { if (rf & 1) {
    var _r6 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "form", 6);
    i0.ɵɵlistener("ngSubmit", function SignInComponent_form_0_Template_form_ngSubmit_0_listener() { i0.ɵɵrestoreView(_r6); var ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.doLoginStep1(ctx_r5.loginFrm.valid); });
    i0.ɵɵelementStart(1, "div", 7);
    i0.ɵɵelementStart(2, "div", 8);
    i0.ɵɵelementStart(3, "div", 9);
    i0.ɵɵelementStart(4, "span", 10);
    i0.ɵɵelement(5, "i", 11);
    i0.ɵɵelementEnd();
    i0.ɵɵelement(6, "input", 12);
    i0.ɵɵpipe(7, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(8, SignInComponent_form_0_div_8_Template, 4, 3, "div", 13);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "div", 8);
    i0.ɵɵelement(10, "button", 14);
    i0.ɵɵpipe(11, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("formGroup", ctx_r0.loginFrm);
    i0.ɵɵadvance(6);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(7, 6, "login.email"));
    i0.ɵɵproperty("appAutofocus", ctx_r0.loginStep1);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", (ctx_r0.userName.touched || ctx_r0.userName.dirty) && (ctx_r0.userName.errors == null ? null : ctx_r0.userName.errors.pattern));
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(11, 8, "button.next"));
    i0.ɵɵproperty("disabled", ctx_r0.submitting);
} }
function SignInComponent_form_1_p_messages_3_ng_template_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "div", 29);
} if (rf & 2) {
    var ctx_r12 = i0.ɵɵnextContext(3);
    i0.ɵɵproperty("innerHtml", ctx_r12.mgsLockout.message, i0.ɵɵsanitizeHtml);
} }
function SignInComponent_form_1_p_messages_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "p-messages", 27);
    i0.ɵɵtemplate(1, SignInComponent_form_1_p_messages_3_ng_template_1_Template, 1, 1, "ng-template", 28);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r7 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("severity", ctx_r7.mgsLockout.severity);
} }
function SignInComponent_form_1_p_messages_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "p-messages", 30);
} if (rf & 2) {
    i0.ɵɵproperty("closable", false);
} }
function SignInComponent_form_1_div_5_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 36);
    i0.ɵɵelement(1, "p-radioButton", 37);
    i0.ɵɵelementStart(2, "label", 38);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var team_r16 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("inputId", team_r16.team_id)("value", team_r16);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("for", team_r16.team_id);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", team_r16.team_name, " ");
} }
function SignInComponent_form_1_div_5_div_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 34);
    i0.ɵɵtemplate(1, SignInComponent_form_1_div_5_div_6_div_1_Template, 4, 4, "div", 35);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r13 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r13.user_team.data);
} }
function SignInComponent_form_1_div_5_div_7_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 41);
    i0.ɵɵelement(1, "p-radioButton", 37);
    i0.ɵɵelementStart(2, "label", 38);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var team_r18 = ctx.$implicit;
    var i_r19 = ctx.index;
    var ctx_r17 = i0.ɵɵnextContext(4);
    i0.ɵɵproperty("ngClass", i_r19 === ctx_r17.user_team.data.length - 1 ? "p-pb-4" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("inputId", team_r18.team_id)("value", team_r18);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("for", team_r18.team_id);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", team_r18.team_name, " ");
} }
var _c0 = function () { return { width: "100%", height: "115px" }; };
function SignInComponent_form_1_div_5_div_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 34);
    i0.ɵɵelementStart(1, "p-scrollPanel", 39);
    i0.ɵɵtemplate(2, SignInComponent_form_1_div_5_div_7_div_2_Template, 4, 5, "div", 40);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r14 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(3, _c0));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r14.user_team.data);
} }
function SignInComponent_form_1_div_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 8);
    i0.ɵɵelementStart(1, "div", 31);
    i0.ɵɵelementStart(2, "div", 32);
    i0.ɵɵelementStart(3, "span");
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(6, SignInComponent_form_1_div_5_div_6_Template, 2, 1, "div", 33);
    i0.ɵɵtemplate(7, SignInComponent_form_1_div_5_div_7_Template, 3, 4, "div", 33);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r9 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 3, "login.choose_team"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r9.user_team.data.length <= 4);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r9.user_team.data.length > 4);
} }
function SignInComponent_form_1_div_12_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "small");
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "errors.required"));
} }
function SignInComponent_form_1_div_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 15);
    i0.ɵɵtemplate(1, SignInComponent_form_1_div_12_div_1_Template, 4, 3, "div", 42);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r10 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r10.password.errors == null ? null : ctx_r10.password.errors.required);
} }
function SignInComponent_form_1_div_21_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 43);
    i0.ɵɵelementStart(1, "div", 44);
    i0.ɵɵelement(2, "p-checkbox", 45);
    i0.ɵɵelementStart(3, "label", 46);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r11 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("value", ctx_r11.keepMe)("inputId", ctx_r11.keepMe);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("for", ctx_r11.keepMe);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, "login.keep_me_login"), " ");
} }
function SignInComponent_form_1_Template(rf, ctx) { if (rf & 1) {
    var _r22 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "form", 16);
    i0.ɵɵlistener("ngSubmit", function SignInComponent_form_1_Template_form_ngSubmit_0_listener() { i0.ɵɵrestoreView(_r22); var ctx_r21 = i0.ɵɵnextContext(); return ctx_r21.doLoginStep2(ctx_r21.loginFrm2.valid); });
    i0.ɵɵelementStart(1, "div", 7);
    i0.ɵɵelementStart(2, "div", 8);
    i0.ɵɵtemplate(3, SignInComponent_form_1_p_messages_3_Template, 2, 1, "p-messages", 17);
    i0.ɵɵtemplate(4, SignInComponent_form_1_p_messages_4_Template, 1, 1, "p-messages", 18);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(5, SignInComponent_form_1_div_5_Template, 8, 5, "div", 19);
    i0.ɵɵelementStart(6, "div", 8);
    i0.ɵɵelementStart(7, "div", 9);
    i0.ɵɵelementStart(8, "span", 10);
    i0.ɵɵelement(9, "i", 20);
    i0.ɵɵelementEnd();
    i0.ɵɵelement(10, "input", 21);
    i0.ɵɵpipe(11, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(12, SignInComponent_form_1_div_12_Template, 2, 1, "div", 13);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(13, "div", 8);
    i0.ɵɵelement(14, "button", 22);
    i0.ɵɵpipe(15, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "div", 23);
    i0.ɵɵelementStart(17, "div", 24);
    i0.ɵɵelementStart(18, "span", 25);
    i0.ɵɵlistener("click", function SignInComponent_form_1_Template_span_click_18_listener() { i0.ɵɵrestoreView(_r22); var ctx_r23 = i0.ɵɵnextContext(); return ctx_r23.backLoginStep1(); });
    i0.ɵɵtext(19);
    i0.ɵɵpipe(20, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(21, SignInComponent_form_1_div_21_Template, 6, 6, "div", 26);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵproperty("formGroup", ctx_r1.loginFrm2);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r1.mgsLockout);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r1.loginFrm2.controls["selectedTeam"].value);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.user_team && ctx_r1.user_team.data && ctx_r1.user_team.data.length > 1);
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(11, 12, "login.password"));
    i0.ɵɵproperty("appAutofocus", ctx_r1.loginStep2)("ngClass", (ctx_r1.password.touched || ctx_r1.password.dirty) && ctx_r1.password.invalid ? "p-invalid" : "");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", (ctx_r1.password.touched || ctx_r1.password.dirty) && ctx_r1.password.invalid);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(15, 14, "button.login"));
    i0.ɵɵproperty("disabled", !ctx_r1.loginFrm2.valid || ctx_r1.submitting);
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 16, "button.back"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", !ctx_r1.loginFrm2.controls["selectedTeam"].value || ctx_r1.loginFrm2.controls["selectedTeam"].value.session_age === 0);
} }
function SignInComponent_form_2_Template(rf, ctx) { if (rf & 1) {
    var _r25 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "form", 47);
    i0.ɵɵlistener("ngSubmit", function SignInComponent_form_2_Template_form_ngSubmit_0_listener() { i0.ɵɵrestoreView(_r25); var ctx_r24 = i0.ɵɵnextContext(); return ctx_r24.doLoginStep3(ctx_r24.loginFrm3.valid); });
    i0.ɵɵelementStart(1, "div", 7);
    i0.ɵɵelementStart(2, "div", 8);
    i0.ɵɵelementStart(3, "div", 9);
    i0.ɵɵelementStart(4, "span", 10);
    i0.ɵɵelement(5, "i", 48);
    i0.ɵɵelementEnd();
    i0.ɵɵelement(6, "input", 49);
    i0.ɵɵpipe(7, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "div", 8);
    i0.ɵɵelement(9, "button", 50);
    i0.ɵɵpipe(10, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "div", 23);
    i0.ɵɵelementStart(12, "div", 51);
    i0.ɵɵelementStart(13, "span", 25);
    i0.ɵɵlistener("click", function SignInComponent_form_2_Template_span_click_13_listener() { i0.ɵɵrestoreView(_r25); var ctx_r26 = i0.ɵɵnextContext(); return ctx_r26.backLoginStep2(); });
    i0.ɵɵtext(14);
    i0.ɵɵpipe(15, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵproperty("formGroup", ctx_r2.loginFrm3);
    i0.ɵɵadvance(6);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(7, 6, "login.auth_code"));
    i0.ɵɵproperty("appAutofocus", ctx_r2.loginStep3);
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(10, 8, "login.verify_auth_code"));
    i0.ɵɵproperty("disabled", ctx_r2.submitting || !ctx_r2.loginFrm3.valid);
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 10, "button.back"), " ");
} }
function SignInComponent_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 52);
    i0.ɵɵelementStart(1, "div", 53);
    i0.ɵɵelement(2, "div");
    i0.ɵɵelement(3, "div");
    i0.ɵɵelement(4, "div");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} }
var SignInComponent = /** @class */ (function () {
    function SignInComponent(fb, authenticateService, encryptionService, router, activatedRoute, messageService, utils, cookieService) {
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.encryptionService = encryptionService;
        this.router = router;
        this.activatedRoute = activatedRoute;
        this.messageService = messageService;
        this.utils = utils;
        this.cookieService = cookieService;
        this.loginFrm = new forms_1.FormGroup({});
        this.loginFrm2 = new forms_1.FormGroup({});
        this.loginFrm3 = new forms_1.FormGroup({});
        this.keepMe = false;
        this.selectedTeamOld = {};
        this.mgsHtml = [];
    }
    Object.defineProperty(SignInComponent.prototype, "userName", {
        get: function () {
            return this.loginFrm.get('userName');
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(SignInComponent.prototype, "password", {
        get: function () {
            return this.loginFrm2.get('password');
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(SignInComponent.prototype, "authCode", {
        get: function () {
            return this.loginFrm3.get('authCode');
        },
        enumerable: false,
        configurable: true
    });
    SignInComponent.prototype.ngOnInit = function () {
        var _this = this;
        // redirect
        var token = this.activatedRoute.snapshot.queryParamMap.get('tok');
        if (token) {
            this.cookieService.set('a_t', token);
            this.authenticateService.getAuthInfo().subscribe(function (res) {
                if (res && res.status === 200) {
                    _this.authenticateService.setAuthUser(res.data);
                    _this.router.navigate(['/member/list']);
                }
                return;
            });
        }
        else {
            if (this.cookieService.get('a_t')) {
                this.router.navigate(['/member/list']);
            }
        }
        this.loginFrm = this.fb.group({
            userName: ['', [forms_1.Validators.pattern(constant_module_1.Constant.EMAIL_PATTERN)]],
        });
        this.loginFrm2 = this.fb.group({
            password: ['', [forms_1.Validators.required]],
            keepMe: [],
            selectedTeam: [],
        });
        this.loginFrm3 = this.fb.group({
            authCode: ['', [forms_1.Validators.required]],
        });
        this.loginStep1 = true;
        this.loginStep2 = false;
        this.loginStep3 = false;
        this.onChanges();
    };
    SignInComponent.prototype.onChanges = function () {
        var _this = this;
        this.selectedTeamOld.team_id = null;
        this.loginFrm2.valueChanges.subscribe(function (val) {
            if (val && val.selectedTeam) {
                if (_this.selectedTeamOld.team_id !== val.selectedTeam.team_id) {
                    _this.stopCountDown();
                }
                _this.selectedTeamOld = val.selectedTeam;
            }
        });
    };
    SignInComponent.prototype.doLoginStep1 = function (valid) {
        var _this = this;
        if (!valid || this.userName.value === '') {
            return;
        }
        this.submitting = true;
        this.authenticateService.getUserTeams(this.userName.value).subscribe(function (res) {
            if (res.status === 200) {
                _this.user_team = res;
                _this.loginStep1 = false;
                _this.loginStep2 = true;
                _this.loginStep3 = false;
                _this.submitting = false;
            }
            else {
                if (res.status === 313) {
                    _this.messageService.add({
                        key: 'toast',
                        severity: 'error',
                        detail: _this.utils.translate('errors.invalid_credentials'),
                    });
                }
                else {
                    _this.messageService.add({
                        key: 'toast',
                        severity: 'error',
                        detail: _this.utils.translate('sever_errors.' + res.status),
                    });
                }
                _this.submitting = false;
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status),
            });
            _this.submitting = false;
        });
    };
    SignInComponent.prototype.doLoginStep2 = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submitting = true;
        var params = {
            team_id: '',
            email: this.loginFrm.value.userName,
            password: this.loginFrm2.value.password,
            keep_login: this.loginFrm2.value.keepMe,
        };
        if (this.user_team &&
            this.user_team['data'] &&
            this.user_team['data'].length > 1) {
            if (!this.loginFrm2.value.selectedTeam ||
                !this.loginFrm2.value.selectedTeam.team_id) {
                this.messageService.clear();
                this.messageService.add({
                    key: 'alert',
                    severity: 'error',
                    detail: this.utils.translate('errors.error_choose_team'),
                });
                this.submitting = false;
                return;
            }
            else {
                params.team_id = this.loginFrm2.value.selectedTeam.team_id;
            }
        }
        else {
            params.team_id = this.user_team['data'][0].team_id;
        }
        this.authenticateService.login(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.stopCountDown();
                if (res.data.type === constant_module_1.SessionType.PRIMARY_SESSION) {
                    if (!res.data.session_id && res.data.account_lockout) {
                        // account lockout
                        _this.counter = res.data.time_remain;
                        _this.doCountDown();
                    }
                    else {
                        // login success
                        // || res.data.role_id === SystemRole.Manager
                        //   || res.data.role_id === SystemRole.Member
                        if (res.data.role_id === constant_module_1.SystemRole.TeamAdmin) {
                            _this.cookieService.set('a_t', res.data.session_id);
                            if (_this.authenticateService.redirectUrl) {
                                _this.router.navigate([_this.authenticateService.redirectUrl]);
                                _this.authenticateService.redirectUrl = null;
                            }
                            else {
                                _this.router.navigate(['/member/list']);
                            }
                        }
                        else {
                            _this.messageService.add({
                                key: 'toast',
                                severity: 'error',
                                detail: _this.utils.translate('errors.err_access'),
                            });
                        }
                    }
                }
                else if (res.data.type === constant_module_1.SessionType.PASSWORD_POLICY_SESSION) {
                    // check first time login
                    if (res.data.password_expire === true) {
                        // password expire
                        _this.messageService.add({
                            key: 'toast',
                            severity: 'error',
                            detail: _this.utils.translate('errors.password_expiry'),
                        });
                    }
                    else {
                        // check first time login
                        _this.messageService.add({
                            key: 'toast',
                            severity: 'error',
                            detail: _this.utils.translate('errors.first_time_login'),
                        });
                    }
                    _this.router.navigate(["/reset-pass/" + res.data.session_id], {
                        queryParams: {
                            hash: _this.encryptionService.encode(_this.loginFrm.value.userName),
                            keep: params.keep_login,
                            team: params.team_id,
                        },
                    });
                }
                else if (res.data.type === constant_module_1.SessionType.OTP_SESSION) {
                    // check 2-FA
                    _this.otpToken = res.data.session_id;
                    _this.loginStep1 = false;
                    _this.loginStep2 = false;
                    _this.loginStep3 = true;
                }
                else {
                    // TODO: route.navigate not support this team page
                }
                _this.submitting = false;
            }
            else {
                if (res.status === 100) {
                    _this.messageService.add({
                        key: 'toast',
                        severity: 'error',
                        detail: _this.utils.translate('errors.invalid_credentials'),
                    });
                    var numPassParams = {
                        email: params.email,
                        team_id: params.team_id,
                    };
                    _this.authenticateService
                        .getNumOfPasswordRemain(numPassParams)
                        .subscribe(function (response) {
                        if (response.status === 200) {
                            if (response.data.number_remain) {
                                _this.mgsLockout = {
                                    message: _this.utils.translateWithParams('errors.password_remain', {
                                        remain: response.data.number_remain,
                                        threshold: response.data.threshold,
                                    }),
                                    severity: 'warn',
                                };
                            }
                        }
                        _this.submitting = false;
                    });
                }
                else {
                    if (res.status === 112) {
                        _this.mgsLockout = {
                            message: _this.utils.translate('sever_errors.112'),
                            severity: 'error',
                        };
                        if (_this.counter == 0) {
                            _this.stopCountDown();
                        }
                    }
                    else {
                        _this.messageService.add({
                            key: 'toast',
                            severity: 'error',
                            detail: _this.utils.translate('sever_errors.' + res.status),
                        });
                    }
                    _this.submitting = false;
                }
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status),
            });
            _this.submitting = false;
        });
    };
    SignInComponent.prototype.doLoginStep3 = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        if (this.loginFrm3.value.authCode.trim() === '') {
            this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: this.utils.translate('sever_errors.102'),
            });
            return;
        }
        this.submitting = true;
        var params = {
            auth_code: this.loginFrm3.value.authCode,
            auth_token: this.otpToken,
            keep_login: this.loginFrm2.value.keepMe
                ? this.loginFrm2.value.keepMe
                : false,
        };
        this.authenticateService.loginOTP(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.cookieService.set('a_t', res.data.session_id);
                // redirect path
                if (_this.authenticateService.redirectUrl) {
                    _this.router.navigate([_this.authenticateService.redirectUrl]);
                    _this.authenticateService.redirectUrl = null;
                }
                else {
                    _this.router.navigate(['/member/list']);
                }
                _this.submitting = false;
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status),
                });
                _this.submitting = false;
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status),
            });
            _this.submitting = false;
        });
    };
    SignInComponent.prototype.backLoginStep1 = function () {
        //clean data
        this.loginStep1 = true;
        this.loginStep2 = false;
        this.loginStep3 = false;
        this.submitting = false;
        this.loginFrm2.controls['password'].setValue('');
        this.loginFrm2.controls['keepMe'].setValue(false);
        this.loginFrm2.controls['selectedTeam'].setValue(undefined);
        this.stopCountDown();
    };
    SignInComponent.prototype.backLoginStep2 = function () {
        // clean data
        this.loginStep1 = false;
        this.loginStep2 = true;
        this.loginStep3 = false;
        this.submitting = false;
        this.loginFrm2.controls['password'].setValue('');
        this.loginFrm3.controls['authCode'].setValue('');
        this.stopCountDown();
    };
    SignInComponent.prototype.doCountDown = function () {
        var _this = this;
        this.stopCountDown();
        this.countDown = setInterval(function () {
            _this.counter--;
            _this.mgsLockout = {
                message: _this.utils.translateWithParams('errors.account_lockout', {
                    duration: _this.utils.convertSecondToTime(_this.counter),
                }),
                severity: 'error',
            };
            _this.submitting = false;
            if (_this.counter == 0) {
                _this.stopCountDown();
            }
        }, 1000);
    };
    SignInComponent.prototype.stopCountDown = function () {
        clearInterval(this.countDown);
        this.mgsLockout = undefined;
        this.messageService.clear();
    };
    SignInComponent.ɵfac = function SignInComponent_Factory(t) { return new (t || SignInComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.AuthenticateService), i0.ɵɵdirectiveInject(i3.EncryptionService), i0.ɵɵdirectiveInject(i4.Router), i0.ɵɵdirectiveInject(i4.ActivatedRoute), i0.ɵɵdirectiveInject(i5.MessageService), i0.ɵɵdirectiveInject(i6.UtilsService), i0.ɵɵdirectiveInject(i7.CookieService)); };
    SignInComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SignInComponent, selectors: [["app-sign-in"]], decls: 9, vars: 7, consts: [[3, "formGroup", "ngSubmit", 4, "ngIf"], ["name", "loginForm2", 3, "formGroup", "ngSubmit", 4, "ngIf"], ["name", "loginForm3", 3, "formGroup", "ngSubmit", 4, "ngIf"], [1, "p-col-12", "p-text-center"], ["routerLink", "/forgot-pass", 1, "small"], ["class", "p-text-center", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "p-pt-3"], [1, "p-col"], [1, "p-inputgroup"], [1, "p-inputgroup-addon"], [1, "pi", "pi-envelope"], ["type", "text", "maxlength", "64", "formControlName", "userName", "pInputText", "", 3, "appAutofocus", "placeholder"], ["class", "p-invalid", 4, "ngIf"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-col-12", "p-button-raised", "p-button-primary", "p-text-capitalize", 3, "disabled", "label"], [1, "p-invalid"], ["name", "loginForm2", 3, "formGroup", "ngSubmit"], ["styleClass", "display-contents", 3, "severity", 4, "ngIf"], ["key", "alert", 3, "closable", 4, "ngIf"], ["class", "p-col", 4, "ngIf"], [1, "pi", "pi-lock"], ["type", "password", "maxlength", "64", "formControlName", "password", "required", "", "pInputText", "", 3, "appAutofocus", "ngClass", "placeholder"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-col-12", "p-button-raised", "p-button-primary", 3, "disabled", "label"], [1, "p-field", "p-formgroup-inline"], [1, "p-col", "p-md-5", "p-text-left"], [1, "cs-pointer", "p-text-capitalize", 3, "click"], ["class", "p-col p-md-7", 4, "ngIf"], ["styleClass", "display-contents", 3, "severity"], ["pTemplate", ""], [3, "innerHtml"], ["key", "alert", 3, "closable"], [1, "p-card"], [1, "p-card-title", "p-text-left"], ["class", "p-card-content", 4, "ngIf"], [1, "p-card-content"], ["class", "p-field-radiobutton", 4, "ngFor", "ngForOf"], [1, "p-field-radiobutton"], ["name", "selectedTeam", "formControlName", "selectedTeam", 3, "inputId", "value"], [1, "cs-pointer", 3, "for"], ["styleClass", "custombar1"], ["class", "p-field-radiobutton", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "p-field-radiobutton", 3, "ngClass"], [4, "ngIf"], [1, "p-col", "p-md-7"], [1, "p-text-right"], ["name", "keepMe", "formControlName", "keepMe", "binary", "true", 3, "value", "inputId"], [1, "cs-pointer", "p-ml-2", 3, "for"], ["name", "loginForm3", 3, "formGroup", "ngSubmit"], [1, "pi", "pi-shield"], ["type", "text", "maxlength", "32", "formControlName", "authCode", "pInputText", "", 3, "appAutofocus", "placeholder"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-col-12", "p-button-primary", 3, "disabled", "label"], [1, "p-col", "p-text-left"], [1, "p-text-center"], [1, "lds-loading"]], template: function SignInComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵtemplate(0, SignInComponent_form_0_Template, 12, 10, "form", 0);
            i0.ɵɵtemplate(1, SignInComponent_form_1_Template, 22, 18, "form", 1);
            i0.ɵɵtemplate(2, SignInComponent_form_2_Template, 16, 12, "form", 2);
            i0.ɵɵelement(3, "hr");
            i0.ɵɵelementStart(4, "div", 3);
            i0.ɵɵelementStart(5, "a", 4);
            i0.ɵɵtext(6);
            i0.ɵɵpipe(7, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(8, SignInComponent_div_8_Template, 5, 0, "div", 5);
        } if (rf & 2) {
            i0.ɵɵproperty("ngIf", ctx.loginStep1);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.loginStep2);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.loginStep3);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 5, "login.forgot_password"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.submitting);
        } }, directives: [i8.NgIf, i4.RouterLinkWithHref, i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.DefaultValueAccessor, i1.MaxLengthValidator, i1.NgControlStatus, i1.FormControlName, i9.InputText, i10.AutofocusDirective, i11.ButtonDirective, i12.Ripple, i1.RequiredValidator, i8.NgClass, i13.Messages, i5.PrimeTemplate, i8.NgForOf, i14.RadioButton, i15.ScrollPanel, i16.Checkbox], pipes: [i17.TranslatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2F1dGhlbnRpY2F0aW9uL3NpZ24taW4vc2lnbi1pbi5jb21wb25lbnQuc2NzcyJ9 */"] });
    return SignInComponent;
}());
exports.SignInComponent = SignInComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SignInComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-sign-in',
                templateUrl: './sign-in.component.html',
                styleUrls: ['./sign-in.component.scss'],
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.AuthenticateService }, { type: i3.EncryptionService }, { type: i4.Router }, { type: i4.ActivatedRoute }, { type: i5.MessageService }, { type: i6.UtilsService }, { type: i7.CookieService }]; }, null); })();


/***/ }),

/***/ "./src/app/common/constant.module.ts":
/*!*******************************************!*\
  !*** ./src/app/common/constant.module.ts ***!
  \*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.HistoryType = exports.PaymentType = exports.PackageType = exports.SystemRole = exports.ConsoleType = exports.CONSOLE = exports.CURRENCY = exports.BILLING_CYCLE = exports.SessionType = exports.Constant = void 0;
var Constant = /** @class */ (function () {
    function Constant() {
    }
    Constant.EMAIL_PATTERN = /^(([^<>()?\[\]\.,;:\s@\"]+(\.[^<>()?\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()?[\]\.,;:\s@\"]+\.)+[^<>()?[\]\.,;:\s@\"]{2,})$/;
    Constant.NUMBER_PATTERN = /^[0-9]*$/;
    Constant.SCRIPT_PATTERN = /^((?![<>{}])[\s\S])*?$/;
    Constant.rowsPerPageOptions = [5, 10, 20, 50, 100];
    Constant.IMAGE_TYPE_PROTECTED = 'jpg,png,jpeg';
    Constant.sortPage = {
        memberList: 'memberList',
        memberGroupList: 'memberGroupList',
        memberInGroupList: 'memberInGroupList',
        paymentHistory: 'paymentHistory',
    };
    Constant.storageOther = {
        tab: 'memberTab',
    };
    Constant.MINE_TYPES = {
        secure: {
            types: [
                'application/pdf',
                'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
                'application/vnd.openxmlformats-officedocument.presentationml.presentation',
                'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
            ],
        },
        video: {
            types: [
                'video/mpeg',
                'video/mpeg',
                'video/mpeg',
                'video/quicktime',
                'video/quicktime',
                'video/mp4',
                'video/x-m4v',
                'video/x-flv',
                'video/x-ms-wmv',
                'video/avi',
                'video/webm',
                'video/vnd.rn-realvideo',
            ],
        },
        audio: {
            types: [
                'audio/mpeg',
                'audio/mpeg',
                'audio/mpeg',
                'audio/mpeg',
                'audio/x-wav',
                'audio/mp4',
            ],
        },
        image: {
            types: [
                'image/bmp',
                'image/gif',
                'image/jpeg',
                'image/photoshop',
                'image/png',
                'image/svg+xml',
                'image/svg+xml',
                'image/tiff',
                'image/tiff',
            ],
        },
        compress: {
            types: [
                'application/zip',
                'application/rar',
                'application/x-zip-compressed',
                'application/x-gunzip',
                'application/x-gzip',
                'application/x-7z-compressed',
            ],
        },
        text: {
            types: [
                'text/rtf',
                'text/plain',
                'text/html',
                'text/xml',
                'text/css',
                'text/csv',
            ],
        },
        folder: {
            types: ['application/folder'],
        },
        project: {
            types: ['application/project'],
        },
        office: {
            types: [
                'application/msword',
                'application/vnd.ms-excel',
                'application/vnd.ms-powerpoint',
            ],
        },
    };
    Constant.contentTypes = {
        docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
        xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
        pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
        pdf: 'application/pdf',
        project: 'application/project',
        folder: 'application/folder',
        csv: 'text/csv',
        jpeg: 'image/jpeg',
        msDownload: 'application/x-msdownload',
        msWord: 'application/msword',
    };
    return Constant;
}());
exports.Constant = Constant;
var SessionType;
(function (SessionType) {
    SessionType[SessionType["PRIMARY_SESSION"] = 0] = "PRIMARY_SESSION";
    SessionType[SessionType["OTP_SESSION"] = 1] = "OTP_SESSION";
    SessionType[SessionType["PASSWORD_POLICY_SESSION"] = 2] = "PASSWORD_POLICY_SESSION";
})(SessionType = exports.SessionType || (exports.SessionType = {}));
var BILLING_CYCLE;
(function (BILLING_CYCLE) {
    BILLING_CYCLE["MONTHLY"] = "MONTHLY";
    BILLING_CYCLE["ANNUALLY"] = "ANNUALLY";
})(BILLING_CYCLE = exports.BILLING_CYCLE || (exports.BILLING_CYCLE = {}));
var CURRENCY;
(function (CURRENCY) {
    CURRENCY["USD"] = "USD";
    CURRENCY["YEN"] = "YEN";
})(CURRENCY = exports.CURRENCY || (exports.CURRENCY = {}));
var CONSOLE;
(function (CONSOLE) {
    CONSOLE["SECURE_MAIL"] = "SECURE_MAIL";
    CONSOLE["SECURE_DRIVE"] = "SECURE_DRIVE";
})(CONSOLE = exports.CONSOLE || (exports.CONSOLE = {}));
var ConsoleType;
(function (ConsoleType) {
    ConsoleType[ConsoleType["SecureDrive"] = 1] = "SecureDrive";
    ConsoleType[ConsoleType["SecureMail"] = 2] = "SecureMail";
    ConsoleType[ConsoleType["TeamAdmin"] = 3] = "TeamAdmin";
    ConsoleType[ConsoleType["Reseller"] = 4] = "Reseller";
})(ConsoleType = exports.ConsoleType || (exports.ConsoleType = {}));
var SystemRole;
(function (SystemRole) {
    SystemRole[SystemRole["TeamAdmin"] = 1] = "TeamAdmin";
    SystemRole[SystemRole["Manager"] = 2] = "Manager";
    SystemRole[SystemRole["Member"] = 3] = "Member";
    SystemRole[SystemRole["Guest"] = 4] = "Guest";
})(SystemRole = exports.SystemRole || (exports.SystemRole = {}));
var PackageType;
(function (PackageType) {
    PackageType["upload"] = "upload";
    PackageType["nonDRM"] = "non-drm";
})(PackageType = exports.PackageType || (exports.PackageType = {}));
var PaymentType;
(function (PaymentType) {
    PaymentType[PaymentType["Online"] = 0] = "Online";
    PaymentType[PaymentType["Offline"] = 1] = "Offline";
})(PaymentType = exports.PaymentType || (exports.PaymentType = {}));
var HistoryType;
(function (HistoryType) {
    HistoryType[HistoryType["revoke_user"] = 100] = "revoke_user";
    HistoryType[HistoryType["add_file"] = 200] = "add_file";
    HistoryType[HistoryType["update_file"] = 201] = "update_file";
    HistoryType[HistoryType["delete_file_forever"] = 202] = "delete_file_forever";
    HistoryType[HistoryType["encode_file"] = 203] = "encode_file";
    HistoryType[HistoryType["restore_file"] = 204] = "restore_file";
    HistoryType[HistoryType["move_file"] = 205] = "move_file";
    HistoryType[HistoryType["delete_file"] = 206] = "delete_file";
    HistoryType[HistoryType["update_encode_file"] = 207] = "update_encode_file";
    HistoryType[HistoryType["delete_license"] = 208] = "delete_license";
    HistoryType[HistoryType["attach_label"] = 209] = "attach_label";
    HistoryType[HistoryType["detach_label"] = 210] = "detach_label";
    HistoryType[HistoryType["copy_file"] = 211] = "copy_file";
    HistoryType[HistoryType["add_project"] = 300] = "add_project";
    HistoryType[HistoryType["update_project"] = 301] = "update_project";
    HistoryType[HistoryType["delete_project"] = 302] = "delete_project";
    HistoryType[HistoryType["copy_project"] = 303] = "copy_project";
    HistoryType[HistoryType["transferred_project"] = 304] = "transferred_project";
    HistoryType[HistoryType["add_user"] = 400] = "add_user";
    HistoryType[HistoryType["update_user"] = 401] = "update_user";
    HistoryType[HistoryType["delete_user"] = 402] = "delete_user";
    HistoryType[HistoryType["log_in"] = 403] = "log_in";
    HistoryType[HistoryType["log_out"] = 404] = "log_out";
    HistoryType[HistoryType["team_admin_login_member"] = 405] = "team_admin_login_member";
    HistoryType[HistoryType["transferred_a_account"] = 406] = "transferred_a_account";
    HistoryType[HistoryType["add_folder"] = 500] = "add_folder";
    HistoryType[HistoryType["update_folder"] = 501] = "update_folder";
    HistoryType[HistoryType["delete_forever_folder"] = 502] = "delete_forever_folder";
    HistoryType[HistoryType["delete_folder"] = 503] = "delete_folder";
    HistoryType[HistoryType["move_folder"] = 504] = "move_folder";
    HistoryType[HistoryType["restore_folder"] = 505] = "restore_folder";
    HistoryType[HistoryType["update_folder_setting"] = 506] = "update_folder_setting";
    HistoryType[HistoryType["copy_folder"] = 507] = "copy_folder";
    HistoryType[HistoryType["add_address"] = 600] = "add_address";
    HistoryType[HistoryType["update_address"] = 601] = "update_address";
    HistoryType[HistoryType["delete_address"] = 602] = "delete_address";
    HistoryType[HistoryType["remove_user"] = 700] = "remove_user";
    HistoryType[HistoryType["update_role_user"] = 701] = "update_role_user";
    HistoryType[HistoryType["invite_user"] = 702] = "invite_user";
    HistoryType[HistoryType["invite_group"] = 703] = "invite_group";
    HistoryType[HistoryType["update_role_group"] = 704] = "update_role_group";
    HistoryType[HistoryType["remove_group"] = 705] = "remove_group";
    HistoryType[HistoryType["create_group"] = 800] = "create_group";
    HistoryType[HistoryType["update_group"] = 801] = "update_group";
    HistoryType[HistoryType["delete_group"] = 802] = "delete_group";
    HistoryType[HistoryType["add_member_group"] = 803] = "add_member_group";
    HistoryType[HistoryType["remove_member_group"] = 804] = "remove_member_group";
    HistoryType[HistoryType["move_member_group"] = 805] = "move_member_group";
    HistoryType[HistoryType["create_label"] = 900] = "create_label";
    HistoryType[HistoryType["update_label"] = 901] = "update_label";
    HistoryType[HistoryType["delete_label"] = 902] = "delete_label";
    HistoryType[HistoryType["create_address_group"] = 1000] = "create_address_group";
    HistoryType[HistoryType["update_address_group"] = 1001] = "update_address_group";
    HistoryType[HistoryType["delete_address_group"] = 1002] = "delete_address_group";
    HistoryType[HistoryType["add_address_group"] = 1003] = "add_address_group";
    HistoryType[HistoryType["remove_address_group"] = 1004] = "remove_address_group";
    HistoryType[HistoryType["move_address_group"] = 1005] = "move_address_group";
    HistoryType[HistoryType["create_link"] = 1100] = "create_link";
    HistoryType[HistoryType["delete_link"] = 1101] = "delete_link";
    HistoryType[HistoryType["update_link"] = 1102] = "update_link";
    HistoryType[HistoryType["share_link"] = 1103] = "share_link";
    HistoryType[HistoryType["share_link_secure_mail"] = 1104] = "share_link_secure_mail";
    HistoryType[HistoryType["add_comment"] = 1200] = "add_comment";
    HistoryType[HistoryType["update_comment"] = 1201] = "update_comment";
    HistoryType[HistoryType["delete_comment"] = 1202] = "delete_comment";
    HistoryType[HistoryType["add_comment_file"] = 1203] = "add_comment_file";
    HistoryType[HistoryType["update_comment_file"] = 1204] = "update_comment_file";
    HistoryType[HistoryType["delete_comment_file"] = 1205] = "delete_comment_file";
})(HistoryType = exports.HistoryType || (exports.HistoryType = {}));


/***/ }),

/***/ "./src/app/common/validator.module.ts":
/*!********************************************!*\
  !*** ./src/app/common/validator.module.ts ***!
  \********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.noWhitespaceValidator = exports.cleanValidator = exports.conditionalValidator = exports.requiredIfValidator = exports.ConfirmedValidator = void 0;
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
function ConfirmedValidator(controlName, matchingControlName) {
    return function (formGroup) {
        var control = formGroup.controls[controlName];
        var matchingControl = formGroup.controls[matchingControlName];
        if (matchingControl.errors && !matchingControl.errors.confirmedValidator) {
            return;
        }
        if (control.value !== matchingControl.value) {
            matchingControl.setErrors({ confirmedValidator: true });
        }
        else {
            matchingControl.setErrors(null);
        }
    };
}
exports.ConfirmedValidator = ConfirmedValidator;
function requiredIfValidator(predicate) {
    return (function (formControl) {
        if (!formControl.parent) {
            return null;
        }
        if (predicate()) {
            return forms_1.Validators.required(formControl);
        }
        return null;
    });
}
exports.requiredIfValidator = requiredIfValidator;
function conditionalValidator(predicate, validator) {
    return (function (formControl) {
        if (!formControl.parent) {
            return null;
        }
        if (predicate()) {
            return validator(formControl);
        }
        return null;
    });
}
exports.conditionalValidator = conditionalValidator;
function cleanValidator(predicate) {
    return (function (formControl) {
        if (!formControl.parent) {
            return null;
        }
        if (predicate()) {
            return formControl.clearValidators();
        }
        return null;
    });
}
exports.cleanValidator = cleanValidator;
function noWhitespaceValidator(control) {
    var isSpace = (control.value || '').trim().length === 0;
    return isSpace ? { 'whitespace': true } : null;
}
exports.noWhitespaceValidator = noWhitespaceValidator;


/***/ }),

/***/ "./src/app/directive/autofocus.directive.ts":
/*!**************************************************!*\
  !*** ./src/app/directive/autofocus.directive.ts ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AutofocusDirective = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var AutofocusDirective = /** @class */ (function () {
    function AutofocusDirective(el) {
        this.el = el;
        this.focus = true;
    }
    AutofocusDirective.prototype.ngOnInit = function () {
        var _this = this;
        if (this.focus) {
            //Otherwise Angular throws error: Expression has changed after it was checked.
            window.setTimeout(function () {
                _this.el.nativeElement.focus(); //For SSR (server side rendering) this is not safe. Use: https://github.com/angular/angular/issues/15008#issuecomment-285141070)
            });
        }
    };
    Object.defineProperty(AutofocusDirective.prototype, "appAutofocus", {
        set: function (condition) {
            this.focus = condition !== false;
        },
        enumerable: false,
        configurable: true
    });
    AutofocusDirective.ɵfac = function AutofocusDirective_Factory(t) { return new (t || AutofocusDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
    AutofocusDirective.ɵdir = i0.ɵɵdefineDirective({ type: AutofocusDirective, selectors: [["", "appAutofocus", ""]], inputs: { appAutofocus: "appAutofocus" } });
    return AutofocusDirective;
}());
exports.AutofocusDirective = AutofocusDirective;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AutofocusDirective, [{
        type: core_1.Directive,
        args: [{
                selector: '[appAutofocus]'
            }]
    }], function () { return [{ type: i0.ElementRef }]; }, { appAutofocus: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/helpers/auth-guard.service.ts":
/*!***********************************************!*\
  !*** ./src/app/helpers/auth-guard.service.ts ***!
  \***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthGuardService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var rxjs_1 = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var operators_1 = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var constant_module_1 = __webpack_require__(/*! ../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var AuthGuardService = /** @class */ (function () {
    function AuthGuardService(router, authService, messageService, broadcastService, utils, authenticateService, cookieService) {
        this.router = router;
        this.authService = authService;
        this.messageService = messageService;
        this.broadcastService = broadcastService;
        this.utils = utils;
        this.authenticateService = authenticateService;
        this.cookieService = cookieService;
    }
    AuthGuardService.prototype.canActivate = function (route, state) {
        var _this = this;
        var url = state.url;
        if (!this.cookieService.get('a_t')) {
            // Store the attempted URL for redirecting
            this.authService.redirectUrl = url;
            this.router.navigate(['/login']).then(function (r) {
            });
            this.broadcastService.broadcast('change-language', null);
            return rxjs_1.of(false);
        }
        return this.authService.getAuthInfo().pipe(operators_1.map(function (res) {
            if (res && res.status === 200) {
                if (res.data.role_id !== constant_module_1.SystemRole.TeamAdmin
                    && res.data.role_id !== constant_module_1.SystemRole.Manager
                    && res.data.role_id !== constant_module_1.SystemRole.Member) {
                    _this.authenticateService.logout().subscribe(function (res) {
                        if (res.status === 200) {
                            _this.cookieService.delete('a_t');
                            _this.broadcastService.broadcast('change-language', null);
                        }
                    });
                    return false;
                }
                else {
                    _this.authService.setAuthUser(res.data);
                    _this.broadcastService.broadcast('change-language', res.data.lang);
                    return true;
                }
            }
            else {
                _this.router.navigate(['/login']).then(function (r) {
                });
                _this.broadcastService.broadcast('change-language', null);
                return false;
            }
        }, function (err) {
            console.log('err get', err);
            _this.cookieService.delete('a_t');
            _this.router.navigate(['/login']);
            _this.broadcastService.broadcast('change-language', null);
            return false;
        }));
    };
    AuthGuardService.ɵfac = function AuthGuardService_Factory(t) { return new (t || AuthGuardService)(i0.ɵɵinject(i1.Router), i0.ɵɵinject(i2.AuthenticateService), i0.ɵɵinject(i3.MessageService), i0.ɵɵinject(i4.BroadcastService), i0.ɵɵinject(i5.UtilsService), i0.ɵɵinject(i2.AuthenticateService), i0.ɵɵinject(i6.CookieService)); };
    AuthGuardService.ɵprov = i0.ɵɵdefineInjectable({ token: AuthGuardService, factory: AuthGuardService.ɵfac, providedIn: 'root' });
    return AuthGuardService;
}());
exports.AuthGuardService = AuthGuardService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AuthGuardService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root'
            }]
    }], function () { return [{ type: i1.Router }, { type: i2.AuthenticateService }, { type: i3.MessageService }, { type: i4.BroadcastService }, { type: i5.UtilsService }, { type: i2.AuthenticateService }, { type: i6.CookieService }]; }, null); })();


/***/ }),

/***/ "./src/app/helpers/intercept.error.https.ts":
/*!**************************************************!*\
  !*** ./src/app/helpers/intercept.error.https.ts ***!
  \**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.InterceptHeaderErrorHttps = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var rxjs_1 = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var operators_1 = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var InterceptHeaderErrorHttps = /** @class */ (function () {
    function InterceptHeaderErrorHttps(router, cookieService) {
        this.router = router;
        this.cookieService = cookieService;
    }
    InterceptHeaderErrorHttps.prototype.intercept = function (request, next) {
        var _this = this;
        return next.handle(request).pipe(operators_1.catchError(function (err) {
            if (err.status === 401) {
                _this.cookieService.delete('a_t');
                _this.router.navigate(['/login']);
            }
            return rxjs_1.throwError(err);
        }));
    };
    InterceptHeaderErrorHttps.ɵfac = function InterceptHeaderErrorHttps_Factory(t) { return new (t || InterceptHeaderErrorHttps)(i0.ɵɵinject(i1.Router), i0.ɵɵinject(i2.CookieService)); };
    InterceptHeaderErrorHttps.ɵprov = i0.ɵɵdefineInjectable({ token: InterceptHeaderErrorHttps, factory: InterceptHeaderErrorHttps.ɵfac });
    return InterceptHeaderErrorHttps;
}());
exports.InterceptHeaderErrorHttps = InterceptHeaderErrorHttps;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(InterceptHeaderErrorHttps, [{
        type: core_1.Injectable
    }], function () { return [{ type: i1.Router }, { type: i2.CookieService }]; }, null); })();


/***/ }),

/***/ "./src/app/helpers/intercept.header.https.ts":
/*!***************************************************!*\
  !*** ./src/app/helpers/intercept.header.https.ts ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.InterceptHeaderHttps = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var InterceptHeaderHttps = /** @class */ (function () {
    function InterceptHeaderHttps(cookieService) {
        this.cookieService = cookieService;
    }
    InterceptHeaderHttps.prototype.intercept = function (request, next) {
        var url = request.url;
        var authToken = this.cookieService.get('a_t');
        if (authToken) {
            request = request.clone({
                headers: request.headers.set('auth-token', "" + authToken),
                setHeaders: {
                    'Auth-Token': "" + authToken,
                },
            });
        }
        return next.handle(request);
    };
    InterceptHeaderHttps.ɵfac = function InterceptHeaderHttps_Factory(t) { return new (t || InterceptHeaderHttps)(i0.ɵɵinject(i1.CookieService)); };
    InterceptHeaderHttps.ɵprov = i0.ɵɵdefineInjectable({ token: InterceptHeaderHttps, factory: InterceptHeaderHttps.ɵfac });
    return InterceptHeaderHttps;
}());
exports.InterceptHeaderHttps = InterceptHeaderHttps;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(InterceptHeaderHttps, [{
        type: core_1.Injectable
    }], function () { return [{ type: i1.CookieService }]; }, null); })();


/***/ }),

/***/ "./src/app/helpers/permission-guard.service.ts":
/*!*****************************************************!*\
  !*** ./src/app/helpers/permission-guard.service.ts ***!
  \*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PermissionGuardService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var constant_module_1 = __webpack_require__(/*! ../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var PermissionGuardService = /** @class */ (function () {
    function PermissionGuardService(router, authService, cookieService) {
        this.router = router;
        this.authService = authService;
        this.cookieService = cookieService;
        this.system = constant_module_1.SystemRole;
    }
    PermissionGuardService.prototype.canActivate = function (route, state) {
        this.authUser = this.authService.getAuthUser();
        if (!this.cookieService.get('a_t')) {
            this.router.navigate(['/login']).then(function () {
            });
            return false;
        }
        var roles = route.data.roles;
        if (roles && roles.length > 0 && roles.indexOf(this.authUser.role_id) === -1) {
            this.router.navigate(['/member/list']).then(function () {
            });
            return false;
        }
        return true;
    };
    PermissionGuardService.ɵfac = function PermissionGuardService_Factory(t) { return new (t || PermissionGuardService)(i0.ɵɵinject(i1.Router), i0.ɵɵinject(i2.AuthenticateService), i0.ɵɵinject(i3.CookieService)); };
    PermissionGuardService.ɵprov = i0.ɵɵdefineInjectable({ token: PermissionGuardService, factory: PermissionGuardService.ɵfac, providedIn: 'root' });
    return PermissionGuardService;
}());
exports.PermissionGuardService = PermissionGuardService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PermissionGuardService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root'
            }]
    }], function () { return [{ type: i1.Router }, { type: i2.AuthenticateService }, { type: i3.CookieService }]; }, null); })();


/***/ }),

/***/ "./src/app/prime-ng/prime-ng.module.ts":
/*!*********************************************!*\
  !*** ./src/app/prime-ng/prime-ng.module.ts ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PrimeNgModule = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var inputtext_1 = __webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
var button_1 = __webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
var table_1 = __webpack_require__(/*! primeng/table */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.js");
var badge_1 = __webpack_require__(/*! primeng/badge */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-badge.js");
var card_1 = __webpack_require__(/*! primeng/card */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-card.js");
var checkbox_1 = __webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js");
var scrollpanel_1 = __webpack_require__(/*! primeng/scrollpanel */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-scrollpanel.js");
var radiobutton_1 = __webpack_require__(/*! primeng/radiobutton */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-radiobutton.js");
var messages_1 = __webpack_require__(/*! primeng/messages */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-messages.js");
var message_1 = __webpack_require__(/*! primeng/message */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-message.js");
var toast_1 = __webpack_require__(/*! primeng/toast */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-toast.js");
var menubar_1 = __webpack_require__(/*! primeng/menubar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-menubar.js");
var tieredmenu_1 = __webpack_require__(/*! primeng/tieredmenu */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tieredmenu.js");
var toolbar_1 = __webpack_require__(/*! primeng/toolbar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-toolbar.js");
var menu_1 = __webpack_require__(/*! primeng/menu */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-menu.js");
var sidebar_1 = __webpack_require__(/*! primeng/sidebar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-sidebar.js");
var panelmenu_1 = __webpack_require__(/*! primeng/panelmenu */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-panelmenu.js");
var ripple_1 = __webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js");
var fileupload_1 = __webpack_require__(/*! primeng/fileupload */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fileupload.js");
var http_1 = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
var dropdown_1 = __webpack_require__(/*! primeng/dropdown */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js");
var chips_1 = __webpack_require__(/*! primeng/chips */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-chips.js");
var multiselect_1 = __webpack_require__(/*! primeng/multiselect */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-multiselect.js");
var dynamicdialog_1 = __webpack_require__(/*! primeng/dynamicdialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dynamicdialog.js");
var tooltip_1 = __webpack_require__(/*! primeng/tooltip */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js");
var confirmdialog_1 = __webpack_require__(/*! primeng/confirmdialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-confirmdialog.js");
var dialog_1 = __webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js");
var tabview_1 = __webpack_require__(/*! primeng/tabview */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tabview.js");
var tabmenu_1 = __webpack_require__(/*! primeng/tabmenu */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tabmenu.js");
var inputtextarea_1 = __webpack_require__(/*! primeng/inputtextarea */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtextarea.js");
var colorpicker_1 = __webpack_require__(/*! primeng/colorpicker */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-colorpicker.js");
var progressbar_1 = __webpack_require__(/*! primeng/progressbar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-progressbar.js");
var chart_1 = __webpack_require__(/*! primeng/chart */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-chart.js");
var accordion_1 = __webpack_require__(/*! primeng/accordion */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-accordion.js");
var calendar_1 = __webpack_require__(/*! primeng/calendar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-calendar.js");
var autocomplete_1 = __webpack_require__(/*! primeng/autocomplete */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-autocomplete.js");
var listbox_1 = __webpack_require__(/*! primeng/listbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-listbox.js");
var tree_1 = __webpack_require__(/*! primeng/tree */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tree.js");
var treetable_1 = __webpack_require__(/*! primeng/treetable */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-treetable.js");
var inputnumber_1 = __webpack_require__(/*! primeng/inputnumber */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputnumber.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var PrimeNgModule = /** @class */ (function () {
    function PrimeNgModule() {
    }
    PrimeNgModule.ɵmod = i0.ɵɵdefineNgModule({ type: PrimeNgModule });
    PrimeNgModule.ɵinj = i0.ɵɵdefineInjector({ factory: function PrimeNgModule_Factory(t) { return new (t || PrimeNgModule)(); }, imports: [[
                common_1.CommonModule,
                inputtext_1.InputTextModule,
                button_1.ButtonModule,
                table_1.TableModule,
                badge_1.BadgeModule,
                card_1.CardModule,
                checkbox_1.CheckboxModule,
                scrollpanel_1.ScrollPanelModule,
                radiobutton_1.RadioButtonModule,
                messages_1.MessagesModule,
                message_1.MessageModule,
                toast_1.ToastModule,
                menubar_1.MenubarModule,
                tieredmenu_1.TieredMenuModule,
                toolbar_1.ToolbarModule,
                menu_1.MenuModule,
                sidebar_1.SidebarModule,
                panelmenu_1.PanelMenuModule,
                ripple_1.RippleModule,
                fileupload_1.FileUploadModule,
                http_1.HttpClientModule,
                dropdown_1.DropdownModule,
                chips_1.ChipsModule,
                multiselect_1.MultiSelectModule,
                dynamicdialog_1.DynamicDialogModule,
                tooltip_1.TooltipModule,
                confirmdialog_1.ConfirmDialogModule,
                dialog_1.DialogModule,
                progressbar_1.ProgressBarModule,
                chart_1.ChartModule,
                accordion_1.AccordionModule,
                calendar_1.CalendarModule,
                autocomplete_1.AutoCompleteModule,
                listbox_1.ListboxModule,
                tree_1.TreeModule,
                tabview_1.TabViewModule,
                tabmenu_1.TabMenuModule,
                inputtextarea_1.InputTextareaModule,
                inputnumber_1.InputNumberModule,
                colorpicker_1.ColorPickerModule,
                treetable_1.TreeTableModule,
            ], inputtext_1.InputTextModule,
            button_1.ButtonModule,
            table_1.TableModule,
            badge_1.BadgeModule,
            card_1.CardModule,
            checkbox_1.CheckboxModule,
            scrollpanel_1.ScrollPanelModule,
            radiobutton_1.RadioButtonModule,
            messages_1.MessagesModule,
            message_1.MessageModule,
            toast_1.ToastModule,
            menubar_1.MenubarModule,
            tieredmenu_1.TieredMenuModule,
            toolbar_1.ToolbarModule,
            menu_1.MenuModule,
            sidebar_1.SidebarModule,
            panelmenu_1.PanelMenuModule,
            ripple_1.RippleModule,
            fileupload_1.FileUploadModule,
            http_1.HttpClientModule,
            dropdown_1.DropdownModule,
            chips_1.ChipsModule,
            multiselect_1.MultiSelectModule,
            dynamicdialog_1.DynamicDialogModule,
            tooltip_1.TooltipModule,
            confirmdialog_1.ConfirmDialogModule,
            dialog_1.DialogModule,
            tabview_1.TabViewModule,
            progressbar_1.ProgressBarModule,
            chart_1.ChartModule,
            accordion_1.AccordionModule,
            calendar_1.CalendarModule,
            autocomplete_1.AutoCompleteModule,
            listbox_1.ListboxModule,
            tree_1.TreeModule,
            tabmenu_1.TabMenuModule,
            inputtextarea_1.InputTextareaModule,
            inputnumber_1.InputNumberModule,
            colorpicker_1.ColorPickerModule,
            treetable_1.TreeTableModule] });
    return PrimeNgModule;
}());
exports.PrimeNgModule = PrimeNgModule;
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PrimeNgModule, { imports: [common_1.CommonModule,
        inputtext_1.InputTextModule,
        button_1.ButtonModule,
        table_1.TableModule,
        badge_1.BadgeModule,
        card_1.CardModule,
        checkbox_1.CheckboxModule,
        scrollpanel_1.ScrollPanelModule,
        radiobutton_1.RadioButtonModule,
        messages_1.MessagesModule,
        message_1.MessageModule,
        toast_1.ToastModule,
        menubar_1.MenubarModule,
        tieredmenu_1.TieredMenuModule,
        toolbar_1.ToolbarModule,
        menu_1.MenuModule,
        sidebar_1.SidebarModule,
        panelmenu_1.PanelMenuModule,
        ripple_1.RippleModule,
        fileupload_1.FileUploadModule,
        http_1.HttpClientModule,
        dropdown_1.DropdownModule,
        chips_1.ChipsModule,
        multiselect_1.MultiSelectModule,
        dynamicdialog_1.DynamicDialogModule,
        tooltip_1.TooltipModule,
        confirmdialog_1.ConfirmDialogModule,
        dialog_1.DialogModule,
        progressbar_1.ProgressBarModule,
        chart_1.ChartModule,
        accordion_1.AccordionModule,
        calendar_1.CalendarModule,
        autocomplete_1.AutoCompleteModule,
        listbox_1.ListboxModule,
        tree_1.TreeModule,
        tabview_1.TabViewModule,
        tabmenu_1.TabMenuModule,
        inputtextarea_1.InputTextareaModule,
        inputnumber_1.InputNumberModule,
        colorpicker_1.ColorPickerModule,
        treetable_1.TreeTableModule], exports: [inputtext_1.InputTextModule,
        button_1.ButtonModule,
        table_1.TableModule,
        badge_1.BadgeModule,
        card_1.CardModule,
        checkbox_1.CheckboxModule,
        scrollpanel_1.ScrollPanelModule,
        radiobutton_1.RadioButtonModule,
        messages_1.MessagesModule,
        message_1.MessageModule,
        toast_1.ToastModule,
        menubar_1.MenubarModule,
        tieredmenu_1.TieredMenuModule,
        toolbar_1.ToolbarModule,
        menu_1.MenuModule,
        sidebar_1.SidebarModule,
        panelmenu_1.PanelMenuModule,
        ripple_1.RippleModule,
        fileupload_1.FileUploadModule,
        http_1.HttpClientModule,
        dropdown_1.DropdownModule,
        chips_1.ChipsModule,
        multiselect_1.MultiSelectModule,
        dynamicdialog_1.DynamicDialogModule,
        tooltip_1.TooltipModule,
        confirmdialog_1.ConfirmDialogModule,
        dialog_1.DialogModule,
        tabview_1.TabViewModule,
        progressbar_1.ProgressBarModule,
        chart_1.ChartModule,
        accordion_1.AccordionModule,
        calendar_1.CalendarModule,
        autocomplete_1.AutoCompleteModule,
        listbox_1.ListboxModule,
        tree_1.TreeModule,
        tabmenu_1.TabMenuModule,
        inputtextarea_1.InputTextareaModule,
        inputnumber_1.InputNumberModule,
        colorpicker_1.ColorPickerModule,
        treetable_1.TreeTableModule] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PrimeNgModule, [{
        type: core_1.NgModule,
        args: [{
                declarations: [],
                imports: [
                    common_1.CommonModule,
                    inputtext_1.InputTextModule,
                    button_1.ButtonModule,
                    table_1.TableModule,
                    badge_1.BadgeModule,
                    card_1.CardModule,
                    checkbox_1.CheckboxModule,
                    scrollpanel_1.ScrollPanelModule,
                    radiobutton_1.RadioButtonModule,
                    messages_1.MessagesModule,
                    message_1.MessageModule,
                    toast_1.ToastModule,
                    menubar_1.MenubarModule,
                    tieredmenu_1.TieredMenuModule,
                    toolbar_1.ToolbarModule,
                    menu_1.MenuModule,
                    sidebar_1.SidebarModule,
                    panelmenu_1.PanelMenuModule,
                    ripple_1.RippleModule,
                    fileupload_1.FileUploadModule,
                    http_1.HttpClientModule,
                    dropdown_1.DropdownModule,
                    chips_1.ChipsModule,
                    multiselect_1.MultiSelectModule,
                    dynamicdialog_1.DynamicDialogModule,
                    tooltip_1.TooltipModule,
                    confirmdialog_1.ConfirmDialogModule,
                    dialog_1.DialogModule,
                    progressbar_1.ProgressBarModule,
                    chart_1.ChartModule,
                    accordion_1.AccordionModule,
                    calendar_1.CalendarModule,
                    autocomplete_1.AutoCompleteModule,
                    listbox_1.ListboxModule,
                    tree_1.TreeModule,
                    tabview_1.TabViewModule,
                    tabmenu_1.TabMenuModule,
                    inputtextarea_1.InputTextareaModule,
                    inputnumber_1.InputNumberModule,
                    colorpicker_1.ColorPickerModule,
                    treetable_1.TreeTableModule,
                ],
                exports: [
                    inputtext_1.InputTextModule,
                    button_1.ButtonModule,
                    table_1.TableModule,
                    badge_1.BadgeModule,
                    card_1.CardModule,
                    checkbox_1.CheckboxModule,
                    scrollpanel_1.ScrollPanelModule,
                    radiobutton_1.RadioButtonModule,
                    messages_1.MessagesModule,
                    message_1.MessageModule,
                    toast_1.ToastModule,
                    menubar_1.MenubarModule,
                    tieredmenu_1.TieredMenuModule,
                    toolbar_1.ToolbarModule,
                    menu_1.MenuModule,
                    sidebar_1.SidebarModule,
                    panelmenu_1.PanelMenuModule,
                    ripple_1.RippleModule,
                    fileupload_1.FileUploadModule,
                    http_1.HttpClientModule,
                    dropdown_1.DropdownModule,
                    chips_1.ChipsModule,
                    multiselect_1.MultiSelectModule,
                    dynamicdialog_1.DynamicDialogModule,
                    tooltip_1.TooltipModule,
                    confirmdialog_1.ConfirmDialogModule,
                    dialog_1.DialogModule,
                    tabview_1.TabViewModule,
                    progressbar_1.ProgressBarModule,
                    chart_1.ChartModule,
                    accordion_1.AccordionModule,
                    calendar_1.CalendarModule,
                    autocomplete_1.AutoCompleteModule,
                    listbox_1.ListboxModule,
                    tree_1.TreeModule,
                    tabmenu_1.TabMenuModule,
                    inputtextarea_1.InputTextareaModule,
                    inputnumber_1.InputNumberModule,
                    colorpicker_1.ColorPickerModule,
                    treetable_1.TreeTableModule
                ]
            }]
    }], null, null); })();


/***/ }),

/***/ "./src/app/rib-layout/left-menu/left-menu.component.ts":
/*!*************************************************************!*\
  !*** ./src/app/rib-layout/left-menu/left-menu.component.ts ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.LeftMenuComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var constant_module_1 = __webpack_require__(/*! ../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! primeng/panelmenu */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-panelmenu.js"));
var LeftMenuComponent = /** @class */ (function () {
    function LeftMenuComponent(utils, router, authenticateService, cookieService, broadcastService) {
        this.utils = utils;
        this.router = router;
        this.authenticateService = authenticateService;
        this.cookieService = cookieService;
        this.broadcastService = broadcastService;
        this.subItems = [];
        this.subItemsDashboard = [];
    }
    LeftMenuComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.authUser = this.authenticateService.getAuthUser();
        if (this.authUser && this.authUser.use_secure_drive) {
            this.subItems = tslib_1.__spread(this.subItems, [{
                    label: this.utils.translate('message.login_as_user.secure_drive'),
                    command: function () {
                        var urlLink = environment_1.environment.secure_drive_url + 'login?giraffe=' +
                            window.btoa(_this.cookieService.get('a_t')) +
                            '&redirectPath=' + window.btoa(environment_1.environment.secure_drive_url + 'project');
                        window.open(urlLink, '_blank');
                    }
                }]);
            this.subItemsDashboard = tslib_1.__spread(this.subItemsDashboard, [{
                    id: 'dashboard-SD',
                    label: this.utils.translate('message.login_as_user.secure_drive'),
                    routerLink: ['/dashboard/secure-drive']
                }]);
        }
        if (this.authUser && this.authUser.use_secure_mail) {
            this.subItems = tslib_1.__spread(this.subItems, [{
                    label: this.utils.translate('message.login_as_user.secure_mail'),
                    command: function () {
                        window.open(environment_1.environment.secure_mail_url + 'login?key=' +
                            _this.cookieService.get('a_t'), '_blank');
                    }
                }]);
            this.subItemsDashboard = tslib_1.__spread(this.subItemsDashboard, [{
                    id: 'dashboard-SM',
                    label: this.utils.translate('message.login_as_user.secure_mail'),
                    routerLink: ['/dashboard/secure-mail']
                }]);
        }
        this.loadData();
    };
    LeftMenuComponent.prototype.loadData = function () {
        var _this = this;
        this.utils.translateList([
            'label.member',
            'label.settings',
            'label.report',
            'label.dashboard',
            'label.user_console',
            'message.login_as_user.secure_drive',
            'message.login_as_user.secure_mail'
        ], {}).subscribe(function (res) {
            _this.items = [
                {
                    id: 'member',
                    label: res['label.member'],
                    icon: 'pi pi-fw pi-user',
                    routerLink: ['/member/list'],
                    command: function () {
                        localStorage.setItem(constant_module_1.Constant.storageOther.tab, String(0));
                    },
                },
                {
                    id: 'setting',
                    label: res['label.settings'],
                    icon: 'pi pi-fw pi-cog',
                    styleClass: _this.authUser && _this.authUser.role_id !== constant_module_1.SystemRole.TeamAdmin ? 'p-d-none' : '',
                    routerLink: ['/setting'],
                    command: function () {
                        _this.broadcastService.broadcast('load-menu-setting', 'info');
                    }
                },
                {
                    id: 'report',
                    label: res['label.report'],
                    icon: 'pi pi-fw pi-list',
                    styleClass: (!_this.authenticateService.isUseSDGlobal) ? 'p-d-none' : '',
                    routerLink: ['/report'],
                },
                {
                    id: 'dashboard',
                    label: res['label.dashboard'],
                    icon: 'pi pi-fw pi-chart-bar',
                    styleClass: _this.authUser && _this.authUser.role_id !== constant_module_1.SystemRole.TeamAdmin ? 'p-d-none' : 'icon-right',
                    items: _this.subItemsDashboard,
                },
                {
                    label: res['label.user_console'],
                    icon: 'fas fa-fw fa-user-cog',
                    styleClass: 'icon-right',
                    items: _this.subItems
                }
            ];
        });
    };
    LeftMenuComponent.ɵfac = function LeftMenuComponent_Factory(t) { return new (t || LeftMenuComponent)(i0.ɵɵdirectiveInject(i1.UtilsService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.AuthenticateService), i0.ɵɵdirectiveInject(i4.CookieService), i0.ɵɵdirectiveInject(i5.BroadcastService)); };
    LeftMenuComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LeftMenuComponent, selectors: [["app-left-menu"]], decls: 1, vars: 1, consts: [[1, "primary-menu", 3, "model"]], template: function LeftMenuComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelement(0, "p-panelMenu", 0);
        } if (rf & 2) {
            i0.ɵɵproperty("model", ctx.items);
        } }, directives: [i6.PanelMenu], styles: ["[_nghost-%COMP%]     .p-panelmenu .p-panelmenu-panel {\n  box-shadow: none !important;\n}\n[_nghost-%COMP%]     .p-panelmenu .p-panelmenu-header > a {\n  border-radius: unset !important;\n  box-shadow: none !important;\n}\n[_nghost-%COMP%]     .primary-menu .p-menuitem-link-active .p-menuitem-icon, [_nghost-%COMP%]     .primary-menu .p-menuitem-link-active .p-menuitem-text, [_nghost-%COMP%]     .primary-menu .p-menuitem-link-active {\n  font-weight: bold;\n  background-color: #096cc8 !important;\n  color: #ffffff !important;\n}\n[_nghost-%COMP%]     .p-panelmenu .p-panelmenu-header > a:focus, [_nghost-%COMP%]     .p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus, [_nghost-%COMP%]     .p-menu .p-menuitem-link:focus {\n  box-shadow: none;\n}\n[_nghost-%COMP%]     .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link {\n  padding-left: 4rem;\n}\n[_nghost-%COMP%]     .primary-menu .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon, [_nghost-%COMP%]     .primary-menu .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text, [_nghost-%COMP%]     .primary-menu .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover, [_nghost-%COMP%]     .primary-menu .p-panelmenu .p-panelmenu-header.p-highlight:not(.p-disabled) > a:hover, [_nghost-%COMP%]     .primary-menu .p-panelmenu .p-panelmenu-header:not(.p-highlight):not(.p-disabled) > a:hover, [_nghost-%COMP%]     .primary-menu .p-panelmenu .p-panelmenu-header:not(.p-highlight):not(.p-disabled) > a:hover .p-menuitem-icon, [_nghost-%COMP%]     .primary-menu .p-panelmenu .p-panelmenu-header:not(.p-highlight):not(.p-disabled) > a:hover .p-menuitem-text, [_nghost-%COMP%]     .primary-menu .p-menu .p-menuitem-link:not(.p-disabled):hover, [_nghost-%COMP%]     .primary-menu .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon, [_nghost-%COMP%]     .primary-menu .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n  font-weight: bold;\n  color: #ffffff !important;\n  background: none;\n}\n[_nghost-%COMP%]     .bg-gradient-primary {\n  background-color: #4e73df;\n  background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);\n  background-size: cover;\n}\n[_nghost-%COMP%]     .primary-menu .p-panelmenu {\n  width: 100%;\n  height: 100%;\n  padding: 0;\n  border: 0;\n  border-radius: 0;\n  background-color: #4e73df;\n  background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);\n  background-size: cover;\n}\n[_nghost-%COMP%]     .primary-menu .p-panelmenu .p-panelmenu-header > a .p-panelmenu-icon, [_nghost-%COMP%]     .primary-menu .p-menuitem-icon, [_nghost-%COMP%]     .primary-menu .p-menuitem-text {\n  color: #dddddd !important;\n}\n/*# sourceMappingURL=data:application/json;base64,  */"] });
    return LeftMenuComponent;
}());
exports.LeftMenuComponent = LeftMenuComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(LeftMenuComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-left-menu',
                templateUrl: './left-menu.component.html',
                styleUrls: ['./left-menu.component.scss']
            }]
    }], function () { return [{ type: i1.UtilsService }, { type: i2.Router }, { type: i3.AuthenticateService }, { type: i4.CookieService }, { type: i5.BroadcastService }]; }, null); })();


/***/ }),

/***/ "./src/app/rib-layout/nav-bar/nav-bar.component.ts":
/*!*********************************************************!*\
  !*** ./src/app/rib-layout/nav-bar/nav-bar.component.ts ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.NavBarComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! primeng/menubar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-menubar.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! primeng/toolbar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-toolbar.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/tieredmenu */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tieredmenu.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/sidebar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-sidebar.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! ../left-menu/left-menu.component */ "./src/app/rib-layout/left-menu/left-menu.component.ts"));
function NavBarComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 13);
    i0.ɵɵelementStart(1, "div", 14);
    i0.ɵɵelement(2, "img", 15);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("src", ctx_r0.logoURL, i0.ɵɵsanitizeUrl);
} }
function NavBarComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    var _r4 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 16);
    i0.ɵɵelementStart(1, "div", 17);
    i0.ɵɵelementStart(2, "label", 18);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "button", 9);
    i0.ɵɵlistener("click", function NavBarComponent_ng_template_3_Template_button_click_4_listener($event) { i0.ɵɵrestoreView(_r4); i0.ɵɵnextContext(); var _r2 = i0.ɵɵreference(13); return _r2.toggle($event); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r1.userName);
} }
var NavBarComponent = /** @class */ (function () {
    function NavBarComponent(utils, router, broadcastService, cookieService, authenticateService) {
        var _this = this;
        this.utils = utils;
        this.router = router;
        this.broadcastService = broadcastService;
        this.cookieService = cookieService;
        this.authenticateService = authenticateService;
        this.broadcastService.subscribe('load-logo', function (data) {
            _this.loadLogo(data);
        });
    }
    NavBarComponent.prototype.ngOnInit = function () {
        this.authUser = this.authenticateService.getAuthUser();
        this.loadData();
    };
    NavBarComponent.prototype.loadData = function () {
        var _this = this;
        this.authUser = this.authenticateService.getAuthUser();
        this.isDefaultLogo = this.authUser.default_logo;
        this.logoURL = (this.isDefaultLogo || this.isDefaultLogo === undefined) ? 'assets/images/689Cloud-large.png' :
            'https://' + environment_1.environment.app_amazons3_bucket + environment_1.environment.suffix_amazon_s3 + environment_1.environment.logo_path
                + this.authUser.team_id + '/' + this.authUser.logo_url;
        if (this.authUser) {
            var lang = this.authUser.lang;
            switch (lang) {
                case 'ja':
                case 'vi':
                    this.userName = this.authUser.last_name + ' ' + this.authUser.first_name;
                    break;
                default:
                    this.userName = this.authUser.first_name + ' ' + this.authUser.last_name;
                    break;
            }
        }
        this.utils.translateList([
            'label.settings',
            'label.my_account',
            'label.help',
            'label.logout'
        ], {}).subscribe(function (res) {
            _this.items = [
                {
                    label: _this.authUser.mail_address,
                    disabled: true,
                    styleClass: 'text-small p-text-truncate p-d-inline-block text-natural'
                },
                {
                    label: res['label.my_account'],
                    icon: 'pi pi-fw pi-user',
                    styleClass: 'text-natural',
                    routerLink: ['/my-account']
                },
                {
                    label: res['label.help'],
                    icon: 'pi pi-fw pi-question-circle',
                    styleClass: 'text-natural',
                    command: function () {
                        window.open('https://689cloud.com', '_blank');
                    }
                },
                {
                    separator: true
                },
                {
                    label: res['label.logout'],
                    icon: 'pi pi-fw pi-sign-out',
                    styleClass: 'text-natural',
                    command: function () {
                        _this.authenticateService.logout().subscribe(function (res) {
                            if (res.status === 200) {
                                _this.cookieService.delete('a_t');
                                _this.router.navigate(['/login']);
                                _this.broadcastService.broadcast('change-language', null);
                            }
                        });
                    }
                }
            ];
        });
    };
    NavBarComponent.prototype.loadLogo = function (data) {
        this.isDefaultLogo = data.default_logo;
        this.logoURL = (this.isDefaultLogo || this.isDefaultLogo === undefined) ? 'assets/images/689Cloud-large.png' :
            'https://' + environment_1.environment.app_amazons3_bucket + environment_1.environment.suffix_amazon_s3 + environment_1.environment.logo_path
                + this.authUser.team_id + '/' + data.logo_url;
    };
    NavBarComponent.ɵfac = function NavBarComponent_Factory(t) { return new (t || NavBarComponent)(i0.ɵɵdirectiveInject(i1.UtilsService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i3.BroadcastService), i0.ɵɵdirectiveInject(i4.CookieService), i0.ɵɵdirectiveInject(i5.AuthenticateService)); };
    NavBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NavBarComponent, selectors: [["app-nav-bar"]], decls: 16, vars: 6, consts: [[1, "layout-nav-bar", "p-d-none", "p-d-md-block"], ["pTemplate", "start"], ["pTemplate", "end"], [1, "layout-nav-bar", "p-d-block", "p-d-md-none"], ["styleClass", "toolbar-custom p-p-0 p-border-bottom-1"], [1, "p-d-flex", "p-ai-center", "p-mx-16"], ["type", "button", "pButton", "", "icon", "pi pi-bars p-text-xx-large", 1, "p-button-text", "p-button-secondary", "p-mr-3", 3, "click"], [1, "p-d-flex", "p-ai-center"], ["height", "34", "alt", "logo", 3, "src"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-user", 1, "p-button-rounded", "p-button-raised", "p-button-info", 3, "click"], [3, "model", "popup"], ["menu", ""], [1, "bg-gradient-primary", 3, "visible", "baseZIndex", "showCloseIcon", "visibleChange"], [1, "p-toolbar-group-left"], [1, "p-text-md-center", 2, "width", "240px"], ["height", "34", "alt", "logo", 1, "p-mr-2", 3, "src"], [1, "p-toolbar-group-right", "p-mr-4"], [1, "p-inputgroup"], [1, "p-mt-2", "p-mr-2"]], template: function NavBarComponent_Template(rf, ctx) { if (rf & 1) {
            var _r5 = i0.ɵɵgetCurrentView();
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "p-menubar");
            i0.ɵɵtemplate(2, NavBarComponent_ng_template_2_Template, 3, 1, "ng-template", 1);
            i0.ɵɵtemplate(3, NavBarComponent_ng_template_3_Template, 5, 1, "ng-template", 2);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(4, "div", 3);
            i0.ɵɵelementStart(5, "p-toolbar", 4);
            i0.ɵɵelementStart(6, "div", 5);
            i0.ɵɵelementStart(7, "button", 6);
            i0.ɵɵlistener("click", function NavBarComponent_Template_button_click_7_listener() { return ctx.visibleSidebar = true; });
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(8, "div", 7);
            i0.ɵɵelement(9, "img", 8);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(10, "div", 5);
            i0.ɵɵelementStart(11, "button", 9);
            i0.ɵɵlistener("click", function NavBarComponent_Template_button_click_11_listener($event) { i0.ɵɵrestoreView(_r5); var _r2 = i0.ɵɵreference(13); return _r2.toggle($event); });
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelement(12, "p-tieredMenu", 10, 11);
            i0.ɵɵelementStart(14, "p-sidebar", 12);
            i0.ɵɵlistener("visibleChange", function NavBarComponent_Template_p_sidebar_visibleChange_14_listener($event) { return ctx.visibleSidebar = $event; });
            i0.ɵɵelement(15, "app-left-menu");
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(9);
            i0.ɵɵpropertyInterpolate("src", ctx.logoURL, i0.ɵɵsanitizeUrl);
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("model", ctx.items)("popup", true);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("visible", ctx.visibleSidebar)("baseZIndex", 10000)("showCloseIcon", false);
        } }, directives: [i6.Menubar, i7.PrimeTemplate, i8.Toolbar, i9.ButtonDirective, i10.Ripple, i11.TieredMenu, i12.Sidebar, i13.LeftMenuComponent], styles: [".icon-size-md[_ngcontent-%COMP%] {\n  font-size: 2em;\n}\n\n[_nghost-%COMP%]     .bg-gradient-primary {\n  background-color: #4e73df;\n  background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);\n  background-size: cover;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3JpYi1sYXlvdXQvbmF2LWJhci9uYXYtYmFyLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9yaWItbGF5b3V0L25hdi1iYXIvbmF2LWJhci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGNBQUE7QUNDRjs7QURHRTtFQUNFLHlCQUFBO0VBQ0Esb0VBQUE7RUFDQSxzQkFBQTtBQ0FKIiwiZmlsZSI6InNyYy9hcHAvcmliLWxheW91dC9uYXYtYmFyL25hdi1iYXIuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuaWNvbi1zaXplLW1kIHtcbiAgZm9udC1zaXplOiAyZW1cbn1cblxuOmhvc3QgOjpuZy1kZWVwIHtcbiAgLmJnLWdyYWRpZW50LXByaW1hcnkge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICM0ZTczZGY7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogbGluZWFyLWdyYWRpZW50KDE4MGRlZywgIzRlNzNkZiAxMCUsICMyMjRhYmUgMTAwJSk7XG4gICAgYmFja2dyb3VuZC1zaXplOiBjb3ZlcjtcbiAgfVxufVxuIiwiLmljb24tc2l6ZS1tZCB7XG4gIGZvbnQtc2l6ZTogMmVtO1xufVxuXG46aG9zdCA6Om5nLWRlZXAgLmJnLWdyYWRpZW50LXByaW1hcnkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjNGU3M2RmO1xuICBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQoMTgwZGVnLCAjNGU3M2RmIDEwJSwgIzIyNGFiZSAxMDAlKTtcbiAgYmFja2dyb3VuZC1zaXplOiBjb3Zlcjtcbn0iXX0= */"] });
    return NavBarComponent;
}());
exports.NavBarComponent = NavBarComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NavBarComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-nav-bar',
                templateUrl: './nav-bar.component.html',
                styleUrls: ['./nav-bar.component.scss']
            }]
    }], function () { return [{ type: i1.UtilsService }, { type: i2.Router }, { type: i3.BroadcastService }, { type: i4.CookieService }, { type: i5.AuthenticateService }]; }, null); })();


/***/ }),

/***/ "./src/app/rib-layout/rib-layout.module.ts":
/*!*************************************************!*\
  !*** ./src/app/rib-layout/rib-layout.module.ts ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RibLayoutModule = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var left_menu_component_1 = __webpack_require__(/*! ./left-menu/left-menu.component */ "./src/app/rib-layout/left-menu/left-menu.component.ts");
var nav_bar_component_1 = __webpack_require__(/*! ./nav-bar/nav-bar.component */ "./src/app/rib-layout/nav-bar/nav-bar.component.ts");
var shared_module_1 = __webpack_require__(/*! ../shared/shared.module */ "./src/app/shared/shared.module.ts");
var prime_ng_module_1 = __webpack_require__(/*! ../prime-ng/prime-ng.module */ "./src/app/prime-ng/prime-ng.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var RibLayoutModule = /** @class */ (function () {
    function RibLayoutModule() {
    }
    RibLayoutModule.ɵmod = i0.ɵɵdefineNgModule({ type: RibLayoutModule });
    RibLayoutModule.ɵinj = i0.ɵɵdefineInjector({ factory: function RibLayoutModule_Factory(t) { return new (t || RibLayoutModule)(); }, imports: [[
                common_1.CommonModule,
                shared_module_1.SharedModule,
                prime_ng_module_1.PrimeNgModule
            ]] });
    return RibLayoutModule;
}());
exports.RibLayoutModule = RibLayoutModule;
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(RibLayoutModule, { declarations: [left_menu_component_1.LeftMenuComponent,
        nav_bar_component_1.NavBarComponent], imports: [common_1.CommonModule,
        shared_module_1.SharedModule,
        prime_ng_module_1.PrimeNgModule], exports: [left_menu_component_1.LeftMenuComponent,
        nav_bar_component_1.NavBarComponent] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RibLayoutModule, [{
        type: core_1.NgModule,
        args: [{
                declarations: [
                    left_menu_component_1.LeftMenuComponent,
                    nav_bar_component_1.NavBarComponent
                ],
                imports: [
                    common_1.CommonModule,
                    shared_module_1.SharedModule,
                    prime_ng_module_1.PrimeNgModule
                ],
                exports: [
                    left_menu_component_1.LeftMenuComponent,
                    nav_bar_component_1.NavBarComponent
                ]
            }]
    }], null, null); })();


/***/ }),

/***/ "./src/app/shared/broadcast.service.ts":
/*!*********************************************!*\
  !*** ./src/app/shared/broadcast.service.ts ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.BroadcastService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var rxjs_1 = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var operators_1 = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var BroadcastService = /** @class */ (function () {
    function BroadcastService() {
        this._handler = new rxjs_1.Subject();
    }
    BroadcastService.prototype.broadcast = function (type, payload) {
        if (payload === void 0) { payload = null; }
        this._handler.next({ type: type, payload: payload });
    };
    BroadcastService.prototype.subscribe = function (type, callback) {
        return this._handler.pipe(operators_1.filter(function (message) { return message.type === type; }), operators_1.map(function (message) { return message.payload; })).subscribe(callback);
    };
    BroadcastService.ɵfac = function BroadcastService_Factory(t) { return new (t || BroadcastService)(); };
    BroadcastService.ɵprov = i0.ɵɵdefineInjectable({ token: BroadcastService, factory: BroadcastService.ɵfac });
    return BroadcastService;
}());
exports.BroadcastService = BroadcastService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(BroadcastService, [{
        type: core_1.Injectable
    }], function () { return []; }, null); })();


/***/ }),

/***/ "./src/app/shared/components/receipt-template/receipt-template.component.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/shared/components/receipt-template/receipt-template.component.ts ***!
  \**********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ReceiptTemplateComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var _c0 = function (a0) { return { serviceName: a0 }; };
var ReceiptTemplateComponent = /** @class */ (function () {
    function ReceiptTemplateComponent(translateService) {
        this.translateService = translateService;
        this.teamName = '';
        this.chargedDate = '';
        this.expiryDate = '';
        this.planName = '';
        this.pricePerUser = '';
        this.billingCycle = '';
        this.currency = 'USD';
        this.userCount = 0;
        this.totalPrice = '';
        this.totalPayment = '';
        this.creditApplied = '';
        this.serviceName = 'SecureDrive';
        this.logoUrl = '';
    }
    ReceiptTemplateComponent.prototype.ngOnInit = function () {
        this.updateReceiptData();
    };
    ReceiptTemplateComponent.prototype.ngOnChanges = function (changes) {
        if (changes.receiptData) {
            this.updateReceiptData();
        }
    };
    // Update receipt data from @Input
    ReceiptTemplateComponent.prototype.updateReceiptData = function () {
        if (this.receiptData) {
            this.teamName = this.receiptData.teamName || '';
            this.chargedDate = this.receiptData.chargedDate || '';
            this.expiryDate = this.receiptData.expiryDate || '';
            this.planName = this.receiptData.planName || '';
            this.pricePerUser = this.receiptData.pricePerUser || '';
            this.currency = this.receiptData.currency || 'USD';
            this.billingCycle = this.receiptData.billingCycle || '';
            this.userCount = this.receiptData.userCount || 0;
            this.totalPrice = this.receiptData.totalPrice || '';
            this.totalPayment = this.receiptData.totalPayment || '';
            this.creditApplied = this.receiptData.creditApplied || '';
            this.serviceName = this.receiptData.serviceName || 'SecureDrive';
            this.logoUrl =
                this.receiptData.logoUrl ||
                    window.location.origin + '/assets/images/689Cloud-large.png';
        }
    };
    ReceiptTemplateComponent.ɵfac = function ReceiptTemplateComponent_Factory(t) { return new (t || ReceiptTemplateComponent)(i0.ɵɵdirectiveInject(i1.TranslateService)); };
    ReceiptTemplateComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReceiptTemplateComponent, selectors: [["app-receipt-template"]], inputs: { receiptData: "receiptData" }, features: [i0.ɵɵNgOnChangesFeature], decls: 122, vars: 74, consts: [[1, "receipt-container"], ["width", "100%", "cellpadding", "0", "cellspacing", "0", 2, "padding", "0", "margin", "0"], ["align", "center"], ["width", "600", "cellpadding", "0", "cellspacing", "0", 2, "background", "#fff", "border-radius", "8px", "box-shadow", "0 2px 8px rgba(0, 0, 0, 0.07)", "padding", "0", "margin", "40px 0", "border", "1px solid #1976d2"], ["colspan", "2", 2, "border-bottom", "2px solid #1976d2", "padding", "24px 24px 16px 24px"], ["width", "100%", "cellpadding", "0", "cellspacing", "0"], ["align", "left", "valign", "middle"], [2, "font-size", "1.7em", "color", "#1976d2", "font-weight", "bold"], ["width", "60", "align", "right", "valign", "middle"], ["alt", "Logo", "width", "48", "height", "48", 2, "display", "block", 3, "src"], ["colspan", "2", 2, "text-align", "center", "color", "#1976d2", "font-size", "1.2em", "padding", "24px 24px 16px 24px", "font-weight", "bold"], ["colspan", "2", 2, "padding", "0 24px 24px 24px"], ["width", "50%", "valign", "top", 2, "padding-right", "8px"], ["cellpadding", "0", "cellspacing", "0", "width", "100%"], [2, "color", "#1976d2", "font-weight", "bold", "width", "120px", "padding", "4px 0"], [2, "padding", "4px 0"], ["width", "50%", "valign", "top", 2, "padding-left", "8px"], ["width", "100%", "cellpadding", "0", "cellspacing", "0", 2, "border-collapse", "collapse"], [2, "border", "1px solid #1976d2", "background", "#1976d2", "color", "#fff", "padding", "8px 12px", "text-align", "left"], [2, "border", "1px solid #1976d2", "padding", "8px 12px"], [2, "border", "1px solid #1976d2", "padding", "8px 12px", "background", "#e3f0fb", "color", "#1976d2", "font-weight", "bold"], ["colspan", "3", 2, "border", "1px solid #1976d2", "padding", "8px 12px", "text-align", "right", "font-weight", "bold"], [2, "border", "1px solid #1976d2", "padding", "8px 12px", "font-weight", "bold"], ["colspan", "2", 2, "border-top", "1px solid #e0e0e0", "margin-top", "32px", "padding", "16px 24px 24px 24px", "text-align", "center", "color", "#888", "font-size", "0.95em"], [2, "color", "#1976d2", "font-weight", "bold"], ["href", "mailto:info@689cloud.com", 2, "color", "#1976d2", "text-decoration", "none"], [2, "font-style", "italic", "color", "#1976d2"]], template: function ReceiptTemplateComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "table", 1);
            i0.ɵɵelementStart(2, "tr");
            i0.ɵɵelementStart(3, "td", 2);
            i0.ɵɵelementStart(4, "table", 3);
            i0.ɵɵelementStart(5, "tr");
            i0.ɵɵelementStart(6, "td", 4);
            i0.ɵɵelementStart(7, "table", 5);
            i0.ɵɵelementStart(8, "tr");
            i0.ɵɵelementStart(9, "td", 6);
            i0.ɵɵelementStart(10, "span", 7);
            i0.ɵɵtext(11);
            i0.ɵɵpipe(12, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(13, "td", 8);
            i0.ɵɵelement(14, "img", 9);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(15, "tr");
            i0.ɵɵelementStart(16, "td", 10);
            i0.ɵɵtext(17);
            i0.ɵɵpipe(18, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(19, "tr");
            i0.ɵɵelementStart(20, "td", 11);
            i0.ɵɵelementStart(21, "table", 5);
            i0.ɵɵelementStart(22, "tr");
            i0.ɵɵelementStart(23, "td", 12);
            i0.ɵɵelementStart(24, "table", 13);
            i0.ɵɵelementStart(25, "tr");
            i0.ɵɵelementStart(26, "td", 14);
            i0.ɵɵtext(27);
            i0.ɵɵpipe(28, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(29, "td", 15);
            i0.ɵɵtext(30);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(31, "tr");
            i0.ɵɵelementStart(32, "td", 14);
            i0.ɵɵtext(33);
            i0.ɵɵpipe(34, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(35, "td", 15);
            i0.ɵɵtext(36);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(37, "tr");
            i0.ɵɵelementStart(38, "td", 14);
            i0.ɵɵtext(39);
            i0.ɵɵpipe(40, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(41, "td", 15);
            i0.ɵɵtext(42);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(43, "td", 16);
            i0.ɵɵelementStart(44, "table", 13);
            i0.ɵɵelementStart(45, "tr");
            i0.ɵɵelementStart(46, "td", 14);
            i0.ɵɵtext(47);
            i0.ɵɵpipe(48, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(49, "td", 15);
            i0.ɵɵtext(50);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(51, "tr");
            i0.ɵɵelementStart(52, "td", 14);
            i0.ɵɵtext(53);
            i0.ɵɵpipe(54, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(55, "td", 15);
            i0.ɵɵtext(56);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(57, "tr");
            i0.ɵɵelementStart(58, "td", 14);
            i0.ɵɵtext(59);
            i0.ɵɵpipe(60, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(61, "td", 15);
            i0.ɵɵelementStart(62, "span");
            i0.ɵɵtext(63);
            i0.ɵɵpipe(64, "uppercase");
            i0.ɵɵpipe(65, "translate");
            i0.ɵɵpipe(66, "uppercase");
            i0.ɵɵpipe(67, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(68, "tr");
            i0.ɵɵelementStart(69, "td", 11);
            i0.ɵɵelementStart(70, "table", 17);
            i0.ɵɵelementStart(71, "tr");
            i0.ɵɵelementStart(72, "th", 18);
            i0.ɵɵtext(73);
            i0.ɵɵpipe(74, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(75, "th", 18);
            i0.ɵɵtext(76);
            i0.ɵɵpipe(77, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(78, "th", 18);
            i0.ɵɵtext(79);
            i0.ɵɵpipe(80, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(81, "th", 18);
            i0.ɵɵtext(82);
            i0.ɵɵpipe(83, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(84, "tr");
            i0.ɵɵelementStart(85, "td", 19);
            i0.ɵɵtext(86);
            i0.ɵɵpipe(87, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(88, "td", 19);
            i0.ɵɵtext(89);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(90, "td", 19);
            i0.ɵɵtext(91);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(92, "td", 19);
            i0.ɵɵtext(93);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(94, "tr");
            i0.ɵɵelementStart(95, "td", 20);
            i0.ɵɵtext(96);
            i0.ɵɵpipe(97, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(98, "td", 20);
            i0.ɵɵtext(99, " - ");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(100, "td", 20);
            i0.ɵɵtext(101, " - ");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(102, "td", 20);
            i0.ɵɵtext(103);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(104, "tr");
            i0.ɵɵelementStart(105, "td", 21);
            i0.ɵɵtext(106);
            i0.ɵɵpipe(107, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(108, "td", 22);
            i0.ɵɵtext(109);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(110, "tr");
            i0.ɵɵelementStart(111, "td", 23);
            i0.ɵɵelementStart(112, "div", 24);
            i0.ɵɵtext(113, "689Cloud Inc.");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(114, "div");
            i0.ɵɵtext(115);
            i0.ɵɵpipe(116, "translate");
            i0.ɵɵelementStart(117, "a", 25);
            i0.ɵɵtext(118, "info@689cloud.com");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(119, "div", 26);
            i0.ɵɵtext(120);
            i0.ɵɵpipe(121, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(11);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 29, "label.receipt_preview"));
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("src", ctx.logoUrl, i0.ɵɵsanitizeUrl);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(18, 31, "label.thank_you", i0.ɵɵpureFunction1(72, _c0, ctx.serviceName)), " ");
            i0.ɵɵadvance(10);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 34, "label.team_name"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate(ctx.teamName);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(34, 36, "label.charged_date"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate(ctx.chargedDate);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 38, "label.package.expire_date"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate(ctx.expiryDate);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(48, 40, "label.plan"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate(ctx.planName);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(54, 42, "label.price_per_user"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate(ctx.pricePerUser);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(60, 44, "label.package.billing_cycle"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", ctx.billingCycle === "ANNUALLY" ? i0.ɵɵpipeBind1(64, 46, i0.ɵɵpipeBind1(65, 48, "label.annually")) : i0.ɵɵpipeBind1(66, 50, i0.ɵɵpipeBind1(67, 52, "label.monthly")), " ");
            i0.ɵɵadvance(10);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(74, 54, "label.description"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(77, 56, "label.quantity"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(80, 58, "label.price"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(83, 60, "label.total"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(87, 62, "label.receipt_user"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", ctx.userCount, " ");
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", ctx.pricePerUser, " ");
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", ctx.totalPrice || "0.00", " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(97, 64, "label.receipt_credit_applied"), " ");
            i0.ɵɵadvance(7);
            i0.ɵɵtextInterpolate1(" ", ctx.creditApplied || "0.00", " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(107, 66, "label.grand_total"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", ctx.totalPayment || "0.00", " ");
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(116, 68, "label.contact"), " ");
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(121, 70, "label.company_slogan"), " ");
        } }, pipes: [i1.TranslatePipe, i2.UpperCasePipe], styles: [".receipt-container[_ngcontent-%COMP%] {\n  font-family: Arial, sans-serif;\n  margin: 0;\n  padding: 0;\n  color: #222;\n}\n.receipt-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%] {\n  display: block;\n  max-width: 100%;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3NoYXJlZC9jb21wb25lbnRzL3JlY2VpcHQtdGVtcGxhdGUvcmVjZWlwdC10ZW1wbGF0ZS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvc2hhcmVkL2NvbXBvbmVudHMvcmVjZWlwdC10ZW1wbGF0ZS9yZWNlaXB0LXRlbXBsYXRlLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsOEJBQUE7RUFDQSxTQUFBO0VBQ0EsVUFBQTtFQUNBLFdBQUE7QUNDRjtBRENFO0VBQ0UsY0FBQTtFQUNBLGVBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL3NoYXJlZC9jb21wb25lbnRzL3JlY2VpcHQtdGVtcGxhdGUvcmVjZWlwdC10ZW1wbGF0ZS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5yZWNlaXB0LWNvbnRhaW5lciB7XG4gIGZvbnQtZmFtaWx5OiBBcmlhbCwgc2Fucy1zZXJpZjtcbiAgbWFyZ2luOiAwO1xuICBwYWRkaW5nOiAwO1xuICBjb2xvcjogIzIyMjtcbiAgXG4gIGltZyB7XG4gICAgZGlzcGxheTogYmxvY2s7XG4gICAgbWF4LXdpZHRoOiAxMDAlO1xuICB9XG59IiwiLnJlY2VpcHQtY29udGFpbmVyIHtcbiAgZm9udC1mYW1pbHk6IEFyaWFsLCBzYW5zLXNlcmlmO1xuICBtYXJnaW46IDA7XG4gIHBhZGRpbmc6IDA7XG4gIGNvbG9yOiAjMjIyO1xufVxuLnJlY2VpcHQtY29udGFpbmVyIGltZyB7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBtYXgtd2lkdGg6IDEwMCU7XG59Il19 */"] });
    return ReceiptTemplateComponent;
}());
exports.ReceiptTemplateComponent = ReceiptTemplateComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ReceiptTemplateComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-receipt-template',
                templateUrl: './receipt-template.component.html',
                styleUrls: ['./receipt-template.component.scss'],
            }]
    }], function () { return [{ type: i1.TranslateService }]; }, { receiptData: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/shared/pricing.utils.ts":
/*!*****************************************!*\
  !*** ./src/app/shared/pricing.utils.ts ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getPackageLevel = exports.PricingCode = void 0;
var PricingCode;
(function (PricingCode) {
    PricingCode["FREE"] = "FREE";
    PricingCode["PERSONAL"] = "PERSONAL";
    PricingCode["STARTER"] = "STARTER";
    PricingCode["TEAM"] = "TEAM";
    PricingCode["BUSINESS"] = "BUSINESS";
})(PricingCode = exports.PricingCode || (exports.PricingCode = {}));
function getPackageLevel(code) {
    switch (code) {
        case PricingCode.FREE: return 0;
        case PricingCode.PERSONAL: return 1;
        case PricingCode.STARTER: return 2;
        case PricingCode.TEAM: return 3;
        case PricingCode.BUSINESS: return 4;
        default: return -1;
    }
}
exports.getPackageLevel = getPackageLevel;


/***/ }),

/***/ "./src/app/shared/services/aes.service.ts":
/*!************************************************!*\
  !*** ./src/app/shared/services/aes.service.ts ***!
  \************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.EncryptionService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var CryptoJS = tslib_1.__importStar(__webpack_require__(/*! crypto-js */ "./node_modules/crypto-js/index.js"));
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var EncryptionService = /** @class */ (function () {
    function EncryptionService() {
        this.key = 'f9c48f382012cac69ffcc78da220123f';
    }
    EncryptionService.prototype.initAES = function (keySize, iterationCount) {
        this.keySize = keySize / 32;
        this.iterationCount = iterationCount;
    };
    EncryptionService.prototype.generateKey = function (salt, passPhrase) {
        var key = CryptoJS.PBKDF2(passPhrase, CryptoJS.enc.Hex.parse(salt), { keySize: this.keySize, iterations: this.iterationCount });
        return key;
    };
    EncryptionService.prototype.encrypt = function (salt, iv, passPhrase, plainText) {
        var key = this.generateKey(salt, passPhrase);
        var encrypted = CryptoJS.AES.encrypt(plainText, key, { iv: CryptoJS.enc.Hex.parse(iv) });
        return encrypted.ciphertext.toString(CryptoJS.enc.Base64);
    };
    EncryptionService.prototype.decrypt = function (salt, iv, passPhrase, cipherText) {
        var key = this.generateKey(salt, passPhrase);
        var cipherParams = CryptoJS.lib.CipherParams.create({
            ciphertext: CryptoJS.enc.Base64.parse(cipherText)
        });
        var decrypted = CryptoJS.AES.decrypt(cipherParams, key, { iv: CryptoJS.enc.Hex.parse(iv) });
        return decrypted.toString(CryptoJS.enc.Utf8);
    };
    EncryptionService.prototype.encode = function (text) {
        this.initAES(256, 1000);
        var _key = this.key;
        return this.encrypt(_key, _key, _key, text);
    };
    EncryptionService.prototype.decode = function (text) {
        this.initAES(256, 1000);
        var _key = this.key;
        return this.decrypt(_key, _key, _key, text);
    };
    EncryptionService.ɵfac = function EncryptionService_Factory(t) { return new (t || EncryptionService)(); };
    EncryptionService.ɵprov = i0.ɵɵdefineInjectable({ token: EncryptionService, factory: EncryptionService.ɵfac, providedIn: 'root' });
    return EncryptionService;
}());
exports.EncryptionService = EncryptionService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EncryptionService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root'
            }]
    }], function () { return []; }, null); })();


/***/ }),

/***/ "./src/app/shared/services/authenticate.service.ts":
/*!*********************************************************!*\
  !*** ./src/app/shared/services/authenticate.service.ts ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthenticateService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var md5_1 = __webpack_require__(/*! ts-md5/dist/md5 */ "./node_modules/ts-md5/dist/md5.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var constant_module_1 = __webpack_require__(/*! ../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ./aes.service */ "./src/app/shared/services/aes.service.ts"));
var AuthenticateService = /** @class */ (function () {
    function AuthenticateService(http, encryptionService) {
        this.http = http;
        this.encryptionService = encryptionService;
    }
    AuthenticateService.prototype.login = function (params) {
        var md5 = new md5_1.Md5();
        console.log('login params', params);
        return this.http.post(environment_1.environment.backend_api + "auth/user/login", {
            team_id: params.team_id,
            // email: this.encryptionService.encode(params.email),
            email: params.email.trim(),
            // password_hash: this.encryptionService.encode(
            //   md5.appendStr(params.password).end()
            // ),
            password_hash: md5.appendStr(params.password).end(),
            keep_login: params.keep_login,
            service_key: constant_module_1.ConsoleType[constant_module_1.ConsoleType.TeamAdmin],
        });
    };
    AuthenticateService.prototype.loginOTP = function (params) {
        return this.http.post(environment_1.environment.backend_api + "auth/user/otp/login", {
            auth_code: params.auth_code,
            keep_login: params.keep_login,
        }, {
            headers: {
                'Content-Type': 'application/json',
                'otp-token': params.auth_token,
            },
        });
    };
    AuthenticateService.prototype.logout = function () {
        return this.http.post(environment_1.environment.backend_api + "auth/logout", {});
    };
    AuthenticateService.prototype.getUserTeams = function (email) {
        var options = {
            // email: this.encryptionService.encode(email)
            email: email.trim(),
        };
        var getParams = new URLSearchParams();
        console.log('getUserTeams', options);
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "auth/user/teams?" + getParams.toString());
    };
    AuthenticateService.prototype.getAuthInfo = function () {
        return this.http.get(environment_1.environment.backend_api + "auth/info");
    };
    AuthenticateService.prototype.setAuthUser = function (authUser) {
        this.isUseSDGlobal = authUser.use_secure_drive;
        this.isUseSMGlobal = authUser.use_secure_mail;
        this.paymentTypeGlobal = authUser.payment_type;
        this.authUser = authUser;
    };
    AuthenticateService.prototype.getAuthUser = function () {
        return this.authUser;
    };
    AuthenticateService.prototype.forgotPasswordRequest = function (params) {
        return this.http.post(environment_1.environment.backend_api + "auth/user/password", {
            team_id: params.team_id,
            email: params.email,
            service_key: constant_module_1.ConsoleType[constant_module_1.ConsoleType.TeamAdmin],
        });
    };
    AuthenticateService.prototype.resetPassword = function (params) {
        return this.http.put(environment_1.environment.backend_api + "auth/user/password", {
            new_password: this.encryptionService.encode(params.new_password),
            confirm_password: this.encryptionService.encode(params.confirm_password),
            auth_token: params.auth_token,
        });
    };
    AuthenticateService.prototype.changeEmail = function (params) {
        return this.http.put(environment_1.environment.backend_api + "auth/user/email", {
            mail_address: params.mail_address,
            confirm_code: params.confirm_code,
        });
    };
    /*  get the number of remaining attempts to enter the password
                                  If null is returned, the team does not use the account lock function */
    AuthenticateService.prototype.getNumOfPasswordRemain = function (params) {
        var options = {
            email: this.encryptionService.encode(params.email),
            team_id: params.team_id,
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "auth/user/password/remain?" +
            getParams.toString());
    };
    AuthenticateService.prototype.changeEmailRequest = function () {
        return this.http.post(environment_1.environment.backend_api + "auth/user/email", {
            service_key: constant_module_1.ConsoleType[constant_module_1.ConsoleType.TeamAdmin],
        });
    };
    AuthenticateService.prototype.generatePinCode = function () {
        return this.http.post(environment_1.environment.backend_api + "auth/user/pincode", {});
    };
    AuthenticateService.ɵfac = function AuthenticateService_Factory(t) { return new (t || AuthenticateService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.EncryptionService)); };
    AuthenticateService.ɵprov = i0.ɵɵdefineInjectable({ token: AuthenticateService, factory: AuthenticateService.ɵfac, providedIn: 'root' });
    return AuthenticateService;
}());
exports.AuthenticateService = AuthenticateService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AuthenticateService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root',
            }]
    }], function () { return [{ type: i1.HttpClient }, { type: i2.EncryptionService }]; }, null); })();


/***/ }),

/***/ "./src/app/shared/services/dashboard.service.ts":
/*!******************************************************!*\
  !*** ./src/app/shared/services/dashboard.service.ts ***!
  \******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.DashboardService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var DashboardService = /** @class */ (function () {
    function DashboardService(http) {
        this.http = http;
    }
    DashboardService.prototype.getRecentlySentMails = function () {
        return this.http.get(environment_1.environment.backend_api + "dashboard/teams/latest_mails");
    };
    DashboardService.prototype.getTop3MembersUsedTheMostTransmissions = function (params) {
        var options = {
            start_date: params.start_date,
            end_date: params.end_date,
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "dashboard/teams/top_transmissions?" + getParams.toString());
    };
    DashboardService.prototype.getDashboardSecureMail = function () {
        return this.http.get(environment_1.environment.backend_api + "dashboard/secure_mail/teams");
    };
    DashboardService.prototype.generalStatistics = function (year) {
        return this.http.get(environment_1.environment.backend_api + "dashboard/teams/general?year=" + year);
    };
    DashboardService.prototype.getTeamStatistic = function (teamId) {
        return this.http.get(environment_1.environment.backend_api + "dashboard/teams/" + teamId);
    };
    DashboardService.ɵfac = function DashboardService_Factory(t) { return new (t || DashboardService)(i0.ɵɵinject(i1.HttpClient)); };
    DashboardService.ɵprov = i0.ɵɵdefineInjectable({ token: DashboardService, factory: DashboardService.ɵfac, providedIn: 'root' });
    return DashboardService;
}());
exports.DashboardService = DashboardService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(DashboardService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root'
            }]
    }], function () { return [{ type: i1.HttpClient }]; }, null); })();


/***/ }),

/***/ "./src/app/shared/services/member.service.ts":
/*!***************************************************!*\
  !*** ./src/app/shared/services/member.service.ts ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MemberService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ./aes.service */ "./src/app/shared/services/aes.service.ts"));
var MemberService = /** @class */ (function () {
    function MemberService(http, encryptionService) {
        this.http = http;
        this.encryptionService = encryptionService;
    }
    MemberService.prototype.getUsersPaging = function (params) {
        var options = {
            asc_sort: params.asc_sort,
            page_number: params.page_number,
            page_size: params.page_size,
            search_key: params.search_key,
            sort_field: params.sort_field,
            team_id: params.team_id,
            type: params.type
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "users?" + getParams.toString());
    };
    MemberService.prototype.createUser = function (params) {
        return this.http.post(environment_1.environment.backend_api + "users", {
            team_id: params.team_id,
            first_name: params.first_name,
            last_name: params.last_name,
            middle_name: params.middle_name,
            mail_address: params.mail_address,
            password: this.encryptionService.encode(params.password),
            confirm_password: this.encryptionService.encode(params.confirm_password),
            role_id: params.role_id,
            group_names: params.group_names,
            ignore: params.ignore
        });
    };
    MemberService.prototype.getUserDetail = function (userId) {
        return this.http.get(environment_1.environment.backend_api + "users/" + userId);
    };
    MemberService.prototype.getAllUsers = function (teamId) {
        return this.http.get(environment_1.environment.backend_api + "users/" + teamId + "/all");
    };
    MemberService.prototype.updateUser = function (params) {
        var paramsUpdate = {
            team_id: params.team_id,
            first_name: params.first_name,
            last_name: params.last_name
        };
        if (!params.is_info) {
            paramsUpdate['role_id'] = params.role_id;
            paramsUpdate['added_group'] = params.added_group;
            paramsUpdate['deleted_group'] = params.deleted_group;
            paramsUpdate['ignore'] = params.ignore;
        }
        else {
            paramsUpdate['time_zone'] = params.time_zone;
            paramsUpdate['language'] = params.language;
            paramsUpdate['notification_flag'] = params.notification_flag;
            paramsUpdate['factor_authen'] = params.factor_authen;
        }
        return this.http.put(environment_1.environment.backend_api + "users/" + params.user_id, paramsUpdate);
    };
    MemberService.prototype.unlockUser = function (params) {
        var options = {
            team_id: params.team_id,
        };
        var unlockParams = new URLSearchParams();
        for (var key in options) {
            unlockParams.set(key, options[key]);
        }
        return this.http.put(environment_1.environment.backend_api + "users/" +
            params.user_id + "/unlock?" + unlockParams.toString(), '');
    };
    MemberService.prototype.deleteUser = function (params) {
        var options = {
            team_id: params.team_id,
            user_id: params.user_id,
        };
        var deleteParams = new URLSearchParams();
        for (var key in options) {
            deleteParams.set(key, options[key]);
        }
        return this.http.delete(environment_1.environment.backend_api + "users?" + deleteParams.toString());
    };
    MemberService.prototype.exportUser = function (params) {
        var options = {
            team_id: params.team_id,
        };
        var objParams = new URLSearchParams();
        for (var key in options) {
            objParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "users/export?" + objParams.toString(), {
            headers: {
                'Content-Type': 'application/json',
                'auth-token': params.auth_token
            },
            responseType: 'text'
        });
    };
    MemberService.prototype.loginAsUser = function (params) {
        return this.http.post(environment_1.environment.backend_api + "auth/member/login", {
            user_id: params.user_id,
            service_key: params.service_key_type
        });
    };
    MemberService.prototype.transferAccount = function (params) {
        return this.http.put(environment_1.environment.backend_api + "users/" + params.user_id + "/transfer", {
            mail_address: params.mail_address,
            new_password: this.encryptionService.encode(params.new_password),
            confirm_password: this.encryptionService.encode(params.confirm_password)
        });
    };
    MemberService.prototype.userChangePassword = function (params) {
        return this.http.put(environment_1.environment.backend_api + "users/" + params.user_id + "/password", {
            old_password: this.encryptionService.encode(params.current_password),
            new_password: this.encryptionService.encode(params.new_password),
            confirm_password: this.encryptionService.encode(params.confirm_password),
        });
    };
    MemberService.ɵfac = function MemberService_Factory(t) { return new (t || MemberService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.EncryptionService)); };
    MemberService.ɵprov = i0.ɵɵdefineInjectable({ token: MemberService, factory: MemberService.ɵfac, providedIn: 'root' });
    return MemberService;
}());
exports.MemberService = MemberService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MemberService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root'
            }]
    }], function () { return [{ type: i1.HttpClient }, { type: i2.EncryptionService }]; }, null); })();


/***/ }),

/***/ "./src/app/shared/services/package.service.ts":
/*!****************************************************!*\
  !*** ./src/app/shared/services/package.service.ts ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PackageService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var PackageService = /** @class */ (function () {
    function PackageService(http) {
        this.http = http;
    }
    PackageService.prototype.getUsagePackages = function (currency) {
        var options = {
            currency: currency
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "usage_package/packages?" +
            getParams.toString());
    };
    PackageService.ɵfac = function PackageService_Factory(t) { return new (t || PackageService)(i0.ɵɵinject(i1.HttpClient)); };
    PackageService.ɵprov = i0.ɵɵdefineInjectable({ token: PackageService, factory: PackageService.ɵfac, providedIn: 'root' });
    return PackageService;
}());
exports.PackageService = PackageService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PackageService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root'
            }]
    }], function () { return [{ type: i1.HttpClient }]; }, null); })();


/***/ }),

/***/ "./src/app/shared/services/pricing-package.service.ts":
/*!************************************************************!*\
  !*** ./src/app/shared/services/pricing-package.service.ts ***!
  \************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PricingPackageService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var PricingPackageService = /** @class */ (function () {
    function PricingPackageService(http) {
        this.http = http;
    }
    /**
     * Lấy danh sách các gói dịch vụ
     * @param consoleType Loại dịch vụ (mail/drive)
     */
    PricingPackageService.prototype.getPackages = function (params) {
        return this.http.get(environment_1.environment.backend_api + "pricing/package", params ? { params: params } : {});
    };
    /**
     * Lấy chi tiết một gói dịch vụ
     * @param packageId ID của gói dịch vụ
     */
    PricingPackageService.prototype.getPackageDetail = function (packageId) {
        return this.http.get(environment_1.environment.backend_api + "pricing/package/" + packageId);
    };
    /**
     * Nâng cấp gói dịch vụ
     * @param params Thông tin nâng cấp
     */
    PricingPackageService.prototype.upgradePackage = function (params) {
        return this.http.post(environment_1.environment.backend_api + "pricing/package/upgrade", {
            team_id: params.team_id,
            package_id: params.package_id,
            payment_method: params.payment_method,
            billing_cycle: params.billing_cycle,
            number_of_users: params.number_of_users,
            console_type: params.console_type,
        });
    };
    PricingPackageService.ɵfac = function PricingPackageService_Factory(t) { return new (t || PricingPackageService)(i0.ɵɵinject(i1.HttpClient)); };
    PricingPackageService.ɵprov = i0.ɵɵdefineInjectable({ token: PricingPackageService, factory: PricingPackageService.ɵfac, providedIn: 'root' });
    return PricingPackageService;
}());
exports.PricingPackageService = PricingPackageService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PricingPackageService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root',
            }]
    }], function () { return [{ type: i1.HttpClient }]; }, null); })();


/***/ }),

/***/ "./src/app/shared/services/reports.service.ts":
/*!****************************************************!*\
  !*** ./src/app/shared/services/reports.service.ts ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ReportsService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var ReportsService = /** @class */ (function () {
    function ReportsService(http) {
        this.http = http;
    }
    ReportsService.prototype.getRetrieveReport = function (params) {
        var options = {
            team_id: params.team_id,
            user_ids: params.user_ids,
            group_ids: params.group_ids,
            history_types: params.history_types,
            from_date: params.from_date,
            to_date: params.to_date,
            page_number: params.page_number,
            page_size: params.page_size
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "reports?" +
            getParams.toString());
    };
    ReportsService.prototype.getExportReport = function (params) {
        var options = {
            team_id: params.team_id,
            user_ids: params.user_ids,
            group_ids: params.group_ids,
            history_types: params.history_types,
            from_date: params.from_date,
            to_date: params.to_date
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "reports/export?" +
            getParams.toString(), {
            headers: {
                'Content-Type': 'application/json',
                'auth-token': params.auth_token
            },
            responseType: 'text'
        });
    };
    ReportsService.ɵfac = function ReportsService_Factory(t) { return new (t || ReportsService)(i0.ɵɵinject(i1.HttpClient)); };
    ReportsService.ɵprov = i0.ɵɵdefineInjectable({ token: ReportsService, factory: ReportsService.ɵfac, providedIn: 'root' });
    return ReportsService;
}());
exports.ReportsService = ReportsService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ReportsService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root'
            }]
    }], function () { return [{ type: i1.HttpClient }]; }, null); })();


/***/ }),

/***/ "./src/app/shared/services/team-payment.service.ts":
/*!*********************************************************!*\
  !*** ./src/app/shared/services/team-payment.service.ts ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TeamPaymentService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var TeamPaymentService = /** @class */ (function () {
    function TeamPaymentService(http) {
        this.http = http;
    }
    TeamPaymentService.prototype.updateTeamPlan = function (params) {
        return this.http.put(environment_1.environment.backend_api + "payments/usage_plan/team/" + (params === null || params === void 0 ? void 0 : params.teamId), {
            billing_cycle: (params === null || params === void 0 ? void 0 : params.billingCycle) || 'MONTHLY',
            code: params === null || params === void 0 ? void 0 : params.code,
            console_type: params === null || params === void 0 ? void 0 : params.consoleType,
            currency: (params === null || params === void 0 ? void 0 : params.currency) || 'USD',
            total_payment: (params === null || params === void 0 ? void 0 : params.totalPayment) || 0,
            card_token: (params === null || params === void 0 ? void 0 : params.cardToken) || '',
        });
    };
    TeamPaymentService.prototype.cancelDowngradeTeamPlan = function (params) {
        return this.http.put(environment_1.environment.backend_api + "payments/cancel_upgrade_plan/team/" + (params === null || params === void 0 ? void 0 : params.teamId), {
            billing_cycle: (params === null || params === void 0 ? void 0 : params.billingCycle) || 'MONTHLY',
            code: params === null || params === void 0 ? void 0 : params.code,
            console_type: params === null || params === void 0 ? void 0 : params.consoleType,
            currency: (params === null || params === void 0 ? void 0 : params.currency) || 'USD',
        });
    };
    TeamPaymentService.prototype.buyUser = function (params) {
        return this.http.put(environment_1.environment.backend_api + "payments/buy_user/team/" + (params === null || params === void 0 ? void 0 : params.teamId), {
            total_new_users: params.totalNewUsers,
            total_payment: params.totalPayment,
            card_token: params.cardToken || '',
        });
    };
    TeamPaymentService.prototype.getPaymentInfo = function (teamId) {
        return this.http.get(environment_1.environment.backend_api + "payments/team/" + teamId);
    };
    TeamPaymentService.prototype.getListCard = function (params) {
        var options = {
            team_id: params.team_id,
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            if (options[key] !== undefined && options[key] !== null) {
                getParams.set(key, options[key]);
            }
        }
        return this.http.get(environment_1.environment.backend_api + "payments/cards?" + getParams.toString());
    };
    TeamPaymentService.prototype.getPaymentHistory = function (params) {
        var options = {
            payment_type: params.payment_type,
            page_size: params.page_size,
            page_number: params.page_number,
            sort_field: params.sort_field,
            asc_sort: params.asc_sort,
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "payments/team/" +
            params.team_id +
            "/histories?" +
            getParams.toString());
    };
    TeamPaymentService.prototype.downloadReceipt = function (params) {
        var options = {
            auth_token: params.auth_token,
            company_id: params.company_id,
            team_id: params.team_id,
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "download/teams/receipts/" +
            params.payment_info_id +
            "?" +
            getParams.toString(), {
            headers: {
                'Content-Type': 'application/json',
                'auth-token': params.auth_token,
                responseType: 'blob',
            },
            responseType: 'blob',
        });
    };
    TeamPaymentService.ɵfac = function TeamPaymentService_Factory(t) { return new (t || TeamPaymentService)(i0.ɵɵinject(i1.HttpClient)); };
    TeamPaymentService.ɵprov = i0.ɵɵdefineInjectable({ token: TeamPaymentService, factory: TeamPaymentService.ɵfac, providedIn: 'root' });
    return TeamPaymentService;
}());
exports.TeamPaymentService = TeamPaymentService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TeamPaymentService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root',
            }]
    }], function () { return [{ type: i1.HttpClient }]; }, null); })();


/***/ }),

/***/ "./src/app/shared/services/team-setting.service.ts":
/*!*********************************************************!*\
  !*** ./src/app/shared/services/team-setting.service.ts ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TeamSettingService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var TeamSettingService = /** @class */ (function () {
    function TeamSettingService(http) {
        this.http = http;
    }
    TeamSettingService.prototype.getPasswordPolicySetting = function (params) {
        var options = {
            auth_token: params.auth_token
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "team/settings/password_policy?" +
            getParams.toString());
    };
    TeamSettingService.prototype.getTeamSettingByType = function (params) {
        var options = {
            team_id: params.team_id,
            type: params.type,
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "team/settings?" +
            getParams.toString());
    };
    TeamSettingService.prototype.updateSecureMailSettings = function (params) {
        return this.http.put(environment_1.environment.backend_api + "team/settings/secure_mail", {
            team_id: params.team_id,
            force_setting: params.force_setting,
            support_protected_types: params.support_protected_types,
            banned_extension: params.banned_extension,
            link_expiry_date: params.link_expiry_date,
            file_expiry_date: params.file_expiry_date,
            link_settings: params.link_settings,
            drm_setting: params.drm_setting,
            watermark_setting: params.watermark_setting,
        });
    };
    TeamSettingService.prototype.updateNotificationSettings = function (params) {
        return this.http.put(environment_1.environment.backend_api + "team/settings/notification", {
            team_id: params.team_id,
            notify_setting: params.notify_setting,
        });
    };
    TeamSettingService.prototype.updatePolicySettings = function (params) {
        var body = {
            team_id: params.team_id,
            enable_two_factor: params.enable_two_factor,
            default_policy: params.default_policy,
            account_lockout: params.account_lockout,
            session_age: params.session_age,
            session_age_type: params.session_age_type,
            password_age: params.password_age,
            first_time_login: params.first_time_login,
        };
        if (params.default_policy === 0) {
            body.min = params.min;
            body.max = params.max;
            body.number = params.number;
            body.capital = params.capital;
            body.lower = params.lower;
            body.special = params.special;
        }
        if (params.account_lockout === 1) {
            body.account_lockout_threshold = params.account_lockout_threshold;
            body.account_lockout_duration = params.account_lockout_duration;
            body.time_reset_lockout = params.time_reset_lockout;
        }
        return this.http.put(environment_1.environment.backend_api + "team/settings/password_policy", body);
    };
    TeamSettingService.ɵfac = function TeamSettingService_Factory(t) { return new (t || TeamSettingService)(i0.ɵɵinject(i1.HttpClient)); };
    TeamSettingService.ɵprov = i0.ɵɵdefineInjectable({ token: TeamSettingService, factory: TeamSettingService.ɵfac, providedIn: 'root' });
    return TeamSettingService;
}());
exports.TeamSettingService = TeamSettingService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TeamSettingService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root'
            }]
    }], function () { return [{ type: i1.HttpClient }]; }, null); })();


/***/ }),

/***/ "./src/app/shared/services/team.service.ts":
/*!*************************************************!*\
  !*** ./src/app/shared/services/team.service.ts ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TeamService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var http_1 = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var TeamService = /** @class */ (function () {
    function TeamService(http) {
        this.http = http;
    }
    TeamService.prototype.getTeamInfo = function (teamId) {
        return this.http.get(environment_1.environment.backend_api + "teams/" + teamId);
    };
    TeamService.prototype.setTeam = function (team) {
        this.team = team;
    };
    TeamService.prototype.getTeam = function () {
        return this.team;
    };
    TeamService.prototype.updateTeamInfo = function (params) {
        var body;
        if (params.is_update_name) {
            body = {
                team_name: params.name,
            };
        }
        else {
            body = {
                allowed_file_extension: params.allowed_file_extension,
                settings: params.settings,
            };
        }
        return this.http.put(environment_1.environment.backend_api + "teams/" + params.team_id, body);
    };
    TeamService.prototype.resetDefaultLogo = function (params) {
        return this.http.put(environment_1.environment.backend_api + "teams/" + params.team_id + "/logo", {});
    };
    TeamService.prototype.updateTeamLogo = function (teamId, body) {
        return this.http.post(environment_1.environment.backend_api + "teams/" + teamId + "/logo", body, {
            headers: new http_1.HttpHeaders({
            // 'Content-Type': 'multipart/form-data'
            }),
        });
    };
    TeamService.ɵfac = function TeamService_Factory(t) { return new (t || TeamService)(i0.ɵɵinject(i1.HttpClient)); };
    TeamService.ɵprov = i0.ɵɵdefineInjectable({ token: TeamService, factory: TeamService.ɵfac, providedIn: 'root' });
    return TeamService;
}());
exports.TeamService = TeamService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TeamService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root',
            }]
    }], function () { return [{ type: i1.HttpClient }]; }, null); })();


/***/ }),

/***/ "./src/app/shared/services/user-group.service.ts":
/*!*******************************************************!*\
  !*** ./src/app/shared/services/user-group.service.ts ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.UserGroupService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var UserGroupService = /** @class */ (function () {
    function UserGroupService(http) {
        this.http = http;
    }
    UserGroupService.prototype.getGroupsPaging = function (params) {
        var options = {
            asc_sort: params.asc_sort,
            page_number: params.page_number,
            page_size: params.page_size,
            search_key: params.search_key,
            sort_field: params.sort_field,
            team_id: params.team_id
        };
        var getParams = new URLSearchParams();
        // tslint:disable-next-line:forin
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "user_groups?" + getParams.toString());
    };
    UserGroupService.prototype.getGroupsAll = function () {
        return this.http.get(environment_1.environment.backend_api + "user_groups/all");
    };
    UserGroupService.prototype.getGroupsAllPaging = function (params) {
        var options = {
            asc_sort: params.asc_sort,
            page_number: params.page_number,
            page_size: params.page_size,
            search_key: params.search_key,
            sort_field: params.sort_field,
            team_id: params.team_id
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "user_groups?" + getParams.toString());
    };
    UserGroupService.prototype.createGroup = function (params) {
        return this.http.post(environment_1.environment.backend_api + "user_groups", {
            team_id: params.team_id,
            name: params.name,
            emails: params.emails,
            description: params.description
        });
    };
    UserGroupService.prototype.deleteGroup = function (params) {
        var options = {
            team_id: params.team_id,
            user_group_ids: params.user_group_ids,
        };
        var deleteParams = new URLSearchParams();
        for (var key in options) {
            deleteParams.set(key, options[key]);
        }
        return this.http.delete(environment_1.environment.backend_api + "user_groups?" + deleteParams.toString());
    };
    UserGroupService.prototype.getGroupDetail = function (params) {
        var options = {
            team_id: params.team_id
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "user_groups/" + params.group_user_id + "?" + getParams.toString());
    };
    UserGroupService.prototype.updateGroup = function (params) {
        return this.http.put(environment_1.environment.backend_api + "user_groups/" + params.group_user_id, {
            team_id: params.team_id,
            name: params.name,
            description: params.description
        });
    };
    UserGroupService.prototype.getGroupUsersPaging = function (params) {
        var options = {
            asc_sort: params.asc_sort,
            page_number: params.page_number,
            page_size: params.page_size,
            search_key: params.search_key,
            sort_field: params.sort_field,
            team_id: params.team_id,
            is_in_group: params.is_in_group
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "user_groups/" + params.group_user_id + "/users?" + getParams.toString());
    };
    UserGroupService.prototype.addUsersToGroup = function (params) {
        return this.http.post(environment_1.environment.backend_api + "user_groups/users", {
            team_id: params.team_id,
            group_user_ids: params.group_user_ids,
            user_member_ids: params.user_member_ids,
            override: params.override
        });
    };
    UserGroupService.prototype.moveUsersToGroup = function (params) {
        return this.http.put(environment_1.environment.backend_api + "user_groups/" + params.group_user_id + "/users", {
            team_id: params.team_id,
            dest_group_user_id: params.dest_group_user_id,
            user_member_ids: params.user_member_ids,
            override: params.override
        });
    };
    UserGroupService.prototype.removeUsersFromGroup = function (params) {
        var options = {
            team_id: params.team_id,
            user_member_ids: params.user_member_ids,
        };
        var deleteParams = new URLSearchParams();
        for (var key in options) {
            deleteParams.set(key, options[key]);
        }
        return this.http.delete(environment_1.environment.backend_api + "user_groups/"
            + params.group_user_id + "/users?" + deleteParams.toString());
    };
    UserGroupService.prototype.getGroupExceptPaging = function (params) {
        var options = {
            asc_sort: params.asc_sort,
            page_number: params.page_number,
            page_size: params.page_size,
            search_key: params.search_key,
            sort_field: params.sort_field,
            team_id: params.team_id
        };
        var getParams = new URLSearchParams();
        for (var key in options) {
            getParams.set(key, options[key]);
        }
        return this.http.get(environment_1.environment.backend_api + "user_groups/" + params.group_user_id + "/except?" + getParams.toString());
    };
    UserGroupService.prototype.getGroupMembers = function (params) {
        return this.http.get(environment_1.environment.backend_api + "user_groups/users?group_user_ids=" + params.group_user_ids + "&team_id=" + params.team_id);
    };
    UserGroupService.ɵfac = function UserGroupService_Factory(t) { return new (t || UserGroupService)(i0.ɵɵinject(i1.HttpClient)); };
    UserGroupService.ɵprov = i0.ɵɵdefineInjectable({ token: UserGroupService, factory: UserGroupService.ɵfac, providedIn: 'root' });
    return UserGroupService;
}());
exports.UserGroupService = UserGroupService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UserGroupService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root'
            }]
    }], function () { return [{ type: i1.HttpClient }]; }, null); })();


/***/ }),

/***/ "./src/app/shared/services/user.service.ts":
/*!*************************************************!*\
  !*** ./src/app/shared/services/user.service.ts ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.UserService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var UserService = /** @class */ (function () {
    function UserService(http) {
        this.http = http;
    }
    UserService.prototype.getUsersAll = function (teamId) {
        return this.http.get(environment_1.environment.backend_api + "users/" + teamId + "/all");
    };
    UserService.ɵfac = function UserService_Factory(t) { return new (t || UserService)(i0.ɵɵinject(i1.HttpClient)); };
    UserService.ɵprov = i0.ɵɵdefineInjectable({ token: UserService, factory: UserService.ɵfac, providedIn: 'root' });
    return UserService;
}());
exports.UserService = UserService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UserService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root'
            }]
    }], function () { return [{ type: i1.HttpClient }]; }, null); })();


/***/ }),

/***/ "./src/app/shared/shared.module.ts":
/*!*****************************************!*\
  !*** ./src/app/shared/shared.module.ts ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.SharedModule = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var ng_select_1 = __webpack_require__(/*! @ng-select/ng-select */ "./node_modules/@ng-select/ng-select/__ivy_ngcc__/fesm2015/ng-select-ng-select.js");
var core_2 = __webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js");
var ngx_image_cropper_1 = __webpack_require__(/*! ngx-image-cropper */ "./node_modules/ngx-image-cropper/__ivy_ngcc__/fesm5/ngx-image-cropper.js");
var prime_ng_module_1 = __webpack_require__(/*! ../prime-ng/prime-ng.module */ "./src/app/prime-ng/prime-ng.module.ts");
var receipt_template_component_1 = __webpack_require__(/*! ./components/receipt-template/receipt-template.component */ "./src/app/shared/components/receipt-template/receipt-template.component.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var SharedModule = /** @class */ (function () {
    function SharedModule() {
    }
    SharedModule.ɵmod = i0.ɵɵdefineNgModule({ type: SharedModule });
    SharedModule.ɵinj = i0.ɵɵdefineInjector({ factory: function SharedModule_Factory(t) { return new (t || SharedModule)(); }, imports: [[
                common_1.CommonModule,
                prime_ng_module_1.PrimeNgModule,
                core_2.TranslateModule,
                forms_1.FormsModule,
                forms_1.ReactiveFormsModule,
                ng_select_1.NgSelectModule,
                ngx_image_cropper_1.ImageCropperModule,
                common_1.CommonModule,
                core_2.TranslateModule,
            ], prime_ng_module_1.PrimeNgModule,
            core_2.TranslateModule,
            forms_1.FormsModule,
            forms_1.ReactiveFormsModule,
            ng_select_1.NgSelectModule,
            ngx_image_cropper_1.ImageCropperModule,
            core_2.TranslateModule] });
    return SharedModule;
}());
exports.SharedModule = SharedModule;
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SharedModule, { declarations: [receipt_template_component_1.ReceiptTemplateComponent], imports: [common_1.CommonModule,
        prime_ng_module_1.PrimeNgModule,
        core_2.TranslateModule,
        forms_1.FormsModule,
        forms_1.ReactiveFormsModule,
        ng_select_1.NgSelectModule,
        ngx_image_cropper_1.ImageCropperModule,
        common_1.CommonModule,
        core_2.TranslateModule], exports: [prime_ng_module_1.PrimeNgModule,
        core_2.TranslateModule,
        forms_1.FormsModule,
        forms_1.ReactiveFormsModule,
        ng_select_1.NgSelectModule,
        ngx_image_cropper_1.ImageCropperModule,
        receipt_template_component_1.ReceiptTemplateComponent,
        core_2.TranslateModule] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SharedModule, [{
        type: core_1.NgModule,
        args: [{
                declarations: [receipt_template_component_1.ReceiptTemplateComponent],
                imports: [
                    common_1.CommonModule,
                    prime_ng_module_1.PrimeNgModule,
                    core_2.TranslateModule,
                    forms_1.FormsModule,
                    forms_1.ReactiveFormsModule,
                    ng_select_1.NgSelectModule,
                    ngx_image_cropper_1.ImageCropperModule,
                    common_1.CommonModule,
                    core_2.TranslateModule,
                ],
                exports: [
                    prime_ng_module_1.PrimeNgModule,
                    core_2.TranslateModule,
                    forms_1.FormsModule,
                    forms_1.ReactiveFormsModule,
                    ng_select_1.NgSelectModule,
                    ngx_image_cropper_1.ImageCropperModule,
                    receipt_template_component_1.ReceiptTemplateComponent,
                    core_2.TranslateModule,
                ],
            }]
    }], null, null); })();


/***/ }),

/***/ "./src/app/shared/utils.service.ts":
/*!*****************************************!*\
  !*** ./src/app/shared/utils.service.ts ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.UtilsService = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var _ = tslib_1.__importStar(__webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js"));
var constant_module_1 = __webpack_require__(/*! ../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var UtilsService = /** @class */ (function () {
    function UtilsService(t) {
        this.t = t;
        this.constant = constant_module_1.Constant;
    }
    UtilsService.prototype.generatePackageFeaturesConfig = function (packageName, numberOfUsers, consoleType, billingCycle) {
        if (packageName === void 0) { packageName = 'STARTER'; }
        if (numberOfUsers === void 0) { numberOfUsers = 1; }
        if (consoleType === void 0) { consoleType = 'SECURE_DRIVE'; }
        if (billingCycle === void 0) { billingCycle = 'MONTHLY'; }
        var packageFeaturesConfig = {
            SECURE_DRIVE: {
                commonFeatures: [
                    { key: 'features.supported_protected_files' },
                    { key: 'features.shared_space', paramKey: 'storageSpace' },
                    {
                        key: billingCycle === 'ANNUALLY'
                            ? 'features.secure_shares_per_year'
                            : 'features.secure_shares_per_month',
                        paramKey: 'secureShares',
                    },
                    { key: 'features.copy_protection' },
                    { key: 'features.tracking_documents' },
                    { key: 'features.revoke_access_remotely' },
                    { key: 'features.secure_online_viewer' },
                    { key: 'features.watermark_view_online' },
                    { key: 'features.two_factor_auth' },
                    { key: 'features.printing_control' },
                    { key: 'features.expiry_setting' },
                ],
                packages: {
                    STARTER: {
                        storageSpacePerUser: 5,
                        secureSharesPerUser: 100,
                    },
                    TEAM: {
                        storageSpacePerUser: 5,
                        secureSharesPerUser: 100,
                    },
                    BUSINESS: {
                        storageSpacePerUser: 5,
                        secureSharesPerUser: 150,
                    },
                },
            },
            SECURE_MAIL: {
                commonFeatures: [
                    { key: 'features.supported_protected_files' },
                    { key: 'features.shared_space', paramKey: 'storageSpace' },
                    { key: 'features.maximum_file_size', paramKey: 'maximumFileSize' },
                    {
                        key: billingCycle === 'ANNUALLY'
                            ? 'features.secure_shares_per_year'
                            : 'features.secure_shares_per_month',
                        paramKey: 'secureShares',
                    },
                    { key: 'features.copy_protection' },
                    { key: 'features.tracking_documents' },
                    { key: 'features.revoke_access_remotely' },
                    { key: 'features.secure_online_viewer' },
                    { key: 'features.watermark_view_online' },
                    { key: 'features.two_factor_auth' },
                    { key: 'features.printing_control' },
                    { key: 'features.expiry_setting' },
                ],
                packages: {
                    FREE: {
                        storageSpace: '100MB',
                        maximumFileSize: '1MB',
                        secureShares: '5',
                    },
                    PERSONAL: {
                        storageSpace: '5GB',
                        maximumFileSize: '1GB',
                        secureShares: '100',
                    },
                    TEAM: {
                        storageSpacePerUser: 5,
                        secureSharesPerUser: 100,
                        maximumFileSize: '2GB',
                    },
                    BUSINESS: {
                        storageSpacePerUser: 5,
                        secureSharesPerUser: 100,
                        maximumFileSize: '5GB',
                    },
                },
            },
        };
        // Get configuration based on consoleType
        var consoleConfig = packageFeaturesConfig[consoleType];
        if (!consoleConfig) {
            return {
                features: [],
                totalFeatures: 0,
                package: packageName,
                values: {},
                error: "Console type " + consoleType + " not supported",
            };
        }
        var packageConfig = consoleConfig.packages[packageName];
        if (!packageConfig) {
            console.error("Package " + packageName + " not found for console type " + consoleType);
            return {
                features: [],
                totalFeatures: 0,
                package: packageName,
                values: {},
                error: "Package " + packageName + " not found for console type " + consoleType,
            };
        }
        var packageValues = tslib_1.__assign({}, packageConfig);
        if (packageName !== 'FREE' && packageName !== 'PERSONAL') {
            packageValues.storageSpace =
                packageValues.storageSpacePerUser * numberOfUsers + 'GB';
            if (billingCycle === 'ANNUALLY') {
                packageValues.secureShares =
                    packageValues.secureSharesPerUser * numberOfUsers * 12;
            }
            else {
                packageValues.secureShares =
                    packageValues.secureSharesPerUser * numberOfUsers;
            }
        }
        var features = tslib_1.__spread(consoleConfig.commonFeatures);
        var featuresWithParams = features.map(function (feature) {
            if (feature.paramKey && packageValues.hasOwnProperty(feature.paramKey)) {
                return {
                    key: feature.key,
                    params: { value: packageValues[feature.paramKey] },
                };
            }
            return { key: feature.key };
        });
        return {
            features: featuresWithParams,
            totalFeatures: featuresWithParams.length,
            package: packageName,
            consoleType: consoleType,
            values: packageValues,
        };
    };
    UtilsService.prototype.translateWithParams = function (key, params) {
        if (key && key === '') {
            return 'N/A';
        }
        var translateTxt = '';
        this.t.get(key, params).subscribe(function (res) {
            translateTxt = res;
        });
        return translateTxt;
    };
    UtilsService.prototype.translate = function (key) {
        if (key && key === '') {
            return 'N/A';
        }
        var translateTxt = '';
        this.t.get(key).subscribe(function (res) {
            translateTxt = res;
        });
        return translateTxt;
    };
    UtilsService.prototype.translateList = function (keys, object) {
        return this.t.get(keys, object);
    };
    UtilsService.prototype.convertSecondToTime = function (secondInput) {
        var seconds = parseInt(secondInput, 10);
        var hrs = Math.floor(seconds / 3600);
        seconds -= hrs * 3600;
        var mnts = Math.floor(seconds / 60);
        seconds -= mnts * 60;
        var strHrs = hrs > 0 ? (hrs > 9 ? hrs : '0' + hrs) + ':' : '';
        var strMin = (mnts > 9 ? mnts : '0' + mnts) + ':';
        var strSec = seconds > 9 ? seconds : '0' + seconds;
        return strHrs + strMin + strSec;
    };
    UtilsService.prototype.getPasswordPolicyError = function (passwordSetting, callback) {
        var passwordError = '';
        var params = [
            'password_policy.default',
            'password_policy.include',
            'password_policy.capital',
            'password_policy.lower',
            'password_policy.special',
            'password_policy.number',
            'password_policy.characters',
        ];
        this.translateList(params, passwordSetting).subscribe(function (res) {
            passwordError += res[params[0]];
            if (passwordSetting.capital != 0 ||
                passwordSetting.lower != 0 ||
                passwordSetting.number != 0 ||
                passwordSetting.special != 0) {
                passwordError += res[params[1]];
                if (passwordSetting.capital != 0) {
                    passwordError += res[params[2]] + ',';
                }
                if (passwordSetting.lower != 0) {
                    passwordError += res[params[3]] + ',';
                }
                if (passwordSetting.number != 0) {
                    passwordError += res[params[5]] + ',';
                }
                if (passwordSetting.special != 0) {
                    passwordError += res[params[4]] + ',';
                }
                passwordError = passwordError.slice(0, passwordError.length - 1);
                passwordError += res[params[6]];
            }
            callback && callback(passwordError);
        });
    };
    UtilsService.prototype.isContainSpecialChar = function (value, sChars) {
        var check = false;
        for (var i in sChars) {
            if (value.indexOf(sChars[i]) > -1) {
                check = true;
                break;
            }
        }
        return check;
    };
    UtilsService.prototype.dataURItoBlob = function (dataURI) {
        // convert base64/URLEncoded data component to raw binary data held in a string
        var byteString;
        if (dataURI.split(',')[0].indexOf('base64') >= 0) {
            byteString = atob(dataURI.split(',')[1]);
        }
        else {
            byteString = unescape(dataURI.split(',')[1]);
        }
        // separate out the mime component
        var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];
        // write the bytes of the string to a typed array
        var ia = new Uint8Array(byteString.length);
        for (var i = 0; i < byteString.length; i++) {
            ia[i] = byteString.charCodeAt(i);
        }
        return new Blob([ia], { type: mimeString });
    };
    UtilsService.prototype.formatBytes = function (bytes, decimals) {
        if (decimals === void 0) { decimals = 1; }
        if (bytes === 0) {
            return '0 Bytes';
        }
        var k = 1024;
        var dm = decimals < 0 ? 0 : decimals;
        var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
        var i = Math.floor(Math.log(bytes) / Math.log(k));
        return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
    };
    // Format date based on the difference between 2 days
    UtilsService.prototype.formatDateBasedOnDiff = function (datepipe, dateChange) {
        var currentDate = new Date();
        var dateSent = new Date(dateChange);
        var cal = Math.floor((Date.UTC(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate()) -
            Date.UTC(dateSent.getFullYear(), dateSent.getMonth(), dateSent.getDate())) /
            (1000 * 60 * 60 * 24));
        if (cal === 0) {
            return datepipe.transform(dateChange, 'HH:mm:ss');
        }
        else {
            return datepipe.transform(dateChange, 'MM/dd/YYYY HH:mm:ss');
        }
    };
    UtilsService.prototype.searchTreeNodes = function (element, matchingData) {
        if (element.data === matchingData.code) {
            return element;
        }
        else if (element.children != null) {
            var i = void 0;
            var result = null;
            for (i = 0; result == null && i < element.children.length; i++) {
                result = this.searchTreeNodes(element.children[i], matchingData);
            }
            return result;
        }
        return null;
    };
    UtilsService.prototype.checkAllNodes = function (tree, result) {
        var _this = this;
        if (!result.includes(tree)) {
            tree.partialSelected = false;
            result.push(tree);
        }
        if (tree.children) {
            tree.children.forEach(function (subTree) {
                _this.checkAllNodes(subTree, result);
            });
        }
        return;
    };
    //get length node 2 layer
    UtilsService.prototype.getLengthNodes = function (tree) {
        var count = 0;
        tree.forEach(function (subTree) {
            count++;
            count = count + subTree.children.length;
        });
        return count;
    };
    UtilsService.prototype.getUTCDate = function (date) {
        return new Date(date.getTime() + date.getTimezoneOffset() * 60000);
    };
    //compare 2 date
    UtilsService.prototype.calc2Date = function (date1, date2) {
        return (date2.getTime() - date1.getTime()) / (1000 * 3600 * 24);
    };
    UtilsService.prototype.addDays = function (date, days) {
        var copy = new Date(Number(date));
        copy.setDate(date.getDate() + days);
        return copy;
    };
    UtilsService.prototype.subtractDays = function (date, days) {
        var copy = new Date(Number(date));
        copy.setDate(date.getDate() - days);
        return copy;
    };
    UtilsService.prototype.getTextAction = function (history, historyTypes) {
        //get length result
        var result = history.data && history.data.result, length = result ? result.length : 0;
        var historyType = historyTypes.find(function (x) { return x.value == history.history_type; });
        if (length > 1 &&
            this.translate("reports.action_text." + historyType.name + "s").includes('{{count}}')) {
            historyType.contents = this.translateWithParams("reports.action_text." + historyType.name + "s", { count: length });
            result = historyType.contents;
        }
        else {
            result = historyType.content;
        }
        return result;
    };
    UtilsService.prototype.convertBytesToGB = function (value) {
        if (value === undefined || value === null) {
            return 0;
        }
        return value / 1024 / 1024 / 1024;
    };
    UtilsService.prototype.getGroupFromMimeType = function (file) {
        if (file === undefined) {
            return null;
        }
        var group = null;
        if (file.file_type) {
            switch (file.file_type) {
                case 1:
                case 2:
                case 3:
                case 4:
                    group = 'secure';
                    break;
                default:
                    if (file.content_type === undefined || file.content_type === null) {
                        return null;
                    }
                    // Not in secure file
                    _.forIn(this.constant.MINE_TYPES, function (value, key) {
                        if (group === null) {
                            var list = value.types || value;
                            for (var i in list) {
                                if (file.content_type === list[i]) {
                                    group = key;
                                    break;
                                }
                            }
                        }
                    });
                    break;
            }
        }
        else {
            if (file.content_type === undefined || file.content_type === null) {
                return null;
            }
            // Not in secure file
            _.forIn(this.constant.MINE_TYPES, function (value, key) {
                if (group === null) {
                    var list = value.types || value;
                    for (var i in list) {
                        if (file.content_type === list[i]) {
                            group = key;
                            break;
                        }
                    }
                }
            });
        }
        return group;
    };
    UtilsService.prototype.getGroupFromMimeTypeByFileType = function (fileType, contentType) {
        var group = null;
        switch (Number(fileType)) {
            case 1:
                group = 'pdf';
                break;
            case 2:
                group = 'word';
                break;
            case 3:
                group = 'excel';
                break;
            case 4:
                group = 'presentation';
                break;
            default:
                // Not in secure file
                _.forIn(this.constant.MINE_TYPES, function (value, key) {
                    if (group === null) {
                        var list = value.types || value;
                        for (var i in list) {
                            if (contentType === list[i]) {
                                group = key;
                                break;
                            }
                        }
                    }
                });
                break;
        }
        return group;
    };
    UtilsService.prototype.toTitleCase = function (str) {
        return str.substr(0, 1).toUpperCase() + str.substr(1);
    };
    UtilsService.ɵfac = function UtilsService_Factory(t) { return new (t || UtilsService)(i0.ɵɵinject(i1.TranslateService)); };
    UtilsService.ɵprov = i0.ɵɵdefineInjectable({ token: UtilsService, factory: UtilsService.ɵfac, providedIn: 'root' });
    return UtilsService;
}());
exports.UtilsService = UtilsService;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(UtilsService, [{
        type: core_1.Injectable,
        args: [{
                providedIn: 'root',
            }]
    }], function () { return [{ type: i1.TranslateService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/checkout/checkout.component.ts":
/*!***********************************************************!*\
  !*** ./src/app/team-admin/checkout/checkout.component.ts ***!
  \***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.CheckoutComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var constant_module_1 = __webpack_require__(/*! ../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/team-payment.service */ "./src/app/shared/services/team-payment.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/pricing-package.service */ "./src/app/shared/services/pricing-package.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/team.service */ "./src/app/shared/services/team.service.ts"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! ../payment-card-form/payment-card-form.component */ "./src/app/team-admin/payment-card-form/payment-card-form.component.ts"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputnumber */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputnumber.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var _c0 = ["paymentCardForm"];
function CheckoutComponent_h3_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "h3", 51);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.upgrade_plan"), " ");
} }
function CheckoutComponent_h3_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "h3", 51);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.buy_user"), " ");
} }
function CheckoutComponent_span_35_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 48);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r2.currentPackageDetail && (ctx_r2.currentPackageDetail == null ? null : ctx_r2.currentPackageDetail.billing_cycle) === "ANNUALLY" ? i0.ɵɵpipeBind1(2, 1, "label.annually") : i0.ɵɵpipeBind1(3, 3, "label.monthly"), " ");
} }
function CheckoutComponent_span_36_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 48);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", (ctx_r3.newPackageDetail == null ? null : ctx_r3.newPackageDetail.billing_cycle) === "ANNUALLY" ? i0.ɵɵpipeBind1(2, 1, "label.annually") : i0.ɵɵpipeBind1(3, 3, "label.monthly"), " ");
} }
function CheckoutComponent_span_44_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "number");
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind2(2, 2, ctx_r4.currentPackageDetail == null ? null : ctx_r4.currentPackageDetail.price, "1.2-2"), " ", i0.ɵɵpipeBind1(3, 5, "label.currency_unit.vnd"), " ");
} }
function CheckoutComponent_span_45_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵpipe(3, "number");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(2, 2, "label.currency_unit.yen"), " ", i0.ɵɵpipeBind2(3, 4, ctx_r5.currentPackageDetail == null ? null : ctx_r5.currentPackageDetail.price, "1.2-2"), " ");
} }
function CheckoutComponent_span_46_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵpipe(3, "number");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(2, 2, "label.currency_unit.usd"), " ", i0.ɵɵpipeBind2(3, 4, ctx_r6.currentPackageDetail == null ? null : ctx_r6.currentPackageDetail.price, "1.2-2"), " ");
} }
function CheckoutComponent_div_56_h3_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "h3", 51);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.buy_user"), " ");
} }
function CheckoutComponent_div_56_div_6_Template(rf, ctx) { if (rf & 1) {
    var _r36 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 58);
    i0.ɵɵlistener("click", function CheckoutComponent_div_56_div_6_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r36); var card_r34 = ctx.$implicit; var ctx_r35 = i0.ɵɵnextContext(2); return ctx_r35.selectCard(card_r34.id); });
    i0.ɵɵelementStart(1, "div", 59);
    i0.ɵɵelementStart(2, "div");
    i0.ɵɵelementStart(3, "div", 60);
    i0.ɵɵelement(4, "i", 61);
    i0.ɵɵelementStart(5, "span", 62);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "div", 63);
    i0.ɵɵelementStart(8, "span", 27);
    i0.ɵɵtext(9);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var card_r34 = ctx.$implicit;
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("ngClass", "pi pi-credit-card");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ", card_r34.card_user_number, "");
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1(" Expires ", card_r34.expire_date, " ");
} }
function CheckoutComponent_div_56_button_8_Template(rf, ctx) { if (rf & 1) {
    var _r38 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 64);
    i0.ɵɵlistener("click", function CheckoutComponent_div_56_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r38); var ctx_r37 = i0.ɵɵnextContext(2); return ctx_r37.showModalConfirm(); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, "label.package.upgrade"));
} }
function CheckoutComponent_div_56_button_9_Template(rf, ctx) { if (rf & 1) {
    var _r40 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 65);
    i0.ɵɵlistener("click", function CheckoutComponent_div_56_button_9_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r40); var ctx_r39 = i0.ɵɵnextContext(2); return ctx_r39.showModalConfirm(); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r33 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 2, "label.buy_user"));
    i0.ɵɵproperty("disabled", ctx_r33.numberOfUsers === 0);
} }
function CheckoutComponent_div_56_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 52);
    i0.ɵɵtemplate(1, CheckoutComponent_div_56_h3_1_Template, 3, 3, "h3", 7);
    i0.ɵɵelementStart(2, "h3", 39);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "div", 53);
    i0.ɵɵtemplate(6, CheckoutComponent_div_56_div_6_Template, 10, 3, "div", 54);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "div", 55);
    i0.ɵɵtemplate(8, CheckoutComponent_div_56_button_8_Template, 2, 3, "button", 56);
    i0.ɵɵtemplate(9, CheckoutComponent_div_56_button_9_Template, 2, 4, "button", 57);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r7 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r7.isBuyUser);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, "label.card_info"));
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngForOf", ctx_r7.savedCards);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", !ctx_r7.isBuyUser);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r7.isBuyUser);
} }
function CheckoutComponent_div_57_h4_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "h4");
    i0.ɵɵtext(1, "Add New Payment Method");
    i0.ɵɵelementEnd();
} }
function CheckoutComponent_div_57_Template(rf, ctx) { if (rf & 1) {
    var _r44 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtemplate(1, CheckoutComponent_div_57_h4_1_Template, 2, 0, "h4", 18);
    i0.ɵɵelementStart(2, "app-payment-card-form", 66, 67);
    i0.ɵɵlistener("cardCreated", function CheckoutComponent_div_57_Template_app_payment_card_form_cardCreated_2_listener($event) { i0.ɵɵrestoreView(_r44); var ctx_r43 = i0.ɵɵnextContext(); return ctx_r43.onCardCreated($event); })("cancelled", function CheckoutComponent_div_57_Template_app_payment_card_form_cancelled_2_listener() { i0.ɵɵrestoreView(_r44); var ctx_r45 = i0.ɵɵnextContext(); return ctx_r45.onCardFormCancelled(); })("confirmPayment", function CheckoutComponent_div_57_Template_app_payment_card_form_confirmPayment_2_listener($event) { i0.ɵɵrestoreView(_r44); var ctx_r46 = i0.ɵɵnextContext(); return ctx_r46.onCardConfirmRequest($event); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r8 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.savedCards.length > 0);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("showTitle", ctx_r8.savedCards.length === 0)("userInfo", ctx_r8.userDetails == null ? null : ctx_r8.userDetails.userInfo);
} }
function CheckoutComponent_div_62_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 68);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.your_new_plan"), ": ");
} }
function CheckoutComponent_div_63_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 68);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.your_current_plan"), ": ");
} }
function CheckoutComponent_li_74_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "li", 41);
    i0.ɵɵelementStart(1, "span", 69);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var feature_r47 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 1, feature_r47.key, feature_r47.params), " ");
} }
function CheckoutComponent_a_75_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.show_more_features"), " ");
} }
function CheckoutComponent_a_75_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.show_less_features"), " ");
} }
function CheckoutComponent_a_75_Template(rf, ctx) { if (rf & 1) {
    var _r51 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "a", 70);
    i0.ɵɵlistener("click", function CheckoutComponent_a_75_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r51); var ctx_r50 = i0.ɵɵnextContext(); return ctx_r50.toggleFeatures(); });
    i0.ɵɵtemplate(1, CheckoutComponent_a_75_span_1_Template, 3, 3, "span", 18);
    i0.ɵɵtemplate(2, CheckoutComponent_a_75_span_2_Template, 3, 3, "span", 18);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r12 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r12.showAllFeatures);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r12.showAllFeatures);
} }
function CheckoutComponent_div_77_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 71);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "uppercase");
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, "label.recurring_annual_cost")), " ");
} }
function CheckoutComponent_div_78_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 71);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "uppercase");
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, "label.recurring_month_cost")), " ");
} }
var _c1 = function () { return { width: "100%" }; };
function CheckoutComponent_div_79_Template(rf, ctx) { if (rf & 1) {
    var _r53 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 72);
    i0.ɵɵelementStart(1, "span", 73);
    i0.ɵɵelementStart(2, "p-inputNumber", 74);
    i0.ɵɵlistener("ngModelChange", function CheckoutComponent_div_79_Template_p_inputNumber_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r53); var ctx_r52 = i0.ɵɵnextContext(); return ctx_r52.numberOfUsers = $event; })("onInput", function CheckoutComponent_div_79_Template_p_inputNumber_onInput_2_listener($event) { i0.ɵɵrestoreView(_r53); var ctx_r54 = i0.ɵɵnextContext(); return ctx_r54.updateNumberOfUsers($event); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "label", 75);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r15 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(9, _c1));
    i0.ɵɵproperty("ngModel", ctx_r15.numberOfUsers)("disabled", ctx_r15.isDisabledForFreeOrPersonal())("showButtons", false)("inputStyle", i0.ɵɵpureFunction0(10, _c1));
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 7, "label.number_of_users"));
} }
function CheckoutComponent_div_81_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 38);
    i0.ɵɵelementStart(1, "span");
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "span", 39);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r16 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "label.day_remaining"));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r16.daysRemaining);
} }
function CheckoutComponent_div_82_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 38);
    i0.ɵɵelementStart(1, "span");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "span", 39);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r17 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r17.newPackageDetail == null ? null : ctx_r17.newPackageDetail.name);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate2("", ctx_r17.currencyUnit, "", ctx_r17.totalNewPackagePrice.toFixed(2), "");
} }
function CheckoutComponent_div_83_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 76);
    i0.ɵɵelementStart(1, "span");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "span", 39);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r18 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r18.currentPackageDetail == null ? null : ctx_r18.currentPackageDetail.name);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate2("", ctx_r18.currencyUnit, "", ctx_r18.userPrice.toFixed(2) || 0, "");
} }
var _c2 = function () { return { number_months: 12 }; };
function CheckoutComponent_div_84_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" x ", i0.ɵɵpipeBind2(2, 1, "label.annually_billing_cycle", i0.ɵɵpureFunction0(4, _c2)), " ");
} }
var _c3 = function (a0, a1, a2) { return { currency: a0, price: a1, number_user: a2 }; };
function CheckoutComponent_div_84_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 77);
    i0.ɵɵelementStart(1, "span", 78);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵtemplate(4, CheckoutComponent_div_84_span_4_Template, 3, 5, "span", 18);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r19 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 2, "label.summary_sub_text", i0.ɵɵpureFunction3(5, _c3, ctx_r19.currencyUnit, (ctx_r19.currentPackageDetail == null ? null : ctx_r19.currentPackageDetail.price) || 0, ctx_r19.numberOfUsers || 0)), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r19.isAnnuallyBilling);
} }
function CheckoutComponent_div_85_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 38);
    i0.ɵɵelementStart(1, "span");
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "span", 39);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r20 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "label.amount_deducted"));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate2("-", ctx_r20.currencyUnit, "", ctx_r20.totalCurrentPackagePrice.toFixed(2) || 0, "");
} }
var _c4 = function (a0) { return { days: a0 }; };
function CheckoutComponent_div_92_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 79);
    i0.ɵɵelement(1, "i", 80);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r21 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 1, "label.price_adjustment_note", i0.ɵɵpureFunction1(4, _c4, ctx_r21.daysRemaining)), " ");
} }
function CheckoutComponent_div_94_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 81);
    i0.ɵɵelementStart(1, "span", 82);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "span", 82);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r22 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "label.today_total"));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate2("", ctx_r22.currencyUnit, "", ctx_r22.totalPackagePrice.toFixed(2) || 0, "");
} }
function CheckoutComponent_div_95_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 81);
    i0.ɵɵelementStart(1, "span", 82);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "span", 82);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r23 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "label.today_total"));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate2("", ctx_r23.currencyUnit, "", ctx_r23.totalBuyUserPrice.toFixed(2) || 0, "");
} }
function CheckoutComponent_span_128_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r24 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" + ", ctx_r24.numberOfUserPurchased || 0, " ");
} }
function CheckoutComponent_td_133_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "td", 48);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r25 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r25.currentPackageDetail && (ctx_r25.currentPackageDetail == null ? null : ctx_r25.currentPackageDetail.billing_cycle) === "ANNUALLY" ? i0.ɵɵpipeBind1(2, 1, "label.annually") : i0.ɵɵpipeBind1(3, 3, "label.monthly"), " ");
} }
function CheckoutComponent_td_134_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "td", 48);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r26 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", (ctx_r26.newPackageDetail == null ? null : ctx_r26.newPackageDetail.billing_cycle) === "ANNUALLY" ? i0.ɵɵpipeBind1(2, 1, "label.annually") : i0.ɵɵpipeBind1(3, 3, "label.monthly"), " ");
} }
function CheckoutComponent_td_139_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "td", 48);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r27 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", ctx_r27.currencyUnit, "", ctx_r27.totalPackagePrice.toFixed(2) || 0, " ");
} }
function CheckoutComponent_td_140_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "td", 48);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r28 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", ctx_r28.currencyUnit, "", ctx_r28.totalBuyUserPrice.toFixed(2) || 0, " ");
} }
function CheckoutComponent_ng_template_141_Template(rf, ctx) { if (rf & 1) {
    var _r57 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 83);
    i0.ɵɵelementStart(1, "button", 84);
    i0.ɵɵlistener("click", function CheckoutComponent_ng_template_141_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r57); var ctx_r56 = i0.ɵɵnextContext(); return ctx_r56.cancelConfirmation(); });
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "button", 85);
    i0.ɵɵlistener("click", function CheckoutComponent_ng_template_141_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r57); var ctx_r58 = i0.ɵɵnextContext(); return ctx_r58.isBuyUser ? ctx_r58.doBuyUser() : ctx_r58.upgradePayment(); });
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r29 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(2, 4, "label.cancel"));
    i0.ɵɵproperty("loading", ctx_r29.loading);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(4, 6, "label.ok"));
    i0.ɵɵproperty("loading", ctx_r29.loading);
} }
var _c5 = function (a0) { return { "show-all": a0 }; };
var _c6 = function () { return { width: "450px" }; };
var CheckoutComponent = /** @class */ (function () {
    function CheckoutComponent(router, route, teamPaymentService, AuthenticateService, pricingPackageService, utilsService, messageService, teamService) {
        this.router = router;
        this.route = route;
        this.teamPaymentService = teamPaymentService;
        this.AuthenticateService = AuthenticateService;
        this.pricingPackageService = pricingPackageService;
        this.utilsService = utilsService;
        this.messageService = messageService;
        this.teamService = teamService;
        this.currencyUnit = '$';
        this.billingCycle = 'MONTHLY';
        this.isAnnuallyBilling = false;
        this.totalNewPackagePrice = 0;
        this.totalCurrentPackagePrice = 0;
        this.totalPackagePrice = 0;
        this.totalBuyUserPrice = 0;
        this.userPrice = 0;
        this.numberOfUsers = 0;
        this.numberOfUsersNewPackage = 0;
        this.minimumUsers = 0;
        this.packagePrice = 0;
        this.userDetails = {};
        this.showAllFeatures = false;
        this.newPackageId = '';
        this.savedCards = [];
        this.selectedCardId = null;
        this.showNewCardForm = true;
        this.loadingCards = false;
        this.cardError = null;
        this.daysUntilExpiry = 0;
        this.packageFeatures = [];
        this.visibleFeatures = [];
        this.consoleType = 'SECURE_DRIVE';
        this.isBuyUser = false;
        this.displayConfirmModal = false;
        this.stripeDetails = null;
        this.daysRemaining = 0;
        this.pricePerDayNewPackage = 0;
        this.pricePerDayCurrentPackage = 0;
        this.usersToChargeNewPackage = 0;
        this.usersToChargeCurrentPackage = 0;
        this.loading = false;
        this.isTrial = false;
        this.totalCredit = 0;
        this.numberOfUserPurchased = 0;
    }
    CheckoutComponent.prototype.ngOnInit = function () {
        var _this = this;
        var _a;
        this.route.queryParams.subscribe(function (params) {
            var packageId = params['packageId'];
            _this.billingCycle = params['billingCycle'] || 'MONTHLY';
            _this.consoleType = params['consoleType'] || 'SECURE_DRIVE';
            _this.isAnnuallyBilling = _this.billingCycle === 'ANNUALLY';
            _this.isBuyUser = params['type'] === 'BUY_USER';
            _this.newPackageId = packageId;
        });
        this.authUser = this.AuthenticateService.getAuthUser();
        if ((_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_id) {
            this.getTeamInfo();
        }
        this.getCardList();
        this.loadPackages();
    };
    CheckoutComponent.prototype.isShowNumberOfUserPurchased = function () {
        var _a, _b, _c;
        var numberOfUserPurchased = 0;
        var totalNumberOfUser = ((_b = (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_settings) === null || _b === void 0 ? void 0 : _b.total_number_of_user) || 0;
        var minimumUser = ((_c = this.newPackageDetail) === null || _c === void 0 ? void 0 : _c.minimum_user) || 0;
        if (totalNumberOfUser > minimumUser) {
            numberOfUserPurchased = totalNumberOfUser - minimumUser;
        }
        else {
            numberOfUserPurchased = 0;
        }
        this.numberOfUserPurchased = numberOfUserPurchased;
        return numberOfUserPurchased > 0;
    };
    CheckoutComponent.prototype.isDisabledForFreeOrPersonal = function () {
        var _a, _b;
        var code = (_b = (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.package_object) === null || _b === void 0 ? void 0 : _b.code;
        if (!code) {
            return false;
        }
        var upperCaseCode = code.toUpperCase();
        return upperCaseCode === 'FREE' || upperCaseCode === 'PERSONAL';
    };
    CheckoutComponent.prototype.getTeamInfo = function () {
        var _this = this;
        var _a;
        this.teamService.getTeamInfo((_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_id).subscribe(function (response) {
            var _a;
            if (response && response.status === 200) {
                _this.teamInfo = response.data;
                _this.isTrial = ((_a = _this.teamInfo) === null || _a === void 0 ? void 0 : _a.trial) || false;
            }
            else {
                console.error('Failed to fetch team info:', response);
            }
        }, function (error) {
            console.error('Error fetching team info:', error);
        });
    };
    CheckoutComponent.prototype.showModalConfirm = function () {
        this.displayConfirmModal = true;
    };
    CheckoutComponent.prototype.cancelConfirmation = function () {
        this.displayConfirmModal = false;
    };
    CheckoutComponent.prototype.doBuyUser = function () {
        var _this = this;
        var _a, _b;
        this.loading = true;
        var params = {
            totalNewUsers: this.numberOfUsers || 0,
            totalPayment: this.totalBuyUserPrice || 0,
            teamId: ((_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_id) || '',
            cardToken: ((_b = this.cardToken) === null || _b === void 0 ? void 0 : _b.id) || '',
        };
        this.teamPaymentService.buyUser(params).subscribe(function (response) {
            _this.loading = false;
            if (response && response.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utilsService.translate('default_toast.buy_user_success'),
                });
                _this.displayConfirmModal = false;
                setTimeout(function () {
                    _this.router.navigate(['/setting/billing']);
                }, 1000);
            }
            else {
                _this.displayConfirmModal = false;
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utilsService.translate('sever_errors.' + response.status),
                });
            }
        }, function (error) {
            console.error('Error during buy user:', error);
        });
    };
    /**
     *
     * Calculate the total price when buying additional users
     */
    CheckoutComponent.prototype.calculateBuyUserPrice = function () {
        var _a, _b, _c, _d;
        if (!this.currentPackageDetail || !this.isBuyUser) {
            this.totalBuyUserPrice = 0;
            return;
        }
        // Get the current package details
        var priceCurrentPackage = ((_a = this.currentPackageDetail) === null || _a === void 0 ? void 0 : _a.price) || 0;
        var billingCycle = ((_b = this.currentPackageDetail) === null || _b === void 0 ? void 0 : _b.billing_cycle) || 'MONTHLY';
        this.isBuyUser;
        var numberOfUsers = this.numberOfUsers || 0;
        var daysRemaining = 0;
        if ((_c = this.teamPaymentInfo) === null || _c === void 0 ? void 0 : _c.expiry_date) {
            daysRemaining = this.calculateDaysUntilExpiry(this.teamPaymentInfo.expiry_date);
        }
        var pricePerDayCurrentPackage = priceCurrentPackage / 30;
        var numberOfDaysUsedCurrentPackage = 0;
        var totalBuyUserPrice = 0;
        var totalCredit = ((_d = this.teamPaymentInfo) === null || _d === void 0 ? void 0 : _d.credit) || 0;
        this.totalCredit = totalCredit;
        if (billingCycle === constant_module_1.BILLING_CYCLE.ANNUALLY) {
            // Calculate for ANNUALLY billing cycle if daysRemaining > 30
            // then numberOfDaysUsedCurrentPackage will be 365 - daysRemaining
            numberOfDaysUsedCurrentPackage = 365 - daysRemaining;
            totalBuyUserPrice =
                pricePerDayCurrentPackage *
                    numberOfUsers *
                    (365 - numberOfDaysUsedCurrentPackage);
        }
        else {
            numberOfDaysUsedCurrentPackage = 30 - daysRemaining;
            totalBuyUserPrice =
                pricePerDayCurrentPackage * numberOfUsers * daysRemaining;
        }
        this.userPrice = totalBuyUserPrice;
        // subtract current total credit
        totalBuyUserPrice -= totalCredit;
        // Round to 2 decimal places and ensure non-negative
        this.totalBuyUserPrice = Math.max(0, Math.round(totalBuyUserPrice * 100) / 100);
    };
    CheckoutComponent.prototype.upgradePayment = function () {
        var _this = this;
        var _a, _b, _c, _d, _e;
        this.loading = true;
        var params = {
            billingCycle: ((_a = this.newPackageDetail) === null || _a === void 0 ? void 0 : _a.billing_cycle) || 'MONTHLY',
            code: ((_b = this.newPackageDetail) === null || _b === void 0 ? void 0 : _b.code) || 'STARTER',
            // consoleType: this.newPackageDetail.console_type || 'SECURE_DRIVE',
            consoleType: this.consoleType,
            currency: ((_c = this.newPackageDetail) === null || _c === void 0 ? void 0 : _c.currency) || 'USD',
            teamId: (_d = this.authUser) === null || _d === void 0 ? void 0 : _d.team_id,
            totalPayment: this.totalPackagePrice,
            cardToken: ((_e = this.cardToken) === null || _e === void 0 ? void 0 : _e.id) || '',
        };
        this.teamPaymentService.updateTeamPlan(params).subscribe(function (response) {
            _this.loading = false;
            _this.displayConfirmModal = false;
            if (response && response.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utilsService.translate('default_toast.upgrade_success'),
                });
                setTimeout(function () {
                    _this.router.navigate(['/setting/billing']);
                }, 2000);
            }
            else {
                console.error('Upgrade failed:', response);
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utilsService.translate('sever_errors.' + (response === null || response === void 0 ? void 0 : response.status)),
                });
            }
        }, function (error) {
            console.error('Error during upgrade:', error);
        });
    };
    CheckoutComponent.prototype.calculateTotalPrice = function () {
        var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
        // Check if both newPackageDetail and currentPackageDetail are available
        if (!this.newPackageDetail || !this.currentPackageDetail) {
            console.log('No current or new package detail found');
            this.totalPackagePrice = 0;
            return;
        }
        var totalNumberOfUsers = ((_b = (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_settings) === null || _b === void 0 ? void 0 : _b.total_number_of_user) || 0;
        // Get the number of days remaining in the current payment billing cycle
        var daysRemaining = 0;
        if ((_c = this.teamPaymentInfo) === null || _c === void 0 ? void 0 : _c.expiry_date) {
            daysRemaining = this.calculateDaysUntilExpiry(this.teamPaymentInfo.expiry_date);
        }
        this.daysRemaining = daysRemaining;
        // New package detail information
        var priceNewPackage = ((_d = this.newPackageDetail) === null || _d === void 0 ? void 0 : _d.price) || 0;
        var minimumUsersNewPackage = ((_e = this.newPackageDetail) === null || _e === void 0 ? void 0 : _e.minimum_user) || 0;
        var billingCycleNew = ((_f = this.newPackageDetail) === null || _f === void 0 ? void 0 : _f.billing_cycle) || 'MONTHLY';
        // Current package detail information
        var priceCurrentPackage = ((_g = this.currentPackageDetail) === null || _g === void 0 ? void 0 : _g.price) || 0;
        var minimumUsersCurrentPackage = ((_h = this.currentPackageDetail) === null || _h === void 0 ? void 0 : _h.minimum_user) || 0;
        var billingCycleCurrentPackage = ((_j = this.currentPackageDetail) === null || _j === void 0 ? void 0 : _j.billing_cycle) || 'MONTHLY';
        // Total team credits
        var totalCredit = ((_k = this.teamPaymentInfo) === null || _k === void 0 ? void 0 : _k.credit) || 0;
        this.totalCredit = totalCredit;
        // Number of users to charge for the new package and current package
        var usersToChargeNewPackage = Math.max(totalNumberOfUsers, minimumUsersNewPackage);
        var usersToChargeCurrentPackage = Math.max(totalNumberOfUsers, minimumUsersCurrentPackage);
        console.log('usersToChargeNewPackage', usersToChargeNewPackage);
        console.log('usersToChargeCurrentPackage', usersToChargeCurrentPackage);
        this.usersToChargeNewPackage = usersToChargeNewPackage;
        this.usersToChargeCurrentPackage = usersToChargeCurrentPackage;
        var totalPrice = 0;
        // Check if the current package is MONTHLY and the new package is ANNUALLY
        var isMonthToYear = billingCycleCurrentPackage === 'MONTHLY' &&
            billingCycleNew === 'ANNUALLY';
        // Trial for STATER package
        if (this.isTrial) {
            if (daysRemaining === 30 || daysRemaining === 365) {
                totalPrice = priceNewPackage * usersToChargeNewPackage;
                // subtract current total credit
                totalPrice -= totalCredit;
                this.totalNewPackagePrice = totalPrice;
                this.totalCurrentPackagePrice = 0;
                this.totalPackagePrice = totalPrice;
                return;
            }
            else {
                // Number of days used in the current package
                var numberOfDaysUsedCurrentPackage = 30 - daysRemaining;
                var pricePerDayNewPackage = priceNewPackage / 30;
                if (isMonthToYear) {
                    this.daysRemaining = 365 - numberOfDaysUsedCurrentPackage;
                    totalPrice =
                        pricePerDayNewPackage *
                            usersToChargeNewPackage *
                            (365 - numberOfDaysUsedCurrentPackage);
                }
                else {
                    totalPrice =
                        pricePerDayNewPackage * usersToChargeNewPackage * daysRemaining;
                }
                // subtract current total credit
                totalPrice -= totalCredit;
                this.totalNewPackagePrice = totalPrice;
                this.totalCurrentPackagePrice = 0;
                this.totalPackagePrice = totalPrice;
                return;
            }
        }
        if (isMonthToYear) {
            // Handle upgrade from MONTHLY to ANNUALLY
            var pricePerDayNewPackage = priceNewPackage / 30;
            var pricePerDayCurrentPackage = priceCurrentPackage / 30;
            // Number of days used in the current package
            var numberOfDaysUsedCurrentPackage = 30 - daysRemaining;
            this.daysRemaining = 365 - numberOfDaysUsedCurrentPackage;
            // Calculate the total price for the new package for the remaining days
            var totalPriceForNewPackage = pricePerDayNewPackage *
                usersToChargeNewPackage *
                (365 - numberOfDaysUsedCurrentPackage);
            // Calculate the total price for the current package for the remaining days
            var totalPriceForCurrentPackage = pricePerDayCurrentPackage * usersToChargeCurrentPackage * daysRemaining;
            totalPrice = totalPriceForNewPackage - totalPriceForCurrentPackage;
            this.totalCurrentPackagePrice = totalPriceForCurrentPackage;
            this.totalNewPackagePrice = totalPriceForNewPackage;
        }
        else {
            // Calculate the price per day for both new and current packages
            var pricePerDayNewPackage = priceNewPackage / 30;
            var pricePerDayCurrentPackage = priceCurrentPackage / 30;
            this.pricePerDayNewPackage = pricePerDayNewPackage;
            this.pricePerDayCurrentPackage = pricePerDayCurrentPackage;
            // Calculate total price for the new package for the remaining days
            var totalPriceForNewPackage = pricePerDayNewPackage * usersToChargeNewPackage * daysRemaining;
            // Calculate total price for the current package for the remaining days
            var totalPriceForCurrentPackage = pricePerDayCurrentPackage * usersToChargeCurrentPackage * daysRemaining;
            // Only calculate the difference
            totalPrice = totalPriceForNewPackage - totalPriceForCurrentPackage;
            this.totalCurrentPackagePrice = totalPriceForCurrentPackage;
            this.totalNewPackagePrice = totalPriceForNewPackage;
        }
        // subtract current total credit
        totalPrice -= totalCredit;
        // Round to 2 decimal places and ensure non-negative
        this.totalPackagePrice = Math.max(0, Math.round(totalPrice * 100) / 100);
    };
    CheckoutComponent.prototype.loadPackages = function () {
        var _a, _b, _c, _d;
        return tslib_1.__awaiter(this, void 0, void 0, function () {
            var currentPackageId, error_1;
            return tslib_1.__generator(this, function (_e) {
                switch (_e.label) {
                    case 0:
                        _e.trys.push([0, 7, , 8]);
                        if (!((_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_id)) return [3 /*break*/, 2];
                        return [4 /*yield*/, this.getPaymentInfo((_b = this.authUser) === null || _b === void 0 ? void 0 : _b.team_id)];
                    case 1:
                        _e.sent();
                        _e.label = 2;
                    case 2:
                        currentPackageId = (_d = (_c = this.authUser) === null || _c === void 0 ? void 0 : _c.package_object) === null || _d === void 0 ? void 0 : _d.pricing_package_id;
                        if (!currentPackageId) return [3 /*break*/, 4];
                        return [4 /*yield*/, this.getCurrentPackageDetailAsync(currentPackageId)];
                    case 3:
                        _e.sent();
                        _e.label = 4;
                    case 4:
                        if (!this.newPackageId) return [3 /*break*/, 6];
                        return [4 /*yield*/, this.getNewPackageDetailAsync(this.newPackageId)];
                    case 5:
                        _e.sent();
                        _e.label = 6;
                    case 6:
                        if (!this.isBuyUser) {
                            this.calculateTotalPrice();
                        }
                        this.generatePackageFeatures();
                        return [3 /*break*/, 8];
                    case 7:
                        error_1 = _e.sent();
                        console.error('Error get package detail:', error_1);
                        return [3 /*break*/, 8];
                    case 8: return [2 /*return*/];
                }
            });
        });
    };
    CheckoutComponent.prototype.getCurrencyUnit = function (currency) {
        if (!currency) {
            return '$';
        }
        switch (currency) {
            case 'USD':
                return '$';
            case 'YEN':
                return '¥';
            case 'VND':
                return '₫';
            default:
                return '$';
        }
    };
    // Get package detail with Promise
    CheckoutComponent.prototype.getCurrentPackageDetailAsync = function (packageId) {
        var _this = this;
        return new Promise(function (resolve, reject) {
            _this.pricingPackageService.getPackageDetail(packageId).subscribe(function (response) {
                if (response && response.status === 200) {
                    var currentPackage = response.data;
                    _this.currencyUnit = _this.getCurrencyUnit(currentPackage === null || currentPackage === void 0 ? void 0 : currentPackage.currency);
                    _this.currentPackageDetail = currentPackage;
                    _this.calculateBuyUserPrice();
                    resolve(response.data);
                }
                else {
                    console.error("Not found current package information");
                    resolve(null);
                }
            }, function (error) {
                console.error("Error get package detail:", error);
                reject(error);
            });
        });
    };
    // Get package detail with Promise
    CheckoutComponent.prototype.getNewPackageDetailAsync = function (packageId) {
        var _this = this;
        return new Promise(function (resolve, reject) {
            _this.pricingPackageService.getPackageDetail(packageId).subscribe(function (response) {
                if (response && response.status === 200) {
                    var newPackage = response.data;
                    _this.numberOfUsersNewPackage = (newPackage === null || newPackage === void 0 ? void 0 : newPackage.minimum_user) || 0;
                    _this.newPackageDetail = newPackage;
                    resolve(response.data);
                }
                else {
                    console.error("Not found package information");
                    resolve(null);
                }
            }, function (error) {
                console.error("Error get package detail", error);
                reject(error);
            });
        });
    };
    CheckoutComponent.prototype.getPaymentInfo = function (teamId) {
        var _this = this;
        return new Promise(function (resolve, reject) {
            _this.teamPaymentService.getPaymentInfo(teamId).subscribe(function (response) {
                var _a;
                if (response && response.status === 200) {
                    _this.teamPaymentInfo = response.data;
                    // Calculate the number of days remaining
                    _this.daysUntilExpiry = _this.calculateDaysUntilExpiry((_a = _this.teamPaymentInfo) === null || _a === void 0 ? void 0 : _a.expiry_date);
                    resolve(response.data);
                }
                else {
                    console.error('No data found in response');
                    resolve(null);
                }
            }, function (error) {
                console.error('Error fetching package detail:', error);
                reject(error);
            });
        });
    };
    CheckoutComponent.prototype.getCardList = function () {
        var _this = this;
        var _a;
        this.loadingCards = true;
        this.cardError = null;
        var teamId = ((_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_id) || '';
        this.teamPaymentService.getListCard({ team_id: teamId }).subscribe(function (response) {
            if (response && response.status === 200) {
                _this.savedCards = response.data.content || [];
                if (_this.savedCards.length > 0) {
                    _this.showNewCardForm = false;
                    _this.selectedCardId = _this.savedCards[0].id;
                }
                else {
                    _this.showNewCardForm = true;
                }
            }
            else {
                _this.savedCards = [];
                _this.showNewCardForm = true;
            }
            _this.loadingCards = false;
        }, function (error) {
            console.error('Error fetching card list:', error);
            _this.cardError = 'Unable to load saved payment methods.';
            _this.savedCards = [];
            _this.showNewCardForm = true;
            _this.loadingCards = false;
        });
    };
    /**
     * Create a list of features for the package based on console type
     */
    CheckoutComponent.prototype.generatePackageFeatures = function () {
        var _a, _b, _c, _d, _e, _f, _g;
        var teamSettings = ((_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_settings) || null;
        var packageCode = '';
        var billingCycle = this.billingCycle || 'MONTHLY';
        var numberOfUsers = 0;
        var consoleType;
        if (this.isBuyUser) {
            packageCode = (_b = this.currentPackageDetail) === null || _b === void 0 ? void 0 : _b.code;
            billingCycle = ((_c = this.currentPackageDetail) === null || _c === void 0 ? void 0 : _c.billing_cycle) || 'MONTHLY';
            numberOfUsers = this.numberOfUsers || 0;
            consoleType = (_d = this.currentPackageDetail) === null || _d === void 0 ? void 0 : _d.type;
        }
        else {
            packageCode = (_e = this.newPackageDetail) === null || _e === void 0 ? void 0 : _e.code;
            consoleType = this.consoleType;
            numberOfUsers =
                teamSettings &&
                    (teamSettings === null || teamSettings === void 0 ? void 0 : teamSettings.total_number_of_user) > ((_f = this.newPackageDetail) === null || _f === void 0 ? void 0 : _f.minimum_user)
                    ? teamSettings === null || teamSettings === void 0 ? void 0 : teamSettings.total_number_of_user : ((_g = this.newPackageDetail) === null || _g === void 0 ? void 0 : _g.minimum_user) || 0;
        }
        if (packageCode === '') {
            this.packageFeatures = [];
            this.visibleFeatures = [];
            return;
        }
        var featuresConfig = this.utilsService.generatePackageFeaturesConfig(packageCode, numberOfUsers, consoleType, billingCycle);
        if (featuresConfig.error) {
            this.packageFeatures = [];
            this.visibleFeatures = [];
            return;
        }
        this.packageFeatures = featuresConfig.features || [];
        this.updateVisibleFeatures();
    };
    CheckoutComponent.prototype.updateVisibleFeatures = function () {
        if (this.showAllFeatures) {
            this.visibleFeatures = tslib_1.__spread(this.packageFeatures);
        }
        else {
            // Show up to first 4 features when collapsed
            this.visibleFeatures = this.packageFeatures.slice(0, 4);
        }
    };
    CheckoutComponent.prototype.getVisibleFeatures = function () {
        return this.visibleFeatures;
    };
    CheckoutComponent.prototype.hasHiddenFeatures = function () {
        return this.packageFeatures.length > 5;
    };
    CheckoutComponent.prototype.toggleFeatures = function () {
        this.showAllFeatures = !this.showAllFeatures;
        this.updateVisibleFeatures();
    };
    CheckoutComponent.prototype.updateNumberOfUsers = function (event) {
        if (!event.value) {
            this.numberOfUsers = 0;
            this.calculateBuyUserPrice();
            this.generatePackageFeatures();
        }
        else {
            this.numberOfUsers = event.value;
            this.generatePackageFeatures();
            this.calculateBuyUserPrice();
        }
    };
    CheckoutComponent.prototype.onCardCreated = function (token) {
        this.cardToken = token;
    };
    CheckoutComponent.prototype.onCardFormCancelled = function () {
        console.log('Card form cancelled');
        this.router.navigate(['/team-admin/setting/billing']);
    };
    CheckoutComponent.prototype.onCardConfirmRequest = function (data) {
        if (this.paymentCardForm) {
            this.stripeDetails = data;
            this.paymentCardForm.processCardPayment(data);
            this.displayConfirmModal = true;
        }
    };
    /**
     * Calculate the number of days from the current date to the expiration date
     * @param expiryDate Expiration date (string or Date)
     * @returns Days remaining (positive if still valid, negative if expired, 0 if expired today)
     */
    CheckoutComponent.prototype.calculateDaysUntilExpiry = function (expiryDate) {
        if (!expiryDate) {
            console.log('No expiry date provided');
            return 0;
        }
        try {
            // Covert to Date object
            var expiry = new Date(expiryDate);
            // Check if the date is valid
            if (isNaN(expiry.getTime())) {
                console.error('Invalid expiry date:', expiryDate);
                return 0;
            }
            // Get current date
            var today = new Date();
            // Reset to the beginning of the day (00:00:00) to calculate the exact number of days
            today.setHours(0, 0, 0, 0);
            expiry.setHours(0, 0, 0, 0);
            // Calculate millisecond difference
            var diffInMs = expiry.getTime() - today.getTime();
            // Convert to number of days
            var diffInDays = Math.floor(diffInMs / (1000 * 60 * 60 * 24));
            if (diffInDays === 31) {
                diffInDays = 30; // Adjust for 31 days to 30 days
            }
            if (diffInDays === 366) {
                diffInDays = 365; // Adjust for 366 days to 365 days
            }
            return diffInDays;
        }
        catch (error) {
            console.error('Error calculating days until expiry:', error);
            return 0;
        }
    };
    CheckoutComponent.ɵfac = function CheckoutComponent_Factory(t) { return new (t || CheckoutComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.TeamPaymentService), i0.ɵɵdirectiveInject(i3.AuthenticateService), i0.ɵɵdirectiveInject(i4.PricingPackageService), i0.ɵɵdirectiveInject(i5.UtilsService), i0.ɵɵdirectiveInject(i6.MessageService), i0.ɵɵdirectiveInject(i7.TeamService)); };
    CheckoutComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CheckoutComponent, selectors: [["app-checkout"]], viewQuery: function CheckoutComponent_Query(rf, ctx) { if (rf & 1) {
            i0.ɵɵviewQuery(_c0, true);
        } if (rf & 2) {
            var _t = void 0;
            i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.paymentCardForm = _t.first);
        } }, decls: 142, vars: 104, consts: [[1, "checkout-container"], [1, "checkout-wrapper"], [1, "checkout-header"], [1, "checkout-content"], [1, "p-grid", "p-mt-5", "p-border-round", "p-ai-stretch", "p-d-flex", "p-jc-center", "p-ai-center"], [1, "p-col-12", "p-md-4", "p-md-4", "p-lg-4"], [1, "p-grid"], ["class", "p-text-bold p-mt-0", 4, "ngIf"], [1, "p-col-12"], [1, "p-field", "p-grid", "p-align-center"], [1, "p-col-6"], [1, "p-text-small", "p-text-bold"], [1, "p-col-6", "p-text-right"], ["class", "value", 4, "ngIf"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["class", "p-mb-4", 4, "ngIf"], [4, "ngIf"], [1, "p-col-12", "p-md-2", "p-lg-2", "p-md-d-block", "p-d-none", "p-d-md-flex", "p-jc-center", "p-ai-stretch", 2, "height", "100%"], [2, "width", "1px", "background", "#e0e0e0", "height", "100%", "min-height", "450px", "margin", "0 12px"], [1, "p-col-12", "p-md-4", "p-lg-4", "p-d-md-flex", "p-w-100"], [1, "p-mb-3", 2, "width", "100%"], ["class", "p-mb-2", "style", "font-size: 1rem", 4, "ngIf"], [1, "p-text-bold", "p-mb-2", 2, "font-size", "1.5rem"], [1, "p-mb-3"], [1, "p-text-secondary", 2, "font-size", "1.25rem"], [1, "p-text-secondary", 2, "font-size", "1rem"], [1, "package-features-section", "p-mb-3"], [1, "p-mb-3", "p-pl-0", "features", 2, "list-style", "none", 3, "ngClass"], ["class", "p-mb-2", 4, "ngFor", "ngForOf"], ["class", "feature-toggle p-text-primary", "style", "color: #2196f3; cursor: pointer; font-size: 15px", 3, "click", 4, "ngIf"], [1, "p-my-3"], ["class", "p-text-secondary p-mb-2", 4, "ngIf"], ["class", "p-field p-mt-4", 4, "ngIf"], ["class", "p-d-flex p-jc-between p-mb-2", 4, "ngIf"], ["class", "p-d-flex p-jc-between p-mb-1", 4, "ngIf"], ["class", "p-text-secondary p-mb-2", "style", "font-size: 0.95rem", 4, "ngIf"], [1, "p-d-flex", "p-jc-between", "p-mb-2"], [1, "p-text-bold"], ["class", "calculation-note p-mb-2 p-text-secondary", "style", "font-size: 0.9rem", 4, "ngIf"], [1, "p-mb-2"], ["class", "p-bg-blue-50 p-d-flex p-jc-between p-ai-center p-border-round p-text-bold p-mt-3", 4, "ngIf"], ["styleClass", "payment-confirmation-dialog", 3, "visible", "header", "modal", "closable", "draggable", "resizable", "visibleChange"], [1, "p-fluid"], [1, "p-text-center", "p-mb-4"], [1, "confirmation-table"], [1, "label"], [1, "value"], [1, "total-row"], ["pTemplate", "footer"], [1, "p-text-bold", "p-mt-0"], [1, "p-mb-4"], [1, "saved-cards"], ["class", "card-item p-mb-2", 3, "click", 4, "ngFor", "ngForOf"], [1, "p-mt-3", "p-d-flex", "p-jc-between"], ["pButton", "", "type", "button", "class", "w-full", "style", "width: 100%", 3, "label", "click", 4, "ngIf"], ["pButton", "", "type", "button", "class", "w-full", "style", "width: 100%", 3, "disabled", "label", "click", 4, "ngIf"], [1, "card-item", "p-mb-2", 3, "click"], [1, "p-d-flex", "p-jc-between", "p-ai-center"], [1, "card-brand"], [3, "ngClass"], [1, "card-number", "p-text-secondary", 2, "font-size", "1rem"], [1, "card-expiry", "p-mt-2"], ["pButton", "", "type", "button", 1, "w-full", 2, "width", "100%", 3, "label", "click"], ["pButton", "", "type", "button", 1, "w-full", 2, "width", "100%", 3, "disabled", "label", "click"], [3, "showTitle", "userInfo", "cardCreated", "cancelled", "confirmPayment"], ["paymentCardForm", ""], [1, "p-mb-2", 2, "font-size", "1rem"], [2, "line-height", "1.5"], [1, "feature-toggle", "p-text-primary", 2, "color", "#2196f3", "cursor", "pointer", "font-size", "15px", 3, "click"], [1, "p-text-secondary", "p-mb-2"], [1, "p-field", "p-mt-4"], [1, "p-float-label"], ["id", "numberUsers", 3, "ngModel", "disabled", "showButtons", "inputStyle", "ngModelChange", "onInput"], ["for", "numberUsers"], [1, "p-d-flex", "p-jc-between", "p-mb-1"], [1, "p-text-secondary", "p-mb-2", 2, "font-size", "0.95rem"], [2, "font-size", "14px"], [1, "calculation-note", "p-mb-2", "p-text-secondary", 2, "font-size", "0.9rem"], [1, "pi", "pi-info-circle", "p-mr-1"], [1, "p-bg-blue-50", "p-d-flex", "p-jc-between", "p-ai-center", "p-border-round", "p-text-bold", "p-mt-3"], [2, "font-size", "1.5rem"], [1, "p-d-flex", "p-jc-center", "button-container"], ["pButton", "", "type", "button", 1, "p-button-outlined", "p-mr-3", 3, "loading", "label", "click"], ["pButton", "", "type", "button", 1, "p-button-primary", 3, "loading", "label", "click"]], template: function CheckoutComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "h2");
            i0.ɵɵtext(4);
            i0.ɵɵpipe(5, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(6, "div", 3);
            i0.ɵɵelementStart(7, "div", 4);
            i0.ɵɵelementStart(8, "div", 5);
            i0.ɵɵelementStart(9, "div", 6);
            i0.ɵɵtemplate(10, CheckoutComponent_h3_10_Template, 3, 3, "h3", 7);
            i0.ɵɵtemplate(11, CheckoutComponent_h3_11_Template, 3, 3, "h3", 7);
            i0.ɵɵelementStart(12, "div", 8);
            i0.ɵɵelementStart(13, "div", 9);
            i0.ɵɵelementStart(14, "div", 10);
            i0.ɵɵelementStart(15, "label", 11);
            i0.ɵɵtext(16);
            i0.ɵɵpipe(17, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(18, "div", 12);
            i0.ɵɵelementStart(19, "span");
            i0.ɵɵtext(20);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(21, "div", 9);
            i0.ɵɵelementStart(22, "div", 10);
            i0.ɵɵelementStart(23, "label", 11);
            i0.ɵɵtext(24);
            i0.ɵɵpipe(25, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(26, "div", 12);
            i0.ɵɵelementStart(27, "span");
            i0.ɵɵtext(28);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(29, "div", 9);
            i0.ɵɵelementStart(30, "div", 10);
            i0.ɵɵelementStart(31, "label", 11);
            i0.ɵɵtext(32);
            i0.ɵɵpipe(33, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(34, "div", 12);
            i0.ɵɵtemplate(35, CheckoutComponent_span_35_Template, 4, 5, "span", 13);
            i0.ɵɵtemplate(36, CheckoutComponent_span_36_Template, 4, 5, "span", 13);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(37, "div", 9);
            i0.ɵɵelementStart(38, "div", 10);
            i0.ɵɵelementStart(39, "label", 11);
            i0.ɵɵtext(40);
            i0.ɵɵpipe(41, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(42, "div", 12);
            i0.ɵɵelementStart(43, "span", 14);
            i0.ɵɵtemplate(44, CheckoutComponent_span_44_Template, 4, 7, "span", 15);
            i0.ɵɵtemplate(45, CheckoutComponent_span_45_Template, 4, 7, "span", 15);
            i0.ɵɵtemplate(46, CheckoutComponent_span_46_Template, 4, 7, "span", 16);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(47, "div", 9);
            i0.ɵɵelementStart(48, "div", 10);
            i0.ɵɵelementStart(49, "label", 11);
            i0.ɵɵtext(50);
            i0.ɵɵpipe(51, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(52, "div", 12);
            i0.ɵɵelementStart(53, "span");
            i0.ɵɵtext(54);
            i0.ɵɵpipe(55, "date");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(56, CheckoutComponent_div_56_Template, 10, 7, "div", 17);
            i0.ɵɵtemplate(57, CheckoutComponent_div_57_Template, 4, 3, "div", 18);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(58, "div", 19);
            i0.ɵɵelement(59, "div", 20);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(60, "div", 21);
            i0.ɵɵelementStart(61, "div", 22);
            i0.ɵɵtemplate(62, CheckoutComponent_div_62_Template, 3, 3, "div", 23);
            i0.ɵɵtemplate(63, CheckoutComponent_div_63_Template, 3, 3, "div", 23);
            i0.ɵɵelementStart(64, "div", 24);
            i0.ɵɵtext(65);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(66, "div", 25);
            i0.ɵɵelementStart(67, "span", 26);
            i0.ɵɵtext(68);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(69, "span", 27);
            i0.ɵɵtext(70);
            i0.ɵɵpipe(71, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(72, "div", 28);
            i0.ɵɵelementStart(73, "ul", 29);
            i0.ɵɵtemplate(74, CheckoutComponent_li_74_Template, 4, 4, "li", 30);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(75, CheckoutComponent_a_75_Template, 3, 2, "a", 31);
            i0.ɵɵelementEnd();
            i0.ɵɵelement(76, "hr", 32);
            i0.ɵɵtemplate(77, CheckoutComponent_div_77_Template, 4, 5, "div", 33);
            i0.ɵɵtemplate(78, CheckoutComponent_div_78_Template, 4, 5, "div", 33);
            i0.ɵɵtemplate(79, CheckoutComponent_div_79_Template, 6, 11, "div", 34);
            i0.ɵɵelementStart(80, "div", 25);
            i0.ɵɵtemplate(81, CheckoutComponent_div_81_Template, 6, 4, "div", 35);
            i0.ɵɵtemplate(82, CheckoutComponent_div_82_Template, 5, 3, "div", 35);
            i0.ɵɵtemplate(83, CheckoutComponent_div_83_Template, 5, 3, "div", 36);
            i0.ɵɵtemplate(84, CheckoutComponent_div_84_Template, 5, 9, "div", 37);
            i0.ɵɵtemplate(85, CheckoutComponent_div_85_Template, 6, 5, "div", 35);
            i0.ɵɵelementStart(86, "div", 38);
            i0.ɵɵelementStart(87, "span");
            i0.ɵɵtext(88);
            i0.ɵɵpipe(89, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(90, "span", 39);
            i0.ɵɵtext(91);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(92, CheckoutComponent_div_92_Template, 4, 6, "div", 40);
            i0.ɵɵelement(93, "hr", 41);
            i0.ɵɵtemplate(94, CheckoutComponent_div_94_Template, 6, 5, "div", 42);
            i0.ɵɵtemplate(95, CheckoutComponent_div_95_Template, 6, 5, "div", 42);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(96, "p-dialog", 43);
            i0.ɵɵlistener("visibleChange", function CheckoutComponent_Template_p_dialog_visibleChange_96_listener($event) { return ctx.displayConfirmModal = $event; });
            i0.ɵɵpipe(97, "translate");
            i0.ɵɵelementStart(98, "div", 44);
            i0.ɵɵelementStart(99, "h3", 45);
            i0.ɵɵtext(100);
            i0.ɵɵpipe(101, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(102, "table", 46);
            i0.ɵɵelementStart(103, "tbody");
            i0.ɵɵelementStart(104, "tr");
            i0.ɵɵelementStart(105, "td", 47);
            i0.ɵɵtext(106);
            i0.ɵɵpipe(107, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(108, "td", 48);
            i0.ɵɵtext(109);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(110, "tr");
            i0.ɵɵelementStart(111, "td", 47);
            i0.ɵɵtext(112);
            i0.ɵɵpipe(113, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(114, "td", 48);
            i0.ɵɵtext(115);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(116, "tr");
            i0.ɵɵelementStart(117, "td", 47);
            i0.ɵɵtext(118);
            i0.ɵɵpipe(119, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(120, "td", 48);
            i0.ɵɵtext(121);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(122, "tr");
            i0.ɵɵelementStart(123, "td", 47);
            i0.ɵɵtext(124);
            i0.ɵɵpipe(125, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(126, "td", 48);
            i0.ɵɵtext(127);
            i0.ɵɵtemplate(128, CheckoutComponent_span_128_Template, 2, 1, "span", 18);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(129, "tr");
            i0.ɵɵelementStart(130, "td", 47);
            i0.ɵɵtext(131);
            i0.ɵɵpipe(132, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(133, CheckoutComponent_td_133_Template, 4, 5, "td", 13);
            i0.ɵɵtemplate(134, CheckoutComponent_td_134_Template, 4, 5, "td", 13);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(135, "tr", 49);
            i0.ɵɵelementStart(136, "td", 47);
            i0.ɵɵtext(137);
            i0.ɵɵpipe(138, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(139, CheckoutComponent_td_139_Template, 2, 2, "td", 13);
            i0.ɵɵtemplate(140, CheckoutComponent_td_140_Template, 2, 2, "td", 13);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(141, CheckoutComponent_ng_template_141_Template, 5, 8, "ng-template", 50);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 66, "label.checkout"));
            i0.ɵɵadvance(6);
            i0.ɵɵproperty("ngIf", !ctx.isBuyUser);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isBuyUser);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 68, "label.package.package_name"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(ctx.currentPackageDetail == null ? null : ctx.currentPackageDetail.name);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 70, "label.package.currency"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(ctx.currentPackageDetail == null ? null : ctx.currentPackageDetail.currency);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(33, 72, "label.package.billing_cycle"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.isBuyUser);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.isBuyUser);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(41, 74, "label.package.price"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngSwitch", (ctx.currentPackageDetail == null ? null : ctx.currentPackageDetail.currency) || "USD");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "VND");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "YEN");
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(51, 76, "label.package.expire_date"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(55, 78, ctx.teamPaymentInfo == null ? null : ctx.teamPaymentInfo.expiry_date, "mediumDate"));
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.savedCards.length > 0);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showNewCardForm);
            i0.ɵɵadvance(5);
            i0.ɵɵproperty("ngIf", !ctx.isBuyUser);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isBuyUser);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", ctx.newPackageDetail == null ? null : ctx.newPackageDetail.name, " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate2("", ctx.currencyUnit, "", (ctx.newPackageDetail == null ? null : ctx.newPackageDetail.price) || 0, "");
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(71, 81, "label.user_per_month"), "");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(101, _c5, ctx.showAllFeatures));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngForOf", ctx.getVisibleFeatures());
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.hasHiddenFeatures());
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.newPackageDetail && ctx.newPackageDetail.billing_cycle === "ANNUALLY");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.newPackageDetail && ctx.newPackageDetail.billing_cycle !== "ANNUALLY");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isBuyUser);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.isBuyUser);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.isBuyUser);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isBuyUser);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isBuyUser);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.isBuyUser);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(89, 83, "label.amount_credit"));
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate2("-", ctx.currencyUnit, "", ctx.totalCredit.toFixed(2) || 0, "");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.isBuyUser);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.isBuyUser);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isBuyUser);
            i0.ɵɵadvance(1);
            i0.ɵɵstyleMap(i0.ɵɵpureFunction0(103, _c6));
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(97, 85, "label.payment_confirmation"));
            i0.ɵɵproperty("visible", ctx.displayConfirmModal)("modal", true)("closable", true)("draggable", false)("resizable", false);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(101, 87, "label.confirm_details"), " ");
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(107, 89, "label.email"), ":");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate(ctx.authUser == null ? null : ctx.authUser.mail_address);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(113, 91, "label.name"), ":");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate2(" ", ctx.authUser == null ? null : ctx.authUser.first_name, " ", ctx.authUser == null ? null : ctx.authUser.last_name, " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(119, 93, "label.package.package_name"), ": ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate(ctx.newPackageDetail == null ? null : ctx.newPackageDetail.name);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(125, 95, "label.users"), ":");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", ctx.isBuyUser ? ctx.numberOfUsers : ctx.numberOfUsersNewPackage, " ");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.isBuyUser && ctx.isShowNumberOfUserPurchased());
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(132, 97, "label.package.billing_cycle"), ": ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.isBuyUser);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.isBuyUser);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(138, 99, "label.total"), ":");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.isBuyUser);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isBuyUser);
        } }, directives: [i8.NgIf, i8.NgSwitch, i8.NgSwitchCase, i8.NgSwitchDefault, i8.NgClass, i8.NgForOf, i9.Dialog, i6.PrimeTemplate, i10.ButtonDirective, i11.PaymentCardFormComponent, i12.InputNumber, i13.NgControlStatus, i13.NgModel], pipes: [i14.TranslatePipe, i8.DatePipe, i8.DecimalPipe, i8.UpperCasePipe], styles: ["@charset \"UTF-8\";\n[_nghost-%COMP%]     .p-float-label p-password:has(.p-inputwrapper-focus) ~ label, [_nghost-%COMP%]     .p-float-label p-password:has(.p-filled) ~ label {\n  top: -0.5rem !important;\n  background-color: #ffffff;\n  padding: 2px 4px;\n  margin-left: -4px;\n  margin-top: 0;\n  font-size: 12px;\n}\n[_nghost-%COMP%]     .payment-confirmation-dialog .p-dialog-header {\n  background-color: #304FFE;\n  padding: 1rem;\n}\n[_nghost-%COMP%]     .payment-confirmation-dialog .p-dialog-header .p-dialog-title {\n  color: white;\n  font-size: 1.2rem;\n  font-weight: 600;\n  text-transform: uppercase;\n}\n[_nghost-%COMP%]     .payment-confirmation-dialog .p-dialog-header .p-dialog-header-icon {\n  color: white;\n}\n[_nghost-%COMP%]     .payment-confirmation-dialog .p-dialog-content {\n  padding: 1.5rem;\n}\n[_nghost-%COMP%]     .payment-confirmation-dialog .p-dialog-content h3 {\n  margin-top: 0;\n  font-weight: 500;\n  color: #333;\n  font-size: 1.2rem;\n}\n[_nghost-%COMP%]     .payment-confirmation-dialog .confirmation-table {\n  width: 100%;\n  border-collapse: collapse;\n  margin-bottom: 1rem;\n}\ns   [_nghost-%COMP%]     .payment-confirmation-dialog .confirmation-table tr:last-child {\n  border-bottom: none;\n}\n[_nghost-%COMP%]     .payment-confirmation-dialog .confirmation-table tr.total-row {\n  font-weight: bold;\n}\n[_nghost-%COMP%]     .payment-confirmation-dialog .confirmation-table td {\n  padding: 0.75rem 0;\n}\n[_nghost-%COMP%]     .payment-confirmation-dialog .confirmation-table td.label {\n  color: #666;\n  width: 40%;\n}\n[_nghost-%COMP%]     .payment-confirmation-dialog .confirmation-table td.value {\n  text-align: left;\n  color: #333;\n  width: 60%;\n}\n[_nghost-%COMP%]     .card-info-container .card-info-header {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  margin-bottom: 0.5rem;\n}\n[_nghost-%COMP%]     .card-info-container .card-info-header i {\n  margin-right: 0.5rem;\n}\n[_nghost-%COMP%]     .card-info-container .card-info-header span {\n  font-weight: 500;\n}\n[_nghost-%COMP%]     .card-info-container .card-holder-name {\n  text-align: center;\n}\n[_nghost-%COMP%]     .card-info-container .card-holder-name strong {\n  font-weight: 600;\n  text-transform: uppercase;\n}\n.checkout-container[_ngcontent-%COMP%] {\n  width: 100%;\n  height: 100%;\n  padding: 0;\n  margin: 0;\n  overflow-y: auto;\n}\n.checkout-wrapper[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n}\n.checkout-header[_ngcontent-%COMP%] {\n  padding: 1rem;\n}\n.checkout-content[_ngcontent-%COMP%] {\n  flex: 1;\n  padding: 0 1.5rem;\n  overflow-y: auto;\n}\n.features[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] {\n  position: relative;\n  padding-left: 20px;\n}\n.features[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before {\n  content: \"\u2713\";\n  position: absolute;\n  left: 0;\n  color: #00c8c8;\n  font-weight: bold;\n}\n.price-calculation-details[_ngcontent-%COMP%] {\n  background-color: #f8f9fa;\n  padding: 1rem;\n  border-radius: 4px;\n  font-size: 0.9rem;\n}\n.calculation-section[_ngcontent-%COMP%] {\n  padding-bottom: 0.5rem;\n}\n.calculation-section[_ngcontent-%COMP%]:not(:last-child) {\n  border-bottom: 1px solid #e0e0e0;\n  margin-bottom: 0.5rem;\n}\n.calculation-note[_ngcontent-%COMP%] {\n  color: #6c757d;\n  font-style: italic;\n}\n/*# sourceMappingURL=data:application/json;base64,  */"] });
    return CheckoutComponent;
}());
exports.CheckoutComponent = CheckoutComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(CheckoutComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-checkout',
                templateUrl: './checkout.component.html',
                styleUrls: ['./checkout.component.scss'],
            }]
    }], function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.TeamPaymentService }, { type: i3.AuthenticateService }, { type: i4.PricingPackageService }, { type: i5.UtilsService }, { type: i6.MessageService }, { type: i7.TeamService }]; }, { paymentCardForm: [{
            type: core_1.ViewChild,
            args: ['paymentCardForm']
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/dashboard/dashboard-sd/dashboard-sd.component.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/team-admin/dashboard/dashboard-sd/dashboard-sd.component.ts ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.DashboardSdComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/dashboard.service */ "./src/app/shared/services/dashboard.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! primeng/progressbar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-progressbar.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function DashboardSdComponent_div_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 6);
    i0.ɵɵelementStart(1, "div", 7);
    i0.ɵɵelementStart(2, "div", 8);
    i0.ɵɵelementStart(3, "div", 9);
    i0.ɵɵelementStart(4, "div", 10);
    i0.ɵɵelement(5, "i", 11);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "div", 12);
    i0.ɵɵelementStart(7, "label", 13);
    i0.ɵɵtext(8);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "small");
    i0.ɵɵtext(10);
    i0.ɵɵpipe(11, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(12, "div", 7);
    i0.ɵɵelementStart(13, "div", 14);
    i0.ɵɵelementStart(14, "div", 9);
    i0.ɵɵelementStart(15, "div", 10);
    i0.ɵɵelement(16, "i", 15);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(17, "div", 12);
    i0.ɵɵelementStart(18, "label", 13);
    i0.ɵɵtext(19);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(20, "small");
    i0.ɵɵtext(21);
    i0.ɵɵpipe(22, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(23, "div", 7);
    i0.ɵɵelementStart(24, "div", 16);
    i0.ɵɵelementStart(25, "div", 9);
    i0.ɵɵelementStart(26, "div", 10);
    i0.ɵɵelement(27, "i", 17);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(28, "div", 12);
    i0.ɵɵelementStart(29, "label", 13);
    i0.ɵɵtext(30);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(31, "small");
    i0.ɵɵtext(32);
    i0.ɵɵpipe(33, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(34, "div", 7);
    i0.ɵɵelementStart(35, "div", 18);
    i0.ɵɵelementStart(36, "div", 9);
    i0.ɵɵelementStart(37, "div", 10);
    i0.ɵɵelement(38, "i", 19);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(39, "div", 12);
    i0.ɵɵelementStart(40, "label", 13);
    i0.ɵɵtext(41);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(42, "small");
    i0.ɵɵtext(43);
    i0.ɵɵpipe(44, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(45, "div", 7);
    i0.ɵɵelementStart(46, "div", 20);
    i0.ɵɵelementStart(47, "div", 9);
    i0.ɵɵelementStart(48, "div", 10);
    i0.ɵɵelementStart(49, "i", 21);
    i0.ɵɵelement(50, "i", 22);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(51, "div", 12);
    i0.ɵɵelementStart(52, "label", 13);
    i0.ɵɵtext(53);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(54, "small");
    i0.ɵɵtext(55);
    i0.ɵɵpipe(56, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(8);
    i0.ɵɵtextInterpolate(ctx_r0.dashboardData.projects);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 10, "label.total_project"));
    i0.ɵɵadvance(9);
    i0.ɵɵtextInterpolate(ctx_r0.dashboardData.files);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 12, "label.total_file"));
    i0.ɵɵadvance(9);
    i0.ɵɵtextInterpolate(ctx_r0.dashboardData.guest);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 14, "label.total_guest"));
    i0.ɵɵadvance(9);
    i0.ɵɵtextInterpolate(ctx_r0.dashboardData.address_book);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(44, 16, "label.total_address_book"));
    i0.ɵɵadvance(10);
    i0.ɵɵtextInterpolate(ctx_r0.dashboardData.file_protected);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(56, 18, "label.total_protected_file"));
} }
var _c0 = function (a0, a1) { return { "used": a0, "total": a1 }; };
function DashboardSdComponent_div_5_span_19_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, "label.dashboard_page.user_text", i0.ɵɵpureFunction2(4, _c0, ctx_r2.dashboardData.members, ctx_r2.dashboardData.max_user)), " ");
} }
function DashboardSdComponent_div_5_span_20_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, "label.dashboard_page.user_text", i0.ɵɵpureFunction2(4, _c0, ctx_r3.dashboardData.members, ctx_r3.dashboardData.max_user)), " ");
} }
var _c1 = function (a0, a1) { return { "used": a0, "storage": a1 }; };
function DashboardSdComponent_div_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 23);
    i0.ɵɵelementStart(1, "div", 24);
    i0.ɵɵelementStart(2, "h4", 25);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "titlecase");
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "div", 26);
    i0.ɵɵelementStart(7, "div", 9);
    i0.ɵɵelementStart(8, "div", 27);
    i0.ɵɵelementStart(9, "div", 28);
    i0.ɵɵelementStart(10, "span", 29);
    i0.ɵɵtext(11);
    i0.ɵɵpipe(12, "uppercase");
    i0.ɵɵpipe(13, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(14, "div", 30);
    i0.ɵɵelementStart(15, "span", 31);
    i0.ɵɵtext(16);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelement(17, "p-progressBar", 32);
    i0.ɵɵelementStart(18, "div", 28);
    i0.ɵɵtemplate(19, DashboardSdComponent_div_5_span_19_Template, 3, 7, "span", 33);
    i0.ɵɵtemplate(20, DashboardSdComponent_div_5_span_20_Template, 3, 7, "span", 33);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(21, "div", 34);
    i0.ɵɵelement(22, "i", 35);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(23, "div", 27);
    i0.ɵɵelementStart(24, "div", 28);
    i0.ɵɵelementStart(25, "span", 36);
    i0.ɵɵtext(26);
    i0.ɵɵpipe(27, "uppercase");
    i0.ɵɵpipe(28, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(29, "div", 30);
    i0.ɵɵelementStart(30, "span", 31);
    i0.ɵɵtext(31);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelement(32, "p-progressBar", 32);
    i0.ɵɵelementStart(33, "div", 28);
    i0.ɵɵelementStart(34, "span");
    i0.ɵɵtext(35);
    i0.ɵɵpipe(36, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(37, "div", 34);
    i0.ɵɵelement(38, "i", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 10, i0.ɵɵpipeBind1(5, 12, "card_header.package_statistics")), " ");
    i0.ɵɵadvance(8);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 14, i0.ɵɵpipeBind1(13, 16, "label.dashboard_page.member")));
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate1("", ctx_r1.fix2(ctx_r1.dashboardData.members, ctx_r1.dashboardData.max_user), "%");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r1.fix2(ctx_r1.dashboardData.members, ctx_r1.dashboardData.max_user));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r1.billingCycle === "MONTHLY");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.billingCycle === "ANNUALLY");
    i0.ɵɵadvance(6);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(27, 18, i0.ɵɵpipeBind1(28, 20, "label.dashboard_page.storage")));
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate1("", ctx_r1.fix2(ctx_r1.dashboardData.used_storage, ctx_r1.dashboardData.total_storage), " %");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r1.fix2(ctx_r1.dashboardData.used_storage, ctx_r1.dashboardData.total_storage));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(36, 22, "label.dashboard_page.storage_text", i0.ɵɵpureFunction2(25, _c1, ctx_r1.utils.formatBytes(ctx_r1.dashboardData.used_storage), ctx_r1.utils.formatBytes(ctx_r1.dashboardData.total_storage))), " ");
} }
var DashboardSdComponent = /** @class */ (function () {
    function DashboardSdComponent(dashboardService, location, authenticateService, datePipe, messageService, utils) {
        this.dashboardService = dashboardService;
        this.location = location;
        this.authenticateService = authenticateService;
        this.datePipe = datePipe;
        this.messageService = messageService;
        this.utils = utils;
        this.billingCycle = 'MONTHLY';
        this.loading = true;
    }
    DashboardSdComponent.prototype.ngOnInit = function () {
        var _a, _b;
        this.authUser = this.authenticateService.getAuthUser();
        this.packageObject = ((_a = this.authUser) === null || _a === void 0 ? void 0 : _a.package_object) || null;
        this.billingCycle = ((_b = this.packageObject) === null || _b === void 0 ? void 0 : _b.billing_cycle) || 'MONTHLY';
        this.loadDashboardData();
    };
    DashboardSdComponent.prototype.loadDashboardData = function () {
        var _this = this;
        this.loading = true;
        this.dashboardService.getTeamStatistic(this.authUser.team_id).subscribe(function (response) {
            if (response.status === 200) {
                _this.dashboardData = response.data;
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('default_toast.load_data_failed'),
                });
                _this.loading = false;
            }
        }, function () {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('default_toast.load_data_failed'),
            });
            _this.loading = false;
        });
    };
    DashboardSdComponent.prototype.fix2 = function (num1, num2) {
        return ((num1 / num2) * 100).toFixed(2);
    };
    DashboardSdComponent.prototype.doBack = function () {
        this.location.back();
    };
    DashboardSdComponent.ɵfac = function DashboardSdComponent_Factory(t) { return new (t || DashboardSdComponent)(i0.ɵɵdirectiveInject(i1.DashboardService), i0.ɵɵdirectiveInject(i2.Location), i0.ɵɵdirectiveInject(i3.AuthenticateService), i0.ɵɵdirectiveInject(i2.DatePipe), i0.ɵɵdirectiveInject(i4.MessageService), i0.ɵɵdirectiveInject(i5.UtilsService)); };
    DashboardSdComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DashboardSdComponent, selectors: [["app-dashboard-sd"]], decls: 10, vars: 10, consts: [[1, "margin-body"], [1, "p-text-secondary", "header-custom"], ["class", "p-fluid p-formgrid p-grid p-mt-4 text-white", 4, "ngIf"], ["class", "p-card p-mt-3 bl-package-statistics", 4, "ngIf"], [1, "p-col-12", "p-mx-0", "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", 3, "label", "click"], [1, "p-fluid", "p-formgrid", "p-grid", "p-mt-4", "text-white"], [1, "p-col-12", "p-sm-6", "p-md-4", "p-field"], [1, "p-card", "bg-yellow-400", "p-p-4"], [1, "p-grid"], [1, "p-col-3"], [1, "fas", "fa-3x", "fa-tasks"], [1, "p-col-9", "p-text-right"], [1, "p-d-block", "p-text-xx-large"], [1, "p-card", "bg-purple-400", "p-p-4"], [1, "fas", "fa-3x", "fa-copy"], [1, "p-card", "bg-teal-400", "p-p-4"], [1, "fas", "fa-3x", "fa-users"], [1, "p-card", "bg-indigo-400", "p-p-4"], [1, "fas", "fa-3x", "fa-address-book"], [1, "p-card", "bg-pink-400", "p-p-4"], [1, "fas", "fa-3x", "fa-copy", "protect-parent"], [1, "fas", "fa-lock", "protect-child"], [1, "p-card", "p-mt-3", "bl-package-statistics"], [1, "p-card-title"], [1, "p-text-secondary", "title-custom"], [1, "p-card-body"], [1, "p-col-10", "p-ml-0", "p-ml-md-3", "p-mt-3", "p-grid"], [1, "p-col-12"], [1, "c-green", "p-text-bold"], [1, "p-sm-3", "p-d-flex", "p-align-center"], [1, "p-text-bold"], [1, "p-sm-9", 3, "value"], [4, "ngIf"], [1, "p-col-1", "p-mt-3", "p-d-flex", "p-align-center"], [1, "pi", "pi-users", "size-50"], [1, "c-blue", "p-text-bold"], [1, "pi", "pi-briefcase", "size-50"]], template: function DashboardSdComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "h2", 1);
            i0.ɵɵtext(2);
            i0.ɵɵpipe(3, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(4, DashboardSdComponent_div_4_Template, 57, 20, "div", 2);
            i0.ɵɵtemplate(5, DashboardSdComponent_div_5_Template, 39, 28, "div", 3);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(6, "div", 4);
            i0.ɵɵelementStart(7, "button", 5);
            i0.ɵɵlistener("click", function DashboardSdComponent_Template_button_click_7_listener() { return ctx.doBack(); });
            i0.ɵɵpipe(8, "titlecase");
            i0.ɵɵpipe(9, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 4, "header.dashboard.title_sd"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.dashboardData);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.dashboardData);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(8, 6, i0.ɵɵpipeBind1(9, 8, "button.back")));
        } }, directives: [i2.NgIf, i6.ButtonDirective, i7.Ripple, i8.ProgressBar], pipes: [i9.TranslatePipe, i2.TitleCasePipe, i2.UpperCasePipe], styles: [".bl-package-statistics[_ngcontent-%COMP%] {\n  border-left: 7px solid #77493d;\n}\n\n.c-green[_ngcontent-%COMP%] {\n  color: #5cb85c;\n}\n\n.c-blue[_ngcontent-%COMP%] {\n  color: #337AB3;\n}\n\n.c-orange[_ngcontent-%COMP%] {\n  color: #f0ad4e;\n}\n\n.size-50[_ngcontent-%COMP%] {\n  font-size: 50px;\n}\n\n.title-custom[_ngcontent-%COMP%] {\n  padding: 0;\n  margin: 0;\n}\n\n.bg-yellow-400[_ngcontent-%COMP%] {\n  background-color: #ffc107;\n}\n\n.bg-teal-400[_ngcontent-%COMP%] {\n  background-color: #20c997;\n}\n\n.bg-purple-400[_ngcontent-%COMP%] {\n  background-color: #6f42c1;\n}\n\n.bg-indigo-400[_ngcontent-%COMP%] {\n  background-color: #6610f2;\n}\n\n.bg-pink-400[_ngcontent-%COMP%] {\n  background-color: #d63384;\n}\n\n.text-white[_ngcontent-%COMP%]   .p-card[_ngcontent-%COMP%] {\n  color: white;\n}\n\n.text-dark[_ngcontent-%COMP%] {\n  color: black !important;\n}\n\n.protect-parent[_ngcontent-%COMP%] {\n  position: relative;\n}\n\n.protect-child[_ngcontent-%COMP%] {\n  position: absolute;\n  right: -4px;\n  bottom: -7px;\n  font-size: 16px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vZGFzaGJvYXJkL2Rhc2hib2FyZC1zZC9kYXNoYm9hcmQtc2QuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3RlYW0tYWRtaW4vZGFzaGJvYXJkL2Rhc2hib2FyZC1zZC9kYXNoYm9hcmQtc2QuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSw4QkFBQTtBQ0NGOztBREVBO0VBQ0UsY0FBQTtBQ0NGOztBREVBO0VBQ0UsY0FBQTtBQ0NGOztBREVBO0VBQ0UsY0FBQTtBQ0NGOztBREVBO0VBQ0UsZUFBQTtBQ0NGOztBREVBO0VBQ0UsVUFBQTtFQUNBLFNBQUE7QUNDRjs7QURFQTtFQUNFLHlCQUFBO0FDQ0Y7O0FERUE7RUFDRSx5QkFBQTtBQ0NGOztBREVBO0VBQ0UseUJBQUE7QUNDRjs7QURFQTtFQUNFLHlCQUFBO0FDQ0Y7O0FERUE7RUFDRSx5QkFBQTtBQ0NGOztBREVBO0VBQ0UsWUFBQTtBQ0NGOztBREVBO0VBQ0UsdUJBQUE7QUNDRjs7QURFQTtFQUNFLGtCQUFBO0FDQ0Y7O0FERUE7RUFDRSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvdGVhbS1hZG1pbi9kYXNoYm9hcmQvZGFzaGJvYXJkLXNkL2Rhc2hib2FyZC1zZC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5ibC1wYWNrYWdlLXN0YXRpc3RpY3Mge1xuICBib3JkZXItbGVmdDogN3B4IHNvbGlkICM3NzQ5M2Q7XG59XG5cbi5jLWdyZWVuIHtcbiAgY29sb3I6ICM1Y2I4NWM7XG59XG5cbi5jLWJsdWUge1xuICBjb2xvcjogIzMzN0FCMztcbn1cblxuLmMtb3JhbmdlIHtcbiAgY29sb3I6ICNmMGFkNGU7XG59XG5cbi5zaXplLTUwIHtcbiAgZm9udC1zaXplOiA1MHB4O1xufVxuXG4udGl0bGUtY3VzdG9tIHtcbiAgcGFkZGluZzogMDtcbiAgbWFyZ2luOiAwO1xufVxuXG4uYmcteWVsbG93LTQwMCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmMxMDdcbn1cblxuLmJnLXRlYWwtNDAwIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzIwYzk5N1xufVxuXG4uYmctcHVycGxlLTQwMCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICM2ZjQyYzFcbn1cblxuLmJnLWluZGlnby00MDAge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjNjYxMGYyXG59XG5cbi5iZy1waW5rLTQwMCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNkNjMzODRcbn1cblxuLnRleHQtd2hpdGUgLnAtY2FyZCB7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxuLnRleHQtZGFyayB7XG4gIGNvbG9yOiBibGFjayAhaW1wb3J0YW50O1xufVxuXG4ucHJvdGVjdC1wYXJlbnQge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbi5wcm90ZWN0LWNoaWxkIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICByaWdodDogLTRweDtcbiAgYm90dG9tOiAtN3B4O1xuICBmb250LXNpemU6IDE2cHg7XG59XG4iLCIuYmwtcGFja2FnZS1zdGF0aXN0aWNzIHtcbiAgYm9yZGVyLWxlZnQ6IDdweCBzb2xpZCAjNzc0OTNkO1xufVxuXG4uYy1ncmVlbiB7XG4gIGNvbG9yOiAjNWNiODVjO1xufVxuXG4uYy1ibHVlIHtcbiAgY29sb3I6ICMzMzdBQjM7XG59XG5cbi5jLW9yYW5nZSB7XG4gIGNvbG9yOiAjZjBhZDRlO1xufVxuXG4uc2l6ZS01MCB7XG4gIGZvbnQtc2l6ZTogNTBweDtcbn1cblxuLnRpdGxlLWN1c3RvbSB7XG4gIHBhZGRpbmc6IDA7XG4gIG1hcmdpbjogMDtcbn1cblxuLmJnLXllbGxvdy00MDAge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZjMTA3O1xufVxuXG4uYmctdGVhbC00MDAge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjBjOTk3O1xufVxuXG4uYmctcHVycGxlLTQwMCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICM2ZjQyYzE7XG59XG5cbi5iZy1pbmRpZ28tNDAwIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzY2MTBmMjtcbn1cblxuLmJnLXBpbmstNDAwIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Q2MzM4NDtcbn1cblxuLnRleHQtd2hpdGUgLnAtY2FyZCB7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxuLnRleHQtZGFyayB7XG4gIGNvbG9yOiBibGFjayAhaW1wb3J0YW50O1xufVxuXG4ucHJvdGVjdC1wYXJlbnQge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbi5wcm90ZWN0LWNoaWxkIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICByaWdodDogLTRweDtcbiAgYm90dG9tOiAtN3B4O1xuICBmb250LXNpemU6IDE2cHg7XG59Il19 */"] });
    return DashboardSdComponent;
}());
exports.DashboardSdComponent = DashboardSdComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(DashboardSdComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-dashboard-sd',
                templateUrl: './dashboard-sd.component.html',
                styleUrls: ['./dashboard-sd.component.scss'],
            }]
    }], function () { return [{ type: i1.DashboardService }, { type: i2.Location }, { type: i3.AuthenticateService }, { type: i2.DatePipe }, { type: i4.MessageService }, { type: i5.UtilsService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/dashboard/dashboard-sm/dashboard-sm.component.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/team-admin/dashboard/dashboard-sm/dashboard-sm.component.ts ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.DashboardSmComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var utils_1 = __webpack_require__(/*! codelyzer/util/utils */ "./node_modules/codelyzer/util/utils.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/dashboard.service */ "./src/app/shared/services/dashboard.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! primeng/table */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! primeng/progressbar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-progressbar.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! primeng/chart */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-chart.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function DashboardSmComponent_ng_template_11_th_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var col_r10 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", col_r10.header, " ");
} }
function DashboardSmComponent_ng_template_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, DashboardSmComponent_ng_template_11_th_1_Template, 2, 1, "th", 32);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var columns_r8 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", columns_r8);
} }
function DashboardSmComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 33);
    i0.ɵɵelementStart(2, "span", 34);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelement(4, "i", 35);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "td");
    i0.ɵɵelementStart(7, "span", 34);
    i0.ɵɵtext(8);
    i0.ɵɵelementEnd();
    i0.ɵɵtext(9);
    i0.ɵɵpipe(10, "date");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "td", 33);
    i0.ɵɵelementStart(12, "span", 34);
    i0.ɵɵtext(13);
    i0.ɵɵelementEnd();
    i0.ɵɵtext(14);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var recent_r11 = ctx.$implicit;
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r1.recentCols[0].header);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", recent_r11.subject, " ");
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r1.recentCols[1].header);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(10, 6, recent_r11.created_date, "MM/dd/YYYY HH:mm:ss"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate(ctx_r1.recentCols[2].header);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", recent_r11.owner_email, " ");
} }
function DashboardSmComponent_ng_template_13_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 36);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "label.no_record"));
} }
function DashboardSmComponent_ng_template_22_th_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var col_r14 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", col_r14.header, " ");
} }
function DashboardSmComponent_ng_template_22_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, DashboardSmComponent_ng_template_22_th_1_Template, 2, 1, "th", 32);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var columns_r12 = ctx.$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", columns_r12);
} }
function DashboardSmComponent_ng_template_23_span_17_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 42);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.admin"), " ");
} }
function DashboardSmComponent_ng_template_23_span_18_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 43);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.manager"), " ");
} }
function DashboardSmComponent_ng_template_23_span_19_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 44);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.user"), " ");
} }
function DashboardSmComponent_ng_template_23_span_20_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 45);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.guest"), " ");
} }
function DashboardSmComponent_ng_template_23_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 33);
    i0.ɵɵelementStart(2, "span", 34);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "td", 33);
    i0.ɵɵelementStart(6, "span", 34);
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵtext(8);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "td", 33);
    i0.ɵɵelementStart(10, "span", 34);
    i0.ɵɵtext(11);
    i0.ɵɵelementEnd();
    i0.ɵɵtext(12);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(13, "td");
    i0.ɵɵelementStart(14, "span", 34);
    i0.ɵɵtext(15);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "span", 37);
    i0.ɵɵtemplate(17, DashboardSmComponent_ng_template_23_span_17_Template, 3, 3, "span", 38);
    i0.ɵɵtemplate(18, DashboardSmComponent_ng_template_23_span_18_Template, 3, 3, "span", 39);
    i0.ɵɵtemplate(19, DashboardSmComponent_ng_template_23_span_19_Template, 3, 3, "span", 40);
    i0.ɵɵtemplate(20, DashboardSmComponent_ng_template_23_span_20_Template, 3, 3, "span", 41);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(21, "td");
    i0.ɵɵelementStart(22, "span", 34);
    i0.ɵɵtext(23);
    i0.ɵɵelementEnd();
    i0.ɵɵtext(24);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var topMember_r15 = ctx.$implicit;
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r4.topMemberCols[0].header);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", topMember_r15.user.first_name, " ");
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r4.topMemberCols[1].header);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", topMember_r15.user.last_name, " ");
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r4.topMemberCols[2].header);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", topMember_r15.user.mail_address, " ");
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r4.topMemberCols[3].header);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitch", topMember_r15.user.role_id);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(ctx_r4.topMemberCols[4].header);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", topMember_r15.total_transmission, " ");
} }
function DashboardSmComponent_ng_template_24_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 46);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "label.no_record"));
} }
var _c0 = function (a0, a1) { return { "used": a0, "total": a1 }; };
function DashboardSmComponent_span_76_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, "label.dashboard_page.transaction_text_month", i0.ɵɵpureFunction2(4, _c0, ctx_r6.packageStatistic.used_transmission, ctx_r6.packageStatistic.total_transmissions)), " ");
} }
function DashboardSmComponent_span_77_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r7 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, "label.dashboard_page.transaction_text_year", i0.ɵɵpureFunction2(4, _c0, ctx_r7.packageStatistic.used_transmission, ctx_r7.packageStatistic.total_transmissions)), " ");
} }
var _c1 = function (a0, a1) { return { "used": a0, "storage": a1 }; };
var DashboardSmComponent = /** @class */ (function () {
    function DashboardSmComponent(dashboardService, location, datePipe, messageService, utils, authService) {
        this.dashboardService = dashboardService;
        this.location = location;
        this.datePipe = datePipe;
        this.messageService = messageService;
        this.utils = utils;
        this.authService = authService;
        this.billingCycle = 'MONTHLY';
        this.recents = [];
        this.topMembers = [];
        this.packageStatistic = {};
        this.generalStatistics = [];
    }
    DashboardSmComponent.prototype.ngOnInit = function () {
        var _a, _b;
        this.authUser = this.authService.getAuthUser();
        this.packageObject = ((_a = this.authUser) === null || _a === void 0 ? void 0 : _a.package_object) || null;
        this.billingCycle = ((_b = this.packageObject) === null || _b === void 0 ? void 0 : _b.billing_cycle) || 'MONTHLY';
        this.recentCols = [
            {
                field: 'subject',
                header: utils_1.toTitleCase(this.utils.translate('table_header.dashboard.recently_sent_files.subject')),
            },
            {
                field: 'dateSent',
                header: utils_1.toTitleCase(this.utils.translate('table_header.dashboard.recently_sent_files.date_sent')),
            },
            {
                field: 'ownEmail',
                header: utils_1.toTitleCase(this.utils.translate('table_header.dashboard.recently_sent_files.owner_email')),
            },
        ];
        this.topMemberCols = [
            {
                field: 'firstName',
                header: utils_1.toTitleCase(this.utils.translate('table_header.common.first_name')),
            },
            {
                field: 'lastName',
                header: utils_1.toTitleCase(this.utils.translate('table_header.common.last_name')),
            },
            {
                field: 'email',
                header: utils_1.toTitleCase(this.utils.translate('table_header.common.mail_address')),
            },
            {
                field: 'role',
                header: utils_1.toTitleCase(this.utils.translate('table_header.member.role')),
            },
            {
                field: 'transmissionUsed',
                header: utils_1.toTitleCase(this.utils.translate('table_header.dashboard.transmission_used')),
            },
        ];
        this.basicOptions = {
            legend: {
                labels: {
                    fontColor: '#495057',
                },
            },
            scales: {
                xAxes: [
                    {
                        ticks: {
                            fontColor: '#495057',
                        },
                    },
                ],
                yAxes: [
                    {
                        ticks: {
                            fontColor: '#495057',
                            beginAtZero: true,
                        },
                    },
                ],
            },
        };
        this.loadRecents();
        this.loadTopMembers();
        this.loadPackageStatistics();
        this.loadGeneralStatistics();
    };
    DashboardSmComponent.prototype.loadRecents = function () {
        var _this = this;
        this.loading = true;
        this.dashboardService.getRecentlySentMails().subscribe(function (response) {
            if (response.status === 200) {
                _this.recents = response.data;
            }
            else {
                _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
                _this.loading = false;
            }
        }, function (error) {
            _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
            _this.loading = false;
        });
    };
    DashboardSmComponent.prototype.loadTopMembers = function () {
        var _this = this;
        var date = new Date();
        var firstDay = this.datePipe.transform(new Date(date.getFullYear(), date.getMonth(), 1), 'yyyy/MM/dd 00:00:00');
        var lastDay = this.datePipe.transform(new Date(date.getFullYear(), date.getMonth() + 1, 0), 'yyyy/MM/dd 23:59:59');
        var params = {
            start_date: firstDay,
            end_date: lastDay,
        };
        this.dashboardService
            .getTop3MembersUsedTheMostTransmissions(params)
            .subscribe(function (response) {
            if (response.status === 200) {
                _this.topMembers = response.data.user_links;
            }
            else {
                _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
                _this.loading = false;
            }
        }, function (error) {
            _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
            _this.loading = false;
        });
    };
    DashboardSmComponent.prototype.loadPackageStatistics = function () {
        var _this = this;
        this.dashboardService.getDashboardSecureMail().subscribe(function (response) {
            if (response.status === 200) {
                _this.packageStatistic = response.data;
                _this.loadValue();
            }
            else {
                _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
                _this.loading = false;
            }
        }, function (error) {
            _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
            _this.loading = false;
        });
    };
    DashboardSmComponent.prototype.loadGeneralStatistics = function () {
        var _this = this;
        var year = new Date().getFullYear();
        var month = new Date().getMonth();
        this.dashboardService.generalStatistics(year).subscribe(function (response) {
            if (response.status === 200) {
                _this.generalStatistics = response.data;
                _this.basicData = {
                    labels: [
                        _this.utils.translate('months.january'),
                        _this.utils.translate('months.february'),
                        _this.utils.translate('months.march'),
                        _this.utils.translate('months.april'),
                        _this.utils.translate('months.may'),
                        _this.utils.translate('months.june'),
                        _this.utils.translate('months.july'),
                        _this.utils.translate('months.august'),
                        _this.utils.translate('months.september'),
                        _this.utils.translate('months.october'),
                        _this.utils.translate('months.november'),
                        _this.utils.translate('months.december'),
                    ],
                    datasets: [
                        {
                            label: _this.utils.translate('label.dashboard_page.number_of_link'),
                            data: _this.generalStatistics.map(function (x, index) {
                                if (index <= month) {
                                    return x.total_link_shared;
                                }
                            }),
                            fill: false,
                            borderColor: '#42A5F5',
                        },
                        {
                            label: _this.utils.translate('label.dashboard_page.number_of_transaction'),
                            data: _this.generalStatistics.map(function (x, index) {
                                if (index <= month) {
                                    return x.total_transmission_used;
                                }
                            }),
                            fill: false,
                            borderColor: '#FFA726',
                        },
                    ],
                };
            }
            else {
                _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
                _this.loading = false;
            }
        }, function (error) {
            _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
            _this.loading = false;
        });
    };
    DashboardSmComponent.prototype.loadValue = function () {
        this.memberValue = this.fix2(this.packageStatistic.number_users_in_team, this.packageStatistic.total_users);
        this.storageValue = this.fix2(this.packageStatistic.used_storage, this.packageStatistic.total_storage);
        this.transmissionValue = this.fix2(this.packageStatistic.used_transmission, this.packageStatistic.total_transmissions);
    };
    DashboardSmComponent.prototype.fix2 = function (num1, num2) {
        return ((num1 / num2) * 100).toFixed(2);
    };
    DashboardSmComponent.prototype.doBack = function () {
        this.location.back();
    };
    DashboardSmComponent.prototype.showToast = function (severity, detail) {
        this.messageService.add({
            key: 'toast',
            severity: severity,
            detail: detail,
        });
    };
    DashboardSmComponent.ɵfac = function DashboardSmComponent_Factory(t) { return new (t || DashboardSmComponent)(i0.ɵɵdirectiveInject(i1.DashboardService), i0.ɵɵdirectiveInject(i2.Location), i0.ɵɵdirectiveInject(i2.DatePipe), i0.ɵɵdirectiveInject(i3.MessageService), i0.ɵɵdirectiveInject(i4.UtilsService), i0.ɵɵdirectiveInject(i5.AuthenticateService)); };
    DashboardSmComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DashboardSmComponent, selectors: [["app-dashboard-sm"]], decls: 93, vars: 69, consts: [[1, "margin-body"], [1, "p-text-secondary", "header-custom"], [1, "p-card", "p-mt-3", "bl-recently"], [1, "p-card-title"], [1, "p-text-secondary", "title-custom"], [1, "p-card-body"], ["styleClass", "p-datatable-responsive-demo", 3, "columns", "value"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [1, "p-card", "p-mt-3", "bl-top-members"], [1, "p-card", "p-mt-3", "bl-package-statistics"], [1, "p-grid"], [1, "p-col-10", "p-ml-0", "p-ml-md-3", "p-mt-3", "p-grid"], [1, "p-col-12"], [1, "c-green", "p-text-bold"], [1, "p-sm-3", "p-d-flex", "p-align-center"], [1, "p-text-bold"], [1, "p-sm-9", 3, "value"], [1, "p-col-1", "p-mt-3", "p-d-flex", "p-align-center"], [1, "pi", "pi-users", "size-50"], [1, "c-blue", "p-text-bold"], [1, "pi", "pi-briefcase", "size-50"], [1, "c-orange", "p-text-bold"], [4, "ngIf"], [1, "pi", "pi-send", "size-50"], [1, "p-card", "p-mt-3", "bl-general-statistics"], [1, "p-card-body", "p-text-center", "p-grid"], [1, "p-col-12", "p-md-offset-1", "p-md-10", "p-lg-offset-2", "p-lg-8"], ["type", "line", 3, "data", "options"], [1, "p-col-12", "p-mx-0", "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", 3, "label", "click"], [4, "ngFor", "ngForOf"], [1, "p-text-truncate"], [1, "p-column-title"], [1, "pi", "pi-envelope"], ["colspan", "3", 1, "p-text-center"], [1, "p-text-nowrap", 3, "ngSwitch"], ["class", "p-badge p-badge-success", 4, "ngSwitchCase"], ["class", "p-badge", 4, "ngSwitchCase"], ["class", "p-badge p-badge-info", 4, "ngSwitchCase"], ["class", "p-badge p-badge-secondary", 4, "ngSwitchCase"], [1, "p-badge", "p-badge-success"], [1, "p-badge"], [1, "p-badge", "p-badge-info"], [1, "p-badge", "p-badge-secondary"], ["colspan", "5", 1, "p-text-center"]], template: function DashboardSmComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "h2", 1);
            i0.ɵɵtext(2);
            i0.ɵɵpipe(3, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(4, "div", 2);
            i0.ɵɵelementStart(5, "div", 3);
            i0.ɵɵelementStart(6, "h4", 4);
            i0.ɵɵtext(7);
            i0.ɵɵpipe(8, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(9, "div", 5);
            i0.ɵɵelementStart(10, "p-table", 6);
            i0.ɵɵtemplate(11, DashboardSmComponent_ng_template_11_Template, 2, 1, "ng-template", 7);
            i0.ɵɵtemplate(12, DashboardSmComponent_ng_template_12_Template, 15, 9, "ng-template", 8);
            i0.ɵɵtemplate(13, DashboardSmComponent_ng_template_13_Template, 4, 3, "ng-template", 9);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(14, "div", 10);
            i0.ɵɵelementStart(15, "div", 3);
            i0.ɵɵelementStart(16, "h4", 4);
            i0.ɵɵtext(17);
            i0.ɵɵpipe(18, "titlecase");
            i0.ɵɵpipe(19, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(20, "div", 5);
            i0.ɵɵelementStart(21, "p-table", 6);
            i0.ɵɵtemplate(22, DashboardSmComponent_ng_template_22_Template, 2, 1, "ng-template", 7);
            i0.ɵɵtemplate(23, DashboardSmComponent_ng_template_23_Template, 25, 14, "ng-template", 8);
            i0.ɵɵtemplate(24, DashboardSmComponent_ng_template_24_Template, 4, 3, "ng-template", 9);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(25, "div", 11);
            i0.ɵɵelementStart(26, "div", 3);
            i0.ɵɵelementStart(27, "h4", 4);
            i0.ɵɵtext(28);
            i0.ɵɵpipe(29, "titlecase");
            i0.ɵɵpipe(30, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(31, "div", 5);
            i0.ɵɵelementStart(32, "div", 12);
            i0.ɵɵelementStart(33, "div", 13);
            i0.ɵɵelementStart(34, "div", 14);
            i0.ɵɵelementStart(35, "span", 15);
            i0.ɵɵtext(36);
            i0.ɵɵpipe(37, "uppercase");
            i0.ɵɵpipe(38, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(39, "div", 16);
            i0.ɵɵelementStart(40, "span", 17);
            i0.ɵɵtext(41);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelement(42, "p-progressBar", 18);
            i0.ɵɵelementStart(43, "div", 14);
            i0.ɵɵelementStart(44, "span");
            i0.ɵɵtext(45);
            i0.ɵɵpipe(46, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(47, "div", 19);
            i0.ɵɵelement(48, "i", 20);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(49, "div", 13);
            i0.ɵɵelementStart(50, "div", 14);
            i0.ɵɵelementStart(51, "span", 21);
            i0.ɵɵtext(52);
            i0.ɵɵpipe(53, "uppercase");
            i0.ɵɵpipe(54, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(55, "div", 16);
            i0.ɵɵelementStart(56, "span", 17);
            i0.ɵɵtext(57);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelement(58, "p-progressBar", 18);
            i0.ɵɵelementStart(59, "div", 14);
            i0.ɵɵelementStart(60, "span");
            i0.ɵɵtext(61);
            i0.ɵɵpipe(62, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(63, "div", 19);
            i0.ɵɵelement(64, "i", 22);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(65, "div", 13);
            i0.ɵɵelementStart(66, "div", 14);
            i0.ɵɵelementStart(67, "span", 23);
            i0.ɵɵtext(68);
            i0.ɵɵpipe(69, "uppercase");
            i0.ɵɵpipe(70, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(71, "div", 16);
            i0.ɵɵelementStart(72, "span", 17);
            i0.ɵɵtext(73);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelement(74, "p-progressBar", 18);
            i0.ɵɵelementStart(75, "div", 14);
            i0.ɵɵtemplate(76, DashboardSmComponent_span_76_Template, 3, 7, "span", 24);
            i0.ɵɵtemplate(77, DashboardSmComponent_span_77_Template, 3, 7, "span", 24);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(78, "div", 19);
            i0.ɵɵelement(79, "i", 25);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(80, "div", 26);
            i0.ɵɵelementStart(81, "div", 3);
            i0.ɵɵelementStart(82, "h4", 4);
            i0.ɵɵtext(83);
            i0.ɵɵpipe(84, "titlecase");
            i0.ɵɵpipe(85, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(86, "div", 27);
            i0.ɵɵelementStart(87, "div", 28);
            i0.ɵɵelement(88, "p-chart", 29);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(89, "div", 30);
            i0.ɵɵelementStart(90, "button", 31);
            i0.ɵɵlistener("click", function DashboardSmComponent_Template_button_click_90_listener() { return ctx.doBack(); });
            i0.ɵɵpipe(91, "titlecase");
            i0.ɵɵpipe(92, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 25, "header.dashboard.title_sm"), " ");
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 27, "card_header.recently_sent_files"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("columns", ctx.recentCols)("value", ctx.recents);
            i0.ɵɵadvance(7);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 29, i0.ɵɵpipeBind1(19, 31, "card_header.top_members")), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵproperty("columns", ctx.topMemberCols)("value", ctx.topMembers);
            i0.ɵɵadvance(7);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 33, i0.ɵɵpipeBind1(30, 35, "card_header.package_statistics")), " ");
            i0.ɵɵadvance(8);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(37, 37, i0.ɵɵpipeBind1(38, 39, "label.dashboard_page.member")));
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1("", ctx.memberValue, "%");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("value", ctx.memberValue);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(46, 41, "label.dashboard_page.user_text", i0.ɵɵpureFunction2(63, _c0, ctx.packageStatistic.number_users_in_team, ctx.packageStatistic.total_users)), " ");
            i0.ɵɵadvance(7);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(53, 44, i0.ɵɵpipeBind1(54, 46, "label.dashboard_page.storage")));
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1("", ctx.storageValue, "%");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("value", ctx.storageValue);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(62, 48, "label.dashboard_page.storage_text", i0.ɵɵpureFunction2(66, _c1, ctx.utils.formatBytes(ctx.packageStatistic.used_storage), ctx.utils.formatBytes(ctx.packageStatistic.total_storage))), " ");
            i0.ɵɵadvance(7);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(69, 51, i0.ɵɵpipeBind1(70, 53, "label.dashboard_page.transmission")));
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1("", ctx.transmissionValue, "%");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("value", ctx.transmissionValue);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.billingCycle === "MONTHLY");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.billingCycle === "ANNUALLY");
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(84, 55, i0.ɵɵpipeBind1(85, 57, "card_header.general_statistics")), " ");
            i0.ɵɵadvance(5);
            i0.ɵɵproperty("data", ctx.basicData)("options", ctx.basicOptions);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(91, 59, i0.ɵɵpipeBind1(92, 61, "button.back")));
        } }, directives: [i6.Table, i3.PrimeTemplate, i7.ProgressBar, i2.NgIf, i8.UIChart, i9.ButtonDirective, i10.Ripple, i2.NgForOf, i2.NgSwitch, i2.NgSwitchCase], pipes: [i11.TranslatePipe, i2.TitleCasePipe, i2.UpperCasePipe, i2.DatePipe], styles: ["[_nghost-%COMP%]     .p-datatable-responsive-demo .p-datatable-tbody > tr > td .p-column-title {\n  display: none;\n}\n\n@media screen and (max-width: 40rem) {\n  [_nghost-%COMP%]     p-progressBar {\n    width: 100%;\n  }\n  [_nghost-%COMP%]     .p-datatable.p-datatable-responsive-demo .p-datatable-thead > tr > th, [_nghost-%COMP%]     .p-datatable.p-datatable-responsive-demo .p-datatable-tfoot > tr > td {\n    display: none !important;\n  }\n  [_nghost-%COMP%]     .p-datatable.p-datatable-responsive-demo .p-datatable-tbody > tr > td {\n    text-align: left;\n    display: block;\n    width: 100%;\n    float: left;\n    clear: left;\n    border: 0 none;\n  }\n  [_nghost-%COMP%]     .p-datatable.p-datatable-responsive-demo .p-datatable-tbody > tr > td .p-column-title {\n    padding: 0.4rem;\n    min-width: 30%;\n    display: inline-block;\n    margin: -0.4em 1em -0.4em -0.4rem;\n    font-weight: bold;\n  }\n  [_nghost-%COMP%]     .p-datatable.p-datatable-responsive-demo .p-datatable-tbody > tr > td:last-child {\n    border-bottom: 1px solid var(--surface-d);\n  }\n}\n\n.bl-recently[_ngcontent-%COMP%] {\n  border-left: 7px solid #5cb85c;\n}\n\n.bl-top-members[_ngcontent-%COMP%] {\n  border-left: 7px solid #337AB3;\n}\n\n.bl-package-statistics[_ngcontent-%COMP%] {\n  border-left: 7px solid #77493d;\n}\n\n.bl-general-statistics[_ngcontent-%COMP%] {\n  border-left: 7px solid #f0ad4e;\n}\n\n.c-green[_ngcontent-%COMP%] {\n  color: #5cb85c;\n}\n\n.c-blue[_ngcontent-%COMP%] {\n  color: #337AB3;\n}\n\n.c-orange[_ngcontent-%COMP%] {\n  color: #f0ad4e;\n}\n\n.size-50[_ngcontent-%COMP%] {\n  font-size: 50px;\n}\n\n.title-custom[_ngcontent-%COMP%] {\n  padding: 0;\n  margin: 0;\n}\n/*# sourceMappingURL=data:application/json;base64,  */"] });
    return DashboardSmComponent;
}());
exports.DashboardSmComponent = DashboardSmComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(DashboardSmComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-dashboard-sm',
                templateUrl: './dashboard-sm.component.html',
                styleUrls: ['./dashboard-sm.component.scss'],
            }]
    }], function () { return [{ type: i1.DashboardService }, { type: i2.Location }, { type: i2.DatePipe }, { type: i3.MessageService }, { type: i4.UtilsService }, { type: i5.AuthenticateService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/dashboard/dashboard.component.ts":
/*!*************************************************************!*\
  !*** ./src/app/team-admin/dashboard/dashboard.component.ts ***!
  \*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.DashboardComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var api_1 = __webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var DashboardComponent = /** @class */ (function () {
    function DashboardComponent() {
    }
    DashboardComponent.prototype.ngOnInit = function () {
    };
    DashboardComponent.ɵfac = function DashboardComponent_Factory(t) { return new (t || DashboardComponent)(); };
    DashboardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DashboardComponent, selectors: [["app-dashboard"]], features: [i0.ɵɵProvidersFeature([api_1.MessageService, common_1.DatePipe])], decls: 1, vars: 0, template: function DashboardComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelement(0, "router-outlet");
        } }, directives: [i1.RouterOutlet], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vZGFzaGJvYXJkL2Rhc2hib2FyZC5jb21wb25lbnQuc2NzcyJ9 */"] });
    return DashboardComponent;
}());
exports.DashboardComponent = DashboardComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(DashboardComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-dashboard',
                templateUrl: './dashboard.component.html',
                styleUrls: ['./dashboard.component.scss'],
                providers: [api_1.MessageService, common_1.DatePipe]
            }]
    }], function () { return []; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/member/member-create/member-create.component.ts":
/*!****************************************************************************!*\
  !*** ./src/app/team-admin/member/member-create/member-create.component.ts ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MemberCreateComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var validator_module_1 = __webpack_require__(/*! ../../../common/validator.module */ "./src/app/common/validator.module.ts");
var operators_1 = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var environment_1 = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team-setting.service */ "./src/app/shared/services/team-setting.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/user-group.service */ "./src/app/shared/services/user-group.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/member.service */ "./src/app/shared/services/member.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/dynamicdialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dynamicdialog.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/fileupload */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-fileupload.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i15 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i16 = tslib_1.__importStar(__webpack_require__(/*! primeng/dropdown */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js"));
var i17 = tslib_1.__importStar(__webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js"));
var i18 = tslib_1.__importStar(__webpack_require__(/*! primeng/table */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.js"));
var i19 = tslib_1.__importStar(__webpack_require__(/*! @ng-select/ng-select */ "./node_modules/@ng-select/ng-select/__ivy_ngcc__/fesm2015/ng-select-ng-select.js"));
var i20 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var i21 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function MemberCreateComponent_div_20_div_6_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberCreateComponent_div_20_div_6_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MemberCreateComponent_div_20_div_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 47);
    i0.ɵɵtemplate(1, MemberCreateComponent_div_20_div_6_small_1_Template, 3, 3, "small", 31);
    i0.ɵɵtemplate(2, MemberCreateComponent_div_20_div_6_small_2_Template, 3, 3, "small", 31);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r20 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r20.createUserFrm.controls["firstName"].errors == null ? null : ctx_r20.createUserFrm.controls["firstName"].errors.required) || (ctx_r20.createUserFrm.controls["firstName"].errors == null ? null : ctx_r20.createUserFrm.controls["firstName"].errors.whitespace));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r20.createUserFrm.controls["firstName"].errors == null ? null : ctx_r20.createUserFrm.controls["firstName"].errors.pattern);
} }
function MemberCreateComponent_div_20_div_12_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberCreateComponent_div_20_div_12_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MemberCreateComponent_div_20_div_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 47);
    i0.ɵɵtemplate(1, MemberCreateComponent_div_20_div_12_small_1_Template, 3, 3, "small", 31);
    i0.ɵɵtemplate(2, MemberCreateComponent_div_20_div_12_small_2_Template, 3, 3, "small", 31);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r21 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r21.createUserFrm.controls["lastName"].errors == null ? null : ctx_r21.createUserFrm.controls["lastName"].errors.required) || (ctx_r21.createUserFrm.controls["lastName"].errors == null ? null : ctx_r21.createUserFrm.controls["lastName"].errors.whitespace));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r21.createUserFrm.controls["lastName"].errors == null ? null : ctx_r21.createUserFrm.controls["lastName"].errors.pattern);
} }
function MemberCreateComponent_div_20_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 15);
    i0.ɵɵelementStart(1, "div", 16);
    i0.ɵɵelementStart(2, "label", 43);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(5, "input", 44);
    i0.ɵɵtemplate(6, MemberCreateComponent_div_20_div_6_Template, 3, 2, "div", 19);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "div", 16);
    i0.ɵɵelementStart(8, "label", 45);
    i0.ɵɵtext(9);
    i0.ɵɵpipe(10, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(11, "input", 46);
    i0.ɵɵtemplate(12, MemberCreateComponent_div_20_div_12_Template, 3, 2, "div", 19);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6, "label.common.first_name"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngClass", (ctx_r1.createUserFrm.controls["firstName"].touched || ctx_r1.createUserFrm.controls["firstName"].dirty) && ctx_r1.createUserFrm.controls["firstName"].invalid ? "p-invalid" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r1.createUserFrm.controls["firstName"].touched || ctx_r1.createUserFrm.controls["firstName"].dirty) && ctx_r1.createUserFrm.controls["firstName"].errors);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 8, "label.common.last_name"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngClass", (ctx_r1.createUserFrm.controls["lastName"].touched || ctx_r1.createUserFrm.controls["lastName"].dirty) && ctx_r1.createUserFrm.controls["lastName"].invalid ? "p-invalid" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r1.createUserFrm.controls["lastName"].touched || ctx_r1.createUserFrm.controls["lastName"].dirty) && ctx_r1.createUserFrm.controls["lastName"].errors);
} }
function MemberCreateComponent_div_21_div_6_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberCreateComponent_div_21_div_6_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MemberCreateComponent_div_21_div_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 47);
    i0.ɵɵtemplate(1, MemberCreateComponent_div_21_div_6_small_1_Template, 3, 3, "small", 31);
    i0.ɵɵtemplate(2, MemberCreateComponent_div_21_div_6_small_2_Template, 3, 3, "small", 31);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r26 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r26.createUserFrm.controls["lastName"].errors == null ? null : ctx_r26.createUserFrm.controls["lastName"].errors.required) || (ctx_r26.createUserFrm.controls["lastName"].errors == null ? null : ctx_r26.createUserFrm.controls["lastName"].errors.whitespace));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r26.createUserFrm.controls["lastName"].errors == null ? null : ctx_r26.createUserFrm.controls["lastName"].errors.pattern);
} }
function MemberCreateComponent_div_21_div_12_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberCreateComponent_div_21_div_12_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MemberCreateComponent_div_21_div_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 47);
    i0.ɵɵtemplate(1, MemberCreateComponent_div_21_div_12_small_1_Template, 3, 3, "small", 31);
    i0.ɵɵtemplate(2, MemberCreateComponent_div_21_div_12_small_2_Template, 3, 3, "small", 31);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r27 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r27.createUserFrm.controls["firstName"].errors == null ? null : ctx_r27.createUserFrm.controls["firstName"].errors.required) || (ctx_r27.createUserFrm.controls["firstName"].errors == null ? null : ctx_r27.createUserFrm.controls["firstName"].errors.whitespace));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r27.createUserFrm.controls["firstName"].errors == null ? null : ctx_r27.createUserFrm.controls["firstName"].errors.pattern);
} }
function MemberCreateComponent_div_21_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 15);
    i0.ɵɵelementStart(1, "div", 16);
    i0.ɵɵelementStart(2, "label", 48);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(5, "input", 49);
    i0.ɵɵtemplate(6, MemberCreateComponent_div_21_div_6_Template, 3, 2, "div", 19);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "div", 16);
    i0.ɵɵelementStart(8, "label", 50);
    i0.ɵɵtext(9);
    i0.ɵɵpipe(10, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(11, "input", 51);
    i0.ɵɵtemplate(12, MemberCreateComponent_div_21_div_12_Template, 3, 2, "div", 19);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6, "label.common.last_name"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngClass", (ctx_r2.createUserFrm.controls["lastName"].touched || ctx_r2.createUserFrm.controls["lastName"].dirty) && ctx_r2.createUserFrm.controls["lastName"].invalid ? "p-invalid" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r2.createUserFrm.controls["lastName"].touched || ctx_r2.createUserFrm.controls["lastName"].dirty) && ctx_r2.createUserFrm.controls["lastName"].errors);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 8, "label.common.first_name"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngClass", (ctx_r2.createUserFrm.controls["firstName"].touched || ctx_r2.createUserFrm.controls["firstName"].dirty) && ctx_r2.createUserFrm.controls["firstName"].invalid ? "p-invalid" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r2.createUserFrm.controls["firstName"].touched || ctx_r2.createUserFrm.controls["firstName"].dirty) && ctx_r2.createUserFrm.controls["firstName"].errors);
} }
function MemberCreateComponent_div_28_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberCreateComponent_div_28_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.invalid_email"), " ");
} }
function MemberCreateComponent_div_28_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 47);
    i0.ɵɵtemplate(1, MemberCreateComponent_div_28_small_1_Template, 3, 3, "small", 31);
    i0.ɵɵtemplate(2, MemberCreateComponent_div_28_small_2_Template, 3, 3, "small", 31);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r3.createUserFrm.controls["mailAddress"].errors == null ? null : ctx_r3.createUserFrm.controls["mailAddress"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r3.createUserFrm.controls["mailAddress"].errors == null ? null : ctx_r3.createUserFrm.controls["mailAddress"].errors.pattern);
} }
function MemberCreateComponent_div_42_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberCreateComponent_div_42_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r35 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r35.notificationError, " ");
} }
function MemberCreateComponent_div_42_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 47);
    i0.ɵɵtemplate(1, MemberCreateComponent_div_42_small_1_Template, 3, 3, "small", 31);
    i0.ɵɵtemplate(2, MemberCreateComponent_div_42_small_2_Template, 2, 1, "small", 31);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.createUserFrm.controls["password"].errors == null ? null : ctx_r4.createUserFrm.controls["password"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.createUserFrm.controls["password"].errors == null ? null : ctx_r4.createUserFrm.controls["password"].errors.pattern);
} }
function MemberCreateComponent_div_49_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberCreateComponent_div_49_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.password_not_match"), " ");
} }
function MemberCreateComponent_div_49_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 47);
    i0.ɵɵtemplate(1, MemberCreateComponent_div_49_small_1_Template, 3, 3, "small", 31);
    i0.ɵɵtemplate(2, MemberCreateComponent_div_49_small_2_Template, 3, 3, "small", 31);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r5.createUserFrm.controls["confirmPassword"].errors == null ? null : ctx_r5.createUserFrm.controls["confirmPassword"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r5.createUserFrm.controls["confirmPassword"].errors == null ? null : ctx_r5.createUserFrm.controls["confirmPassword"].errors.confirmedValidator);
} }
function MemberCreateComponent_div_51_ng_template_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "b");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵtext(3);
} if (rf & 2) {
    var search_r39 = ctx.searchTerm;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, "label.create_new"));
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", search_r39, " ");
} }
var _c0 = function () { return { maxLength: "64" }; };
function MemberCreateComponent_div_51_Template(rf, ctx) { if (rf & 1) {
    var _r41 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 16);
    i0.ɵɵelementStart(1, "label", 52);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 53);
    i0.ɵɵelementStart(5, "ng-select", 54);
    i0.ɵɵlistener("keypress", function MemberCreateComponent_div_51_Template_ng_select_keypress_5_listener($event) { i0.ɵɵrestoreView(_r41); var ctx_r40 = i0.ɵɵnextContext(); return ctx_r40.blockSpecialChars($event); })("ngModelChange", function MemberCreateComponent_div_51_Template_ng_select_ngModelChange_5_listener($event) { i0.ɵɵrestoreView(_r41); var ctx_r42 = i0.ɵɵnextContext(); return ctx_r42.selectedGroup = $event; });
    i0.ɵɵpipe(6, "async");
    i0.ɵɵtemplate(7, MemberCreateComponent_div_51_ng_template_7_Template, 4, 4, "ng-template", 55);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "button", 56);
    i0.ɵɵlistener("click", function MemberCreateComponent_div_51_Template_button_click_8_listener() { i0.ɵɵrestoreView(_r41); var ctx_r43 = i0.ɵɵnextContext(); return ctx_r43.loadGroupsModal(); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 8, "label.common.groups"), " ");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("items", i0.ɵɵpipeBind1(6, 10, ctx_r6.groupList$))("addTag", ctx_r6.addTagPromise)("hideSelected", true)("inputAttrs", i0.ɵɵpureFunction0(12, _c0))("loading", ctx_r6.loading)("ngModel", ctx_r6.selectedGroup);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("disabled", ctx_r6.isShowDialog);
} }
function MemberCreateComponent_div_52_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 57);
    i0.ɵɵelement(1, "p-checkbox", 58);
    i0.ɵɵelementStart(2, "label", 59);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r7 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r7.override)("inputId", ctx_r7.override);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("for", ctx_r7.override);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, "label.override"), " ");
} }
function MemberCreateComponent_span_59_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 60);
    i0.ɵɵelementEnd();
} }
function MemberCreateComponent_span_60_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 61);
    i0.ɵɵelementEnd();
} }
function MemberCreateComponent_div_62_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 62);
    i0.ɵɵelementStart(1, "div", 63);
    i0.ɵɵelementStart(2, "div", 64);
    i0.ɵɵelementStart(3, "div", 65);
    i0.ɵɵelement(4, "div");
    i0.ɵɵelement(5, "div");
    i0.ɵɵelement(6, "div");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} }
function MemberCreateComponent_ng_template_66_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "th", 66);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "th", 67);
    i0.ɵɵtext(5);
    i0.ɵɵpipe(6, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "table_header.common.mail_address"));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "table_header.common.description"));
} }
function MemberCreateComponent_ng_template_67_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 68);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td", 69);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var userErr_r44 = ctx.$implicit;
    var ctx_r12 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1("", userErr_r44.email, " ");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", ctx_r12.getErrorDescription(userErr_r44), " ");
} }
function MemberCreateComponent_ng_template_68_Template(rf, ctx) { if (rf & 1) {
    var _r46 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 70);
    i0.ɵɵlistener("click", function MemberCreateComponent_ng_template_68_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r46); var ctx_r45 = i0.ɵɵnextContext(); return ctx_r45.displayBasic2 = false; });
    i0.ɵɵpipe(1, "titlecase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, i0.ɵɵpipeBind1(2, 3, "button.back")));
} }
function MemberCreateComponent_ng_template_73_Template(rf, ctx) { if (rf & 1) {
    var _r48 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 71);
    i0.ɵɵelementStart(1, "span", 72);
    i0.ɵɵelement(2, "i", 73);
    i0.ɵɵelementStart(3, "input", 74);
    i0.ɵɵlistener("keyup", function MemberCreateComponent_ng_template_73_Template_input_keyup_3_listener($event) { i0.ɵɵrestoreView(_r48); var ctx_r47 = i0.ɵɵnextContext(); return ctx_r47.searchTable($event); })("ngModelChange", function MemberCreateComponent_ng_template_73_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r48); var ctx_r49 = i0.ɵɵnextContext(); return ctx_r49.searchKey = $event; });
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r15 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(4, 2, "label.search_placeholder"));
    i0.ɵɵproperty("ngModel", ctx_r15.searchKey);
} }
function MemberCreateComponent_ng_template_74_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "th", 75);
    i0.ɵɵelement(2, "p-tableHeaderCheckbox");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "th", 76);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelement(6, "p-sortIcon", 77);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "th", 78);
    i0.ɵɵtext(8);
    i0.ɵɵpipe(9, "translate");
    i0.ɵɵelement(10, "p-sortIcon", 79);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 2, "table_header.group_user.name"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 4, "table_header.group_user.numbers_user"), " ");
} }
function MemberCreateComponent_ng_template_75_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td");
    i0.ɵɵelement(2, "p-tableCheckbox", 80);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td", 68);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "td", 81);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var group_r50 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("value", group_r50);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(group_r50.name);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(group_r50.number_user);
} }
function MemberCreateComponent_ng_template_76_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 82);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 1, "label.no_record"), "");
} }
function MemberCreateComponent_ng_template_77_Template(rf, ctx) { if (rf & 1) {
    var _r52 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 83);
    i0.ɵɵlistener("click", function MemberCreateComponent_ng_template_77_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r52); var ctx_r51 = i0.ɵɵnextContext(); return ctx_r51.displayModalGroup = false; });
    i0.ɵɵpipe(1, "titlecase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "button", 84);
    i0.ɵɵlistener("click", function MemberCreateComponent_ng_template_77_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r52); var ctx_r53 = i0.ɵɵnextContext(); return ctx_r53.confirmSelectGroups(ctx_r53.selectedGroupsInModal); });
    i0.ɵɵpipe(4, "uppercase");
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r19 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 3, i0.ɵɵpipeBind1(2, 5, "button.cancel")));
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(4, 7, i0.ɵɵpipeBind1(5, 9, "button.ok")));
    i0.ɵɵproperty("disabled", !ctx_r19.selectedGroupsInModal || ctx_r19.selectedGroupsInModal.length === 0 || ctx_r19.loadingModalGroup);
} }
var MemberCreateComponent = /** @class */ (function () {
    function MemberCreateComponent(fb, authenticateService, teamSettingService, userGroupService, memberService, cookieService, router, location, messageService, dialogService, utils) {
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.teamSettingService = teamSettingService;
        this.userGroupService = userGroupService;
        this.memberService = memberService;
        this.cookieService = cookieService;
        this.router = router;
        this.location = location;
        this.messageService = messageService;
        this.dialogService = dialogService;
        this.utils = utils;
        this.isEmpty = false;
        this.uploadedFiles = [];
        this.createUserFrm = new forms_1.FormGroup({});
        this.override = false;
        this.roles = [];
        this.selectedGroup = [];
        this.groupList = [];
        // dialog group member
        this.displayModalGroup = false;
        this.rowOptions = constant_module_1.Constant.rowsPerPageOptions;
        this.loadingModalGroup = true;
        this.first = 0;
        this.rows = 5;
        this.paramsGroupModal = {
            team_id: '',
            search_key: '',
            sort_field: 'numberUser',
            asc_sort: false,
            page_number: 1,
            page_size: 5
        };
    }
    MemberCreateComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.isUseSDGlobal = this.authenticateService.isUseSDGlobal;
        this.isShowDialog = false;
        this.rowOptions = constant_module_1.Constant.rowsPerPageOptions;
        this.utils.translateList([
            'label.system_role.manager',
            'label.system_role.user',
            'label.system_role.guest',
        ], null).subscribe(function () {
            _this.roles = [
                { id: 2, name: _this.utils.translate('label.system_role.manager') },
                { id: 3, name: _this.utils.translate('label.system_role.user') },
                { id: 4, name: _this.utils.translate('label.system_role.guest') }
            ];
        });
        this.authUser = this.authenticateService.getAuthUser();
        this.importCSVUrl = environment_1.environment.backend_api
            + 'users/import?auth_token='
            + this.cookieService.get('a_t')
            + '&team_id=' + this.authUser.team_id;
        this.fileTemplatePath = (this.authUser.lang === 'ja')
            ? 'assets/data/CSVFile_Template_Import_User_JA.csv'
            : 'assets/data/CSVFile_Template_Import_User.csv';
        var params = {
            team_id: this.authUser.team_id,
            type: 0,
        };
        this.teamSettingService.getTeamSettingByType(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.teamSettings = res.data;
                var passwordPolicies = JSON.parse(decodeURIComponent(res.data.password_setting));
                _this.pw_max_length = passwordPolicies.max;
                _this.passwordPattern = new RegExp(passwordPolicies.regex);
                _this.utils.getPasswordPolicyError(passwordPolicies, function (response) {
                    _this.notificationError = response;
                });
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
                _this.doBack();
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
        this.createUserFrm = this.fb.group({
            firstName: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN), validator_module_1.noWhitespaceValidator
                ]
            ],
            lastName: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN), validator_module_1.noWhitespaceValidator
                ]
            ],
            mailAddress: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.EMAIL_PATTERN)
                ]
            ],
            password: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(this.passwordPattern)
                ]
            ],
            confirmPassword: ['', [forms_1.Validators.required]],
            selectedRole: [this.roles[1], [
                    forms_1.Validators.required
                ]
            ],
            selectedGroup: [[]],
            override: [true]
        }, {
            validator: validator_module_1.ConfirmedValidator('password', 'confirmPassword')
        });
        this.groupList$ = this.getGroups();
    };
    MemberCreateComponent.prototype.blockSpecialChars = function (event) {
        var k = event.charCode;
        // 44,   47/   60<   62>   123{   125}
        return (k !== 44 && k !== 47 && k !== 60
            && k !== 62 && k !== 123 && k !== 125);
    };
    MemberCreateComponent.prototype.addTagPromise = function (name) {
        if (name.length > 64) {
            return;
        }
        else {
            name = name.replace(/,/g, '').replace(/\\/g, '').replace(/\//g, '');
            return { value: name, name: name, tag: true };
        }
    };
    MemberCreateComponent.prototype.getGroups = function () {
        var _this = this;
        this.loading = true;
        var groupCustoms = [];
        return this.userGroupService.getGroupsAll()
            .pipe(operators_1.map(function (res) {
            if (res.status === 200) {
                res.data.forEach(function (res) {
                    groupCustoms.push({
                        value: res.name,
                        name: res.name
                    });
                });
            }
            _this.loading = false;
            return groupCustoms;
        }));
    };
    MemberCreateComponent.prototype.doCreateUser = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submitting = true;
        var userGroups = '';
        if (this.selectedGroup) {
            for (var i = 0; i < this.selectedGroup.length; i++) {
                if (i === this.selectedGroup.length - 1) {
                    userGroups = userGroups.concat(this.selectedGroup[i].name);
                }
                else {
                    userGroups = userGroups.concat(this.selectedGroup[i].name, ',');
                }
            }
        }
        var params = {
            team_id: this.authUser.team_id,
            first_name: this.createUserFrm.value.firstName,
            last_name: this.createUserFrm.value.lastName,
            mail_address: this.createUserFrm.value.mailAddress,
            password: this.createUserFrm.value.password,
            confirm_password: this.createUserFrm.value.confirmPassword,
            role_id: this.createUserFrm.value.selectedRole.id,
            group_names: userGroups,
            ignore: !this.createUserFrm.value.override
        };
        this.memberService.createUser(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.create_success')
                });
                _this.router.navigate(['/member/list']);
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submitting = false;
        }, function (err) {
            console.log('error', err);
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    MemberCreateComponent.prototype.doBack = function () {
        this.location.back();
    };
    MemberCreateComponent.prototype.onBasicUploadAuto = function (event) {
        var e_1, _a;
        try {
            for (var _b = tslib_1.__values(event.files), _c = _b.next(); !_c.done; _c = _b.next()) {
                var file = _c.value;
                this.uploadedFiles.push(file);
            }
        }
        catch (e_1_1) { e_1 = { error: e_1_1 }; }
        finally {
            try {
                if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
            }
            finally { if (e_1) throw e_1.error; }
        }
        var status = event.originalEvent.body.status;
        if (status === 200) {
            if (event.originalEvent.body.data.error_list.length === 0) {
                this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: this.utils.translate('default_toast.import_success')
                });
                this.router.navigate(['/member/list']);
            }
            else {
                this.displayBasic2 = true;
                this.userErrList = event.originalEvent.body.data.error_list;
            }
        }
        else {
            this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: this.utils.translate('sever_errors.' + status)
            });
        }
    };
    MemberCreateComponent.prototype.getErrorDescription = function (item) {
        if (item.error_type === 12) {
            return this.notificationError;
        }
        else {
            return this.utils.translate('error_type_CSV.' + item.error_type);
        }
    };
    MemberCreateComponent.prototype.confirmSelectGroups = function (res) {
        var _this = this;
        this.displayModalGroup = false;
        this.isShowDialog = false;
        if (res) {
            if (!this.createUserFrm.value.selectedGroup
                || this.createUserFrm.value.selectedGroup.length === 0) {
                res.forEach(function (itemChoose) {
                    _this.selectedGroup = tslib_1.__spread(_this.selectedGroup, [{
                            value: itemChoose.name,
                            name: itemChoose.name
                        }]);
                });
            }
            else {
                res.forEach(function (itemChoose) {
                    _this.createUserFrm.controls.selectedGroup.value.forEach(function (item) {
                        if (item.name !== itemChoose.name) {
                            _this.selectedGroup = tslib_1.__spread(_this.selectedGroup, [{
                                    value: itemChoose.name,
                                    name: itemChoose.name
                                }]);
                        }
                    });
                });
            }
        }
    };
    MemberCreateComponent.prototype.loadGroupsModal = function () {
        this.selectedGroupsInModal = [];
        this.first = 0;
        this.rows = 5;
        this.searchKey = '';
        this.paramsGroupModal = {
            search_key: '',
            sort_field: 'numberUser',
            asc_sort: false,
            page_number: 1,
            page_size: 5,
        };
        this.displayModalGroup = true;
        this.getGroupsModal();
    };
    MemberCreateComponent.prototype.loadGroupsModalEvent = function (event) {
        this.paramsGroupModal.page_number = (event.first / event.rows) + 1;
        this.paramsGroupModal.page_size = event.rows;
        this.rows = event.rows;
        this.paramsGroupModal.asc_sort = (event.sortOrder === 1);
        this.paramsGroupModal.sort_field = (event.sortField) ? event.sortField : 'numberUser';
        this.getGroupsModal();
    };
    MemberCreateComponent.prototype.getGroupsModal = function () {
        var _this = this;
        this.loadingModalGroup = true;
        this.paramsGroupModal.team_id = this.authUser.team_id;
        this.userGroupService.getGroupsAllPaging(this.paramsGroupModal)
            .subscribe(function (response) {
            if (response.status === 200) {
                _this.groups = response.data.content;
                _this.totalRecords = response.data.total_elements;
            }
            _this.loadingModalGroup = false;
        }, function (error) {
            console.log('error', error);
            _this.loadingModalGroup = false;
        });
    };
    MemberCreateComponent.prototype.searchTable = function (event) {
        if (event.keyCode === 13) {
            this.paramsGroupModal.search_key = this.searchKey;
            this.getGroupsModal();
        }
    };
    MemberCreateComponent.prototype.closeModalErrList = function () {
        this.userErrList = [];
    };
    MemberCreateComponent.ɵfac = function MemberCreateComponent_Factory(t) { return new (t || MemberCreateComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.AuthenticateService), i0.ɵɵdirectiveInject(i3.TeamSettingService), i0.ɵɵdirectiveInject(i4.UserGroupService), i0.ɵɵdirectiveInject(i5.MemberService), i0.ɵɵdirectiveInject(i6.CookieService), i0.ɵɵdirectiveInject(i7.Router), i0.ɵɵdirectiveInject(i8.Location), i0.ɵɵdirectiveInject(i9.MessageService), i0.ɵɵdirectiveInject(i10.DialogService), i0.ɵɵdirectiveInject(i11.UtilsService)); };
    MemberCreateComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MemberCreateComponent, selectors: [["app-member-create"]], decls: 78, vars: 84, consts: [[1, "margin-body"], [1, "p-text-secondary", "header-custom"], ["mode", "basic", "name", "file", "accept", ".csv", "styleClass", "p-d-none", 3, "url", "auto", "onUpload"], ["uploadFile", ""], [1, "p-grid", "p-col-12", "p-field", "p-text-left"], ["pRipple", "", "target", "_blank", "download", "689Cloud_Add_Members_Template.csv", 1, "p-button", "p-button-info", "p-button-raised", "p-mr-2", "hidden-underline", "x-none", 3, "href"], [1, "pi", "pi-download", "p-button-icon-left", "x-none"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-upload x-none p-button-icon-left", 1, "p-button-primary", "p-button-raised", "x-none", 3, "label", "click"], [1, "p-shadow-4"], [3, "formGroup", "ngSubmit"], [1, "p-card"], [1, "p-card-body"], [1, "p-grid"], [1, "p-col-12", "p-md-6"], ["class", "p-field", 4, "ngIf"], [1, "p-field"], [1, "p-field", "display-grid"], ["for", "email", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "email", "type", "email", "required", "", "maxlength", "64", "formControlName", "mailAddress", "pInputText", "", 3, "ngClass"], ["class", "p-invalid", 4, "ngIf"], ["for", "role", 1, "p-text-small", "p-mb-1", "p-text-bold"], ["id", "role", "formControlName", "selectedRole", "optionLabel", "name", 3, "options"], ["for", "password", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "password", "type", "password", "required", "", "formControlName", "password", "pInputText", "", 3, "maxlength", "pattern", "ngClass"], ["for", "confirm-password", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "confirm-password", "type", "password", "required", "", "formControlName", "confirmPassword", "pInputText", "", 3, "maxlength", "ngClass"], ["class", "p-field display-grid", 4, "ngIf"], ["class", "p-text-left", 4, "ngIf"], [1, "p-col-12", "p-mx-0", "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", 3, "label", "click"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled"], [4, "ngIf"], ["class", "p-col-12 loading-spinner", 4, "ngIf"], ["styleClass", "md-dialog", "position", "left", 3, "header", "visible", "modal", "maximizable", "draggable", "resizable", "baseZIndex", "visibleChange", "onHide"], ["styleClass", "p-datatable-striped p-datatable-responsive-demo", 3, "value"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "footer"], ["styleClass", "md-dialog", "position", "left", 3, "header", "visible", "modal", "maximizable", "draggable", "resizable", "baseZIndex", "visibleChange"], ["styleClass", "p-datatable-striped p-datatable-responsive-demo", 3, "rowHover", "paginator", "lazy", "loading", "totalRecords", "sortField", "sortOrder", "value", "first", "rows", "rowsPerPageOptions", "selection", "onLazyLoad", "firstChange", "selectionChange"], ["dt", ""], ["pTemplate", "caption"], ["pTemplate", "emptymessage"], ["for", "firstname", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "firstname", "type", "text", "required", "", "maxlength", "64", "formControlName", "firstName", "pInputText", "", 3, "ngClass"], ["for", "lastname", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "lastname", "type", "text", "required", "", "maxlength", "64", "formControlName", "lastName", "pInputText", "", 3, "ngClass"], [1, "p-invalid"], ["for", "lastname-ja", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "lastname-ja", "type", "text", "required", "", "maxlength", "64", "formControlName", "lastName", "pInputText", "", 3, "ngClass"], ["for", "firstname-ja", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "firstname-ja", "type", "text", "required", "", "maxlength", "64", "formControlName", "firstName", "pInputText", "", 3, "ngClass"], [1, "p-text-small", "p-mb-1", "p-text-bold"], [1, "p-inputgroup"], ["multiple", "true", "bindLabel", "name", "name", "selectedGroup", "formControlName", "selectedGroup", 1, "group-name", 3, "items", "addTag", "hideSelected", "inputAttrs", "loading", "ngModel", "keypress", "ngModelChange"], ["ng-tag-tmp", ""], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-book", 1, "p-button-primary", 3, "disabled", "click"], [1, "p-text-left"], ["name", "override", "binary", "true", "formControlName", "override", 3, "value", "inputId"], [1, "cs-pointer", "p-ml-2", "p-text-small", 3, "for"], [1, "pi", "pi-save", "p-button-icon-left"], [1, "pi", "pi-spin", "pi-spinner", "p-button-icon-left"], [1, "p-col-12", "loading-spinner"], [1, "overlay"], [1, "overlay__spinner"], [1, "lds-loading"], [2, "width", "40%"], [2, "width", "60%"], [1, "p-text-truncate"], [1, "p-text-13", "p-text-justify"], ["pRipple", "", "pButton", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", 3, "label", "click"], [1, "p-d-flex", "p-ai-center", "p-jc-between"], [1, "p-input-icon-left"], [1, "pi", "pi-search"], ["pInputText", "", "type", "text", 1, "search-style", 3, "ngModel", "placeholder", "keyup", "ngModelChange"], [2, "width", "10%"], ["pSortableColumn", "groupName", 2, "width", "60%"], ["field", "groupName"], ["pSortableColumn", "numberUser", 2, "width", "30%"], ["field", "numberUser"], [3, "value"], [1, "p-text-13", "p-text-center"], ["colspan", "3", 1, "p-text-center"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-times p-button-icon-left", 1, "p-button-raised", "p-button-secondary", "p-button-outlined", "p-mr-2", 3, "label", "click"], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-check p-button-icon-left", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled", "click"]], template: function MemberCreateComponent_Template(rf, ctx) { if (rf & 1) {
            var _r54 = i0.ɵɵgetCurrentView();
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "h2", 1);
            i0.ɵɵtext(2);
            i0.ɵɵpipe(3, "uppercase");
            i0.ɵɵpipe(4, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(5, "p-fileUpload", 2, 3);
            i0.ɵɵlistener("onUpload", function MemberCreateComponent_Template_p_fileUpload_onUpload_5_listener($event) { return ctx.onBasicUploadAuto($event); });
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(7, "div", 4);
            i0.ɵɵelementStart(8, "a", 5);
            i0.ɵɵelement(9, "i", 6);
            i0.ɵɵtext(10);
            i0.ɵɵpipe(11, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(12, "button", 7);
            i0.ɵɵlistener("click", function MemberCreateComponent_Template_button_click_12_listener() { i0.ɵɵrestoreView(_r54); var _r0 = i0.ɵɵreference(6); _r0.value = ""; return _r0.onBasicUploaderClick(); });
            i0.ɵɵpipe(13, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(14, "div", 8);
            i0.ɵɵelementStart(15, "form", 9);
            i0.ɵɵlistener("ngSubmit", function MemberCreateComponent_Template_form_ngSubmit_15_listener() { return ctx.doCreateUser(ctx.createUserFrm.valid); });
            i0.ɵɵelementStart(16, "div", 10);
            i0.ɵɵelementStart(17, "div", 11);
            i0.ɵɵelementStart(18, "div", 12);
            i0.ɵɵelementStart(19, "div", 13);
            i0.ɵɵtemplate(20, MemberCreateComponent_div_20_Template, 13, 10, "div", 14);
            i0.ɵɵtemplate(21, MemberCreateComponent_div_21_Template, 13, 10, "div", 14);
            i0.ɵɵelementStart(22, "div", 15);
            i0.ɵɵelementStart(23, "div", 16);
            i0.ɵɵelementStart(24, "label", 17);
            i0.ɵɵtext(25);
            i0.ɵɵpipe(26, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(27, "input", 18);
            i0.ɵɵtemplate(28, MemberCreateComponent_div_28_Template, 3, 2, "div", 19);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(29, "div", 13);
            i0.ɵɵelementStart(30, "div", 15);
            i0.ɵɵelementStart(31, "div", 16);
            i0.ɵɵelementStart(32, "label", 20);
            i0.ɵɵtext(33);
            i0.ɵɵpipe(34, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(35, "p-dropdown", 21);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(36, "div", 15);
            i0.ɵɵelementStart(37, "div", 16);
            i0.ɵɵelementStart(38, "label", 22);
            i0.ɵɵtext(39);
            i0.ɵɵpipe(40, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(41, "input", 23);
            i0.ɵɵtemplate(42, MemberCreateComponent_div_42_Template, 3, 2, "div", 19);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(43, "div", 15);
            i0.ɵɵelementStart(44, "div", 16);
            i0.ɵɵelementStart(45, "label", 24);
            i0.ɵɵtext(46);
            i0.ɵɵpipe(47, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(48, "input", 25);
            i0.ɵɵtemplate(49, MemberCreateComponent_div_49_Template, 3, 2, "div", 19);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(50, "div", 15);
            i0.ɵɵtemplate(51, MemberCreateComponent_div_51_Template, 9, 13, "div", 26);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(52, MemberCreateComponent_div_52_Template, 5, 6, "div", 27);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(53, "div", 28);
            i0.ɵɵelementStart(54, "button", 29);
            i0.ɵɵlistener("click", function MemberCreateComponent_Template_button_click_54_listener() { return ctx.doBack(); });
            i0.ɵɵpipe(55, "titlecase");
            i0.ɵɵpipe(56, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(57, "button", 30);
            i0.ɵɵpipe(58, "translate");
            i0.ɵɵtemplate(59, MemberCreateComponent_span_59_Template, 2, 0, "span", 31);
            i0.ɵɵtemplate(60, MemberCreateComponent_span_60_Template, 2, 0, "span", 31);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(61, "div", 12);
            i0.ɵɵtemplate(62, MemberCreateComponent_div_62_Template, 7, 0, "div", 32);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(63, "p-dialog", 33);
            i0.ɵɵlistener("visibleChange", function MemberCreateComponent_Template_p_dialog_visibleChange_63_listener($event) { return ctx.displayBasic2 = $event; })("onHide", function MemberCreateComponent_Template_p_dialog_onHide_63_listener() { return ctx.closeModalErrList(); });
            i0.ɵɵpipe(64, "translate");
            i0.ɵɵelementStart(65, "p-table", 34);
            i0.ɵɵtemplate(66, MemberCreateComponent_ng_template_66_Template, 7, 6, "ng-template", 35);
            i0.ɵɵtemplate(67, MemberCreateComponent_ng_template_67_Template, 5, 2, "ng-template", 36);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(68, MemberCreateComponent_ng_template_68_Template, 3, 5, "ng-template", 37);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(69, "p-dialog", 38);
            i0.ɵɵlistener("visibleChange", function MemberCreateComponent_Template_p_dialog_visibleChange_69_listener($event) { return ctx.displayModalGroup = $event; });
            i0.ɵɵpipe(70, "translate");
            i0.ɵɵelementStart(71, "p-table", 39, 40);
            i0.ɵɵlistener("onLazyLoad", function MemberCreateComponent_Template_p_table_onLazyLoad_71_listener($event) { return ctx.loadGroupsModalEvent($event); })("firstChange", function MemberCreateComponent_Template_p_table_firstChange_71_listener($event) { return ctx.first = $event; })("selectionChange", function MemberCreateComponent_Template_p_table_selectionChange_71_listener($event) { return ctx.selectedGroupsInModal = $event; });
            i0.ɵɵtemplate(73, MemberCreateComponent_ng_template_73_Template, 5, 4, "ng-template", 41);
            i0.ɵɵtemplate(74, MemberCreateComponent_ng_template_74_Template, 11, 6, "ng-template", 35);
            i0.ɵɵtemplate(75, MemberCreateComponent_ng_template_75_Template, 7, 3, "ng-template", 36);
            i0.ɵɵtemplate(76, MemberCreateComponent_ng_template_76_Template, 4, 3, "ng-template", 42);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(77, MemberCreateComponent_ng_template_77_Template, 6, 11, "ng-template", 37);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 58, i0.ɵɵpipeBind1(4, 60, "header.member.add")), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("url", ctx.importCSVUrl);
            i0.ɵɵproperty("auto", true);
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("href", ctx.fileTemplatePath, i0.ɵɵsanitizeUrl);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 62, "button.csv_template"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(13, 64, "button.import_csv"));
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("formGroup", ctx.createUserFrm);
            i0.ɵɵadvance(5);
            i0.ɵɵproperty("ngIf", ctx.authUser.lang !== "ja");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.authUser.lang === "ja");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 66, "label.common.mail_address"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngClass", (ctx.createUserFrm.controls["mailAddress"].touched || ctx.createUserFrm.controls["mailAddress"].dirty) && ctx.createUserFrm.controls["mailAddress"].invalid ? "p-invalid" : "");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", (ctx.createUserFrm.controls["mailAddress"].touched || ctx.createUserFrm.controls["mailAddress"].dirty) && ctx.createUserFrm.controls["mailAddress"].errors);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(34, 68, "label.common.role"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("options", ctx.roles);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 70, "label.common.password"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("maxlength", ctx.pw_max_length);
            i0.ɵɵproperty("pattern", ctx.passwordPattern)("ngClass", (ctx.createUserFrm.controls["password"].touched || ctx.createUserFrm.controls["password"].dirty) && ctx.createUserFrm.controls["password"].invalid ? "p-invalid" : "");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", (ctx.createUserFrm.controls["password"].touched || ctx.createUserFrm.controls["password"].dirty) && ctx.createUserFrm.controls["password"].errors);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(47, 72, "label.common.confirm_password"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("maxlength", ctx.pw_max_length);
            i0.ɵɵproperty("ngClass", (ctx.createUserFrm.controls["confirmPassword"].touched || ctx.createUserFrm.controls["confirmPassword"].dirty) && ctx.createUserFrm.controls["confirmPassword"].invalid ? "p-invalid" : "");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", (ctx.createUserFrm.controls["confirmPassword"].touched || ctx.createUserFrm.controls["confirmPassword"].dirty) && ctx.createUserFrm.controls["confirmPassword"].errors);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.isUseSDGlobal);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isUseSDGlobal);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(55, 74, i0.ɵɵpipeBind1(56, 76, "button.back")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(58, 78, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.createUserFrm.valid || ctx.submitting);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.submitting);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.submitting);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.submitting);
            i0.ɵɵadvance(1);
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(64, 80, "message.csv_list_error"));
            i0.ɵɵproperty("visible", ctx.displayBasic2)("modal", true)("maximizable", true)("draggable", false)("resizable", false)("baseZIndex", 10000);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("value", ctx.userErrList);
            i0.ɵɵadvance(4);
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(70, 82, "label.common.select_group"));
            i0.ɵɵproperty("visible", ctx.displayModalGroup)("modal", true)("maximizable", true)("draggable", false)("resizable", false)("baseZIndex", 10000);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("rowHover", true)("paginator", ctx.totalRecords > 0)("lazy", true)("loading", ctx.loadingModalGroup)("totalRecords", ctx.totalRecords)("sortField", ctx.paramsGroupModal.sort_field ? ctx.paramsGroupModal.sort_field : "numberUser")("sortOrder", ctx.paramsGroupModal.asc_sort ? 1 : -1)("value", ctx.groups)("first", ctx.first)("rows", ctx.paramsGroupModal.page_size)("rowsPerPageOptions", ctx.rowOptions)("selection", ctx.selectedGroupsInModal);
        } }, directives: [i12.FileUpload, i13.Ripple, i14.ButtonDirective, i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i8.NgIf, i1.DefaultValueAccessor, i1.RequiredValidator, i1.MaxLengthValidator, i1.NgControlStatus, i1.FormControlName, i15.InputText, i8.NgClass, i16.Dropdown, i1.PatternValidator, i17.Dialog, i18.Table, i9.PrimeTemplate, i19.NgSelectComponent, i19.ɵo, i20.Checkbox, i1.NgModel, i18.TableHeaderCheckbox, i18.SortableColumn, i18.SortIcon, i18.TableCheckbox], pipes: [i8.UpperCasePipe, i21.TranslatePipe, i8.TitleCasePipe, i8.AsyncPipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vbWVtYmVyL21lbWJlci1jcmVhdGUvbWVtYmVyLWNyZWF0ZS5jb21wb25lbnQuc2NzcyJ9 */"] });
    return MemberCreateComponent;
}());
exports.MemberCreateComponent = MemberCreateComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MemberCreateComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-member-create',
                templateUrl: './member-create.component.html',
                styleUrls: ['./member-create.component.scss']
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.AuthenticateService }, { type: i3.TeamSettingService }, { type: i4.UserGroupService }, { type: i5.MemberService }, { type: i6.CookieService }, { type: i7.Router }, { type: i8.Location }, { type: i9.MessageService }, { type: i10.DialogService }, { type: i11.UtilsService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/member/member-detail/member-detail.component.ts":
/*!****************************************************************************!*\
  !*** ./src/app/team-admin/member/member-detail/member-detail.component.ts ***!
  \****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MemberDetailComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var api_1 = __webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var operators_1 = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var environment_1 = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
var validator_module_1 = __webpack_require__(/*! ../../../common/validator.module */ "./src/app/common/validator.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/user-group.service */ "./src/app/shared/services/user-group.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team-setting.service */ "./src/app/shared/services/team-setting.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/member.service */ "./src/app/shared/services/member.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/toolbar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-toolbar.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/dropdown */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/badge */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-badge.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i15 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i16 = tslib_1.__importStar(__webpack_require__(/*! primeng/confirmdialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-confirmdialog.js"));
var i17 = tslib_1.__importStar(__webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js"));
var i18 = tslib_1.__importStar(__webpack_require__(/*! primeng/table */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.js"));
var i19 = tslib_1.__importStar(__webpack_require__(/*! @ng-select/ng-select */ "./node_modules/@ng-select/ng-select/__ivy_ngcc__/fesm2015/ng-select-ng-select.js"));
var i20 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var i21 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function MemberDetailComponent_ng_template_6_button_0_Template(rf, ctx) { if (rf & 1) {
    var _r24 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 53);
    i0.ɵɵlistener("click", function MemberDetailComponent_ng_template_6_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); var ctx_r23 = i0.ɵɵnextContext(2); return ctx_r23.confirmLoginAsUser(); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, "button.login"));
} }
function MemberDetailComponent_ng_template_6_button_1_Template(rf, ctx) { if (rf & 1) {
    var _r26 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 54);
    i0.ɵɵlistener("click", function MemberDetailComponent_ng_template_6_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r26); var ctx_r25 = i0.ɵɵnextContext(2); return ctx_r25.confirmTransferAccount(); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, "button.transfer_account"));
} }
function MemberDetailComponent_ng_template_6_button_2_Template(rf, ctx) { if (rf & 1) {
    var _r28 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 55);
    i0.ɵɵlistener("click", function MemberDetailComponent_ng_template_6_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r28); var ctx_r27 = i0.ɵɵnextContext(2); return ctx_r27.confirmUnlockUser(); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, "button.unlock_account"));
} }
function MemberDetailComponent_ng_template_6_button_3_Template(rf, ctx) { if (rf & 1) {
    var _r30 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 56);
    i0.ɵɵlistener("click", function MemberDetailComponent_ng_template_6_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r30); var ctx_r29 = i0.ɵɵnextContext(2); return ctx_r29.confirmDeleteUser(); });
    i0.ɵɵelementEnd();
} }
function MemberDetailComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, MemberDetailComponent_ng_template_6_button_0_Template, 2, 3, "button", 49);
    i0.ɵɵtemplate(1, MemberDetailComponent_ng_template_6_button_1_Template, 2, 3, "button", 50);
    i0.ɵɵtemplate(2, MemberDetailComponent_ng_template_6_button_2_Template, 2, 3, "button", 51);
    i0.ɵɵtemplate(3, MemberDetailComponent_ng_template_6_button_3_Template, 1, 0, "button", 52);
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngIf", ctx_r0.userData && ctx_r0.userData.role_id !== ctx_r0.systemRole.TeamAdmin && ctx_r0.authUser.role_id === ctx_r0.systemRole.TeamAdmin);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.userData && ctx_r0.userData.role_id !== ctx_r0.systemRole.TeamAdmin && ctx_r0.authUser.role_id === ctx_r0.systemRole.TeamAdmin);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.isLockout && ctx_r0.authUser.role_id === ctx_r0.systemRole.TeamAdmin);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.authUser.role_id === ctx_r0.systemRole.TeamAdmin && ctx_r0.userData && ctx_r0.userData.role_id !== ctx_r0.systemRole.TeamAdmin || ctx_r0.authUser.role_id === ctx_r0.systemRole.Manager && ctx_r0.userData && ctx_r0.userData.role_id !== ctx_r0.systemRole.TeamAdmin && ctx_r0.userData.role_id !== ctx_r0.systemRole.Manager);
} }
function MemberDetailComponent_div_13_div_5_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberDetailComponent_div_13_div_5_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MemberDetailComponent_div_13_div_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 59);
    i0.ɵɵtemplate(1, MemberDetailComponent_div_13_div_5_small_1_Template, 3, 3, "small", 48);
    i0.ɵɵtemplate(2, MemberDetailComponent_div_13_div_5_small_2_Template, 3, 3, "small", 48);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r31 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r31.userDetailFrm.controls["lastName"].errors == null ? null : ctx_r31.userDetailFrm.controls["lastName"].errors.required) || (ctx_r31.userDetailFrm.controls["lastName"].errors == null ? null : ctx_r31.userDetailFrm.controls["lastName"].errors.whitespace));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r31.userDetailFrm.controls["lastName"].errors == null ? null : ctx_r31.userDetailFrm.controls["lastName"].errors.pattern);
} }
function MemberDetailComponent_div_13_Template(rf, ctx) { if (rf & 1) {
    var _r35 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 11);
    i0.ɵɵelementStart(1, "label", 57);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "input", 58);
    i0.ɵɵlistener("ngModelChange", function MemberDetailComponent_div_13_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r35); var ctx_r34 = i0.ɵɵnextContext(); return ctx_r34.userData.last_name = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(5, MemberDetailComponent_div_13_div_5_Template, 3, 2, "div", 14);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, "label.common.last_name"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngModel", ctx_r1.userData.last_name)("ngClass", (ctx_r1.userDetailFrm.controls["lastName"].touched || ctx_r1.userDetailFrm.controls["lastName"].dirty) && ctx_r1.userDetailFrm.controls["lastName"].invalid ? "p-invalid" : "");
    i0.ɵɵattribute("disabled", ctx_r1.authUser.role_id === ctx_r1.systemRole.TeamAdmin || ctx_r1.authUser.role_id === ctx_r1.systemRole.Manager && ctx_r1.userData && (ctx_r1.userData.role_id === ctx_r1.systemRole.Member || ctx_r1.userData.role_id === ctx_r1.systemRole.Guest) ? null : true);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r1.userDetailFrm.controls["lastName"].touched || ctx_r1.userDetailFrm.controls["lastName"].dirty) && ctx_r1.userDetailFrm.controls["lastName"].errors);
} }
function MemberDetailComponent_div_19_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberDetailComponent_div_19_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MemberDetailComponent_div_19_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 59);
    i0.ɵɵtemplate(1, MemberDetailComponent_div_19_small_1_Template, 3, 3, "small", 48);
    i0.ɵɵtemplate(2, MemberDetailComponent_div_19_small_2_Template, 3, 3, "small", 48);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r2.userDetailFrm.controls["firstName"].errors == null ? null : ctx_r2.userDetailFrm.controls["firstName"].errors.required) || (ctx_r2.userDetailFrm.controls["firstName"].errors == null ? null : ctx_r2.userDetailFrm.controls["firstName"].errors.whitespace));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.userDetailFrm.controls["firstName"].errors == null ? null : ctx_r2.userDetailFrm.controls["firstName"].errors.pattern);
} }
function MemberDetailComponent_div_20_div_5_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberDetailComponent_div_20_div_5_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MemberDetailComponent_div_20_div_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 59);
    i0.ɵɵtemplate(1, MemberDetailComponent_div_20_div_5_small_1_Template, 3, 3, "small", 48);
    i0.ɵɵtemplate(2, MemberDetailComponent_div_20_div_5_small_2_Template, 3, 3, "small", 48);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r38 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r38.userDetailFrm.controls["lastName"].errors == null ? null : ctx_r38.userDetailFrm.controls["lastName"].errors.required) || (ctx_r38.userDetailFrm.controls["lastName"].errors == null ? null : ctx_r38.userDetailFrm.controls["lastName"].errors.whitespace));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r38.userDetailFrm.controls["lastName"].errors == null ? null : ctx_r38.userDetailFrm.controls["lastName"].errors.pattern);
} }
function MemberDetailComponent_div_20_Template(rf, ctx) { if (rf & 1) {
    var _r42 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 11);
    i0.ɵɵelementStart(1, "label", 60);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "input", 61);
    i0.ɵɵlistener("ngModelChange", function MemberDetailComponent_div_20_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r42); var ctx_r41 = i0.ɵɵnextContext(); return ctx_r41.userData.last_name = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(5, MemberDetailComponent_div_20_div_5_Template, 3, 2, "div", 14);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, "label.common.last_name"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngModel", ctx_r3.userData.last_name)("ngClass", (ctx_r3.userDetailFrm.controls["lastName"].touched || ctx_r3.userDetailFrm.controls["lastName"].dirty) && ctx_r3.userDetailFrm.controls["lastName"].invalid ? "p-invalid" : "");
    i0.ɵɵattribute("disabled", ctx_r3.authUser.role_id === ctx_r3.systemRole.TeamAdmin || ctx_r3.authUser.role_id === ctx_r3.systemRole.Manager && ctx_r3.userData && (ctx_r3.userData.role_id === ctx_r3.systemRole.Member || ctx_r3.userData.role_id === ctx_r3.systemRole.Guest) ? null : true);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r3.userDetailFrm.controls["lastName"].touched || ctx_r3.userDetailFrm.controls["lastName"].dirty) && ctx_r3.userDetailFrm.controls["lastName"].errors);
} }
function MemberDetailComponent_div_43_ng_template_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "b");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵtext(3);
} if (rf & 2) {
    var search_r44 = ctx.searchTerm;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, "label.create_new"));
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", search_r44, " ");
} }
var _c0 = function () { return { maxLength: "64" }; };
function MemberDetailComponent_div_43_Template(rf, ctx) { if (rf & 1) {
    var _r46 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 15);
    i0.ɵɵelementStart(1, "div", 11);
    i0.ɵɵelementStart(2, "label", 18);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "div", 62);
    i0.ɵɵelementStart(6, "ng-select", 63);
    i0.ɵɵlistener("keypress", function MemberDetailComponent_div_43_Template_ng_select_keypress_6_listener($event) { i0.ɵɵrestoreView(_r46); var ctx_r45 = i0.ɵɵnextContext(); return ctx_r45.blockSpecialChars($event); })("remove", function MemberDetailComponent_div_43_Template_ng_select_remove_6_listener($event) { i0.ɵɵrestoreView(_r46); var ctx_r47 = i0.ɵɵnextContext(); return ctx_r47.doRemoveGroup($event); })("ngModelChange", function MemberDetailComponent_div_43_Template_ng_select_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r46); var ctx_r48 = i0.ɵɵnextContext(); return ctx_r48.selectedGroup = $event; });
    i0.ɵɵpipe(7, "async");
    i0.ɵɵtemplate(8, MemberDetailComponent_div_43_ng_template_8_Template, 4, 4, "ng-template", 64);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "button", 65);
    i0.ɵɵlistener("click", function MemberDetailComponent_div_43_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r46); var ctx_r49 = i0.ɵɵnextContext(); return ctx_r49.loadGroupsModal(); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 9, "label.common.groups"), " ");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("items", i0.ɵɵpipeBind1(7, 11, ctx_r4.groupList$))("addTag", ctx_r4.addTagPromise)("hideSelected", true)("inputAttrs", i0.ɵɵpureFunction0(13, _c0))("loading", ctx_r4.loading)("ngModel", ctx_r4.selectedGroup)("readonly", !(ctx_r4.authUser.role_id === ctx_r4.systemRole.TeamAdmin || ctx_r4.authUser.role_id === ctx_r4.systemRole.Manager && ctx_r4.userData && (ctx_r4.userData.role_id === ctx_r4.systemRole.Member || ctx_r4.userData.role_id === ctx_r4.systemRole.Guest)));
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("disabled", ctx_r4.isShowDialog || ctx_r4.authUser.role_id === ctx_r4.systemRole.TeamAdmin || ctx_r4.authUser.role_id === ctx_r4.systemRole.Manager && ctx_r4.userData && (ctx_r4.userData.role_id === ctx_r4.systemRole.Member || ctx_r4.userData.role_id === ctx_r4.systemRole.Guest) ? null : true);
} }
function MemberDetailComponent_div_44_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 66);
    i0.ɵɵelement(1, "p-checkbox", 67);
    i0.ɵɵelementStart(2, "label", 68);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r5.override)("disabled", ctx_r5.authUser.role_id === ctx_r5.systemRole.TeamAdmin || ctx_r5.authUser.role_id === ctx_r5.systemRole.Manager && ctx_r5.userData && (ctx_r5.userData.role_id === ctx_r5.systemRole.Member || ctx_r5.userData.role_id === ctx_r5.systemRole.Guest) ? null : true)("inputId", ctx_r5.override);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngClass", ctx_r5.authUser.role_id === ctx_r5.systemRole.TeamAdmin || ctx_r5.authUser.role_id === ctx_r5.systemRole.Manager && ctx_r5.userData && (ctx_r5.userData.role_id === ctx_r5.systemRole.Member || ctx_r5.userData.role_id === ctx_r5.systemRole.Guest) ? "cs-pointer" : "cs-not-allowed")("for", ctx_r5.override);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6, "label.override"), " ");
} }
function MemberDetailComponent_button_49_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 70);
    i0.ɵɵelementEnd();
} }
function MemberDetailComponent_button_49_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 71);
    i0.ɵɵelementEnd();
} }
function MemberDetailComponent_button_49_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "button", 69);
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵtemplate(2, MemberDetailComponent_button_49_span_2_Template, 2, 0, "span", 48);
    i0.ɵɵtemplate(3, MemberDetailComponent_button_49_span_3_Template, 2, 0, "span", 48);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 4, "button.save"));
    i0.ɵɵproperty("disabled", !ctx_r6.userDetailFrm.valid || ctx_r6.submitting || !ctx_r6.isChange);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", !ctx_r6.submitting);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r6.submitting);
} }
function MemberDetailComponent_div_51_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 72);
    i0.ɵɵelementStart(1, "div", 73);
    i0.ɵɵelementStart(2, "div", 74);
    i0.ɵɵelementStart(3, "div", 75);
    i0.ɵɵelement(4, "div");
    i0.ɵɵelement(5, "div");
    i0.ɵɵelement(6, "div");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} }
function MemberDetailComponent_button_64_Template(rf, ctx) { if (rf & 1) {
    var _r53 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 76);
    i0.ɵɵlistener("click", function MemberDetailComponent_button_64_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r53); var ctx_r52 = i0.ɵɵnextContext(); return ctx_r52.doLoginAsUser("SecureDrive"); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, "message.login_as_user.secure_drive"));
} }
function MemberDetailComponent_button_65_Template(rf, ctx) { if (rf & 1) {
    var _r55 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 77);
    i0.ɵɵlistener("click", function MemberDetailComponent_button_65_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r55); var ctx_r54 = i0.ɵɵnextContext(); return ctx_r54.doLoginAsUser("SecureMail"); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, "message.login_as_user.secure_mail"));
} }
function MemberDetailComponent_ng_template_70_Template(rf, ctx) { if (rf & 1) {
    var _r57 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 78);
    i0.ɵɵelementStart(1, "span", 79);
    i0.ɵɵelement(2, "i", 80);
    i0.ɵɵelementStart(3, "input", 81);
    i0.ɵɵlistener("keyup", function MemberDetailComponent_ng_template_70_Template_input_keyup_3_listener($event) { i0.ɵɵrestoreView(_r57); var ctx_r56 = i0.ɵɵnextContext(); return ctx_r56.searchTable($event); })("ngModelChange", function MemberDetailComponent_ng_template_70_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r57); var ctx_r58 = i0.ɵɵnextContext(); return ctx_r58.searchKey = $event; });
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r12 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(4, 2, "label.search_placeholder"));
    i0.ɵɵproperty("ngModel", ctx_r12.searchKey);
} }
function MemberDetailComponent_ng_template_71_Template(rf, ctx) { if (rf & 1) {
    var _r60 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "th", 82);
    i0.ɵɵelementStart(2, "p-checkbox", 83);
    i0.ɵɵlistener("ngModelChange", function MemberDetailComponent_ng_template_71_Template_p_checkbox_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r60); var ctx_r59 = i0.ɵɵnextContext(); return ctx_r59.isSelectedGroupAll = $event; })("click", function MemberDetailComponent_ng_template_71_Template_p_checkbox_click_2_listener() { i0.ɵɵrestoreView(_r60); var ctx_r61 = i0.ɵɵnextContext(); return ctx_r61.toggleSelectedGroupAll(); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "th", 84);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelement(6, "p-sortIcon", 85);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "th", 86);
    i0.ɵɵtext(8);
    i0.ɵɵpipe(9, "translate");
    i0.ɵɵelement(10, "p-sortIcon", 87);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r13 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngModel", ctx_r13.isSelectedGroupAll);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 3, "table_header.group_user.name"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 5, "table_header.group_user.numbers_user"), " ");
} }
function MemberDetailComponent_ng_template_72_Template(rf, ctx) { if (rf & 1) {
    var _r64 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td");
    i0.ɵɵelementStart(2, "p-checkbox", 88);
    i0.ɵɵlistener("click", function MemberDetailComponent_ng_template_72_Template_p_checkbox_click_2_listener() { i0.ɵɵrestoreView(_r64); var group_r62 = ctx.$implicit; var ctx_r63 = i0.ɵɵnextContext(); return ctx_r63.toggleSelectedGroup(group_r62); })("ngModelChange", function MemberDetailComponent_ng_template_72_Template_p_checkbox_ngModelChange_2_listener($event) { var group_r62 = ctx.$implicit; return group_r62._selected = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td", 89);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "td", 90);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var group_r62 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngModel", group_r62._selected);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(group_r62.name);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(group_r62.number_user);
} }
function MemberDetailComponent_ng_template_73_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 91);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 1, "label.no_record"), "");
} }
function MemberDetailComponent_ng_template_74_Template(rf, ctx) { if (rf & 1) {
    var _r67 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 46);
    i0.ɵɵlistener("click", function MemberDetailComponent_ng_template_74_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r67); var ctx_r66 = i0.ɵɵnextContext(); return ctx_r66.displayModalGroup = false; });
    i0.ɵɵpipe(1, "titlecase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "button", 92);
    i0.ɵɵlistener("click", function MemberDetailComponent_ng_template_74_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r67); var ctx_r68 = i0.ɵɵnextContext(); return ctx_r68.confirmSelectGroups(ctx_r68.selectedGroupsInModal); });
    i0.ɵɵpipe(4, "uppercase");
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r16 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 3, i0.ɵɵpipeBind1(2, 5, "button.cancel")));
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(4, 7, i0.ɵɵpipeBind1(5, 9, "button.ok")));
    i0.ɵɵproperty("disabled", !ctx_r16.selectedGroupsInModal || ctx_r16.selectedGroupsInModal.length === 0 || ctx_r16.loadingModalGroup);
} }
function MemberDetailComponent_ng_template_78_div_8_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberDetailComponent_ng_template_78_div_8_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.invalid_email"), " ");
} }
function MemberDetailComponent_ng_template_78_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 59);
    i0.ɵɵtemplate(1, MemberDetailComponent_ng_template_78_div_8_small_1_Template, 3, 3, "small", 48);
    i0.ɵɵtemplate(2, MemberDetailComponent_ng_template_78_div_8_small_2_Template, 3, 3, "small", 48);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r69 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r69.transferFrm.controls["mailAddress"].errors == null ? null : ctx_r69.transferFrm.controls["mailAddress"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r69.transferFrm.controls["mailAddress"].errors == null ? null : ctx_r69.transferFrm.controls["mailAddress"].errors.pattern);
} }
function MemberDetailComponent_ng_template_78_div_15_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberDetailComponent_ng_template_78_div_15_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r75 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r75.notificationError, " ");
} }
function MemberDetailComponent_ng_template_78_div_15_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 59);
    i0.ɵɵtemplate(1, MemberDetailComponent_ng_template_78_div_15_small_1_Template, 3, 3, "small", 48);
    i0.ɵɵtemplate(2, MemberDetailComponent_ng_template_78_div_15_small_2_Template, 2, 1, "small", 48);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r70 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r70.transferFrm.controls["password"].errors == null ? null : ctx_r70.transferFrm.controls["password"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r70.transferFrm.controls["password"].errors == null ? null : ctx_r70.transferFrm.controls["password"].errors.pattern);
} }
function MemberDetailComponent_ng_template_78_div_22_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberDetailComponent_ng_template_78_div_22_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.password_not_match"), " ");
} }
function MemberDetailComponent_ng_template_78_div_22_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 59);
    i0.ɵɵtemplate(1, MemberDetailComponent_ng_template_78_div_22_small_1_Template, 3, 3, "small", 48);
    i0.ɵɵtemplate(2, MemberDetailComponent_ng_template_78_div_22_small_2_Template, 3, 3, "small", 48);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r71 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r71.transferFrm.controls["confirmPassword"].errors == null ? null : ctx_r71.transferFrm.controls["confirmPassword"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r71.transferFrm.controls["confirmPassword"].errors == null ? null : ctx_r71.transferFrm.controls["confirmPassword"].errors.confirmedValidator);
} }
function MemberDetailComponent_ng_template_78_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "form", 93);
    i0.ɵɵelementStart(1, "div", 8);
    i0.ɵɵelementStart(2, "div", 94);
    i0.ɵɵelementStart(3, "div", 15);
    i0.ɵɵelementStart(4, "label", 95);
    i0.ɵɵtext(5);
    i0.ɵɵpipe(6, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(7, "input", 96);
    i0.ɵɵtemplate(8, MemberDetailComponent_ng_template_78_div_8_Template, 3, 2, "div", 14);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "div", 94);
    i0.ɵɵelementStart(10, "div", 15);
    i0.ɵɵelementStart(11, "label", 97);
    i0.ɵɵtext(12);
    i0.ɵɵpipe(13, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(14, "input", 98);
    i0.ɵɵtemplate(15, MemberDetailComponent_ng_template_78_div_15_Template, 3, 2, "div", 14);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "div", 94);
    i0.ɵɵelementStart(17, "div", 15);
    i0.ɵɵelementStart(18, "label", 99);
    i0.ɵɵtext(19);
    i0.ɵɵpipe(20, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(21, "input", 100);
    i0.ɵɵtemplate(22, MemberDetailComponent_ng_template_78_div_22_Template, 3, 2, "div", 14);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r17 = i0.ɵɵnextContext();
    i0.ɵɵproperty("formGroup", ctx_r17.transferFrm);
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, "label.common.mail_address"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngClass", (ctx_r17.transferFrm.controls["mailAddress"].touched || ctx_r17.transferFrm.controls["mailAddress"].dirty) && ctx_r17.transferFrm.controls["mailAddress"].invalid ? "p-invalid" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r17.transferFrm.controls["mailAddress"].touched || ctx_r17.transferFrm.controls["mailAddress"].dirty);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 15, "label.common.password"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("maxlength", ctx_r17.pw_max_length);
    i0.ɵɵproperty("pattern", ctx_r17.passwordPattern)("ngClass", (ctx_r17.transferFrm.controls["password"].touched || ctx_r17.transferFrm.controls["password"].dirty) && ctx_r17.transferFrm.controls["password"].invalid ? "p-invalid" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r17.transferFrm.controls["password"].touched || ctx_r17.transferFrm.controls["password"].dirty);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 17, "label.common.confirm_password"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("maxlength", ctx_r17.pw_max_length);
    i0.ɵɵproperty("ngClass", (ctx_r17.transferFrm.controls["confirmPassword"].touched || ctx_r17.transferFrm.controls["confirmPassword"].dirty) && ctx_r17.transferFrm.controls["confirmPassword"].invalid ? "p-invalid" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r17.transferFrm.controls["confirmPassword"].touched || ctx_r17.transferFrm.controls["confirmPassword"].dirty);
} }
function MemberDetailComponent_span_85_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 101);
    i0.ɵɵelementEnd();
} }
var MemberDetailComponent = /** @class */ (function () {
    function MemberDetailComponent(fb, authenticateService, userGroupService, teamSettingService, memberService, activatedRoute, router, datePipe, cdref, location, messageService, confirmationService, utils) {
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.userGroupService = userGroupService;
        this.teamSettingService = teamSettingService;
        this.memberService = memberService;
        this.activatedRoute = activatedRoute;
        this.router = router;
        this.datePipe = datePipe;
        this.cdref = cdref;
        this.location = location;
        this.messageService = messageService;
        this.confirmationService = confirmationService;
        this.utils = utils;
        this.systemRole = constant_module_1.SystemRole;
        this.userDetailFrm = new forms_1.FormGroup({});
        this.transferFrm = new forms_1.FormGroup({});
        this.userData = {
            first_name: '',
            last_name: '',
            mail_address: '',
            role_id: 0,
            signup_date: ''
        };
        this.originUserData = {};
        this.isLockout = false;
        this.override = true;
        this.loading = false;
        this.roles = [];
        this.isSelectedGroupAll = false;
        this.selectedGroup = [];
        this.currentSelectedGroups = [];
        this.originSelectedGroup = [];
        this.deleteGroup = [];
        this.groupList = [];
        this.isLoadingData = true;
        // dialog transfer account
        this.displayTransferModal = false;
        // dialog group member
        this.displayModalGroup = false;
        this.rowOptions = constant_module_1.Constant.rowsPerPageOptions;
        this.loadingModalGroup = true;
        this.first = 0;
        this.rows = 5;
        this.paramsGroupModal = {
            team_id: '',
            search_key: '',
            sort_field: 'numberUser',
            asc_sort: false,
            page_number: 1,
            page_size: 5,
        };
    }
    Object.defineProperty(MemberDetailComponent.prototype, "frm", {
        get: function () {
            return this.userDetailFrm.controls;
        },
        enumerable: false,
        configurable: true
    });
    MemberDetailComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.isUseSDGlobal = this.authenticateService.isUseSDGlobal;
        this.authUser = this.authenticateService.getAuthUser();
        this.isChange = false;
        this.submitting = true;
        this.isShowDialog = false;
        this.userDetailId = this.activatedRoute.snapshot.paramMap.get('id');
        this.utils.translateList([
            'label.system_role.manager',
            'label.system_role.user',
            'label.system_role.guest',
        ], null).subscribe(function () {
            _this.roles = [
                {
                    id: 2,
                    name: _this.utils.translate('label.system_role.manager'),
                    disabled: _this.authUser && _this.authUser.role_id !== _this.systemRole.TeamAdmin
                },
                { id: 3, name: _this.utils.translate('label.system_role.user') },
                { id: 4, name: _this.utils.translate('label.system_role.guest') }
            ];
        });
        var params = {
            team_id: this.authUser.team_id,
            type: 3,
        };
        this.teamSettingService.getTeamSettingByType(params).subscribe(function (res) {
            if (res.status === 200) {
                var passwordPolicies = JSON.parse(res.data.password_setting);
                _this.pw_max_length = passwordPolicies.max;
                _this.passwordPattern = new RegExp(passwordPolicies.regex);
                _this.utils.getPasswordPolicyError(passwordPolicies, function (response) {
                    _this.notificationError = response;
                });
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
                _this.doBack();
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
        this.userDetailFrm = this.fb.group({
            firstName: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN), validator_module_1.noWhitespaceValidator
                ]
            ],
            lastName: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN), validator_module_1.noWhitespaceValidator
                ]
            ],
            selectedRole: this.selectedRole,
            selectedGroup: [[]],
            override: [true]
        });
        this.transferFrm = this.fb.group({
            mailAddress: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.EMAIL_PATTERN)
                ]
            ],
            password: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(this.passwordPattern)
                ]
            ],
            confirmPassword: ['', [forms_1.Validators.required]],
        }, {
            validator: validator_module_1.ConfirmedValidator('password', 'confirmPassword')
        });
        this.getUserDetail();
        this.groupList$ = this.getGroups();
    };
    MemberDetailComponent.prototype.checkValueChanges = function () {
        var _this = this;
        this.userDetailFrm.valueChanges.subscribe(function (val) {
            if (_this.originUserData && !_this.isLoadingData) {
                _this.isChange = (val.firstName
                    && _this.originUserData['first_name'] !== val.firstName)
                    || (val.lastName
                        && _this.originUserData['last_name'] !== val.lastName)
                    || (val.selectedRole && _this.originUserData['role_id'] !== val.selectedRole.id)
                    || (_this.isUseSDGlobal && (_this.originSelectedGroup.length !== val.selectedGroup.length
                        || !_this.compareDifferentArrays(val.selectedGroup, _this.originSelectedGroup)));
            }
        });
    };
    MemberDetailComponent.prototype.getUserDetail = function () {
        var _this = this;
        this.submitting = true;
        this.memberService.getUserDetail(this.userDetailId)
            .subscribe(function (res) {
            if (res.status === 200) {
                _this.userData = res.data.user_info;
                _this.isLockout = res.data.account_lockout;
                _this.selectedGroup = [];
                if (_this.userData['role_id'] === 1) {
                    _this.roles = tslib_1.__spread(_this.roles, [{
                            id: 1, name: _this.utils.translate('label.system_role.admin')
                        }]);
                }
                _this.selectedRole = _this.getDimensionsByFind(_this.userData['role_id']);
                _this.originSelectedGroup = [];
                var group = res.data.group_user_list;
                isLook: for (var j = 0; j < group.length; j++) {
                    for (var i = 0; i < _this.selectedGroup.length; i++) {
                        if (group[j].name === _this.selectedGroup[i].value) {
                            break isLook;
                        }
                    }
                    _this.selectedGroup = tslib_1.__spread(_this.selectedGroup, [{
                            value: group[j].name,
                            name: group[j].name
                        }]);
                    _this.originSelectedGroup = _this.selectedGroup;
                }
                _this.originUserData = tslib_1.__assign({}, res.data.user_info);
                _this.isLoadingData = false;
                _this.checkValueChanges();
                _this.isChange = false;
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
                _this.router.navigate(['/member/list']);
            }
            _this.submitting = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    MemberDetailComponent.prototype.compareDifferentArrays = function (arr1, arr2) {
        if (!arr1 || !arr2) {
            return;
        }
        var arrDup = [];
        for (var i = 0; i < arr1.length; i++) {
            for (var j = 0; j < arr2.length; j++) {
                if (arr1[i].value === arr2[j].value) {
                    arrDup = tslib_1.__spread(arrDup, [arr1[i]]);
                    break;
                }
            }
        }
        return (arr1.length === arrDup.length);
    };
    MemberDetailComponent.prototype.getGroups = function () {
        var groupCustoms = [];
        return this.userGroupService.getGroupsAll()
            .pipe(operators_1.map(function (res) {
            if (res.status === 200) {
                res.data.forEach(function (res) {
                    groupCustoms.push({
                        value: res.name,
                        name: res.name
                    });
                });
            }
            return groupCustoms;
        }));
    };
    MemberDetailComponent.prototype.confirmUpdateUser = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        if (this.userDetailFrm.value.selectedRole.id !== constant_module_1.SystemRole.Guest) {
            this.doUpdateUser();
        }
        else {
            this.confirmationService.confirm({
                message: this.utils.translate('message.confirm_change_role.content'),
                header: this.utils.translate('message.confirm_change_role.title'),
                icon: 'pi pi-exclamation-triangle',
                accept: function () {
                    _this.doUpdateUser();
                },
                reject: function () {
                }
            });
        }
    };
    MemberDetailComponent.prototype.doUpdateUser = function () {
        var _this = this;
        this.submitting = true;
        var addGroups = '';
        var removeGroups = '';
        if (this.selectedGroup) {
            for (var i_1 = 0; i_1 < this.selectedGroup.length; i_1++) {
                if (i_1 === this.selectedGroup.length - 1) {
                    addGroups = addGroups.concat(this.selectedGroup[i_1].name);
                }
                else {
                    addGroups = addGroups.concat(this.selectedGroup[i_1].name, ',');
                }
                for (var j = 0; j < this.deleteGroup.length; j++) {
                    if (this.selectedGroup[i_1].value === this.deleteGroup[j].value) {
                        this.deleteGroup.splice(j, 1);
                    }
                }
            }
        }
        for (var i = 0; i < this.deleteGroup.length; i++) {
            if (i === this.deleteGroup.length - 1) {
                removeGroups = removeGroups.concat(this.deleteGroup[i].name);
            }
            else {
                removeGroups = removeGroups.concat(this.deleteGroup[i].name, ',');
            }
        }
        var params = {
            user_id: this.userDetailId,
            team_id: this.authUser.team_id,
            first_name: this.userDetailFrm.value.firstName,
            last_name: this.userDetailFrm.value.lastName,
            role_id: this.userDetailFrm.value.selectedRole.id,
            added_group: addGroups,
            deleted_group: removeGroups,
            ignore: !this.userDetailFrm.value.override,
            is_info: false
        };
        this.memberService.updateUser(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
                _this.getUserDetail();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submitting = false;
        }, function (err) {
            console.log('error', err);
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    MemberDetailComponent.prototype.getDimensionsByFind = function (id) {
        return this.roles.find(function (x) { return x.id === id; });
    };
    MemberDetailComponent.prototype.blockSpecialChars = function (event) {
        var k = event.charCode;
        // 44,   47/   60<   62>   123{   125}
        return (k !== 44 && k !== 47 && k !== 60
            && k !== 62 && k !== 123 && k !== 125);
    };
    MemberDetailComponent.prototype.addTagPromise = function (name) {
        if (name.length > 64) {
            return;
        }
        else {
            name = name.replace(/,/g, '').replace(/\\/g, '').replace(/\//g, '');
            return { value: name, name: name, tag: true };
        }
    };
    MemberDetailComponent.prototype.doBack = function () {
        this.location.back();
    };
    MemberDetailComponent.prototype.ngOnDestroy = function () {
        if (this.ref) {
            this.ref.close();
        }
    };
    MemberDetailComponent.prototype.doRemoveGroup = function (e) {
        if (!this.deleteGroup
            || !this.deleteGroup.find(function (x) { return x.value === e.value.value; })) {
            this.deleteGroup = tslib_1.__spread(this.deleteGroup, [{
                    value: e.value.name,
                    name: e.value.name
                }]);
        }
    };
    MemberDetailComponent.prototype.confirmDeleteUser = function () {
        var _this = this;
        this.confirmationService.confirm({
            message: this.utils.translate('message.delete_member.content'),
            header: this.utils.translate('message.delete_member.title'),
            icon: 'pi pi-exclamation-triangle',
            accept: function () {
                _this.doDeleteUser();
            },
            reject: function () {
            }
        });
    };
    MemberDetailComponent.prototype.doDeleteUser = function () {
        var _this = this;
        var params = {
            user_id: this.userDetailId,
            team_id: this.authUser.team_id,
        };
        this.memberService.deleteUser(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.delete_success')
                });
                _this.router.navigate(['/member/list']);
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submitting = false;
        }, function (err) {
            console.log('error', err);
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    MemberDetailComponent.prototype.confirmUnlockUser = function () {
        var _this = this;
        this.confirmationService.confirm({
            message: this.utils.translate('message.confirm_unlock.content'),
            header: this.utils.translate('message.confirm_unlock.title'),
            icon: 'pi pi-exclamation-triangle',
            accept: function () {
                _this.doUnlockUser();
            },
            reject: function () {
            }
        });
    };
    MemberDetailComponent.prototype.doUnlockUser = function () {
        var _this = this;
        var params = {
            user_id: this.userDetailId,
            team_id: this.authUser.team_id,
        };
        this.memberService.unlockUser(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.unlock_success')
                });
                _this.getUserDetail();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submitting = false;
        }, function (err) {
            console.log('error', err);
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    MemberDetailComponent.prototype.confirmLoginAsUser = function () {
        this.confirmationService.confirm({
            key: 'loginAsMember',
            message: this.utils.translate('message.login_as_user.msg'),
            header: this.utils.translate('message.login_as_user.title'),
            icon: 'pi pi-exclamation-triangle',
        });
    };
    MemberDetailComponent.prototype.doLoginAsUser = function (type) {
        var _this = this;
        var params = {
            user_id: this.userDetailId,
            service_key_type: type,
        };
        this.memberService.loginAsUser(params).subscribe(function (res) {
            if (res.status === 200) {
                var linkUrl, redirectPath;
                if (type === 'SecureDrive') { // 1: loginSecureDrive, 2: loginSecureMail
                    linkUrl = environment_1.environment.secure_drive_url;
                    redirectPath = window.btoa(environment_1.environment.secure_drive_url + 'project');
                }
                else {
                    linkUrl = environment_1.environment.secure_mail_url;
                    redirectPath = window.btoa(environment_1.environment.secure_mail_url + 'dashboard');
                }
                linkUrl += 'sign-in?giraffe=' + window.btoa(res.data.session_id)
                    + '&expirationDate=' + res.data.expiration_date
                    + '&redirectPath=' + redirectPath;
                window.open(linkUrl, '_blank');
            }
            else {
                if (res.status === 318) {
                    _this.messageService.add({
                        key: 'toast',
                        severity: 'error',
                        detail: _this.utils.translate('sever_errors.403')
                    });
                }
                else {
                    _this.messageService.add({
                        key: 'toast',
                        severity: 'error',
                        detail: _this.utils.translate('sever_errors.' + res.status)
                    });
                }
            }
            _this.confirmationService.close();
        }, function (err) {
            console.log('error', err);
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.confirmationService.close();
        });
    };
    MemberDetailComponent.prototype.confirmSelectGroups = function (res) {
        var _this = this;
        this.displayModalGroup = false;
        this.isShowDialog = false;
        if (res) {
            if (!this.userDetailFrm.value.selectedGroup
                || this.userDetailFrm.value.selectedGroup.length === 0) {
                res.forEach(function (itemChoose) {
                    _this.selectedGroup = tslib_1.__spread(_this.selectedGroup, [{
                            value: itemChoose.name,
                            name: itemChoose.name
                        }]);
                });
            }
            else {
                res.forEach(function (itemChoose) {
                    _this.userDetailFrm.controls['selectedGroup'].value.forEach(function (item) {
                        if (item.name !== itemChoose.name) {
                            _this.selectedGroup = tslib_1.__spread(_this.selectedGroup, [{
                                    value: itemChoose.name,
                                    name: itemChoose.name
                                }]);
                        }
                    });
                });
            }
        }
    };
    MemberDetailComponent.prototype.loadGroupsModal = function () {
        this.selectedGroupsInModal = [];
        this.first = 0;
        this.rows = 5;
        this.searchKey = '';
        this.paramsGroupModal = {
            search_key: '',
            sort_field: 'numberUser',
            asc_sort: false,
            page_number: 1,
            page_size: 5,
        };
        this.displayModalGroup = true;
        this.getGroupsModal();
    };
    MemberDetailComponent.prototype.loadGroupsModalEvent = function (event) {
        this.rowOptions = constant_module_1.Constant.rowsPerPageOptions;
        this.paramsGroupModal.page_number = (event.first / event.rows) + 1;
        this.paramsGroupModal.page_size = event.rows;
        this.rows = event.rows;
        this.paramsGroupModal.asc_sort = (event.sortOrder === 1);
        if (event.sortField) {
            this.paramsGroupModal.sort_field = event.sortField;
        }
        this.getGroupsModal();
    };
    MemberDetailComponent.prototype.getGroupsModal = function () {
        var _this = this;
        this.loadingModalGroup = true;
        this.isSelectedGroupAll = false;
        this.paramsGroupModal.team_id = this.authUser.team_id;
        this.userGroupService.getGroupsAllPaging(this.paramsGroupModal)
            .subscribe(function (response) {
            if (response.status === 200) {
                _this.groups = response.data.content;
                _this.totalRecords = response.data.total_elements;
                if (_this.selectedGroupsInModal.length > 0) {
                    var numberCheckAll_1 = 0;
                    _this.groups.forEach(function (result) {
                        _this.selectedGroupsInModal.forEach(function (selected) {
                            if (result.group_user_id === selected.group_user_id) {
                                result._selected = true;
                                numberCheckAll_1++;
                                if (numberCheckAll_1 === _this.groups.length) {
                                    _this.isSelectedGroupAll = true;
                                }
                            }
                        });
                    });
                }
            }
            _this.loadingModalGroup = false;
        }, function (error) {
            console.log('error', error);
            _this.loadingModalGroup = false;
        });
    };
    MemberDetailComponent.prototype.searchTable = function (event) {
        if (event.keyCode === 13) {
            this.paramsGroupModal.search_key = this.searchKey;
            this.paramsGroupModal.page_number = 1;
            this.first = 0;
            this.getGroupsModal();
        }
    };
    MemberDetailComponent.prototype.confirmTransferAccount = function () {
        this.displayTransferModal = true;
        if (!this.submittingTransfer) {
            this.transferFrm.reset();
        }
    };
    MemberDetailComponent.prototype.doTransferAccount = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submittingTransfer = true;
        var paramsTransfer = {
            user_id: this.userDetailId,
            mail_address: this.transferFrm.value.mailAddress,
            new_password: this.transferFrm.value.password,
            confirm_password: this.transferFrm.value.confirmPassword,
        };
        this.memberService.transferAccount(paramsTransfer).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
                _this.transferFrm.reset();
                _this.displayTransferModal = false;
                _this.getUserDetail();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submittingTransfer = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submittingTransfer = false;
        });
    };
    MemberDetailComponent.prototype.toggleSelectedGroupAll = function () {
        var _this = this;
        if (this.isSelectedGroupAll) {
            if (this.selectedGroupsInModal.length === 0) {
                this.groups.forEach(function (selected) {
                    selected._selected = true;
                    _this.selectedGroupsInModal.push(selected);
                });
            }
            else {
                this.selectedGroupsInModal = this.selectedGroupsInModal.concat(this.groups);
                for (var i = 0; i < this.selectedGroupsInModal.length; ++i) {
                    for (var j = i + 1; j < this.selectedGroupsInModal.length; ++j) {
                        if (this.selectedGroupsInModal[i].group_user_id === this.selectedGroupsInModal[j].group_user_id) {
                            this.selectedGroupsInModal.splice(j--, 1);
                        }
                    }
                }
            }
        }
        else {
            this.groups.forEach(function (item) {
                _this.selectedGroupsInModal.forEach(function (selected) {
                    if (item.group_user_id === selected.group_user_id) {
                        _this.currentSelectedGroups.push(selected);
                    }
                });
            });
            this.removeSelected(this.currentSelectedGroups);
        }
        this.groups.forEach(function (item) {
            item._selected = _this.isSelectedGroupAll;
        });
    };
    MemberDetailComponent.prototype.toggleSelectedGroup = function (obj) {
        var _this = this;
        if (obj && obj.group_user_id) {
            var index = this.selectedGroupsInModal.findIndex(function (item) { return item.group_user_id === obj.group_user_id; });
            if (index > -1) {
                this.selectedGroupsInModal.splice(index, 1);
                obj._selected = false;
            }
            else {
                this.selectedGroupsInModal.push(obj);
                obj._selected = true;
            }
            this.isSelectedGroupAll = false;
            var numberCheckAll_2 = 0;
            this.groups.forEach(function (result) {
                _this.selectedGroupsInModal.forEach(function (selected) {
                    if (result.group_user_id === selected.group_user_id) {
                        result._selected = true;
                        numberCheckAll_2++;
                        _this.isSelectedGroupAll = (numberCheckAll_2 === _this.groups.length);
                    }
                });
            });
        }
    };
    MemberDetailComponent.prototype.removeSelected = function (list) {
        var _this = this;
        list.forEach(function (item) {
            var index = _this.selectedGroupsInModal.findIndex(function (group) { return group.group_user_id === item.group_user_id; });
            _this.selectedGroupsInModal.splice(index, 1);
        });
        this.currentSelectedGroups = [];
    };
    MemberDetailComponent.ɵfac = function MemberDetailComponent_Factory(t) { return new (t || MemberDetailComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.AuthenticateService), i0.ɵɵdirectiveInject(i3.UserGroupService), i0.ɵɵdirectiveInject(i4.TeamSettingService), i0.ɵɵdirectiveInject(i5.MemberService), i0.ɵɵdirectiveInject(i6.ActivatedRoute), i0.ɵɵdirectiveInject(i6.Router), i0.ɵɵdirectiveInject(i7.DatePipe), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i7.Location), i0.ɵɵdirectiveInject(i8.MessageService), i0.ɵɵdirectiveInject(i8.ConfirmationService), i0.ɵɵdirectiveInject(i9.UtilsService)); };
    MemberDetailComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MemberDetailComponent, selectors: [["app-member-detail"]], features: [i0.ɵɵProvidersFeature([api_1.ConfirmationService, common_1.DatePipe])], decls: 86, vars: 92, consts: [[1, "margin-body"], [1, "p-text-secondary", "header-custom"], ["styleClass", "toolbar-custom"], ["pTemplate", "left"], [1, "p-shadow-4"], [3, "formGroup", "ngSubmit"], [1, "p-card"], [1, "p-card-body"], [1, "p-grid"], [1, "p-col-12", "p-md-6"], ["class", "p-field display-grid", 4, "ngIf"], [1, "p-field", "display-grid"], ["for", "firstname", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "firstname", "type", "text", "required", "", "maxlength", "64", "formControlName", "firstName", "pInputText", "", 3, "ngModel", "ngClass", "ngModelChange"], ["class", "p-invalid", 4, "ngIf"], [1, "p-field"], ["for", "role", 1, "p-text-small", "p-mb-1", "p-text-bold"], ["id", "role", "formControlName", "selectedRole", "optionLabel", "name", 3, "disabled", "options", "ngModel", "ngModelChange"], [1, "p-text-small", "p-mb-1", "p-text-bold"], [1, "p-col-12", "padding-custom"], [1, "p-badge-truncate", 3, "value"], [1, "p-text-small", "p-text-bold"], [1, "p-col-12", "p-pl-0"], ["class", "p-field", 4, "ngIf"], ["class", "p-text-left", 4, "ngIf"], [1, "p-col-12", "p-mx-0", "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", 3, "label", "click"], ["pButton", "", "pRipple", "", "class", "p-button-raised p-button-primary", "type", "submit", 3, "label", "disabled", 4, "ngIf"], ["class", "p-col-12 loading-spinner", 4, "ngIf"], ["styleClass", "md-dialog", "position", "left"], ["cd", ""], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-times p-button-icon-left", 1, "p-button-raised", "p-button-secondary", "p-button-outlined", "p-mr-2", 3, "label", "click"], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-check p-button-icon-left", 1, "p-button-raised", "p-button-primary", 3, "label", "click"], ["key", "loginAsMember", "styleClass", "md-dialog", "position", "left", 3, "baseZIndex"], [1, "p-text-center"], ["type", "button", "pButton", "", "pRipple", "", "class", "p-button-raised p-button-primary p-mr-2", 3, "label", "click", 4, "ngIf"], ["type", "button", "pButton", "", "pRipple", "", "class", "p-button-raised p-button-primary", 3, "label", "click", 4, "ngIf"], ["styleClass", "md-dialog", "position", "left", 3, "header", "visible", "modal", "maximizable", "draggable", "resizable", "baseZIndex", "visibleChange"], ["styleClass", "p-datatable-striped p-datatable-responsive-demo", 3, "rowHover", "paginator", "lazy", "loading", "totalRecords", "sortField", "sortOrder", "value", "first", "rows", "selection", "onLazyLoad", "firstChange", "selectionChange"], ["dt", ""], ["pTemplate", "caption"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], ["pTemplate", "footer"], ["styleClass", "custom-dialog", "position", "left", 3, "header", "visible", "modal", "maximizable", "draggable", "resizable", "baseZIndex", "visibleChange"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-times p-button-icon-left", 1, "p-button-raised", "p-button-secondary", "p-button-outlined", "p-mr-2", 3, "label", "click"], ["pButton", "", "pRipple", "", "icon", "pi pi-save p-button-icon-left", "type", "submit", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled", "click"], [4, "ngIf"], ["pButton", "", "pRipple", "", "class", "p-button-raised p-mr-2 p-button-primary", "icon", "pi pi-sign-in p-button-icon-left", 3, "label", "click", 4, "ngIf"], ["class", "p-button-raised p-button-success p-mr-2", "icon", "pi pi-sort-alt rotate-90deg p-button-icon-left", "pButton", "", "pRipple", "", 3, "label", "click", 4, "ngIf"], ["class", "p-button-raised p-button-success p-mr-2", "icon", "pi pi-lock-open p-button-icon-left", "pButton", "", "pRipple", "", 3, "label", "click", 4, "ngIf"], ["class", "p-button-raised p-button-danger p-mr-2", "icon", "pi pi-trash", "pButton", "", "pRipple", "", 3, "click", 4, "ngIf"], ["pButton", "", "pRipple", "", "icon", "pi pi-sign-in p-button-icon-left", 1, "p-button-raised", "p-mr-2", "p-button-primary", 3, "label", "click"], ["icon", "pi pi-sort-alt rotate-90deg p-button-icon-left", "pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-success", "p-mr-2", 3, "label", "click"], ["icon", "pi pi-lock-open p-button-icon-left", "pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-success", "p-mr-2", 3, "label", "click"], ["icon", "pi pi-trash", "pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-danger", "p-mr-2", 3, "click"], ["for", "lastname-ja", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "lastname-ja", "type", "text", "required", "", "maxlength", "64", "formControlName", "lastName", "pInputText", "", 3, "ngModel", "ngClass", "ngModelChange"], [1, "p-invalid"], ["for", "lastname", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "lastname", "type", "text", "required", "", "maxlength", "64", "formControlName", "lastName", "pInputText", "", 3, "ngModel", "ngClass", "ngModelChange"], [1, "p-inputgroup"], ["multiple", "true", "bindLabel", "name", "name", "selectedGroup", "formControlName", "selectedGroup", 1, "group-name", 3, "items", "addTag", "hideSelected", "inputAttrs", "loading", "ngModel", "readonly", "keypress", "remove", "ngModelChange"], ["ng-tag-tmp", ""], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-book", 1, "p-button-primary", 3, "disabled", "click"], [1, "p-text-left"], ["name", "override", "binary", "true", "formControlName", "override", 3, "value", "disabled", "inputId"], [1, "p-ml-2", "p-text-small", 3, "ngClass", "for"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled"], [1, "pi", "pi-save", "p-button-icon-left"], [1, "pi", "pi-spin", "pi-spinner", "p-button-icon-left"], [1, "p-col-12", "loading-spinner"], [1, "overlay"], [1, "overlay__spinner"], [1, "lds-loading"], ["type", "button", "pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-primary", "p-mr-2", 3, "label", "click"], ["type", "button", "pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-primary", 3, "label", "click"], [1, "p-d-flex", "p-ai-center", "p-jc-between"], [1, "p-input-icon-left"], [1, "pi", "pi-search"], ["pInputText", "", "type", "text", 1, "p-width-50", 3, "ngModel", "placeholder", "keyup", "ngModelChange"], [2, "width", "10%"], ["name", "checkboxGroupAll", "binary", "true", 3, "ngModel", "ngModelChange", "click"], ["pSortableColumn", "groupName", 2, "width", "60%"], ["field", "groupName"], ["pSortableColumn", "numberUser", 2, "width", "30%"], ["field", "numberUser"], ["binary", "true", 3, "ngModel", "click", "ngModelChange"], [1, "p-text-truncate"], [1, "p-text-13", "p-text-center"], ["colspan", "3", 1, "p-text-center"], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-check p-button-icon-left", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled", "click"], [3, "formGroup"], [1, "p-col-12"], ["for", "email", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "email", "type", "email", "required", "", "maxlength", "64", "formControlName", "mailAddress", "pInputText", "", 3, "ngClass"], ["for", "password", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "password", "type", "password", "required", "", "formControlName", "password", "pInputText", "", 3, "maxlength", "pattern", "ngClass"], ["for", "confirm-password", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "confirm-password", "type", "password", "required", "", "formControlName", "confirmPassword", "pInputText", "", 3, "maxlength", "ngClass"], [1, "pi", "pi-spin", "pi-spinner"]], template: function MemberDetailComponent_Template(rf, ctx) { if (rf & 1) {
            var _r78 = i0.ɵɵgetCurrentView();
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "h2", 1);
            i0.ɵɵtext(2);
            i0.ɵɵpipe(3, "uppercase");
            i0.ɵɵpipe(4, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(5, "p-toolbar", 2);
            i0.ɵɵtemplate(6, MemberDetailComponent_ng_template_6_Template, 4, 4, "ng-template", 3);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(7, "div", 4);
            i0.ɵɵelementStart(8, "form", 5);
            i0.ɵɵlistener("ngSubmit", function MemberDetailComponent_Template_form_ngSubmit_8_listener() { return ctx.confirmUpdateUser(ctx.userDetailFrm.valid); });
            i0.ɵɵelementStart(9, "div", 6);
            i0.ɵɵelementStart(10, "div", 7);
            i0.ɵɵelementStart(11, "div", 8);
            i0.ɵɵelementStart(12, "div", 9);
            i0.ɵɵtemplate(13, MemberDetailComponent_div_13_Template, 6, 7, "div", 10);
            i0.ɵɵelementStart(14, "div", 11);
            i0.ɵɵelementStart(15, "label", 12);
            i0.ɵɵtext(16);
            i0.ɵɵpipe(17, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(18, "input", 13);
            i0.ɵɵlistener("ngModelChange", function MemberDetailComponent_Template_input_ngModelChange_18_listener($event) { return ctx.userData.first_name = $event; });
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(19, MemberDetailComponent_div_19_Template, 3, 2, "div", 14);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(20, MemberDetailComponent_div_20_Template, 6, 7, "div", 10);
            i0.ɵɵelementStart(21, "div", 15);
            i0.ɵɵelementStart(22, "div", 11);
            i0.ɵɵelementStart(23, "label", 16);
            i0.ɵɵtext(24);
            i0.ɵɵpipe(25, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(26, "p-dropdown", 17);
            i0.ɵɵlistener("ngModelChange", function MemberDetailComponent_Template_p_dropdown_ngModelChange_26_listener($event) { return ctx.selectedRole = $event; });
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(27, "div", 9);
            i0.ɵɵelementStart(28, "div", 15);
            i0.ɵɵelementStart(29, "div", 11);
            i0.ɵɵelementStart(30, "label", 18);
            i0.ɵɵtext(31);
            i0.ɵɵpipe(32, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(33, "div", 19);
            i0.ɵɵelement(34, "p-badge", 20);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(35, "div", 15);
            i0.ɵɵelementStart(36, "div", 11);
            i0.ɵɵelementStart(37, "label", 21);
            i0.ɵɵtext(38);
            i0.ɵɵpipe(39, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(40, "div", 22);
            i0.ɵɵelementStart(41, "span");
            i0.ɵɵtext(42);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(43, MemberDetailComponent_div_43_Template, 10, 14, "div", 23);
            i0.ɵɵtemplate(44, MemberDetailComponent_div_44_Template, 5, 8, "div", 24);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(45, "div", 25);
            i0.ɵɵelementStart(46, "button", 26);
            i0.ɵɵlistener("click", function MemberDetailComponent_Template_button_click_46_listener() { return ctx.doBack(); });
            i0.ɵɵpipe(47, "titlecase");
            i0.ɵɵpipe(48, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(49, MemberDetailComponent_button_49_Template, 4, 6, "button", 27);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(50, "div", 8);
            i0.ɵɵtemplate(51, MemberDetailComponent_div_51_Template, 7, 0, "div", 28);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(52, "p-confirmDialog", 29, 30);
            i0.ɵɵelementStart(54, "p-footer");
            i0.ɵɵelementStart(55, "button", 31);
            i0.ɵɵlistener("click", function MemberDetailComponent_Template_button_click_55_listener() { i0.ɵɵrestoreView(_r78); var _r8 = i0.ɵɵreference(53); return _r8.reject(); });
            i0.ɵɵpipe(56, "titlecase");
            i0.ɵɵpipe(57, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(58, "button", 32);
            i0.ɵɵlistener("click", function MemberDetailComponent_Template_button_click_58_listener() { i0.ɵɵrestoreView(_r78); var _r8 = i0.ɵɵreference(53); return _r8.accept(); });
            i0.ɵɵpipe(59, "uppercase");
            i0.ɵɵpipe(60, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(61, "p-confirmDialog", 33);
            i0.ɵɵelementStart(62, "p-footer");
            i0.ɵɵelementStart(63, "div", 34);
            i0.ɵɵtemplate(64, MemberDetailComponent_button_64_Template, 2, 3, "button", 35);
            i0.ɵɵtemplate(65, MemberDetailComponent_button_65_Template, 2, 3, "button", 36);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(66, "p-dialog", 37);
            i0.ɵɵlistener("visibleChange", function MemberDetailComponent_Template_p_dialog_visibleChange_66_listener($event) { return ctx.displayModalGroup = $event; });
            i0.ɵɵpipe(67, "translate");
            i0.ɵɵelementStart(68, "p-table", 38, 39);
            i0.ɵɵlistener("onLazyLoad", function MemberDetailComponent_Template_p_table_onLazyLoad_68_listener($event) { return ctx.loadGroupsModalEvent($event); })("firstChange", function MemberDetailComponent_Template_p_table_firstChange_68_listener($event) { return ctx.first = $event; })("selectionChange", function MemberDetailComponent_Template_p_table_selectionChange_68_listener($event) { return ctx.selectedGroupsInModal = $event; });
            i0.ɵɵtemplate(70, MemberDetailComponent_ng_template_70_Template, 5, 4, "ng-template", 40);
            i0.ɵɵtemplate(71, MemberDetailComponent_ng_template_71_Template, 11, 7, "ng-template", 41);
            i0.ɵɵtemplate(72, MemberDetailComponent_ng_template_72_Template, 7, 3, "ng-template", 42);
            i0.ɵɵtemplate(73, MemberDetailComponent_ng_template_73_Template, 4, 3, "ng-template", 43);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(74, MemberDetailComponent_ng_template_74_Template, 6, 11, "ng-template", 44);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(75, "p-dialog", 45);
            i0.ɵɵlistener("visibleChange", function MemberDetailComponent_Template_p_dialog_visibleChange_75_listener($event) { return ctx.displayTransferModal = $event; });
            i0.ɵɵpipe(76, "titlecase");
            i0.ɵɵpipe(77, "translate");
            i0.ɵɵtemplate(78, MemberDetailComponent_ng_template_78_Template, 23, 19, "ng-template", 42);
            i0.ɵɵelementStart(79, "p-footer");
            i0.ɵɵelementStart(80, "button", 46);
            i0.ɵɵlistener("click", function MemberDetailComponent_Template_button_click_80_listener() { return ctx.displayTransferModal = false; });
            i0.ɵɵpipe(81, "titlecase");
            i0.ɵɵpipe(82, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(83, "button", 47);
            i0.ɵɵlistener("click", function MemberDetailComponent_Template_button_click_83_listener() { return ctx.doTransferAccount(ctx.transferFrm.valid); });
            i0.ɵɵpipe(84, "translate");
            i0.ɵɵtemplate(85, MemberDetailComponent_span_85_Template, 2, 0, "span", 48);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 56, i0.ɵɵpipeBind1(4, 58, "header.member.edit")), " ");
            i0.ɵɵadvance(6);
            i0.ɵɵproperty("formGroup", ctx.userDetailFrm);
            i0.ɵɵadvance(5);
            i0.ɵɵproperty("ngIf", ctx.authUser.lang === "ja");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 60, "label.common.first_name"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngModel", ctx.userData.first_name)("ngClass", (ctx.userDetailFrm.controls["firstName"].touched || ctx.userDetailFrm.controls["firstName"].dirty) && ctx.userDetailFrm.controls["firstName"].invalid ? "p-invalid" : "");
            i0.ɵɵattribute("disabled", ctx.authUser.role_id === ctx.systemRole.TeamAdmin || ctx.authUser.role_id === ctx.systemRole.Manager && ctx.userData && (ctx.userData.role_id === ctx.systemRole.Member || ctx.userData.role_id === ctx.systemRole.Guest) ? null : true);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", (ctx.userDetailFrm.controls["firstName"].touched || ctx.userDetailFrm.controls["firstName"].dirty) && ctx.userDetailFrm.controls["firstName"].errors);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.authUser.lang !== "ja");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 62, "label.common.role"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("disabled", ctx.authUser.role_id === ctx.systemRole.TeamAdmin && ctx.userData && ctx.userData.role_id !== ctx.systemRole.TeamAdmin || ctx.authUser.role_id === ctx.systemRole.Manager && ctx.userData && (ctx.userData.role_id === ctx.systemRole.Member || ctx.userData.role_id === ctx.systemRole.Guest) ? null : true)("options", ctx.roles)("ngModel", ctx.selectedRole);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(32, 64, "label.common.mail_address"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("value", ctx.userData["mail_address"]);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39, 66, "label.common.create_date"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", ctx.utils.formatDateBasedOnDiff(ctx.datePipe, ctx.userData["signup_date"]), " ");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isUseSDGlobal);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isUseSDGlobal);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(47, 68, i0.ɵɵpipeBind1(48, 70, "button.back")));
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.authUser.role_id === ctx.systemRole.TeamAdmin || ctx.authUser.role_id === ctx.systemRole.Manager && ctx.userData && (ctx.userData.role_id === ctx.systemRole.Member || ctx.userData.role_id === ctx.systemRole.Guest));
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.submitting);
            i0.ɵɵadvance(4);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(56, 72, i0.ɵɵpipeBind1(57, 74, "button.cancel")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(59, 76, i0.ɵɵpipeBind1(60, 78, "button.ok")));
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("baseZIndex", 10000);
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.authUser.use_secure_drive);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.authUser.use_secure_mail);
            i0.ɵɵadvance(1);
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(67, 80, "label.common.select_group"));
            i0.ɵɵproperty("visible", ctx.displayModalGroup)("modal", true)("maximizable", true)("draggable", false)("resizable", false)("baseZIndex", 10000);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("rowHover", true)("paginator", ctx.totalRecords > 0)("lazy", true)("loading", ctx.loadingModalGroup)("totalRecords", ctx.totalRecords)("sortField", ctx.paramsGroupModal.sort_field ? ctx.paramsGroupModal.sort_field : "numberUser")("sortOrder", ctx.paramsGroupModal.asc_sort ? 1 : -1)("value", ctx.groups)("first", ctx.first)("rows", ctx.rows)("selection", ctx.selectedGroupsInModal);
            i0.ɵɵadvance(7);
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(76, 82, i0.ɵɵpipeBind1(77, 84, "message.transfer_account")));
            i0.ɵɵproperty("visible", ctx.displayTransferModal)("modal", true)("maximizable", true)("draggable", false)("resizable", false)("baseZIndex", 10000);
            i0.ɵɵadvance(5);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(81, 86, i0.ɵɵpipeBind1(82, 88, "button.cancel")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(84, 90, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.transferFrm.valid || ctx.submittingTransfer);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.submittingTransfer);
        } }, directives: [i10.Toolbar, i8.PrimeTemplate, i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i7.NgIf, i1.DefaultValueAccessor, i1.RequiredValidator, i1.MaxLengthValidator, i1.NgControlStatus, i1.FormControlName, i11.InputText, i7.NgClass, i12.Dropdown, i13.Badge, i14.ButtonDirective, i15.Ripple, i16.ConfirmDialog, i8.Footer, i17.Dialog, i18.Table, i19.NgSelectComponent, i19.ɵo, i20.Checkbox, i1.NgModel, i18.SortableColumn, i18.SortIcon, i1.PatternValidator], pipes: [i7.UpperCasePipe, i21.TranslatePipe, i7.TitleCasePipe, i7.AsyncPipe], styles: [".padding-custom[_ngcontent-%COMP%] {\n  padding: 6px 0 4px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vbWVtYmVyL21lbWJlci1kZXRhaWwvbWVtYmVyLWRldGFpbC5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvdGVhbS1hZG1pbi9tZW1iZXIvbWVtYmVyLWRldGFpbC9tZW1iZXItZGV0YWlsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0Usa0JBQUE7QUNDRiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vbWVtYmVyL21lbWJlci1kZXRhaWwvbWVtYmVyLWRldGFpbC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5wYWRkaW5nLWN1c3RvbSB7XG4gIHBhZGRpbmc6IDZweCAwIDRweDtcbn1cblxuIiwiLnBhZGRpbmctY3VzdG9tIHtcbiAgcGFkZGluZzogNnB4IDAgNHB4O1xufSJdfQ== */"] });
    return MemberDetailComponent;
}());
exports.MemberDetailComponent = MemberDetailComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MemberDetailComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-member-detail',
                templateUrl: './member-detail.component.html',
                styleUrls: ['./member-detail.component.scss'],
                providers: [api_1.ConfirmationService, common_1.DatePipe]
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.AuthenticateService }, { type: i3.UserGroupService }, { type: i4.TeamSettingService }, { type: i5.MemberService }, { type: i6.ActivatedRoute }, { type: i6.Router }, { type: i7.DatePipe }, { type: i0.ChangeDetectorRef }, { type: i7.Location }, { type: i8.MessageService }, { type: i8.ConfirmationService }, { type: i9.UtilsService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/member/member-group/member-group.component.ts":
/*!**************************************************************************!*\
  !*** ./src/app/team-admin/member/member-group/member-group.component.ts ***!
  \**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MemberGroupComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var api_1 = __webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js");
var validator_module_1 = __webpack_require__(/*! ../../../common/validator.module */ "./src/app/common/validator.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team.service */ "./src/app/shared/services/team.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/user-group.service */ "./src/app/shared/services/user-group.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtextarea */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtextarea.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/toolbar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-toolbar.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! primeng/table */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.js"));
var i15 = tslib_1.__importStar(__webpack_require__(/*! primeng/confirmdialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-confirmdialog.js"));
var i16 = tslib_1.__importStar(__webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js"));
var i17 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var i18 = tslib_1.__importStar(__webpack_require__(/*! primeng/tooltip */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js"));
var i19 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function MemberGroupComponent_div_21_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberGroupComponent_div_21_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MemberGroupComponent_div_21_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 41);
    i0.ɵɵtemplate(1, MemberGroupComponent_div_21_small_1_Template, 3, 3, "small", 42);
    i0.ɵɵtemplate(2, MemberGroupComponent_div_21_small_2_Template, 3, 3, "small", 42);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r0.memberGroupFrm.controls["groupName"].errors == null ? null : ctx_r0.memberGroupFrm.controls["groupName"].errors.required) || (ctx_r0.memberGroupFrm.controls["groupName"].errors == null ? null : ctx_r0.memberGroupFrm.controls["groupName"].errors.whitespace));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.memberGroupFrm.controls["groupName"].errors == null ? null : ctx_r0.memberGroupFrm.controls["groupName"].errors.pattern);
} }
function MemberGroupComponent_div_28_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MemberGroupComponent_div_28_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 41);
    i0.ɵɵtemplate(1, MemberGroupComponent_div_28_small_1_Template, 3, 3, "small", 42);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.memberGroupFrm.controls["description"].errors == null ? null : ctx_r1.memberGroupFrm.controls["description"].errors.pattern);
} }
function MemberGroupComponent_button_48_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 44);
    i0.ɵɵelementEnd();
} }
function MemberGroupComponent_button_48_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 45);
    i0.ɵɵelementEnd();
} }
function MemberGroupComponent_button_48_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "button", 43);
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵtemplate(2, MemberGroupComponent_button_48_span_2_Template, 2, 0, "span", 42);
    i0.ɵɵtemplate(3, MemberGroupComponent_button_48_span_3_Template, 2, 0, "span", 42);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 4, "button.save"));
    i0.ɵɵproperty("disabled", !ctx_r2.memberGroupFrm.valid || ctx_r2.submitting || !ctx_r2.isChange);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", !ctx_r2.submitting);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.submitting);
} }
function MemberGroupComponent_ng_template_57_button_0_Template(rf, ctx) { if (rf & 1) {
    var _r30 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 50);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_57_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r30); var ctx_r29 = i0.ɵɵnextContext(2); return ctx_r29.showAddMembersPopUp(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, i0.ɵɵpipeBind1(2, 3, "button.add")));
} }
function MemberGroupComponent_ng_template_57_button_1_Template(rf, ctx) { if (rf & 1) {
    var _r32 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 51);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_57_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r32); var ctx_r31 = i0.ɵɵnextContext(2); return ctx_r31.loadGroupsExceptModal("move"); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r26 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 2, i0.ɵɵpipeBind1(2, 4, "button.move")));
    i0.ɵɵproperty("disabled", !ctx_r26.selectedUsers || ctx_r26.selectedUsers.length === 0);
} }
function MemberGroupComponent_ng_template_57_button_2_Template(rf, ctx) { if (rf & 1) {
    var _r34 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 52);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_57_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r34); var ctx_r33 = i0.ɵɵnextContext(2); return ctx_r33.loadGroupsExceptModal("copy"); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r27 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 2, i0.ɵɵpipeBind1(2, 4, "button.copy")));
    i0.ɵɵproperty("disabled", !ctx_r27.selectedUsers || ctx_r27.selectedUsers.length === 0);
} }
function MemberGroupComponent_ng_template_57_button_3_Template(rf, ctx) { if (rf & 1) {
    var _r36 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 53);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_57_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r36); var ctx_r35 = i0.ɵɵnextContext(2); return ctx_r35.confirmRemoveMemberFromGroup(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r28 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 2, i0.ɵɵpipeBind1(2, 4, "button.remove")));
    i0.ɵɵproperty("disabled", !ctx_r28.selectedUsers || ctx_r28.selectedUsers.length === 0);
} }
function MemberGroupComponent_ng_template_57_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, MemberGroupComponent_ng_template_57_button_0_Template, 3, 5, "button", 46);
    i0.ɵɵtemplate(1, MemberGroupComponent_ng_template_57_button_1_Template, 3, 6, "button", 47);
    i0.ɵɵtemplate(2, MemberGroupComponent_ng_template_57_button_2_Template, 3, 6, "button", 48);
    i0.ɵɵtemplate(3, MemberGroupComponent_ng_template_57_button_3_Template, 3, 6, "button", 49);
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngIf", ctx_r3.authUser.role_id === ctx_r3.systemRole.TeamAdmin || ctx_r3.authUser.role_id === ctx_r3.systemRole.Manager);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r3.authUser.role_id === ctx_r3.systemRole.TeamAdmin || ctx_r3.authUser.role_id === ctx_r3.systemRole.Manager);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r3.authUser.role_id === ctx_r3.systemRole.TeamAdmin || ctx_r3.authUser.role_id === ctx_r3.systemRole.Manager);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r3.authUser.role_id === ctx_r3.systemRole.TeamAdmin || ctx_r3.authUser.role_id === ctx_r3.systemRole.Manager);
} }
function MemberGroupComponent_ng_template_60_Template(rf, ctx) { if (rf & 1) {
    var _r38 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 54);
    i0.ɵɵelementStart(1, "span", 55);
    i0.ɵɵelement(2, "i", 56);
    i0.ɵɵelementStart(3, "input", 57);
    i0.ɵɵlistener("keyup", function MemberGroupComponent_ng_template_60_Template_input_keyup_3_listener($event) { i0.ɵɵrestoreView(_r38); var ctx_r37 = i0.ɵɵnextContext(); return ctx_r37.searchInGroup($event); })("ngModelChange", function MemberGroupComponent_ng_template_60_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r38); var ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.groupSearchKey = $event; });
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(4, 2, "label.search_placeholder"));
    i0.ɵɵproperty("ngModel", ctx_r5.groupSearchKey);
} }
function MemberGroupComponent_ng_template_61_th_1_Template(rf, ctx) { if (rf & 1) {
    var _r44 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "th", 68);
    i0.ɵɵelementStart(1, "p-checkbox", 69);
    i0.ɵɵlistener("ngModelChange", function MemberGroupComponent_ng_template_61_th_1_Template_p_checkbox_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r44); var ctx_r43 = i0.ɵɵnextContext(2); return ctx_r43.isSelectedAll = $event; })("click", function MemberGroupComponent_ng_template_61_th_1_Template_p_checkbox_click_1_listener() { i0.ɵɵrestoreView(_r44); var ctx_r45 = i0.ɵɵnextContext(2); return ctx_r45.toggleSelectedAll(); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r40 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngModel", ctx_r40.isSelectedAll);
} }
function MemberGroupComponent_ng_template_61_th_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th", 70);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelement(3, "p-sortIcon", 71);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "table_header.common.first_name"), " ");
} }
function MemberGroupComponent_ng_template_61_th_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th", 70);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelement(3, "p-sortIcon", 71);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "table_header.common.first_name"), " ");
} }
function MemberGroupComponent_ng_template_61_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, MemberGroupComponent_ng_template_61_th_1_Template, 2, 1, "th", 58);
    i0.ɵɵtemplate(2, MemberGroupComponent_ng_template_61_th_2_Template, 4, 3, "th", 59);
    i0.ɵɵelementStart(3, "th", 60);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelement(6, "p-sortIcon", 61);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(7, MemberGroupComponent_ng_template_61_th_7_Template, 4, 3, "th", 59);
    i0.ɵɵelementStart(8, "th", 62);
    i0.ɵɵtext(9);
    i0.ɵɵpipe(10, "translate");
    i0.ɵɵelement(11, "p-sortIcon", 63);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(12, "th", 64);
    i0.ɵɵtext(13);
    i0.ɵɵpipe(14, "translate");
    i0.ɵɵelement(15, "p-sortIcon", 65);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "th", 66);
    i0.ɵɵtext(17);
    i0.ɵɵpipe(18, "translate");
    i0.ɵɵelement(19, "p-sortIcon", 67);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r6.usersInGroup && ctx_r6.usersInGroup.length > 0 && (ctx_r6.authUser.role_id === ctx_r6.systemRole.TeamAdmin || ctx_r6.authUser.role_id === ctx_r6.systemRole.Manager));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r6.authUser.lang !== "ja");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 7, "table_header.common.last_name"), " ");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r6.authUser.lang === "ja");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 9, "table_header.common.mail_address"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(14, 11, "table_header.common.create_date"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 13, "table_header.member.role"), " ");
} }
function MemberGroupComponent_ng_template_62_td_1_Template(rf, ctx) { if (rf & 1) {
    var _r56 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "td");
    i0.ɵɵelementStart(1, "p-checkbox", 81);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_62_td_1_Template_p_checkbox_click_1_listener() { i0.ɵɵrestoreView(_r56); var user_r46 = i0.ɵɵnextContext().$implicit; var ctx_r54 = i0.ɵɵnextContext(); return ctx_r54.toggleSelected(user_r46); })("ngModelChange", function MemberGroupComponent_ng_template_62_td_1_Template_p_checkbox_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r56); var user_r46 = i0.ɵɵnextContext().$implicit; return user_r46._selected = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var user_r46 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngModel", user_r46._selected);
} }
function MemberGroupComponent_ng_template_62_td_2_Template(rf, ctx) { if (rf & 1) {
    var _r62 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "td", 82);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_62_td_2_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r62); var user_r46 = i0.ɵɵnextContext().$implicit; var ctx_r60 = i0.ɵɵnextContext(); return ctx_r60.goToUserDetail(user_r46.user_id); })("dblclick", function MemberGroupComponent_ng_template_62_td_2_Template_td_dblclick_0_listener() { i0.ɵɵrestoreView(_r62); var user_r46 = i0.ɵɵnextContext().$implicit; var ctx_r63 = i0.ɵɵnextContext(); return ctx_r63.goToUserDetail(user_r46.user_id); });
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var user_r46 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", user_r46.first_name, " ");
} }
function MemberGroupComponent_ng_template_62_td_5_Template(rf, ctx) { if (rf & 1) {
    var _r68 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "td", 82);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_62_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r68); var user_r46 = i0.ɵɵnextContext().$implicit; var ctx_r66 = i0.ɵɵnextContext(); return ctx_r66.goToUserDetail(user_r46.user_id); })("dblclick", function MemberGroupComponent_ng_template_62_td_5_Template_td_dblclick_0_listener() { i0.ɵɵrestoreView(_r68); var user_r46 = i0.ɵɵnextContext().$implicit; var ctx_r69 = i0.ɵɵnextContext(); return ctx_r69.goToUserDetail(user_r46.user_id); });
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var user_r46 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(user_r46.first_name);
} }
function MemberGroupComponent_ng_template_62_span_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 83);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.admin"), " ");
} }
function MemberGroupComponent_ng_template_62_span_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 84);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.manager"), " ");
} }
function MemberGroupComponent_ng_template_62_span_13_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 85);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.user"), " ");
} }
function MemberGroupComponent_ng_template_62_span_14_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 18);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.guest"), " ");
} }
function MemberGroupComponent_ng_template_62_Template(rf, ctx) { if (rf & 1) {
    var _r73 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, MemberGroupComponent_ng_template_62_td_1_Template, 2, 1, "td", 42);
    i0.ɵɵtemplate(2, MemberGroupComponent_ng_template_62_td_2_Template, 2, 1, "td", 72);
    i0.ɵɵelementStart(3, "td", 73);
    i0.ɵɵlistener("dblclick", function MemberGroupComponent_ng_template_62_Template_td_dblclick_3_listener() { i0.ɵɵrestoreView(_r73); var user_r46 = ctx.$implicit; var ctx_r72 = i0.ɵɵnextContext(); return ctx_r72.goToUserDetail(user_r46.user_id); });
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(5, MemberGroupComponent_ng_template_62_td_5_Template, 2, 1, "td", 72);
    i0.ɵɵelementStart(6, "td", 74);
    i0.ɵɵlistener("dblclick", function MemberGroupComponent_ng_template_62_Template_td_dblclick_6_listener() { i0.ɵɵrestoreView(_r73); var user_r46 = ctx.$implicit; var ctx_r74 = i0.ɵɵnextContext(); return ctx_r74.goToUserDetail(user_r46.user_id); });
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "td", 75);
    i0.ɵɵlistener("dblclick", function MemberGroupComponent_ng_template_62_Template_td_dblclick_8_listener() { i0.ɵɵrestoreView(_r73); var user_r46 = ctx.$implicit; var ctx_r75 = i0.ɵɵnextContext(); return ctx_r75.goToUserDetail(user_r46.user_id); });
    i0.ɵɵtext(9);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(10, "td", 76);
    i0.ɵɵtemplate(11, MemberGroupComponent_ng_template_62_span_11_Template, 3, 3, "span", 77);
    i0.ɵɵtemplate(12, MemberGroupComponent_ng_template_62_span_12_Template, 3, 3, "span", 78);
    i0.ɵɵtemplate(13, MemberGroupComponent_ng_template_62_span_13_Template, 3, 3, "span", 79);
    i0.ɵɵtemplate(14, MemberGroupComponent_ng_template_62_span_14_Template, 3, 3, "span", 80);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var user_r46 = ctx.$implicit;
    var ctx_r7 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r7.authUser.role_id === ctx_r7.systemRole.TeamAdmin || ctx_r7.authUser.role_id === ctx_r7.systemRole.Manager);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r7.authUser.lang !== "ja");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(user_r46.last_name);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r7.authUser.lang === "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", user_r46.mail_address);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(user_r46.mail_address);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", ctx_r7.utils.formatDateBasedOnDiff(ctx_r7.datePipe, user_r46.signup_date), " ");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitch", user_r46.role_id);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
} }
function MemberGroupComponent_ng_template_63_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 86);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "td", 87);
    i0.ɵɵtext(5);
    i0.ɵɵpipe(6, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("colSpan", 4);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 4, "label.no_record"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("colSpan", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, "label.no_record"), " ");
} }
function MemberGroupComponent_ng_template_66_span_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 89);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "label.member_group.copy_member_to_group"));
} }
function MemberGroupComponent_ng_template_66_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 89);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "label.member_group.move_to_group"));
} }
function MemberGroupComponent_ng_template_66_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, MemberGroupComponent_ng_template_66_span_0_Template, 3, 3, "span", 88);
    i0.ɵɵtemplate(1, MemberGroupComponent_ng_template_66_span_1_Template, 3, 3, "span", 88);
} if (rf & 2) {
    var ctx_r9 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngIf", ctx_r9.confirmKey === "copy");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r9.confirmKey !== "copy");
} }
function MemberGroupComponent_ng_template_68_Template(rf, ctx) { if (rf & 1) {
    var _r79 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 54);
    i0.ɵɵelementStart(1, "span", 55);
    i0.ɵɵelement(2, "i", 56);
    i0.ɵɵelementStart(3, "input", 57);
    i0.ɵɵlistener("keyup", function MemberGroupComponent_ng_template_68_Template_input_keyup_3_listener($event) { i0.ɵɵrestoreView(_r79); var ctx_r78 = i0.ɵɵnextContext(); return ctx_r78.searchTable($event); })("ngModelChange", function MemberGroupComponent_ng_template_68_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r79); var ctx_r80 = i0.ɵɵnextContext(); return ctx_r80.searchKey = $event; });
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r10 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(4, 2, "label.search_placeholder"));
    i0.ɵɵproperty("ngModel", ctx_r10.searchKey);
} }
function MemberGroupComponent_ng_template_69_p_checkbox_2_Template(rf, ctx) { if (rf & 1) {
    var _r83 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "p-checkbox", 96);
    i0.ɵɵlistener("ngModelChange", function MemberGroupComponent_ng_template_69_p_checkbox_2_Template_p_checkbox_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r83); var ctx_r82 = i0.ɵɵnextContext(2); return ctx_r82.isSelectedAllCopy = $event; })("click", function MemberGroupComponent_ng_template_69_p_checkbox_2_Template_p_checkbox_click_0_listener() { i0.ɵɵrestoreView(_r83); var ctx_r84 = i0.ɵɵnextContext(2); return ctx_r84.toggleSelectedAllCopy(); });
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r81 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngModel", ctx_r81.isSelectedAllCopy);
} }
function MemberGroupComponent_ng_template_69_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "th", 90);
    i0.ɵɵtemplate(2, MemberGroupComponent_ng_template_69_p_checkbox_2_Template, 1, 1, "p-checkbox", 91);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "th", 92);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelement(6, "p-sortIcon", 93);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "th", 94);
    i0.ɵɵtext(8);
    i0.ɵɵpipe(9, "translate");
    i0.ɵɵelement(10, "p-sortIcon", 95);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r11 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r11.confirmKey === "copy" && ctx_r11.groups && ctx_r11.groups.length > 0);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 3, "table_header.group_user.name"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 5, "table_header.group_user.numbers_user"), " ");
} }
function MemberGroupComponent_ng_template_70_p_checkbox_2_Template(rf, ctx) { if (rf & 1) {
    var _r90 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "p-checkbox", 81);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_70_p_checkbox_2_Template_p_checkbox_click_0_listener() { i0.ɵɵrestoreView(_r90); var group_r85 = i0.ɵɵnextContext().$implicit; var ctx_r88 = i0.ɵɵnextContext(); return ctx_r88.toggleSelectedCopy(group_r85); })("ngModelChange", function MemberGroupComponent_ng_template_70_p_checkbox_2_Template_p_checkbox_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r90); var group_r85 = i0.ɵɵnextContext().$implicit; return group_r85._selected = $event; });
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var group_r85 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("ngModel", group_r85._selected);
} }
function MemberGroupComponent_ng_template_70_p_tableRadioButton_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "p-tableRadioButton", 101);
} if (rf & 2) {
    var group_r85 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("value", group_r85);
} }
function MemberGroupComponent_ng_template_70_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td");
    i0.ɵɵtemplate(2, MemberGroupComponent_ng_template_70_p_checkbox_2_Template, 1, 1, "p-checkbox", 97);
    i0.ɵɵtemplate(3, MemberGroupComponent_ng_template_70_p_tableRadioButton_3_Template, 1, 1, "p-tableRadioButton", 98);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "td", 99);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "td", 100);
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var group_r85 = ctx.$implicit;
    var ctx_r12 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r12.confirmKey === "copy");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r12.confirmKey === "move");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(group_r85.name);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(group_r85.number_user);
} }
function MemberGroupComponent_ng_template_71_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 102);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 1, "label.no_record"), "");
} }
function MemberGroupComponent_ng_template_72_button_3_Template(rf, ctx) { if (rf & 1) {
    var _r98 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 106);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_72_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r98); var ctx_r97 = i0.ɵɵnextContext(2); return ctx_r97.confirmSelectGroups(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r95 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 2, i0.ɵɵpipeBind1(2, 4, "button.copy")));
    i0.ɵɵproperty("disabled", !ctx_r95.selectedInModal || ctx_r95.selectedInModal.length === 0 || ctx_r95.loadingModalGroup);
} }
function MemberGroupComponent_ng_template_72_button_4_Template(rf, ctx) { if (rf & 1) {
    var _r100 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 107);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_72_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r100); var ctx_r99 = i0.ɵɵnextContext(2); return ctx_r99.confirmSelectGroups(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r96 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 2, i0.ɵɵpipeBind1(2, 4, "button.move")));
    i0.ɵɵproperty("disabled", !ctx_r96.selectedInModal || ctx_r96.selectedInModal.length === 0 || ctx_r96.loadingModalGroup);
} }
function MemberGroupComponent_ng_template_72_Template(rf, ctx) { if (rf & 1) {
    var _r102 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 103);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_72_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r102); var ctx_r101 = i0.ɵɵnextContext(); return ctx_r101.displayModalGroup = false; });
    i0.ɵɵpipe(1, "titlecase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(3, MemberGroupComponent_ng_template_72_button_3_Template, 3, 6, "button", 104);
    i0.ɵɵtemplate(4, MemberGroupComponent_ng_template_72_button_4_Template, 3, 6, "button", 105);
} if (rf & 2) {
    var ctx_r14 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 3, i0.ɵɵpipeBind1(2, 5, "button.cancel")));
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r14.confirmKey === "copy");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r14.confirmKey !== "copy");
} }
function MemberGroupComponent_ng_template_76_Template(rf, ctx) { if (rf & 1) {
    var _r104 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 54);
    i0.ɵɵelementStart(1, "span", 55);
    i0.ɵɵelement(2, "i", 56);
    i0.ɵɵelementStart(3, "input", 57);
    i0.ɵɵlistener("keyup", function MemberGroupComponent_ng_template_76_Template_input_keyup_3_listener($event) { i0.ɵɵrestoreView(_r104); var ctx_r103 = i0.ɵɵnextContext(); return ctx_r103.searchTable($event); })("ngModelChange", function MemberGroupComponent_ng_template_76_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r104); var ctx_r105 = i0.ɵɵnextContext(); return ctx_r105.searchKeyAdd = $event; });
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r15 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(4, 2, "label.search_placeholder"));
    i0.ɵɵproperty("ngModel", ctx_r15.searchKeyAdd);
} }
function MemberGroupComponent_ng_template_77_Template(rf, ctx) { if (rf & 1) {
    var _r107 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "th", 108);
    i0.ɵɵelementStart(2, "p-checkbox", 109);
    i0.ɵɵlistener("ngModelChange", function MemberGroupComponent_ng_template_77_Template_p_checkbox_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r107); var ctx_r106 = i0.ɵɵnextContext(); return ctx_r106.isSelectedAllAdd = $event; })("click", function MemberGroupComponent_ng_template_77_Template_p_checkbox_click_2_listener() { i0.ɵɵrestoreView(_r107); var ctx_r108 = i0.ɵɵnextContext(); return ctx_r108.toggleSelectedAllAdd(); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "th", 110);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelement(6, "p-sortIcon", 71);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "th", 111);
    i0.ɵɵtext(8);
    i0.ɵɵpipe(9, "translate");
    i0.ɵɵelement(10, "p-sortIcon", 61);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "th", 112);
    i0.ɵɵtext(12);
    i0.ɵɵpipe(13, "translate");
    i0.ɵɵelement(14, "p-sortIcon", 63);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(15, "th", 113);
    i0.ɵɵtext(16);
    i0.ɵɵpipe(17, "translate");
    i0.ɵɵelement(18, "p-sortIcon", 67);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r16 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngModel", ctx_r16.isSelectedAllAdd);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 5, "table_header.common.first_name"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 7, "table_header.common.last_name"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 9, "table_header.common.mail_address"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 11, "table_header.member.role"), " ");
} }
function MemberGroupComponent_ng_template_78_span_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 83);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.admin"), " ");
} }
function MemberGroupComponent_ng_template_78_span_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 84);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.manager"), " ");
} }
function MemberGroupComponent_ng_template_78_span_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 85);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.user"), " ");
} }
function MemberGroupComponent_ng_template_78_span_13_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 18);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.guest"), " ");
} }
function MemberGroupComponent_ng_template_78_Template(rf, ctx) { if (rf & 1) {
    var _r115 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td");
    i0.ɵɵelementStart(2, "p-checkbox", 81);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_78_Template_p_checkbox_click_2_listener() { i0.ɵɵrestoreView(_r115); var user_r109 = ctx.$implicit; var ctx_r114 = i0.ɵɵnextContext(); return ctx_r114.toggleSelectedAdd(user_r109); })("ngModelChange", function MemberGroupComponent_ng_template_78_Template_p_checkbox_ngModelChange_2_listener($event) { var user_r109 = ctx.$implicit; return user_r109._selected = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td", 114);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "td", 114);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "td", 115);
    i0.ɵɵtext(8);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "td", 116);
    i0.ɵɵtemplate(10, MemberGroupComponent_ng_template_78_span_10_Template, 3, 3, "span", 77);
    i0.ɵɵtemplate(11, MemberGroupComponent_ng_template_78_span_11_Template, 3, 3, "span", 78);
    i0.ɵɵtemplate(12, MemberGroupComponent_ng_template_78_span_12_Template, 3, 3, "span", 79);
    i0.ɵɵtemplate(13, MemberGroupComponent_ng_template_78_span_13_Template, 3, 3, "span", 80);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var user_r109 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngModel", user_r109._selected);
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", user_r109.first_name);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", user_r109.first_name, " ");
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", user_r109.last_name);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", user_r109.last_name, " ");
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", user_r109.mail_address);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", user_r109.mail_address, " ");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitch", user_r109.role_id);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
} }
function MemberGroupComponent_ng_template_79_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 117);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "td", 118);
    i0.ɵɵtext(5);
    i0.ɵɵpipe(6, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "label.no_record"), "");
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 4, "label.no_record"), "");
} }
function MemberGroupComponent_ng_template_80_Template(rf, ctx) { if (rf & 1) {
    var _r118 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 103);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_80_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r118); var ctx_r117 = i0.ɵɵnextContext(); return ctx_r117.displayModalAdd = false; });
    i0.ɵɵpipe(1, "titlecase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "button", 119);
    i0.ɵɵlistener("click", function MemberGroupComponent_ng_template_80_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r118); var ctx_r119 = i0.ɵɵnextContext(); return ctx_r119.confirmSelectGroups(); });
    i0.ɵɵpipe(4, "uppercase");
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r19 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 3, i0.ɵɵpipeBind1(2, 5, "button.cancel")));
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(4, 7, i0.ɵɵpipeBind1(5, 9, "button.ok")));
    i0.ɵɵproperty("disabled", !ctx_r19.selectedUsersAdd || ctx_r19.selectedUsersAdd.length === 0 || ctx_r19.loadingModalGroup);
} }
var MemberGroupComponent = /** @class */ (function () {
    function MemberGroupComponent(fb, authenticateService, teamService, userGroupService, utils, router, datePipe, confirmationService, messageService, activatedRoute, location) {
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.teamService = teamService;
        this.userGroupService = userGroupService;
        this.utils = utils;
        this.router = router;
        this.datePipe = datePipe;
        this.confirmationService = confirmationService;
        this.messageService = messageService;
        this.activatedRoute = activatedRoute;
        this.location = location;
        this.memberGroupFrm = new forms_1.FormGroup({});
        this.systemRole = constant_module_1.SystemRole;
        this.isChange = false;
        this.groupDetailData = {};
        this.oldGroupDetailData = {};
        this.isSelectedAll = false;
        this.selectedUsers = [];
        this.currentSelected = [];
        this.isSelectedAllAdd = false;
        this.selectedUsersAdd = [];
        this.currentSelectedAdd = [];
        this.isSelectedAllCopy = false;
        this.currentSelectedCopy = [];
        this.first = 0;
        this.params = {
            group_user_id: '',
            team_id: '',
            search_key: '',
            sort_field: 'createdDate',
            asc_sort: false,
            page_number: 1,
            page_size: 10,
            is_in_group: true
        };
        // dialog add member to group
        this.displayModalGroup = false;
        this.isShowDialog = false;
        this.submittingAction = false;
        this.selectedInModal = [];
        this.paramsGroupModal = {
            group_user_id: '',
            team_id: '',
            search_key: '',
            sort_field: 'numberUser',
            asc_sort: false,
            page_number: 1,
            page_size: 5,
        };
        this.displayModalAdd = false;
        this.paramsAddModal = {
            group_user_id: '',
            team_id: '',
            search_key: '',
            sort_field: 'firstName',
            asc_sort: false,
            page_number: 1,
            page_size: 5,
            is_in_group: false
        };
    }
    MemberGroupComponent.prototype.ngOnInit = function () {
        if (!this.authenticateService.isUseSDGlobal) {
            this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: this.utils.translate('errors.err_access_function')
            });
            this.router.navigate(['/member/list']);
        }
        this.authUser = this.authenticateService.getAuthUser();
        this.params.team_id = this.authUser.team_id;
        this.params.group_user_id = this.activatedRoute.snapshot.paramMap.get('id');
        this.paramsGroupModal.group_user_id = this.activatedRoute.snapshot.paramMap.get('id');
        this.paramsAddModal.group_user_id = this.activatedRoute.snapshot.paramMap.get('id');
        this.paramsAddModal.team_id = this.authUser.team_id;
        this.rowOptions = constant_module_1.Constant.rowsPerPageOptions;
        var storagePagingSettings = JSON.parse(localStorage.getItem(constant_module_1.Constant.sortPage.memberInGroupList));
        if (storagePagingSettings) {
            this.params.page_size = storagePagingSettings.page_size;
            this.params.sort_field = storagePagingSettings.sort_field;
            this.params.asc_sort = storagePagingSettings.asc_sort;
        }
        this.memberGroupFrm = this.fb.group({
            groupName: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN),
                    validator_module_1.noWhitespaceValidator
                ]
            ],
            description: ['',
                [forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN)]
            ]
        });
        this.loadData();
    };
    MemberGroupComponent.prototype.onChanges = function () {
        var _this = this;
        this.memberGroupFrm.valueChanges.subscribe(function (val) {
            if (_this.oldGroupDetailData) {
                _this.isChange = (val && JSON.stringify(_this.oldGroupDetailData) !== JSON.stringify(val));
            }
        });
    };
    MemberGroupComponent.prototype.loadData = function () {
        var _this = this;
        this.userGroupService.getGroupDetail(this.params).subscribe(function (res) {
            if (res.status == 200) {
                _this.groupDetailData = res.data;
                _this.memberGroupFrm.controls['groupName'].setValue(_this.groupDetailData['name']);
                _this.memberGroupFrm.controls['description'].setValue(_this.groupDetailData['description']
                    ? _this.groupDetailData['description'] : '');
                _this.oldGroupDetailData = {
                    groupName: res.data.name,
                    description: res.data.description ? res.data.description : ''
                };
                _this.onChanges();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
        });
    };
    MemberGroupComponent.prototype.loadUserInGroups = function (event) {
        this.params.page_number = (event.first / event.rows) + 1;
        this.params.page_size = event.rows;
        this.params.asc_sort = (event.sortOrder === 1);
        if (event.sortField) {
            this.params.sort_field = event.sortField;
        }
        this.getUserInGroupList();
    };
    MemberGroupComponent.prototype.getUserInGroupList = function () {
        var _this = this;
        this.loading = true;
        this.isSelectedAll = false;
        this.userGroupService.getGroupUsersPaging(this.params).subscribe(function (response) {
            if (response.status === 200) {
                var storeParams = {
                    page_size: _this.params.page_size,
                    sort_field: _this.params.sort_field,
                    asc_sort: _this.params.asc_sort
                };
                localStorage.setItem(constant_module_1.Constant.sortPage.memberInGroupList, JSON.stringify(storeParams));
                _this.usersInGroup = response.data.content;
                _this.totalRecordsInGroup = response.data.total_elements;
                if (_this.selectedUsers.length > 0) {
                    var numberCheckAll_1 = 0;
                    _this.usersInGroup.forEach(function (result) {
                        _this.selectedUsers.forEach(function (selected) {
                            if (result.user_id === selected.user_id) {
                                result._selected = true;
                                numberCheckAll_1++;
                                if (numberCheckAll_1 === _this.usersInGroup.length) {
                                    _this.isSelectedAll = true;
                                }
                            }
                        });
                    });
                }
            }
            _this.loading = false;
        }, function (error) {
            _this.loading = false;
        });
    };
    MemberGroupComponent.prototype.searchInGroup = function (event) {
        if (event.keyCode === 13) {
            this.params.search_key = this.groupSearchKey;
            this.params.page_number = 1;
            this.getUserInGroupList();
        }
    };
    MemberGroupComponent.prototype.goToUserDetail = function (id) {
        this.router.navigate(['/member', id]);
    };
    // ---- custom checkbox selected users
    MemberGroupComponent.prototype.toggleSelectedAll = function () {
        var _this = this;
        if (this.isSelectedAll) {
            if (this.selectedUsers.length === 0) {
                this.usersInGroup.forEach(function (selected) {
                    selected._selected = true;
                    _this.selectedUsers.push(selected);
                });
            }
            else {
                this.selectedUsers = this.selectedUsers.concat(this.usersInGroup);
                for (var i = 0; i < this.selectedUsers.length; ++i) {
                    for (var j = i + 1; j < this.selectedUsers.length; ++j) {
                        if (this.selectedUsers[i].user_id === this.selectedUsers[j].user_id) {
                            this.selectedUsers.splice(j--, 1);
                        }
                    }
                }
            }
        }
        else {
            this.usersInGroup.forEach(function (item) {
                _this.selectedUsers.forEach(function (selected) {
                    if (item.user_id === selected.user_id) {
                        _this.currentSelected.push(selected);
                    }
                });
            });
            this.removeSelected(this.currentSelected);
        }
        this.usersInGroup.forEach(function (item) {
            item._selected = _this.isSelectedAll;
        });
    };
    MemberGroupComponent.prototype.toggleSelected = function (obj) {
        var _this = this;
        if (obj && obj.user_id) {
            var index = this.selectedUsers.findIndex(function (group) { return group.user_id === obj.user_id; });
            if (index > -1) {
                this.selectedUsers.splice(index, 1);
                obj._selected = false;
            }
            else {
                this.selectedUsers.push(obj);
                obj._selected = true;
            }
            this.isSelectedAll = false;
            var numberCheckAll_2 = 0;
            this.usersInGroup.forEach(function (result) {
                _this.selectedUsers.forEach(function (selected) {
                    if (result.user_id === selected.user_id) {
                        result._selected = true;
                        numberCheckAll_2++;
                        _this.isSelectedAll = (numberCheckAll_2 === _this.usersInGroup.length);
                    }
                });
            });
        }
    };
    MemberGroupComponent.prototype.removeSelected = function (list) {
        var _this = this;
        list.forEach(function (item) {
            var index = _this.selectedUsers.findIndex(function (group) { return group.user_id === item.user_id; });
            _this.selectedUsers.splice(index, 1);
        });
        this.currentSelected = [];
    };
    // ---- custom checkbox selected users in ADD modal
    MemberGroupComponent.prototype.toggleSelectedAllAdd = function () {
        var _this = this;
        if (this.isSelectedAllAdd) {
            if (this.selectedUsersAdd.length === 0) {
                this.users.forEach(function (selected) {
                    selected._selected = true;
                    _this.selectedUsersAdd.push(selected);
                });
            }
            else {
                this.selectedUsersAdd = this.selectedUsersAdd.concat(this.users);
                for (var i = 0; i < this.selectedUsersAdd.length; ++i) {
                    for (var j = i + 1; j < this.selectedUsersAdd.length; ++j) {
                        if (this.selectedUsersAdd[i].user_id === this.selectedUsersAdd[j].user_id) {
                            this.selectedUsersAdd.splice(j--, 1);
                        }
                    }
                }
            }
        }
        else {
            this.users.forEach(function (item) {
                _this.selectedUsersAdd.forEach(function (selected) {
                    if (item.user_id === selected.user_id) {
                        _this.currentSelectedAdd.push(selected);
                    }
                });
            });
            this.removeSelectedAdd(this.currentSelectedAdd);
        }
        this.users.forEach(function (item) {
            item._selected = _this.isSelectedAllAdd;
        });
    };
    MemberGroupComponent.prototype.toggleSelectedAdd = function (obj) {
        var _this = this;
        if (obj && obj.user_id) {
            var index = this.selectedUsersAdd.findIndex(function (user) { return user.user_id === obj.user_id; });
            if (index > -1) {
                this.selectedUsersAdd.splice(index, 1);
                obj._selected = false;
            }
            else {
                this.selectedUsersAdd.push(obj);
                obj._selected = true;
            }
            this.isSelectedAllAdd = false;
            var numberCheckAll_3 = 0;
            this.users.forEach(function (result) {
                _this.selectedUsersAdd.forEach(function (selected) {
                    if (result.user_id === selected.user_id) {
                        result._selected = true;
                        numberCheckAll_3++;
                        _this.isSelectedAllAdd = (numberCheckAll_3 === _this.users.length);
                    }
                });
            });
        }
    };
    MemberGroupComponent.prototype.removeSelectedAdd = function (list) {
        var _this = this;
        list.forEach(function (item) {
            var index = _this.selectedUsersAdd.findIndex(function (user) { return user.user_id === item.user_id; });
            _this.selectedUsersAdd.splice(index, 1);
        });
        this.currentSelectedAdd = [];
    };
    // ---- custom checkbox selected groups in COPY modal
    MemberGroupComponent.prototype.toggleSelectedAllCopy = function () {
        var _this = this;
        if (this.isSelectedAllCopy) {
            if (this.selectedInModal.length === 0) {
                this.groups.forEach(function (selected) {
                    selected._selected = true;
                    _this.selectedInModal.push(selected);
                });
            }
            else {
                this.selectedInModal = this.selectedInModal.concat(this.groups);
                for (var i = 0; i < this.selectedInModal.length; ++i) {
                    for (var j = i + 1; j < this.selectedInModal.length; ++j) {
                        if (this.selectedInModal[i].group_user_id === this.selectedInModal[j].group_user_id) {
                            this.selectedInModal.splice(j--, 1);
                        }
                    }
                }
            }
        }
        else {
            this.groups.forEach(function (item) {
                _this.selectedInModal.forEach(function (selected) {
                    if (item.group_user_id === selected.group_user_id) {
                        _this.currentSelectedCopy.push(selected);
                    }
                });
            });
            this.removeSelectedCopy(this.currentSelectedCopy);
        }
        this.groups.forEach(function (item) {
            item._selected = _this.isSelectedAllCopy;
        });
    };
    MemberGroupComponent.prototype.toggleSelectedCopy = function (obj) {
        var _this = this;
        if (obj && obj.group_user_id) {
            var index = this.selectedInModal.findIndex(function (group) { return group.group_user_id === obj.group_user_id; });
            if (index > -1) {
                this.selectedInModal.splice(index, 1);
                obj._selected = false;
            }
            else {
                this.selectedInModal.push(obj);
                obj._selected = true;
            }
            this.isSelectedAllCopy = false;
            var numberCheckAll_4 = 0;
            this.groups.forEach(function (result) {
                _this.selectedInModal.forEach(function (selected) {
                    if (result.group_user_id === selected.group_user_id) {
                        result._selected = true;
                        numberCheckAll_4++;
                        _this.isSelectedAllCopy = (numberCheckAll_4 === _this.groups.length);
                    }
                });
            });
        }
    };
    MemberGroupComponent.prototype.removeSelectedCopy = function (list) {
        var _this = this;
        list.forEach(function (item) {
            var index = _this.selectedInModal.findIndex(function (group) { return group.group_user_id === item.group_user_id; });
            _this.selectedInModal.splice(index, 1);
        });
        this.currentSelectedCopy = [];
    };
    // back button
    MemberGroupComponent.prototype.goBack = function () {
        this.location.back();
    };
    // update group detail information
    MemberGroupComponent.prototype.doUpdateGroupDetail = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submitting = true;
        var params = {
            team_id: this.authUser.team_id,
            group_user_id: this.activatedRoute.snapshot.paramMap.get('id'),
            name: this.memberGroupFrm.value.groupName,
            description: this.memberGroupFrm.value.description
        };
        this.userGroupService.updateGroup(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
                _this.oldGroupDetailData = tslib_1.__assign({}, _this.memberGroupFrm.value);
                _this.loadData();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submitting = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    // ------------- ADD member to group ---------------
    MemberGroupComponent.prototype.showAddMembersPopUp = function () {
        this.isSelectedAllAdd = false;
        this.confirmKey = 'add';
        this.searchKeyAdd = '';
        this.first = 0;
        this.paramsAddModal.search_key = '';
        this.paramsAddModal.sort_field = 'firstName';
        this.paramsAddModal.asc_sort = true;
        this.paramsAddModal.page_number = 1;
        this.paramsAddModal.page_size = 5;
        this.selectedUsersAdd = [];
        this.displayModalAdd = true;
        this.getAddUserModal();
    };
    MemberGroupComponent.prototype.loadGroupsExceptModal = function (type) {
        this.confirmKey = type;
        this.selectedInModal = [];
        this.searchKey = '';
        this.loadingModalGroup = false;
        this.first = 0;
        this.paramsGroupModal.search_key = '';
        this.paramsGroupModal.sort_field = 'numberUser';
        this.paramsGroupModal.asc_sort = false;
        this.paramsGroupModal.page_number = 1;
        this.paramsGroupModal.page_size = 5;
        this.displayModalGroup = true;
        this.getGroupsExceptModal();
    };
    MemberGroupComponent.prototype.loadGroupsModalEvent = function (event) {
        this.paramsGroupModal.page_number = (event.first / event.rows) + 1;
        this.paramsGroupModal.page_size = event.rows;
        this.paramsGroupModal.asc_sort = (event.sortOrder === 1);
        if (event.sortField) {
            this.paramsGroupModal.sort_field = event.sortField;
        }
        this.getGroupsExceptModal();
    };
    MemberGroupComponent.prototype.getGroupsExceptModal = function () {
        var _this = this;
        this.loadingModalGroup = true;
        this.isSelectedAllCopy = false;
        this.paramsGroupModal.team_id = this.authUser.team_id;
        this.userGroupService.getGroupExceptPaging(this.paramsGroupModal)
            .subscribe(function (response) {
            if (response.status === 200) {
                _this.groups = response.data.content;
                _this.totalRecords = response.data.total_elements;
                if (_this.selectedInModal.length > 0 && _this.confirmKey === 'copy') {
                    var numberCheckAll_5 = 0;
                    _this.groups.forEach(function (result) {
                        _this.selectedInModal.forEach(function (selected) {
                            if (result.group_user_id === selected.group_user_id) {
                                result._selected = true;
                                numberCheckAll_5++;
                                if (numberCheckAll_5 === _this.groups.length) {
                                    _this.isSelectedAllCopy = true;
                                }
                            }
                        });
                    });
                }
            }
            _this.loadingModalGroup = false;
        }, function (error) {
            // console.log('error', error);
            _this.loadingModalGroup = false;
        });
    };
    MemberGroupComponent.prototype.loadAddModalEvent = function (event) {
        this.paramsAddModal.page_number = (event.first / event.rows) + 1;
        this.paramsAddModal.page_size = event.rows;
        this.paramsAddModal.asc_sort = (event.sortOrder === 1);
        if (event.sortField) {
            this.paramsAddModal.sort_field = event.sortField;
        }
        this.getAddUserModal();
    };
    MemberGroupComponent.prototype.getAddUserModal = function () {
        var _this = this;
        this.loadingModalGroup = true;
        this.isSelectedAllAdd = false;
        this.paramsAddModal.team_id = this.authUser.team_id;
        this.userGroupService.getGroupUsersPaging(this.paramsAddModal)
            .subscribe(function (response) {
            if (response.status === 200) {
                _this.users = response.data.content;
                _this.totalRecordsAdd = response.data.total_elements;
                if (_this.selectedUsersAdd.length > 0) {
                    var numberCheckAll_6 = 0;
                    _this.users.forEach(function (result) {
                        _this.selectedUsersAdd.forEach(function (selected) {
                            if (result.user_id === selected.user_id) {
                                result._selected = true;
                                numberCheckAll_6++;
                                if (numberCheckAll_6 === _this.users.length) {
                                    _this.isSelectedAllAdd = true;
                                }
                            }
                        });
                    });
                }
            }
            _this.loadingModalGroup = false;
        }, function (error) {
            // console.log('error', error);
            _this.loadingModalGroup = false;
        });
    };
    MemberGroupComponent.prototype.searchTable = function (event) {
        if (event.keyCode === 13) {
            switch (this.confirmKey) {
                case 'copy':
                case 'move':
                    this.paramsGroupModal.search_key = this.searchKey;
                    this.paramsGroupModal.page_number = 1;
                    this.first = 0;
                    this.getGroupsExceptModal();
                    break;
                case 'add':
                    this.paramsAddModal.search_key = this.searchKeyAdd;
                    this.paramsAddModal.page_number = 1;
                    this.first = 0;
                    this.getAddUserModal();
                    break;
                default:
                    break;
            }
        }
    };
    MemberGroupComponent.prototype.confirmSelectGroups = function () {
        this.submittingAction = false;
        switch (this.confirmKey) {
            case 'copy':
                this.confirmationService.confirm({
                    key: 'confirmOverride',
                    message: this.utils.translate('message.confirm_handle_user.content_copy'),
                    header: this.utils.translate('message.confirm_handle_user.title'),
                    icon: 'pi pi-exclamation-triangle',
                });
                break;
            case 'move':
                this.confirmationService.confirm({
                    key: 'confirmOverride',
                    message: this.utils.translate('message.confirm_handle_user.content'),
                    header: this.utils.translate('message.confirm_handle_user.title'),
                    icon: 'pi pi-exclamation-triangle',
                });
                break;
            case 'add':
                this.confirmationService.confirm({
                    key: 'confirmOverride',
                    message: this.utils.translate('message.confirm_handle_user.content'),
                    header: this.utils.translate('message.confirm_handle_user.title'),
                    icon: 'pi pi-exclamation-triangle',
                });
                break;
            default:
                break;
        }
    };
    MemberGroupComponent.prototype.doConfirmOverride = function (value) {
        switch (this.confirmKey) {
            case 'copy':
                this.doCopyMemberToGroups(value);
                break;
            case 'move':
                this.doMoveMemberToAnotherGroups(value);
                break;
            case 'add':
                this.doAddMemberToGroups(value);
                break;
            default:
                break;
        }
    };
    MemberGroupComponent.prototype.doCopyMemberToGroups = function (value) {
        var _this = this;
        this.submittingAction = true;
        var params = {
            group_user_ids: this.selectedInModal.map(function (item) { return item.group_user_id; }).join(','),
            team_id: this.authUser.team_id,
            user_member_ids: this.selectedUsers.map(function (item) { return item.user_id; }).join(','),
            override: value === 'override'
        };
        this.userGroupService.addUsersToGroup(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.copy_success')
                });
                _this.isShowDialog = false;
                _this.displayModalGroup = false;
                _this.selectedUsers = [];
                _this.confirmationService.close();
                _this.getUserInGroupList();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submittingAction = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.confirmationService.close();
        });
    };
    MemberGroupComponent.prototype.doMoveMemberToAnotherGroups = function (value) {
        var _this = this;
        this.submittingAction = true;
        var params = {
            group_user_id: this.activatedRoute.snapshot.paramMap.get('id'),
            dest_group_user_id: this.selectedInModal['group_user_id'],
            team_id: this.authUser.team_id,
            user_member_ids: this.selectedUsers.map(function (item) { return item.user_id; }).join(','),
            override: value === 'override'
        };
        this.userGroupService.moveUsersToGroup(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.move_success')
                });
                _this.isShowDialog = false;
                _this.displayModalGroup = false;
                _this.selectedUsers = [];
                _this.confirmationService.close();
                _this.getUserInGroupList();
                _this.loadData();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submittingAction = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.confirmationService.close();
        });
    };
    MemberGroupComponent.prototype.doAddMemberToGroups = function (value) {
        var _this = this;
        this.submittingAction = true;
        var params = {
            group_user_ids: this.activatedRoute.snapshot.paramMap.get('id'),
            team_id: this.authUser.team_id,
            user_member_ids: this.selectedUsersAdd.map(function (item) { return item.user_id; }).join(','),
            override: value === 'override'
        };
        this.userGroupService.addUsersToGroup(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.add_success')
                });
                _this.isShowDialog = false;
                _this.displayModalAdd = false;
                _this.selectedUsersAdd = [];
                _this.confirmationService.close();
                _this.getUserInGroupList();
                _this.loadData();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submittingAction = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.confirmationService.close();
        });
    };
    // ------------- REMOVE member from group -----------
    MemberGroupComponent.prototype.confirmRemoveMemberFromGroup = function () {
        var _this = this;
        this.confirmationService.confirm({
            message: this.utils.translate('message.remove_member_from_group.content'),
            header: this.utils.translate('message.remove_member_from_group.title'),
            icon: 'pi pi-exclamation-triangle',
            accept: function () {
                _this.doRemoveMemberFromGroup();
            }
        });
    };
    MemberGroupComponent.prototype.doRemoveMemberFromGroup = function () {
        var _this = this;
        if (this.selectedUsers.length === 0) {
            return;
        }
        var params = {
            group_user_id: this.activatedRoute.snapshot.paramMap.get('id'),
            team_id: this.authUser.team_id,
            user_member_ids: this.selectedUsers.map(function (item) { return item.user_id; })
        };
        this.userGroupService.removeUsersFromGroup(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.delete_success')
                });
                _this.confirmationService.close();
                _this.selectedUsers = [];
                _this.getUserInGroupList();
                _this.loadData();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.confirmationService.close();
        });
    };
    MemberGroupComponent.ɵfac = function MemberGroupComponent_Factory(t) { return new (t || MemberGroupComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.AuthenticateService), i0.ɵɵdirectiveInject(i3.TeamService), i0.ɵɵdirectiveInject(i4.UserGroupService), i0.ɵɵdirectiveInject(i5.UtilsService), i0.ɵɵdirectiveInject(i6.Router), i0.ɵɵdirectiveInject(i7.DatePipe), i0.ɵɵdirectiveInject(i8.ConfirmationService), i0.ɵɵdirectiveInject(i8.MessageService), i0.ɵɵdirectiveInject(i6.ActivatedRoute), i0.ɵɵdirectiveInject(i7.Location)); };
    MemberGroupComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MemberGroupComponent, selectors: [["app-member-group"]], features: [i0.ɵɵProvidersFeature([api_1.ConfirmationService, common_1.DatePipe])], decls: 90, vars: 104, consts: [[1, "margin-body"], [1, "p-text-secondary", "header-custom", "p-mb-2"], [1, "p-card", "p-shadow-4", "p-field"], [1, "p-card-body"], [1, "p-col-12"], [1, "p-text-bold", "p-text-secondary"], [3, "formGroup", "ngSubmit"], [1, "p-grid"], [1, "p-col-12", "p-md-6"], [1, "p-col-12", "display-grid"], ["for", "groupName", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "groupName", "type", "text", "required", "", "maxlength", "64", "formControlName", "groupName", "pInputText", "", 1, "p-width-100", 3, "ngClass"], ["class", "p-invalid", 4, "ngIf"], ["for", "description", 1, "p-text-small", "p-mb-1", "p-text-bold"], ["id", "description", "rows", "2", "maxlength", "255", "formControlName", "description", "pInputTextarea", "", "autoResize", "true", 1, "p-width-100", 3, "ngClass"], [1, "p-text-small", "p-text-bold"], [1, "p-col-12", "p-pl-0", "mt-6"], [1, "p-col-12", "p-pl-0", "p-py-2"], [1, "p-badge", "p-badge-secondary"], [1, "p-col-12", "p-p-0", "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", "p-field", 3, "label", "click"], ["pButton", "", "pRipple", "", "class", "p-button-raised p-button-primary p-field", "type", "submit", 3, "label", "disabled", 4, "ngIf"], [1, "p-card", "p-shadow-4"], ["styleClass", "toolbar-custom"], ["pTemplate", "left"], ["styleClass", "p-datatable-striped p-datatable-responsive-demo", 3, "rowHover", "paginator", "lazy", "totalRecords", "sortField", "value", "first", "rows", "rowsPerPageOptions", "sortOrder", "onLazyLoad", "firstChange"], ["dtgroup", ""], ["pTemplate", "caption"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], ["styleClass", "md-dialog", "position", "left", "rejectButtonStyleClass", "p-button-text", 3, "baseZIndex"], ["styleClass", "md-dialog", "position", "left", 3, "visible", "modal", "maximizable", "draggable", "resizable", "baseZIndex", "visibleChange"], ["styleClass", "p-datatable-striped p-datatable-responsive-demo", 3, "rowHover", "paginator", "lazy", "totalRecords", "sortField", "sortOrder", "value", "first", "rows", "selection", "onLazyLoad", "firstChange", "selectionChange"], ["pTemplate", "footer"], ["styleClass", "md-dialog", "position", "left", 3, "header", "visible", "modal", "maximizable", "draggable", "resizable", "baseZIndex", "visibleChange"], ["styleClass", "p-datatable-striped p-datatable-responsive-demo", 3, "rowHover", "paginator", "lazy", "totalRecords", "sortField", "sortOrder", "value", "first", "rows", "onLazyLoad", "firstChange"], ["key", "confirmOverride", "styleClass", "md-dialog", "position", "left", 3, "baseZIndex"], [1, "p-text-center"], ["type", "button", "pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-primary", "p-mr-2", 3, "disabled", "label", "click"], ["type", "button", "pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-primary", 3, "disabled", "label", "click"], [1, "p-invalid"], [4, "ngIf"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-button-raised", "p-button-primary", "p-field", 3, "label", "disabled"], [1, "pi", "pi-save", "p-button-icon-left"], [1, "pi", "pi-spin", "pi-spinner", "p-button-icon-left"], ["pButton", "", "pRipple", "", "icon", "pi pi-plus p-button-icon-left x-none", "class", "p-button-raised p-button-primary p-mr-2 x-none", 3, "label", "click", 4, "ngIf"], ["pButton", "", "pRipple", "", "icon", "pi pi-send p-button-icon-left x-none", "class", "p-button-raised p-button-primary p-mr-2 x-none", 3, "label", "disabled", "click", 4, "ngIf"], ["pButton", "", "pRipple", "", "icon", "pi pi-copy p-button-icon-left x-none", "class", "p-button-raised p-button-warning p-mr-2 x-none", 3, "label", "disabled", "click", 4, "ngIf"], ["pButton", "", "pRipple", "", "icon", "pi pi-trash p-button-icon-left x-none", "class", "p-button-raised p-button-danger p-mr-2 x-none", 3, "label", "disabled", "click", 4, "ngIf"], ["pButton", "", "pRipple", "", "icon", "pi pi-plus p-button-icon-left x-none", 1, "p-button-raised", "p-button-primary", "p-mr-2", "x-none", 3, "label", "click"], ["pButton", "", "pRipple", "", "icon", "pi pi-send p-button-icon-left x-none", 1, "p-button-raised", "p-button-primary", "p-mr-2", "x-none", 3, "label", "disabled", "click"], ["pButton", "", "pRipple", "", "icon", "pi pi-copy p-button-icon-left x-none", 1, "p-button-raised", "p-button-warning", "p-mr-2", "x-none", 3, "label", "disabled", "click"], ["pButton", "", "pRipple", "", "icon", "pi pi-trash p-button-icon-left x-none", 1, "p-button-raised", "p-button-danger", "p-mr-2", "x-none", 3, "label", "disabled", "click"], [1, "p-d-flex", "p-ai-center", "p-jc-between"], [1, "p-input-icon-left"], [1, "pi", "pi-search"], ["pInputText", "", "type", "text", 1, "p-width-50", 3, "ngModel", "placeholder", "keyup", "ngModelChange"], ["style", "width:40px", 4, "ngIf"], ["class", "p-d-none p-d-md-table-cell", "pSortableColumn", "firstName", "style", "width:18%", 4, "ngIf"], ["pSortableColumn", "lastName", 1, "p-d-none", "p-d-md-table-cell", 2, "width", "18%"], ["field", "lastName"], ["pSortableColumn", "mailAddress"], ["field", "mailAddress"], ["pSortableColumn", "createdDate", 1, "p-d-none", "p-d-lg-table-cell", 2, "width", "18%"], ["field", "createdDate"], ["pSortableColumn", "role", 1, "p-d-none", "p-d-md-table-cell", 2, "width", "16%"], ["field", "role"], [2, "width", "40px"], ["name", "checkboxAll", "binary", "true", 3, "ngModel", "ngModelChange", "click"], ["pSortableColumn", "firstName", 1, "p-d-none", "p-d-md-table-cell", 2, "width", "18%"], ["field", "firstName"], ["class", "p-d-none p-d-md-table-cell p-text-truncate p-text-13 cs-pointer", 3, "click", "dblclick", 4, "ngIf"], [1, "p-d-none", "p-d-md-table-cell", "p-text-truncate", "p-text-13", 3, "dblclick"], ["tooltipPosition", "top", 1, "p-text-truncate", "p-text-13", 3, "pTooltip", "dblclick"], [1, "p-d-none", "p-d-lg-table-cell", "p-text-13", 3, "dblclick"], [1, "p-d-none", "p-d-md-table-cell", 3, "ngSwitch"], ["class", "p-badge p-badge-success", 4, "ngSwitchCase"], ["class", "p-badge", 4, "ngSwitchCase"], ["class", "p-badge p-badge-info", 4, "ngSwitchCase"], ["class", "p-badge p-badge-secondary", 4, "ngSwitchCase"], ["binary", "true", 3, "ngModel", "click", "ngModelChange"], [1, "p-d-none", "p-d-md-table-cell", "p-text-truncate", "p-text-13", "cs-pointer", 3, "click", "dblclick"], [1, "p-badge", "p-badge-success"], [1, "p-badge"], [1, "p-badge", "p-badge-info"], [1, "p-text-center", "p-d-none", "p-d-md-table-cell", 3, "colSpan"], [1, "p-text-center", "p-d-sm-table-cell", "p-d-md-none", 3, "colSpan"], ["class", "p-dialog-title", 4, "ngIf"], [1, "p-dialog-title"], [2, "width", "10%"], ["name", "checkboxAllCopy", "binary", "true", 3, "ngModel", "ngModelChange", "click", 4, "ngIf"], ["pSortableColumn", "groupName", 2, "width", "58%"], ["field", "groupName"], ["pSortableColumn", "numberUser", 2, "width", "32%"], ["field", "numberUser"], ["name", "checkboxAllCopy", "binary", "true", 3, "ngModel", "ngModelChange", "click"], ["binary", "true", 3, "ngModel", "click", "ngModelChange", 4, "ngIf"], [3, "value", 4, "ngIf"], [1, "p-text-truncate"], [1, "p-text-13", "p-text-center"], [3, "value"], ["colspan", "3", 1, "p-text-center"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-times p-button-icon-left", 1, "p-button-raised", "p-button-secondary", "p-button-outlined", "p-mr-2", 3, "label", "click"], ["type", "button", "pButton", "", "pRipple", "", "class", "p-button-raised p-button-warning", "icon", "pi pi-copy p-button-icon-left", 3, "label", "disabled", "click", 4, "ngIf"], ["type", "button", "pButton", "", "pRipple", "", "class", "p-button-raised p-button-primary", "icon", "pi pi-send p-button-icon-left", 3, "label", "disabled", "click", 4, "ngIf"], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-copy p-button-icon-left", 1, "p-button-raised", "p-button-warning", 3, "label", "disabled", "click"], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-send p-button-icon-left", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled", "click"], [2, "width", "7%"], ["name", "checkboxAllAdd", "binary", "true", 3, "ngModel", "ngModelChange", "click"], ["pSortableColumn", "firstName", 1, "p-d-none", "p-d-md-table-cell", 2, "width", "24%"], ["pSortableColumn", "lastName", 1, "p-d-none", "p-d-md-table-cell", 2, "width", "24%"], ["pSortableColumn", "mailAddress", 2, "width", "29%"], ["pSortableColumn", "role", 2, "width", "16%"], ["tooltipPosition", "top", 1, "p-text-truncate", "p-text-13", "p-d-none", "p-d-md-table-cell", 3, "pTooltip"], ["tooltipPosition", "top", 1, "p-text-truncate", "p-text-13", 3, "pTooltip"], [3, "ngSwitch"], ["colspan", "5", 1, "p-text-center", "p-d-none", "p-d-md-table-cell"], ["colspan", "3", 1, "p-text-center", "p-d-sm-table-cell", "p-d-md-none"], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-check p-button-icon-left", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled", "click"]], template: function MemberGroupComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "h2", 1);
            i0.ɵɵtext(2);
            i0.ɵɵpipe(3, "uppercase");
            i0.ɵɵpipe(4, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(5, "div", 2);
            i0.ɵɵelementStart(6, "div", 3);
            i0.ɵɵelementStart(7, "div", 4);
            i0.ɵɵelementStart(8, "label", 5);
            i0.ɵɵtext(9);
            i0.ɵɵpipe(10, "uppercase");
            i0.ɵɵpipe(11, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(12, "form", 6);
            i0.ɵɵlistener("ngSubmit", function MemberGroupComponent_Template_form_ngSubmit_12_listener() { return ctx.doUpdateGroupDetail(ctx.memberGroupFrm.valid); });
            i0.ɵɵelementStart(13, "div", 7);
            i0.ɵɵelementStart(14, "div", 8);
            i0.ɵɵelementStart(15, "div", 9);
            i0.ɵɵelementStart(16, "label", 10);
            i0.ɵɵtext(17);
            i0.ɵɵpipe(18, "titlecase");
            i0.ɵɵpipe(19, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(20, "input", 11);
            i0.ɵɵtemplate(21, MemberGroupComponent_div_21_Template, 3, 2, "div", 12);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(22, "div", 9);
            i0.ɵɵelementStart(23, "label", 13);
            i0.ɵɵtext(24);
            i0.ɵɵpipe(25, "titlecase");
            i0.ɵɵpipe(26, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(27, "textarea", 14);
            i0.ɵɵtemplate(28, MemberGroupComponent_div_28_Template, 2, 1, "div", 12);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(29, "div", 8);
            i0.ɵɵelementStart(30, "div", 9);
            i0.ɵɵelementStart(31, "label", 15);
            i0.ɵɵtext(32);
            i0.ɵɵpipe(33, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(34, "div", 16);
            i0.ɵɵelementStart(35, "span");
            i0.ɵɵtext(36);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(37, "div", 9);
            i0.ɵɵelementStart(38, "label", 15);
            i0.ɵɵtext(39);
            i0.ɵɵpipe(40, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(41, "div", 17);
            i0.ɵɵelementStart(42, "span", 18);
            i0.ɵɵtext(43);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(44, "div", 19);
            i0.ɵɵelementStart(45, "button", 20);
            i0.ɵɵlistener("click", function MemberGroupComponent_Template_button_click_45_listener() { return ctx.goBack(); });
            i0.ɵɵpipe(46, "titlecase");
            i0.ɵɵpipe(47, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(48, MemberGroupComponent_button_48_Template, 4, 6, "button", 21);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(49, "div", 22);
            i0.ɵɵelementStart(50, "div", 3);
            i0.ɵɵelementStart(51, "div", 4);
            i0.ɵɵelementStart(52, "label", 5);
            i0.ɵɵtext(53);
            i0.ɵɵpipe(54, "uppercase");
            i0.ɵɵpipe(55, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(56, "p-toolbar", 23);
            i0.ɵɵtemplate(57, MemberGroupComponent_ng_template_57_Template, 4, 4, "ng-template", 24);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(58, "p-table", 25, 26);
            i0.ɵɵlistener("onLazyLoad", function MemberGroupComponent_Template_p_table_onLazyLoad_58_listener($event) { return ctx.loadUserInGroups($event); })("firstChange", function MemberGroupComponent_Template_p_table_firstChange_58_listener($event) { return ctx.first = $event; });
            i0.ɵɵtemplate(60, MemberGroupComponent_ng_template_60_Template, 5, 4, "ng-template", 27);
            i0.ɵɵtemplate(61, MemberGroupComponent_ng_template_61_Template, 20, 15, "ng-template", 28);
            i0.ɵɵtemplate(62, MemberGroupComponent_ng_template_62_Template, 15, 12, "ng-template", 29);
            i0.ɵɵtemplate(63, MemberGroupComponent_ng_template_63_Template, 7, 8, "ng-template", 30);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelement(64, "p-confirmDialog", 31);
            i0.ɵɵelementStart(65, "p-dialog", 32);
            i0.ɵɵlistener("visibleChange", function MemberGroupComponent_Template_p_dialog_visibleChange_65_listener($event) { return ctx.displayModalGroup = $event; });
            i0.ɵɵtemplate(66, MemberGroupComponent_ng_template_66_Template, 2, 2, "ng-template", 28);
            i0.ɵɵelementStart(67, "p-table", 33);
            i0.ɵɵlistener("onLazyLoad", function MemberGroupComponent_Template_p_table_onLazyLoad_67_listener($event) { return ctx.loadGroupsModalEvent($event); })("firstChange", function MemberGroupComponent_Template_p_table_firstChange_67_listener($event) { return ctx.first = $event; })("selectionChange", function MemberGroupComponent_Template_p_table_selectionChange_67_listener($event) { return ctx.selectedInModal = $event; });
            i0.ɵɵtemplate(68, MemberGroupComponent_ng_template_68_Template, 5, 4, "ng-template", 27);
            i0.ɵɵtemplate(69, MemberGroupComponent_ng_template_69_Template, 11, 7, "ng-template", 28);
            i0.ɵɵtemplate(70, MemberGroupComponent_ng_template_70_Template, 8, 4, "ng-template", 29);
            i0.ɵɵtemplate(71, MemberGroupComponent_ng_template_71_Template, 4, 3, "ng-template", 30);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(72, MemberGroupComponent_ng_template_72_Template, 5, 7, "ng-template", 34);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(73, "p-dialog", 35);
            i0.ɵɵlistener("visibleChange", function MemberGroupComponent_Template_p_dialog_visibleChange_73_listener($event) { return ctx.displayModalAdd = $event; });
            i0.ɵɵpipe(74, "translate");
            i0.ɵɵelementStart(75, "p-table", 36);
            i0.ɵɵlistener("onLazyLoad", function MemberGroupComponent_Template_p_table_onLazyLoad_75_listener($event) { return ctx.loadAddModalEvent($event); })("firstChange", function MemberGroupComponent_Template_p_table_firstChange_75_listener($event) { return ctx.first = $event; });
            i0.ɵɵtemplate(76, MemberGroupComponent_ng_template_76_Template, 5, 4, "ng-template", 27);
            i0.ɵɵtemplate(77, MemberGroupComponent_ng_template_77_Template, 19, 13, "ng-template", 28);
            i0.ɵɵtemplate(78, MemberGroupComponent_ng_template_78_Template, 14, 12, "ng-template", 29);
            i0.ɵɵtemplate(79, MemberGroupComponent_ng_template_79_Template, 7, 6, "ng-template", 30);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(80, MemberGroupComponent_ng_template_80_Template, 6, 11, "ng-template", 34);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(81, "p-confirmDialog", 37);
            i0.ɵɵelementStart(82, "p-footer");
            i0.ɵɵelementStart(83, "div", 38);
            i0.ɵɵelementStart(84, "button", 39);
            i0.ɵɵlistener("click", function MemberGroupComponent_Template_button_click_84_listener() { return ctx.doConfirmOverride("ignore"); });
            i0.ɵɵpipe(85, "uppercase");
            i0.ɵɵpipe(86, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(87, "button", 40);
            i0.ɵɵlistener("click", function MemberGroupComponent_Template_button_click_87_listener() { return ctx.doConfirmOverride("override"); });
            i0.ɵɵpipe(88, "uppercase");
            i0.ɵɵpipe(89, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 66, i0.ɵɵpipeBind1(4, 68, "header.member_group.detail")), " ");
            i0.ɵɵadvance(7);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 70, i0.ɵɵpipeBind1(11, 72, "header.member_group.edit")), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("formGroup", ctx.memberGroupFrm);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 74, i0.ɵɵpipeBind1(19, 76, "label.common.name")), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngClass", (ctx.memberGroupFrm.controls["groupName"].touched || ctx.memberGroupFrm.controls["groupName"].dirty) && ctx.memberGroupFrm.controls["groupName"].invalid ? "p-invalid" : "");
            i0.ɵɵattribute("disabled", ctx.authUser.role_id !== ctx.systemRole.TeamAdmin && ctx.authUser.role_id !== ctx.systemRole.Manager ? true : null);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.memberGroupFrm.controls["groupName"].touched || ctx.memberGroupFrm.controls["groupName"].dirty);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 78, i0.ɵɵpipeBind1(26, 80, "label.common.description")), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngClass", (ctx.memberGroupFrm.controls["description"].touched || ctx.memberGroupFrm.controls["description"].dirty) && ctx.memberGroupFrm.controls["description"].invalid ? "p-invalid" : "");
            i0.ɵɵattribute("disabled", ctx.authUser.role_id !== ctx.systemRole.TeamAdmin && ctx.authUser.role_id !== ctx.systemRole.Manager ? true : null);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.memberGroupFrm.controls["description"].touched || ctx.memberGroupFrm.controls["description"].dirty);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(33, 82, "label.common.create_date"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1("", ctx.utils.formatDateBasedOnDiff(ctx.datePipe, ctx.groupDetailData["create_date"]), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 84, "label.common.number_member"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", ctx.groupDetailData["number_user"], " ");
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(46, 86, i0.ɵɵpipeBind1(47, 88, "button.back")));
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.authUser.role_id === ctx.systemRole.TeamAdmin || ctx.authUser.role_id === ctx.systemRole.Manager);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(54, 90, i0.ɵɵpipeBind1(55, 92, "header.member.list")), " ");
            i0.ɵɵadvance(5);
            i0.ɵɵpropertyInterpolate("sortField", ctx.params.sort_field);
            i0.ɵɵproperty("rowHover", true)("paginator", ctx.totalRecordsInGroup > 0)("lazy", true)("totalRecords", ctx.totalRecordsInGroup)("value", ctx.usersInGroup)("first", ctx.first)("rows", ctx.params.page_size)("rowsPerPageOptions", ctx.rowOptions)("sortOrder", ctx.params.asc_sort ? 1 : -1);
            i0.ɵɵadvance(6);
            i0.ɵɵproperty("baseZIndex", 10000);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("visible", ctx.displayModalGroup)("modal", true)("maximizable", true)("draggable", false)("resizable", false)("baseZIndex", 10000);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("sortField", ctx.paramsGroupModal.sort_field);
            i0.ɵɵproperty("rowHover", true)("paginator", ctx.totalRecords > 0)("lazy", true)("totalRecords", ctx.totalRecords)("sortOrder", ctx.paramsGroupModal.asc_sort ? 1 : -1)("value", ctx.groups)("first", ctx.first)("rows", ctx.paramsGroupModal.page_size)("selection", ctx.selectedInModal);
            i0.ɵɵadvance(6);
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(74, 94, "label.member_group.add_to_group"));
            i0.ɵɵproperty("visible", ctx.displayModalAdd)("modal", true)("maximizable", true)("draggable", false)("resizable", false)("baseZIndex", 10000);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("sortField", ctx.paramsAddModal.sort_field);
            i0.ɵɵproperty("rowHover", true)("paginator", ctx.totalRecordsAdd > 0)("lazy", true)("totalRecords", ctx.totalRecordsAdd)("sortOrder", ctx.paramsAddModal.asc_sort ? 1 : -1)("value", ctx.users)("first", ctx.first)("rows", ctx.paramsAddModal.page_size);
            i0.ɵɵadvance(6);
            i0.ɵɵproperty("baseZIndex", 10001);
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(85, 96, i0.ɵɵpipeBind1(86, 98, "button.confirm_handle_user.ignore")));
            i0.ɵɵproperty("disabled", ctx.submittingAction);
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(88, 100, i0.ɵɵpipeBind1(89, 102, "button.confirm_handle_user.override")));
            i0.ɵɵproperty("disabled", ctx.submittingAction);
        } }, directives: [i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.DefaultValueAccessor, i1.RequiredValidator, i1.MaxLengthValidator, i1.NgControlStatus, i1.FormControlName, i9.InputText, i7.NgClass, i7.NgIf, i10.InputTextarea, i11.ButtonDirective, i12.Ripple, i13.Toolbar, i8.PrimeTemplate, i14.Table, i15.ConfirmDialog, i16.Dialog, i8.Footer, i1.NgModel, i14.SortableColumn, i14.SortIcon, i17.Checkbox, i18.Tooltip, i7.NgSwitch, i7.NgSwitchCase, i14.TableRadioButton], pipes: [i7.UpperCasePipe, i19.TranslatePipe, i7.TitleCasePipe], styles: [".mt-6[_ngcontent-%COMP%] {\n  margin-top: 6px !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vbWVtYmVyL21lbWJlci1ncm91cC9tZW1iZXItZ3JvdXAuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3RlYW0tYWRtaW4vbWVtYmVyL21lbWJlci1ncm91cC9tZW1iZXItZ3JvdXAuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSwwQkFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvdGVhbS1hZG1pbi9tZW1iZXIvbWVtYmVyLWdyb3VwL21lbWJlci1ncm91cC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5tdC02IHtcbiAgbWFyZ2luLXRvcDogNnB4ICFpbXBvcnRhbnQ7XG59XG4iLCIubXQtNiB7XG4gIG1hcmdpbi10b3A6IDZweCAhaW1wb3J0YW50O1xufSJdfQ== */"] });
    return MemberGroupComponent;
}());
exports.MemberGroupComponent = MemberGroupComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MemberGroupComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-member-group',
                templateUrl: './member-group.component.html',
                styleUrls: ['./member-group.component.scss'],
                providers: [api_1.ConfirmationService, common_1.DatePipe]
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.AuthenticateService }, { type: i3.TeamService }, { type: i4.UserGroupService }, { type: i5.UtilsService }, { type: i6.Router }, { type: i7.DatePipe }, { type: i8.ConfirmationService }, { type: i8.MessageService }, { type: i6.ActivatedRoute }, { type: i7.Location }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/member/member-list/member-list.component.ts":
/*!************************************************************************!*\
  !*** ./src/app/team-admin/member/member-list/member-list.component.ts ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MemberListComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var api_1 = __webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var FileSaver = tslib_1.__importStar(__webpack_require__(/*! file-saver */ "./node_modules/file-saver/dist/FileSaver.min.js"));
var environment_1 = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var operators_1 = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var validator_module_1 = __webpack_require__(/*! ../../../common/validator.module */ "./src/app/common/validator.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/member.service */ "./src/app/shared/services/member.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/user-group.service */ "./src/app/shared/services/user-group.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/tabview */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tabview.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/toolbar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-toolbar.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! primeng/table */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.js"));
var i15 = tslib_1.__importStar(__webpack_require__(/*! primeng/confirmdialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-confirmdialog.js"));
var i16 = tslib_1.__importStar(__webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js"));
var i17 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i18 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i19 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i20 = tslib_1.__importStar(__webpack_require__(/*! primeng/dropdown */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js"));
var i21 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var i22 = tslib_1.__importStar(__webpack_require__(/*! primeng/tooltip */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js"));
var i23 = tslib_1.__importStar(__webpack_require__(/*! @ng-select/ng-select */ "./node_modules/@ng-select/ng-select/__ivy_ngcc__/fesm2015/ng-select-ng-select.js"));
var i24 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtextarea */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtextarea.js"));
var i25 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function MemberListComponent_ng_template_9_button_0_Template(rf, ctx) { if (rf & 1) {
    var _r16 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 25);
    i0.ɵɵlistener("click", function MemberListComponent_ng_template_9_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); var ctx_r15 = i0.ɵɵnextContext(2); return ctx_r15.goToCreateUser(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, i0.ɵɵpipeBind1(2, 3, "button.add")));
} }
function MemberListComponent_ng_template_9_button_1_Template(rf, ctx) { if (rf & 1) {
    var _r18 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 26);
    i0.ɵɵlistener("click", function MemberListComponent_ng_template_9_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); var ctx_r17 = i0.ɵɵnextContext(2); return ctx_r17.downloadCSV(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, i0.ɵɵpipeBind1(2, 3, "button.download_csv_user_list")));
} }
function MemberListComponent_ng_template_9_button_2_Template(rf, ctx) { if (rf & 1) {
    var _r20 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 27);
    i0.ɵɵlistener("click", function MemberListComponent_ng_template_9_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r20); var ctx_r19 = i0.ɵɵnextContext(2); return ctx_r19.deleteSelectedUsers(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r14 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 2, i0.ɵɵpipeBind1(2, 4, "button.delete")));
    i0.ɵɵproperty("disabled", !ctx_r14.selectedUsers || ctx_r14.selectedUsers.length === 0);
} }
function MemberListComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, MemberListComponent_ng_template_9_button_0_Template, 3, 5, "button", 22);
    i0.ɵɵtemplate(1, MemberListComponent_ng_template_9_button_1_Template, 3, 5, "button", 23);
    i0.ɵɵtemplate(2, MemberListComponent_ng_template_9_button_2_Template, 3, 6, "button", 24);
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngIf", ctx_r0.authUser.role_id === ctx_r0.systemRole.TeamAdmin || ctx_r0.authUser.role_id === ctx_r0.systemRole.Manager);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.authUser.role_id === ctx_r0.systemRole.TeamAdmin);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.authUser.role_id === ctx_r0.systemRole.TeamAdmin || ctx_r0.authUser.role_id === ctx_r0.systemRole.Manager);
} }
function MemberListComponent_ng_template_12_p_dropdown_1_Template(rf, ctx) { if (rf & 1) {
    var _r23 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "p-dropdown", 33);
    i0.ɵɵlistener("onChange", function MemberListComponent_ng_template_12_p_dropdown_1_Template_p_dropdown_onChange_0_listener() { i0.ɵɵrestoreView(_r23); var ctx_r22 = i0.ɵɵnextContext(2); return ctx_r22.searchMemberByType(); })("ngModelChange", function MemberListComponent_ng_template_12_p_dropdown_1_Template_p_dropdown_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r23); var ctx_r24 = i0.ɵɵnextContext(2); return ctx_r24.selectType = $event; });
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r21 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("options", ctx_r21.searchType)("ngModel", ctx_r21.selectType);
} }
function MemberListComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
    var _r26 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 28);
    i0.ɵɵtemplate(1, MemberListComponent_ng_template_12_p_dropdown_1_Template, 1, 2, "p-dropdown", 29);
    i0.ɵɵelementStart(2, "span", 30);
    i0.ɵɵelement(3, "i", 31);
    i0.ɵɵelementStart(4, "input", 32);
    i0.ɵɵlistener("keyup", function MemberListComponent_ng_template_12_Template_input_keyup_4_listener($event) { i0.ɵɵrestoreView(_r26); var ctx_r25 = i0.ɵɵnextContext(); return ctx_r25.searchMember($event); })("ngModelChange", function MemberListComponent_ng_template_12_Template_input_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r26); var ctx_r27 = i0.ɵɵnextContext(); return ctx_r27.searchKey = $event; });
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.authUser.role_id === ctx_r2.systemRole.TeamAdmin);
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(5, 3, "label.search_placeholder"));
    i0.ɵɵproperty("ngModel", ctx_r2.searchKey);
} }
function MemberListComponent_ng_template_13_th_1_Template(rf, ctx) { if (rf & 1) {
    var _r33 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "th", 45);
    i0.ɵɵelementStart(1, "p-checkbox", 46);
    i0.ɵɵlistener("ngModelChange", function MemberListComponent_ng_template_13_th_1_Template_p_checkbox_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r33); var ctx_r32 = i0.ɵɵnextContext(2); return ctx_r32.isSelectAll = $event; })("click", function MemberListComponent_ng_template_13_th_1_Template_p_checkbox_click_1_listener() { i0.ɵɵrestoreView(_r33); var ctx_r34 = i0.ɵɵnextContext(2); return ctx_r34.toggleSelectAll(); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r28 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngModel", ctx_r28.isSelectAll);
} }
function MemberListComponent_ng_template_13_th_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th", 47);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelement(3, "p-sortIcon", 48);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "table_header.common.first_name"), " ");
} }
function MemberListComponent_ng_template_13_th_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "th", 47);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelement(3, "p-sortIcon", 48);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "table_header.common.first_name"), " ");
} }
function MemberListComponent_ng_template_13_th_20_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "th", 49);
} }
function MemberListComponent_ng_template_13_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, MemberListComponent_ng_template_13_th_1_Template, 2, 1, "th", 34);
    i0.ɵɵtemplate(2, MemberListComponent_ng_template_13_th_2_Template, 4, 3, "th", 35);
    i0.ɵɵelementStart(3, "th", 36);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelement(6, "p-sortIcon", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(7, MemberListComponent_ng_template_13_th_7_Template, 4, 3, "th", 35);
    i0.ɵɵelementStart(8, "th", 38);
    i0.ɵɵtext(9);
    i0.ɵɵpipe(10, "translate");
    i0.ɵɵelement(11, "p-sortIcon", 39);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(12, "th", 40);
    i0.ɵɵtext(13);
    i0.ɵɵpipe(14, "translate");
    i0.ɵɵelement(15, "p-sortIcon", 41);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "th", 42);
    i0.ɵɵtext(17);
    i0.ɵɵpipe(18, "translate");
    i0.ɵɵelement(19, "p-sortIcon", 43);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(20, MemberListComponent_ng_template_13_th_20_Template, 1, 0, "th", 44);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r3.users && ctx_r3.users.length > 0 && (ctx_r3.authUser.role_id === ctx_r3.systemRole.TeamAdmin || ctx_r3.authUser.role_id === ctx_r3.systemRole.Manager));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r3.authUser.lang !== "ja");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 8, "table_header.common.last_name"), " ");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r3.authUser.lang === "ja");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 10, "table_header.common.mail_address"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(14, 12, "table_header.common.create_date"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 14, "table_header.member.role"), " ");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r3.users && ctx_r3.users.length > 1 && ctx_r3.authUser.role_id === ctx_r3.systemRole.TeamAdmin);
} }
function MemberListComponent_ng_template_14_td_1_p_checkbox_1_Template(rf, ctx) { if (rf & 1) {
    var _r47 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "p-checkbox", 61);
    i0.ɵɵlistener("click", function MemberListComponent_ng_template_14_td_1_p_checkbox_1_Template_p_checkbox_click_0_listener() { i0.ɵɵrestoreView(_r47); var user_r35 = i0.ɵɵnextContext(2).$implicit; var ctx_r45 = i0.ɵɵnextContext(); return ctx_r45.toggleSelected(user_r35); })("ngModelChange", function MemberListComponent_ng_template_14_td_1_p_checkbox_1_Template_p_checkbox_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r47); var user_r35 = i0.ɵɵnextContext(2).$implicit; return user_r35._selected = $event; });
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var user_r35 = i0.ɵɵnextContext(2).$implicit;
    i0.ɵɵproperty("ngModel", user_r35._selected);
} }
function MemberListComponent_ng_template_14_td_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "td");
    i0.ɵɵtemplate(1, MemberListComponent_ng_template_14_td_1_p_checkbox_1_Template, 1, 1, "p-checkbox", 60);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var user_r35 = i0.ɵɵnextContext().$implicit;
    var ctx_r36 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r36.authUser.role_id < user_r35.role_id);
} }
function MemberListComponent_ng_template_14_td_2_Template(rf, ctx) { if (rf & 1) {
    var _r54 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "td", 62);
    i0.ɵɵlistener("click", function MemberListComponent_ng_template_14_td_2_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r54); var user_r35 = i0.ɵɵnextContext().$implicit; var ctx_r52 = i0.ɵɵnextContext(); return ctx_r52.goToDetail(user_r35.user_id); })("dblclick", function MemberListComponent_ng_template_14_td_2_Template_td_dblclick_0_listener() { i0.ɵɵrestoreView(_r54); var user_r35 = i0.ɵɵnextContext().$implicit; var ctx_r55 = i0.ɵɵnextContext(); return ctx_r55.goToDetail(user_r35.user_id); });
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var user_r35 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", user_r35.first_name, " ");
} }
function MemberListComponent_ng_template_14_td_5_Template(rf, ctx) { if (rf & 1) {
    var _r60 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "td", 62);
    i0.ɵɵlistener("click", function MemberListComponent_ng_template_14_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r60); var user_r35 = i0.ɵɵnextContext().$implicit; var ctx_r58 = i0.ɵɵnextContext(); return ctx_r58.goToDetail(user_r35.user_id); })("dblclick", function MemberListComponent_ng_template_14_td_5_Template_td_dblclick_0_listener() { i0.ɵɵrestoreView(_r60); var user_r35 = i0.ɵɵnextContext().$implicit; var ctx_r61 = i0.ɵɵnextContext(); return ctx_r61.goToDetail(user_r35.user_id); });
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var user_r35 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", user_r35.first_name, " ");
} }
function MemberListComponent_ng_template_14_span_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 63);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.admin"), " ");
} }
function MemberListComponent_ng_template_14_span_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 64);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.manager"), " ");
} }
function MemberListComponent_ng_template_14_span_13_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 65);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.user"), " ");
} }
function MemberListComponent_ng_template_14_span_14_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 66);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.guest"), " ");
} }
function MemberListComponent_ng_template_14_td_15_button_1_Template(rf, ctx) { if (rf & 1) {
    var _r67 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 69);
    i0.ɵɵlistener("click", function MemberListComponent_ng_template_14_td_15_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r67); var user_r35 = i0.ɵɵnextContext(2).$implicit; var ctx_r65 = i0.ɵɵnextContext(); return ctx_r65.confirmLoginAsUser(user_r35); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("pTooltip", i0.ɵɵpipeBind1(1, 1, "tooltip.login_as_user"));
} }
function MemberListComponent_ng_template_14_td_15_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "td", 67);
    i0.ɵɵtemplate(1, MemberListComponent_ng_template_14_td_15_button_1_Template, 2, 3, "button", 68);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var user_r35 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", user_r35.role_id !== 1);
} }
function MemberListComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
    var _r70 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, MemberListComponent_ng_template_14_td_1_Template, 2, 1, "td", 21);
    i0.ɵɵtemplate(2, MemberListComponent_ng_template_14_td_2_Template, 2, 1, "td", 50);
    i0.ɵɵelementStart(3, "td", 51);
    i0.ɵɵlistener("dblclick", function MemberListComponent_ng_template_14_Template_td_dblclick_3_listener() { i0.ɵɵrestoreView(_r70); var user_r35 = ctx.$implicit; var ctx_r69 = i0.ɵɵnextContext(); return ctx_r69.goToDetail(user_r35.user_id); });
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(5, MemberListComponent_ng_template_14_td_5_Template, 2, 1, "td", 50);
    i0.ɵɵelementStart(6, "td", 52);
    i0.ɵɵlistener("dblclick", function MemberListComponent_ng_template_14_Template_td_dblclick_6_listener() { i0.ɵɵrestoreView(_r70); var user_r35 = ctx.$implicit; var ctx_r71 = i0.ɵɵnextContext(); return ctx_r71.goToDetail(user_r35.user_id); });
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "td", 53);
    i0.ɵɵlistener("dblclick", function MemberListComponent_ng_template_14_Template_td_dblclick_8_listener() { i0.ɵɵrestoreView(_r70); var user_r35 = ctx.$implicit; var ctx_r72 = i0.ɵɵnextContext(); return ctx_r72.goToDetail(user_r35.user_id); });
    i0.ɵɵtext(9);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(10, "td", 54);
    i0.ɵɵtemplate(11, MemberListComponent_ng_template_14_span_11_Template, 3, 3, "span", 55);
    i0.ɵɵtemplate(12, MemberListComponent_ng_template_14_span_12_Template, 3, 3, "span", 56);
    i0.ɵɵtemplate(13, MemberListComponent_ng_template_14_span_13_Template, 3, 3, "span", 57);
    i0.ɵɵtemplate(14, MemberListComponent_ng_template_14_span_14_Template, 3, 3, "span", 58);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(15, MemberListComponent_ng_template_14_td_15_Template, 2, 1, "td", 59);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var user_r35 = ctx.$implicit;
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.authUser.role_id === ctx_r4.systemRole.TeamAdmin || ctx_r4.authUser.role_id === ctx_r4.systemRole.Manager);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.authUser.lang !== "ja");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", user_r35.last_name, " ");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.authUser.lang === "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", user_r35.mail_address);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", user_r35.mail_address, " ");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", ctx_r4.utils.formatDateBasedOnDiff(ctx_r4.datePipe, user_r35.signup_date), " ");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitch", user_r35.role_id);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.users && ctx_r4.users.length > 1 && ctx_r4.authUser.role_id === ctx_r4.systemRole.TeamAdmin);
} }
function MemberListComponent_ng_template_15_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 70);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "td", 71);
    i0.ɵɵtext(5);
    i0.ɵɵpipe(6, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("colSpan", ctx_r5.authUser.role_id === ctx_r5.systemRole.TeamAdmin ? 5 : 4);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 4, "label.no_record"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("colSpan", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, "label.no_record"), " ");
} }
function MemberListComponent_p_tabPanel_16_ng_template_7_button_0_Template(rf, ctx) { if (rf & 1) {
    var _r82 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 25);
    i0.ɵɵlistener("click", function MemberListComponent_p_tabPanel_16_ng_template_7_button_0_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r82); var ctx_r81 = i0.ɵɵnextContext(3); return ctx_r81.confirmCreateGroup(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, i0.ɵɵpipeBind1(2, 3, "button.add")));
} }
function MemberListComponent_p_tabPanel_16_ng_template_7_button_1_Template(rf, ctx) { if (rf & 1) {
    var _r84 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 27);
    i0.ɵɵlistener("click", function MemberListComponent_p_tabPanel_16_ng_template_7_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r84); var ctx_r83 = i0.ɵɵnextContext(3); return ctx_r83.deleteSelectedGroups(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r80 = i0.ɵɵnextContext(3);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 2, i0.ɵɵpipeBind1(2, 4, "button.delete")));
    i0.ɵɵproperty("disabled", !ctx_r80.selectedGroups || ctx_r80.selectedGroups.length === 0);
} }
function MemberListComponent_p_tabPanel_16_ng_template_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, MemberListComponent_p_tabPanel_16_ng_template_7_button_0_Template, 3, 5, "button", 22);
    i0.ɵɵtemplate(1, MemberListComponent_p_tabPanel_16_ng_template_7_button_1_Template, 3, 6, "button", 24);
} if (rf & 2) {
    var ctx_r73 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngIf", ctx_r73.authUser.role_id === ctx_r73.systemRole.TeamAdmin || ctx_r73.authUser.role_id === ctx_r73.systemRole.Manager);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r73.authUser.role_id === ctx_r73.systemRole.TeamAdmin || ctx_r73.authUser.role_id === ctx_r73.systemRole.Manager);
} }
function MemberListComponent_p_tabPanel_16_ng_template_10_Template(rf, ctx) { if (rf & 1) {
    var _r86 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 28);
    i0.ɵɵelementStart(1, "span", 30);
    i0.ɵɵelement(2, "i", 31);
    i0.ɵɵelementStart(3, "input", 73);
    i0.ɵɵlistener("keyup", function MemberListComponent_p_tabPanel_16_ng_template_10_Template_input_keyup_3_listener($event) { i0.ɵɵrestoreView(_r86); var ctx_r85 = i0.ɵɵnextContext(2); return ctx_r85.searchGroup($event); })("ngModelChange", function MemberListComponent_p_tabPanel_16_ng_template_10_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r86); var ctx_r87 = i0.ɵɵnextContext(2); return ctx_r87.groupSearchKey = $event; });
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r75 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(4, 2, "label.search_placeholder"));
    i0.ɵɵproperty("ngModel", ctx_r75.groupSearchKey);
} }
function MemberListComponent_p_tabPanel_16_ng_template_11_th_1_Template(rf, ctx) { if (rf & 1) {
    var _r90 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "th", 45);
    i0.ɵɵelementStart(1, "p-checkbox", 46);
    i0.ɵɵlistener("ngModelChange", function MemberListComponent_p_tabPanel_16_ng_template_11_th_1_Template_p_checkbox_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r90); var ctx_r89 = i0.ɵɵnextContext(3); return ctx_r89.isSelectedGroupAll = $event; })("click", function MemberListComponent_p_tabPanel_16_ng_template_11_th_1_Template_p_checkbox_click_1_listener() { i0.ɵɵrestoreView(_r90); var ctx_r91 = i0.ɵɵnextContext(3); return ctx_r91.toggleSelectGroupAll(); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r88 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngModel", ctx_r88.isSelectedGroupAll);
} }
function MemberListComponent_p_tabPanel_16_ng_template_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, MemberListComponent_p_tabPanel_16_ng_template_11_th_1_Template, 2, 1, "th", 34);
    i0.ɵɵelementStart(2, "th", 74);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelement(5, "p-sortIcon", 75);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "th", 76);
    i0.ɵɵtext(7);
    i0.ɵɵpipe(8, "translate");
    i0.ɵɵelement(9, "p-sortIcon", 77);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(10, "th", 78);
    i0.ɵɵtext(11);
    i0.ɵɵpipe(12, "translate");
    i0.ɵɵelement(13, "p-sortIcon", 39);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(14, "th", 79);
    i0.ɵɵtext(15);
    i0.ɵɵpipe(16, "translate");
    i0.ɵɵelement(17, "p-sortIcon", 80);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r76 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r76.groups && ctx_r76.groups.length > 0 && (ctx_r76.authUser.role_id === ctx_r76.systemRole.TeamAdmin || ctx_r76.authUser.role_id === ctx_r76.systemRole.Manager));
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 5, "table_header.group_user.name"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 7, "table_header.common.create_date"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 9, "table_header.group_user.create_by"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 11, "table_header.group_user.numbers_user"), " ");
} }
function MemberListComponent_p_tabPanel_16_ng_template_12_td_1_Template(rf, ctx) { if (rf & 1) {
    var _r96 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "td");
    i0.ɵɵelementStart(1, "p-checkbox", 61);
    i0.ɵɵlistener("click", function MemberListComponent_p_tabPanel_16_ng_template_12_td_1_Template_p_checkbox_click_1_listener() { i0.ɵɵrestoreView(_r96); var group_r92 = i0.ɵɵnextContext().$implicit; var ctx_r94 = i0.ɵɵnextContext(2); return ctx_r94.toggleSelectedGroup(group_r92); })("ngModelChange", function MemberListComponent_p_tabPanel_16_ng_template_12_td_1_Template_p_checkbox_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r96); var group_r92 = i0.ɵɵnextContext().$implicit; return group_r92._selected = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var group_r92 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngModel", group_r92._selected);
} }
function MemberListComponent_p_tabPanel_16_ng_template_12_Template(rf, ctx) { if (rf & 1) {
    var _r101 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵtemplate(1, MemberListComponent_p_tabPanel_16_ng_template_12_td_1_Template, 2, 1, "td", 21);
    i0.ɵɵelementStart(2, "td", 81);
    i0.ɵɵlistener("click", function MemberListComponent_p_tabPanel_16_ng_template_12_Template_td_click_2_listener() { i0.ɵɵrestoreView(_r101); var group_r92 = ctx.$implicit; var ctx_r100 = i0.ɵɵnextContext(2); return ctx_r100.goToGroupDetail(group_r92.group_user_id); })("dblclick", function MemberListComponent_p_tabPanel_16_ng_template_12_Template_td_dblclick_2_listener() { i0.ɵɵrestoreView(_r101); var group_r92 = ctx.$implicit; var ctx_r102 = i0.ɵɵnextContext(2); return ctx_r102.goToGroupDetail(group_r92.group_user_id); });
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "td", 82);
    i0.ɵɵlistener("dblclick", function MemberListComponent_p_tabPanel_16_ng_template_12_Template_td_dblclick_4_listener() { i0.ɵɵrestoreView(_r101); var group_r92 = ctx.$implicit; var ctx_r103 = i0.ɵɵnextContext(2); return ctx_r103.goToGroupDetail(group_r92.group_user_id); });
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "td", 82);
    i0.ɵɵlistener("dblclick", function MemberListComponent_p_tabPanel_16_ng_template_12_Template_td_dblclick_6_listener() { i0.ɵɵrestoreView(_r101); var group_r92 = ctx.$implicit; var ctx_r104 = i0.ɵɵnextContext(2); return ctx_r104.goToGroupDetail(group_r92.group_user_id); });
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "td", 83);
    i0.ɵɵlistener("dblclick", function MemberListComponent_p_tabPanel_16_ng_template_12_Template_td_dblclick_8_listener() { i0.ɵɵrestoreView(_r101); var group_r92 = ctx.$implicit; var ctx_r105 = i0.ɵɵnextContext(2); return ctx_r105.goToGroupDetail(group_r92.group_user_id); });
    i0.ɵɵtext(9);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var group_r92 = ctx.$implicit;
    var ctx_r77 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r77.authUser.role_id === ctx_r77.systemRole.TeamAdmin || ctx_r77.authUser.role_id === ctx_r77.systemRole.Manager);
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", group_r92.name);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", group_r92.name, " ");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", ctx_r77.utils.formatDateBasedOnDiff(ctx_r77.datePipe, group_r92.create_date), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", group_r92.mail_address, " ");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", group_r92.number_user, " ");
} }
function MemberListComponent_p_tabPanel_16_ng_template_13_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 84);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "td", 85);
    i0.ɵɵtext(5);
    i0.ɵɵpipe(6, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r78 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("colSpan", 4);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 4, "label.no_record"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("colSpan", ctx_r78.authUser.role_id === ctx_r78.systemRole.TeamAdmin || ctx_r78.authUser.role_id === ctx_r78.systemRole.Manager ? 2 : 1);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, "label.no_record"), " ");
} }
function MemberListComponent_p_tabPanel_16_Template(rf, ctx) { if (rf & 1) {
    var _r107 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "p-tabPanel", 2);
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementStart(2, "h2", 3);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "uppercase");
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "p-toolbar", 4);
    i0.ɵɵtemplate(7, MemberListComponent_p_tabPanel_16_ng_template_7_Template, 2, 2, "ng-template", 5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "p-table", 6, 72);
    i0.ɵɵlistener("onLazyLoad", function MemberListComponent_p_tabPanel_16_Template_p_table_onLazyLoad_8_listener($event) { i0.ɵɵrestoreView(_r107); var ctx_r106 = i0.ɵɵnextContext(); return ctx_r106.loadUserGroups($event); })("firstChange", function MemberListComponent_p_tabPanel_16_Template_p_table_firstChange_8_listener($event) { i0.ɵɵrestoreView(_r107); var ctx_r108 = i0.ɵɵnextContext(); return ctx_r108.firstGroup = $event; });
    i0.ɵɵtemplate(10, MemberListComponent_p_tabPanel_16_ng_template_10_Template, 5, 4, "ng-template", 8);
    i0.ɵɵtemplate(11, MemberListComponent_p_tabPanel_16_ng_template_11_Template, 18, 13, "ng-template", 9);
    i0.ɵɵtemplate(12, MemberListComponent_p_tabPanel_16_ng_template_12_Template, 10, 6, "ng-template", 10);
    i0.ɵɵtemplate(13, MemberListComponent_p_tabPanel_16_ng_template_13_Template, 7, 8, "ng-template", 11);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 12, "navi.group_member"));
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 14, i0.ɵɵpipeBind1(5, 16, "header.member_group.list")), " ");
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate("sortField", ctx_r6.groupParams.sort_field);
    i0.ɵɵproperty("rowHover", true)("paginator", ctx_r6.totalGroupRecords > 0)("lazy", true)("totalRecords", ctx_r6.totalGroupRecords)("value", ctx_r6.groups)("first", ctx_r6.firstGroup)("rows", ctx_r6.groupParams.page_size)("rowsPerPageOptions", ctx_r6.rowOptions)("sortOrder", ctx_r6.groupParams.asc_sort ? 1 : -1);
} }
function MemberListComponent_button_21_Template(rf, ctx) { if (rf & 1) {
    var _r110 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 86);
    i0.ɵɵlistener("click", function MemberListComponent_button_21_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r110); var ctx_r109 = i0.ɵɵnextContext(); return ctx_r109.doLoginAsUser("SecureDrive"); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, "message.login_as_user.secure_drive"));
} }
function MemberListComponent_button_22_Template(rf, ctx) { if (rf & 1) {
    var _r112 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 87);
    i0.ɵɵlistener("click", function MemberListComponent_button_22_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r112); var ctx_r111 = i0.ɵɵnextContext(); return ctx_r111.doLoginAsUser("SecureMail"); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, "message.login_as_user.secure_mail"));
} }
function MemberListComponent_ng_template_26_div_8_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MemberListComponent_ng_template_26_div_8_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MemberListComponent_ng_template_26_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 101);
    i0.ɵɵtemplate(1, MemberListComponent_ng_template_26_div_8_small_1_Template, 3, 3, "small", 21);
    i0.ɵɵtemplate(2, MemberListComponent_ng_template_26_div_8_small_2_Template, 3, 3, "small", 21);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r113 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r113.createGroupFrm.controls["groupName"].errors == null ? null : ctx_r113.createGroupFrm.controls["groupName"].errors.required) || (ctx_r113.createGroupFrm.controls["groupName"].errors == null ? null : ctx_r113.createGroupFrm.controls["groupName"].errors.whitespace));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r113.createGroupFrm.controls["groupName"].errors == null ? null : ctx_r113.createGroupFrm.controls["groupName"].errors.pattern);
} }
function MemberListComponent_ng_template_26_ng_template_16_div_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r119 = i0.ɵɵnextContext().item;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", item_r119.lastName, " ", item_r119.firstName, " ");
} }
function MemberListComponent_ng_template_26_ng_template_16_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r119 = i0.ɵɵnextContext().item;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", item_r119.firstName, " ", item_r119.lastName, " ");
} }
function MemberListComponent_ng_template_26_ng_template_16_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, MemberListComponent_ng_template_26_ng_template_16_div_0_Template, 2, 2, "div", 21);
    i0.ɵɵtemplate(1, MemberListComponent_ng_template_26_ng_template_16_div_1_Template, 2, 2, "div", 21);
    i0.ɵɵelementStart(2, "div");
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r119 = ctx.item;
    var ctx_r114 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("ngIf", ctx_r114.authUser.lang === "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r114.authUser.lang !== "ja");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(item_r119.mail);
} }
function MemberListComponent_ng_template_26_ng_template_17_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "div", 102);
} }
function MemberListComponent_ng_template_26_div_24_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MemberListComponent_ng_template_26_div_24_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 101);
    i0.ɵɵtemplate(1, MemberListComponent_ng_template_26_div_24_small_1_Template, 3, 3, "small", 21);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r116 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r116.createGroupFrm.controls["description"].errors == null ? null : ctx_r116.createGroupFrm.controls["description"].errors.pattern);
} }
function MemberListComponent_ng_template_26_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "form", 88);
    i0.ɵɵelementStart(1, "div", 89);
    i0.ɵɵelementStart(2, "div", 90);
    i0.ɵɵelementStart(3, "div", 91);
    i0.ɵɵelementStart(4, "label", 92);
    i0.ɵɵtext(5);
    i0.ɵɵpipe(6, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(7, "input", 93);
    i0.ɵɵtemplate(8, MemberListComponent_ng_template_26_div_8_Template, 3, 2, "div", 94);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "div", 90);
    i0.ɵɵelementStart(10, "div", 91);
    i0.ɵɵelementStart(11, "label", 95);
    i0.ɵɵtext(12);
    i0.ɵɵpipe(13, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(14, "ng-select", 96);
    i0.ɵɵpipe(15, "async");
    i0.ɵɵtemplate(16, MemberListComponent_ng_template_26_ng_template_16_Template, 4, 3, "ng-template", 97);
    i0.ɵɵtemplate(17, MemberListComponent_ng_template_26_ng_template_17_Template, 1, 0, "ng-template", 98);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(18, "div", 90);
    i0.ɵɵelementStart(19, "div", 91);
    i0.ɵɵelementStart(20, "label", 99);
    i0.ɵɵtext(21);
    i0.ɵɵpipe(22, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(23, "textarea", 100);
    i0.ɵɵtemplate(24, MemberListComponent_ng_template_26_div_24_Template, 2, 1, "div", 94);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r9 = i0.ɵɵnextContext();
    i0.ɵɵproperty("formGroup", ctx_r9.createGroupFrm);
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 11, "label.common.name"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngClass", (ctx_r9.createGroupFrm.controls["groupName"].touched || ctx_r9.createGroupFrm.controls["groupName"].dirty) && ctx_r9.createGroupFrm.controls["groupName"].invalid ? "p-invalid" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r9.createGroupFrm.controls["groupName"].touched || ctx_r9.createGroupFrm.controls["groupName"].dirty);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 13, "label.common.members"));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("items", i0.ɵɵpipeBind1(15, 15, ctx_r9.memberList$))("hideSelected", true)("loading", ctx_r9.loading);
    i0.ɵɵadvance(7);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(22, 17, "label.common.description"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngClass", (ctx_r9.createGroupFrm.controls["description"].touched || ctx_r9.createGroupFrm.controls["description"].dirty) && ctx_r9.createGroupFrm.controls["description"].invalid ? "p-invalid" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r9.createGroupFrm.controls["description"].touched || ctx_r9.createGroupFrm.controls["description"].dirty);
} }
function MemberListComponent_span_33_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 103);
    i0.ɵɵelementEnd();
} }
function MemberListComponent_span_34_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 104);
    i0.ɵɵelementEnd();
} }
var MemberListComponent = /** @class */ (function () {
    function MemberListComponent(fb, memberService, userGroupService, router, broadcastService, utils, datePipe, http, cookieService, authenticateService, confirmationService, messageService) {
        var _this = this;
        this.fb = fb;
        this.memberService = memberService;
        this.userGroupService = userGroupService;
        this.router = router;
        this.broadcastService = broadcastService;
        this.utils = utils;
        this.datePipe = datePipe;
        this.http = http;
        this.cookieService = cookieService;
        this.authenticateService = authenticateService;
        this.confirmationService = confirmationService;
        this.messageService = messageService;
        this.systemRole = constant_module_1.SystemRole;
        this.activeIndex = 0;
        this.createGroupFrm = new forms_1.FormGroup({});
        this.searchKey = '';
        this.isSelectAll = false;
        this.isSelectedGroupAll = false;
        this.selectedUsers = [];
        this.selectedGroups = [];
        this.currentSelected = [];
        this.currentSelectedGroup = [];
        // dialog create member group
        this.displayCreateGroupModal = false;
        this.submittingCreateGroup = false;
        this.loading = true;
        this.first = 0;
        this.firstGroup = 0;
        this.params = {
            team_id: '',
            search_key: '',
            sort_field: 'createdDate',
            asc_sort: false,
            page_number: 1,
            page_size: 10,
            type: 0
        };
        this.groupParams = {
            team_id: '',
            search_key: '',
            sort_field: 'createDate',
            asc_sort: false,
            page_number: 1,
            page_size: 10
        };
        this.paramsDelete = {
            user_id: '',
            team_id: ''
        };
        this.broadcastService.subscribe('reset-tab', function () {
            _this.resetTab();
        });
    }
    MemberListComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.rowOptions = constant_module_1.Constant.rowsPerPageOptions;
        this.authUser = this.authenticateService.getAuthUser();
        this.isUseSDGlobal = this.authenticateService.isUseSDGlobal;
        this.params.team_id = this.authUser.team_id;
        this.paramsDelete.team_id = this.authUser.team_id;
        this.groupParams.team_id = this.authUser.team_id;
        this.utils.translateList([
            'label.search_type.user_info',
            'label.search_type.file_name',
        ], null).subscribe(function () {
            _this.searchType = [
                { code: 0, name: _this.utils.translate('label.search_type.user_info') },
                { code: 1, name: _this.utils.translate('label.search_type.file_name') },
            ];
        });
        this.activeIndex = localStorage.getItem(constant_module_1.Constant.storageOther.tab)
            ? parseInt(localStorage.getItem(constant_module_1.Constant.storageOther.tab)) : 0;
        this.selectType = this.searchType.find(function (type) { return type.code === 0; });
        var storageMemberPagingSettings = JSON.parse(localStorage.getItem(constant_module_1.Constant.sortPage.memberList));
        if (storageMemberPagingSettings) {
            this.params.page_size = storageMemberPagingSettings.page_size;
            this.params.sort_field = storageMemberPagingSettings.sort_field;
            this.params.asc_sort = storageMemberPagingSettings.asc_sort;
        }
        var storageMemberGroupPaging = JSON.parse(localStorage.getItem(constant_module_1.Constant.sortPage.memberGroupList));
        if (storageMemberGroupPaging) {
            this.groupParams.page_size = storageMemberGroupPaging.page_size;
            this.groupParams.sort_field = storageMemberGroupPaging.sort_field;
            this.groupParams.asc_sort = storageMemberGroupPaging.asc_sort;
        }
        this.createGroupFrm = this.fb.group({
            groupName: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN),
                    validator_module_1.noWhitespaceValidator
                ]
            ],
            selectedEmails: [[]],
            description: ['', [
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN)
                ]
            ]
        });
        this.memberList$ = this.getMembers();
    };
    // ----- related to tab (members, member groups)
    MemberListComponent.prototype.resetTab = function () {
        this.activeIndex = 0;
        localStorage.setItem(constant_module_1.Constant.storageOther.tab, String(0));
    };
    MemberListComponent.prototype.handleChange = function (event) {
        localStorage.setItem(constant_module_1.Constant.storageOther.tab, String(event.index));
    };
    // =================================================
    // ==============     MEMBERS      =================
    // =================================================
    MemberListComponent.prototype.loadUsers = function (event) {
        this.params.page_number = (event.first / event.rows) + 1;
        this.params.page_size = event.rows;
        this.params.asc_sort = (event.sortOrder === 1);
        if (event.sortField) {
            this.params.sort_field = event.sortField;
        }
        this.getUser();
    };
    MemberListComponent.prototype.getUser = function () {
        var _this = this;
        this.loading = true;
        this.isSelectAll = false;
        this.memberService.getUsersPaging(this.params).subscribe(function (response) {
            if (response.status === 200) {
                var storeParams = {
                    page_size: _this.params.page_size,
                    sort_field: _this.params.sort_field,
                    asc_sort: _this.params.asc_sort
                };
                localStorage.setItem(constant_module_1.Constant.sortPage.memberList, JSON.stringify(storeParams));
                _this.users = response.data.content;
                _this.totalRecords = response.data.total_elements;
                if (_this.selectedUsers.length > 0) {
                    var numberCheckAll_1 = 0;
                    var teamAdminIndex = _this.users.findIndex(function (user) { return user.role_id === constant_module_1.SystemRole.TeamAdmin; });
                    if (teamAdminIndex > -1 && _this.users.length > 1) {
                        numberCheckAll_1 = 1;
                    }
                    _this.users.forEach(function (result) {
                        _this.selectedUsers.forEach(function (selected) {
                            if (result.user_id === selected.user_id) {
                                result._selected = true;
                                numberCheckAll_1++;
                                if (numberCheckAll_1 === _this.users.length) {
                                    _this.isSelectAll = true;
                                }
                            }
                        });
                    });
                }
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + response.status)
                });
            }
            _this.loading = false;
        }, function (error) {
            _this.loading = false;
        });
    };
    MemberListComponent.prototype.goToCreateUser = function () {
        this.router.navigate(['/member/create']);
    };
    // ------------- delete user -----------
    MemberListComponent.prototype.deleteSelectedUsers = function () {
        var _this = this;
        this.confirmationService.confirm({
            message: this.utils.translate('message.delete_member.content'),
            header: this.utils.translate('message.delete_member.title'),
            icon: 'pi pi-exclamation-triangle',
            accept: function () {
                _this.doDeleteUser();
            }
        });
    };
    MemberListComponent.prototype.doDeleteUser = function () {
        var _this = this;
        var count = 0;
        var items = this.selectedUsers;
        if (items.length === 0) {
            return;
        }
        items.forEach(function (value, index) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
            var res;
            return tslib_1.__generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.paramsDelete.user_id = value.user_id;
                        return [4 /*yield*/, this.memberService.deleteUser(this.paramsDelete).toPromise()];
                    case 1:
                        res = _a.sent();
                        if (res.status === 200) {
                            count += 1;
                        }
                        else {
                            this.messageService.add({
                                key: 'toast',
                                severity: 'error',
                                detail: this.utils.translate('sever_errors.' + res.status)
                            });
                        }
                        if (items.length === index + 1 && count > 0) {
                            this.messageService.add({
                                key: 'toast',
                                severity: 'success',
                                detail: this.utils.translate('default_toast.delete_success')
                            });
                            this.selectedUsers = [];
                            this.getUser();
                        }
                        return [2 /*return*/];
                }
            });
        }); });
    };
    // ------------- login as user -----------
    MemberListComponent.prototype.confirmLoginAsUser = function (user) {
        this.loginAsUser = user;
        this.confirmationService.confirm({
            key: 'loginAsMember',
            message: this.utils.translate('message.login_as_user.msg'),
            header: this.utils.translate('message.login_as_user.title'),
            icon: 'pi pi-exclamation-triangle',
        });
    };
    MemberListComponent.prototype.doLoginAsUser = function (type) {
        var _this = this;
        var params = {
            user_id: this.loginAsUser.user_id,
            service_key_type: type,
        };
        this.memberService.loginAsUser(params).subscribe(function (res) {
            if (res.status === 200) {
                // tslint:disable-next-line:one-variable-per-declaration
                var linkUrl = void 0, redirectPath = void 0, loginURL = void 0;
                if (type === 'SecureDrive') { // 1: loginSecureDrive, 2: loginSecureMail
                    linkUrl = environment_1.environment.secure_drive_url;
                    redirectPath = window.btoa(environment_1.environment.secure_drive_url + 'project');
                    loginURL = 'login';
                }
                else {
                    linkUrl = environment_1.environment.secure_mail_url;
                    redirectPath = window.btoa(environment_1.environment.secure_mail_url + 'my-email/0');
                    loginURL = 'login';
                }
                linkUrl += loginURL + '?giraffe=' + window.btoa(res.data.session_id)
                    + '&redirectPath=' + redirectPath;
                window.open(linkUrl, '_blank');
            }
            else {
                if (res.status === 318) {
                    _this.messageService.add({
                        key: 'toast',
                        severity: 'error',
                        detail: _this.utils.translate('sever_errors.403')
                    });
                }
                else {
                    _this.messageService.add({
                        key: 'toast',
                        severity: 'error',
                        detail: _this.utils.translate('sever_errors.' + res.status)
                    });
                }
            }
            _this.confirmationService.close();
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.confirmationService.close();
        });
    };
    // ------------- export -----------
    MemberListComponent.prototype.downloadCSV = function () {
        var _this = this;
        this.downloading = true;
        var params = {
            team_id: this.authUser.team_id,
            auth_token: this.cookieService.get('a_t')
        };
        this.memberService.exportUser(params)
            .toPromise()
            .then(function (response) {
            _this.exportFile(response);
        });
    };
    MemberListComponent.prototype.exportFile = function (dt) {
        var BOM = '\uFEFF'; // Use this and utf8 to support hebrew
        var blob = new Blob([BOM + dt], {
            type: 'data:text/csv;charset=utf-8'
        });
        FileSaver.saveAs(blob, 'Users-' + new Date().getTime() + '.csv', true);
    };
    // ------------- go to detail -----------
    MemberListComponent.prototype.goToDetail = function (id) {
        this.router.navigate(['/member', id]);
    };
    // ------------- search -----------
    MemberListComponent.prototype.searchMember = function (event) {
        if (event.keyCode === 13) {
            if (this.selectType.code === 1 && (!this.searchKey || this.searchKey.trim() === '')) {
                this.params.type = 0;
            }
            else {
                this.params.type = this.selectType.code;
            }
            this.params.search_key = (this.searchKey) ? this.searchKey : '';
            this.first = 0;
            this.params.page_number = 1;
            this.getUser();
        }
    };
    MemberListComponent.prototype.searchMemberByType = function () {
        if (this.selectType.code === 1 && (!this.searchKey || this.searchKey.trim() === '')) {
            this.params.type = 0;
        }
        else {
            this.params.type = this.selectType.code;
        }
        this.first = 0;
        this.params.search_key = (this.searchKey) ? this.searchKey : '';
        this.params.page_number = 1;
        this.getUser();
    };
    // ---------------- checkbox custom ----------------
    MemberListComponent.prototype.toggleSelectAll = function () {
        var _this = this;
        if (this.isSelectAll) {
            if (this.selectedUsers.length === 0) {
                this.users.forEach(function (selected) {
                    if (selected.role_id !== constant_module_1.SystemRole.TeamAdmin && selected.role_id !== constant_module_1.SystemRole.Manager) {
                        selected._selected = true;
                        _this.selectedUsers.push(selected);
                    }
                });
            }
            else {
                var filterUsers = this.users.filter(function (user) { return user.role_id !== constant_module_1.SystemRole.TeamAdmin && user.role_id !== constant_module_1.SystemRole.Manager; });
                this.selectedUsers = this.selectedUsers.concat(filterUsers);
                for (var i = 0; i < this.selectedUsers.length; ++i) {
                    for (var j = i + 1; j < this.selectedUsers.length; ++j) {
                        if (this.selectedUsers[i].user_id === this.selectedUsers[j].user_id) {
                            this.selectedUsers.splice(j--, 1);
                        }
                    }
                }
            }
        }
        else {
            this.users.forEach(function (item) {
                _this.selectedUsers.forEach(function (selected) {
                    if (item.user_id === selected.user_id) {
                        _this.currentSelected.push(selected);
                    }
                });
            });
            this.removeSelected(this.currentSelected);
        }
        this.users.forEach(function (item) {
            item._selected = _this.isSelectAll;
        });
    };
    MemberListComponent.prototype.toggleSelected = function (obj) {
        var _this = this;
        if (obj && obj.user_id) {
            var index = this.selectedUsers.findIndex(function (user) { return user.user_id === obj.user_id; });
            if (index > -1) {
                this.selectedUsers.splice(index, 1);
                obj._selected = false;
            }
            else {
                this.selectedUsers.push(obj);
                obj._selected = true;
            }
            this.isSelectAll = false;
            var numberCheckAll_2 = 0;
            var teamAdminIndex = this.users.findIndex(function (user) { return user.role_id === constant_module_1.SystemRole.TeamAdmin; });
            if (teamAdminIndex > -1) {
                numberCheckAll_2 = 1;
            }
            this.users.forEach(function (result) {
                _this.selectedUsers.forEach(function (selected) {
                    if (result.user_id === selected.user_id) {
                        result._selected = true;
                        numberCheckAll_2++;
                        _this.isSelectAll = (numberCheckAll_2 === _this.users.length);
                    }
                });
            });
        }
    };
    MemberListComponent.prototype.removeSelected = function (list) {
        var _this = this;
        list.forEach(function (item) {
            var index = _this.selectedUsers.findIndex(function (user) { return user.user_id === item.user_id; });
            _this.selectedUsers.splice(index, 1);
        });
        this.currentSelected = [];
    };
    // =================================================
    // ============     MEMBER GROUP     ===============
    // =================================================
    // ------------- get member groups -----------
    MemberListComponent.prototype.loadUserGroups = function (event) {
        this.groupParams.page_number = (event.first / event.rows) + 1;
        this.groupParams.page_size = event.rows;
        this.groupParams.asc_sort = (event.sortOrder === 1);
        if (event.sortField) {
            this.groupParams.sort_field = event.sortField;
        }
        this.getUserGroupList();
    };
    MemberListComponent.prototype.getUserGroupList = function () {
        var _this = this;
        this.loading = true;
        this.isSelectedGroupAll = false;
        this.userGroupService.getGroupsPaging(this.groupParams).subscribe(function (response) {
            if (response.status === 200) {
                var storeParamsGroup = {
                    page_size: _this.groupParams.page_size,
                    sort_field: _this.groupParams.sort_field,
                    asc_sort: _this.groupParams.asc_sort
                };
                localStorage.setItem(constant_module_1.Constant.sortPage.memberGroupList, JSON.stringify(storeParamsGroup));
                _this.groups = response.data.content;
                _this.totalGroupRecords = response.data.total_elements;
                if (_this.selectedGroups.length > 0) {
                    var numberCheckAll_3 = 0;
                    _this.groups.forEach(function (result) {
                        _this.selectedGroups.forEach(function (selected) {
                            if (result.group_user_id === selected.group_user_id) {
                                result._selected = true;
                                numberCheckAll_3++;
                                if (numberCheckAll_3 === _this.groups.length) {
                                    _this.isSelectedGroupAll = true;
                                }
                            }
                        });
                    });
                }
            }
            _this.loading = false;
        }, function (error) {
            _this.loading = false;
        });
    };
    MemberListComponent.prototype.searchGroup = function (event) {
        if (event.keyCode === 13) {
            this.groupParams.search_key = (this.groupSearchKey) ? this.groupSearchKey : '';
            this.first = 0;
            this.groupParams.page_number = 1;
            this.getUserGroupList();
        }
    };
    MemberListComponent.prototype.goToGroupDetail = function (id) {
        this.router.navigate(['/member/group', id]);
    };
    // ---------------- checkbox custom ----------------
    MemberListComponent.prototype.toggleSelectGroupAll = function () {
        var _this = this;
        if (this.isSelectedGroupAll) {
            if (this.selectedGroups.length === 0) {
                this.groups.forEach(function (selected) {
                    selected._selected = true;
                    _this.selectedGroups.push(selected);
                });
            }
            else {
                this.selectedGroups = this.selectedGroups.concat(this.groups);
                for (var i = 0; i < this.selectedGroups.length; ++i) {
                    for (var j = i + 1; j < this.selectedGroups.length; ++j) {
                        if (this.selectedGroups[i].group_user_id === this.selectedGroups[j].group_user_id) {
                            this.selectedGroups.splice(j--, 1);
                        }
                    }
                }
            }
        }
        else {
            this.groups.forEach(function (item) {
                _this.selectedGroups.forEach(function (selected) {
                    if (item.group_user_id === selected.group_user_id) {
                        _this.currentSelectedGroup.push(selected);
                    }
                });
            });
            this.removeSelectedGroup(this.currentSelectedGroup);
        }
        this.groups.forEach(function (item) {
            item._selected = _this.isSelectedGroupAll;
        });
    };
    MemberListComponent.prototype.toggleSelectedGroup = function (obj) {
        var _this = this;
        if (obj && obj.group_user_id) {
            var index = this.selectedGroups.findIndex(function (group) { return group.group_user_id === obj.group_user_id; });
            if (index > -1) {
                this.selectedGroups.splice(index, 1);
                obj._selected = false;
            }
            else {
                this.selectedGroups.push(obj);
                obj._selected = true;
            }
            this.isSelectedGroupAll = false;
            var numberCheckAll_4 = 0;
            this.groups.forEach(function (result) {
                _this.selectedGroups.forEach(function (selected) {
                    if (result.group_user_id === selected.group_user_id) {
                        result._selected = true;
                        numberCheckAll_4++;
                        _this.isSelectedGroupAll = (numberCheckAll_4 === _this.groups.length);
                    }
                });
            });
        }
    };
    MemberListComponent.prototype.removeSelectedGroup = function (list) {
        var _this = this;
        list.forEach(function (item) {
            var index = _this.selectedGroups.findIndex(function (group) { return group.group_user_id === item.group_user_id; });
            _this.selectedGroups.splice(index, 1);
        });
        this.currentSelectedGroup = [];
    };
    // ------------- delete groups -----------
    MemberListComponent.prototype.deleteSelectedGroups = function () {
        var _this = this;
        this.confirmationService.confirm({
            message: this.utils.translate('message.delete_group.content'),
            header: this.utils.translate('message.delete_group.title'),
            icon: 'pi pi-exclamation-triangle',
            accept: function () {
                _this.doDeleteGroup();
            }
        });
    };
    MemberListComponent.prototype.doDeleteGroup = function () {
        var _this = this;
        var items = this.selectedGroups;
        if (items.length === 0) {
            return;
        }
        var userGroupIds = items.map(function (item) { return item.group_user_id; });
        var params = {
            team_id: this.authUser.team_id,
            user_group_ids: userGroupIds
        };
        this.userGroupService.deleteGroup(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.delete_success')
                });
                _this.confirmationService.close();
                _this.selectedGroups = [];
                _this.groupParams.page_number = 1;
                _this.getUserGroupList();
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.confirmationService.close();
        });
    };
    // ------------- create group -----------
    MemberListComponent.prototype.confirmCreateGroup = function () {
        this.displayCreateGroupModal = true;
        if (!this.submittingCreateGroup) {
            this.createGroupFrm.reset();
        }
    };
    MemberListComponent.prototype.doCreateGroup = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submittingCreateGroup = true;
        var emails = this.createGroupFrm.value.selectedEmails ?
            this.createGroupFrm.value.selectedEmails.map(function (elem) {
                return elem.mail;
            }).join(',') : '';
        var paramsCreateGroup = {
            team_id: this.authUser.team_id,
            name: this.createGroupFrm.value.groupName,
            emails: emails,
            description: this.createGroupFrm.value.description,
        };
        this.userGroupService.createGroup(paramsCreateGroup).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.create_success')
                });
                _this.createGroupFrm.reset();
                _this.displayCreateGroupModal = false;
                _this.getUserGroupList();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submittingCreateGroup = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submittingCreateGroup = false;
        });
    };
    // get all member for popup add group
    MemberListComponent.prototype.getMembers = function () {
        var _this = this;
        this.loading = true;
        var memberCustoms = [];
        return this.memberService.getAllUsers(this.authUser.team_id)
            .pipe(operators_1.map(function (res) {
            if (res.status === 200) {
                res.data.forEach(function (res) {
                    memberCustoms.push({
                        value: res.mail_address,
                        firstName: res.first_name,
                        lastName: res.last_name,
                        mail: res.mail_address
                    });
                });
            }
            _this.loading = false;
            return memberCustoms;
        }));
    };
    MemberListComponent.ɵfac = function MemberListComponent_Factory(t) { return new (t || MemberListComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.MemberService), i0.ɵɵdirectiveInject(i3.UserGroupService), i0.ɵɵdirectiveInject(i4.Router), i0.ɵɵdirectiveInject(i5.BroadcastService), i0.ɵɵdirectiveInject(i6.UtilsService), i0.ɵɵdirectiveInject(i7.DatePipe), i0.ɵɵdirectiveInject(i8.HttpClient), i0.ɵɵdirectiveInject(i9.CookieService), i0.ɵɵdirectiveInject(i10.AuthenticateService), i0.ɵɵdirectiveInject(i11.ConfirmationService), i0.ɵɵdirectiveInject(i11.MessageService)); };
    MemberListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MemberListComponent, selectors: [["app-member-list"]], features: [i0.ɵɵProvidersFeature([api_1.ConfirmationService, common_1.DatePipe])], decls: 35, vars: 46, consts: [[1, "margin-body"], [3, "activeIndex", "activeIndexChange", "onChange"], [3, "header"], [1, "p-text-secondary", "header-custom"], ["styleClass", "toolbar-custom"], ["pTemplate", "left"], ["styleClass", "p-datatable-striped p-datatable-responsive-demo", 3, "rowHover", "paginator", "lazy", "totalRecords", "sortField", "value", "first", "rows", "rowsPerPageOptions", "sortOrder", "onLazyLoad", "firstChange"], ["dt", ""], ["pTemplate", "caption"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "header", 4, "ngIf"], ["styleClass", "md-dialog", "position", "left", "rejectButtonStyleClass", "p-button-text", 3, "baseZIndex"], ["key", "loginAsMember", "position", "left", "styleClass", "md-dialog", 3, "baseZIndex"], [1, "p-text-center"], ["type", "button", "pButton", "", "pRipple", "", "class", "p-button-raised p-button-primary p-mr-2", 3, "label", "click", 4, "ngIf"], ["type", "button", "pButton", "", "pRipple", "", "class", "p-button-raised p-button-primary", 3, "label", "click", 4, "ngIf"], ["styleClass", "custom-dialog", "position", "left", 3, "header", "visible", "maximizable", "modal", "draggable", "resizable", "baseZIndex", "visibleChange"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-times p-button-icon-left", 1, "p-button-raised", "p-button-secondary", "p-button-outlined", "p-mr-2", 3, "label", "click"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled", "click"], [4, "ngIf"], ["pButton", "", "pRipple", "", "icon", "pi pi-plus p-button-icon-left x-none", "class", "p-button-raised p-button-primary p-mr-2 x-none", 3, "label", "click", 4, "ngIf"], ["pButton", "", "pRipple", "", "icon", "pi pi-download p-button-icon-left x-none", "class", "p-button-raised p-button-info p-mr-2 x-none", 3, "label", "click", 4, "ngIf"], ["pButton", "", "pRipple", "", "icon", "pi pi-trash p-button-icon-left x-none", "class", "p-button-raised p-button-danger p-mr-2 x-none", 3, "label", "disabled", "click", 4, "ngIf"], ["pButton", "", "pRipple", "", "icon", "pi pi-plus p-button-icon-left x-none", 1, "p-button-raised", "p-button-primary", "p-mr-2", "x-none", 3, "label", "click"], ["pButton", "", "pRipple", "", "icon", "pi pi-download p-button-icon-left x-none", 1, "p-button-raised", "p-button-info", "p-mr-2", "x-none", 3, "label", "click"], ["pButton", "", "pRipple", "", "icon", "pi pi-trash p-button-icon-left x-none", 1, "p-button-raised", "p-button-danger", "p-mr-2", "x-none", 3, "label", "disabled", "click"], [1, "p-d-flex", "p-ai-center", "p-jc-between"], ["class", "dropdown-style p-mr-2", "id", "searchType", "optionLabel", "name", 3, "options", "ngModel", "onChange", "ngModelChange", 4, "ngIf"], [1, "p-input-icon-left"], [1, "pi", "pi-search"], ["pInputText", "", "type", "text", 1, "search-style", "h-38", 3, "ngModel", "placeholder", "keyup", "ngModelChange"], ["id", "searchType", "optionLabel", "name", 1, "dropdown-style", "p-mr-2", 3, "options", "ngModel", "onChange", "ngModelChange"], ["style", "width: 60px", 4, "ngIf"], ["class", "p-d-none p-d-md-table-cell", "pSortableColumn", "firstName", "style", "width: 18%", 4, "ngIf"], ["pSortableColumn", "lastName", 1, "p-d-none", "p-d-md-table-cell", 2, "width", "18%"], ["field", "lastName"], ["pSortableColumn", "mailAddress"], ["field", "mailAddress"], ["pSortableColumn", "createdDate", 1, "p-d-none", "p-d-lg-table-cell", 2, "width", "16%"], ["field", "createdDate"], ["pSortableColumn", "role", 1, "p-d-none", "p-d-md-table-cell", 2, "width", "12%"], ["field", "role"], ["style", "width: 70px", 4, "ngIf"], [2, "width", "60px"], ["name", "checkboxAll", "binary", "true", 3, "ngModel", "ngModelChange", "click"], ["pSortableColumn", "firstName", 1, "p-d-none", "p-d-md-table-cell", 2, "width", "18%"], ["field", "firstName"], [2, "width", "70px"], ["class", "p-d-none p-d-md-table-cell p-text-truncate p-text-13 cs-pointer", 3, "click", "dblclick", 4, "ngIf"], [1, "p-d-none", "p-d-md-table-cell", "p-text-truncate", "p-text-13", 3, "dblclick"], ["tooltipPosition", "top", 1, "p-text-truncate", "p-text-13", 3, "pTooltip", "dblclick"], [1, "p-d-none", "p-d-lg-table-cell", "p-text-13", 3, "dblclick"], [1, "p-d-none", "p-d-md-table-cell", "p-text-nowrap", 3, "ngSwitch"], ["class", "p-badge p-badge-success", 4, "ngSwitchCase"], ["class", "p-badge", 4, "ngSwitchCase"], ["class", "p-badge p-badge-info", 4, "ngSwitchCase"], ["class", "p-badge p-badge-secondary", 4, "ngSwitchCase"], ["class", "p-text-13", 4, "ngIf"], ["binary", "true", 3, "ngModel", "click", "ngModelChange", 4, "ngIf"], ["binary", "true", 3, "ngModel", "click", "ngModelChange"], [1, "p-d-none", "p-d-md-table-cell", "p-text-truncate", "p-text-13", "cs-pointer", 3, "click", "dblclick"], [1, "p-badge", "p-badge-success"], [1, "p-badge"], [1, "p-badge", "p-badge-info"], [1, "p-badge", "p-badge-secondary"], [1, "p-text-13"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-sign-in", "class", "p-button-sm p-button-text p-button-outlined p-button-raised p-button-rounded", "tooltipPosition", "left", 3, "pTooltip", "click", 4, "ngIf"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-sign-in", "tooltipPosition", "left", 1, "p-button-sm", "p-button-text", "p-button-outlined", "p-button-raised", "p-button-rounded", 3, "pTooltip", "click"], [1, "p-text-center", "p-d-none", "p-d-md-table-cell", 3, "colSpan"], [1, "p-text-center", "p-d-sm-table-cell", "p-d-md-none", 3, "colSpan"], ["dtgroup", ""], ["pInputText", "", "type", "text", 1, "search-style", 3, "ngModel", "placeholder", "keyup", "ngModelChange"], ["pSortableColumn", "groupName", 1, "p-text-left"], ["field", "groupName"], ["pSortableColumn", "createDate", 1, "p-d-none", "p-d-lg-table-cell", "p-text-left", 2, "width", "20%"], ["field", "createDate"], ["pSortableColumn", "mailAddress", 1, "p-d-none", "p-d-lg-table-cell", "p-text-left", 2, "width", "24%"], ["pSortableColumn", "numberUser", 1, "p-d-none", "p-d-md-table-cell", "p-text-center", 2, "width", "20%"], ["field", "numberUser"], ["tooltipPosition", "top", 1, "p-text-truncate", "p-text-left", "p-text-13", "cs-pointer", 3, "pTooltip", "click", "dblclick"], [1, "p-d-none", "p-d-lg-table-cell", "p-text-13", "p-text-left", 3, "dblclick"], [1, "p-d-none", "p-d-md-table-cell", "p-text-13", "p-text-center", 3, "dblclick"], [1, "p-text-center", "p-d-none", "p-d-lg-table-cell", 3, "colSpan"], [1, "p-text-center", "p-d-sm-table-cell", "p-d-lg-none", 3, "colSpan"], ["type", "button", "pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-primary", "p-mr-2", 3, "label", "click"], ["type", "button", "pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-primary", 3, "label", "click"], [3, "formGroup"], [1, "p-grid"], [1, "p-col-12"], [1, "display-grid"], ["for", "name", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "name", "type", "text", "required", "", "maxlength", "64", "formControlName", "groupName", "pInputText", "", 3, "ngClass"], ["class", "p-invalid", 4, "ngIf"], [1, "p-text-small", "p-mb-1", "p-text-bold"], ["multiple", "true", "bindLabel", "mail", "name", "selectedEmails", "formControlName", "selectedEmails", 3, "items", "hideSelected", "loading"], ["ng-option-tmp", ""], ["ng-notfound-tmp", ""], ["for", "description", 1, "p-text-small", "p-mb-1", "p-text-bold"], ["id", "description", "rows", "2", "maxlength", "255", "formControlName", "description", "pInputTextarea", "", "autoResize", "true", 1, "p-width-100", 3, "ngClass"], [1, "p-invalid"], [1, "ng-option", "disabled"], [1, "pi", "pi-plus", "p-button-icon-left"], [1, "pi", "pi-spin", "pi-spinner", "p-button-icon-left"]], template: function MemberListComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "p-tabView", 1);
            i0.ɵɵlistener("activeIndexChange", function MemberListComponent_Template_p_tabView_activeIndexChange_1_listener($event) { return ctx.activeIndex = $event; })("onChange", function MemberListComponent_Template_p_tabView_onChange_1_listener($event) { return ctx.handleChange($event); });
            i0.ɵɵelementStart(2, "p-tabPanel", 2);
            i0.ɵɵpipe(3, "translate");
            i0.ɵɵelementStart(4, "h2", 3);
            i0.ɵɵtext(5);
            i0.ɵɵpipe(6, "uppercase");
            i0.ɵɵpipe(7, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(8, "p-toolbar", 4);
            i0.ɵɵtemplate(9, MemberListComponent_ng_template_9_Template, 3, 3, "ng-template", 5);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(10, "p-table", 6, 7);
            i0.ɵɵlistener("onLazyLoad", function MemberListComponent_Template_p_table_onLazyLoad_10_listener($event) { return ctx.loadUsers($event); })("firstChange", function MemberListComponent_Template_p_table_firstChange_10_listener($event) { return ctx.first = $event; });
            i0.ɵɵtemplate(12, MemberListComponent_ng_template_12_Template, 6, 5, "ng-template", 8);
            i0.ɵɵtemplate(13, MemberListComponent_ng_template_13_Template, 21, 16, "ng-template", 9);
            i0.ɵɵtemplate(14, MemberListComponent_ng_template_14_Template, 16, 13, "ng-template", 10);
            i0.ɵɵtemplate(15, MemberListComponent_ng_template_15_Template, 7, 8, "ng-template", 11);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(16, MemberListComponent_p_tabPanel_16_Template, 14, 18, "p-tabPanel", 12);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelement(17, "p-confirmDialog", 13);
            i0.ɵɵelementStart(18, "p-confirmDialog", 14);
            i0.ɵɵelementStart(19, "p-footer");
            i0.ɵɵelementStart(20, "div", 15);
            i0.ɵɵtemplate(21, MemberListComponent_button_21_Template, 2, 3, "button", 16);
            i0.ɵɵtemplate(22, MemberListComponent_button_22_Template, 2, 3, "button", 17);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(23, "p-dialog", 18);
            i0.ɵɵlistener("visibleChange", function MemberListComponent_Template_p_dialog_visibleChange_23_listener($event) { return ctx.displayCreateGroupModal = $event; });
            i0.ɵɵpipe(24, "titlecase");
            i0.ɵɵpipe(25, "translate");
            i0.ɵɵtemplate(26, MemberListComponent_ng_template_26_Template, 25, 19, "ng-template", 10);
            i0.ɵɵelementStart(27, "p-footer");
            i0.ɵɵelementStart(28, "button", 19);
            i0.ɵɵlistener("click", function MemberListComponent_Template_button_click_28_listener() { return ctx.displayCreateGroupModal = false; });
            i0.ɵɵpipe(29, "titlecase");
            i0.ɵɵpipe(30, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(31, "button", 20);
            i0.ɵɵlistener("click", function MemberListComponent_Template_button_click_31_listener() { return ctx.doCreateGroup(ctx.createGroupFrm.valid); });
            i0.ɵɵpipe(32, "translate");
            i0.ɵɵtemplate(33, MemberListComponent_span_33_Template, 2, 0, "span", 21);
            i0.ɵɵtemplate(34, MemberListComponent_span_34_Template, 2, 0, "span", 21);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("activeIndex", ctx.activeIndex);
            i0.ɵɵadvance(1);
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(3, 30, "navi.member"));
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 32, i0.ɵɵpipeBind1(7, 34, "header.member.list")), " ");
            i0.ɵɵadvance(5);
            i0.ɵɵpropertyInterpolate("sortField", ctx.params.sort_field);
            i0.ɵɵproperty("rowHover", true)("paginator", ctx.totalRecords > 0)("lazy", true)("totalRecords", ctx.totalRecords)("value", ctx.users)("first", ctx.first)("rows", ctx.params.page_size)("rowsPerPageOptions", ctx.rowOptions)("sortOrder", ctx.params.asc_sort ? 1 : -1);
            i0.ɵɵadvance(6);
            i0.ɵɵproperty("ngIf", ctx.isUseSDGlobal);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("baseZIndex", 10000);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("baseZIndex", 10000);
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.authUser.use_secure_drive);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.authUser.use_secure_mail);
            i0.ɵɵadvance(1);
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(24, 36, i0.ɵɵpipeBind1(25, 38, "label.member_group.add")));
            i0.ɵɵproperty("visible", ctx.displayCreateGroupModal)("maximizable", true)("modal", true)("draggable", false)("resizable", false)("baseZIndex", 10000);
            i0.ɵɵadvance(5);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(29, 40, i0.ɵɵpipeBind1(30, 42, "button.cancel")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(32, 44, "button.add"));
            i0.ɵɵproperty("disabled", !ctx.createGroupFrm.valid || ctx.submittingCreateGroup);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.submittingCreateGroup);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.submittingCreateGroup);
        } }, directives: [i12.TabView, i12.TabPanel, i13.Toolbar, i11.PrimeTemplate, i14.Table, i7.NgIf, i15.ConfirmDialog, i11.Footer, i16.Dialog, i17.ButtonDirective, i18.Ripple, i1.DefaultValueAccessor, i19.InputText, i1.NgControlStatus, i1.NgModel, i20.Dropdown, i14.SortableColumn, i14.SortIcon, i21.Checkbox, i22.Tooltip, i7.NgSwitch, i7.NgSwitchCase, i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.RequiredValidator, i1.MaxLengthValidator, i1.FormControlName, i7.NgClass, i23.NgSelectComponent, i23.ɵf, i23.ɵl, i24.InputTextarea], pipes: [i25.TranslatePipe, i7.UpperCasePipe, i7.TitleCasePipe, i7.AsyncPipe], styles: ["[_nghost-%COMP%]     .p-datatable-responsive-demo .p-datatable-tbody > tr > td .p-column-title {\n  display: none;\n}\n\n.pagination[_ngcontent-%COMP%] {\n  display: inline-block;\n}\n\n.pagination[_ngcontent-%COMP%]   a[_ngcontent-%COMP%] {\n  padding: 5px 10px;\n  margin-right: 2px;\n  cursor: pointer;\n}\n\n.pagination[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%] {\n  background-color: #4CAF50;\n  color: white;\n  border-radius: 5px;\n}\n\n.pagination[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover:not(.active) {\n  background-color: #ddd;\n  border-radius: 5px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vbWVtYmVyL21lbWJlci1saXN0L21lbWJlci1saXN0LmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC90ZWFtLWFkbWluL21lbWJlci9tZW1iZXItbGlzdC9tZW1iZXItbGlzdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDRTtFQUNFLGFBQUE7QUNBSjs7QURJQTtFQUNFLHFCQUFBO0FDREY7O0FESUE7RUFDRSxpQkFBQTtFQUNBLGlCQUFBO0VBQ0EsZUFBQTtBQ0RGOztBRElBO0VBQ0UseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7QUNERjs7QURJQTtFQUNFLHNCQUFBO0VBQ0Esa0JBQUE7QUNERiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vbWVtYmVyL21lbWJlci1saXN0L21lbWJlci1saXN0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiOmhvc3QgOjpuZy1kZWVwIHtcbiAgLnAtZGF0YXRhYmxlLXJlc3BvbnNpdmUtZGVtbyAucC1kYXRhdGFibGUtdGJvZHkgPiB0ciA+IHRkIC5wLWNvbHVtbi10aXRsZSB7XG4gICAgZGlzcGxheTogbm9uZTtcbiAgfVxufVxuXG4ucGFnaW5hdGlvbiB7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbn1cblxuLnBhZ2luYXRpb24gYSB7XG4gIHBhZGRpbmc6IDVweCAxMHB4O1xuICBtYXJnaW4tcmlnaHQ6IDJweDtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4ucGFnaW5hdGlvbiBhLmFjdGl2ZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICM0Q0FGNTA7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xufVxuXG4ucGFnaW5hdGlvbiBhOmhvdmVyOm5vdCguYWN0aXZlKSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNkZGQ7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbn1cbiIsIjpob3N0IDo6bmctZGVlcCAucC1kYXRhdGFibGUtcmVzcG9uc2l2ZS1kZW1vIC5wLWRhdGF0YWJsZS10Ym9keSA+IHRyID4gdGQgLnAtY29sdW1uLXRpdGxlIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLnBhZ2luYXRpb24ge1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG59XG5cbi5wYWdpbmF0aW9uIGEge1xuICBwYWRkaW5nOiA1cHggMTBweDtcbiAgbWFyZ2luLXJpZ2h0OiAycHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cblxuLnBhZ2luYXRpb24gYS5hY3RpdmUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjNENBRjUwO1xuICBjb2xvcjogd2hpdGU7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbn1cblxuLnBhZ2luYXRpb24gYTpob3Zlcjpub3QoLmFjdGl2ZSkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZGRkO1xuICBib3JkZXItcmFkaXVzOiA1cHg7XG59Il19 */"] });
    return MemberListComponent;
}());
exports.MemberListComponent = MemberListComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MemberListComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-member-list',
                templateUrl: './member-list.component.html',
                styleUrls: ['./member-list.component.scss'],
                providers: [api_1.ConfirmationService, common_1.DatePipe]
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.MemberService }, { type: i3.UserGroupService }, { type: i4.Router }, { type: i5.BroadcastService }, { type: i6.UtilsService }, { type: i7.DatePipe }, { type: i8.HttpClient }, { type: i9.CookieService }, { type: i10.AuthenticateService }, { type: i11.ConfirmationService }, { type: i11.MessageService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/member/member.component.ts":
/*!*******************************************************!*\
  !*** ./src/app/team-admin/member/member.component.ts ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MemberComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var MemberComponent = /** @class */ (function () {
    function MemberComponent() {
    }
    MemberComponent.prototype.ngOnInit = function () {
    };
    MemberComponent.ɵfac = function MemberComponent_Factory(t) { return new (t || MemberComponent)(); };
    MemberComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MemberComponent, selectors: [["app-member"]], decls: 1, vars: 0, template: function MemberComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelement(0, "router-outlet");
        } }, directives: [i1.RouterOutlet], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vbWVtYmVyL21lbWJlci5jb21wb25lbnQuc2NzcyJ9 */"] });
    return MemberComponent;
}());
exports.MemberComponent = MemberComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MemberComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-member',
                templateUrl: './member.component.html',
                styleUrls: ['./member.component.scss']
            }]
    }], function () { return []; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/my-account/my-account.component.ts":
/*!***************************************************************!*\
  !*** ./src/app/team-admin/my-account/my-account.component.ts ***!
  \***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MyAccountComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var api_1 = __webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var constant_module_1 = __webpack_require__(/*! ../../common/constant.module */ "./src/app/common/constant.module.ts");
var validator_module_1 = __webpack_require__(/*! ../../common/validator.module */ "./src/app/common/validator.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/member.service */ "./src/app/shared/services/member.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/team-setting.service */ "./src/app/shared/services/team-setting.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/team.service */ "./src/app/shared/services/team.service.ts"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/toolbar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-toolbar.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/dropdown */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i15 = tslib_1.__importStar(__webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js"));
var i16 = tslib_1.__importStar(__webpack_require__(/*! primeng/confirmdialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-confirmdialog.js"));
var i17 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function MyAccountComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
    var _r11 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 45);
    i0.ɵɵlistener("click", function MyAccountComponent_ng_template_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.confirmChangePassword(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "button", 46);
    i0.ɵɵlistener("click", function MyAccountComponent_ng_template_6_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r11); var ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.confirmChangeEmail(); });
    i0.ɵɵpipe(4, "uppercase");
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 2, i0.ɵɵpipeBind1(2, 4, "button.change_password")));
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(4, 6, i0.ɵɵpipeBind1(5, 8, "button.change_email")));
} }
function MyAccountComponent_div_17_div_5_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MyAccountComponent_div_17_div_5_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MyAccountComponent_div_17_div_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 49);
    i0.ɵɵtemplate(1, MyAccountComponent_div_17_div_5_small_1_Template, 3, 3, "small", 39);
    i0.ɵɵtemplate(2, MyAccountComponent_div_17_div_5_small_2_Template, 3, 3, "small", 39);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r13 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r13.profileFrm.controls["lastName"].errors == null ? null : ctx_r13.profileFrm.controls["lastName"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r13.profileFrm.controls["lastName"].errors == null ? null : ctx_r13.profileFrm.controls["lastName"].errors.pattern);
} }
function MyAccountComponent_div_17_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 12);
    i0.ɵɵelementStart(1, "label", 47);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(4, "input", 48);
    i0.ɵɵtemplate(5, MyAccountComponent_div_17_div_5_Template, 3, 2, "div", 15);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, "label.common.last_name"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngClass", (ctx_r1.profileFrm.controls["lastName"].touched || ctx_r1.profileFrm.controls["lastName"].dirty) && ctx_r1.profileFrm.controls["lastName"].invalid ? "p-invalid" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r1.profileFrm.controls["lastName"].touched || ctx_r1.profileFrm.controls["lastName"].dirty) && ctx_r1.profileFrm.controls["lastName"].errors);
} }
function MyAccountComponent_div_23_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MyAccountComponent_div_23_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MyAccountComponent_div_23_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 49);
    i0.ɵɵtemplate(1, MyAccountComponent_div_23_small_1_Template, 3, 3, "small", 39);
    i0.ɵɵtemplate(2, MyAccountComponent_div_23_small_2_Template, 3, 3, "small", 39);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.profileFrm.controls["firstName"].errors == null ? null : ctx_r2.profileFrm.controls["firstName"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.profileFrm.controls["firstName"].errors == null ? null : ctx_r2.profileFrm.controls["firstName"].errors.pattern);
} }
function MyAccountComponent_div_24_div_5_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MyAccountComponent_div_24_div_5_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function MyAccountComponent_div_24_div_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 49);
    i0.ɵɵtemplate(1, MyAccountComponent_div_24_div_5_small_1_Template, 3, 3, "small", 39);
    i0.ɵɵtemplate(2, MyAccountComponent_div_24_div_5_small_2_Template, 3, 3, "small", 39);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r18 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r18.profileFrm.controls["lastName"].errors == null ? null : ctx_r18.profileFrm.controls["lastName"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r18.profileFrm.controls["lastName"].errors == null ? null : ctx_r18.profileFrm.controls["lastName"].errors.pattern);
} }
function MyAccountComponent_div_24_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 12);
    i0.ɵɵelementStart(1, "label", 50);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(4, "input", 51);
    i0.ɵɵtemplate(5, MyAccountComponent_div_24_div_5_Template, 3, 2, "div", 15);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, "label.common.last_name"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngClass", (ctx_r3.profileFrm.controls["lastName"].touched || ctx_r3.profileFrm.controls["lastName"].dirty) && ctx_r3.profileFrm.controls["lastName"].invalid ? "p-invalid" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r3.profileFrm.controls["lastName"].touched || ctx_r3.profileFrm.controls["lastName"].dirty) && ctx_r3.profileFrm.controls["lastName"].errors);
} }
function MyAccountComponent_div_30_label_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "label", 9);
    i0.ɵɵelementStart(1, "span", 54);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r21 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", ctx_r21.userInfo["pin_code"], " ");
} }
function MyAccountComponent_div_30_button_5_Template(rf, ctx) { if (rf & 1) {
    var _r24 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 55);
    i0.ɵɵlistener("click", function MyAccountComponent_div_30_button_5_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24); var ctx_r23 = i0.ɵɵnextContext(2); return ctx_r23.generatePinCode(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, i0.ɵɵpipeBind1(2, 3, "button.generate_pin_code")));
} }
function MyAccountComponent_div_30_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 16);
    i0.ɵɵelementStart(1, "label", 8);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(4, MyAccountComponent_div_30_label_4_Template, 3, 1, "label", 52);
    i0.ɵɵtemplate(5, MyAccountComponent_div_30_button_5_Template, 3, 5, "button", 53);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, "label.pin_code"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r4.userInfo["pin_code"] !== null);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.userInfo["pin_code"] === null || !ctx_r4.userInfo["pin_code"]);
} }
function MyAccountComponent_label_52_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "label", 56);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.user_setting.email_notification.disable_reason"), " ");
} }
function MyAccountComponent_span_73_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 57);
    i0.ɵɵelementEnd();
} }
function MyAccountComponent_span_74_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 58);
    i0.ɵɵelementEnd();
} }
function MyAccountComponent_ng_template_78_div_8_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MyAccountComponent_ng_template_78_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 67);
    i0.ɵɵtemplate(1, MyAccountComponent_ng_template_78_div_8_small_1_Template, 3, 3, "small", 39);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r25 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r25.changePassFrm.controls["currentPassword"].errors == null ? null : ctx_r25.changePassFrm.controls["currentPassword"].errors.required);
} }
function MyAccountComponent_ng_template_78_div_15_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MyAccountComponent_ng_template_78_div_15_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r30 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r30.notificationError, " ");
} }
function MyAccountComponent_ng_template_78_div_15_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 67);
    i0.ɵɵtemplate(1, MyAccountComponent_ng_template_78_div_15_small_1_Template, 3, 3, "small", 39);
    i0.ɵɵtemplate(2, MyAccountComponent_ng_template_78_div_15_small_2_Template, 2, 1, "small", 39);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r26 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r26.changePassFrm.controls["password"].errors == null ? null : ctx_r26.changePassFrm.controls["password"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r26.changePassFrm.controls["password"].errors == null ? null : ctx_r26.changePassFrm.controls["password"].errors.pattern);
} }
function MyAccountComponent_ng_template_78_div_22_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function MyAccountComponent_ng_template_78_div_22_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.password_not_match"), " ");
} }
function MyAccountComponent_ng_template_78_div_22_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 67);
    i0.ɵɵtemplate(1, MyAccountComponent_ng_template_78_div_22_small_1_Template, 3, 3, "small", 39);
    i0.ɵɵtemplate(2, MyAccountComponent_ng_template_78_div_22_small_2_Template, 3, 3, "small", 39);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r27 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r27.changePassFrm.controls["confirmPassword"].errors == null ? null : ctx_r27.changePassFrm.controls["confirmPassword"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r27.changePassFrm.controls["confirmPassword"].errors == null ? null : ctx_r27.changePassFrm.controls["confirmPassword"].errors.confirmedValidator);
} }
function MyAccountComponent_ng_template_78_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "form", 59);
    i0.ɵɵelementStart(1, "div", 30);
    i0.ɵɵelementStart(2, "div", 7);
    i0.ɵɵelementStart(3, "div", 32);
    i0.ɵɵelementStart(4, "label", 60);
    i0.ɵɵtext(5);
    i0.ɵɵpipe(6, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(7, "input", 61);
    i0.ɵɵtemplate(8, MyAccountComponent_ng_template_78_div_8_Template, 2, 1, "div", 62);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "div", 7);
    i0.ɵɵelementStart(10, "div", 32);
    i0.ɵɵelementStart(11, "label", 63);
    i0.ɵɵtext(12);
    i0.ɵɵpipe(13, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(14, "input", 64);
    i0.ɵɵtemplate(15, MyAccountComponent_ng_template_78_div_15_Template, 3, 2, "div", 62);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "div", 7);
    i0.ɵɵelementStart(17, "div", 32);
    i0.ɵɵelementStart(18, "label", 65);
    i0.ɵɵtext(19);
    i0.ɵɵpipe(20, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(21, "input", 66);
    i0.ɵɵtemplate(22, MyAccountComponent_ng_template_78_div_22_Template, 3, 2, "div", 62);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r8 = i0.ɵɵnextContext();
    i0.ɵɵproperty("formGroup", ctx_r8.changePassFrm);
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, "label.current_password"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngClass", (ctx_r8.changePassFrm.controls["currentPassword"].touched || ctx_r8.changePassFrm.controls["currentPassword"].dirty) && ctx_r8.changePassFrm.controls["currentPassword"].invalid ? "ng-invalid ng-dirty" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.changePassFrm.controls["currentPassword"].touched || ctx_r8.changePassFrm.controls["currentPassword"].dirty);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 15, "label.new_password"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("maxlength", ctx_r8.pw_max_length);
    i0.ɵɵproperty("pattern", ctx_r8.passwordPattern)("ngClass", (ctx_r8.changePassFrm.controls["password"].touched || ctx_r8.changePassFrm.controls["password"].dirty) && ctx_r8.changePassFrm.controls["password"].invalid ? "ng-invalid ng-dirty" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.changePassFrm.controls["password"].touched || ctx_r8.changePassFrm.controls["password"].dirty);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 17, "label.confirm_new_password"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("maxlength", ctx_r8.pw_max_length);
    i0.ɵɵproperty("ngClass", (ctx_r8.changePassFrm.controls["confirmPassword"].touched || ctx_r8.changePassFrm.controls["confirmPassword"].dirty) && ctx_r8.changePassFrm.controls["confirmPassword"].invalid ? "ng-invalid ng-dirty" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r8.changePassFrm.controls["confirmPassword"].touched || ctx_r8.changePassFrm.controls["confirmPassword"].dirty);
} }
function MyAccountComponent_span_85_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 68);
    i0.ɵɵelementEnd();
} }
var MyAccountComponent = /** @class */ (function () {
    function MyAccountComponent(fb, messageService, location, memberService, teamSettingService, teamService, utils, confirmationService, authenticateService) {
        this.fb = fb;
        this.messageService = messageService;
        this.location = location;
        this.memberService = memberService;
        this.teamSettingService = teamSettingService;
        this.teamService = teamService;
        this.utils = utils;
        this.confirmationService = confirmationService;
        this.authenticateService = authenticateService;
        this.profileFrm = new forms_1.FormGroup({});
        // dialog change password
        this.changePassFrm = new forms_1.FormGroup({});
        this.displayChangePassModal = false;
        this.userInfo = {};
        this.originData = {};
        this.canChangeTwoFA = true;
        this.isChange = false;
        this.isChangeLanguage = false;
        this.languageOption = [];
        this.timezoneOption = [];
    }
    MyAccountComponent.prototype.ngOnInit = function () {
        this.isUseSDGlobal = this.authenticateService.isUseSDGlobal;
        this.authUser = this.authenticateService.getAuthUser();
        this.languageOption = [
            { code: 'auto', name: this.utils.translate('language.auto') },
            { code: 'en', name: this.utils.translate('language.en') },
            { code: 'ja', name: this.utils.translate('language.ja') },
            { code: 'vi', name: this.utils.translate('language.vi') },
        ];
        this.timezoneOption = [
            { code: -12, name: this.utils.translate('timezone.GMT_-12') },
            { code: -11, name: this.utils.translate('timezone.GMT_-11') },
            { code: -10, name: this.utils.translate('timezone.GMT_-10') },
            { code: -9, name: this.utils.translate('timezone.GMT_-9') },
            { code: -8, name: this.utils.translate('timezone.GMT_-8') },
            { code: -7, name: this.utils.translate('timezone.GMT_-7') },
            { code: -6, name: this.utils.translate('timezone.GMT_-6') },
            { code: -5, name: this.utils.translate('timezone.GMT_-5') },
            { code: -4, name: this.utils.translate('timezone.GMT_-4') },
            { code: -3, name: this.utils.translate('timezone.GMT_-3') },
            { code: -2, name: this.utils.translate('timezone.GMT_-2') },
            { code: -1, name: this.utils.translate('timezone.GMT_-1') },
            { code: 0, name: this.utils.translate('timezone.GMT_0') },
            { code: 1, name: this.utils.translate('timezone.GMT_+1') },
            { code: 2, name: this.utils.translate('timezone.GMT_+2') },
            { code: 3, name: this.utils.translate('timezone.GMT_+3') },
            { code: 4, name: this.utils.translate('timezone.GMT_+4') },
            { code: 5, name: this.utils.translate('timezone.GMT_+5') },
            { code: 6, name: this.utils.translate('timezone.GMT_+6') },
            { code: 7, name: this.utils.translate('timezone.GMT_+7') },
            { code: 8, name: this.utils.translate('timezone.GMT_+8') },
            { code: 9, name: this.utils.translate('timezone.GMT_+9') },
            { code: 10, name: this.utils.translate('timezone.GMT_+10') },
            { code: 11, name: this.utils.translate('timezone.GMT_+11') },
            { code: 12, name: this.utils.translate('timezone.GMT_+12') }
        ];
        this.profileFrm = this.fb.group({
            firstName: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN)
                ]
            ],
            lastName: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN)
                ]
            ],
            notifyAccountChange: [false],
            notifyFileProtectedExp: [false],
            twoFA: [false],
            language: [],
            timezone: [],
        });
        this.changePassFrm = this.fb.group({
            currentPassword: ['', forms_1.Validators.required],
            password: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(this.passwordPattern)
                ]
            ],
            confirmPassword: ['', [forms_1.Validators.required]],
        }, {
            validator: validator_module_1.ConfirmedValidator('password', 'confirmPassword')
        });
        this.loadData();
    };
    MyAccountComponent.prototype.checkValueChanges = function () {
        var _this = this;
        this.profileFrm.valueChanges.subscribe(function (val) {
            if (_this.originData) {
                _this.isChange = (val && JSON.stringify(_this.originData) !== JSON.stringify(val));
                _this.isChangeLanguage = (val && JSON.stringify(_this.originData['language']) !== JSON.stringify(val.language));
            }
        });
    };
    MyAccountComponent.prototype.loadData = function () {
        var _this = this;
        this.memberService.getUserDetail(this.authUser.user_id).subscribe(function (res) {
            if (res.status == 200) {
                _this.userInfo = res.data.user_info;
                _this.profileFrm.controls['firstName'].setValue(_this.userInfo['first_name']);
                _this.profileFrm.controls['lastName'].setValue(_this.userInfo['last_name']);
                _this.profileFrm.controls['timezone'].setValue(_this.timezoneOption.find(function (tz) { return tz.code === _this.userInfo['time_zone']; }));
                _this.profileFrm.controls['language'].setValue(_this.languageOption.find(function (l) { return l.code === _this.userInfo['lang']; }));
                _this.profileFrm.controls['twoFA'].setValue(_this.userInfo['factor_authen']);
                _this.profileFrm.controls['notifyAccountChange'].setValue(parseInt(_this.userInfo['notification_flag'].charAt(0)) === 1);
                _this.profileFrm.controls['notifyFileProtectedExp'].setValue(parseInt(_this.userInfo['notification_flag'].charAt(1)) === 1);
                _this.originData = tslib_1.__assign({}, _this.profileFrm.value);
                _this.checkValueChanges();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
        });
        this.teamService.getTeamInfo(this.authUser.team_id).subscribe(function (res) {
            if (res.status == 200) {
                _this.canChangeTwoFA = res.data.enable_two_factor;
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
        });
    };
    MyAccountComponent.prototype.generatePinCode = function () {
        var _this = this;
        this.authenticateService.generatePinCode().subscribe(function (res) {
            if (res.status === 200) {
                _this.loadData();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
        });
    };
    MyAccountComponent.prototype.doUpdateInfo = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submitting = true;
        var notifyFlag = [];
        notifyFlag.push(this.profileFrm.controls['notifyAccountChange'].value ? 1 : 0);
        notifyFlag.push(this.profileFrm.controls['notifyFileProtectedExp'].value ? 1 : 0);
        var params = {
            first_name: this.profileFrm.controls['firstName'].value,
            last_name: this.profileFrm.controls['lastName'].value,
            time_zone: this.profileFrm.controls['timezone'].value.code,
            language: this.profileFrm.controls['language'].value.code,
            notification_flag: notifyFlag.join(''),
            factor_authen: this.profileFrm.controls['twoFA'].value,
            team_id: this.authUser.team_id,
            user_id: this.authUser.user_id,
            is_info: true
        };
        this.memberService.updateUser(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.originData = tslib_1.__assign({}, _this.profileFrm.value);
                _this.isChange = false;
                if (_this.isChangeLanguage) {
                    window.location.reload();
                }
                else {
                    _this.loadData();
                }
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submitting = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    MyAccountComponent.prototype.confirmChangeEmail = function () {
        var _this = this;
        this.submittingChangeEmail = false;
        this.confirmationService.confirm({
            message: this.utils.translate('message.change_email.msg'),
            header: this.utils.translate('message.change_email.title'),
            icon: 'pi pi-exclamation-triangle',
            accept: function () {
                _this.submittingChangeEmail = true;
                _this.authenticateService.changeEmailRequest().subscribe(function (res) {
                    if (res.status === 200) {
                        _this.messageService.add({
                            key: 'toast',
                            severity: 'success',
                            detail: _this.utils.translate('message.change_email.success')
                        });
                    }
                    _this.submittingChangeEmail = false;
                });
            }
        });
    };
    MyAccountComponent.prototype.doBack = function () {
        this.location.back();
    };
    MyAccountComponent.prototype.confirmChangePassword = function () {
        var _this = this;
        var params = {
            team_id: this.authUser.team_id,
            type: 3,
        };
        this.teamSettingService.getTeamSettingByType(params).subscribe(function (res) {
            if (res.status === 200) {
                var passwordPolicies = JSON.parse(res.data.password_setting);
                _this.pw_max_length = passwordPolicies.max;
                _this.passwordPattern = new RegExp(passwordPolicies.regex);
                _this.utils.getPasswordPolicyError(passwordPolicies, function (response) {
                    _this.notificationError = response;
                });
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
                _this.doBack();
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
        this.displayChangePassModal = true;
        if (!this.submittingChangePassword) {
            this.changePassFrm.reset();
        }
    };
    MyAccountComponent.prototype.doChangePassword = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submittingChangePassword = true;
        var params = {
            user_id: this.authUser.user_id,
            current_password: this.changePassFrm.value.currentPassword,
            new_password: this.changePassFrm.value.password,
            confirm_password: this.changePassFrm.value.confirmPassword,
        };
        this.memberService.userChangePassword(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
                _this.changePassFrm.reset();
                _this.displayChangePassModal = false;
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submittingChangePassword = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submittingChangePassword = false;
        });
    };
    MyAccountComponent.ɵfac = function MyAccountComponent_Factory(t) { return new (t || MyAccountComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.MessageService), i0.ɵɵdirectiveInject(i3.Location), i0.ɵɵdirectiveInject(i4.MemberService), i0.ɵɵdirectiveInject(i5.TeamSettingService), i0.ɵɵdirectiveInject(i6.TeamService), i0.ɵɵdirectiveInject(i7.UtilsService), i0.ɵɵdirectiveInject(i2.ConfirmationService), i0.ɵɵdirectiveInject(i8.AuthenticateService)); };
    MyAccountComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MyAccountComponent, selectors: [["app-my-account"]], features: [i0.ɵɵProvidersFeature([api_1.ConfirmationService])], decls: 87, vars: 81, consts: [[1, "margin-body"], [1, "p-text-secondary", "header-custom"], ["styleClass", "toolbar-custom"], ["pTemplate", "left"], [3, "formGroup", "ngSubmit"], [1, "p-shadow-8", "p-card", "p-p-3"], [1, "p-col-12", "p-grid"], [1, "p-col-12"], [1, "p-text-small", "p-mb-1", "p-d-block", "p-text-bold"], [1, "p-text-bold"], [1, "p-badge", "p-badge-primary", "p-mt-2"], ["class", "p-col-12 p-md-6 display-grid", 4, "ngIf"], [1, "p-col-12", "p-md-6", "display-grid"], ["for", "firstname", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "firstname", "type", "text", "required", "", "maxlength", "64", "formControlName", "firstName", "pInputText", "", 3, "ngClass"], ["class", "p-invalid", 4, "ngIf"], [1, "p-col-12", "p-md-6"], ["for", "timezone", 1, "p-text-small", "p-mb-1", "p-d-block", "p-text-bold"], ["id", "timezone", "formControlName", "timezone", "optionLabel", "name", 3, "options"], ["class", "p-col-12 p-md-6", 4, "ngIf"], [1, "p-mb-2"], [1, "p-text-bold", "p-text-secondary"], [1, "p-field-checkbox"], ["name", "notifyAccountChange", "binary", "true", "formControlName", "notifyAccountChange", "inputId", "notifyAccountChange"], ["for", "notifyAccountChange", 1, "cs-pointer"], ["name", "notifyFileProtectedExp", "binary", "true", "formControlName", "notifyFileProtectedExp", "inputId", "notifyFileProtectedExp"], ["for", "notifyFileProtectedExp", 1, "cs-pointer"], ["name", "twoFA", "binary", "true", "formControlName", "twoFA", "inputId", "twoFA", 3, "ngClass", "disabled"], ["for", "twoFA", 3, "ngClass"], ["for", "twoFA", "class", "p-text-italic cs-not-allowed", 4, "ngIf"], [1, "p-grid"], [1, "p-col-12", "p-lg-6"], [1, "p-field"], [1, "p-field", "display-grid"], ["for", "language", 1, "p-text-small", "p-text-bold"], ["id", "language", "formControlName", "language", "optionLabel", "name", 3, "options"], [1, "p-col-12", "p-text-right", "p-py-0"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", 3, "label", "click"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled"], [4, "ngIf"], ["styleClass", "custom-dialog", "position", "left", 3, "header", "visible", "modal", "draggable", "resizable", "baseZIndex", "visibleChange"], ["pTemplate", "body"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-times p-button-icon-left", 1, "p-button-raised", "p-button-secondary", "p-button-outlined", "p-mr-2", 3, "label", "click"], ["pButton", "", "pRipple", "", "icon", "pi pi-save p-button-icon-left", "type", "submit", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled", "click"], ["styleClass", "md-dialog", "position", "left", "rejectButtonStyleClass", "p-button-text", 3, "baseZIndex"], ["pButton", "", "pRipple", "", "icon", "pi pi-cog p-button-icon-left", 1, "p-button-raised", "p-button-primary", "p-mr-2", 3, "label", "click"], ["icon", "pi pi-cog p-button-icon-left", "pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-primary", "p-mr-2", 3, "label", "click"], ["for", "lastname-ja", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "lastname-ja", "type", "text", "required", "", "maxlength", "64", "formControlName", "lastName", "pInputText", "", 3, "ngClass"], [1, "p-invalid"], ["for", "lastname", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "lastname", "type", "text", "required", "", "maxlength", "64", "formControlName", "lastName", "pInputText", "", 3, "ngClass"], ["class", "p-text-bold", 4, "ngIf"], ["class", "p-button-raised p-button-primary p-mr-2", "pButton", "", "pRipple", "", 3, "label", "click", 4, "ngIf"], [1, "p-badge", "p-badge-info", "p-mt-2"], ["pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-primary", "p-mr-2", 3, "label", "click"], ["for", "twoFA", 1, "p-text-italic", "cs-not-allowed"], [1, "pi", "pi-save", "p-button-icon-left"], [1, "pi", "pi-spin", "pi-spinner", "p-button-icon-left"], [3, "formGroup"], ["for", "current-password", 1, "p-text-small", "p-mb-1", "required", "p-d-block", "p-text-bold"], ["id", "current-password", "type", "password", "required", "", "maxlength", "64", "formControlName", "currentPassword", "pInputText", "", 1, "width-100", "p-col-12", 3, "ngClass"], ["class", "p-error", 4, "ngIf"], ["for", "password", 1, "p-text-small", "p-mb-1", "required", "p-d-block", "p-text-bold"], ["id", "password", "type", "password", "required", "", "formControlName", "password", "pInputText", "", 1, "width-100", "p-col-12", 3, "maxlength", "pattern", "ngClass"], ["for", "confirm-password", 1, "p-text-small", "p-mb-1", "required", "p-d-block", "p-text-bold"], ["id", "confirm-password", "type", "password", "required", "", "formControlName", "confirmPassword", "pInputText", "", 1, "width-100", "p-col-12", 3, "maxlength", "ngClass"], [1, "p-error"], [1, "pi", "pi-spin", "pi-spinner"]], template: function MyAccountComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "h2", 1);
            i0.ɵɵtext(2);
            i0.ɵɵpipe(3, "uppercase");
            i0.ɵɵpipe(4, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(5, "p-toolbar", 2);
            i0.ɵɵtemplate(6, MyAccountComponent_ng_template_6_Template, 6, 10, "ng-template", 3);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(7, "form", 4);
            i0.ɵɵlistener("ngSubmit", function MyAccountComponent_Template_form_ngSubmit_7_listener() { return ctx.doUpdateInfo(ctx.profileFrm.valid); });
            i0.ɵɵelementStart(8, "div", 5);
            i0.ɵɵelementStart(9, "div", 6);
            i0.ɵɵelementStart(10, "div", 7);
            i0.ɵɵelementStart(11, "label", 8);
            i0.ɵɵtext(12);
            i0.ɵɵpipe(13, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(14, "label", 9);
            i0.ɵɵelementStart(15, "span", 10);
            i0.ɵɵtext(16);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(17, MyAccountComponent_div_17_Template, 6, 5, "div", 11);
            i0.ɵɵelementStart(18, "div", 12);
            i0.ɵɵelementStart(19, "label", 13);
            i0.ɵɵtext(20);
            i0.ɵɵpipe(21, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(22, "input", 14);
            i0.ɵɵtemplate(23, MyAccountComponent_div_23_Template, 3, 2, "div", 15);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(24, MyAccountComponent_div_24_Template, 6, 5, "div", 11);
            i0.ɵɵelementStart(25, "div", 16);
            i0.ɵɵelementStart(26, "label", 17);
            i0.ɵɵtext(27);
            i0.ɵɵpipe(28, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(29, "p-dropdown", 18);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(30, MyAccountComponent_div_30_Template, 6, 5, "div", 19);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(31, "div", 7);
            i0.ɵɵelementStart(32, "div", 20);
            i0.ɵɵelementStart(33, "label", 21);
            i0.ɵɵtext(34);
            i0.ɵɵpipe(35, "uppercase");
            i0.ɵɵpipe(36, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(37, "div", 22);
            i0.ɵɵelement(38, "p-checkbox", 23);
            i0.ɵɵelementStart(39, "label", 24);
            i0.ɵɵtext(40);
            i0.ɵɵpipe(41, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(42, "div", 22);
            i0.ɵɵelement(43, "p-checkbox", 25);
            i0.ɵɵelementStart(44, "label", 26);
            i0.ɵɵtext(45);
            i0.ɵɵpipe(46, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(47, "div", 22);
            i0.ɵɵelement(48, "p-checkbox", 27);
            i0.ɵɵelementStart(49, "label", 28);
            i0.ɵɵtext(50);
            i0.ɵɵpipe(51, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(52, MyAccountComponent_label_52_Template, 3, 3, "label", 29);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(53, "div", 7);
            i0.ɵɵelementStart(54, "div", 20);
            i0.ɵɵelementStart(55, "label", 21);
            i0.ɵɵtext(56);
            i0.ɵɵpipe(57, "uppercase");
            i0.ɵɵpipe(58, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(59, "div", 30);
            i0.ɵɵelementStart(60, "div", 31);
            i0.ɵɵelementStart(61, "div", 32);
            i0.ɵɵelementStart(62, "div", 33);
            i0.ɵɵelementStart(63, "label", 34);
            i0.ɵɵtext(64);
            i0.ɵɵpipe(65, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(66, "p-dropdown", 35);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(67, "div", 36);
            i0.ɵɵelementStart(68, "button", 37);
            i0.ɵɵlistener("click", function MyAccountComponent_Template_button_click_68_listener() { return ctx.doBack(); });
            i0.ɵɵpipe(69, "titlecase");
            i0.ɵɵpipe(70, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(71, "button", 38);
            i0.ɵɵpipe(72, "translate");
            i0.ɵɵtemplate(73, MyAccountComponent_span_73_Template, 2, 0, "span", 39);
            i0.ɵɵtemplate(74, MyAccountComponent_span_74_Template, 2, 0, "span", 39);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(75, "p-dialog", 40);
            i0.ɵɵlistener("visibleChange", function MyAccountComponent_Template_p_dialog_visibleChange_75_listener($event) { return ctx.displayChangePassModal = $event; });
            i0.ɵɵpipe(76, "titlecase");
            i0.ɵɵpipe(77, "translate");
            i0.ɵɵtemplate(78, MyAccountComponent_ng_template_78_Template, 23, 19, "ng-template", 41);
            i0.ɵɵelementStart(79, "p-footer");
            i0.ɵɵelementStart(80, "button", 42);
            i0.ɵɵlistener("click", function MyAccountComponent_Template_button_click_80_listener() { return ctx.displayChangePassModal = false; });
            i0.ɵɵpipe(81, "titlecase");
            i0.ɵɵpipe(82, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(83, "button", 43);
            i0.ɵɵlistener("click", function MyAccountComponent_Template_button_click_83_listener() { return ctx.doChangePassword(ctx.changePassFrm.valid); });
            i0.ɵɵpipe(84, "translate");
            i0.ɵɵtemplate(85, MyAccountComponent_span_85_Template, 2, 0, "span", 39);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelement(86, "p-confirmDialog", 44);
        } if (rf & 2) {
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 39, i0.ɵɵpipeBind1(4, 41, "header.my_account.account_info")), " ");
            i0.ɵɵadvance(5);
            i0.ɵɵproperty("formGroup", ctx.profileFrm);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 43, "label.common.mail_address"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(ctx.authUser.mail_address);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.authUser.lang === "ja");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 45, "label.common.first_name"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngClass", (ctx.profileFrm.controls["firstName"].touched || ctx.profileFrm.controls["firstName"].dirty) && ctx.profileFrm.controls["firstName"].invalid ? "p-invalid" : "");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", (ctx.profileFrm.controls["firstName"].touched || ctx.profileFrm.controls["firstName"].dirty) && ctx.profileFrm.controls["firstName"].errors);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.authUser.lang !== "ja");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 47, "label.timezone"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("options", ctx.timezoneOption);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isUseSDGlobal);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(35, 49, i0.ɵɵpipeBind1(36, 51, "label.email_notify")), " ");
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(41, 53, "label.user_setting.email_notification.account_change"), " ");
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(46, 55, "label.user_setting.email_notification.encode_file_expired"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngClass", ctx.canChangeTwoFA ? "cs-not-allowed" : "")("disabled", ctx.canChangeTwoFA);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngClass", ctx.canChangeTwoFA ? "cs-not-allowed" : "cs-pointer");
            i0.ɵɵadvance(1);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(51, 57, "label.user_setting.email_notification.security_auth"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.canChangeTwoFA);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(57, 59, i0.ɵɵpipeBind1(58, 61, "header.my_account.language")), " ");
            i0.ɵɵadvance(8);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(65, 63, "label.language"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("options", ctx.languageOption);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(69, 65, i0.ɵɵpipeBind1(70, 67, "button.back")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(72, 69, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.profileFrm.valid || ctx.submitting || !ctx.isChange);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.submitting);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.submitting);
            i0.ɵɵadvance(1);
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(76, 71, i0.ɵɵpipeBind1(77, 73, "message.change_password")));
            i0.ɵɵproperty("visible", ctx.displayChangePassModal)("modal", true)("draggable", false)("resizable", false)("baseZIndex", 10000);
            i0.ɵɵadvance(5);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(81, 75, i0.ɵɵpipeBind1(82, 77, "button.cancel")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(84, 79, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.changePassFrm.valid || ctx.submittingChangePassword);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.submittingChangePassword);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("baseZIndex", 10000);
        } }, directives: [i9.Toolbar, i2.PrimeTemplate, i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i3.NgIf, i1.DefaultValueAccessor, i1.RequiredValidator, i1.MaxLengthValidator, i1.NgControlStatus, i1.FormControlName, i10.InputText, i3.NgClass, i11.Dropdown, i12.Checkbox, i13.ButtonDirective, i14.Ripple, i15.Dialog, i2.Footer, i16.ConfirmDialog, i1.PatternValidator], pipes: [i3.UpperCasePipe, i17.TranslatePipe, i3.TitleCasePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vbXktYWNjb3VudC9teS1hY2NvdW50LmNvbXBvbmVudC5zY3NzIn0= */"] });
    return MyAccountComponent;
}());
exports.MyAccountComponent = MyAccountComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(MyAccountComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-my-account',
                templateUrl: './my-account.component.html',
                styleUrls: ['./my-account.component.scss'],
                providers: [api_1.ConfirmationService]
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.MessageService }, { type: i3.Location }, { type: i4.MemberService }, { type: i5.TeamSettingService }, { type: i6.TeamService }, { type: i7.UtilsService }, { type: i2.ConfirmationService }, { type: i8.AuthenticateService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/package-item/package-item.component.ts":
/*!*******************************************************************!*\
  !*** ./src/app/team-admin/package-item/package-item.component.ts ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PackageItemComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var pricing_utils_1 = __webpack_require__(/*! ../../shared/pricing.utils */ "./src/app/shared/pricing.utils.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function PackageItemComponent_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 15);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.package.current_plan"), " ");
} }
function PackageItemComponent_span_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 16);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "label.package.per_user_per_month"));
} }
function PackageItemComponent_ul_14_li_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "li");
    i0.ɵɵelement(1, "i", 19);
    i0.ɵɵelementStart(2, "span");
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var feature_r8 = ctx.$implicit;
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(feature_r8);
} }
function PackageItemComponent_ul_14_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "ul", 17);
    i0.ɵɵtemplate(1, PackageItemComponent_ul_14_li_1_Template, 4, 1, "li", 18);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r2.features);
} }
function PackageItemComponent_button_16_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "button", 20);
    i0.ɵɵpipe(1, "translate");
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, "label.package.current_plan"));
} }
function PackageItemComponent_button_17_Template(rf, ctx) { if (rf & 1) {
    var _r10 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 21);
    i0.ɵɵlistener("click", function PackageItemComponent_button_17_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); var ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.selectPackage(); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵproperty("label", i0.ɵɵpipeBind1(1, 1, "label.package.cancel_downgrade_plan"));
} }
function PackageItemComponent_button_18_Template(rf, ctx) { if (rf & 1) {
    var _r12 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 22);
    i0.ɵɵlistener("click", function PackageItemComponent_button_18_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.selectPackage(); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵproperty("label", i0.ɵɵpipeBind1(1, 2, "label.package.downgrade_plan"))("disabled", ctx_r5.isCannotDowngradeFreeOrPersonalPackage());
} }
function PackageItemComponent_button_19_Template(rf, ctx) { if (rf & 1) {
    var _r14 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 23);
    i0.ɵɵlistener("click", function PackageItemComponent_button_19_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.selectPackage(); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵproperty("label", i0.ɵɵpipeBind1(1, 1, "label.package.upgrade_plan"));
} }
var _c0 = function (a0, a1, a2) { return { "popular": a0, "current": a1, "downgrade": a2 }; };
var _c1 = function (a0) { return { minUser: a0 }; };
var PackageItemComponent = /** @class */ (function () {
    function PackageItemComponent() {
        this.packageName = 'STARTER';
        this.price = 5.6;
        this.currency = 'USD';
        this.billingCycle = 'MONTHLY';
        this.minimumUser = 5;
        this.features = [];
        this.isPopular = false;
        this.isCurrentPlan = false;
        this.buttonText = 'Choose plan';
        this.type = 'SECURE_DRIVE';
        this.currentUserCount = 0;
        this.currentMinimumUsers = 0;
        this.teamPaymentInfo = null;
        this.packageSelected = new core_1.EventEmitter();
        this.downgradeRequested = new core_1.EventEmitter();
        this.cancelDowngradeRequested = new core_1.EventEmitter();
        this.packageDetail = null;
    }
    PackageItemComponent.prototype.ngOnInit = function () {
        var _a;
        this.packageDetail = ((_a = this.authUser) === null || _a === void 0 ? void 0 : _a.package_object) || null;
    };
    PackageItemComponent.prototype.isCannotDowngradeFreeOrPersonalPackage = function () {
        var _a, _b;
        var currentPackageCode = (_b = (_a = this.packageDetail) === null || _a === void 0 ? void 0 : _a.code) === null || _b === void 0 ? void 0 : _b.toUpperCase();
        // Check if the current package is BUSINESS or TEAM
        if (currentPackageCode === 'BUSINESS' || currentPackageCode === 'TEAM') {
            // Cannot downgrade to FREE or PERSONAL
            return this.code === 'FREE' || this.code === 'PERSONAL';
        }
        // Check if the current package is PERSONAL
        // Can downgrade to FREE
        return false;
    };
    PackageItemComponent.prototype.selectPackage = function () {
        if (this.isCurrentPlan) {
            return;
        }
        if (this.isCurrentDowngradePackage()) {
            this.cancelDowngradeRequested.emit({
                code: this.code,
                billingCycle: this.billingCycle,
                currency: this.currency,
                consoleType: this.type,
            });
            return;
        }
        if (this.minimumUser <= this.currentMinimumUsers && this.isDowngrade()) {
            this.downgradeRequested.emit({
                id: this.packageId,
                code: this.code,
                name: this.packageName,
                currency: this.currency,
                minimumUser: this.minimumUser,
                consoleType: this.type,
            });
        }
        else {
            this.packageSelected.emit({
                id: this.packageId,
                consoleType: this.type,
            });
        }
    };
    // Helper method to get the currency symbol based on the currency code
    PackageItemComponent.prototype.getCurrencySymbol = function () {
        switch (this.currency) {
            case 'USD':
                return '$';
            case 'YEN':
                return '¥';
            case 'VND':
                return '₫';
            default:
                return '$';
        }
    };
    PackageItemComponent.prototype.isDisabledFreeOrPersonal = function () {
        var isDisabledDowFreeOrPersonal = this.code === 'FREE' || this.code === 'PERSONAL';
        return isDisabledDowFreeOrPersonal || this.isCurrentPlan;
    };
    PackageItemComponent.prototype.isDowngrade = function () {
        //--------------------------------
        //HOT FIX: OLD LOGIC
        //--------------------------------
        // const currentPackageCode = this.packageDetail?.code?.toUpperCase();
        // let isUserDowngrade = false;
        // let isBillingCycleDowngrade = false;
        // // Case 1: Check if the package is not the current plan and has a lower minimum user count
        // if (currentPackageCode === 'PERSONAL') {
        //   isUserDowngrade =
        //     !this.isCurrentPlan &&
        //     this.minimumUser <= this.currentMinimumUsers
        //     // &&
        //     // this.packageDetail?.billing_cycle === 'ANNUALLY' &&
        //     // this.billingCycle === 'MONTHLY';
        // } else {
        //   isUserDowngrade =
        //     !this.isCurrentPlan && this.minimumUser < this.currentMinimumUsers;
        //   // Case 2: Check if it's a downgrade from the same package code and billing cycle
        //   // to a different billing cycle (from ANNUALLY to MONTHLY)
        //   isBillingCycleDowngrade =
        //     this.code === this.packageDetail?.code &&
        //     this.packageDetail?.billing_cycle === 'ANNUALLY' &&
        //     this.billingCycle === 'MONTHLY';
        // }
        // return isUserDowngrade || isBillingCycleDowngrade;
        var _a, _b, _c;
        //--------------------------------
        //HOT FIX: NEW LOGIC
        //--------------------------------
        // Base on file pricing.utils.ts, we can get the package level
        // If the selected package level is lower than the current package level, it is a downgrade
        // If the selected package level is the same as the current package level, we need to check if the billing cycle is different
        // If the billing cycle is different, it is a downgrade
        // If the billing cycle is the same, it is not a downgrade
        var currentLevel = pricing_utils_1.getPackageLevel((_a = this.packageDetail) === null || _a === void 0 ? void 0 : _a.code);
        // Get the selected package level
        var selectedLevel = pricing_utils_1.getPackageLevel(this.code);
        // Case 1: Downgrade package level
        if (selectedLevel < currentLevel) {
            return true;
        }
        // Case 2: Downgrade billing cycle (same package)
        return this.code === ((_b = this.packageDetail) === null || _b === void 0 ? void 0 : _b.code) &&
            ((_c = this.packageDetail) === null || _c === void 0 ? void 0 : _c.billing_cycle) === 'ANNUALLY' &&
            this.billingCycle === 'MONTHLY';
    };
    PackageItemComponent.prototype.isCurrentDowngradePackage = function () {
        var _a;
        return this.packageId === ((_a = this.teamPaymentInfo) === null || _a === void 0 ? void 0 : _a.downgrade_package_id);
    };
    PackageItemComponent.ɵfac = function PackageItemComponent_Factory(t) { return new (t || PackageItemComponent)(); };
    PackageItemComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PackageItemComponent, selectors: [["app-package-item"]], inputs: { authUser: "authUser", packageId: "packageId", code: "code", packageName: "packageName", price: "price", currency: "currency", billingCycle: "billingCycle", minimumUser: "minimumUser", features: "features", isPopular: "isPopular", isCurrentPlan: "isCurrentPlan", buttonText: "buttonText", type: "type", currentUserCount: "currentUserCount", currentMinimumUsers: "currentMinimumUsers", teamPaymentInfo: "teamPaymentInfo" }, outputs: { packageSelected: "packageSelected", downgradeRequested: "downgradeRequested", cancelDowngradeRequested: "cancelDowngradeRequested" }, decls: 20, vars: 21, consts: [[1, "package-card", "p-shadow-2", 3, "ngClass"], ["class", "current-plan-badge", 4, "ngIf"], [1, "package-header"], [1, "package-name"], [1, "package-price"], [1, "currency"], [1, "price"], ["class", "period", 4, "ngIf"], [1, "package-users"], ["class", "package-features", 4, "ngIf"], [1, "package-action"], ["pButton", "", "type", "button", "class", "p-button-success", "disabled", "", 3, "label", 4, "ngIf"], ["pButton", "", "type", "button", "class", "p-button-danger", 3, "label", "click", 4, "ngIf"], ["pButton", "", "type", "button", "class", "p-button-warning", 3, "label", "disabled", "click", 4, "ngIf"], ["pButton", "", "type", "button", "class", "p-button-primary", 3, "label", "click", 4, "ngIf"], [1, "current-plan-badge"], [1, "period"], [1, "package-features"], [4, "ngFor", "ngForOf"], [1, "pi", "pi-check"], ["pButton", "", "type", "button", "disabled", "", 1, "p-button-success", 3, "label"], ["pButton", "", "type", "button", 1, "p-button-danger", 3, "label", "click"], ["pButton", "", "type", "button", 1, "p-button-warning", 3, "label", "disabled", "click"], ["pButton", "", "type", "button", 1, "p-button-primary", 3, "label", "click"]], template: function PackageItemComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵtemplate(1, PackageItemComponent_div_1_Template, 3, 3, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "h3", 3);
            i0.ɵɵtext(4);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(5, "div", 4);
            i0.ɵɵelementStart(6, "span", 5);
            i0.ɵɵtext(7);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(8, "span", 6);
            i0.ɵɵtext(9);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(10, PackageItemComponent_span_10_Template, 3, 3, "span", 7);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(11, "div", 8);
            i0.ɵɵtext(12);
            i0.ɵɵpipe(13, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(14, PackageItemComponent_ul_14_Template, 2, 1, "ul", 9);
            i0.ɵɵelementStart(15, "div", 10);
            i0.ɵɵtemplate(16, PackageItemComponent_button_16_Template, 2, 3, "button", 11);
            i0.ɵɵtemplate(17, PackageItemComponent_button_17_Template, 2, 3, "button", 12);
            i0.ɵɵtemplate(18, PackageItemComponent_button_18_Template, 2, 4, "button", 13);
            i0.ɵɵtemplate(19, PackageItemComponent_button_19_Template, 2, 3, "button", 14);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(15, _c0, ctx.isPopular, ctx.isCurrentPlan, ctx.isDowngrade()));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isCurrentPlan);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate(ctx.packageName);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate(ctx.getCurrencySymbol());
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate(ctx.price);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.billingCycle);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(13, 12, "label.package.minimum_user", i0.ɵɵpureFunction1(19, _c1, ctx.minimumUser)), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.features && ctx.features.length > 0);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.isCurrentPlan);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isCurrentDowngradePackage());
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.isCurrentPlan && ctx.isDowngrade() && !ctx.isCurrentDowngradePackage());
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", !ctx.isCurrentPlan && !ctx.isDowngrade() && !ctx.isCurrentDowngradePackage());
        } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, i2.ButtonDirective], pipes: [i3.TranslatePipe], styles: [".package-card[_ngcontent-%COMP%] {\n  background-color: white;\n  border-radius: 8px;\n  padding: 1.5rem;\n  position: relative;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  transition: transform 0.3s;\n}\n.package-card[_ngcontent-%COMP%]:hover {\n  transform: translateY(-5px);\n}\n.popular-badge[_ngcontent-%COMP%] {\n  position: absolute;\n  top: -10px;\n  right: 10px;\n  background-color: #0057e7;\n  color: white;\n  padding: 0.25rem 0.75rem;\n  border-radius: 12px;\n  font-size: 0.75rem;\n  font-weight: bold;\n}\n.current-plan-badge[_ngcontent-%COMP%] {\n  position: absolute;\n  top: -10px;\n  right: 10px;\n  background-color: #28a745;\n  color: white;\n  padding: 0.25rem 0.75rem;\n  border-radius: 12px;\n  font-size: 0.75rem;\n  font-weight: bold;\n}\n.downgrade-badge[_ngcontent-%COMP%] {\n  position: absolute;\n  top: 10px;\n  right: 10px;\n  background-color: #FFA500;\n  color: white;\n  padding: 5px 10px;\n  font-size: 0.8rem;\n  border-radius: 4px;\n  font-weight: 600;\n  text-transform: uppercase;\n}\n.package-header[_ngcontent-%COMP%] {\n  margin-bottom: 1.5rem;\n  text-align: center;\n}\n.package-header[_ngcontent-%COMP%]   .package-name[_ngcontent-%COMP%] {\n  font-size: 1.5rem;\n  font-weight: 600;\n  color: #495057;\n  margin: 0;\n}\n.package-price[_ngcontent-%COMP%] {\n  text-align: center;\n  margin-bottom: 1rem;\n}\n.package-price[_ngcontent-%COMP%]   .currency[_ngcontent-%COMP%] {\n  font-size: 1.5rem;\n  font-weight: 600;\n  vertical-align: super;\n}\n.package-price[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%] {\n  font-size: 2.5rem;\n  font-weight: 700;\n  color: #0057e7;\n}\n.package-price[_ngcontent-%COMP%]   .period[_ngcontent-%COMP%] {\n  display: block;\n  font-size: 0.9rem;\n  color: #6c757d;\n}\n.package-users[_ngcontent-%COMP%] {\n  text-align: center;\n  margin-bottom: 1.5rem;\n  font-size: 0.95rem;\n  color: #6c757d;\n}\n.package-features[_ngcontent-%COMP%] {\n  list-style: none;\n  padding: 0;\n  margin-bottom: 1.5rem;\n  flex-grow: 1;\n}\n.package-features[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] {\n  display: flex;\n  margin-bottom: 0.5rem;\n  align-items: center;\n}\n.package-features[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {\n  color: #28a745;\n  margin-right: 0.5rem;\n}\n.package-features[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {\n  font-size: 0.95rem;\n}\n.package-action[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n  width: 100%;\n  border-radius: 8px;\n}\n.warning-text[_ngcontent-%COMP%] {\n  color: #dc3545;\n  font-weight: 600;\n}\n/*# sourceMappingURL=data:application/json;base64,  */"] });
    return PackageItemComponent;
}());
exports.PackageItemComponent = PackageItemComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PackageItemComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-package-item',
                templateUrl: './package-item.component.html',
                styleUrls: ['./package-item.component.scss'],
            }]
    }], function () { return []; }, { authUser: [{
            type: core_1.Input
        }], packageId: [{
            type: core_1.Input
        }], code: [{
            type: core_1.Input
        }], packageName: [{
            type: core_1.Input
        }], price: [{
            type: core_1.Input
        }], currency: [{
            type: core_1.Input
        }], billingCycle: [{
            type: core_1.Input
        }], minimumUser: [{
            type: core_1.Input
        }], features: [{
            type: core_1.Input
        }], isPopular: [{
            type: core_1.Input
        }], isCurrentPlan: [{
            type: core_1.Input
        }], buttonText: [{
            type: core_1.Input
        }], type: [{
            type: core_1.Input
        }], currentUserCount: [{
            type: core_1.Input
        }], currentMinimumUsers: [{
            type: core_1.Input
        }], teamPaymentInfo: [{
            type: core_1.Input
        }], packageSelected: [{
            type: core_1.Output
        }], downgradeRequested: [{
            type: core_1.Output
        }], cancelDowngradeRequested: [{
            type: core_1.Output
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/package-list/package-list.component.ts":
/*!*******************************************************************!*\
  !*** ./src/app/team-admin/package-list/package-list.component.ts ***!
  \*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PackageListComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var operators_1 = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/pricing-package.service */ "./src/app/shared/services/pricing-package.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/team-payment.service */ "./src/app/shared/services/team-payment.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! primeng/toast */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-toast.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! ../package-item/package-item.component */ "./src/app/team-admin/package-item/package-item.component.ts"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function PackageListComponent_ng_container_15_div_1_Template(rf, ctx) { if (rf & 1) {
    var _r8 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 20);
    i0.ɵɵelementStart(1, "app-package-item", 21);
    i0.ɵɵlistener("packageSelected", function PackageListComponent_ng_container_15_div_1_Template_app_package_item_packageSelected_1_listener($event) { i0.ɵɵrestoreView(_r8); var ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7.onPackageSelected($event); })("downgradeRequested", function PackageListComponent_ng_container_15_div_1_Template_app_package_item_downgradeRequested_1_listener($event) { i0.ɵɵrestoreView(_r8); var ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.showDowngradeWarning($event); })("cancelDowngradeRequested", function PackageListComponent_ng_container_15_div_1_Template_app_package_item_cancelDowngradeRequested_1_listener($event) { i0.ɵɵrestoreView(_r8); var ctx_r10 = i0.ɵɵnextContext(2); return ctx_r10.showCancelDowngradeWarning($event); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var packageItem_r5 = i0.ɵɵnextContext().$implicit;
    var ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("authUser", ctx_r6.authUser)("packageId", packageItem_r5.id)("code", packageItem_r5.code)("type", packageItem_r5.type)("packageName", packageItem_r5.name)("price", packageItem_r5.price)("currency", packageItem_r5.currency)("billingCycle", packageItem_r5.billing_cycle)("minimumUser", packageItem_r5.minimum_user)("isCurrentPlan", ctx_r6.authUser && ctx_r6.authUser.package_object && packageItem_r5.id === ctx_r6.authUser.package_object.pricing_package_id)("currentUserCount", (ctx_r6.authUser == null ? null : ctx_r6.authUser.team_settings == null ? null : ctx_r6.authUser.team_settings.total_number_of_user) || 0)("currentMinimumUsers", ctx_r6.currentPackageMinUsers)("teamPaymentInfo", ctx_r6.teamPaymentInfo);
} }
function PackageListComponent_ng_container_15_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵtemplate(1, PackageListComponent_ng_container_15_div_1_Template, 2, 13, "div", 19);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    var packageItem_r5 = ctx.$implicit;
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", packageItem_r5.billing_cycle === ctx_r0.billingCycle && (packageItem_r5 == null ? null : packageItem_r5.code) && (packageItem_r5 == null ? null : packageItem_r5.code) !== "ENTERPRISE");
} }
var _c0 = function () { return { width: "50px", height: "50px" }; };
function PackageListComponent_div_36_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 22);
    i0.ɵɵelement(1, "p-progressSpinner");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));
} }
function PackageListComponent_ng_template_37_Template(rf, ctx) { if (rf & 1) {
    var _r13 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 23);
    i0.ɵɵlistener("click", function PackageListComponent_ng_template_37_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); var ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.cancelDowngrade(); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(2, "button", 24);
    i0.ɵɵlistener("click", function PackageListComponent_ng_template_37_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r13); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.confirmDowngrade(); });
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 4, "label.cancel"));
    i0.ɵɵproperty("disabled", ctx_r2.loading);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(3, 6, "label.proceed_downgrade"));
    i0.ɵɵproperty("disabled", ctx_r2.loading);
} }
function PackageListComponent_div_53_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 22);
    i0.ɵɵelement(1, "p-progressSpinner");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵstyleMap(i0.ɵɵpureFunction0(2, _c0));
} }
function PackageListComponent_ng_template_54_Template(rf, ctx) { if (rf & 1) {
    var _r16 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 23);
    i0.ɵɵlistener("click", function PackageListComponent_ng_template_54_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r16); var ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.cancelCancelDowngrade(); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(2, "button", 25);
    i0.ɵɵlistener("click", function PackageListComponent_ng_template_54_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r16); var ctx_r17 = i0.ɵɵnextContext(); return ctx_r17.confirmCancelDowngrade(); });
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 4, "label.back"));
    i0.ɵɵproperty("disabled", ctx_r4.loading);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(3, 6, "label.confirm_cancel_downgrade"));
    i0.ɵɵproperty("disabled", ctx_r4.loading);
} }
var _c1 = function (a0, a1) { return { "p-button-primary": a0, "p-button-outlined": a1 }; };
var _c2 = function () { return { width: "450px" }; };
var PackageListComponent = /** @class */ (function () {
    function PackageListComponent(router, route, pricingPackageService, AuthenticateService, teamPaymentService, messageService) {
        this.router = router;
        this.route = route;
        this.pricingPackageService = pricingPackageService;
        this.AuthenticateService = AuthenticateService;
        this.teamPaymentService = teamPaymentService;
        this.messageService = messageService;
        this.packageList = [];
        this.isCurrentPlan = false;
        this.isAnnually = false;
        // Downgrade dialog variables
        this.showDowngradeDialog = false;
        this.selectedPackage = null;
        this.currentPackageMinUsers = 0;
        this.loading = false;
        this.showCancelDowngradeDialog = false;
        this.cancelDowngradePackage = null;
    }
    PackageListComponent.prototype.ngOnInit = function () {
        var _a, _b, _c, _d, _e;
        this.authUser = this.AuthenticateService.getAuthUser();
        console.log('Auth User:', this.authUser);
        this.packageId = this.route.snapshot.queryParams['packageId'];
        this.consoleType = this.route.snapshot.queryParams['console'];
        this.currency = this.route.snapshot.queryParams['currency'];
        this.billingCycle =
            ((_b = (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.package_object) === null || _b === void 0 ? void 0 : _b.billing_cycle) || 'MONTHLY';
        this.isAnnually = this.billingCycle === 'ANNUALLY';
        // Get the minimum users of the current package
        if ((_d = (_c = this.authUser) === null || _c === void 0 ? void 0 : _c.package_object) === null || _d === void 0 ? void 0 : _d.pricing_package_id) {
            this.getCurrentPackageDetail(this.authUser.package_object.pricing_package_id);
        }
        if (this.consoleType && this.currency && this.billingCycle) {
            this.getPagingPackages();
        }
        if ((_e = this.authUser) === null || _e === void 0 ? void 0 : _e.team_id) {
            this.getPaymentInfo(this.authUser.team_id);
        }
        else {
            console.error('No team ID found for the authenticated user');
        }
    };
    PackageListComponent.prototype.showCancelDowngradeWarning = function (packageData) {
        this.cancelDowngradePackage = packageData;
        this.showCancelDowngradeDialog = true;
    };
    PackageListComponent.prototype.cancelCancelDowngrade = function () {
        this.showCancelDowngradeDialog = false;
        this.cancelDowngradePackage = null;
    };
    PackageListComponent.prototype.confirmCancelDowngrade = function () {
        var _this = this;
        var _a;
        if (this.cancelDowngradePackage) {
            this.loading = true;
            console.log('this.cancelDowngradePackage', this.cancelDowngradePackage);
            var params = {
                teamId: (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_id,
                billingCycle: this.cancelDowngradePackage.billingCycle,
                code: this.cancelDowngradePackage.code,
                consoleType: this.cancelDowngradePackage.consoleType,
                currency: this.cancelDowngradePackage.currency || 'USD',
            };
            this.teamPaymentService
                .cancelDowngradeTeamPlan(params)
                .pipe(operators_1.finalize(function () {
                _this.loading = false;
                _this.showCancelDowngradeDialog = false;
            }))
                .subscribe(function (response) {
                var _a;
                if (response && response.status === 200) {
                    _this.messageService.add({
                        severity: 'success',
                        summary: 'Success',
                        detail: 'Your downgrade request has been canceled successfully',
                    });
                    // Refresh payment info to update UI
                    if ((_a = _this.authUser) === null || _a === void 0 ? void 0 : _a.team_id) {
                        _this.getPaymentInfo(_this.authUser.team_id);
                    }
                }
                else {
                    _this.messageService.add({
                        severity: 'error',
                        summary: 'Error',
                        detail: (response === null || response === void 0 ? void 0 : response.message) || 'Failed to cancel downgrade request',
                    });
                }
            }, function (error) {
                console.error('Error during cancel downgrade:', error);
                _this.messageService.add({
                    severity: 'error',
                    summary: 'Error',
                    detail: 'An error occurred while processing your request',
                });
            });
        }
    };
    PackageListComponent.prototype.getPaymentInfo = function (teamId) {
        var _this = this;
        this.teamPaymentService.getPaymentInfo(teamId).subscribe(function (response) {
            if (response && response.status === 200) {
                _this.teamPaymentInfo = response.data;
                console.log('Team payment info:', _this.teamPaymentInfo);
            }
            else {
                console.error('No data found in response');
            }
        }, function (error) {
            console.error('Error fetching package detail:', error);
        });
    };
    // Get package details
    PackageListComponent.prototype.getCurrentPackageDetail = function (packageId) {
        var _this = this;
        this.pricingPackageService.getPackageDetail(packageId).subscribe(function (response) {
            if (response && response.status === 200) {
                var packageDetail = response.data;
                _this.currentPackageMinUsers = packageDetail.minimum_user || 0;
            }
            else {
                console.error('Failed to get current package details');
            }
        }, function (error) {
            console.error('Error getting current package details:', error);
        });
    };
    // Handle billing cycle change
    PackageListComponent.prototype.onBillingCycleChange = function (event) {
        var newBillingCycle = event.checked ? 'ANNUALLY' : 'MONTHLY';
        this.switchBillingCycle(newBillingCycle);
    };
    // Handle switching billing cycle
    PackageListComponent.prototype.switchBillingCycle = function (cycle) {
        if (this.billingCycle !== cycle) {
            this.billingCycle = cycle;
            this.isAnnually = cycle === 'ANNUALLY';
            // Update the URL to reflect the change
            this.router.navigate([], {
                relativeTo: this.route,
                queryParams: { billingCycle: cycle },
                queryParamsHandling: 'merge',
            });
            // Get the updated packages based on the new billing cycle
            this.getPagingPackages();
        }
    };
    PackageListComponent.prototype.getPagingPackages = function () {
        var _this = this;
        var params = {
            console_types: this.consoleType,
            currency: this.currency,
            billing_cycle: this.billingCycle,
        };
        this.pricingPackageService.getPackages(params).subscribe(function (response) {
            if (response && response.data) {
                _this.packageList = response.data.content || [];
                _this.packageList.forEach(function (packageItem) {
                    _this.isCurrentPlan = _this.packageId === packageItem.id;
                });
            }
            else {
                console.error('No data found in response');
            }
        });
    };
    PackageListComponent.prototype.onPackageSelected = function (packageData) {
        this.router.navigate(['/checkout'], {
            queryParams: {
                packageId: packageData.id,
                consoleType: packageData.consoleType,
                billingCycle: this.billingCycle,
            },
        });
    };
    // Show downgrade warning dialog
    PackageListComponent.prototype.showDowngradeWarning = function (packageData) {
        this.selectedPackage = packageData;
        this.showDowngradeDialog = true;
    };
    // Cancel downgrade dialog
    PackageListComponent.prototype.cancelDowngrade = function () {
        this.showDowngradeDialog = false;
        this.selectedPackage = null;
    };
    // Confirm downgrade
    PackageListComponent.prototype.confirmDowngrade = function () {
        var _this = this;
        var _a;
        if (this.selectedPackage) {
            this.loading = true;
            var params = {
                teamId: (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_id,
                billingCycle: this.billingCycle,
                code: this.selectedPackage.code,
                consoleType: this.selectedPackage.consoleType,
                currency: this.currency || 'USD',
            };
            this.teamPaymentService
                .updateTeamPlan(params)
                .pipe(operators_1.finalize(function () {
                _this.loading = false;
                _this.showDowngradeDialog = false;
            }))
                .subscribe(function (response) {
                if (response && response.status === 200) {
                    _this.messageService.add({
                        severity: 'success',
                        summary: 'Success',
                        detail: 'Downgrade request has been processed successfully',
                    });
                    setTimeout(function () {
                        _this.router.navigate(['/team-admin/setting/billing']);
                    }, 1500);
                }
                else {
                    _this.messageService.add({
                        severity: 'error',
                        summary: 'Error',
                        detail: (response === null || response === void 0 ? void 0 : response.message) || 'Failed to process downgrade request',
                    });
                }
            }, function (error) {
                console.error('Error during downgrade:', error);
                _this.messageService.add({
                    severity: 'error',
                    summary: 'Error',
                    detail: 'An error occurred while processing your request',
                });
            });
        }
    };
    PackageListComponent.ɵfac = function PackageListComponent_Factory(t) { return new (t || PackageListComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i1.ActivatedRoute), i0.ɵɵdirectiveInject(i2.PricingPackageService), i0.ɵɵdirectiveInject(i3.AuthenticateService), i0.ɵɵdirectiveInject(i4.TeamPaymentService), i0.ɵɵdirectiveInject(i5.MessageService)); };
    PackageListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PackageListComponent, selectors: [["app-package-list"]], decls: 55, vars: 66, consts: [[1, "package-list-container"], [1, "package-list-wrapper"], [1, "package-list-header"], [1, "billing-cycle-toggle", "p-d-flex", "p-jc-center"], [1, "p-buttonset"], ["pButton", "", "type", "button", 3, "ngClass", "label", "click"], [1, "package-list-content"], [1, "p-grid"], [4, "ngFor", "ngForOf"], [3, "visible", "header", "modal", "closable", "draggable", "resizable", "visibleChange"], [1, "p-mt-3"], [1, "p-mb-3"], [1, "pi", "pi-exclamation-triangle", "p-mr-2", 2, "color", "#ffa500"], [1, "p-mb-1"], [1, "warning-text", "p-mb-3"], ["class", "p-d-flex p-jc-center p-mt-3", 4, "ngIf"], ["pTemplate", "footer"], [1, "pi", "pi-info-circle", "p-mr-2", 2, "color", "#3498db"], [1, "info-text", "p-mb-3"], ["class", "p-col-12 p-md-4 p-mb-3", 4, "ngIf"], [1, "p-col-12", "p-md-4", "p-mb-3"], [3, "authUser", "packageId", "code", "type", "packageName", "price", "currency", "billingCycle", "minimumUser", "isCurrentPlan", "currentUserCount", "currentMinimumUsers", "teamPaymentInfo", "packageSelected", "downgradeRequested", "cancelDowngradeRequested"], [1, "p-d-flex", "p-jc-center", "p-mt-3"], ["pButton", "", "type", "button", 1, "p-button-text", 3, "label", "disabled", "click"], ["pButton", "", "type", "button", 1, "p-button-danger", 3, "label", "disabled", "click"], ["pButton", "", "type", "button", 1, "p-button-info", 3, "label", "disabled", "click"]], template: function PackageListComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelement(1, "p-toast");
            i0.ɵɵelementStart(2, "div", 1);
            i0.ɵɵelementStart(3, "div", 2);
            i0.ɵɵelementStart(4, "h2");
            i0.ɵɵtext(5);
            i0.ɵɵpipe(6, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(7, "div", 3);
            i0.ɵɵelementStart(8, "div", 4);
            i0.ɵɵelementStart(9, "button", 5);
            i0.ɵɵlistener("click", function PackageListComponent_Template_button_click_9_listener() { return ctx.switchBillingCycle("MONTHLY"); });
            i0.ɵɵpipe(10, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(11, "button", 5);
            i0.ɵɵlistener("click", function PackageListComponent_Template_button_click_11_listener() { return ctx.switchBillingCycle("ANNUALLY"); });
            i0.ɵɵpipe(12, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(13, "div", 6);
            i0.ɵɵelementStart(14, "div", 7);
            i0.ɵɵtemplate(15, PackageListComponent_ng_container_15_Template, 2, 1, "ng-container", 8);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(16, "p-dialog", 9);
            i0.ɵɵlistener("visibleChange", function PackageListComponent_Template_p_dialog_visibleChange_16_listener($event) { return ctx.showDowngradeDialog = $event; });
            i0.ɵɵpipe(17, "translate");
            i0.ɵɵelementStart(18, "div", 10);
            i0.ɵɵelementStart(19, "p", 11);
            i0.ɵɵelement(20, "i", 12);
            i0.ɵɵtext(21);
            i0.ɵɵpipe(22, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(23, "p", 13);
            i0.ɵɵtext(24);
            i0.ɵɵpipe(25, "translate");
            i0.ɵɵelementStart(26, "strong");
            i0.ɵɵtext(27);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(28, "p", 11);
            i0.ɵɵtext(29);
            i0.ɵɵpipe(30, "translate");
            i0.ɵɵelementStart(31, "strong");
            i0.ɵɵtext(32);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(33, "p", 14);
            i0.ɵɵtext(34);
            i0.ɵɵpipe(35, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(36, PackageListComponent_div_36_Template, 2, 3, "div", 15);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(37, PackageListComponent_ng_template_37_Template, 4, 8, "ng-template", 16);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(38, "p-dialog", 9);
            i0.ɵɵlistener("visibleChange", function PackageListComponent_Template_p_dialog_visibleChange_38_listener($event) { return ctx.showCancelDowngradeDialog = $event; });
            i0.ɵɵpipe(39, "translate");
            i0.ɵɵelementStart(40, "div", 10);
            i0.ɵɵelementStart(41, "p", 11);
            i0.ɵɵelement(42, "i", 17);
            i0.ɵɵtext(43);
            i0.ɵɵpipe(44, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(45, "p", 11);
            i0.ɵɵtext(46);
            i0.ɵɵpipe(47, "translate");
            i0.ɵɵelementStart(48, "strong");
            i0.ɵɵtext(49);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(50, "p", 18);
            i0.ɵɵtext(51);
            i0.ɵɵpipe(52, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(53, PackageListComponent_div_53_Template, 2, 3, "div", 15);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(54, PackageListComponent_ng_template_54_Template, 4, 8, "ng-template", 16);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 34, ctx.consoleType === "SECURE_MAIL" ? "label.secure_mail_plan" : "label.secure_drive_plan"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(10, 36, "label.package.monthly"));
            i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(58, _c1, ctx.billingCycle === "MONTHLY", ctx.billingCycle !== "MONTHLY"));
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(12, 38, "label.package.annually"));
            i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(61, _c1, ctx.billingCycle === "ANNUALLY", ctx.billingCycle !== "ANNUALLY"));
            i0.ɵɵadvance(4);
            i0.ɵɵproperty("ngForOf", ctx.packageList);
            i0.ɵɵadvance(1);
            i0.ɵɵstyleMap(i0.ɵɵpureFunction0(64, _c2));
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(17, 40, "label.downgrade_warning"));
            i0.ɵɵproperty("visible", ctx.showDowngradeDialog)("modal", true)("closable", true)("draggable", false)("resizable", false);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(22, 42, "label.downgrade_warning_message"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 44, "label.current_users"), ": ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate((ctx.authUser == null ? null : ctx.authUser.team_settings == null ? null : ctx.authUser.team_settings.total_number_of_user) || 0);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 46, "label.min_users_in_plan"), ": ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate((ctx.selectedPackage == null ? null : ctx.selectedPackage.minimumUser) || 0);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(35, 48, "label.downgrade_remove_users_warning"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.loading);
            i0.ɵɵadvance(2);
            i0.ɵɵstyleMap(i0.ɵɵpureFunction0(65, _c2));
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(39, 50, "label.cancel_downgrade_title"));
            i0.ɵɵproperty("visible", ctx.showCancelDowngradeDialog)("modal", true)("closable", true)("draggable", false)("resizable", false);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(44, 52, "label.cancel_downgrade_message"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(47, 54, "label.cancel_downgrade_package"), ": ");
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate(ctx.cancelDowngradePackage == null ? null : ctx.cancelDowngradePackage.name);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(52, 56, "label.cancel_downgrade_info"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.loading);
        } }, directives: [i6.Toast, i7.ButtonDirective, i8.NgClass, i8.NgForOf, i9.Dialog, i8.NgIf, i5.PrimeTemplate, i10.PackageItemComponent], pipes: [i11.TranslatePipe], styles: ["@charset \"UTF-8\";\n[_nghost-%COMP%] {\n  display: block;\n  width: 100%;\n  height: 100%;\n}\n.package-list-container[_ngcontent-%COMP%] {\n  width: 100%;\n  height: 100%;\n  padding: 0;\n  margin: 0;\n  overflow-y: auto;\n}\n\n.package-list-wrapper[_ngcontent-%COMP%] {\n  display: flex;\n  flex-direction: column;\n  height: 100%;\n}\n\n.package-list-header[_ngcontent-%COMP%] {\n  padding: 1.5rem;\n}\n\n.package-list-content[_ngcontent-%COMP%] {\n  flex: 1;\n  padding: 1.5rem;\n  overflow-y: auto;\n}\n.billing-cycle-toggle[_ngcontent-%COMP%] {\n  margin-bottom: 2rem;\n  position: relative;\n  display: flex;\n  justify-content: flex-end;\n  align-items: center;\n  margin-right: 1.5rem;\n}\n.billing-cycle-toggle[_ngcontent-%COMP%]   .p-buttonset[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] {\n  min-width: 120px;\n  transition: all 0.2s;\n}\n.billing-cycle-toggle[_ngcontent-%COMP%]   .p-buttonset[_ngcontent-%COMP%]   button.p-button-primary[_ngcontent-%COMP%] {\n  background-color: #0057e7;\n  border-color: #0057e7;\n}\n.billing-cycle-toggle[_ngcontent-%COMP%]   .p-buttonset[_ngcontent-%COMP%]   button.p-button-outlined[_ngcontent-%COMP%] {\n  background-color: transparent;\n  color: #6c757d;\n  border-color: #dee2e6;\n}\n.billing-cycle-toggle[_ngcontent-%COMP%]   .p-buttonset[_ngcontent-%COMP%]   button.p-button-outlined[_ngcontent-%COMP%]:hover {\n  background-color: #f8f9fa;\n}\n[_nghost-%COMP%]     .p-inputswitch .p-inputswitch-slider {\n  background-color: #e9ecef;\n}\n[_nghost-%COMP%]     .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider {\n  background-color: #0057e7;\n}\n/*# sourceMappingURL=data:application/json;base64,  */"] });
    return PackageListComponent;
}());
exports.PackageListComponent = PackageListComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PackageListComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-package-list',
                templateUrl: './package-list.component.html',
                styleUrls: ['./package-list.component.scss'],
            }]
    }], function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.PricingPackageService }, { type: i3.AuthenticateService }, { type: i4.TeamPaymentService }, { type: i5.MessageService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/payment-card-form/payment-card-form.component.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/team-admin/payment-card-form/payment-card-form.component.ts ***!
  \*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PaymentCardFormComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var stripe_js_1 = __webpack_require__(/*! @stripe/stripe-js */ "./node_modules/@stripe/stripe-js/dist/stripe.esm.js");
var environment_1 = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
function PaymentCardFormComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "h3");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "label.add_payment_card"));
} }
function PaymentCardFormComponent_div_10_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelement(1, "small", 15);
    i0.ɵɵelementEnd();
} }
function PaymentCardFormComponent_div_10_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelement(1, "small", 16);
    i0.ɵɵelementEnd();
} }
function PaymentCardFormComponent_div_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 14);
    i0.ɵɵtemplate(1, PaymentCardFormComponent_div_10_div_1_Template, 2, 0, "div", 1);
    i0.ɵɵtemplate(2, PaymentCardFormComponent_div_10_div_2_Template, 2, 0, "div", 1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.f.holderName.errors == null ? null : ctx_r1.f.holderName.errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.f.holderName.errors == null ? null : ctx_r1.f.holderName.errors.pattern);
} }
var _c0 = function (a0) { return { "ng-invalid ng-dirty": a0 }; };
var _c1 = function (a0) { return { "invalid-form": a0 }; };
var PaymentCardFormComponent = /** @class */ (function () {
    function PaymentCardFormComponent(fb, translate, messageService) {
        this.fb = fb;
        this.translate = translate;
        this.messageService = messageService;
        this.showTitle = true;
        this.cardCreated = new core_1.EventEmitter();
        this.cancelled = new core_1.EventEmitter();
        this.confirmPayment = new core_1.EventEmitter();
        this.stripeError = false;
        this.isProcessing = false;
    }
    PaymentCardFormComponent.prototype.ngOnInit = function () {
        this.initForm();
    };
    PaymentCardFormComponent.prototype.ngAfterViewInit = function () {
        return tslib_1.__awaiter(this, void 0, void 0, function () {
            var error_1;
            return tslib_1.__generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        _a.trys.push([0, 2, , 3]);
                        return [4 /*yield*/, this.initStripe()];
                    case 1:
                        _a.sent();
                        return [3 /*break*/, 3];
                    case 2:
                        error_1 = _a.sent();
                        console.error('Error in ngAfterViewInit:', error_1);
                        return [3 /*break*/, 3];
                    case 3: return [2 /*return*/];
                }
            });
        });
    };
    PaymentCardFormComponent.prototype.ngOnDestroy = function () {
        if (this.card) {
            this.card.destroy();
        }
    };
    PaymentCardFormComponent.prototype.initForm = function () {
        this.cardForm = this.fb.group({
            holderName: ['', [forms_1.Validators.required, forms_1.Validators.pattern(/^[^<>]*$/)]],
        });
    };
    PaymentCardFormComponent.prototype.initStripe = function () {
        return tslib_1.__awaiter(this, void 0, void 0, function () {
            var _a, elements, style, cardElement, error_2;
            var _this = this;
            return tslib_1.__generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        // Kiểm tra nếu không có API key
                        if (!environment_1.environment.PUBLIC_KEY_STRIPE) {
                            console.error('Stripe public key is missing');
                            return [2 /*return*/];
                        }
                        _b.label = 1;
                    case 1:
                        _b.trys.push([1, 3, , 4]);
                        _a = this;
                        return [4 /*yield*/, stripe_js_1.loadStripe(environment_1.environment.PUBLIC_KEY_STRIPE)];
                    case 2:
                        _a.stripe = _b.sent();
                        elements = this.stripe.elements();
                        style = {
                            base: {
                                color: '#32325d',
                                fontFamily: '"Helvetica Neue", Helvetica, sans-serif',
                                fontSmoothing: 'antialiased',
                                fontSize: '16px',
                                '::placeholder': {
                                    color: '#aab7c4',
                                },
                            },
                            invalid: {
                                color: '#B00020',
                                iconColor: '#B00020',
                            },
                        };
                        // Create an instance of the card Element.
                        this.card = elements.create('card', {
                            hidePostalCode: true,
                            style: style,
                        });
                        cardElement = document.getElementById('card-element');
                        if (cardElement) {
                            this.card.mount('#card-element');
                            // Handle card events
                            this.card.on('change', function (event) {
                                var displayError = document.getElementById('card-errors');
                                if (displayError) {
                                    if (event.error) {
                                        _this.stripeError = true;
                                        displayError.textContent = event.error.message;
                                    }
                                    else {
                                        _this.stripeError = false;
                                        displayError.textContent = '';
                                    }
                                }
                            });
                        }
                        return [3 /*break*/, 4];
                    case 3:
                        error_2 = _b.sent();
                        console.error('Error initializing Stripe:', error_2);
                        return [3 /*break*/, 4];
                    case 4: return [2 /*return*/];
                }
            });
        });
    };
    // Handle form submission and validation
    PaymentCardFormComponent.prototype.validateAndConfirm = function () {
        var _this = this;
        if (this.cardForm.invalid) {
            // Mark all fields as touched để hiển thị lỗi
            Object.keys(this.cardForm.controls).forEach(function (key) {
                var control = _this.cardForm.get(key);
                control.markAsTouched();
            });
            return;
        }
        // Emit event with form and card details
        this.confirmPayment.emit({
            form: this.cardForm,
            card: this.card,
        });
    };
    // Handle card payment after confirmation
    PaymentCardFormComponent.prototype.processCardPayment = function (stripeDetails) {
        return tslib_1.__awaiter(this, void 0, void 0, function () {
            var _a, token, error, displayError, error_3, displayError;
            return tslib_1.__generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        if (!this.stripe || !stripeDetails.card) {
                            console.error('Stripe or card element is not initialized');
                            return [2 /*return*/];
                        }
                        this.isProcessing = true;
                        _b.label = 1;
                    case 1:
                        _b.trys.push([1, 3, 4, 5]);
                        return [4 /*yield*/, this.stripe.createToken(stripeDetails.card, {
                                name: stripeDetails.form.get('holderName').value,
                            })];
                    case 2:
                        _a = _b.sent(), token = _a.token, error = _a.error;
                        if (error) {
                            displayError = document.getElementById('card-errors');
                            if (displayError) {
                                displayError.textContent = error.message;
                            }
                            this.stripeError = true;
                        }
                        else {
                            // Emit the token to the parent component
                            this.cardCreated.emit(token);
                        }
                        return [3 /*break*/, 5];
                    case 3:
                        error_3 = _b.sent();
                        console.error('Error creating card token:', error_3);
                        displayError = document.getElementById('card-errors');
                        if (displayError) {
                            displayError.textContent = 'Error processing payment card';
                        }
                        this.stripeError = true;
                        return [3 /*break*/, 5];
                    case 4:
                        this.isProcessing = false;
                        return [7 /*endfinally*/];
                    case 5: return [2 /*return*/];
                }
            });
        });
    };
    PaymentCardFormComponent.prototype.cancel = function () {
        this.cancelled.emit();
        this.cardForm.reset();
        if (this.card) {
            this.card.clear();
        }
    };
    Object.defineProperty(PaymentCardFormComponent.prototype, "f", {
        // Getter cho form controls
        get: function () {
            return this.cardForm.controls;
        },
        enumerable: false,
        configurable: true
    });
    PaymentCardFormComponent.ɵfac = function PaymentCardFormComponent_Factory(t) { return new (t || PaymentCardFormComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.TranslateService), i0.ɵɵdirectiveInject(i3.MessageService)); };
    PaymentCardFormComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PaymentCardFormComponent, selectors: [["app-payment-card-form"]], inputs: { showTitle: "showTitle", userInfo: "userInfo" }, outputs: { cardCreated: "cardCreated", cancelled: "cancelled", confirmPayment: "confirmPayment" }, decls: 19, vars: 20, consts: [[1, "card-form-container"], [4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "p-fluid"], [1, "p-field"], [1, "p-float-label"], ["id", "holderName", "type", "text", "pInputText", "", "formControlName", "holderName", 3, "ngClass"], ["for", "holderName"], ["class", "p-error p-text-left", 4, "ngIf"], ["id", "card-element", 3, "ngClass"], ["id", "card-errors", "role", "alert", 1, "p-error"], [1, "form-actions", "p-d-flex", "p-jc-end", "p-mt-3"], ["pButton", "", "type", "button", 1, "p-button-text", "p-button-raised", "p-mr-2", 3, "label", "click"], ["pButton", "", "type", "submit", 3, "disabled", "loading", "label"], [1, "p-error", "p-text-left"], ["translate", "validation.require"], ["translate", "validation.special_chars"]], template: function PaymentCardFormComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵtemplate(1, PaymentCardFormComponent_h3_1_Template, 3, 3, "h3", 1);
            i0.ɵɵelementStart(2, "form", 2);
            i0.ɵɵlistener("ngSubmit", function PaymentCardFormComponent_Template_form_ngSubmit_2_listener() { return ctx.validateAndConfirm(); });
            i0.ɵɵelementStart(3, "div", 3);
            i0.ɵɵelementStart(4, "div", 4);
            i0.ɵɵelementStart(5, "span", 5);
            i0.ɵɵelement(6, "input", 6);
            i0.ɵɵelementStart(7, "label", 7);
            i0.ɵɵtext(8);
            i0.ɵɵpipe(9, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(10, PaymentCardFormComponent_div_10_Template, 3, 2, "div", 8);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(11, "div", 4);
            i0.ɵɵelement(12, "div", 9);
            i0.ɵɵelement(13, "div", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(14, "div", 11);
            i0.ɵɵelementStart(15, "button", 12);
            i0.ɵɵlistener("click", function PaymentCardFormComponent_Template_button_click_15_listener() { return ctx.cancel(); });
            i0.ɵɵpipe(16, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(17, "button", 13);
            i0.ɵɵpipe(18, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showTitle);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("formGroup", ctx.cardForm);
            i0.ɵɵadvance(4);
            i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0, ctx.f.holderName.invalid && ctx.f.holderName.touched));
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 10, "label.holder_name"));
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.f.holderName.invalid && ctx.f.holderName.touched);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1, ctx.stripeError));
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("label", i0.ɵɵpipeBind1(16, 12, "button.cancel"));
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("disabled", ctx.cardForm.invalid || ctx.isProcessing)("loading", ctx.isProcessing)("label", i0.ɵɵpipeBind1(18, 14, "button.save"));
        } }, directives: [i4.NgIf, i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.DefaultValueAccessor, i5.InputText, i1.NgControlStatus, i1.FormControlName, i4.NgClass, i6.ButtonDirective, i2.TranslateDirective], pipes: [i2.TranslatePipe], styles: ["#card-element[_ngcontent-%COMP%] {\n  padding: 0.6rem;\n  border: 1px solid #ced4da;\n  border-radius: 4px;\n  background: white;\n  box-sizing: border-box;\n  margin-top: 0.5rem;\n}\n#card-element.invalid-form[_ngcontent-%COMP%] {\n  border-color: #f44336;\n}\n[_nghost-%COMP%]     .StripeElement--focus {\n  border-color: #3f51b5;\n}\n#card-errors[_ngcontent-%COMP%] {\n  margin-top: 0.25rem;\n  font-size: 0.75rem;\n}\n.processing-overlay[_ngcontent-%COMP%] {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background-color: rgba(255, 255, 255, 0.7);\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  z-index: 10;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vcGF5bWVudC1jYXJkLWZvcm0vcGF5bWVudC1jYXJkLWZvcm0uY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3RlYW0tYWRtaW4vcGF5bWVudC1jYXJkLWZvcm0vcGF5bWVudC1jYXJkLWZvcm0uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxlQUFBO0VBQ0EseUJBQUE7RUFDQSxrQkFBQTtFQUNBLGlCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtBQ0NKO0FEQ0k7RUFDRSxxQkFBQTtBQ0NOO0FER0U7RUFDRSxxQkFBQTtBQ0FKO0FER0U7RUFDRSxtQkFBQTtFQUNBLGtCQUFBO0FDQUo7QURHRTtFQUNFLGtCQUFBO0VBQ0EsTUFBQTtFQUNBLE9BQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLDBDQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0FDQUoiLCJmaWxlIjoic3JjL2FwcC90ZWFtLWFkbWluL3BheW1lbnQtY2FyZC1mb3JtL3BheW1lbnQtY2FyZC1mb3JtLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiI2NhcmQtZWxlbWVudCB7XG4gICAgcGFkZGluZzogMC42cmVtO1xuICAgIGJvcmRlcjogMXB4IHNvbGlkICNjZWQ0ZGE7XG4gICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICAgIGJhY2tncm91bmQ6IHdoaXRlO1xuICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gICAgbWFyZ2luLXRvcDogMC41cmVtO1xuICAgIFxuICAgICYuaW52YWxpZC1mb3JtIHtcbiAgICAgIGJvcmRlci1jb2xvcjogI2Y0NDMzNjtcbiAgICB9XG4gIH1cbiAgXG4gIDpob3N0IDo6bmctZGVlcCAuU3RyaXBlRWxlbWVudC0tZm9jdXMge1xuICAgIGJvcmRlci1jb2xvcjogIzNmNTFiNTtcbiAgfVxuICBcbiAgI2NhcmQtZXJyb3JzIHtcbiAgICBtYXJnaW4tdG9wOiAwLjI1cmVtO1xuICAgIGZvbnQtc2l6ZTogMC43NXJlbTtcbiAgfVxuICBcbiAgLnByb2Nlc3Npbmctb3ZlcmxheSB7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHRvcDogMDtcbiAgICBsZWZ0OiAwO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGhlaWdodDogMTAwJTtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDI1NSwgMjU1LCAyNTUsIDAuNyk7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIHotaW5kZXg6IDEwO1xuICB9IiwiI2NhcmQtZWxlbWVudCB7XG4gIHBhZGRpbmc6IDAuNnJlbTtcbiAgYm9yZGVyOiAxcHggc29saWQgI2NlZDRkYTtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuICBiYWNrZ3JvdW5kOiB3aGl0ZTtcbiAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgbWFyZ2luLXRvcDogMC41cmVtO1xufVxuI2NhcmQtZWxlbWVudC5pbnZhbGlkLWZvcm0ge1xuICBib3JkZXItY29sb3I6ICNmNDQzMzY7XG59XG5cbjpob3N0IDo6bmctZGVlcCAuU3RyaXBlRWxlbWVudC0tZm9jdXMge1xuICBib3JkZXItY29sb3I6ICMzZjUxYjU7XG59XG5cbiNjYXJkLWVycm9ycyB7XG4gIG1hcmdpbi10b3A6IDAuMjVyZW07XG4gIGZvbnQtc2l6ZTogMC43NXJlbTtcbn1cblxuLnByb2Nlc3Npbmctb3ZlcmxheSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDI1NSwgMjU1LCAyNTUsIDAuNyk7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICB6LWluZGV4OiAxMDtcbn0iXX0= */"] });
    return PaymentCardFormComponent;
}());
exports.PaymentCardFormComponent = PaymentCardFormComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PaymentCardFormComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-payment-card-form',
                templateUrl: './payment-card-form.component.html',
                styleUrls: ['./payment-card-form.component.scss'],
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.TranslateService }, { type: i3.MessageService }]; }, { showTitle: [{
            type: core_1.Input
        }], userInfo: [{
            type: core_1.Input
        }], cardCreated: [{
            type: core_1.Output
        }], cancelled: [{
            type: core_1.Output
        }], confirmPayment: [{
            type: core_1.Output
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/report/report.component.ts":
/*!*******************************************************!*\
  !*** ./src/app/team-admin/report/report.component.ts ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ReportComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var api_1 = __webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js");
var moment_1 = tslib_1.__importDefault(__webpack_require__(/*! moment */ "./node_modules/moment/moment.js"));
var FileSaver = tslib_1.__importStar(__webpack_require__(/*! file-saver */ "./node_modules/file-saver/dist/FileSaver.min.js"));
var _ = tslib_1.__importStar(__webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js"));
var constant_module_1 = __webpack_require__(/*! ../../common/constant.module */ "./src/app/common/constant.module.ts");
var calendar_1 = __webpack_require__(/*! primeng/calendar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-calendar.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/user.service */ "./src/app/shared/services/user.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/user-group.service */ "./src/app/shared/services/user-group.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/reports.service */ "./src/app/shared/services/reports.service.ts"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/toolbar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-toolbar.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/accordion */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-accordion.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/calendar */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-calendar.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i15 = tslib_1.__importStar(__webpack_require__(/*! primeng/listbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-listbox.js"));
var i16 = tslib_1.__importStar(__webpack_require__(/*! primeng/table */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.js"));
var i17 = tslib_1.__importStar(__webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js"));
var i18 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i19 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i20 = tslib_1.__importStar(__webpack_require__(/*! primeng/autocomplete */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-autocomplete.js"));
var i21 = tslib_1.__importStar(__webpack_require__(/*! primeng/tree */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tree.js"));
var i22 = tslib_1.__importStar(__webpack_require__(/*! primeng/tooltip */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js"));
var i23 = tslib_1.__importStar(__webpack_require__(/*! ./rpt-action/rpt-action.component */ "./src/app/team-admin/report/rpt-action/rpt-action.component.ts"));
var i24 = tslib_1.__importStar(__webpack_require__(/*! ./rpt-detail1/rpt-detail1.component */ "./src/app/team-admin/report/rpt-detail1/rpt-detail1.component.ts"));
var i25 = tslib_1.__importStar(__webpack_require__(/*! ./rpt-detail2/rpt-detail2.component */ "./src/app/team-admin/report/rpt-detail2/rpt-detail2.component.ts"));
var i26 = tslib_1.__importStar(__webpack_require__(/*! ./rpt-detail3/rpt-detail3.component */ "./src/app/team-admin/report/rpt-detail3/rpt-detail3.component.ts"));
var i27 = tslib_1.__importStar(__webpack_require__(/*! ./rpt-project-detail/rpt-project-detail.component */ "./src/app/team-admin/report/rpt-project-detail/rpt-project-detail.component.ts"));
var i28 = tslib_1.__importStar(__webpack_require__(/*! ./rpt-folder-detail/rpt-folder-detail.component */ "./src/app/team-admin/report/rpt-folder-detail/rpt-folder-detail.component.ts"));
var i29 = tslib_1.__importStar(__webpack_require__(/*! ./rpt-link-detail/rpt-link-detail.component */ "./src/app/team-admin/report/rpt-link-detail/rpt-link-detail.component.ts"));
var i30 = tslib_1.__importStar(__webpack_require__(/*! ./rpt-file-detail/rpt-file-detail.component */ "./src/app/team-admin/report/rpt-file-detail/rpt-file-detail.component.ts"));
var i31 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i32 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var _c0 = ["calendar"];
function ReportComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
    var _r19 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 30);
    i0.ɵɵlistener("click", function ReportComponent_ng_template_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); var ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.goToExport(); });
    i0.ɵɵpipe(1, "uppercase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "button", 31);
    i0.ɵɵlistener("click", function ReportComponent_ng_template_6_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r19); var ctx_r20 = i0.ɵɵnextContext(); return ctx_r20.goToRun(); });
    i0.ɵɵpipe(4, "uppercase");
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 4, i0.ɵɵpipeBind1(2, 6, "button.export")));
    i0.ɵɵproperty("disabled", ctx_r0.disableAction || !ctx_r0.rangeDates || ctx_r0.rangeDates && (!ctx_r0.rangeDates[0] || !ctx_r0.rangeDates[1]) || ctx_r0.isInvalidRangeDate);
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(4, 8, i0.ɵɵpipeBind1(5, 10, "button.run")));
    i0.ɵɵproperty("disabled", ctx_r0.disableAction || !ctx_r0.rangeDates || ctx_r0.rangeDates && (!ctx_r0.rangeDates[0] || !ctx_r0.rangeDates[1]) || ctx_r0.isInvalidRangeDate);
} }
function ReportComponent_small_19_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function ReportComponent_small_20_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.invalid_date"), " ");
} }
function ReportComponent_div_21_Template(rf, ctx) { if (rf & 1) {
    var _r22 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 32);
    i0.ɵɵelement(1, "label", 33);
    i0.ɵɵelementStart(2, "div", 10);
    i0.ɵɵelementStart(3, "p-autoComplete", 34);
    i0.ɵɵlistener("ngModelChange", function ReportComponent_div_21_Template_p_autoComplete_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r22); var ctx_r21 = i0.ɵɵnextContext(); return ctx_r21.selectedMembers = $event; })("completeMethod", function ReportComponent_div_21_Template_p_autoComplete_completeMethod_3_listener($event) { i0.ɵɵrestoreView(_r22); var ctx_r23 = i0.ɵɵnextContext(); return ctx_r23.searchMembers($event); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "button", 35);
    i0.ɵɵlistener("click", function ReportComponent_div_21_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r22); var ctx_r24 = i0.ɵɵnextContext(); return ctx_r24.loadModalGroup("member"); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("translate", "reports.users");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngModel", ctx_r4.selectedMembers)("suggestions", ctx_r4.memberResults)("autoHighlight", true)("completeOnFocus", true)("multiple", true);
} }
function ReportComponent_div_22_Template(rf, ctx) { if (rf & 1) {
    var _r26 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 32);
    i0.ɵɵelement(1, "label", 36);
    i0.ɵɵelementStart(2, "div", 10);
    i0.ɵɵelementStart(3, "p-autoComplete", 37);
    i0.ɵɵlistener("ngModelChange", function ReportComponent_div_22_Template_p_autoComplete_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r26); var ctx_r25 = i0.ɵɵnextContext(); return ctx_r25.selectedGroups = $event; })("completeMethod", function ReportComponent_div_22_Template_p_autoComplete_completeMethod_3_listener($event) { i0.ɵɵrestoreView(_r26); var ctx_r27 = i0.ɵɵnextContext(); return ctx_r27.searchGroups($event); })("onSelect", function ReportComponent_div_22_Template_p_autoComplete_onSelect_3_listener($event) { i0.ɵɵrestoreView(_r26); var ctx_r28 = i0.ɵɵnextContext(); return ctx_r28.onSelectGroup($event); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "button", 35);
    i0.ɵɵlistener("click", function ReportComponent_div_22_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r26); var ctx_r29 = i0.ɵɵnextContext(); return ctx_r29.loadModalGroup("group"); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("translate", "reports.groups");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngModel", ctx_r5.selectedGroups)("suggestions", ctx_r5.groupResults)("autoHighlight", true)("completeOnFocus", true)("multiple", true);
} }
function ReportComponent_div_27_Template(rf, ctx) { if (rf & 1) {
    var _r31 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 38);
    i0.ɵɵelementStart(1, "div", 39);
    i0.ɵɵelementStart(2, "p-tree", 40);
    i0.ɵɵlistener("selectionChange", function ReportComponent_div_27_Template_p_tree_selectionChange_2_listener($event) { i0.ɵɵrestoreView(_r31); var ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.selectedNodes = $event; })("selectionChange", function ReportComponent_div_27_Template_p_tree_selectionChange_2_listener() { i0.ɵɵrestoreView(_r31); var ctx_r32 = i0.ɵɵnextContext(); return ctx_r32.handleSelection("selectAll"); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "div", 41);
    i0.ɵɵelementStart(4, "p-tree", 40);
    i0.ɵɵlistener("selectionChange", function ReportComponent_div_27_Template_p_tree_selectionChange_4_listener($event) { i0.ɵɵrestoreView(_r31); var ctx_r33 = i0.ɵɵnextContext(); return ctx_r33.selectedNodes = $event; })("selectionChange", function ReportComponent_div_27_Template_p_tree_selectionChange_4_listener() { i0.ɵɵrestoreView(_r31); var ctx_r34 = i0.ɵɵnextContext(); return ctx_r34.handleSelection("child"); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "div", 41);
    i0.ɵɵelementStart(6, "p-tree", 40);
    i0.ɵɵlistener("selectionChange", function ReportComponent_div_27_Template_p_tree_selectionChange_6_listener($event) { i0.ɵɵrestoreView(_r31); var ctx_r35 = i0.ɵɵnextContext(); return ctx_r35.selectedNodes = $event; })("selectionChange", function ReportComponent_div_27_Template_p_tree_selectionChange_6_listener() { i0.ɵɵrestoreView(_r31); var ctx_r36 = i0.ɵɵnextContext(); return ctx_r36.handleSelection("child"); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("value", ctx_r6.treeSelectAll)("selection", ctx_r6.selectedNodes);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("value", ctx_r6.treeLeft)("selection", ctx_r6.selectedNodes);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("value", ctx_r6.treeRight)("selection", ctx_r6.selectedNodes);
} }
function ReportComponent_div_28_Template(rf, ctx) { if (rf & 1) {
    var _r38 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "p-tree", 40);
    i0.ɵɵlistener("selectionChange", function ReportComponent_div_28_Template_p_tree_selectionChange_1_listener($event) { i0.ɵɵrestoreView(_r38); var ctx_r37 = i0.ɵɵnextContext(); return ctx_r37.selectedNodes = $event; })("selectionChange", function ReportComponent_div_28_Template_p_tree_selectionChange_1_listener() { i0.ɵɵrestoreView(_r38); var ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.handleSelection("child"); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r7 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r7.treeNodes)("selection", ctx_r7.selectedNodes);
} }
function ReportComponent_ng_template_30_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "th", 42);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "titlecase");
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "th", 43);
    i0.ɵɵtext(6);
    i0.ɵɵpipe(7, "titlecase");
    i0.ɵɵpipe(8, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "th", 44);
    i0.ɵɵtext(10);
    i0.ɵɵpipe(11, "titlecase");
    i0.ɵɵpipe(12, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(13, "th", 45);
    i0.ɵɵtext(14);
    i0.ɵɵpipe(15, "titlecase");
    i0.ɵɵpipe(16, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(17, "th", 46);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 4, i0.ɵɵpipeBind1(4, 6, "table_header.report.member")), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 8, i0.ɵɵpipeBind1(8, 10, "table_header.report.action")), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 12, i0.ɵɵpipeBind1(12, 14, "table_header.report.affected")), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 16, i0.ɵɵpipeBind1(16, 18, "table_header.report.date")), " ");
} }
function ReportComponent_ng_template_31_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 52);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var history_r40 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵpropertyInterpolate2("pTooltip", "", history_r40.user_first_name, " ", history_r40.user_last_name, "");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", history_r40.user_first_name, " ", history_r40.user_last_name, " ");
} }
function ReportComponent_ng_template_31_span_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 52);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var history_r40 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵpropertyInterpolate2("pTooltip", "", history_r40.user_last_name, " ", history_r40.user_first_name, "");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", history_r40.user_last_name, " ", history_r40.user_first_name, " ");
} }
function ReportComponent_ng_template_31_td_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "td");
    i0.ɵɵelement(1, "app-rpt-action", 53);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var history_r40 = i0.ɵɵnextContext().$implicit;
    var ctx_r43 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("authUser", ctx_r43.authUser)("history", history_r40);
} }
function ReportComponent_ng_template_31_span_15_i_1_Template(rf, ctx) { if (rf & 1) {
    var _r51 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "i", 55);
    i0.ɵɵlistener("click", function ReportComponent_ng_template_31_span_15_i_1_Template_i_click_0_listener() { i0.ɵɵrestoreView(_r51); var history_r40 = i0.ɵɵnextContext(2).$implicit; var ctx_r49 = i0.ɵɵnextContext(); return ctx_r49.onActivityDetails(history_r40); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("pTooltip", i0.ɵɵpipeBind1(1, 1, "tooltip.activity_details"));
} }
function ReportComponent_ng_template_31_span_15_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtemplate(1, ReportComponent_ng_template_31_span_15_i_1_Template, 2, 3, "i", 54);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var history_r40 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", history_r40.data);
} }
var _c1 = function () { return [302, 303, 403, 404, 902]; };
function ReportComponent_ng_template_31_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 47);
    i0.ɵɵelementStart(2, "div", 48);
    i0.ɵɵelementStart(3, "div", 49);
    i0.ɵɵtemplate(4, ReportComponent_ng_template_31_span_4_Template, 2, 4, "span", 50);
    i0.ɵɵtemplate(5, ReportComponent_ng_template_31_span_5_Template, 2, 4, "span", 50);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "div", 51);
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "td");
    i0.ɵɵtext(9);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(10, ReportComponent_ng_template_31_td_10_Template, 2, 2, "td", 14);
    i0.ɵɵelementStart(11, "td");
    i0.ɵɵtext(12);
    i0.ɵɵpipe(13, "date");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(14, "td");
    i0.ɵɵtemplate(15, ReportComponent_ng_template_31_span_15_Template, 2, 1, "span", 14);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var history_r40 = ctx.$implicit;
    var ctx_r9 = i0.ɵɵnextContext();
    i0.ɵɵadvance(4);
    i0.ɵɵproperty("ngIf", ctx_r9.authUser.lang !== "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r9.authUser.lang === "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", history_r40.user_email);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", history_r40.user_email, " ");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", history_r40.action, " ");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", history_r40.history_type);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(13, 8, history_r40.create_date, "MM/dd/YYYY HH:mm:ss"), " ");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", !i0.ɵɵpureFunction0(11, _c1).includes(history_r40.history_type));
} }
function ReportComponent_ng_template_32_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 56);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "label.no_record"));
} }
function ReportComponent_div_35_span_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r53 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", ctx_r53.historyDetail.user.first_name, " ", ctx_r53.historyDetail.user.last_name, " ");
} }
function ReportComponent_div_35_span_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r54 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", ctx_r54.historyDetail.user.last_name, " ", ctx_r54.historyDetail.user.first_name, " ");
} }
function ReportComponent_div_35_span_16_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "app-rpt-detail1", 63);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r55 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("items", ctx_r55.itemTemp1)("label", ctx_r55.historyDetail.label);
} }
function ReportComponent_div_35_span_17_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "app-rpt-detail2", 64);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r56 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("items", ctx_r56.itemTemp2)("history", ctx_r56.historyDetail)("isChangePassword", ctx_r56.historyDetail.isChangePassword)("option", ctx_r56.historyDetail.option)("label", ctx_r56.historyDetail.label);
} }
function ReportComponent_div_35_span_18_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "app-rpt-detail3", 65);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r57 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("history", ctx_r57.historyDetail)("historyType", ctx_r57.historyDetail.history_type)("option", ctx_r57.historyDetail.option)("lang", ctx_r57.historyDetail.lang);
} }
function ReportComponent_div_35_span_19_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "app-rpt-project-detail", 66);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r58 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("data", ctx_r58.dataInput);
} }
function ReportComponent_div_35_span_20_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "app-rpt-folder-detail", 66);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r59 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("data", ctx_r59.dataInput);
} }
function ReportComponent_div_35_span_21_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "app-rpt-link-detail", 67);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r60 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("data", ctx_r60.dataInput)("showDrmWm", ctx_r60.historyDetail.showDrmWm)("showUserSend", ctx_r60.historyDetail.showUserSend);
} }
function ReportComponent_div_35_span_22_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "app-rpt-file-detail", 68);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r61 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("licenseTrackingDetail", ctx_r61.dataInput);
} }
function ReportComponent_div_35_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 38);
    i0.ɵɵelementStart(1, "div", 57);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 58);
    i0.ɵɵtemplate(5, ReportComponent_div_35_span_5_Template, 2, 2, "span", 14);
    i0.ɵɵtemplate(6, ReportComponent_div_35_span_6_Template, 2, 2, "span", 14);
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "div", 57);
    i0.ɵɵtext(9);
    i0.ɵɵpipe(10, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(11, "div", 59);
    i0.ɵɵelementStart(12, "div", 60);
    i0.ɵɵtext(13);
    i0.ɵɵpipe(14, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(15, "div", 61);
    i0.ɵɵtemplate(16, ReportComponent_div_35_span_16_Template, 2, 2, "span", 62);
    i0.ɵɵtemplate(17, ReportComponent_div_35_span_17_Template, 2, 5, "span", 62);
    i0.ɵɵtemplate(18, ReportComponent_div_35_span_18_Template, 2, 4, "span", 62);
    i0.ɵɵtemplate(19, ReportComponent_div_35_span_19_Template, 2, 1, "span", 62);
    i0.ɵɵtemplate(20, ReportComponent_div_35_span_20_Template, 2, 1, "span", 62);
    i0.ɵɵtemplate(21, ReportComponent_div_35_span_21_Template, 2, 3, "span", 62);
    i0.ɵɵtemplate(22, ReportComponent_div_35_span_22_Template, 2, 1, "span", 62);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r11 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 15, "table_header.report.member"));
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r11.authUser.lang !== "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r11.authUser.lang === "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" (", ctx_r11.historyDetail.user.email, ") ");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 17, "table_header.report.action"));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("innerHTML", ctx_r11.historyDetail.actionDetail, i0.ɵɵsanitizeHtml);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 19, "table_header.report.details"));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngSwitch", ctx_r11.historyDetail.templateType);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", "detail1");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", "detail2");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", "detail3");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", "projectDetail");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", "folderDetail");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", "linkDetail");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", "fileDetail");
} }
function ReportComponent_ng_template_36_Template(rf, ctx) { if (rf & 1) {
    var _r63 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 69);
    i0.ɵɵelementStart(1, "button", 70);
    i0.ɵɵlistener("click", function ReportComponent_ng_template_36_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r63); var ctx_r62 = i0.ɵɵnextContext(); return ctx_r62.isShowDetail = false; });
    i0.ɵɵpipe(2, "titlecase");
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, "button.back")));
} }
function ReportComponent_ng_template_40_Template(rf, ctx) { if (rf & 1) {
    var _r65 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 71);
    i0.ɵɵelementStart(1, "span", 72);
    i0.ɵɵelement(2, "i", 73);
    i0.ɵɵelementStart(3, "input", 74);
    i0.ɵɵlistener("keyup", function ReportComponent_ng_template_40_Template_input_keyup_3_listener($event) { i0.ɵɵrestoreView(_r65); var ctx_r64 = i0.ɵɵnextContext(); return ctx_r64.searchTable($event); })("ngModelChange", function ReportComponent_ng_template_40_Template_input_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r65); var ctx_r66 = i0.ɵɵnextContext(); return ctx_r66.searchKey = $event; });
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r13 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(4, 2, "label.search_placeholder"));
    i0.ɵɵproperty("ngModel", ctx_r13.searchKey);
} }
function ReportComponent_ng_template_41_Template(rf, ctx) { if (rf & 1) {
    var _r68 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "th", 45);
    i0.ɵɵelementStart(2, "p-checkbox", 75);
    i0.ɵɵlistener("ngModelChange", function ReportComponent_ng_template_41_Template_p_checkbox_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r68); var ctx_r67 = i0.ɵɵnextContext(); return ctx_r67.isSelectedGroupAll = $event; })("click", function ReportComponent_ng_template_41_Template_p_checkbox_click_2_listener() { i0.ɵɵrestoreView(_r68); var ctx_r69 = i0.ɵɵnextContext(); return ctx_r69.toggleSelectedGroupAll(); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "th", 76);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelement(6, "p-sortIcon", 77);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "th", 78);
    i0.ɵɵtext(8);
    i0.ɵɵpipe(9, "translate");
    i0.ɵɵelement(10, "p-sortIcon", 79);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r14 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngModel", ctx_r14.isSelectedGroupAll);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 3, "table_header.group_user.name"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 5, "table_header.group_user.numbers_user"), " ");
} }
function ReportComponent_ng_template_42_Template(rf, ctx) { if (rf & 1) {
    var _r72 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td");
    i0.ɵɵelementStart(2, "p-checkbox", 80);
    i0.ɵɵlistener("click", function ReportComponent_ng_template_42_Template_p_checkbox_click_2_listener() { i0.ɵɵrestoreView(_r72); var group_r70 = ctx.$implicit; var ctx_r71 = i0.ɵɵnextContext(); return ctx_r71.toggleSelectedGroup(group_r70); })("ngModelChange", function ReportComponent_ng_template_42_Template_p_checkbox_ngModelChange_2_listener($event) { var group_r70 = ctx.$implicit; return group_r70._selected = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td", 47);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "td", 81);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var group_r70 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngModel", group_r70._selected);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(group_r70.name);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(group_r70.number_user);
} }
function ReportComponent_ng_template_43_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 82);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 1, "label.no_record"), "");
} }
function ReportComponent_ng_template_44_Template(rf, ctx) { if (rf & 1) {
    var _r75 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 83);
    i0.ɵɵlistener("click", function ReportComponent_ng_template_44_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r75); var ctx_r74 = i0.ɵɵnextContext(); return ctx_r74.displayModalGroup = false; });
    i0.ɵɵpipe(1, "titlecase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "button", 84);
    i0.ɵɵlistener("click", function ReportComponent_ng_template_44_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r75); var ctx_r76 = i0.ɵɵnextContext(); return ctx_r76.confirmSelectGroups(ctx_r76.selectedGroupInModal); });
    i0.ɵɵpipe(4, "uppercase");
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r17 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 3, i0.ɵɵpipeBind1(2, 5, "button.cancel")));
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(4, 7, i0.ɵɵpipeBind1(5, 9, "button.ok")));
    i0.ɵɵproperty("disabled", ctx_r17.selectedGroupInModal.length === 0 || ctx_r17.loadingModalGroup);
} }
var ReportComponent = /** @class */ (function () {
    function ReportComponent(utils, authenticateService, userService, userGroupService, messageService, reportsService, router, cookieService) {
        this.utils = utils;
        this.authenticateService = authenticateService;
        this.userService = userService;
        this.userGroupService = userGroupService;
        this.messageService = messageService;
        this.reportsService = reportsService;
        this.router = router;
        this.cookieService = cookieService;
        this.systemRole = constant_module_1.SystemRole;
        this.rangeDates = [];
        this.members = [];
        this.groups = [];
        this.groupsAll = [];
        this.selectedMembers = [];
        this.selectedGroups = [];
        this.memberResults = [];
        this.groupResults = [];
        // dialog group member
        this.displayModalGroup = false;
        this.isSelectedGroupAll = false;
        this.selectedGroupInModal = [];
        this.currentSelectedGroups = [];
        this.totalRecordsGroup = 0;
        this.loadingModalGroup = true;
        this.firstModalGroup = 0;
        this.rowsModalGroup = 5;
        this.paramsModalGroup = {
            team_id: '',
            search_key: '',
            sort_field: 'numberUser',
            asc_sort: false,
            page_number: 1,
            page_size: 5,
        };
        this.paramModalMember = {
            group_user_ids: '',
            team_id: ''
        };
        this.checkAllFilter = false;
        this.isInvalidRangeDate = false;
        this.isShowDetail = false;
        // left menu search
        this.searchFields = [];
        this.selectedSearchField = {};
        // right menu search
        this.originNodes = [];
        this.oldNodes = [];
        this.selectedNodes = [];
        this.treeNodes = [];
        this.treeSelectAll = [];
        this.treeLeft = [];
        this.treeRight = [];
        // history list
        this.loading = false;
        this.totalRecords = 0;
        this.histories = [];
        this.first = 0;
        this.rows = 10;
        this.params = {
            page_number: 1,
            page_size: 10
        };
        this.customSystemPrimeNG();
        this.searchFields = [
            { name: this.utils.translate('reports.filter_all'), code: 0 },
            { name: this.utils.translate('reports.filter_member'), code: -4 },
            { name: this.utils.translate('reports.filter_member_group'), code: -8 },
            { name: this.utils.translate('reports.filter_address'), code: -6 },
            { name: this.utils.translate('reports.filter_address_group'), code: -10 },
            { name: this.utils.translate('reports.filter_project'), code: -3 },
            { name: this.utils.translate('reports.filter_folder'), code: -5 },
            { name: this.utils.translate('reports.filter_file'), code: -2 },
            { name: this.utils.translate('reports.filter_collaborator'), code: -7 },
            { name: this.utils.translate('reports.filter_license'), code: -1 },
            { name: this.utils.translate('reports.filter_link'), code: -11 },
            { name: this.utils.translate('reports.filter_label'), code: -9 },
            { name: this.utils.translate('reports.filter_comment'), code: -12 }
        ];
        this.originNodes = [
            {
                label: this.utils.translate('reports.select_all'),
                data: 0,
                expanded: true,
                leaf: false,
                children: [
                    {
                        label: this.utils.translate('reports.member_management'),
                        data: -4,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.created'), data: 400 },
                            { label: this.utils.translate('reports.updated'), data: 401 },
                            { label: this.utils.translate('reports.deleted'), data: 402 },
                            { label: this.utils.translate('reports.member_login'), data: 403 },
                            { label: this.utils.translate('reports.member_logout'), data: 404 },
                            { label: this.utils.translate('reports.login_as_member'), data: 405 },
                            { label: this.utils.translate('reports.transferred_account'), data: 406 }
                        ]
                    },
                    {
                        label: this.utils.translate('reports.member_group'),
                        data: -8,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.created'), data: 800 },
                            { label: this.utils.translate('reports.updated'), data: 801 },
                            { label: this.utils.translate('reports.deleted'), data: 802 },
                            { label: this.utils.translate('reports.add_member_group'), data: 803 },
                            { label: this.utils.translate('reports.move_member_group'), data: 805 },
                            { label: this.utils.translate('reports.remove_member_group'), data: 804 }
                        ]
                    },
                    {
                        label: this.utils.translate('reports.address_book'),
                        data: -6,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.created'), data: 600 },
                            { label: this.utils.translate('reports.updated'), data: 601 },
                            { label: this.utils.translate('reports.deleted'), data: 602 }
                        ]
                    },
                    {
                        label: this.utils.translate('reports.address_group'),
                        data: -10,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.created'), data: 1000 },
                            { label: this.utils.translate('reports.updated'), data: 1001 },
                            { label: this.utils.translate('reports.deleted'), data: 1002 },
                            { label: this.utils.translate('reports.add_address_to_group'), data: 1003 },
                            { label: this.utils.translate('reports.move_address_to_group'), data: 1005 },
                            { label: this.utils.translate('reports.remove_address_to_group'), data: 1004 }
                        ]
                    },
                    {
                        label: this.utils.translate('reports.project'),
                        data: -3,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.created'), data: 300 },
                            { label: this.utils.translate('reports.copied'), data: 303 },
                            { label: this.utils.translate('reports.updated'), data: 301 },
                            { label: this.utils.translate('reports.deleted'), data: 302 },
                            { label: this.utils.translate('reports.action_text.transferred_filter'), data: 304 }
                        ]
                    },
                    {
                        label: this.utils.translate('reports.folder'),
                        data: -5,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.created'), data: 500 },
                            { label: this.utils.translate('reports.copied'), data: 507 },
                            { label: this.utils.translate('reports.update_setting'), data: 506 },
                            { label: this.utils.translate('reports.removed'), data: 503 },
                            { label: this.utils.translate('reports.restore'), data: 505 },
                            { label: this.utils.translate('reports.delete_forever'), data: 502 },
                            { label: this.utils.translate('reports.moved'), data: 504 },
                            { label: this.utils.translate('reports.rename'), data: 501 }
                        ]
                    },
                    {
                        label: this.utils.translate('reports.file'),
                        data: -2,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.upload'), data: constant_module_1.HistoryType.add_file },
                            { label: this.utils.translate('reports.copied'), data: constant_module_1.HistoryType.copy_file },
                            { label: this.utils.translate('reports.encode'), data: constant_module_1.HistoryType.encode_file },
                            { label: this.utils.translate('reports.update_drm'), data: constant_module_1.HistoryType.update_encode_file },
                            { label: this.utils.translate('reports.disabled_drm'), data: constant_module_1.HistoryType.delete_license },
                            { label: this.utils.translate('reports.removed'), data: constant_module_1.HistoryType.delete_file },
                            { label: this.utils.translate('reports.restore'), data: constant_module_1.HistoryType.restore_file },
                            { label: this.utils.translate('reports.delete_forever'), data: constant_module_1.HistoryType.delete_file_forever },
                            { label: this.utils.translate('reports.moved'), data: constant_module_1.HistoryType.move_file },
                            { label: this.utils.translate('reports.rename'), data: constant_module_1.HistoryType.update_file },
                            { label: this.utils.translate('reports.attached_label'), data: constant_module_1.HistoryType.attach_label },
                            { label: this.utils.translate('reports.detached_label'), data: constant_module_1.HistoryType.detach_label }
                        ]
                    },
                    {
                        label: this.utils.translate('reports.collaborator'),
                        data: -7,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.member_invite_collaborator'), data: 702 },
                            { label: this.utils.translate('reports.member_update_collaborator'), data: 701 },
                            { label: this.utils.translate('reports.member_delete_collaborator'), data: 700 },
                            { label: this.utils.translate('reports.group_invite_collaborator'), data: 703 },
                            { label: this.utils.translate('reports.group_update_collaborator'), data: 704 },
                            { label: this.utils.translate('reports.group_delete_collaborator'), data: 705 }
                        ]
                    },
                    {
                        label: this.utils.translate('reports.licenses'),
                        data: -1,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.member_revoked'), data: constant_module_1.HistoryType.revoke_user }
                        ]
                    },
                    {
                        label: this.utils.translate('reports.link'),
                        data: -11,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.created'), data: 1100 },
                            { label: this.utils.translate('reports.updated'), data: 1102 },
                            { label: this.utils.translate('reports.deleted'), data: 1101 },
                            { label: this.utils.translate('reports.share_link'), data: 1103 },
                            { label: this.utils.translate('reports.share_link_secure_mail'), data: 1104 }
                        ]
                    },
                    {
                        label: this.utils.translate('reports.label'),
                        data: -9,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.created'), data: 900 },
                            { label: this.utils.translate('reports.updated'), data: 901 },
                            { label: this.utils.translate('reports.deleted'), data: 902 }
                        ]
                    },
                    {
                        label: this.utils.translate('reports.comment'),
                        data: -12,
                        expanded: true,
                        leaf: false,
                        children: [
                            { label: this.utils.translate('reports.add_comment_project'), data: 1200 },
                            { label: this.utils.translate('reports.update_comment_project'), data: 1201 },
                            { label: this.utils.translate('reports.delete_comment_project'), data: 1202 },
                            { label: this.utils.translate('reports.add_comment_file'), data: 1203 },
                            { label: this.utils.translate('reports.update_comment_file'), data: 1204 },
                            { label: this.utils.translate('reports.delete_comment_file'), data: 1205 }
                        ]
                    },
                ]
            }
        ];
        this.historyTypes = [
            // 1 - LICENSE (100  - 199)
            {
                value: constant_module_1.HistoryType.revoke_user,
                name: 'revoke_user',
                type: 'Revoked recipient license',
                content: this.utils.translate('reports.action_text.revoke_user')
            },
            // 2 - FILE (200 - 299)
            {
                value: constant_module_1.HistoryType.add_file,
                name: 'add_file',
                type: 'Uploaded file',
                content: this.utils.translate('reports.action_text.add_file'),
                contents: ''
            },
            {
                value: constant_module_1.HistoryType.update_file,
                name: 'update_file',
                type: 'Renamed file',
                content: this.utils.translate('reports.action_text.update_file')
            },
            {
                value: constant_module_1.HistoryType.delete_file_forever,
                name: 'delete_file_forever',
                type: 'Deleted forever file',
                content: this.utils.translate('reports.action_text.delete_file_forever')
            },
            {
                value: constant_module_1.HistoryType.encode_file,
                name: 'encode_file',
                type: 'Set DRM file',
                content: this.utils.translate('reports.action_text.encode_file')
            },
            {
                value: constant_module_1.HistoryType.restore_file,
                name: 'restore_file',
                type: 'Restored file',
                content: this.utils.translate('reports.action_text.restore_file')
            },
            {
                value: constant_module_1.HistoryType.move_file,
                name: 'move_file',
                type: 'Moved file',
                content: this.utils.translate('reports.action_text.move_file'),
                contents: ''
            },
            {
                value: constant_module_1.HistoryType.delete_file,
                name: 'delete_file',
                type: 'Deleted file',
                content: this.utils.translate('reports.action_text.delete_file')
            },
            {
                value: constant_module_1.HistoryType.update_encode_file,
                name: 'update_encode_file',
                type: 'Updated DRM file setting',
                content: this.utils.translate('reports.action_text.update_encode_file')
            },
            {
                value: constant_module_1.HistoryType.delete_license,
                name: 'delete_license',
                type: 'Disabled DRM file setting',
                content: this.utils.translate('reports.action_text.delete_license')
            },
            {
                value: constant_module_1.HistoryType.attach_label,
                name: 'attach_label',
                type: 'Attached label file',
                content: this.utils.translate('reports.action_text.attach_label'),
                contents: ''
            },
            {
                value: constant_module_1.HistoryType.detach_label,
                name: 'detach_label',
                type: 'Detached label file',
                content: this.utils.translate('reports.action_text.detach_label'),
                contents: ''
            },
            {
                value: constant_module_1.HistoryType.copy_file,
                name: 'copy_file',
                type: 'User Copied File',
                content: this.utils.translate('reports.action_text.copy_file'),
                contents: ''
            },
            // 3 - PROJECT (300 - 399)
            {
                value: constant_module_1.HistoryType.add_project,
                name: 'add_project',
                type: 'Created a project',
                content: this.utils.translate('reports.action_text.add_project')
            },
            {
                value: constant_module_1.HistoryType.update_project,
                name: 'update_project',
                type: 'Updated a project',
                content: this.utils.translate('reports.action_text.update_project')
            },
            {
                value: constant_module_1.HistoryType.delete_project,
                name: 'delete_project',
                type: 'Deleted a project',
                content: this.utils.translate('reports.action_text.delete_project')
            },
            {
                value: constant_module_1.HistoryType.copy_project,
                name: 'copy_project',
                type: 'Copied a project',
                content: this.utils.translate('reports.action_text.copy_project')
            },
            {
                value: constant_module_1.HistoryType.transferred_project,
                name: 'transferred_project',
                type: 'Transferred a project',
                content: this.utils.translate('reports.action_text.transferred_project')
            },
            // 4 - USER (400 - 499)
            {
                value: constant_module_1.HistoryType.add_user,
                name: 'add_user',
                type: 'Created a member',
                content: this.utils.translate('reports.action_text.add_user')
            },
            {
                value: constant_module_1.HistoryType.update_user,
                name: 'update_user',
                type: 'Updated a member',
                content: this.utils.translate('reports.action_text.update_user')
            },
            {
                value: constant_module_1.HistoryType.delete_user,
                name: 'delete_user',
                type: 'Deleted a member',
                content: this.utils.translate('reports.action_text.delete_user')
            },
            {
                value: constant_module_1.HistoryType.log_in,
                name: 'log_in',
                type: 'Logged in to 689Cloud',
                content: this.utils.translate('reports.action_text.log_in')
            },
            {
                value: constant_module_1.HistoryType.log_out,
                name: 'log_out',
                type: 'Logged out of 689Cloud',
                content: this.utils.translate('reports.action_text.log_out')
            },
            {
                value: constant_module_1.HistoryType.team_admin_login_member,
                name: 'login_as_member',
                type: 'Team Admin logged in as member',
                content: this.utils.translate('reports.action_text.login_as_member')
            },
            {
                value: constant_module_1.HistoryType.transferred_a_account,
                name: 'transferred_account',
                type: 'Transferred a account',
                content: this.utils.translate('reports.action_text.transferred_account')
            },
            // 5 - FOLDER (500 - 599)
            {
                value: constant_module_1.HistoryType.add_folder,
                name: 'add_folder',
                type: 'Created a folder',
                content: this.utils.translate('reports.action_text.add_folder')
            },
            {
                value: constant_module_1.HistoryType.update_folder,
                name: 'update_folder',
                type: 'Renamed a folder',
                content: this.utils.translate('reports.action_text.update_folder')
            },
            {
                value: constant_module_1.HistoryType.delete_forever_folder,
                name: 'delete_forever_folder',
                type: 'Deleted a folder forever',
                content: this.utils.translate('reports.action_text.delete_forever_folder')
            },
            {
                value: constant_module_1.HistoryType.delete_folder,
                name: 'delete_folder',
                type: 'Deleted a folder',
                content: this.utils.translate('reports.action_text.delete_folder')
            },
            {
                value: constant_module_1.HistoryType.move_folder,
                name: 'move_folder',
                type: 'Moved a folder',
                content: this.utils.translate('reports.action_text.move_folder'),
                contents: ''
            },
            {
                value: constant_module_1.HistoryType.restore_folder,
                name: 'restore_folder',
                type: 'Restored a folder',
                content: this.utils.translate('reports.action_text.restore_folder')
            },
            {
                value: constant_module_1.HistoryType.update_folder_setting,
                name: 'update_folder_setting',
                type: 'Updated settings of a folder',
                content: this.utils.translate('reports.action_text.update_folder_setting')
            },
            {
                value: constant_module_1.HistoryType.copy_folder,
                name: 'copy_folder',
                type: 'Copied a folder',
                content: this.utils.translate('reports.action_text.copy_folder'),
                contents: ''
            },
            // 6 - ADDRESS_BOOK (600 - 699)
            {
                value: constant_module_1.HistoryType.add_address,
                name: 'add_address',
                type: 'Created an address book',
                content: this.utils.translate('reports.action_text.add_address')
            },
            {
                value: constant_module_1.HistoryType.update_address,
                name: 'update_address',
                type: 'Updated an address book',
                content: this.utils.translate('reports.action_text.update_address')
            },
            {
                value: constant_module_1.HistoryType.delete_address,
                name: 'delete_address',
                type: 'Deleted an address book',
                content: this.utils.translate('reports.action_text.delete_address')
            },
            // 7 - COLLABORATOR (700 - 799)
            {
                value: constant_module_1.HistoryType.remove_user,
                name: 'remove_user',
                type: 'Removed individual collaborator',
                content: this.utils.translate('reports.action_text.remove_user')
            },
            {
                value: constant_module_1.HistoryType.update_role_user,
                name: 'update_role_user',
                type: 'Changed role for individual collaborator',
                content: this.utils.translate('reports.action_text.update_role_user')
            },
            {
                value: constant_module_1.HistoryType.invite_user,
                name: 'invite_user',
                type: 'Added individual collaborator',
                content: this.utils.translate('reports.action_text.invite_user'),
                contents: ''
            },
            {
                value: constant_module_1.HistoryType.invite_group,
                name: 'invite_group',
                type: 'Added group collaborator',
                content: this.utils.translate('reports.action_text.invite_group'),
                contents: ''
            },
            {
                value: constant_module_1.HistoryType.update_role_group,
                name: 'update_role_group',
                type: 'Changed role for group collaborator',
                content: this.utils.translate('reports.action_text.update_role_group')
            },
            {
                value: constant_module_1.HistoryType.remove_group,
                name: 'remove_group',
                type: 'Removed group collaborator',
                content: this.utils.translate('reports.action_text.remove_group')
            },
            // 8 - GROUP USER (800 - 899)
            {
                value: constant_module_1.HistoryType.create_group,
                name: 'create_group',
                type: 'Created a member group',
                content: this.utils.translate('reports.action_text.create_group')
            },
            {
                value: constant_module_1.HistoryType.update_group,
                name: 'update_group',
                type: 'Updated a member group',
                content: this.utils.translate('reports.action_text.update_group')
            },
            {
                value: constant_module_1.HistoryType.delete_group,
                name: 'delete_group',
                type: 'Deleted a member group',
                content: this.utils.translate('reports.action_text.delete_group')
            },
            {
                value: constant_module_1.HistoryType.add_member_group,
                name: 'add_member_group',
                type: 'Added member to group',
                content: this.utils.translate('reports.action_text.add_member_group'),
                contents: '',
                detail: '',
                details: ''
            },
            {
                value: constant_module_1.HistoryType.remove_member_group,
                name: 'remove_member_group',
                type: 'Removed member from group',
                content: this.utils.translate('reports.action_text.remove_member_group'),
                contents: ''
            },
            {
                value: constant_module_1.HistoryType.move_member_group,
                name: 'move_member_group',
                type: 'Moved member to another group',
                content: this.utils.translate('reports.action_text.move_member_group'),
                contents: ''
            },
            // 9 - LABEL (900 - 999)
            {
                value: constant_module_1.HistoryType.create_label,
                name: 'create_label',
                type: 'Created label',
                content: this.utils.translate('reports.action_text.create_label')
            },
            {
                value: constant_module_1.HistoryType.update_label,
                name: 'update_label',
                type: 'Updated label',
                content: this.utils.translate('reports.action_text.update_label')
            },
            {
                value: constant_module_1.HistoryType.delete_label,
                name: 'delete_label',
                type: 'Deleted label',
                content: this.utils.translate('reports.action_text.delete_label')
            },
            // 10 - GROUP ADDRESS (1000 - 1099)
            {
                value: constant_module_1.HistoryType.create_address_group,
                name: 'create_address_group',
                type: 'Created address book group',
                content: this.utils.translate('reports.action_text.create_address_group')
            },
            {
                value: constant_module_1.HistoryType.update_address_group,
                name: 'update_address_group',
                type: 'Updated address book group',
                content: this.utils.translate('reports.action_text.update_address_group')
            },
            {
                value: constant_module_1.HistoryType.delete_address_group,
                name: 'delete_address_group',
                type: 'Deleted address book group',
                content: this.utils.translate('reports.action_text.delete_address_group')
            },
            {
                value: constant_module_1.HistoryType.add_address_group,
                name: 'add_address_group',
                type: 'Added address book to group',
                content: this.utils.translate('reports.action_text.add_address_group'),
                contents: ''
            },
            {
                value: constant_module_1.HistoryType.remove_address_group,
                name: 'remove_address_group',
                type: 'Removed address book from group',
                content: this.utils.translate('reports.action_text.remove_address_group'),
                contents: ''
            },
            {
                value: constant_module_1.HistoryType.move_address_group,
                name: 'move_address_group',
                type: 'Moved address book to another group',
                content: this.utils.translate('reports.action_text.move_address_group'),
                contents: ''
            },
            // 11 - LINK (1100 - 1199)
            {
                value: constant_module_1.HistoryType.create_link,
                name: 'create_link',
                type: 'Created link',
                content: this.utils.translate('reports.action_text.create_link')
            },
            {
                value: constant_module_1.HistoryType.delete_link,
                name: 'delete_link',
                type: 'Deleted link',
                content: this.utils.translate('reports.action_text.delete_link')
            },
            {
                value: constant_module_1.HistoryType.update_link,
                name: 'update_link',
                type: 'Updated link',
                content: this.utils.translate('reports.action_text.update_link')
            },
            {
                value: constant_module_1.HistoryType.share_link,
                name: 'share_link',
                type: 'Shared link',
                content: this.utils.translate('reports.action_text.share_link'),
                contents: ''
            },
            {
                value: constant_module_1.HistoryType.share_link_secure_mail,
                name: 'share_link_secure_mail',
                type: 'Shared link Secure Mail',
                content: this.utils.translate('reports.action_text.share_link_secure_mail'),
                contents: ''
            },
            // 12 - COMMENT (1200 - 1299)
            {
                value: constant_module_1.HistoryType.add_comment,
                name: 'add_comment',
                type: 'Added comment in project',
                content: this.utils.translate('reports.action_text.add_comment')
            },
            {
                value: constant_module_1.HistoryType.update_comment,
                name: 'update_comment',
                type: 'Updated comment in project',
                content: this.utils.translate('reports.action_text.update_comment')
            },
            {
                value: constant_module_1.HistoryType.delete_comment,
                name: 'delete_comment',
                type: 'Deleted comment in project',
                content: this.utils.translate('reports.action_text.delete_comment')
            },
            {
                value: constant_module_1.HistoryType.add_comment_file,
                name: 'add_comment_file',
                type: 'Added comment in file',
                content: this.utils.translate('reports.action_text.add_comment_file')
            },
            {
                value: constant_module_1.HistoryType.update_comment_file,
                name: 'update_comment_file',
                type: 'Updated comment in file',
                content: this.utils.translate('reports.action_text.update_comment_file')
            },
            {
                value: constant_module_1.HistoryType.delete_comment_file,
                name: 'delete_comment_file',
                type: 'Deleted comment in file',
                content: this.utils.translate('reports.action_text.delete_comment_file')
            }
        ];
        this.disableAction = true;
        this.isShowFilter = false;
        this.maxDate = new Date();
    }
    ReportComponent.prototype.ngOnInit = function () {
        if (!this.authenticateService.isUseSDGlobal) {
            this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: this.utils.translate('errors.err_access_function')
            });
            this.router.navigate(['/member/list']);
        }
        this.rowOptions = constant_module_1.Constant.rowsPerPageOptions;
        this.authUser = this.authenticateService.getAuthUser();
        this.defaultRangeDates();
        this.loadMembers();
        this.loadGroups();
        this.loadTreeSelectAll();
    };
    // get range 2 weeks
    ReportComponent.prototype.defaultRangeDates = function () {
        this.rangeDates = [this.utils.subtractDays(new Date(), 14), new Date()];
    };
    ReportComponent.prototype.onChangeRangeDates = function (event) {
        if (this.rangeDates && event[0] && event[1]) {
            // set default 90 days
            if (this.utils.calc2Date(event[0], event[1]) > 89) {
                this.rangeDates = [event[0], this.utils.addDays(event[0], 89)];
            }
            // set default date now
            if (this.utils.calc2Date(new Date(), event[1]) > 0) {
                this.rangeDates[1] = new Date();
            }
            // check startDate > endDate
            this.isInvalidRangeDate = (this.utils.calc2Date(event[0], event[1]) < 0);
        }
    };
    ReportComponent.prototype.loadMembers = function () {
        var _this = this;
        this.userService.getUsersAll(this.authUser.team_id).subscribe(function (response) {
            if (response.status === 200) {
                if (_this.authUser.role_id === constant_module_1.SystemRole.Manager) {
                    _this.members = _.filter(response.data, function (member) { return member.role_id !== constant_module_1.SystemRole.TeamAdmin; });
                }
                else {
                    _this.members = response.data;
                }
            }
            else {
                _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
            }
        }, function (error) {
            if (error.status === 401) {
                _this.showToast('error', _this.utils.translate('sever_errors.' + error.status));
                window.location.reload();
            }
            else {
                _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
            }
        });
    };
    ReportComponent.prototype.loadGroups = function () {
        var _this = this;
        this.userGroupService.getGroupsAll().subscribe(function (response) {
            if (response.status === 200) {
                _this.groupsAll = response.data;
            }
            else {
                _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
            }
        }, function (error) {
            if (error.status !== 401) {
                _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
            }
        });
    };
    ReportComponent.prototype.loadTreeSelectAll = function () {
        var _this = this;
        this.selectedSearchField = { name: this.utils.translate('reports.select_all'), code: 0 };
        this.treeSelectAll.push({ label: this.utils.translate('reports.select_all'), expanded: true });
        this.originNodes[0].children.forEach(function (tree) {
            if ([-4, -8, -6, -10, -3, -5].includes(tree.data)) {
                _this.treeLeft.push(tree);
            }
            else {
                _this.treeRight.push(tree);
            }
        });
    };
    ReportComponent.prototype.goToExport = function () {
        if (this.rangeDates[0] && this.rangeDates[1]) {
            var sDateUTC = this.rangeDates[0];
            var eDateUTC = this.rangeDates[1];
            var params = {
                auth_token: this.cookieService.get('a_t'),
                team_id: this.authUser.team_id,
                user_ids: this.selectedMembers.map(function (x) { return x.user_id; }).toString(),
                group_ids: this.selectedGroups.map(function (x) { return x.group_user_id; }).toString(),
                history_types: this.selectedNodes.filter(function (x) { return x.data > 0; }).map(function (x) { return x.data; }).toString(),
                from_date: moment_1.default(sDateUTC).format('MM/DD/YYYY 00:00:00'),
                to_date: moment_1.default(eDateUTC).format('MM/DD/YYYY 23:59:59')
            };
            this.reportsService.getExportReport(params).toPromise().then(function (res) {
                var BOM = '\uFEFF'; // Use this and utf8 to support hebrew
                var blob = new Blob([BOM + res], {
                    type: 'data:text/csv;charset=utf-8'
                });
                FileSaver.saveAs(blob, '689Cloud-Report-' + new Date().getTime() + '.csv', true);
            });
        }
    };
    ReportComponent.prototype.loadHistories = function (event) {
        this.params.page_number = (event.first / event.rows) + 1;
        this.params.page_size = event.rows;
        this.rows = event.rows;
        this.loadDataReport();
    };
    ReportComponent.prototype.goToRun = function () {
        this.params.page_number = 1;
        this.first = 0;
        this.loadDataReport();
    };
    ReportComponent.prototype.loadDataReport = function () {
        var _this = this;
        if (!this.disableAction && this.rangeDates[0] && this.rangeDates[1]) {
            this.isShowFilter = false;
            this.loading = true;
            var sDateUTC = this.rangeDates[0];
            var eDateUTC = this.rangeDates[1];
            var params = {
                team_id: this.authUser.team_id,
                user_ids: this.selectedMembers.map(function (x) { return x.user_id; }).toString(),
                group_ids: this.selectedGroups.map(function (x) { return x.group_user_id; }).toString(),
                history_types: this.selectedNodes.filter(function (x) { return x.data > 0; }).map(function (x) { return x.data; }).toString(),
                from_date: moment_1.default(sDateUTC).format('MM/DD/YYYY 00:00:00'),
                to_date: moment_1.default(eDateUTC).format('MM/DD/YYYY 23:59:59'),
                page_number: this.params.page_number,
                page_size: this.params.page_size
            };
            this.reportsService.getRetrieveReport(params).subscribe(function (response) {
                if (response.status === 200) {
                    _this.histories = response.data.content;
                    _this.totalRecords = response.data.total_elements;
                    _this.loadData();
                }
                else {
                    _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
                }
                _this.loading = false;
            }, function (error) {
                _this.showToast('error', _this.utils.translate('default_toast.load_data_failed'));
                _this.loading = false;
            });
        }
    };
    ReportComponent.prototype.loadData = function () {
        var _this = this;
        this.histories.forEach(function (history) {
            history.action = _this.utils.getTextAction(history, _this.historyTypes);
            history.actionDetail = _this.getTextActionDetails(history);
        });
    };
    ReportComponent.prototype.getTextActionDetails = function (history) {
        var _this = this;
        // get length result
        var result = history.data && history.data.result, length = (result) ? result.length : 0;
        var historyType = this.historyTypes.find(function (x) { return x.value == history.history_type; });
        if (historyType.value === 1104) {
            result.findIndex(function (res) { return res.name === _this.authUser.mail_address; });
        }
        // get translate if exist folder
        var folderStr = '', multiStr = '';
        if (result && history.data.result[0] && history.data.result[0].content_type
            && history.data.result[0].content_type.includes('/folder')) {
            folderStr = '_folder';
        }
        else if (history.data && history.data.parent && history.data.parent.content_type.includes('/folder')) {
            folderStr = '_folder';
        }
        if (length > 1) {
            multiStr = 's';
        }
        var translateStr = this.utils.translate("reports.detail." + (historyType.name + multiStr + folderStr));
        // folderName
        if (translateStr.includes('{{folderName}}')) {
            translateStr = translateStr.replace('{{folderName}}', history.data.parent.name);
        }
        // toName
        if (translateStr.includes('{{toName}}')) {
            translateStr = translateStr.replace('{{name}}', history.data.object[0].old_name).replace('{{toName}}', history.data.object[0].name);
        }
        // name && projectName
        if (translateStr.includes('{{name}}') && translateStr.includes('{{projectName}}')) {
            var projectName = history.data.parent.project_name;
            var parentName = history.data.parent.name;
            if ([203, 207, 506].includes(history.history_type)) {
                translateStr = translateStr.replace('{{name}}', history.data.result[0].name);
            }
            else {
                translateStr = translateStr.replace('{{name}}', parentName);
            }
            translateStr = translateStr.replace('{{projectName}}', (projectName) ? projectName : ((parentName) ? parentName : 'N/A'));
        }
        // name && parentName
        if (translateStr.includes('{{name}}') && translateStr.includes('{{parentName}}')) {
            if ([209, 210, 1203, 1204, 1205].includes(history.history_type)) {
                translateStr = translateStr.replace('{{name}}', (history.data.object) ? history.data.object[0].name : 'N/A')
                    .replace('{{parentName}}', history.data.parent.name);
            }
            translateStr = ([503].includes(history.history_type)) ? translateStr.replace('{{name}}', history.data.result[0].name) : translateStr = translateStr.replace('{{name}}', history.data.parent.name);
            translateStr = translateStr.replace('{{parentName}}', history.data.parent.project_name);
        }
        // name
        if (translateStr.includes('{{name}}')) {
            if ([501, 505].includes(history.history_type)) {
                translateStr = translateStr.replace('{{name}}', history.data.parent.project_name);
            }
            else {
                var name_1 = (history.data.object) ? history.data.object[0].name : history.data.parent.name;
                translateStr = translateStr.replace('{{name}}', name_1);
            }
        }
        // projectName
        if (translateStr.includes('{{projectName}}')) {
            var projectName = (history.data && history.data.parent && history.data.parent.project_name);
            var parentName = (history.data && history.data.parent && history.data.parent.name);
            translateStr = translateStr.replace('{{projectName}}', (projectName) ? projectName : ((parentName) ? parentName : 'N/A'));
        }
        // parentName
        if (translateStr.includes('{{parentName}}')) {
            var replaceText = (history.data.parent && history.data.parent.name) ? history.data.parent.name : 'N/A';
            translateStr = translateStr.replace('{{parentName}}', replaceText);
        }
        // count
        if (translateStr.includes('{{count}}')) {
            translateStr = translateStr.replace('{{count}}', length);
        }
        // email
        if (translateStr.includes('{{email}}')) {
            translateStr = translateStr.replace('{{email}}', history.data.result[0].email);
        }
        // set values
        if (length > 1) {
            historyType.details = translateStr;
        }
        else {
            historyType.detail = translateStr;
        }
        if (translateStr.includes("reports.detail")) {
            translateStr = this.utils.translate("reports.action_text." + historyType.name);
        }
        return translateStr;
    };
    ReportComponent.prototype.handleSelection = function (level) {
        var _this = this;
        // event check box select all
        if (level === 'selectAll') {
            if (!this.checkAllFilter) {
                if (this.selectedNodes.length <= this.utils.getLengthNodes(this.originNodes[0].children)) {
                    // if check all = false. check all nodes
                    this.utils.checkAllNodes(this.utils.searchTreeNodes(this.originNodes[0], this.searchFields[0]), this.selectedNodes);
                    // set disable action of button export and run = false
                    this.needCheckAllFilter(true);
                }
                // select nodes length = origin length + 1. ->> uncheck check all
                if (this.selectedNodes.length <= this.utils.getLengthNodes(this.originNodes[0].children) + 1) {
                    this.selectedNodes = [];
                    // set disable action of button export and run = true
                    this.needCheckAllFilter(false);
                }
                // clone old nodes from selected nodes -> revert old selected nodes
                if (this.oldNodes.length === 0) {
                    this.oldNodes = tslib_1.__spread(this.selectedNodes);
                }
            }
            else {
                // if check all = true. remove list in selected nodes
                this.selectedNodes = [];
                // set disable action of button export and run = true
                this.needCheckAllFilter(false);
            }
        }
        // event check box others
        else {
            // except select all in selected node -> compare with origin node
            this.selectedNodes = this.selectedNodes.filter(function (x) { return x.label !== _this.utils.translate('reports.select_all'); });
            // set checkbox check all = true from old nodes if length selected Node >= origin node
            if (this.selectedNodes.length === this.utils.getLengthNodes(this.originNodes[0].children)) {
                this.selectedNodes = tslib_1.__spread(this.oldNodes);
                this.utils.checkAllNodes(this.utils.searchTreeNodes(this.originNodes[0], this.searchFields[0]), this.selectedNodes);
            }
            // set disable action of button export and run
            this.disableAction = this.selectedNodes.length <= 0;
            this.checkAllFilter = false;
        }
    };
    ReportComponent.prototype.needCheckAllFilter = function (needFilter) {
        this.checkAllFilter = needFilter;
        this.disableAction = !needFilter;
    };
    ReportComponent.prototype.onChangeSearchField = function () {
        // select all
        if (this.selectedSearchField.code !== 0) {
            // other, select sub
            var tree = this.utils.searchTreeNodes(this.originNodes[0], this.selectedSearchField);
            if (tree) {
                this.treeNodes = [tree];
            }
        }
    };
    ReportComponent.prototype.onActivityDetails = function (history) {
        this.historyDetail = history.data;
        this.historyDetail.actionDetail = history.actionDetail;
        this.historyDetail.history_type = history.history_type;
        if (history.user_first_name && history.user_last_name) {
            this.historyDetail.user = {
                email: history.user_email,
                first_name: history.user_first_name,
                last_name: history.user_last_name
            };
        }
        else {
            this.historyDetail.user = {
                email: this.historyDetail.user_action.email_address,
                first_name: this.historyDetail.user_action.first_name,
                last_name: this.historyDetail.user_action.last_name
            };
        }
        this.getDetails(history);
        this.isShowDetail = true;
    };
    ReportComponent.prototype.getDetails = function (history) {
        var params = [], templateType = 'detail1';
        switch (history.history_type) {
            case constant_module_1.HistoryType.add_project:
            case constant_module_1.HistoryType.update_project:
                {
                    this.dataInput = history.data;
                    templateType = 'projectDetail';
                }
                break;
            // delete project
            case constant_module_1.HistoryType.delete_project:
                {
                    this.historyDetail.option = 'project';
                    templateType = 'detail3';
                }
                break;
            case constant_module_1.HistoryType.transferred_a_account:
            case constant_module_1.HistoryType.transferred_project:
                {
                    this.historyDetail.option = 'listTransfer';
                    templateType = 'detail3';
                }
                break;
            case constant_module_1.HistoryType.add_user:
            case constant_module_1.HistoryType.delete_user:
                {
                    params = [
                        { name: this.utils.translate('label.common.first_name'), value: history.data.result[0].first_name },
                        { name: this.utils.translate('label.common.last_name'), value: history.data.result[0].last_name },
                        { name: this.utils.translate('label.common.mail_address'), value: history.data.result[0].email },
                        { name: this.utils.translate('label.common.role'), value: history.data.result[0].role }
                    ];
                }
                break;
            // update member
            case constant_module_1.HistoryType.update_user:
                {
                    params = [
                        {
                            name: this.utils.translate('label.common.first_name'),
                            value: history.data.result[0].first_name,
                            value1: history.data.result[0].old_first_name
                        },
                        {
                            name: this.utils.translate('label.common.last_name'),
                            value: history.data.result[0].last_name,
                            value1: history.data.result[0].old_last_name
                        },
                        {
                            name: this.utils.translate('label.common.mail_address'),
                            value: history.data.result[0].email,
                            value1: history.data.result[0].old_email
                        },
                        {
                            name: this.utils.translate('label.common.role'),
                            value: history.data.result[0].new_role,
                            value1: history.data.result[0].role,
                        }
                    ];
                    this.historyDetail.isChangePassword = history.data.result[0].is_password_change;
                    this.historyDetail.option = 'updateMember';
                    templateType = 'detail2';
                }
                break;
            case constant_module_1.HistoryType.team_admin_login_member:
                {
                    this.historyDetail.option = 'loginAsMember';
                    templateType = 'detail2';
                }
                break;
            // rename file
            case constant_module_1.HistoryType.update_file:
                {
                    params = [{
                            name: history.data.result[0].content_type,
                            value: history.data.result[0].name,
                            value1: history.data.result[0].old_name
                        }];
                    this.historyDetail.option = 'renameFile';
                    templateType = 'detail2';
                }
                break;
            case constant_module_1.HistoryType.attach_label:
            case constant_module_1.HistoryType.detach_label:
                {
                    this.historyDetail.option = 'listLabel';
                    templateType = 'detail3';
                }
                break;
            // create, delete address book
            case constant_module_1.HistoryType.add_address:
            case constant_module_1.HistoryType.delete_address:
                {
                    params = [
                        {
                            name: this.utils.translate('label.common.first_name'),
                            value: history.data.result[0].first_name
                        },
                        {
                            name: this.utils.translate('label.common.middle_name'),
                            value: history.data.result[0].middle_name
                        },
                        {
                            name: this.utils.translate('label.common.last_name'),
                            value: history.data.result[0].last_name
                        }
                    ];
                }
                break;
            case constant_module_1.HistoryType.update_address:
                {
                    params = [
                        {
                            name: this.utils.translate('label.common.first_name'),
                            value: history.data.result[0].first_name,
                            value1: history.data.result[0].old_first_name
                        },
                        {
                            name: this.utils.translate('label.common.middle_name'),
                            value: history.data.result[0].middle_name,
                            value1: history.data.result[0].old_middle_name
                        },
                        {
                            name: this.utils.translate('label.common.last_name'),
                            value: history.data.result[0].last_name,
                            value1: history.data.result[0].old_last_name
                        }
                    ];
                    this.historyDetail.option = 'updateMember';
                    templateType = 'detail2';
                }
                break;
            case constant_module_1.HistoryType.create_group:
            case constant_module_1.HistoryType.delete_group:
            case constant_module_1.HistoryType.create_address_group:
            case constant_module_1.HistoryType.delete_address_group:
                {
                    params = [
                        { name: this.utils.translate('label.common.name'), value: history.data.result[0].name },
                        { name: this.utils.translate('label.common.description'), value: history.data.result[0].description },
                    ];
                }
                break;
            case constant_module_1.HistoryType.add_member_group:
            case constant_module_1.HistoryType.remove_member_group:
            case constant_module_1.HistoryType.move_member_group:
            case constant_module_1.HistoryType.add_address_group:
            case constant_module_1.HistoryType.remove_address_group:
            case constant_module_1.HistoryType.move_address_group:
                {
                    for (var i = 0; i < history.data.result.length; i++) {
                        if (this.authUser.lang !== 'ja') {
                            params.push({
                                name: history.data.result[i].first_name + ' ' + history.data.result[i].last_name,
                                value: history.data.result[i].email
                            });
                        }
                        else {
                            params.push({
                                name: history.data.result[i].last_name + ' ' + history.data.result[i].first_name,
                                value: history.data.result[i].email
                            });
                        }
                    }
                }
                break;
            case constant_module_1.HistoryType.update_group:
            case constant_module_1.HistoryType.update_address_group:
                {
                    params = [
                        {
                            name: this.utils.translate('label.common.name'),
                            value: history.data.result[0].name,
                            value1: history.data.result[0].old_name
                        },
                        {
                            name: this.utils.translate('label.common.description'),
                            value: history.data.result[0].description,
                            value1: history.data.result[0].old_description
                        }
                    ];
                    this.historyDetail.option = 'updateMember';
                    templateType = 'detail2';
                }
                break;
            // rename folder
            case constant_module_1.HistoryType.update_folder:
                {
                    this.historyDetail.option = 'renameFolder';
                    templateType = 'detail2';
                }
                break;
            case constant_module_1.HistoryType.add_folder:
            case constant_module_1.HistoryType.update_folder_setting:
                {
                    this.dataInput = history.data;
                    templateType = 'folderDetail';
                }
                break;
            case constant_module_1.HistoryType.revoke_user:
            case constant_module_1.HistoryType.add_file:
            case constant_module_1.HistoryType.delete_file_forever:
            case constant_module_1.HistoryType.restore_file:
            case constant_module_1.HistoryType.move_file:
            case constant_module_1.HistoryType.delete_file:
            case constant_module_1.HistoryType.delete_license:
            case constant_module_1.HistoryType.copy_file:
            case constant_module_1.HistoryType.delete_forever_folder:
            case constant_module_1.HistoryType.delete_folder:
            case constant_module_1.HistoryType.move_folder:
            case constant_module_1.HistoryType.restore_folder:
            case constant_module_1.HistoryType.copy_folder:
                {
                    this.historyDetail.option = 'listFile';
                    templateType = 'detail3';
                }
                break;
            // share_link
            case constant_module_1.HistoryType.create_link:
            case constant_module_1.HistoryType.delete_link:
                {
                    this.dataInput = history.data;
                    templateType = 'linkDetail';
                }
                break;
            case constant_module_1.HistoryType.update_link:
            case constant_module_1.HistoryType.share_link:
            case constant_module_1.HistoryType.share_link_secure_mail:
                {
                    this.dataInput = history.data;
                    this.historyDetail.showDrmWm = true;
                    this.historyDetail.showUserSend = true;
                    templateType = 'linkDetail';
                }
                break;
            case constant_module_1.HistoryType.encode_file:
            case constant_module_1.HistoryType.update_encode_file:
                {
                    this.dataInput = history.data.license_tracking;
                    templateType = 'fileDetail';
                }
                break;
            case constant_module_1.HistoryType.remove_user:
            case constant_module_1.HistoryType.update_role_user:
            case constant_module_1.HistoryType.invite_user:
            case constant_module_1.HistoryType.invite_group:
            case constant_module_1.HistoryType.update_role_group:
            case constant_module_1.HistoryType.remove_group:
                {
                    this.historyDetail.option = 'listCollaborator';
                    this.historyDetail.lang = this.authUser.lang;
                    templateType = 'detail3';
                }
                break;
            case constant_module_1.HistoryType.create_label:
            case constant_module_1.HistoryType.delete_label:
                {
                    this.historyDetail.label = {
                        name: history.data.result[0].name,
                        description: history.data.result[0].description,
                        color: history.data.result[0].color
                    };
                }
                break;
            case constant_module_1.HistoryType.update_label:
                {
                    this.historyDetail.label = {
                        name: history.data.result[0].name,
                        description: history.data.result[0].description,
                        color: history.data.result[0].color,
                        old_name: history.data.result[0].old_name,
                        old_description: history.data.result[0].old_description,
                        old_color: history.data.result[0].old_color
                    };
                    templateType = 'detail2';
                }
                break;
            case constant_module_1.HistoryType.add_comment:
            case constant_module_1.HistoryType.delete_comment:
            case constant_module_1.HistoryType.add_comment_file:
            case constant_module_1.HistoryType.delete_comment_file:
                {
                    this.historyDetail.option = 'listComment';
                    templateType = 'detail3';
                }
                break;
            case constant_module_1.HistoryType.update_comment:
            case constant_module_1.HistoryType.update_comment_file:
                {
                    params = [{
                            value: history.data.result[0].name,
                            value1: history.data.result[0].old_name
                        }];
                    this.historyDetail.option = 'updateComment';
                    templateType = 'detail2';
                }
                break;
        }
        this.historyDetail.templateType = templateType;
        if (templateType == 'detail1') {
            this.itemTemp1 = params;
        }
        if (templateType == 'detail2') {
            this.itemTemp2 = params;
        }
    };
    ReportComponent.prototype.searchMembers = function (event) {
        var _this = this;
        this.memberResults = this.members.filter(function (member) { return member.mail_address.toLowerCase()
            .includes(event.query && event.query.trim()) &&
            _this.selectedMembers.findIndex(function (selected) { return member == selected; }) < 0; });
    };
    ReportComponent.prototype.searchGroups = function (event) {
        var _this = this;
        this.groupResults = this.groupsAll.filter(function (group) { return group.name.toLowerCase().includes(event.query.toLowerCase().trim())
            && _this.selectedGroups.findIndex(function (selected) { return group == selected; }) < 0; });
    };
    ReportComponent.prototype.onSelectGroup = function (event) {
        console.log("event", event);
        var index = this.selectedGroups.findIndex(function (item) { return event.group_user_id === item.group_user_id; });
    };
    ReportComponent.prototype.showToast = function (severity, detail) {
        this.messageService.add({
            key: 'toast',
            severity: severity,
            detail: detail
        });
    };
    ReportComponent.prototype.loadModalGroup = function (mode) {
        this.modeModal = mode;
        this.selectedGroupInModal = [];
        this.first = 0;
        this.rows = 5;
        this.searchKey = '';
        this.paramsModalGroup = {
            search_key: '',
            sort_field: 'numberUser',
            asc_sort: false,
            page_number: 1,
            page_size: 5,
        };
        this.displayModalGroup = true;
        this.getModalGroup();
    };
    ReportComponent.prototype.loadGroupsModalEvent = function (event) {
        this.paramsModalGroup.page_number = (event.first / event.rows) + 1;
        this.paramsModalGroup.page_size = event.rows;
        this.rows = event.rows;
        this.paramsModalGroup.asc_sort = (event.sortOrder === 1);
        if (event.sortField) {
            this.paramsModalGroup.sort_field = event.sortField;
        }
        this.getModalGroup();
    };
    ReportComponent.prototype.searchTable = function (event) {
        if (event.keyCode === 13) {
            this.paramsModalGroup.search_key = this.searchKey;
            this.paramsModalGroup.page_number = 1;
            this.firstModalGroup = 0;
            this.getModalGroup();
        }
    };
    ReportComponent.prototype.getModalGroup = function () {
        var _this = this;
        this.loadingModalGroup = true;
        this.isSelectedGroupAll = false;
        this.paramsModalGroup.team_id = this.authUser.team_id;
        this.userGroupService.getGroupsAllPaging(this.paramsModalGroup)
            .subscribe(function (response) {
            if (response.status === 200) {
                _this.groups = response.data.content;
                _this.totalRecordsGroup = response.data.total_elements;
                if (_this.selectedGroupInModal.length > 0) {
                    var numberCheckAll_1 = 0;
                    _this.groups.forEach(function (result) {
                        _this.selectedGroupInModal.forEach(function (selected) {
                            if (result.group_user_id === selected.group_user_id) {
                                result._selected = true;
                                numberCheckAll_1++;
                                if (numberCheckAll_1 === _this.groups.length) {
                                    _this.isSelectedGroupAll = true;
                                }
                            }
                        });
                    });
                }
            }
            _this.loadingModalGroup = false;
        }, function (error) {
            // console.log('error', error);
            _this.loadingModalGroup = false;
        });
    };
    ReportComponent.prototype.confirmSelectGroups = function (res) {
        var _this = this;
        this.displayModalGroup = false;
        if (this.modeModal === 'group') {
            res.forEach(function (itemChoose) {
                if (!_this.selectedGroups.find(function (item) { return item.group_user_id === itemChoose.group_user_id; })) {
                    _this.selectedGroups = tslib_1.__spread(_this.selectedGroups, [itemChoose]);
                }
            });
        }
        if (this.modeModal === 'member') {
            this.paramModalMember.group_user_ids = res.map(function (x) { return x.group_user_id; }).toString();
            this.paramModalMember.team_id = this.authUser.team_id;
            this.userGroupService.getGroupMembers(this.paramModalMember)
                .subscribe(function (response) {
                if (response.status === 200) {
                    response.data.forEach(function (itemChoose) {
                        var duplicateList = _.filter(_this.selectedMembers, function (user) {
                            return user.mail_address === itemChoose.mail_address;
                        });
                        if (duplicateList.length === 0) {
                            _this.selectedMembers = tslib_1.__spread(_this.selectedMembers, [itemChoose]);
                        }
                    });
                }
            });
        }
    };
    ReportComponent.prototype.customSystemPrimeNG = function () {
        // Custom click calendar always is shown
        calendar_1.Calendar.prototype.onButtonClick = function (event, inputfield) {
            inputfield.focus();
            this.showOverlay();
        };
    };
    // ---- custom checkbox selected users in ADD modal
    ReportComponent.prototype.toggleSelectedGroupAll = function () {
        var _this = this;
        if (this.isSelectedGroupAll) {
            if (this.selectedGroupInModal.length === 0) {
                this.groups.forEach(function (selected) {
                    selected._selected = true;
                    _this.selectedGroupInModal.push(selected);
                });
            }
            else {
                this.selectedGroupInModal = this.selectedGroupInModal.concat(this.groups);
                for (var i = 0; i < this.selectedGroupInModal.length; ++i) {
                    for (var j = i + 1; j < this.selectedGroupInModal.length; ++j) {
                        if (this.selectedGroupInModal[i].group_user_id === this.selectedGroupInModal[j].group_user_id) {
                            this.selectedGroupInModal.splice(j--, 1);
                        }
                    }
                }
            }
        }
        else {
            this.groups.forEach(function (item) {
                _this.selectedGroupInModal.forEach(function (selected) {
                    if (item.group_user_id === selected.group_user_id) {
                        _this.currentSelectedGroups.push(selected);
                    }
                });
            });
            this.removeSelected(this.currentSelectedGroups);
        }
        this.groups.forEach(function (item) {
            item._selected = _this.isSelectedGroupAll;
        });
    };
    ReportComponent.prototype.toggleSelectedGroup = function (obj) {
        var _this = this;
        if (obj && obj.group_user_id) {
            var index = this.selectedGroupInModal.findIndex(function (item) { return item.group_user_id === obj.group_user_id; });
            if (index > -1) {
                this.selectedGroupInModal.splice(index, 1);
                obj._selected = false;
            }
            else {
                this.selectedGroupInModal.push(obj);
                obj._selected = true;
            }
            this.isSelectedGroupAll = false;
            var numberCheckAll_2 = 0;
            this.groups.forEach(function (result) {
                _this.selectedGroupInModal.forEach(function (selected) {
                    if (result.group_user_id === selected.group_user_id) {
                        result._selected = true;
                        numberCheckAll_2++;
                        _this.isSelectedGroupAll = (numberCheckAll_2 === _this.groups.length);
                    }
                });
            });
        }
    };
    ReportComponent.prototype.removeSelected = function (list) {
        var _this = this;
        list.forEach(function (item) {
            var index = _this.selectedGroupInModal.findIndex(function (group) { return group.group_user_id === item.group_user_id; });
            _this.selectedGroupInModal.splice(index, 1);
        });
        this.currentSelectedGroups = [];
    };
    ReportComponent.ɵfac = function ReportComponent_Factory(t) { return new (t || ReportComponent)(i0.ɵɵdirectiveInject(i1.UtilsService), i0.ɵɵdirectiveInject(i2.AuthenticateService), i0.ɵɵdirectiveInject(i3.UserService), i0.ɵɵdirectiveInject(i4.UserGroupService), i0.ɵɵdirectiveInject(i5.MessageService), i0.ɵɵdirectiveInject(i6.ReportsService), i0.ɵɵdirectiveInject(i7.Router), i0.ɵɵdirectiveInject(i8.CookieService)); };
    ReportComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReportComponent, selectors: [["app-report"]], viewQuery: function ReportComponent_Query(rf, ctx) { if (rf & 1) {
            i0.ɵɵviewQuery(_c0, true);
        } if (rf & 2) {
            var _t = void 0;
            i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.calendar = _t.first);
        } }, features: [i0.ɵɵProvidersFeature([api_1.ConfirmationService])], decls: 45, vars: 59, consts: [[1, "margin-body"], [1, "p-text-secondary", "header-custom"], ["styleClass", "toolbar-custom"], ["pTemplate", "left"], [1, "p-mt-2"], [3, "selected", "selectedChange"], [3, "translate"], [1, "p-grid", "p-pb-2", "border-bottom"], [1, "p-col-12", "p-xl-4"], ["for", "range", 1, "p-text-secondary", "required", "p-text-bold", 3, "translate"], [1, "p-inputgroup"], ["selectionMode", "range", "id", "range", "required", "", 3, "ngModel", "maxDate", "showIcon", "placeholder", "ngModelChange"], ["calendar", ""], [1, "p-error"], [4, "ngIf"], ["class", "p-col-12 p-lg-6 p-xl-4", 4, "ngIf"], [1, "p-grid", "p-pt-2"], [1, "p-col-12", "p-sm-3", "border-right"], ["optionLabel", "name", 3, "options", "ngModel", "ngModelChange"], [1, "p-col-12", "p-sm-9", "p-pb-0"], ["class", "p-grid", 4, "ngIf"], ["styleClass", "p-datatable-striped p-datatable-responsive-demo", 3, "rowHover", "paginator", "lazy", "loading", "totalRecords", "value", "first", "rows", "rowsPerPageOptions", "sortOrder", "onLazyLoad", "firstChange"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], ["styleClass", "md-dialog", "position", "left", 3, "visible", "header", "baseZIndex", "modal", "visibleChange"], ["pTemplate", "footer"], ["styleClass", "md-dialog", "position", "left", 3, "header", "visible", "modal", "maximizable", "draggable", "resizable", "baseZIndex", "visibleChange"], ["styleClass", "p-datatable-striped p-datatable-responsive-demo", 3, "rowHover", "paginator", "lazy", "loading", "totalRecords", "sortField", "sortOrder", "value", "first", "rows", "selection", "onLazyLoad", "firstChange", "selectionChange"], ["pTemplate", "caption"], ["pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-success", "p-mr-2", 3, "disabled", "label", "click"], ["pButton", "", "pRipple", "", 1, "p-button-raised", "p-button-primary", "p-mr-2", 3, "disabled", "label", "click"], [1, "p-col-12", "p-lg-6", "p-xl-4"], ["for", "members", 1, "p-text-secondary", "p-text-bold", 3, "translate"], ["id", "members", "field", "mail_address", 3, "ngModel", "suggestions", "autoHighlight", "completeOnFocus", "multiple", "ngModelChange", "completeMethod"], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-users", 1, "p-button-primary", "p-inputgroup-addon", 3, "click"], ["for", "groups", 1, "p-text-secondary", "p-text-bold", 3, "translate"], ["id", "groups", "field", "name", 3, "ngModel", "suggestions", "autoHighlight", "completeOnFocus", "multiple", "ngModelChange", "completeMethod", "onSelect"], [1, "p-grid"], [1, "p-col-12", "p-pb-0"], ["selectionMode", "checkbox", 3, "value", "selection", "selectionChange"], [1, "p-sm-6", "p-pt-0"], [2, "width", "22%"], [2, "width", "26%"], [2, "width", "34%"], [2, "width", "10%"], [2, "width", "8%"], [1, "p-text-truncate"], [1, "p-d-flex", "p-flex-column"], [1, "p-mb-2"], ["class", "p-badge p-badge-success", "tooltipPosition", "top", 3, "pTooltip", 4, "ngIf"], ["tooltipPosition", "top", 1, "p-mb-2", 3, "pTooltip"], ["tooltipPosition", "top", 1, "p-badge", "p-badge-success", 3, "pTooltip"], [3, "authUser", "history"], ["pRipple", "", "class", "pi pi-info-circle purple btn-detail-custom", "tooltipPosition", "left", 3, "pTooltip", "click", 4, "ngIf"], ["pRipple", "", "tooltipPosition", "left", 1, "pi", "pi-info-circle", "purple", "btn-detail-custom", 3, "pTooltip", "click"], ["colspan", "7", 1, "p-text-center"], [1, "p-col-3", "p-text-secondary", "p-text-bold"], [1, "p-col-9"], [1, "p-col-9", 3, "innerHTML"], [1, "p-col-3", "p-mt-2", "p-text-secondary", "p-text-bold"], [1, "p-col-9", "p-mt-2", 3, "ngSwitch"], [4, "ngSwitchCase"], [3, "items", "label"], [3, "items", "history", "isChangePassword", "option", "label"], [3, "history", "historyType", "option", "lang"], [3, "data"], [3, "data", "showDrmWm", "showUserSend"], [3, "licenseTrackingDetail"], [1, "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", "p-field", 3, "label", "click"], [1, "p-d-flex", "p-ai-center", "p-jc-between"], [1, "p-input-icon-left"], [1, "pi", "pi-search"], ["pInputText", "", "type", "text", 1, "search-style", 3, "ngModel", "placeholder", "keyup", "ngModelChange"], ["name", "checkboxGroupAll", "binary", "true", 3, "ngModel", "ngModelChange", "click"], ["pSortableColumn", "groupName", 2, "width", "58%"], ["field", "groupName"], ["pSortableColumn", "numberUser", 2, "width", "32%"], ["field", "numberUser"], ["binary", "true", 3, "ngModel", "click", "ngModelChange"], [1, "p-text-13", "p-text-center"], ["colspan", "3", 1, "p-text-center"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-times p-button-icon-left", 1, "p-button-raised", "p-button-secondary", "p-button-outlined", "p-mr-2", 3, "label", "click"], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-check p-button-icon-left", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled", "click"]], template: function ReportComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "h2", 1);
            i0.ɵɵtext(2);
            i0.ɵɵpipe(3, "uppercase");
            i0.ɵɵpipe(4, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(5, "p-toolbar", 2);
            i0.ɵɵtemplate(6, ReportComponent_ng_template_6_Template, 6, 12, "ng-template", 3);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(7, "div", 4);
            i0.ɵɵelementStart(8, "p-accordion");
            i0.ɵɵelementStart(9, "p-accordionTab", 5);
            i0.ɵɵlistener("selectedChange", function ReportComponent_Template_p_accordionTab_selectedChange_9_listener($event) { return ctx.isShowFilter = $event; });
            i0.ɵɵelementStart(10, "p-header");
            i0.ɵɵelement(11, "span", 6);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(12, "div", 7);
            i0.ɵɵelementStart(13, "div", 8);
            i0.ɵɵelement(14, "label", 9);
            i0.ɵɵelementStart(15, "div", 10);
            i0.ɵɵelementStart(16, "p-calendar", 11, 12);
            i0.ɵɵlistener("ngModelChange", function ReportComponent_Template_p_calendar_ngModelChange_16_listener($event) { return ctx.rangeDates = $event; })("ngModelChange", function ReportComponent_Template_p_calendar_ngModelChange_16_listener($event) { return ctx.onChangeRangeDates($event); });
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(18, "div", 13);
            i0.ɵɵtemplate(19, ReportComponent_small_19_Template, 3, 3, "small", 14);
            i0.ɵɵtemplate(20, ReportComponent_small_20_Template, 3, 3, "small", 14);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(21, ReportComponent_div_21_Template, 5, 6, "div", 15);
            i0.ɵɵtemplate(22, ReportComponent_div_22_Template, 5, 6, "div", 15);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(23, "div", 16);
            i0.ɵɵelementStart(24, "div", 17);
            i0.ɵɵelementStart(25, "p-listbox", 18);
            i0.ɵɵlistener("ngModelChange", function ReportComponent_Template_p_listbox_ngModelChange_25_listener($event) { return ctx.selectedSearchField = $event; })("ngModelChange", function ReportComponent_Template_p_listbox_ngModelChange_25_listener() { return ctx.onChangeSearchField(); });
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(26, "div", 19);
            i0.ɵɵtemplate(27, ReportComponent_div_27_Template, 7, 6, "div", 20);
            i0.ɵɵtemplate(28, ReportComponent_div_28_Template, 2, 2, "div", 14);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(29, "p-table", 21);
            i0.ɵɵlistener("onLazyLoad", function ReportComponent_Template_p_table_onLazyLoad_29_listener($event) { return ctx.loadHistories($event); })("firstChange", function ReportComponent_Template_p_table_firstChange_29_listener($event) { return ctx.first = $event; });
            i0.ɵɵtemplate(30, ReportComponent_ng_template_30_Template, 18, 20, "ng-template", 22);
            i0.ɵɵtemplate(31, ReportComponent_ng_template_31_Template, 16, 12, "ng-template", 23);
            i0.ɵɵtemplate(32, ReportComponent_ng_template_32_Template, 4, 3, "ng-template", 24);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(33, "p-dialog", 25);
            i0.ɵɵlistener("visibleChange", function ReportComponent_Template_p_dialog_visibleChange_33_listener($event) { return ctx.isShowDetail = $event; });
            i0.ɵɵpipe(34, "translate");
            i0.ɵɵtemplate(35, ReportComponent_div_35_Template, 23, 21, "div", 20);
            i0.ɵɵtemplate(36, ReportComponent_ng_template_36_Template, 4, 5, "ng-template", 26);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(37, "p-dialog", 27);
            i0.ɵɵlistener("visibleChange", function ReportComponent_Template_p_dialog_visibleChange_37_listener($event) { return ctx.displayModalGroup = $event; });
            i0.ɵɵpipe(38, "translate");
            i0.ɵɵelementStart(39, "p-table", 28);
            i0.ɵɵlistener("onLazyLoad", function ReportComponent_Template_p_table_onLazyLoad_39_listener($event) { return ctx.loadGroupsModalEvent($event); })("firstChange", function ReportComponent_Template_p_table_firstChange_39_listener($event) { return ctx.first = $event; })("selectionChange", function ReportComponent_Template_p_table_selectionChange_39_listener($event) { return ctx.selectedGroupInModal = $event; });
            i0.ɵɵtemplate(40, ReportComponent_ng_template_40_Template, 5, 4, "ng-template", 29);
            i0.ɵɵtemplate(41, ReportComponent_ng_template_41_Template, 11, 7, "ng-template", 22);
            i0.ɵɵtemplate(42, ReportComponent_ng_template_42_Template, 7, 3, "ng-template", 23);
            i0.ɵɵtemplate(43, ReportComponent_ng_template_43_Template, 4, 3, "ng-template", 24);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(44, ReportComponent_ng_template_44_Template, 6, 11, "ng-template", 26);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 51, i0.ɵɵpipeBind1(4, 53, "label.report")), " ");
            i0.ɵɵadvance(7);
            i0.ɵɵproperty("selected", ctx.isShowFilter);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("translate", "reports.report_filters");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("translate", "reports.start_end_date");
            i0.ɵɵadvance(2);
            i0.ɵɵclassProp("ng-invalid", !ctx.rangeDates || ctx.rangeDates && (!ctx.rangeDates[0] || !ctx.rangeDates[1]) || ctx.isInvalidRangeDate);
            i0.ɵɵproperty("ngModel", ctx.rangeDates)("maxDate", ctx.maxDate)("showIcon", true)("placeholder", "mm/dd/yyyy - mm/dd/yyyy");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", !ctx.rangeDates);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.rangeDates && (!ctx.rangeDates[0] || !ctx.rangeDates[1]) || ctx.isInvalidRangeDate);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.authUser.role_id === ctx.systemRole.TeamAdmin || ctx.authUser.role_id === ctx.systemRole.Manager);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.authUser.role_id === ctx.systemRole.TeamAdmin);
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("options", ctx.searchFields)("ngModel", ctx.selectedSearchField);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.selectedSearchField && ctx.selectedSearchField.code === 0);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.selectedSearchField && ctx.selectedSearchField.code !== 0);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("rowHover", true)("paginator", ctx.totalRecords > 0)("lazy", true)("loading", ctx.loading)("totalRecords", ctx.totalRecords)("value", ctx.histories)("first", ctx.first)("rows", ctx.rows)("rowsPerPageOptions", ctx.rowOptions)("sortOrder", -1);
            i0.ɵɵadvance(4);
            i0.ɵɵproperty("visible", ctx.isShowDetail)("header", i0.ɵɵpipeBind1(34, 55, "header.report.activity_details"))("baseZIndex", 10000)("modal", true);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.historyDetail);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(38, 57, "label.common.select_group"));
            i0.ɵɵproperty("visible", ctx.displayModalGroup)("modal", true)("maximizable", true)("draggable", false)("resizable", false)("baseZIndex", 10000);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("sortField", ctx.paramsModalGroup.sort_field);
            i0.ɵɵproperty("rowHover", true)("paginator", ctx.totalRecordsGroup > 0)("lazy", true)("loading", ctx.loadingModalGroup)("totalRecords", ctx.totalRecordsGroup)("sortOrder", -1)("value", ctx.groups)("first", ctx.first)("rows", ctx.rows)("selection", ctx.selectedGroupInModal);
        } }, directives: [i9.Toolbar, i5.PrimeTemplate, i10.Accordion, i10.AccordionTab, i5.Header, i11.TranslateDirective, i12.Calendar, i13.RequiredValidator, i13.NgControlStatus, i13.NgModel, i14.NgIf, i15.Listbox, i16.Table, i17.Dialog, i18.ButtonDirective, i19.Ripple, i20.AutoComplete, i21.Tree, i22.Tooltip, i23.RptActionComponent, i14.NgSwitch, i14.NgSwitchCase, i24.RptDetail1Component, i25.RptDetail2Component, i26.RptDetail3Component, i27.RptProjectDetailComponent, i28.RptFolderDetailComponent, i29.RptLinkDetailComponent, i30.RptFileDetailComponent, i13.DefaultValueAccessor, i31.InputText, i32.Checkbox, i16.SortableColumn, i16.SortIcon], pipes: [i14.UpperCasePipe, i11.TranslatePipe, i14.TitleCasePipe, i14.DatePipe], styles: ["[_nghost-%COMP%]     .p-calendar .p-inputtext {\n  min-height: 38px;\n  width: 300px;\n}\n[_nghost-%COMP%]     .p-calendar .p-datepicker {\n  padding: 5px;\n}\n[_nghost-%COMP%]     .p-datepicker table td {\n  padding: 5px 0 0 0;\n}\n[_nghost-%COMP%]     .p-datepicker table td > span {\n  width: 2.6rem;\n}\n[_nghost-%COMP%]     .p-button-icon-only {\n  background-color: #337ab7 !important;\n  border-color: #2e6da4 !important;\n}\n[_nghost-%COMP%]     .p-autocomplete-item {\n  text-overflow: ellipsis;\n}\n[_nghost-%COMP%]     .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n  width: 300px;\n}\n[_nghost-%COMP%]     .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token {\n  margin-top: 0.2rem;\n  margin-bottom: 0.2rem;\n}\n[_nghost-%COMP%]     .p-autocomplete-token-label {\n  max-width: 220px;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n[_nghost-%COMP%]     .p-autocomplete .p-autocomplete-panel {\n  width: 337px;\n}\n[_nghost-%COMP%]     .p-listbox .p-listbox-list .p-listbox-item.p-highlight {\n  background-color: #4e73df;\n}\n[_nghost-%COMP%]     .p-tree {\n  border: none;\n  padding: 0;\n}\n[_nghost-%COMP%]     .p-tree .p-tree-container .p-treenode .p-treenode-content {\n  margin: 1px 0 2px 0;\n  padding: 0;\n}\n[_nghost-%COMP%]     .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight {\n  background-color: #ffffff;\n  color: #4e73df;\n}\n[_nghost-%COMP%]     .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler {\n  color: #1f1498 !important;\n}\n.border-right[_ngcontent-%COMP%] {\n  border-right: 1px solid #e2e2e2;\n}\n.border-bottom[_ngcontent-%COMP%] {\n  border-bottom: 1px solid #e2e2e2;\n}\n.p-ripple.purple[_ngcontent-%COMP%]   .p-ink[_ngcontent-%COMP%] {\n  background: rgba(255, 39, 176, 0.3);\n}\n.btn-detail-custom[_ngcontent-%COMP%] {\n  color: #4e73df;\n  font-weight: bold;\n  border-radius: 20px;\n  font-size: 1.9rem;\n  cursor: pointer;\n  box-shadow: 0 1px 2px 0 #4e73df, 0 1px 2px 0 #4e73df;\n}\n.level-1[_ngcontent-%COMP%] {\n  padding-left: 1rem !important;\n}\n.level-2[_ngcontent-%COMP%] {\n  padding-left: 1.7rem !important;\n}\n.level-3[_ngcontent-%COMP%] {\n  padding-left: 2.2rem !important;\n}\n/*# sourceMappingURL=data:application/json;base64,  */"] });
    return ReportComponent;
}());
exports.ReportComponent = ReportComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ReportComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-report',
                templateUrl: './report.component.html',
                styleUrls: ['./report.component.scss'],
                providers: [api_1.ConfirmationService]
            }]
    }], function () { return [{ type: i1.UtilsService }, { type: i2.AuthenticateService }, { type: i3.UserService }, { type: i4.UserGroupService }, { type: i5.MessageService }, { type: i6.ReportsService }, { type: i7.Router }, { type: i8.CookieService }]; }, { calendar: [{
            type: core_1.ViewChild,
            args: ['calendar']
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/report/rpt-action/rpt-action.component.ts":
/*!**********************************************************************!*\
  !*** ./src/app/team-admin/report/rpt-action/rpt-action.component.ts ***!
  \**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RptActionComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! primeng/tooltip */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../rpt-show-content-type/rpt-show-content-type.component */ "./src/app/team-admin/report/rpt-show-content-type/rpt-show-content-type.component.ts"));
function RptActionComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelement(1, "i", 5);
    i0.ɵɵelementEnd();
} }
function RptActionComponent_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelement(1, "i", 6);
    i0.ɵɵelementEnd();
} }
function RptActionComponent_div_0_span_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r12 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", ctx_r12.history.data.result[0].first_name, " ", ctx_r12.history.data.result[0].last_name, " ");
} }
function RptActionComponent_div_0_span_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r13 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", ctx_r13.history.data.result[0].last_name, " ", ctx_r13.history.data.result[0].first_name, " ");
} }
var _c0 = function (a0, a1, a2) { return [a0, a1, a2]; };
function RptActionComponent_div_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "div", 2);
    i0.ɵɵtemplate(2, RptActionComponent_div_0_div_2_Template, 2, 0, "div", 0);
    i0.ɵɵtemplate(3, RptActionComponent_div_0_div_3_Template, 2, 0, "div", 0);
    i0.ɵɵelementStart(4, "div", 3);
    i0.ɵɵelementStart(5, "div", 4);
    i0.ɵɵtemplate(6, RptActionComponent_div_0_span_6_Template, 2, 2, "span", 0);
    i0.ɵɵtemplate(7, RptActionComponent_div_0_span_7_Template, 2, 2, "span", 0);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "div", 4);
    i0.ɵɵtext(9);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction3(5, _c0, ctx_r0.historyTypeEnum.add_user, ctx_r0.historyTypeEnum.update_user, ctx_r0.historyTypeEnum.delete_user).includes(ctx_r0.history.history_type));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction3(9, _c0, ctx_r0.historyTypeEnum.add_address, ctx_r0.historyTypeEnum.update_address, ctx_r0.historyTypeEnum.delete_address).includes(ctx_r0.history.history_type));
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r0.authUser.lang !== "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.authUser.lang === "ja");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r0.history.data.result[0].email ? ctx_r0.history.data.result[0].email : "N/A");
} }
function RptActionComponent_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 7);
    i0.ɵɵelement(1, "i", 8);
    i0.ɵɵelementStart(2, "div", 9);
    i0.ɵɵelementStart(3, "div", 10);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r1.history.data.object ? ctx_r1.history.data.object[0].name : ctx_r1.history.data.result[0].name);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r1.history.data.object ? ctx_r1.history.data.object[0].name : ctx_r1.history.data.result[0].name, " ");
} }
function RptActionComponent_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 7);
    i0.ɵɵelement(1, "i", 11);
    i0.ɵɵelementStart(2, "span", 12);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r2.history.data.object ? ctx_r2.history.data.object[0].name : ctx_r2.history.data.result[0].name);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r2.history.data.object ? ctx_r2.history.data.object[0].name : ctx_r2.history.data.result[0].name, " ");
} }
function RptActionComponent_div_3_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelementStart(1, "span", 16);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r14 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r14.history.data.parent ? ctx_r14.history.data.parent.name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r14.history.data.result ? ctx_r14.history.data.parent.name : "N/A", " ");
} }
function RptActionComponent_div_3_ng_template_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 16);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r16 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r16.history.data.result ? ctx_r16.history.data.parent.project_name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r16.history.data.result ? ctx_r16.history.data.parent.project_name ? ctx_r16.history.data.parent.project_name : ctx_r16.history.data.parent.name : "N/A", " ");
} }
function RptActionComponent_div_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 7);
    i0.ɵɵelement(1, "i", 13);
    i0.ɵɵtemplate(2, RptActionComponent_div_3_span_2_Template, 3, 2, "span", 14);
    i0.ɵɵtemplate(3, RptActionComponent_div_3_ng_template_3_Template, 2, 2, "ng-template", null, 15, i0.ɵɵtemplateRefExtractor);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var _r15 = i0.ɵɵreference(4);
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r3.history.data.result[0] && ctx_r3.history.data.result[0].content_type && ctx_r3.history.data.result[0].content_type.includes("folder"))("ngIfElse", _r15);
} }
function RptActionComponent_div_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 7);
    i0.ɵɵelement(1, "i", 13);
    i0.ɵɵelementStart(2, "span", 16);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r4.history.data.result ? ctx_r4.history.data.result[0].name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r4.history.data.result ? ctx_r4.history.data.result[0].name : "N/A", " ");
} }
function RptActionComponent_div_5_app_rpt_show_content_type_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "app-rpt-show-content-type", 20);
} if (rf & 2) {
    var ctx_r17 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("condition", ctx_r17.history.data.result[0]);
} }
function RptActionComponent_div_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "div", 7);
    i0.ɵɵelementStart(2, "div", 17);
    i0.ɵɵtemplate(3, RptActionComponent_div_5_app_rpt_show_content_type_3_Template, 1, 1, "app-rpt-show-content-type", 18);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 9);
    i0.ɵɵelementStart(5, "div", 19);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r5.history.data.result[0]);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r5.history.data.result ? ctx_r5.history.data.result[0].name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r5.history.data.result ? ctx_r5.history.data.result[0].name : "N/A", " ");
} }
function RptActionComponent_div_6_app_rpt_show_content_type_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "app-rpt-show-content-type", 20);
} if (rf & 2) {
    var ctx_r18 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("condition", ctx_r18.history.data.object[0]);
} }
function RptActionComponent_div_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "div", 7);
    i0.ɵɵelementStart(2, "div", 17);
    i0.ɵɵtemplate(3, RptActionComponent_div_6_app_rpt_show_content_type_3_Template, 1, 1, "app-rpt-show-content-type", 18);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 9);
    i0.ɵɵelementStart(5, "div", 19);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r6.history.data.object[0]);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r6.history.data.object ? ctx_r6.history.data.object[0].name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r6.history.data.object ? ctx_r6.history.data.object[0].name : "N/A", " ");
} }
function RptActionComponent_div_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 7);
    i0.ɵɵelement(1, "i", 21);
    i0.ɵɵelementStart(2, "span", 12);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r7 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r7.history.data.parent ? ctx_r7.history.data.parent.name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r7.history.data.parent ? ctx_r7.history.data.parent.name : "N/A", " ");
} }
function RptActionComponent_div_8_span_9_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 23);
    i0.ɵɵelementStart(1, "span", 12);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r19 = i0.ɵɵnextContext(2);
    i0.ɵɵstyleProp("background-color", ctx_r19.history.data.result[0].color);
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r19.history.data.result[0].name);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r19.history.data.result ? ctx_r19.history.data.result[0].name : "N/A", " ");
} }
function RptActionComponent_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "div", 2);
    i0.ɵɵelementStart(2, "div");
    i0.ɵɵelement(3, "i", 21);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 3);
    i0.ɵɵelementStart(5, "div", 4);
    i0.ɵɵelementStart(6, "span", 12);
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "div", 4);
    i0.ɵɵtemplate(9, RptActionComponent_div_8_span_9_Template, 3, 4, "span", 22);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r8 = i0.ɵɵnextContext();
    i0.ɵɵadvance(6);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r8.history.data.parent ? ctx_r8.history.data.parent.name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r8.history.data.parent ? ctx_r8.history.data.parent.name : "N/A", " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r8.authUser.lang !== "ja");
} }
function RptActionComponent_div_9_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 7);
    i0.ɵɵelement(1, "i", 24);
    i0.ɵɵelementStart(2, "span", 12);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r9 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r9.history.data.result ? ctx_r9.history.data.result[0].email : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r9.history.data.result ? ctx_r9.history.data.result[0].email : "N/A", " ");
} }
var _c1 = function (a0, a1, a2, a3, a4, a5) { return [a0, a1, a2, a3, a4, a5]; };
var _c2 = function (a0, a1, a2, a3, a4, a5, a6, a7) { return [a0, a1, a2, a3, a4, a5, a6, a7]; };
var _c3 = function (a0, a1, a2, a3, a4) { return [a0, a1, a2, a3, a4]; };
var _c4 = function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { return [a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10]; };
var _c5 = function (a0, a1) { return [a0, a1]; };
var _c6 = function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) { return [a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16]; };
var RptActionComponent = /** @class */ (function () {
    function RptActionComponent() {
        this.historyTypeEnum = constant_module_1.HistoryType;
    }
    RptActionComponent.prototype.ngOnInit = function () {
    };
    RptActionComponent.ɵfac = function RptActionComponent_Factory(t) { return new (t || RptActionComponent)(); };
    RptActionComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RptActionComponent, selectors: [["app-rpt-action"]], inputs: { authUser: "authUser", history: "history" }, decls: 10, vars: 83, consts: [[4, "ngIf"], ["class", "p-d-inline-flex", 4, "ngIf"], [1, "p-d-flex"], [1, "p-flex-column", "p-flex-md-row"], [1, "p-mb-2"], [1, "pi", "pi-user", "p-pr-1"], [1, "pi", "pi-book", "p-pr-1"], [1, "p-d-inline-flex"], [1, "pi", "pi-users", "p-pr-1", "p-mt-1"], [1, "display-grid"], ["tooltipPosition", "left", 1, "p-pt-1", "p-text-truncate", 3, "pTooltip"], [1, "pi", "pi-book", "p-pr-1", "p-mt-1"], ["tooltipPosition", "left", 1, "p-pt-1", 3, "pTooltip"], [1, "pi", "pi-folder", "p-pr-1"], [4, "ngIf", "ngIfElse"], ["project", ""], ["tooltipPosition", "left", 3, "pTooltip"], [1, "p-d-none", "p-d-md-table-cell", "p-pr-1", "p-mt-1"], [3, "condition", 4, "ngIf"], ["tooltipPosition", "left", 1, "p-pt-1", "p-width-20vw", "p-text-truncate", 3, "pTooltip"], [3, "condition"], [1, "pi", "pi-folder", "p-pr-1", "p-mt-1"], ["class", "p-badge", 3, "backgroundColor", 4, "ngIf"], [1, "p-badge"], [1, "pi", "pi-user", "p-pr-1", "p-mt-1"]], template: function RptActionComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵtemplate(0, RptActionComponent_div_0_Template, 10, 13, "div", 0);
            i0.ɵɵtemplate(1, RptActionComponent_div_1_Template, 5, 2, "div", 1);
            i0.ɵɵtemplate(2, RptActionComponent_div_2_Template, 4, 2, "div", 1);
            i0.ɵɵtemplate(3, RptActionComponent_div_3_Template, 5, 2, "div", 1);
            i0.ɵɵtemplate(4, RptActionComponent_div_4_Template, 4, 2, "div", 1);
            i0.ɵɵtemplate(5, RptActionComponent_div_5_Template, 7, 3, "div", 0);
            i0.ɵɵtemplate(6, RptActionComponent_div_6_Template, 7, 3, "div", 0);
            i0.ɵɵtemplate(7, RptActionComponent_div_7_Template, 4, 2, "div", 1);
            i0.ɵɵtemplate(8, RptActionComponent_div_8_Template, 10, 3, "div", 0);
            i0.ɵɵtemplate(9, RptActionComponent_div_9_Template, 4, 2, "div", 1);
        } if (rf & 2) {
            i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction6(10, _c1, ctx.historyTypeEnum.add_user, ctx.historyTypeEnum.update_user, ctx.historyTypeEnum.delete_user, ctx.historyTypeEnum.add_address, ctx.historyTypeEnum.update_address, ctx.historyTypeEnum.delete_address).includes(ctx.history.history_type));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction6(17, _c1, ctx.historyTypeEnum.create_group, ctx.historyTypeEnum.update_group, ctx.historyTypeEnum.delete_group, ctx.historyTypeEnum.add_member_group, ctx.historyTypeEnum.remove_member_group, ctx.historyTypeEnum.move_member_group).includes(ctx.history.history_type));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction6(24, _c1, ctx.historyTypeEnum.create_address_group, ctx.historyTypeEnum.update_address_group, ctx.historyTypeEnum.delete_address_group, ctx.historyTypeEnum.add_address_group, ctx.historyTypeEnum.remove_address_group, ctx.historyTypeEnum.move_address_group).includes(ctx.history.history_type));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction8(31, _c2, ctx.historyTypeEnum.add_project, ctx.historyTypeEnum.update_project, ctx.historyTypeEnum.delete_project, ctx.historyTypeEnum.copy_project, ctx.historyTypeEnum.transferred_project, ctx.historyTypeEnum.update_folder, ctx.historyTypeEnum.move_folder, ctx.historyTypeEnum.copy_folder).includes(ctx.history.history_type));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction5(40, _c3, ctx.historyTypeEnum.add_folder, ctx.historyTypeEnum.delete_forever_folder, ctx.historyTypeEnum.delete_folder, ctx.historyTypeEnum.restore_folder, ctx.historyTypeEnum.update_folder_setting).includes(ctx.history.history_type));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", i0.ɵɵpureFunctionV(46, _c4, [ctx.historyTypeEnum.update_file, ctx.historyTypeEnum.delete_file_forever, ctx.historyTypeEnum.encode_file, ctx.historyTypeEnum.restore_file, ctx.historyTypeEnum.delete_file, ctx.historyTypeEnum.update_encode_file, ctx.historyTypeEnum.delete_license, ctx.historyTypeEnum.revoke_user, ctx.historyTypeEnum.add_comment_file, ctx.historyTypeEnum.update_comment_file, ctx.historyTypeEnum.delete_comment_file]).includes(ctx.history.history_type));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction2(58, _c5, ctx.historyTypeEnum.attach_label, ctx.historyTypeEnum.detach_label).includes(ctx.history.history_type));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", i0.ɵɵpureFunctionV(61, _c6, [ctx.historyTypeEnum.add_file, ctx.historyTypeEnum.move_file, ctx.historyTypeEnum.copy_file, ctx.historyTypeEnum.remove_user, ctx.historyTypeEnum.update_role_user, ctx.historyTypeEnum.invite_user, ctx.historyTypeEnum.invite_group, ctx.historyTypeEnum.update_role_group, ctx.historyTypeEnum.remove_group, ctx.historyTypeEnum.create_link, ctx.historyTypeEnum.delete_link, ctx.historyTypeEnum.update_link, ctx.historyTypeEnum.share_link, ctx.historyTypeEnum.share_link_secure_mail, ctx.historyTypeEnum.add_comment, ctx.historyTypeEnum.update_comment, ctx.historyTypeEnum.delete_comment]).includes(ctx.history.history_type));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction3(79, _c0, ctx.historyTypeEnum.create_label, ctx.historyTypeEnum.update_label, ctx.historyTypeEnum.delete_label).includes(ctx.history.history_type));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.history.history_type == ctx.historyTypeEnum.team_admin_login_member);
        } }, directives: [i1.NgIf, i2.Tooltip, i3.RptShowContentTypeComponent], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1hY3Rpb24vcnB0LWFjdGlvbi5jb21wb25lbnQuc2NzcyJ9 */"] });
    return RptActionComponent;
}());
exports.RptActionComponent = RptActionComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RptActionComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-rpt-action',
                templateUrl: './rpt-action.component.html',
                styleUrls: ['./rpt-action.component.scss']
            }]
    }], function () { return []; }, { authUser: [{
            type: core_1.Input
        }], history: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/report/rpt-detail1/rpt-detail1.component.ts":
/*!************************************************************************!*\
  !*** ./src/app/team-admin/report/rpt-detail1/rpt-detail1.component.ts ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RptDetail1Component = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! primeng/tooltip */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function RptDetail1Component_div_0_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 7);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var itemDetail_r2 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵpropertyInterpolate("pTooltip", itemDetail_r2.value);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", itemDetail_r2.value, " ");
} }
function RptDetail1Component_div_0_ng_template_5_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 13);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.admin"), " ");
} }
function RptDetail1Component_div_0_ng_template_5_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 14);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.manager"), " ");
} }
function RptDetail1Component_div_0_ng_template_5_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 15);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.user"), " ");
} }
function RptDetail1Component_div_0_ng_template_5_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 16);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.guest"), " ");
} }
function RptDetail1Component_div_0_ng_template_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 8);
    i0.ɵɵtemplate(1, RptDetail1Component_div_0_ng_template_5_span_1_Template, 3, 3, "span", 9);
    i0.ɵɵtemplate(2, RptDetail1Component_div_0_ng_template_5_span_2_Template, 3, 3, "span", 10);
    i0.ɵɵtemplate(3, RptDetail1Component_div_0_ng_template_5_span_3_Template, 3, 3, "span", 11);
    i0.ɵɵtemplate(4, RptDetail1Component_div_0_ng_template_5_span_4_Template, 3, 3, "span", 12);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var itemDetail_r2 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("ngSwitch", itemDetail_r2.value);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
} }
function RptDetail1Component_div_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 2);
    i0.ɵɵelementStart(1, "span", 3);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "span", 4);
    i0.ɵɵtemplate(4, RptDetail1Component_div_0_span_4_Template, 2, 2, "span", 5);
    i0.ɵɵtemplate(5, RptDetail1Component_div_0_ng_template_5_Template, 5, 5, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var itemDetail_r2 = ctx.$implicit;
    var _r4 = i0.ɵɵreference(6);
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", itemDetail_r2.name);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", itemDetail_r2.name, " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", itemDetail_r2.name !== ctx_r0.utilsService.translate("label.common.role"))("ngIfElse", _r4);
} }
function RptDetail1Component_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 17);
    i0.ɵɵelementStart(1, "span", 18);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "span", 19);
    i0.ɵɵelementStart(5, "span", 20);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "span", 18);
    i0.ɵɵtext(8);
    i0.ɵɵpipe(9, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(10, "span", 21);
    i0.ɵɵtext(11);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 8, "reports.detail.label_name"), " ");
    i0.ɵɵadvance(3);
    i0.ɵɵstyleProp("background-color", ctx_r1.label.color);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r1.label.name);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r1.label.name ? ctx_r1.label.name : "N/A", " ");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 10, "label.common.description"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r1.label.description);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r1.label.description ? ctx_r1.label.description : "", " ");
} }
var RptDetail1Component = /** @class */ (function () {
    function RptDetail1Component(utilsService) {
        this.utilsService = utilsService;
    }
    RptDetail1Component.prototype.ngOnInit = function () {
    };
    RptDetail1Component.ɵfac = function RptDetail1Component_Factory(t) { return new (t || RptDetail1Component)(i0.ɵɵdirectiveInject(i1.UtilsService)); };
    RptDetail1Component.ɵcmp = i0.ɵɵdefineComponent({ type: RptDetail1Component, selectors: [["app-rpt-detail1"]], inputs: { items: "items", label: "label" }, decls: 2, vars: 2, consts: [["class", "p-grid p-mb-2", 4, "ngFor", "ngForOf"], ["class", "p-grid", 4, "ngIf"], [1, "p-grid", "p-mb-2"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 1, "p-col-5", "p-text-truncate", 3, "pTooltip"], [1, "p-col-7"], ["class", "p-text-truncate", "tooltipPosition", "left", "tooltipZIndex", "100000", 3, "pTooltip", 4, "ngIf", "ngIfElse"], ["isRole", ""], ["tooltipPosition", "left", "tooltipZIndex", "100000", 1, "p-text-truncate", 3, "pTooltip"], [1, "p-text-nowrap", 3, "ngSwitch"], ["class", "p-badge p-badge-success", 4, "ngSwitchCase"], ["class", "p-badge", 4, "ngSwitchCase"], ["class", "p-badge p-badge-info", 4, "ngSwitchCase"], ["class", "p-badge p-badge-secondary", 4, "ngSwitchCase"], [1, "p-badge", "p-badge-success"], [1, "p-badge"], [1, "p-badge", "p-badge-info"], [1, "p-badge", "p-badge-secondary"], [1, "p-grid"], [1, "p-col-4"], [1, "p-col-8"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 1, "p-badge", 3, "pTooltip"], ["tooltipZIndex", "100000", 1, "p-col-8", 3, "pTooltip"]], template: function RptDetail1Component_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵtemplate(0, RptDetail1Component_div_0_Template, 7, 4, "div", 0);
            i0.ɵɵtemplate(1, RptDetail1Component_div_1_Template, 12, 12, "div", 1);
        } if (rf & 2) {
            i0.ɵɵproperty("ngForOf", ctx.items);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.label);
        } }, directives: [i2.NgForOf, i2.NgIf, i3.Tooltip, i2.NgSwitch, i2.NgSwitchCase], pipes: [i4.TranslatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1kZXRhaWwxL3JwdC1kZXRhaWwxLmNvbXBvbmVudC5zY3NzIn0= */"] });
    return RptDetail1Component;
}());
exports.RptDetail1Component = RptDetail1Component;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RptDetail1Component, [{
        type: core_1.Component,
        args: [{
                selector: 'app-rpt-detail1',
                templateUrl: './rpt-detail1.component.html',
                styleUrls: ['./rpt-detail1.component.scss']
            }]
    }], function () { return [{ type: i1.UtilsService }]; }, { items: [{
            type: core_1.Input
        }], label: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/report/rpt-detail2/rpt-detail2.component.ts":
/*!************************************************************************!*\
  !*** ./src/app/team-admin/report/rpt-detail2/rpt-detail2.component.ts ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RptDetail2Component = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! primeng/tooltip */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! ../rpt-show-content-type/rpt-show-content-type.component */ "./src/app/team-admin/report/rpt-show-content-type/rpt-show-content-type.component.ts"));
function RptDetail2Component_div_0_div_1_span_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 12);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var itemDetail_r8 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵpropertyInterpolate("pTooltip", itemDetail_r8.value);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", itemDetail_r8.value, " ");
} }
function RptDetail2Component_div_0_div_1_ng_template_6_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 18);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.admin"), " ");
} }
function RptDetail2Component_div_0_div_1_ng_template_6_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 19);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.manager"), " ");
} }
function RptDetail2Component_div_0_div_1_ng_template_6_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 20);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.user"), " ");
} }
function RptDetail2Component_div_0_div_1_ng_template_6_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 21);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.guest"), " ");
} }
function RptDetail2Component_div_0_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 13);
    i0.ɵɵtemplate(1, RptDetail2Component_div_0_div_1_ng_template_6_span_1_Template, 3, 3, "span", 14);
    i0.ɵɵtemplate(2, RptDetail2Component_div_0_div_1_ng_template_6_span_2_Template, 3, 3, "span", 15);
    i0.ɵɵtemplate(3, RptDetail2Component_div_0_div_1_ng_template_6_span_3_Template, 3, 3, "span", 16);
    i0.ɵɵtemplate(4, RptDetail2Component_div_0_div_1_ng_template_6_span_4_Template, 3, 3, "span", 17);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var itemDetail_r8 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("ngSwitch", itemDetail_r8.value);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
} }
function RptDetail2Component_div_0_div_1_span_8_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 25);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var itemDetail_r8 = i0.ɵɵnextContext(2).$implicit;
    i0.ɵɵpropertyInterpolate("pTooltip", itemDetail_r8.value1);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", itemDetail_r8.value1, " ");
} }
function RptDetail2Component_div_0_div_1_span_8_ng_template_2_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 30);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.admin"), " ");
} }
function RptDetail2Component_div_0_div_1_span_8_ng_template_2_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 31);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.manager"), " ");
} }
function RptDetail2Component_div_0_div_1_span_8_ng_template_2_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 32);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.user"), " ");
} }
function RptDetail2Component_div_0_div_1_span_8_ng_template_2_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 33);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.guest"), " ");
} }
function RptDetail2Component_div_0_div_1_span_8_ng_template_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 13);
    i0.ɵɵtemplate(1, RptDetail2Component_div_0_div_1_span_8_ng_template_2_span_1_Template, 3, 3, "span", 26);
    i0.ɵɵtemplate(2, RptDetail2Component_div_0_div_1_span_8_ng_template_2_span_2_Template, 3, 3, "span", 27);
    i0.ɵɵtemplate(3, RptDetail2Component_div_0_div_1_span_8_ng_template_2_span_3_Template, 3, 3, "span", 28);
    i0.ɵɵtemplate(4, RptDetail2Component_div_0_div_1_span_8_ng_template_2_span_4_Template, 3, 3, "span", 29);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var itemDetail_r8 = i0.ɵɵnextContext(2).$implicit;
    i0.ɵɵproperty("ngSwitch", itemDetail_r8.value1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
} }
function RptDetail2Component_div_0_div_1_span_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 22);
    i0.ɵɵtemplate(1, RptDetail2Component_div_0_div_1_span_8_span_1_Template, 2, 2, "span", 23);
    i0.ɵɵtemplate(2, RptDetail2Component_div_0_div_1_span_8_ng_template_2_Template, 5, 5, "ng-template", null, 24, i0.ɵɵtemplateRefExtractor);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var _r20 = i0.ɵɵreference(3);
    var itemDetail_r8 = i0.ɵɵnextContext().$implicit;
    var ctx_r12 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", itemDetail_r8.name != ctx_r12.utilsService.translate("label.common.role"))("ngIfElse", _r20);
} }
function RptDetail2Component_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 5);
    i0.ɵɵelementStart(1, "span", 6);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "div", 7);
    i0.ɵɵelementStart(4, "div", 8);
    i0.ɵɵtemplate(5, RptDetail2Component_div_0_div_1_span_5_Template, 2, 2, "span", 9);
    i0.ɵɵtemplate(6, RptDetail2Component_div_0_div_1_ng_template_6_Template, 5, 5, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
    i0.ɵɵtemplate(8, RptDetail2Component_div_0_div_1_span_8_Template, 4, 2, "span", 11);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var itemDetail_r8 = ctx.$implicit;
    var _r10 = i0.ɵɵreference(7);
    var ctx_r6 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", itemDetail_r8.name, " ");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", itemDetail_r8.name !== ctx_r6.utilsService.translate("label.common.role"))("ngIfElse", _r10);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", itemDetail_r8.value1 != itemDetail_r8.value);
} }
function RptDetail2Component_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
    var _r30 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 5);
    i0.ɵɵelement(1, "label", 34);
    i0.ɵɵelementStart(2, "div", 7);
    i0.ɵɵelementStart(3, "p-checkbox", 35);
    i0.ɵɵlistener("ngModelChange", function RptDetail2Component_div_0_div_2_Template_p_checkbox_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r30); var ctx_r29 = i0.ɵɵnextContext(2); return ctx_r29.isChangePassword = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r7 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("translate", "button.change_password");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("readonly", true)("ngModel", ctx_r7.isChangePassword);
} }
function RptDetail2Component_div_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtemplate(1, RptDetail2Component_div_0_div_1_Template, 9, 4, "div", 4);
    i0.ɵɵtemplate(2, RptDetail2Component_div_0_div_2_Template, 4, 3, "div", 2);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r0.items);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.isChangePassword);
} }
function RptDetail2Component_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "div", 36);
    i0.ɵɵelementStart(2, "div", 37);
    i0.ɵɵelement(3, "i", 38);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 8);
    i0.ɵɵelementStart(5, "span", 39);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "span", 40);
    i0.ɵɵelementStart(8, "s");
    i0.ɵɵtext(9);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r1.history.result ? ctx_r1.history.result[0].name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r1.history.result ? ctx_r1.history.result[0].name : "N/A", " ");
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r1.history.result ? ctx_r1.history.result[0].old_name : "N/A");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r1.history.result ? ctx_r1.history.result[0].old_name : "N/A");
} }
function RptDetail2Component_div_2_app_rpt_show_content_type_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "app-rpt-show-content-type", 45);
} if (rf & 2) {
    var ctx_r31 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("condition", ctx_r31.items[0]);
} }
function RptDetail2Component_div_2_span_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 43);
    i0.ɵɵelementStart(1, "s");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r32 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r32.items[0].value1);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r32.items[0].value1);
} }
function RptDetail2Component_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 41);
    i0.ɵɵelementStart(1, "div", 37);
    i0.ɵɵtemplate(2, RptDetail2Component_div_2_app_rpt_show_content_type_2_Template, 1, 1, "app-rpt-show-content-type", 42);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "div", 8);
    i0.ɵɵelementStart(4, "span", 43);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(6, RptDetail2Component_div_2_span_6_Template, 3, 2, "span", 44);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r2.items[0]);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r2.items[0].value);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r2.items[0].value);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.items[0].value1 != ctx_r2.items[0].value);
} }
function RptDetail2Component_div_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 5);
    i0.ɵɵelementStart(1, "div", 46);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 47);
    i0.ɵɵelementStart(5, "div");
    i0.ɵɵelementStart(6, "span", 48);
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(8, "div", 49);
    i0.ɵɵelementStart(9, "span", 50);
    i0.ɵɵtext(10);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "div", 46);
    i0.ɵɵtext(12);
    i0.ɵɵpipe(13, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(14, "div", 51);
    i0.ɵɵelementStart(15, "span");
    i0.ɵɵtext(16);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(17, "span", 52);
    i0.ɵɵtext(18);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 13, "reports.detail.label_name"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵstyleProp("background-color", ctx_r3.label.color);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r3.label.name);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r3.label.name ? ctx_r3.label.name : "N/A", " ");
    i0.ɵɵadvance(2);
    i0.ɵɵstyleProp("background-color", ctx_r3.label.old_color);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r3.label.old_name);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r3.label.old_name ? ctx_r3.label.old_name : "N/A", " ");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 15, "label.common.description"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r3.label.description);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r3.label.description ? ctx_r3.label.description : "");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r3.label.old_description ? ctx_r3.label.old_description : "");
} }
function RptDetail2Component_div_4_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 43);
    i0.ɵɵelementStart(1, "s");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r33 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r33.items[0].value1);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r33.items[0].value1);
} }
function RptDetail2Component_div_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 41);
    i0.ɵɵelementStart(1, "div", 8);
    i0.ɵɵelementStart(2, "span", 43);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(4, RptDetail2Component_div_4_span_4_Template, 3, 2, "span", 44);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r4.items[0].value);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(ctx_r4.items[0].value);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r4.items[0].value1 != ctx_r4.items[0].value);
} }
function RptDetail2Component_div_5_span_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 18);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.admin"), " ");
} }
function RptDetail2Component_div_5_span_9_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 19);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.manager"), " ");
} }
function RptDetail2Component_div_5_span_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 20);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.user"), " ");
} }
function RptDetail2Component_div_5_span_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 21);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.guest"), " ");
} }
function RptDetail2Component_div_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 8);
    i0.ɵɵelementStart(1, "div", 53);
    i0.ɵɵelement(2, "span", 54);
    i0.ɵɵelementStart(3, "span", 55);
    i0.ɵɵtext(4);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "div", 53);
    i0.ɵɵelement(6, "span", 54);
    i0.ɵɵelementStart(7, "span", 56);
    i0.ɵɵtemplate(8, RptDetail2Component_div_5_span_8_Template, 3, 3, "span", 14);
    i0.ɵɵtemplate(9, RptDetail2Component_div_5_span_9_Template, 3, 3, "span", 15);
    i0.ɵɵtemplate(10, RptDetail2Component_div_5_span_10_Template, 3, 3, "span", 16);
    i0.ɵɵtemplate(11, RptDetail2Component_div_5_span_11_Template, 3, 3, "span", 17);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(12, "div", 53);
    i0.ɵɵelement(13, "span", 54);
    i0.ɵɵelementStart(14, "span", 56);
    i0.ɵɵtext(15);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("translate", "label.common.mail_address");
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r5.history.result ? ctx_r5.history.result[0].email : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r5.history.result ? ctx_r5.history.result[0].email : "N/A", " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("translate", "label.common.role");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitch", ctx_r5.history.result[0].role);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("translate", "label.common.used_service");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitch", ctx_r5.history.result[0].role);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r5.history.result[0].name, " ");
} }
var RptDetail2Component = /** @class */ (function () {
    function RptDetail2Component(utilsService) {
        this.utilsService = utilsService;
        this.isChangePassword = false;
    }
    RptDetail2Component.prototype.ngOnInit = function () {
    };
    RptDetail2Component.ɵfac = function RptDetail2Component_Factory(t) { return new (t || RptDetail2Component)(i0.ɵɵdirectiveInject(i1.UtilsService)); };
    RptDetail2Component.ɵcmp = i0.ɵɵdefineComponent({ type: RptDetail2Component, selectors: [["app-rpt-detail2"]], inputs: { items: "items", option: "option", label: "label", history: "history", isChangePassword: "isChangePassword" }, decls: 6, vars: 6, consts: [[4, "ngIf"], ["class", "p-d-flex", 4, "ngIf"], ["class", "p-grid", 4, "ngIf"], ["class", "p-d-flex p-flex-column", 4, "ngIf"], ["class", "p-grid", 4, "ngFor", "ngForOf"], [1, "p-grid"], [1, "p-col-5", "p-text-truncate"], [1, "p-col-7"], [1, "p-d-flex", "p-flex-column"], ["class", "p-text-truncate", "tooltipPosition", "left", "tooltipZIndex", "100000", 3, "pTooltip", 4, "ngIf", "ngIfElse"], ["isRole", ""], ["class", "p-pt-2 p-text-truncate", 4, "ngIf"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 1, "p-text-truncate", 3, "pTooltip"], [1, "p-text-nowrap", 3, "ngSwitch"], ["class", "p-badge p-badge-success", 4, "ngSwitchCase"], ["class", "p-badge", 4, "ngSwitchCase"], ["class", "p-badge p-badge-info", 4, "ngSwitchCase"], ["class", "p-badge p-badge-secondary", 4, "ngSwitchCase"], [1, "p-badge", "p-badge-success"], [1, "p-badge"], [1, "p-badge", "p-badge-info"], [1, "p-badge", "p-badge-secondary"], [1, "p-pt-2", "p-text-truncate"], ["class", "p-text-truncate line-through", "tooltipPosition", "left", "tooltipZIndex", "100000", 3, "pTooltip", 4, "ngIf", "ngIfElse"], ["isRole1", ""], ["tooltipPosition", "left", "tooltipZIndex", "100000", 1, "p-text-truncate", "line-through", 3, "pTooltip"], ["class", "p-badge p-badge-success line-through", 4, "ngSwitchCase"], ["class", "p-badge line-through", 4, "ngSwitchCase"], ["class", "p-badge p-badge-info line-through", 4, "ngSwitchCase"], ["class", "p-badge p-badge-secondary line-through", 4, "ngSwitchCase"], [1, "p-badge", "p-badge-success", "line-through"], [1, "p-badge", "line-through"], [1, "p-badge", "p-badge-info", "line-through"], [1, "p-badge", "p-badge-secondary", "line-through"], ["for", "cbxChangePassword", 1, "p-col-5", "p-text-truncate", 3, "translate"], ["id", "cbxChangePassword", "binary", "true", "inputId", "binary", 3, "readonly", "ngModel", "ngModelChange"], [1, "p-d-flex", "p-flex-row"], [1, "p-pr-1"], [1, "pi", "pi-folder"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 1, "p-pl-1", "p-text-truncate", 3, "pTooltip"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 1, "p-pt-1", "p-pl-1", 3, "pTooltip"], [1, "p-d-flex"], [3, "condition", 4, "ngIf"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 3, "pTooltip"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 3, "pTooltip", 4, "ngIf"], [3, "condition"], [1, "p-col-5"], [1, "p-col-7", "p-d-flex", "p-flex-column"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 1, "p-badge", 3, "pTooltip"], [1, "p-pt-2"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 1, "p-badge", "line-through", 3, "pTooltip"], ["tooltipZIndex", "100000", 1, "p-col-7", "p-d-flex", "p-flex-column", 3, "pTooltip"], [1, "line-through"], [1, "p-d-flex", "p-grid"], [1, "p-col-5", 3, "translate"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 1, "p-col-7", 3, "pTooltip"], [1, "p-col-7", "p-text-nowrap", 3, "ngSwitch"]], template: function RptDetail2Component_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵtemplate(0, RptDetail2Component_div_0_Template, 3, 2, "div", 0);
            i0.ɵɵtemplate(1, RptDetail2Component_div_1_Template, 10, 4, "div", 0);
            i0.ɵɵtemplate(2, RptDetail2Component_div_2_Template, 7, 4, "div", 1);
            i0.ɵɵtemplate(3, RptDetail2Component_div_3_Template, 19, 17, "div", 2);
            i0.ɵɵtemplate(4, RptDetail2Component_div_4_Template, 5, 3, "div", 1);
            i0.ɵɵtemplate(5, RptDetail2Component_div_5_Template, 16, 12, "div", 3);
        } if (rf & 2) {
            i0.ɵɵproperty("ngIf", ctx.option === "updateMember");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.option === "renameFolder");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.option === "renameFile");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.label);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.option === "updateComment");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.option === "loginAsMember");
        } }, directives: [i2.NgIf, i2.NgForOf, i3.Tooltip, i2.NgSwitch, i2.NgSwitchCase, i4.TranslateDirective, i5.Checkbox, i6.NgControlStatus, i6.NgModel, i7.RptShowContentTypeComponent], pipes: [i4.TranslatePipe], styles: [".line-through[_ngcontent-%COMP%] {\n  text-decoration: line-through;\n  -webkit-text-decoration-color: black;\n          text-decoration-color: black;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1kZXRhaWwyL3JwdC1kZXRhaWwyLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC90ZWFtLWFkbWluL3JlcG9ydC9ycHQtZGV0YWlsMi9ycHQtZGV0YWlsMi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLDZCQUFBO0VBQ0Esb0NBQUE7VUFBQSw0QkFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvdGVhbS1hZG1pbi9yZXBvcnQvcnB0LWRldGFpbDIvcnB0LWRldGFpbDIuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubGluZS10aHJvdWdoIHtcbiAgdGV4dC1kZWNvcmF0aW9uOiBsaW5lLXRocm91Z2g7XG4gIHRleHQtZGVjb3JhdGlvbi1jb2xvcjogYmxhY2s7XG59XG4iLCIubGluZS10aHJvdWdoIHtcbiAgdGV4dC1kZWNvcmF0aW9uOiBsaW5lLXRocm91Z2g7XG4gIHRleHQtZGVjb3JhdGlvbi1jb2xvcjogYmxhY2s7XG59Il19 */"] });
    return RptDetail2Component;
}());
exports.RptDetail2Component = RptDetail2Component;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RptDetail2Component, [{
        type: core_1.Component,
        args: [{
                selector: 'app-rpt-detail2',
                templateUrl: './rpt-detail2.component.html',
                styleUrls: ['./rpt-detail2.component.scss']
            }]
    }], function () { return [{ type: i1.UtilsService }]; }, { items: [{
            type: core_1.Input
        }], option: [{
            type: core_1.Input
        }], label: [{
            type: core_1.Input
        }], history: [{
            type: core_1.Input
        }], isChangePassword: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/report/rpt-detail3/rpt-detail3.component.ts":
/*!************************************************************************!*\
  !*** ./src/app/team-admin/report/rpt-detail3/rpt-detail3.component.ts ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RptDetail3Component = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! primeng/tooltip */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../rpt-show-content-type/rpt-show-content-type.component */ "./src/app/team-admin/report/rpt-show-content-type/rpt-show-content-type.component.ts"));
function RptDetail3Component_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelement(1, "i", 4);
    i0.ɵɵelementStart(2, "span", 5);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r0.history.result ? ctx_r0.history.result[0].name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r0.history.result ? ctx_r0.history.result[0].name : "N/A", " ");
} }
function RptDetail3Component_div_2_div_1_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 11);
} if (rf & 2) {
    i0.ɵɵproperty("translate", "reports.detail.add_file_title");
} }
function RptDetail3Component_div_2_div_1_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 11);
} if (rf & 2) {
    i0.ɵɵproperty("translate", "reports.detail.copy_file_title");
} }
function RptDetail3Component_div_2_div_1_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 11);
} if (rf & 2) {
    i0.ɵɵproperty("translate", "reports.detail.move_file_title");
} }
function RptDetail3Component_div_2_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 11);
} if (rf & 2) {
    i0.ɵɵproperty("translate", "reports.detail.delete_folder_title");
} }
function RptDetail3Component_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 9);
    i0.ɵɵtemplate(1, RptDetail3Component_div_2_div_1_span_1_Template, 1, 1, "span", 10);
    i0.ɵɵtemplate(2, RptDetail3Component_div_2_div_1_span_2_Template, 1, 1, "span", 10);
    i0.ɵɵtemplate(3, RptDetail3Component_div_2_div_1_span_3_Template, 1, 1, "span", 10);
    i0.ɵɵtemplate(4, RptDetail3Component_div_2_div_1_span_4_Template, 1, 1, "span", 10);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r6.history.history_type == ctx_r6.historyTypeEnum.add_file);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r6.history.history_type == ctx_r6.historyTypeEnum.copy_file);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r6.history.history_type == ctx_r6.historyTypeEnum.move_file);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r6.history.history_type == ctx_r6.historyTypeEnum.invite_user || ctx_r6.history.history_type == ctx_r6.historyTypeEnum.delete_folder);
} }
function RptDetail3Component_div_2_div_2_div_1_app_rpt_show_content_type_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "app-rpt-show-content-type", 18);
} if (rf & 2) {
    var item_r13 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("condition", item_r13);
} }
function RptDetail3Component_div_2_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "div", 13);
    i0.ɵɵelementStart(2, "div", 14);
    i0.ɵɵtemplate(3, RptDetail3Component_div_2_div_2_div_1_app_rpt_show_content_type_3_Template, 1, 1, "app-rpt-show-content-type", 15);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 16);
    i0.ɵɵelementStart(5, "span", 17);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r13 = ctx.$implicit;
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", item_r13);
    i0.ɵɵadvance(2);
    i0.ɵɵpropertyInterpolate("pTooltip", item_r13.name ? item_r13.name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", item_r13.name, " ");
} }
function RptDetail3Component_div_2_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 6);
    i0.ɵɵtemplate(1, RptDetail3Component_div_2_div_2_div_1_Template, 7, 3, "div", 12);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r7 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r7.history.result);
} }
var _c0 = function (a0, a1, a2, a3) { return [a0, a1, a2, a3]; };
function RptDetail3Component_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 6);
    i0.ɵɵtemplate(1, RptDetail3Component_div_2_div_1_Template, 5, 4, "div", 7);
    i0.ɵɵtemplate(2, RptDetail3Component_div_2_div_2_Template, 2, 1, "div", 8);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction4(2, _c0, ctx_r1.historyTypeEnum.add_file, ctx_r1.historyTypeEnum.copy_file, ctx_r1.historyTypeEnum.move_file, ctx_r1.historyTypeEnum.invite_user).includes(ctx_r1.history.history_type));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r1.history.result);
} }
function RptDetail3Component_div_3_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 21);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r17 = ctx.$implicit;
    i0.ɵɵstyleProp("background-color", item_r17.color);
    i0.ɵɵpropertyInterpolate("pTooltip", item_r17.name ? item_r17.name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", item_r17.name, " ");
} }
function RptDetail3Component_div_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 19);
    i0.ɵɵtemplate(1, RptDetail3Component_div_3_div_1_Template, 2, 4, "div", 20);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r2.history.result);
} }
function RptDetail3Component_div_4_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "span", 23);
} if (rf & 2) {
    i0.ɵɵproperty("translate", "reports.detail.collaborator");
} }
function RptDetail3Component_div_4_div_2_div_1_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 29);
    i0.ɵɵelementEnd();
} }
function RptDetail3Component_div_4_div_2_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 30);
    i0.ɵɵelementEnd();
} }
function RptDetail3Component_div_4_div_2_div_1_div_6_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 34);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r21 = i0.ɵɵnextContext(2).$implicit;
    i0.ɵɵpropertyInterpolate2("pTooltip", "", item_r21.first_name, " ", item_r21.last_name, "");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", item_r21.first_name, " ", item_r21.last_name, " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_6_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 34);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r21 = i0.ɵɵnextContext(2).$implicit;
    i0.ɵɵpropertyInterpolate2("pTooltip", "", item_r21.last_name, " ", item_r21.first_name, "");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", item_r21.last_name, " ", item_r21.first_name, " ");
} }
var _c1 = function (a0) { return [a0]; };
function RptDetail3Component_div_4_div_2_div_1_div_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "div", 31);
    i0.ɵɵtemplate(2, RptDetail3Component_div_4_div_2_div_1_div_6_span_2_Template, 2, 4, "span", 32);
    i0.ɵɵtemplate(3, RptDetail3Component_div_4_div_2_div_1_div_6_span_3_Template, 2, 4, "span", 32);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 33);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r21 = i0.ɵɵnextContext().$implicit;
    var ctx_r24 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c1, ctx_r24.historyTypeEnum.remove_user).includes(ctx_r24.historyType) ? "line-through" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r24.lang !== "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r24.lang === "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", item_r21.email ? item_r21.email : "N/A");
    i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1, ctx_r24.historyTypeEnum.remove_user).includes(ctx_r24.historyType) ? "line-through" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", item_r21.email, " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 35);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r21 = i0.ɵɵnextContext().$implicit;
    var ctx_r25 = i0.ɵɵnextContext(3);
    i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c1, ctx_r25.historyTypeEnum.remove_group).includes(ctx_r25.historyType) ? "line-through" : "");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", item_r21.name, " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.owner"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.editor"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.viewer"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.previewer"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.viewer_uploader"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.previewer_uploader"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.uploader"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.owner"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.editor"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.viewer"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_13_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.previewer"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_14_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.viewer_uploader"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_15_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.previewer_uploader"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_span_16_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.uploader"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_div_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "s", 36);
    i0.ɵɵtemplate(2, RptDetail3Component_div_4_div_2_div_1_div_8_span_2_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(3, RptDetail3Component_div_4_div_2_div_1_div_8_span_3_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(4, RptDetail3Component_div_4_div_2_div_1_div_8_span_4_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(5, RptDetail3Component_div_4_div_2_div_1_div_8_span_5_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(6, RptDetail3Component_div_4_div_2_div_1_div_8_span_6_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(7, RptDetail3Component_div_4_div_2_div_1_div_8_span_7_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(8, RptDetail3Component_div_4_div_2_div_1_div_8_span_8_Template, 3, 3, "span", 1);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "span", 37);
    i0.ɵɵtemplate(10, RptDetail3Component_div_4_div_2_div_1_div_8_span_10_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(11, RptDetail3Component_div_4_div_2_div_1_div_8_span_11_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(12, RptDetail3Component_div_4_div_2_div_1_div_8_span_12_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(13, RptDetail3Component_div_4_div_2_div_1_div_8_span_13_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(14, RptDetail3Component_div_4_div_2_div_1_div_8_span_14_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(15, RptDetail3Component_div_4_div_2_div_1_div_8_span_15_Template, 3, 3, "span", 1);
    i0.ɵɵtemplate(16, RptDetail3Component_div_4_div_2_div_1_div_8_span_16_Template, 3, 3, "span", 1);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r21 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitch", item_r21.role);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 5);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 6);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 7);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitch", item_r21.new_role);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 5);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 6);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 7);
} }
function RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 41);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.owner"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 42);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.editor"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 41);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.viewer"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 41);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.previewer"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 41);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.viewer_uploader"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 41);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.previewer_uploader"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 41);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.uploader"), " ");
} }
function RptDetail3Component_div_4_div_2_div_1_ng_template_9_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 38);
    i0.ɵɵtemplate(1, RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_1_Template, 3, 3, "span", 39);
    i0.ɵɵtemplate(2, RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_2_Template, 3, 3, "span", 40);
    i0.ɵɵtemplate(3, RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_3_Template, 3, 3, "span", 39);
    i0.ɵɵtemplate(4, RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_4_Template, 3, 3, "span", 39);
    i0.ɵɵtemplate(5, RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_5_Template, 3, 3, "span", 39);
    i0.ɵɵtemplate(6, RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_6_Template, 3, 3, "span", 39);
    i0.ɵɵtemplate(7, RptDetail3Component_div_4_div_2_div_1_ng_template_9_span_7_Template, 3, 3, "span", 39);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r21 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("ngSwitch", item_r21.role);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 5);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 6);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 7);
} }
var _c2 = function (a0, a1, a2) { return [a0, a1, a2]; };
function RptDetail3Component_div_4_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "div", 13);
    i0.ɵɵelementStart(2, "div", 24);
    i0.ɵɵtemplate(3, RptDetail3Component_div_4_div_2_div_1_span_3_Template, 2, 0, "span", 25);
    i0.ɵɵtemplate(4, RptDetail3Component_div_4_div_2_div_1_span_4_Template, 2, 0, "span", 25);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "div", 6);
    i0.ɵɵtemplate(6, RptDetail3Component_div_4_div_2_div_1_div_6_Template, 6, 10, "div", 25);
    i0.ɵɵtemplate(7, RptDetail3Component_div_4_div_2_div_1_div_7_Template, 2, 4, "div", 26);
    i0.ɵɵtemplate(8, RptDetail3Component_div_4_div_2_div_1_div_8_Template, 17, 16, "div", 27);
    i0.ɵɵtemplate(9, RptDetail3Component_div_4_div_2_div_1_ng_template_9_Template, 8, 8, "ng-template", null, 28, i0.ɵɵtemplateRefExtractor);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var item_r21 = ctx.$implicit;
    var _r27 = i0.ɵɵreference(10);
    var ctx_r20 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction3(6, _c2, ctx_r20.historyTypeEnum.remove_user, ctx_r20.historyTypeEnum.update_role_user, ctx_r20.historyTypeEnum.invite_user).includes(ctx_r20.historyType));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction3(10, _c2, ctx_r20.historyTypeEnum.invite_group, ctx_r20.historyTypeEnum.update_role_group, ctx_r20.historyTypeEnum.remove_group).includes(ctx_r20.historyType));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction3(14, _c2, ctx_r20.historyTypeEnum.remove_user, ctx_r20.historyTypeEnum.update_role_user, ctx_r20.historyTypeEnum.invite_user).includes(ctx_r20.historyType));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", i0.ɵɵpureFunction3(18, _c2, ctx_r20.historyTypeEnum.invite_group, ctx_r20.historyTypeEnum.update_role_group, ctx_r20.historyTypeEnum.remove_group).includes(ctx_r20.historyType));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", item_r21.new_role)("ngIfElse", _r27);
} }
function RptDetail3Component_div_4_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 6);
    i0.ɵɵtemplate(1, RptDetail3Component_div_4_div_2_div_1_Template, 11, 22, "div", 12);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r19 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r19.history.result);
} }
function RptDetail3Component_div_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 6);
    i0.ɵɵtemplate(1, RptDetail3Component_div_4_span_1_Template, 1, 1, "span", 22);
    i0.ɵɵtemplate(2, RptDetail3Component_div_4_div_2_Template, 2, 1, "div", 8);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r3.history.history_type == ctx_r3.historyTypeEnum.invite_user);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r3.history.result);
} }
function RptDetail3Component_div_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "span", 5);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r4.history.result ? ctx_r4.history.result[0].name : "N/A");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", ctx_r4.history.result ? ctx_r4.history.result[0].name : "N/A", " ");
} }
function RptDetail3Component_div_6_span_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 34);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r58 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate2("pTooltip", "", ctx_r58.history.transfer_user.first_name, " ", ctx_r58.history.transfer_user.last_name, "");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", ctx_r58.history.transfer_user.first_name, " ", ctx_r58.history.transfer_user.last_name, " ");
} }
function RptDetail3Component_div_6_span_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 34);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r59 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate2("pTooltip", "", ctx_r59.history.transfer_user.last_name, " ", ctx_r59.history.transfer_user.first_name, "");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", ctx_r59.history.transfer_user.last_name, " ", ctx_r59.history.transfer_user.first_name, " ");
} }
function RptDetail3Component_div_6_span_11_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 51);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.admin"), " ");
} }
function RptDetail3Component_div_6_span_11_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 52);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.manager"), " ");
} }
function RptDetail3Component_div_6_span_11_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 42);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.user"), " ");
} }
function RptDetail3Component_div_6_span_11_span_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 41);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.guest"), " ");
} }
function RptDetail3Component_div_6_span_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelementStart(1, "span", 48);
    i0.ɵɵtemplate(2, RptDetail3Component_div_6_span_11_span_2_Template, 3, 3, "span", 49);
    i0.ɵɵtemplate(3, RptDetail3Component_div_6_span_11_span_3_Template, 3, 3, "span", 50);
    i0.ɵɵtemplate(4, RptDetail3Component_div_6_span_11_span_4_Template, 3, 3, "span", 40);
    i0.ɵɵtemplate(5, RptDetail3Component_div_6_span_11_span_5_Template, 3, 3, "span", 39);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r60 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitch", ctx_r60.history.transfer_user.role);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
} }
function RptDetail3Component_div_6_span_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 51);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.owner"), " ");
} }
function RptDetail3Component_div_6_span_18_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 34);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r62 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate2("pTooltip", "", ctx_r62.history.old_owner.first_name, " ", ctx_r62.history.old_owner.last_name, "");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", ctx_r62.history.old_owner.first_name, " ", ctx_r62.history.old_owner.last_name, " ");
} }
function RptDetail3Component_div_6_span_19_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 34);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r63 = i0.ɵɵnextContext(2);
    i0.ɵɵpropertyInterpolate2("pTooltip", "", ctx_r63.history.old_owner.last_name, " ", ctx_r63.history.old_owner.first_name, "");
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", ctx_r63.history.old_owner.last_name, " ", ctx_r63.history.old_owner.first_name, " ");
} }
function RptDetail3Component_div_6_span_23_span_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 51);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.admin"), " ");
} }
function RptDetail3Component_div_6_span_23_span_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 52);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.manager"), " ");
} }
function RptDetail3Component_div_6_span_23_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 42);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.user"), " ");
} }
function RptDetail3Component_div_6_span_23_span_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 41);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.system_role.guest"), " ");
} }
function RptDetail3Component_div_6_span_23_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelementStart(1, "span", 48);
    i0.ɵɵtemplate(2, RptDetail3Component_div_6_span_23_span_2_Template, 3, 3, "span", 49);
    i0.ɵɵtemplate(3, RptDetail3Component_div_6_span_23_span_3_Template, 3, 3, "span", 50);
    i0.ɵɵtemplate(4, RptDetail3Component_div_6_span_23_span_4_Template, 3, 3, "span", 40);
    i0.ɵɵtemplate(5, RptDetail3Component_div_6_span_23_span_5_Template, 3, 3, "span", 39);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r64 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitch", ctx_r64.history.old_owner.role);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 1);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 2);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", 4);
} }
function RptDetail3Component_div_6_span_24_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 53);
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "label.project_role.editor"), " ");
} }
function RptDetail3Component_div_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 6);
    i0.ɵɵelementStart(1, "div", 19);
    i0.ɵɵelementStart(2, "div", 14);
    i0.ɵɵelement(3, "i", 29);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 6);
    i0.ɵɵelementStart(5, "div");
    i0.ɵɵtemplate(6, RptDetail3Component_div_6_span_6_Template, 2, 4, "span", 32);
    i0.ɵɵtemplate(7, RptDetail3Component_div_6_span_7_Template, 2, 4, "span", 32);
    i0.ɵɵelementStart(8, "span", 34);
    i0.ɵɵtext(9);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(10, "div", 43);
    i0.ɵɵtemplate(11, RptDetail3Component_div_6_span_11_Template, 6, 5, "span", 25);
    i0.ɵɵtemplate(12, RptDetail3Component_div_6_span_12_Template, 3, 3, "span", 44);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(13, "div", 45);
    i0.ɵɵelementStart(14, "div", 14);
    i0.ɵɵelement(15, "i", 29);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "div", 6);
    i0.ɵɵelementStart(17, "div", 46);
    i0.ɵɵtemplate(18, RptDetail3Component_div_6_span_18_Template, 2, 4, "span", 32);
    i0.ɵɵtemplate(19, RptDetail3Component_div_6_span_19_Template, 2, 4, "span", 32);
    i0.ɵɵelementStart(20, "span", 34);
    i0.ɵɵtext(21);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(22, "div", 43);
    i0.ɵɵtemplate(23, RptDetail3Component_div_6_span_23_Template, 6, 5, "span", 25);
    i0.ɵɵtemplate(24, RptDetail3Component_div_6_span_24_Template, 3, 3, "span", 47);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵadvance(6);
    i0.ɵɵproperty("ngIf", ctx_r5.lang !== "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r5.lang === "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r5.history.transfer_user.email);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate("(" + ctx_r5.history.transfer_user.email + ")");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r5.history.history_type == ctx_r5.historyTypeEnum.transferred_a_account);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r5.history.history_type == ctx_r5.historyTypeEnum.transferred_project);
    i0.ɵɵadvance(6);
    i0.ɵɵproperty("ngIf", ctx_r5.lang !== "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r5.lang === "ja");
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("pTooltip", ctx_r5.history.old_owner.email);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate("(" + ctx_r5.history.old_owner.email + ")");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r5.history.history_type == ctx_r5.historyTypeEnum.transferred_a_account);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r5.history.history_type == ctx_r5.historyTypeEnum.transferred_project);
} }
var RptDetail3Component = /** @class */ (function () {
    function RptDetail3Component() {
        this.historyTypeEnum = constant_module_1.HistoryType;
    }
    RptDetail3Component.prototype.ngOnChanges = function () {
    };
    RptDetail3Component.ɵfac = function RptDetail3Component_Factory(t) { return new (t || RptDetail3Component)(); };
    RptDetail3Component.ɵcmp = i0.ɵɵdefineComponent({ type: RptDetail3Component, selectors: [["app-rpt-detail3"]], inputs: { history: "history", option: "option", historyType: "historyType", lang: "lang" }, features: [i0.ɵɵNgOnChangesFeature], decls: 7, vars: 7, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "p-d-flex p-flex-column", 4, "ngSwitchCase"], ["class", "p-d-flex", 4, "ngSwitchCase"], [1, "pi", "pi-folder", "p-pr-1"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 3, "pTooltip"], [1, "p-d-flex", "p-flex-column"], ["class", "p-pb-3", 4, "ngIf"], ["class", "p-d-flex p-flex-column", 4, "ngIf"], [1, "p-pb-3"], [3, "translate", 4, "ngIf"], [3, "translate"], [4, "ngFor", "ngForOf"], [1, "p-d-flex", "p-pb-3"], [1, "p-pr-1"], [3, "condition", 4, "ngIf"], [1, "display-grid"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 1, "p-text-truncate", 3, "pTooltip"], [3, "condition"], [1, "p-d-flex"], ["class", "p-mr-2 p-mb-2 p-badge", "tooltipZIndex", "100000", 3, "pTooltip", "backgroundColor", 4, "ngFor", "ngForOf"], ["tooltipZIndex", "100000", 1, "p-mr-2", "p-mb-2", "p-badge", 3, "pTooltip"], ["class", "p-pb-3", 3, "translate", 4, "ngIf"], [1, "p-pb-3", 3, "translate"], [1, "p-d-none", "p-d-md-table-cell", "p-pr-1"], [4, "ngIf"], [3, "ngClass", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["notExistNewRole", ""], [1, "pi", "pi-user"], [1, "pi", "pi-users"], [1, "p-mb-2", 3, "ngClass"], ["tooltipPosition", "left", 3, "pTooltip", 4, "ngIf"], ["tooltipPosition", "left", "tooltipZIndex", "100000", 3, "ngClass", "pTooltip"], ["tooltipPosition", "left", 3, "pTooltip"], [3, "ngClass"], [1, "p-mt-2", "p-mr-2", "p-badge", "p-badge-secondary", 3, "ngSwitch"], [1, "p-mt-2", "p-badge", "p-badge-info", 3, "ngSwitch"], [1, "p-mt-2", 3, "ngSwitch"], ["class", "p-badge p-badge-secondary", 4, "ngSwitchCase"], ["class", "p-badge p-badge-info", 4, "ngSwitchCase"], [1, "p-badge", "p-badge-secondary"], [1, "p-badge", "p-badge-info"], [1, "p-pt-1"], ["class", "p-badge p-badge-success", 4, "ngIf"], [1, "p-pt-2", "p-d-flex"], [1, "line-through"], ["class", "p-badge p-badge-primary", 4, "ngIf"], [1, "p-text-nowrap", 3, "ngSwitch"], ["class", "p-badge p-badge-success", 4, "ngSwitchCase"], ["class", "p-badge", 4, "ngSwitchCase"], [1, "p-badge", "p-badge-success"], [1, "p-badge"], [1, "p-badge", "p-badge-primary"]], template: function RptDetail3Component_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵtemplate(1, RptDetail3Component_div_1_Template, 4, 2, "div", 1);
            i0.ɵɵtemplate(2, RptDetail3Component_div_2_Template, 3, 7, "div", 2);
            i0.ɵɵtemplate(3, RptDetail3Component_div_3_Template, 2, 1, "div", 3);
            i0.ɵɵtemplate(4, RptDetail3Component_div_4_Template, 3, 2, "div", 2);
            i0.ɵɵtemplate(5, RptDetail3Component_div_5_Template, 3, 2, "div", 1);
            i0.ɵɵtemplate(6, RptDetail3Component_div_6_Template, 25, 12, "div", 2);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵproperty("ngSwitch", ctx.option);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "project");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "listFile");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "listLabel");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "listCollaborator");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "listComment");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "listTransfer");
        } }, directives: [i1.NgSwitch, i1.NgSwitchCase, i2.Tooltip, i1.NgIf, i3.TranslateDirective, i1.NgForOf, i4.RptShowContentTypeComponent, i1.NgClass], pipes: [i3.TranslatePipe], styles: ["s[_ngcontent-%COMP%] {\n  -webkit-text-decoration-color: black;\n          text-decoration-color: black;\n}\n\n.line-through[_ngcontent-%COMP%] {\n  text-decoration: line-through;\n  -webkit-text-decoration-color: black;\n          text-decoration-color: black;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1kZXRhaWwzL3JwdC1kZXRhaWwzLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC90ZWFtLWFkbWluL3JlcG9ydC9ycHQtZGV0YWlsMy9ycHQtZGV0YWlsMy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLG9DQUFBO1VBQUEsNEJBQUE7QUNDRjs7QURDQTtFQUNFLDZCQUFBO0VBQ0Esb0NBQUE7VUFBQSw0QkFBQTtBQ0VGIiwiZmlsZSI6InNyYy9hcHAvdGVhbS1hZG1pbi9yZXBvcnQvcnB0LWRldGFpbDMvcnB0LWRldGFpbDMuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJzIHtcbiAgdGV4dC1kZWNvcmF0aW9uLWNvbG9yOiBibGFjaztcbn1cbi5saW5lLXRocm91Z2gge1xuICB0ZXh0LWRlY29yYXRpb246IGxpbmUtdGhyb3VnaDtcbiAgdGV4dC1kZWNvcmF0aW9uLWNvbG9yOiBibGFjaztcbn1cbiIsInMge1xuICB0ZXh0LWRlY29yYXRpb24tY29sb3I6IGJsYWNrO1xufVxuXG4ubGluZS10aHJvdWdoIHtcbiAgdGV4dC1kZWNvcmF0aW9uOiBsaW5lLXRocm91Z2g7XG4gIHRleHQtZGVjb3JhdGlvbi1jb2xvcjogYmxhY2s7XG59Il19 */"] });
    return RptDetail3Component;
}());
exports.RptDetail3Component = RptDetail3Component;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RptDetail3Component, [{
        type: core_1.Component,
        args: [{
                selector: 'app-rpt-detail3',
                templateUrl: './rpt-detail3.component.html',
                styleUrls: ['./rpt-detail3.component.scss']
            }]
    }], function () { return []; }, { history: [{
            type: core_1.Input
        }], option: [{
            type: core_1.Input
        }], historyType: [{
            type: core_1.Input
        }], lang: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/report/rpt-file-detail/rpt-file-detail.component.ts":
/*!********************************************************************************!*\
  !*** ./src/app/team-admin/report/rpt-file-detail/rpt-file-detail.component.ts ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RptFileDetailComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../rpt-setting/rpt-setting.component */ "./src/app/team-admin/report/rpt-setting/rpt-setting.component.ts"));
var RptFileDetailComponent = /** @class */ (function () {
    function RptFileDetailComponent(utilsService) {
        this.utilsService = utilsService;
        this.licenseTrackingDetail = {};
        this.yesStr = this.utilsService.translate('reports.detail.yes');
        this.noStr = this.utilsService.translate('reports.detail.no');
    }
    RptFileDetailComponent.prototype.ngOnChanges = function () {
    };
    RptFileDetailComponent.ɵfac = function RptFileDetailComponent_Factory(t) { return new (t || RptFileDetailComponent)(i0.ɵɵdirectiveInject(i1.UtilsService)); };
    RptFileDetailComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RptFileDetailComponent, selectors: [["app-rpt-file-detail"]], inputs: { licenseTrackingDetail: "licenseTrackingDetail" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 4, consts: [[3, "licenseTrackingDetail", "yesStr", "noStr", "showWatermark"]], template: function RptFileDetailComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelement(0, "app-rpt-setting", 0);
        } if (rf & 2) {
            i0.ɵɵproperty("licenseTrackingDetail", ctx.licenseTrackingDetail)("yesStr", ctx.yesStr)("noStr", ctx.noStr)("showWatermark", false);
        } }, directives: [i2.RptSettingComponent], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1maWxlLWRldGFpbC9ycHQtZmlsZS1kZXRhaWwuY29tcG9uZW50LnNjc3MifQ== */"] });
    return RptFileDetailComponent;
}());
exports.RptFileDetailComponent = RptFileDetailComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RptFileDetailComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-rpt-file-detail',
                templateUrl: './rpt-file-detail.component.html',
                styleUrls: ['./rpt-file-detail.component.scss']
            }]
    }], function () { return [{ type: i1.UtilsService }]; }, { licenseTrackingDetail: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/report/rpt-folder-detail/rpt-folder-detail.component.ts":
/*!************************************************************************************!*\
  !*** ./src/app/team-admin/report/rpt-folder-detail/rpt-folder-detail.component.ts ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RptFolderDetailComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../rpt-setting/rpt-setting.component */ "./src/app/team-admin/report/rpt-setting/rpt-setting.component.ts"));
function RptFolderDetailComponent_div_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "s");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r0.data.result[0].old_name);
} }
var RptFolderDetailComponent = /** @class */ (function () {
    function RptFolderDetailComponent(utilsService) {
        this.utilsService = utilsService;
        this.data = {};
        this.yesStr = this.utilsService.translate('reports.detail.yes');
        this.noStr = this.utilsService.translate('reports.detail.no');
    }
    RptFolderDetailComponent.prototype.ngOnChanges = function () {
        this.loadDetail();
    };
    RptFolderDetailComponent.prototype.loadDetail = function () {
        if (this.data) {
            this.trackingDetail = this.data.tracking_detail;
            this.oldTrackingDetail = this.data.old_tracking_detail;
        }
    };
    RptFolderDetailComponent.ɵfac = function RptFolderDetailComponent_Factory(t) { return new (t || RptFolderDetailComponent)(i0.ɵɵdirectiveInject(i1.UtilsService)); };
    RptFolderDetailComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RptFolderDetailComponent, selectors: [["app-rpt-folder-detail"]], inputs: { data: "data" }, features: [i0.ɵɵNgOnChangesFeature], decls: 10, vars: 8, consts: [[1, "p-grid", "p-pl-2"], [1, "p-col-4", "level-1", "p-pt-2", 3, "translate"], [1, "p-col-8", "p-pt-2"], [1, "p-d-flex", "p-flex-column"], [4, "ngIf"], [1, "p-col-12", "p-pt-3", 3, "translate"], [1, "p-col-12", "p-pt-3"], [3, "oldTrackingDetail", "trackingDetail", "yesStr", "noStr"]], template: function RptFolderDetailComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelement(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "div", 3);
            i0.ɵɵelementStart(4, "div");
            i0.ɵɵtext(5);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(6, RptFolderDetailComponent_div_6_Template, 3, 1, "div", 4);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelement(7, "div", 5);
            i0.ɵɵelementStart(8, "div", 6);
            i0.ɵɵelement(9, "app-rpt-setting", 7);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("translate", "reports.detail.folder_name");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(ctx.data.result[0].name);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.data.result[0].old_name && ctx.data.result[0].old_name !== ctx.data.result[0].name);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("translate", "reports.detail.folder_setting");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("oldTrackingDetail", ctx.oldTrackingDetail)("trackingDetail", ctx.trackingDetail)("yesStr", ctx.yesStr)("noStr", ctx.noStr);
        } }, directives: [i2.TranslateDirective, i3.NgIf, i4.RptSettingComponent], styles: ["div[_ngcontent-%COMP%] {\n  padding: 0;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1mb2xkZXItZGV0YWlsL3JwdC1mb2xkZXItZGV0YWlsLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC90ZWFtLWFkbWluL3JlcG9ydC9ycHQtZm9sZGVyLWRldGFpbC9ycHQtZm9sZGVyLWRldGFpbC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFVBQUE7QUNDRiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1mb2xkZXItZGV0YWlsL3JwdC1mb2xkZXItZGV0YWlsLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiZGl2IHtcbiAgcGFkZGluZzogMDtcbn1cbiIsImRpdiB7XG4gIHBhZGRpbmc6IDA7XG59Il19 */"] });
    return RptFolderDetailComponent;
}());
exports.RptFolderDetailComponent = RptFolderDetailComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RptFolderDetailComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-rpt-folder-detail',
                templateUrl: './rpt-folder-detail.component.html',
                styleUrls: ['./rpt-folder-detail.component.scss']
            }]
    }], function () { return [{ type: i1.UtilsService }]; }, { data: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/report/rpt-link-detail/rpt-link-detail.component.ts":
/*!********************************************************************************!*\
  !*** ./src/app/team-admin/report/rpt-link-detail/rpt-link-detail.component.ts ***!
  \********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RptLinkDetailComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../rpt-show-content-type/rpt-show-content-type.component */ "./src/app/team-admin/report/rpt-show-content-type/rpt-show-content-type.component.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtextarea */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtextarea.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ../rpt-setting/rpt-setting.component */ "./src/app/team-admin/report/rpt-setting/rpt-setting.component.ts"));
function RptLinkDetailComponent_div_1_div_1_app_rpt_show_content_type_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "app-rpt-show-content-type", 9);
} if (rf & 2) {
    var object_r4 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵproperty("condition", object_r4);
} }
function RptLinkDetailComponent_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "div", 2);
    i0.ɵɵelementStart(2, "div", 7);
    i0.ɵɵtemplate(3, RptLinkDetailComponent_div_1_div_1_app_rpt_show_content_type_3_Template, 1, 1, "app-rpt-show-content-type", 8);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div");
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var object_r4 = ctx.$implicit;
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngSwitch", object_r4.content_type);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", object_r4);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", object_r4.name, " ");
} }
function RptLinkDetailComponent_div_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵtemplate(1, RptLinkDetailComponent_div_1_div_1_Template, 6, 3, "div", 6);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r0.data.shared_object);
} }
var _c0 = function () { return { standalone: true }; };
function RptLinkDetailComponent_div_6_Template(rf, ctx) { if (rf & 1) {
    var _r8 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 10);
    i0.ɵɵelement(1, "i", 11);
    i0.ɵɵelementStart(2, "textarea", 12);
    i0.ɵɵlistener("ngModelChange", function RptLinkDetailComponent_div_6_Template_textarea_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r8); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.userSendText = $event; });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngModel", ctx_r1.userSendText)("disabled", true)("ngModelOptions", i0.ɵɵpureFunction0(3, _c0));
} }
function RptLinkDetailComponent_div_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelement(1, "app-rpt-setting", 13);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("newPackageDetail", ctx_r2.newPackageDetail)("oldPackageDetail", ctx_r2.oldPackageDetail)("yesStr", ctx_r2.yesStr)("noStr", ctx_r2.noStr);
} }
var RptLinkDetailComponent = /** @class */ (function () {
    function RptLinkDetailComponent(utilsService) {
        this.utilsService = utilsService;
        this.data = {};
        this.showUserSend = false;
        this.showDrmWm = false;
        this.yesStr = this.utilsService.translate('reports.detail.yes');
        this.noStr = this.utilsService.translate('reports.detail.no');
        this.viewLinkUrl = '';
    }
    RptLinkDetailComponent.prototype.ngOnChanges = function () {
        this.loadDetail();
    };
    RptLinkDetailComponent.prototype.loadDetail = function () {
        var _this = this;
        if (this.data) {
            this.linkDetail = this.data.link;
            console.log('this.link detial', this.linkDetail);
            if (this.data.link.link_use_type === 1) {
                this.viewLinkUrl = environment_1.environment.secure_drive_url + this.linkDetail.link_url.replace('%d', '0');
            }
            else {
                this.viewLinkUrl = environment_1.environment.secure_mail_url + 'link-view-download/' + this.linkDetail.project_id + '/' + this.linkDetail.link_id;
            }
            this.oldPackageDetail = this.data.old_package;
            this.newPackageDetail = this.data.new_package;
            this.userSendText = '';
            if (this.data.result) {
                this.data.result.forEach(function (item) {
                    _this.userSendText += item.name + '\n';
                });
            }
        }
    };
    RptLinkDetailComponent.ɵfac = function RptLinkDetailComponent_Factory(t) { return new (t || RptLinkDetailComponent)(i0.ɵɵdirectiveInject(i1.UtilsService)); };
    RptLinkDetailComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RptLinkDetailComponent, selectors: [["app-rpt-link-detail"]], inputs: { data: "data", showUserSend: "showUserSend", showDrmWm: "showDrmWm" }, features: [i0.ɵɵNgOnChangesFeature], decls: 8, vars: 5, consts: [[1, "p-col-12", "p-p-0"], [4, "ngIf"], [1, "p-d-flex", "p-mb-3"], [1, "p-pr-1", "pi", "pi-link"], ["target", "_blank", 1, "p-text-secondary", "white-space", 3, "href"], ["class", "p-d-flex p-mb-3 p-fluid", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "p-pr-2", 3, "ngSwitch"], [3, "condition", 4, "ngIf"], [3, "condition"], [1, "p-d-flex", "p-mb-3", "p-fluid"], [1, "p-pr-1", "pi", "pi-cog"], ["rows", "5", "pInputTextarea", "", 3, "ngModel", "disabled", "ngModelOptions", "ngModelChange"], [3, "newPackageDetail", "oldPackageDetail", "yesStr", "noStr"]], template: function RptLinkDetailComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵtemplate(1, RptLinkDetailComponent_div_1_Template, 2, 1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelement(3, "i", 3);
            i0.ɵɵelementStart(4, "a", 4);
            i0.ɵɵtext(5);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(6, RptLinkDetailComponent_div_6_Template, 3, 4, "div", 5);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(7, RptLinkDetailComponent_div_7_Template, 2, 4, "div", 1);
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.data.shared_object.length > 0);
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("href", ctx.viewLinkUrl, i0.ɵɵsanitizeUrl);
            i0.ɵɵadvance(1);
            i0.ɵɵtextInterpolate1(" ", ctx.viewLinkUrl, " ");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showUserSend);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.showDrmWm);
        } }, directives: [i2.NgIf, i2.NgForOf, i2.NgSwitch, i3.RptShowContentTypeComponent, i4.DefaultValueAccessor, i5.InputTextarea, i4.NgControlStatus, i4.NgModel, i6.RptSettingComponent], styles: [".white-space[_ngcontent-%COMP%] {\n  white-space: nowrap;\n  overflow: auto;\n}\n\na[_ngcontent-%COMP%] {\n  text-decoration: none;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1saW5rLWRldGFpbC9ycHQtbGluay1kZXRhaWwuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1saW5rLWRldGFpbC9ycHQtbGluay1kZXRhaWwuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxtQkFBQTtFQUNBLGNBQUE7QUNDRjs7QURFQTtFQUNFLHFCQUFBO0FDQ0YiLCJmaWxlIjoic3JjL2FwcC90ZWFtLWFkbWluL3JlcG9ydC9ycHQtbGluay1kZXRhaWwvcnB0LWxpbmstZGV0YWlsLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLndoaXRlLXNwYWNlIHtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgb3ZlcmZsb3c6IGF1dG87XG59XG5cbmEge1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG59XG4iLCIud2hpdGUtc3BhY2Uge1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICBvdmVyZmxvdzogYXV0bztcbn1cblxuYSB7XG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcbn0iXX0= */"] });
    return RptLinkDetailComponent;
}());
exports.RptLinkDetailComponent = RptLinkDetailComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RptLinkDetailComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-rpt-link-detail',
                templateUrl: './rpt-link-detail.component.html',
                styleUrls: ['./rpt-link-detail.component.scss']
            }]
    }], function () { return [{ type: i1.UtilsService }]; }, { data: [{
            type: core_1.Input
        }], showUserSend: [{
            type: core_1.Input
        }], showDrmWm: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/report/rpt-project-detail/rpt-project-detail.component.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/team-admin/report/rpt-project-detail/rpt-project-detail.component.ts ***!
  \**************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RptProjectDetailComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../rpt-setting/rpt-setting.component */ "./src/app/team-admin/report/rpt-setting/rpt-setting.component.ts"));
function RptProjectDetailComponent_div_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "s");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r0.data.result[0].old_name);
} }
function RptProjectDetailComponent_div_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "s");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(ctx_r1.data.result[0].old_description);
} }
var RptProjectDetailComponent = /** @class */ (function () {
    function RptProjectDetailComponent(utilsService) {
        this.utilsService = utilsService;
        this.data = {};
        this.yesStr = this.utilsService.translate('reports.detail.yes');
        this.noStr = this.utilsService.translate('reports.detail.no');
    }
    RptProjectDetailComponent.prototype.ngOnChanges = function () {
        this.loadDetail();
    };
    RptProjectDetailComponent.prototype.loadDetail = function () {
        if (this.data) {
            this.trackingDetail = this.data.tracking_detail;
            this.oldTrackingDetail = this.data.old_tracking_detail;
        }
    };
    RptProjectDetailComponent.ɵfac = function RptProjectDetailComponent_Factory(t) { return new (t || RptProjectDetailComponent)(i0.ɵɵdirectiveInject(i1.UtilsService)); };
    RptProjectDetailComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RptProjectDetailComponent, selectors: [["app-rpt-project-detail"]], inputs: { data: "data" }, features: [i0.ɵɵNgOnChangesFeature], decls: 16, vars: 11, consts: [[1, "p-grid"], [1, "p-col-4", "level-1", 3, "translate"], [1, "p-col-8"], [1, "p-d-flex", "p-flex-column"], [4, "ngIf"], [1, "p-col-12", "p-pt-2", 3, "translate"], [1, "p-col-12", "p-pt-2"], [3, "oldTrackingDetail", "trackingDetail", "yesStr", "noStr"]], template: function RptProjectDetailComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelement(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "div", 3);
            i0.ɵɵelementStart(4, "div");
            i0.ɵɵtext(5);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(6, RptProjectDetailComponent_div_6_Template, 3, 1, "div", 4);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelement(7, "div", 1);
            i0.ɵɵelementStart(8, "div", 2);
            i0.ɵɵelementStart(9, "div", 3);
            i0.ɵɵelementStart(10, "div");
            i0.ɵɵtext(11);
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(12, RptProjectDetailComponent_div_12_Template, 3, 1, "div", 4);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelement(13, "div", 5);
            i0.ɵɵelementStart(14, "div", 6);
            i0.ɵɵelement(15, "app-rpt-setting", 7);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("translate", "label.common.project_name");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(ctx.data.result[0].name);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.data.result[0].old_name && ctx.data.result[0].old_name !== ctx.data.result[0].name);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("translate", "label.common.description");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(ctx.data.result[0].description);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.data.result[0].old_description && ctx.data.result[0].old_description !== ctx.data.result[0].description);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("translate", "reports.detail.project_setting");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("oldTrackingDetail", ctx.oldTrackingDetail)("trackingDetail", ctx.trackingDetail)("yesStr", ctx.yesStr)("noStr", ctx.noStr);
        } }, directives: [i2.TranslateDirective, i3.NgIf, i4.RptSettingComponent], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1wcm9qZWN0LWRldGFpbC9ycHQtcHJvamVjdC1kZXRhaWwuY29tcG9uZW50LnNjc3MifQ== */"] });
    return RptProjectDetailComponent;
}());
exports.RptProjectDetailComponent = RptProjectDetailComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RptProjectDetailComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-rpt-project-detail',
                templateUrl: './rpt-project-detail.component.html',
                styleUrls: ['./rpt-project-detail.component.scss']
            }]
    }], function () { return [{ type: i1.UtilsService }]; }, { data: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/report/rpt-setting/rpt-setting.component.ts":
/*!************************************************************************!*\
  !*** ./src/app/team-admin/report/rpt-setting/rpt-setting.component.ts ***!
  \************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RptSettingComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! primeng/treetable */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-treetable.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function RptSettingComponent_ng_template_1_tr_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelement(1, "th", 4);
    i0.ɵɵelement(2, "th", 5);
    i0.ɵɵelement(3, "th", 5);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("translate", "label.settings");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("translate", "label.old_settings");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("translate", "label.new_settings");
} }
function RptSettingComponent_ng_template_1_tr_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelement(1, "th", 6);
    i0.ɵɵelement(2, "th", 7);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("translate", "label.settings");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("translate", "label.new_settings");
} }
function RptSettingComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, RptSettingComponent_ng_template_1_tr_0_Template, 4, 3, "tr", 3);
    i0.ɵɵtemplate(1, RptSettingComponent_ng_template_1_tr_1_Template, 3, 2, "tr", 3);
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngIf", ctx_r0.checkOldTracking());
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r0.checkOldTracking());
} }
function RptSettingComponent_ng_template_2_tr_0_s_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "s");
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var rowData_r5 = i0.ɵɵnextContext(2).rowData;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate(rowData_r5.old);
} }
function RptSettingComponent_ng_template_2_tr_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td");
    i0.ɵɵelement(2, "p-treeTableToggler", 8);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "td");
    i0.ɵɵtemplate(5, RptSettingComponent_ng_template_2_tr_0_s_5_Template, 2, 1, "s", 3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "td");
    i0.ɵɵtext(7);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r10 = i0.ɵɵnextContext();
    var rowNode_r4 = ctx_r10.$implicit;
    var rowData_r5 = ctx_r10.rowData;
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("rowNode", rowNode_r4);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", rowData_r5.name, " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", rowData_r5.old !== rowData_r5.new);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(rowData_r5.new);
} }
function RptSettingComponent_ng_template_2_tr_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td");
    i0.ɵɵelement(2, "p-treeTableToggler", 8);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "td");
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r11 = i0.ɵɵnextContext();
    var rowNode_r4 = ctx_r11.$implicit;
    var rowData_r5 = ctx_r11.rowData;
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("rowNode", rowNode_r4);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", rowData_r5.name, " ");
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate(rowData_r5.new);
} }
function RptSettingComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵtemplate(0, RptSettingComponent_ng_template_2_tr_0_Template, 8, 4, "tr", 3);
    i0.ɵɵtemplate(1, RptSettingComponent_ng_template_2_tr_1_Template, 6, 3, "tr", 3);
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngIf", ctx_r1.checkOldTracking());
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", !ctx_r1.checkOldTracking());
} }
var RptSettingComponent = /** @class */ (function () {
    function RptSettingComponent(utilsService, datePipe) {
        this.utilsService = utilsService;
        this.datePipe = datePipe;
        this.showWatermark = true;
        this.defaultWm = { wm_text: this.utilsService.translate('label.default'), wm_font_size: 50, wm_position: 'diagonal', wm_color: 'RGB(255,0,0)' };
        this.settings = [];
        this.defaultDate = new Date('9999/12/30');
    }
    RptSettingComponent.prototype.ngOnChanges = function () {
        if (this.trackingDetail) {
            this.drmSetting = JSON.parse(this.trackingDetail.drm_setting);
            this.watermarkSetting = JSON.parse(this.trackingDetail.watermark_setting);
        }
        if (this.oldTrackingDetail) {
            this.oldDrmSetting = JSON.parse(this.oldTrackingDetail.drm_setting);
            this.oldWatermarkSetting = JSON.parse(this.oldTrackingDetail.watermark_setting);
        }
        if (this.newPackageDetail) {
            this.watermarkSetting = JSON.parse(this.newPackageDetail.watermark_setting);
        }
        if (this.oldPackageDetail) {
            this.oldWatermarkSetting = JSON.parse(this.oldPackageDetail.watermark_setting);
        }
        this.loadWatermark();
        this.loadDataDetail();
    };
    RptSettingComponent.prototype.loadWatermark = function () {
        if (this.oldWatermarkSetting) {
            if (this.oldWatermarkSetting.default_wm === 1) {
                this.oldSetting = this.defaultWm;
            }
            else {
                this.oldSetting = this.oldWatermarkSetting.setting;
            }
        }
        if (this.watermarkSetting) {
            if (this.watermarkSetting.default_wm === 1) {
                this.setting = this.defaultWm;
            }
            else {
                this.setting = this.watermarkSetting.setting;
            }
        }
    };
    RptSettingComponent.prototype.loadDataDetail = function () {
        this.settings = [
            {
                expanded: (this.drmSetting || (this.licenseTrackingDetail && this.licenseTrackingDetail.is_drmsetting)
                    || this.newPackageDetail),
                'data': {
                    'level': 1,
                    'name': this.utilsService.translate('reports.detail.drm'),
                    'old': this.getOldTrackingDetail('drm'),
                    'new': this.getTrackingDetail('drm')
                }
            }
        ];
        // Show children of drm setting if yesStr
        if (this.getTrackingDetail('drm') === this.yesStr) {
            this.settings[0].children = [
                {
                    'data': {
                        'level': 2,
                        'name': this.utilsService.translate('reports.detail.printable'),
                        'old': this.getOldTrackingDetail('printable'),
                        'new': this.getTrackingDetail('printable')
                    }
                },
                {
                    'data': {
                        'level': 2,
                        'name': this.utilsService.translate('reports.detail.editable'),
                        'old': this.getOldTrackingDetail('editable'),
                        'new': this.getTrackingDetail('editable')
                    }
                },
                {
                    'data': {
                        'level': 2,
                        'name': this.utilsService.translate('reports.detail.expiry_date'),
                        'old': this.getOldTrackingDetail('expiryDate'),
                        'new': this.getTrackingDetail('expiryDate')
                    }
                }
            ];
        }
        if (this.showWatermark) {
            this.addWatermark();
        }
    };
    RptSettingComponent.prototype.addWatermark = function () {
        if (this.watermarkSetting && this.watermarkSetting.show_wm === 1) {
            this.settings.push({
                expanded: (this.watermarkSetting && this.watermarkSetting.show_wm === 1),
                'data': {
                    'level': 1,
                    'name': this.utilsService.translate('reports.detail.watermark'),
                    'old': this.getWatermark('old_show_wm'),
                    'new': this.getWatermark('new_show_wm')
                },
                'children': [
                    {
                        'data': {
                            'level': 2,
                            'name': this.utilsService.translate('reports.detail.default'),
                            'old': this.getWatermark('old_default_wm'),
                            'new': this.getWatermark('new_default_wm')
                        }
                    },
                    {
                        'data': {
                            'level': 2,
                            'name': this.utilsService.translate('reports.detail.content'),
                            'old': this.getOldSetting('content'),
                            'new': this.getNewSetting('content')
                        }
                    },
                    {
                        'data': {
                            'level': 2,
                            'name': this.utilsService.translate('reports.detail.font_size'),
                            'old': this.getOldSetting('fontSize'),
                            'new': this.getNewSetting('fontSize'),
                        }
                    },
                    {
                        'data': {
                            'level': 2,
                            'name': this.utilsService.translate('reports.detail.position'),
                            'old': this.utilsService.toTitleCase(this.getOldSetting('position')),
                            'new': this.utilsService.toTitleCase(this.getNewSetting('position'))
                        }
                    },
                    {
                        'data': {
                            'level': 2,
                            'name': this.utilsService.translate('reports.detail.color'),
                            'old': this.getOldSetting('color'),
                            'new': this.getNewSetting('color')
                        }
                    }
                ]
            });
        }
        else {
            this.settings.push({
                expanded: false,
                'data': {
                    'level': 1,
                    'name': this.utilsService.translate('reports.detail.watermark'),
                    'old': this.getWatermark('old_show_wm'),
                    'new': this.getWatermark('new_show_wm')
                }
            });
        }
    };
    RptSettingComponent.prototype.getWatermark = function (name) {
        switch (name) {
            case 'old_show_wm': {
                return (this.oldWatermarkSetting && this.oldWatermarkSetting.show_wm === 1) ? this.yesStr : this.noStr;
            }
            case 'old_default_wm': {
                return (this.oldWatermarkSetting && this.oldWatermarkSetting.default_wm === 1) ? this.yesStr : this.noStr;
            }
        }
        switch (name) {
            case 'new_show_wm': {
                return (this.watermarkSetting && this.watermarkSetting.show_wm === 1) ? this.yesStr : this.noStr;
            }
            case 'new_default_wm': {
                return (this.watermarkSetting && this.watermarkSetting.default_wm === 1) ? this.yesStr : this.noStr;
            }
        }
    };
    RptSettingComponent.prototype.getOldSetting = function (name) {
        if (this.oldSetting) {
            switch (name) {
                case 'content': {
                    return (this.oldSetting.wm_text && this.oldSetting.wm_text !== this.setting.wm_text) ? this.oldSetting.wm_text : '';
                }
                case 'fontSize': {
                    return (this.oldSetting.wm_font_size && this.oldSetting.wm_font_size !== this.setting.wm_font_size) ? this.oldSetting.wm_font_size : '';
                }
                case 'position': {
                    return (this.oldSetting.wm_position && this.oldSetting.wm_position !== this.setting.wm_position) ? this.oldSetting.wm_position : '';
                }
                case 'color': {
                    return (this.oldSetting.wm_color && this.oldSetting.wm_color !== this.setting.wm_color) ? this.oldSetting.wm_color : '';
                }
            }
        }
        return '';
    };
    RptSettingComponent.prototype.getNewSetting = function (name) {
        if (this.setting) {
            switch (name) {
                case 'content': {
                    return (this.setting) ? this.setting.wm_text : '';
                }
                case 'fontSize': {
                    return (this.setting) ? this.setting.wm_font_size : '';
                }
                case 'position': {
                    return (this.setting) ? this.setting.wm_position : '';
                }
                case 'color': {
                    return (this.setting) ? this.setting.wm_color : '';
                }
            }
        }
        return '';
    };
    RptSettingComponent.prototype.getOldTrackingDetail = function (name) {
        //if exist old package detail
        if (this.oldPackageDetail) {
            return this.settingDrmPackageDetail(this.oldPackageDetail, name);
        }
        //if exist old tracking detail
        if (this.oldTrackingDetail) {
            switch (name) {
                case 'drm': {
                    return (this.oldDrmSetting) ? this.yesStr : this.noStr;
                }
                case 'printable': {
                    return (this.oldDrmSetting && this.oldDrmSetting.printable === 1) ? this.yesStr : this.noStr;
                }
                case 'editable': {
                    return (this.oldDrmSetting && this.oldDrmSetting.editable === 1) ? this.yesStr : this.noStr;
                }
                case 'expiryDate': {
                    return (this.oldDrmSetting && this.oldDrmSetting.expiryDate && !(this.utilsService.calc2Date(this.defaultDate, new Date(this.oldDrmSetting.expiryDate)) > 0))
                        ? this.utilsService.formatDateBasedOnDiff(this.datePipe, this.oldDrmSetting.expiryDate) + ' (UTC)' : this.noStr;
                }
                case 'notify': {
                    return (this.oldTrackingDetail.notify_all || this.oldTrackingDetail.notify_user != '[]') ? this.yesStr : this.noStr;
                }
                case 'all': {
                    return (this.oldTrackingDetail.notify_all) ? this.yesStr : this.noStr;
                }
                case 'specific': {
                    return (this.oldTrackingDetail.notify_user) ? this.yesStr : this.noStr;
                }
            }
        }
        return '';
    };
    RptSettingComponent.prototype.getTrackingDetail = function (name) {
        //if exist license tracking detail
        if (this.licenseTrackingDetail) {
            switch (name) {
                case 'drm': {
                    return (this.licenseTrackingDetail.is_drmsetting) ? this.yesStr : this.noStr;
                }
                case 'printable': {
                    return (this.licenseTrackingDetail.printable === 1) ? this.yesStr : this.noStr;
                }
                case 'editable': {
                    return (this.licenseTrackingDetail.editable === 1) ? this.yesStr : this.noStr;
                }
                case 'expiryDate': {
                    return (this.licenseTrackingDetail.expiry_date && !(this.utilsService.calc2Date(this.defaultDate, new Date(this.licenseTrackingDetail.expiry_date)) > 0))
                        ? this.utilsService.formatDateBasedOnDiff(this.datePipe, this.licenseTrackingDetail.expiry_date) + ' (UTC)' : this.noStr;
                }
            }
        }
        //if exist new package detail
        if (this.newPackageDetail) {
            return this.settingDrmPackageDetail(this.newPackageDetail, name);
        }
        //if exist tracking detail
        if (this.trackingDetail) {
            switch (name) {
                case 'drm': {
                    return (this.drmSetting) ? this.yesStr : this.noStr;
                }
                case 'printable': {
                    return (this.drmSetting && this.drmSetting.printable === 1) ? this.yesStr : this.noStr;
                }
                case 'editable': {
                    return (this.drmSetting && this.drmSetting.editable === 1) ? this.yesStr : this.noStr;
                }
                case 'expiryDate': {
                    return (this.drmSetting && this.drmSetting.expiryDate && !(this.utilsService.calc2Date(this.defaultDate, new Date(this.drmSetting.expiryDate)) > 0))
                        ? this.utilsService.formatDateBasedOnDiff(this.datePipe, this.drmSetting.expiryDate) + ' (UTC)' : this.noStr;
                }
                case 'notify': {
                    return (this.trackingDetail.notify_all || this.trackingDetail.notify_user != '[]') ? this.yesStr : this.noStr;
                }
                case 'all': {
                    return (this.trackingDetail.notify_all) ? this.yesStr : this.noStr;
                }
                case 'specific': {
                    return (this.trackingDetail.notify_user) ? this.yesStr : this.noStr;
                }
            }
        }
        return '';
    };
    RptSettingComponent.prototype.settingDrmPackageDetail = function (packageDetail, name) {
        if (packageDetail) {
            switch (name) {
                case 'drm': {
                    return this.yesStr;
                }
                case 'printable': {
                    return (packageDetail.printable === 1) ? this.yesStr : this.noStr;
                }
                case 'editable': {
                    return (packageDetail.editable === 1) ? this.yesStr : this.noStr;
                }
                case 'expiryDate': {
                    return (packageDetail.document_expire && !(this.utilsService.calc2Date(this.defaultDate, new Date(packageDetail.document_expire)) > 0))
                        ? this.utilsService.formatDateBasedOnDiff(this.datePipe, packageDetail.document_expire) + ' (UTC)' : this.noStr;
                }
            }
        }
    };
    RptSettingComponent.prototype.checkOldTracking = function () {
        return (this.oldTrackingDetail && !!(this.oldTrackingDetail.drm_setting || this.oldTrackingDetail.forward ||
            this.oldTrackingDetail.notify_all || this.oldTrackingDetail.notify_user ||
            this.oldTrackingDetail.watermark_setting)) || this.oldPackageDetail;
    };
    RptSettingComponent.ɵfac = function RptSettingComponent_Factory(t) { return new (t || RptSettingComponent)(i0.ɵɵdirectiveInject(i1.UtilsService), i0.ɵɵdirectiveInject(i2.DatePipe)); };
    RptSettingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RptSettingComponent, selectors: [["app-rpt-setting"]], inputs: { trackingDetail: "trackingDetail", oldTrackingDetail: "oldTrackingDetail", licenseTrackingDetail: "licenseTrackingDetail", oldPackageDetail: "oldPackageDetail", newPackageDetail: "newPackageDetail", yesStr: "yesStr", noStr: "noStr", showWatermark: "showWatermark" }, features: [i0.ɵɵProvidersFeature([common_1.DatePipe]), i0.ɵɵNgOnChangesFeature], decls: 3, vars: 1, consts: [[3, "value"], ["pTemplate", "header"], ["pTemplate", "body"], [4, "ngIf"], [2, "width", "40%", 3, "translate"], [2, "width", "30%", 3, "translate"], [2, "width", "55%", 3, "translate"], [2, "width", "45%", 3, "translate"], [3, "rowNode"]], template: function RptSettingComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "p-treeTable", 0);
            i0.ɵɵtemplate(1, RptSettingComponent_ng_template_1_Template, 2, 2, "ng-template", 1);
            i0.ɵɵtemplate(2, RptSettingComponent_ng_template_2_Template, 2, 2, "ng-template", 2);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵproperty("value", ctx.settings);
        } }, directives: [i3.TreeTable, i4.PrimeTemplate, i2.NgIf, i5.TranslateDirective, i3.TreeTableToggler], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1zZXR0aW5nL3JwdC1zZXR0aW5nLmNvbXBvbmVudC5zY3NzIn0= */"] });
    return RptSettingComponent;
}());
exports.RptSettingComponent = RptSettingComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RptSettingComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-rpt-setting',
                templateUrl: './rpt-setting.component.html',
                styleUrls: ['./rpt-setting.component.scss'],
                providers: [common_1.DatePipe]
            }]
    }], function () { return [{ type: i1.UtilsService }, { type: i2.DatePipe }]; }, { trackingDetail: [{
            type: core_1.Input
        }], oldTrackingDetail: [{
            type: core_1.Input
        }], licenseTrackingDetail: [{
            type: core_1.Input
        }], oldPackageDetail: [{
            type: core_1.Input
        }], newPackageDetail: [{
            type: core_1.Input
        }], yesStr: [{
            type: core_1.Input
        }], noStr: [{
            type: core_1.Input
        }], showWatermark: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/report/rpt-show-content-type/rpt-show-content-type.component.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/team-admin/report/rpt-show-content-type/rpt-show-content-type.component.ts ***!
  \********************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RptShowContentTypeComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
function RptShowContentTypeComponent_span_1_i_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 13);
} }
function RptShowContentTypeComponent_span_1_i_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 14);
} }
function RptShowContentTypeComponent_span_1_i_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 14);
} }
function RptShowContentTypeComponent_span_1_i_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 15);
} }
function RptShowContentTypeComponent_span_1_i_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 16);
} }
function RptShowContentTypeComponent_span_1_i_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 17);
} }
function RptShowContentTypeComponent_span_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span", 0);
    i0.ɵɵtemplate(1, RptShowContentTypeComponent_span_1_i_1_Template, 1, 0, "i", 9);
    i0.ɵɵtemplate(2, RptShowContentTypeComponent_span_1_i_2_Template, 1, 0, "i", 10);
    i0.ɵɵtemplate(3, RptShowContentTypeComponent_span_1_i_3_Template, 1, 0, "i", 10);
    i0.ɵɵtemplate(4, RptShowContentTypeComponent_span_1_i_4_Template, 1, 0, "i", 11);
    i0.ɵɵtemplate(5, RptShowContentTypeComponent_span_1_i_5_Template, 1, 0, "i", 12);
    i0.ɵɵtemplate(6, RptShowContentTypeComponent_span_1_i_6_Template, 1, 0, "i", 8);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("ngSwitch", ctx_r0.condition.content_type);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", ctx_r0.constant.contentTypes.pdf);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", ctx_r0.constant.contentTypes.msWord);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", ctx_r0.constant.contentTypes.docx);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", ctx_r0.constant.contentTypes.xlsx);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", ctx_r0.constant.contentTypes.pptx);
} }
function RptShowContentTypeComponent_i_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 18);
} }
function RptShowContentTypeComponent_i_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 19);
} }
function RptShowContentTypeComponent_i_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 20);
} }
function RptShowContentTypeComponent_i_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 21);
} }
function RptShowContentTypeComponent_i_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 22);
} }
function RptShowContentTypeComponent_i_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 23);
} }
function RptShowContentTypeComponent_i_8_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 23);
} }
function RptShowContentTypeComponent_i_9_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i", 17);
} }
var RptShowContentTypeComponent = /** @class */ (function () {
    function RptShowContentTypeComponent(util) {
        this.util = util;
        this.constant = constant_module_1.Constant;
    }
    RptShowContentTypeComponent.prototype.ngOnInit = function () {
    };
    RptShowContentTypeComponent.ɵfac = function RptShowContentTypeComponent_Factory(t) { return new (t || RptShowContentTypeComponent)(i0.ɵɵdirectiveInject(i1.UtilsService)); };
    RptShowContentTypeComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RptShowContentTypeComponent, selectors: [["app-rpt-show-content-type"]], inputs: { condition: "condition" }, decls: 10, vars: 9, consts: [[3, "ngSwitch"], [3, "ngSwitch", 4, "ngSwitchCase"], ["class", "fas fa-file-video", 4, "ngSwitchCase"], ["class", "fas fa-file-audio", 4, "ngSwitchCase"], ["class", "fas fa-file-image", 4, "ngSwitchCase"], ["class", "far fa-file-alt", 4, "ngSwitchCase"], ["class", "far fa-file-archive", 4, "ngSwitchCase"], ["class", "far fa-folder", 4, "ngSwitchCase"], ["class", "'far fa-file'", 4, "ngSwitchDefault"], ["class", "far fa-file-pdf", 4, "ngSwitchCase"], ["class", "far fa-file-word", 4, "ngSwitchCase"], ["class", "far fa-file-excel", 4, "ngSwitchCase"], ["class", "far fa-file-powerpoint", 4, "ngSwitchCase"], [1, "far", "fa-file-pdf"], [1, "far", "fa-file-word"], [1, "far", "fa-file-excel"], [1, "far", "fa-file-powerpoint"], [1, "'far", "fa-file'"], [1, "fas", "fa-file-video"], [1, "fas", "fa-file-audio"], [1, "fas", "fa-file-image"], [1, "far", "fa-file-alt"], [1, "far", "fa-file-archive"], [1, "far", "fa-folder"]], template: function RptShowContentTypeComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "span", 0);
            i0.ɵɵtemplate(1, RptShowContentTypeComponent_span_1_Template, 7, 6, "span", 1);
            i0.ɵɵtemplate(2, RptShowContentTypeComponent_i_2_Template, 1, 0, "i", 2);
            i0.ɵɵtemplate(3, RptShowContentTypeComponent_i_3_Template, 1, 0, "i", 3);
            i0.ɵɵtemplate(4, RptShowContentTypeComponent_i_4_Template, 1, 0, "i", 4);
            i0.ɵɵtemplate(5, RptShowContentTypeComponent_i_5_Template, 1, 0, "i", 5);
            i0.ɵɵtemplate(6, RptShowContentTypeComponent_i_6_Template, 1, 0, "i", 6);
            i0.ɵɵtemplate(7, RptShowContentTypeComponent_i_7_Template, 1, 0, "i", 7);
            i0.ɵɵtemplate(8, RptShowContentTypeComponent_i_8_Template, 1, 0, "i", 7);
            i0.ɵɵtemplate(9, RptShowContentTypeComponent_i_9_Template, 1, 0, "i", 8);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵproperty("ngSwitch", ctx.util.getGroupFromMimeType(ctx.condition));
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "secure" || false);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "video");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "audio");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "image");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "text");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "compress");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "folder");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "project");
        } }, directives: [i2.NgSwitch, i2.NgSwitchCase, i2.NgSwitchDefault], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vcmVwb3J0L3JwdC1zaG93LWNvbnRlbnQtdHlwZS9ycHQtc2hvdy1jb250ZW50LXR5cGUuY29tcG9uZW50LnNjc3MifQ== */"] });
    return RptShowContentTypeComponent;
}());
exports.RptShowContentTypeComponent = RptShowContentTypeComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(RptShowContentTypeComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-rpt-show-content-type',
                templateUrl: './rpt-show-content-type.component.html',
                styleUrls: ['./rpt-show-content-type.component.scss']
            }]
    }], function () { return [{ type: i1.UtilsService }]; }, { condition: [{
            type: core_1.Input
        }] }); })();


/***/ }),

/***/ "./src/app/team-admin/setting/account-policy/account-policy.component.ts":
/*!*******************************************************************************!*\
  !*** ./src/app/team-admin/setting/account-policy/account-policy.component.ts ***!
  \*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.AccountPolicyComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team-setting.service */ "./src/app/shared/services/team-setting.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/radiobutton */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-radiobutton.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/dropdown */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputnumber */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputnumber.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function AccountPolicyComponent_div_32_small_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function AccountPolicyComponent_div_32_small_13_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.valid_length"), " ");
} }
function AccountPolicyComponent_div_32_small_14_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.total_min"), " ");
} }
function AccountPolicyComponent_div_32_small_26_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
var _c0 = function (a0) { return { min: a0 }; };
function AccountPolicyComponent_div_32_small_27_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r9 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, "errors.valid_max_length", i0.ɵɵpureFunction1(4, _c0, ctx_r9.passwordFrm.controls.pwMin.value)), " ");
} }
function AccountPolicyComponent_div_32_small_39_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function AccountPolicyComponent_div_32_small_51_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function AccountPolicyComponent_div_32_small_63_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function AccountPolicyComponent_div_32_small_75_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
var _c1 = function (a0) { return { "count": a0 }; };
function AccountPolicyComponent_div_32_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 44);
    i0.ɵɵelementStart(1, "div", 45);
    i0.ɵɵelementStart(2, "div", 46);
    i0.ɵɵelementStart(3, "label", 47);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "titlecase");
    i0.ɵɵpipe(6, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "div", 32);
    i0.ɵɵelement(8, "p-checkbox", 48);
    i0.ɵɵelement(9, "p-inputNumber", 49);
    i0.ɵɵpipe(10, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "div", 36);
    i0.ɵɵtemplate(12, AccountPolicyComponent_div_32_small_12_Template, 3, 3, "small", 37);
    i0.ɵɵtemplate(13, AccountPolicyComponent_div_32_small_13_Template, 3, 3, "small", 37);
    i0.ɵɵtemplate(14, AccountPolicyComponent_div_32_small_14_Template, 3, 3, "small", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(15, "div", 45);
    i0.ɵɵelementStart(16, "div", 46);
    i0.ɵɵelementStart(17, "label", 50);
    i0.ɵɵtext(18);
    i0.ɵɵpipe(19, "titlecase");
    i0.ɵɵpipe(20, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(21, "div", 32);
    i0.ɵɵelement(22, "p-checkbox", 51);
    i0.ɵɵelement(23, "p-inputNumber", 52);
    i0.ɵɵpipe(24, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(25, "div", 36);
    i0.ɵɵtemplate(26, AccountPolicyComponent_div_32_small_26_Template, 3, 3, "small", 37);
    i0.ɵɵtemplate(27, AccountPolicyComponent_div_32_small_27_Template, 3, 6, "small", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(28, "div", 45);
    i0.ɵɵelementStart(29, "div", 46);
    i0.ɵɵelementStart(30, "label", 53);
    i0.ɵɵtext(31);
    i0.ɵɵpipe(32, "titlecase");
    i0.ɵɵpipe(33, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(34, "div", 32);
    i0.ɵɵelement(35, "p-checkbox", 54);
    i0.ɵɵelement(36, "p-inputNumber", 55);
    i0.ɵɵpipe(37, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(38, "div", 36);
    i0.ɵɵtemplate(39, AccountPolicyComponent_div_32_small_39_Template, 3, 3, "small", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(40, "div", 45);
    i0.ɵɵelementStart(41, "div", 46);
    i0.ɵɵelementStart(42, "label", 56);
    i0.ɵɵtext(43);
    i0.ɵɵpipe(44, "titlecase");
    i0.ɵɵpipe(45, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(46, "div", 32);
    i0.ɵɵelement(47, "p-checkbox", 57);
    i0.ɵɵelement(48, "p-inputNumber", 58);
    i0.ɵɵpipe(49, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(50, "div", 36);
    i0.ɵɵtemplate(51, AccountPolicyComponent_div_32_small_51_Template, 3, 3, "small", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(52, "div", 45);
    i0.ɵɵelementStart(53, "div", 46);
    i0.ɵɵelementStart(54, "label", 59);
    i0.ɵɵtext(55);
    i0.ɵɵpipe(56, "titlecase");
    i0.ɵɵpipe(57, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(58, "div", 32);
    i0.ɵɵelement(59, "p-checkbox", 60);
    i0.ɵɵelement(60, "p-inputNumber", 61);
    i0.ɵɵpipe(61, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(62, "div", 36);
    i0.ɵɵtemplate(63, AccountPolicyComponent_div_32_small_63_Template, 3, 3, "small", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(64, "div", 45);
    i0.ɵɵelementStart(65, "div", 46);
    i0.ɵɵelementStart(66, "label", 62);
    i0.ɵɵtext(67);
    i0.ɵɵpipe(68, "titlecase");
    i0.ɵɵpipe(69, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(70, "div", 32);
    i0.ɵɵelement(71, "p-checkbox", 63);
    i0.ɵɵelement(72, "p-inputNumber", 64);
    i0.ɵɵpipe(73, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(74, "div", 36);
    i0.ɵɵtemplate(75, AccountPolicyComponent_div_32_small_75_Template, 3, 3, "small", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 50, i0.ɵɵpipeBind1(6, 52, "label.password_policy.min_length")), " ");
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate1("suffix", " ", i0.ɵɵpipeBind1(10, 54, "label.password_policy.characters"), "");
    i0.ɵɵproperty("required", ctx_r0.passwordFrm.controls.passwordDefault.value !== "default" && ctx_r0.passwordFrm.controls.pwMinCheck.value ? true : null)("inputStyleClass", (ctx_r0.passwordFrm.controls["pwMin"].touched || ctx_r0.passwordFrm.controls["pwMin"].dirty) && ctx_r0.passwordFrm.controls["pwMin"].invalid || ctx_r0.passwordFrm.controls.pwMinCheck.value === true && !ctx_r0.passwordFrm.controls["pwMin"].touched && ctx_r0.passwordFrm.controls["pwMin"].invalid ? "p-invalid p-mt-0" : "")("min", ctx_r0.customMin)("max", 64);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r0.passwordFrm.controls.pwMinCheck.value && !ctx_r0.passwordFrm.controls["pwMin"].touched && !ctx_r0.passwordFrm.controls["pwMin"].dirty && (ctx_r0.passwordFrm.controls["pwMin"].errors == null ? null : ctx_r0.passwordFrm.controls["pwMin"].errors.required) || (ctx_r0.passwordFrm.controls["pwMin"].errors == null ? null : ctx_r0.passwordFrm.controls["pwMin"].errors.required));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r0.passwordFrm.controls["pwMin"].errors == null ? null : ctx_r0.passwordFrm.controls["pwMin"].errors.min) && (ctx_r0.passwordFrm.controls["pwMin"].errors == null ? null : ctx_r0.passwordFrm.controls["pwMin"].errors.min.actual) < 6);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r0.passwordFrm.controls["pwMin"].errors == null ? null : ctx_r0.passwordFrm.controls["pwMin"].errors.min) && (ctx_r0.passwordFrm.controls["pwMin"].errors == null ? null : ctx_r0.passwordFrm.controls["pwMin"].errors.min.actual) >= 6);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 56, i0.ɵɵpipeBind1(20, 58, "label.password_policy.max_length")), " ");
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate1("suffix", " ", i0.ɵɵpipeBind1(24, 60, "label.password_policy.characters"), "");
    i0.ɵɵproperty("min", ctx_r0.passwordFrm.controls.pwMin.value)("max", 64)("required", ctx_r0.passwordFrm.controls.pwMaxCheck.value && ctx_r0.passwordFrm.controls.passwordDefault.value === "custom")("disabled", !ctx_r0.passwordFrm.controls.pwMaxCheck.value ? true : null)("inputStyleClass", ctx_r0.passwordFrm.controls["pwMax"].invalid && (ctx_r0.passwordFrm.controls.pwMaxCheck.value === true && !ctx_r0.passwordFrm.controls["pwMax"].touched && ctx_r0.passwordFrm.controls["pwMax"].invalid) ? "p-invalid p-mt-0" : "");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r0.passwordFrm.controls["pwMax"].errors == null ? null : ctx_r0.passwordFrm.controls["pwMax"].errors.required);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.passwordFrm.controls["pwMax"].errors == null ? null : ctx_r0.passwordFrm.controls["pwMax"].errors.min);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(32, 62, i0.ɵɵpipeBind1(33, 64, "label.password_policy.lower_characters")), " ");
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate1("suffix", " ", i0.ɵɵpipeBind2(37, 66, "label.password_policy.character", i0.ɵɵpureFunction1(90, _c1, ctx_r0.passwordFrm.controls.pwLowercase.value)), "");
    i0.ɵɵproperty("min", 1)("max", 10)("required", ctx_r0.passwordFrm.controls.pwLowCheck.value && ctx_r0.passwordFrm.controls.passwordDefault.value === "custom")("disabled", !ctx_r0.passwordFrm.controls.pwLowCheck.value ? true : null)("inputStyleClass", ctx_r0.passwordFrm.controls["pwLowercase"].invalid || ctx_r0.passwordFrm.controls.pwLowCheck.value === true && !ctx_r0.passwordFrm.controls["pwLowercase"].touched && ctx_r0.passwordFrm.controls["pwLowercase"].invalid ? "p-invalid p-mt-0" : "");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r0.passwordFrm.controls["pwLowercase"].errors == null ? null : ctx_r0.passwordFrm.controls["pwLowercase"].errors.required);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(44, 69, i0.ɵɵpipeBind1(45, 71, "label.password_policy.uppercase_characters")), " ");
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate1("suffix", " ", i0.ɵɵpipeBind2(49, 73, "label.password_policy.character", i0.ɵɵpureFunction1(92, _c1, ctx_r0.passwordFrm.controls.pwUppercase.value)), "");
    i0.ɵɵproperty("min", 1)("max", 10)("required", ctx_r0.passwordFrm.controls.pwUpCheck.value && ctx_r0.passwordFrm.controls.passwordDefault.value === "custom")("disabled", !ctx_r0.passwordFrm.controls.pwUpCheck.value ? true : null)("inputStyleClass", ctx_r0.passwordFrm.controls["pwUppercase"].invalid || ctx_r0.passwordFrm.controls.pwUpCheck.value === true && !ctx_r0.passwordFrm.controls["pwUppercase"].touched && ctx_r0.passwordFrm.controls["pwUppercase"].invalid ? "p-invalid p-mt-0" : "");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r0.passwordFrm.controls["pwUppercase"].errors == null ? null : ctx_r0.passwordFrm.controls["pwUppercase"].errors.required);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(56, 76, i0.ɵɵpipeBind1(57, 78, "label.password_policy.special_characters")), " ");
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate1("suffix", " ", i0.ɵɵpipeBind2(61, 80, "label.password_policy.character", i0.ɵɵpureFunction1(94, _c1, ctx_r0.passwordFrm.controls.pwSpecial.value)), "");
    i0.ɵɵproperty("min", 1)("max", 10)("required", ctx_r0.passwordFrm.controls.pwSpecCheck.value && ctx_r0.passwordFrm.controls.passwordDefault.value === "custom")("disabled", !ctx_r0.passwordFrm.controls.pwSpecCheck.value ? true : null)("inputStyleClass", ctx_r0.passwordFrm.controls["pwSpecial"].invalid || ctx_r0.passwordFrm.controls.pwSpecCheck.value === true && !ctx_r0.passwordFrm.controls["pwSpecial"].touched && ctx_r0.passwordFrm.controls["pwSpecial"].invalid ? "p-invalid p-mt-0" : "");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r0.passwordFrm.controls["pwSpecial"].errors == null ? null : ctx_r0.passwordFrm.controls["pwSpecial"].errors.required);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(68, 83, i0.ɵɵpipeBind1(69, 85, "label.password_policy.numeric_characters")), " ");
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate1("suffix", " ", i0.ɵɵpipeBind2(73, 87, "label.password_policy.character", i0.ɵɵpureFunction1(96, _c1, ctx_r0.passwordFrm.controls.pwNumeric.value)), "");
    i0.ɵɵproperty("min", 1)("max", 10)("required", ctx_r0.passwordFrm.controls.pwNumCheck.value && ctx_r0.passwordFrm.controls.passwordDefault.value === "custom")("disabled", !ctx_r0.passwordFrm.controls.pwNumCheck.value ? true : null)("inputStyleClass", ctx_r0.passwordFrm.controls.pwNumCheck.value === true && !ctx_r0.passwordFrm.controls["pwNumeric"].touched && ctx_r0.passwordFrm.controls["pwNumeric"].invalid || ctx_r0.passwordFrm.controls["pwNumeric"].invalid ? "p-invalid p-mt-0" : "");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r0.passwordFrm.controls["pwNumeric"].errors == null ? null : ctx_r0.passwordFrm.controls["pwNumeric"].errors.required);
} }
function AccountPolicyComponent_div_52_small_12_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function AccountPolicyComponent_div_52_small_24_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function AccountPolicyComponent_div_52_small_36_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function AccountPolicyComponent_div_52_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 65);
    i0.ɵɵelementStart(1, "div", 45);
    i0.ɵɵelementStart(2, "div", 66);
    i0.ɵɵelementStart(3, "label", 67);
    i0.ɵɵtext(4);
    i0.ɵɵpipe(5, "titlecase");
    i0.ɵɵpipe(6, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "div", 32);
    i0.ɵɵelement(8, "p-checkbox", 68);
    i0.ɵɵelement(9, "p-inputNumber", 69);
    i0.ɵɵpipe(10, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "div", 36);
    i0.ɵɵtemplate(12, AccountPolicyComponent_div_52_small_12_Template, 3, 3, "small", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(13, "div", 45);
    i0.ɵɵelementStart(14, "div", 66);
    i0.ɵɵelementStart(15, "label", 70);
    i0.ɵɵtext(16);
    i0.ɵɵpipe(17, "titlecase");
    i0.ɵɵpipe(18, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(19, "div", 32);
    i0.ɵɵelement(20, "p-checkbox", 71);
    i0.ɵɵelement(21, "p-inputNumber", 72);
    i0.ɵɵpipe(22, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(23, "div", 36);
    i0.ɵɵtemplate(24, AccountPolicyComponent_div_52_small_24_Template, 3, 3, "small", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(25, "div", 45);
    i0.ɵɵelementStart(26, "div", 66);
    i0.ɵɵelementStart(27, "label", 73);
    i0.ɵɵtext(28);
    i0.ɵɵpipe(29, "titlecase");
    i0.ɵɵpipe(30, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(31, "div", 32);
    i0.ɵɵelement(32, "p-checkbox", 74);
    i0.ɵɵelement(33, "p-inputNumber", 75);
    i0.ɵɵpipe(34, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(35, "div", 36);
    i0.ɵɵtemplate(36, AccountPolicyComponent_div_52_small_36_Template, 3, 3, "small", 37);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r1 = i0.ɵɵnextContext();
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 23, i0.ɵɵpipeBind1(6, 25, "label.lockout_policy.account_lockout_threshold")), " ");
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate1("suffix", " ", i0.ɵɵpipeBind1(10, 27, "label.lockout_policy.times"), "");
    i0.ɵɵproperty("required", ctx_r1.lockoutFrm.controls.accountLockout.value == true ? true : null)("inputStyleClass", ctx_r1.lockoutFrm.controls["threshold"].invalid || ctx_r1.lockoutFrm.controls.thresholdCheck.value === true && !ctx_r1.lockoutFrm.controls["threshold"].touched && ctx_r1.lockoutFrm.controls["threshold"].invalid ? "p-invalid p-mt-0" : "")("min", 1)("max", 999);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r1.lockoutFrm.controls["threshold"].errors == null ? null : ctx_r1.lockoutFrm.controls["threshold"].errors.required);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 29, i0.ɵɵpipeBind1(18, 31, "label.lockout_policy.account_lockout_duration")), " ");
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate1("suffix", " ", i0.ɵɵpipeBind1(22, 33, "label.lockout_policy.minutes"), "");
    i0.ɵɵproperty("min", 1)("max", 99999)("required", ctx_r1.lockoutFrm.controls.durationCheck.value && ctx_r1.lockoutFrm.controls.accountLockout.value === true)("disabled", !ctx_r1.lockoutFrm.controls.durationCheck.value ? true : null)("inputStyleClass", ctx_r1.lockoutFrm.controls["duration"].invalid || ctx_r1.lockoutFrm.controls.durationCheck.value === true && !ctx_r1.lockoutFrm.controls["duration"].touched && ctx_r1.lockoutFrm.controls["duration"].invalid ? "p-invalid p-mt-0" : "");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r1.lockoutFrm.controls["duration"].errors == null ? null : ctx_r1.lockoutFrm.controls["duration"].errors.required);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 35, i0.ɵɵpipeBind1(30, 37, "label.lockout_policy.account_lockout_counter")), " ");
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate1("suffix", " ", i0.ɵɵpipeBind1(34, 39, "label.lockout_policy.minutes"), "");
    i0.ɵɵproperty("min", 1)("max", 999)("required", ctx_r1.lockoutFrm.controls.resetAfterCheck.value && ctx_r1.lockoutFrm.controls.accountLockout.value === true)("disabled", !ctx_r1.lockoutFrm.controls.resetAfterCheck.value ? true : null)("inputStyleClass", ctx_r1.lockoutFrm.controls["resetAfter"].invalid ? "p-invalid p-mt-0" : "");
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("ngIf", ctx_r1.lockoutFrm.controls.resetAfterCheck.value && !ctx_r1.lockoutFrm.controls["resetAfter"].touched && !ctx_r1.lockoutFrm.controls["resetAfter"].dirty && (ctx_r1.lockoutFrm.controls["resetAfter"].errors == null ? null : ctx_r1.lockoutFrm.controls["resetAfter"].errors.required) || (ctx_r1.lockoutFrm.controls["resetAfter"].errors == null ? null : ctx_r1.lockoutFrm.controls["resetAfter"].errors.required));
} }
function AccountPolicyComponent_small_64_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function AccountPolicyComponent_span_81_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 76);
    i0.ɵɵelementEnd();
} }
function AccountPolicyComponent_span_82_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 77);
    i0.ɵɵelementEnd();
} }
var AccountPolicyComponent = /** @class */ (function () {
    function AccountPolicyComponent(fb, authenticateService, teamSettingService, location, cdref, messageService, broadcastService, utils) {
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.teamSettingService = teamSettingService;
        this.location = location;
        this.cdref = cdref;
        this.messageService = messageService;
        this.broadcastService = broadcastService;
        this.utils = utils;
        this.policyFrm = new forms_1.FormGroup({});
        this.passwordFrm = new forms_1.FormGroup({});
        this.lockoutFrm = new forms_1.FormGroup({});
        this.sessionFrm = new forms_1.FormGroup({});
        this.submitting = false;
        this.isPolicyChange = false;
        this.isPasswordChange = false;
        this.isLockoutChange = false;
        this.isSessionChange = false;
        this.dataPolicy = {};
        this.policyOrigin = {};
        this.passwordOrigin = {};
        this.lockoutOrigin = {};
        this.sessionOrigin = {};
        this.broadcastService.broadcast('load-menu-setting');
    }
    AccountPolicyComponent.prototype.ngOnInit = function () {
        this.pwAgeOption = [
            { code: 0, name: this.utils.translate('label.password_age.none') },
            { code: 30, name: this.utils.translate('label.password_age.30d') },
            { code: 60, name: this.utils.translate('label.password_age.60d') },
            { code: 90, name: this.utils.translate('label.password_age.90d') },
            { code: 120, name: this.utils.translate('label.password_age.120d') }
        ];
        this.sessionAgeTypeOption = [
            { code: 0, name: this.utils.translate('label.session_age.hours') },
            { code: 1, name: this.utils.translate('label.session_age.days') }
        ];
        this.authUser = this.authenticateService.getAuthUser();
        this.policyFrm = this.fb.group({
            twoFA: [false],
            accountLockout: [false],
            pwAge: [this.pwAgeOption.find(function (pa) { return pa.code === 0; })],
            firstTimeLogin: [false],
        });
        this.passwordFrm = this.fb.group({
            passwordDefault: ['default'],
            pwMinCheck: [true],
            pwMin: [],
            pwMaxCheck: [false],
            pwMax: [],
            pwLowCheck: [false],
            pwLowercase: [],
            pwUpCheck: [false],
            pwUppercase: [],
            pwSpecCheck: [false],
            pwSpecial: [],
            pwNumCheck: [false],
            pwNumeric: [],
        });
        this.lockoutFrm = this.fb.group({
            accountLockout: [false],
            thresholdCheck: [true],
            threshold: [],
            durationCheck: [false],
            duration: [],
            resetAfterCheck: [false],
            resetAfter: []
        });
        this.sessionFrm = this.fb.group({
            sAgeCheck: [false],
            sessionAge: [],
            sessionAgeType: [this.sessionAgeTypeOption.find(function (sa) { return sa.code === 0; })],
        });
        this.loadData();
    };
    AccountPolicyComponent.prototype.ngAfterContentChecked = function () {
        this.cdref.detectChanges();
    };
    AccountPolicyComponent.prototype.checkValueChanges = function () {
        var _this = this;
        this.policyFrm.valueChanges.subscribe(function (val) {
            if (_this.policyOrigin) {
                _this.isPolicyChange = (val && JSON.stringify(_this.policyOrigin) !== JSON.stringify(val));
            }
        });
        this.passwordFrm.valueChanges.subscribe(function (val) {
            if (_this.passwordOrigin) {
                _this.isPasswordChange = (val && JSON.stringify(_this.passwordOrigin) !== JSON.stringify(val));
                if (val.passwordDefault === _this.passwordOrigin['passwordDefault']
                    && val.passwordDefault === 'default') {
                    _this.isPasswordChange = false;
                }
                if (val.passwordDefault === 'default') {
                    _this.passwordFrm.get('pwMin').setValidators(null);
                    _this.passwordFrm.get('pwMin').setErrors(null);
                    _this.passwordFrm.get('pwMax').setValidators(null);
                    _this.passwordFrm.get('pwMax').setErrors(null);
                    _this.passwordFrm.get('pwLowercase').setValidators(null);
                    _this.passwordFrm.get('pwLowercase').setErrors(null);
                    _this.passwordFrm.get('pwUppercase').setValidators(null);
                    _this.passwordFrm.get('pwUppercase').setErrors(null);
                    _this.passwordFrm.get('pwSpecial').setValidators(null);
                    _this.passwordFrm.get('pwSpecial').setErrors(null);
                    _this.passwordFrm.get('pwNumeric').setValidators(null);
                    _this.passwordFrm.get('pwNumeric').setErrors(null);
                }
            }
        });
        this.lockoutFrm.valueChanges.subscribe(function (val) {
            if (_this.lockoutOrigin) {
                _this.isLockoutChange = (val && JSON.stringify(_this.lockoutOrigin) !== JSON.stringify(val));
                if (val.accountLockout === _this.lockoutOrigin['accountLockout'] && !val.accountLockout) {
                    _this.isLockoutChange = false;
                }
                if (!val.accountLockout) {
                    _this.lockoutFrm.get('threshold').setValidators(null);
                    _this.lockoutFrm.get('threshold').setErrors(null);
                    _this.lockoutFrm.get('duration').setValidators(null);
                    _this.lockoutFrm.get('duration').setErrors(null);
                    _this.lockoutFrm.get('resetAfter').setValidators(null);
                    _this.lockoutFrm.get('resetAfter').setErrors(null);
                }
            }
        });
        this.sessionFrm.valueChanges.subscribe(function (val) {
            if (_this.sessionOrigin) {
                _this.isSessionChange = (val && JSON.stringify(_this.sessionOrigin) !== JSON.stringify(val));
                if (val.sAgeCheck === _this.sessionOrigin['sAgeCheck'] && !val.sAgeCheck) {
                    _this.isSessionChange = false;
                }
                if (val.sessionAgeType === _this.sessionAgeTypeOption.find(function (sa) { return sa.code === 0; })
                    && val.sAgeCheck && val.sessionAge > 23) {
                    _this.sessionFrm.controls['sessionAge'].setValue(23);
                }
            }
        });
        this.passwordFrm.get('pwLowercase').valueChanges.subscribe(function (val) {
            if (_this.passwordFrm.get('passwordDefault').value !== 'default'
                && _this.passwordFrm.get('pwLowCheck').value) {
                _this.customMin =
                    (_this.passwordFrm.controls['pwSpecCheck'].value && _this.passwordFrm.controls['pwSpecial'].value ? _this.passwordFrm.controls['pwSpecial'].value : 0)
                        + (_this.passwordFrm.controls['pwNumCheck'].value && _this.passwordFrm.controls['pwNumeric'].value ? _this.passwordFrm.controls['pwNumeric'].value : 0)
                        + (_this.passwordFrm.controls['pwUpCheck'].value && _this.passwordFrm.controls['pwUppercase'].value ? _this.passwordFrm.controls['pwUppercase'].value : 0)
                        + (val ? val : 0);
                _this.passwordFrm.controls['pwMin'].setValidators([forms_1.Validators.required, forms_1.Validators.max(64), forms_1.Validators.min(_this.customMin > 6 ? _this.customMin : 6)]);
                _this.passwordFrm.controls['pwMin'].updateValueAndValidity();
            }
        });
        this.passwordFrm.get('pwUppercase').valueChanges.subscribe(function (val) {
            if (_this.passwordFrm.get('passwordDefault').value !== 'default'
                && _this.passwordFrm.get('pwUpCheck').value) {
                _this.customMin = (_this.passwordFrm.controls['pwNumCheck'].value && _this.passwordFrm.controls['pwNumeric'].value ? _this.passwordFrm.controls['pwNumeric'].value : 0)
                    + (_this.passwordFrm.controls['pwSpecCheck'].value && _this.passwordFrm.controls['pwSpecial'].value ? _this.passwordFrm.controls['pwSpecial'].value : 0)
                    + (val ? val : 0)
                    + (_this.passwordFrm.controls['pwLowCheck'].value && _this.passwordFrm.controls['pwLowercase'].value ? _this.passwordFrm.controls['pwLowercase'].value : 0);
                _this.passwordFrm.controls['pwMin'].setValidators([forms_1.Validators.required, forms_1.Validators.max(64), forms_1.Validators.min(_this.customMin > 6 ? _this.customMin : 6)]);
                _this.passwordFrm.controls['pwMin'].updateValueAndValidity();
            }
        });
        this.passwordFrm.get('pwSpecial').valueChanges.subscribe(function (val) {
            if (_this.passwordFrm.get('passwordDefault').value !== 'default'
                && _this.passwordFrm.get('pwSpecCheck').value) {
                _this.customMin = (_this.passwordFrm.controls['pwNumCheck'].value && _this.passwordFrm.controls['pwNumeric'].value ? _this.passwordFrm.controls['pwNumeric'].value : 0)
                    + (val ? val : 0)
                    + (_this.passwordFrm.controls['pwUpCheck'].value && _this.passwordFrm.controls['pwUppercase'].value ? _this.passwordFrm.controls['pwUppercase'].value : 0)
                    + (_this.passwordFrm.controls['pwLowCheck'].value && _this.passwordFrm.controls['pwLowercase'].value ? _this.passwordFrm.controls['pwLowercase'].value : 0);
                _this.passwordFrm.controls['pwMin'].setValidators([forms_1.Validators.required, forms_1.Validators.max(64), forms_1.Validators.min(_this.customMin > 6 ? _this.customMin : 6)]);
                _this.passwordFrm.controls['pwMin'].updateValueAndValidity();
            }
        });
        this.passwordFrm.get('pwNumeric').valueChanges.subscribe(function (val) {
            if (_this.passwordFrm.get('passwordDefault').value !== 'default'
                && _this.passwordFrm.get('pwNumCheck').value) {
                _this.customMin = (val ? val : 0)
                    + (_this.passwordFrm.controls['pwSpecCheck'].value && _this.passwordFrm.controls['pwSpecial'].value ? _this.passwordFrm.controls['pwSpecial'].value : 0)
                    + (_this.passwordFrm.controls['pwUpCheck'].value && _this.passwordFrm.controls['pwUppercase'].value ? _this.passwordFrm.controls['pwUppercase'].value : 0)
                    + (_this.passwordFrm.controls['pwLowCheck'].value && _this.passwordFrm.controls['pwLowercase'].value ? _this.passwordFrm.controls['pwLowercase'].value : 0);
                _this.passwordFrm.controls['pwMin'].setValidators([forms_1.Validators.required, forms_1.Validators.max(64), forms_1.Validators.min(_this.customMin > 6 ? _this.customMin : 6)]);
                _this.passwordFrm.controls['pwMin'].updateValueAndValidity();
            }
        });
        this.passwordFrm.get('pwMin').valueChanges.subscribe(function (val) {
            if (_this.passwordFrm.get('passwordDefault').value !== 'default' && _this.passwordFrm.get('pwMaxCheck').value) {
                _this.passwordFrm.controls['pwMax'].setValidators([forms_1.Validators.required, forms_1.Validators.max(64), forms_1.Validators.min(val)]);
                _this.passwordFrm.controls['pwMax'].updateValueAndValidity();
            }
        });
        this.passwordFrm.get('pwMaxCheck').valueChanges.subscribe(function (val) {
            if (_this.passwordFrm.get('passwordDefault').value !== 'default') {
                if (_this.passwordFrm.get('pwMaxCheck').value) {
                    _this.passwordFrm.controls['pwMax'].setValidators([forms_1.Validators.required,
                        forms_1.Validators.max(64),
                        forms_1.Validators.min(_this.passwordFrm.controls['pwMin'].value)]);
                }
                else {
                    _this.passwordFrm.controls['pwMax'].setValidators(null);
                }
                _this.passwordFrm.controls['pwMax'].updateValueAndValidity();
            }
        });
        this.passwordFrm.get('pwLowCheck').valueChanges.subscribe(function (val) {
            if (_this.passwordFrm.get('passwordDefault').value !== 'default') {
                _this.customMin = (val ?
                    (_this.passwordFrm.controls['pwLowercase'].value ? _this.passwordFrm.controls['pwLowercase'].value : 0)
                    : 0)
                    + ((_this.passwordFrm.controls['pwSpecCheck'].value && _this.passwordFrm.controls['pwSpecial'].value) ? _this.passwordFrm.controls['pwSpecial'].value : 0)
                    + ((_this.passwordFrm.controls['pwUpCheck'].value && _this.passwordFrm.controls['pwUppercase'].value) ? _this.passwordFrm.controls['pwUppercase'].value : 0)
                    + ((_this.passwordFrm.controls['pwNumCheck'].value && _this.passwordFrm.controls['pwNumeric'].value) ? _this.passwordFrm.controls['pwNumeric'].value : 0);
                _this.passwordFrm.controls['pwMin'].setValidators([forms_1.Validators.required, forms_1.Validators.max(64), forms_1.Validators.min(_this.customMin > 6 ? _this.customMin : 6)]);
                _this.passwordFrm.controls['pwMin'].updateValueAndValidity();
            }
        });
        this.passwordFrm.get('pwUpCheck').valueChanges.subscribe(function (val) {
            if (_this.passwordFrm.get('passwordDefault').value !== 'default') {
                _this.customMin = (val ?
                    (_this.passwordFrm.controls['pwUppercase'].value ? _this.passwordFrm.controls['pwUppercase'].value : 0)
                    : 0)
                    + (_this.passwordFrm.controls['pwSpecCheck'].value && _this.passwordFrm.controls['pwSpecial'].value ? _this.passwordFrm.controls['pwSpecial'].value : 0)
                    + (_this.passwordFrm.controls['pwLowCheck'].value && _this.passwordFrm.controls['pwLowercase'].value ? _this.passwordFrm.controls['pwLowercase'].value : 0)
                    + (_this.passwordFrm.controls['pwNumCheck'].value && _this.passwordFrm.controls['pwNumeric'].value ? _this.passwordFrm.controls['pwNumeric'].value : 0);
                _this.passwordFrm.controls['pwMin'].setValidators([forms_1.Validators.required, forms_1.Validators.max(64), forms_1.Validators.min(_this.customMin > 6 ? _this.customMin : 6)]);
                _this.passwordFrm.controls['pwMin'].updateValueAndValidity();
            }
        });
        this.passwordFrm.get('pwSpecCheck').valueChanges.subscribe(function (val) {
            if (_this.passwordFrm.get('passwordDefault').value !== 'default') {
                _this.customMin = (val ?
                    (_this.passwordFrm.controls['pwSpecial'].value ? _this.passwordFrm.controls['pwSpecial'].value : 0)
                    : 0)
                    + (_this.passwordFrm.controls['pwUpCheck'].value && _this.passwordFrm.controls['pwUppercase'].value ? _this.passwordFrm.controls['pwUppercase'].value : 0)
                    + (_this.passwordFrm.controls['pwLowCheck'].value && _this.passwordFrm.controls['pwLowercase'].value ? _this.passwordFrm.controls['pwLowercase'].value : 0)
                    + (_this.passwordFrm.controls['pwNumCheck'].value && _this.passwordFrm.controls['pwNumeric'].value ? _this.passwordFrm.controls['pwNumeric'].value : 0);
                _this.passwordFrm.controls['pwMin'].setValidators([forms_1.Validators.required, forms_1.Validators.max(64), forms_1.Validators.min(_this.customMin > 6 ? _this.customMin : 6)]);
                _this.passwordFrm.controls['pwMin'].updateValueAndValidity();
            }
        });
        this.passwordFrm.get('pwNumCheck').valueChanges.subscribe(function (val) {
            if (_this.passwordFrm.get('passwordDefault').value !== 'default') {
                _this.customMin = (val ?
                    (_this.passwordFrm.controls['pwNumeric'].value ? _this.passwordFrm.controls['pwNumeric'].value : 0)
                    : 0)
                    + (_this.passwordFrm.controls['pwUpCheck'].value && _this.passwordFrm.controls['pwUppercase'].value ? _this.passwordFrm.controls['pwUppercase'].value : 0)
                    + (_this.passwordFrm.controls['pwLowCheck'].value && _this.passwordFrm.controls['pwLowercase'].value ? _this.passwordFrm.controls['pwLowercase'].value : 0)
                    + (_this.passwordFrm.controls['pwNumCheck'].value && _this.passwordFrm.controls['pwSpecial'].value ? _this.passwordFrm.controls['pwSpecial'].value : 0);
                _this.passwordFrm.controls['pwMin'].setValidators([forms_1.Validators.required, forms_1.Validators.max(64), forms_1.Validators.min(_this.customMin > 6 ? _this.customMin : 6)]);
                _this.passwordFrm.controls['pwMin'].updateValueAndValidity();
            }
        });
        this.passwordFrm.get('passwordDefault').valueChanges.subscribe(function (val) {
            if (_this.passwordFrm.get('passwordDefault').value !== 'default') {
                _this.updateMinValidate();
                if (_this.passwordFrm.get('pwMaxCheck').value) {
                    _this.passwordFrm.controls['pwMax'].setValidators([forms_1.Validators.required, forms_1.Validators.max(64), forms_1.Validators.min(_this.passwordFrm.controls['pwMin'].value)]);
                }
                _this.passwordFrm.controls['pwMax'].updateValueAndValidity();
            }
        });
    };
    AccountPolicyComponent.prototype.loadData = function () {
        var _this = this;
        var params = {
            team_id: this.authUser.team_id,
            type: 3,
        };
        this.teamSettingService.getTeamSettingByType(params).subscribe(function (res) {
            _this.dataPolicy = tslib_1.__assign({}, res.data);
            _this.policyFrm.controls['twoFA'].setValue(_this.dataPolicy['enable_two_factor']);
            _this.policyFrm.controls['firstTimeLogin'].setValue(_this.dataPolicy['first_time_login']);
            _this.sessionFrm.controls['sessionAge'].setValue(_this.dataPolicy['session_age'] !== 0
                ? _this.dataPolicy['session_age'] : null);
            _this.sessionFrm.controls['sessionAgeType'].setValue(_this.sessionAgeTypeOption.find(function (sa) { return sa.code === _this.dataPolicy['session_age_type']; }));
            _this.sessionFrm.controls['sAgeCheck'].setValue(_this.dataPolicy['session_age'] !== 0);
            _this.policyFrm.controls['pwAge'].setValue(_this.pwAgeOption.find(function (pa) { return pa.code === _this.dataPolicy['password_age']; }));
            _this.passwordFrm.controls['passwordDefault'].setValue(_this.dataPolicy['default_policy'] ? 'default' : 'custom');
            var passwordSetting = JSON.parse(_this.dataPolicy['password_setting']);
            if (passwordSetting != null) {
                _this.passwordFrm.controls['pwMin'].setValue(!_this.dataPolicy['default_policy'] ? passwordSetting.min : null);
                _this.passwordFrm.controls['pwMaxCheck'].setValue(!_this.dataPolicy['default_policy'] && passwordSetting.max != 0);
                _this.passwordFrm.controls['pwLowCheck'].setValue(passwordSetting.lower != 0);
                _this.passwordFrm.controls['pwUpCheck'].setValue(passwordSetting.capital != 0);
                _this.passwordFrm.controls['pwSpecCheck'].setValue(passwordSetting.special != 0);
                _this.passwordFrm.controls['pwNumCheck'].setValue(passwordSetting.number != 0);
                _this.passwordFrm.controls['pwMax'].setValue((!_this.dataPolicy['default_policy'] && passwordSetting.max != 0) ? passwordSetting.max : null);
                _this.passwordFrm.controls['pwLowercase'].setValue(passwordSetting.lower != 0 ? passwordSetting.lower : null);
                _this.passwordFrm.controls['pwUppercase'].setValue(passwordSetting.capital != 0 ? passwordSetting.capital : null);
                _this.passwordFrm.controls['pwSpecial'].setValue(passwordSetting.special != 0 ? passwordSetting.special : null);
                _this.passwordFrm.controls['pwNumeric'].setValue(passwordSetting.number != 0 ? passwordSetting.number : null);
                if (_this.passwordFrm.controls['passwordDefault'].value === 'custom') {
                    _this.updateMinValidate();
                }
            }
            _this.lockoutFrm.controls['accountLockout'].setValue(_this.dataPolicy['account_lockout']);
            _this.lockoutFrm.controls['threshold'].setValue(_this.dataPolicy['account_lockout'] ? _this.dataPolicy['account_lockout_threshold'] : null);
            _this.lockoutFrm.controls['durationCheck'].setValue(_this.dataPolicy['account_lockout'] && _this.dataPolicy['account_lockout_duration'] !== 0);
            _this.lockoutFrm.controls['duration'].setValue(_this.dataPolicy['account_lockout'] && _this.dataPolicy['account_lockout_duration'] !== 0
                ? _this.dataPolicy['account_lockout_duration'] : null);
            _this.lockoutFrm.controls['resetAfterCheck'].setValue(_this.dataPolicy['account_lockout'] && _this.dataPolicy['time_reset_lockout'] !== 0);
            _this.lockoutFrm.controls['resetAfter'].setValue(_this.dataPolicy['account_lockout'] && _this.dataPolicy['time_reset_lockout'] !== 0 ?
                _this.dataPolicy['time_reset_lockout'] : null);
            _this.policyOrigin = tslib_1.__assign({}, _this.policyFrm.value);
            _this.passwordOrigin = tslib_1.__assign({}, _this.passwordFrm.value);
            _this.lockoutOrigin = tslib_1.__assign({}, _this.lockoutFrm.value);
            _this.sessionOrigin = tslib_1.__assign({}, _this.sessionFrm.value);
            _this.checkValueChanges();
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    AccountPolicyComponent.prototype.updateMinValidate = function () {
        this.customMin =
            (this.passwordFrm.controls['pwNumCheck'].value && this.passwordFrm.controls['pwNumeric'].value
                ? this.passwordFrm.controls['pwNumeric'].value : 0) +
                (this.passwordFrm.controls['pwUpCheck'].value && this.passwordFrm.controls['pwUppercase'].value
                    ? this.passwordFrm.controls['pwUppercase'].value : 0) +
                (this.passwordFrm.controls['pwSpecCheck'].value && this.passwordFrm.controls['pwSpecial'].value
                    ? this.passwordFrm.controls['pwSpecial'].value : 0) +
                (this.passwordFrm.controls['pwLowCheck'].value && this.passwordFrm.controls['pwLowercase'].value
                    ? this.passwordFrm.controls['pwLowercase'].value : 0);
        this.passwordFrm.controls['pwMin'].setValidators([forms_1.Validators.required,
            forms_1.Validators.max(64), forms_1.Validators.min(this.customMin > 6 ? this.customMin : 6)]);
        this.passwordFrm.controls['pwMin'].updateValueAndValidity();
    };
    AccountPolicyComponent.prototype.doUpdateAccountPolicySetting = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submitting = true;
        var params = {
            team_id: this.authUser.team_id,
            enable_two_factor: this.policyFrm.controls['twoFA'].value,
            default_policy: this.passwordFrm.controls['passwordDefault'].value === 'default' ? 1 : 0,
            account_lockout: this.lockoutFrm.controls['accountLockout'].value ? 1 : 0,
            session_age: (!this.sessionFrm.controls['sAgeCheck'].value
                || !this.sessionFrm.controls['sessionAge'].value)
                ? 0 : this.sessionFrm.controls['sessionAge'].value,
            session_age_type: this.sessionFrm.controls['sAgeCheck'].value
                ? this.sessionFrm.controls['sessionAgeType'].value.code : 0,
            password_age: this.policyFrm.controls['pwAge'].value.code,
            first_time_login: this.policyFrm.controls['firstTimeLogin'].value,
            min: this.passwordFrm.controls['pwMin'].value,
            max: (!this.passwordFrm.controls['pwMaxCheck'].value || !this.passwordFrm.controls['pwMax'].value)
                ? 64 : this.passwordFrm.controls['pwMax'].value,
            number: (!this.passwordFrm.controls['pwNumCheck'].value || !this.passwordFrm.controls['pwNumeric'].value)
                ? 0 : this.passwordFrm.controls['pwNumeric'].value,
            capital: (!this.passwordFrm.controls['pwUpCheck'].value || !this.passwordFrm.controls['pwUppercase'].value)
                ? 0 : this.passwordFrm.controls['pwUppercase'].value,
            lower: (!this.passwordFrm.controls['pwLowCheck'].value || !this.passwordFrm.controls['pwLowercase'].value)
                ? 0 : this.passwordFrm.controls['pwLowercase'].value,
            special: (!this.passwordFrm.controls['pwSpecCheck'].value || !this.passwordFrm.controls['pwSpecial'].value)
                ? 0 : this.passwordFrm.controls['pwSpecial'].value,
            account_lockout_threshold: (!this.lockoutFrm.controls['threshold'].value)
                ? 0 : this.lockoutFrm.controls['threshold'].value,
            account_lockout_duration: (!this.lockoutFrm.controls['durationCheck'].value || !this.lockoutFrm.controls['duration'].value)
                ? 0 : this.lockoutFrm.controls['duration'].value,
            time_reset_lockout: (!this.lockoutFrm.controls['resetAfterCheck'].value || !this.lockoutFrm.controls['resetAfter'].value)
                ? 0 : this.lockoutFrm.controls['resetAfter'].value,
        };
        this.teamSettingService.updatePolicySettings(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.policyOrigin = tslib_1.__assign({}, _this.policyFrm.value);
                _this.passwordOrigin = tslib_1.__assign({}, _this.passwordFrm.value);
                _this.lockoutOrigin = tslib_1.__assign({}, _this.lockoutFrm.value);
                _this.sessionOrigin = tslib_1.__assign({}, _this.sessionFrm.value);
                _this.loadData();
                _this.isPolicyChange = false;
                _this.isPasswordChange = false;
                _this.isLockoutChange = false;
                _this.isSessionChange = false;
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
                _this.loadData();
                _this.isPolicyChange = false;
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submitting = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    AccountPolicyComponent.prototype.goBack = function () {
        this.location.back();
    };
    AccountPolicyComponent.ɵfac = function AccountPolicyComponent_Factory(t) { return new (t || AccountPolicyComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.AuthenticateService), i0.ɵɵdirectiveInject(i3.TeamSettingService), i0.ɵɵdirectiveInject(i4.Location), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i5.MessageService), i0.ɵɵdirectiveInject(i6.BroadcastService), i0.ɵɵdirectiveInject(i7.UtilsService)); };
    AccountPolicyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AccountPolicyComponent, selectors: [["app-account-policy"]], decls: 83, vars: 67, consts: [[1, "setting-container"], [1, "p-card", "p-shadow-2", "p-width-100"], [1, "p-card-body"], [3, "formGroup", "ngSubmit"], [1, "p-grid"], [1, "p-col-12", "p-field", "p-mb-0"], [1, "p-text-bold", "p-text-secondary"], [1, "p-field-checkbox", "p-mb-0"], ["binary", "true", "formControlName", "twoFA", "inputId", "twoFA"], ["for", "twoFA", 1, "cs-pointer"], [3, "formGroup"], [1, "p-field-radiobutton"], ["value", "default", "formControlName", "passwordDefault", "inputId", "passwordDefault"], ["for", "passwordDefault", 1, "cs-pointer"], ["value", "custom", "formControlName", "passwordDefault", "inputId", "passwordCustom"], ["for", "passwordCustom", 1, "cs-pointer"], [1, "p-ml-4", "p-mt-3"], ["class", "p-grid p-field p-pl-2 p-mb-0", 4, "ngIf"], [1, "p-ml-4"], [1, "p-col-12", "p-md-6", "p-pl-1", "p-pr-1"], [1, "p-field", "display-grid", "p-mb-0"], ["for", "pwAge", 1, "p-text-small", "p-text-bold"], ["id", "pwAge", "formControlName", "pwAge", "optionLabel", "name", 1, "p-width-100", 3, "options"], [1, "p-col-12", "p-mb-0", "p-pr-0"], [1, "p-field", 3, "formGroup"], [1, "p-field-checkbox"], ["binary", "true", "formControlName", "accountLockout", "inputId", "accountLockout"], ["for", "accountLockout", 1, "cs-pointer"], ["class", "p-field p-mb-0", 4, "ngIf"], [1, "p-col-12", "p-md-6", "p-pl-1", "p-pr-2"], [1, "p-field", "display-grid", "p-mb-0", 3, "formGroup"], ["for", "sAgeC", 1, "p-text-small", "p-text-bold"], [1, "p-inputgroup"], ["formControlName", "sAgeCheck", "id", "sAgeC", "binary", "true", "name", "sAgeC", 1, "p-inputgroup-addon"], ["id", "sessionAge", "styleClass", "border-left-0 border-right-0 p-width-100", "formControlName", "sessionAge", 1, "p-inputgroup", 3, "min", "max", "required", "disabled", "inputStyleClass"], ["id", "sAgeD", "formControlName", "sessionAgeType", "optionLabel", "name", 1, "border-left-0", 3, "disabled", "options"], [1, "p-invalid"], [4, "ngIf"], [1, "p-col-12", "p-field"], ["binary", "true", "formControlName", "firstTimeLogin", "inputId", "firstTimeLogin"], ["for", "firstTimeLogin", 1, "cs-pointer"], [1, "p-col-12", "p-mx-0", "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", "p-field", 3, "label", "click"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-button-raised", "p-button-primary", "p-field", 3, "label", "disabled"], [1, "p-grid", "p-field", "p-pl-2", "p-mb-0"], [1, "p-col-12", "p-md-6", "p-pl-1"], [1, "display-grid", "p-field"], ["for", "pwMin", 1, "p-text-small", "required", "p-text-bold"], ["disabled", "true", "formControlName", "pwMinCheck", "binary", "true", "name", "pwMinCheck", 1, "p-inputgroup-addon"], ["id", "pwMin", "styleClass", "border-left-0 p-width-100", "formControlName", "pwMin", 1, "p-inputgroup", 3, "suffix", "required", "inputStyleClass", "min", "max"], ["for", "pwMax", 1, "p-text-small", "p-text-bold"], ["formControlName", "pwMaxCheck", "binary", "true", "name", "pwMaxCheck", 1, "p-inputgroup-addon"], ["id", "pwMax", "styleClass", "border-left-0 p-width-100", "formControlName", "pwMax", 1, "p-inputgroup", 3, "min", "max", "suffix", "required", "disabled", "inputStyleClass"], ["for", "pwLowercase", 1, "p-text-small", "p-mb-1", "p-text-bold"], ["formControlName", "pwLowCheck", "binary", "true", "name", "pwLowercase", 1, "p-inputgroup-addon"], ["id", "pwLowercase", "styleClass", "border-left-0 p-width-100", "formControlName", "pwLowercase", 1, "p-inputgroup", 3, "min", "max", "suffix", "required", "disabled", "inputStyleClass"], ["for", "pwUppercase", 1, "p-text-small", "p-mb-1", "p-text-bold"], ["formControlName", "pwUpCheck", "binary", "true", "name", "pwUppercase", 1, "p-inputgroup-addon"], ["id", "pwUppercase", "styleClass", "border-left-0 p-width-100", "formControlName", "pwUppercase", 1, "p-inputgroup", 3, "min", "max", "suffix", "required", "disabled", "inputStyleClass"], ["for", "pwSpecial", 1, "p-text-small", "p-mb-1", "p-text-bold"], ["formControlName", "pwSpecCheck", "binary", "true", "name", "pwSpecial", 1, "p-inputgroup-addon"], ["id", "pwSpecial", "styleClass", "border-left-0 p-width-100", "formControlName", "pwSpecial", 1, "p-inputgroup", 3, "min", "max", "suffix", "required", "disabled", "inputStyleClass"], ["for", "pwNumeric", 1, "p-text-small", "p-mb-1", "p-text-bold"], ["formControlName", "pwNumCheck", "binary", "true", "name", "pwNumeric", 1, "p-inputgroup-addon"], ["id", "pwNumeric", "styleClass", "border-left-0 p-width-100", "formControlName", "pwNumeric", 1, "p-inputgroup", 3, "min", "max", "suffix", "required", "disabled", "inputStyleClass"], [1, "p-field", "p-mb-0"], [1, "display-grid", "p-field", "p-mb-0"], ["for", "threshold", 1, "p-text-small", "required", "p-text-bold"], ["disabled", "true", "formControlName", "thresholdCheck", "binary", "true", "name", "thresholdCheck", 1, "p-inputgroup-addon"], ["id", "threshold", "styleClass", "border-left-0 p-width-100", "formControlName", "threshold", 1, "p-inputgroup", 3, "required", "inputStyleClass", "suffix", "min", "max"], ["for", "duration", 1, "p-text-small", "p-text-bold"], ["formControlName", "durationCheck", "binary", "true", "name", "durationCheck", 1, "p-inputgroup-addon"], ["id", "duration", "styleClass", "border-left-0 p-width-100", "formControlName", "duration", 1, "p-inputgroup", 3, "min", "max", "suffix", "required", "disabled", "inputStyleClass"], ["for", "resetAfter", 1, "p-text-small", "p-mb-1", "p-text-bold"], ["formControlName", "resetAfterCheck", "binary", "true", "name", "resetAfter", 1, "p-inputgroup-addon"], ["id", "resetAfter", "styleClass", "border-left-0 p-width-100", "formControlName", "resetAfter", 1, "p-inputgroup", 3, "min", "max", "suffix", "required", "disabled", "inputStyleClass"], [1, "pi", "pi-save", "p-button-icon-left"], [1, "pi", "pi-spin", "pi-spinner", "p-button-icon-left"]], template: function AccountPolicyComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "form", 3);
            i0.ɵɵlistener("ngSubmit", function AccountPolicyComponent_Template_form_ngSubmit_3_listener() { return ctx.doUpdateAccountPolicySetting(ctx.policyFrm.valid); });
            i0.ɵɵelementStart(4, "div", 4);
            i0.ɵɵelementStart(5, "div", 5);
            i0.ɵɵelementStart(6, "label", 6);
            i0.ɵɵtext(7);
            i0.ɵɵpipe(8, "uppercase");
            i0.ɵɵpipe(9, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(10, "div", 7);
            i0.ɵɵelement(11, "p-checkbox", 8);
            i0.ɵɵelementStart(12, "label", 9);
            i0.ɵɵtext(13);
            i0.ɵɵpipe(14, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(15, "div", 5);
            i0.ɵɵelementStart(16, "form", 10);
            i0.ɵɵelementStart(17, "label", 6);
            i0.ɵɵtext(18);
            i0.ɵɵpipe(19, "uppercase");
            i0.ɵɵpipe(20, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(21, "div", 11);
            i0.ɵɵelement(22, "p-radioButton", 12);
            i0.ɵɵelementStart(23, "label", 13);
            i0.ɵɵtext(24);
            i0.ɵɵpipe(25, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(26, "div", 11);
            i0.ɵɵelement(27, "p-radioButton", 14);
            i0.ɵɵelementStart(28, "label", 15);
            i0.ɵɵtext(29);
            i0.ɵɵpipe(30, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(31, "div", 16);
            i0.ɵɵtemplate(32, AccountPolicyComponent_div_32_Template, 76, 98, "div", 17);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(33, "div", 18);
            i0.ɵɵelementStart(34, "div", 19);
            i0.ɵɵelementStart(35, "div", 20);
            i0.ɵɵelementStart(36, "label", 21);
            i0.ɵɵtext(37);
            i0.ɵɵpipe(38, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(39, "p-dropdown", 22);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(40, "div", 23);
            i0.ɵɵelementStart(41, "form", 24);
            i0.ɵɵelementStart(42, "label", 6);
            i0.ɵɵtext(43);
            i0.ɵɵpipe(44, "uppercase");
            i0.ɵɵpipe(45, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(46, "div", 25);
            i0.ɵɵelement(47, "p-checkbox", 26);
            i0.ɵɵelementStart(48, "label", 27);
            i0.ɵɵtext(49);
            i0.ɵɵpipe(50, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(51, "div", 18);
            i0.ɵɵtemplate(52, AccountPolicyComponent_div_52_Template, 37, 41, "div", 28);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(53, "div", 18);
            i0.ɵɵelementStart(54, "div", 29);
            i0.ɵɵelementStart(55, "form", 30);
            i0.ɵɵelementStart(56, "label", 31);
            i0.ɵɵtext(57);
            i0.ɵɵpipe(58, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(59, "div", 32);
            i0.ɵɵelement(60, "p-checkbox", 33);
            i0.ɵɵelement(61, "p-inputNumber", 34);
            i0.ɵɵelement(62, "p-dropdown", 35);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(63, "div", 36);
            i0.ɵɵtemplate(64, AccountPolicyComponent_small_64_Template, 3, 3, "small", 37);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(65, "div", 38);
            i0.ɵɵelementStart(66, "label", 6);
            i0.ɵɵtext(67);
            i0.ɵɵpipe(68, "uppercase");
            i0.ɵɵpipe(69, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(70, "div", 7);
            i0.ɵɵelement(71, "p-checkbox", 39);
            i0.ɵɵelementStart(72, "label", 40);
            i0.ɵɵtext(73);
            i0.ɵɵpipe(74, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(75, "div", 41);
            i0.ɵɵelementStart(76, "button", 42);
            i0.ɵɵlistener("click", function AccountPolicyComponent_Template_button_click_76_listener() { return ctx.goBack(); });
            i0.ɵɵpipe(77, "titlecase");
            i0.ɵɵpipe(78, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(79, "button", 43);
            i0.ɵɵpipe(80, "translate");
            i0.ɵɵtemplate(81, AccountPolicyComponent_span_81_Template, 2, 0, "span", 37);
            i0.ɵɵtemplate(82, AccountPolicyComponent_span_82_Template, 2, 0, "span", 37);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("formGroup", ctx.policyFrm);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 31, i0.ɵɵpipeBind1(9, 33, "label.2fa_policy.title")), " ");
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 35, "label.2fa_policy.two_factor"));
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("formGroup", ctx.passwordFrm);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 37, i0.ɵɵpipeBind1(20, 39, "label.password_policy.title")), " ");
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 41, "label.password_policy.policy_default"), " ");
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 43, "label.password_policy.policy_customs"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.passwordFrm.controls.passwordDefault.value === "custom");
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(38, 45, "label.password_age.title"), " ");
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("options", ctx.pwAgeOption);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("formGroup", ctx.lockoutFrm);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(44, 47, i0.ɵɵpipeBind1(45, 49, "label.lockout_policy.title")), " ");
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(50, 51, "label.lockout_policy.account_lockout"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.lockoutFrm.controls.accountLockout.value === true);
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("formGroup", ctx.sessionFrm);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(58, 53, "label.session_age.title"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵproperty("min", 1)("max", (ctx.sessionFrm.controls.sessionAgeType == null ? null : ctx.sessionFrm.controls.sessionAgeType.value == null ? null : ctx.sessionFrm.controls.sessionAgeType.value.code) === 0 ? 23 : 30)("required", ctx.sessionFrm.controls.sAgeCheck.value === true)("disabled", !ctx.sessionFrm.controls.sAgeCheck.value ? true : null)("inputStyleClass", (ctx.sessionFrm.controls["sessionAge"].touched || ctx.sessionFrm.controls["sessionAge"].dirty) && ctx.sessionFrm.controls["sessionAge"].invalid || ctx.sessionFrm.controls["sessionAge"].invalid ? "p-invalid p-mt-0" : "");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("disabled", !ctx.sessionFrm.controls.sAgeCheck.value ? true : null)("options", ctx.sessionAgeTypeOption);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.sessionFrm.controls.sAgeCheck.value && !ctx.sessionFrm.controls["sessionAge"].touched && !ctx.sessionFrm.controls["sessionAge"].dirty && (ctx.sessionFrm.controls["sessionAge"].errors == null ? null : ctx.sessionFrm.controls["sessionAge"].errors.required) || (ctx.sessionFrm.controls["sessionAge"].errors == null ? null : ctx.sessionFrm.controls["sessionAge"].errors.required));
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(68, 55, i0.ɵɵpipeBind1(69, 57, "label.first_time_login.title")), " ");
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(74, 59, "label.first_time_login.first_time_login_note"));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(77, 61, i0.ɵɵpipeBind1(78, 63, "button.back")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(80, 65, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.policyFrm.valid || !ctx.passwordFrm.valid || !ctx.lockoutFrm.valid || !ctx.sessionFrm.valid || ctx.submitting || !ctx.isPolicyChange && !ctx.isPasswordChange && !ctx.isLockoutChange && !ctx.isSessionChange);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.submitting);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.submitting);
        } }, directives: [i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i8.Checkbox, i1.NgControlStatus, i1.FormControlName, i9.RadioButton, i4.NgIf, i10.Dropdown, i11.InputNumber, i1.RequiredValidator, i12.ButtonDirective, i13.Ripple], pipes: [i4.UpperCasePipe, i14.TranslatePipe, i4.TitleCasePipe], styles: [".mt-1px[_ngcontent-%COMP%] {\n  margin-top: 1px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vc2V0dGluZy9hY2NvdW50LXBvbGljeS9hY2NvdW50LXBvbGljeS5jb21wb25lbnQuc2NzcyIsInNyYy9hcHAvdGVhbS1hZG1pbi9zZXR0aW5nL2FjY291bnQtcG9saWN5L2FjY291bnQtcG9saWN5LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsZUFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvdGVhbS1hZG1pbi9zZXR0aW5nL2FjY291bnQtcG9saWN5L2FjY291bnQtcG9saWN5LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm10LTFweCB7XG4gIG1hcmdpbi10b3A6IDFweDtcbn1cbiIsIi5tdC0xcHgge1xuICBtYXJnaW4tdG9wOiAxcHg7XG59Il19 */"] });
    return AccountPolicyComponent;
}());
exports.AccountPolicyComponent = AccountPolicyComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(AccountPolicyComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-account-policy',
                templateUrl: './account-policy.component.html',
                styleUrls: ['./account-policy.component.scss']
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.AuthenticateService }, { type: i3.TeamSettingService }, { type: i4.Location }, { type: i0.ChangeDetectorRef }, { type: i5.MessageService }, { type: i6.BroadcastService }, { type: i7.UtilsService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/setting/billing/billing.component.ts":
/*!*****************************************************************!*\
  !*** ./src/app/team-admin/setting/billing/billing.component.ts ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.BillingComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team-setting.service */ "./src/app/shared/services/team-setting.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team.service */ "./src/app/shared/services/team.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/package.service */ "./src/app/shared/services/package.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ngx-cookie-service */ "./node_modules/ngx-cookie-service/__ivy_ngcc__/fesm2015/ngx-cookie-service.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team-payment.service */ "./src/app/shared/services/team-payment.service.ts"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/pricing-package.service */ "./src/app/shared/services/pricing-package.service.ts"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! primeng/radiobutton */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-radiobutton.js"));
var i15 = tslib_1.__importStar(__webpack_require__(/*! primeng/table */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-table.js"));
var i16 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i17 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i18 = tslib_1.__importStar(__webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js"));
var i19 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/components/receipt-template/receipt-template.component */ "./src/app/shared/components/receipt-template/receipt-template.component.ts"));
var i20 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function BillingComponent_button_27_Template(rf, ctx) { if (rf & 1) {
    var _r10 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 33);
    i0.ɵɵlistener("click", function BillingComponent_button_27_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); var ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.navigateToBuyUser(); });
    i0.ɵɵpipe(1, "titlecase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 2, i0.ɵɵpipeBind1(2, 4, "label.buy_user")));
    i0.ɵɵproperty("disabled", ctx_r0.isDisabledForFreeOrPersonal());
} }
function BillingComponent_button_28_Template(rf, ctx) { if (rf & 1) {
    var _r12 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 34);
    i0.ɵɵlistener("click", function BillingComponent_button_28_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.navigateToUpgradeSecureMail(); });
    i0.ɵɵpipe(1, "titlecase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, i0.ɵɵpipeBind1(2, 3, "label.package.upgrade_secure_mail_package")));
} }
function BillingComponent_button_29_Template(rf, ctx) { if (rf & 1) {
    var _r14 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "button", 34);
    i0.ɵɵlistener("click", function BillingComponent_button_29_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r14); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.navigateToUpgradeSecureDrive(); });
    i0.ɵɵpipe(1, "titlecase");
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(1, 1, i0.ɵɵpipeBind1(2, 3, "label.package.upgrade_secure_drive_package")));
} }
function BillingComponent_span_65_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "number");
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind2(2, 2, ctx_r3.packageDetail == null ? null : ctx_r3.packageDetail.price, "1.2-2"), " ", i0.ɵɵpipeBind1(3, 5, "label.currency_unit.vnd"), " ");
} }
function BillingComponent_span_66_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵpipe(3, "number");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(2, 2, "label.currency_unit.yen"), " ", i0.ɵɵpipeBind2(3, 4, ctx_r4.packageDetail == null ? null : ctx_r4.packageDetail.price, "1.2-2"), " ");
} }
function BillingComponent_span_67_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵpipe(3, "number");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(2, 2, "label.currency_unit.usd"), " ", i0.ɵɵpipeBind2(3, 4, ctx_r5.packageDetail == null ? null : ctx_r5.packageDetail.price, "1.2-2"), " ");
} }
function BillingComponent_ng_template_84_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "th", 35);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelement(4, "p-sortIcon", 36);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "th", 37);
    i0.ɵɵtext(6);
    i0.ɵɵpipe(7, "translate");
    i0.ɵɵelement(8, "p-sortIcon", 38);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "th", 39);
    i0.ɵɵtext(10);
    i0.ɵɵpipe(11, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, "label.payment_history.date"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 5, "label.payment_history.amount"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 7, "label.payment_history.receipt"), " ");
} }
function BillingComponent_ng_template_85_span_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var history_r15 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", history_r15.total_payment.toFixed(2), " ", i0.ɵɵpipeBind1(2, 2, "label.currency_unit.vnd"), " ");
} }
function BillingComponent_ng_template_85_span_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var history_r15 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(2, 2, "label.currency_unit.yen"), " ", history_r15.total_payment.toFixed(2), " ");
} }
function BillingComponent_ng_template_85_span_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var history_r15 = i0.ɵɵnextContext().$implicit;
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(2, 2, "label.currency_unit.usd"), " ", history_r15.total_payment.toFixed(2), " ");
} }
function BillingComponent_ng_template_85_Template(rf, ctx) { if (rf & 1) {
    var _r23 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td");
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "td", 40);
    i0.ɵɵtemplate(4, BillingComponent_ng_template_85_span_4_Template, 3, 4, "span", 22);
    i0.ɵɵtemplate(5, BillingComponent_ng_template_85_span_5_Template, 3, 4, "span", 22);
    i0.ɵɵtemplate(6, BillingComponent_ng_template_85_span_6_Template, 3, 4, "span", 23);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "td", 41);
    i0.ɵɵelementStart(8, "button", 42);
    i0.ɵɵlistener("click", function BillingComponent_ng_template_85_Template_button_click_8_listener() { i0.ɵɵrestoreView(_r23); var history_r15 = ctx.$implicit; var ctx_r22 = i0.ɵɵnextContext(); return ctx_r22.viewReceipt(history_r15); });
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var history_r15 = ctx.$implicit;
    var ctx_r7 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", ctx_r7.utils.formatDateBasedOnDiff(ctx_r7.datePipe, history_r15.create_date), " ");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitch", history_r15.pricing_package.currency);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", "VND");
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngSwitchCase", "YEN");
} }
function BillingComponent_ng_template_86_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "tr");
    i0.ɵɵelementStart(1, "td", 43);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 1, "label.no_record"), " ");
} }
var _c0 = function () { return { width: "80%", maxWidth: "800px" }; };
var BillingComponent = /** @class */ (function () {
    function BillingComponent(fb, authenticateService, teamSettingService, teamService, packageService, cookieService, teamPaymentService, location, datePipe, messageService, broadcastService, router, utils, pricingPackageService) {
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.teamSettingService = teamSettingService;
        this.teamService = teamService;
        this.packageService = packageService;
        this.cookieService = cookieService;
        this.teamPaymentService = teamPaymentService;
        this.location = location;
        this.datePipe = datePipe;
        this.messageService = messageService;
        this.broadcastService = broadcastService;
        this.router = router;
        this.utils = utils;
        this.pricingPackageService = pricingPackageService;
        this.showReceiptDialog = false;
        this.selectedReceipt = null;
        this.totalPrice = 0;
        this.dataBilling = {};
        this.dataTeam = {};
        this.first = 0;
        this.historyParams = {
            team_id: '',
            payment_type: 0,
            sort_field: 'createdDate',
            asc_sort: false,
            page_number: 1,
            page_size: 10,
        };
        // Thêm biến cho receipt data
        this.receiptData = null;
        this.selectedLanguage = 'en';
        this.broadcastService.broadcast('load-menu-setting');
    }
    BillingComponent.prototype.ngOnInit = function () {
        var _a;
        this.getAuthUser();
        this.authUser = this.authenticateService.getAuthUser();
        this.rowOptions = constant_module_1.Constant.rowsPerPageOptions;
        this.historyParams.team_id = this.authUser.team_id;
        var storagePagingSettings = JSON.parse(localStorage.getItem(constant_module_1.Constant.sortPage.paymentHistory));
        if (storagePagingSettings) {
            this.historyParams.page_size = storagePagingSettings.page_size;
            this.historyParams.sort_field = storagePagingSettings.sort_field;
            this.historyParams.asc_sort = storagePagingSettings.asc_sort;
        }
        // this.loadData();
        // if (this.authUser?.package_object?.pricing_package_id) {
        //   this.getPackageDetail(this.authUser.package_object.pricing_package_id);
        // }
        if ((_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_id) {
            this.getTeamPaymentInfo();
        }
    };
    BillingComponent.prototype.ngAfterViewInit = function () {
        this.getAuthUser();
    };
    BillingComponent.prototype.isDisabledForFreeOrPersonal = function () {
        var _a, _b;
        var code = (_b = (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.package_object) === null || _b === void 0 ? void 0 : _b.code;
        if (!code) {
            return false;
        }
        var upperCaseCode = code.toUpperCase();
        return upperCaseCode === 'FREE' || upperCaseCode === 'PERSONAL';
    };
    BillingComponent.prototype.getAuthUser = function () {
        var _this = this;
        this.authenticateService.getAuthInfo().subscribe(function (res) {
            var _a, _b;
            if (res.status !== 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('default_toast.load_data_failed'),
                });
                return;
            }
            _this.authenticateService.setAuthUser(res.data);
            _this.loadData();
            if ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.package_object) === null || _b === void 0 ? void 0 : _b.pricing_package_id) {
                _this.getPackageDetail(res.data.package_object.pricing_package_id);
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status),
            });
        });
    };
    BillingComponent.prototype.loadData = function () {
        var _this = this;
        var params = {
            team_id: this.authUser.team_id,
            type: 0,
        };
        this.teamSettingService.getTeamSettingByType(params).subscribe(function (res) {
            _this.dataBilling = tslib_1.__assign({}, res.data);
            _this.paymentType =
                _this.dataBilling['payment_type'] === 0 ? 'online' : 'offline';
            _this.historyParams.payment_type = _this.dataBilling['payment_type'];
            _this.getPaymentHistoryData();
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status),
            });
        });
        this.teamService.getTeamInfo(this.authUser.team_id).subscribe(function (res) {
            _this.dataTeam = tslib_1.__assign({}, res.data);
            _this.teamService.setTeam(_this.dataTeam);
            // get team plan
            // this.packageService
            //   .getUsagePackages(this.dataTeam['currency'])
            //   .subscribe((res) => {
            //     this.userPrices = res.data.user_prices;
            //     for (let i = 0; i < this.userPrices.length; i++) {
            //       this.userPrices[i].content =
            //         this.userPrices[i].currency === 'VND'
            //           ? this.utils.translateWithParams(
            //               'label.user_price.description_vnd',
            //               {
            //                 currency: this.utils.translate(
            //                   'label.currency_unit.vnd'
            //                 ),
            //                 price: window
            //                   .parseFloat(this.userPrices[i].price)
            //                   .toFixed(2)
            //                   .replace(/\d(?=(\d{3})+\.)/g, '$&,'),
            //                 maxUser: this.userPrices[i].max_user,
            //               }
            //             )
            //           : this.utils.translateWithParams(
            //               'label.user_price.description',
            //               {
            //                 currency: this.utils.translate(
            //                   'label.currency_unit.' +
            //                     this.userPrices[i].currency.toLowerCase()
            //                 ),
            //                 price: window
            //                   .parseFloat(this.userPrices[i].price)
            //                   .toFixed(2)
            //                   .replace(/\d(?=(\d{3})+\.)/g, '$&,'),
            //                 maxUser: this.userPrices[i].max_user,
            //               }
            //             );
            //     }
            //     this.userPrice = this.userPrices.find(
            //       (up) => up.user_price_id === this.dataTeam['user_price_id']
            //     );
            //     this.storagePrices = res.data.storage_prices;
            //     for (let i = 0; i < this.storagePrices.length; i++) {
            //       const isFreePackage =
            //         this.storagePrices[i].name === 'Free' &&
            //         this.storagePrices[i].price === 0;
            //       if (isFreePackage) {
            //         this.storagePrices[i].content = this.utils.translateWithParams(
            //           'label.storage_price.description_free',
            //           {
            //             currency: this.utils.translate(
            //               'label.currency_unit.' +
            //                 this.storagePrices[i].currency.toLowerCase()
            //             ),
            //             price: window
            //               .parseFloat(this.storagePrices[i].price)
            //               .toFixed(2)
            //               .replace(/\d(?=(\d{3})+\.)/g, '$&,'),
            //             maxStorage: 100,
            //           }
            //         );
            //         continue;
            //       }
            //       this.storagePrices[i].content =
            //         this.storagePrices[i].currency === 'VND'
            //           ? this.utils.translateWithParams(
            //               'label.storage_price.description_vnd',
            //               {
            //                 currency: this.utils.translate(
            //                   'label.currency_unit.vnd'
            //                 ),
            //                 price: window
            //                   .parseFloat(this.storagePrices[i].price)
            //                   .toFixed(2)
            //                   .replace(/\d(?=(\d{3})+\.)/g, '$&,'),
            //                 maxStorage: this.utils.convertBytesToGB(
            //                   this.storagePrices[i].max_storage || undefined
            //                 ),
            //               }
            //             )
            //           : this.utils.translateWithParams(
            //               'label.storage_price.description',
            //               {
            //                 currency: this.utils.translate(
            //                   'label.currency_unit.' +
            //                     this.storagePrices[i].currency.toLowerCase()
            //                 ),
            //                 price: window
            //                   .parseFloat(this.storagePrices[i].price)
            //                   .toFixed(2)
            //                   .replace(/\d(?=(\d{3})+\.)/g, '$&,'),
            //                 maxStorage: this.utils.convertBytesToGB(
            //                   this.storagePrices[i].max_storage || undefined
            //                 ),
            //               }
            //             );
            //     }
            //     this.storagePrice =
            //       this.storagePrices &&
            //       this.storagePrices.find(
            //         (sp) =>
            //           sp.storage_price_id === this.dataTeam['storage_price_id']
            //       );
            //     if (this.userPrice && this.storagePrice) {
            //       this.totalPrice = window
            //         .parseFloat(this.userPrice.price + this.storagePrice.price)
            //         .toFixed(2)
            //         .replace(/\d(?=(\d{3})+\.)/g, '$&,');
            //     } else {
            //       this.totalPrice = window
            //         .parseFloat(this.userPrice.price)
            //         .toFixed(2)
            //         .replace(/\d(?=(\d{3})+\.)/g, '$&,');
            //     }
            //   });
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status),
            });
        });
    };
    BillingComponent.prototype.getPackageDetail = function (packageId) {
        var _this = this;
        this.pricingPackageService.getPackageDetail(packageId).subscribe(function (response) {
            if (response && response.status === 200) {
                _this.packageDetail = response.data;
            }
            else {
                console.error('No data found in response');
            }
        }, function (error) {
            console.error('Error fetching package detail:', error);
        });
    };
    BillingComponent.prototype.getTeamPaymentInfo = function () {
        var _this = this;
        var _a;
        if ((_a = this.authUser) === null || _a === void 0 ? void 0 : _a.team_id) {
            this.teamPaymentService.getPaymentInfo(this.authUser.team_id).subscribe(function (response) {
                if (response && response.status === 200) {
                    _this.teamPaymentInfo = response.data;
                }
                else {
                    console.error('Failed to get team payment info:', response);
                }
            }, function (error) {
                console.error('Error getting team payment info:', error);
            });
        }
    };
    BillingComponent.prototype.loadPaymentHistory = function (event) {
        this.historyParams.page_number = event.first / event.rows + 1;
        this.historyParams.page_size = event.rows;
        this.historyParams.asc_sort = event.sortOrder === 1;
        if (event.sortField) {
            this.historyParams.sort_field = event.sortField;
        }
        this.getPaymentHistoryData();
    };
    BillingComponent.prototype.getPaymentHistoryData = function () {
        var _this = this;
        this.loading = true;
        this.teamPaymentService.getPaymentHistory(this.historyParams).subscribe(function (response) {
            if (response.status === 200) {
                var storeParams = {
                    page_size: _this.historyParams.page_size,
                    sort_field: _this.historyParams.sort_field,
                    asc_sort: _this.historyParams.asc_sort,
                };
                localStorage.setItem(constant_module_1.Constant.sortPage.paymentHistory, JSON.stringify(storeParams));
                _this.historyData = response.data.content;
                _this.totalRecords = response.data.total_elements;
            }
            _this.loading = false;
        }, function (error) {
            _this.loading = false;
        });
    };
    BillingComponent.prototype.goBack = function () {
        this.location.back();
    };
    BillingComponent.prototype.navigateToBuyUser = function () {
        var _a, _b;
        this.router.navigate(['checkout'], {
            queryParams: {
                packageId: (_b = (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.package_object) === null || _b === void 0 ? void 0 : _b.pricing_package_id,
                type: 'BUY_USER',
            },
        });
    };
    BillingComponent.prototype.navigateToUpgradeSecureMail = function () {
        var _a, _b, _c, _d, _e, _f;
        this.router.navigate(['package-plan'], {
            queryParams: {
                packageId: (_b = (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.package_object) === null || _b === void 0 ? void 0 : _b.pricing_package_id,
                console: 'SECURE_MAIL',
                currency: (_d = (_c = this.authUser) === null || _c === void 0 ? void 0 : _c.package_object) === null || _d === void 0 ? void 0 : _d.currency,
                billingCycle: (_f = (_e = this.authUser) === null || _e === void 0 ? void 0 : _e.package_object) === null || _f === void 0 ? void 0 : _f.billing_cycle,
            },
        });
    };
    BillingComponent.prototype.navigateToUpgradeSecureDrive = function () {
        var _a, _b, _c, _d, _e, _f;
        this.router.navigate(['package-plan'], {
            queryParams: {
                packageId: (_b = (_a = this.authUser) === null || _a === void 0 ? void 0 : _a.package_object) === null || _b === void 0 ? void 0 : _b.pricing_package_id,
                console: 'SECURE_DRIVE',
                currency: (_d = (_c = this.authUser) === null || _c === void 0 ? void 0 : _c.package_object) === null || _d === void 0 ? void 0 : _d.currency,
                billingCycle: (_f = (_e = this.authUser) === null || _e === void 0 ? void 0 : _e.package_object) === null || _f === void 0 ? void 0 : _f.billing_cycle,
            },
        });
    };
    BillingComponent.prototype.viewReceipt = function (history) {
        this.selectedReceipt = history;
        this.showReceiptPreview();
    };
    /**
     * Format ISO date string to "Day Month DD HH:MM:SS UTC YYYY" format
     * @param dateString ISO date string (e.g. "2026-06-03T23:59:59Z")
     * @returns Formatted date string (e.g. "Wed Jun 3 23:59:59 UTC 2026")
     */
    BillingComponent.prototype.formatISODate = function (dateString) {
        if (!dateString)
            return '';
        try {
            // Create a Date object from the ISO date string
            var dateObj = new Date(dateString);
            // Check if the date is valid
            if (isNaN(dateObj.getTime())) {
                console.warn('Invalid date string:', dateString);
                return '';
            }
            // Get day of the week, month, day, year, hours, minutes, seconds
            var dayOfWeek = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'][dateObj.getUTCDay()];
            var months = [
                'Jan',
                'Feb',
                'Mar',
                'Apr',
                'May',
                'Jun',
                'Jul',
                'Aug',
                'Sep',
                'Oct',
                'Nov',
                'Dec',
            ];
            var month = months[dateObj.getUTCMonth()];
            var day = dateObj.getUTCDate();
            var year = dateObj.getUTCFullYear();
            // Get hours, minutes, seconds in UTC
            var hours = dateObj.getUTCHours().toString().padStart(2, '0');
            var minutes = dateObj.getUTCMinutes().toString().padStart(2, '0');
            var seconds = dateObj.getUTCSeconds().toString().padStart(2, '0');
            var time = hours + ":" + minutes + ":" + seconds;
            // Return formatted string
            return dayOfWeek + " " + month + " " + day + " " + time + " UTC " + year;
        }
        catch (error) {
            console.error('Error formatting date:', error);
            return '';
        }
    };
    // Show receipt preview dialog
    BillingComponent.prototype.showReceiptPreview = function () {
        var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
        if (!this.selectedReceipt)
            return;
        this.loading = true;
        try {
            // Handling charged date with formatISODate function
            var chargedDateFormatted = this.formatISODate(this.selectedReceipt.create_date);
            // Expiry date handling
            var expiryDateFormatted = '';
            // Preferably retrieved from teamPaymentInfo if available
            var expiryDateStr = (_a = this.teamPaymentInfo) === null || _a === void 0 ? void 0 : _a.expiry_date;
            // Handling expiry date with formatISODate function
            if (expiryDateStr) {
                expiryDateFormatted = this.formatISODate(expiryDateStr);
            }
            else {
                expiryDateFormatted = '';
                console.error('No expiry date found');
            }
            console.log(this.formatCurrency(((_b = this.selectedReceipt) === null || _b === void 0 ? void 0 : _b.total_payment) || 0, (_d = (_c = this.selectedReceipt) === null || _c === void 0 ? void 0 : _c.pricing_package) === null || _d === void 0 ? void 0 : _d.currency));
            this.receiptData = {
                teamName: ((_e = this.dataTeam) === null || _e === void 0 ? void 0 : _e.name) || '',
                chargedDate: chargedDateFormatted,
                expiryDate: expiryDateFormatted,
                planName: ((_g = (_f = this.selectedReceipt.pricing_package) === null || _f === void 0 ? void 0 : _f.name) === null || _g === void 0 ? void 0 : _g.toUpperCase()) || '',
                pricePerUser: this.formatCurrency((_h = this.selectedReceipt.pricing_package) === null || _h === void 0 ? void 0 : _h.price, (_j = this.selectedReceipt.pricing_package) === null || _j === void 0 ? void 0 : _j.currency),
                currency: ((_k = this.selectedReceipt.pricing_package) === null || _k === void 0 ? void 0 : _k.currency) || 'USD',
                billingCycle: ((_m = (_l = this.selectedReceipt.pricing_package) === null || _l === void 0 ? void 0 : _l.billing_cycle) === null || _m === void 0 ? void 0 : _m.toUpperCase()) ||
                    'MONTHLY',
                userCount: ((_o = this.selectedReceipt) === null || _o === void 0 ? void 0 : _o.number_user) || 0,
                totalPayment: this.formatCurrency(((_p = this.selectedReceipt) === null || _p === void 0 ? void 0 : _p.total_payment) || 0, (_r = (_q = this.selectedReceipt) === null || _q === void 0 ? void 0 : _q.pricing_package) === null || _r === void 0 ? void 0 : _r.currency),
                totalPrice: this.formatCurrency(((_s = this.selectedReceipt) === null || _s === void 0 ? void 0 : _s.total_price) || 0, (_t = this.selectedReceipt.pricing_package) === null || _t === void 0 ? void 0 : _t.currency),
                creditApplied: this.formatCurrency(this.selectedReceipt.credit_applied || 0, (_u = this.selectedReceipt.pricing_package) === null || _u === void 0 ? void 0 : _u.currency),
                serviceName: ((_v = this.authUser) === null || _v === void 0 ? void 0 : _v.console_type) === 'SECURE_MAIL'
                    ? 'SecureMail'
                    : 'SecureDrive',
                logoUrl: window.location.origin + '/assets/images/689Cloud-large.png',
            };
            this.showReceiptDialog = true;
        }
        catch (error) {
            console.error('Error generating receipt:', error);
        }
        finally {
            this.loading = false;
        }
    };
    // Helper for currency formatting
    BillingComponent.prototype.formatCurrency = function (amount, currency) {
        var formattedAmount = amount.toFixed(2);
        switch (currency) {
            case 'VND':
                return formattedAmount + " " + this.utils.translate('label.currency_unit.vnd');
            case 'YEN':
                return this.utils.translate('label.currency_unit.yen') + " " + formattedAmount;
            case 'USD':
            default:
                return this.utils.translate('label.currency_unit.usd') + " " + formattedAmount;
        }
    };
    // Helper for billing cycle formatting
    BillingComponent.prototype.formatBillingCycle = function (cycle) {
        switch (cycle) {
            case 'ANNUALLY':
                return 'Yearly';
            case 'MONTHLY':
            default:
                return 'Monthly';
        }
    };
    BillingComponent.prototype.closeReceiptDialog = function () {
        this.showReceiptDialog = false;
        this.selectedReceipt = null;
    };
    BillingComponent.ɵfac = function BillingComponent_Factory(t) { return new (t || BillingComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.AuthenticateService), i0.ɵɵdirectiveInject(i3.TeamSettingService), i0.ɵɵdirectiveInject(i4.TeamService), i0.ɵɵdirectiveInject(i5.PackageService), i0.ɵɵdirectiveInject(i6.CookieService), i0.ɵɵdirectiveInject(i7.TeamPaymentService), i0.ɵɵdirectiveInject(i8.Location), i0.ɵɵdirectiveInject(i8.DatePipe), i0.ɵɵdirectiveInject(i9.MessageService), i0.ɵɵdirectiveInject(i10.BroadcastService), i0.ɵɵdirectiveInject(i11.Router), i0.ɵɵdirectiveInject(i12.UtilsService), i0.ɵɵdirectiveInject(i13.PricingPackageService)); };
    BillingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BillingComponent, selectors: [["app-billing"]], features: [i0.ɵɵProvidersFeature([common_1.DatePipe])], decls: 95, vars: 85, consts: [[1, "setting-container"], [1, "p-card", "p-shadow-2", "p-width-100"], [1, "p-card-body"], [1, "p-grid"], [1, "p-col-12"], [1, "p-text-bold", "p-text-secondary"], [1, "p-col-12", "p-pl-0", "p-mb-3"], [1, "p-field-radiobutton"], ["value", "online", "inputId", "online", 3, "ngModel", "disabled", "ngModelChange"], ["for", "online", 1, "cs-not-allowed"], ["value", "offline", "inputId", "offline", 3, "ngModel", "disabled", "ngModelChange"], ["for", "offline", 1, "cs-not-allowed"], [1, "p-grid", "p-ai-center"], [1, "p-col-12", "p-md-4"], [1, "p-col-12", "p-md-8", "p-d-flex", "p-jc-center", "p-jc-md-end", 2, "gap", "8px"], ["pButton", "", "type", "button", "icon", "pi pi-plus", "class", "p-button-sm", 3, "disabled", "label", "click", 4, "ngIf"], ["pButton", "", "type", "button", "icon", "pi pi-plus", "class", "p-button-sm", 3, "label", "click", 4, "ngIf"], [1, "p-col-12", "p-mb-3"], [1, "p-field", "p-grid", "p-align-center"], [1, "p-col-6"], [1, "p-text-small", "p-text-bold"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["styleClass", "p-datatable-striped p-datatable-responsive-demo p-mr-2", 3, "rowHover", "paginator", "lazy", "totalRecords", "sortField", "value", "first", "rows", "rowsPerPageOptions", "sortOrder", "onLazyLoad", "firstChange"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [1, "p-col-12", "p-mx-0", "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-field", 3, "label", "click"], ["styleClass", "receipt-preview-dialog", 3, "visible", "modal", "draggable", "resizable", "header", "closeOnEscape", "dismissableMask", "visibleChange"], [1, "p-mb-3", "p-d-flex", "p-jc-center", "p-ai-center"], [3, "receiptData"], ["pButton", "", "type", "button", "icon", "pi pi-plus", 1, "p-button-sm", 3, "disabled", "label", "click"], ["pButton", "", "type", "button", "icon", "pi pi-plus", 1, "p-button-sm", 3, "label", "click"], ["pSortableColumn", "createdDate", 2, "width", "50%"], ["field", "createdDate"], ["pSortableColumn", "totalPrice", 2, "width", "30%"], ["field", "totalPrice"], [1, "p-text-center", 2, "width", "20%"], [1, "p-text-left", "pr-50px", "p-text-nowrap", 3, "ngSwitch"], [1, "p-text-13", "p-text-center"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-eye", 1, "p-button-sm", "p-button-text", "p-button-outlined", "p-button-raised", "p-button-rounded", 3, "click"], ["colspan", "3", 1, "p-text-center"]], template: function BillingComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "div", 3);
            i0.ɵɵelementStart(4, "div", 4);
            i0.ɵɵelementStart(5, "label", 5);
            i0.ɵɵtext(6);
            i0.ɵɵpipe(7, "uppercase");
            i0.ɵɵpipe(8, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(9, "div", 6);
            i0.ɵɵelementStart(10, "div", 7);
            i0.ɵɵelementStart(11, "p-radioButton", 8);
            i0.ɵɵlistener("ngModelChange", function BillingComponent_Template_p_radioButton_ngModelChange_11_listener($event) { return ctx.paymentType = $event; });
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(12, "label", 9);
            i0.ɵɵtext(13);
            i0.ɵɵpipe(14, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(15, "div", 7);
            i0.ɵɵelementStart(16, "p-radioButton", 10);
            i0.ɵɵlistener("ngModelChange", function BillingComponent_Template_p_radioButton_ngModelChange_16_listener($event) { return ctx.paymentType = $event; });
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(17, "label", 11);
            i0.ɵɵtext(18);
            i0.ɵɵpipe(19, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(20, "div", 12);
            i0.ɵɵelementStart(21, "div", 13);
            i0.ɵɵelementStart(22, "label", 5);
            i0.ɵɵtext(23);
            i0.ɵɵpipe(24, "uppercase");
            i0.ɵɵpipe(25, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(26, "div", 14);
            i0.ɵɵtemplate(27, BillingComponent_button_27_Template, 3, 6, "button", 15);
            i0.ɵɵtemplate(28, BillingComponent_button_28_Template, 3, 5, "button", 16);
            i0.ɵɵtemplate(29, BillingComponent_button_29_Template, 3, 5, "button", 16);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(30, "div", 3);
            i0.ɵɵelementStart(31, "div", 17);
            i0.ɵɵelementStart(32, "div", 18);
            i0.ɵɵelementStart(33, "div", 19);
            i0.ɵɵelementStart(34, "label", 20);
            i0.ɵɵtext(35);
            i0.ɵɵpipe(36, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(37, "div", 19);
            i0.ɵɵelementStart(38, "span");
            i0.ɵɵtext(39);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(40, "div", 18);
            i0.ɵɵelementStart(41, "div", 19);
            i0.ɵɵelementStart(42, "label", 20);
            i0.ɵɵtext(43);
            i0.ɵɵpipe(44, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(45, "div", 19);
            i0.ɵɵelementStart(46, "span");
            i0.ɵɵtext(47);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(48, "div", 18);
            i0.ɵɵelementStart(49, "div", 19);
            i0.ɵɵelementStart(50, "label", 20);
            i0.ɵɵtext(51);
            i0.ɵɵpipe(52, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(53, "div", 19);
            i0.ɵɵelementStart(54, "span");
            i0.ɵɵtext(55);
            i0.ɵɵpipe(56, "translate");
            i0.ɵɵpipe(57, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(58, "div", 18);
            i0.ɵɵelementStart(59, "div", 19);
            i0.ɵɵelementStart(60, "label", 20);
            i0.ɵɵtext(61);
            i0.ɵɵpipe(62, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(63, "div", 19);
            i0.ɵɵelementStart(64, "span", 21);
            i0.ɵɵtemplate(65, BillingComponent_span_65_Template, 4, 7, "span", 22);
            i0.ɵɵtemplate(66, BillingComponent_span_66_Template, 4, 7, "span", 22);
            i0.ɵɵtemplate(67, BillingComponent_span_67_Template, 4, 7, "span", 23);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(68, "div", 18);
            i0.ɵɵelementStart(69, "div", 19);
            i0.ɵɵelementStart(70, "label", 20);
            i0.ɵɵtext(71);
            i0.ɵɵpipe(72, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(73, "div", 19);
            i0.ɵɵelementStart(74, "span");
            i0.ɵɵtext(75);
            i0.ɵɵpipe(76, "date");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(77, "div", 3);
            i0.ɵɵelementStart(78, "div", 4);
            i0.ɵɵelementStart(79, "label", 5);
            i0.ɵɵtext(80);
            i0.ɵɵpipe(81, "uppercase");
            i0.ɵɵpipe(82, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(83, "p-table", 24);
            i0.ɵɵlistener("onLazyLoad", function BillingComponent_Template_p_table_onLazyLoad_83_listener($event) { return ctx.loadPaymentHistory($event); })("firstChange", function BillingComponent_Template_p_table_firstChange_83_listener($event) { return ctx.first = $event; });
            i0.ɵɵtemplate(84, BillingComponent_ng_template_84_Template, 12, 9, "ng-template", 25);
            i0.ɵɵtemplate(85, BillingComponent_ng_template_85_Template, 9, 4, "ng-template", 26);
            i0.ɵɵtemplate(86, BillingComponent_ng_template_86_Template, 4, 3, "ng-template", 27);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(87, "div", 28);
            i0.ɵɵelementStart(88, "button", 29);
            i0.ɵɵlistener("click", function BillingComponent_Template_button_click_88_listener() { return ctx.goBack(); });
            i0.ɵɵpipe(89, "titlecase");
            i0.ɵɵpipe(90, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(91, "p-dialog", 30);
            i0.ɵɵlistener("visibleChange", function BillingComponent_Template_p_dialog_visibleChange_91_listener($event) { return ctx.showReceiptDialog = $event; });
            i0.ɵɵpipe(92, "translate");
            i0.ɵɵelementStart(93, "div", 31);
            i0.ɵɵelement(94, "app-receipt-template", 32);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 45, i0.ɵɵpipeBind1(8, 47, "label.payment_method.title")), " ");
            i0.ɵɵadvance(5);
            i0.ɵɵproperty("ngModel", ctx.paymentType)("disabled", true);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(14, 49, "label.payment_method.online"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngModel", ctx.paymentType)("disabled", true);
            i0.ɵɵadvance(2);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 51, "label.payment_method.offline"), " ");
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(24, 53, i0.ɵɵpipeBind1(25, 55, "label.package.title")), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵproperty("ngIf", (ctx.authUser == null ? null : ctx.authUser.package_object == null ? null : ctx.authUser.package_object.code) !== "ENTERPRISE");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", (ctx.dataTeam == null ? null : ctx.dataTeam.use_secure_mail) && (ctx.authUser == null ? null : ctx.authUser.package_object == null ? null : ctx.authUser.package_object.code) !== "ENTERPRISE");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", (ctx.dataTeam == null ? null : ctx.dataTeam.use_secure_drive) && (ctx.authUser == null ? null : ctx.authUser.package_object == null ? null : ctx.authUser.package_object.code) !== "ENTERPRISE");
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(36, 57, "label.package.package_name"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(ctx.packageDetail == null ? null : ctx.packageDetail.name);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(44, 59, "label.package.currency"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(ctx.packageDetail == null ? null : ctx.packageDetail.currency);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(52, 61, "label.package.billing_cycle"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", ctx.packageDetail && (ctx.packageDetail == null ? null : ctx.packageDetail.billing_cycle) === "ANNUALLY" ? i0.ɵɵpipeBind1(56, 63, "label.annually") : i0.ɵɵpipeBind1(57, 65, "label.monthly"), " ");
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(62, 67, "label.package.price"), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngSwitch", (ctx.packageDetail == null ? null : ctx.packageDetail.currency) || "USD");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "VND");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngSwitchCase", "YEN");
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(72, 69, "label.package.expire_date"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(76, 71, ctx.teamPaymentInfo == null ? null : ctx.teamPaymentInfo.expiry_date, "mediumDate"));
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(81, 74, i0.ɵɵpipeBind1(82, 76, "label.payment_history.title")), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("sortField", ctx.historyParams.sort_field);
            i0.ɵɵproperty("rowHover", true)("paginator", ctx.totalRecords > 0)("lazy", true)("totalRecords", ctx.totalRecords)("value", ctx.historyData)("first", ctx.first)("rows", ctx.historyParams.page_size)("rowsPerPageOptions", ctx.rowOptions)("sortOrder", ctx.historyParams.asc_sort ? 1 : -1);
            i0.ɵɵadvance(5);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(89, 78, i0.ɵɵpipeBind1(90, 80, "button.back")));
            i0.ɵɵadvance(3);
            i0.ɵɵstyleMap(i0.ɵɵpureFunction0(84, _c0));
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(92, 82, "label.receipt_preview"));
            i0.ɵɵproperty("visible", ctx.showReceiptDialog)("modal", true)("draggable", false)("resizable", false)("closeOnEscape", true)("dismissableMask", true);
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("receiptData", ctx.receiptData);
        } }, directives: [i14.RadioButton, i1.NgControlStatus, i1.NgModel, i8.NgIf, i8.NgSwitch, i8.NgSwitchCase, i8.NgSwitchDefault, i15.Table, i9.PrimeTemplate, i16.ButtonDirective, i17.Ripple, i18.Dialog, i19.ReceiptTemplateComponent, i15.SortableColumn, i15.SortIcon], pipes: [i8.UpperCasePipe, i20.TranslatePipe, i8.DatePipe, i8.TitleCasePipe, i8.DecimalPipe], styles: [".pr-50px[_ngcontent-%COMP%] {\n  padding-right: 50px !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vc2V0dGluZy9iaWxsaW5nL2JpbGxpbmcuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3RlYW0tYWRtaW4vc2V0dGluZy9iaWxsaW5nL2JpbGxpbmcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSw4QkFBQTtBQ0NGIiwiZmlsZSI6InNyYy9hcHAvdGVhbS1hZG1pbi9zZXR0aW5nL2JpbGxpbmcvYmlsbGluZy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5wci01MHB4IHtcbiAgcGFkZGluZy1yaWdodDogNTBweCAhaW1wb3J0YW50O1xufVxuIiwiLnByLTUwcHgge1xuICBwYWRkaW5nLXJpZ2h0OiA1MHB4ICFpbXBvcnRhbnQ7XG59Il19 */"] });
    return BillingComponent;
}());
exports.BillingComponent = BillingComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(BillingComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-billing',
                templateUrl: './billing.component.html',
                styleUrls: ['./billing.component.scss'],
                providers: [common_1.DatePipe],
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.AuthenticateService }, { type: i3.TeamSettingService }, { type: i4.TeamService }, { type: i5.PackageService }, { type: i6.CookieService }, { type: i7.TeamPaymentService }, { type: i8.Location }, { type: i8.DatePipe }, { type: i9.MessageService }, { type: i10.BroadcastService }, { type: i11.Router }, { type: i12.UtilsService }, { type: i13.PricingPackageService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/setting/notification/notification.component.ts":
/*!***************************************************************************!*\
  !*** ./src/app/team-admin/setting/notification/notification.component.ts ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.NotificationComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team-setting.service */ "./src/app/shared/services/team-setting.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function NotificationComponent_div_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 9);
    i0.ɵɵelement(1, "p-checkbox", 18);
    i0.ɵɵelementStart(2, "label", 19);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 1, "label.notify.notify_collaboration_project"));
} }
function NotificationComponent_div_17_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 9);
    i0.ɵɵelement(1, "p-checkbox", 20);
    i0.ɵɵelementStart(2, "label", 21);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 1, "label.notify.mention_in_comment"));
} }
function NotificationComponent_span_29_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 22);
    i0.ɵɵelementEnd();
} }
function NotificationComponent_span_30_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 23);
    i0.ɵɵelementEnd();
} }
var NotificationComponent = /** @class */ (function () {
    function NotificationComponent(fb, authenticateService, teamSettingService, location, router, broadcastService, messageService, utils) {
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.teamSettingService = teamSettingService;
        this.location = location;
        this.router = router;
        this.broadcastService = broadcastService;
        this.messageService = messageService;
        this.utils = utils;
        this.notifyFrm = new forms_1.FormGroup({});
        this.submitting = false;
        this.isChange = false;
        this.dataNotify = {};
        this.originData = {};
        this.broadcastService.broadcast('load-menu-setting');
    }
    NotificationComponent.prototype.ngOnInit = function () {
        this.isUseSDGlobal = this.authenticateService.isUseSDGlobal;
        this.authUser = this.authenticateService.getAuthUser();
        this.notifyFrm = this.fb.group({
            collaborationNotify: [false],
            createMember: [false],
            mentionInComment: [false],
            importCSV: [false],
        });
        this.loadData();
    };
    NotificationComponent.prototype.onChanges = function () {
        var _this = this;
        this.notifyFrm.valueChanges.subscribe(function (val) {
            if (_this.originData) {
                _this.isChange = (val && JSON.stringify(_this.originData) !== JSON.stringify(val));
            }
        });
    };
    NotificationComponent.prototype.loadData = function () {
        var _this = this;
        var params = {
            team_id: this.authUser.team_id,
            type: 1,
        };
        this.teamSettingService.getTeamSettingByType(params).subscribe(function (res) {
            _this.dataNotify = tslib_1.__assign({}, res.data);
            _this.notifyFrm.controls['collaborationNotify'].setValue(parseInt(_this.dataNotify['notify_setting'].charAt(0)) === 1);
            _this.notifyFrm.controls['createMember'].setValue(parseInt(_this.dataNotify['notify_setting'].charAt(1)) === 1);
            _this.notifyFrm.controls['mentionInComment'].setValue(parseInt(_this.dataNotify['notify_setting'].charAt(2)) === 1);
            _this.notifyFrm.controls['importCSV'].setValue(parseInt(_this.dataNotify['notify_setting'].charAt(3)) === 1);
            _this.originData = tslib_1.__assign({}, _this.notifyFrm.value);
            _this.onChanges();
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    NotificationComponent.prototype.doUpdateNotificationSetting = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submitting = true;
        var notifySets = [];
        notifySets.push(this.notifyFrm.controls['collaborationNotify'].value ? 1 : 0);
        notifySets.push(this.notifyFrm.controls['createMember'].value ? 1 : 0);
        notifySets.push(this.notifyFrm.controls['mentionInComment'].value ? 1 : 0);
        notifySets.push(this.notifyFrm.controls['importCSV'].value ? 1 : 0);
        var params = {
            team_id: this.authUser.team_id,
            notify_setting: notifySets.join(''),
        };
        this.teamSettingService.updateNotificationSettings(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.originData = tslib_1.__assign({}, _this.notifyFrm.value);
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
                _this.loadData();
                _this.isChange = false;
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submitting = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    NotificationComponent.prototype.goBack = function () {
        this.location.back();
    };
    NotificationComponent.ɵfac = function NotificationComponent_Factory(t) { return new (t || NotificationComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.AuthenticateService), i0.ɵɵdirectiveInject(i3.TeamSettingService), i0.ɵɵdirectiveInject(i4.Location), i0.ɵɵdirectiveInject(i5.Router), i0.ɵɵdirectiveInject(i6.BroadcastService), i0.ɵɵdirectiveInject(i7.MessageService), i0.ɵɵdirectiveInject(i8.UtilsService)); };
    NotificationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NotificationComponent, selectors: [["app-notification"]], decls: 31, vars: 25, consts: [[1, "setting-container"], [1, "p-card", "p-shadow-2", "p-width-100"], [1, "p-card-body"], [3, "formGroup", "ngSubmit"], [1, "p-grid"], [1, "p-col-12"], [1, "p-mb-3"], [1, "p-text-bold", "p-text-secondary"], ["class", "p-field-checkbox", 4, "ngIf"], [1, "p-field-checkbox"], ["binary", "true", "formControlName", "createMember", "inputId", "createMember"], ["for", "createMember", 1, "cs-pointer"], ["binary", "true", "formControlName", "importCSV", "inputId", "csv"], ["for", "csv", 1, "cs-pointer"], [1, "p-col-12", "p-mx-0", "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", "p-field", 3, "label", "click"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-button-raised", "p-button-primary", "p-field", 3, "label", "disabled"], [4, "ngIf"], ["binary", "true", "formControlName", "collaborationNotify", "inputId", "collaborate"], ["for", "collaborate", 1, "cs-pointer"], ["binary", "true", "formControlName", "mentionInComment", "inputId", "comment"], ["for", "comment", 1, "cs-pointer"], [1, "pi", "pi-save", "p-button-icon-left"], [1, "pi", "pi-spin", "pi-spinner", "p-button-icon-left"]], template: function NotificationComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "form", 3);
            i0.ɵɵlistener("ngSubmit", function NotificationComponent_Template_form_ngSubmit_3_listener() { return ctx.doUpdateNotificationSetting(ctx.notifyFrm.valid); });
            i0.ɵɵelementStart(4, "div", 4);
            i0.ɵɵelementStart(5, "div", 5);
            i0.ɵɵelementStart(6, "div", 6);
            i0.ɵɵelementStart(7, "label", 7);
            i0.ɵɵtext(8);
            i0.ɵɵpipe(9, "uppercase");
            i0.ɵɵpipe(10, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(11, NotificationComponent_div_11_Template, 5, 3, "div", 8);
            i0.ɵɵelementStart(12, "div", 9);
            i0.ɵɵelement(13, "p-checkbox", 10);
            i0.ɵɵelementStart(14, "label", 11);
            i0.ɵɵtext(15);
            i0.ɵɵpipe(16, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(17, NotificationComponent_div_17_Template, 5, 3, "div", 8);
            i0.ɵɵelementStart(18, "div", 9);
            i0.ɵɵelement(19, "p-checkbox", 12);
            i0.ɵɵelementStart(20, "label", 13);
            i0.ɵɵtext(21);
            i0.ɵɵpipe(22, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(23, "div", 14);
            i0.ɵɵelementStart(24, "button", 15);
            i0.ɵɵlistener("click", function NotificationComponent_Template_button_click_24_listener() { return ctx.goBack(); });
            i0.ɵɵpipe(25, "titlecase");
            i0.ɵɵpipe(26, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(27, "button", 16);
            i0.ɵɵpipe(28, "translate");
            i0.ɵɵtemplate(29, NotificationComponent_span_29_Template, 2, 0, "span", 17);
            i0.ɵɵtemplate(30, NotificationComponent_span_30_Template, 2, 0, "span", 17);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("formGroup", ctx.notifyFrm);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 11, i0.ɵɵpipeBind1(10, 13, "label.notification")), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.isUseSDGlobal);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 15, "label.notify.create_new_member"));
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", ctx.isUseSDGlobal);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 17, "label.notify.import_user_csv"));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(25, 19, i0.ɵɵpipeBind1(26, 21, "button.back")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(28, 23, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.notifyFrm.valid || ctx.submitting || !ctx.isChange);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.submitting);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.submitting);
        } }, directives: [i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i4.NgIf, i9.Checkbox, i1.NgControlStatus, i1.FormControlName, i10.ButtonDirective, i11.Ripple], pipes: [i4.UpperCasePipe, i12.TranslatePipe, i4.TitleCasePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vc2V0dGluZy9ub3RpZmljYXRpb24vbm90aWZpY2F0aW9uLmNvbXBvbmVudC5zY3NzIn0= */"] });
    return NotificationComponent;
}());
exports.NotificationComponent = NotificationComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(NotificationComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-notification',
                templateUrl: './notification.component.html',
                styleUrls: ['./notification.component.scss']
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.AuthenticateService }, { type: i3.TeamSettingService }, { type: i4.Location }, { type: i5.Router }, { type: i6.BroadcastService }, { type: i7.MessageService }, { type: i8.UtilsService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/setting/secure-drive-setting/secure-drive-setting.component.ts":
/*!*******************************************************************************************!*\
  !*** ./src/app/team-admin/setting/secure-drive-setting/secure-drive-setting.component.ts ***!
  \*******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.SecureDriveSettingComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team.service */ "./src/app/shared/services/team.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team-setting.service */ "./src/app/shared/services/team-setting.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/member.service */ "./src/app/shared/services/member.service.ts"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtextarea */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtextarea.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i15 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function SecureDriveSettingComponent_div_11_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function SecureDriveSettingComponent_div_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 18);
    i0.ɵɵtemplate(1, SecureDriveSettingComponent_div_11_small_1_Template, 3, 3, "small", 17);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.secureDriveFrm.controls["allowExtType"].errors == null ? null : ctx_r0.secureDriveFrm.controls["allowExtType"].errors.pattern);
} }
function SecureDriveSettingComponent_span_33_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 19);
    i0.ɵɵelementEnd();
} }
function SecureDriveSettingComponent_span_34_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 20);
    i0.ɵɵelementEnd();
} }
var SecureDriveSettingComponent = /** @class */ (function () {
    function SecureDriveSettingComponent(fb, authenticateService, teamService, teamSettingService, location, router, broadcastService, memberService, messageService, utils) {
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.teamService = teamService;
        this.teamSettingService = teamSettingService;
        this.location = location;
        this.router = router;
        this.broadcastService = broadcastService;
        this.memberService = memberService;
        this.messageService = messageService;
        this.utils = utils;
        this.secureDriveFrm = new forms_1.FormGroup({});
        this.isChange = false;
        this.secureDriveSetting = {};
    }
    SecureDriveSettingComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.authenticateService.getAuthInfo().subscribe(function (res) {
            if (res.status === 200) {
                _this.authenticateService.setAuthUser(res.data);
                if (!_this.authenticateService.isUseSDGlobal) {
                    _this.messageService.add({
                        key: 'toast',
                        severity: 'error',
                        detail: _this.utils.translate('errors.err_access_function')
                    });
                    _this.router.navigate(['/setting/info']);
                }
            }
        });
        this.authUser = this.authenticateService.getAuthUser();
        this.secureDriveFrm = this.fb.group({
            allowExtType: ['', forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN)],
            manageAllow: [false],
            memberAllow: [false]
        });
        this.loadData();
    };
    SecureDriveSettingComponent.prototype.loadData = function () {
        var _this = this;
        var params = {
            team_id: this.authUser.team_id,
            type: 0,
        };
        this.teamSettingService.getTeamSettingByType(params).subscribe(function (res) {
            if (res.status == 200) {
                var SDSetting = res.data;
                _this.secureDriveFrm.controls['allowExtType'].setValue(SDSetting.allowed_file_extension);
                var allowedRoles = SDSetting.settings ? SDSetting.settings.split(',') : [];
                for (var i = 0; i < allowedRoles.length; i++) {
                    allowedRoles[i] = parseInt(allowedRoles[i]);
                }
                // update allow role create project
                _this.secureDriveFrm.controls['manageAllow'].setValue((allowedRoles.indexOf(constant_module_1.SystemRole.Manager) !== -1));
                _this.secureDriveFrm.controls['memberAllow'].setValue((allowedRoles.indexOf(constant_module_1.SystemRole.Member) !== -1));
                _this.isChange = false;
                _this.checkValueChanges();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
        });
    };
    SecureDriveSettingComponent.prototype.checkValueChanges = function () {
        var _this = this;
        this.secureDriveFrm.valueChanges.subscribe(function (val) {
            if (_this.secureDriveSetting) {
                _this.isChange = (val && JSON.stringify(_this.secureDriveSetting) !== JSON.stringify(val));
            }
        });
    };
    SecureDriveSettingComponent.prototype.doUpdateSettings = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submitting = true;
        var settings = [];
        if (this.secureDriveFrm.controls['manageAllow'].value) {
            settings.push(constant_module_1.SystemRole.Manager);
        }
        if (this.secureDriveFrm.controls['memberAllow'].value) {
            settings.push(constant_module_1.SystemRole.Member);
        }
        var params = {
            team_id: this.authUser.team_id,
            allowed_file_extension: this.secureDriveFrm.controls['allowExtType'].value,
            settings: settings.join(',')
        };
        this.teamService.updateTeamInfo(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
                _this.secureDriveSetting = tslib_1.__assign({}, _this.secureDriveFrm.value);
                _this.loadData();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.isChange = false;
            _this.submitting = false;
        }, function (err) {
            console.log('error', err);
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    SecureDriveSettingComponent.prototype.preventSpace = function (event) {
        if (event.keyCode == 32 || event.which == 32) {
            event.preventDefault();
        }
    };
    SecureDriveSettingComponent.prototype.goBack = function () {
        this.location.back();
    };
    SecureDriveSettingComponent.ɵfac = function SecureDriveSettingComponent_Factory(t) { return new (t || SecureDriveSettingComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.AuthenticateService), i0.ɵɵdirectiveInject(i3.TeamService), i0.ɵɵdirectiveInject(i4.TeamSettingService), i0.ɵɵdirectiveInject(i5.Location), i0.ɵɵdirectiveInject(i6.Router), i0.ɵɵdirectiveInject(i7.BroadcastService), i0.ɵɵdirectiveInject(i8.MemberService), i0.ɵɵdirectiveInject(i9.MessageService), i0.ɵɵdirectiveInject(i10.UtilsService)); };
    SecureDriveSettingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SecureDriveSettingComponent, selectors: [["app-secure-drive-setting"]], decls: 35, vars: 32, consts: [[1, "setting-container"], [1, "p-card", "p-shadow-2", "p-width-100"], [1, "p-card-body"], [3, "formGroup", "ngSubmit"], [1, "p-col-12"], ["for", "banned", 1, "p-text-bold", "p-text-secondary"], ["id", "banned", "rows", "2", "formControlName", "allowExtType", "pInputTextarea", "", "autoResize", "true", 1, "p-width-100", "p-mt-3", 3, "placeholder", "keydown.space", "keypress"], ["class", "p-invalid", 4, "ngIf"], [1, "p-field-checkbox", "p-mt-3"], ["binary", "true", "formControlName", "manageAllow", "inputId", "manageAllow"], ["for", "manageAllow", 1, "cs-pointer"], [1, "p-field-checkbox"], ["binary", "true", "formControlName", "memberAllow", "inputId", "memberAllow"], ["for", "memberAllow", 1, "cs-pointer"], [1, "p-col-12", "p-mx-0", "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", "p-field", 3, "label", "click"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-button-raised", "p-button-primary", "p-field", 3, "label", "disabled"], [4, "ngIf"], [1, "p-invalid"], [1, "pi", "pi-save", "p-button-icon-left"], [1, "pi", "pi-spin", "pi-spinner", "p-button-icon-left"]], template: function SecureDriveSettingComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "form", 3);
            i0.ɵɵlistener("ngSubmit", function SecureDriveSettingComponent_Template_form_ngSubmit_3_listener() { return ctx.doUpdateSettings(ctx.secureDriveFrm.valid); });
            i0.ɵɵelementStart(4, "div", 4);
            i0.ɵɵelementStart(5, "label", 5);
            i0.ɵɵtext(6);
            i0.ɵɵpipe(7, "uppercase");
            i0.ɵɵpipe(8, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(9, "textarea", 6);
            i0.ɵɵlistener("keydown.space", function SecureDriveSettingComponent_Template_textarea_keydown_space_9_listener($event) { return $event.preventDefault(); })("keypress", function SecureDriveSettingComponent_Template_textarea_keypress_9_listener($event) { return ctx.preventSpace($event); });
            i0.ɵɵpipe(10, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(11, SecureDriveSettingComponent_div_11_Template, 2, 1, "div", 7);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(12, "div", 4);
            i0.ɵɵelementStart(13, "label", 5);
            i0.ɵɵtext(14);
            i0.ɵɵpipe(15, "uppercase");
            i0.ɵɵpipe(16, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(17, "div", 8);
            i0.ɵɵelement(18, "p-checkbox", 9);
            i0.ɵɵelementStart(19, "label", 10);
            i0.ɵɵtext(20);
            i0.ɵɵpipe(21, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(22, "div", 11);
            i0.ɵɵelement(23, "p-checkbox", 12);
            i0.ɵɵelementStart(24, "label", 13);
            i0.ɵɵtext(25);
            i0.ɵɵpipe(26, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(27, "div", 14);
            i0.ɵɵelementStart(28, "button", 15);
            i0.ɵɵlistener("click", function SecureDriveSettingComponent_Template_button_click_28_listener() { return ctx.goBack(); });
            i0.ɵɵpipe(29, "titlecase");
            i0.ɵɵpipe(30, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(31, "button", 16);
            i0.ɵɵpipe(32, "translate");
            i0.ɵɵtemplate(33, SecureDriveSettingComponent_span_33_Template, 2, 0, "span", 17);
            i0.ɵɵtemplate(34, SecureDriveSettingComponent_span_34_Template, 2, 0, "span", 17);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("formGroup", ctx.secureDriveFrm);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 12, i0.ɵɵpipeBind1(8, 14, "label.allowed_file_extensions_upload")), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(10, 16, "label.example_allowed_file_extensions"));
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", (ctx.secureDriveFrm.controls["allowExtType"].touched || ctx.secureDriveFrm.controls["allowExtType"].dirty) && ctx.secureDriveFrm.controls["allowExtType"].errors);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 18, i0.ɵɵpipeBind1(16, 20, "label.allow_roles_create_project")), " ");
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 22, "label.system_role.manager"));
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(26, 24, "label.system_role.user"));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(29, 26, i0.ɵɵpipeBind1(30, 28, "button.back")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(32, 30, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.secureDriveFrm.valid || ctx.submitting || !ctx.isChange);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.submitting);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.submitting);
        } }, directives: [i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.DefaultValueAccessor, i1.NgControlStatus, i1.FormControlName, i11.InputTextarea, i5.NgIf, i12.Checkbox, i13.ButtonDirective, i14.Ripple], pipes: [i5.UpperCasePipe, i15.TranslatePipe, i5.TitleCasePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vc2V0dGluZy9zZWN1cmUtZHJpdmUtc2V0dGluZy9zZWN1cmUtZHJpdmUtc2V0dGluZy5jb21wb25lbnQuc2NzcyJ9 */"] });
    return SecureDriveSettingComponent;
}());
exports.SecureDriveSettingComponent = SecureDriveSettingComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SecureDriveSettingComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-secure-drive-setting',
                templateUrl: './secure-drive-setting.component.html',
                styleUrls: ['./secure-drive-setting.component.scss']
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.AuthenticateService }, { type: i3.TeamService }, { type: i4.TeamSettingService }, { type: i5.Location }, { type: i6.Router }, { type: i7.BroadcastService }, { type: i8.MemberService }, { type: i9.MessageService }, { type: i10.UtilsService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/setting/secure-mail-setting/secure-mail-setting.component.ts":
/*!*****************************************************************************************!*\
  !*** ./src/app/team-admin/setting/secure-mail-setting/secure-mail-setting.component.ts ***!
  \*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.SecureMailSettingComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var _ = tslib_1.__importStar(__webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js"));
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var validator_module_1 = __webpack_require__(/*! ../../../common/validator.module */ "./src/app/common/validator.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team-setting.service */ "./src/app/shared/services/team-setting.service.ts"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/checkbox */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-checkbox.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/dropdown */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dropdown.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtextarea */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtextarea.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! primeng/radiobutton */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-radiobutton.js"));
var i15 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i16 = tslib_1.__importStar(__webpack_require__(/*! primeng/colorpicker */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-colorpicker.js"));
var i17 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function SecureMailSettingComponent_div_16_div_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "div", 19);
    i0.ɵɵelementStart(2, "label", 20);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "titlecase");
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "div", 7);
    i0.ɵɵelement(7, "p-checkbox", 30);
    i0.ɵɵelementStart(8, "label", 31);
    i0.ɵɵtext(9);
    i0.ɵɵpipe(10, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(11, "div", 7);
    i0.ɵɵelement(12, "p-checkbox", 32);
    i0.ɵɵelementStart(13, "label", 33);
    i0.ɵɵtext(14);
    i0.ɵɵpipe(15, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(16, "div", 7);
    i0.ɵɵelement(17, "p-checkbox", 34);
    i0.ɵɵelementStart(18, "label", 35);
    i0.ɵɵtext(19);
    i0.ɵɵpipe(20, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(21, "div", 7);
    i0.ɵɵelement(22, "p-checkbox", 36);
    i0.ɵɵelementStart(23, "label", 37);
    i0.ɵɵtext(24);
    i0.ɵɵpipe(25, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(26, "div", 7);
    i0.ɵɵelement(27, "p-checkbox", 38);
    i0.ɵɵelementStart(28, "label", 39);
    i0.ɵɵtext(29);
    i0.ɵɵpipe(30, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, i0.ɵɵpipeBind1(5, 8, "label.protected_file")));
    i0.ɵɵadvance(6);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 10, "label.doc"));
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 12, "label.xls"));
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(20, 14, "label.ppt"));
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(25, 16, "label.pdf"));
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(30, 18, "label.image"));
} }
function SecureMailSettingComponent_div_16_div_8_div_3_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function SecureMailSettingComponent_div_16_div_8_div_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 42);
    i0.ɵɵtemplate(1, SecureMailSettingComponent_div_16_div_8_div_3_small_1_Template, 3, 3, "small", 14);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r7 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r7.teamSettingFrm.controls["bannedExtType"].errors == null ? null : ctx_r7.teamSettingFrm.controls["bannedExtType"].errors.pattern);
} }
function SecureMailSettingComponent_div_16_div_8_Template(rf, ctx) { if (rf & 1) {
    var _r11 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div");
    i0.ɵɵelementStart(1, "textarea", 40);
    i0.ɵɵlistener("keydown.space", function SecureMailSettingComponent_div_16_div_8_Template_textarea_keydown_space_1_listener($event) { return $event.preventDefault(); })("keypress", function SecureMailSettingComponent_div_16_div_8_Template_textarea_keypress_1_listener($event) { i0.ɵɵrestoreView(_r11); var ctx_r10 = i0.ɵɵnextContext(2); return ctx_r10.preventSpace($event); });
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(3, SecureMailSettingComponent_div_16_div_8_div_3_Template, 2, 1, "div", 41);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r4 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(1);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(2, 2, "place_holder.banned_ext"));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", (ctx_r4.teamSettingFrm.controls["bannedExtType"].touched || ctx_r4.teamSettingFrm.controls["bannedExtType"].dirty) && ctx_r4.teamSettingFrm.controls["bannedExtType"].errors);
} }
function SecureMailSettingComponent_div_16_form_31_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "form", 43);
    i0.ɵɵelementStart(1, "div", 19);
    i0.ɵɵelementStart(2, "label", 20);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(5, "div", 44);
    i0.ɵɵelementStart(6, "div", 45);
    i0.ɵɵelementStart(7, "div", 19);
    i0.ɵɵelementStart(8, "div", 21);
    i0.ɵɵelementStart(9, "label", 46);
    i0.ɵɵtext(10);
    i0.ɵɵpipe(11, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(12, "p-dropdown", 47);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(13, "div", 48);
    i0.ɵɵelementStart(14, "div", 21);
    i0.ɵɵelementStart(15, "label", 49);
    i0.ɵɵtext(16);
    i0.ɵɵpipe(17, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(18, "p-dropdown", 50);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(19, "div", 48);
    i0.ɵɵelementStart(20, "div", 21);
    i0.ɵɵelementStart(21, "label", 51);
    i0.ɵɵtext(22);
    i0.ɵɵpipe(23, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(24, "p-dropdown", 52);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(25, "div", 53);
    i0.ɵɵelement(26, "p-checkbox", 54);
    i0.ɵɵelementStart(27, "label", 55);
    i0.ɵɵtext(28);
    i0.ɵɵpipe(29, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(30, "div", 7);
    i0.ɵɵelement(31, "p-checkbox", 56);
    i0.ɵɵelementStart(32, "label", 57);
    i0.ɵɵtext(33);
    i0.ɵɵpipe(34, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r5 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("formGroup", ctx_r5.drmFrm);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 12, "label.drm_setting"));
    i0.ɵɵadvance(7);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 14, "label.document_expiry_date"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("options", ctx_r5.documentExpiryDateOption);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 16, "label.hour"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("disabled", ctx_r5.drmFrm.controls.documentExpiryDate.value.code === "None")("options", ctx_r5.hours);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 18, "label.minute"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("options", ctx_r5.minutes)("disabled", ctx_r5.drmFrm.controls.documentExpiryDate.value.code === "None");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(29, 20, "label.printable"));
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(34, 22, "label.editable"));
} }
function SecureMailSettingComponent_div_16_form_32_div_11_div_19_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function SecureMailSettingComponent_div_16_form_32_div_11_div_19_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function SecureMailSettingComponent_div_16_form_32_div_11_div_19_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 42);
    i0.ɵɵtemplate(1, SecureMailSettingComponent_div_16_form_32_div_11_div_19_small_1_Template, 3, 3, "small", 14);
    i0.ɵɵtemplate(2, SecureMailSettingComponent_div_16_form_32_div_11_div_19_small_2_Template, 3, 3, "small", 14);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r13 = i0.ɵɵnextContext(4);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r13.watermarkFrm.controls["wmContent"].errors == null ? null : ctx_r13.watermarkFrm.controls["wmContent"].errors.required) || (ctx_r13.watermarkFrm.controls["wmContent"].errors == null ? null : ctx_r13.watermarkFrm.controls["wmContent"].errors.whitespace));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r13.watermarkFrm.controls["wmContent"].errors == null ? null : ctx_r13.watermarkFrm.controls["wmContent"].errors.pattern);
} }
function SecureMailSettingComponent_div_16_form_32_div_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 44);
    i0.ɵɵelementStart(1, "div", 5);
    i0.ɵɵelementStart(2, "div", 61);
    i0.ɵɵelementStart(3, "span", 62);
    i0.ɵɵelement(4, "p-radioButton", 63);
    i0.ɵɵelementEnd();
    i0.ɵɵelement(5, "input", 64);
    i0.ɵɵpipe(6, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(7, "div", 45);
    i0.ɵɵelementStart(8, "div", 65);
    i0.ɵɵelementStart(9, "div", 19);
    i0.ɵɵelementStart(10, "label", 66);
    i0.ɵɵtext(11);
    i0.ɵɵpipe(12, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(13, "div", 61);
    i0.ɵɵelementStart(14, "span", 62);
    i0.ɵɵelement(15, "p-radioButton", 67);
    i0.ɵɵelementEnd();
    i0.ɵɵelement(16, "input", 68);
    i0.ɵɵelementStart(17, "span", 62);
    i0.ɵɵelement(18, "p-colorPicker", 69);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(19, SecureMailSettingComponent_div_16_form_32_div_11_div_19_Template, 3, 2, "div", 41);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(20, "div", 48);
    i0.ɵɵelementStart(21, "div", 21);
    i0.ɵɵelementStart(22, "label", 70);
    i0.ɵɵtext(23);
    i0.ɵɵpipe(24, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(25, "p-dropdown", 71);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(26, "div", 48);
    i0.ɵɵelementStart(27, "div", 21);
    i0.ɵɵelementStart(28, "label", 72);
    i0.ɵɵtext(29);
    i0.ɵɵpipe(30, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(31, "p-dropdown", 73);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r12 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance(5);
    i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(6, 13, "label.default"));
    i0.ɵɵadvance(6);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 15, "label.customs"), " ");
    i0.ɵɵadvance(5);
    i0.ɵɵproperty("ngClass", ctx_r12.watermarkFrm.controls["showWm"].value && ctx_r12.watermarkFrm.controls["wmSetting"].value !== "default" && ctx_r12.watermarkFrm.controls["wmContent"].invalid ? "p-invalid" : "")("required", ctx_r12.watermarkFrm.controls["showWm"].value === true && ctx_r12.watermarkFrm.controls["wmSetting"].value !== "default");
    i0.ɵɵattribute("disabled", ctx_r12.watermarkFrm.controls.wmSetting.value === "default" ? true : null);
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("disabled", ctx_r12.watermarkFrm.controls.wmSetting.value !== "custom" || !ctx_r12.watermarkFrm.controls.showWm.value);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r12.watermarkFrm.controls["showWm"].value === true && ctx_r12.watermarkFrm.controls["wmSetting"].value !== "default");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(24, 17, "label.font_size"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("disabled", ctx_r12.watermarkFrm.controls.wmSetting.value === "default")("options", ctx_r12.fontSizes);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 19, "label.position"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("disabled", ctx_r12.watermarkFrm.controls.wmSetting.value === "default")("options", ctx_r12.positions);
} }
function SecureMailSettingComponent_div_16_form_32_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "form", 6);
    i0.ɵɵelementStart(1, "div", 19);
    i0.ɵɵelementStart(2, "label", 20);
    i0.ɵɵtext(3);
    i0.ɵɵpipe(4, "titlecase");
    i0.ɵɵpipe(5, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(6, "div", 7);
    i0.ɵɵelement(7, "p-checkbox", 58);
    i0.ɵɵelementStart(8, "label", 59);
    i0.ɵɵtext(9);
    i0.ɵɵpipe(10, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(11, SecureMailSettingComponent_div_16_form_32_div_11_Template, 32, 21, "div", 60);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("formGroup", ctx_r6.watermarkFrm);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 4, i0.ɵɵpipeBind1(5, 6, "label.watermark_setting")));
    i0.ɵɵadvance(6);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 8, "label.show_wm"));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r6.watermarkFrm.controls.showWm.value);
} }
function SecureMailSettingComponent_div_16_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 15);
    i0.ɵɵelementStart(1, "div", 16);
    i0.ɵɵtemplate(2, SecureMailSettingComponent_div_16_div_2_Template, 31, 20, "div", 14);
    i0.ɵɵelementStart(3, "div", 7);
    i0.ɵɵelement(4, "p-checkbox", 17);
    i0.ɵɵelementStart(5, "label", 18);
    i0.ɵɵtext(6);
    i0.ɵɵpipe(7, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(8, SecureMailSettingComponent_div_16_div_8_Template, 4, 4, "div", 14);
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(9, "div", 16);
    i0.ɵɵelementStart(10, "div", 19);
    i0.ɵɵelementStart(11, "label", 20);
    i0.ɵɵtext(12);
    i0.ɵɵpipe(13, "titlecase");
    i0.ɵɵpipe(14, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(15, "div", 19);
    i0.ɵɵelementStart(16, "div", 21);
    i0.ɵɵelementStart(17, "label", 22);
    i0.ɵɵtext(18);
    i0.ɵɵpipe(19, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelement(20, "p-dropdown", 23);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(21, "div", 7);
    i0.ɵɵelement(22, "p-checkbox", 24);
    i0.ɵɵelementStart(23, "label", 25);
    i0.ɵɵtext(24);
    i0.ɵɵpipe(25, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(26, "div", 7);
    i0.ɵɵelement(27, "p-checkbox", 26);
    i0.ɵɵelementStart(28, "label", 27);
    i0.ɵɵtext(29);
    i0.ɵɵpipe(30, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵtemplate(31, SecureMailSettingComponent_div_16_form_31_Template, 35, 24, "form", 28);
    i0.ɵɵtemplate(32, SecureMailSettingComponent_div_16_form_32_Template, 12, 10, "form", 29);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r0.isDRMSetting);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 10, "label.banned_extension"));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r0.teamSettingFrm.controls.bannedExt.value === true);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 12, i0.ɵɵpipeBind1(14, 14, "label.link_setting")));
    i0.ɵɵadvance(6);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 16, "label.link_expiry_date"), " ");
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("options", ctx_r0.linkExpiryDateOption);
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(25, 18, "label.downloadable"));
    i0.ɵɵadvance(5);
    i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(30, 20, "label.password_protect"));
    i0.ɵɵadvance(2);
    i0.ɵɵproperty("ngIf", ctx_r0.isDRMSetting);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r0.isDRMSetting);
} }
function SecureMailSettingComponent_span_23_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 74);
    i0.ɵɵelementEnd();
} }
function SecureMailSettingComponent_span_24_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 75);
    i0.ɵɵelementEnd();
} }
var SecureMailSettingComponent = /** @class */ (function () {
    function SecureMailSettingComponent(fb, datepipe, router, utils, cdref, location, messageService, broadcastService, teamSettingService, authenticateService) {
        this.fb = fb;
        this.datepipe = datepipe;
        this.router = router;
        this.utils = utils;
        this.cdref = cdref;
        this.location = location;
        this.messageService = messageService;
        this.broadcastService = broadcastService;
        this.teamSettingService = teamSettingService;
        this.authenticateService = authenticateService;
        this.constant = constant_module_1.Constant;
        this.isDRMSetting = false;
        this.isSettingChange = false;
        this.isDRMSetChange = false;
        this.isWatermarkSetChange = false;
        this.isEmpty = false;
        this.submitting = false;
        this.teamSettingFrm = new forms_1.FormGroup({});
        this.drmFrm = new forms_1.FormGroup({});
        this.watermarkFrm = new forms_1.FormGroup({});
        this.hours = [];
        this.minutes = [];
        this.fontSizes = [];
        this.positions = [];
        this.linkExpiryDateOption = [];
        this.documentExpiryDateOption = [];
        this.dataSetting = {};
        this.originData = {};
        this.originDRMData = {};
        this.originWatermarkData = {};
        this.subSettings = {
            expiryDate: '',
            unlimited: 1,
            printable: 0,
            editable: 0
        };
        this.watermarkSetting = {
            show_wm: 0,
            default_wm: 1,
            setting: {
                wm_text: '',
                wm_font_size: 50,
                wm_color: 'RGB(0,0,0)',
                wm_position: 'diagonal'
            }
        };
        this.broadcastService.broadcast('load-menu-setting');
    }
    SecureMailSettingComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.authenticateService.getAuthInfo().subscribe(function (res) {
            if (res.status === 200) {
                _this.authenticateService.setAuthUser(res.data);
                if (_this.authenticateService.paymentTypeGlobal == constant_module_1.PaymentType.Online
                    || !_this.authenticateService.isUseSMGlobal) {
                    _this.messageService.add({
                        key: 'toast',
                        severity: 'error',
                        detail: _this.utils.translate('errors.err_access_function')
                    });
                    _this.router.navigate(['/setting/info']);
                }
            }
        });
        this.scriptPattern = constant_module_1.Constant.SCRIPT_PATTERN;
        var hour = _.range(0, 24, 1);
        for (var i = 0; i < hour.length; i++) {
            this.hours = tslib_1.__spread(this.hours, [{ name: hour[i].toString(), code: hour[i] }]);
        }
        var min = _.range(0, 60, 5);
        for (var i = 0; i < min.length; i++) {
            this.minutes = tslib_1.__spread(this.minutes, [{ name: min[i].toString(), code: min[i] }]);
        }
        var size = _.range(50, 100, 2);
        for (var i = 0; i < size.length; i++) {
            this.fontSizes = tslib_1.__spread(this.fontSizes, [{ name: size[i].toString(), code: size[i] }]);
        }
        this.positions = [
            { code: 'diagonal', name: this.utils.translate('label.watermark_position.diagonal') },
            { code: 'center', name: this.utils.translate('label.watermark_position.center') },
            { code: 'top-left', name: this.utils.translate('label.watermark_position.top-left') },
            { code: 'top-center', name: this.utils.translate('label.watermark_position.top-center') },
            { code: 'top-right', name: this.utils.translate('label.watermark_position.top-right') },
            { code: 'bottom-left', name: this.utils.translate('label.watermark_position.bottom-left') },
            { code: 'bottom-center', name: this.utils.translate('label.watermark_position.bottom-center') },
            { code: 'bottom-right', name: this.utils.translate('label.watermark_position.bottom-right') }
        ];
        this.linkExpiryDateOption = [
            { code: 'None', name: this.utils.translate('label.expiry_date.none') },
            { code: 'SevenDays', name: this.utils.translate('label.expiry_date.7-day') },
            { code: 'Month', name: this.utils.translate('label.expiry_date.1-month') },
            { code: 'SixMonths', name: this.utils.translate('label.expiry_date.6-months') },
            { code: 'Year', name: this.utils.translate('label.expiry_date.1-year') }
        ];
        this.documentExpiryDateOption = [
            { code: 'None', name: this.utils.translate('label.expiry_date.none') },
            { code: 'SevenDays', name: this.utils.translate('label.expiry_date.7-day') },
            { code: 'Month', name: this.utils.translate('label.expiry_date.1-month') },
            { code: 'SixMonths', name: this.utils.translate('label.expiry_date.6-months') },
            { code: 'Year', name: this.utils.translate('label.expiry_date.1-year') }
        ];
        this.authUser = this.authenticateService.getAuthUser();
        if (this.authUser.package_object.type === constant_module_1.PackageType.upload) {
            this.isDRMSetting = true;
        }
        this.teamSettingFrm = this.fb.group({
            // force setting
            forceSetting: [],
            docx: [false],
            xlsx: [false],
            pptx: [false],
            pdf: [false],
            image: [false],
            bannedExt: [false],
            bannedExtType: ['', validator_module_1.conditionalValidator(function () { return _this.teamSettingFrm.get('forceSetting').value
                    && _this.teamSettingFrm.get('bannedExt').value; }, forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN))],
            // link
            linkExpiryDate: [],
            downloadable: [false],
            passwordProtect: [false],
        });
        this.drmFrm = this.fb.group({
            // DRM setting
            documentExpiryDate: [],
            hour: [this.hours.find(function (hour) { return hour.code === 23; })],
            minute: [this.minutes.find(function (minute) { return minute.code === 55; })],
            printable: [false],
            editable: [false],
        });
        this.watermarkFrm = this.fb.group({
            // watermark
            showWm: [false],
            wmSetting: ['default'],
            wmContent: ['', [
                    validator_module_1.conditionalValidator(function () { return _this.watermarkFrm.get('wmSetting').value !== 'default'
                        && _this.watermarkFrm.get('showWm').value; }, forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN)),
                    validator_module_1.conditionalValidator(function () { return _this.watermarkFrm.get('wmSetting').value !== 'default'
                        && _this.watermarkFrm.get('showWm').value; }, validator_module_1.noWhitespaceValidator)
                ]],
            color: [{ r: 192, g: 192, b: 192 }, []],
            position: [this.positions.find(function (position) { return position.code === 'diagonal'; })],
            fontSize: [this.fontSizes.find(function (fontSize) { return fontSize.code === 50; })],
        });
        this.loadData();
    };
    SecureMailSettingComponent.prototype.ngAfterContentChecked = function () {
        this.cdref.detectChanges();
    };
    SecureMailSettingComponent.prototype.checkValueChanges = function () {
        var _this = this;
        this.drmFrm.valueChanges.subscribe(function (val) {
            if (_this.originDRMData) {
                _this.isDRMSetChange = (val && JSON.stringify(_this.originDRMData) !== JSON.stringify(val));
            }
            if (_this.drmFrm.controls['documentExpiryDate'].value.code === 'None' && _this.originDRMData['documentExpiryDate'].code === 'None'
                && (_this.drmFrm.controls['printable'].value === _this.originDRMData['printable']
                    && _this.drmFrm.controls['editable'].value === _this.originDRMData['editable'])) {
                _this.isDRMSetChange = false;
            }
        });
        this.watermarkFrm.valueChanges.subscribe(function (val) {
            if (_this.originWatermarkData) {
                _this.isWatermarkSetChange = (val && JSON.stringify(_this.originWatermarkData) !== JSON.stringify(val));
            }
            if (!_this.watermarkFrm.controls['showWm'].value && !_this.originWatermarkData['showWm']
                || (_this.watermarkFrm.controls['showWm'].value
                    && _this.watermarkFrm.controls['wmSetting'].value === 'default'
                    && _this.originWatermarkData['showWm'] && _this.originWatermarkData['wmSetting'] === 'default')) {
                _this.isWatermarkSetChange = false;
            }
            // check only input space
            // this.isEmpty = (val.showWm && val.wmSetting !== 'default' && val.wmContent.trim() === '');
            if (!val.showWm) {
                _this.watermarkFrm.get('wmContent').setValidators(null);
                _this.watermarkFrm.get('wmContent').setErrors(null);
            }
        });
        this.watermarkFrm.get('showWm').valueChanges.subscribe(function (val) {
            if (!val) {
                _this.watermarkFrm.get('wmContent').setValidators(null);
                _this.watermarkFrm.get('wmContent').setErrors(null);
            }
            else {
                if (_this.watermarkFrm.controls['wmSetting'].value !== 'default') {
                    _this.watermarkFrm.get('wmContent').setValidators([
                        forms_1.Validators.required,
                        forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN),
                        validator_module_1.noWhitespaceValidator
                    ]);
                }
                else {
                    _this.watermarkFrm.get('wmContent').setValidators(null);
                }
                _this.watermarkFrm.controls['wmContent'].updateValueAndValidity();
            }
        });
        this.watermarkFrm.get('wmSetting').valueChanges.subscribe(function (val) {
            if (val === 'default') {
                _this.watermarkFrm.get('wmContent').setValidators(null);
                _this.watermarkFrm.get('wmContent').setErrors(null);
            }
            else {
                _this.watermarkFrm.get('wmContent').setValidators([
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN),
                    validator_module_1.noWhitespaceValidator
                ]);
                _this.watermarkFrm.controls['wmContent'].updateValueAndValidity();
            }
        });
        this.teamSettingFrm.valueChanges.subscribe(function (val) {
            if (_this.originData) {
                _this.isSettingChange = (val && JSON.stringify(_this.originData) !== JSON.stringify(val));
            }
            if (!_this.teamSettingFrm.controls['forceSetting'].value && !_this.originData['forceSetting']) {
                _this.isSettingChange = _this.isDRMSetChange = _this.isWatermarkSetChange = false;
            }
        });
        this.teamSettingFrm.get('forceSetting').valueChanges.subscribe(function (val) {
            if (val && _this.watermarkFrm.get('showWm').value
                && _this.watermarkFrm.get('wmSetting').value !== 'default') {
                _this.watermarkFrm.get('wmContent').setValidators([
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN),
                    validator_module_1.noWhitespaceValidator
                ]);
                _this.watermarkFrm.controls['wmContent'].updateValueAndValidity();
            }
            else {
                _this.watermarkFrm.get('wmContent').setValidators(null);
                _this.watermarkFrm.get('wmContent').setErrors(null);
            }
            if (val && _this.teamSettingFrm.get('bannedExt').value) {
                _this.teamSettingFrm.get('bannedExtType').setValidators([
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN)
                ]);
                _this.teamSettingFrm.controls['bannedExtType'].updateValueAndValidity();
            }
            else {
                _this.teamSettingFrm.get('bannedExtType').setValidators(null);
                _this.teamSettingFrm.get('bannedExtType').setErrors(null);
            }
        });
        this.teamSettingFrm.get('bannedExt').valueChanges.subscribe(function (val) {
            if (val) {
                _this.teamSettingFrm.get('bannedExtType').setValidators([
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN)
                ]);
                _this.teamSettingFrm.controls['bannedExtType'].updateValueAndValidity();
            }
            else {
                _this.teamSettingFrm.get('bannedExtType').setValidators(null);
                _this.teamSettingFrm.get('bannedExtType').setErrors(null);
            }
        });
    };
    SecureMailSettingComponent.prototype.loadData = function () {
        var _this = this;
        var params = {
            team_id: this.authUser.team_id,
            type: 2,
        };
        this.teamSettingService.getTeamSettingByType(params).subscribe(function (res) {
            _this.dataSetting = tslib_1.__assign({}, res.data);
            _this.isDRMSetting = (res.data.feature_setting === constant_module_1.PackageType.upload);
            _this.teamSettingFrm.controls['forceSetting'].setValue(_this.dataSetting['force_setting']);
            if (_this.dataSetting['support_protected_types']) {
                var pro_type = _this.dataSetting['support_protected_types'].split(',');
                _this.teamSettingFrm.controls['docx'].setValue(pro_type.indexOf('docx') !== -1);
                _this.teamSettingFrm.controls['xlsx'].setValue(pro_type.indexOf('xlsx') !== -1);
                _this.teamSettingFrm.controls['pptx'].setValue(pro_type.indexOf('pptx') !== -1);
                _this.teamSettingFrm.controls['pdf'].setValue(pro_type.indexOf('pdf') !== -1);
                _this.teamSettingFrm.controls['image'].setValue(_this.dataSetting['support_protected_types'].indexOf(_this.constant.IMAGE_TYPE_PROTECTED) !== -1);
            }
            if (_this.dataSetting['banned_extension'] !== null) {
                _this.teamSettingFrm.controls['bannedExt'].setValue(true);
                _this.teamSettingFrm.controls['bannedExtType'].setValue(_this.dataSetting['banned_extension']);
            }
            _this.teamSettingFrm.controls['linkExpiryDate'].setValue(_this.linkExpiryDateOption.find(function (linkExp) { return linkExp.code === _this.dataSetting['link_expiry_date']; }));
            _this.teamSettingFrm.controls['downloadable'].setValue(parseInt(_this.dataSetting['link_settings'].charAt(0)) === 1);
            _this.teamSettingFrm.controls['passwordProtect'].setValue(parseInt(_this.dataSetting['link_settings'].charAt(1)) === 1);
            _this.drmFrm.controls['documentExpiryDate'].setValue(_this.documentExpiryDateOption.find(function (documentExp) { return documentExp.code === _this.dataSetting['file_expiry_date']; }));
            if (_this.dataSetting['drm_setting']) {
                var _drm = JSON.parse(_this.dataSetting['drm_setting']);
                if (_drm.expiryDate !== null) {
                    var expiryDate_1 = _drm.expiryDate;
                    _this.drmFrm.controls['hour'].setValue(_this.hours.find(function (hour) { return hour.code == _this.datepipe.transform(expiryDate_1, 'HH'); }));
                    _this.drmFrm.controls['minute'].setValue(_this.minutes.find(function (min) { return min.code == _this.datepipe.transform(expiryDate_1, 'mm'); }));
                }
                else {
                    _this.drmFrm.controls['hour'].setValue(_this.hours.find(function (hour) { return hour.code === 23; }));
                    _this.drmFrm.controls['minute'].setValue(_this.minutes.find(function (min) { return min.code === 55; }));
                }
                _this.drmFrm.controls['printable'].setValue(_drm.printable === 1);
                _this.drmFrm.controls['editable'].setValue(_drm.editable === 1);
            }
            // get data
            if (_this.dataSetting['watermark_setting']) {
                var _drm_1 = JSON.parse(_this.dataSetting['watermark_setting']);
                _this.watermarkFrm.controls['showWm'].setValue(_drm_1.show_wm === 1);
                _this.watermarkFrm.controls['wmSetting'].setValue((_drm_1.default_wm === 1 || _drm_1.show_wm === 0) ? 'default' : 'custom');
                if (_drm_1.setting !== null) {
                    _this.watermarkFrm.controls['wmContent'].setValue(_drm_1.setting.wm_text);
                    _this.watermarkFrm.controls['fontSize'].setValue(_this.fontSizes.find(function (fontSize) { return fontSize.code === _drm_1.setting.wm_font_size; }));
                    var color = _drm_1.setting.wm_color.slice(_drm_1.setting.wm_color.indexOf('(') + 1, _drm_1.setting.wm_color.indexOf(')')).split(',');
                    if (_drm_1.setting.wm_color === '') {
                        color = [192, 192, 192];
                    }
                    _this.watermarkFrm.controls['color'].setValue({ r: parseInt(color[0]), g: parseInt(color[1]), b: parseInt(color[2]) });
                    _this.watermarkFrm.controls['position'].setValue(_this.positions.find(function (position) { return position.code === _drm_1.setting.wm_position; }));
                }
            }
            _this.originData = tslib_1.__assign({}, _this.teamSettingFrm.value);
            _this.originDRMData = tslib_1.__assign({}, _this.drmFrm.value);
            _this.originWatermarkData = tslib_1.__assign({}, _this.watermarkFrm.value);
            _this.isSettingChange = false;
            _this.isDRMSetChange = false;
            _this.isWatermarkSetChange = false;
            _this.checkValueChanges();
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    SecureMailSettingComponent.prototype.doUpdateSetting = function (teamSetValid, drmSetValid, watermarkSetValid) {
        var _this = this;
        if (!teamSetValid || !drmSetValid || !watermarkSetValid) {
            return;
        }
        this.submitting = true;
        var fileTypes = [];
        if (this.teamSettingFrm.controls['pdf'].value) {
            fileTypes.push('pdf');
        }
        if (this.teamSettingFrm.controls['xlsx'].value) {
            fileTypes.push('xlsx');
        }
        if (this.teamSettingFrm.controls['docx'].value) {
            fileTypes.push('docx');
        }
        if (this.teamSettingFrm.controls['pptx'].value) {
            fileTypes.push('pptx');
        }
        if (this.teamSettingFrm.controls['image'].value) {
            fileTypes = tslib_1.__spread(fileTypes, [this.constant.IMAGE_TYPE_PROTECTED]);
        }
        var linkSets = [];
        linkSets.push(this.teamSettingFrm.controls['downloadable'].value ? 1 : 0);
        linkSets.push(this.teamSettingFrm.controls['passwordProtect'].value ? 1 : 0);
        var date = new Date();
        date.setDate(date.getDate() + 1);
        if (this.drmFrm.controls['documentExpiryDate'].value.code !== 'None') {
            this.subSettings['expiryDate'] = this.datepipe.transform(date, 'yyyy/MM/dd')
                .concat(' ').concat(this.drmFrm.controls['hour'].value.code.toLocaleString('en-US', {
                minimumIntegerDigits: 2,
                useGrouping: false
            }))
                .concat(':').concat(this.drmFrm.controls['minute'].value.code.toLocaleString('en-US', {
                minimumIntegerDigits: 2,
                useGrouping: false
            }))
                .concat(':59');
        }
        else {
            this.subSettings['expiryDate'] = this.datepipe.transform(date, 'yyyy/MM/dd')
                .concat(' 23:55:59');
        }
        this.subSettings['unlimited'] = (this.drmFrm.controls['documentExpiryDate'].value ===
            this.documentExpiryDateOption.find(function (fileExp) { return fileExp.code === 'None'; }).code) ? 1 : 0;
        this.subSettings['printable'] = this.drmFrm.controls['printable'].value ? 1 : 0;
        this.subSettings['editable'] = this.drmFrm.controls['editable'].value ? 1 : 0;
        this.watermarkSetting['show_wm'] = this.watermarkFrm.controls['showWm'].value ? 1 : 0;
        this.watermarkSetting['default_wm'] = (this.watermarkFrm.controls['wmSetting'].value === 'default') ? 1 : 0;
        var setting = this.watermarkSetting['setting'];
        if (this.watermarkFrm.controls['showWm'].value && this.watermarkFrm.controls['wmSetting'].value !== 'default') {
            setting.wm_text = this.watermarkFrm.controls['wmContent'].value;
            setting.wm_color = 'RGB(' +
                this.watermarkFrm.controls['color'].value.r + ',' +
                this.watermarkFrm.controls['color'].value.g + ',' +
                this.watermarkFrm.controls['color'].value.b + ')';
            setting.wm_font_size = this.watermarkFrm.controls['fontSize'].value.code;
            setting.wm_position = this.watermarkFrm.controls['position'].value.code;
        }
        this.watermarkSetting['setting'] = setting;
        var params = {
            team_id: this.authUser.team_id,
            force_setting: this.teamSettingFrm.controls['forceSetting'].value,
            support_protected_types: fileTypes.length !== 0 ? fileTypes.join(',') : '',
            banned_extension: (this.teamSettingFrm.controls['forceSetting'].value
                && this.teamSettingFrm.controls['bannedExt'].value)
                ? this.teamSettingFrm.controls['bannedExtType'].value.trim() : null,
            link_expiry_date: this.teamSettingFrm.controls['linkExpiryDate'].value.code,
            file_expiry_date: this.drmFrm.controls['documentExpiryDate'].value.code,
            link_settings: linkSets.join(''),
            drm_setting: JSON.stringify(this.subSettings),
            watermark_setting: JSON.stringify(this.watermarkSetting)
        };
        this.teamSettingService.updateSecureMailSettings(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
                _this.loadData();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submitting = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    SecureMailSettingComponent.prototype.goBack = function () {
        this.location.back();
    };
    SecureMailSettingComponent.prototype.preventSpace = function (event) {
        if (event.keyCode == 32 || event.which == 32) {
            event.preventDefault();
        }
    };
    SecureMailSettingComponent.ɵfac = function SecureMailSettingComponent_Factory(t) { return new (t || SecureMailSettingComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.DatePipe), i0.ɵɵdirectiveInject(i3.Router), i0.ɵɵdirectiveInject(i4.UtilsService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2.Location), i0.ɵɵdirectiveInject(i5.MessageService), i0.ɵɵdirectiveInject(i6.BroadcastService), i0.ɵɵdirectiveInject(i7.TeamSettingService), i0.ɵɵdirectiveInject(i8.AuthenticateService)); };
    SecureMailSettingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SecureMailSettingComponent, selectors: [["app-secure-mail-setting"]], features: [i0.ɵɵProvidersFeature([common_1.DatePipe])], decls: 25, vars: 23, consts: [[1, "setting-container"], [1, "p-card", "p-shadow-2", "p-width-100"], [1, "p-card-body"], [1, "p-col-12", "p-pb-3"], [1, "p-text-bold", "p-text-secondary"], [1, "p-col-12"], [3, "formGroup"], [1, "p-field-checkbox"], ["formControlName", "forceSetting", "binary", "true", "inputId", "forceSetting"], ["for", "forceSetting", 1, "cs-pointer"], ["class", "ml-27", 4, "ngIf"], [1, "p-col-12", "p-px-0", "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", "p-field", 3, "label", "click"], ["pButton", "", "pRipple", "", "type", "button", 1, "p-button-raised", "p-button-primary", "p-field", 3, "label", "disabled", "click"], [4, "ngIf"], [1, "ml-27"], [1, "p-mb-4"], ["name", "bannedExt", "binary", "true", "formControlName", "bannedExt", "inputId", "banned"], ["for", "banned", 1, "cs-pointer"], [1, "p-field"], [1, "p-text-bold", "p-m-0"], [1, "p-field", "display-grid"], ["for", "linkExpiryDate", 1, "p-text-small", "p-text-bold"], ["id", "linkExpiryDate", "formControlName", "linkExpiryDate", "optionLabel", "name", 3, "options"], ["name", "downloadable", "binary", "true", "formControlName", "downloadable", "inputId", "downloadable"], ["for", "downloadable", 1, "cs-pointer"], ["name", "passwordProtect", "binary", "true", "formControlName", "passwordProtect", "inputId", "passwordProtect"], ["for", "passwordProtect", 1, "cs-pointer"], ["class", "p-mb-4", 3, "formGroup", 4, "ngIf"], [3, "formGroup", 4, "ngIf"], ["binary", "true", "formControlName", "docx", "inputId", "doc"], ["for", "doc", 1, "cs-pointer"], ["binary", "true", "formControlName", "xlsx", "inputId", "xls"], ["for", "xls", 1, "cs-pointer"], ["binary", "true", "formControlName", "pptx", "inputId", "ppt"], ["for", "ppt", 1, "cs-pointer"], ["binary", "true", "formControlName", "pdf", "inputId", "pdf"], ["for", "pdf", 1, "cs-pointer"], ["binary", "true", "formControlName", "image", "inputId", "image"], ["for", "image", 1, "cs-pointer"], ["id", "banned", "rows", "2", "formControlName", "bannedExtType", "pInputTextarea", "", "autoResize", "true", 1, "p-width-100", 3, "placeholder", "keydown.space", "keypress"], ["class", "p-invalid", 4, "ngIf"], [1, "p-invalid"], [1, "p-mb-4", 3, "formGroup"], [1, "p-grid"], [1, "p-col-12", "p-lg-6"], ["for", "documentExpiryDate", 1, "p-text-small", "p-text-bold"], ["id", "documentExpiryDate", "formControlName", "documentExpiryDate", "optionLabel", "name", 3, "options"], [1, "p-col-6", "p-lg-3", "p-mt-low-lg-n20", "p-mt-lg-0"], ["for", "hour", 1, "p-text-small", "p-text-bold"], ["id", "hour", "optionLabel", "name", "formControlName", "hour", 3, "disabled", "options"], ["for", "minute", 1, "p-text-small", "p-text-bold"], ["id", "minute", "optionLabel", "name", "formControlName", "minute", 3, "options", "disabled"], [1, "p-field-checkbox", "mt-n6"], ["name", "printable", "binary", "true", "formControlName", "printable", "inputId", "printable"], ["for", "printable", 1, "cs-pointer"], ["name", "editable", "binary", "true", "formControlName", "editable", "inputId", "editable"], ["for", "editable", 1, "cs-pointer"], ["name", "showWm", "binary", "true", "formControlName", "showWm", "inputId", "showWm"], ["for", "showWm", 1, "cs-pointer"], ["class", "p-grid", 4, "ngIf"], [1, "p-inputgroup"], [1, "p-inputgroup-addon"], ["formControlName", "wmSetting", "value", "default", "name", "wmSetting"], ["type", "text", "disabled", "disabled", "pInputText", "", 3, "placeholder"], [1, "display-grid"], ["for", "custom", 1, "required", "p-text-small", "p-text-bold"], ["formControlName", "wmSetting", "value", "custom", "name", "wmSetting"], ["id", "custom", "type", "text", "maxlength", "255", "formControlName", "wmContent", "pInputText", "", 3, "ngClass", "required"], ["formControlName", "color", "format", "rgb", 3, "disabled"], ["for", "fontSize", 1, "p-text-small", "p-text-bold"], ["id", "fontSize", "formControlName", "fontSize", "optionLabel", "name", 3, "disabled", "options"], ["for", "position", 1, "p-text-small", "p-text-bold"], ["id", "position", "formControlName", "position", "optionLabel", "name", 3, "disabled", "options"], [1, "pi", "pi-save", "p-button-icon-left"], [1, "pi", "pi-spin", "pi-spinner", "p-button-icon-left"]], template: function SecureMailSettingComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "div", 3);
            i0.ɵɵelementStart(4, "label", 4);
            i0.ɵɵtext(5);
            i0.ɵɵpipe(6, "uppercase");
            i0.ɵɵpipe(7, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(8, "div", 5);
            i0.ɵɵelementStart(9, "form", 6);
            i0.ɵɵelementStart(10, "div", 7);
            i0.ɵɵelement(11, "p-checkbox", 8);
            i0.ɵɵelementStart(12, "label", 9);
            i0.ɵɵtext(13);
            i0.ɵɵpipe(14, "titlecase");
            i0.ɵɵpipe(15, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(16, SecureMailSettingComponent_div_16_Template, 33, 22, "div", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(17, "div", 11);
            i0.ɵɵelementStart(18, "button", 12);
            i0.ɵɵlistener("click", function SecureMailSettingComponent_Template_button_click_18_listener() { return ctx.goBack(); });
            i0.ɵɵpipe(19, "titlecase");
            i0.ɵɵpipe(20, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(21, "button", 13);
            i0.ɵɵlistener("click", function SecureMailSettingComponent_Template_button_click_21_listener() { return ctx.doUpdateSetting(ctx.teamSettingFrm.valid, ctx.drmFrm.valid, ctx.watermarkFrm.valid); });
            i0.ɵɵpipe(22, "translate");
            i0.ɵɵtemplate(23, SecureMailSettingComponent_span_23_Template, 2, 0, "span", 14);
            i0.ɵɵtemplate(24, SecureMailSettingComponent_span_24_Template, 2, 0, "span", 14);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 9, i0.ɵɵpipeBind1(7, 11, "label.secure_mail_setting")), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵproperty("formGroup", ctx.teamSettingFrm);
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 13, i0.ɵɵpipeBind1(15, 15, "label.force_setting")));
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngIf", ctx.teamSettingFrm.controls.forceSetting.value === true);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(19, 17, i0.ɵɵpipeBind1(20, 19, "button.back")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(22, 21, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.teamSettingFrm.valid || !ctx.drmFrm.valid || !ctx.watermarkFrm.valid || ctx.submitting || !ctx.isSettingChange && !ctx.isDRMSetChange && !ctx.isWatermarkSetChange);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.submitting);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.submitting);
        } }, directives: [i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i9.Checkbox, i1.NgControlStatus, i1.FormControlName, i2.NgIf, i10.ButtonDirective, i11.Ripple, i12.Dropdown, i1.DefaultValueAccessor, i13.InputTextarea, i14.RadioButton, i15.InputText, i1.MaxLengthValidator, i2.NgClass, i1.RequiredValidator, i16.ColorPicker], pipes: [i2.UpperCasePipe, i17.TranslatePipe, i2.TitleCasePipe], styles: [".ml-27[_ngcontent-%COMP%] {\n  margin-left: 27px !important;\n}\n\n.mt-n6[_ngcontent-%COMP%] {\n  margin-top: -6px;\n}\n\n.mt-n35[_ngcontent-%COMP%] {\n  margin-top: -35px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vc2V0dGluZy9zZWN1cmUtbWFpbC1zZXR0aW5nL3NlY3VyZS1tYWlsLXNldHRpbmcuY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3RlYW0tYWRtaW4vc2V0dGluZy9zZWN1cmUtbWFpbC1zZXR0aW5nL3NlY3VyZS1tYWlsLXNldHRpbmcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSw0QkFBQTtBQ0NGOztBREVBO0VBQ0UsZ0JBQUE7QUNDRjs7QURFQTtFQUNFLGlCQUFBO0FDQ0YiLCJmaWxlIjoic3JjL2FwcC90ZWFtLWFkbWluL3NldHRpbmcvc2VjdXJlLW1haWwtc2V0dGluZy9zZWN1cmUtbWFpbC1zZXR0aW5nLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm1sLTI3IHtcbiAgbWFyZ2luLWxlZnQ6IDI3cHggIWltcG9ydGFudDtcbn1cblxuLm10LW42IHtcbiAgbWFyZ2luLXRvcDogLTZweDtcbn1cblxuLm10LW4zNSB7XG4gIG1hcmdpbi10b3A6IC0zNXB4O1xufVxuIiwiLm1sLTI3IHtcbiAgbWFyZ2luLWxlZnQ6IDI3cHggIWltcG9ydGFudDtcbn1cblxuLm10LW42IHtcbiAgbWFyZ2luLXRvcDogLTZweDtcbn1cblxuLm10LW4zNSB7XG4gIG1hcmdpbi10b3A6IC0zNXB4O1xufSJdfQ== */"] });
    return SecureMailSettingComponent;
}());
exports.SecureMailSettingComponent = SecureMailSettingComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SecureMailSettingComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-secure-mail-setting',
                templateUrl: './secure-mail-setting.component.html',
                styleUrls: ['./secure-mail-setting.component.scss'],
                providers: [common_1.DatePipe]
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.DatePipe }, { type: i3.Router }, { type: i4.UtilsService }, { type: i0.ChangeDetectorRef }, { type: i2.Location }, { type: i5.MessageService }, { type: i6.BroadcastService }, { type: i7.TeamSettingService }, { type: i8.AuthenticateService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/setting/setting-menu/setting-menu.component.ts":
/*!***************************************************************************!*\
  !*** ./src/app/team-admin/setting/setting-menu/setting-menu.component.ts ***!
  \***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.SettingMenuComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! primeng/menu */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-menu.js"));
var SettingMenuComponent = /** @class */ (function () {
    function SettingMenuComponent(utils, broadcastService, authenticateService, router) {
        var _this = this;
        this.utils = utils;
        this.broadcastService = broadcastService;
        this.authenticateService = authenticateService;
        this.router = router;
        this.activeSetting = 'info';
        this.broadcastService.subscribe('load-menu-setting', function (data) {
            if (data) {
                _this.activeSetting = data;
            }
            else {
                _this.activeSetting = _this.router.url.split('/')[2];
            }
            _this.loadData();
        });
    }
    SettingMenuComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.authenticateService.getAuthInfo().subscribe(function (res) {
            _this.authenticateService.setAuthUser(res.data);
        });
        this.authUser = this.authenticateService.getAuthUser();
        this.loadData();
    };
    SettingMenuComponent.prototype.loadData = function () {
        var _this = this;
        this.activeSetting = this.router.url.split('/')[2];
        this.utils.translateList([
            'label.team_information',
            'label.notification',
            'label.account_security',
            'label.team_billing',
            'label.secure_mail_setting',
            'label.secure_drive_setting',
        ], {}).subscribe(function (res) {
            _this.items = [
                {
                    label: '<h2 class="header-custom">Settings</h2>',
                    escape: false,
                    items: [
                        {
                            id: 'info',
                            label: res['label.team_information'],
                            routerLink: ['/setting/info'],
                            icon: 'fas fa-info-circle',
                            styleClass: (_this.activeSetting == 'info') ? 'activeSetting p-border-top-1' : 'p-border-top-1',
                        },
                        {
                            id: 'notification',
                            label: res['label.notification'],
                            routerLink: ['/setting/notification'],
                            icon: 'fas fa-bell',
                            styleClass: (_this.activeSetting == 'notification') ? 'activeSetting' : '',
                        },
                        {
                            id: 'account-policy',
                            label: res['label.account_security'],
                            routerLink: ['/setting/account-policy'],
                            icon: 'fas fa-users-cog',
                            styleClass: (_this.activeSetting === 'account-policy') ? 'activeSetting' : '',
                        },
                        {
                            id: 'billing',
                            label: res['label.team_billing'],
                            routerLink: ['/setting/billing'],
                            icon: 'fas fa-shopping-cart',
                            styleClass: (_this.activeSetting === 'billing') ? 'activeSetting' : '',
                        },
                        {
                            id: 'secure-drive',
                            label: res['label.secure_drive_setting'],
                            styleClass: (!_this.authenticateService.isUseSDGlobal)
                                ? 'p-d-none' : (_this.activeSetting === 'secure-drive') ? 'activeSetting' : '',
                            icon: 'fas fa-cog',
                            routerLink: ['/setting/secure-drive'],
                        },
                        {
                            id: 'secure-mail',
                            label: res['label.secure_mail_setting'],
                            styleClass: (_this.authUser && (!_this.authenticateService.isUseSMGlobal
                                || _this.authenticateService.paymentTypeGlobal == constant_module_1.PaymentType.Online))
                                ? 'p-d-none' : (_this.activeSetting === 'secure-mail') ? 'activeSetting' : '',
                            icon: 'fas fa-cog',
                            routerLink: ['/setting/secure-mail'],
                        }
                    ]
                }
            ];
        });
    };
    SettingMenuComponent.prototype.activeMenuSetting = function (event) {
        var node;
        if (event.target.classList.contains('p-submenu-header') == true) {
            node = 'submenu';
        }
        else if (event.target.tagName === 'SPAN') {
            node = event.target.parentNode.parentNode;
        }
        else {
            node = event.target.parentNode;
        }
        if (node != 'submenu' && node.getElementsByClassName('p-menuitem').length === 0) {
            var menuitem = document.getElementsByClassName('p-menuitem');
            for (var i = 0; i < menuitem.length; i++) {
                menuitem[i].classList.remove('activeSetting');
            }
            node.classList.add('activeSetting');
            this.activeSetting = event.target.id;
            this.broadcastService.broadcast('load-menu-setting', { 'data': this.activeSetting });
        }
    };
    SettingMenuComponent.ɵfac = function SettingMenuComponent_Factory(t) { return new (t || SettingMenuComponent)(i0.ɵɵdirectiveInject(i1.UtilsService), i0.ɵɵdirectiveInject(i2.BroadcastService), i0.ɵɵdirectiveInject(i3.AuthenticateService), i0.ɵɵdirectiveInject(i4.Router)); };
    SettingMenuComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SettingMenuComponent, selectors: [["app-setting-menu"]], decls: 1, vars: 1, consts: [[1, "setting-menu", "p-border-bottom-1", 3, "model", "click"]], template: function SettingMenuComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "p-menu", 0);
            i0.ɵɵlistener("click", function SettingMenuComponent_Template_p_menu_click_0_listener($event) { return ctx.activeMenuSetting($event); });
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵproperty("model", ctx.items);
        } }, directives: [i5.Menu], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vc2V0dGluZy9zZXR0aW5nLW1lbnUvc2V0dGluZy1tZW51LmNvbXBvbmVudC5zY3NzIn0= */"] });
    return SettingMenuComponent;
}());
exports.SettingMenuComponent = SettingMenuComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SettingMenuComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-setting-menu',
                templateUrl: './setting-menu.component.html',
                styleUrls: ['./setting-menu.component.scss']
            }]
    }], function () { return [{ type: i1.UtilsService }, { type: i2.BroadcastService }, { type: i3.AuthenticateService }, { type: i4.Router }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/setting/setting.component.ts":
/*!*********************************************************!*\
  !*** ./src/app/team-admin/setting/setting.component.ts ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.SettingComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var constant_module_1 = __webpack_require__(/*! ../../common/constant.module */ "./src/app/common/constant.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ./setting-menu/setting-menu.component */ "./src/app/team-admin/setting/setting-menu/setting-menu.component.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var SettingComponent = /** @class */ (function () {
    function SettingComponent(router, authenticateService) {
        this.router = router;
        this.authenticateService = authenticateService;
    }
    SettingComponent.prototype.ngOnInit = function () {
        this.authUser = this.authenticateService.getAuthUser();
        if (this.authUser.role_id !== constant_module_1.SystemRole.TeamAdmin) {
            this.router.navigate(['/member']);
        }
    };
    SettingComponent.ɵfac = function SettingComponent_Factory(t) { return new (t || SettingComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.AuthenticateService)); };
    SettingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SettingComponent, selectors: [["app-setting"]], decls: 12, vars: 5, consts: [[1, "menu-setting-layout", "p-shadow-2"], ["id", "content-wrapper", 1, "d-flex", "flex-column", "p-width-100"], ["id", "content", 1, "p-width-100"], [1, "header-setting-custom"], [1, "p-pl-3", "p-pt-5", "p-text-secondary", "header-custom"], [1, "setting-header"], [1, "p-col"]], template: function SettingComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelement(1, "app-setting-menu");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(2, "div", 1);
            i0.ɵɵelementStart(3, "div", 2);
            i0.ɵɵelementStart(4, "div", 3);
            i0.ɵɵelementStart(5, "h2", 4);
            i0.ɵɵtext(6);
            i0.ɵɵpipe(7, "uppercase");
            i0.ɵɵpipe(8, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(9, "div", 5);
            i0.ɵɵelementStart(10, "div", 6);
            i0.ɵɵelement(11, "router-outlet");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(6);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 1, i0.ɵɵpipeBind1(8, 3, "header.setting.title")));
        } }, directives: [i3.SettingMenuComponent, i1.RouterOutlet], pipes: [i4.UpperCasePipe, i5.TranslatePipe], styles: [".header-setting-custom[_ngcontent-%COMP%] {\n  height: 68px;\n  position: fixed;\n  width: 100%;\n  background-color: #fff;\n  z-index: 99;\n}\n\n.menu-setting-layout[_ngcontent-%COMP%] {\n  position: fixed;\n  bottom: 0;\n  top: 3.5rem;\n  border-radius: 0;\n}\n\n@media only screen and (min-width: 992px) {\n  .setting-header[_ngcontent-%COMP%] {\n    margin-left: 220px;\n  }\n\n  .setting-menu[_ngcontent-%COMP%]   .p-menu[_ngcontent-%COMP%] {\n    max-width: 220px;\n  }\n\n  .menu-setting-layout[_ngcontent-%COMP%] {\n    width: 220px;\n  }\n}\n\n@media only screen and (max-width: 992px) {\n  .setting-header[_ngcontent-%COMP%] {\n    margin-left: 150px;\n  }\n\n  .setting-menu[_ngcontent-%COMP%]   .p-menu[_ngcontent-%COMP%] {\n    max-width: 150px;\n  }\n\n  .menu-setting-layout[_ngcontent-%COMP%] {\n    width: 150px;\n  }\n}\n\n@media only screen and (max-width: 576px) {\n  .setting-header[_ngcontent-%COMP%] {\n    margin-left: 50px;\n  }\n\n  .setting-menu[_ngcontent-%COMP%]   .p-menu[_ngcontent-%COMP%] {\n    max-width: 50px;\n  }\n\n  .menu-setting-layout[_ngcontent-%COMP%] {\n    width: 50px;\n  }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vc2V0dGluZy9zZXR0aW5nLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC90ZWFtLWFkbWluL3NldHRpbmcvc2V0dGluZy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQUE7RUFDQSxlQUFBO0VBQ0EsV0FBQTtFQUNBLHNCQUFBO0VBQ0EsV0FBQTtBQ0NGOztBREVBO0VBQ0UsZUFBQTtFQUNBLFNBQUE7RUFDQSxXQUFBO0VBQ0EsZ0JBQUE7QUNDRjs7QURFQTtFQUNFO0lBQ0Usa0JBQUE7RUNDRjs7RURDQTtJQUNFLGdCQUFBO0VDRUY7O0VEQ0E7SUFDRSxZQUFBO0VDRUY7QUFDRjs7QURDQTtFQUNFO0lBQ0Usa0JBQUE7RUNDRjs7RURDQTtJQUNFLGdCQUFBO0VDRUY7O0VEQUE7SUFDRSxZQUFBO0VDR0Y7QUFDRjs7QURBQTtFQUNFO0lBQ0UsaUJBQUE7RUNFRjs7RURBQTtJQUNFLGVBQUE7RUNHRjs7RUREQTtJQUNFLFdBQUE7RUNJRjtBQUNGIiwiZmlsZSI6InNyYy9hcHAvdGVhbS1hZG1pbi9zZXR0aW5nL3NldHRpbmcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuaGVhZGVyLXNldHRpbmctY3VzdG9tIHtcbiAgaGVpZ2h0OiA2OHB4O1xuICBwb3NpdGlvbjogZml4ZWQ7XG4gIHdpZHRoOiAxMDAlO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICB6LWluZGV4OiA5OTtcbn1cblxuLm1lbnUtc2V0dGluZy1sYXlvdXQge1xuICBwb3NpdGlvbjogZml4ZWQ7XG4gIGJvdHRvbTogMDtcbiAgdG9wOiAzLjVyZW07XG4gIGJvcmRlci1yYWRpdXM6IDA7XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1pbi13aWR0aDogOTkycHgpIHtcbiAgLnNldHRpbmctaGVhZGVyIHtcbiAgICBtYXJnaW4tbGVmdDogMjIwcHg7XG4gIH1cbiAgLnNldHRpbmctbWVudSAucC1tZW51IHtcbiAgICBtYXgtd2lkdGg6IDIyMHB4O1xuICB9XG5cbiAgLm1lbnUtc2V0dGluZy1sYXlvdXQge1xuICAgIHdpZHRoOiAyMjBweDtcbiAgfVxufVxuXG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDk5MnB4KSB7XG4gIC5zZXR0aW5nLWhlYWRlciB7XG4gICAgbWFyZ2luLWxlZnQ6IDE1MHB4O1xuICB9XG4gIC5zZXR0aW5nLW1lbnUgLnAtbWVudSB7XG4gICAgbWF4LXdpZHRoOiAxNTBweDtcbiAgfVxuICAubWVudS1zZXR0aW5nLWxheW91dCB7XG4gICAgd2lkdGg6IDE1MHB4O1xuICB9XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogNTc2cHgpIHtcbiAgLnNldHRpbmctaGVhZGVyIHtcbiAgICBtYXJnaW4tbGVmdDogNTBweDtcbiAgfVxuICAuc2V0dGluZy1tZW51IC5wLW1lbnUge1xuICAgIG1heC13aWR0aDogNTBweDtcbiAgfVxuICAubWVudS1zZXR0aW5nLWxheW91dCB7XG4gICAgd2lkdGg6IDUwcHg7XG4gIH1cbn1cbiIsIi5oZWFkZXItc2V0dGluZy1jdXN0b20ge1xuICBoZWlnaHQ6IDY4cHg7XG4gIHBvc2l0aW9uOiBmaXhlZDtcbiAgd2lkdGg6IDEwMCU7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIHotaW5kZXg6IDk5O1xufVxuXG4ubWVudS1zZXR0aW5nLWxheW91dCB7XG4gIHBvc2l0aW9uOiBmaXhlZDtcbiAgYm90dG9tOiAwO1xuICB0b3A6IDMuNXJlbTtcbiAgYm9yZGVyLXJhZGl1czogMDtcbn1cblxuQG1lZGlhIG9ubHkgc2NyZWVuIGFuZCAobWluLXdpZHRoOiA5OTJweCkge1xuICAuc2V0dGluZy1oZWFkZXIge1xuICAgIG1hcmdpbi1sZWZ0OiAyMjBweDtcbiAgfVxuXG4gIC5zZXR0aW5nLW1lbnUgLnAtbWVudSB7XG4gICAgbWF4LXdpZHRoOiAyMjBweDtcbiAgfVxuXG4gIC5tZW51LXNldHRpbmctbGF5b3V0IHtcbiAgICB3aWR0aDogMjIwcHg7XG4gIH1cbn1cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1heC13aWR0aDogOTkycHgpIHtcbiAgLnNldHRpbmctaGVhZGVyIHtcbiAgICBtYXJnaW4tbGVmdDogMTUwcHg7XG4gIH1cblxuICAuc2V0dGluZy1tZW51IC5wLW1lbnUge1xuICAgIG1heC13aWR0aDogMTUwcHg7XG4gIH1cblxuICAubWVudS1zZXR0aW5nLWxheW91dCB7XG4gICAgd2lkdGg6IDE1MHB4O1xuICB9XG59XG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDU3NnB4KSB7XG4gIC5zZXR0aW5nLWhlYWRlciB7XG4gICAgbWFyZ2luLWxlZnQ6IDUwcHg7XG4gIH1cblxuICAuc2V0dGluZy1tZW51IC5wLW1lbnUge1xuICAgIG1heC13aWR0aDogNTBweDtcbiAgfVxuXG4gIC5tZW51LXNldHRpbmctbGF5b3V0IHtcbiAgICB3aWR0aDogNTBweDtcbiAgfVxufSJdfQ== */"] });
    return SettingComponent;
}());
exports.SettingComponent = SettingComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(SettingComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-setting',
                templateUrl: './setting.component.html',
                styleUrls: ['./setting.component.scss']
            }]
    }], function () { return [{ type: i1.Router }, { type: i2.AuthenticateService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/setting/team-info/team-info.component.ts":
/*!*********************************************************************!*\
  !*** ./src/app/team-admin/setting/team-info/team-info.component.ts ***!
  \*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TeamInfoComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var api_1 = __webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js");
var constant_module_1 = __webpack_require__(/*! ../../../common/constant.module */ "./src/app/common/constant.module.ts");
var environment_1 = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
var validator_module_1 = __webpack_require__(/*! ../../../common/validator.module */ "./src/app/common/validator.module.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/authenticate.service */ "./src/app/shared/services/authenticate.service.ts"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/team.service */ "./src/app/shared/services/team.service.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/broadcast.service */ "./src/app/shared/broadcast.service.ts"));
var i6 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/services/member.service */ "./src/app/shared/services/member.service.ts"));
var i7 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i8 = tslib_1.__importStar(__webpack_require__(/*! ../../../shared/utils.service */ "./src/app/shared/utils.service.ts"));
var i9 = tslib_1.__importStar(__webpack_require__(/*! primeng/tooltip */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-tooltip.js"));
var i10 = tslib_1.__importStar(__webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js"));
var i11 = tslib_1.__importStar(__webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js"));
var i12 = tslib_1.__importStar(__webpack_require__(/*! primeng/ripple */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-ripple.js"));
var i13 = tslib_1.__importStar(__webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js"));
var i14 = tslib_1.__importStar(__webpack_require__(/*! primeng/confirmdialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-confirmdialog.js"));
var i15 = tslib_1.__importStar(__webpack_require__(/*! ngx-image-cropper */ "./node_modules/ngx-image-cropper/__ivy_ngcc__/fesm5/ngx-image-cropper.js"));
var i16 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
function TeamInfoComponent_i_14_Template(rf, ctx) { if (rf & 1) {
    var _r11 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "i", 35);
    i0.ɵɵlistener("click", function TeamInfoComponent_i_14_Template_i_click_0_listener() { i0.ɵɵrestoreView(_r11); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.confirmResetLogo(); });
    i0.ɵɵpipe(1, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵpropertyInterpolate("pTooltip", i0.ɵɵpipeBind1(1, 1, "tooltip.reset_logo"));
} }
function TeamInfoComponent_div_24_small_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.required"), " ");
} }
function TeamInfoComponent_div_24_small_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "small");
    i0.ɵɵtext(1);
    i0.ɵɵpipe(2, "translate");
    i0.ɵɵelementEnd();
} if (rf & 2) {
    i0.ɵɵadvance(1);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "errors.special_chars"), " ");
} }
function TeamInfoComponent_div_24_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 36);
    i0.ɵɵtemplate(1, TeamInfoComponent_div_24_small_1_Template, 3, 3, "small", 26);
    i0.ɵɵtemplate(2, TeamInfoComponent_div_24_small_2_Template, 3, 3, "small", 26);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", (ctx_r2.teamInfoFrm.controls["teamName"].errors == null ? null : ctx_r2.teamInfoFrm.controls["teamName"].errors.required) || (ctx_r2.teamInfoFrm.controls["teamName"].errors == null ? null : ctx_r2.teamInfoFrm.controls["teamName"].errors.whitespace));
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngIf", ctx_r2.teamInfoFrm.controls["teamName"].errors == null ? null : ctx_r2.teamInfoFrm.controls["teamName"].errors.pattern);
} }
function TeamInfoComponent_div_41_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 14);
    i0.ɵɵelementStart(1, "label", 18);
    i0.ɵɵtext(2);
    i0.ɵɵpipe(3, "translate");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(4, "div", 20);
    i0.ɵɵelementStart(5, "span", 21);
    i0.ɵɵtext(6);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "label.common.project_usage"), " ");
    i0.ɵɵadvance(4);
    i0.ɵɵtextInterpolate1(" ", ctx_r3.teamInfo["projects_usage"], " ");
} }
function TeamInfoComponent_span_48_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 37);
    i0.ɵɵelementEnd();
} }
function TeamInfoComponent_span_49_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 38);
    i0.ɵɵelementEnd();
} }
function TeamInfoComponent_ng_template_53_Template(rf, ctx) { if (rf & 1) {
    var _r15 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "form", 39);
    i0.ɵɵelementStart(1, "div", 12);
    i0.ɵɵelementStart(2, "div", 3);
    i0.ɵɵelementStart(3, "image-cropper", 40);
    i0.ɵɵlistener("imageCropped", function TeamInfoComponent_ng_template_53_Template_image_cropper_imageCropped_3_listener($event) { i0.ɵɵrestoreView(_r15); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.imageCropped($event); })("imageLoaded", function TeamInfoComponent_ng_template_53_Template_image_cropper_imageLoaded_3_listener() { i0.ɵɵrestoreView(_r15); var ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.imageLoaded(); })("cropperReady", function TeamInfoComponent_ng_template_53_Template_image_cropper_cropperReady_3_listener() { i0.ɵɵrestoreView(_r15); var ctx_r17 = i0.ɵɵnextContext(); return ctx_r17.cropperReady(); })("loadImageFailed", function TeamInfoComponent_ng_template_53_Template_image_cropper_loadImageFailed_3_listener() { i0.ɵɵrestoreView(_r15); var ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.loadImageFailed(); });
    i0.ɵɵelementEnd();
    i0.ɵɵelement(4, "img", 41);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r6 = i0.ɵɵnextContext();
    i0.ɵɵproperty("formGroup", ctx_r6.logoFrm);
    i0.ɵɵadvance(3);
    i0.ɵɵproperty("imageChangedEvent", ctx_r6.imageChangedEvent)("maintainAspectRatio", true)("aspectRatio", 128 / 128);
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("src", ctx_r6.croppedImg, i0.ɵɵsanitizeUrl);
} }
function TeamInfoComponent_span_60_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 37);
    i0.ɵɵelementEnd();
} }
function TeamInfoComponent_span_61_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "span");
    i0.ɵɵelement(1, "i", 38);
    i0.ɵɵelementEnd();
} }
var TeamInfoComponent = /** @class */ (function () {
    function TeamInfoComponent(fb, authenticateService, teamService, location, broadcastService, memberService, confirmationService, messageService, utils) {
        this.fb = fb;
        this.authenticateService = authenticateService;
        this.teamService = teamService;
        this.location = location;
        this.broadcastService = broadcastService;
        this.memberService = memberService;
        this.confirmationService = confirmationService;
        this.messageService = messageService;
        this.utils = utils;
        this.teamInfoFrm = new forms_1.FormGroup({});
        this.logoFrm = new forms_1.FormGroup({});
        this.uploadedFiles = [];
        this.teamInfo = {};
        this.isChange = false;
        this.imageChangedEvent = '';
        // dialog change logo
        this.displayLogoModal = false;
        this.broadcastService.broadcast('load-menu-setting');
    }
    TeamInfoComponent.prototype.ngOnInit = function () {
        this.isUseSDGlobal = this.authenticateService.isUseSDGlobal;
        this.authUser = this.authenticateService.getAuthUser();
        this.loadData();
        this.teamInfoFrm = this.fb.group({
            teamName: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.SCRIPT_PATTERN),
                    validator_module_1.noWhitespaceValidator
                ]
            ]
        });
        this.logoFrm = this.fb.group({
            mailAddress: ['', [
                    forms_1.Validators.required,
                    forms_1.Validators.pattern(constant_module_1.Constant.EMAIL_PATTERN)
                ]
            ]
        });
    };
    TeamInfoComponent.prototype.checkValueChanges = function () {
        var _this = this;
        this.teamInfoFrm.valueChanges.subscribe(function (val) {
            if (_this.oldTeamName) {
                _this.isChange = (val && JSON.stringify(_this.oldTeamName) !== JSON.stringify(val.teamName));
            }
        });
    };
    TeamInfoComponent.prototype.loadData = function () {
        var _this = this;
        this.teamService.getTeamInfo(this.authUser.team_id).subscribe(function (res) {
            if (res.status === 200) {
                _this.teamInfo = res.data;
                _this.teamInfoFrm.controls['teamName'].setValue(_this.teamInfo['name']);
                _this.isDefaultLogo = res.data.default_logo;
                _this.logoURL = (_this.isDefaultLogo || _this.isDefaultLogo === undefined) ? 'assets/images/689Cloud-large.png' :
                    'https://' + environment_1.environment.app_amazons3_bucket + environment_1.environment.suffix_amazon_s3 + environment_1.environment.logo_path
                        + _this.authUser.team_id + '/' + res.data.logo_url;
                _this.oldTeamName = res.data.name;
                _this.checkValueChanges();
                _this.broadcastService.broadcast('load-logo', res.data);
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
        });
    };
    TeamInfoComponent.prototype.doUpdateTeamInfo = function (valid) {
        var _this = this;
        if (!valid) {
            return;
        }
        this.submitting = true;
        var params = {
            is_update_name: true,
            team_id: this.authUser.team_id,
            name: this.teamInfoFrm.value.teamName
        };
        this.teamService.updateTeamInfo(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
                _this.oldTeamName = _this.teamInfoFrm.value.teamName;
                _this.loadData();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.isChange = false;
            _this.submitting = false;
        }, function (err) {
            console.log('error', err);
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submitting = false;
        });
    };
    TeamInfoComponent.prototype.doChangeLogo = function () {
        var _this = this;
        if (!this.croppedImg || this.submittingChangeLogo) {
            return;
        }
        this.submittingChangeLogo = true;
        var blob = this.utils.dataURItoBlob(this.croppedImg);
        var formData = new FormData();
        formData.append('file', blob);
        this.teamService.updateTeamLogo(this.authUser.team_id, formData).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
                _this.displayLogoModal = false;
                _this.authenticateService.getAuthInfo().subscribe(function (res) {
                    _this.authenticateService.setAuthUser(res.data);
                });
                _this.loadData();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submittingChangeLogo = false;
        }, function (err) {
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submittingChangeLogo = false;
        });
    };
    TeamInfoComponent.prototype.fileChangeEvent = function (event) {
        this.imageChangedEvent = event;
        if (event.target.files.length > 0) {
            this.displayLogoModal = true;
        }
    };
    TeamInfoComponent.prototype.imageCropped = function (event) {
        this.croppedImg = event.base64;
    };
    TeamInfoComponent.prototype.imageLoaded = function () {
        // show cropper
    };
    TeamInfoComponent.prototype.cropperReady = function () {
        // cropper ready
    };
    TeamInfoComponent.prototype.loadImageFailed = function () {
        // show message
        this.displayLogoModal = false;
        this.messageService.add({
            key: 'toast',
            severity: 'error',
            detail: this.utils.translate('errors.un_support_extension')
        });
    };
    TeamInfoComponent.prototype.thisFileUpload = function () {
        if (this.submittingChangeLogo) {
            return;
        }
        document.getElementById('file').click();
    };
    TeamInfoComponent.prototype.goBack = function () {
        this.location.back();
    };
    TeamInfoComponent.prototype.onMax = function (event) {
        if (event.maximized) {
            document.getElementById('dialog_logo').style.width = '100vw';
        }
        else {
            document.getElementById('dialog_logo').style.width = '70vw';
        }
    };
    TeamInfoComponent.prototype.confirmResetLogo = function () {
        var _this = this;
        if (this.submittingChangeLogo) {
            return;
        }
        this.confirmationService.confirm({
            message: this.utils.translate('message.reset_logo.content'),
            header: this.utils.translate('message.reset_logo.title'),
            icon: 'pi pi-exclamation-triangle',
            accept: function () {
                _this.doResetLogo();
            },
            reject: function () {
            }
        });
    };
    TeamInfoComponent.prototype.doResetLogo = function () {
        var _this = this;
        if (this.submittingChangeLogo) {
            return;
        }
        this.submittingChangeLogo = true;
        var params = {
            team_id: this.authUser.team_id,
        };
        this.teamService.resetDefaultLogo(params).subscribe(function (res) {
            if (res.status === 200) {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'success',
                    detail: _this.utils.translate('default_toast.update_success')
                });
                _this.authenticateService.getAuthInfo().subscribe(function (res) {
                    _this.authenticateService.setAuthUser(res.data);
                });
                _this.loadData();
            }
            else {
                _this.messageService.add({
                    key: 'toast',
                    severity: 'error',
                    detail: _this.utils.translate('sever_errors.' + res.status)
                });
            }
            _this.submittingChangeLogo = false;
        }, function (err) {
            console.log('error', err);
            _this.messageService.add({
                key: 'toast',
                severity: 'error',
                detail: _this.utils.translate('sever_errors.' + err.status)
            });
            _this.submittingChangeLogo = false;
        });
    };
    TeamInfoComponent.ɵfac = function TeamInfoComponent_Factory(t) { return new (t || TeamInfoComponent)(i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.AuthenticateService), i0.ɵɵdirectiveInject(i3.TeamService), i0.ɵɵdirectiveInject(i4.Location), i0.ɵɵdirectiveInject(i5.BroadcastService), i0.ɵɵdirectiveInject(i6.MemberService), i0.ɵɵdirectiveInject(i7.ConfirmationService), i0.ɵɵdirectiveInject(i7.MessageService), i0.ɵɵdirectiveInject(i8.UtilsService)); };
    TeamInfoComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TeamInfoComponent, selectors: [["app-team-info"]], features: [i0.ɵɵProvidersFeature([api_1.ConfirmationService])], decls: 71, vars: 73, consts: [[1, "setting-container"], [1, "p-card", "p-shadow-2", "p-width-100"], [1, "p-card-body"], [1, "p-col-12"], [1, "p-text-bold", "p-text-secondary"], [1, "p-col-12", "p-text-center", "h-172"], ["id", "teamLogo", "alt", "logo", 1, "logo-size", "cs-pointer", 3, "src", "click"], ["type", "file", "name", "logoFile", "id", "file", "accept", "image/*", 2, "display", "none", 3, "change"], ["logoFile", ""], ["tooltipPosition", "top", 1, "pi", "pi-cog", "cs-pointer", "pi-spin", 3, "pTooltip", "click"], ["class", "p-ml-2 pi pi-undo cs-pointer", "tooltipPosition", "top", 3, "pTooltip", "click", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "p-grid"], [1, "p-col-12", "p-md-6"], [1, "p-col-12", "display-grid"], ["for", "teamName", 1, "p-text-small", "p-mb-1", "required", "p-text-bold"], ["id", "teamName", "type", "text", "required", "", "maxlength", "64", "formControlName", "teamName", "pInputText", "", 1, "p-width-100", 3, "ngClass"], ["class", "p-invalid", 4, "ngIf"], [1, "p-text-small", "p-text-bold"], [1, "p-col-12", "p-pl-0"], [1, "p-col-12", "p-pl-0", "p-py-2"], [1, "p-badge", "p-badge-secondary"], ["class", "p-col-12 display-grid", 4, "ngIf"], [1, "p-col-12", "p-mx-0", "p-text-right"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-arrow-left p-button-icon-left", 1, "p-button-raised", "p-button-warning", "p-mr-2", "p-field", 3, "label", "click"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-button-raised", "p-button-primary", "p-field", 3, "label", "disabled"], [4, "ngIf"], ["position", "left", "id", "dialog_logo", "styleClass", "custom-dialog", 3, "header", "visible", "modal", "maximizable", "draggable", "resizable", "baseZIndex", "visibleChange", "onMaximize"], ["pTemplate", "body"], ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-times p-button-icon-left", 1, "p-button-raised", "p-button-secondary", "p-button-outlined", "p-mr-2", 3, "label", "click"], ["pButton", "", "pRipple", "", "type", "submit", 1, "p-button-raised", "p-button-primary", 3, "label", "disabled", "click"], ["styleClass", "md-dialog", "position", "left"], ["cd", ""], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-times p-button-icon-left", 1, "p-button-raised", "p-button-secondary", "p-button-outlined", "p-mr-2", 3, "label", "click"], ["type", "button", "pButton", "", "pRipple", "", "icon", "pi pi-check p-button-icon-left", 1, "p-button-raised", "p-button-primary", 3, "label", "click"], ["tooltipPosition", "top", 1, "p-ml-2", "pi", "pi-undo", "cs-pointer", 3, "pTooltip", "click"], [1, "p-invalid"], [1, "pi", "pi-save", "p-button-icon-left"], [1, "pi", "pi-spin", "pi-spinner", "p-button-icon-left"], [3, "formGroup"], ["format", "png", 3, "imageChangedEvent", "maintainAspectRatio", "aspectRatio", "imageCropped", "imageLoaded", "cropperReady", "loadImageFailed"], ["height", "100", "alt", "new logo", 1, "ng-star-inserted", 3, "src"]], template: function TeamInfoComponent_Template(rf, ctx) { if (rf & 1) {
            var _r19 = i0.ɵɵgetCurrentView();
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelementStart(2, "div", 2);
            i0.ɵɵelementStart(3, "div", 3);
            i0.ɵɵelementStart(4, "label", 4);
            i0.ɵɵtext(5);
            i0.ɵɵpipe(6, "uppercase");
            i0.ɵɵpipe(7, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(8, "div", 5);
            i0.ɵɵelementStart(9, "img", 6);
            i0.ɵɵlistener("click", function TeamInfoComponent_Template_img_click_9_listener() { i0.ɵɵrestoreView(_r19); var _r0 = i0.ɵɵreference(11); _r0.value = ""; return ctx.thisFileUpload(); });
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(10, "input", 7, 8);
            i0.ɵɵlistener("change", function TeamInfoComponent_Template_input_change_10_listener($event) { return ctx.fileChangeEvent($event); });
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(12, "i", 9);
            i0.ɵɵlistener("click", function TeamInfoComponent_Template_i_click_12_listener() { i0.ɵɵrestoreView(_r19); var _r0 = i0.ɵɵreference(11); _r0.value = ""; return ctx.thisFileUpload(); });
            i0.ɵɵpipe(13, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(14, TeamInfoComponent_i_14_Template, 2, 3, "i", 10);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(15, "form", 11);
            i0.ɵɵlistener("ngSubmit", function TeamInfoComponent_Template_form_ngSubmit_15_listener() { return ctx.doUpdateTeamInfo(ctx.teamInfoFrm.valid); });
            i0.ɵɵelementStart(16, "div", 12);
            i0.ɵɵelementStart(17, "div", 13);
            i0.ɵɵelementStart(18, "div", 14);
            i0.ɵɵelementStart(19, "label", 15);
            i0.ɵɵtext(20);
            i0.ɵɵpipe(21, "titlecase");
            i0.ɵɵpipe(22, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelement(23, "input", 16);
            i0.ɵɵtemplate(24, TeamInfoComponent_div_24_Template, 3, 2, "div", 17);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(25, "div", 14);
            i0.ɵɵelementStart(26, "label", 18);
            i0.ɵɵtext(27);
            i0.ɵɵpipe(28, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(29, "div", 19);
            i0.ɵɵelementStart(30, "span");
            i0.ɵɵtext(31);
            i0.ɵɵpipe(32, "date");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(33, "div", 13);
            i0.ɵɵelementStart(34, "div", 14);
            i0.ɵɵelementStart(35, "label", 18);
            i0.ɵɵtext(36);
            i0.ɵɵpipe(37, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(38, "div", 20);
            i0.ɵɵelementStart(39, "span", 21);
            i0.ɵɵtext(40);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵtemplate(41, TeamInfoComponent_div_41_Template, 7, 4, "div", 22);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(42, "div", 23);
            i0.ɵɵelementStart(43, "button", 24);
            i0.ɵɵlistener("click", function TeamInfoComponent_Template_button_click_43_listener() { return ctx.goBack(); });
            i0.ɵɵpipe(44, "titlecase");
            i0.ɵɵpipe(45, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(46, "button", 25);
            i0.ɵɵpipe(47, "translate");
            i0.ɵɵtemplate(48, TeamInfoComponent_span_48_Template, 2, 0, "span", 26);
            i0.ɵɵtemplate(49, TeamInfoComponent_span_49_Template, 2, 0, "span", 26);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(50, "p-dialog", 27);
            i0.ɵɵlistener("visibleChange", function TeamInfoComponent_Template_p_dialog_visibleChange_50_listener($event) { return ctx.displayLogoModal = $event; })("onMaximize", function TeamInfoComponent_Template_p_dialog_onMaximize_50_listener($event) { return ctx.onMax($event); });
            i0.ɵɵpipe(51, "titlecase");
            i0.ɵɵpipe(52, "translate");
            i0.ɵɵtemplate(53, TeamInfoComponent_ng_template_53_Template, 5, 5, "ng-template", 28);
            i0.ɵɵelementStart(54, "p-footer");
            i0.ɵɵelementStart(55, "button", 29);
            i0.ɵɵlistener("click", function TeamInfoComponent_Template_button_click_55_listener() { return ctx.displayLogoModal = false; });
            i0.ɵɵpipe(56, "titlecase");
            i0.ɵɵpipe(57, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(58, "button", 30);
            i0.ɵɵlistener("click", function TeamInfoComponent_Template_button_click_58_listener() { return ctx.doChangeLogo(); });
            i0.ɵɵpipe(59, "translate");
            i0.ɵɵtemplate(60, TeamInfoComponent_span_60_Template, 2, 0, "span", 26);
            i0.ɵɵtemplate(61, TeamInfoComponent_span_61_Template, 2, 0, "span", 26);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(62, "p-confirmDialog", 31, 32);
            i0.ɵɵelementStart(64, "p-footer");
            i0.ɵɵelementStart(65, "button", 33);
            i0.ɵɵlistener("click", function TeamInfoComponent_Template_button_click_65_listener() { i0.ɵɵrestoreView(_r19); var _r9 = i0.ɵɵreference(63); return _r9.reject(); });
            i0.ɵɵpipe(66, "titlecase");
            i0.ɵɵpipe(67, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(68, "button", 34);
            i0.ɵɵlistener("click", function TeamInfoComponent_Template_button_click_68_listener() { i0.ɵɵrestoreView(_r19); var _r9 = i0.ɵɵreference(63); return _r9.accept(); });
            i0.ɵɵpipe(69, "uppercase");
            i0.ɵɵpipe(70, "translate");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 32, i0.ɵɵpipeBind1(7, 34, "label.team_information")), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵproperty("src", ctx.logoURL, i0.ɵɵsanitizeUrl);
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("pTooltip", i0.ɵɵpipeBind1(13, 36, "tooltip.update_logo"));
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.isDefaultLogo);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("formGroup", ctx.teamInfoFrm);
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 38, i0.ɵɵpipeBind1(22, 40, "label.team_name")), " ");
            i0.ɵɵadvance(3);
            i0.ɵɵproperty("ngClass", (ctx.teamInfoFrm.controls["teamName"].touched || ctx.teamInfoFrm.controls["teamName"].dirty) && ctx.teamInfoFrm.controls["teamName"].invalid ? "p-invalid" : "");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.teamInfoFrm.controls["teamName"].touched || ctx.teamInfoFrm.controls["teamName"].dirty);
            i0.ɵɵadvance(3);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 42, "label.common.create_date"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(32, 44, ctx.teamInfo["create_date"], "MM/dd/YYYY HH:mm:ss"));
            i0.ɵɵadvance(5);
            i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37, 47, "label.common.number_member"), " ");
            i0.ɵɵadvance(4);
            i0.ɵɵtextInterpolate1(" ", ctx.teamInfo["number_of_user"], " ");
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.isUseSDGlobal);
            i0.ɵɵadvance(2);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(44, 49, i0.ɵɵpipeBind1(45, 51, "button.back")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(47, 53, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.teamInfoFrm.valid || ctx.submitting || !ctx.isChange);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.submitting);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.submitting);
            i0.ɵɵadvance(1);
            i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(51, 55, i0.ɵɵpipeBind1(52, 57, "message.add_logo")));
            i0.ɵɵproperty("visible", ctx.displayLogoModal)("modal", true)("maximizable", true)("draggable", false)("resizable", false)("baseZIndex", 10000);
            i0.ɵɵadvance(5);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(56, 59, i0.ɵɵpipeBind1(57, 61, "button.cancel")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(59, 63, "button.save"));
            i0.ɵɵproperty("disabled", !ctx.croppedImg || ctx.submittingChangeLogo);
            i0.ɵɵadvance(2);
            i0.ɵɵproperty("ngIf", !ctx.submittingChangeLogo);
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("ngIf", ctx.submittingChangeLogo);
            i0.ɵɵadvance(4);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(66, 65, i0.ɵɵpipeBind1(67, 67, "button.cancel")));
            i0.ɵɵadvance(3);
            i0.ɵɵpropertyInterpolate("label", i0.ɵɵpipeBind1(69, 69, i0.ɵɵpipeBind1(70, 71, "button.ok")));
        } }, directives: [i9.Tooltip, i4.NgIf, i1.ɵangular_packages_forms_forms_y, i1.NgControlStatusGroup, i1.FormGroupDirective, i1.DefaultValueAccessor, i1.RequiredValidator, i1.MaxLengthValidator, i1.NgControlStatus, i1.FormControlName, i10.InputText, i4.NgClass, i11.ButtonDirective, i12.Ripple, i13.Dialog, i7.PrimeTemplate, i7.Footer, i14.ConfirmDialog, i15.ImageCropperComponent], pipes: [i4.UpperCasePipe, i16.TranslatePipe, i4.TitleCasePipe, i4.DatePipe], styles: [".logo-size[_ngcontent-%COMP%] {\n  max-height: 150px;\n  max-width: 200px;\n}\n\n.h-172[_ngcontent-%COMP%] {\n  height: 172px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9idWl0aGFuaGxvYy9Eb2N1bWVudHMvd29ya3NwYWNlLzY4OWNsb3VkLXRlYW0tY29uc29sZS9zcmMvYXBwL3RlYW0tYWRtaW4vc2V0dGluZy90ZWFtLWluZm8vdGVhbS1pbmZvLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC90ZWFtLWFkbWluL3NldHRpbmcvdGVhbS1pbmZvL3RlYW0taW5mby5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGlCQUFBO0VBQ0EsZ0JBQUE7QUNDRjs7QURFQTtFQUNFLGFBQUE7QUNDRiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vc2V0dGluZy90ZWFtLWluZm8vdGVhbS1pbmZvLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmxvZ28tc2l6ZSB7XG4gIG1heC1oZWlnaHQ6IDE1MHB4O1xuICBtYXgtd2lkdGg6IDIwMHB4O1xufVxuXG4uaC0xNzIge1xuICBoZWlnaHQ6IDE3MnB4O1xufVxuIiwiLmxvZ28tc2l6ZSB7XG4gIG1heC1oZWlnaHQ6IDE1MHB4O1xuICBtYXgtd2lkdGg6IDIwMHB4O1xufVxuXG4uaC0xNzIge1xuICBoZWlnaHQ6IDE3MnB4O1xufSJdfQ== */"] });
    return TeamInfoComponent;
}());
exports.TeamInfoComponent = TeamInfoComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TeamInfoComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-team-info',
                templateUrl: './team-info.component.html',
                styleUrls: ['./team-info.component.scss'],
                providers: [api_1.ConfirmationService]
            }]
    }], function () { return [{ type: i1.FormBuilder }, { type: i2.AuthenticateService }, { type: i3.TeamService }, { type: i4.Location }, { type: i5.BroadcastService }, { type: i6.MemberService }, { type: i7.ConfirmationService }, { type: i7.MessageService }, { type: i8.UtilsService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/team-admin-routing.module.ts":
/*!*********************************************************!*\
  !*** ./src/app/team-admin/team-admin-routing.module.ts ***!
  \*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TeamAdminRoutingModule = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var router_1 = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
var constant_module_1 = __webpack_require__(/*! ../common/constant.module */ "./src/app/common/constant.module.ts");
var auth_guard_service_1 = __webpack_require__(/*! ../helpers/auth-guard.service */ "./src/app/helpers/auth-guard.service.ts");
var permission_guard_service_1 = __webpack_require__(/*! ../helpers/permission-guard.service */ "./src/app/helpers/permission-guard.service.ts");
var checkout_component_1 = __webpack_require__(/*! ./checkout/checkout.component */ "./src/app/team-admin/checkout/checkout.component.ts");
var dashboard_sd_component_1 = __webpack_require__(/*! ./dashboard/dashboard-sd/dashboard-sd.component */ "./src/app/team-admin/dashboard/dashboard-sd/dashboard-sd.component.ts");
var dashboard_sm_component_1 = __webpack_require__(/*! ./dashboard/dashboard-sm/dashboard-sm.component */ "./src/app/team-admin/dashboard/dashboard-sm/dashboard-sm.component.ts");
var dashboard_component_1 = __webpack_require__(/*! ./dashboard/dashboard.component */ "./src/app/team-admin/dashboard/dashboard.component.ts");
var member_create_component_1 = __webpack_require__(/*! ./member/member-create/member-create.component */ "./src/app/team-admin/member/member-create/member-create.component.ts");
var member_detail_component_1 = __webpack_require__(/*! ./member/member-detail/member-detail.component */ "./src/app/team-admin/member/member-detail/member-detail.component.ts");
var member_group_component_1 = __webpack_require__(/*! ./member/member-group/member-group.component */ "./src/app/team-admin/member/member-group/member-group.component.ts");
var member_list_component_1 = __webpack_require__(/*! ./member/member-list/member-list.component */ "./src/app/team-admin/member/member-list/member-list.component.ts");
var member_component_1 = __webpack_require__(/*! ./member/member.component */ "./src/app/team-admin/member/member.component.ts");
var my_account_component_1 = __webpack_require__(/*! ./my-account/my-account.component */ "./src/app/team-admin/my-account/my-account.component.ts");
var package_list_component_1 = __webpack_require__(/*! ./package-list/package-list.component */ "./src/app/team-admin/package-list/package-list.component.ts");
var report_component_1 = __webpack_require__(/*! ./report/report.component */ "./src/app/team-admin/report/report.component.ts");
var account_policy_component_1 = __webpack_require__(/*! ./setting/account-policy/account-policy.component */ "./src/app/team-admin/setting/account-policy/account-policy.component.ts");
var billing_component_1 = __webpack_require__(/*! ./setting/billing/billing.component */ "./src/app/team-admin/setting/billing/billing.component.ts");
var notification_component_1 = __webpack_require__(/*! ./setting/notification/notification.component */ "./src/app/team-admin/setting/notification/notification.component.ts");
var secure_drive_setting_component_1 = __webpack_require__(/*! ./setting/secure-drive-setting/secure-drive-setting.component */ "./src/app/team-admin/setting/secure-drive-setting/secure-drive-setting.component.ts");
var secure_mail_setting_component_1 = __webpack_require__(/*! ./setting/secure-mail-setting/secure-mail-setting.component */ "./src/app/team-admin/setting/secure-mail-setting/secure-mail-setting.component.ts");
var setting_component_1 = __webpack_require__(/*! ./setting/setting.component */ "./src/app/team-admin/setting/setting.component.ts");
var team_info_component_1 = __webpack_require__(/*! ./setting/team-info/team-info.component */ "./src/app/team-admin/setting/team-info/team-info.component.ts");
var team_admin_component_1 = __webpack_require__(/*! ./team-admin.component */ "./src/app/team-admin/team-admin.component.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var routes = [
    {
        path: '',
        component: team_admin_component_1.TeamAdminComponent,
        canActivate: [auth_guard_service_1.AuthGuardService],
        children: [
            {
                path: 'checkout',
                component: checkout_component_1.CheckoutComponent,
            },
            {
                path: 'package-plan',
                component: package_list_component_1.PackageListComponent,
            },
            {
                path: 'member',
                component: member_component_1.MemberComponent,
                children: [
                    { path: '', redirectTo: 'list', pathMatch: 'full' },
                    { path: 'list', component: member_list_component_1.MemberListComponent },
                    {
                        path: 'create',
                        component: member_create_component_1.MemberCreateComponent,
                        canActivate: [permission_guard_service_1.PermissionGuardService],
                        data: { roles: [constant_module_1.SystemRole.TeamAdmin, constant_module_1.SystemRole.Manager] },
                    },
                    { path: ':id', component: member_detail_component_1.MemberDetailComponent },
                    { path: 'group/:id', component: member_group_component_1.MemberGroupComponent },
                ],
            },
            {
                path: 'setting',
                component: setting_component_1.SettingComponent,
                canActivate: [permission_guard_service_1.PermissionGuardService],
                data: { roles: [constant_module_1.SystemRole.TeamAdmin] },
                children: [
                    { path: '', redirectTo: 'info', pathMatch: 'full' },
                    { path: 'info', component: team_info_component_1.TeamInfoComponent },
                    { path: 'notification', component: notification_component_1.NotificationComponent },
                    { path: 'account-policy', component: account_policy_component_1.AccountPolicyComponent },
                    { path: 'billing', component: billing_component_1.BillingComponent },
                    { path: 'secure-mail', component: secure_mail_setting_component_1.SecureMailSettingComponent },
                    { path: 'secure-drive', component: secure_drive_setting_component_1.SecureDriveSettingComponent },
                ],
            },
            { path: 'report', component: report_component_1.ReportComponent },
            {
                path: 'dashboard',
                component: dashboard_component_1.DashboardComponent,
                canActivate: [permission_guard_service_1.PermissionGuardService],
                data: { roles: [constant_module_1.SystemRole.TeamAdmin] },
                children: [
                    { path: 'secure-mail', component: dashboard_sm_component_1.DashboardSmComponent },
                    { path: 'secure-drive', component: dashboard_sd_component_1.DashboardSdComponent },
                ],
            },
            { path: 'my-account', component: my_account_component_1.MyAccountComponent },
            // redirect on startup or writing wrong URL
            { path: '**', redirectTo: 'member' },
        ],
    },
];
var TeamAdminRoutingModule = /** @class */ (function () {
    function TeamAdminRoutingModule() {
    }
    TeamAdminRoutingModule.ɵmod = i0.ɵɵdefineNgModule({ type: TeamAdminRoutingModule });
    TeamAdminRoutingModule.ɵinj = i0.ɵɵdefineInjector({ factory: function TeamAdminRoutingModule_Factory(t) { return new (t || TeamAdminRoutingModule)(); }, imports: [[router_1.RouterModule.forChild(routes)], router_1.RouterModule] });
    return TeamAdminRoutingModule;
}());
exports.TeamAdminRoutingModule = TeamAdminRoutingModule;
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TeamAdminRoutingModule, { imports: [i1.RouterModule], exports: [router_1.RouterModule] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TeamAdminRoutingModule, [{
        type: core_1.NgModule,
        args: [{
                imports: [router_1.RouterModule.forChild(routes)],
                exports: [router_1.RouterModule]
            }]
    }], null, null); })();


/***/ }),

/***/ "./src/app/team-admin/team-admin.component.ts":
/*!****************************************************!*\
  !*** ./src/app/team-admin/team-admin.component.ts ***!
  \****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TeamAdminComponent = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var i1 = tslib_1.__importStar(__webpack_require__(/*! @ngx-translate/core */ "./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js"));
var i2 = tslib_1.__importStar(__webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js"));
var i3 = tslib_1.__importStar(__webpack_require__(/*! ../rib-layout/left-menu/left-menu.component */ "./src/app/rib-layout/left-menu/left-menu.component.ts"));
var i4 = tslib_1.__importStar(__webpack_require__(/*! ../rib-layout/nav-bar/nav-bar.component */ "./src/app/rib-layout/nav-bar/nav-bar.component.ts"));
var i5 = tslib_1.__importStar(__webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js"));
var TeamAdminComponent = /** @class */ (function () {
    function TeamAdminComponent(translate, messageService) {
        this.translate = translate;
        this.messageService = messageService;
    }
    TeamAdminComponent.prototype.ngOnInit = function () {
    };
    TeamAdminComponent.ɵfac = function TeamAdminComponent_Factory(t) { return new (t || TeamAdminComponent)(i0.ɵɵdirectiveInject(i1.TranslateService), i0.ɵɵdirectiveInject(i2.MessageService)); };
    TeamAdminComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TeamAdminComponent, selectors: [["app-team-admin"]], decls: 8, vars: 0, consts: [[1, "p-d-flex"], [1, "p-d-none", "p-d-md-block", "bg-gradient-primary", "menu-layout"], ["id", "content-wrapper", 1, "d-flex", "flex-column", "p-width-100"], ["id", "content", 1, "p-width-100"], [1, "main-container"]], template: function TeamAdminComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵelement(2, "app-left-menu");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(3, "div", 2);
            i0.ɵɵelementStart(4, "div", 3);
            i0.ɵɵelement(5, "app-nav-bar");
            i0.ɵɵelementStart(6, "div", 4);
            i0.ɵɵelement(7, "router-outlet");
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
        } }, directives: [i3.LeftMenuComponent, i4.NavBarComponent, i5.RouterOutlet], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3RlYW0tYWRtaW4vdGVhbS1hZG1pbi5jb21wb25lbnQuc2NzcyJ9 */"] });
    return TeamAdminComponent;
}());
exports.TeamAdminComponent = TeamAdminComponent;
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TeamAdminComponent, [{
        type: core_1.Component,
        args: [{
                selector: 'app-team-admin',
                templateUrl: './team-admin.component.html',
                styleUrls: ['./team-admin.component.scss']
            }]
    }], function () { return [{ type: i1.TranslateService }, { type: i2.MessageService }]; }, null); })();


/***/ }),

/***/ "./src/app/team-admin/team-admin.module.ts":
/*!*************************************************!*\
  !*** ./src/app/team-admin/team-admin.module.ts ***!
  \*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TeamAdminModule = void 0;
var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
var common_1 = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
var core_1 = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
var forms_1 = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
var api_1 = __webpack_require__(/*! primeng/api */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-api.js");
var button_1 = __webpack_require__(/*! primeng/button */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-button.js");
var inputnumber_1 = __webpack_require__(/*! primeng/inputnumber */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputnumber.js");
var inputswitch_1 = __webpack_require__(/*! primeng/inputswitch */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputswitch.js");
var inputtext_1 = __webpack_require__(/*! primeng/inputtext */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-inputtext.js");
var message_1 = __webpack_require__(/*! primeng/message */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-message.js");
var dialog_1 = __webpack_require__(/*! primeng/dialog */ "./node_modules/primeng/__ivy_ngcc__/fesm2015/primeng-dialog.js");
var rib_layout_module_1 = __webpack_require__(/*! ../rib-layout/rib-layout.module */ "./src/app/rib-layout/rib-layout.module.ts");
var shared_module_1 = __webpack_require__(/*! ../shared/shared.module */ "./src/app/shared/shared.module.ts");
var checkout_component_1 = __webpack_require__(/*! ./checkout/checkout.component */ "./src/app/team-admin/checkout/checkout.component.ts");
var dashboard_sd_component_1 = __webpack_require__(/*! ./dashboard/dashboard-sd/dashboard-sd.component */ "./src/app/team-admin/dashboard/dashboard-sd/dashboard-sd.component.ts");
var dashboard_sm_component_1 = __webpack_require__(/*! ./dashboard/dashboard-sm/dashboard-sm.component */ "./src/app/team-admin/dashboard/dashboard-sm/dashboard-sm.component.ts");
var dashboard_component_1 = __webpack_require__(/*! ./dashboard/dashboard.component */ "./src/app/team-admin/dashboard/dashboard.component.ts");
var member_create_component_1 = __webpack_require__(/*! ./member/member-create/member-create.component */ "./src/app/team-admin/member/member-create/member-create.component.ts");
var member_detail_component_1 = __webpack_require__(/*! ./member/member-detail/member-detail.component */ "./src/app/team-admin/member/member-detail/member-detail.component.ts");
var member_group_component_1 = __webpack_require__(/*! ./member/member-group/member-group.component */ "./src/app/team-admin/member/member-group/member-group.component.ts");
var member_list_component_1 = __webpack_require__(/*! ./member/member-list/member-list.component */ "./src/app/team-admin/member/member-list/member-list.component.ts");
var member_component_1 = __webpack_require__(/*! ./member/member.component */ "./src/app/team-admin/member/member.component.ts");
var my_account_component_1 = __webpack_require__(/*! ./my-account/my-account.component */ "./src/app/team-admin/my-account/my-account.component.ts");
var package_item_component_1 = __webpack_require__(/*! ./package-item/package-item.component */ "./src/app/team-admin/package-item/package-item.component.ts");
var package_list_component_1 = __webpack_require__(/*! ./package-list/package-list.component */ "./src/app/team-admin/package-list/package-list.component.ts");
var payment_card_form_component_1 = __webpack_require__(/*! ./payment-card-form/payment-card-form.component */ "./src/app/team-admin/payment-card-form/payment-card-form.component.ts");
var report_component_1 = __webpack_require__(/*! ./report/report.component */ "./src/app/team-admin/report/report.component.ts");
var rpt_action_component_1 = __webpack_require__(/*! ./report/rpt-action/rpt-action.component */ "./src/app/team-admin/report/rpt-action/rpt-action.component.ts");
var rpt_detail1_component_1 = __webpack_require__(/*! ./report/rpt-detail1/rpt-detail1.component */ "./src/app/team-admin/report/rpt-detail1/rpt-detail1.component.ts");
var rpt_detail2_component_1 = __webpack_require__(/*! ./report/rpt-detail2/rpt-detail2.component */ "./src/app/team-admin/report/rpt-detail2/rpt-detail2.component.ts");
var rpt_detail3_component_1 = __webpack_require__(/*! ./report/rpt-detail3/rpt-detail3.component */ "./src/app/team-admin/report/rpt-detail3/rpt-detail3.component.ts");
var rpt_file_detail_component_1 = __webpack_require__(/*! ./report/rpt-file-detail/rpt-file-detail.component */ "./src/app/team-admin/report/rpt-file-detail/rpt-file-detail.component.ts");
var rpt_folder_detail_component_1 = __webpack_require__(/*! ./report/rpt-folder-detail/rpt-folder-detail.component */ "./src/app/team-admin/report/rpt-folder-detail/rpt-folder-detail.component.ts");
var rpt_link_detail_component_1 = __webpack_require__(/*! ./report/rpt-link-detail/rpt-link-detail.component */ "./src/app/team-admin/report/rpt-link-detail/rpt-link-detail.component.ts");
var rpt_project_detail_component_1 = __webpack_require__(/*! ./report/rpt-project-detail/rpt-project-detail.component */ "./src/app/team-admin/report/rpt-project-detail/rpt-project-detail.component.ts");
var rpt_setting_component_1 = __webpack_require__(/*! ./report/rpt-setting/rpt-setting.component */ "./src/app/team-admin/report/rpt-setting/rpt-setting.component.ts");
var rpt_show_content_type_component_1 = __webpack_require__(/*! ./report/rpt-show-content-type/rpt-show-content-type.component */ "./src/app/team-admin/report/rpt-show-content-type/rpt-show-content-type.component.ts");
var account_policy_component_1 = __webpack_require__(/*! ./setting/account-policy/account-policy.component */ "./src/app/team-admin/setting/account-policy/account-policy.component.ts");
var billing_component_1 = __webpack_require__(/*! ./setting/billing/billing.component */ "./src/app/team-admin/setting/billing/billing.component.ts");
var notification_component_1 = __webpack_require__(/*! ./setting/notification/notification.component */ "./src/app/team-admin/setting/notification/notification.component.ts");
var secure_drive_setting_component_1 = __webpack_require__(/*! ./setting/secure-drive-setting/secure-drive-setting.component */ "./src/app/team-admin/setting/secure-drive-setting/secure-drive-setting.component.ts");
var secure_mail_setting_component_1 = __webpack_require__(/*! ./setting/secure-mail-setting/secure-mail-setting.component */ "./src/app/team-admin/setting/secure-mail-setting/secure-mail-setting.component.ts");
var setting_menu_component_1 = __webpack_require__(/*! ./setting/setting-menu/setting-menu.component */ "./src/app/team-admin/setting/setting-menu/setting-menu.component.ts");
var setting_component_1 = __webpack_require__(/*! ./setting/setting.component */ "./src/app/team-admin/setting/setting.component.ts");
var team_info_component_1 = __webpack_require__(/*! ./setting/team-info/team-info.component */ "./src/app/team-admin/setting/team-info/team-info.component.ts");
var team_admin_routing_module_1 = __webpack_require__(/*! ./team-admin-routing.module */ "./src/app/team-admin/team-admin-routing.module.ts");
var team_admin_component_1 = __webpack_require__(/*! ./team-admin.component */ "./src/app/team-admin/team-admin.component.ts");
var i0 = tslib_1.__importStar(__webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js"));
var TeamAdminModule = /** @class */ (function () {
    function TeamAdminModule() {
    }
    TeamAdminModule.ɵmod = i0.ɵɵdefineNgModule({ type: TeamAdminModule });
    TeamAdminModule.ɵinj = i0.ɵɵdefineInjector({ factory: function TeamAdminModule_Factory(t) { return new (t || TeamAdminModule)(); }, providers: [api_1.MessageService], imports: [[
                common_1.CommonModule,
                shared_module_1.SharedModule,
                team_admin_routing_module_1.TeamAdminRoutingModule,
                rib_layout_module_1.RibLayoutModule,
                forms_1.FormsModule,
                forms_1.ReactiveFormsModule,
                button_1.ButtonModule,
                inputswitch_1.InputSwitchModule,
                inputnumber_1.InputNumberModule,
                inputtext_1.InputTextModule,
                message_1.MessageModule,
                dialog_1.DialogModule,
            ]] });
    return TeamAdminModule;
}());
exports.TeamAdminModule = TeamAdminModule;
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TeamAdminModule, { declarations: [team_admin_component_1.TeamAdminComponent,
        member_list_component_1.MemberListComponent,
        member_component_1.MemberComponent,
        setting_component_1.SettingComponent,
        report_component_1.ReportComponent,
        dashboard_component_1.DashboardComponent,
        member_create_component_1.MemberCreateComponent,
        member_detail_component_1.MemberDetailComponent,
        setting_menu_component_1.SettingMenuComponent,
        team_info_component_1.TeamInfoComponent,
        secure_mail_setting_component_1.SecureMailSettingComponent,
        my_account_component_1.MyAccountComponent,
        member_group_component_1.MemberGroupComponent,
        my_account_component_1.MyAccountComponent,
        rpt_project_detail_component_1.RptProjectDetailComponent,
        rpt_folder_detail_component_1.RptFolderDetailComponent,
        rpt_detail1_component_1.RptDetail1Component,
        rpt_detail2_component_1.RptDetail2Component,
        rpt_detail3_component_1.RptDetail3Component,
        rpt_action_component_1.RptActionComponent,
        rpt_link_detail_component_1.RptLinkDetailComponent,
        rpt_setting_component_1.RptSettingComponent,
        rpt_file_detail_component_1.RptFileDetailComponent,
        rpt_show_content_type_component_1.RptShowContentTypeComponent,
        notification_component_1.NotificationComponent,
        account_policy_component_1.AccountPolicyComponent,
        billing_component_1.BillingComponent,
        secure_drive_setting_component_1.SecureDriveSettingComponent,
        dashboard_sd_component_1.DashboardSdComponent,
        dashboard_sm_component_1.DashboardSmComponent,
        checkout_component_1.CheckoutComponent,
        package_list_component_1.PackageListComponent,
        package_item_component_1.PackageItemComponent,
        payment_card_form_component_1.PaymentCardFormComponent], imports: [common_1.CommonModule,
        shared_module_1.SharedModule,
        team_admin_routing_module_1.TeamAdminRoutingModule,
        rib_layout_module_1.RibLayoutModule,
        forms_1.FormsModule,
        forms_1.ReactiveFormsModule,
        button_1.ButtonModule,
        inputswitch_1.InputSwitchModule,
        inputnumber_1.InputNumberModule,
        inputtext_1.InputTextModule,
        message_1.MessageModule,
        dialog_1.DialogModule] }); })();
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(TeamAdminModule, [{
        type: core_1.NgModule,
        args: [{
                declarations: [
                    team_admin_component_1.TeamAdminComponent,
                    member_list_component_1.MemberListComponent,
                    member_component_1.MemberComponent,
                    setting_component_1.SettingComponent,
                    report_component_1.ReportComponent,
                    dashboard_component_1.DashboardComponent,
                    member_create_component_1.MemberCreateComponent,
                    member_detail_component_1.MemberDetailComponent,
                    setting_menu_component_1.SettingMenuComponent,
                    team_info_component_1.TeamInfoComponent,
                    secure_mail_setting_component_1.SecureMailSettingComponent,
                    my_account_component_1.MyAccountComponent,
                    member_group_component_1.MemberGroupComponent,
                    my_account_component_1.MyAccountComponent,
                    rpt_project_detail_component_1.RptProjectDetailComponent,
                    rpt_folder_detail_component_1.RptFolderDetailComponent,
                    rpt_detail1_component_1.RptDetail1Component,
                    rpt_detail2_component_1.RptDetail2Component,
                    rpt_detail3_component_1.RptDetail3Component,
                    rpt_action_component_1.RptActionComponent,
                    rpt_link_detail_component_1.RptLinkDetailComponent,
                    rpt_setting_component_1.RptSettingComponent,
                    rpt_file_detail_component_1.RptFileDetailComponent,
                    rpt_show_content_type_component_1.RptShowContentTypeComponent,
                    notification_component_1.NotificationComponent,
                    account_policy_component_1.AccountPolicyComponent,
                    billing_component_1.BillingComponent,
                    secure_drive_setting_component_1.SecureDriveSettingComponent,
                    dashboard_sd_component_1.DashboardSdComponent,
                    dashboard_sm_component_1.DashboardSmComponent,
                    checkout_component_1.CheckoutComponent,
                    package_list_component_1.PackageListComponent,
                    package_item_component_1.PackageItemComponent,
                    payment_card_form_component_1.PaymentCardFormComponent,
                ],
                imports: [
                    common_1.CommonModule,
                    shared_module_1.SharedModule,
                    team_admin_routing_module_1.TeamAdminRoutingModule,
                    rib_layout_module_1.RibLayoutModule,
                    forms_1.FormsModule,
                    forms_1.ReactiveFormsModule,
                    button_1.ButtonModule,
                    inputswitch_1.InputSwitchModule,
                    inputnumber_1.InputNumberModule,
                    inputtext_1.InputTextModule,
                    message_1.MessageModule,
                    dialog_1.DialogModule,
                ],
                providers: [api_1.MessageService],
            }]
    }], null, null); })();


/***/ }),

/***/ "./src/assets/i18n/en.json":
/*!*********************************!*\
  !*** ./src/assets/i18n/en.json ***!
  \*********************************/
/*! exports provided: app_title, content_types, button, features, label, place_holder, navi, header, card_header, table_header, login, errors, password_policy, sever_errors, default_toast, tooltip, message, error_type_CSV, timezone, language, months, reports, default */
/***/ (function(module) {

module.exports = JSON.parse("{\"app_title\":\"689Cloud Admin Console\",\"content_types\":{\"docx\":\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\"xlsx\":\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\"pptx\":\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\"pdf\":\"application/pdf\",\"project\":\"application/project\",\"folder\":\"application/folder\",\"csv\":\"text/csv\",\"jpeg\":\"image/jpeg\",\"ms_download\":\"application/x-msdownload\",\"ms_word\":\"application/msword\"},\"button\":{\"ok\":\"OK\",\"next\":\"next\",\"cancel\":\"CANCEL\",\"back\":\"back\",\"save\":\"SAVE\",\"register\":\"REGISTER\",\"continue\":\"continue\",\"view\":\"VIEW\",\"download\":\"DOWNLOAD\",\"add\":\"ADD\",\"delete\":\"DELETE\",\"download_csv_user_list\":\"download member list\",\"login\":\"Login\",\"import_csv\":\"Import Members From CSV File\",\"csv_template\":\"Download CSV Template\",\"transfer_account\":\"Transfer account\",\"unlock_account\":\"Unlock\",\"change_password\":\"Change password\",\"change_email\":\"Change E-mail\",\"export\":\"Export\",\"run\":\"Run\",\"move\":\"move\",\"copy\":\"copy\",\"remove\":\"remove\",\"confirm_handle_user\":{\"ignore\":\"IGNORE\",\"override\":\"OVERRIDE\"},\"generate_pin_code\":\"GENERATE PIN CODE\"},\"features\":{\"expiry_setting\":\"Expiry setting\",\"printing_control\":\"Printing control\",\"two_factor_auth\":\"2-Factor authentication\",\"secure_online_viewer\":\"Secure online viewer\",\"watermark_view_online\":\"Watermark on view online\",\"revoke_access_remotely\":\"Revoke access remotely\",\"copy_protection\":\"Copy protection\",\"tracking_documents\":\"Tracking of documents\",\"secure_shares_per_month\":\"Secure shares per month: {{ value }}\",\"secure_shares_per_year\":\"Secure shares per year: {{ value }}\",\"maximum_file_size\":\"Maximum files size: {{ value }}\",\"shared_space\":\"Shared space: {{ value }}\",\"supported_protected_files\":\"Supported protected files: PDF, Microsoft Office (docx, pptx, xlsx)\"},\"label\":{\"package\":{\"title\":\"Package Information\",\"package_name\":\"Package Name\",\"upgrade\":\"Upgrade\",\"current_plan\":\"Current Plan\",\"choose_plan\":\"Choose Plan\",\"monthly\":\"Monthly\",\"annually\":\"Annually\",\"save\":\"Save\",\"no_packages\":\"No packages available for the selected criteria.\",\"per_user_per_month\":\"per user/month\",\"minimum_user\":\"Minimum user: {{ minUser }}\",\"upgrade_secure_mail_package\":\"Secure Mail Plan\",\"upgrade_secure_drive_package\":\"Secure Drive Plan\",\"price\":\"Price\",\"expire_date\":\"Expired Date\",\"currency\":\"Currency\",\"billing_cycle\":\"Billing Cycle\",\"payment_method\":\"Payment Method\",\"downgrade\":\"Downgrade\",\"downgrade_plan\":\"Downgrade package\",\"cancel_downgrade_plan\":\"Cancel downgrade\",\"pending_downgrade\":\"Pending Downgrade\",\"cancel_downgrade\":\"Cancel Downgrade\",\"upgrade_plan\":\"Upgrade package\"},\"receipt_credit_applied\":\"Credit Applied\",\"receipt_user\":\"Users\",\"number_of_users\":\"Number of users\",\"receipt_preview\":\"Receipt Preview\",\"thank_you\":\"Thank you for the payment with {{serviceName}}\",\"charged_date\":\"Charged Date:\",\"plan\":\"Package:\",\"price_per_user\":\"Price/User:\",\"description\":\"Description\",\"quantity\":\"Quantity\",\"price\":\"Price\",\"remaining_credit\":\"Remaining Credit\",\"grand_total\":\"Grand Total\",\"contact\":\"Contact:\",\"company_slogan\":\"Secure Document Sharing and Cloud Collaboration\",\"preview\":\"Receipt Preview\",\"annually_billing_cycle\":\"{{ number_months }} months\",\"cancel_downgrade_title\":\"Cancel Downgrade Request\",\"cancel_downgrade_message\":\"Are you sure you want to cancel your downgrade request?\",\"cancel_downgrade_package\":\"Downgrade package\",\"cancel_downgrade_info\":\"By canceling this downgrade request, you will continue with your current plan and billing cycle.\",\"back\":\"Back\",\"confirm_cancel_downgrade\":\"Yes, Cancel Downgrade\",\"downgrade_warning\":\"Package downgrade warning\",\"downgrade_warning_message\":\"The plan you selected has a lower minimum user count than your current user count.\",\"current_users\":\"Current number of users\",\"min_users_in_plan\":\"Minimum number of users in the package\",\"downgrade_remove_users_warning\":\"If you continue, we will charge the number of users at the price of the downgraded package on the expiration date.\",\"proceed_downgrade\":\"Continue to downgrade\",\"cancel\":\"Cancel\",\"ok\":\"OK\",\"new_package\":\"New Package\",\"existing_package\":\"Existing Package\",\"day_remaining\":\"Days remaining\",\"amount_deducted\":\"Amount deducted\",\"amount_credit\":\"Amount credit\",\"price_adjustment_note\":\"Prices are adjusted based on the remaining days in your current billing cycle.\",\"card_holder_name\":\"Card Holder Name\",\"confirm_details\":\"Please confirm your details\",\"confirm_payment_information\":\"Confirm Payment Information\",\"total\":\"Total\",\"email\":\"E-mail\",\"name\":\"Name\",\"users\":\"Users\",\"annually\":\"Annually\",\"monthly\":\"Monthly\",\"payment_confirmation\":\"PAYMENT CONFIRMATION\",\"buy_user\":\"Buy User\",\"upgrade_plan\":\"Upgrade Plan\",\"secure_drive_plan\":\"Secure Drive Plan\",\"secure_mail_plan\":\"Secure Mail Plan\",\"user_per_month\":\"/user/month\",\"checkout\":\"Checkout\",\"your_current_plan\":\"Your Current Plan\",\"your_new_plan\":\"Your New Plan\",\"today_total\":\"Today's Total\",\"card_info\":\"Card Information\",\"recurring_annual_cost\":\"Recurring Annual Cost\",\"recurring_month_cost\":\"Recurring Month Cost\",\"summary_sub_text\":\"{{ currency }}{{ price }} x {{ number_user }} users\",\"holder_name\":\"Holder Name\",\"add_payment_card\":\"Add Payment Card\",\"show_less_features\":\"Show less features\",\"show_more_features\":\"Show more features\",\"member\":\"Members\",\"history\":\"History\",\"dashboard\":\"Dashboard\",\"settings\":\"Settings\",\"user_console\":\"User Console\",\"old_settings\":\"Old settings\",\"new_settings\":\"New settings\",\"help\":\"Help\",\"logout\":\"Logout\",\"report\":\"Reports\",\"team_information\":\"Team Information\",\"notification\":\"Notifications\",\"account_security\":\"Account Security Policy\",\"team_billing\":\"Team Billing\",\"secure_mail_setting\":\"SecureMail Settings\",\"secure_drive_setting\":\"SecureDrive Settings\",\"search_placeholder\":\"Search...\",\"system_role\":{\"admin\":\"Admin\",\"manager\":\"Manager\",\"user\":\"Member\",\"guest\":\"Guest\"},\"project_role\":{\"owner\":\"Owner\",\"editor\":\"Editor\",\"viewer\":\"Viewer\",\"previewer\":\"Previewer\",\"viewer_uploader\":\"Viewer Uploader\",\"previewer_uploader\":\"Previewer Uploader\",\"uploader\":\"Uploader\"},\"no_record\":\"There are no records\",\"override\":\"Override existing collaborator roles for this member in project(s) where the group is collaborating\",\"create_new\":\"Create new:\",\"team_name\":\"Team name\",\"common\":{\"first_name\":\"First Name\",\"middle_name\":\"Middle Name\",\"last_name\":\"Last Name\",\"mail_address\":\"E-mail Address\",\"role\":\"Role\",\"groups\":\"Groups\",\"password\":\"Password\",\"confirm_password\":\"Confirm Password\",\"select_group\":\"Select Member Group\",\"name\":\"Group Name\",\"project_name\":\"Project Name\",\"numbers_user\":\"No. Members\",\"create_date\":\"Date Created\",\"number_member\":\"Number of Members\",\"project_usage\":\"Project Usage\",\"members\":\"Member(s)\",\"description\":\"Description\",\"used_service\":\"Used Service\",\"create_by\":\"Created By\"},\"member_group\":{\"select_group_user\":\"Select Member Group\",\"list\":\"MEMBER GROUP LIST\",\"add\":\"Add New Member Group\",\"detail\":\"MEMBER GROUP DETAILS\",\"edit\":\"EDIT MEMBER GROUP\",\"add_to_group\":\"Add Members To Group\",\"copy_member_to_group\":\"Copy Members To Other Groups\",\"move_to_group\":\"Move Members To Another Group\"},\"my_account\":\"My account\",\"force_setting\":\"force settings\",\"protected_file\":\"Support protected file\",\"pdf\":\"Portable Document Format (.pdf)\",\"xls\":\"Microsoft Excel (.xlsx)\",\"doc\":\"Microsoft Word (.docx)\",\"ppt\":\"Microsoft Power Point (.pptx)\",\"image\":\"Images: (.jpg, .png, .jpeg)\",\"banned_extension\":\"Banned extensions (These file types cannot be uploaded)\",\"link_setting\":\"Link Settings\",\"link_expiry_date\":\"Link expiry date\",\"downloadable\":\"Allow download\",\"password_protect\":\"Password protect non-DRM files\",\"drm_setting\":\"DRM Settings\",\"document_expiry_date\":\"Document expiry date\",\"hour\":\"Hours (UTC)\",\"minute\":\"Minutes (UTC)\",\"printable\":\"Printable\",\"editable\":\"Editable\",\"watermark_setting\":\"Watermark settings\",\"show_wm\":\"Add watermark to online view\",\"font_size\":\"Font size\",\"position\":\"Position\",\"default\":\"Default (User's E-mail)\",\"customs\":\"Set watermark content\",\"watermark_position\":{\"center\":\"Center\",\"top-left\":\"Top-Left\",\"top-center\":\"Top-Center\",\"top-right\":\"Top-Right\",\"bottom-left\":\"Bottom-Left\",\"bottom-center\":\"Bottom-Center\",\"bottom-right\":\"Bottom-Right\",\"diagonal\":\"Diagonal\"},\"expiry_date\":{\"none\":\"None\",\"7-day\":\"7 days\",\"1-month\":\"1 month\",\"6-months\":\"6 months\",\"1-year\":\"1 year\"},\"search_type\":{\"user_info\":\"User Info\",\"file_name\":\"File Name\"},\"dashboard_page\":{\"member\":\"Member\",\"transmission\":\"Transmission\",\"storage\":\"Storage\",\"number_of_transaction\":\"Number of Transactions\",\"number_of_link\":\"Number of Links Shared\",\"transaction_text_month\":\"{{ used }} of {{ total }} transmissions used this month\",\"transaction_text_year\":\"{{ used }} of {{ total }} transmissions used this year\",\"storage_text\":\"{{ used }} of {{ storage }} used\",\"user_text\":\"{{ used }} of {{ total }} member created\"},\"current_password\":\"Current Password\",\"new_password\":\"New Password\",\"confirm_new_password\":\"Confirm Password\",\"email_notify\":\"E-MAIL NOTIFICATION AND SECURITY\",\"user_setting\":{\"email_notification\":{\"account_change\":\"Notify me when changes are made to my account\",\"encode_file_expired\":\"Notify me when protected files have expired\",\"new_comment\":\"Notify me when there are new comments\",\"security_auth\":\"Two factor authentication\",\"disable_reason\":\"(Force enable by team setting)\"}},\"pin_code\":\"PIN Code\",\"timezone\":\"Timezone\",\"language\":\"Language\",\"notify\":{\"notify_collaboration_project\":\"Allow notification to user when added to project\",\"create_new_member\":\"Allow notification to user when added to team\",\"mention_in_comment\":\"Allow notification to user when mentioned in the comment\",\"import_user_csv\":\"Enable notification to user when import user CSV\"},\"2fa_policy\":{\"title\":\"2FA POLICY\",\"two_factor\":\"Force all members to use two-factor authentication\"},\"password_policy\":{\"title\":\"PASSWORD POLICY\",\"policy_default\":\"Default\",\"policy_customs\":\"Customs\",\"min_length\":\"Min length\",\"max_length\":\"Max length\",\"lower_characters\":\"Lowercase\",\"uppercase_characters\":\"Uppercase\",\"special_characters\":\"Special\",\"numeric_characters\":\"Numeric\",\"characters\":\"characters\",\"character\":\"character(s)\"},\"session_age\":{\"title\":\"Session age\",\"hours\":\"Hours\",\"days\":\"Days\"},\"lockout_policy\":{\"title\":\"LOCKOUT POLICY\",\"times\":\"times\",\"minutes\":\"minute(s)\",\"account_lockout\":\"Account lockout\",\"account_lockout_duration\":\"Duration\",\"account_lockout_counter\":\"Reset after\",\"account_lockout_threshold\":\"Threshold\"},\"password_age\":{\"title\":\"Password age\",\"30d\":\"30 days\",\"60d\":\"60 days\",\"90d\":\"90 days\",\"120d\":\"120 days\",\"none\":\"None\"},\"first_time_login\":{\"title\":\"FIRST TIME LOGIN\",\"first_time_login_note\":\"Force all members to change the password for the first time login\"},\"team_plan\":\"TEAM PLAN\",\"payment_method\":{\"title\":\"TEAM PAYMENT METHOD\",\"online\":\"Online\",\"offline\":\"Offline\"},\"billing_cycle\":{\"title\":\"TEAM BILLING CYCLE\",\"cycle\":\"Billing cycle\",\"30d\":\"30 days\",\"60d\":\"60 days\",\"90d\":\"90 days\",\"365d\":\"365 days\"},\"user_price\":{\"title\":\"Number of users\",\"description\":\"{{currency}} {{price}} / month - Up to {{maxUser}} users\",\"description_vnd\":\"{{price}} {{currency}} / month - Up to {{maxUser}} users\"},\"storage_price\":{\"title\":\"Storage capacity\",\"description_free\":\"{{currency}} {{price}} / month - Up to {{maxStorage}} MB\",\"description\":\"{{currency}} {{price}} / month - Up to {{maxStorage}} GB\",\"description_vnd\":\"{{price}} {{currency}} / month - Up to {{maxStorage}} GB\"},\"monthly_cost\":\"Total Monthly Cost\",\"currency_unit\":{\"usd\":\"$\",\"yen\":\"￥\",\"vnd\":\"VND\"},\"payment_history\":{\"title\":\"PAYMENT HISTORY\",\"id\":\"ID\",\"date\":\"Date\",\"amount\":\"Amount\",\"description\":\"Description\",\"payment_method\":\"Payment method\",\"receipt\":\"Receipt\"},\"allowed_file_extensions_upload\":\"File extensions that can be uploaded\",\"example_allowed_file_extensions\":\"Example: pptx,xlsx,docx\",\"allow_roles_create_project\":\"ALLOWED ROLES CREATE PROJECT\",\"total_project\":\"Total Projects\",\"total_file\":\"Total Files\",\"total_guest\":\"Total Guests\",\"total_address_book\":\"Total Address Books\",\"total_protected_file\":\"Total Protected Files\"},\"place_holder\":{\"banned_ext\":\"hash,wmv,dll,jar,ect\"},\"navi\":{\"member\":\"Members\",\"group_member\":\"Member Groups\",\"history\":\"History\",\"dashboard\":\"Dashboard\",\"report\":\"Reports\",\"profile\":\"Profile\"},\"header\":{\"member\":{\"list\":\"member list\",\"edit\":\"edit member\",\"add\":\"add new member\"},\"member_group\":{\"list\":\"MEMBER GROUP LIST\",\"add\":\"Add New Member Group\",\"detail\":\"MEMBER GROUP DETAILS\",\"edit\":\"EDIT MEMBER GROUP\"},\"setting\":{\"title\":\"Settings\"},\"my_account\":{\"account_info\":\"Account information\",\"language\":\"Choose your language\"},\"dashboard\":{\"title_sm\":\"SecureMail DASHBOARD\",\"title_sd\":\"SecureDrive DASHBOARD\"},\"report\":{\"title\":\"Reports\",\"activity_details\":\"Activity details\"}},\"card_header\":{\"recently_sent_files\":\"Recently Sent Files\",\"top_members\":\"Most Active Users\",\"package_statistics\":\"Package Statistics\",\"general_statistics\":\"General Statistics\"},\"table_header\":{\"common\":{\"first_name\":\"First Name\",\"last_name\":\"Last Name\",\"mail_address\":\"E-mail Address\",\"create_date\":\"Date Created\",\"description\":\"Description\"},\"member\":{\"role\":\"Role\"},\"group_user\":{\"name\":\"Group Name\",\"numbers_user\":\"No. Members\",\"email\":\"Member(s)\",\"create_by\":\"Created By\"},\"dashboard\":{\"transmission_used\":\"Transmissions Used\",\"recently_sent_files\":{\"subject\":\"Subject\",\"date_sent\":\"Date Sent\",\"owner_email\":\"Owner E-mail Address\"}},\"report\":{\"member\":\"Member\",\"action\":\"Action\",\"affected\":\"Affected\",\"date\":\"Date\",\"details\":\"Details\"}},\"login\":{\"email\":\"Enter your E-mail\",\"password\":\"Enter your password\",\"forgot_password\":\"Forgot Password?\",\"choose_team\":\"Please choose team:\",\"keep_me_login\":\"Keep me logged in\",\"auth_code\":\"Authentication Code\",\"verify_auth_code\":\"Verify Authentication Code\",\"new_password\":\"New Password\",\"confirm_password\":\"Confirm Password\",\"forgot_success_mgs\":\"Your request to change your password has been submitted. Please check your E-mail to create a new password\"},\"errors\":{\"invalid_email\":\"Invalid E-mail format\",\"invalid_credentials\":\"Invalid login credentials\",\"required\":\"This field is required\",\"special_chars\":\"Special characters are not allowed\",\"error_choose_team\":\"Choose your team to login\",\"error_choose_team_reset_password\":\"Choose your team to reset password\",\"password_not_match\":\"Confirm password does not match\",\"password_expiry\":\"Your password is expired. Please change the password before re-login.\",\"first_time_login\":\"You are required to change your password for the first time login\",\"account_lockout\":\"<p class='p-text-center'>Your account is disabled. <br/> Try again in {{duration}} or contact your Admin.</p>\",\"password_remain\":\"<p class='p-mx-3'>Attempts remaining: <strong>{{remain}}</strong> <br/> <strong>Warning:</strong> After <strong>{{threshold}} consecutive</strong> unsuccessful login attempts, your account will be locked.</p>\",\"err_access\":\"You do not have permission use this app\",\"err_access_function\":\"You do not have permission use this function\",\"un_support_extension\":\"Only image files are supported\",\"min_length_required\":\"Min length is required\",\"total_min\":\"Min value must be greater than the total of lowercase characters, uppercase characters, special characters and numeric characters\",\"valid_length\":\"Allowed characters: 6 - 64\",\"valid_max_length\":\"Allowed characters: {{ min }} - 64\",\"max_length\":\"Max length: 64\",\"max_length_input\":\"Please input max length\",\"lower_input\":\"Please input number of lowercase characters\",\"valid_character\":\"Allowed characters: 1 - 10\",\"uppercase_input\":\"Please input number of uppercase characters\",\"special_input\":\"Please input number of special characters\",\"numeric_input\":\"Please input number of numeric characters\",\"threshold_input\":\"Please input account lockout threshold\",\"threshold_required\":\"Account lockout threshold is required\",\"valid_threshold\":\"Allowed characters: 1 - 999\",\"valid_duration\":\"Allowed characters: 1 - 99 999\",\"duration_input\":\"Please input account lockout duration\",\"reset_input\":\"Please input reset account lockout counter after\",\"valid_session_age\":\"Allowed characters: 1 – {{ times }}\",\"invalid_date\":\"Invalid start date or end date\"},\"password_policy\":{\"default\":\"Password must be {{min}} - {{max}} characters\",\"include\":\", include at least\",\"capital\":\" {{capital}} uppercase\",\"lower\":\" {{lower}} lowercase\",\"special\":\" {{special}} special\",\"number\":\" {{number}} numeric\",\"characters\":\" characters.\"},\"sever_errors\":{\"100\":\"Invalid Password\",\"101\":\"Generate access token (session) fail.\",\"102\":\"Authentication code is invalid or expired\",\"103\":\"Invalid confirm code or confirm code is expired\",\"104\":\"Account Directory inactivated.\",\"105\":\"Account Directory password expired.\",\"106\":\"Account Directory expired.\",\"107\":\"Account Directory - Exceed password retry limit.\",\"108\":\"Account Directory - Unwilling To Perform.\",\"109\":\"Account Directory - System error from Security Provider.\",\"110\":\"E-mail already exists\",\"112\":\"<p class='p-text-center'>Your account is disabled. <br/>Please contact your Admin</p>\",\"113\":\"Member isn't locked\",\"114\":\"Member already unlocked\",\"200\":\"OK.\",\"300\":\"Invalid E-mail format\",\"301\":\"Invalid PIN code or had been expired\",\"302\":\"Confirm password does not match with password\",\"303\":\"Invalid color format\",\"304\":\"Invalid website URL format\",\"305\":\"Invalid payment currency\",\"306\":\"Invalid paging request\",\"307\":\"Invalid date format\",\"308\":\"Invalid update folder item type\",\"309\":\"Invalid project setting format\",\"310\":\"Invalid team status\",\"311\":\"Invalid payment method\",\"312\":\"Invalid payment billing cycle\",\"313\":\"This E-mail address does not exist\",\"314\":\"Invalid password format\",\"400\":\"Bad request\",\"401\":\"Unauthorized or Access Token is expired\",\"403\":\"You do not have permission\",\"404\":\"Not found\",\"406\":\"There is some invalid data\",\"407\":\"Missing parameters\",\"408\":\"The App is disabled. Please contact your provider.\",\"500\":\"Internal server error\",\"501\":\"The group name cannot contains characters: ,/\",\"600\":\"Project not found\",\"601\":\"Create new project fail\",\"700\":\"Folder not found\",\"701\":\"Special characters are not allowed\",\"702\":\"You do not have permission\",\"800\":\"File not found\",\"801\":\"File version not found\",\"802\":\"Unauthorized User The E-mail address that was entered is not authorized to view this file\",\"803\":\"File name already exists\",\"804\":\"File had been protected\",\"805\":\"File decrypt fail\",\"806\":\"File is too large to preview, please download\",\"807\":\"File is encrypting\",\"900\":\"Label not found\",\"901\":\"Label already exists\",\"1100\":\"Share link not found\",\"1101\":\"Share link package not found\",\"1102\":\"Share link expired\",\"1103\":\"Link not found\",\"1106\":\"Position is required\",\"1107\":\"Font size is required and must have a value > 0\",\"1200\":\"Reach max limited number of download\",\"1201\":\"Download file fail\",\"1202\":\"Download zip queue not found\",\"1203\":\"Cannot download as zip file. The specified folder is empty.\",\"1300\":\"File extension does not allow to upload\",\"1301\":\"Upload file fail\",\"1302\":\"Upload file data not found\",\"1304\":\"File cannot upload\",\"1400\":\"User not found\",\"1401\":\"E-mail already exists\",\"1402\":\"Group member not found\",\"1403\":\"Group name already exists\",\"1404\":\"Creat User fail\",\"1405\":\"User role not found\",\"1406\":\"Wrong current password\",\"1407\":\"User not found in folder\",\"1408\":\"Please request the user to transfer their projects first\",\"1409\":\"User not found in group\",\"1410\":\"Cannot change member's role at this time.This member is cloning project(s). Please wait until it is finished and try again.\",\"1411\":\"Import failed. Invalid CSV file.\",\"1412\":\"Import failed. CSV file is empty.\",\"1413\":\"Import failed\",\"1414\":\"Group name have max length is 64 characters\",\"1415\":\"Password cannot contain space characters\",\"1416\":\"New password must be different from current password\",\"1500\":\"Address book not found\",\"1501\":\"E-mail already exists\",\"1502\":\"Group Address book not found\",\"1503\":\"Address Group name already exists\",\"1600\":\"Comment not found\",\"1700\":\"Company not found\",\"1701\":\"Company already exists\",\"1800\":\"Team not found\",\"1801\":\"Team Name already exists\",\"1802\":\"Team payment not found\",\"1803\":\"Team reached max limited number of members\",\"1804\":\"Cannot update team payment\",\"1805\":\"Create team payment receipt fail\",\"1806\":\"Team storage had been reached the limited\",\"1807\":\"Create new team fail\",\"1808\":\"User Price not found\",\"1809\":\"Storage Price not found\",\"1810\":\"Team payment card info not found\",\"1811\":\"Invalid team notify setting\",\"1818\":\"Free or Personal plan cannot be purchased by this user\",\"1821\":\"The number of users provided must be greater than zero\",\"2300\":\"Unauthorized User The E-mail address that was entered is not authorized to view this file\",\"2700\":\"Card already existed\",\"2701\":\"Card type not found\",\"2702\":\"Invalid card number format\",\"2703\":\"Your card has expired\",\"2704\":\"Card not found\",\"2705\":\"Customer Stripe not found\",\"2706\":\"The card has been activated\",\"2707\":\"The card is not valid. Please change another card to continue\",\"2708\":\"Cannot update team payment for trial team\",\"2709\":\"User Price and Storage Price must be the same currency\",\"2710\":\"Delete card fail\",\"2711\":\"Charge fail\",\"2712\":\"Card activation failed\",\"2713\":\"Error during credit card processing\",\"2714\":\"Your card's CVC is incorrect\"},\"default_toast\":{\"buy_user_success\":\"Buy user successfully\",\"upgrade_success\":\"Upgrade successfully\",\"downgrade_success\":\"Downgrade successfully\",\"create_success\":\"Created successfully\",\"add_success\":\"Added successfully\",\"update_success\":\"Updated successfully\",\"update_pass_success\":\"Your new password has been updated\",\"save_success\":\"Saved successfully\",\"delete_success\":\"Deleted successfully\",\"revoke_success\":\"Revoked successfully\",\"drop_upload\":\"Drop your file to upload\",\"wait\":\"Please wait...\",\"only_support_trial\":\"Currently only trial accounts are supported\",\"move_success\":\"Moved successfully\",\"invite_success\":\"Added successfully\",\"invite_success_error_users\":\"Add failed: \",\"share_success\":\"Shared successfully\",\"restore_success\":\"Restored successfully\",\"upload_success\":\"Uploaded successfully\",\"send_confirm_email\":\"Please confirm your E-mail to change E-mail\",\"invalid_data\":\"There is some invalid data\",\"waiting_sync\":\"You have to wait a while for the update process to complete\",\"error_dot_folder\":\"You cannot create a folder only containing dot character\",\"copy_success\":\"Copied successfully\",\"remove_success\":\"Removed successfully\",\"change_mail_success\":\"Changed E-mail Address successfully\",\"activate_success\":\"Activated successfully\",\"deactivate_success\":\"Deactivated successfully\",\"unlock_success\":\"Unlocked successfully\",\"import_success\":\"Imported successfully\",\"load_data_failed\":\"Load data failed\"},\"tooltip\":{\"login_as_user\":\"Login as member\",\"activity_details\":\"Activity details\",\"update_logo\":\"Update logo\",\"reset_logo\":\"Reset default logo\"},\"message\":{\"confirm_change_role\":{\"title\":\"Change Role\",\"content\":\"This action will affect on collaborator's role permission. Are you sure?\"},\"delete_member\":{\"title\":\"Delete Member\",\"content\":\"Do you want to delete member(s)? All related information will be deleted.\"},\"reset_logo\":{\"title\":\"Reset Default Logo\",\"content\":\"Do you want to reset the system default logo?\"},\"login_as_user\":{\"secure_drive\":\"SecureDrive\",\"secure_mail\":\"SecureMail\",\"title\":\"Login As Member\",\"msg\":\"Do you want to login into this account? <br/><br/> <small>Please choose service to login:</small>\"},\"csv_list_error\":\"Import Error List\",\"transfer_account\":\"Transfer account\",\"add_logo\":\"Add logo\",\"delete_group\":{\"title\":\"Delete Member Group\",\"content\":\"Do you want to delete member group(s)?\"},\"remove_member_from_group\":{\"title\":\"Remove Members From Group\",\"content\":\"Do you want to remove member(s)?\"},\"confirm_handle_user\":{\"title\":\"Confirm Overriding Collaborator Role In Project\",\"content\":\"Do you want to override the existing collaborator roles for the member in project(s) where the group is collaborating?\",\"content_copy\":\"Do you want to override the existing collaborator roles for the member in project(s) where the group is collaborating?\"},\"change_password\":\"Change Password\",\"change_email\":{\"title\":\"Change E-mail Address\",\"msg\":\"Do you want to change your E-mail address?\",\"success\":\"Please confirm your E-mail to change E-mail address\"},\"confirm_unlock\":{\"title\":\"Unlock Account\",\"content\":\"Do you want to unlock account for member?\"}},\"error_type_CSV\":{\"1\":\"First Name is empty\",\"2\":\"First Name' s max length > 64 characters\",\"3\":\"First Name contains special characters < > { } not allowed\",\"4\":\"Last Name is empty\",\"5\":\"Last Name' s max length > 64 characters\",\"6\":\"Last Name contains special characters < > { } not allowed\",\"7\":\"E-mail Address is empty\",\"8\":\"E-mail Address' s max length > 64 characters\",\"9\":\"Invalid E-mail format\",\"10\":\"Role is empty\",\"11\":\"You do not have permission to import/update member with Manager role\",\"12\":\"Invalid password format\",\"13\":\"Group' s max length > 64 characters\",\"14\":\"Group contains special characters < > { } not allowed\",\"15\":\"Your Team has reached the limitation\",\"16\":\"Cannot update Team Admin\",\"17\":\"Member is copying project, cannot change role\",\"18\":\"Invalid record\",\"19\":\"Password contains space characters\",\"20\":\"Password is empty\",\"21\":\"User Price Name is empty\",\"22\":\"User Price Name not found\",\"23\":\"Storage Price Name is empty\",\"24\":\"Storage Price Name not found\",\"25\":\"Transmissions is empty\",\"26\":\"Invalid transmissions format\",\"27\":\"Transmissions range between 1 and 999999\",\"28\":\"Feature setting is empty\",\"29\":\"Invalid feature setting format\",\"30\":\"Internal server error\",\"31\":\"Cannot import CSV for trial team\",\"32\":\"Usage packages are not the same currency\"},\"timezone\":{\"GMT_-12\":\"(GMT -12:00) Eniwetok, Kwajalein\",\"GMT_-11\":\"(GMT -11:00) Midway Island, Samoa\",\"GMT_-10\":\"(GMT -10:00) Hawaii\",\"GMT_-9\":\"(GMT -9:00) Alaska\",\"GMT_-8\":\"(GMT -8:00) Pacific Time (US & Canada)\",\"GMT_-7\":\"(GMT -7:00) Mountain Time (US & Canada)\",\"GMT_-6\":\"(GMT -6:00) Central Time (US & Canada), Mexico City\",\"GMT_-5\":\"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima\",\"GMT_-4\":\"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz\",\"GMT_-3\":\"(GMT -3:00) Brazil, Buenos Aires, Georgetown\",\"GMT_-2\":\"(GMT -2:00) Mid-Atlantic\",\"GMT_-1\":\"(GMT -1:00 hour) Azores, Cape Verde Islands\",\"GMT_0\":\"(GMT) Western Europe Time, London, Lisbon, Casablanca\",\"GMT_+1\":\"(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris\",\"GMT_+2\":\"(GMT +2:00) Kaliningrad, South Africa\",\"GMT_+3\":\"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg\",\"GMT_+4\":\"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi\",\"GMT_+5\":\"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent\",\"GMT_+6\":\"(GMT +6:00) Almaty, Dhaka, Colombo\",\"GMT_+7\":\"(GMT +7:00) Bangkok, Hanoi, Jakarta\",\"GMT_+8\":\"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong\",\"GMT_+9\":\"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk\",\"GMT_+10\":\"(GMT +10:00) Eastern Australia, Guam, Vladivostok\",\"GMT_+11\":\"(GMT +11:00) Magadan, Solomon Islands, New Caledonia\",\"GMT_+12\":\"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka\"},\"language\":{\"auto\":\"Auto\",\"en\":\"English\",\"ja\":\"Japanese\",\"vi\":\"Vietnamese\"},\"months\":{\"january\":\"January\",\"february\":\"February\",\"march\":\"March\",\"april\":\"April\",\"may\":\"May\",\"june\":\"June\",\"july\":\"July\",\"august\":\"August\",\"september\":\"September\",\"october\":\"October\",\"november\":\"November\",\"december\":\"December\"},\"reports\":{\"report_filters\":\"Filters\",\"start_end_date\":\"Date Range\",\"users\":\"Members\",\"groups\":\"Groups\",\"filter_all\":\"All\",\"filter_member_table\":\"Member\",\"filter_member\":\"Member\",\"filter_member_group\":\"Member Group\",\"filter_address\":\"Address Book\",\"filter_address_group\":\"Address Group\",\"filter_project\":\"Project\",\"filter_folder\":\"Folder\",\"filter_file\":\"File\",\"filter_collaborator\":\"Collaborator\",\"filter_license\":\"License\",\"filter_link\":\"Link\",\"filter_label\":\"Label\",\"filter_comment\":\"Comment\",\"select_all\":\"Select All\",\"member_management\":\"Member Management\",\"created\":\"Created\",\"updated\":\"Updated\",\"deleted\":\"Deleted\",\"removed\":\"Removed\",\"member_login\":\"Login\",\"member_logout\":\"Logout\",\"member_revoked\":\"Revoked recipient\",\"login_as_member\":\"Login as member\",\"transferred_account\":\"Transferred account\",\"member_group\":\"Member Group Management\",\"add_member_group\":\"Added member to group\",\"move_member_group\":\"Moved member to group\",\"remove_member_group\":\"Removed member from group\",\"address_group\":\"Address Group Management\",\"address_book\":\"Address Book Management\",\"add_address_to_group\":\"Added address book to group\",\"move_address_to_group\":\"Moved address book to group\",\"remove_address_to_group\":\"Removed address book from group\",\"project\":\"Project Management\",\"copied\":\"Copied\",\"folder\":\"Folder management\",\"delete_forever\":\"Removed forever\",\"moved\":\"Moved\",\"rename\":\"Renamed\",\"restore\":\"Restored\",\"update_setting\":\"Updated settings\",\"file\":\"File Management\",\"upload\":\"Uploaded\",\"encode\":\"Encoded\",\"decode\":\"Decoded\",\"update_license\":\"Updated License\",\"attached_label\":\"Attached label\",\"detached_label\":\"Detached label\",\"collaborator\":\"Collaborator Management\",\"group_invite_collaborator\":\"Added group\",\"group_update_collaborator\":\"Updated group\",\"group_delete_collaborator\":\"Removed group\",\"member_invite_collaborator\":\"Added collaborator\",\"member_update_collaborator\":\"Updated collaborator\",\"member_delete_collaborator\":\"Removed collaborator\",\"licenses\":\"License Management\",\"registered\":\"Registered\",\"link\":\"Link Management\",\"share_link\":\"Shared\",\"share_link_secure_mail\":\"Shared SecureMail\",\"label\":\"Label Management\",\"comment\":\"Comment Management\",\"add_comment_file\":\"Posted comment on file\",\"update_comment_file\":\"Updated comment on file\",\"delete_comment_file\":\"Removed comment on file\",\"add_comment_project\":\"Posted comment on project\",\"update_comment_project\":\"Updated comment on project\",\"delete_comment_project\":\"Removed comment on project\",\"update_drm\":\"Updated DRM\",\"disabled_drm\":\"Disabled DRM\",\"action_text\":{\"delete_license\":\"Disabled DRM for a file\",\"revoke_user\":\"Revoked a recipient from a file\",\"add_project\":\"Created a project\",\"update_project\":\"Updated a project\",\"delete_project\":\"Deleted a project\",\"copy_project\":\"Copy a project\",\"add_file\":\"Uploaded a file to\",\"add_files\":\"Uploaded {{count}} files to\",\"encode_file\":\"Set DRM for a file\",\"update_encode_file\":\"Updated DRM for a file\",\"update_file\":\"Renamed a file\",\"delete_file\":\"Removed a file\",\"move_file\":\"Moved a file to\",\"move_files\":\"Moved {{count}} files to\",\"restore_file\":\"Restored a file\",\"delete_file_forever\":\"Removed a file forever\",\"copy_file\":\"Copied a file to\",\"copy_files\":\"Copied {{count}} files to\",\"attach_label\":\"Attached a label to a file\",\"attach_labels\":\"Attached {{count}} labels to a file\",\"detach_label\":\"Detached a label from a file\",\"detach_labels\":\"Detached {{count}} labels from a file\",\"add_folder\":\"Created a folder\",\"update_folder\":\"Renamed a folder\",\"delete_folder\":\"Removed a folder\",\"move_folder\":\"Moved a folder to\",\"move_folders\":\"Moved {{count}} folders to\",\"restore_folder\":\"Restored a folder\",\"delete_forever_folder\":\"Removed a folder forever\",\"update_folder_setting\":\"Updated folder settings\",\"copy_folder\":\"Copied a folder to\",\"copy_folders\":\"Copied {{count}} folders to\",\"invite_user\":\"Added a collaborator to\",\"invite_users\":\"Added {{count}} collaborators to\",\"remove_user\":\"Removed a collaborator from\",\"update_role_user\":\"Changed role of a collaborator in\",\"invite_group\":\"Added a collaboration group to\",\"invite_groups\":\"Added {{count}} collaboration groups to\",\"remove_group\":\"Removed a collaboration group from\",\"update_role_group\":\"Changed role of a collaboration group in\",\"create_link\":\"Created a link in a project\",\"delete_link\":\"Deleted a link in a project\",\"update_link\":\"Updated a link in a project\",\"share_link\":\"Shared a link in a project\",\"share_link_secure_mail\":\"Shared a SecureMail link in a project\",\"add_comment\":\"Posted a comment on a project\",\"update_comment\":\"Updated a comment on a project\",\"delete_comment\":\"Deleted a comment on a project\",\"add_comment_file\":\"Posted a comment on a file\",\"update_comment_file\":\"Updated a comment on a file\",\"delete_comment_file\":\"Deleted a comment on file\",\"create_label\":\"Created a label in a project\",\"update_label\":\"Updated a label in a project\",\"delete_label\":\"Deleted a label in a project\",\"add_user\":\"Created a member\",\"update_user\":\"Updated a member\",\"delete_user\":\"Deleted a member\",\"log_in\":\"Logged in to 689Cloud\",\"log_out\":\"Logged out of 689Cloud\",\"login_as_member\":\"Team Admin logged in as member\",\"create_group\":\"Created a member group\",\"update_group\":\"Updated a member group\",\"delete_group\":\"Deleted a member group\",\"add_member_group\":\"Added a member to group\",\"add_member_groups\":\"Added {{count}} members to group\",\"remove_member_group\":\"Removed a member from group\",\"remove_member_groups\":\"Removed {{count}} members from group\",\"move_member_group\":\"Moved a member to another group\",\"move_member_groups\":\"Moved {{count}} members to another group\",\"add_address\":\"Created an address book\",\"update_address\":\"Updated an address book\",\"delete_address\":\"Deleted an address book\",\"create_address_group\":\"Created an address group\",\"update_address_group\":\"Updated an address group\",\"delete_address_group\":\"Deleted an address group\",\"add_address_group\":\"Added an address book to group\",\"add_address_groups\":\"Added {{count}} address books to group\",\"remove_address_group\":\"Removed an address book from group\",\"remove_address_groups\":\"Removed {{count}} address books from group\",\"move_address_group\":\"Moved an address book to another group\",\"move_address_groups\":\"Moved {{count}} address books to another group\",\"transferred_project\":\"Transferred project owner role of a project\",\"transferred_account\":\"Transferred a account\",\"transferred_filter\":\"Transfer project owner role\"},\"detail\":{\"title\":\"Activity Details\",\"member\":\"Member\",\"action\":\"Action\",\"detail\":\"Details\",\"add_member_group\":\"Added a member to <strong>{{name}}</strong> group\",\"add_member_groups\":\"Added <strong>{{count}}</strong> members to <strong>{{name}}</strong> group\",\"remove_member_group\":\"Removed a member from <strong>{{name}}</strong> group\",\"remove_member_groups\":\"Removed <strong>{{count}}</strong> members from <strong>{{name}}</strong> group\",\"move_member_group\":\"Moved a member from <strong>{{name}}</strong> group to <strong>{{toName}}</strong> group\",\"move_member_groups\":\"Moved <strong>{{count}}</strong> members from <strong>{{name}}</strong> group to <strong>{{toName}}</strong> group\",\"add_address_group\":\"Added an address book to <strong>{{name}}</strong> group\",\"add_address_groups\":\"Added <strong>{{count}}</strong> address books to <strong>{{name}}</strong> group\",\"remove_address_group\":\"Removed an address book from <strong>{{name}}</strong> group\",\"remove_address_groups\":\"Removed <strong>{{count}}</strong> address books from <strong>{{name}}</strong> group\",\"move_address_group\":\"Moved an address book from <strong>{{name}}</strong> group to <strong>{{toName}}</strong> group\",\"move_address_groups\":\"Moved <strong>{{count}}</strong> address book from <strong>{{name}}</strong> group to <strong>{{toName}}</strong> group\",\"project_setting\":\"Project Settings\",\"ocr\":\"Apply OCR\",\"drm\":\"Apply DRM\",\"watermark\":\"Watermark\",\"notify\":\"Notify\",\"printable\":\"Printable\",\"editable\":\"Editable\",\"expiry_date\":\"Expiry date\",\"default\":\"Default\",\"content\":\"Content\",\"font_size\":\"Font size\",\"position\":\"Position\",\"color\":\"Color\",\"notify_all\":\"All\",\"notify_specific\":\"Specific\",\"folder_name\":\"Folder Name\",\"folder_setting\":\"Folder Settings\",\"transferred_project\":\"Transferred project owner role of <strong>{{name}}</strong> project to a member\",\"add_folder\":\"Created a folder in <strong>{{name}}</strong> project\",\"copy_folder\":\"Copied a folder to <strong>{{projectName}}</strong> project\",\"copy_folders\":\"Copied <strong>{{count}}</strong> folders to <strong>{{projectName}}</strong> project\",\"copy_folder_folder\":\"Copied a folder to <strong>{{name}}</strong> folder in <strong>{{projectName}}</strong> project\",\"copy_folders_folder\":\"Copied <strong>{{count}}</strong> folders to <strong>{{name}}</strong> folder in <strong>{{projectName}}</strong> project\",\"copy_folder_title\":\"Copied folder list\",\"move_folder_title\":\"Moved folder list\",\"move_folder\":\"Moved a folder to <strong>{{projectName}}</strong> project\",\"move_folders\":\"Moved <strong>{{count}}</strong> folders to <strong>{{projectName}}</strong> project\",\"move_folder_folder\":\"Moved a folder to <strong>{{name}}</strong> folder in <strong>{{projectName}}</strong> project\",\"move_folders_folder\":\"Moved <strong>{{count}}</strong> folders to <strong>{{name}}</strong> folder in <strong>{{projectName}}</strong> project\",\"delete_folder\":\"Removed <strong>{{name}}</strong> folder in <strong>{{parentName}}</strong> project\",\"delete_folder_title\":\"Removed item list\",\"delete_forever_folder_folder\":\"Removed <strong>{{name}}</strong> folder forever in <strong>{{parentName}}</strong> project\",\"delete_forever_folders_folder\":\"Removed <strong>{{name}}</strong> folder forever in <strong>{{parentName}}</strong> project\",\"restore_folder_title\":\"Restored item\",\"restore_folder_folder\":\"Restored a folder in <strong>{{name}}</strong> project\",\"update_folder_folder\":\"Renamed a folder in <strong>{{name}}</strong> project\",\"add_file_title\":\"Uploaded file list\",\"copy_file_title\":\"Copied file list\",\"move_file_title\":\"Moved file list\",\"add_file\":\"Uploaded a file to <strong>{{projectName}}</strong> project\",\"add_files\":\"Uploaded <strong>{{count}}</strong> files to <strong>{{projectName}}</strong> project\",\"add_file_folder\":\"Uploaded a file to <strong>{{name}}</strong> folder in <strong>{{projectName}}</strong> project\",\"add_files_folder\":\"Uploaded <strong>{{count}}</strong> files to <strong>{{name}}</strong> folder in <strong>{{projectName}}</strong> project\",\"copy_file\":\"Copied a file to <strong>{{projectName}}</strong> project\",\"copy_files\":\"Copied <strong>{{count}}</strong> files to <strong>{{projectName}}</strong> project\",\"copy_file_folder\":\"Copied a file to <strong>{{name}}</strong> folder in <strong>{{projectName}}</strong> project\",\"copy_files_folder\":\"Copied <strong>{{count}}</strong> files to <strong>{{name}}</strong> folder in <strong>{{projectName}}</strong> project\",\"move_file\":\"Moved a file to <strong>{{projectName}}</strong> project\",\"move_files\":\"Moved <strong>{{count}}</strong> files to <strong>{{projectName}}</strong> project\",\"move_file_folder\":\"Moved a file to <strong>{{name}}</strong> folder in <strong>{{projectName}}</strong> project\",\"move_files_folder\":\"Moved <strong>{{count}}</strong> files to <strong>{{name}}</strong> folder of <strong>{{projectName}}</strong> project\",\"delete_file_title\":\"File deleted\",\"delete_file\":\"Removed a file in <strong>{{projectName}}</strong> project\",\"delete_file_folder\":\"Removed a file in <strong>{{name}}</strong> folder of <strong>{{projectName}}</strong> project\",\"delete_file_forever\":\"Removed a file forever in <strong>{{projectName}}</strong> project\",\"delete_file_forever_folder\":\"Removed a file forever in <strong>{{name}}</strong> folder of <strong>{{projectName}}</strong> project\",\"restore_file_title\":\"File restored\",\"restore_file\":\"Restored a file in <strong>{{projectName}}</strong> project\",\"restore_file_folder\":\"Restored a file in <strong>{{name}}</strong> folder of <strong>{{projectName}}</strong> project\",\"update_file_title\":\"File name\",\"update_file\":\"Renamed a file in <strong>{{projectName}}</strong> project\",\"update_file_folder\":\"Renamed a file in <strong>{{name}}</strong> folder of <strong>{{projectName}}</strong> project\",\"attach_label\":\"Attached a label to <strong>{{name}}</strong> file in <strong>{{parentName}}</strong> project\",\"attach_labels\":\"Attached <strong>{{count}}</strong> labels to <strong>{{name}}</strong> file in <strong>{{parentName}}</strong> project\",\"attach_label_folder\":\"Attached a label to <strong>{{name}}</strong> file in <strong>{{folderName}}</strong> folder of <strong>{{parentName}}</strong> project\",\"attach_labels_folder\":\"Attached <strong>{{count}}</strong> labels to <strong>{{name}}</strong> file in <strong>{{folderName}}</strong> folder of <strong>{{parentName}}</strong> project\",\"detach_label\":\"Detached a label from <strong>{{name}}</strong> file in <strong>{{parentName}}</strong> project\",\"detach_labels\":\"Detached <strong>{{count}}</strong> labels from <strong>{{name}}</strong> file in <strong>{{parentName}}</strong> project\",\"detach_label_folder\":\"Detached a label from <strong>{{name}}</strong> file in <strong>{{folderName}}</strong> folder of <strong>{{parentName}}</strong> project\",\"detach_labels_folder\":\"Detached <strong>{{count}}</strong> labels from <strong>{{name}}</strong> file in <strong>{{folderName}}</strong> folder of <strong>{{parentName}}</strong> project\",\"create_label\":\"Created a label in <strong>{{name}}</strong> project\",\"update_label\":\"Updated a label in <strong>{{name}}</strong> project\",\"delete_label\":\"Deleted a label in <strong>{{name}}</strong> project\",\"revoke_user\":\"Revoked a recipient from a file in <strong>{{parentName}}</strong> project\",\"revoke_user_folder\":\"Revoked a recipient from a file in <strong>{{name}}</strong> folder of <strong>{{parentName}}</strong> project\",\"add_comment_file\":\"Posted a comment on <strong>{{name}}</strong> file in <strong>{{parentName}}</strong> project\",\"add_comment_file_folder\":\"Posted a comment on <strong>{{name}}</strong> file in <strong>{{folderName}}</strong> folder of <strong>{{parentName}}</strong> project\",\"update_comment_file\":\"Updated a comment on <strong>{{name}}</strong> file in <strong>{{parentName}}</strong> project\",\"update_comment_file_folder\":\"Updated a comment on <strong>{{name}}</strong> file in <strong>{{folderName}}</strong> folder of <strong>{{parentName}}</strong> project\",\"delete_comment_file\":\"Deleted a comment on <strong>{{name}}</strong> file in <strong>{{parentName}}</strong> project\",\"delete_comment_file_folder\":\"Deleted a comment on <strong>{{name}}</strong> file in <strong>{{folderName}}</strong> folder of <strong>{{parentName}}</strong> project\",\"add_comment\":\"Posted a comment on <strong>{{name}}</strong> project\",\"update_comment\":\"Updated a comment on <strong>{{name}}</strong> project\",\"delete_comment\":\"Deleted a comment on <strong>{{name}}</strong> project\",\"collaborator\":\"Collaborator list\",\"group_collaborator\":\"Group list\",\"invite_user\":\"Added a collaborator to <strong>{{parentName}}</strong> project\",\"invite_users\":\"Added <strong>{{count}}</strong> collaborators to <strong>{{parentName}}</strong> project\",\"invite_user_folder\":\"Added a collaborator to <strong>{{name}}</strong> folder in <strong>{{parentName}}</strong> project\",\"invite_users_folder\":\"Added <strong>{{count}}</strong> collaborators to <strong>{{name}}</strong> folder in <strong>{{parentName}}</strong> project\",\"remove_user\":\"Removed a collaborator from <strong>{{parentName}}</strong> project\",\"remove_user_folder\":\"Removed a collaborator from <strong>{{name}}</strong> folder of <strong>{{parentName}}</strong> project\",\"update_role_user\":\"Changed role of a collaborator in <strong>{{parentName}}</strong> project\",\"update_role_user_folder\":\"Changed role of a collaborator in <strong>{{name}}</strong> folder of <strong>{{parentName}}</strong> project\",\"invite_group\":\"Added a collaboration group to <strong>{{parentName}}</strong> project\",\"invite_groups\":\"Added <strong>{{count}}</strong> collaboration groups to <strong>{{parentName}}</strong> project\",\"invite_group_folder\":\"Added a collaboration group to <strong>{{name}}</strong> folder in <strong>{{parentName}}</strong> project\",\"invite_groups_folder\":\"Added <strong>{{count}}</strong> collaboration groups to <strong>{{name}}</strong> folder in <strong>{{parentName}}</strong> project\",\"remove_group\":\"Removed a collaboration group from <strong>{{parentName}}</strong> project\",\"remove_group_folder\":\"Removed a collaboration group from <strong>{{name}}</strong> folder of <strong>{{parentName}}</strong> project\",\"update_role_group\":\"Changed role of a collaboration group in <strong>{{parentName}}</strong> project\",\"update_role_group_folder\":\"Changed role of a collaboration group in <strong>{{name}}</strong> folder of <strong>{{parentName}}</strong> project\",\"create_link\":\"Created a link in <strong>{{name}}</strong> project\",\"share_link\":\"Shared a link in <strong>{{name}}</strong> project\",\"share_link_secure_mail\":\"Shared SecureMail link in <strong>{{name}}</strong> project\",\"share_links\":\"Shared a link with {{count}} E-mail addresses\",\"share_link_secure_mails\":\"Shared SecureMail link with {{count}} E-mail addresses\",\"update_link\":\"Updated a link in <strong>{{name}}</strong> project\",\"delete_link\":\"Deleted a link in <strong>{{name}}</strong> project\",\"add_address\":\"Created an address book - {{email}}\",\"update_address\":\"Updated an address book - {{email}}\",\"delete_address\":\"Deleted an address book - {{email}}\",\"update_folder_setting\":\"Updated settings of <strong>{{name}}</strong> folder in <strong>{{projectName}}</strong> project\",\"encode_file\":\"Set DRM for <strong>{{name}}</strong> file in <strong>{{projectName}}</strong> project\",\"printable_file\":\"- Printable\",\"editable_file\":\"- Editable\",\"expiry_date_file\":\"- Expiry date\",\"update_encode_file\":\"Updated DRM for <strong>{{name}}</strong> file in <strong>{{projectName}}</strong> project\",\"delete_license\":\"Disabled DRM for file in <strong>{{projectName}}</strong> project\",\"delete_license_folder\":\"Disabled DRM for file in <strong>{{name}}</strong> folder of <strong>{{projectName}}</strong> project\",\"label_name\":\"Label\",\"yes\":\"Yes\",\"no\":\"No\"}}}");

/***/ }),

/***/ "./src/assets/i18n/ja.json":
/*!*********************************!*\
  !*** ./src/assets/i18n/ja.json ***!
  \*********************************/
/*! exports provided: app_title, content_types, button, features, label, place_holder, navi, header, card_header, table_header, login, errors, password_policy, sever_errors, default_toast, tooltip, message, error_type_CSV, timezone, language, months, reports, default */
/***/ (function(module) {

module.exports = JSON.parse("{\"app_title\":\"689Cloud Admin Console\",\"content_types\":{\"docx\":\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\"xlsx\":\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\"pptx\":\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\"pdf\":\"application/pdf\",\"project\":\"application/project\",\"folder\":\"application/folder\",\"csv\":\"text/csv\",\"jpeg\":\"image/jpeg\",\"ms_download\":\"application/x-msdownload\",\"ms_word\":\"application/msword\"},\"button\":{\"ok\":\"OK\",\"next\":\"次へ\",\"cancel\":\"中止\",\"back\":\"戻る\",\"save\":\"保存\",\"register\":\"登録\",\"continue\":\"次へ\",\"view\":\"表示\",\"download\":\"ダウンロード\",\"add\":\"追加\",\"delete\":\"削除\",\"download_csv_user_list\":\"ユーザーリストをダウンロードする\",\"login\":\"ログイン\",\"import_csv\":\"CSVファイルからユーザーを取り込む\",\"csv_template\":\"CSVファイルテンプレート\",\"transfer_account\":\"アカウントを別のメンバーに移す\",\"unlock_account\":\"ロックアウト解除\",\"change_password\":\"パスワード変更\",\"change_email\":\"メールアドレス変更\",\"export\":\"エクスポート\",\"run\":\"実行\",\"move\":\"移動\",\"copy\":\"コピー\",\"remove\":\"削除\",\"confirm_handle_user\":{\"ignore\":\"無視する\",\"override\":\"更新する\"},\"generate_pin_code\":\"PINコードを生成する\"},\"features\":{\"show_less_features\":\"詳細を非表示\",\"show_more_features\":\"詳細を表示\",\"expiry_setting\":\"ファイル閲覧期限設定\",\"printing_control\":\"印刷制御\",\"two_factor_auth\":\"多要素認証\",\"secure_online_viewer\":\"ウオーターマーク\",\"watermark_view_online\":\"セキュアなブラウザビューワ\",\"revoke_access_remotely\":\"ファイルへのアクセス停止機能\",\"copy_protection\":\"IRM保護によるコピー防止\",\"tracking_documents\":\"ファイル追跡\",\"secure_shares_per_month\":\"外部への保護された共有数：{{ value }}\",\"secure_shares_per_year\":\"年間セキュア共有数: {{ value }}\",\"maximum_file_size\":\"最大ファイルサイズ：{{ value }}\",\"shared_space\":\"合計共有ストレージ： {{ value }}\",\"supported_protected_files\":\"保護可能なファイル（PDF, DOCX, XLSX, PPTX)\"},\"label\":{\"receipt_credit_applied\":\"適用されたクレジット\",\"receipt_user\":\"ユーザーライセンス\",\"receipt_preview\":\"領収書プレビュー\",\"thank_you\":\"お支払い対象サービス{{serviceName}}\",\"charged_date\":\"決済日時：\",\"plan\":\"プラン：\",\"price_per_user\":\"ユーザー単価：\",\"description\":\"品目\",\"quantity\":\"数量\",\"price\":\"単価\",\"remaining_credit\":\"残りクレジット\",\"grand_total\":\"合計\",\"contact\":\"お問い合わせ先：\",\"company_slogan\":\"Secure Document Sharing and Cloud Collaboration\",\"preview\":\"領収書プレビュー\",\"package\":{\"title\":\"プラン情報\",\"package_name\":\"プラン名\",\"upgrade\":\"アップグレード\",\"current_plan\":\"現在のプラン\",\"choose_plan\":\"プランを選択\",\"monthly\":\"月間\",\"annually\":\"年間\",\"save\":\"保存\",\"no_packages\":\"ご指定の条件のプランはありません\",\"per_user_per_month\":\"一ユーザー／月\",\"minimum_user\":\"最小ユーザー数: {{ minUser }}\",\"upgrade_secure_mail_package\":\"SecureMailプラン\",\"upgrade_secure_drive_package\":\"SecureDriveプラン\",\"price\":\"価格\",\"expire_date\":\"登録有効期限\",\"currency\":\"通貨\",\"billing_cycle\":\"更新期間\",\"payment_method\":\"決済方法\",\"downgrade\":\"ダウングレード\",\"downgrade_plan\":\"プランをダウングレード\",\"cancel_downgrade_plan\":\"キャンセル\",\"pending_downgrade\":\"ダウングレード待ち\",\"cancel_downgrade\":\"ダウングレード中止\",\"upgrade_plan\":\"プランをアップグレード\"},\"number_of_users\":\"ユーザー数\",\"annually_billing_cycle\":\"{{ number_months }} ヶ月\",\"cancel_downgrade_title\":\"ダウングレードを中止\",\"cancel_downgrade_message\":\"ダウングレードを中止してもよろしいですか？\",\"cancel_downgrade_package\":\"プランをダウングレード\",\"cancel_downgrade_info\":\"ダウングレードを中止しますと現行のプランが継続されます。\",\"back\":\"戻る\",\"confirm_cancel_downgrade\":\"ダウングレードを中止する\",\"downgrade_warning\":\"ダウングレードメッセージ\",\"downgrade_warning_message\":\"選択されたプランは現在のプランよりもユーザー数が少ないです。\",\"current_users\":\"現在のユーザー数\",\"min_users_in_plan\":\"プランのユーザー数\",\"downgrade_remove_users_warning\":\"このまま進みますと、更新日にユーザー数分を新しいプランの価格で決済します。\",\"proceed_downgrade\":\"ダウングレードを実行\",\"cancel\":\"中止\",\"ok\":\"OK\",\"new_package\":\"新しいプラン\",\"existing_package\":\"現在のプラン\",\"day_remaining\":\"残日数\",\"amount_deducted\":\"引かれた金額\",\"amount_credit\":\"クレジット金額\",\"price_adjustment_note\":\"価格は、更新までの日数で調整してます。\",\"card_holder_name\":\"カード名義人\",\"confirm_details\":\"詳細をご確認ください\",\"confirm_payment_information\":\"決済情報を確認\",\"total\":\"合計\",\"email\":\"メールアドレス\",\"name\":\"名前\",\"users\":\"ユーザー\",\"monthly\":\"一ヶ月\",\"annually\":\"一年\",\"payment_confirmation\":\"お支払い確認\",\"buy_user\":\"ユーザー追加購入\",\"upgrade_plan\":\"プランをアップグレード\",\"secure_drive_plan\":\"SecureDriveプラン\",\"secure_mail_plan\":\"SecureMailプラン\",\"user_per_month\":\"/ーザー／月\",\"checkout\":\"チェックアウト\",\"your_current_plan\":\"現在ご利用のプラン\",\"your_new_plan\":\"新しくご利用になるプラン\",\"today_total\":\"本日のお支払い合計\",\"card_info\":\"クレジットカード情報\",\"recurring_annual_cost\":\"継続年間ご利用額\",\"recurring_month_cost\":\"継続月間ご利用額\",\"summary_sub_text\":\"{{ currency }}{{ price }} x {{ number_user }} ユーザー\",\"holder_name\":\"カード名義\",\"add_payment_card\":\"カードを追加\",\"show_less_features\":\"詳細を非表示\",\"show_more_features\":\"詳細を表示\",\"member\":\"ユーザー\",\"history\":\"履歴\",\"dashboard\":\"ダッシュボード\",\"settings\":\"設定\",\"user_console\":\"ユーザーコンソール\",\"old_settings\":\"旧設定\",\"new_settings\":\"新設定\",\"help\":\"助けて\",\"logout\":\"ログアウト\",\"report\":\"レポート\",\"team_information\":\"チーム情報\",\"notification\":\"通知\",\"account_security\":\"セキュリティ設定\",\"team_billing\":\"会計情報\",\"secure_mail_setting\":\"SecureMail設定\",\"secure_drive_setting\":\"SecureDrive設定\",\"search_placeholder\":\"検索...\",\"system_role\":{\"admin\":\"管理者\",\"manager\":\"マネージャー\",\"user\":\"ユーザー\",\"guest\":\"ゲスト\"},\"project_role\":{\"owner\":\"オーナー\",\"editor\":\"編集者\",\"viewer\":\"ビュワー\",\"previewer\":\"プレビュワー\",\"viewer_uploader\":\"ビュワー・アップローダー\",\"previewer_uploader\":\"プレビュワー・アップローダー\",\"uploader\":\"アップローダー\"},\"no_record\":\"記録がありません\",\"override\":\"コラボレーター権限をグループに合わせて更新する\",\"create_new\":\"新規作成\",\"team_name\":\"チーム名\",\"common\":{\"first_name\":\"名\",\"middle_name\":\"ミドルネーム\",\"last_name\":\"姓\",\"mail_address\":\"メールアドレス\",\"role\":\"役割\",\"groups\":\"グループ\",\"password\":\"パスワード\",\"confirm_password\":\"パスワード確認\",\"select_group\":\"グループ選択\",\"name\":\"グループ名\",\"project_name\":\"プロジェクト名\",\"numbers_user\":\"番号\",\"create_date\":\"作成日\",\"number_member\":\"ユーザー数\",\"project_usage\":\"プロジェクト\",\"members\":\"グループにユーザーを追加\",\"description\":\"説明\",\"used_service\":\"利用サービス\",\"create_by\":\"オーナーメールアドレス\"},\"member_group\":{\"select_group_user\":\"グループを選択\",\"list\":\"ユーザーグループリスト\",\"add\":\"グループ追加\",\"detail\":\"ユーザーグループ詳細\",\"edit\":\"ユーザーグループ編集\",\"add_to_group\":\"グループにユーザーを追加\",\"copy_member_to_group\":\"ユーザーを他グループにコピー\",\"move_to_group\":\"ユーザーを他グループに移動\"},\"my_account\":\"アカウント設定\",\"force_setting\":\"設定を全ユーザーに強制する\",\"protected_file\":\"ファイル保護を有効にする\",\"pdf\":\"PDFファイル (.pdf)\",\"xls\":\"エクセル (.xlsx)\",\"doc\":\"ワード (.docx)\",\"ppt\":\"パワーポイント (.pptx)\",\"image\":\"画像: (.jpg, .png, .jpeg)\",\"banned_extension\":\"禁止拡張子 (この種類のファイルはアップロードできません)\",\"link_setting\":\"リンク設定\",\"link_expiry_date\":\"リンクの有効期限\",\"downloadable\":\"ダウンロードを許可\",\"password_protect\":\"DRM保護できないファイルにパスワードをかける\",\"drm_setting\":\"ファイルセキュリティ設定\",\"document_expiry_date\":\"ドキュメントの有効期限\",\"hour\":\"時間 (UTC)\",\"minute\":\"分 (UTC)\",\"printable\":\"印刷可能\",\"editable\":\"編集可能\",\"watermark_setting\":\"ウオーターマーク設定\",\"show_wm\":\"透かしの設定\",\"font_size\":\"フォントサイズ\",\"position\":\"位置\",\"default\":\"デフォルト（ユーザーのメールアドレス）\",\"customs\":\"ユーザー設定の透かし\",\"watermark_position\":{\"center\":\"中央\",\"top-left\":\"左上\",\"top-center\":\"上\",\"top-right\":\"右上\",\"bottom-left\":\"左下\",\"bottom-center\":\"下\",\"bottom-right\":\"右下\",\"diagonal\":\"斜め\"},\"expiry_date\":{\"none\":\"なし\",\"7-day\":\"7日\",\"1-month\":\"1ヶ月\",\"6-months\":\"6ヶ月\",\"1-year\":\"1年\"},\"search_type\":{\"user_info\":\"ユーザー情報\",\"file_name\":\"ファイル名\"},\"dashboard_page\":{\"member\":\"ユーザー\",\"transmission\":\"送信数\",\"storage\":\"ストレージ容量\",\"number_of_transaction\":\"送信数\",\"number_of_link\":\"共有リンク数\",\"transaction_text\":\"{{ total }}中{{ used }}送信済み\",\"storage_text\":\"{{ storage }}中{{ used }}利用中\",\"user_text\":\"{{ total }} 人中 {{ used }} 人のユーザーを作成済み\"},\"current_password\":\"現在のパスワード\",\"new_password\":\"新しいパスワード\",\"confirm_new_password\":\"パスワード確認\",\"email_notify\":\"メール通知 とセキュリティ\",\"user_setting\":{\"email_notification\":{\"account_change\":\"アカウント設定が変更されたら通知を受け取る\",\"encode_file_expired\":\"暗号化されたファイルの有効期限がきたら通知を受け取る\",\"new_comment\":\"新しいコメントが追加されたら通知を受け取る\",\"security_auth\":\"2因子認証\",\"disable_reason\":\"(チーム設定により有効化)\"}},\"pin_code\":\"PINコード\",\"timezone\":\"タイムゾーン\",\"language\":\"言語\",\"notify\":{\"notify_collaboration_project\":\"プロジェクトの参加をユーザーに通知する\",\"create_new_member\":\"チームに追加されたことをユーザーに通知する\",\"mention_in_comment\":\"メンションをユーザーに通知する\",\"import_user_csv\":\"ユーザーをCSVでインポートしたら通知する\"},\"2fa_policy\":{\"title\":\"2要素認証設定\",\"two_factor\":\"全てのユーザーに2要素認証を強制する\"},\"password_policy\":{\"title\":\"パスワードポリシー\",\"policy_default\":\"デフォルト\",\"policy_customs\":\"カスタム\",\"min_length\":\"最低文字数\",\"max_length\":\"最高文字数\",\"lower_characters\":\"英小文字\",\"uppercase_characters\":\"英大文字\",\"special_characters\":\"特殊文字\",\"numeric_characters\":\"数字\",\"characters\":\"文字\",\"character\":\"文字\"},\"session_age\":{\"title\":\"セッションの長さ\",\"hours\":\"時間\",\"days\":\"日\"},\"lockout_policy\":{\"title\":\"ロックアウト条件\",\"times\":\"回\",\"minutes\":\"分\",\"account_lockout\":\"アカウントロックアウト\",\"account_lockout_duration\":\"期間\",\"account_lockout_counter\":\"リセットまでの期間\",\"account_lockout_threshold\":\"しきい値\"},\"password_age\":{\"title\":\"パスワード変更までの期間 \",\"30d\":\"30 日\",\"60d\":\"60 日\",\"90d\":\"90 日\",\"120d\":\"120 日\",\"none\":\"なし\"},\"first_time_login\":{\"title\":\"初回ログイン\",\"first_time_login_note\":\"ユーザーに初回ログイン時にパスワード更新を強制する\"},\"team_plan\":\"チームプラン\",\"payment_method\":{\"title\":\"お支払い方法\",\"online\":\"オンライン\",\"offline\":\"オフライン\"},\"billing_cycle\":{\"title\":\"契約期間\",\"cycle\":\"お支払いサイクル\",\"30d\":\"30日\",\"365d\":\"365日\",\"60d\":\"60日\",\"90d\":\"90日\"},\"user_price\":{\"title\":\"ユーザー数\",\"description\":\"{{currency}} {{price}} /月　{{maxUser}} ユーザー\",\"description_vnd\":\"{{price}} {{currency}} /月　{{maxUser}} ユーザー\"},\"storage_price\":{\"title\":\"ストレージ容量\",\"description\":\"{{currency}} {{price}} /月　{{maxStorage}} GBまで\",\"description_vnd\":\"{{price}} {{currency}} /月　{{maxStorage}} GBまで\"},\"monthly_cost\":\"月額料金\",\"currency_unit\":{\"usd\":\"$\",\"yen\":\"￥\",\"vnd\":\"VND\"},\"payment_history\":{\"title\":\"お支払履歴\",\"id\":\"ID\",\"date\":\"日付\",\"amount\":\"金額\",\"description\":\"明細\",\"payment_method\":\"支払い方法\",\"receipt\":\"領収証\"},\"allowed_file_extensions_upload\":\"アップロード可能な拡張子\",\"example_allowed_file_extensions\":\"例： pptx,xlsx,docx\",\"allow_roles_create_project\":\"プロジェクトを作成できる権限\",\"total_project\":\"プロジェクト数\",\"total_file\":\"ファイル数\",\"total_guest\":\"ゲストの合計\",\"total_address_book\":\"アドレスブックの合計\",\"total_protected_file\":\"保護されているファイルの合計\"},\"place_holder\":{\"banned_ext\":\"hash,wmv,dll,jar,ect\"},\"navi\":{\"member\":\"ユーザー\",\"group_member\":\"ユーザーグループ\",\"history\":\"履歴\",\"dashboard\":\"ダッシュボード\",\"report\":\"レポート\",\"profile\":\"プロファイル\"},\"header\":{\"member\":{\"list\":\"ユーザーリスト\",\"edit\":\"ユーザー編集\",\"add\":\"ユーザー追加\"},\"member_group\":{\"list\":\"ユーザーグループリスト\",\"add\":\"グループ追加\",\"detail\":\"ユーザーグループ詳細\",\"edit\":\"ユーザーグループ編集\"},\"setting\":{\"title\":\"設定\"},\"my_account\":{\"account_info\":\"アカウント情報\",\"language\":\"言語設定\"},\"dashboard\":{\"title_sm\":\"SecureMailダッシュボード\",\"title_sd\":\"SecureDriveダッシュボード\"},\"report\":{\"title\":\"レポート\",\"activity_details\":\"イベント詳細\"}},\"card_header\":{\"recently_sent_files\":\"最近送信したファイル\",\"top_members\":\"月間送信数上位ユーザー\",\"package_statistics\":\"パッケージ統計\",\"general_statistics\":\"一般統計\"},\"table_header\":{\"common\":{\"first_name\":\"名\",\"last_name\":\"姓\",\"mail_address\":\"メールアドレス\",\"create_date\":\"作成日\",\"description\":\"説明\"},\"member\":{\"role\":\"役割\"},\"group_user\":{\"name\":\"グループ名\",\"numbers_user\":\"番号\",\"email\":\"グループにユーザーを追加\",\"create_by\":\"オーナーメールアドレス\"},\"dashboard\":{\"transmission_used\":\"利用済み送信数\",\"recently_sent_files\":{\"subject\":\"題名\",\"date_sent\":\"送信日\",\"owner_email\":\"オーナー\"}},\"report\":{\"member\":\"ユーザー\",\"action\":\"動作\",\"affected\":\"対象\",\"date\":\"日付\",\"details\":\"詳細\"}},\"login\":{\"email\":\"メールアドレスを入力してください\",\"password\":\"パスワードを入力してください\",\"forgot_password\":\"パスワードを忘れた\",\"choose_team\":\"アカウントを選んでください:\",\"keep_me_login\":\"ログイン状態を維持する\",\"auth_code\":\"認証コード\",\"verify_auth_code\":\"認証コード確認\",\"new_password\":\"新しいパスワード\",\"confirm_password\":\"パスワード確認\",\"forgot_success_mgs\":\"パスワード変更のリクエストを受け付けました。メールを送りましたのでご確認ください。\"},\"errors\":{\"invalid_email\":\"メールアドレスの形式が無効です\",\"invalid_credentials\":\"ログインが無効です\",\"required\":\"この項目は必須です\",\"special_chars\":\"特殊文字は使えません\",\"error_choose_team\":\"ログインするチームを選択してください\",\"error_choose_team_reset_password\":\"パスワードをリセットするチームを選択してください\",\"password_not_match\":\"確認用パスワードが一致しません\",\"password_expiry\":\"パスワードの期限が切れました。変更して再度ログインしてください。\",\"first_time_login\":\"初回ログイン時にパスワードの変更が必要です。\",\"account_lockout\":\"<p class='p-text-center'>アカウントが停止中です。 <br/> {{duration}} 後に再試行するか管理者に問い合わせてください。</p>\",\"password_remain\":\"<p class='p-mx-3'>残りのリトライ回数: <strong>{{remain}}</strong> <br/> <strong>注意:</strong> <strong>{{threshold}}</strong> 回の連続ログイン失敗をしますとアカウントはロックされます</p>\",\"err_access\":\"このアプリはご利用いただけません\",\"err_access_function\":\"この機能を利用する権限がありません\",\"un_support_extension\":\"画像ファイルをご利用ください\",\"min_length_required\":\"最低文字数は必須です\",\"total_min\":\"最低文字数は、大文字、小文字、特殊文字、数字の数の合計より多くなければいけません\",\"valid_length\":\"有効な文字数: 6 - 64\",\"valid_max_length\":\"有効な文字数: {{ min }} - 64\",\"max_length\":\"最大文字数: 64\",\"max_length_input\":\"最大文字数を入れてください\",\"lower_input\":\"英小文字の必要数を入れてください\",\"valid_character\":\"有効な文字数: 1 - 10\",\"uppercase_input\":\"英大文字の必要数を入れてください\",\"special_input\":\"特殊文字の必要数を入れてくださいs\",\"numeric_input\":\"数字の必要数を入れてください\",\"threshold_input\":\"アカウントロックアウトのしきい値を入れてください\",\"threshold_required\":\"アカウントロックアウトのしきい値は必須です\",\"valid_threshold\":\"有効な値: 1 - 999\",\"valid_duration\":\"有効な値: 1 - 99 999\",\"duration_input\":\"アカウントロックアウト期間を入れてください\",\"reset_input\":\"ロックアウト解除までの期間を入れてください\",\"valid_session_age\":\"有効な値: 1 – {{ times }}\",\"invalid_date\":\"日付が無効です\"},\"password_policy\":{\"default\":\"パスワードは {{min}} - {{max}} 文字で\",\"include\":\"最低\",\"capital\":\" {{number}} 個の大文字と\",\"lower\":\" {{number}} 個の小文字と\",\"special\":\" {{number}} 個の記号と\",\"number\":\" {{number}} この数字\",\"characters\":\"が必要です\"},\"sever_errors\":{\"100\":\"データは無効です\",\"101\":\"アクセストークンの作成が出来ませんでした。\",\"102\":\"無効なOTPトークンもしくはトークンの期限が切れています。\",\"103\":\"無効な認証コードもしくは認証コードの期限が切れています。\",\"104\":\"アカウントディレクトリが無効です\",\"105\":\"アカウントディレクトリのパスワードの期限が切れています。\",\"106\":\"アカウントディレクトリの期限が切れています。\",\"107\":\"アカウントディレクトリ－パスワードのリトライ回数の制限を超えています\",\"108\":\"アカウントディレクトリー\",\"109\":\"アカウントディレクトリ－セキュリティプロバイダによるシステムエラー\",\"110\":\"メールアドレスは既に使われています\",\"112\":\"<p class='p-text-center'>あなたのアカウントは停止中です <br/>管理者に連絡してください</p>\",\"113\":\"ユーザーはロックアウトされてません\",\"114\":\"ユーザーは既にロックアウト解除されてます\",\"200\":\"OK.\",\"300\":\"メールアドレスの形式が無効です\",\"301\":\"無効なPINコードもしくはPINコードの期限が切れています。\",\"302\":\"パスワードが合いません\",\"303\":\"無効な色\",\"304\":\"無効なウェブサイトＵＲＬ\",\"305\":\"無効な支払通貨\",\"306\":\"無効なページリクエスト\",\"307\":\"無効な日付\",\"308\":\"無効なフォルダーをアップデートしました。\",\"309\":\"無効なプロジェクト設定\",\"310\":\"無効なチームステータス\",\"311\":\"無効な支払方法\",\"312\":\"無効な支払請求書発行サイクル\",\"313\":\"このE-mailアドレスは存在しません。\",\"314\":\"パスワード形式が無効です\",\"400\":\"無効なリクエスト\",\"401\":\"操作は許可されてません\",\"403\":\"権限がありません\",\"404\":\"見つかりません\",\"406\":\"無効なデータが存在します。\",\"407\":\"パラメーターがありません。\",\"408\":\"アプリは有効ではありません。ベンダーにお問い合わせください。\",\"500\":\"システムエラー\",\"501\":\"グループ名には次の文字は使えません: ,/\",\"600\":\"プロジェクトが見つかりません。\",\"601\":\"新しいプロジェクトを作ることが出来ませんした。\",\"700\":\"フォルダーが見つかりません。\",\"701\":\"特殊文字は使えません\",\"702\":\"権限がありません\",\"800\":\"ファイルが見つかりません。\",\"801\":\"ファイルのバージョンが見つかりません。\",\"802\":\"ファイルのライセンスが見つかりません。\",\"803\":\"同じ名前のファイルが存在しています。\",\"804\":\"ファイルは保護されています。\",\"805\":\"ファイルの複合化が出来ませんでした。\",\"806\":\"ファイルは大きすぎてプレビューできません。ダウンロードしてください。\",\"807\":\"ファイルを暗号化しています。\",\"900\":\"ラベルが見つかりません。\",\"901\":\"ラベルは既に存在しています。\",\"1100\":\"共有リンクが見つかりません。\",\"1101\":\"共有リンクパッケージが見つかりません。\",\"1102\":\"リンクの期限が切れました\",\"1103\":\"リンクが見つかりません。\",\"1106\":\"位置が必要です\",\"1107\":\"フォントサイズは必須で、値は0より大きい必要があります\",\"1200\":\"ダウンロードの上限回数に達しました。\",\"1201\":\"ファイルのダウンロードが出来ませんでした。\",\"1202\":\"ダウンロードzipキューが見つかりません。\",\"1203\":\"Zipファイルとしてダウンロードできません。フォルダーが空になっています。\",\"1300\":\"ファイルの拡張は許可されていません。\",\"1301\":\"アップロード中にエラーが起きました\",\"1302\":\"アップロードファイルのデータが見つかりません。\",\"1304\":\"ファイルをアップロードできません\",\"1400\":\"ユーザーが見つかりません。\",\"1401\":\"ユーザーは既に存在しています。\",\"1402\":\"グループユーザーが見つかりません。\",\"1403\":\"ユーザーグループ名は存在しています。\",\"1404\":\"ユーザーの作成が出来ませんでした。\",\"1405\":\"ユーザーの役割が見つかりません。\",\"1406\":\"現在のパスワードが誤っています。\",\"1407\":\"フォルダー内にユーザーが見つかりません。\",\"1408\":\"先にユーザーがオーナーであるプロジェクトの移管を依頼してください。\",\"1409\":\"グループにユーザーがありません\",\"1410\":\"このユーザーはプロジェクトのコピーを現在行っているため役割は今変更できません。\",\"1411\":\"インポート失敗。CSVファイルが無効です。\",\"1412\":\"インポート失敗。CSVファイルが空です。\",\"1413\":\"インポートできませんでした\",\"1414\":\"グループ名の最大文字数 > 64 文字\",\"1415\":\"パスワードにはスペースは使えません\",\"1416\":\"新しいパスワードは現在のものと同じではいけません\",\"1500\":\"アドレスブックが見つかりません。\",\"1501\":\"アドレスブックは既に存在しています。\",\"1502\":\"グループアドレスブックは見つかりません。\",\"1503\":\"アドレスグループの名前は既に存在しています。\",\"1600\":\"コメントが見つかりません。\",\"1700\":\"会社が見つかりません。\",\"1701\":\"会社は既に存在しています。\",\"1800\":\"このチームは存在しません\",\"1801\":\"チームは既に存在しています。\",\"1802\":\"チームの支払が見つかりません。\",\"1803\":\"チームメンバーの人数は上限に達しています。\",\"1804\":\"チームの支払をアップデート出来ません。\",\"1805\":\"チームの支払領収書が発行できませんでした。\",\"1806\":\"チームのストレージが上限に達しています。\",\"1807\":\"新しいチームを作ることが出来ませんでした。\",\"1808\":\"ユーザー価格が見つかりません。\",\"1809\":\"ストレージの価格が見つかりません。\",\"1810\":\"チームの支払カードが見つかりません。\",\"1811\":\"無効なチームへの通知設定\",\"1821\":\"提供されたユーザー数はゼロより大きくなければなりません\",\"2300\":\"このファイルにアクセスする権限のないE-mailアドレスのユーザーです。\",\"2700\":\"かーどは既に存在します\",\"2701\":\"カード種が見つかりません\",\"2702\":\"カード番号の形式が無効です\",\"2703\":\"カードは期限切れです\",\"2704\":\"クレジットカードが見つかりません\",\"2705\":\"お客様 Stripe は、見つかりません\",\"2706\":\"カードを有効にしました\",\"2707\":\"このカードは無効です。別のカードをご利用ください。\",\"2708\":\"試用アカウントのお支払い方法を更新できません\",\"2709\":\"ユーザー数課金とストレージ容量課金の通貨は一緒である必要があります\",\"2710\":\"カードを削除できません\",\"2711\":\"決済失敗\",\"2712\":\"カードの有効化ができません\",\"2713\":\"クレジットカード処理でエラーが発生しました。\",\"2714\":\"カードのセキュリティコードが違います\"},\"default_toast\":{\"create_success\":\"登録しました\",\"add_success\":\"追加しました\",\"update_success\":\"更新しました\",\"update_pass_success\":\"新しいパスワードは更新されました\",\"save_success\":\"保存しました\",\"delete_success\":\"削除しました\",\"revoke_success\":\"ファイルをアクセス停止にしました\",\"drop_upload\":\"アップロードするファイルをドラッグアンドドロップしてください\",\"wait\":\"お待ちください。。。\",\"only_support_trial\":\"現在は使用アカウントしかありません\",\"move_success\":\"移動しました\",\"invite_success\":\"招待しました\",\"invite_success_error_users\":\"次のアドレスは招待できませんでした: \",\"share_success\":\"共有しました\",\"restore_success\":\"リストアしました\",\"upload_success\":\"アップロードしました\",\"send_confirm_email\":\"確認メールを送りましたので、ご確認ください\",\"invalid_data\":\"無効なデータがあります\",\"waiting_sync\":\"アップデートが終るまで少々お待ちください\",\"error_dot_folder\":\"ピリオドだけのファイル名は無効です\",\"copy_success\":\"コピーしました\",\"remove_success\":\"削除しました\",\"change_mail_success\":\"メールアドレスを変更しました\",\"activate_success\":\"チームの有効化に成功しました。\",\"deactivate_success\":\"無効化しました\",\"unlock_success\":\"ロックアウト解除されました\",\"import_success\":\"インポートが完了しました\",\"load_data_failed\":\"データ読込失敗\"},\"tooltip\":{\"login_as_user\":\"ユーザーとしてログインする\",\"activity_details\":\"イベント詳細\",\"update_logo\":\"ロゴ更新\",\"reset_logo\":\"デフォルトロゴをリセットする\"},\"message\":{\"confirm_change_role\":{\"title\":\"役割を変更する\",\"content\":\"この行動は他のメンバーの役割権限に影響します。本当によろしいですか。\"},\"delete_member\":{\"title\":\"ユーザー削除\",\"content\":\"ユーザーを削除しますか？ すべての関連情報が削除されます。\"},\"reset_logo\":{\"title\":\"デフォルトロゴをリセット\",\"content\":\"デフォルトのロゴをリセットしますか？\"},\"login_as_user\":{\"secure_drive\":\"SecureDrive\",\"secure_mail\":\"SecureMail\",\"title\":\"ユーザーとしてログイン\",\"msg\":\"このユーザーのアカウントでログインしますか？ <br/><br/> <small>ログインするサービスを選択してください:</small>\"},\"csv_list_error\":\"インポートエラーリス\",\"transfer_account\":\"アカウントを別のメンバーに移す\",\"add_logo\":\"ロゴを追加\",\"delete_group\":{\"title\":\"ユーザー削除\",\"content\":\"ユーザーをグループから削除していいですか？\"},\"remove_member_from_group\":{\"title\":\"ユーザーを削除\",\"content\":\"ユーザーをグループから削除していいですか？\"},\"confirm_handle_user\":{\"title\":\"コラボレーター権限更新確認\",\"content\":\"このユーザーのコラボレーター権限をグループに合わせて更新してもいいですか？\",\"content_copy\":\"このユーザーのコラボレーター権限をグループに合わせて更新してもいいですか？\"},\"change_password\":\"パスワード変更\",\"change_email\":{\"title\":\"メールアドレス変更\",\"msg\":\"メールアドレスを変更しますか？\",\"success\":\"メールアドレスを変更するためのメールを送りました\"},\"confirm_unlock\":{\"title\":\"アカウントロックアウト解除\",\"content\":\"このユーザーのロックアウトを解除しますか？\"}},\"error_type_CSV\":{\"1\":\"名が入ってません\",\"2\":\"名の最大文字数 > 64 文字\",\"3\":\"名には特殊文字 < > { } は使えません\",\"4\":\"姓が入ってません\",\"5\":\"姓の最大文字数 > 64 文字\",\"6\":\"姓には特殊文字 < > { } は使えません\",\"7\":\"メールアドレスが空です\",\"8\":\"メールアドレスの最大文字数 > 64 文字\",\"9\":\"メールアドレスの形式が無効です\",\"10\":\"ロールが空です\",\"11\":\"マネージャーのためユーザーのインポート・更新\",\"12\":\"パスワード形式が無効です\",\"13\":\"グループ名の最大文字数 > 64 文字\",\"14\":\"グループ名には特殊文字 < > { } は使えません\",\"15\":\"利用可能人数に達しました\",\"16\":\"Team Adminは更新できません\",\"17\":\"ユーザーがプロジェクトのコピー中のためロールを更新できません\",\"18\":\"無効なレコード \",\"19\":\"パスワードにスペースが入ってます\",\"20\":\"パスワードが空です\",\"21\":\"ユーザー価格名がありません\",\"22\":\"ユーザー価格名が見つかりません\",\"23\":\"ストレージ価格名が空です\",\"24\":\"ストレージ価格名が見つかりません\",\"25\":\"送信数が空です\",\"26\":\"送信数の形式が無効です\",\"27\":\"送信数の範囲は 1 から 999999 です\",\"28\":\"機能設定が空です\",\"29\":\"機能設定の形式が無効です\",\"30\":\"システムエラー\",\"31\":\"トライアルチームのCSVインポートはできません\",\"32\":\"パッケージの通貨が違います\"},\"timezone\":{\"GMT_-12\":\"(GMT -12:00) Eniwetok, Kwajalein\",\"GMT_-11\":\"(GMT -11:00) Midway Island, Samoa\",\"GMT_-10\":\"(GMT -10:00) Hawaii\",\"GMT_-9\":\"(GMT -9:00) Alaska\",\"GMT_-8\":\"(GMT -8:00) Pacific Time (US & Canada)\",\"GMT_-7\":\"(GMT -7:00) Mountain Time (US & Canada)\",\"GMT_-6\":\"(GMT -6:00) Central Time (US & Canada), Mexico City\",\"GMT_-5\":\"(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima\",\"GMT_-4\":\"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz\",\"GMT_-3\":\"(GMT -3:00) Brazil, Buenos Aires, Georgetown\",\"GMT_-2\":\"(GMT -2:00) Mid-Atlantic\",\"GMT_-1\":\"(GMT -1:00 hour) Azores, Cape Verde Islands\",\"GMT_0\":\"(GMT) Western Europe Time, London, Lisbon, Casablanca\",\"GMT_+1\":\"(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris\",\"GMT_+2\":\"(GMT +2:00) Kaliningrad, South Africa\",\"GMT_+3\":\"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg\",\"GMT_+4\":\"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi\",\"GMT_+5\":\"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent\",\"GMT_+6\":\"(GMT +6:00) ダッカ、コロンボ\",\"GMT_+7\":\"(GMT +7:00) Bangkok, Hanoi, Jakarta\",\"GMT_+8\":\"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong\",\"GMT_+9\":\"(GMT +9:00) 東京、ソウル、大阪、札幌\",\"GMT_+10\":\"(GMT +10:00) Eastern Australia, Guam, Vladivostok\",\"GMT_+11\":\"(GMT +11:00) Magadan, Solomon Islands, New Caledonia\",\"GMT_+12\":\"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka\"},\"language\":{\"auto\":\"自動\",\"en\":\"英語\",\"ja\":\"日本語\",\"vi\":\"ベトナム語\"},\"months\":{\"january\":\"一月\",\"february\":\"二月\",\"march\":\"三月\",\"april\":\"四月\",\"may\":\"五月\",\"june\":\"六月\",\"july\":\"七月\",\"august\":\"八月\",\"september\":\"九月\",\"october\":\"十月\",\"november\":\"十一月\",\"december\":\"十二月\"},\"reports\":{\"report_filters\":\"絞り込み\",\"start_end_date\":\"日付レンジ\",\"users\":\"ユーザー\",\"groups\":\"グループ\",\"filter_all\":\"全て\",\"filter_member_table\":\"ユーザー\",\"filter_member\":\"ユーザー\",\"filter_member_group\":\"グループ\",\"filter_address\":\"アドレス帳\",\"filter_address_group\":\"アドレスグループ\",\"filter_project\":\"プロジェクト\",\"filter_folder\":\"フォルダ\",\"filter_file\":\"ファイル\",\"filter_collaborator\":\"コラボレーター\",\"filter_license\":\"ライセンス\",\"filter_link\":\"リンク\",\"filter_label\":\"ラベル\",\"filter_comment\":\"コメント\",\"select_all\":\"全てを選択\",\"member_management\":\"ユーザー管理\",\"created\":\"作成\",\"updated\":\"更新\",\"deleted\":\"削除\",\"removed\":\"削除\",\"member_login\":\"ログイン\",\"member_logout\":\"ログアウト\",\"member_revoked\":\"閲覧停止者\",\"login_as_member\":\"ユーザーとしてログインする\",\"transferred_account\":\"アカウント移譲\",\"member_group\":\"ユーザーグループ管理\",\"add_member_group\":\"ユーザーをグループに追加\",\"move_member_group\":\"ユーザーをグループに移動\",\"remove_member_group\":\"グループからユーザーを削除\",\"address_group\":\"アドレスグループ管理\",\"address_book\":\"アドレス帳管理\",\"add_address_to_group\":\"アドレスグループに追加\",\"move_address_to_group\":\"アドレスグループに移動\",\"remove_address_to_group\":\"アドレスグループから削除\",\"project\":\"プロジェクト管理\",\"copied\":\"コピー\",\"folder\":\"フォルダ管理\",\"delete_forever\":\"完全に削除\",\"moved\":\"移動\",\"rename\":\"名前変更\",\"restore\":\"復帰\",\"update_setting\":\"設定を更新\",\"file\":\"ファイル管理\",\"upload\":\"アップロード\",\"encode\":\"暗号化\",\"decode\":\"復号化\",\"update_license\":\"ライセンス更新\",\"attached_label\":\"ラベルを追加\",\"detached_label\":\"ラベルを外す\",\"collaborator\":\"コラボレーター\",\"group_invite_collaborator\":\"グループ招待\",\"group_update_collaborator\":\"グループ更新\",\"group_delete_collaborator\":\"グループを削除\",\"member_invite_collaborator\":\"ユーザー招待\",\"member_update_collaborator\":\"ユーザー更新\",\"member_delete_collaborator\":\"コラボレーターを削除\",\"licenses\":\"ライセンス\",\"registered\":\"登録\",\"link\":\"リンク管理\",\"share_link\":\"共有\",\"share_link_secure_mail\":\"SecureMailで共有\",\"label\":\"ラベル管理\",\"comment\":\"コメント\",\"add_comment_file\":\"ファイルへのコメントを追加\",\"update_comment_file\":\"ファイルへのコメントを更新\",\"delete_comment_file\":\"ファイルへのコメントを削除\",\"add_comment_project\":\"プロジェクトへのコメントを追加\",\"update_comment_project\":\"プロジェクトへのコメントを更新\",\"delete_comment_project\":\"プロジェクトへのコメントを削除\",\"update_drm\":\"DRM設定を更新\",\"disabled_drm\":\"DRMを解除\",\"action_text\":{\"delete_license\":\"ファイルのDRMを解除\",\"revoke_user\":\"ファイルから閲覧者を削除\",\"add_project\":\"プロジェクト作成\",\"update_project\":\"プロジェクト更新\",\"delete_project\":\"プロジェクト削除\",\"copy_project\":\"プロジェクトをコピー\",\"add_file\":\"ファイルをアップロード\",\"add_files\":\"{{count}} 個のファイルをアップロード\",\"encode_file\":\"ファイルのDRMを設定\",\"update_encode_file\":\"ファイルのDRMを更新\",\"update_file\":\"ファイル名を変更\",\"delete_file\":\"ファイルを削除\",\"move_file\":\"ファイルを移動\",\"move_files\":\"{{count}} 個のファイルを移動\",\"restore_file\":\"ファイルを復帰\",\"delete_file_forever\":\"ファイルを完全削除\",\"copy_file\":\"ファイルをコピー\",\"copy_files\":\"{{count}} 個のファイルをコピー \",\"attach_label\":\"ラベルを追加\",\"attach_labels\":\"{{count}} 個のラベルを追加\",\"detach_label\":\"ファイルからラベルを外す\",\"detach_labels\":\"{{count}} 個のラベルを外す\",\"add_folder\":\"フォルダを作成\",\"update_folder\":\"フォルダ名を変更\",\"delete_folder\":\"フォルダを削除\",\"move_folder\":\"フォルダを右記に移動\",\"move_folders\":\"{{count}} 個のフォルダを右記に移動\",\"restore_folder\":\"フォルダを復帰\",\"delete_forever_folder\":\"フォルダを完全削除\",\"update_folder_setting\":\"フォルダの設定を更新\",\"copy_folder\":\"フォルダをコピー\",\"copy_folders\":\"{{count}} 個のフォルダをコピー\",\"invite_user\":\"個のフォルダをコピー\",\"invite_users\":\"{{count}} 人のコラボレーターを追加\",\"remove_user\":\"コラボレーターを削除\",\"update_role_user\":\"コラボレーターの権限を変更\",\"invite_group\":\"コラボレーターグループを追加\",\"invite_groups\":\"{{count}} 個のコラボレーターグループを追加\",\"remove_group\":\"コラボレーターグループを削除\",\"update_role_group\":\"コラボレーターグループの権限を変更\",\"create_link\":\"プロジェクトにリンクを作成 \",\"delete_link\":\"プロジェクトのリンクを削除\",\"update_link\":\"プロジェクトのリンクを更新\",\"share_link\":\"プロジェクトでリンクを共有\",\"share_link_secure_mail\":\"プロジェクトでSecureMailリンクを共有\",\"add_comment\":\"プロジェクトにコメントを追加\",\"update_comment\":\"プロジェクトのコメントを更新\",\"delete_comment\":\"プロジェクトのコメントを削除\",\"add_comment_file\":\"ファイルにコメントを追加\",\"update_comment_file\":\"ファイルのコメントを更新\",\"delete_comment_file\":\"ファイルのコメントを削除 \",\"create_label\":\"プロジェクトにラベルを追加\",\"update_label\":\"プロジェクトのラベルを更新\",\"delete_label\":\"プロジェクトのラベルを削除\",\"add_user\":\"ユーザーを作成\",\"update_user\":\"ユーザーを更新\",\"delete_user\":\"ユーザーを削除\",\"log_in\":\"689Cloudにログイン\",\"log_out\":\"689Cloudからログアウト\",\"login_as_member\":\"管理者がメンバーアカウントでログイン\",\"create_group\":\"ユーザーグループを作成\",\"update_group\":\"ユーザーグループを更新\",\"delete_group\":\"ユーザーグループを削除\",\"add_member_group\":\"グループにユーザーを追加\",\"add_member_groups\":\"{{count}} 人のユーザーをグループに追加\",\"remove_member_group\":\"グループからユーザーを削除\",\"remove_member_groups\":\"{{count}} 人のユーザーをグループから削除\",\"move_member_group\":\"ユーザーを他のグループに移動\",\"move_member_groups\":\"{{count}} 人のユーザーを他のグループに移動\",\"add_address\":\"アドレス帳を作成\",\"update_address\":\"アドレス帳を更新\",\"delete_address\":\"アドレス帳を削除\",\"create_address_group\":\"アドレスグループを作成 \",\"update_address_group\":\"アドレスグループを更新\",\"delete_address_group\":\"アドレスグループを削除\",\"add_address_group\":\"アドレスグループにアドレスを追加\",\"add_address_groups\":\"{{count}} 人のアドレスをアドレスグループに追加\",\"remove_address_group\":\"アドレスグループからアドレスを削除\",\"remove_address_groups\":\"{{count}} 人のアドレスをアドレスグループから削除\",\"move_address_group\":\"アドレスを他のアドレスグループに移動\",\"move_address_groups\":\"{{count}} 人のアドレスを他のアドレスグループに移動\",\"transferred_project\":\"プロジェクトのオーナー権限を委譲\",\"transferred_account\":\"アカウント移譲\",\"transferred_filter\":\"プロジェクトのオーナー権限を委譲\"},\"detail\":{\"title\":\"イベント詳細\",\"member\":\"ユーザー\",\"action\":\"操作 \",\"detail\":\"詳細\",\"add_member_group\":\"グループ <strong>{{name}}</strong> にユーザーを追加\",\"add_member_groups\":\"ユーザー <strong>{{count}}</strong> 人をグループ <strong>{{name}}</strong> に追加\",\"remove_member_group\":\"グループ <strong>{{name}}</strong> からユーザーを削除\",\"remove_member_groups\":\"ユーザー <strong>{{count}}</strong> 人をグループ <strong>{{name}}</strong> から削除\",\"move_member_group\":\"グループ <strong>{{name}}</strong> からグループ <strong>{{toName}}</strong> にユーザーを移動\",\"move_member_groups\":\"ユーザー <strong>{{count}}</strong> 人をグループ <strong>{{name}}</strong> からグループ <strong>{{toName}}</strong> に移動\",\"add_address_group\":\"アドレスグループ <strong>{{name}}</strong> にアドレスを追加\",\"add_address_groups\":\"アドレス <strong>{{count}}</strong> 個をアドレスグループ <strong>{{name}}</strong> に追加\",\"remove_address_group\":\"アドレスグループ <strong>{{name}}</strong> からアドレスを削除\",\"remove_address_groups\":\"アドレス <strong>{{count}}</strong> 個をアドレスグループ <strong>{{name}}</strong> から削除\",\"move_address_group\":\"アドレスグループ <strong>{{name}}</strong> からアドレスグループ <strong>{{toName}}</strong> にアドレスを移動\",\"move_address_groups\":\"アドレス <strong>{{count}}</strong> 個をアドレスグループ <strong>{{name}}</strong> からアドレスグループ <strong>{{toName}}</strong> に移動\",\"project_setting\":\"プロジェクト設定\",\"ocr\":\"OCRを行う\",\"drm\":\"DRM保護する\",\"watermark\":\"ウオーターマーク \",\"notify\":\"通知\",\"printable\":\"印刷可能\",\"editable\":\"編集保存可能\",\"expiry_date\":\"有効期限\",\"default\":\"デフォルト\",\"content\":\"文\",\"font_size\":\"フォントサイズ\",\"position\":\"位置\",\"color\":\"色\",\"notify_all\":\"全て\",\"notify_specific\":\"特定\",\"folder_name\":\"フォルダ名\",\"folder_setting\":\"フォルダ設定\",\"add_folder\":\"プロジェクト <strong>{{name}}</strong> にフォルダ作成\",\"transferred_project\":\"<strong>{{name}}</strong> プロジェクトのオーナー権限を移譲\",\"copy_folder_folder\":\"フォルダを右記にコピー： <strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクト\",\"copy_folder\":\"<strong>{{projectName}}</strong> プロジェクトにフォルダをコピー\",\"copy_folders\":\"<strong>{{count}}</strong> 個のフォルダを <strong>{{projectName}}</strong> プロジェクトにコピー\",\"copy_folders_folder\":\"<strong>{{count}}</strong> 個のフォルダを <strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクトにコピー\",\"copy_folder_title\":\"コピーされたフォルダ\",\"move_folder_title\":\"移動されたアイテム\",\"move_folder\":\"<strong>{{projectName}}</strong> プロジェクトにフォルダを移動\",\"move_folder_folder\":\"フォルダを右記に移動： <strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクト\",\"move_folders\":\"<strong>{{count}}</strong> 個のフォルダを <strong>{{projectName}}</strong> プロジェクトに移動\",\"move_folders_folder\":\"<strong>{{count}}</strong> 個のフォルダを <strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクトに移動\",\"delete_folder\":\"削除： <strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクト\",\"delete_folder_title\":\"削除されたアイテム\",\"delete_forever_folder_folder\":\"完全削除： <strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクト\",\"delete_forever_folders_folder\":\"完全削除： <strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクト\",\"restore_folder_title\":\"復帰されたアイテム\",\"restore_folder_folder\":\"strong>{{name}}</strong> プロジェクトのフォルダを復帰\",\"update_folder_folder\":\"<strong>{{name}}</strong> プロジェクトのフォルダの名前変更\",\"add_file_title\":\"ファイルアップロードリスト\",\"copy_file_title\":\"ファイルコピーリスト\",\"move_file_title\":\"移動ファイルリスト\",\"add_file\":\"<strong>{{projectName}}</strong> プロジェクトにファイルをアップロード\",\"add_file_folder\":\"ファイル を右記にアップロード： <strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクト\",\"add_files\":\"<strong>{{count}}</strong> 個のファイルを  <strong>{{projectName}}</strong> プロジェクトにアップロード\",\"add_files_folder\":\"<strong>{{count}}</strong> 個のファイルを <strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクトにアップロード\",\"copy_file_folder\":\"ファイルを右記にコピー: <strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクト\",\"copy_file\":\"<strong>{{projectName}}</strong> プロジェクトにファイルをコピー\",\"copy_files_folder\":\"<strong>{{count}}</strong> 個のファイルを  <strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクトにコピー\",\"copy_files\":\"<strong>{{count}}</strong> 個のファイルを <strong>{{projectName}}</strong> プロジェクトにコピー\",\"move_file\":\"<strong>{{projectName}}</strong> プロジェクトにファイルを移動\",\"move_file_folder\":\"ファイルを右記に移動： <strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクト\",\"move_files\":\"<strong>{{count}}</strong> 個のファイルを <strong>{{projectName}}</strong> プロジェクトに移動\",\"move_files_folder\":\"<strong>{{count}}</strong> 個のファイルを <strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクトに移動\",\"delete_file_title\":\"ファイル削除\",\"delete_file\":\"<strong>{{projectName}}</strong> プロジェクトのファイルを削除\",\"delete_file_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクトのファイルを削除\",\"delete_file_forever\":\"<strong>{{projectName}}</strong> プロジェクトのファイルを完全削除\",\"delete_file_forever_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクトのファイルを完全削除\",\"restore_file_title\":\"ファイル復帰\",\"restore_file\":\"<strong>{{projectName}}</strong> プロジェクトのファイルを復帰\",\"restore_file_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクトのファイルを復帰\",\"update_file_title\":\"ファイル名\",\"update_file\":\"<strong>{{projectName}}</strong> プロジェクトのファイの名前を変更\",\"update_file_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクトのファイルの名前を変更\",\"attach_label\":\"<strong>{{parentName}}</strong> プロジェクトの <strong>{{name}}</strong> ファイルにラベル追加\",\"attach_label_folder\":\"<strong>{{parentName}}</strong> プロジェクトの <strong>{{folderName}}</strong> フォルダの <strong>{{name}}</strong> ファイルにラベル追加\",\"detach_label\":\"<strong>{{parentName}}</strong> プロジェクトの <strong>{{name}}</strong ファイルからラベルを削除\",\"detach_label_folder\":\"<strong>{{parentName}}</strong> プロジェクトの <strong>{{folderName}}</strong> フォルダの <strong>{{name}}</strong> ファイルからラベルを削除\",\"attach_labels\":\"<strong>{{count}}</strong> 個のラベルを <strong>{{name}}</strong> ファイル <strong>{{parentName}}</strong> プロジェクトに追加\",\"attach_labels_folder\":\"<strong>{{count}}</strong> 個のラベルを <strong>{{name}}</strong> ファイル <strong>{{folderName}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトに追加\",\"detach_labels\":\"<strong>{{count}}</strong> 個のラベルを <strong>{{name}}</strong> ファイル <strong>{{parentName}}</strong> プロジェクトから削除\",\"detach_labels_folder\":\"<strong>{{count}}</strong> 個のラベルを <strong>{{name}}</strong> ファイル <strong>{{folderName}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトから削除\",\"create_label\":\"プロジェクト <strong>{{name}}</strong> でラベルを作成\",\"update_label\":\"プロジェクト <strong>{{name}}</strong> でラベルを更新\",\"delete_label\":\"プロジェクト<strong>{{name}}</strong> でラベルを削除\",\"revoke_user\":\"<strong>{{parentName}}</strong> プロジェクトのファイルから閲覧者を削除\",\"revoke_user_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトのファイルから閲覧者を削除\",\"add_comment_file\":\"<strong>{{name}}</strong> ファイル <strong>{{parentName}}</strong> プロジェクトにコメントを追加\",\"add_comment_file_folder\":\"<strong>{{name}}</strong> ファイル <strong>{{folderName}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトにコメントを追加\",\"update_comment_file\":\"<strong>{{name}}</strong> ファイル <strong>{{parentName}}</strong> プロジェクトのコメントを更新\",\"update_comment_file_folder\":\"<strong>{{name}}</strong> ファイル <strong>{{folderName}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトのコメントを更新\",\"delete_comment_file\":\"<strong>{{name}}</strong> ファイル <strong>{{parentName}}</strong> プロジェクトのコメントを削除\",\"delete_comment_file_folder\":\"<strong>{{name}}</strong> ファイル <strong>{{folderName}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトのコメントを削除\",\"add_comment\":\"コメントを追加： プロジェクト <strong>{{name}}</strong>\",\"update_comment\":\"コメントを更新： プロジェクト <strong>{{name}}</strong>\",\"delete_comment\":\"コメントを削除： プロジェクト <strong>{{name}}</strong>\",\"collaborator\":\"コラボレーターリスト\",\"group_collaborator\":\"グループリスト\",\"invite_user\":\"<strong>{{parentName}}</strong> プロジェクトにコラボレーターを追加\",\"invite_user_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトにコラボレーターを追加\",\"invite_users\":\"<strong>{{count}}</strong> 人のコラボレーターを <strong>{{parentName}}</strong> プロジェクトに追加\",\"invite_users_folder\":\"<strong>{{count}}</strong> 人のコラボレーターを <strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトに追加\",\"remove_user\":\"<strong>{{parentName}}</strong> プロジェクトからコラボレーターを削除\",\"remove_user_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトからコラボレーターを削除\",\"update_role_user\":\"<strong>{{parentName}}</strong> プロジェクトのコラボレーターのロールを変更\",\"update_role_user_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトのコラボレーターのロールを変更\",\"invite_group\":\"<strong>{{parentName}}</strong> プロジェクトにグループを追加 \",\"invite_group_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトにグループを追加\",\"invite_groups\":\"<strong>{{count}}</strong> 人のグループを <strong>{{parentName}}</strong> プロジェクトに追加\",\"invite_groups_folder\":\"<strong>{{count}}</strong> 人のグループを <strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトに追加\",\"remove_group\":\"<strong>{{parentName}}</strong> プロジェクトからグループを削除\",\"remove_group_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトからグループを削除\",\"update_role_group\":\"<strong>{{parentName}}</strong> プロジェクトのグループのロールを変更\",\"update_role_group_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{parentName}}</strong> プロジェクトのグループのロールを変更\",\"create_link\":\"プロジェクト <strong>{{name}}</strong> にリンクを作成\",\"share_link\":\"プロジェクト <strong>{{name}}</strong> のリンクを共有\",\"share_link_secure_mail\":\"プロジェクト<strong>{{name}}</strong>でSecureMailリンクを共有\",\"share_links\":\"{{count}} 人とリンクを共有\",\"share_link_secure_mails\":\"{{count}} メールアドレスにSecureMailリンクを共有\",\"update_link\":\"プロジェクト <strong>{{name}}</strong> のリンクを更新\",\"delete_link\":\"プロジェクト <strong>{{name}}</strong> のリンクを削除\",\"add_address\":\"アドレス帳を作成 - {{email}}\",\"update_address\":\"アドレス帳を更新 - {{email}}\",\"delete_address\":\"アドレス帳を削除 - {{email}}\",\"update_folder_setting\":\"<strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクトの設定を更新\",\"encode_file\":\"<strong>{{name}}</strong> ファイル <strong>{{projectName}}</strong> プロジェクトにDRMを設定\",\"printable_file\":\"- 印刷可能\",\"editable_file\":\"- 編集保存可能\",\"expiry_date_file\":\"- 有効期限\",\"update_encode_file\":\"<strong>{{name}}</strong> ファイル <strong>{{projectName}}</strong> プロジェクトのDRM設定を更新\",\"delete_license\":\"<strong>{{projectName}}</strong> プロジェクトのファイルのDRMを無効化\",\"delete_license_folder\":\"<strong>{{name}}</strong> フォルダ <strong>{{projectName}}</strong> プロジェクトのファイルのDRMを無効化\",\"label_name\":\"ラベル\",\"yes\":\"はい\",\"no\":\"いいえ\"}}}");

/***/ }),

/***/ "./src/assets/i18n/vi.json":
/*!*********************************!*\
  !*** ./src/assets/i18n/vi.json ***!
  \*********************************/
/*! exports provided: app_title, content_types, button, features, label, place_holder, navi, header, card_header, table_header, login, errors, password_policy, sever_errors, default_toast, tooltip, message, error_type_CSV, timezone, language, months, reports, default */
/***/ (function(module) {

module.exports = JSON.parse("{\"app_title\":\"689Cloud Admin Console\",\"content_types\":{\"docx\":\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\"xlsx\":\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\"pptx\":\"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\"pdf\":\"application/pdf\",\"project\":\"application/project\",\"folder\":\"application/folder\",\"csv\":\"text/csv\",\"jpeg\":\"image/jpeg\",\"ms_download\":\"application/x-msdownload\",\"ms_word\":\"application/msword\"},\"button\":{\"ok\":\"CHẤP NHẬN\",\"next\":\"Tiếp tục\",\"cancel\":\"TỪ CHỐI\",\"back\":\"quay về\",\"save\":\"LƯU\",\"register\":\"ĐĂNG KÝ\",\"continue\":\"TIẾP TỤC\",\"view\":\"XEM\",\"download\":\"TẢI VỀ\",\"add\":\"THÊM\",\"delete\":\"XÓA\",\"download_csv_user_list\":\"tải danh sách thành viên\",\"login\":\"Đăng Nhập\",\"import_csv\":\"Nhập Thành Viên Từ Tập Tin CSV\",\"csv_template\":\"Tải Tập Tin CSV Mẫu\",\"transfer_account\":\"Chuyển nhượng tài khoản\",\"unlock_account\":\"Mở Khóa\",\"change_password\":\"Thay đổi mật khẩu\",\"change_email\":\"Thay đổi email\",\"export\":\"Xuất\",\"run\":\"Lọc\",\"move\":\"di chuyển\",\"copy\":\"sao chép\",\"remove\":\"xóa\",\"confirm_handle_user\":{\"ignore\":\"BỎ QUA\",\"override\":\"GHI ĐÈ\"},\"generate_pin_code\":\"TẠO MÃ PIN\"},\"features\":{\"show_less_features\":\"Hiển thị ít tính năng\",\"show_more_features\":\"Hiển thị thêm tính năng\",\"expiry_setting\":\"Cài đặt thời hạn\",\"printing_control\":\"Kiểm soát in ấn\",\"two_factor_auth\":\"Xác thực 2 yếu tố\",\"secure_online_viewer\":\"Trình xem trực tuyến bảo mật\",\"watermark_view_online\":\"Đóng dấu bản quyền khi xem trực tuyến\",\"revoke_access_remotely\":\"Thu hồi quyền truy cập từ xa\",\"copy_protection\":\"Bảo vệ sao chép\",\"tracking_documents\":\"Theo dõi tài liệu\",\"secure_shares_per_month\":\"Chia sẻ bảo mật hàng tháng: {{ value }}\",\"secure_shares_per_year\":\"Chia sẻ bảo mật hàng năm: {{ value }}\",\"maximum_file_size\":\"Kích thước tối đa của tập tin: {{ value }}\",\"shared_space\":\"Không gian chia sẻ: {{ value }}\",\"supported_protected_files\":\"Định dạng tập tin được bảo vệ: PDF, Microsoft Office (docx, pptx, xlsx)\"},\"label\":{\"package\":{\"title\":\"Thông tin gói dịch vụ\",\"package_name\":\"Tên gói dịch vụ\",\"upgrade\":\"Nâng cấp\",\"current_plan\":\"Gói hiện tại\",\"choose_plan\":\"Chọn gói\",\"monthly\":\"Hàng tháng\",\"annually\":\"Hàng năm\",\"save\":\"Tiết kiệm\",\"no_packages\":\"Không có gói dịch vụ nào phù hợp với tiêu chí đã chọn.\",\"per_user_per_month\":\"mỗi người dùng/tháng\",\"minimum_user\":\"Số người dùng tối thiểu: {{ minUser }}\",\"upgrade_secure_mail_package\":\"Gói SecureMail\",\"upgrade_secure_drive_package\":\"Gói SecureDrive\",\"price\":\"Giá\",\"expire_date\":\"Ngày hết hạn\",\"currency\":\"Đơn vị tiền tệ\",\"billing_cycle\":\"Chu kỳ thanh toán\",\"payment_method\":\"Phương thức thanh toán\",\"downgrade\":\"Hạ cấp\",\"downgrade_plan\":\"Hạ cấp gói dịch vụ\",\"cancel_downgrade_plan\":\"Hủy yêu cầu hạ cấp\",\"pending_downgrade\":\"Đang chờ hạ cấp\",\"cancel_downgrade\":\"Hủy hạ cấp\",\"upgrade_plan\":\"Nâng cấp gói dịch vụ\"},\"receipt_credit_applied\":\"Tín dụng được áp dụng\",\"receipt_user\":\"Người dùng\",\"number_of_users\":\"Số lượng người dùng\",\"receipt_preview\":\"Xem Trước Biên Lai\",\"thank_you\":\"Cảm ơn bạn đã thanh toán bằng {{serviceName}}\",\"charged_date\":\"Ngày tính phí:\",\"plan\":\"Gói:\",\"price_per_user\":\"Giá/Người:\",\"description\":\"Mô tả\",\"quantity\":\"Số lượng\",\"price\":\"Giá\",\"remaining_credit\":\"Tín dụng còn lại\",\"grand_total\":\"Tổng cộng\",\"contact\":\"Liên hệ:\",\"company_slogan\":\"Secure Document Sharing and Cloud Collaboration\",\"preview\":\"Xem Trước Biên Lai\",\"annually_billing_cycle\":\"{{ number_months }} months\",\"cancel_downgrade_title\":\"Hủy yêu cầu hạ cấp\",\"cancel_downgrade_message\":\"Bạn có chắc chắn muốn hủy yêu cầu hạ cấp không?\",\"cancel_downgrade_package\":\"Gói hạ cấp\",\"cancel_downgrade_info\":\"Bằng cách hủy yêu cầu hạ cấp này, bạn sẽ tiếp tục sử dụng gói hiện tại và chu kỳ thanh toán của mình.\",\"back\":\"Quay lại\",\"confirm_cancel_downgrade\":\"Có, hủy hạ cấp\",\"downgrade_warning\":\"Cảnh báo hạ cấp gói dịch vụ\",\"downgrade_warning_message\":\"Gói bạn đã chọn có số lượng người dùng tối thiểu thấp hơn số lượng người dùng hiện tại của bạn.\",\"current_users\":\"Số lượng người dùng hiện tại\",\"min_users_in_plan\":\"Số lượng người dùng tối thiểu trong gói\",\"downgrade_remove_users_warning\":\"Nếu bạn tiếp tục, chúng tôi sẽ tính phí theo số lượng người dùng theo giá của gói đã hạ cấp vào ngày hết hạn.\",\"proceed_downgrade\":\"Tiếp tục hạ cấp\",\"cancel\":\"Hủy Yêu Cầu\",\"ok\":\"Đồng ý\",\"new_package\":\"Gói Mới\",\"existing_package\":\"Gói hiện tại\",\"day_remaining\":\"Số ngày còn lại\",\"amount_deducted\":\"Số tiền đã trừ\",\"price_adjustment_note\":\"Giá được điều chỉnh dựa trên số ngày còn lại trong chu kỳ thanh toán hiện tại của bạn.\",\"card_holder_name\":\"Tên Chủ Thẻ\",\"confirm_details\":\"Vui lòng xác nhận thông tin của bạn\",\"confirm_payment_information\":\"Nhận Thông Tin Thanh Toán\",\"total\":\"Tổng\",\"email\":\"E-mail\",\"name\":\"Tên\",\"users\":\"Số lượng người dùng\",\"annually\":\"Hàng năm\",\"monthly\":\"Hàng tháng\",\"payment_confirmation\":\"XÁC NHẬN THANH TOÁN\",\"buy_user\":\"Mua Người Dùng\",\"upgrade_plan\":\"Nâng Cấp\",\"secure_drive_plan\":\"Kế hoạch Secure Drive\",\"secure_mail_plan\":\"Kế hoạch Secure Mail\",\"user_per_month\":\"/người/tháng\",\"checkout\":\"Thanh toán\",\"your_current_plan\":\"Kế hoạch hiện tại của bạn\",\"your_new_plan\":\"Kế hoạch mới của bạn\",\"today_total\":\"Tổng số hôm nay\",\"card_info\":\"Thông tin thẻ\",\"recurring_annual_cost\":\"Chi phí hàng năm định kỳ\",\"recurring_month_cost\":\"Chi phí tháng định kỳ\",\"summary_sub_text\":\"{{ currency }}{{ price }} x {{ number_user }} người\",\"holder_name\":\"Họ Tên Chủ Thẻ\",\"add_payment_card\":\"Thêm Thẻ Thanh Toán\",\"show_less_features\":\"Hiển thị ít tính năng\",\"show_more_features\":\"Hiển thị thêm tính năng\",\"member\":\"Thành Viên\",\"history\":\"Lịch sử\",\"dashboard\":\"Bảng Điều Khiển\",\"report\":\"Báo Cáo\",\"settings\":\"Cài đặt\",\"user_console\":\"Trang Người Dùng\",\"old_settings\":\"Cài đặt cũ\",\"new_settings\":\"Cài đặt mới\",\"help\":\"Trợ giúp\",\"logout\":\"Đăng xuất\",\"team_information\":\"Thông tin nhóm\",\"notification\":\"Thông Báo\",\"account_security\":\"Bảo mật tài khoản\",\"team_billing\":\"Thanh toán nhóm\",\"secure_mail_setting\":\"Cài đặt SecureMail\",\"secure_drive_setting\":\"Cài đặt SecureDrive\",\"search_placeholder\":\"Tìm kiếm...\",\"system_role\":{\"admin\":\"Quản trị viên\",\"manager\":\"Quản lý\",\"user\":\"Thành viên\",\"guest\":\"Khách\"},\"project_role\":{\"owner\":\"Chủ sở hữu\",\"editor\":\"Biên tập viên\",\"viewer\":\"Người xem\",\"previewer\":\"Khách mời\",\"viewer_uploader\":\"Người xem - Tải lên\",\"previewer_uploader\":\"Khách mời - Tải lên\",\"uploader\":\"Người tải lên\"},\"no_record\":\"Không có dữ liệu\",\"override\":\"Ghi đè quyền của cộng tác viên trong dự án mà nhóm đang cộng tác\",\"create_new\":\"Tạo mới:\",\"team_name\":\"Tên nhóm\",\"common\":{\"first_name\":\"Họ\",\"middle_name\":\"Tên Đệm\",\"last_name\":\"Tên\",\"mail_address\":\"Địa Chỉ E-mail\",\"role\":\"Quyền\",\"groups\":\"Nhóm\",\"password\":\"Mật Khẩu\",\"confirm_password\":\"Nhập Lại Mật Khẩu\",\"select_group\":\"Chọn Nhóm Thành Viên\",\"name\":\"Tên Nhóm\",\"project_name\":\"Tên dự án\",\"numbers_user\":\"Số Thành Viên\",\"create_date\":\"Ngày Tạo\",\"number_member\":\"Số Thành Viên\",\"project_usage\":\"Dự Án\",\"members\":\"Thêm Thành Viên Vào Nhóm\",\"description\":\"Mô Tả\",\"used_service\":\"Dịch vụ sử dụng\",\"create_by\":\"Được tạo bởi\"},\"member_group\":{\"select_group_user\":\"Chọn Nhóm Thành Viên\",\"list\":\"DANH SÁCH NHÓM THÀNH VIÊN\",\"add\":\"Thêm Mới Nhóm Thành Viên\",\"detail\":\"THÔNG TIN CHI TIẾT NHÓM THÀNH VIÊN\",\"edit\":\"CHỈNH SỬA NHÓM THÀNH VIÊN\",\"add_to_group\":\"Thêm Thành Viên Vào Nhóm\",\"copy_member_to_group\":\"Sao Chép Thành Viên Vào Nhóm Khác\",\"move_to_group\":\"Di Chuyển Thành Viên Qua Nhóm Khác\"},\"my_account\":\"Tài khoản của tôi\",\"force_setting\":\"Cài đặt\",\"protected_file\":\"Hỗ trợ tập tin được bảo vệ\",\"pdf\":\"Portable Document Format (.pdf)\",\"xls\":\"Microsoft Excel (.xlsx)\",\"doc\":\"Microsoft Word (.docx)\",\"ppt\":\"Microsoft Power Point (.pptx)\",\"image\":\"Hình ảnh (Chỉ hỗ trợ các loại: .jpg, .png, .jpeg)\",\"banned_extension\":\"Loại file không được phép tải lên\",\"link_setting\":\"Cài đặt liên kết\",\"link_expiry_date\":\"Thời gian liên kết hết hạn\",\"downloadable\":\"Cho phép tải về\",\"password_protect\":\"Đặt mật khẩu cho các file không hỗ trợ DRM\",\"drm_setting\":\"Cài Đặt DRM\",\"document_expiry_date\":\"Thời gian file hết hạn\",\"hour\":\"Giờ (UTC)\",\"minute\":\"Phút (UTC)\",\"printable\":\"Có thể in\",\"editable\":\"Có thể chỉnh sửa\",\"watermark_setting\":\"Cài đặt watermark\",\"show_wm\":\"Chèn Watermark vào tài liệu xem trực tuyến\",\"font_size\":\"Kích Thước\",\"position\":\"Vị Trí\",\"default\":\"Mặc định (E-mail của người xem)\",\"customs\":\"Cài Đặt Nội Dung\",\"watermark_position\":{\"center\":\"Giữa\",\"top-left\":\"Trên-Trái\",\"top-center\":\"Trên-Giữa\",\"top-right\":\"Trên-Phải\",\"bottom-left\":\"Dưới-Trái\",\"bottom-center\":\"Dưới-Giữa\",\"bottom-right\":\"Dưới-Phải\",\"diagonal\":\"Đường chéo\"},\"expiry_date\":{\"none\":\"Không\",\"7-day\":\"7 ngày\",\"1-month\":\"1 tháng\",\"6-months\":\"6 tháng\",\"1-year\":\"1 năm\"},\"search_type\":{\"user_info\":\"Thông tin thành viên\",\"file_name\":\"Tên file\"},\"dashboard_page\":{\"member\":\"Thành viên\",\"transmission\":\"Lượt chia sẻ\",\"storage\":\"Bộ nhớ\",\"number_of_transaction\":\"Số lần gửi file\",\"number_of_link\":\"Số liên kết đã chia sẻ\",\"transaction_text\":\"Đã sử dụng {{ used }} trên tổng số {{ total }} lượt chia sẻ của tháng này\",\"storage_text\":\"Đã sử dụng {{ used }} trên tổng số {{ storage }}\",\"user_text\":\"Đã tạo {{ used }} trên tổng số {{ total }} người dùng\"},\"current_password\":\"Mật Khẩu Hiện Tại\",\"new_password\":\"Mật Khẩu Mới\",\"confirm_new_password\":\"Nhập Lại Mật Khẩu Mới\",\"email_notify\":\"THÔNG BÁO E-MAIL VÀ BẢO MẬT\",\"user_setting\":{\"email_notification\":{\"account_change\":\"Thông báo khi tài khoản của tôi có sự thay đổi\",\"encode_file_expired\":\"Thông báo cho tôi khi các tập tin được bảo vệ hết hạn\",\"new_comment\":\"Thông báo khi có thảo luận mới\",\"security_auth\":\"Xác thực 2 bước\",\"disable_reason\":\"(Bắt buộc bởi cài đặt nhóm)\"}},\"pin_code\":\"Mã Pin\",\"timezone\":\"Múi Giờ\",\"language\":\"Ngôn ngữ\",\"notify\":{\"notify_collaboration_project\":\"Cho phép gửi thông báo tới người dùng khi mời vào dự án\",\"create_new_member\":\"Cho phép gửi thông báo tới người dùng khi được thêm vào nhóm\",\"mention_in_comment\":\"Cho phép gửi thông báo tới người dùng khi được nhắc tới trong bình luận\",\"import_user_csv\":\"Cho phép gửi thông báo tới người dùng khi được nhập bằng tệp CSV\"},\"2fa_policy\":{\"title\":\"XÁC THỰC HAI BƯỚC\",\"two_factor\":\"Bắt buộc thành viên kích hoạt xác thực 2 bước\"},\"password_policy\":{\"title\":\"CHÍNH SÁCH MẬT KHẨU\",\"policy_default\":\"Mặc định\",\"policy_customs\":\"Tùy chỉnh\",\"min_length\":\"Tối thiểu\",\"max_length\":\"Tối đa\",\"lower_characters\":\"Chữ thường\",\"uppercase_characters\":\"Chữ hoa\",\"special_characters\":\"Đặc biệt\",\"numeric_characters\":\"Số\",\"characters\":\"kí tự\",\"character\":\"kí tự\"},\"session_age\":{\"title\":\"Thời hạn phiên\",\"hours\":\"Giờ\",\"days\":\"Ngày\"},\"lockout_policy\":{\"title\":\"CHÍNH SÁCH KHÓA\",\"times\":\"lần\",\"minutes\":\"phút\",\"account_lockout\":\"Khóa tài khoản\",\"account_lockout_duration\":\"Thời hạn\",\"account_lockout_counter\":\"Đặt lại sau\",\"account_lockout_threshold\":\"Ngưỡng khóa\"},\"password_age\":{\"title\":\"Thời hạn mật khẩu\",\"30d\":\"30 ngày\",\"60d\":\"60 ngày\",\"90d\":\"90 ngày\",\"120d\":\"120 ngày\",\"none\":\"Không\"},\"first_time_login\":{\"title\":\"ĐĂNG NHẬP LẦN ĐẦU\",\"first_time_login_note\":\"Bắt buộc tất cả các thành viên phải thay đổi mật khẩu cho lần đầu đăng nhập\"},\"team_plan\":\"KẾ HOẠCH SỬ DỤNG NHÓM\",\"payment_method\":{\"title\":\"CÁCH THỨC THANH TOÁN\",\"online\":\"Trực tuyến\",\"offline\":\"Thủ công\"},\"billing_cycle\":{\"title\":\"CHU KỲ THANH TOÁN\",\"cycle\":\"Chu kỳ thanh toán\",\"30d\":\"30 ngày\",\"365d\":\"365 ngày\",\"60d\":\"60 ngày\",\"90d\":\"90 ngày\"},\"user_price\":{\"title\":\"Số lượng người dùng\",\"description\":\"{{currency}} {{price}} / tháng - Tối đa {{maxUser}} người dùng\",\"description_vnd\":\"{{price}} {{currency}} / tháng - Tối đa {{maxUser}} người dùng\"},\"storage_price\":{\"title\":\"Dung lượng lưu trữ\",\"description\":\"{{currency}} {{price}} / tháng - Tối đa {{maxStorage}} GB\",\"description_vnd\":\"{{price}} {{currency}} / tháng - Tối đa {{maxStorage}} GB\"},\"monthly_cost\":\"Tổng chi phí hàng tháng\",\"currency_unit\":{\"usd\":\"$\",\"yen\":\"￥\",\"vnd\":\"VND\"},\"payment_history\":{\"title\":\"LỊCH SỬ GIAO DỊCH\",\"id\":\"ID\",\"date\":\"Ngày\",\"amount\":\"Tổng số\",\"description\":\"Mô tả\",\"payment_method\":\"Phương thức thanh toán\",\"receipt\":\"Hóa đơn\"},\"allowed_file_extensions_upload\":\"Loại tập tin được phép tải lên\",\"example_allowed_file_extensions\":\"Ví dụ: pptx,xlsx,docx\",\"allow_roles_create_project\":\"LỰA CHỌN QUYỀN ĐƯỢC TẠO DỰ ÁN\",\"total_project\":\"Số dự án\",\"total_file\":\"Số lượng tập tin\",\"total_guest\":\"Tổng số khách\",\"total_address_book\":\"Tổng sổ địa chỉ\",\"total_protected_file\":\"Số tệp bảo vệ\"},\"place_holder\":{\"banned_ext\":\"hash,wmv,dll,jar,ect\"},\"navi\":{\"member\":\"Thành Viên\",\"group_member\":\"Nhóm Thành Viên\",\"history\":\"Lịch Sử\",\"dashboard\":\"Bảng Điều Khiển\",\"report\":\"Báo Cáo\",\"profile\":\"Thông tin cá nhân\"},\"header\":{\"member\":{\"list\":\"danh sách thành viên\",\"edit\":\"chỉnh sửa thành viên\",\"add\":\"thêm mới thành viên\"},\"member_group\":{\"list\":\"DANH SÁCH NHÓM THÀNH VIÊN\",\"add\":\"Thêm Mới Nhóm Thành Viên\",\"detail\":\"THÔNG TIN CHI TIẾT NHÓM THÀNH VIÊN\",\"edit\":\"CHỈNH SỬA NHÓM THÀNH VIÊN\"},\"setting\":{\"title\":\"Cài đặt\"},\"my_account\":{\"account_info\":\"Thông tin tài khoản\",\"language\":\"Chọn ngôn ngữ\"},\"dashboard\":{\"title_sm\":\"BẢNG ĐIỀU KHIỂN SecureMail\",\"title_sd\":\"BẢNG ĐIỀU KHIỂN SecureDrive\"},\"report\":{\"title\":\"Reports\",\"activity_details\":\"Activity details\"}},\"card_header\":{\"recently_sent_files\":\"Đã Gửi Gần Đây\",\"top_members\":\"Các thành viên sử dụng số lượt chia sẻ cao nhất của tháng\",\"package_statistics\":\"Thống kê gói dịch vụ\",\"general_statistics\":\"Thống kê chung\"},\"table_header\":{\"common\":{\"first_name\":\"Họ\",\"last_name\":\"Tên\",\"mail_address\":\"Địa Chỉ E-mail\",\"create_date\":\"Ngày Tạo\",\"description\":\"Mô Tả\"},\"member\":{\"role\":\"Quyền\"},\"group_user\":{\"name\":\"Tên Nhóm\",\"numbers_user\":\"Số Thành Viên\",\"email\":\"Thêm Thành Viên Vào Nhóm\",\"create_by\":\"Được Tạo Bởi\"},\"dashboard\":{\"transmission_used\":\"Lượt chia sẻ đã dùng\",\"recently_sent_files\":{\"subject\":\"Tên Tệp\",\"date_sent\":\"Ngày Gửi\",\"owner_email\":\"E-mail chủ sở hữu\"}},\"report\":{\"member\":\"Thành viên\",\"action\":\"Chức năng\",\"affected\":\"Ảnh Hưởng\",\"date\":\"Ngày\",\"details\":\"Chi tiết\"}},\"login\":{\"email\":\"Nhập email của bạn\",\"password\":\"Nhập mật khẩu của bạn\",\"forgot_password\":\"Quên Mật Khẩu\",\"choose_team\":\"Vui lòng chọn nhóm:\",\"keep_me_login\":\"Duy trì trạng thái đăng nhập\",\"auth_code\":\"Mã xác thực\",\"verify_auth_code\":\"Xác thực\",\"new_password\":\"Mật khẩu mới\",\"confirm_password\":\"Xác nhận mật khẩu\",\"forgot_success_mgs\":\"Mật khẩu thay đổi yêu cầu của bạn đã được gửi, vui lòng kiểm tra E-mail của bạn để tạo mật khẩu mới\"},\"errors\":{\"invalid_email\":\"Email không hợp lệ\",\"invalid_credentials\":\"Thông tin đăng nhập không hợp lệ\",\"required\":\"Trường này là bắt buộc\",\"special_chars\":\"Chứa kí tự đặc biệt không được cho phép\",\"error_choose_team\":\"Vui lòng chọn nhóm để đăng nhập\",\"error_choose_team_reset_password\":\"Vui lòng chọn nhóm để lấy lại mật khẩu\",\"password_not_match\":\"Xác nhận mật khẩu không khớp\",\"password_expiry\":\"Mật khẩu đã hết hạn. Vui lòng thay đổi mật khẩu để đăng nhập.\",\"first_time_login\":\"Vui lòng thay đổi mật khẩu của bạn cho lần đầu tiên đăng nhập\",\"account_lockout\":\"<p class='p-text-center'>Tài khoản của bạn đã bị khóa. <br/>Vui lòng đăng nhập sau {{duration}} nữa hoặc liên hệ với quản trị viên để mở khóa.</p>\",\"password_remain\":\"<p class='p-mx-3'>Số lần còn lại: <strong>{{remain}}</strong> <br/> <strong>Cảnh báo:</strong> Sau <strong>{{threshold}} liên tiếp</strong> đăng nhập không thành công, tài khoản của bạn sẽ bị khóa.</p>\",\"err_access\":\"Bạn không có quyền sử dụng ứng dụng này\",\"err_access_function\":\"Bạn không có quyền sử dụng chức năng này\",\"un_support_extension\":\"Chỉ hỗ trợ các file hình ảnh\",\"min_length_required\":\"Độ dài tối thiểu là bắt buộc\",\"total_min\":\"Giá trị tối thiểu phải lớn hơn tổng số kí tự chữ thường, kí tự viết hoa, kí tự đặc biệt và kí tự số\",\"valid_length\":\"Kí tự được phép: 6 - 64\",\"valid_max_length\":\"Kí tự được phép: {{ min }} - 64\",\"max_length\":\"Độ dài tối đa: 64\",\"max_length_input\":\"Vui lòng nhập Độ dài tối đa\",\"lower_input\":\"Vui lòng nhập số kí tự thường\",\"valid_character\":\"Kí tự được phép: 1 - 10\",\"uppercase_input\":\"Vui lòng nhập số kí tự viết hoa\",\"special_input\":\"Vui lòng nhập số kí tự đặc biệt\",\"numeric_input\":\"Vui lòng nhập số kí tự số\",\"threshold_input\":\"Vui lòng nhập ngưỡng khóa tài khoản\",\"threshold_required\":\"Ngưỡng khóa tài khoản là bắt buộc\",\"valid_threshold\":\"Kí tự được phép: 1 - 999\",\"valid_duration\":\"Kí tự được phép: 1 - 99 999\",\"duration_input\":\"Vui lòng nhập thời lượng khóa tài khoản\",\"reset_input\":\"Vui lòng nhập đặt lại bộ đếm khóa tài khoản sau\",\"valid_session_age\":\"Kí tự được phép: 1 – {{ times }}\",\"invalid_date\":\"Ngày bắt đầu hoặc kết thúc không hợp lệ.\"},\"password_policy\":{\"default\":\"Mật khẩu phải từ {{min}} - {{max}} ký tự\",\"include\":\", bao gồm ít nhất\",\"capital\":\" {{number}} chữ hoa\",\"lower\":\" {{number}} chữ thường\",\"special\":\" {{number}} kí tự đặc biệt\",\"number\":\" {{number}} chữ số\",\"characters\":\".\"},\"sever_errors\":{\"100\":\"Mật khẩu không đúng\",\"101\":\"Tạo mã truy cập thất bại.\",\"102\":\"Mã truy cập không hợp lệ hoặc hết hạn.\",\"103\":\"Mã truy cập không hợp lệ hoặc hết hạn\",\"104\":\"Danh mục tài khoản chưa được kích hoạt.\",\"105\":\"Mật khẩu danh mục tài khoản hết hạn.\",\"106\":\"Danh mục tài khoản hết hạn.\",\"107\":\"Danh mục tài khoản - Thử lại mật khẩu vượt quá giới hạn quy định.\",\"108\":\"Danh mục tài khoản - Không sẵn sàng thực thi.\",\"109\":\"Danh mục tài khoản - Lỗi hệ thống từ nhà cung cấp bảo mật.\",\"110\":\"E-mail đã tồn tại\",\"112\":\"<p class='p-text-center'>Tài khoản của bạn đã bị khóa. <br/>Vui lòng liên hệ với quản trị viên để mở khóa</p>\",\"113\":\"Thành viên không bị khóa\",\"114\":\"Thành viên đã được mở khóa\",\"200\":\"Thành công.\",\"300\":\"Định dạng email không hợp lệ\",\"301\":\"Mã PIN không hợp lệ hoặc hết hạn\",\"302\":\"Mật khẩu xác nhận không khớp với mật khẩu\",\"303\":\"Định dạng màu sắc không hợp lệ\",\"304\":\"Định dạng đường dẫn trang web không hợp lệ\",\"305\":\"Tiền thanh toán không hợp lệ\",\"306\":\"Yêu cầu phân trang không hợp lệ\",\"307\":\"Định dạng ngày tháng không hợp lệ\",\"308\":\"Loại phần tử của thư mục cập nhật không hợp lệ\",\"309\":\"Định dạng cài đặt dự án không hợp lệ\",\"310\":\"Tình trạng nhóm không hợp lệ\",\"311\":\"Phương thức thanh toán không hợp lệ\",\"312\":\"Chu kỳ thanh toán không hợp lệ\",\"313\":\"Địa chỉ email này không tồn tại\",\"314\":\"Mật khẩu sai định dạng\",\"400\":\"Máy chủ không hiểu yêu cầu vừa được gửi\",\"401\":\"Không được phép truy cập hoặc mã truy cập hết hạn\",\"403\":\"Truy cập bị từ chối với trang này\",\"404\":\"Không tìm thấy trang hoặc máy chủ bạn yêu cầu\",\"406\":\"Dữ liệu nhập vào không hợp lệ\",\"407\":\"Không tìm thấy tham số\",\"408\":\"Ứng dụng bị vô hiệu hóa. Vui lòng liên hệ với nhà cung cấp\",\"500\":\"Máy chủ tạm thời đang bị lỗi\",\"501\":\"Tên nhóm không được chứa các dấu: ,/\",\"600\":\"Không tìm thấy dự án\",\"601\":\"Tạo mới dự án thất bại\",\"700\":\"Không thể tìm thấy thư mục\",\"701\":\"Chứa kí tự đặc biệt không hỗ trợ\",\"702\":\"Truy cập bị từ chối với trang này\",\"800\":\"Không thể tìm thấy tập tin\",\"801\":\"Không thấy phiên bản của tập tin\",\"802\":\"Địa chỉ email đã nhập không được phép xem tệp này\",\"803\":\"Tập tin đã tồn tại\",\"804\":\"Tập tin đã được bảo vệ\",\"805\":\"Giải mã tập tin thất bại\",\"806\":\"Tập tin quá lớn, không thể xem. Vui lòng tải về\",\"807\":\"Tập tin đang mã hóa\",\"900\":\"Không tìm thấy nhãn trạng thái\",\"901\":\"Nhãn trạng thái đã tồn tại\",\"1100\":\"Không tìm thấy liên kết được chia sẻ\",\"1101\":\"Không tìm thấy gói liên kết được chia sẻ\",\"1102\":\"Liên kết được chia sẻ hết hạn\",\"1103\":\"Không tìm thấy liên kết\",\"1106\":\"Vị trí hình mờ phải được chọn\",\"1107\":\"Kích thước hình mờ phải lớn hơn 0\",\"1200\":\"Đạt đến số lượng tải xuống giới hạn tối đa\",\"1201\":\"Tải xuống tập tin thất bại\",\"1202\":\"Không tìm thấy hàng đợi tải xuống tệp nén\",\"1203\":\"Thư mục được chỉ định trống. Không thể tải xuống dưới dạng zip.\",\"1300\":\"Phần mở rộng của tập tin không được chấp nhận\",\"1301\":\"Tập tin tải lên bị lỗi\",\"1302\":\"Không tìm thấy dữ liệu tập tin tải lên\",\"1304\":\"Tập tin không thể tải lên\",\"1400\":\"Không tìm thấy người dùng\",\"1401\":\"Người dùng đã tồn tại\",\"1402\":\"không tìm thấy nhóm người dùng\",\"1403\":\"Nhóm người dùng đã tồn tại\",\"1404\":\"Tạo người dùng thất bại\",\"1405\":\"Không tìm thấy vai trò của người dùng\",\"1406\":\"Sai mật khẩu hiện tại\",\"1407\":\"Không tìm thấy người dùng trong thư mục\",\"1408\":\"Vui lòng yêu cầu người dùng nhượng quyền dự án trước khi xóa\",\"1409\":\"Người dùng không tồn tại trng nhóm\",\"1410\":\"Không thể thay đổi quyền. Người dùng này đang sao chép dự án. Vui lòng chờ quá trình này kết thúc\",\"1411\":\"Nhập thất bại. Tập Tin CSV không hợp lệ.\",\"1412\":\"Nhập thất bại. Tập Tin CSV trống.\",\"1413\":\"Nhập thất bại\",\"1414\":\"Tên nhóm có độ dài tối đa là 64 kí tự\",\"1415\":\"Mật khẩu không thể chứa khoảng trắng\",\"1416\":\"Mật khẩu mới phải khác mật khẩu hiện tại\",\"1500\":\"Không tìm thấy danh bạ\",\"1501\":\"Danh bạ đã tồn tại\",\"1502\":\"Không tìm thấy nhóm danh bạ\",\"1503\":\"Nhóm danh bạ đã tồn tại\",\"1600\":\"Không tìm thấy bình luận\",\"1700\":\"Không tìm thấy công ty\",\"1701\":\"Công ty đã tồn tại\",\"1800\":\"Không tìm thấy nhóm\",\"1801\":\"Tên nhóm đã tồn tại\",\"1802\":\"Không tìm thấy thanh toán nhóm\",\"1803\":\"Nhóm đạt số lượng thành viên giới hạn tối đa\",\"1804\":\"Không thể cập nhật thanh toán nhóm\",\"1805\":\"Tạo hóa đơn thanh toán nhóm thất bại\",\"1806\":\"Lưu trữ của nhóm đã đạt đến giới hạn\",\"1807\":\"Tạo nhóm mới thất bại\",\"1808\":\"Không tìm thấy giá của người dùng\",\"1809\":\"Không tìm thấy giá lưu trữ\",\"1810\":\"Không tìm thấy thông tin thẻ thanh toán nhóm\",\"1811\":\"Cài đặt thông báo nhóm không hợp lệ\",\"1821\":\"Số lượng người dùng được cung cấp phải lớn hơn 0\",\"2300\":\"Địa chỉ email đã nhập không được phép xem tệp này.\",\"2700\":\"Thẻ đã tồn tại\",\"2701\":\"Không tìm thấy loại thẻ\",\"2702\":\"Định dạng số thẻ không hợp lệ\",\"2703\":\"Thẻ của bạn đã hết hạn\",\"2704\":\"Thẻ không tìm thấy\",\"2705\":\"Không tìm thấy khách hàng Stripe\",\"2706\":\"Thẻ đã được kích hoạt\",\"2707\":\"Thẻ không hợp lệ. Vui lòng đổi thẻ khác để tiếp tục\",\"2708\":\"Không thể cập nhật thanh toán nhóm cho nhóm dùng thử\",\"2709\":\"Giá người dùng và giá lưu trữ phải cùng loại tiền\",\"2710\":\"Xóa thẻ thất bại\",\"2711\":\"Tính phí không thành công\",\"2712\":\"Kích hoạt không thành công\",\"2713\":\"Lỗi thanh toán xảy ra với Stripe\",\"2714\":\"CVC thẻ của bạn không chính xác\"},\"default_toast\":{\"create_success\":\"Tạo thành công\",\"add_success\":\"Thêm thành công\",\"update_success\":\"Cập nhật thành công\",\"update_pass_success\":\"Đã cập nhật mật khẩu mới\",\"save_success\":\"Lưu thành công\",\"delete_success\":\"Xóa thành công\",\"revoke_success\":\"Hủy bỏ thành công\",\"drop_upload\":\"Kéo tập tin vào đây để tải lên\",\"wait\":\"Vui lòng chờ...\",\"only_support_trial\":\"Hiện tại chỉ hỗ trợ tài khoản thử nghiệm\",\"move_success\":\"Di chuyển thành công\",\"invite_success\":\"Thêm thành công\",\"invite_success_error_users\":\"Thêm không thành công: \",\"share_success\":\"Chia sẻ thành công\",\"restore_success\":\"Phục hồi\",\"upload_success\":\"Tải lên thành công\",\"send_confirm_email\":\"Vui lòng xác nhận email để thay đổi email mới\",\"invalid_data\":\"Có một số dữ liệu không hợp lệ\",\"waiting_sync\":\"bạn phải chờ đợi một khoảng thời gian để quá trình cập nhật hoàn tất\",\"error_dot_folder\":\"Bạn không thể tạo thư mục chỉ chứa kí tự dấu chấm\",\"copy_success\":\"Sao chép thành công\",\"remove_success\":\"Gỡ bỏ thành công\",\"change_mail_success\":\"Thay đổi email thành công\",\"activate_success\":\"Kích hoạt nhóm thành công\",\"deactivate_success\":\"Vô hiệu hóa nhóm thành công\",\"unlock_success\":\"Mở khóa thành công\",\"import_success\":\"Nhập thành công\",\"load_data_failed\":\"Truy xuất dữ liệu lỗi\"},\"tooltip\":{\"login_as_user\":\"Đăng nhập với tư cách thành viên\",\"activity_details\":\"[VN]Activity details\",\"update_logo\":\"Thay đổi logo\",\"reset_logo\":\"Đặt lại logo mặc định\"},\"message\":{\"confirm_change_role\":{\"title\":\"Thay Đổi Quyền Hạn\",\"content\":\"Hành động này sẽ ảnh hưởng đến quyền cộng tác viên. Bạn có chắc chắn muốn thay đổi?\"},\"delete_member\":{\"title\":\"Xóa Thành Viên\",\"content\":\"Bạn có thật sự muốn xóa thành viên này không? Những thông tin liên quan cũng sẽ bị xóa hết!\"},\"reset_logo\":{\"title\":\"Đặt Lại Logo Mặc Định\",\"content\":\"Bạn có muốn đặt lại logo mặc định của hệ thống không?\"},\"login_as_user\":{\"secure_drive\":\"SecureDrive\",\"secure_mail\":\"SecureMail\",\"title\":\"Đăng Nhập Với Tư Cách Thành Viên\",\"msg\":\"Bạn có muốn đăng nhập vào tài khoản này không? <br/><br/> <small>Vui lòng chọn dịch vụ để đăng nhập:</small>\"},\"csv_list_error\":\"Danh Sách Lỗi Khi Nhập Thành Viên\",\"transfer_account\":\"Chuyển nhượng tài khoản\",\"add_logo\":\"Thêm logo\",\"delete_group\":{\"title\":\"Xóa Nhóm Thành Viên\",\"content\":\"Bạn có thật sự muốn xóa nhóm thành viên này?\"},\"remove_member_from_group\":{\"title\":\"Xóa Thành Viên Khỏi Nhóm\",\"content\":\"Bạn có thật sự muốn xóa các thành viên này?\"},\"confirm_handle_user\":{\"title\":\"Xác Nhận Ghi Đè Quyền Của Cộng Tác Viên Trong Dự Án\",\"content\":\"Bạn có muốn ghi đè lên quyền của công tác viên đã có sẵn trong những dự án mà nhóm đang cộng tác hay không?\",\"content_copy\":\"Bạn có muốn ghi đè lên quyền của công tác viên đã có sẵn trong những dự án mà các nhóm này đang cộng tác hay không?\"},\"change_password\":\"Thay Đổi Mật Khẩu\",\"change_email\":{\"title\":\"Thay Đổi Địa Chỉ E-Mail\",\"msg\":\"Bạn có muốn thay đổi địa chỉ E-mail không?\",\"success\":\"Vui lòng xác nhận E-mail của bạn để thay đổi E-mail\"},\"confirm_unlock\":{\"title\":\"Mở Khóa Tài Khoản\",\"content\":\"Bạn có muốn mở khóa cho tài khoản này không?\"}},\"error_type_CSV\":{\"1\":\"Tên bị rỗng\",\"2\":\"Độ dài tên lớn hơn 64 kí tự\",\"3\":\"Tên chứ kí tự đặc biệt không hỗ trợ < > { }\",\"4\":\"Họ bị rỗng\",\"5\":\"Độ dài họ lớn hơn 64 kí tự\",\"6\":\"Họ chứ kí tự đặc biệt không hỗ trợ < > { }\",\"7\":\"Địa chỉ E-mail bị rỗng\",\"8\":\"Độ dài địa chỉ E-mail lớn hơn 64 kí tự\",\"9\":\"Địa chỉ E-mail không đúng định dạng\",\"10\":\"Quyền bị rỗng\",\"11\":\"Bạn không có quyền thay đổi quyền của thành viên Quản lý\",\"12\":\"Định dạng mật khẩu không hợp lệ\",\"13\":\"Độ dài nhóm lớn hơn 64 kí tự\",\"14\":\"Nhóm chứ kí tự đặc biệt không hỗ trợ < > { }\",\"15\":\"Nhóm đã đạt số thành viên tối đa\",\"16\":\"Không thể thay đổi thông tin của Quản trị viên\",\"17\":\"Thành viên đang sao chép dự án, không thể thay đổi quyền\",\"18\":\"Bản ghi không hợp lệ\",\"19\":\"Mật khẩu chứa khoảng trắng\",\"20\":\"Mật khẩu trống\",\"21\":\"Tên gói người dùng trống\",\"22\":\"Không tìm thấy gói người dùng\",\"23\":\"Tên gói lưu trữ trống\",\"24\":\"Không tìm thấy gói lưu trữ\",\"25\":\"Lượt chia sẻ trống\",\"26\":\"Lượt chia sẻ không đúng định dạng\",\"27\":\"Lượt chia sẻ từ 1 đến 999999\",\"28\":\"Cài đặt chức năng trống\",\"29\":\"Cài đặt chức năng không đúng định dạng\",\"30\":\"Lỗi hệ thống\",\"31\":\"Không thể nhập tệp CSV cho nhóm đang dùng thử\",\"32\":\"Các gói sử dụng không cùng đơn vị tiền tệ\"},\"timezone\":{\"GMT_-12\":\"(GMT -12:00) Eniwetok, Kwajalein\",\"GMT_-11\":\"(GMT -11:00) Đảo Midway, Samoa\",\"GMT_-10\":\"(GMT -10:00) Hawaii\",\"GMT_-9\":\"(GMT -9:00) Alaska\",\"GMT_-8\":\"(GMT -8:00) Giờ Thái Bình Dương (Hoa Kỳ & Canada)\",\"GMT_-7\":\"(GMT -7:00) Giờ Miền Núi (Hoa Kỳ & Canada)\",\"GMT_-6\":\"(GMT -6:00) Giờ Miền Trung (Hoa Kỳ & Canada), Mexico City\",\"GMT_-5\":\"(GMT -5:00) Giờ Miền Đông (Hoa Kỳ & Canada), Bogota, Lima\",\"GMT_-4\":\"(GMT -4:00) Giờ Đại Tây Dương (Canada), Caracas, La Paz\",\"GMT_-3\":\"(GMT -3:00) Brazil, Buenos Aires, Georgetown\",\"GMT_-2\":\"(GMT -2:00) Trung Đại Tây Dương\",\"GMT_-1\":\"(GMT -1:00) Azores, Quần Đảo Cape Verde\",\"GMT_0\":\"(GMT) Giờ Tây Âu, Luân Đôn, Lisbon, Casablanca\",\"GMT_+1\":\"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris\",\"GMT_+2\":\"(GMT +2:00) Kaliningrad, Nam Phi\",\"GMT_+3\":\"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg\",\"GMT_+4\":\"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi\",\"GMT_+5\":\"(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent\",\"GMT_+6\":\"(GMT +6:00) Almaty, Dhaka, Colombo\",\"GMT_+7\":\"(GMT +7:00) Bangkok, Hà Nội, Jakarta\",\"GMT_+8\":\"(GMT +8:00) Bắc Kinh, Perth, Singapore, Hồng Kông\",\"GMT_+9\":\"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk\",\"GMT_+10\":\"(GMT +10:00) Đông Úc, Guam, Vladivostok\",\"GMT_+11\":\"(GMT +11:00) Magadan, Quần đảo Solomon, New Caledonia\",\"GMT_+12\":\"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka\"},\"language\":{\"auto\":\"Tự Động\",\"en\":\"Tiếng Anh\",\"ja\":\"Tiếng Nhật\",\"vi\":\"Tiếng Việt\"},\"months\":{\"january\":\"Tháng 1\",\"february\":\"Tháng 2\",\"march\":\"Tháng 3\",\"april\":\"Tháng 4\",\"may\":\"Tháng 5\",\"june\":\"Tháng 6\",\"july\":\"Tháng 7\",\"august\":\"Tháng 8\",\"september\":\"Tháng 9\",\"october\":\"Tháng 10\",\"november\":\"Tháng 11\",\"december\":\"Tháng 12\"},\"reports\":{\"report_filters\":\"Bộ lọc\",\"start_end_date\":\"Khoảng Thời Gian\",\"users\":\"Thành viên\",\"groups\":\"Nhóm thành viên\",\"filter_all\":\"Tất cả\",\"filter_member_table\":\"Thành Viên\",\"filter_member\":\"Thành viên\",\"filter_member_group\":\"Nhóm thành viên\",\"filter_address\":\"Danh bạ\",\"filter_address_group\":\"Nhóm danh bạ\",\"filter_project\":\"Dự án\",\"filter_folder\":\"Thư mục\",\"filter_file\":\"Tập tin\",\"filter_collaborator\":\"Cộng tác viên\",\"filter_license\":\"Giấy phép\",\"filter_link\":\"Liên kết\",\"filter_label\":\"Nhãn\",\"filter_comment\":\"Bình luận\",\"select_all\":\"Chọn tất cả\",\"member_management\":\"Quản lý thành viên\",\"created\":\"Tạo\",\"updated\":\"Cập nhật\",\"deleted\":\"Xóa\",\"removed\":\"Xóa\",\"member_login\":\"Đăng nhập\",\"member_logout\":\"Đăng xuất\",\"member_revoked\":\"Thu hồi quyền truy cập\",\"login_as_member\":\"Đăng nhập với thành viên\",\"transferred_account\":\"Chuyển đổi quyền sở hữu tài khoản\",\"member_group\":\"Quản lý nhóm thành viên\",\"add_member_group\":\"Thêm thành viên vào nhóm\",\"move_member_group\":\"Di chuyển thành viên sang nhóm khác\",\"remove_member_group\":\"Xóa thành viên ra khỏi nhóm\",\"address_group\":\"Quản lý nhóm danh bạ\",\"address_book\":\"Quản lý danh bạ\",\"add_address_to_group\":\"Thêm danh bạ vào nhóm\",\"move_address_to_group\":\"Chuyển danh bạ vào nhóm\",\"remove_address_to_group\":\"Xóa danh bạ khỏi nhóm\",\"project\":\"Quản lý dự án\",\"copied\":\"Sao chép\",\"folder\":\"Quản lý thư mục\",\"delete_forever\":\"Xóa vĩnh viễn\",\"moved\":\"Di chuyển\",\"rename\":\"Đổi tên\",\"restore\":\"Khôi phục\",\"update_setting\":\"Cập nhật cài đặt\",\"file\":\"Quản lý tập tin\",\"upload\":\"Tải lên\",\"encode\":\"Mã hóa\",\"decode\":\"Giải mã\",\"update_license\":\"Cập nhật giấy phép\",\"attached_label\":\"Đính kèm nhãn\",\"detached_label\":\"Gỡ nhãn khỏi tập tin\",\"collaborator\":\"Cộng tác viên\",\"group_invite_collaborator\":\"Thêm nhóm\",\"group_update_collaborator\":\"Cập nhật nhóm\",\"group_delete_collaborator\":\"Xóa nhóm\",\"member_invite_collaborator\":\"Thêm cộng tác viên\",\"member_update_collaborator\":\"Cập nhật cộng tác viên\",\"member_delete_collaborator\":\"Xóa cộng tác viên\",\"licenses\":\"Giấy phép\",\"registered\":\"Đăng ký\",\"link\":\"Quản lý liên kết\",\"share_link\":\"Chia sẻ\",\"share_link_secure_mail\":\"Chia sẻ SecureMail\",\"label\":\"Quản lý nhãn\",\"comment\":\"Bình luận\",\"add_comment_file\":\"Đăng bình luận về tập tin\",\"update_comment_file\":\"Cập nhật nhận xét về tập tin\",\"delete_comment_file\":\"Xóa nhận xét về tập tin\",\"add_comment_project\":\"Đăng bình luận về dự án\",\"update_comment_project\":\"Cập nhật nhận xét về dự án\",\"delete_comment_project\":\"Xóa nhận xét về dự án\",\"update_drm\":\"Cập nhật DRM\",\"disabled_drm\":\"Vô hiệu hóa DRM\",\"action_text\":{\"delete_license\":\"Xóa DRM cho tập tin\",\"revoke_user\":\"Thu hồi quyền truy cập tới tập tin\",\"add_project\":\"Tạo một dự án\",\"update_project\":\"Cập nhật một dự án\",\"delete_project\":\"Xóa một dự án\",\"copy_project\":\"Sao chép một dự án\",\"add_file\":\"Tải tập tin lên\",\"add_files\":\"Tải {{count}} tập tin lên\",\"encode_file\":\"Thiết lập DRM cho tập tin\",\"update_encode_file\":\"Cập nhật DRM cho tập tin\",\"update_file\":\"Đổi tên một tập tin\",\"delete_file\":\"Xóa một tập tin\",\"move_file\":\"Chuyển một tập tin đến\",\"move_files\":\"Chuyển {{count}} tập tin đến\",\"restore_file\":\"Khôi phục tập tin\",\"delete_file_forever\":\"Xóa một tập tin mãi mãi\",\"copy_file\":\"Sao chép tập tin\",\"copy_files\":\"Sao chép {{count}} tập tin\",\"attach_label\":\"Đính kèm nhãn\",\"attach_labels\":\"Đính kèm {{count}} nhãn\",\"detach_label\":\"Gỡ nhãn\",\"detach_labels\":\"Gỡ {{count}} nhãn\",\"add_folder\":\"Tạo thư mục\",\"update_folder\":\"Đổi tên thư mục\",\"delete_folder\":\"Xóa một thư mục\",\"move_folder\":\"Chuyển một thư mục đến\",\"move_folders\":\"Chuyển {{count}} thư mục đến\",\"restore_folder\":\"Khôi phục thư mục\",\"delete_forever_folder\":\"Xóa thư mục vĩnh viễn\",\"update_folder_setting\":\"Chỉnh sửa cài đặt cho thư mục\",\"copy_folder\":\"Sao chép một thư mục vào\",\"copy_folders\":\"Sao chép {{count}} thư mục vào\",\"invite_user\":\"Thêm cộng tác viên vào\",\"invite_users\":\"Thêm {{count}} cộng tác viên vào\",\"remove_user\":\"Xóa cộng tác viên khỏi\",\"update_role_user\":\"Thay đổi vai trò của một cộng tác viên trong\",\"invite_group\":\"Thêm một nhóm cộng tác viên vào\",\"invite_groups\":\"Thêm {{count}} nhóm cộng tác viên vào\",\"remove_group\":\"Xóa một nhóm cộng tác viên khỏi\",\"update_role_group\":\"Thay đổi vai trò của một nhóm cộng tác viên trong\",\"create_link\":\"Tạo liên kết trong một dự án\",\"delete_link\":\"Xóa liên kết trong một dự án\",\"update_link\":\"Cập nhật liên kết trong một dự án\",\"share_link\":\"Chia sẻ liên kết với một địa chỉ E-mail\",\"share_link_secure_mail\":\"Chia sẻ liên kết SecureMail với một địa chỉ E-mail\",\"add_comment\":\"Tạo một bình luận trên dự án\",\"update_comment\":\"Cập nhật bình luận trên dự án\",\"delete_comment\":\"Xóa bình luận trên dự án\",\"add_comment_file\":\"Tạo một bình luận trên tập tin\",\"update_comment_file\":\"Cập nhật bình luận trên tập tin\",\"delete_comment_file\":\"Xóa bình luận trên tập tin\",\"create_label\":\"Tạo một nhãn dán\",\"update_label\":\"Cập nhật một nhãn dán\",\"delete_label\":\"Xóa một nhãn dán\",\"add_user\":\"Tạo thành viên mới\",\"update_user\":\"Cập nhật thành viên\",\"delete_user\":\"Xóa thành viên\",\"log_in\":\"Đăng nhập vào 689Cloud\",\"log_out\":\"Đăng xuất khỏi 689Cloud\",\"login_as_member\":\"[VN]Team Admin logged in as member\",\"create_group\":\"Tạo nhóm thành viên\",\"update_group\":\"Cập nhật nhóm thành viên\",\"delete_group\":\"Xóa nhóm thành viên\",\"add_member_group\":\"Thêm thành viên vào nhóm\",\"add_member_groups\":\"Thêm {{count}} thành viên vào nhóm\",\"remove_member_group\":\"Xóa thành viên khỏi nhóm\",\"remove_member_groups\":\"Xóa {{count}} thành viên khỏi nhóm\",\"move_member_group\":\"Chuyển thành viên đến nhóm khác\",\"move_member_groups\":\"Chuyển {{count}} thành viên đến nhóm khác\",\"add_address\":\"Tạo danh bạ\",\"update_address\":\"Cập nhật danh bạ\",\"delete_address\":\"Xóa danh bạ\",\"create_address_group\":\"Tạo nhóm danh bạ\",\"update_address_group\":\"Cập nhật nhóm danh bạ\",\"delete_address_group\":\"Xóa nhóm danh bạ\",\"add_address_group\":\"Thêm danh bạ vào nhóm\",\"add_address_groups\":\"Thêm {{count}} danh bạ vào nhóm\",\"remove_address_group\":\"Xóa danh bạ khỏi nhóm\",\"remove_address_groups\":\"Xóa {{count}} danh bạ khỏi nhóm\",\"move_address_group\":\"Chuyển một danh bạ đến nhóm khác\",\"move_address_groups\":\"Chuyển {{count}} danh bạ đến nhóm khác\",\"transferred_project\":\"Chuyển nhượng vai trò chủ sở hữu dự án\",\"transferred_account\":\"Chuyển nhượng vai trò chủ sở hữu tài khoản\",\"transferred_filter\":\"Chuyển nhượng vai trò chủ dự án\"},\"detail\":{\"title\":\"Chi tiết hoạt động\",\"member\":\"Thành viên\",\"action\":\"Hành động\",\"detail\":\"Chi tiết\",\"add_member_group\":\"Thêm thành viên vào nhóm <strong>{{name}}</strong>\",\"add_member_groups\":\"Thêm <strong>{{count}}</strong> thành viên vào nhóm <strong>{{name}}</strong>\",\"remove_member_group\":\"Xóa thành viên khỏi nhóm <strong>{{name}}</strong>\",\"remove_member_groups\":\"Xóa <strong>{{count}}</strong> thành viên khỏi nhóm <strong>{{name}}</strong>\",\"move_member_group\":\"Di chuyển thành viên từ nhóm <strong>{{name}}</strong> đến nhóm <strong>{{toName}}</strong>\",\"move_member_groups\":\"Di chuyển <strong>{{count}}</strong> thành viên từ nhóm <strong>{{name}}</strong> đến nhóm <strong>{{toName}}</strong>\",\"add_address_group\":\"Thêm danh bạ vào nhóm <strong>{{name}}</strong>\",\"add_address_groups\":\"Thêm <strong>{{count}}</strong> danh bạ vào nhóm <strong>{{name}}</strong>\",\"remove_address_group\":\"Xóa danh bạ khỏi nhóm <strong>{{name}}</strong>\",\"remove_address_groups\":\"Xóa <strong>{{count}}</strong> danh bạ khỏi nhóm <strong>{{name}}</strong>\",\"move_address_group\":\"Di chuyển danh bạ từ nhóm <strong>{{name}}</strong> đến nhóm <strong>{{toName}}</strong>\",\"move_address_groups\":\"Di chuyển <strong>{{count}}</strong> danh bạ từ nhóm <strong>{{name}}</strong> đến nhóm <strong>{{toName}}</strong>\",\"project_setting\":\"Thiết lập dự án\",\"ocr\":\"Áp dụng OCR\",\"drm\":\"Áp dụng DRM\",\"watermark\":\"Chữ ký ảnh\",\"notify\":\"Thông báo\",\"printable\":\"In\",\"editable\":\"Chỉnh sửa\",\"expiry_date\":\"Ngày hết hạn\",\"default\":\"Mặc định\",\"content\":\"Nội dung\",\"font_size\":\"Cỡ chữ\",\"position\":\"Chức vụ\",\"color\":\"Màu sắc\",\"notify_all\":\"Tất cả\",\"notify_specific\":\"Cụ thể\",\"folder_name\":\"Tên thư mục\",\"folder_setting\":\"Cài đặt thư mục\",\"add_folder\":\"Tạo một thư mục trong dự án <strong>{{name}}</strong>\",\"transferred_project\":\"Chuyển nhượng vai trò chủ sở hữu của dự án <strong>{{name}}</strong> cho thành viên\",\"copy_folder_folder\":\"Sao chép thư mục vào <strong>{{name}}</strong> thư mục của dự án <strong>{{projectName}}</strong>\",\"copy_folder\":\"Sao chép thư mục vào dự án <strong>{{projectName}}</strong>\",\"copy_folders\":\"Copied <strong>{{count}}</strong> thư mục vào dự án <strong>{{projectName}}</strong>\",\"copy_folders_folder\":\"Sao chép <strong>{{count}}</strong> thư mục vào thư mục <strong>{{name}}</strong> của dự án <strong>{{projectName}}</strong>\",\"copy_folder_title\":\"Danh sách thư mục sao chép\",\"move_folder_title\":\"Danh sách các mục đã di chuyển\",\"move_folder\":\"Chuyển một thư mục đến dự án <strong>{{projectName}}</strong>\",\"move_folder_folder\":\"Chuyển một thư mục đến thư mục <strong>{{name}}</strong> trong dự án <strong>{{projectName}}</strong>\",\"move_folders\":\"Chuyển <strong>{{count}}</strong> thư mục đến dự án <strong>{{projectName}}</strong>\",\"move_folders_folder\":\"Chuyển <strong>{{count}}</strong> thư mục đến thư mục <strong>{{name}}</strong> trong dự án <strong>{{projectName}}</strong>\",\"delete_folder\":\"Xóa thư mục <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"delete_folder_title\":\"Danh sách các mục đã xóa\",\"delete_forever_folder_folder\":\"Xóa thư mục <strong>{{name}}</strong> vĩnh viển trong dự án <strong>{{parentName}}</strong>\",\"delete_forever_folders_folder\":\"Xóa thư mục <strong>{{name}}</strong> vĩnh viển trong dự án <strong>{{parentName}}</strong>\",\"restore_folder_title\":\"Mục được khôi phục\",\"restore_folder_folder\":\"Khôi phục thư mục trong dự án <strong>{{name}}</strong>\",\"update_folder_folder\":\"Đổi tên thư mục trong dự án <strong>{{name}}</strong>\",\"add_file_title\":\"Danh sách tập tin đã tải lên\",\"copy_file_title\":\"Danh sách tập tin đã sao chép\",\"move_file_title\":\"Danh sách tập tin đã di chuyển\",\"add_file\":\"Tải tập tin lên dự án <strong>{{projectName}}</strong>\",\"add_file_folder\":\"Tải tập tin lên thư mục <strong>{{name}}</strong> trong dự án <strong>{{projectName}}</strong>\",\"add_files\":\"Tải <strong>{{count}}</strong> tập tin lên dự án <strong>{{projectName}}</strong>\",\"add_files_folder\":\"Tải <strong>{{count}}</strong> tập tin lên thư mục <strong>{{name}}</strong> trong dự án <strong>{{projectName}}</strong>\",\"copy_file_folder\":\"Sao chép một tập tin vào thư mục <strong>{{name}}</strong> trong dự án <strong>{{projectName}}</strong>\",\"copy_file\":\"Sao chép một tập tin vào dự án <strong>{{name}}</strong>\",\"copy_files_folder\":\"Sao chép <strong>{{count}}</strong> tập tin vào thư mục <strong>{{name}}</strong> trong dự án <strong>{{projectName}}</strong>\",\"copy_files\":\"Sao chép <strong>{{count}}</strong> tập tin vào dự án <strong>{{name}}</strong>\",\"move_file\":\"Chuyển tập tin đến dự án <strong>{{projectName}}</strong>\",\"move_file_folder\":\"Chuyển tập tin đến thư mục <strong>{{name}}</strong> của dự án <strong>{{projectName}}</strong>\",\"move_files\":\"Chuyển <strong>{{count}}</strong> tập tin đến dự án <strong>{{projectName}}</strong>\",\"move_files_folder\":\"Chuyển <strong>{{count}}</strong> tập tin đến thư mục <strong>{{name}}</strong> của dự án <strong>{{projectName}}</strong>\",\"delete_file_title\":\"Tập tin đã bị xóa\",\"delete_file\":\"Xóa tập tin trong dự án <strong>{{projectName}}</strong>\",\"delete_file_folder\":\"Xóa tập tin trong thư mục <strong>{{name}}</strong> của dự án <strong>{{projectName}}</strong>\",\"delete_file_forever\":\"Xóa một tập tin mãi mãi trong dự án <strong>{{projectName}}</strong>\",\"delete_file_forever_folder\":\"Xóa một tập tin mãi mãi trong thư mục <strong>{{name}}</strong> của dự án <strong>{{projectName}}</strong>\",\"restore_file_title\":\"Tập tin đã khôi phục\",\"restore_file\":\"Khôi phục một tập tin trong dự án <strong>{{projectName}}</strong>\",\"restore_file_folder\":\"Khôi phục một tập tin trong thư mục <strong>{{name}}</strong> của dự án <strong>{{projectName}}</strong>\",\"update_file_title\":\"Tên tập tin\",\"update_file\":\"Đổi tên một tập tin trong dự án <strong>{{projectName}}</strong>\",\"update_file_folder\":\"Đổi tên một tập tin trong thư mục <strong>{{name}}</strong> của dự án <strong>{{projectName}}</strong>\",\"attach_label\":\"Đính kèm nhãn vào tập tin <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"attach_label_folder\":\"Đính kèm nhãn vào tập tin <strong>{{name}}</strong> trong thư mục <strong>{{folderName}}</strong> của dự án <strong>{{parentName}}</strong>\",\"detach_label\":\"Gỡ nhãn khỏi tập tin <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"detach_label_folder\":\"Gỡ nhãn khỏi tập tin <strong>{{name}}</strong> trong thư mục <strong>{{folderName}}</strong> của dự án <strong>{{parentName}}</strong>\",\"attach_labels\":\"Đính kèm <strong>{{count}}</strong> nhãn vào tập tin <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"attach_labels_folder\":\"Đính kèm <strong>{{count}}</strong> nhãn vào tập tin <strong>{{name}}</strong> trong thư mục <strong>{{folderName}}</strong> của dự án <strong>{{parentName}}</strong>\",\"detach_labels\":\"Gỡ <strong>{{count}}</strong> nhãn khỏi tập tin <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"detach_labels_folder\":\"Gỡ <strong>{{count}}</strong> nhãn khỏi tập tin <strong>{{name}}</strong> trong thư mục <strong>{{folderName}}</strong> của dự án <strong>{{parentName}}</strong>\",\"create_label\":\"Tạo nhãn trong dự án <strong>{{name}}</strong>\",\"update_label\":\"Cập nhật nhãn trong dự án <strong>{{name}}</strong>\",\"delete_label\":\"Xóa nhãn trong dự án <strong>{{name}}</strong>\",\"revoke_user\":\"Thu hồi quyền truy cập tới tập tin trong dự án <strong>{{parentName}}</strong>\",\"revoke_user_folder\":\"Thu hồi quyền truy cập tới tập tin trong thư mục <strong>{{name}}</strong> của dự án <strong>{{parentName}}</strong>\",\"add_comment_file\":\"Đăng một bình luận trên tập tin <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"add_comment_file_folder\":\"Đăng một bình luận trên tập tin <strong>{{name}}</strong> trong thư mục <strong>{{folderName}}</strong> của dự án <strong>{{parentName}}</strong>\",\"update_comment_file\":\"Cập nhật bình luận trên tập tin <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"update_comment_file_folder\":\"Cập nhật bình luận trên tập tin <strong>{{name}}</strong> trong thư mục <strong>{{folderName}}</strong> của dự án <strong>{{parentName}}</strong>\",\"delete_comment_file\":\"Xóa bình luận trên tập tin <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"delete_comment_file_folder\":\"Xóa bình luận trên tập tin <strong>{{name}}</strong> trong thư mục <strong>{{folderName}}</strong> của  dự án<strong>{{parentName}}</strong>\",\"add_comment\":\"Đăng một bình luận trên dự án <strong>{{name}}</strong>\",\"update_comment\":\"Cập nhật bình luận trên dự án <strong>{{name}}</strong>\",\"delete_comment\":\"Xóa bình luận trên dự án <strong>{{name}}</strong>\",\"collaborator\":\"Danh sách cộng tác viên\",\"group_collaborator\":\"Danh sách nhóm\",\"invite_user\":\"Thêm cộng tác viên vào dự án <strong>{{parentName}}</strong>\",\"invite_user_folder\":\"Thêm cộng tác viên vào thư mục <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"invite_users\":\"Thêm <strong>{{count}}</strong> cộng tác viên vào dự án <strong>{{parentName}}</strong>\",\"invite_users_folder\":\"Thêm <strong>{{count}}</strong> cộng tác viên vào thư mục <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"remove_user\":\"Xóa cộng tác viên khỏi dự án <strong>{{parentName}}</strong>\",\"remove_user_folder\":\"Xóa cộng tác viên khỏi thư mục <strong>{{name}}</strong> của dự án <strong>{{parentName}}</strong>\",\"update_role_user\":\"Thay đổi vai trò của cộng tác viên trong dự án <strong>{{parentName}}</strong>\",\"update_role_user_folder\":\"Thay đổi vai trò của cộng tác viên trong thư mục <strong>{{name}}</strong> của dự án <strong>{{parentName}}</strong>\",\"invite_group\":\"Thêm một nhóm cộng tác vào dự án <strong>{{parentName}}</strong>\",\"invite_group_folder\":\"Thêm một nhóm cộng tác vào thư mục <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"invite_groups\":\"Thêm <strong>{{count}}</strong> nhóm công tác vào dự án <strong>{{parentName}}</strong>\",\"invite_groups_folder\":\"Thêm <strong>{{count}}</strong> nhóm công tác vào thư mục <strong>{{name}}</strong> trong dự án <strong>{{parentName}}</strong>\",\"remove_group\":\"Xóa nhóm cộng tác khỏi dự án <strong>{{parentName}}</strong>\",\"remove_group_folder\":\"Xóa nhóm cộng tác khỏi thư mục <strong>{{name}}</strong> của dự án <strong>{{parentName}}</strong>\",\"update_role_group\":\"Thay đổi vai trò của nhóm cộng tác trong dự án <strong>{{parentName}}</strong>\",\"update_role_group_folder\":\"Thay đổi vai trò của nhóm cộng tác trong thư mục <strong>{{name}}</strong> của dự án <strong>{{parentName}}</strong>\",\"create_link\":\"Tạo một liên kết trong dự án <strong>{{name}}</strong>\",\"share_link\":\"Chia sẻ một liên kết trong dự án <strong>{{name}}</strong>\",\"share_link_secure_mail\":\"Chia sẻ một liên kết SecureMail trong dự án <strong>{{name}}</strong>\",\"share_links\":\"Chia sẻ liên kết với {{count}} địa chỉ E-mail\",\"share_link_secure_mails\":\"Chia sẻ liên kết SecureMail với {{count}} địa chỉ E-mail\",\"update_link\":\"Cập nhật một liên kết trong dự án <strong>{{name}}</strong>\",\"delete_link\":\"Xóa một liên kết trong dự án <strong>{{name}}</strong>\",\"add_address\":\"Tạo danh bạ - {{email}}\",\"update_address\":\"Cập nhật danh bạ - {{email}}\",\"delete_address\":\"Xóa danh bạ - {{email}}\",\"update_folder_setting\":\"Cập nhật cài đặt của thư mục <strong>{{name}}</strong> trong dự án <strong>{{projectName}}</strong>\",\"encode_file\":\"Thiết lập DRM cho tập tin <strong>{{name}}</strong> trong dự án <strong>{{projectName}}</strong>\",\"printable_file\":\"- In\",\"editable_file\":\"- Chỉnh sửa\",\"expiry_date_file\":\"- Ngày hết hạn\",\"update_encode_file\":\"Cập nhật DRM cho tập tin <strong>{{name}}</strong> trong dự án  <strong>{{projectName}}</strong>\",\"delete_license\":\"Vô hiệu hóa DRM cho tập tin trong dự án <strong>{{projectName}}</strong>\",\"delete_license_folder\":\"Vô hiệu hóa DRM cho tập tin trong thư mục <strong>{{name}}</strong> của dự án <strong>{{projectName}}</strong>\",\"label_name\":\"Nhãn\",\"yes\":\"Có\",\"no\":\"Không\"}}}");

/***/ }),

/***/ "./src/environments/environment.ts":
/*!*****************************************!*\
  !*** ./src/environments/environment.ts ***!
  \*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
Object.defineProperty(exports, "__esModule", { value: true });
exports.environment = void 0;
exports.environment = {
    production: false,
    // backend_api: 'http://localhost:8080/secure-drive/api/',
    backend_api: 'https://dev-api.689cloud.com/api/',
    // backend_api: 'http://192.168.1.148:8080/api/',
    // link url
    // secure_drive_url: 'http://localhost:4201/#/',
    // secure_mail_url: 'http://localhost:8000/#!/',
    secure_drive_url: 'https://dev.689cloud.com/#/',
    secure_mail_url: 'https://dev-api.689cloud.com/689cloud-secure-mail/#!/',
    // Amazon S3 account
    app_amazons3_bucket: '689cloud-image',
    suffix_amazon_s3: '.s3.ap-southeast-1.amazonaws.com',
    // upload path
    logo_path: '/team-logo/',
    PUBLIC_KEY_STRIPE: 'pk_test_51H5NsOAgRbmgIcNo8Sba0yEi6txE6oFUlOE2i7TQx4mHEI2vPSXf5NTHQVxKvqtualiWj9C8yd3tX5rCUFl0L73e00kxaG22YW',
};
/*
 * For easier debugging in development mode, you can import the following file
 * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
 *
 * This import should be commented out in production mode because it will have a negative impact
 * on performance if an error is thrown.
 */
// import 'zone.js/dist/zone-error';  // Included with Angular CLI.


/***/ }),

/***/ "./src/main.ts":
/*!*********************!*\
  !*** ./src/main.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/__ivy_ngcc__/fesm2015/core.js");
var environment_1 = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts");
var __NgCli_bootstrap_1 = tslib_1.__importStar(__webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts"));
var __NgCli_bootstrap_2 = tslib_1.__importStar(__webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js"));
if (environment_1.environment.production) {
    core_1.enableProdMode();
}
__NgCli_bootstrap_2.platformBrowser().bootstrapModule(__NgCli_bootstrap_1.AppModule)
    .catch(function (err) { return console.error(err); });


/***/ }),

/***/ 0:
/*!***************************!*\
  !*** multi ./src/main.ts ***!
  \***************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__(/*! /Users/buithanhloc/Documents/workspace/689cloud-team-console/src/main.ts */"./src/main.ts");


/***/ }),

/***/ 1:
/*!********************!*\
  !*** fs (ignored) ***!
  \********************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 2:
/*!**********************!*\
  !*** path (ignored) ***!
  \**********************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 3:
/*!********************!*\
  !*** os (ignored) ***!
  \********************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 4:
/*!************************!*\
  !*** crypto (ignored) ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 5:
/*!************************!*\
  !*** buffer (ignored) ***!
  \************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 6:
/*!************************************!*\
  !*** source-map-support (ignored) ***!
  \************************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ 7:
/*!***************************!*\
  !*** inspector (ignored) ***!
  \***************************/
/*! no static exports found */
/***/ (function(module, exports) {

/* (ignored) */

/***/ })

},[[0,"runtime","vendor"]]]);
//# sourceMappingURL=main.js.map