ge-admin-auth.umd.js 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@nebular/theme'), require('@angular/forms'), require('rxjs/operators'), require('@angular/common/http'), require('jsencrypt'), require('@nebular/auth'), require('@angular/router'), require('@nebular/auth/helpers'), require('@angular/core'), require('rxjs'), require('@ngx-translate/core')) :
  3. typeof define === 'function' && define.amd ? define('ge-admin-auth', ['exports', '@angular/common', '@nebular/theme', '@angular/forms', 'rxjs/operators', '@angular/common/http', 'jsencrypt', '@nebular/auth', '@angular/router', '@nebular/auth/helpers', '@angular/core', 'rxjs', '@ngx-translate/core'], factory) :
  4. (factory((global['ge-admin-auth'] = {}),global.ng.common,global.theme,global.ng.forms,global.rxjs.operators,global.ng.common.http,global.JSEncrypt,global.auth,global.ng.router,global.helpers,global.ng.core,global.rxjs,global.core$1));
  5. }(this, (function (exports,common,theme,forms,operators,http,JSEncrypt,auth,router,helpers,core,rxjs,core$1) { 'use strict';
  6. /**
  7. * @fileoverview added by tsickle
  8. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  9. */
  10. var zhCn = {
  11. '与第一次输入不符合': '与第一次输入不符合.',
  12. '修改密码': '修改密码',
  13. '密码': '密码',
  14. '密码:': '密码:',
  15. '密码是必填的': '密码是必填的',
  16. '密码规则提示': '密码应该包含 最小长度 {{minLength}} 最大长度 {{maxLength}} 个字符',
  17. '您好,欢迎使用': '您好,欢迎使用',
  18. '成功!': '成功!',
  19. '新密码': '新密码',
  20. '新密码:': '新密码:',
  21. '新密码是必填的!': '新密码是必填的!',
  22. '旧密码:': '旧密码:',
  23. '旧密码是必填的!': '旧密码是必填的',
  24. '登出提示': '正在登出, 请等待...',
  25. '登录': '登录',
  26. '确认密码': '确认密码',
  27. '确认密码:': '确认密码:',
  28. '确认密码是必填的!': '确认密码是必填的!',
  29. '请设置您的新密码': '请设置您的新密码',
  30. '账户': '账户',
  31. '账户:': '账户:',
  32. '账户是必填的': '账户是必填的',
  33. '错误!': '错误!'
  34. };
  35. var ZHCN = /*#__PURE__*/Object.freeze({
  36. default: zhCn
  37. });
  38. /**
  39. * @fileoverview added by tsickle
  40. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  41. */
  42. var zhHk = {
  43. '与第一次输入不符合': '與第一次輸入不符合.',
  44. '修改密码': '更改密碼',
  45. '密码': '密碼',
  46. '密码:': '密碼:',
  47. '密码是必填的': '必須填寫密碼',
  48. '密码规则提示': '密碼應該包含 最小長度 {{minLength}} 最大長度 {{maxLength}} 個字符',
  49. '您好,欢迎使用': '您好,歡迎使用',
  50. '成功!': '成功!',
  51. '新密码': '新密碼',
  52. '新密码:': '新密碼:',
  53. '新密码是必填的!': '必須填寫新密碼',
  54. '旧密码:': '舊密碼:',
  55. '旧密码是必填的!': '必須填寫舊密碼',
  56. '登出提示': '正在登出, 請稍候⋯',
  57. '登录': '登入',
  58. '确认密码': '確認密碼',
  59. '确认密码:': '確認密碼:',
  60. '确认密码是必填的!': '必須填寫確認密碼',
  61. '请设置您的新密码': '請設置您的新密碼',
  62. '账户': '賬戶',
  63. '账户:': '賬戶:',
  64. '账户是必填的': '必須填寫賬戶',
  65. '错误!': '錯誤!'
  66. };
  67. var ZHHK = /*#__PURE__*/Object.freeze({
  68. default: zhHk
  69. });
  70. /**
  71. * @fileoverview added by tsickle
  72. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  73. */
  74. /** @type {?} */
  75. var AUTH_DEFAULT_LANG = new core.InjectionToken('AUTH_DEFAULT_LANG');
  76. var LoginLangService = /** @class */ (function () {
  77. function LoginLangService(_translate, lang) {
  78. this._translate = _translate;
  79. this._translate.setTranslation('zh-cn', ZHCN);
  80. this._translate.setTranslation('zh-hk', ZHHK);
  81. this._translate.setDefaultLang(lang ? lang : 'zh-cn');
  82. }
  83. /**
  84. * @param {?=} lang
  85. * @return {?}
  86. */
  87. LoginLangService.prototype.setTranslate = /**
  88. * @param {?=} lang
  89. * @return {?}
  90. */
  91. function (lang) {
  92. this._translate.use(lang);
  93. };
  94. LoginLangService.decorators = [
  95. { type: core.Injectable }
  96. ];
  97. /** @nocollapse */
  98. LoginLangService.ctorParameters = function () {
  99. return [
  100. { type: core$1.TranslateService },
  101. { type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [AUTH_DEFAULT_LANG,] }] }
  102. ];
  103. };
  104. return LoginLangService;
  105. }());
  106. /**
  107. * @fileoverview added by tsickle
  108. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  109. */
  110. var LoginComponent = /** @class */ (function () {
  111. function LoginComponent(service, langService, options, cd, router$$1) {
  112. if (options === void 0) {
  113. options = {};
  114. }
  115. this.service = service;
  116. this.langService = langService;
  117. this.options = options;
  118. this.cd = cd;
  119. this.router = router$$1;
  120. this.redirectDelay = 0;
  121. this.showMessages = {};
  122. this.strategy = '';
  123. this.errors = [];
  124. this.messages = [];
  125. this.user = {};
  126. this.submitted = false;
  127. this.socialLinks = [];
  128. this.rememberMe = false;
  129. this.redirectDelay = this.getConfigValue('forms.login.redirectDelay');
  130. this.showMessages = this.getConfigValue('forms.login.showMessages');
  131. this.strategy = this.getConfigValue('forms.login.strategy');
  132. this.socialLinks = this.getConfigValue('forms.login.socialLinks');
  133. this.rememberMe = this.getConfigValue('forms.login.rememberMe');
  134. }
  135. /**
  136. * @return {?}
  137. */
  138. LoginComponent.prototype.login = /**
  139. * @return {?}
  140. */
  141. function () {
  142. var _this = this;
  143. this.errors = [];
  144. this.messages = [];
  145. this.submitted = true;
  146. this.service.authenticate(this.strategy, this.user).subscribe(function (result) {
  147. _this.submitted = false;
  148. if (result.isSuccess()) {
  149. _this.messages = result.getMessages();
  150. }
  151. else {
  152. _this.errors = result.getErrors();
  153. }
  154. /** @type {?} */
  155. var redirect = result.getRedirect();
  156. if (redirect) {
  157. setTimeout(function () {
  158. return _this.router.navigateByUrl(redirect);
  159. }, _this.redirectDelay);
  160. }
  161. _this.cd.detectChanges();
  162. });
  163. };
  164. /**
  165. * @param {?} key
  166. * @return {?}
  167. */
  168. LoginComponent.prototype.getConfigValue = /**
  169. * @param {?} key
  170. * @return {?}
  171. */
  172. function (key) {
  173. return helpers.getDeepFromObject(this.options, key, null);
  174. };
  175. LoginComponent.decorators = [
  176. { type: core.Component, args: [{
  177. selector: 'auth-login',
  178. template: "<h1 id=\"title\" class=\"title\" translate>\u767B\u5F55</h1>\r\n<p class=\"sub-title\" translate>\u60A8\u597D,\u6B22\u8FCE\u4F7F\u7528</p>\r\n\r\n<nb-alert *ngIf=\"showMessages.error && errors?.length && !submitted\" outline=\"danger\" role=\"alert\">\r\n <p class=\"alert-title\"><b translate>\u9519\u8BEF!</b></p>\r\n <ul class=\"alert-message-list\">\r\n <li *ngFor=\"let error of errors\" class=\"alert-message\">{{ error }}</li>\r\n </ul>\r\n</nb-alert>\r\n\r\n<nb-alert\r\n *ngIf=\"showMessages.success && messages?.length && !submitted\"\r\n outline=\"success\"\r\n role=\"alert\"\r\n>\r\n <p class=\"alert-title\"><b translate>\u6210\u529F!</b></p>\r\n <ul class=\"alert-message-list\">\r\n <li *ngFor=\"let message of messages\" class=\"alert-message\">{{ message }}</li>\r\n </ul>\r\n</nb-alert>\r\n\r\n<form (ngSubmit)=\"login()\" #form=\"ngForm\" aria-labelledby=\"title\">\r\n <div class=\"form-control-group\">\r\n <label class=\"label\" for=\"input-email\" translate>\u8D26\u6237:</label>\r\n <input\r\n nbInput\r\n fullWidth\r\n [(ngModel)]=\"user.loginId\"\r\n #loginId=\"ngModel\"\r\n name=\"loginId\"\r\n id=\"input-loginId\"\r\n placeholder=\"{{ '\u8D26\u6237' | translate }}\"\r\n autofocus\r\n [status]=\"loginId.dirty ? (loginId.invalid ? 'danger' : 'success') : ''\"\r\n [required]=\"true\"\r\n [attr.aria-invalid]=\"loginId.invalid && loginId.touched ? true : null\"\r\n />\r\n <ng-container *ngIf=\"loginId.invalid && loginId.touched\">\r\n <p class=\"error-message\" *ngIf=\"loginId.errors?.required\" translate=\"\u8D26\u6237\u662F\u5FC5\u586B\u7684\">\r\n\r\n </p>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"form-control-group\">\r\n <label class=\"label\" for=\"input-password\" translate>\u5BC6\u7801:</label>\r\n <input\r\n nbInput\r\n fullWidth\r\n [(ngModel)]=\"user.loginPassword\"\r\n #password=\"ngModel\"\r\n name=\"password\"\r\n type=\"password\"\r\n id=\"input-password\"\r\n placeholder=\"{{'\u5BC6\u7801'|translate}}\"\r\n [status]=\"password.dirty ? (password.invalid ? 'danger' : 'success') : ''\"\r\n [required]=\"true\"\r\n [minlength]=\"getConfigValue('forms.validation.password.minLength')\"\r\n [maxlength]=\"getConfigValue('forms.validation.password.maxLength')\"\r\n [attr.aria-invalid]=\"password.invalid && password.touched ? true : null\"\r\n />\r\n <ng-container *ngIf=\"password.invalid && password.touched\">\r\n <p class=\"error-message\" *ngIf=\"password.errors?.required\" translate=\"\u5BC6\u7801\u662F\u5FC5\u586B\u7684\">\r\n\r\n </p>\r\n <p class=\"error-message\" *ngIf=\"password.errors?.minlength || password.errors?.maxlength\"\r\n translate=\"\u5BC6\u7801\u89C4\u5219\u63D0\u793A\" [translateParams]=\"{minLength: getConfigValue('forms.validation.password.minLength'), maxLength:getConfigValue('forms.validation.password.maxLength')}\"\r\n >\r\n \u5BC6\u7801\u5E94\u8BE5\u5305\u542B \u6700\u5C0F\u957F\u5EA6 {{ getConfigValue('forms.validation.password.minLength') }} \u6700\u5927\u957F\u5EA6\r\n {{ getConfigValue('forms.validation.password.maxLength') }}\r\n \u4E2A\u5B57\u7B26\r\n </p>\r\n </ng-container>\r\n </div>\r\n\r\n <!--<div class=\"form-control-group accept-group\">-->\r\n <!--<nb-checkbox name=\"rememberMe\" [(ngModel)]=\"user.rememberMe\" *ngIf=\"rememberMe\">\u8BB0\u4F4F\u8D26\u53F7</nb-checkbox>-->\r\n <!--&lt;!&ndash;<a class=\"forgot-password\" routerLink=\"../request-password\">Forgot Password?</a>&ndash;&gt;-->\r\n <!--</div>-->\r\n\r\n <button\r\n nbButton\r\n fullWidth\r\n status=\"success\"\r\n [disabled]=\"submitted || !form.valid\"\r\n [class.btn-pulse]=\"submitted\"\r\n translate=\"\u767B\u5F55\"\r\n >\r\n </button>\r\n</form>\r\n\r\n<!--<section *ngIf=\"socialLinks && socialLinks.length > 0\" class=\"links\" aria-label=\"Social sign in\">-->\r\n<!--or enter with:-->\r\n<!--<div class=\"socials\">-->\r\n<!--<ng-container *ngFor=\"let socialLink of socialLinks\">-->\r\n<!--<a *ngIf=\"socialLink.link\"-->\r\n<!--[routerLink]=\"socialLink.link\"-->\r\n<!--[attr.target]=\"socialLink.target\"-->\r\n<!--[attr.class]=\"socialLink.icon\"-->\r\n<!--[class.with-icon]=\"socialLink.icon\">{{ socialLink.title }}</a>-->\r\n<!--<a *ngIf=\"socialLink.url\"-->\r\n<!--[attr.href]=\"socialLink.url\"-->\r\n<!--[attr.target]=\"socialLink.target\"-->\r\n<!--[attr.class]=\"socialLink.icon\"-->\r\n<!--[class.with-icon]=\"socialLink.icon\">{{ socialLink.title }}</a>-->\r\n<!--</ng-container>-->\r\n<!--</div>-->\r\n<!--</section>-->\r\n\r\n<!--<section class=\"another-action\" aria-label=\"Register\">-->\r\n<!--Don't have an account? <a class=\"text-link\" routerLink=\"../register\">Register</a>-->\r\n<!--</section>-->\r\n",
  179. changeDetection: core.ChangeDetectionStrategy.OnPush
  180. }] }
  181. ];
  182. /** @nocollapse */
  183. LoginComponent.ctorParameters = function () {
  184. return [
  185. { type: auth.NbAuthService },
  186. { type: LoginLangService },
  187. { type: undefined, decorators: [{ type: core.Inject, args: [auth.NB_AUTH_OPTIONS,] }] },
  188. { type: core.ChangeDetectorRef },
  189. { type: router.Router }
  190. ];
  191. };
  192. return LoginComponent;
  193. }());
  194. /*! *****************************************************************************
  195. Copyright (c) Microsoft Corporation. All rights reserved.
  196. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  197. this file except in compliance with the License. You may obtain a copy of the
  198. License at http://www.apache.org/licenses/LICENSE-2.0
  199. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  200. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  201. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  202. MERCHANTABLITY OR NON-INFRINGEMENT.
  203. See the Apache Version 2.0 License for specific language governing permissions
  204. and limitations under the License.
  205. ***************************************************************************** */
  206. /* global Reflect, Promise */
  207. var extendStatics = function (d, b) {
  208. extendStatics = Object.setPrototypeOf ||
  209. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  210. function (d, b) { for (var p in b)
  211. if (b.hasOwnProperty(p))
  212. d[p] = b[p]; };
  213. return extendStatics(d, b);
  214. };
  215. function __extends(d, b) {
  216. extendStatics(d, b);
  217. function __() { this.constructor = d; }
  218. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  219. }
  220. /**
  221. * @fileoverview added by tsickle
  222. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  223. */
  224. var NamePasswordAuthStrategyOptions = /** @class */ (function (_super) {
  225. __extends(NamePasswordAuthStrategyOptions, _super);
  226. function NamePasswordAuthStrategyOptions() {
  227. var _this = _super !== null && _super.apply(this, arguments) || this;
  228. _this.baseEndpoint = '/api/auth/';
  229. _this.getPublicKey = {
  230. endpoint: 'getPublicKey',
  231. method: 'get'
  232. };
  233. _this.login = {
  234. alwaysFail: false,
  235. endpoint: 'login',
  236. method: 'post',
  237. redirect: {
  238. success: '/',
  239. failure: null
  240. },
  241. defaultErrors: ['未知错误!'],
  242. defaultMessages: ['You have been successfully logged in.']
  243. };
  244. _this.createUser = {
  245. endpoint: 'createUser',
  246. method: 'post',
  247. defaultErrors: ['未知错误!']
  248. };
  249. _this.updatePasswordForAdmin = {
  250. endpoint: 'updatePasswordForAdmin',
  251. method: 'patch',
  252. defaultErrors: ['未知错误!']
  253. };
  254. _this.register = {
  255. alwaysFail: false,
  256. endpoint: 'register',
  257. method: 'post',
  258. redirect: {
  259. success: '/',
  260. failure: null
  261. },
  262. defaultErrors: ['Something went wrong, please try again.'],
  263. defaultMessages: ['You have been successfully registered.']
  264. };
  265. _this.requestPass = {
  266. endpoint: 'request-pass',
  267. method: 'post',
  268. redirect: {
  269. success: '/',
  270. failure: null
  271. },
  272. defaultErrors: ['Something went wrong, please try again.'],
  273. defaultMessages: ['Reset password instructions have been sent to your email.']
  274. };
  275. _this.resetPass = {
  276. endpoint: 'updateUserPassword',
  277. method: 'patch',
  278. redirect: {
  279. success: '/',
  280. failure: null
  281. },
  282. defaultErrors: ['未知错误.'],
  283. defaultMessages: ['Your password has been successfully changed.']
  284. };
  285. _this.logout = {
  286. alwaysFail: false,
  287. endpoint: 'logout',
  288. method: 'delete',
  289. redirect: {
  290. success: '/',
  291. failure: null
  292. },
  293. defaultErrors: ['Something went wrong, please try again.'],
  294. defaultMessages: ['You have been successfully logged out.']
  295. };
  296. _this.errors = {
  297. key: 'messager',
  298. getter: function (module, res, options) {
  299. return [
  300. helpers.getDeepFromObject(res.error, options.errors.key, options[module].defaultErrors)
  301. ];
  302. }
  303. };
  304. _this.messages = {
  305. key: 'messager',
  306. getter: function (module, res, options) { return [helpers.getDeepFromObject(res.body, options.messages.key, false)]; }
  307. };
  308. _this.success = {
  309. key: 'success',
  310. getter: function (module, res, options) {
  311. return helpers.getDeepFromObject(res.body, options.success.key, options[module].defaultMessages);
  312. }
  313. };
  314. return _this;
  315. }
  316. return NamePasswordAuthStrategyOptions;
  317. }(auth.NbAuthStrategyOptions));
  318. /** @type {?} */
  319. var namePasswordStrategyOptions = new NamePasswordAuthStrategyOptions();
  320. /**
  321. * @fileoverview added by tsickle
  322. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  323. */
  324. var ResultError = /** @class */ (function () {
  325. function ResultError(message) {
  326. this.message = message;
  327. }
  328. return ResultError;
  329. }());
  330. var NamePasswordStrategyService = /** @class */ (function (_super) {
  331. __extends(NamePasswordStrategyService, _super);
  332. function NamePasswordStrategyService(http$$1, route) {
  333. var _this = _super.call(this) || this;
  334. _this.http = http$$1;
  335. _this.route = route;
  336. _this.defaultOptions = namePasswordStrategyOptions;
  337. return _this;
  338. }
  339. /**
  340. * @param {?} options
  341. * @return {?}
  342. */
  343. NamePasswordStrategyService.setup = /**
  344. * @param {?} options
  345. * @return {?}
  346. */
  347. function (options) {
  348. return [NamePasswordStrategyService, options];
  349. };
  350. /**
  351. * @param {?=} data
  352. * @return {?}
  353. */
  354. NamePasswordStrategyService.prototype.authenticate = /**
  355. * @param {?=} data
  356. * @return {?}
  357. */
  358. function (data) {
  359. var _this = this;
  360. /** @type {?} */
  361. var module = 'login';
  362. /** @type {?} */
  363. var method = this.getOption(module + ".method");
  364. /** @type {?} */
  365. var url = this.getActionEndpoint(module);
  366. /** @type {?} */
  367. var requireValidToken = this.getOption(module + ".requireValidToken");
  368. return this.getEncryptPassword(data.loginPassword).pipe(operators.map(function (body) {
  369. body.loginID = data.loginId;
  370. return _this.http.request(method, url, { body: body, observe: 'response' })
  371. .pipe(operators.map(function (res) {
  372. if (_this.getOption(module + ".alwaysFail")) {
  373. throw _this.createFailResponse(data);
  374. }
  375. else if (!_this.getOption('success.getter')(module, res, _this.options)) {
  376. throw new ResultError(_this.getOption('messages.getter')(module, res, _this.options));
  377. }
  378. return res;
  379. }), operators.map(function (res) {
  380. return new auth.NbAuthResult(true, res, _this.getOption(module + ".redirect.success"), [], _this.getOption('messages.getter')(module, res, _this.options));
  381. }), operators.catchError(function (res) {
  382. return _this.handleResponseError(res, module);
  383. }));
  384. }), operators.concatAll());
  385. };
  386. /**
  387. * @return {?}
  388. */
  389. NamePasswordStrategyService.prototype.logout = /**
  390. * @return {?}
  391. */
  392. function () {
  393. var _this = this;
  394. /** @type {?} */
  395. var module = 'logout';
  396. /** @type {?} */
  397. var method = this.getOption(module + ".method");
  398. /** @type {?} */
  399. var url = this.getActionEndpoint(module);
  400. return rxjs.of({})
  401. .pipe(operators.switchMap(function (res) {
  402. if (!url) {
  403. return rxjs.of(res);
  404. }
  405. return _this.http.request(method, url, { observe: 'response' });
  406. }), operators.map(function (res) {
  407. if (_this.getOption(module + ".alwaysFail")) {
  408. throw _this.createFailResponse();
  409. }
  410. return res;
  411. }), operators.map(function (res) {
  412. return new auth.NbAuthResult(true, res, _this.getOption(module + ".redirect.success"), [], _this.getOption('messages.getter')(module, res, _this.options));
  413. }), operators.catchError(function (res) {
  414. return _this.handleResponseError(res, module);
  415. }));
  416. };
  417. /**
  418. * @param {?=} data
  419. * @return {?}
  420. */
  421. NamePasswordStrategyService.prototype.refreshToken = /**
  422. * @param {?=} data
  423. * @return {?}
  424. */
  425. function (data) {
  426. return undefined;
  427. };
  428. /**
  429. * @param {?=} data
  430. * @return {?}
  431. */
  432. NamePasswordStrategyService.prototype.register = /**
  433. * @param {?=} data
  434. * @return {?}
  435. */
  436. function (data) {
  437. return undefined;
  438. };
  439. /**
  440. * @param {?=} data
  441. * @return {?}
  442. */
  443. NamePasswordStrategyService.prototype.requestPassword = /**
  444. * @param {?=} data
  445. * @return {?}
  446. */
  447. function (data) {
  448. return undefined;
  449. };
  450. /**
  451. * @param {?=} data
  452. * @return {?}
  453. */
  454. NamePasswordStrategyService.prototype.resetPassword = /**
  455. * @param {?=} data
  456. * @return {?}
  457. */
  458. function (data) {
  459. var _this = this;
  460. /** @type {?} */
  461. var module = 'resetPass';
  462. /** @type {?} */
  463. var method = this.getOption(module + ".method");
  464. /** @type {?} */
  465. var url = this.getActionEndpoint(module);
  466. return this.getEncryptPassword(data.loginPasswordNew + '-' + data.loginPasswordOld).pipe(operators.map(function (body) {
  467. body.passwordData = body.loginPassword;
  468. return _this.http.request(method, url, { body: body, observe: 'response' })
  469. .pipe(operators.map(function (res) {
  470. if (_this.getOption(module + ".alwaysFail")) {
  471. throw _this.createFailResponse(data);
  472. }
  473. else if (!_this.getOption('success.getter')(module, res, _this.options)) {
  474. throw new ResultError(_this.getOption('messages.getter')(module, res, _this.options));
  475. }
  476. return res;
  477. }), operators.map(function (res) {
  478. return new auth.NbAuthResult(true, res, _this.getOption(module + ".redirect.success"), [], _this.getOption('messages.getter')(module, res, _this.options));
  479. }), operators.catchError(function (res) {
  480. return _this.handleResponseError(res, module);
  481. }));
  482. }), operators.concatAll());
  483. };
  484. /**
  485. * @param {?=} data
  486. * @return {?}
  487. */
  488. NamePasswordStrategyService.prototype.createUser = /**
  489. * @param {?=} data
  490. * @return {?}
  491. */
  492. function (data) {
  493. var _this = this;
  494. /** @type {?} */
  495. var module = 'createUser';
  496. /** @type {?} */
  497. var method = this.getOption(module + ".method");
  498. /** @type {?} */
  499. var url = this.getActionEndpoint(module);
  500. return this.getEncryptPassword(data.loginPassword).pipe(operators.map(function (body) {
  501. body.userName = data.userName;
  502. body.loginID = data.loginID;
  503. return _this.http.request(method, url, { body: body, observe: 'response' })
  504. .pipe(operators.map(function (res) {
  505. if (_this.getOption(module + ".alwaysFail")) {
  506. throw _this.createFailResponse(data);
  507. }
  508. else if (!_this.getOption('success.getter')(module, res, _this.options)) {
  509. throw new ResultError(_this.getOption('messages.getter')(module, res, _this.options));
  510. }
  511. return res;
  512. }), operators.map(function (res) {
  513. return new auth.NbAuthResult(true, res, _this.getOption(module + ".redirect.success"), [], _this.getOption('messages.getter')(module, res, _this.options));
  514. }), operators.catchError(function (res) {
  515. return _this.handleResponseError(res, module);
  516. }));
  517. }), operators.concatAll());
  518. };
  519. /**
  520. * @param {?=} data
  521. * @return {?}
  522. */
  523. NamePasswordStrategyService.prototype.updatePasswordForAdmin = /**
  524. * @param {?=} data
  525. * @return {?}
  526. */
  527. function (data) {
  528. var _this = this;
  529. /** @type {?} */
  530. var module = 'updatePasswordForAdmin';
  531. /** @type {?} */
  532. var method = this.getOption(module + ".method");
  533. /** @type {?} */
  534. var url = this.getActionEndpoint(module);
  535. return this.getEncryptPassword(data.loginPassword).pipe(operators.map(function (body) {
  536. body.userID = data.userID;
  537. return _this.http.request(method, url, { body: body, observe: 'response' })
  538. .pipe(operators.map(function (res) {
  539. if (_this.getOption(module + ".alwaysFail")) {
  540. throw _this.createFailResponse(data);
  541. }
  542. else if (!_this.getOption('success.getter')(module, res, _this.options)) {
  543. throw new ResultError(_this.getOption('messages.getter')(module, res, _this.options));
  544. }
  545. return res;
  546. }), operators.map(function (res) {
  547. return new auth.NbAuthResult(true, res, _this.getOption(module + ".redirect.success"), [], _this.getOption('messages.getter')(module, res, _this.options));
  548. }), operators.catchError(function (res) {
  549. return _this.handleResponseError(res, module);
  550. }));
  551. }), operators.concatAll());
  552. };
  553. /**
  554. * @param {?} password
  555. * @return {?}
  556. */
  557. NamePasswordStrategyService.prototype.getEncryptPassword = /**
  558. * @param {?} password
  559. * @return {?}
  560. */
  561. function (password) {
  562. var _this = this;
  563. /** @type {?} */
  564. var module = 'getPublicKey';
  565. /** @type {?} */
  566. var method = this.getOption(module + ".method");
  567. /** @type {?} */
  568. var url = this.getActionEndpoint(module);
  569. return this.http.request(method, url, { observe: 'response' })
  570. .pipe(operators.map(function (res) {
  571. return encryptPassword(res.body, password);
  572. }), operators.catchError(function (res) {
  573. return _this.handleResponseError(res, module);
  574. }));
  575. /**
  576. * @param {?} result
  577. * @param {?} data
  578. * @return {?}
  579. */
  580. function encryptPassword(result, data) {
  581. /** @type {?} */
  582. var now = Date.now();
  583. /** @type {?} */
  584. var encrypt = new JSEncrypt.JSEncrypt();
  585. encrypt.setPublicKey(result.data.publicPEMKey);
  586. /** @type {?} */
  587. var encryptPass = encrypt.encrypt(data + now);
  588. return {
  589. cryptoKeyID: result.data.cryptoKeyID,
  590. utcTimestamp: now,
  591. loginPassword: encryptPass
  592. };
  593. }
  594. };
  595. /**
  596. * @protected
  597. * @param {?} res
  598. * @param {?} module
  599. * @return {?}
  600. */
  601. NamePasswordStrategyService.prototype.handleResponseError = /**
  602. * @protected
  603. * @param {?} res
  604. * @param {?} module
  605. * @return {?}
  606. */
  607. function (res, module) {
  608. /** @type {?} */
  609. var errors = [];
  610. if (res instanceof http.HttpErrorResponse) {
  611. errors = this.getOption('errors.getter')(module, res, this.options);
  612. }
  613. else if (res instanceof auth.NbAuthIllegalTokenError) {
  614. errors.push(res.message);
  615. }
  616. else if (res instanceof ResultError) {
  617. errors = res.message;
  618. }
  619. else {
  620. errors.push('Something went wrong.');
  621. }
  622. return rxjs.of(new auth.NbAuthResult(false, res, this.getOption(module + ".redirect.failure"), errors));
  623. };
  624. NamePasswordStrategyService.decorators = [
  625. { type: core.Injectable }
  626. ];
  627. /** @nocollapse */
  628. NamePasswordStrategyService.ctorParameters = function () {
  629. return [
  630. { type: http.HttpClient },
  631. { type: router.ActivatedRoute }
  632. ];
  633. };
  634. return NamePasswordStrategyService;
  635. }(auth.NbAuthStrategy));
  636. /**
  637. * @fileoverview added by tsickle
  638. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  639. */
  640. var ResetPasswordComponent = /** @class */ (function () {
  641. function ResetPasswordComponent(service, langService, options, cd, router$$1) {
  642. if (options === void 0) {
  643. options = {};
  644. }
  645. this.service = service;
  646. this.langService = langService;
  647. this.options = options;
  648. this.cd = cd;
  649. this.router = router$$1;
  650. this.redirectDelay = 0;
  651. this.showMessages = {};
  652. this.strategy = '';
  653. this.submitted = false;
  654. this.errors = [];
  655. this.messages = [];
  656. this.user = {};
  657. this.redirectDelay = this.getConfigValue('forms.resetPassword.redirectDelay');
  658. this.showMessages = this.getConfigValue('forms.resetPassword.showMessages');
  659. this.strategy = this.getConfigValue('forms.resetPassword.strategy');
  660. }
  661. /**
  662. * @return {?}
  663. */
  664. ResetPasswordComponent.prototype.resetPass = /**
  665. * @return {?}
  666. */
  667. function () {
  668. var _this = this;
  669. this.errors = this.messages = [];
  670. this.submitted = true;
  671. this.service.resetPassword(this.strategy, this.user).subscribe(function (result) {
  672. _this.submitted = false;
  673. if (result.isSuccess()) {
  674. _this.messages = result.getMessages();
  675. }
  676. else {
  677. _this.errors = result.getErrors();
  678. }
  679. /** @type {?} */
  680. var redirect = result.getRedirect();
  681. if (redirect) {
  682. setTimeout(function () {
  683. return _this.router.navigateByUrl(redirect);
  684. }, _this.redirectDelay);
  685. }
  686. _this.cd.detectChanges();
  687. });
  688. };
  689. /**
  690. * @param {?} key
  691. * @return {?}
  692. */
  693. ResetPasswordComponent.prototype.getConfigValue = /**
  694. * @param {?} key
  695. * @return {?}
  696. */
  697. function (key) {
  698. return helpers.getDeepFromObject(this.options, key, null);
  699. };
  700. ResetPasswordComponent.decorators = [
  701. { type: core.Component, args: [{
  702. selector: 'auth-reset-password-page',
  703. template: "<h1 id=\"title\" class=\"title\" translate>\u4FEE\u6539\u5BC6\u7801</h1>\r\n<p class=\"sub-title\" translate>\u8BF7\u8BBE\u7F6E\u60A8\u7684\u65B0\u5BC6\u7801</p>\r\n\r\n<nb-alert *ngIf=\"showMessages.error && errors?.length && !submitted\" outline=\"danger\" role=\"alert\">\r\n <p class=\"alert-title\"><b translate>\u9519\u8BEF!</b></p>\r\n <ul class=\"alert-message-list\">\r\n <li *ngFor=\"let error of errors\" class=\"alert-message\">{{ error }}</li>\r\n </ul>\r\n</nb-alert>\r\n\r\n<nb-alert *ngIf=\"showMessages.success && messages?.length && !submitted\" outline=\"success\" role=\"alert\">\r\n <p class=\"alert-title\"><b translate>\u6210\u529F!</b></p>\r\n <ul class=\"alert-message-list\">\r\n <li *ngFor=\"let message of messages\" class=\"alert-message\">{{ message }}</li>\r\n </ul>\r\n</nb-alert>\r\n\r\n<form (ngSubmit)=\"resetPass()\" #resetPassForm=\"ngForm\" aria-labelledby=\"title\">\r\n\r\n <div class=\"form-control-group\">\r\n <label class=\"label\" for=\"input-old-password\" translate>\u65E7\u5BC6\u7801:</label>\r\n <input nbInput\r\n [(ngModel)]=\"user.loginPasswordOld\"\r\n #oldPassword=\"ngModel\"\r\n type=\"password\"\r\n id=\"input-old-password\"\r\n name=\"oldPassword\"\r\n class=\"first\"\r\n placeholder=\"{{'\u65B0\u5BC6\u7801'| translate}}\"\r\n autofocus\r\n fullWidth\r\n [status]=\"oldPassword.dirty ? (oldPassword.invalid ? 'danger' : 'success') : ''\"\r\n [required]=\"getConfigValue('forms.validation.password.required')\"\r\n [minlength]=\"getConfigValue('forms.validation.password.minLength')\"\r\n [maxlength]=\"getConfigValue('forms.validation.password.maxLength')\"\r\n [attr.aria-invalid]=\"oldPassword.invalid && oldPassword.touched ? true : null\">\r\n <ng-container *ngIf=\"oldPassword.invalid && oldPassword.touched\">\r\n <p class=\"error-message\" *ngIf=\"oldPassword.errors?.required\" translate=\"\u65E7\u5BC6\u7801\u662F\u5FC5\u586B\u7684!\">\r\n\r\n </p>\r\n <p class=\"error-message\" *ngIf=\"oldPassword.errors?.minlength || oldPassword.errors?.maxlength\"\r\n translate=\"\u5BC6\u7801\u89C4\u5219\u63D0\u793A\" [translateParams]=\"{minLength: getConfigValue('forms.validation.password.minLength'), maxLength:getConfigValue('forms.validation.password.maxLength')}\">\r\n \u5BC6\u7801\u5E94\u8BE5\u5305\u542B\r\n \u6700\u5C0F\u957F\u5EA6 {{ getConfigValue('forms.validation.password.minLength') }}\r\n \u6700\u5927\u957F\u5EA6 {{ getConfigValue('forms.validation.password.maxLength') }}\r\n \u4E2A\u5B57\u7B26\r\n </p>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"form-control-group\">\r\n <label class=\"label\" for=\"input-new-password\" translate>\u65B0\u5BC6\u7801:</label>\r\n <input nbInput\r\n [(ngModel)]=\"user.loginPasswordNew\"\r\n #newPassword=\"ngModel\"\r\n type=\"password\"\r\n id=\"input-new-password\"\r\n name=\"newPassword\"\r\n class=\"first\"\r\n placeholder=\"{{'\u65B0\u5BC6\u7801'| translate}}\"\r\n autofocus\r\n fullWidth\r\n [status]=\"newPassword.dirty ? (newPassword.invalid ? 'danger' : 'success') : ''\"\r\n [required]=\"getConfigValue('forms.validation.password.required')\"\r\n [minlength]=\"getConfigValue('forms.validation.password.minLength')\"\r\n [maxlength]=\"getConfigValue('forms.validation.password.maxLength')\"\r\n [attr.aria-invalid]=\"newPassword.invalid && newPassword.touched ? true : null\">\r\n <ng-container *ngIf=\"newPassword.invalid && newPassword.touched\">\r\n <p class=\"error-message\" *ngIf=\"newPassword.errors?.required\" translate=\"\u65B0\u5BC6\u7801\u662F\u5FC5\u586B\u7684!\">\r\n\r\n </p>\r\n <p class=\"error-message\" *ngIf=\"newPassword.errors?.minlength || newPassword.errors?.maxlength\"\r\n translate=\"\u5BC6\u7801\u89C4\u5219\u63D0\u793A\"\r\n [translateParams]=\"{minLength: getConfigValue('forms.validation.password.minLength'), maxLength:getConfigValue('forms.validation.password.maxLength')}\">\r\n\r\n \u5BC6\u7801\u5E94\u8BE5\u5305\u542B\r\n \u6700\u5C0F\u957F\u5EA6 {{ getConfigValue('forms.validation.password.minLength') }}\r\n \u6700\u5927\u957F\u5EA6 {{ getConfigValue('forms.validation.password.maxLength') }}\r\n \u4E2A\u5B57\u7B26\r\n </p>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"form-group\">\r\n <label class=\"label\" for=\"input-re-password\" translate>\u786E\u8BA4\u5BC6\u7801:</label>\r\n <input nbInput\r\n [(ngModel)]=\"user.confirmPassword\"\r\n #rePass=\"ngModel\"\r\n id=\"input-re-password\"\r\n name=\"rePass\"\r\n type=\"password\"\r\n class=\"last\"\r\n placeholder=\"{{'\u786E\u8BA4\u5BC6\u7801'| translate}}\"\r\n fullWidth\r\n [status]=\"rePass.touched\r\n ? (rePass.invalid || newPassword.value != rePass.value ? 'danger' : 'success')\r\n : ''\"\r\n [required]=\"getConfigValue('forms.validation.password.required')\"\r\n [attr.aria-invalid]=\"rePass.invalid && rePass.touched ? true : null\">\r\n <ng-container *ngIf=\"rePass.touched\">\r\n <p class=\"error-message\" *ngIf=\"rePass.invalid && rePass.errors?.required\" translate=\"\u786E\u8BA4\u5BC6\u7801\u662F\u5FC5\u586B\u7684!\">\r\n\r\n </p>\r\n <p class=\"error-message\" *ngIf=\"newPassword.value != rePass.value && !rePass.errors?.required\" translate=\"\u4E0E\u7B2C\u4E00\u6B21\u8F93\u5165\u4E0D\u7B26\u5408\"></p>\r\n </ng-container>\r\n </div>\r\n\r\n <button nbButton\r\n status=\"success\"\r\n fullWidth\r\n [disabled]=\"submitted || !resetPassForm.valid\"\r\n [class.btn-pulse]=\"submitted\" translate=\"\u4FEE\u6539\u5BC6\u7801\">\r\n </button>\r\n</form>\r\n\r\n<!--<section class=\"sign-in-or-up\" aria-label=\"Sign in or sign up\">-->\r\n <!--<p><a class=\"text-link\" routerLink=\"../login\">Back to Log In</a></p>-->\r\n <!--<p><a class=\"text-link\" routerLink=\"../register\">Register</a></p>-->\r\n<!--</section>-->\r\n",
  704. changeDetection: core.ChangeDetectionStrategy.OnPush,
  705. styles: [":host .form-group:last-of-type{margin-bottom:3rem}"]
  706. }] }
  707. ];
  708. /** @nocollapse */
  709. ResetPasswordComponent.ctorParameters = function () {
  710. return [
  711. { type: auth.NbAuthService },
  712. { type: LoginLangService },
  713. { type: undefined, decorators: [{ type: core.Inject, args: [auth.NB_AUTH_OPTIONS,] }] },
  714. { type: core.ChangeDetectorRef },
  715. { type: router.Router }
  716. ];
  717. };
  718. return ResetPasswordComponent;
  719. }());
  720. /**
  721. * @fileoverview added by tsickle
  722. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  723. */
  724. var LogoutComponent = /** @class */ (function () {
  725. function LogoutComponent(service, langService, options, router$$1) {
  726. if (options === void 0) {
  727. options = {};
  728. }
  729. this.service = service;
  730. this.langService = langService;
  731. this.options = options;
  732. this.router = router$$1;
  733. this.redirectDelay = 0;
  734. this.strategy = '';
  735. this.redirectDelay = this.getConfigValue('forms.logout.redirectDelay');
  736. this.strategy = this.getConfigValue('forms.logout.strategy');
  737. }
  738. /**
  739. * @return {?}
  740. */
  741. LogoutComponent.prototype.ngOnInit = /**
  742. * @return {?}
  743. */
  744. function () {
  745. this.logout(this.strategy);
  746. };
  747. /**
  748. * @param {?} strategy
  749. * @return {?}
  750. */
  751. LogoutComponent.prototype.logout = /**
  752. * @param {?} strategy
  753. * @return {?}
  754. */
  755. function (strategy) {
  756. var _this = this;
  757. this.service.logout(strategy).subscribe(function (result) {
  758. /** @type {?} */
  759. var redirect = result.getRedirect();
  760. if (redirect) {
  761. setTimeout(function () {
  762. return _this.router.navigateByUrl(redirect);
  763. }, _this.redirectDelay);
  764. }
  765. });
  766. };
  767. /**
  768. * @param {?} key
  769. * @return {?}
  770. */
  771. LogoutComponent.prototype.getConfigValue = /**
  772. * @param {?} key
  773. * @return {?}
  774. */
  775. function (key) {
  776. return helpers.getDeepFromObject(this.options, key, null);
  777. };
  778. LogoutComponent.decorators = [
  779. { type: core.Component, args: [{
  780. selector: 'auth-logout',
  781. template: "<div translate=\"\u767B\u51FA\u63D0\u793A\"></div>\r\n",
  782. styles: ["div{text-align:center}"]
  783. }] }
  784. ];
  785. /** @nocollapse */
  786. LogoutComponent.ctorParameters = function () {
  787. return [
  788. { type: auth.NbAuthService },
  789. { type: LoginLangService },
  790. { type: undefined, decorators: [{ type: core.Inject, args: [auth.NB_AUTH_OPTIONS,] }] },
  791. { type: router.Router }
  792. ];
  793. };
  794. return LogoutComponent;
  795. }());
  796. /**
  797. * @fileoverview added by tsickle
  798. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  799. */
  800. var LoginStatusService = /** @class */ (function () {
  801. function LoginStatusService() {
  802. this.subject = new rxjs.Subject();
  803. }
  804. /**
  805. * @param {?} status
  806. * @return {?}
  807. */
  808. LoginStatusService.prototype.changeStatus = /**
  809. * @param {?} status
  810. * @return {?}
  811. */
  812. function (status) {
  813. if (this.status !== status) {
  814. this.status = status;
  815. this.subject.next(status);
  816. }
  817. };
  818. LoginStatusService.decorators = [
  819. { type: core.Injectable }
  820. ];
  821. /** @nocollapse */
  822. LoginStatusService.ctorParameters = function () { return []; };
  823. return LoginStatusService;
  824. }());
  825. /** @enum {number} */
  826. var LoginStatus = {
  827. Login: 1,
  828. Logout: 2,
  829. };
  830. LoginStatus[LoginStatus.Login] = 'Login';
  831. LoginStatus[LoginStatus.Logout] = 'Logout';
  832. /**
  833. * @fileoverview added by tsickle
  834. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  835. */
  836. var GeAdminAuthModule = /** @class */ (function () {
  837. function GeAdminAuthModule() {
  838. }
  839. GeAdminAuthModule.decorators = [
  840. { type: core.NgModule, args: [{
  841. declarations: [
  842. LoginComponent,
  843. ResetPasswordComponent,
  844. LogoutComponent
  845. ],
  846. imports: [
  847. common.CommonModule,
  848. theme.NbLayoutModule,
  849. theme.NbCardModule,
  850. theme.NbCheckboxModule,
  851. theme.NbAlertModule,
  852. theme.NbInputModule,
  853. theme.NbButtonModule,
  854. router.RouterModule,
  855. forms.FormsModule,
  856. core$1.TranslateModule.forRoot(),
  857. auth.NbAuthModule.forRoot()
  858. ],
  859. providers: [
  860. NamePasswordStrategyService,
  861. LoginStatusService,
  862. LoginLangService
  863. ],
  864. exports: [
  865. LoginComponent,
  866. ResetPasswordComponent,
  867. LogoutComponent
  868. ]
  869. },] }
  870. ];
  871. return GeAdminAuthModule;
  872. }());
  873. /**
  874. * @fileoverview added by tsickle
  875. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  876. */
  877. /**
  878. * @fileoverview added by tsickle
  879. * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  880. */
  881. exports.GeAdminAuthModule = GeAdminAuthModule;
  882. exports.LoginStatusService = LoginStatusService;
  883. exports.LoginStatus = LoginStatus;
  884. exports.LoginComponent = LoginComponent;
  885. exports.LogoutComponent = LogoutComponent;
  886. exports.ResetPasswordComponent = ResetPasswordComponent;
  887. exports.ResultError = ResultError;
  888. exports.NamePasswordStrategyService = NamePasswordStrategyService;
  889. exports.NamePasswordAuthStrategyOptions = NamePasswordAuthStrategyOptions;
  890. exports.namePasswordStrategyOptions = namePasswordStrategyOptions;
  891. exports.AUTH_DEFAULT_LANG = AUTH_DEFAULT_LANG;
  892. exports.LoginLangService = LoginLangService;
  893. Object.defineProperty(exports, '__esModule', { value: true });
  894. })));
  895. //# sourceMappingURL=ge-admin-auth.umd.js.map