ng-yunzai-mobile
Version:
1. 修改wechat.micro.ts
11,482 lines • 511 kB
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('ng-zorro-antd-mobile'), require('@angular/material'), require('ngx-pinch-zoom'), require('ngx-image-cropper'), require('@angular/cdk/drag-drop'), require('rxjs'), require('rxjs/operators'), require('@angular/material/dialog'), require('@angular/common/http'), require('@angular/platform-browser'), require('browser-image-compression')) :
typeof define === 'function' && define.amd ? define('ng-yunzai-mobile', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/router', 'ng-zorro-antd-mobile', '@angular/material', 'ngx-pinch-zoom', 'ngx-image-cropper', '@angular/cdk/drag-drop', 'rxjs', 'rxjs/operators', '@angular/material/dialog', '@angular/common/http', '@angular/platform-browser', 'browser-image-compression'], factory) :
(global = global || self, factory(global['ng-yunzai-mobile'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ng.router, global.ngZorroAntdMobile, global.ng.material, global.ngxPinchZoom, global.ngxImageCropper, global.ng.cdk['drag-drop'], global.rxjs, global.rxjs.operators, global.ng.material.dialog, global.ng.common.http, global.ng.platformBrowser, global.imageCompression));
}(this, (function (exports, core, common, forms, router, ngZorroAntdMobile, material, ngxPinchZoom, ngxImageCropper, dragDrop, rxjs, operators, dialog, http, platformBrowser, imageCompression) { 'use strict';
imageCompression = imageCompression && imageCompression.hasOwnProperty('default') ? imageCompression['default'] : imageCompression;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
function __createBinding(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}
function __exportStar(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
}
function __values(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
function __spreadArrays() {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}
function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}
function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}
function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result.default = mod;
return result;
}
function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
function __classPrivateFieldGet(receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
}
function __classPrivateFieldSet(receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
}
/**
* @fileoverview added by tsickle
* Generated from: shared.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var SharedModule = /** @class */ (function () {
function SharedModule() {
}
SharedModule.decorators = [
{ type: core.NgModule, args: [{
imports: [
common.CommonModule,
router.RouterModule,
forms.FormsModule,
ngZorroAntdMobile.NgZorroAntdMobileModule,
material.MatDialogModule,
ngxPinchZoom.PinchZoomModule,
ngxImageCropper.ImageCropperModule,
dragDrop.DragDropModule
],
exports: [
common.CommonModule,
router.RouterModule,
forms.FormsModule,
ngZorroAntdMobile.NgZorroAntdMobileModule,
material.MatDialogModule,
ngxPinchZoom.PinchZoomModule,
ngxImageCropper.ImageCropperModule,
dragDrop.DragDropModule
]
},] }
];
return SharedModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: user/user.store.interface.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var DA_STORE_USER = new core.InjectionToken('AUTH_STORE_USER');
/**
* @record
*/
function UserStore() { }
if (false) {
/**
* @param {?} key
* @return {?}
*/
UserStore.prototype.get = function (key) { };
/**
* @param {?} key
* @param {?} value
* @return {?}
*/
UserStore.prototype.set = function (key, value) { };
/**
* @param {?} key
* @return {?}
*/
UserStore.prototype.remove = function (key) { };
}
/**
* @fileoverview added by tsickle
* Generated from: client/base.client.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var BASE_CLIENT = new core.InjectionToken('BASE_CLIENT');
/**
* @record
*/
function BaseClient() { }
if (false) {
/** @type {?|undefined} */
BaseClient.prototype.gateway;
/** @type {?|undefined} */
BaseClient.prototype.ignores;
/** @type {?|undefined} */
BaseClient.prototype.dev;
/** @type {?|undefined} */
BaseClient.prototype.wechat;
/** @type {?|undefined} */
BaseClient.prototype.wechatMicro;
/** @type {?|undefined} */
BaseClient.prototype.android;
/** @type {?|undefined} */
BaseClient.prototype.browser;
/** @type {?|undefined} */
BaseClient.prototype.ios;
/** @type {?|undefined} */
BaseClient.prototype.yunzaiIm;
/** @type {?|undefined} */
BaseClient.prototype.dingtalk;
/** @type {?|undefined} */
BaseClient.prototype.openDev;
/** @type {?|undefined} */
BaseClient.prototype.alwaysBrowser;
/** @type {?} */
BaseClient.prototype.mobileVersion;
}
/**
* @fileoverview added by tsickle
* Generated from: token/istore.interface.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var DA_STORE_TOKEN = new core.InjectionToken('AUTH_STORE_TOKEN');
/**
* @record
*/
function IStore() { }
if (false) {
/**
* @param {?} key
* @return {?}
*/
IStore.prototype.get = function (key) { };
/**
* @param {?} key
* @param {?} value
* @return {?}
*/
IStore.prototype.set = function (key, value) { };
/**
* @param {?} key
* @return {?}
*/
IStore.prototype.remove = function (key) { };
}
/**
* @fileoverview added by tsickle
* Generated from: token/token.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var STORE_KEY = 'token';
var TokenService = /** @class */ (function () {
function TokenService(store) {
this.store = store;
this.change$ = new rxjs.BehaviorSubject(null);
}
/**
* @param {?} data
* @return {?}
*/
TokenService.prototype.set = /**
* @param {?} data
* @return {?}
*/
function (data) {
this.change$.next(data);
return this.store.set(STORE_KEY, data);
};
/**
* @template T
* @param {?=} type
* @return {?}
*/
TokenService.prototype.get = /**
* @template T
* @param {?=} type
* @return {?}
*/
function (type) {
/** @type {?} */
var data = this.store.get(STORE_KEY);
return type ? ((/** @type {?} */ (Object.assign(new type(), data)))) : ((/** @type {?} */ (data)));
};
/**
* @return {?}
*/
TokenService.prototype.clear = /**
* @return {?}
*/
function () {
this.change$.next(null);
this.store.remove(STORE_KEY);
};
/**
* @return {?}
*/
TokenService.prototype.change = /**
* @return {?}
*/
function () {
return this.change$.pipe(operators.share());
};
TokenService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
TokenService.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core.Inject, args: [DA_STORE_TOKEN,] }] }
]; };
/** @nocollapse */ TokenService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function TokenService_Factory() { return new TokenService(core.ɵɵinject(DA_STORE_TOKEN)); }, token: TokenService, providedIn: "root" });
return TokenService;
}());
if (false) {
/**
* @type {?}
* @private
*/
TokenService.prototype.change$;
/**
* @type {?}
* @private
*/
TokenService.prototype.store;
}
/**
* @fileoverview added by tsickle
* Generated from: token/token.interface.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var DA_SERVICE_TOKEN = new core.InjectionToken('DA_SERVICE_TOKEN', {
providedIn: 'root',
factory: DA_SERVICE_TOKEN_FACTORY,
});
/**
* @return {?}
*/
function DA_SERVICE_TOKEN_FACTORY() {
return new TokenService(core.inject(DA_STORE_TOKEN));
}
/**
* @record
*/
function ITokenService() { }
if (false) {
/**
* @param {?} data
* @return {?}
*/
ITokenService.prototype.set = function (data) { };
/**
* @param {?=} type
* @return {?}
*/
ITokenService.prototype.get = function (type) { };
/**
* @template T
* @param {?=} type
* @return {?}
*/
ITokenService.prototype.get = function (type) { };
/**
* @return {?}
*/
ITokenService.prototype.clear = function () { };
/**
* @return {?}
*/
ITokenService.prototype.change = function () { };
}
/**
* @fileoverview added by tsickle
* Generated from: user/user.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var STORE_KEY$1 = 'user';
var UserService = /** @class */ (function () {
function UserService(store, client, tokenService) {
this.store = store;
this.client = client;
this.tokenService = tokenService;
this.change$ = new rxjs.BehaviorSubject(null);
}
/**
* @param {?} data
* @return {?}
*/
UserService.prototype.set = /**
* @param {?} data
* @return {?}
*/
function (data) {
this.change$.next(data);
return this.store.set(STORE_KEY$1, data);
};
/**
* @template T
* @param {?=} type
* @return {?}
*/
UserService.prototype.get = /**
* @template T
* @param {?=} type
* @return {?}
*/
function (type) {
/** @type {?} */
var data = this.store.get(STORE_KEY$1);
return type ? ((/** @type {?} */ (Object.assign(new type(), data)))) : ((/** @type {?} */ (data)));
};
/**
* @return {?}
*/
UserService.prototype.clear = /**
* @return {?}
*/
function () {
this.change$.next(null);
this.store.remove(STORE_KEY$1);
};
/**
* @return {?}
*/
UserService.prototype.change = /**
* @return {?}
*/
function () {
return this.change$.pipe(operators.share());
};
/**
* @return {?}
*/
UserService.prototype.logout = /**
* @return {?}
*/
function () {
this.tokenService.set(null);
this.tokenService.clear();
window.location.href = this.client.gateway + "/cas-proxy/app/logout";
};
/**
* @return {?}
*/
UserService.prototype.getConfig = /**
* @return {?}
*/
function () {
if (this.get().menu) {
return JSON.parse(this.get().menu[0].attribute);
}
else {
return null;
}
};
/**
* @return {?}
*/
UserService.prototype.getMenus = /**
* @return {?}
*/
function () {
return this.get().menu || [];
};
/**
* @param {?} menus
* @param {?} systemCode
* @return {?}
*/
UserService.prototype.findMenuBySystemCode = /**
* @param {?} menus
* @param {?} systemCode
* @return {?}
*/
function (menus, systemCode) {
/** @type {?} */
var targetMenu = menus.find((/**
* @param {?} item
* @return {?}
*/
function (item) { return item.systemCode === systemCode; }));
if (targetMenu != null) {
return targetMenu;
}
for (var i = 0; i < menus.length; i++) {
/** @type {?} */
var menu = menus[i];
/** @type {?} */
var targetSubMenu = this.findMenuBySystemCode(menu.children || [], systemCode);
if (targetSubMenu != null) {
return targetSubMenu;
}
}
return null;
};
UserService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
UserService.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core.Inject, args: [DA_STORE_USER,] }] },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] },
{ type: TokenService, decorators: [{ type: core.Inject, args: [DA_SERVICE_TOKEN,] }] }
]; };
/** @nocollapse */ UserService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function UserService_Factory() { return new UserService(core.ɵɵinject(DA_STORE_USER), core.ɵɵinject(BASE_CLIENT), core.ɵɵinject(DA_SERVICE_TOKEN)); }, token: UserService, providedIn: "root" });
return UserService;
}());
if (false) {
/**
* @type {?}
* @private
*/
UserService.prototype.change$;
/**
* @type {?}
* @private
*/
UserService.prototype.store;
/**
* @type {?}
* @private
*/
UserService.prototype.client;
/**
* @type {?}
* @private
*/
UserService.prototype.tokenService;
}
/**
* @fileoverview added by tsickle
* Generated from: acl/acl.directive.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var AclDirective = /** @class */ (function () {
function AclDirective(user, viewContainer, templateRef) {
this.user = user;
this.viewContainer = viewContainer;
this.templateRef = templateRef;
}
Object.defineProperty(AclDirective.prototype, "condition", {
set: /**
* @param {?} acl
* @return {?}
*/
function (acl) {
// 系统代码
/** @type {?} */
var systemCode = acl[0];
// 路由
/** @type {?} */
var elementRoute = acl[1];
// 元素key
/** @type {?} */
var elementKey = acl[2];
/** @type {?} */
var tempArray = [];
// tslint:disable-next-line: prefer-const
/** @type {?} */
var hasElement = false;
// 过滤菜单通过 系统代码 路由
this.filterMenuByAcl(this.filterSystemSider(systemCode), tempArray, elementRoute);
tempArray.forEach((/**
* @param {?} menu
* @return {?}
*/
function (menu) {
if (menu.menuAuths.includes(elementKey)) {
hasElement = true;
}
}));
if (hasElement) {
this.viewContainer.createEmbeddedView(this.templateRef);
}
else {
this.viewContainer.clear();
}
},
enumerable: true,
configurable: true
});
/**
* @param {?} systemcode
* @return {?}
*/
AclDirective.prototype.filterSystemSider = /**
* @param {?} systemcode
* @return {?}
*/
function (systemcode) {
return this.user.get().menu.filter((/**
* @param {?} menu
* @return {?}
*/
function (menu) {
return menu.systemCode === systemcode;
}));
};
/**
* @param {?} menus
* @param {?} tempArray
* @param {?} elementRoute
* @return {?}
*/
AclDirective.prototype.filterMenuByAcl = /**
* @param {?} menus
* @param {?} tempArray
* @param {?} elementRoute
* @return {?}
*/
function (menus, tempArray, elementRoute) {
var _this = this;
menus.forEach((/**
* @param {?} menu
* @return {?}
*/
function (menu) {
if (menu.children.length > 0) {
_this.filterMenuByAcl(menu.children, tempArray, elementRoute);
}
else {
if (menu.link === elementRoute) {
tempArray.push(menu);
}
}
}));
};
AclDirective.decorators = [
{ type: core.Directive, args: [{
// tslint:disable-next-line: directive-selector
selector: '[acl]'
},] }
];
/** @nocollapse */
AclDirective.ctorParameters = function () { return [
{ type: UserService },
{ type: core.ViewContainerRef },
{ type: core.TemplateRef }
]; };
AclDirective.propDecorators = {
condition: [{ type: core.Input, args: ['acl',] }]
};
return AclDirective;
}());
if (false) {
/**
* @type {?}
* @private
*/
AclDirective.prototype.user;
/**
* @type {?}
* @private
*/
AclDirective.prototype.viewContainer;
/**
* @type {?}
* @private
*/
AclDirective.prototype.templateRef;
}
/**
* @fileoverview added by tsickle
* Generated from: acl/acl.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var COMPONENTS = [
AclDirective,
];
var AclModule = /** @class */ (function () {
function AclModule() {
}
AclModule.decorators = [
{ type: core.NgModule, args: [{
declarations: __spread(COMPONENTS),
imports: [
SharedModule
],
exports: __spread(COMPONENTS)
},] }
];
return AclModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: token/memory.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var MemoryStore = /** @class */ (function () {
function MemoryStore() {
this.cache = {};
}
/**
* @param {?} key
* @return {?}
*/
MemoryStore.prototype.get = /**
* @param {?} key
* @return {?}
*/
function (key) {
return this.cache[key] || (/** @type {?} */ ({}));
};
/**
* @param {?} key
* @param {?} value
* @return {?}
*/
MemoryStore.prototype.set = /**
* @param {?} key
* @param {?} value
* @return {?}
*/
function (key, value) {
this.cache[key] = value;
return true;
};
/**
* @param {?} key
* @return {?}
*/
MemoryStore.prototype.remove = /**
* @param {?} key
* @return {?}
*/
function (key) {
this.cache[key] = null;
};
return MemoryStore;
}());
if (false) {
/**
* @type {?}
* @private
*/
MemoryStore.prototype.cache;
}
/**
* @fileoverview added by tsickle
* Generated from: user/user.memory.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var MemoryUserStore = /** @class */ (function () {
function MemoryUserStore() {
this.cache = {};
}
/**
* @param {?} key
* @return {?}
*/
MemoryUserStore.prototype.get = /**
* @param {?} key
* @return {?}
*/
function (key) {
return this.cache[key] || (/** @type {?} */ ({}));
};
/**
* @param {?} key
* @param {?} value
* @return {?}
*/
MemoryUserStore.prototype.set = /**
* @param {?} key
* @param {?} value
* @return {?}
*/
function (key, value) {
this.cache[key] = value;
return true;
};
/**
* @param {?} key
* @return {?}
*/
MemoryUserStore.prototype.remove = /**
* @param {?} key
* @return {?}
*/
function (key) {
this.cache[key] = null;
};
return MemoryUserStore;
}());
if (false) {
/**
* @type {?}
* @private
*/
MemoryUserStore.prototype.cache;
}
/**
* @fileoverview added by tsickle
* Generated from: select-contacts/yz-select-contacts/dept.interface.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function DeptInterface() { }
if (false) {
/** @type {?|undefined} */
DeptInterface.prototype.title;
/** @type {?|undefined} */
DeptInterface.prototype.key;
/** @type {?|undefined} */
DeptInterface.prototype.value;
/** @type {?|undefined} */
DeptInterface.prototype.icon;
/** @type {?|undefined} */
DeptInterface.prototype.selected;
/** @type {?|undefined} */
DeptInterface.prototype.expanded;
/** @type {?|undefined} */
DeptInterface.prototype.children;
}
/**
* @record
*/
function BaseUserInterface() { }
if (false) {
/** @type {?|undefined} */
BaseUserInterface.prototype.checked;
/** @type {?|undefined} */
BaseUserInterface.prototype.disabled;
/** @type {?|undefined} */
BaseUserInterface.prototype.userId;
/** @type {?|undefined} */
BaseUserInterface.prototype.account;
/** @type {?|undefined} */
BaseUserInterface.prototype.password;
/** @type {?|undefined} */
BaseUserInterface.prototype.realName;
/** @type {?|undefined} */
BaseUserInterface.prototype.header;
/** @type {?|undefined} */
BaseUserInterface.prototype.userType;
/** @type {?|undefined} */
BaseUserInterface.prototype.userCode;
/** @type {?|undefined} */
BaseUserInterface.prototype.sex;
/** @type {?|undefined} */
BaseUserInterface.prototype.email;
/** @type {?|undefined} */
BaseUserInterface.prototype.mobile;
/** @type {?|undefined} */
BaseUserInterface.prototype.officePhone;
/** @type {?|undefined} */
BaseUserInterface.prototype.readNumber;
/** @type {?|undefined} */
BaseUserInterface.prototype.status;
/** @type {?|undefined} */
BaseUserInterface.prototype.displayIndex;
/** @type {?|undefined} */
BaseUserInterface.prototype.idCard;
/** @type {?|undefined} */
BaseUserInterface.prototype.lastDate;
/** @type {?|undefined} */
BaseUserInterface.prototype.operUser;
/** @type {?|undefined} */
BaseUserInterface.prototype.twoPassword;
/** @type {?|undefined} */
BaseUserInterface.prototype.lastLoginTime;
/** @type {?|undefined} */
BaseUserInterface.prototype.remark;
/** @type {?|undefined} */
BaseUserInterface.prototype.errorCount;
/** @type {?|undefined} */
BaseUserInterface.prototype.question;
/** @type {?|undefined} */
BaseUserInterface.prototype.answer;
/** @type {?|undefined} */
BaseUserInterface.prototype.theme;
/** @type {?|undefined} */
BaseUserInterface.prototype.roles;
/** @type {?|undefined} */
BaseUserInterface.prototype.roleIdList;
/** @type {?} */
BaseUserInterface.prototype.rolesData;
/** @type {?|undefined} */
BaseUserInterface.prototype.dept;
/** @type {?|undefined} */
BaseUserInterface.prototype.deptId;
/** @type {?|undefined} */
BaseUserInterface.prototype.isDelete;
/** @type {?|undefined} */
BaseUserInterface.prototype.avatarId;
/** @type {?|undefined} */
BaseUserInterface.prototype.bgimgId;
/** @type {?|undefined} */
BaseUserInterface.prototype.profile;
/** @type {?|undefined} */
BaseUserInterface.prototype.passwordStrength;
/** @type {?|undefined} */
BaseUserInterface.prototype.lastLoginIp;
}
/**
* @record
*/
function BaseUserDept() { }
if (false) {
/** @type {?|undefined} */
BaseUserDept.prototype.deptId;
/** @type {?|undefined} */
BaseUserDept.prototype.deptName;
/** @type {?|undefined} */
BaseUserDept.prototype.deptType;
/** @type {?|undefined} */
BaseUserDept.prototype.deptComment;
/** @type {?|undefined} */
BaseUserDept.prototype.leaf;
/** @type {?|undefined} */
BaseUserDept.prototype.displayIndex;
/** @type {?|undefined} */
BaseUserDept.prototype.deptCode;
/** @type {?|undefined} */
BaseUserDept.prototype.status;
/** @type {?|undefined} */
BaseUserDept.prototype.children;
/** @type {?|undefined} */
BaseUserDept.prototype.pid;
/** @type {?|undefined} */
BaseUserDept.prototype.expand;
/** @type {?|undefined} */
BaseUserDept.prototype.createdDate;
}
// 组件参数
var
// 组件参数
ComponentOption = /** @class */ (function () {
function ComponentOption() {
this.includeClass = true; // 是否包含班级(普通部门+系部+班级),true:普通部门+系部+班级,false:普通部门+系部,默认为true
// 是否包含班级(普通部门+系部+班级),true:普通部门+系部+班级,false:普通部门+系部,默认为true
this.includeHisClass = true; // 是否包含历史班级,默认为true,只在includeClass=true时起作用
// 是否包含历史班级,默认为true,只在includeClass=true时起作用
this.count = 0; // 最多人数限制,默认不限制
// 最多人数限制,默认不限制
this.defaultContacts = []; // 默认已被选择的人员
// 默认已被选择的人员
this.onlyStudent = false; // 部门树只选学生(系部+班级)
// 部门树只选学生(系部+班级)
this.userTypes = null; // 人员类型,多个类型以逗号隔开。当按部门查询且只选学生(onlyStudent = true)时默认为“2,3”,更改不起作用,其他情况下无默认值可做修改;
}
return ComponentOption;
}());
if (false) {
/** @type {?} */
ComponentOption.prototype.includeClass;
/** @type {?} */
ComponentOption.prototype.includeHisClass;
/** @type {?} */
ComponentOption.prototype.count;
/** @type {?} */
ComponentOption.prototype.defaultContacts;
/** @type {?} */
ComponentOption.prototype.onlyStudent;
/** @type {?} */
ComponentOption.prototype.userTypes;
}
/**
* @fileoverview added by tsickle
* Generated from: select-contacts/yz-select-contacts/yz-select-contacts.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzSelectContactsService = /** @class */ (function () {
function YzSelectContactsService(dialog, client, http, tokenService) {
this.dialog = dialog;
this.client = client;
this.http = http;
this.tokenService = tokenService;
}
/**
* 选择人员
* @param option
*/
/**
* 选择人员
* @param {?} option
* @return {?}
*/
YzSelectContactsService.prototype.choosePeople = /**
* 选择人员
* @param {?} option
* @return {?}
*/
function (option) {
if (this.tokenService.get().accessToken) {
/** @type {?} */
var dialogRef = this.dialog.open(YzSelectContactsComponent, {
panelClass: 'yz-select-contacts-panel',
closeOnNavigation: true,
data: {
includeClass: option.includeClass == undefined ? true : option.includeClass,
includeHisClass: option.includeHisClass == undefined ? true : option.includeHisClass,
count: option.count == undefined ? 0 : option.count,
defaultContacts: option.defaultContacts == undefined ? [] : option.defaultContacts,
onlyStudent: option.onlyStudent == undefined ? false : option.onlyStudent,
userTypes: option.userTypes == undefined ? null : option.userTypes
}
});
dialogRef.afterClosed().subscribe((/**
* @param {?} result
* @return {?}
*/
function (result) {
if (option.onOk) {
option.onOk(result ? result : []);
}
}));
}
else {
alert('无法获取Token,请刷新!');
}
};
/**
* 查询部门树
* @param includeClass 是否包含班级
* @param includeHisClass 是否包含历史班级,只在includeClass=true时起作用
*/
/**
* 查询部门树
* @param {?} includeClass 是否包含班级
* @param {?} includeHisClass 是否包含历史班级,只在includeClass=true时起作用
* @return {?}
*/
YzSelectContactsService.prototype.getDeptTree = /**
* 查询部门树
* @param {?} includeClass 是否包含班级
* @param {?} includeHisClass 是否包含历史班级,只在includeClass=true时起作用
* @return {?}
*/
function (includeClass, includeHisClass) {
/** @type {?} */
var url = this.client.gateway + "/auth/baseDepartMent/tree";
if (includeClass) {
if (includeHisClass) {
url = url + "?includeClass=true&includeHisClass=true";
}
else {
url = url + "?includeClass=true&includeHisClass=false";
}
}
else {
url = url + "?includeClass=false";
}
return this.http.get(url).pipe(operators.map((/**
* @param {?} response
* @return {?}
*/
function (response) {
return response.data ? response.data : [];
})));
};
/**
* 查询部门树->只选学生(系部+班级)
* @param gradeId 年级id
*/
/**
* 查询部门树->只选学生(系部+班级)
* @param {?} gradeId 年级id
* @param {?} includeClass
* @param {?} includeHisClass
* @return {?}
*/
YzSelectContactsService.prototype.getDeptTreeOnlyStu = /**
* 查询部门树->只选学生(系部+班级)
* @param {?} gradeId 年级id
* @param {?} includeClass
* @param {?} includeHisClass
* @return {?}
*/
function (gradeId, includeClass, includeHisClass) {
/** @type {?} */
var url;
if (gradeId) {
url = this.client.gateway + "/auth/baseDepartMent/tree?gradeId=" + gradeId + "&deptTypes=2,class";
if (includeClass) {
if (includeHisClass) {
url = url + "&includeClass=true&includeHisClass=true";
}
else {
url = url + "&includeClass=true&includeHisClass=false";
}
}
else {
url = url + "&includeClass=false";
}
}
else {
url = this.client.gateway + "/auth/baseDepartMent/tree?deptTypes=2,class";
if (includeClass) {
if (includeHisClass) {
url = url + "&includeClass=true&includeHisClass=true";
}
else {
url = url + "&includeClass=true&includeHisClass=false";
}
}
else {
url = url + "&includeClass=false";
}
}
return this.http.get(url).pipe(operators.map((/**
* @param {?} response
* @return {?}
*/
function (response) {
return response.data ? response.data : [];
})));
};
/**
* 查询人员列表
* @param pageNum 当前页面
* @param pageSize 每页条数
* @param realName 姓名
* @param deptId 部门id
* @param userTypes 用户类型1,2,3,4逗号拼接:查询普通部门的用户(不包括学生)传“1,4”;查询学生用户传“2,3”;查询所有用户不传
*/
/**
* 查询人员列表
* @param {?} pageNum 当前页面
* @param {?} pageSize 每页条数
* @param {?} realName 姓名
* @param {?} deptId 部门id
* @param {?} userTypes 用户类型1,2,3,4逗号拼接:查询普通部门的用户(不包括学生)传“1,4”;查询学生用户传“2,3”;查询所有用户不传
* @return {?}
*/
YzSelectContactsService.prototype.getBaseUser = /**
* 查询人员列表
* @param {?} pageNum 当前页面
* @param {?} pageSize 每页条数
* @param {?} realName 姓名
* @param {?} deptId 部门id
* @param {?} userTypes 用户类型1,2,3,4逗号拼接:查询普通部门的用户(不包括学生)传“1,4”;查询学生用户传“2,3”;查询所有用户不传
* @return {?}
*/
function (pageNum, pageSize, realName, deptId, userTypes) {
return this.http.post(this.client.gateway + "/auth/baseUser/queryListForPage", {
"pageNum": pageNum,
"pageSize": pageSize,
"pageParam": {
"realName": realName,
"deptId": deptId,
"userTypes": userTypes
}
}).pipe(operators.map((/**
* @param {?} response
* @return {?}
*/
function (response) {
return response ? response : null;
})));
};
/**
* 查询人员信息
* @param userIds[] 用户id数组,["aaa","bbb","ccc"]
*/
/**
* 查询人员信息
* @param {?} userIds
* @return {?}
*/
YzSelectContactsService.prototype.getUserByUserIds = /**
* 查询人员信息
* @param {?} userIds
* @return {?}
*/
function (userIds) {
return this.http.post(this.client.gateway + "/auth/baseUser/users", {
userIds: userIds
}).pipe(operators.map((/**
* @param {?} response
* @return {?}
*/
function (response) {
return response.data ? response.data : [];
})));
};
/**
* 查询年级
*/
/**
* 查询年级
* @return {?}
*/
YzSelectContactsService.prototype.getGrade = /**
* 查询年级
* @return {?}
*/
function () {
return this.http.get(this.client.gateway + "/auth/gradeYear/queryListForPage").pipe(operators.map((/**
* @param {?} response
* @return {?}
*/
function (response) {
return response.data ? response.data : [];
})));
};
YzSelectContactsService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
YzSelectContactsService.ctorParameters = function () { return [
{ type: dialog.MatDialog },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] },
{ type: http.HttpClient },
{ type: TokenService }
]; };
/** @nocollapse */ YzSelectContactsService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function YzSelectContactsService_Factory() { return new YzSelectContactsService(core.ɵɵinject(dialog.MatDialog), core.ɵɵinject(BASE_CLIENT), core.ɵɵinject(http.HttpClient), core.ɵɵinject(TokenService)); }, token: YzSelectContactsService, providedIn: "root" });
return YzSelectContactsService;
}());
if (false) {
/** @type {?} */
YzSelectContactsService.prototype.dialog;
/**
* @type {?}
* @private
*/
YzSelectContactsService.prototype.client;
/**
* @type {?}
* @private
*/
YzSelectContactsService.prototype.http;
/**
* @type {?}
* @private
*/
YzSelectContactsService.prototype.tokenService;
}
/**
* @fileoverview added by tsickle
* Generated from: select-contacts/yz-select-contacts/yz-select-contacts.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzSelectContactsComponent = /** @class */ (function () {
function YzSelectContactsComponent(dialogRef, _modal, yzContactsService, data) {
this.dialogRef = dialogRef;
this._modal = _modal;
this.yzContactsService = yzContactsService;
this.data = data;
this.modalRefCpt = [];
this.subscribed = [];
this.dtPullToRefreshStyle = { height: window.innerHeight - 44 - 51 + 'px' };
// 总部门数据
this.deptNodes = [];
// 页面展示的部门数据
this.deptList = [];
// 面包屑
this.deptBarList = [];
// 页面加载中
this.pageLoading = false;
// 人员列表参数
this.baseUserParams = {
total: 0,
pageSize: 20,
pageNum: 1,
deptId: null,
realName: null,
userTypes: null
};
// 人员数据
this.baseUserList = [];
// 是否全选人员
this.allUserCheck = false;
// 已选择的联系人
this.selectedContacts = [];
// 年级数据
this.gradeList = [];
this.gradeParams = [];
}
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
if (this.data.onlyStudent === true) {
this.baseUserParams.userTypes = '2,3';
this.dtPullToRefreshStyle = { height: window.innerHeight - 44 - 51 - 44 + 'px' };
this.initDeptOnlyStu();
this.queryGrade();
}
else {
this.baseUserParams.userTypes = this.data.userTypes;
this.dtPullToRefreshStyle = { height: window.innerHeight - 44 - 51 + 'px' };
this.initDept();
}
};
// 查询部门树
// 查询部门树
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.initDept =
// 查询部门树
/**
* @return {?}
*/
function () {
var _this = this;
this.deptList = [];
this.deptNodes = [];
this.pageLoading = true;
/** @type {?} */
var $temp = this.yzContactsService.getDeptTree(this.data.includeClass, this.data.includeHisClass).subscribe((/**
* @param {?} dept
* @return {?}
*/
function (dept) {
_this.pageLoading = false;
_this.deptNodes = dept;
_this.deptList = JSON.parse(JSON.stringify(_this.deptNodes));
_this.queryDefaultContact();
_this.blDeptTree(_this.deptList);
_this.blDeptTree(_this.deptNodes);
_this.subscribed.push($temp);
}), (/**
* @return {?}
*/
function () {
_this.pageLoading = false;
}));
};
// 查询部门->只选学生
// 查询部门->只选学生
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.initDeptOnlyStu =
// 查询部门->只选学生
/**
* @return {?}
*/
function () {
var _this = this;
this.deptList = [];
this.deptNodes = [];
this.pageLoading = true;
/** @type {?} */
var gradeId = null;
if (this.gradeParams.length > 0) {
gradeId = this.gradeParams[0].value;
}
/** @type {?} */
var $temp = this.yzContactsService.getDeptTreeOnlyStu(gradeId, this.data.includeClass, this.data.includeHisClass).subscribe((/**
* @param {?} dept
* @return {?}
*/
function (dept) {
_this.pageLoading = false;
_this.deptNodes = dept;
_this.deptList = JSON.parse(JSON.stringify(_this.deptNodes));
_this.queryDefaultContact();
_this.blDeptTree(_this.deptList);
_this.blDeptTree(_this.deptNodes);
_this.subscribed.push($temp);
}), (/**
* @return {?}
*/
function () {
_this.pageLoading = false;
}));
};
// 查询年级
// 查询年级
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.queryGrade =
// 查询年级
/**
* @return {?}
*/
function () {
var _this = this;
this.gradeList = [];
this.pageLoading = true;
/** @type {?} */
var $temp = this.yzContactsService.getGrade().subscribe((/**
* @param {?} data
* @return {?}
*/
function (data) {
_this.pageLoading = false;
_this.gradeList = [];
data.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
if (item.enable !== 0 && item.enable !== null) {
_this.gradeList.push({
value: item.openId,
label: item.name
});
}
}));
_this.gradeList.unshift({
value: null,
label: '全部'
});
_this.subscribed.push($temp);
}), (/**
* @return {?}
*/
function () {
_this.pageLoading = false;
_this.gradeList.unshift({
value: null,
label: '全部'
});
}));
};
// 遍历部门树,确定叶子节点
// 遍历部门树,确定叶子节点
/**
* @param {?} tree
* @return {?}
*/
YzSelectContactsComponent.prototype.blDeptTree =
// 遍历部门树,确定叶子节点
/**
* @param {?} tree
* @return {?}
*/
function (tree) {
var _this = this;
if (tree && tree.length && tree.length > 0) {
tree.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
item.expanded = true;
if (item.children === null || item.children.length === 0) {
item['isLeaf'] = true;
}
else {
item['isLeaf'] = false;
}
_this.blDeptTree(item.children);
}));
}
};
// 查询默认已被选择人员的信息
// 查询默认已被选择人员的信息
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.queryDefaultContact =
// 查询默认已被选择人员的信息
/**
* @return {?}
*/
function () {
var _this = this;
if (this.data.defaultContacts && this.data.defaultContacts.length > 0) {
/** @type {?} */
var userIdsArray_1 = [];
this.data.defaultContacts.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
if (item.userId) {
userIdsArray_1.push(item.userId);
}
}));
this.pageLoading = true;
/** @type {?} */
var $temp_1 = this.yzContactsService.getUserByUserIds(userIdsArray_1).subscribe((/**
* @param {?} data
* @return {?}
*/
function (data) {
_this.pageLoading = false;
_this.selectedContacts = data;
_this.queryBaseUser();
_this.subscribed.push($temp_1);
}), (/**
* @return {?}
*/
function () {
_this.pageLoading = false;
}));
}
else {
this.queryBaseUser();
}
};
// 查询人员列表
// 查询人员列表
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.queryBaseUser =
// 查询人员列表
/**
* @return {?}
*/
function () {
var _this = this;
this.pageLoading = true;
/** @type {?} */
var $temp = this.yzContactsService.getBaseUser(this.baseUserParams.pageNum, this.baseUserParams.pageSize, this.baseUserParams.realName, this.baseUserParams.deptId, this.baseUserParams.userTypes).subscribe((/**
* @param {?} data
* @return {?}
*/
function (data) {
var _a;
_this.pageLoading = false;
_this.baseUserParams.total = data.total;
(_a = _this.baseUserList).push.apply(_a, __spread(data.list));
_this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
item['checked'] = false;
item['disabled'] = false;
if (!item.dept) {
item.dept = { deptName: '暂无部门' };
}
if (!item.realName) {
item.realName = '暂无姓名';
}
if (!item.userCode) {
item.realName = '暂无学/工号';
}
if (!item.roles) {
item.roles = [];
item.rolesData = '暂无角色';
}
else {
/** @type {?} */
var roleArray_1 = [];
item.roles.forEach((/**
* @param {?} value
* @return {?}
*/
function (value) {
roleArray_1.push(value.roleName);
}));
item.rolesData = roleArray_1.toString();
}
_this.selectedContacts.forEach((/**
* @param {?} value
* @return {?}
*/
function (value) {
if (value.userId === item.userId) {
item['checked'] = true;
}
}));
}));
_this.isMaxCount();
_this.subscribed.push($temp);
}), (/**
* @return {?}
*/
function () {
_this.pageLoading = false;
}));
};
// 刷新回调函数
// 刷新回调函数
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.pullToRefresh =
// 刷新回调函数
/**
* @return {?}
*/
function () {
if (this.baseUserList.length < this.baseUserParams.total) {
this.baseUserParams.pageNum++;
this.queryBaseUser();
}
};
// 根据用户姓名即时搜索人员
// 根据用户姓名即时搜索人员
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.queryUserByRealName =
// 根据用户姓名即时搜索人员
/**
* @return {?}
*/
function () {
this.baseUserParams.pageNum = 1;
this.baseUserList = [];
this.queryBaseUser();
};
// 取消——根据用户姓名即时搜索人员
// 取消——根据用户姓名即时搜索人员
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.cancelQueUserByRealName =
// 取消——根据用户姓名即时搜索人员
/**
* @return {?}
*/
function () {
this.baseUserParams.realName = null;
this.baseUserParams.pageNum = 1;
this.baseUserList = [];
this.queryBaseUser();
};
// 查询全部人员
// 查询全部人员
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.viewAllList =
// 查询全部人员
/**
* @return {?}
*/
function () {
this.deptList = JSON.parse(JSON.stringify(this.deptNodes));
this.deptBarList = [];
this.baseUserParams.deptId = '';
this.baseUserParams.pageNum = 1;
this.baseUserList = [];
this.queryBaseUser();
};
// 顶部面包屑查看部门详细
// 顶部面包屑查看部门详细
/**
* @param {?} item
* @param {?} index
* @return {?}
*/
YzSelectContactsComponent.prototype.deptBarviewList =
// 顶部面包屑查看部门详细
/**
* @param {?} item
* @param {?} index
* @return {?}
*/
function (item, index) {
if (index != this.deptBarList.length - 1) {
this.deptList = item.children;
this.deptBarList.length = index + 1;
this.baseUserParams.deptId = item.key;
this.baseUserParams.pageNum = 1;
this.baseUserList = [];
this.queryBaseUser();
}
};
// 查看子部门 -> 查询当前部门人员
// 查看子部门 -> 查询当前部门人员
/**
* @param {?} item
* @return {?}
*/
YzSelectContactsComponent.prototype.viewDeptChildrenList =
// 查看子部门 -> 查询当前部门人员
/**
* @param {?} item
* @return {?}
*/
function (item) {
if (item.isLeaf) { // 是叶子节点,无子部门
this.deptList = [];
}
else {
this.deptList = item.children;
}
this.deptBarList.push(item);
this.baseUserParams.deptId = item.key;
this.baseUserParams.pageNum = 1;
this.baseUserList = [];
this.queryBaseUser();
};
// 人员选择变化的回调
// 人员选择变化的回调
/**
* @param {?} $event
* @return {?}
*/
YzSelectContactsComponent.prototype.userCheckedChange =
// 人员选择变化的回调
/**
* @param {?} $event
* @return {?}
*/
function ($event) {
if ($event.checked) { // 选中
this.allUserCheck = this.baseUserList.every((/**
* @param {?} item
* @return {?}
*/
function (item) {
return item.checked === true;
}));
}
else { // 取消
// 取消
/** @type {?} */
var itemIndex_1 = 0;
this.selectedContacts.forEach((/**
* @param {?} value
* @param {?} index
* @return {?}
*/
function (value, index) {
if (value.userId === $event.value) {
itemIndex_1 = index;
}
}));
this.deleteContact($event.value, itemIndex_1);
}
this.addBaseUser();
};
// 将人员列表中选中项添加至已选择的人员列表中
// 将人员列表中选中项添加至已选择的人员列表中
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.addBaseUser =
// 将人员列表中选中项添加至已选择的人员列表中
/**
* @return {?}
*/
function () {
var _this = this;
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
/** @type {?} */
var hasThisMen = _this.selectedContacts.some((/**
* @param {?} value
* @return {?}
*/
function (value) {
return value.userId === item.userId;
}));
if (item.checked && !hasThisMen) {
_this.selectedContacts.push(item);
}
}));
this.isMaxCount();
};
// 人数选择达到最大值
// 人数选择达到最大值
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.isMaxCount =
// 人数选择达到最大值
/**
* @return {?}
*/
function () {
var _this = this;
if (this.data.count > 0 && this.selectedContacts.length >= this.data.count) {
this.selectedContacts.length = this.data.count;
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
/** @type {?} */
var hasThisUser = _this.selectedContacts.some((/**
* @param {?} value
* @return {?}
*/
function (value) {
return item.userId === value.userId;
}));
if (!hasThisUser) {
item.checked = false;
item.disabled = true;
}
}));
}
else {
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
item.disabled = false;
}));
}
if (this.baseUserList.length == 0) {
this.allUserCheck = false;
}
else {
this.allUserCheck = this.baseUserList.every((/**
* @param {?} item
* @return {?}
*/
function (item) {
return item.checked === true;
}));
}
};
// 删除联系人
// 删除联系人
/**
* @param {?} id
* @param {?} index
* @return {?}
*/
YzSelectContactsComponent.prototype.deleteContact =
// 删除联系人
/**
* @param {?} id
* @param {?} index
* @return {?}
*/
function (id, index) {
this.selectedContacts.splice(index, 1);
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
if (item.userId === id) {
item.checked = false;
}
}));
if (this.baseUserList.length == 0) {
this.allUserCheck = false;
}
else {
this.allUserCheck = this.baseUserList.every((/**
* @param {?} item
* @return {?}
*/
function (item) {
return item.checked === true;
}));
}
};
// 全选
// 全选
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.allSelect =
// 全选
/**
* @return {?}
*/
function () {
this.allUserCheck = true;
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
item.checked = true;
}));
this.addBaseUser();
};
// 取消全选
// 取消全选
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.cancelAllSelect =
// 取消全选
/**
* @return {?}
*/
function () {
var _this = this;
this.allUserCheck = false;
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
/** @type {?} */
var itemIndex = 0;
_this.selectedContacts.forEach((/**
* @param {?} value
* @param {?} index
* @return {?}
*/
function (value, index) {
if (value.userId === item.userId) {
itemIndex = index;
}
}));
_this.deleteContact(item.userId, itemIndex);
}));
};
// 切换年级
// 切换年级
/**
* @param {?} $event
* @return {?}
*/
YzSelectContactsComponent.prototype.onChangeGrade =
// 切换年级
/**
* @param {?} $event
* @return {?}
*/
function ($event) {
if ($event && $event.length && $event.length > 0) {
this.gradeParams = $event;
}
else {
this.gradeParams = [{
value: null,
label: '全部'
}];
}
this.deptBarList = [];
this.baseUserParams.deptId = '';
this.baseUserParams.pageNum = 1;
this.baseUserList = [];
this.initDeptOnlyStu();
};
// 点“完成”按钮,完成人员选择
// 点“完成”按钮,完成人员选择
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.confirmSelect =
// 点“完成”按钮,完成人员选择
/**
* @return {?}
*/
function () {
this.dialogRef.close(this.selectedContacts);
};
/**
* @return {?}
*/
YzSelectContactsComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.subscribed.forEach((/**
* @param {?} sub
* @return {?}
*/
function (sub) {
sub.unsubscribe();
}));
this.modalRefCpt.forEach((/**
* @param {?} ref
* @return {?}
*/
function (ref) {
ref.destroy();
}));
};
YzSelectContactsComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-select-contacts',
template: "<yz-loading-mask *ngIf=\"pageLoading\"></yz-loading-mask>\r\n<div class=\"yz-select-contacts\">\r\n <div class=\"yz-select-contacts-search\">\r\n <SearchBar [placeholder]=\"'\u8BF7\u8F93\u5165\u59D3\u540D\u2026\u2026'\"\r\n [(ngModel)]=\"baseUserParams.realName\"\r\n (onSubmit)=\"queryUserByRealName()\"\r\n (onCancel)=\"cancelQueUserByRealName()\"\r\n (onClear)=\"cancelQueUserByRealName()\"></SearchBar>\r\n </div>\r\n <div class=\"yz-select-contacts-grade\" *ngIf=\"data.onlyStudent\">\r\n <List [className]=\"'yz-select-contact-list'\">\r\n <ListItem\r\n Picker\r\n [extra]=\"gradeParams.length>0?gradeParams[0].label:'\u8BF7\u9009\u62E9\u5E74\u7EA7\u2026\u2026'\"\r\n [arrow]=\"'horizontal'\"\r\n [data]=\"gradeList\"\r\n [(ngModel)]=\"gradeParams\"\r\n (ngModelChange)=\"onChangeGrade($event)\">\r\n \u5E74\u7EA7\uFF1A\r\n </ListItem>\r\n </List>\r\n </div>\r\n\r\n\r\n <PullToRefresh [ngStyle]=\"dtPullToRefreshStyle\"\r\n [direction]=\"'up'\"\r\n (onRefresh)=\"pullToRefresh()\"\r\n >\r\n <div class=\"yz-select-contact-dept-bar\">\r\n <a (click)=\"viewAllList()\">\u5168\u90E8</a>\r\n <ng-container *ngFor=\"let item of deptBarList;let i=index;\">\r\n <a (click)=\"deptBarviewList(item, i)\">>{{item?.title}}</a>\r\n </ng-container>\r\n </div>\r\n\r\n <!--\u90E8\u95E8-->\r\n <List [className]=\"'yz-select-contact-list'\" *ngIf=\"deptList.length>0\">\r\n <ListItem multipleLine [arrow]=\"'horizontal'\"\r\n [thumb]=\"'./assets/imgs/icon_dept.png'\"\r\n *ngFor=\"let item of deptList\"\r\n (onClick)=\"viewDeptChildrenList(item)\">\r\n {{item?.title || '--'}}\r\n </ListItem>\r\n </List>\r\n\r\n <!--\u4EBA\u5458-->\r\n <List [className]=\"'contact-list'\" *ngIf=\"baseUserList.length>0\">\r\n <CheckboxItem\r\n *ngFor=\"let item of baseUserList\"\r\n [name]=\"item.realName\"\r\n [value]=\"item.userId\"\r\n [(ngModel)]=\"item.checked\"\r\n [disabled]=\"item.disabled\"\r\n (onChange)=\"userCheckedChange($event)\"\r\n >\r\n {{ item.realName }}<small *ngIf=\"item?.userCode\">({{item.userCode}})</small>\r\n </CheckboxItem>\r\n </List>\r\n </PullToRefresh>\r\n\r\n\r\n <div class=\"yz-select-contacts-btn\">\r\n <div class=\"count-box\">\u5DF2\u9009\u62E9\uFF1A{{selectedContacts.length}} \u4EBA</div>\r\n <div Button [type]=\"'primary'\" [size]=\"'small'\" [inline]=\"true\" (onClick)=\"confirmSelect()\">\u5B8C\u6210</div>\r\n <div Button [type]=\"'ghost'\" [size]=\"'small'\" [inline]=\"true\" *ngIf=\"!allUserCheck\" (onClick)=\"allSelect()\">\u5168\u9009</div>\r\n <div Button [type]=\"'ghost'\" [size]=\"'small'\" [inline]=\"true\" *ngIf=\"allUserCheck\" (onClick)=\"cancelAllSelect()\">\r\n \u53D6\u6D88\u5168\u9009\r\n </div>\r\n </div>\r\n\r\n</div>\r\n",
styles: ["::ng-deep .yz-select-contact-list .am-list-item .am-list-line .am-list-content{font-size:15px}::ng-deep .yz-select-contact-list .am-list-item img{width:34px;height:34px}.yz-select-contact-dept-bar{background:#efeff4;padding:9px 8px}.yz-select-contact-dept-bar a{display:inline-block;color:#1e90ff;margin-bottom:3px;letter-spacing:2px}.yz-select-contact-dept-bar a:last-child{color:#444}::ng-deep .yz-select-contacts-search{width:100%;background:#fff}::ng-deep .yz-select-contacts-search .am-search{background:#fff}::ng-deep .yz-select-contacts-search .am-search-input{background-color:#efeff4}::ng-deep .yz-select-contacts-btn{background:#fff;border-top:1px solid #d9d9d9;position:fixed;bottom:0;left:0;width:100%;padding:10px 0;z-index:5}::ng-deep .yz-select-contacts-btn .am-button-small{display:block;float:right;margin-right:10px}::ng-deep .yz-select-contacts-btn .count-box{display:block;float:left;line-height:30px;margin-left:10px;max-width:calc(100% - 150px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .yz-select-contacts-panel{position:fixed!important;top:0;left:0;z-index:10;width:100%;height:100%;background:#fff;max-width:unset!important}::ng-deep .yz-select-contacts-panel .mat-dialog-container{padding:0;border-radius:0;transform:none!important}"]
}] }
];
/** @nocollapse */
YzSelectContactsComponent.ctorParameters = function () { return [
{ type: dialog.MatDialogRef },
{ type: ngZorroAntdMobile.ModalService },
{ type: YzSelectContactsService },
{ type: ComponentOption, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
]; };
return YzSelectContactsComponent;
}());
if (false) {
/** @type {?} */
YzSelectContactsComponent.prototype.modalRefCpt;
/** @type {?} */
YzSelectContactsComponent.prototype.subscribed;
/** @type {?} */
YzSelectContactsComponent.prototype.dtPullToRefreshStyle;
/** @type {?} */
YzSelectContactsComponent.prototype.deptNodes;
/** @type {?} */
YzSelectContactsComponent.prototype.deptList;
/** @type {?} */
YzSelectContactsComponent.prototype.deptBarList;
/** @type {?} */
YzSelectContactsComponent.prototype.pageLoading;
/** @type {?} */
YzSelectContactsComponent.prototype.baseUserParams;
/** @type {?} */
YzSelectContactsComponent.prototype.baseUserList;
/** @type {?} */
YzSelectContactsComponent.prototype.allUserCheck;
/** @type {?} */
YzSelectContactsComponent.prototype.selectedContacts;
/** @type {?} */
YzSelectContactsComponent.prototype.gradeList;
/** @type {?} */
YzSelectContactsComponent.prototype.gradeParams;
/** @type {?} */
YzSelectContactsComponent.prototype.dialogRef;
/**
* @type {?}
* @private
*/
YzSelectContactsComponent.prototype._modal;
/**
* @type {?}
* @private
*/
YzSelectContactsComponent.prototype.yzContactsService;
/** @type {?} */
YzSelectContactsComponent.prototype.data;
}
/**
* @fileoverview added by tsickle
* Generated from: loading/yz-loading-mask/yz-loading-mask.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzLoadingMaskComponent = /** @class */ (function () {
// 全屏“加载中”遮罩效果
function YzLoadingMaskComponent() {
}
/**
* @return {?}
*/
YzLoadingMaskComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
};
YzLoadingMaskComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-loading-mask',
template: "\n <div class=\"loading_mask\">\n <table>\n <tbody>\n <tr>\n <td>\n <table>\n <tbody>\n <tr>\n <td>\n <svg version=\"1.1\" id=\"Layer_1\" x=\"0px\" y=\"0px\" width=\"24px\" height=\"30px\" viewBox=\"0 0 24 30\" style=\"enable-background:new 0 0 50 50\" xml:space=\"preserve\">\n <rect x=\"0\" y=\"10\" width=\"4\" height=\"10\" fill=\"#333\" opacity=\"0.2\">\n <animate attributeName=\"opacity\" attributeType=\"XML\" values=\"0.2; 1; .2\" begin=\"0s\" dur=\"0.6s\" repeatCount=\"indefinite\">\n <animate attributeName=\"height\" attributeType=\"XML\" values=\"10; 20; 10\" begin=\"0s\" dur=\"0.6s\" repeatCount=\"indefinite\">\n <animate attributeName=\"y\" attributeType=\"XML\" values=\"10; 5; 10\" begin=\"0s\" dur=\"0.6s\" repeatCount=\"indefinite\">\n </animate>\n </animate>\n </animate>\n </rect>\n <rect x=\"8\" y=\"10\" width=\"4\" height=\"10\" fill=\"#333\" opacity=\"0.2\">\n <animate attributeName=\"opacity\" attributeType=\"XML\" values=\"0.2; 1; .2\" begin=\"0.15s\" dur=\"0.6s\" repeatCount=\"indefinite\">\n <animate attributeName=\"height\" attributeType=\"XML\" values=\"10; 20; 10\" begin=\"0.15s\" dur=\"0.6s\" repeatCount=\"indefinite\">\n <animate attributeName=\"y\" attributeType=\"XML\" values=\"10; 5; 10\" begin=\"0.15s\" dur=\"0.6s\" repeatCount=\"indefinite\">\n </animate>\n </animate>\n </animate>\n </rect>\n <rect x=\"16\" y=\"10\" width=\"4\" height=\"10\" fill=\"#333\" opacity=\"0.2\">\n <animate attributeName=\"opacity\" attributeType=\"XML\" values=\"0.2; 1; .2\" begin=\"0.3s\" dur=\"0.6s\" repeatCount=\"indefinite\">\n <animate attributeName=\"height\" attributeType=\"XML\" values=\"10; 20; 10\" begin=\"0.3s\" dur=\"0.6s\" repeatCount=\"indefinite\">\n <animate attributeName=\"y\" attributeType=\"XML\" values=\"10; 5; 10\" begin=\"0.3s\" dur=\"0.6s\" repeatCount=\"indefinite\">\n </animate>\n </animate>\n </animate>\n </rect>\n </svg>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n ",
host: {
'class': 'yz-loading-mask'
},
styles: [".loading_mask{background:rgba(0,0,0,.5);position:fixed;top:0;left:0;width:100%;height:100%;z-index:999}.loading_mask table{width:100%;height:100%}.loading_mask table tr td{text-align:center}.loading_mask table tr td svg path,.loading_mask table tr td svg rect{fill:#108ee9}"]
}] }
];
/** @nocollapse */
YzLoadingMaskComponent.ctorParameters = function () { return []; };
return YzLoadingMaskComponent;
}());
/**
* @fileoverview added by tsickle
* Generated from: loading/yz-loading-more/yz-loading-more.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzLoadingMoreComponent = /** @class */ (function () {
function YzLoadingMoreComponent() {
}
/**
* @return {?}
*/
YzLoadingMoreComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
};
YzLoadingMoreComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-loading-more',
template: "<!--\u884C\u5185\u201C\u52A0\u8F7D\u4E2D\u201D\u6548\u679C-->\r\n<div class=\"yz-loadmore\">\r\n <i class=\"yz-loading\">\r\n <svg version=\"1.1\" id=\"loader-1\" x=\"0px\" y=\"0px\" width=\"22px\" height=\"22px\" viewBox=\"0 0 50 50\" style=\"enable-background:new 0 0 50 50\" xml:space=\"preserve\">\r\n <path fill=\"#000\" d=\"M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z\">\r\n <animateTransform attributeType=\"xml\" attributeName=\"transform\" type=\"rotate\" from=\"0 25 25\" to=\"360 25 25\" dur=\"0.6s\" repeatCount=\"indefinite\"></animateTransform>\r\n </path>\r\n </svg>\r\n </i>\r\n <span class=\"yz-loadmore-tips\">\u6B63\u5728\u52A0\u8F7D</span>\r\n</div>\r\n",
styles: [".yz-loadmore{width:88px;margin:1.5em auto;line-height:1.6em;font-size:14px;text-align:center;overflow:hidden}.yz-loadmore .yz-loading{width:22px;height:22px;display:block;float:left;margin-right:5px}.yz-loadmore .yz-loadmore-tips{display:block;float:left;line-height:22px;color:rgba(0,0,0,.9)}.yz-loadmore svg path,.yz-loadmore svg rect{fill:#108ee9}"]
}] }
];
/** @nocollapse */
YzLoadingMoreComponent.ctorParameters = function () { return []; };
return YzLoadingMoreComponent;
}());
/**
* @fileoverview added by tsickle
* Generated from: loading/loading.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var COMPONENTS$1 = [
YzLoadingMaskComponent,
YzLoadingMoreComponent
];
var LoadingModule = /** @class */ (function () {
function LoadingModule() {
}
LoadingModule.decorators = [
{ type: core.NgModule, args: [{
schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
declarations: __spread(COMPONENTS$1),
entryComponents: __spread(COMPONENTS$1),
imports: [SharedModule],
exports: __spread(COMPONENTS$1)
},] }
];
return LoadingModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: select-contacts/yz-role-select-contacts/yz-role-select-contacts.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzRoleSelectContactsService = /** @class */ (function () {
function YzRoleSelectContactsService(dialog, client, http, tokenService) {
this.dialog = dialog;
this.client = client;
this.http = http;
this.tokenService = tokenService;
}
/**
* 选择人员
* @param option
*/
/**
* 选择人员
* @param {?} option
* @return {?}
*/
YzRoleSelectContactsService.prototype.choosePeople = /**
* 选择人员
* @param {?} option
* @return {?}
*/
function (option) {
if (this.tokenService.get().accessToken) {
/** @type {?} */
var dialogRef = this.dialog.open(YzRoleSelectContactsComponent, {
panelClass: 'yz-role-select-contacts-panel',
closeOnNavigation: true,
data: {
roleGroupCode: option.roleGroupCode == undefined ? null : option.roleGroupCode,
count: option.count == undefined ? 0 : option.count,
defaultContacts: option.defaultContacts == undefined ? [] : option.defaultContacts,
userTypes: option.userTypes == undefined ? null : option.userTypes
}
});
dialogRef.afterClosed().subscribe((/**
* @param {?} result
* @return {?}
*/
function (result) {
if (option.onOk) {
option.onOk(result ? result : []);
}
}));
}
else {
alert('无法获取Token,请刷新!');
}
};
/**
* 获取角色组角色
* @param roleGroupCode 角色组code
*/
/**
* 获取角色组角色
* @param {?} roleGroupCode 角色组code
* @return {?}
*/
YzRoleSelectContactsService.prototype.getGroupRole = /**
* 获取角色组角色
* @param {?} roleGroupCode 角色组code
* @return {?}
*/
function (roleGroupCode) {
return this.http.post(this.client.gateway + "/auth/baseRole/findGroupRole", {
roleGroupCode: roleGroupCode
}).pipe(operators.map((/**
* @param {?} response
* @return {?}
*/
function (response) {
return response.data ? response.data : [];
})));
};
/**
* 查询人员列表
* @param pageNum 当前页面
* @param pageSize 每页条数
* @param realName 姓名
* @param roleId 角色id
* @param userTypes 用户类型1,2,3,4逗号拼接:查询普通部门的用户(不包括学生)传“1,4”;查询学生用户传“2,3”;查询所有用户不传
*/
/**
* 查询人员列表
* @param {?} pageNum 当前页面
* @param {?} pageSize 每页条数
* @param {?} realName 姓名
* @param {?} roleId 角色id
* @param {?} userTypes 用户类型1,2,3,4逗号拼接:查询普通部门的用户(不包括学生)传“1,4”;查询学生用户传“2,3”;查询所有用户不传
* @return {?}
*/
YzRoleSelectContactsService.prototype.getBaseUser = /**
* 查询人员列表
* @param {?} pageNum 当前页面
* @param {?} pageSize 每页条数
* @param {?} realName 姓名
* @param {?} roleId 角色id
* @param {?} userTypes 用户类型1,2,3,4逗号拼接:查询普通部门的用户(不包括学生)传“1,4”;查询学生用户传“2,3”;查询所有用户不传
* @return {?}
*/
function (pageNum, pageSize, realName, roleId, userTypes) {
return this.http.post(this.client.gateway + "/auth/baseUser/queryListForPage", {
"pageNum": pageNum,
"pageSize": pageSize,
"pageParam": {
"realName": realName,
"roleId": roleId,
"userTypes": userTypes
}
}).pipe(operators.map((/**
* @param {?} response
* @return {?}
*/
function (response) {
return response ? response : null;
})));
};
YzRoleSelectContactsService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
YzRoleSelectContactsService.ctorParameters = function () { return [
{ type: dialog.MatDialog },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] },
{ type: http.HttpClient },
{ type: TokenService }
]; };
/** @nocollapse */ YzRoleSelectContactsService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function YzRoleSelectContactsService_Factory() { return new YzRoleSelectContactsService(core.ɵɵinject(dialog.MatDialog), core.ɵɵinject(BASE_CLIENT), core.ɵɵinject(http.HttpClient), core.ɵɵinject(TokenService)); }, token: YzRoleSelectContactsService, providedIn: "root" });
return YzRoleSelectContactsService;
}());
if (false) {
/** @type {?} */
YzRoleSelectContactsService.prototype.dialog;
/**
* @type {?}
* @private
*/
YzRoleSelectContactsService.prototype.client;
/**
* @type {?}
* @private
*/
YzRoleSelectContactsService.prototype.http;
/**
* @type {?}
* @private
*/
YzRoleSelectContactsService.prototype.tokenService;
}
/**
* @fileoverview added by tsickle
* Generated from: select-contacts/yz-role-select-contacts/groupRole.interface.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function GroupRoleInterface() { }
if (false) {
/** @type {?|undefined} */
GroupRoleInterface.prototype.title;
/** @type {?|undefined} */
GroupRoleInterface.prototype.key;
/** @type {?|undefined} */
GroupRoleInterface.prototype.type;
/** @type {?|undefined} */
GroupRoleInterface.prototype.code;
/** @type {?|undefined} */
GroupRoleInterface.prototype.leaf;
/** @type {?|undefined} */
GroupRoleInterface.prototype.selected;
/** @type {?|undefined} */
GroupRoleInterface.prototype.expanded;
/** @type {?|undefined} */
GroupRoleInterface.prototype.children;
}
// 组件参数
var
// 组件参数
ComponentOption$1 = /** @class */ (function () {
function ComponentOption() {
this.roleGroupCode = null; // 角色组编码,只加载此角色组下的角色列表;
// 角色组编码,只加载此角色组下的角色列表;
this.count = 0; // 最多人数限制,默认不限制
// 最多人数限制,默认不限制
this.defaultContacts = []; // 默认已被选择的人员
// 默认已被选择的人员
this.userTypes = null; // 人员类型,多个类型以逗号隔开。当按部门查询且只选学生(onlyStudent = true)时默认为“2,3”,更改不起作用,其他情况下无默认值可做修改;
}
return ComponentOption;
}());
if (false) {
/** @type {?} */
ComponentOption$1.prototype.roleGroupCode;
/** @type {?} */
ComponentOption$1.prototype.count;
/** @type {?} */
ComponentOption$1.prototype.defaultContacts;
/** @type {?} */
ComponentOption$1.prototype.userTypes;
}
/**
* @fileoverview added by tsickle
* Generated from: select-contacts/yz-role-select-contacts/yz-role-select-contacts.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzRoleSelectContactsComponent = /** @class */ (function () {
function YzRoleSelectContactsComponent(dialogRef, _modal, yzContactsService, yzRoleContactsService, data) {
this.dialogRef = dialogRef;
this._modal = _modal;
this.yzContactsService = yzContactsService;
this.yzRoleContactsService = yzRoleContactsService;
this.data = data;
this.modalRefCpt = [];
this.subscribed = [];
this.dtPullToRefreshStyle = { height: window.innerHeight - 44 - 51 - 44 + 'px' };
// 总角色组数据
this.roleNodes = [];
// 页面展示的角色组数据
this.groupRoleList = [];
// 当前角色
this.currentRole = [];
// 页面加载中
this.pageLoading = false;
// 人员列表参数
this.baseUserParams = {
total: 0,
pageSize: 20,
pageNum: 1,
realName: null
};
// 人员数据
this.baseUserList = [];
// 是否全选人员
this.allUserCheck = false;
// 已选择的联系人
this.selectedContacts = [];
}
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
this.initGroupRole();
};
// 查询角色组
// 查询角色组
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.initGroupRole =
// 查询角色组
/**
* @return {?}
*/
function () {
var _this = this;
this.groupRoleList = [];
this.roleNodes = [];
this.pageLoading = true;
/** @type {?} */
var $temp = this.yzRoleContactsService.getGroupRole(this.data.roleGroupCode).subscribe((/**
* @param {?} role
* @return {?}
*/
function (role) {
_this.pageLoading = false;
_this.roleNodes = role;
_this.roleNodes.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
/** @type {?} */
var obj = {
value: item.key,
label: item.title,
children: []
};
if (item.children && item.children.length > 0) {
item.children.forEach((/**
* @param {?} role
* @return {?}
*/
function (role) {
obj.children.push({
value: role.key,
label: role.title,
});
}));
}
_this.groupRoleList.push(obj);
}));
_this.groupRoleList.unshift({
value: null,
label: '全部'
});
if (_this.roleNodes.length > 0) {
if (_this.roleNodes[0].children.length > 0) {
_this.currentRole = [_this.groupRoleList[1].children[0]];
}
}
_this.queryDefaultContact();
_this.subscribed.push($temp);
}), (/**
* @return {?}
*/
function () {
_this.pageLoading = false;
}));
};
// 查询默认已被选择人员的信息
// 查询默认已被选择人员的信息
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.queryDefaultContact =
// 查询默认已被选择人员的信息
/**
* @return {?}
*/
function () {
var _this = this;
if (this.data.defaultContacts && this.data.defaultContacts.length > 0) {
/** @type {?} */
var userIdsArray_1 = [];
this.data.defaultContacts.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
if (item.userId) {
userIdsArray_1.push(item.userId);
}
}));
this.pageLoading = true;
/** @type {?} */
var $temp_1 = this.yzContactsService.getUserByUserIds(userIdsArray_1).subscribe((/**
* @param {?} data
* @return {?}
*/
function (data) {
_this.pageLoading = false;
_this.selectedContacts = data;
_this.queryBaseUser();
_this.subscribed.push($temp_1);
}), (/**
* @return {?}
*/
function () {
_this.pageLoading = false;
}));
}
else {
this.queryBaseUser();
}
};
// 查询人员列表
// 查询人员列表
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.queryBaseUser =
// 查询人员列表
/**
* @return {?}
*/
function () {
var _this = this;
this.pageLoading = true;
/** @type {?} */
var $temp = this.yzRoleContactsService.getBaseUser(this.baseUserParams.pageNum, this.baseUserParams.pageSize, this.baseUserParams.realName, this.currentRole.length > 0 ? this.currentRole[this.currentRole.length - 1].value : null, this.data.userTypes).subscribe((/**
* @param {?} data
* @return {?}
*/
function (data) {
var _a;
_this.pageLoading = false;
_this.baseUserParams.total = data.total;
(_a = _this.baseUserList).push.apply(_a, __spread(data.list));
_this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
item['checked'] = false;
item['disabled'] = false;
if (!item.dept) {
item.dept = { deptName: '暂无部门' };
}
if (!item.realName) {
item.realName = '暂无姓名';
}
if (!item.userCode) {
item.realName = '暂无学/工号';
}
if (!item.roles) {
item.roles = [];
item.rolesData = '暂无角色';
}
else {
/** @type {?} */
var roleArray_1 = [];
item.roles.forEach((/**
* @param {?} value
* @return {?}
*/
function (value) {
roleArray_1.push(value.roleName);
}));
item.rolesData = roleArray_1.toString();
}
_this.selectedContacts.forEach((/**
* @param {?} value
* @return {?}
*/
function (value) {
if (value.userId === item.userId) {
item['checked'] = true;
}
}));
}));
_this.isMaxCount();
_this.subscribed.push($temp);
}), (/**
* @return {?}
*/
function () {
_this.pageLoading = false;
}));
};
// 刷新回调函数
// 刷新回调函数
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.pullToRefresh =
// 刷新回调函数
/**
* @return {?}
*/
function () {
if (this.baseUserList.length < this.baseUserParams.total) {
this.baseUserParams.pageNum++;
this.queryBaseUser();
}
};
// 根据用户姓名即时搜索人员
// 根据用户姓名即时搜索人员
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.queryUserByRealName =
// 根据用户姓名即时搜索人员
/**
* @return {?}
*/
function () {
this.baseUserParams.pageNum = 1;
this.baseUserList = [];
this.queryBaseUser();
};
// 取消——根据用户姓名即时搜索人员
// 取消——根据用户姓名即时搜索人员
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.cancelQueUserByRealName =
// 取消——根据用户姓名即时搜索人员
/**
* @return {?}
*/
function () {
this.baseUserParams.realName = null;
this.baseUserParams.pageNum = 1;
this.baseUserList = [];
this.queryBaseUser();
};
// 切换角色
// 切换角色
/**
* @param {?} $event
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.onChangeRole =
// 切换角色
/**
* @param {?} $event
* @return {?}
*/
function ($event) {
if ($event && $event.length && $event.length > 0) {
this.currentRole = $event;
}
else {
this.currentRole = [{
value: null,
label: '全部'
}];
}
this.baseUserParams.pageNum = 1;
this.baseUserList = [];
this.queryBaseUser();
};
// 人员选择变化的回调
// 人员选择变化的回调
/**
* @param {?} $event
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.userCheckedChange =
// 人员选择变化的回调
/**
* @param {?} $event
* @return {?}
*/
function ($event) {
if ($event.checked) { // 选中
this.allUserCheck = this.baseUserList.every((/**
* @param {?} item
* @return {?}
*/
function (item) {
return item.checked === true;
}));
}
else { // 取消
// 取消
/** @type {?} */
var itemIndex_1 = 0;
this.selectedContacts.forEach((/**
* @param {?} value
* @param {?} index
* @return {?}
*/
function (value, index) {
if (value.userId === $event.value) {
itemIndex_1 = index;
}
}));
this.deleteContact($event.value, itemIndex_1);
}
this.addBaseUser();
};
// 将人员列表中选中项添加至已选择的人员列表中
// 将人员列表中选中项添加至已选择的人员列表中
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.addBaseUser =
// 将人员列表中选中项添加至已选择的人员列表中
/**
* @return {?}
*/
function () {
var _this = this;
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
/** @type {?} */
var hasThisMen = _this.selectedContacts.some((/**
* @param {?} value
* @return {?}
*/
function (value) {
return value.userId === item.userId;
}));
if (item.checked && !hasThisMen) {
_this.selectedContacts.push(item);
}
}));
this.isMaxCount();
};
// 人数选择达到最大值
// 人数选择达到最大值
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.isMaxCount =
// 人数选择达到最大值
/**
* @return {?}
*/
function () {
var _this = this;
if (this.data.count > 0 && this.selectedContacts.length >= this.data.count) {
this.selectedContacts.length = this.data.count;
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
/** @type {?} */
var hasThisUser = _this.selectedContacts.some((/**
* @param {?} value
* @return {?}
*/
function (value) {
return item.userId === value.userId;
}));
if (!hasThisUser) {
item.checked = false;
item.disabled = true;
}
}));
}
else {
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
item.disabled = false;
}));
}
if (this.baseUserList.length == 0) {
this.allUserCheck = false;
}
else {
this.allUserCheck = this.baseUserList.every((/**
* @param {?} item
* @return {?}
*/
function (item) {
return item.checked === true;
}));
}
};
// 删除联系人
// 删除联系人
/**
* @param {?} id
* @param {?} index
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.deleteContact =
// 删除联系人
/**
* @param {?} id
* @param {?} index
* @return {?}
*/
function (id, index) {
this.selectedContacts.splice(index, 1);
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
if (item.userId === id) {
item.checked = false;
}
}));
if (this.baseUserList.length == 0) {
this.allUserCheck = false;
}
else {
this.allUserCheck = this.baseUserList.every((/**
* @param {?} item
* @return {?}
*/
function (item) {
return item.checked === true;
}));
}
};
// 全选
// 全选
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.allSelect =
// 全选
/**
* @return {?}
*/
function () {
this.allUserCheck = true;
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
item.checked = true;
}));
this.addBaseUser();
};
// 取消全选
// 取消全选
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.cancelAllSelect =
// 取消全选
/**
* @return {?}
*/
function () {
var _this = this;
this.allUserCheck = false;
this.baseUserList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
/** @type {?} */
var itemIndex = 0;
_this.selectedContacts.forEach((/**
* @param {?} value
* @param {?} index
* @return {?}
*/
function (value, index) {
if (value.userId === item.userId) {
itemIndex = index;
}
}));
_this.deleteContact(item.userId, itemIndex);
}));
};
// 点“完成”按钮,完成人员选择
// 点“完成”按钮,完成人员选择
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.confirmSelect =
// 点“完成”按钮,完成人员选择
/**
* @return {?}
*/
function () {
this.dialogRef.close(this.selectedContacts);
};
/**
* @return {?}
*/
YzRoleSelectContactsComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
this.subscribed.forEach((/**
* @param {?} sub
* @return {?}
*/
function (sub) {
sub.unsubscribe();
}));
this.modalRefCpt.forEach((/**
* @param {?} ref
* @return {?}
*/
function (ref) {
ref.destroy();
}));
};
YzRoleSelectContactsComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-role-select-contacts',
template: "<yz-loading-mask *ngIf=\"pageLoading\"></yz-loading-mask>\r\n<div class=\"yz-select-contacts\">\r\n <div class=\"yz-select-contacts-search\">\r\n <SearchBar [placeholder]=\"'\u8BF7\u8F93\u5165\u59D3\u540D\u2026\u2026'\"\r\n [(ngModel)]=\"baseUserParams.realName\"\r\n (onSubmit)=\"queryUserByRealName()\"\r\n (onCancel)=\"cancelQueUserByRealName()\"\r\n (onClear)=\"cancelQueUserByRealName()\"></SearchBar>\r\n </div>\r\n <div class=\"yz-select-contacts-grade\">\r\n <List [className]=\"'yz-select-contact-list'\">\r\n <ListItem\r\n Picker\r\n [extra]=\"currentRole.length>0?currentRole[currentRole.length-1].label:'\u8BF7\u9009\u62E9\u89D2\u8272\u2026\u2026'\"\r\n [arrow]=\"'horizontal'\"\r\n [data]=\"groupRoleList\"\r\n [(ngModel)]=\"currentRole\"\r\n (ngModelChange)=\"onChangeRole($event)\">\r\n \u89D2\u8272\uFF1A\r\n </ListItem>\r\n </List>\r\n </div>\r\n\r\n\r\n\r\n <PullToRefresh [ngStyle]=\"dtPullToRefreshStyle\"\r\n [direction]=\"'up'\"\r\n (onRefresh)=\"pullToRefresh()\"\r\n >\r\n\r\n <!--\u4EBA\u5458-->\r\n <List [className]=\"'contact-list'\" *ngIf=\"baseUserList.length>0\">\r\n <CheckboxItem\r\n *ngFor=\"let item of baseUserList\"\r\n [name]=\"item.realName\"\r\n [value]=\"item.userId\"\r\n [(ngModel)]=\"item.checked\"\r\n [disabled]=\"item.disabled\"\r\n (onChange)=\"userCheckedChange($event)\"\r\n >\r\n {{ item?.realName }}<small *ngIf=\"item?.userCode\">({{item.userCode}})</small> <span> {{ item?.dept?.deptName }}</span>\r\n </CheckboxItem>\r\n </List>\r\n </PullToRefresh>\r\n\r\n\r\n <div class=\"yz-select-contacts-btn\">\r\n <div class=\"count-box\">\u5DF2\u9009\u62E9\uFF1A{{selectedContacts.length}} \u4EBA</div>\r\n <div Button [type]=\"'primary'\" [size]=\"'small'\" [inline]=\"true\" (onClick)=\"confirmSelect()\">\u5B8C\u6210</div>\r\n <div Button [type]=\"'ghost'\" [size]=\"'small'\" [inline]=\"true\" *ngIf=\"!allUserCheck\" (onClick)=\"allSelect()\">\u5168\u9009</div>\r\n <div Button [type]=\"'ghost'\" [size]=\"'small'\" [inline]=\"true\" *ngIf=\"allUserCheck\" (onClick)=\"cancelAllSelect()\">\r\n \u53D6\u6D88\u5168\u9009\r\n </div>\r\n </div>\r\n\r\n</div>\r\n",
styles: ["::ng-deep .yz-select-contact-list .am-list-item .am-list-line .am-list-content{font-size:15px}::ng-deep .yz-select-contact-list .am-list-item img{width:34px;height:34px}::ng-deep .contact-list .am-list-content span{font-size:14px;float:right;color:#888}::ng-deep .yz-select-contacts-search{width:100%;background:#fff}::ng-deep .yz-select-contacts-search .am-search{background:#fff}::ng-deep .yz-select-contacts-search .am-search-input{background-color:#efeff4}::ng-deep .yz-select-contacts-btn{background:#fff;border-top:1px solid #d9d9d9;position:fixed;bottom:0;left:0;width:100%;padding:10px 0;z-index:5}::ng-deep .yz-select-contacts-btn .am-button-small{display:block;float:right;margin-right:10px}::ng-deep .yz-select-contacts-btn .count-box{display:block;float:left;line-height:30px;margin-left:10px;max-width:calc(100% - 150px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}::ng-deep .yz-role-select-contacts-panel{position:fixed!important;top:0;left:0;z-index:10;width:100%;height:100%;background:#fff;max-width:unset!important}::ng-deep .yz-role-select-contacts-panel .mat-dialog-container{padding:0;border-radius:0;transform:none!important}"]
}] }
];
/** @nocollapse */
YzRoleSelectContactsComponent.ctorParameters = function () { return [
{ type: dialog.MatDialogRef },
{ type: ngZorroAntdMobile.ModalService },
{ type: YzSelectContactsService },
{ type: YzRoleSelectContactsService },
{ type: ComponentOption$1, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
]; };
return YzRoleSelectContactsComponent;
}());
if (false) {
/** @type {?} */
YzRoleSelectContactsComponent.prototype.modalRefCpt;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.subscribed;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.dtPullToRefreshStyle;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.roleNodes;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.groupRoleList;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.currentRole;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.pageLoading;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.baseUserParams;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.baseUserList;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.allUserCheck;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.selectedContacts;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.dialogRef;
/**
* @type {?}
* @private
*/
YzRoleSelectContactsComponent.prototype._modal;
/**
* @type {?}
* @private
*/
YzRoleSelectContactsComponent.prototype.yzContactsService;
/**
* @type {?}
* @private
*/
YzRoleSelectContactsComponent.prototype.yzRoleContactsService;
/** @type {?} */
YzRoleSelectContactsComponent.prototype.data;
}
/**
* @fileoverview added by tsickle
* Generated from: select-contacts/select-contacts.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var COMPONENTS$2 = [
YzSelectContactsComponent,
YzRoleSelectContactsComponent
];
var SelectContactsModule = /** @class */ (function () {
function SelectContactsModule() {
}
SelectContactsModule.decorators = [
{ type: core.NgModule, args: [{
schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
declarations: __spread(COMPONENTS$2),
entryComponents: __spread(COMPONENTS$2),
imports: [SharedModule, LoadingModule],
exports: __spread(COMPONENTS$2)
},] }
];
return SelectContactsModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: empty/yz-no-data-mask/yz-no-data-mask.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzNoDataMaskComponent = /** @class */ (function () {
function YzNoDataMaskComponent() {
}
/**
* @return {?}
*/
YzNoDataMaskComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
};
YzNoDataMaskComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-no-data-mask',
template: "\n <table class=\"yz-no-data-box\">\n <tr>\n <td>\n <table>\n <tr>\n <td>\n <img src=\"./assets/imgs/zwsj.png\">\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n ",
host: {
'class': 'yz-no-data-mask'
},
styles: [".yz-no-data-box{position:fixed;width:100%;height:100%;top:0;left:0;z-index:-1}.yz-no-data-box table{width:100%;height:100%}.yz-no-data-box tr td{text-align:center;width:100%}.yz-no-data-box tr td img{display:block;width:120px;margin:0 auto}.yz-no-data-box tr td span{display:block;width:235px;margin:25px auto 0;text-align:left;font-size:16px;color:#868686;text-indent:2em}.yz-no-data-box tr td span em{font-style:normal;color:#1f90e6}"]
}] }
];
/** @nocollapse */
YzNoDataMaskComponent.ctorParameters = function () { return []; };
return YzNoDataMaskComponent;
}());
/**
* @fileoverview added by tsickle
* Generated from: empty/yz-no-data-inline/yz-no-data-inline.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzNoDataInlineComponent = /** @class */ (function () {
function YzNoDataInlineComponent() {
// 与当前页面背景应相同
this.bg = '#ffffff';
// 提示文字
this.text = null;
}
/**
* @return {?}
*/
YzNoDataInlineComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
};
YzNoDataInlineComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-no-data-inline',
template: "\n <!--\u884C\u5185\u201C\u6682\u65E0\u6570\u636E\u201D\u6548\u679C-->\n <div class=\"yz-no-data-inline\">\n <span class=\"yz-no-data-inline-tips\" [ngStyle]=\"{'background':bg}\">{{text || '\u6682\u65E0\u6570\u636E'}}</span>\n </div>",
styles: [".yz-no-data-inline{border-top:1px solid rgba(0,0,0,.1);width:170px;margin:2.4em auto 1.4em;text-align:center}.yz-no-data-inline .yz-no-data-inline-tips{position:relative;top:-.75em;padding:0 .55em;background-color:#fff;color:rgba(0,0,0,.5)}"]
}] }
];
/** @nocollapse */
YzNoDataInlineComponent.ctorParameters = function () { return []; };
YzNoDataInlineComponent.propDecorators = {
bg: [{ type: core.Input }],
text: [{ type: core.Input }]
};
return YzNoDataInlineComponent;
}());
if (false) {
/** @type {?} */
YzNoDataInlineComponent.prototype.bg;
/** @type {?} */
YzNoDataInlineComponent.prototype.text;
}
/**
* @fileoverview added by tsickle
* Generated from: empty/empty.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var COMPONENTS$3 = [
YzNoDataMaskComponent,
YzNoDataInlineComponent
];
var EmptyModule = /** @class */ (function () {
function EmptyModule() {
}
EmptyModule.decorators = [
{ type: core.NgModule, args: [{
schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
declarations: __spread(COMPONENTS$3),
entryComponents: __spread(COMPONENTS$3),
imports: [SharedModule],
exports: __spread(COMPONENTS$3)
},] }
];
return EmptyModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: page/yz-page/yz-page.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzPageComponent = /** @class */ (function () {
function YzPageComponent() {
// 页面外层框架
// 页面外层框架
// 页面内是否有内边距
this.spacing = true;
}
YzPageComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-page',
template: "\n <div class=\"page__bd\" [class.page__bd_spacing]=\"spacing\">\n <ng-content></ng-content>\n </div>\n ",
host: {
'class': 'page'
},
styles: [":host.page{position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:1;background-color:#f7f7f7}.page__hd{padding:40px}.page__bd_spacing{padding:10px}.page__ft{padding-top:40px;padding-bottom:10px;text-align:center}.page__ft img{height:19px}.page__ft.j_bottom{position:absolute;bottom:0;left:0;right:0}.page__title{text-align:left;font-size:20px;font-weight:400}.page__desc{margin-top:5px;color:#888;text-align:left;font-size:14px}.page-enter{z-index:1024;opacity:.01;transform:translate3d(100%,0,0);transition:.2s}.page-enter.page-enter-active{opacity:1;transform:translate3d(0,0,0)}.page-leave{opacity:1;transform:translate3d(0,0,0);transition:.2s}.page-leave.page-leave-active{opacity:.01;transform:translate3d(100%,0,0)}.page.actionsheet,.page.article,.page.dialog,.page.loadmore,.page.msg,.page.msg_success,.page.msg_warn,.page.popup,.page.toast,.page.toptips{background-color:#fff}.page.infinite{position:relative}.page.flex .placeholder{background-color:#ebebeb;height:2.3em;line-height:2.3em;text-align:center;margin:5px;color:#cfcfcf}.page.icons{text-align:center}.page.icons .page__bd{padding:0 40px;text-align:left}.page.icons .icon-box{margin-bottom:25px;display:flex;align-items:center}.page.icons .icon-box i{margin-right:18px}.page.icons .icon-box__ctn{flex-shrink:100}.page.icons .icon-box__title{font-weight:400}.page.icons .icon-box__desc{margin-top:6px;font-size:12px;color:#888}.page.icons .icon_sp_area{margin-top:10px;text-align:left}.page.icons .icon_sp_area i:before{margin-bottom:5px}"]
}] }
];
YzPageComponent.propDecorators = {
spacing: [{ type: core.Input }]
};
return YzPageComponent;
}());
if (false) {
/** @type {?} */
YzPageComponent.prototype.spacing;
}
/**
* @fileoverview added by tsickle
* Generated from: page/yz-bottom-btn/yz-bottom-btn.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzBottomBtnComponent = /** @class */ (function () {
function YzBottomBtnComponent() {
// 自定义样式
this.customStyle = {};
}
/**
* @return {?}
*/
YzBottomBtnComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
};
// 返回
// 返回
/**
* @return {?}
*/
YzBottomBtnComponent.prototype.goBack =
// 返回
/**
* @return {?}
*/
function () {
window.history.back();
};
// 前进
// 前进
/**
* @return {?}
*/
YzBottomBtnComponent.prototype.goForward =
// 前进
/**
* @return {?}
*/
function () {
window.history.forward();
};
YzBottomBtnComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-bottom-btn',
template: "<!--\u5B89\u5353\u5FAE\u4FE1\u516C\u4F17\u53F7\u9875\u9762\u5E95\u90E8\u524D\u8FDB\u3001\u540E\u9000\u6309\u94AE-->\n<div class=\"yz-bottom-btn\" [ngStyle]=\"customStyle\">\n <a (click)=\"goBack()\"><</a>\n <a (click)=\"goForward()\">></a>\n</div>\n",
styles: [".yz-bottom-btn{position:fixed;bottom:0;left:0;width:100%;z-index:9;background:#fff;line-height:44px;color:#333;font-size:22px;text-align:center;box-shadow:0 0 10px 0 rgba(0,0,0,.05);font-family:'\u5B8B\u4F53';font-weight:700;display:flex;align-items:center;justify-content:space-evenly}.yz-bottom-btn a{display:inline-block;padding:0 20px;cursor:pointer}.yz-bottom-btn a.disabledBtn{color:#cecece}.yz-bottom-btn a:hover{color:#108ee9}"]
}] }
];
/** @nocollapse */
YzBottomBtnComponent.ctorParameters = function () { return []; };
YzBottomBtnComponent.propDecorators = {
customStyle: [{ type: core.Input }]
};
return YzBottomBtnComponent;
}());
if (false) {
/** @type {?} */
YzBottomBtnComponent.prototype.customStyle;
}
/**
* @fileoverview added by tsickle
* Generated from: page/page.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var COMPONENTS$4 = [
YzPageComponent,
YzBottomBtnComponent
];
var PageModule = /** @class */ (function () {
function PageModule() {
}
PageModule.decorators = [
{ type: core.NgModule, args: [{
schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
declarations: __spread(COMPONENTS$4),
entryComponents: __spread(COMPONENTS$4),
imports: [SharedModule],
exports: __spread(COMPONENTS$4)
},] }
];
return PageModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: upload-file/yz-upload-file/upload.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var UploadService = /** @class */ (function () {
function UploadService(http, client) {
this.http = http;
this.client = client;
}
/**
* 上传
* @param type 1:文件;2:拍照上传;3:拍照/文件 上传
*/
/**
* 上传
* @param {?} option
* @return {?}
*/
UploadService.prototype.uploadHandle = /**
* 上传
* @param {?} option
* @return {?}
*/
function (option) {
/** @type {?} */
var ele = document.getElementsByClassName('upt_box');
if (ele.length > 0) {
document.body.removeChild(ele[0]);
}
/** @type {?} */
var input = document.createElement('input');
input.setAttribute("type", "file");
input.setAttribute("class", "upt_box");
input.setAttribute("style", 'display:none');
if (option.type == 1) {
}
else if (option.type == 2) {
input.setAttribute("accept", "image/*");
input.setAttribute("capture", "camera");
}
else if (option.type == 3) {
input.setAttribute("accept", "image/*");
input.setAttribute("mutiple", "multiple");
}
document.body.appendChild(input);
input.onclick = (/**
* @return {?}
*/
function () {
/** @type {?} */
var inputEle = (/** @type {?} */ (document.getElementsByClassName('upt_box')[0]));
inputEle.value = '';
});
input.click();
input.onchange = (/**
* @return {?}
*/
function () {
/** @type {?} */
var file = input.files[0];
if (option.onOk) {
option.onOk(file);
}
});
};
/**
* 上传文件
* @param file
*/
/**
* 上传文件
* @param {?} file
* @return {?}
*/
UploadService.prototype.uploadFile = /**
* 上传文件
* @param {?} file
* @return {?}
*/
function (file) {
/** @type {?} */
var formData = new FormData();
formData.set('file', file);
return this.http.post(this.client.gateway + "/filecenter/file", formData).pipe(operators.map((/**
* @param {?} response
* @return {?}
*/
function (response) {
return response;
})));
};
/**
* 删除文件
* @param id 文件id
*/
/**
* 删除文件
* @param {?} id 文件id
* @return {?}
*/
UploadService.prototype.deleteFile = /**
* 删除文件
* @param {?} id 文件id
* @return {?}
*/
function (id) {
return this.http.delete(this.client.gateway + "/filecenter/file/" + id).pipe(operators.map((/**
* @param {?} response
* @return {?}
*/
function (response) {
return response;
})));
};
UploadService.decorators = [
{ type: core.Injectable, args: [{
providedIn: "root"
},] }
];
/** @nocollapse */
UploadService.ctorParameters = function () { return [
{ type: http.HttpClient },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ UploadService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function UploadService_Factory() { return new UploadService(core.ɵɵinject(http.HttpClient), core.ɵɵinject(BASE_CLIENT)); }, token: UploadService, providedIn: "root" });
return UploadService;
}());
if (false) {
/**
* @type {?}
* @private
*/
UploadService.prototype.http;
/**
* @type {?}
* @private
*/
UploadService.prototype.client;
}
/**
* @fileoverview added by tsickle
* Generated from: upload-file/yz-file-carousel/yz-file-carousel.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzFileCarouselComponent = /** @class */ (function () {
function YzFileCarouselComponent(dialogRef, data) {
this.dialogRef = dialogRef;
this.data = data;
// 屏幕高度
this.carouselHeight = window.innerHeight;
// 当前展示图片索引
this.carouselIndex = 0;
// 图片集合(必须有url)
this.fileList = [];
}
/**
* @return {?}
*/
YzFileCarouselComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
console.log('file-carousel接收参数:');
console.log(this.data);
// 只能预览图片格式文件
this.fileList = this.data.fileList;
this.carouselIndex = this.data.index;
};
// 关闭预览
// 关闭预览
/**
* @return {?}
*/
YzFileCarouselComponent.prototype.closeFileCarousel =
// 关闭预览
/**
* @return {?}
*/
function () {
this.dialogRef.close();
};
YzFileCarouselComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-file-carousel',
template: "<a href=\"javascript:;\" class=\"preview-close-btn\" (click)=\"closeFileCarousel()\">\r\n <Icon [type]=\"'cross-circle-o'\"></Icon>\r\n</a>\r\n\r\n<div class=\"file-carousel\">\r\n <Carousel [infinite]=\"true\"\r\n [selectedIndex]=\"carouselIndex\"\r\n >\r\n <CarouselSlide *ngFor=\"let item of fileList;\">\r\n <pinch-zoom [backgroundColor]=\"'rgba(0,0,0,0.5)'\" >\r\n <div class=\"file-carousel-item\" [ngStyle]=\"{height: carouselHeight + 'px'}\">\r\n <img [src]=\"item.url\">\r\n </div>\r\n </pinch-zoom>\r\n </CarouselSlide>\r\n </Carousel>\r\n</div>\r\n\r\n",
styles: ["::ng-deep .yz-file-carousel{position:fixed!important;top:0;left:0;z-index:100;width:100%;height:100%;background:rgba(0,0,0,.5);max-width:unset!important}::ng-deep .yz-file-carousel .mat-dialog-container{padding:0;border-radius:0;transform:none!important}::ng-deep .yz-file-carousel .preview-close-btn{position:absolute;right:8px;top:8px;display:block;width:36px;height:36px;text-align:center;line-height:36px;z-index:10}::ng-deep .yz-file-carousel .preview-close-btn Icon{color:#f3f3f3;display:block;margin:8px 0}::ng-deep .yz-file-carousel .file-carousel-item{display:flex;justify-content:center;align-items:center;overflow:hidden}::ng-deep .yz-file-carousel .file-carousel-item img{max-width:100%;display:block}::ng-deep .yz-file-carousel .pz-zoom-button{display:none!important}"]
}] }
];
/** @nocollapse */
YzFileCarouselComponent.ctorParameters = function () { return [
{ type: dialog.MatDialogRef },
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
]; };
return YzFileCarouselComponent;
}());
if (false) {
/** @type {?} */
YzFileCarouselComponent.prototype.carouselHeight;
/** @type {?} */
YzFileCarouselComponent.prototype.carouselIndex;
/** @type {?} */
YzFileCarouselComponent.prototype.fileList;
/** @type {?} */
YzFileCarouselComponent.prototype.dialogRef;
/** @type {?} */
YzFileCarouselComponent.prototype.data;
}
/**
* @fileoverview added by tsickle
* Generated from: upload-file/yz-file-carousel/file-carousel.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var FileCarouselService = /** @class */ (function () {
function FileCarouselService(dialog) {
this.dialog = dialog;
}
/**
* 查看图片列表
* @param option
*/
/**
* 查看图片列表
* @param {?} option
* @return {?}
*/
FileCarouselService.prototype.viewImgFileCarousel = /**
* 查看图片列表
* @param {?} option
* @return {?}
*/
function (option) {
if (option.fileList.length === 0) {
return;
}
this.dialog.open(YzFileCarouselComponent, {
panelClass: 'yz-file-carousel',
closeOnNavigation: true,
data: {
fileList: option.fileList,
index: option.index == undefined ? 0 : option.index
}
});
};
FileCarouselService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
FileCarouselService.ctorParameters = function () { return [
{ type: dialog.MatDialog }
]; };
/** @nocollapse */ FileCarouselService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function FileCarouselService_Factory() { return new FileCarouselService(core.ɵɵinject(dialog.MatDialog)); }, token: FileCarouselService, providedIn: "root" });
return FileCarouselService;
}());
if (false) {
/** @type {?} */
FileCarouselService.prototype.dialog;
}
/**
* @fileoverview added by tsickle
* Generated from: upload-file/yz-file-show/yz-file-show.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzFileShowComponent = /** @class */ (function () {
function YzFileShowComponent(sanitizer, dialogRef, data, client) {
this.sanitizer = sanitizer;
this.dialogRef = dialogRef;
this.data = data;
this.client = client;
this.fileId = null;
this.loading = false;
}
/**
* @return {?}
*/
YzFileShowComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
this.fileId = this.data.id;
this.loading = true;
this.iframeSrc = this.sanitizer.bypassSecurityTrustResourceUrl(this.client.gateway + '/filecenter/preview/' + this.fileId);
};
/**
* @return {?}
*/
YzFileShowComponent.prototype.closeIframe = /**
* @return {?}
*/
function () {
this.dialogRef.close();
};
/**
* @return {?}
*/
YzFileShowComponent.prototype.ngAfterViewInit = /**
* @return {?}
*/
function () {
var _this = this;
setTimeout((/**
* @return {?}
*/
function () {
/** @type {?} */
var _iframe = (/** @type {?} */ (document.getElementById('yz-file-show-iframe')));
/** @type {?} */
var _iframeHeader = (/** @type {?} */ (_iframe.contentWindow.document.getElementsByTagName('header')[0]));
/** @type {?} */
var _iframeContent = (/** @type {?} */ (_iframe.contentWindow.document.getElementsByClassName('content')[0]));
_iframeHeader.style.display = 'none';
_iframeContent.style.paddingTop = '0';
_this.loading = false;
}), 1000);
};
YzFileShowComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-file-show',
template: "<yz-loading-mask *ngIf=\"loading\"></yz-loading-mask>\r\n<iframe id=\"yz-file-show-iframe\" *ngIf=\"iframeSrc\" [src]=\"iframeSrc\"></iframe>\r\n<a href=\"javascript:;\" class=\"iframe-close-btn\" (click)=\"closeIframe()\">\r\n <Icon [type]=\"'cross-circle-o'\"></Icon>\r\n</a>\r\n",
styles: ["::ng-deep .yz-iframe-page{position:fixed!important;top:0;left:0;z-index:10;width:100%;height:100%;background:rgba(0,0,0,.5);max-width:unset!important}::ng-deep .yz-iframe-page .mat-dialog-container{padding:0;border-radius:0;transform:none!important}::ng-deep .yz-iframe-page iframe{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;border:none}::ng-deep .yz-iframe-page .iframe-close-btn{position:absolute;right:8px;top:8px;display:block;width:36px;height:36px;text-align:center;line-height:36px;z-index:9999}::ng-deep .yz-iframe-page .iframe-close-btn Icon{color:#f3f3f3;display:block;margin:8px 0}"]
}] }
];
/** @nocollapse */
YzFileShowComponent.ctorParameters = function () { return [
{ type: platformBrowser.DomSanitizer },
{ type: dialog.MatDialogRef },
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
return YzFileShowComponent;
}());
if (false) {
/** @type {?} */
YzFileShowComponent.prototype.fileId;
/** @type {?} */
YzFileShowComponent.prototype.iframeSrc;
/** @type {?} */
YzFileShowComponent.prototype.loading;
/**
* @type {?}
* @private
*/
YzFileShowComponent.prototype.sanitizer;
/** @type {?} */
YzFileShowComponent.prototype.dialogRef;
/** @type {?} */
YzFileShowComponent.prototype.data;
/**
* @type {?}
* @private
*/
YzFileShowComponent.prototype.client;
}
/**
* @fileoverview added by tsickle
* Generated from: upload-file/yz-file-show/file-show.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var FileShowService = /** @class */ (function () {
function FileShowService(dialog) {
this.dialog = dialog;
}
/**
* 查看综合文件列表
* @param option
*/
/**
* 查看综合文件列表
* @param {?} option
* @return {?}
*/
FileShowService.prototype.viewFileShow = /**
* 查看综合文件列表
* @param {?} option
* @return {?}
*/
function (option) {
if (!option.id) {
return;
}
this.dialog.open(YzFileShowComponent, {
panelClass: 'yz-iframe-page',
closeOnNavigation: true,
data: {
id: option.id
}
});
};
FileShowService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
FileShowService.ctorParameters = function () { return [
{ type: dialog.MatDialog }
]; };
/** @nocollapse */ FileShowService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function FileShowService_Factory() { return new FileShowService(core.ɵɵinject(dialog.MatDialog)); }, token: FileShowService, providedIn: "root" });
return FileShowService;
}());
if (false) {
/** @type {?} */
FileShowService.prototype.dialog;
}
/**
* @fileoverview added by tsickle
* Generated from: upload-file/yz-upload-file/yz-upload-file.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzUploadFileComponent = /** @class */ (function () {
function YzUploadFileComponent(_toast, client, uploadService, fileCarouselService, fileShowService, dialog) {
var _this = this;
this._toast = _toast;
this.client = client;
this.uploadService = uploadService;
this.fileCarouselService = fileCarouselService;
this.fileShowService = fileShowService;
this.dialog = dialog;
// 服务方式调用,返回文件本身的File对象;
// 组件方式调用,返回全部文件File数组;
this.type = 1;
this.disabled = false;
this.fileList = [];
this.confirmFile = new core.EventEmitter();
// 页面加载中
this.pageLoading = false;
// 文件的展示方式(使用组件方式调用才展示文件),若上传的文件均为图片格式,则以“square”方式显示,否则以“list”方式显示;默认为“list”
this.showType = ShowType.LIST;
// 右侧按钮组
this.rightBtnArr = [
{
text: '删除',
onPress: (/**
* @return {?}
*/
function () {
_this.deleteFile();
}),
className: 'btnClass',
style: { backgroundColor: '#f4333c', color: '#fff' }
}
];
// 被删除文件
this.deleteItem = {
id: null,
index: null
};
}
/**
* @return {?}
*/
YzUploadFileComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
};
/**
* @return {?}
*/
YzUploadFileComponent.prototype.upload = /**
* @return {?}
*/
function () {
var _this = this;
if (!this.pageLoading) {
this.uploadService.uploadHandle({
type: this.type,
onOk: (/**
* @param {?} result
* @return {?}
*/
function (result) {
_this.uploadFileStart(result);
})
});
}
};
// 上传附件
// 上传附件
/**
* @param {?} file
* @return {?}
*/
YzUploadFileComponent.prototype.uploadFileStart =
// 上传附件
/**
* @param {?} file
* @return {?}
*/
function (file) {
var _this = this;
this.pageLoading = true;
this.uploadService.uploadFile(file).subscribe((/**
* @param {?} data
* @return {?}
*/
function (data) {
_this.pageLoading = false;
if (data.data) {
/** @type {?} */
var bgUrl = '';
data.data.type = data.data.type.toLowerCase();
switch (data.data.type) {
case '.xls':
case '.xlsx':
bgUrl = './assets/imgs/icon_excel.png';
break;
case '.ppt':
case '.pptx':
bgUrl = './assets/imgs/icon_ppt.png';
break;
case '.doc':
case '.docx':
bgUrl = './assets/imgs/icon_word.png';
break;
case '.pdf':
bgUrl = './assets/imgs/icon_pdf.png';
break;
case '.txt':
bgUrl = './assets/imgs/icon_text.png';
break;
case '.gif':
case '.png':
case '.jpg':
case '.jpeg':
bgUrl = _this.client.gateway + '/filecenter/file/' + data.data.id;
break;
case '.mp3':
case '.mp4':
bgUrl = './assets/imgs/icon_img.png';
break;
default:
bgUrl = './assets/imgs/icon_othert.png';
}
_this.fileList.push(__assign({ bgUrl: bgUrl, url: _this.client.gateway + '/filecenter/file/' + data.data.id }, data.data));
_this.isAllImg();
_this.confirmFile.emit(_this.fileList);
}
else {
_this._toast.fail('上传失败,请重新操作!');
}
}), (/**
* @param {?} error
* @return {?}
*/
function (error) {
_this.pageLoading = false;
console.log(error);
_this._toast.fail('上传失败,请重新操作!');
}));
};
// 文件的展示方式
// 文件的展示方式
/**
* @return {?}
*/
YzUploadFileComponent.prototype.isAllImg =
// 文件的展示方式
/**
* @return {?}
*/
function () {
/** @type {?} */
var allImg = this.fileList.every((/**
* @param {?} item
* @return {?}
*/
function (item) {
return item.type === '.jpg' || item.type === '.jpeg' || item.type === '.gif' || item.type === '.png';
}));
this.showType = allImg ? ShowType.SQUARE : ShowType.LIST;
};
// 删除文件
// 删除文件
/**
* @return {?}
*/
YzUploadFileComponent.prototype.deleteFile =
// 删除文件
/**
* @return {?}
*/
function () {
var _this = this;
this.pageLoading = true;
this.uploadService.deleteFile(this.deleteItem.id).subscribe((/**
* @param {?} data
* @return {?}
*/
function (data) {
_this.pageLoading = false;
if (data.message.indexOf('成功') != -1) {
_this.fileList.splice(_this.deleteItem.index, 1);
_this.isAllImg();
_this.confirmFile.emit(_this.fileList);
}
else {
_this._toast.fail('删除失败,请重新操作!');
}
}), (/**
* @return {?}
*/
function () {
_this.pageLoading = false;
_this._toast.fail('删除失败,请重新操作!');
}));
};
// 删除方块中的文件
// 删除方块中的文件
/**
* @param {?} id
* @param {?} index
* @return {?}
*/
YzUploadFileComponent.prototype.deleteFileBySquare =
// 删除方块中的文件
/**
* @param {?} id
* @param {?} index
* @return {?}
*/
function (id, index) {
event.stopPropagation();
this.deleteItem = {
id: id,
index: index
};
this.deleteFile();
};
// 删除list中的文件
// 删除list中的文件
/**
* @param {?} id
* @param {?} index
* @return {?}
*/
YzUploadFileComponent.prototype.deleteFileBySwipe =
// 删除list中的文件
/**
* @param {?} id
* @param {?} index
* @return {?}
*/
function (id, index) {
this.deleteItem = {
id: id,
index: index
};
};
// 查看图片文件详情
// 查看图片文件详情
/**
* @param {?} item
* @param {?} index
* @return {?}
*/
YzUploadFileComponent.prototype.viewImgFile =
// 查看图片文件详情
/**
* @param {?} item
* @param {?} index
* @return {?}
*/
function (item, index) {
this.fileCarouselService.viewImgFileCarousel({
fileList: this.fileList,
index: index
});
};
// 查看多种格式文件详情
// 查看多种格式文件详情
/**
* @param {?} item
* @return {?}
*/
YzUploadFileComponent.prototype.viewOtherFile =
// 查看多种格式文件详情
/**
* @param {?} item
* @return {?}
*/
function (item) {
this.fileShowService.viewFileShow({
id: item.id
});
};
YzUploadFileComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-upload-file',
template: "<!-- \u56FE\u7247\u683C\u5F0F\u6587\u4EF6\u7684\u5C55\u793A-->\r\n<div class=\"upload-file-box\">\r\n <ng-container *ngIf=\"fileList.length>0 && showType=='square'\">\r\n <div class=\"file-item\" *ngFor=\"let item of fileList;let i=index;\">\r\n <div class=\"file-item-cont\"\r\n [ngStyle]=\"{'background':'url('+item.bgUrl+') no-repeat center #fff','background-size': (item.type=='.gif' || item.type=='.png' || item.type=='.jpg' || item.type=='.jpeg')?'cover':'auto'}\"\r\n (click)=\"viewImgFile(item, i)\">\r\n <Icon [type]=\"'cross-circle-o'\" *ngIf=\"!disabled\"\r\n [size]=\"'xs'\"\r\n [color]=\"'rgba(0,0,0,.5)'\"\r\n (click)=\"deleteFileBySquare(item.id,i)\"\r\n ></Icon>\r\n </div>\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"file-item\" *ngIf=\"!disabled\" (click)=\"upload()\">\r\n <div class=\"file-item-cont\"\r\n [class.add-file-btn]=\"!pageLoading\"\r\n [class.add-file-loading]=\"pageLoading\">\r\n <Icon *ngIf=\"pageLoading\" [type]=\"'loading'\" [size]=\"'lg'\"></Icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<!-- \u591A\u79CD\u683C\u5F0F\u6587\u4EF6\u7684\u5C55\u793A-->\r\n<List [className]=\"'file-list'\" *ngIf=\"fileList.length>0 && showType=='list'\">\r\n <SwipeAction\r\n *ngFor=\"let item of fileList;let i=index;\"\r\n [autoClose]=\"true\"\r\n [disabled]=\"disabled\"\r\n [right]=\"rightBtnArr\"\r\n (onOpen)=\"deleteFileBySwipe(item.id,i)\"\r\n >\r\n <ListItem\r\n [arrow]=\"'horizontal'\"\r\n [thumb]=\"iconTpl\"\r\n multipleLine\r\n (onClick)=\"viewOtherFile(item)\"\r\n >\r\n <ng-template #iconTpl>\r\n <ng-container [ngSwitch]=\"item.type\">\r\n <img *ngSwitchCase=\"'.xls'\" src=\"./assets/imgs/icon_excel.png\">\r\n <img *ngSwitchCase=\"'.xlsx'\" src=\"./assets/imgs/icon_excel.png\">\r\n\r\n <img *ngSwitchCase=\"'.ppt'\" src=\"./assets/imgs/icon_ppt.png\">\r\n <img *ngSwitchCase=\"'.pptx'\" src=\"./assets/imgs/icon_ppt.png\">\r\n\r\n <img *ngSwitchCase=\"'.doc'\" src=\"./assets/imgs/icon_word.png\">\r\n <img *ngSwitchCase=\"'.docx'\" src=\"./assets/imgs/icon_word.png\">\r\n\r\n <img *ngSwitchCase=\"'.pdf'\" src=\"./assets/imgs/icon_pdf.png\">\r\n\r\n <img *ngSwitchCase=\"'.txt'\" src=\"./assets/imgs/icon_text.png\">\r\n\r\n <img *ngSwitchCase=\"'.gif'\" src=\"./assets/imgs/icon_img.png\">\r\n <img *ngSwitchCase=\"'.png'\" src=\"./assets/imgs/icon_img.png\">\r\n <img *ngSwitchCase=\"'.jpg'\" src=\"./assets/imgs/icon_img.png\">\r\n <img *ngSwitchCase=\"'.jpeg'\" src=\"./assets/imgs/icon_img.png\">\r\n\r\n <img *ngSwitchCase=\"'.mp3'\" src=\"./assets/imgs/icon_mp3.png\">\r\n <img *ngSwitchCase=\"'.mp4'\" src=\"./assets/imgs/icon_mp4.png\">\r\n\r\n <img *ngSwitchDefault src=\"./assets/imgs/icon_othert.png\">\r\n </ng-container>\r\n </ng-template>\r\n {{item?.filename || 'XX'}}\r\n </ListItem>\r\n </SwipeAction>\r\n</List>\r\n",
styles: [".upload-file-box{overflow:hidden;margin-bottom:16px}.upload-file-box .file-item{width:33.3333%;position:relative;display:block;float:left}.upload-file-box .file-item::after{content:'';display:block;margin-top:100%}.upload-file-box .file-item-cont{position:absolute;left:3px;right:3px;top:3px;bottom:3px;background-color:#fff;border:1px solid #ddd;display:block}.upload-file-box .file-item-cont Icon{position:absolute;top:0;right:0;z-index:20;padding:7px}.upload-file-box .file-item-cont.add-file-btn::after,.upload-file-box .file-item-cont.add-file-btn::before{width:1px;height:25px;content:\" \";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#ccc}.upload-file-box .file-item-cont.add-file-btn::after{width:25px;height:1px}.upload-file-box .file-item-cont.add-file-btn:active{background:#f7f7f7}.upload-file-box .file-item-cont.add-file-loading{background:rgba(0,0,0,.3)}.upload-file-box .file-item-cont.add-file-loading Icon{top:50%;left:50%;margin-top:-19px;margin-left:-18px;padding:0;right:unset}"]
}] }
];
/** @nocollapse */
YzUploadFileComponent.ctorParameters = function () { return [
{ type: ngZorroAntdMobile.ToastService },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] },
{ type: UploadService },
{ type: FileCarouselService },
{ type: FileShowService },
{ type: dialog.MatDialog }
]; };
YzUploadFileComponent.propDecorators = {
type: [{ type: core.Input }],
disabled: [{ type: core.Input }],
fileList: [{ type: core.Input }],
confirmFile: [{ type: core.Output }]
};
return YzUploadFileComponent;
}());
if (false) {
/** @type {?} */
YzUploadFileComponent.prototype.type;
/** @type {?} */
YzUploadFileComponent.prototype.disabled;
/** @type {?} */
YzUploadFileComponent.prototype.fileList;
/** @type {?} */
YzUploadFileComponent.prototype.confirmFile;
/** @type {?} */
YzUploadFileComponent.prototype.pageLoading;
/** @type {?} */
YzUploadFileComponent.prototype.showType;
/** @type {?} */
YzUploadFileComponent.prototype.rightBtnArr;
/** @type {?} */
YzUploadFileComponent.prototype.deleteItem;
/**
* @type {?}
* @private
*/
YzUploadFileComponent.prototype._toast;
/**
* @type {?}
* @private
*/
YzUploadFileComponent.prototype.client;
/**
* @type {?}
* @private
*/
YzUploadFileComponent.prototype.uploadService;
/**
* @type {?}
* @private
*/
YzUploadFileComponent.prototype.fileCarouselService;
/**
* @type {?}
* @private
*/
YzUploadFileComponent.prototype.fileShowService;
/** @type {?} */
YzUploadFileComponent.prototype.dialog;
}
var fileModel = /** @class */ (function () {
function fileModel() {
}
return fileModel;
}());
if (false) {
/** @type {?} */
fileModel.prototype.id;
/** @type {?} */
fileModel.prototype.filename;
/** @type {?} */
fileModel.prototype.length;
/** @type {?} */
fileModel.prototype.chunkSize;
/** @type {?} */
fileModel.prototype.uploadDate;
/** @type {?} */
fileModel.prototype.md5;
/** @type {?} */
fileModel.prototype.type;
/** @type {?} */
fileModel.prototype.duration;
/** @type {?} */
fileModel.prototype.storeType;
/** @type {?} */
fileModel.prototype.storeInfo;
/** @type {?} */
fileModel.prototype.url;
/** @type {?} */
fileModel.prototype.bgUrl;
}
/** @enum {string} */
var ShowType = {
LIST: "list",
SQUARE: "square",
};
/**
* @fileoverview added by tsickle
* Generated from: upload-file/upload-file.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var COMPONENTS$5 = [
YzUploadFileComponent,
YzFileCarouselComponent,
YzFileShowComponent
];
var UploadFileModule = /** @class */ (function () {
function UploadFileModule() {
}
UploadFileModule.decorators = [
{ type: core.NgModule, args: [{
schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
declarations: __spread(COMPONENTS$5),
entryComponents: __spread(COMPONENTS$5),
imports: [SharedModule, LoadingModule],
exports: __spread(COMPONENTS$5)
},] }
];
return UploadFileModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: img-cropper/yz-img-cropper/yz-img-cropper.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzImgCropperComponent = /** @class */ (function () {
function YzImgCropperComponent(dialogRef, _toast, data) {
this.dialogRef = dialogRef;
this._toast = _toast;
this.data = data;
this.cropperStyle = {
height: window.innerHeight - 142 + 'px',
width: '100%',
padding: 0,
display: 'flex',
'align-items': 'center',
'justify-content': 'center',
'align-content': 'center',
'flex-wrap': 'wrap'
};
this.imageChangedEvent = null;
this.imageBase64 = null;
this.imageBlobFile = null;
this.croppedImage = null;
this.showImg = false;
this.imgInfo = {
width: 0,
height: 0
};
this.canvasRotation = 0;
this.transform = {};
this.scale = 1;
// 图片压缩进度
this.percent = 0;
}
/**
* @return {?}
*/
YzImgCropperComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
if (this.data.imgFile) {
this.fileChangeEvent(this.data.imgFile);
}
else {
this._toast.info('请选择上传图片!');
}
};
/**
* @param {?} event
* @return {?}
*/
YzImgCropperComponent.prototype.fileChangeEvent = /**
* @param {?} event
* @return {?}
*/
function (event) {
if (this.data.fileType == 'FileEvent' || !this.data.fileType) {
this.imageChangedEvent = event;
this.imageBase64 = null;
this.imageBlobFile = null;
}
else if (this.data.fileType == 'Base64') {
this.imageChangedEvent = null;
this.imageBase64 = event;
this.imageBlobFile = null;
}
else if (this.data.fileType == 'BlobFile') {
this.imageChangedEvent = null;
this.imageBase64 = null;
this.imageBlobFile = event;
}
};
// 每次裁剪图像时发出
// 每次裁剪图像时发出
/**
* @param {?} event
* @return {?}
*/
YzImgCropperComponent.prototype.imageCropped =
// 每次裁剪图像时发出
/**
* @param {?} event
* @return {?}
*/
function (event) {
this.croppedImage = event.base64;
this.imgInfo = event;
};
// 选择错误的文件类型时发出(仅允许png、gif和jpg)
// 选择错误的文件类型时发出(仅允许png、gif和jpg)
/**
* @return {?}
*/
YzImgCropperComponent.prototype.loadImageFailed =
// 选择错误的文件类型时发出(仅允许png、gif和jpg)
/**
* @return {?}
*/
function () {
this._toast.info("\u56FE\u7247\u9009\u62E9\u5931\u8D25\uFF01");
};
// 还原图片大小
// 还原图片大小
/**
* @return {?}
*/
YzImgCropperComponent.prototype.resetImage =
// 还原图片大小
/**
* @return {?}
*/
function () {
this.scale = 1;
this.canvasRotation = 0;
this.transform = {};
};
// 取消裁剪
// 取消裁剪
/**
* @return {?}
*/
YzImgCropperComponent.prototype.cancelCropper =
// 取消裁剪
/**
* @return {?}
*/
function () {
this.imageChangedEvent = null;
this.imageBase64 = null;
this.imageBlobFile = null;
this.croppedImage = null;
this.showImg = false;
this.percent = 0;
this.imgInfo = {
width: 0,
height: 0
};
this.dialogRef.close();
this.resetImage();
};
// 裁剪完毕=>压缩图片
// 裁剪完毕=>压缩图片
/**
* @return {?}
*/
YzImgCropperComponent.prototype.confirmCropper =
// 裁剪完毕=>压缩图片
/**
* @return {?}
*/
function () {
if (!this.croppedImage)
return;
this.dataURLtoFile(this.croppedImage, 'img_name');
};
/**
* @param {?} dataurl
* @param {?} filename
* @return {?}
*/
YzImgCropperComponent.prototype.dataURLtoFile = /**
* @param {?} dataurl
* @param {?} filename
* @return {?}
*/
function (dataurl, filename) {
/** @type {?} */
var arr = dataurl.split(',');
/** @type {?} */
var mime = arr[0].match(/:(.*?);/)[1];
/** @type {?} */
var bstr = atob(arr[1]);
/** @type {?} */
var n = bstr.length;
/** @type {?} */
var u8arr = new Uint8Array(n);
while (n--) {
u8arr[n] = bstr.charCodeAt(n);
}
/** @type {?} */
var file = new File([u8arr], filename, { type: mime });
this.compressImage(file);
};
// 图片压缩 https://www.npmjs.com/package/browser-image-compression
// 图片压缩 https://www.npmjs.com/package/browser-image-compression
/**
* @param {?} imageFile
* @return {?}
*/
YzImgCropperComponent.prototype.compressImage =
// 图片压缩 https://www.npmjs.com/package/browser-image-compression
/**
* @param {?} imageFile
* @return {?}
*/
function (imageFile) {
return __awaiter(this, void 0, void 0, function () {
var options, compressedFile, error_1;
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
options = {
maxSizeMB: this.data.maxSizeMB,
maxWidthOrHeight: this.data.maxWidthOrHeight,
fileType: "image/" + this.data.format,
useWebWorker: true,
onProgress: (/**
* @param {?} res
* @return {?}
*/
function (res) {
_this.percent = res;
})
};
_a.label = 1;
case 1:
_a.trys.push([1, 3, , 4]);
return [4 /*yield*/, imageCompression(imageFile, options)];
case 2:
compressedFile = _a.sent();
this.blobToBase64(compressedFile, (/**
* @param {?} dataurl
* @return {?}
*/
function (dataurl) {
_this.dialogRef.close(dataurl);
}));
this.cancelCropper();
return [3 /*break*/, 4];
case 3:
error_1 = _a.sent();
console.error('图片压缩失败!');
return [3 /*break*/, 4];
case 4: return [2 /*return*/];
}
});
});
};
/**
* @param {?} blob
* @param {?} callback
* @return {?}
*/
YzImgCropperComponent.prototype.blobToBase64 = /**
* @param {?} blob
* @param {?} callback
* @return {?}
*/
function (blob, callback) {
/** @type {?} */
var fileReader = new FileReader();
fileReader.onload = (/**
* @param {?} e
* @return {?}
*/
function (e) {
callback(e.target['result']);
});
fileReader.readAsDataURL(blob);
};
YzImgCropperComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-img-cropper',
template: "<yz-loading-mask *ngIf=\"percent>0 && percent<100\"></yz-loading-mask>\r\n<div class=\"yz-img-cropper\">\r\n\r\n <image-cropper\r\n *ngIf=\"!showImg\"\r\n [imageChangedEvent]=\"imageChangedEvent\"\r\n [imageBase64]=\"imageBase64\"\r\n [imageFile]=\"imageBlobFile\"\r\n [containWithinAspectRatio]=\"data.containWithinAspectRatio\"\r\n [maintainAspectRatio]=\"true\"\r\n [format]=\"data.format\"\r\n [onlyScaleDown]=\"true\"\r\n [aspectRatio]=\"data.aspectRatio\"\r\n [imageQuality]=\"data.imageQuality\"\r\n [transform]=\"transform\"\r\n [canvasRotation]=\"canvasRotation\"\r\n (imageCropped)=\"imageCropped($event)\"\r\n (loadImageFailed)=\"loadImageFailed()\"\r\n [ngStyle]=\"cropperStyle\"\r\n ></image-cropper>\r\n\r\n <!-- \u88C1\u526A\u540E\u7684\u56FE\u7247-->\r\n <div *ngIf=\"showImg\" class=\"yz-img-cropper-img\" [ngStyle]=\"cropperStyle\">\r\n <img [src]=\"croppedImage\"/>\r\n <b>\u50CF\u7D20\uFF1A{{imgInfo.width}}*{{imgInfo.height}}</b>\r\n </div>\r\n\r\n <div class=\"yz-img-cropper-btn\">\r\n <div Button [type]=\"'primary'\" *ngIf=\"!showImg\" (onClick)=\"showImg=true\">\u786E\u5B9A</div>\r\n <!--\u53D6\u6D88\u88C1\u526A-->\r\n <div Button *ngIf=\"!showImg\" (onClick)=\"cancelCropper()\">\u53D6\u6D88</div>\r\n\r\n <div Button [type]=\"'primary'\" *ngIf=\"showImg\" (onClick)=\"confirmCropper()\">\u5B8C\u6210</div>\r\n <!-- \u91CD\u65B0\u88C1\u526A-->\r\n <div Button *ngIf=\"showImg\" (onClick)=\"showImg=false\">\u53D6\u6D88</div>\r\n </div>\r\n\r\n</div>\r\n",
styles: ["::ng-deep .yz-img-cropper-panel{position:fixed!important;top:0;left:0;z-index:10;width:100%;height:100%;background:#fff;max-width:unset!important}::ng-deep .yz-img-cropper-panel .mat-dialog-container{padding:0;border-radius:0;transform:none!important}::ng-deep .yz-img-cropper-btn{margin:16px}::ng-deep .yz-img-cropper-btn .am-button{margin-bottom:16px}.yz-img-cropper-img{width:100%;background:#fff}.yz-img-cropper-img img{display:block;max-width:100%;margin:0 auto 16px}.yz-img-cropper-img b{font-size:16px;text-align:center;display:block}"]
}] }
];
/** @nocollapse */
YzImgCropperComponent.ctorParameters = function () { return [
{ type: dialog.MatDialogRef },
{ type: ngZorroAntdMobile.ToastService },
{ type: ComponentOption$2, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
]; };
return YzImgCropperComponent;
}());
if (false) {
/** @type {?} */
YzImgCropperComponent.prototype.cropperStyle;
/** @type {?} */
YzImgCropperComponent.prototype.imageChangedEvent;
/** @type {?} */
YzImgCropperComponent.prototype.imageBase64;
/** @type {?} */
YzImgCropperComponent.prototype.imageBlobFile;
/** @type {?} */
YzImgCropperComponent.prototype.croppedImage;
/** @type {?} */
YzImgCropperComponent.prototype.showImg;
/** @type {?} */
YzImgCropperComponent.prototype.imgInfo;
/** @type {?} */
YzImgCropperComponent.prototype.canvasRotation;
/** @type {?} */
YzImgCropperComponent.prototype.transform;
/** @type {?} */
YzImgCropperComponent.prototype.scale;
/** @type {?} */
YzImgCropperComponent.prototype.percent;
/** @type {?} */
YzImgCropperComponent.prototype.dialogRef;
/**
* @type {?}
* @private
*/
YzImgCropperComponent.prototype._toast;
/** @type {?} */
YzImgCropperComponent.prototype.data;
}
// 组件参数
var
// 组件参数
ComponentOption$2 = /** @class */ (function () {
function ComponentOption() {
// 上传的图片文件
this.fileType = 'FileEvent'; // 上传的图片文件类型 'FileEvent' | 'Base64' | 'BlobFile'
// 上传的图片文件类型 'FileEvent' | 'Base64' | 'BlobFile'
this.containWithinAspectRatio = false; // 设置为true时,将在图像周围添加填充以使其适合纵横比,默认false
// 设置为true时,将在图像周围添加填充以使其适合纵横比,默认false
this.format = 'png'; // 输出格式(png、jpeg、webp、bmp、ico)(并非所有浏览器都支持所有类型,始终支持png,其他为可选),默认png
// 输出格式(png、jpeg、webp、bmp、ico)(并非所有浏览器都支持所有类型,始终支持png,其他为可选),默认png
this.imageQuality = 92; // 这仅适用于使用jpeg或webp作为输出格式时。输入介于0和100之间的数字将决定输出图像的质量,默认92。
// 这仅适用于使用jpeg或webp作为输出格式时。输入介于0和100之间的数字将决定输出图像的质量,默认92。
this.aspectRatio = 1 / 1; // 图片宽度/高度比(例如,正方形为1/1,4/3,16/9…),默认1/1
// 图片宽度/高度比(例如,正方形为1/1,4/3,16/9…),默认1/1
this.maxSizeMB = 1; // 裁剪压缩后的图片大小的最大值,默认1MB
// 裁剪压缩后的图片大小的最大值,默认1MB
this.maxWidthOrHeight = 100; // 裁剪压缩后的图片的最大宽度或高度,默认100
}
return ComponentOption;
}());
if (false) {
/** @type {?} */
ComponentOption$2.prototype.imgFile;
/** @type {?} */
ComponentOption$2.prototype.fileType;
/** @type {?} */
ComponentOption$2.prototype.containWithinAspectRatio;
/** @type {?} */
ComponentOption$2.prototype.format;
/** @type {?} */
ComponentOption$2.prototype.imageQuality;
/** @type {?} */
ComponentOption$2.prototype.aspectRatio;
/** @type {?} */
ComponentOption$2.prototype.maxSizeMB;
/** @type {?} */
ComponentOption$2.prototype.maxWidthOrHeight;
}
/**
* @fileoverview added by tsickle
* Generated from: img-cropper/img-cropper.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var COMPONENTS$6 = [
YzImgCropperComponent
];
var ImgCropperModule = /** @class */ (function () {
function ImgCropperModule() {
}
ImgCropperModule.decorators = [
{ type: core.NgModule, args: [{
schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
declarations: __spread(COMPONENTS$6),
entryComponents: __spread(COMPONENTS$6),
imports: [SharedModule, LoadingModule],
exports: __spread(COMPONENTS$6)
},] }
];
return ImgCropperModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: location/location.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var LocationService = /** @class */ (function () {
function LocationService() {
// 定义一些常量
this.bdsUtils = {
x_PI: 3.14159265358979324 * 3000.0 / 180.0,
PI: 3.1415926535897932384626,
a: 6378245.0,
ee: 0.00669342162296594323,
};
}
/**
* 获取地址前需要将gcj02 、bd09 转换为wgs84
* @param option
*/
/**
* 获取地址前需要将gcj02 、bd09 转换为wgs84
* @param {?} option
* @return {?}
*/
LocationService.prototype.getLocation = /**
* 获取地址前需要将gcj02 、bd09 转换为wgs84
* @param {?} option
* @return {?}
*/
function (option) {
if (!option.longitude || !option.longitude)
return;
if (option.onOk) {
/** @type {?} */
var xy = void 0;
switch (option.type) {
case TYPE_ENUM.GCJ02:
xy = this.gcj02towgs84(option.longitude, option.latitude);
break;
case TYPE_ENUM.BD09:
xy = this.bd09towgs84(option.longitude, option.latitude);
break;
case TYPE_ENUM.WGS84:
xy = [option.longitude, option.latitude];
break;
}
this.queryAddressInfo(xy[0], xy[1]).then((/**
* @param {?} data
* @return {?}
*/
function (data) {
option.onOk(data);
})).catch((/**
* @return {?}
*/
function () {
option.onOk(null);
}));
}
};
/**
* 获取地址信息
* @param lon 坐标的x值
* @param lat 坐标的y值
*/
/**
* 获取地址信息
* @param {?} lon 坐标的x值
* @param {?} lat 坐标的y值
* @return {?}
*/
LocationService.prototype.queryAddressInfo = /**
* 获取地址信息
* @param {?} lon 坐标的x值
* @param {?} lat 坐标的y值
* @return {?}
*/
function (lon, lat) {
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
/** @type {?} */
var param = {
lon: lon,
lat: lat,
ver: 1 // 接口版本
};
/** @type {?} */
var url = '//api.tianditu.gov.cn' + '/geocoder?postStr=' + JSON.stringify(param) + '&type=geocode&tk=40b42d3bf171b3e50dd21cd002efaa23';
/** @type {?} */
var xmlHttp = new XMLHttpRequest();
xmlHttp.open('GET', url);
xmlHttp.withCredentials = false;
xmlHttp.send();
xmlHttp.onreadystatechange = (/**
* @return {?}
*/
function () {
if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
/** @type {?} */
var res = JSON.parse(xmlHttp.responseText);
if (res.status == '0') {
resolve(res.result);
}
else {
reject(null);
console.error('错误1' + res.msg);
}
}
});
xmlHttp.onerror = (/**
* @param {?} error
* @return {?}
*/
function (error) {
console.error("错误2" + error);
reject(null);
});
}));
};
/**
* 判断是否在国内,不在国内则不做偏移
* @param lng
* @param lat
*/
/**
* 判断是否在国内,不在国内则不做偏移
* @param {?} lng
* @param {?} lat
* @return {?}
*/
LocationService.prototype.outOfChina = /**
* 判断是否在国内,不在国内则不做偏移
* @param {?} lng
* @param {?} lat
* @return {?}
*/
function (lng, lat) {
return (lng < 72.004 || lng > 137.8347) || ((lat < 0.8293 || lat > 55.8271) || false);
};
/**
* 纬度转换
* @param lng
* @param lat
*/
/**
* 纬度转换
* @param {?} lng
* @param {?} lat
* @return {?}
*/
LocationService.prototype.transformlng = /**
* 纬度转换
* @param {?} lng
* @param {?} lat
* @return {?}
*/
function (lng, lat) {
/** @type {?} */
var ret = 300.0 + lng + 2.0 * lat + 0.1 * lng * lng + 0.1 * lng * lat + 0.1 * Math.sqrt(Math.abs(lng));
ret += (20.0 * Math.sin(6.0 * lng * this.bdsUtils.PI) + 20.0 * Math.sin(2.0 * lng * this.bdsUtils.PI)) * 2.0 / 3.0;
ret += (20.0 * Math.sin(lng * this.bdsUtils.PI) + 40.0 * Math.sin(lng / 3.0 * this.bdsUtils.PI)) * 2.0 / 3.0;
ret += (150.0 * Math.sin(lng / 12.0 * this.bdsUtils.PI) + 300.0 * Math.sin(lng / 30.0 * this.bdsUtils.PI)) * 2.0 / 3.0;
return ret;
};
/**
* 经度转换
* @param lng
* @param lat
*/
/**
* 经度转换
* @param {?} lng
* @param {?} lat
* @return {?}
*/
LocationService.prototype.transformlat = /**
* 经度转换
* @param {?} lng
* @param {?} lat
* @return {?}
*/
function (lng, lat) {
/** @type {?} */
var ret = -100.0 + 2.0 * lng + 3.0 * lat + 0.2 * lat * lat + 0.1 * lng * lat + 0.2 * Math.sqrt(Math.abs(lng));
ret += (20.0 * Math.sin(6.0 * lng * this.bdsUtils.PI) + 20.0 * Math.sin(2.0 * lng * this.bdsUtils.PI)) * 2.0 / 3.0;
ret += (20.0 * Math.sin(lat * this.bdsUtils.PI) + 40.0 * Math.sin(lat / 3.0 * this.bdsUtils.PI)) * 2.0 / 3.0;
ret += (160.0 * Math.sin(lat / 12.0 * this.bdsUtils.PI) + 320 * Math.sin(lat * this.bdsUtils.PI / 30.0)) * 2.0 / 3.0;
return ret;
};
/**
* 百度坐标系 (BD-09) 与 火星坐标系 (GCJ-02)的转换 / 即百度转谷歌、高德
* @param bd_lon
* @param bd_lat
*/
/**
* 百度坐标系 (BD-09) 与 火星坐标系 (GCJ-02)的转换 / 即百度转谷歌、高德
* @param {?} bd_lon
* @param {?} bd_lat
* @return {?}
*/
LocationService.prototype.bd09togcj02 = /**
* 百度坐标系 (BD-09) 与 火星坐标系 (GCJ-02)的转换 / 即百度转谷歌、高德
* @param {?} bd_lon
* @param {?} bd_lat
* @return {?}
*/
function (bd_lon, bd_lat) {
/** @type {?} */
var x = bd_lon - 0.0065;
/** @type {?} */
var y = bd_lat - 0.006;
/** @type {?} */
var z = Math.sqrt(x * x + y * y) - 0.00002 * Math.sin(y * this.bdsUtils.x_PI);
/** @type {?} */
var theta = Math.atan2(y, x) - 0.000003 * Math.cos(x * this.bdsUtils.x_PI);
/** @type {?} */
var gg_lng = z * Math.cos(theta);
/** @type {?} */
var gg_lat = z * Math.sin(theta);
return [gg_lng, gg_lat];
};
/**
* 火星坐标系 (GCJ-02) 与百度坐标系 (BD-09) 的转换 / 即谷歌、高德 转 百度
* @param lng
* @param lat
*/
/**
* 火星坐标系 (GCJ-02) 与百度坐标系 (BD-09) 的转换 / 即谷歌、高德 转 百度
* @param {?} lng
* @param {?} lat
* @return {?}
*/
LocationService.prototype.gcj02tobd09 = /**
* 火星坐标系 (GCJ-02) 与百度坐标系 (BD-09) 的转换 / 即谷歌、高德 转 百度
* @param {?} lng
* @param {?} lat
* @return {?}
*/
function (lng, lat) {
/** @type {?} */
var z = Math.sqrt(lng * lng + lat * lat) + 0.00002 * Math.sin(lat * this.bdsUtils.x_PI);
/** @type {?} */
var theta = Math.atan2(lat, lng) + 0.000003 * Math.cos(lng * this.bdsUtils.x_PI);
/** @type {?} */
var bd_lng = z * Math.cos(theta) + 0.0065;
/** @type {?} */
var bd_lat = z * Math.sin(theta) + 0.006;
return [bd_lng, bd_lat];
};
/**
* WGS84坐标系转火星坐标系GCj02 / 即WGS84 转谷歌、高德
* @param lng
* @param lat
*/
/**
* WGS84坐标系转火星坐标系GCj02 / 即WGS84 转谷歌、高德
* @param {?} lng
* @param {?} lat
* @return {?}
*/
LocationService.prototype.wgs84togcj02 = /**
* WGS84坐标系转火星坐标系GCj02 / 即WGS84 转谷歌、高德
* @param {?} lng
* @param {?} lat
* @return {?}
*/
function (lng, lat) {
if (this.outOfChina(lng, lat)) {
return [lng, lat];
}
else {
/** @type {?} */
var dlat = this.transformlat(lng - 105.0, lat - 35.0);
/** @type {?} */
var dlng = this.transformlng(lng - 105.0, lat - 35.0);
/** @type {?} */
var radlat = lat / 180.0 * this.bdsUtils.PI;
/** @type {?} */
var magic = Math.sin(radlat);
magic = 1 - this.bdsUtils.ee * magic * magic;
/** @type {?} */
var sqrtmagic = Math.sqrt(magic);
dlat = (dlat * 180.0) / ((this.bdsUtils.a * (1 - this.bdsUtils.ee)) / (magic * sqrtmagic) * this.bdsUtils.PI);
dlng = (dlng * 180.0) / (this.bdsUtils.a / sqrtmagic * Math.cos(radlat) * this.bdsUtils.PI);
/** @type {?} */
var mglat = lat + dlat;
/** @type {?} */
var mglng = lng + dlng;
return [mglng, mglat];
}
};
/**
* GCJ02(火星坐标系) 转换为 WGS84 / 即谷歌高德转WGS84
* @param lng
* @param lat
*/
/**
* GCJ02(火星坐标系) 转换为 WGS84 / 即谷歌高德转WGS84
* @param {?} lng
* @param {?} lat
* @return {?}
*/
LocationService.prototype.gcj02towgs84 = /**
* GCJ02(火星坐标系) 转换为 WGS84 / 即谷歌高德转WGS84
* @param {?} lng
* @param {?} lat
* @return {?}
*/
function (lng, lat) {
if (this.outOfChina(lng, lat)) {
return [lng, lat];
}
else {
/** @type {?} */
var dlat = this.transformlat(lng - 105.0, lat - 35.0);
/** @type {?} */
var dlng = this.transformlng(lng - 105.0, lat - 35.0);
/** @type {?} */
var radlat = lat / 180.0 * this.bdsUtils.PI;
/** @type {?} */
var magic = Math.sin(radlat);
magic = 1 - this.bdsUtils.ee * magic * magic;
/** @type {?} */
var sqrtmagic = Math.sqrt(magic);
dlat = (dlat * 180.0) / ((this.bdsUtils.a * (1 - this.bdsUtils.ee)) / (magic * sqrtmagic) * this.bdsUtils.PI);
dlng = (dlng * 180.0) / (this.bdsUtils.a / sqrtmagic * Math.cos(radlat) * this.bdsUtils.PI);
/** @type {?} */
var mglat = lat + dlat;
/** @type {?} */
var mglng = lng + dlng;
return [lng * 2 - mglng, lat * 2 - mglat];
}
};
/**
* 百度坐标系转wgs84坐标系
* @param lng
* @param lat
*/
/**
* 百度坐标系转wgs84坐标系
* @param {?} lng
* @param {?} lat
* @return {?}
*/
LocationService.prototype.bd09towgs84 = /**
* 百度坐标系转wgs84坐标系
* @param {?} lng
* @param {?} lat
* @return {?}
*/
function (lng, lat) {
// 百度坐标系先转为火星坐标系
/** @type {?} */
var gcj02 = this.bd09togcj02(lng, lat);
// 火星坐标系转wgs84坐标系
return this.gcj02towgs84(gcj02[0], gcj02[1]);
};
/**
* wgs84坐标系转百度坐标系
* @param lng
* @param lat
*/
/**
* wgs84坐标系转百度坐标系
* @param {?} lng
* @param {?} lat
* @return {?}
*/
LocationService.prototype.wgs84tobd09 = /**
* wgs84坐标系转百度坐标系
* @param {?} lng
* @param {?} lat
* @return {?}
*/
function (lng, lat) {
// wgs84先转为火星坐标系
/** @type {?} */
var gcj02 = this.wgs84togcj02(lng, lat);
// 火星坐标系转百度坐标系
return this.gcj02tobd09(gcj02[0], gcj02[1]);
};
LocationService.decorators = [
{ type: core.Injectable }
];
/** @nocollapse */
LocationService.ctorParameters = function () { return []; };
return LocationService;
}());
if (false) {
/** @type {?} */
LocationService.prototype.bdsUtils;
}
/** @enum {string} */
var TYPE_ENUM = {
GCJ02: "gcj02",
BD09: "bd09",
WGS84: "wgs84" // WGS84坐标系
,
};
/**
* @fileoverview added by tsickle
* Generated from: location/location.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var LocationModule = /** @class */ (function () {
function LocationModule() {
}
LocationModule.decorators = [
{ type: core.NgModule, args: [{
schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
providers: [LocationService],
declarations: [],
entryComponents: [],
imports: [],
exports: []
},] }
];
return LocationModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: tree-picker/yz-tree-picker/yz-tree-picker.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzTreePickerService = /** @class */ (function () {
function YzTreePickerService(dialog) {
this.dialog = dialog;
}
/**
* 打开选择器
* @param option
*/
/**
* 打开选择器
* @param {?} option
* @return {?}
*/
YzTreePickerService.prototype.openTreePicker = /**
* 打开选择器
* @param {?} option
* @return {?}
*/
function (option) {
/** @type {?} */
var dialogRef = this.dialog.open(YzTreePickerComponent, {
panelClass: 'tree-picker-panel',
backdropClass: 'tree-picker-panel-bg',
autoFocus: false,
// 对话框应集中在打开的地方,使搜索框不聚焦
closeOnNavigation: true,
// 当用户在浏览器历史记录中向后或向前导航时,对话框是否应关闭。
hasBackdrop: true,
data: {
titleName: option.titleName == undefined ? null : option.titleName,
// 选择器标题
value: option.value == undefined ? null : option.value,
// 选择器回显值
tree: option.tree,
// 数据源
closeBtnText: option.closeBtnText == undefined ? null : option.closeBtnText,
// 关闭按钮文本
pickerClassName: option.pickerClassName == undefined ? null : option.pickerClassName // 面板自定义class
}
});
dialogRef.afterClosed().subscribe((/**
* @param {?} result
* @return {?}
*/
function (result) {
if (option.onOk) {
option.onOk(result ? result : []);
}
}));
};
YzTreePickerService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
YzTreePickerService.ctorParameters = function () { return [
{ type: dialog.MatDialog }
]; };
/** @nocollapse */ YzTreePickerService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function YzTreePickerService_Factory() { return new YzTreePickerService(core.ɵɵinject(dialog.MatDialog)); }, token: YzTreePickerService, providedIn: "root" });
return YzTreePickerService;
}());
if (false) {
/** @type {?} */
YzTreePickerService.prototype.dialog;
}
var listOption = /** @class */ (function () {
function listOption() {
}
return listOption;
}());
if (false) {
/** @type {?} */
listOption.prototype.title;
/** @type {?} */
listOption.prototype.value;
/** @type {?} */
listOption.prototype.children;
}
// 组件参数
var
// 组件参数
treePickerParams = /** @class */ (function () {
function treePickerParams() {
this.tree = []; // 数据源
// 数据源
this.titleName = null; // 选择器标题
// 选择器标题
this.value = null; // 选择器回显值
// 选择器回显值
this.closeBtnText = null; // 关闭按钮文本
// 关闭按钮文本
this.pickerClassName = null; // 面板自定义class
}
return treePickerParams;
}());
if (false) {
/** @type {?} */
treePickerParams.prototype.tree;
/** @type {?} */
treePickerParams.prototype.titleName;
/** @type {?} */
treePickerParams.prototype.value;
/** @type {?} */
treePickerParams.prototype.closeBtnText;
/** @type {?} */
treePickerParams.prototype.pickerClassName;
}
/**
* @fileoverview added by tsickle
* Generated from: tree-picker/yz-tree-picker/yz-tree-picker.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzTreePickerComponent = /** @class */ (function () {
function YzTreePickerComponent(dialogRef, data) {
this.dialogRef = dialogRef;
this.data = data;
this.titleName = null;
this.closeBtnText = null;
this.pickerClassName = null;
// 部门/班级
this.deptNode = [];
this.deptList = [];
this.resultList = [];
this.searchValue = null;
this.searchResult = [];
}
/**
* @return {?}
*/
YzTreePickerComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
var _this = this;
this.titleName = this.data.titleName;
this.deptNode = this.data.tree;
this.closeBtnText = this.data.closeBtnText;
this.pickerClassName = this.data.pickerClassName;
this.blTree(this.deptNode, null);
this.setDefultValue();
this.blTree(this.deptNode, null);
this.dialogRef.backdropClick().subscribe((/**
* @return {?}
*/
function () {
document.getElementsByClassName('tree-picker-panel-bg')[0].remove();
_this.closeHandle();
}));
};
// 关闭
// 关闭
/**
* @return {?}
*/
YzTreePickerComponent.prototype.closeHandle =
// 关闭
/**
* @return {?}
*/
function () {
this.dialogRef.close(this.resultList);
};
// 重置
// 重置
/**
* @return {?}
*/
YzTreePickerComponent.prototype.resetHandle =
// 重置
/**
* @return {?}
*/
function () {
this.resultList = [];
this.blTree(this.deptNode, null);
this.deptList = this.deptNode.length > 0 ? this.deptNode : [];
this.cancelSearchHandle();
};
// 回显
// 回显
/**
* @return {?}
*/
YzTreePickerComponent.prototype.setDefultValue =
// 回显
/**
* @return {?}
*/
function () {
if (this.data.value) {
this.resultList = this.familyTree(this.deptNode, this.data.value).reverse();
if (this.resultList.length == 0) {
console.error('传入参数中回显数据字段(value)值不存在于数据源中!!!');
return;
}
if (this.resultList[this.resultList.length - 1].children && this.resultList[this.resultList.length - 1].children.length > 0) {
this.deptList = this.resultList[this.resultList.length - 1].children;
}
else if (this.resultList.length >= 2) {
this.deptList = this.resultList[this.resultList.length - 2].children;
}
else {
this.deptList = this.deptNode.length > 0 ? this.deptNode : [];
}
}
else {
this.deptList = this.deptNode.length > 0 ? this.deptNode : [];
}
};
// 遍历树节点,设置父id
// 遍历树节点,设置父id
/**
* @param {?} data
* @param {?} id
* @return {?}
*/
YzTreePickerComponent.prototype.blTree =
// 遍历树节点,设置父id
/**
* @param {?} data
* @param {?} id
* @return {?}
*/
function (data, id) {
var _this = this;
if (data && data.length && data.length > 0) {
data.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
item['pid'] = id;
item['selected'] = _this.resultList.some((/**
* @param {?} item2
* @return {?}
*/
function (item2) { return item2.value == item.value; }));
_this.blTree(item.children, item.value);
}));
}
};
// 递归获取子节点所有父节点
// 递归获取子节点所有父节点
/**
* @param {?} arr1
* @param {?} id
* @return {?}
*/
YzTreePickerComponent.prototype.familyTree =
// 递归获取子节点所有父节点
/**
* @param {?} arr1
* @param {?} id
* @return {?}
*/
function (arr1, id) {
/** @type {?} */
var temp = [];
/** @type {?} */
var forFn = (/**
* @param {?} arr
* @param {?} id
* @return {?}
*/
function (arr, id) {
for (var i = 0; i < arr.length; i++) {
/** @type {?} */
var item = arr[i];
if (item.value === id) {
temp.push(item);
forFn(arr1, item.pid);
break;
}
else {
if (item.children) {
forFn(item.children, id);
}
}
}
});
forFn(arr1, id);
return temp;
};
// 搜索
// 搜索
/**
* @return {?}
*/
YzTreePickerComponent.prototype.searchHandle =
// 搜索
/**
* @return {?}
*/
function () {
var _this = this;
this.searchResult = [];
if (this.searchValue) {
this.searchResult = this.deptList.filter((/**
* @param {?} item
* @return {?}
*/
function (item) { return item.title.indexOf(_this.searchValue) != -1; }));
}
};
// 取消搜索
// 取消搜索
/**
* @return {?}
*/
YzTreePickerComponent.prototype.cancelSearchHandle =
// 取消搜索
/**
* @return {?}
*/
function () {
this.searchResult = [];
this.searchValue = null;
};
// 选择部门
// 选择部门
/**
* @param {?} dept
* @return {?}
*/
YzTreePickerComponent.prototype.selectDeptHandle =
// 选择部门
/**
* @param {?} dept
* @return {?}
*/
function (dept) {
var _this = this;
this.cancelSearchHandle();
/** @type {?} */
var hasThis = this.resultList.some((/**
* @param {?} item
* @return {?}
*/
function (item) { return item.value == dept.value; }));
if (!hasThis) {
if (this.resultList.length > 0) {
/** @type {?} */
var hasLastItem = this.deptList.some((/**
* @param {?} item
* @return {?}
*/
function (item) { return item.value == _this.resultList[_this.resultList.length - 1].value; }));
if (hasLastItem) { // 在最后的叶子节点上更换部门
this.resultList.splice(this.resultList.length - 1, 1);
}
}
this.resultList.push(dept);
this.deptList.forEach((/**
* @param {?} item
* @return {?}
*/
function (item) {
item['selected'] = item.value == dept.value;
}));
if (dept.children && dept.children.length > 0) {
this.deptList = dept.children;
}
}
this.setScrollTop();
};
// 在结果处更改部门
// 在结果处更改部门
/**
* @param {?} item
* @param {?} index
* @return {?}
*/
YzTreePickerComponent.prototype.selectResultDeptHandle =
// 在结果处更改部门
/**
* @param {?} item
* @param {?} index
* @return {?}
*/
function (item, index) {
if (index != this.resultList.length - 1) {
this.deptList = item.children;
this.resultList.length = index + 1;
this.blTree(this.deptList, item.value);
}
this.setScrollTop();
};
// 设置数据源列表滚动条置顶
// 设置数据源列表滚动条置顶
/**
* @return {?}
*/
YzTreePickerComponent.prototype.setScrollTop =
// 设置数据源列表滚动条置顶
/**
* @return {?}
*/
function () {
setTimeout((/**
* @return {?}
*/
function () {
document.getElementsByClassName('tree-picker-comp')[0].getElementsByTagName('ul')[0].scrollTop = 0;
}), 0);
};
YzTreePickerComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-tree-picker',
template: "<div class=\"tree-picker-comp\" [ngClass]=\"pickerClassName\">\n <a class=\"tree-picker-reset-btn\" (click)=\"resetHandle()\">\u91CD\u7F6E</a>\n <h2>\u8BF7\u9009\u62E9\n <ng-container *ngIf=\"titleName\">{{titleName}}</ng-container>\n </h2>\n <Icon *ngIf=\"!closeBtnText\"\n class=\"tree-picker-close-btn\"\n [type]=\"'cross'\"\n [size]=\"'md'\"\n (click)=\"closeHandle()\"\n ></Icon>\n <a *ngIf=\"closeBtnText\" class=\"tree-picker-close-btn\" (click)=\"closeHandle()\">{{closeBtnText}}</a>\n <div class=\"tree-picker-step\" *ngIf=\"resultList.length>0\">\n <Steps [size]=\"'small'\">\n <Step *ngFor=\"let item of resultList;let i=index;\"\n [title]=\"item?.title\"\n (click)=\"selectResultDeptHandle(item,i)\"></Step>\n </Steps>\n </div>\n\n <div class=\"tree-picker-search\">\n <SearchBar [placeholder]=\"'\u641C\u7D22\u2026\u2026'\"\n [(ngModel)]=\"searchValue\"\n (ngModelChange)=\"searchHandle()\"\n (onCancel)=\"cancelSearchHandle()\"></SearchBar>\n </div>\n\n <ul *ngIf=\"!searchValue\"\n [ngStyle]=\"{'height':resultList.length>5?'calc(100% - 364px)':'calc(100% - '+(48*resultList.length+124)+'px)'}\">\n <li *ngFor=\"let item of deptList\"\n (click)=\"selectDeptHandle(item)\"\n [class.selected]=\"item.selected\">\n <span>{{item?.title || 'XX'}}</span>\n <Icon *ngIf=\"item.children && item.children.length>0\" [type]=\"'right'\"></Icon>\n <Icon *ngIf=\"item.selected\" [type]=\"'check'\"></Icon>\n </li>\n <li *ngIf=\"deptList.length==0\" style=\"text-align: center;\">\u6682\u65E0\u6570\u636E\u2026\u2026</li>\n </ul>\n\n <ul *ngIf=\"searchValue\"\n [ngStyle]=\"{'height':resultList.length>5?'calc(100% - 364px)':'calc(100% - '+(48*resultList.length+124)+'px)'}\">\n <li *ngFor=\"let item of searchResult\"\n (click)=\"selectDeptHandle(item)\"\n [class.selected]=\"item.selected\">\n <span>{{item?.title || 'XX'}}</span>\n <Icon *ngIf=\"item.children && item.children.length>0\" [type]=\"'right'\"></Icon>\n <Icon *ngIf=\"item.selected\" [type]=\"'check'\"></Icon>\n </li>\n\n <li *ngIf=\"searchResult.length==0\" style=\"text-align: center;color: red\">\u65E0\u641C\u7D22\u7ED3\u679C\u2026\u2026</li>\n </ul>\n</div>\n\n",
styles: [".textOverflow{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}::ng-deep .tree-picker-panel-bg{background:rgba(0,0,0,.4);height:100%;position:fixed;width:100%;left:0;top:0;z-index:200}::ng-deep .tree-picker-panel{position:fixed!important;bottom:0;left:0;z-index:200;width:100%;height:80%;max-width:unset!important}::ng-deep .tree-picker-panel .mat-dialog-container{padding:0;border-radius:0;transform:none!important}.tree-picker-comp{background:#fff;width:100%;height:100%;overflow:hidden}.tree-picker-comp h2{font-size:16px;text-align:center;font-weight:700;padding:10px 42px;text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.tree-picker-comp ul{margin:0;overflow-y:auto}.tree-picker-comp ul li{line-height:44px;overflow:hidden;padding:0 16px;color:#333}.tree-picker-comp ul li:active{background:#eaeaea}.tree-picker-comp ul li span{float:left;max-width:calc(100% - 70px);text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.tree-picker-comp ul li Icon{float:right;margin:11px 0 0 10px}.tree-picker-comp ul li.selected{color:#108ee9}.tree-picker-comp ul li.selected Icon ::ng-deep .am-icon-check{color:#108ee9}.tree-picker-close-btn,.tree-picker-reset-btn{position:absolute;right:0;top:0;padding:10px;cursor:pointer;color:#333;background:#fff}.tree-picker-close-btn:active,.tree-picker-reset-btn:active{color:#108ee9}.tree-picker-reset-btn{right:auto;left:0;line-height:24px;font-size:14px;color:#108ee9}.tree-picker-reset-btn:active{opacity:.7}::ng-deep .tree-picker-step{border-bottom:1px solid #ddd;padding:12px 16px 0;max-height:253px;overflow-y:auto}::ng-deep .tree-picker-step .am-steps-small .am-steps-item-title{font-size:14px;max-height:36px;display:-webkit-box;text-overflow:ellipsis;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}::ng-deep .tree-picker-step .am-steps-small .am-steps-icon{display:none}::ng-deep .tree-picker-step .am-steps-small .am-steps-item-icon{width:8px;height:8px;background:#108ee9!important;margin:5px 10px 5px 6px}::ng-deep .tree-picker-step .am-steps-small .am-steps-item-tail:after{background:#108ee9!important}::ng-deep .tree-picker-search{padding:4px 8px 0}::ng-deep .tree-picker-search .am-search{background:#fff;height:55px}::ng-deep .tree-picker-search .am-search-input{border:1px solid #ddd;height:38px}::ng-deep .tree-picker-search .am-search-input input[type=search]{height:36px;line-height:36px}::ng-deep .tree-picker-search .am-search-input .am-search-synthetic-ph{height:36px;line-height:36px;padding-left:12px!important}::ng-deep .tree-picker-search .am-search-input .am-search-clear{padding:11px 7px}::ng-deep .tree-picker-search .am-search-cancel{height:38px;line-height:38px}"]
}] }
];
/** @nocollapse */
YzTreePickerComponent.ctorParameters = function () { return [
{ type: dialog.MatDialogRef },
{ type: treePickerParams, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
]; };
return YzTreePickerComponent;
}());
if (false) {
/** @type {?} */
YzTreePickerComponent.prototype.titleName;
/** @type {?} */
YzTreePickerComponent.prototype.closeBtnText;
/** @type {?} */
YzTreePickerComponent.prototype.pickerClassName;
/** @type {?} */
YzTreePickerComponent.prototype.deptNode;
/** @type {?} */
YzTreePickerComponent.prototype.deptList;
/** @type {?} */
YzTreePickerComponent.prototype.resultList;
/** @type {?} */
YzTreePickerComponent.prototype.searchValue;
/** @type {?} */
YzTreePickerComponent.prototype.searchResult;
/** @type {?} */
YzTreePickerComponent.prototype.dialogRef;
/** @type {?} */
YzTreePickerComponent.prototype.data;
}
/**
* @fileoverview added by tsickle
* Generated from: tree-picker/tree-picker.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var COMPONENTS$7 = [
YzTreePickerComponent
];
var TreePickerModule = /** @class */ (function () {
function TreePickerModule() {
}
TreePickerModule.decorators = [
{ type: core.NgModule, args: [{
schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
declarations: __spread(COMPONENTS$7),
entryComponents: __spread(COMPONENTS$7),
imports: [SharedModule],
exports: __spread(COMPONENTS$7)
},] }
];
return TreePickerModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: client/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: info/info.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var InfoService = /** @class */ (function () {
function InfoService(http, baseclient) {
this.http = http;
this.baseclient = baseclient;
this.systemInfoOB = new rxjs.BehaviorSubject({});
}
/**
* @return {?}
*/
InfoService.prototype.getSystemInfo = /**
* @return {?}
*/
function () {
return this.systemInfoOB.asObservable();
};
/**
* @param {?} systemInfo
* @return {?}
*/
InfoService.prototype.setSystemInfo = /**
* @param {?} systemInfo
* @return {?}
*/
function (systemInfo) {
this.systemInfoOB.next(systemInfo);
};
/**
* @return {?}
*/
InfoService.prototype.initSystemInfo = /**
* @return {?}
*/
function () {
var _this = this;
return new Promise((/**
* @param {?} resolve
* @return {?}
*/
function (resolve) {
_this.http.get(_this.baseclient.gateway + "/app-manager/project/info").subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
_this.setSystemInfo((/** @type {?} */ (response.data)));
resolve();
}));
}));
};
InfoService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
InfoService.ctorParameters = function () { return [
{ type: http.HttpClient },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ InfoService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function InfoService_Factory() { return new InfoService(core.ɵɵinject(http.HttpClient), core.ɵɵinject(BASE_CLIENT)); }, token: InfoService, providedIn: "root" });
return InfoService;
}());
if (false) {
/**
* @type {?}
* @private
*/
InfoService.prototype.systemInfoOB;
/**
* @type {?}
* @private
*/
InfoService.prototype.http;
/**
* @type {?}
* @private
*/
InfoService.prototype.baseclient;
}
/**
* @fileoverview added by tsickle
* Generated from: layout/yz-layout/yz-layout.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzLayoutComponent = /** @class */ (function () {
function YzLayoutComponent(infoService) {
var _this = this;
this.infoService = infoService;
this.color = '';
this.buttons = [
{ icon: 'back', title: '返回', click: (/**
* @return {?}
*/
function () { return _this.goBack(); }) },
{ icon: 'home', title: '主页', click: (/**
* @return {?}
*/
function () { return _this.goHome(); }) },
];
}
Object.defineProperty(YzLayoutComponent.prototype, "title", {
get: /**
* @return {?}
*/
function () {
return document.title;
},
enumerable: true,
configurable: true
});
/**
* @return {?}
*/
YzLayoutComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
var _this = this;
this.infoService.getSystemInfo().subscribe((/**
* @param {?} res
* @return {?}
*/
function (res) {
if (res.clientEnd && res.clientEnd.color) {
_this.color = res.clientEnd.color;
}
}));
};
/**
* @return {?}
*/
YzLayoutComponent.prototype.goBack = /**
* @return {?}
*/
function () {
window.history.back();
};
/**
* @return {?}
*/
YzLayoutComponent.prototype.goHome = /**
* @return {?}
*/
function () {
window.location.href = '/backstage/wechat/mp/main';
};
YzLayoutComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-layout',
template: "<!-- \u9876\u90E8\u5BFC\u822A\u6761 -->\r\n<div class=\"yz-navbar\">\r\n <Navbar [icon]=\"iconLeft\" [rightContent]=\"rightContent\" [ngStyle]=\"{'background-color':color}\"\r\n (onLeftClick)=\"goBack()\">\r\n {{ title }}\r\n </Navbar>\r\n <ng-template #iconLeft>\r\n <div class=\"yz-navbar-icon\">\r\n <i class=\"anticon anticon-left\" nz-icon=\"\" type=\"left\"><svg viewBox=\"64 64 896 896\" fill=\"currentColor\" width=\"1em\" height=\"1em\" data-icon=\"left\" aria-hidden=\"true\"><path d=\"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z\"></path></svg></i>\r\n </div>\r\n </ng-template>\r\n <ng-template #rightContent>\r\n </ng-template>\r\n</div>\r\n<!-- \u9875\u9762\u4E3B\u9898\u90E8\u5206 -->\r\n<div class=\"yz-main-content\">\r\n <div class=\"yz-main-content-body\">\r\n <router-outlet></router-outlet>\r\n </div>\r\n</div>\r\n",
styles: [".yz-main-content{position:absolute;top:45px;right:0;bottom:0;left:0;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:1;background-color:#f7f7f7}.yz-main-content-body{height:100%}.yz-navbar-icon{font-size:14px}.yz-navbar-icon svg path,.yz-navbar-icon svg rect{fill:#fff}"]
}] }
];
/** @nocollapse */
YzLayoutComponent.ctorParameters = function () { return [
{ type: InfoService }
]; };
return YzLayoutComponent;
}());
if (false) {
/** @type {?} */
YzLayoutComponent.prototype.color;
/** @type {?} */
YzLayoutComponent.prototype.buttons;
/**
* @type {?}
* @private
*/
YzLayoutComponent.prototype.infoService;
}
/**
* @fileoverview added by tsickle
* Generated from: layout/yz-default-index/yz-default-index.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzDefaultIndexComponent = /** @class */ (function () {
function YzDefaultIndexComponent(userService, activatedRoute, infoService, router) {
this.userService = userService;
this.activatedRoute = activatedRoute;
this.infoService = infoService;
this.router = router;
this.logoUrl = '';
this.title = '';
this.menus = [];
this.color = '';
this.colorDodge = '';
}
/**
* @return {?}
*/
YzDefaultIndexComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var menus = this.userService.get().menu || [];
this.activatedRoute.data.subscribe((/**
* @param {?} res
* @return {?}
*/
function (res) {
/** @type {?} */
var systemCode = res.systemCode;
/** @type {?} */
var mobileApp = _this.userService.findMenuBySystemCode(menus, 'mobileApp');
/** @type {?} */
var app = _this.userService.findMenuBySystemCode(mobileApp.children, systemCode);
if (app) {
_this.title = app.text;
/** @type {?} */
var groups = app.children || [];
_this.menus = groups.flatMap((/**
* @param {?} group
* @return {?}
*/
function (group) { return group.children || []; }));
}
// 用传过来的标题覆盖
if (res.title) {
_this.title = res.title;
}
}));
this.infoService.getSystemInfo().subscribe((/**
* @param {?} res
* @return {?}
*/
function (res) {
_this.logoUrl = res.maxLogoUrl;
if (res.clientEnd && res.clientEnd.color) {
_this.color = res.clientEnd.color;
_this.colorDodge = _this.colorRgba(_this.color, 0.71);
}
}));
};
/**
* @param {?} item
* @return {?}
*/
YzDefaultIndexComponent.prototype.routerJump = /**
* @param {?} item
* @return {?}
*/
function (item) {
if (item.link) {
this.router.navigateByUrl(item.link);
}
else if (item.appUrl) {
window.location.href = item.appUrl;
}
};
/**
* 十六进制颜色值减淡
* @param value 颜色值
* @param transparency 透明度<=1
*/
/**
* 十六进制颜色值减淡
* @param {?} value 颜色值
* @param {?} transparency 透明度<=1
* @return {?}
*/
YzDefaultIndexComponent.prototype.colorRgba = /**
* 十六进制颜色值减淡
* @param {?} value 颜色值
* @param {?} transparency 透明度<=1
* @return {?}
*/
function (value, transparency) {
// 16进制颜色值的正则
/** @type {?} */
var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
// 把颜色值变成小写
/** @type {?} */
var color = value.toLowerCase();
if (reg.test(color)) {
// 如果只有三位的值,需变成六位,如:#fff => #ffffff
if (color.length === 4) {
/** @type {?} */
var colorNew = "#";
for (var i = 1; i < 4; i += 1) {
colorNew += color.slice(i, i + 1).concat(color.slice(i, i + 1));
}
color = colorNew;
}
// 处理六位的颜色值,转为RGB
/** @type {?} */
var colorChange = [];
for (var i = 1; i < 7; i += 2) {
colorChange.push(parseInt("0x" + color.slice(i, i + 2)));
}
return "rgba(" + colorChange.join(",") + "," + transparency + ")";
}
else {
return color;
}
};
YzDefaultIndexComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-default-index',
template: "<div class=\"page\">\r\n <div class=\"common-svc-index\">\r\n <div class=\"common-svc-index-bg\"\r\n [ngStyle]=\"{'background':'linear-gradient(180deg, '+color+', '+colorDodge+', rgba(161, 33, 41, 0))'}\"></div>\r\n <img *ngIf=\"logoUrl\" [src]=\"logoUrl\" class=\"common-svc-index-logo\"/>\r\n <div class=\"common-svc-index-title\">{{ title }}</div>\r\n <div class=\"page-card\">\r\n <div class=\"tab-btn-row\">\r\n <ng-container *ngFor=\"let item of menus;let i=index\">\r\n <div [class]=\"'button'\"\r\n (click)=\"routerJump(item)\">\r\n <span>{{ item.text }}</span>\r\n <div class=\"button-icon\">\r\n <i class=\"anticon anticon-right\" nz-icon=\"\" type=\"right\"><svg viewBox=\"64 64 896 896\" fill=\"currentColor\" width=\"1em\" height=\"1em\" data-icon=\"right\" aria-hidden=\"true\"><path d=\"M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z\"></path></svg></i>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
styles: [".page{position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:1;background-color:#f7f7f7}.common-svc-index{position:relative}.common-svc-index .common-svc-index-bg{content:'';position:absolute;left:0;top:0;width:100%;height:326px;background:linear-gradient(180deg,#891616,rgba(161,33,41,.8) 71%,rgba(161,33,41,0))}.common-svc-index .common-svc-index-logo,.common-svc-index .common-svc-index-title,.common-svc-index .page-card{position:relative;z-index:1}.common-svc-index .common-svc-index-logo{max-height:80px;display:block;margin:0 auto;padding:30px 0;max-width:90%}.common-svc-index .common-svc-index-title{font-size:27px;font-weight:600;color:#fff;line-height:40px;display:block;text-align:center;padding:0 37px 40px}.common-svc-index .page-card{width:90%;padding:20px 0;margin:0 auto 30px;background:#fff;border-radius:6px;color:#333;align-items:center;justify-content:flex-start;font-size:17px;font-weight:400;line-height:20px;position:relative}.common-svc-index .page-card .tab-btn-row .button{font-size:17px;font-weight:400;border-radius:2px;color:#333;padding:25px 60px 25px 85px;display:flex;justify-content:space-between;position:relative}.common-svc-index .page-card .tab-btn-row .button:before{content:'';position:absolute;left:60px;top:31px;width:10px;height:10px}.common-svc-index .page-card .tab-btn-row .button:hover{opacity:.8}.common-svc-index .page-card .tab-btn-row .button:nth-child(1n):before{background-color:#909399}.common-svc-index .page-card .tab-btn-row .button:nth-child(2n):before{background-color:#67c23a}.common-svc-index .page-card .tab-btn-row .button:nth-child(3n):before{background-color:#e6a23c}.common-svc-index .page-card .tab-btn-row .button:nth-child(4n):before{background-color:#3ce6b9}.common-svc-index .page-card .tab-btn-row .button:nth-child(5n):before{background-color:#db3ce6}.common-svc-index .page-card .tab-btn-row .button:nth-child(6n):before{background-color:#a2e63c}.common-svc-index .page-card .tab-btn-row .button:nth-child(7n):before{background-color:#e6693c}.common-svc-index .page-card .tab-btn-row .button:nth-child(8n):before{background-color:#3ccde6}.button-icon{font-size:14px}.button-icon svg path,.button-icon svg rect{fill:#333}"]
}] }
];
/** @nocollapse */
YzDefaultIndexComponent.ctorParameters = function () { return [
{ type: UserService },
{ type: router.ActivatedRoute },
{ type: InfoService },
{ type: router.Router }
]; };
return YzDefaultIndexComponent;
}());
if (false) {
/** @type {?} */
YzDefaultIndexComponent.prototype.logoUrl;
/** @type {?} */
YzDefaultIndexComponent.prototype.title;
/** @type {?} */
YzDefaultIndexComponent.prototype.menus;
/** @type {?} */
YzDefaultIndexComponent.prototype.color;
/** @type {?} */
YzDefaultIndexComponent.prototype.colorDodge;
/**
* @type {?}
* @private
*/
YzDefaultIndexComponent.prototype.userService;
/**
* @type {?}
* @private
*/
YzDefaultIndexComponent.prototype.activatedRoute;
/**
* @type {?}
* @private
*/
YzDefaultIndexComponent.prototype.infoService;
/**
* @type {?}
* @private
*/
YzDefaultIndexComponent.prototype.router;
}
/**
* @fileoverview added by tsickle
* Generated from: layout/layout.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var LayoutModule = /** @class */ (function () {
function LayoutModule() {
}
LayoutModule.decorators = [
{ type: core.NgModule, args: [{
declarations: [YzLayoutComponent, YzDefaultIndexComponent],
imports: [
SharedModule,
]
},] }
];
return LayoutModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: float-button/float-button.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzFloatButtonComponent = /** @class */ (function () {
function YzFloatButtonComponent() {
this.buttons = [];
}
/**
* @return {?}
*/
YzFloatButtonComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
};
/**
* @return {?}
*/
YzFloatButtonComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
};
YzFloatButtonComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-float-button',
template: "<div class=\"float-buttons\">\r\n <div *ngFor=\"let item of buttons\" Button [inline]=\"true\" (click)=\"item.click()\">{{ item.title }}</div>\r\n</div>\r\n",
styles: [".float-buttons{position:fixed;top:80vh;right:10vw;z-index:99999}"]
}] }
];
/** @nocollapse */
YzFloatButtonComponent.ctorParameters = function () { return []; };
YzFloatButtonComponent.propDecorators = {
buttons: [{ type: core.Input }]
};
return YzFloatButtonComponent;
}());
if (false) {
/** @type {?} */
YzFloatButtonComponent.prototype.buttons;
}
/**
* @fileoverview added by tsickle
* Generated from: float-button/float-button.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzFloatButtonModule = /** @class */ (function () {
function YzFloatButtonModule() {
}
YzFloatButtonModule.decorators = [
{ type: core.NgModule, args: [{
declarations: [
YzFloatButtonComponent,
],
exports: [
YzFloatButtonComponent,
],
imports: [
SharedModule
]
},] }
];
return YzFloatButtonModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: ai-assistant/yz-ai-assistant/yz-ai-assistant.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var AiAssistantService = /** @class */ (function () {
function AiAssistantService(http, client) {
this.http = http;
this.client = client;
}
/**
* 查询我的助手
*/
/**
* 查询我的助手
* @param {?} systemCode
* @return {?}
*/
AiAssistantService.prototype.getAiAssistant = /**
* 查询我的助手
* @param {?} systemCode
* @return {?}
*/
function (systemCode) {
/** @type {?} */
var url = this.client.gateway + "/auth/ai-assistant/findByUser";
if (systemCode) {
url = url + ("?systemCode=" + systemCode);
}
return this.http.post(url, {}).pipe(operators.map((/**
* @param {?} response
* @return {?}
*/
function (response) {
return response.data ? response.data : [];
})));
};
AiAssistantService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
AiAssistantService.ctorParameters = function () { return [
{ type: http.HttpClient },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ AiAssistantService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function AiAssistantService_Factory() { return new AiAssistantService(core.ɵɵinject(http.HttpClient), core.ɵɵinject(BASE_CLIENT)); }, token: AiAssistantService, providedIn: "root" });
return AiAssistantService;
}());
if (false) {
/**
* @type {?}
* @private
*/
AiAssistantService.prototype.http;
/**
* @type {?}
* @private
*/
AiAssistantService.prototype.client;
}
/**
* @fileoverview added by tsickle
* Generated from: ai-assistant/yz-ai-assistant/yz-ai-assistant.component.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzAiAssistantComponent = /** @class */ (function () {
function YzAiAssistantComponent(sanitizer, aiAssistantService, activatedRoute, tokenService, user, modalService) {
this.sanitizer = sanitizer;
this.aiAssistantService = aiAssistantService;
this.activatedRoute = activatedRoute;
this.tokenService = tokenService;
this.user = user;
this.modalService = modalService;
this.aiAssistantShow = false;
this.aiAssistantList = [];
this.modalRef = [];
// 拖动边界
this.cdkDragBoundary = '';
// 系统编码
this.systemCode = null;
}
/**
* @return {?}
*/
YzAiAssistantComponent.prototype.ngOnInit = /**
* @return {?}
*/
function () {
if (this.tokenService.get().accessToken) {
this.queryAiAssistant(this.systemCode);
}
};
// 查询我的助手
// 查询我的助手
/**
* @param {?} systemCode
* @return {?}
*/
YzAiAssistantComponent.prototype.queryAiAssistant =
// 查询我的助手
/**
* @param {?} systemCode
* @return {?}
*/
function (systemCode) {
return __awaiter(this, void 0, void 0, function () {
var userId, userCode, userToken;
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.compressAndEncodeBase64(this.user.get().userId)];
case 1:
userId = _a.sent();
return [4 /*yield*/, this.compressAndEncodeBase64(this.user.get().userCode)];
case 2:
userCode = _a.sent();
return [4 /*yield*/, this.compressAndEncodeBase64(this.tokenService.get().accessToken)];
case 3:
userToken = _a.sent();
this.aiAssistantService.getAiAssistant(systemCode).subscribe((/**
* @param {?} res
* @return {?}
*/
function (res) {
_this.aiAssistantList = res.map((/**
* @param {?} item
* @return {?}
*/
function (item) {
/** @type {?} */
var url = item.url.replace(/\{gzipBase64UserId\}/g, encodeURIComponent(userId)).replace(/\{gzipBase64UserCode\}/g, encodeURIComponent(userCode)).replace(/\{gzipBase64UserToken\}/g, encodeURIComponent(userToken));
return __assign({ safeUrl: _this.sanitizer.bypassSecurityTrustResourceUrl(url) }, item);
}));
_this.selectAi = _this.aiAssistantList.length > 0 ? _this.aiAssistantList[0] : null;
}));
return [2 /*return*/];
}
});
});
};
// url参数压缩编码方法
// const text = "apple";
// const encoded = await compressAndEncodeBase64(text);
// url参数压缩编码方法
// const text = "apple";
// const encoded = await compressAndEncodeBase64(text);
/**
* @param {?} input
* @return {?}
*/
YzAiAssistantComponent.prototype.compressAndEncodeBase64 =
// url参数压缩编码方法
// const text = "apple";
// const encoded = await compressAndEncodeBase64(text);
/**
* @param {?} input
* @return {?}
*/
function (input) {
return __awaiter(this, void 0, void 0, function () {
var uint8Array, compressedStream, compressedUint8Array, _a;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
uint8Array = new TextEncoder().encode(input);
// @ts-ignore
compressedStream = new Response(new Blob([uint8Array]).stream().pipeThrough(new CompressionStream('gzip'))).arrayBuffer();
_a = Uint8Array.bind;
return [4 /*yield*/, compressedStream];
case 1:
compressedUint8Array = new (_a.apply(Uint8Array, [void 0, _b.sent()]))();
return [2 /*return*/, btoa(String.fromCharCode.apply(String, __spread(compressedUint8Array)))];
}
});
});
};
/**
* @return {?}
*/
YzAiAssistantComponent.prototype.showOpeartion = /**
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var actions = this.aiAssistantList.map((/**
* @param {?} item
* @param {?} index
* @return {?}
*/
function (item, index) {
return __assign({}, item, { text: item.name, onPress: (/**
* @return {?}
*/
function () {
_this.selectAi = _this.aiAssistantList[index];
}) });
}));
/** @type {?} */
var ref = this.modalService.operation(actions);
this.modalRef.push(ref);
};
/**
* @return {?}
*/
YzAiAssistantComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
// 将直接销毁对话框
this.modalRef.forEach((/**
* @param {?} ref
* @return {?}
*/
function (ref) {
ref.destroy();
}));
};
YzAiAssistantComponent.decorators = [
{ type: core.Component, args: [{
selector: 'yz-ai-assistant',
template: "<!--AI \u52A9\u624B-->\n<ng-container *ngIf=\"aiAssistantList.length>0\">\n <a class=\"ai-assistant-btn\"\n cdkDrag [cdkDragBoundary]=\"cdkDragBoundary\"\n (click)=\"aiAssistantShow=!aiAssistantShow\">\n <svg t=\"1739428471120\" class=\"icon\" viewBox=\"0 0 1180 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"\n p-id=\"11540\" width=\"55.3125\" height=\"48\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <path\n d=\"M539.407384 47.245794l8.253881-0.00323c41.214485 0.06461 79.728287 2.771753 119.550434 14.136587l9.300557 2.222572c34.953812 8.974278 67.840115 27.378332 98.720289 45.630553l6.428658 3.766742c5.046012 3.062497 9.92727 6.386662 14.769762 9.759285v6.460963h6.460964c5.007247 5.084778 5.007247 5.084778 10.702585 11.914017 11.177467 13.14806 22.991338 25.28498 35.535299 37.150539C854.579635 184.137454 854.579635 184.137454 854.579635 190.598418h6.460964a289.27671 289.27671 0 0 1 13.529257 18.575269l3.89273 5.730875C896.136551 241.203913 911.878688 267.248056 922.41975 297.204312l6.460963 6.460964c6.192833 11.009481 6.648331 19.78347 6.260674 32.104526-0.174446 14.672848 0.810851 23.630973 9.891735 35.735588a317.246221 317.246221 0 0 0 13.729547 8.883825c17.418757 10.718738 28.040581 25.074999 37.958159 42.803882v6.460963h6.460963l6.260674 17.163549 3.521225 9.652679c4.742347 13.167443 6.590183 22.416312 6.17022 36.381685-0.222903 13.199748 0.710706 23.915256 4.441912 36.543208 4.244853 18.400824-2.125657 32.256359-9.226255 49.239002-12.753942 32.324199-15.590304 62.412906-14.601778 96.940293 1.085442 42.900796-1.495713 76.446118-25.640332 112.663048h-6.460964v6.460963c-14.663156 8.58339-25.026541 11.022403-41.996261 9.691445-3.230482-3.230482-3.230482-3.230482-3.434002-11.510206L922.41975 785.007042l10.298776-2.222571c16.708051-4.82634 25.210679-15.037892 34.120347-29.678435 14.563011-36.407528 9.042118-84.993972 4.038102-123.162113l-3.230482-3.230482c-0.129219-6.460963-0.138911-12.921927 0-19.38289h-6.460963l-0.40381 8.883825c-2.826671 10.499065-2.826671 10.499065-12.114307 17.971169-17.586742 9.494386-32.453419 10.392459-52.091516 8.680305-14.197967-5.16231-20.507098-10.524909-29.074335-22.613372l-2.261337 9.830356C853.400509 680.339437 837.458082 726.0346 802.891929 765.624152h-6.460964l-2.600537 5.679187c-11.933399 22.387238-31.639337 38.491189-52.317651 52.469483l-8.176349 5.653343c-74.107249 49.406986-168.572994 60.894579-255.434184 45.465799a794.401283 794.401283 0 0 1-42.881414-11.749262l-7.688546-2.309794c-15.432011-4.974942-28.43793-11.377756-41.931652-20.374648-5.414287-3.576143-11.112857-6.712941-16.808196-9.820664C345.555871 817.570297 321.80537 799.492522 305.397754 778.546079l-1.414951-6.725863L302.167272 765.624152l-5.879477-2.813749c-26.506102-13.729547-39.612166-64.383499-48.470146-91.235263a280.312124 280.312124 0 0 1-7.636859-30.324531L237.557639 629.943923l-9.691445-3.230482v6.460964c-17.318612 8.657691-29.054952 11.53928-48.457225 9.691445-10.757504-4.464526-19.395812-9.701136-29.074335-16.152409l-4.241622-10.702585c-6.667714-16.779122-20.339113-24.806869-34.598459-35.14118-10.99979-9.245638-14.504863-18.943544-18.704488-32.695705l-2.00613-6.538495C86.345254 526.742956 83.295679 512.977874 82.494519 497.494175l-0.377966-7.090907c-1.185587-38.798085 14.808528-72.918432 40.532853-101.672949C127.721263 384.427317 127.721263 384.427317 139.231469 380.188925c16.43346-8.069743 20.562016-21.321179 27.255574-37.757869h-6.460964c-1.117747-16.407616 2.603768-29.096948 8.883825-44.015313l2.930047-7.045681c8.916129-20.52325 19.741473-39.77369 31.193531-58.978903l5.162309-8.680304C217.44143 208.618044 217.44143 208.618044 221.405231 203.520344h6.460963l2.222571-6.864773C235.41583 184.974149 241.72496 177.392209 250.479566 167.985046h6.460963v-6.460963h6.460963v-6.460964a452.509718 452.509718 0 0 1 16.152409-16.152408l8.683534-9.087345C295.706309 122.758303 295.706309 122.758303 302.167272 122.758303v-6.460963c45.533639-26.609477 90.369494-49.171161 142.141193-61.379152l7.187822-1.74446c29.10664-6.241291 58.28112-5.989313 87.911097-5.927934zM447.538947 113.066858l-11.510207 1.211431c-11.949552 1.376185-21.973736 4.36115-33.086593 8.870902-8.127892 3.256326-16.378542 6.047462-24.655036 8.896747C361.475685 138.174161 346.515324 145.814251 331.241607 155.063119c-2.713605 1.550631-5.427209 3.101262-8.228037 4.69389-24.377215 14.514554-44.041156 32.563255-64.351194 52.120591-5.058934 4.661585-10.311697 8.938743-15.69045 13.222362C233.642295 231.900126 233.642295 231.900126 231.096676 242.286124l6.460963 6.460964c1.292193 21.644227-7.058602 41.85412-15.344788 61.379151l-3.282169 8.392791c-3.072188 7.346115-6.028079 14.055826-10.447378 20.681544-8.935512 3.434002-8.935512 3.434002-16.152408 3.230482l3.230481 6.460963c6.971379 1.024063 6.971379 1.024063 15.144498 1.21143 15.512773 1.330958 24.806869 4.063946 36.543209 14.940978 4.209318 7.462413 6.868004 14.456405 9.691445 22.613372 7.856531-9.746363 13.106064-19.560566 18.37498-30.893096 34.550001-69.862396 95.405815-118.274394 167.177425-146.179295L453.99991 206.750826l9.901426-3.385545c15.402937-4.338537 30.812334-4.219009 46.719226-4.412838l9.681753-0.190598c10.137251-0.193829 20.274503-0.342431 30.408524-0.491033 6.903539-0.122758 13.803848-0.248747 20.704157-0.377967A14100.72938 14100.72938 0 0 1 621.984956 197.059381v6.460963l6.247752 1.298654 8.089126 1.728308 8.063282 1.705694C651.059291 209.981308 651.059291 209.981308 654.289773 213.211789c5.381982 0.129219 10.770426 0.138911 16.152408 0v6.460964h16.152408v6.460963c13.774774 7.623937 13.774774 7.623937 29.074335 9.691445v6.460963c4.684198 4.399916 4.684198 4.399916 10.702586 8.480015l6.018387 4.367611c6.17345 4.096251 6.17345 4.096251 15.583844 3.304782l2.08366 5.336756c5.921473 10.26001 14.204428 17.522133 22.749052 25.55311 27.536626 26.812998 44.260829 57.677019 60.839661 91.971813 4.655124 9.840047 4.655124 9.840047 11.242076 19.279514l1.298654-6.018387 1.731538-7.91468 1.702464-7.833918C851.349154 371.50539 851.349154 371.50539 854.579635 361.813945c11.242076-5.711492 22.558453-8.011595 34.931198-10.095255l9.552535-1.641084L906.267342 348.892019v-6.460963l-8.935513-1.767074c-13.787696-6.196064-17.121553-14.802067-22.561683-28.114882l-2.839594-6.422197C856.789285 271.350768 856.789285 271.350768 857.810117 251.977569c1.379416-12.844395 1.379416-12.844395-6.057153-20.19051-6.215447-6.338205-6.215447-6.338205-13.325737-5.653343v-6.460963c-7.972829-8.231267-17.014947-15.322174-25.843853-22.613372l-7.50764-6.283287C791.947057 180.121966 780.950497 171.868085 764.126149 167.985046v-6.460963l-16.152408-3.230482v-6.460963l-11.306686-4.038102a198.655239 198.655239 0 0 1-26.651474-12.114306c-14.207658-7.401033-29.048491-10.686433-44.609721-14.172123C657.520254 119.527821 657.520254 119.527821 654.289773 116.29734l-10.095256-1.414951C631.989758 113.112085 620.886592 110.049588 609.063029 106.605895c-14.808528-2.991426-29.219707-3.747359-44.280212-3.773203l-7.094137-0.032305c-4.936176-0.016152-9.869121-0.022613-14.802067-0.022613-7.462413-0.006461-14.924825-0.06461-22.390469-0.129219C481.507461 100.048017 481.507461 100.048017 447.538947 113.066858z\"\n fill=\"#D3E9FB\" p-id=\"11541\"></path>\n <path\n d=\"M510.620562 196.429437l9.681753 0.025844c10.137251 0.035535 20.274503 0.116297 30.408524 0.20029 6.903539 0.032305 13.803848 0.06461 20.704157 0.087223 16.856653 0.071071 33.713307 0.180907 50.56996 0.316587v6.460963l5.679187 0.478112c15.121885 1.447256 28.483157 3.715054 42.778038 9.213333v6.460964h16.152408v6.460963l7.268584 1.211431c8.240959 1.873679 14.462866 4.399916 21.805751 8.480014v6.460963l7.068294 2.626382c18.462203 7.795152 29.016186 17.179701 41.753975 32.379117 6.008696 6.890617 12.359823 13.047915 19.017846 19.308589 24.958701 24.716415 39.967519 56.446206 54.918188 87.827105l-6.460963 9.691445-3.230482-3.230482c1.605549 25.927846 3.398467 51.729703 6.460963 77.53156v6.460963l1.582936 7.378421c2.891281 15.390015 2.245185 30.915709 2.251646 46.528627l0.122758 10.356924 0.016153 9.872352 0.041996 9.019505C838.427227 565.33429 838.427227 565.33429 831.966264 571.795253c-4.596975-12.350131-7.236279-22.33232-6.460964-35.535298l-5.653343-1.818761c-8.890286-5.679187-11.884942-12.450276-16.746816-21.602231-6.147607-10.092025-14.407948-16.947107-25.688791-20.487715-24.176925-4.668046-49.607276-0.426424-73.803583 2.132118C452.52681 520.689033 452.52681 520.689033 363.546424 491.033212a497.668621 497.668621 0 0 0-23.824803-0.807621l-12.792707-0.251977c-12.346901 1.104825-17.9744 3.828121-27.992124 10.751043h-6.460963l-2.626381 5.453053C286.014864 513.646583 286.014864 513.646583 281.169141 521.118687c-21.211343 38.000156-10.909337 81.579353-0.332739 121.417653C290.770133 677.167104 308.227656 705.879625 331.241607 733.319336c-21.114428-9.281174-33.215812-29.516911-45.226743-48.457225 16.617598 31.280754 37.014859 55.586898 71.070596 67.840115 65.901826 19.537953 133.005391 22.810431 201.301004 24.432133l16.70159 0.419962c13.477569 0.342431 26.955139 0.67194 40.435939 0.991758v3.230482c-20.616934 0.164755-41.233868 0.277821-61.854033 0.355353-6.987532 0.032305-13.978294 0.074301-20.965825 0.129219-166.06291 1.311576-166.06291 1.311576-214.384455-42.480834l-9.691445-3.230481c-1.815531 20.771997 9.966036 33.060749 22.613372 48.457224 7.006915 7.236279 13.987986 14.130127 22.613372 19.38289h9.691445a437.413677 437.413677 0 0 1 20.59432 13.325737c21.376097 14.214119 42.997711 25.013619 66.628684 35.131488l6.512651 3.101263c29.626747 13.987986 61.676356 14.298112 93.83257 14.262576l12.492273 0.006461c32.010843-0.371505 60.183873-4.538827 90.682851-14.139818 4.296541-1.111286 8.602773-2.206419 12.921926-3.230482v9.691445c-7.061833 2.106274-14.130127 4.186704-21.201651 6.260674l-11.920477 3.521225c-63.291597 16.43023-137.095181 9.575148-199.068741-9.174568l-7.688546-2.313025c-15.432011-4.974942-28.43793-11.377756-41.931652-20.374648-5.414287-3.576143-11.112857-6.712941-16.804966-9.820664C345.552641 817.570297 321.80214 799.492522 305.397754 778.546079l-1.414951-6.725863L302.167272 765.624152l-5.879477-2.813749c-26.354269-13.648785-39.376341-63.834318-48.305392-90.531018-7.656242-24.793947-11.461749-46.644925-9.820664-72.621228l0.494264-8.977508c2.875129-48.366771 7.087677-96.656011 11.823563-144.87418 0.339201-3.514764 0.678401-7.032759 1.033754-10.654129 7.71116-75.108698 44.432045-129.296798 101.95077-178.151372C383.753086 233.20524 417.44701 215.705721 453.99991 203.520344l9.901426-3.430771c15.441702-4.348228 30.789721-3.834582 46.719226-3.660136z\"\n fill=\"#D8F2FD\" p-id=\"11542\"></path>\n <path\n d=\"M373.237869 491.033212c111.545301 16.491609 231.244338 10.692894 342.947932-1.111286 55.370456-5.782562 55.370456-5.782562 80.245164 10.802731 22.303245 19.544414 30.269613 50.750867 33.122129 79.234023 3.214329 54.566066-4.613128 98.852739-39.114672 142.787289-10.679972 11.319608-22.338781 19.399042-36.003718 26.725775l-7.733773 4.554979c-56.307295 24.826252-124.580295 23.727888-184.893387 23.039795a2998.51369 2998.51369 0 0 0-37.770792-0.109836c-161.5047-0.413502-161.5047-0.413502-215.608806-53.393401-10.841496-11.810641-19.993451-23.517906-25.643564-38.70117l3.230482-9.691445 4.377302 8.024517 5.921473 10.550753 5.789023 10.447377c6.609565 9.869121 13.060837 15.819669 22.677982 22.66506l-4.377303-4.516214c-38.785163-41.847659-56.520507-104.208877-54.918188-160.706771 3.498612-28.118112 14.233502-50.421358 36.078019-68.379605C320.958984 482.727643 352.918139 484.262122 373.237869 491.033212z\"\n fill=\"#4974FC\" p-id=\"11543\"></path>\n <path\n d=\"M915.958787 352.1225l-0.155063 6.418968c-1.570014 76.86285-0.374736 155.890123 22.490613 229.897227 3.656905 12.963923 5.394904 24.907014 6.738785 38.274746l9.691445 3.230482c-19.809314 11.73957-35.102414 16.126564-58.14867 12.921927-14.197967-5.16231-20.507098-10.524909-29.074335-22.613372l-2.261337 9.830356C853.400509 680.339437 837.458082 726.0346 802.891929 765.624152h-6.460964l-2.600537 5.679187c-11.923708 22.371085-31.632876 38.523494-52.317651 52.469483l-8.51878 5.76641C687.680031 859.30812 687.680031 859.30812 667.211699 859.30812v-6.460963l-12.114306 4.241623c-34.646916 11.364834-65.782298 16.70159-102.367503 16.352698l-11.94309 0.113067c-35.890651-0.113067-69.132307-5.743796-101.527578-21.515008l-6.060383-2.939739c-23.621282-11.636195-46.61585-24.61304-68.240695-39.663853C357.288981 803.517702 357.288981 803.517702 347.394015 804.389932c-17.044021-13.406499-33.555013-31.487505-41.996261-51.687706 0.607331-9.691445 0.607331-9.691445 3.230481-16.152408 9.135802 1.40526 13.849075 3.886269 21.540852 9.313478 11.474671 7.291197 22.674751 11.519898 35.599908 15.318944l6.890617 2.08043c40.465013 11.910786 81.233692 16.103951 123.336559 15.283409v-3.230482l12.553652-0.038765c95.50596 0.558873 95.50596 0.558873 190.159072-10.26001l9.904657-1.799378c29.471684-6.299439 58.536328-19.308589 78.125968-42.820035l4.567902-4.932945C826.71027 673.975388 829.614473 623.806008 825.5053 571.795253c-1.4731-12.082001-3.311244-23.776345-6.460963-35.535298h6.460963l6.460964 32.304816c3.243404-16.210557 3.82489-30.631427 3.837812-47.045504l0.119528-8.321721 0.016152-8.043899 0.041996-7.275045c-0.891613-7.779-3.605218-12.902544-7.24597-19.767317 0.190598-6.460963 0.190598-6.460963 1.414951-12.921927 1.318037-7.119982 2.073969-11.894633 0.303665-18.956466-1.712155-6.868004-2.367943-13.102834-2.739448-20.161436l-0.410271-7.384881-0.387658-7.607784-0.419963-7.759617A6525.831383 6525.831383 0 0 1 825.5053 384.427317h9.691445l6.460964 6.460963 4.038102-10.499065c5.847172-13.529257 12.708715-21.682993 25.643563-29.074335 14.068748-3.750589 31.271062-5.866555 44.619413 0.80762z\"\n fill=\"#B2BEFB\" p-id=\"11544\"></path>\n <path\n d=\"M496.891015 603.557349l8.228037-0.032305c5.776101-0.016152 11.555433-0.022613 17.331534-0.022613 8.741683-0.006461 17.483367-0.06461 26.22505-0.12922 27.394484-0.083993 53.083275 0.148602 79.770283 7.187822l0.959453 9.213334c2.82021 30.453751 2.82021 30.453751 18.423437 55.396299 16.110412 11.506976 32.566486 12.321057 51.687707 9.691445 19.544414-6.015157 29.720431-16.520683 41.996261-32.304817l9.691445-3.230481v6.460963l35.535298 9.691445v6.460963h6.460964c5.288298-6.331744 5.288298-6.331744 9.691445-12.921926-2.112735 16.378542-9.223025 30.431137-16.152409 45.226743h-6.460963l-2.222571 7.268584c-9.126111 19.124451-30.78649 29.387692-49.465135 37.958159-11.655578 3.382314-23.353152 5.404596-35.335009 7.268584l-9.051809 1.563553c-8.883825 1.495713-17.767649 2.829902-26.683779 4.08979l-7.149056 1.053137c-26.903451 3.337088-54.104107 2.661917-81.165851 2.597307-8.702918-0.016152-17.405835 0-26.108753 0.022613-59.977122 0.025844-118.794502-1.127438-176.319689-19.825465l-11.510206-3.030192L347.394015 739.780299l-3.230481-12.921926c-9.678523-4.215779-9.678523-4.215779-19.38289-6.460964l-3.230482-25.843853 12.921927 6.460963v-6.460963h-6.460964c4.878027-16.087799 14.721305-26.62886 25.843854-38.76578l5.314142 4.012258 7.000454 5.275377 6.929383 5.223689c19.169678 14.14951 34.908585 13.577714 58.28758 11.332529 15.76475-6.635409 22.984877-15.958579 29.9078-31.119229 3.715054-11.855868 4.464526-23.637434 5.058934-36.000488 1.292193-16.326854 17.670735-10.938411 30.537743-10.954563z\"\n fill=\"#1D44D3\" p-id=\"11545\"></path>\n <path\n d=\"M282.784382 148.602156l1.211431 9.491155L286.014864 167.985046l6.460963 3.230482c-1.424642 15.270487-6.868004 20.920599-18.37498 30.689575l-8.806293 7.598093a1649.635766 1649.635766 0 0 1-19.861001 16.22671C236.82432 232.06165 236.82432 232.06165 234.327157 242.286124l6.460964 6.460964c1.292193 21.602231-7.035989 41.705518-15.344788 61.178861l-3.28217 8.308799c-8.292646 19.744704-8.292646 19.744704-19.38289 26.02476L195.561377 345.661537l6.386663 0.251978c18.601113 1.2082 30.65081 3.395236 45.301044 15.90043 12.240295 14.007368 12.686101 27.142507 12.921927 45.226744-0.80439 10.072642-2.487471 19.867462-4.328846 29.794732a697.286543 697.286543 0 0 0-8.202193 70.941377l-0.581486 9.067962c-0.562104 9.097036-1.098364 18.190842-1.628163 27.291109-0.710706 12.243525-1.460178 24.487051-2.229033 36.730577l-0.452267 8.341103c-0.865769 13.729547-2.209649 24.958701-8.421866 37.505892h-6.460963v6.460964c-17.318612 8.657691-29.054952 11.53928-48.457225 9.691445-10.757504-4.464526-19.395812-9.701136-29.074335-16.152409l-4.241622-10.702585c-6.667714-16.779122-20.339113-24.806869-34.598459-35.14118-10.99979-9.245638-14.504863-18.943544-18.704488-32.695705l-2.00613-6.538495C86.345254 526.742956 83.295679 512.977874 82.494519 497.494175l-0.377966-7.090907c-1.185587-38.798085 14.808528-72.918432 40.532853-101.672949C127.721263 384.427317 127.721263 384.427317 139.231469 380.188925c16.43346-8.069743 20.562016-21.321179 27.255574-37.757869h-6.460964c-1.117747-16.407616 2.603768-29.096948 8.883825-44.015313l2.930047-7.045681c8.916129-20.52325 19.741473-39.77369 31.193531-58.975673l5.162309-8.683534C217.44143 208.618044 217.44143 208.618044 221.405231 203.520344h6.460963l2.222571-6.864773C235.41583 184.974149 241.72496 177.392209 250.479566 167.985046h6.460963v-6.460963h6.460963v-6.460964c9.691445-6.460963 9.691445-6.460963 19.38289-6.460963z\"\n fill=\"#E0FAFD\" p-id=\"11546\"></path>\n <path\n d=\"M539.407384 47.245794l8.253881-0.00323c41.214485 0.06461 79.728287 2.771753 119.550434 14.136587l9.300557 2.222572c34.953812 8.974278 67.840115 27.378332 98.720289 45.630553l6.428658 3.766742c5.046012 3.062497 9.92727 6.386662 14.769762 9.759285v6.460963h6.460964l6.460963 12.921927h-6.460963v25.843853l-6.460964 3.230482 3.230482 16.152408-35.535298-19.38289v-6.460963l-16.152408-3.230482v-6.460963l-6.260674-0.807621c-11.274381-2.762062-20.981978-7.191052-31.519809-11.975395-22.228944-10.05972-43.976547-15.635531-67.930569-20.52002-7.985751-1.683081-15.700141-3.521225-23.508215-5.866554-17.971169-5.243072-35.331778-6.5708-53.971657-6.599874l-7.094137-0.032305c-4.936176-0.016152-9.869121-0.022613-14.802067-0.022613-7.462413-0.006461-14.924825-0.06461-22.390469-0.12922-23.963713-0.090453-46.573854 0.213212-69.726716 7.187822l-3.230481 3.230482-11.510207 1.21143c-11.949552 1.376185-21.973736 4.36115-33.086593 8.870903-8.127892 3.256326-16.378542 6.047462-24.655036 8.896746C348.29855 146.205139 322.373935 163.610974 295.706309 180.906973l-3.230482-9.691445-9.691445-3.230482v-19.38289l-6.460963-3.230481c5.117083-10.230935 7.924372-15.28987 18.37498-20.394031L302.167272 122.758303v-6.460963c45.533639-26.609477 90.369494-49.171161 142.141193-61.379152l7.187822-1.74446c29.10664-6.241291 58.28112-5.989313 87.911097-5.927934z\"\n fill=\"#59E0FD\" p-id=\"11547\"></path>\n <path\n d=\"M189.100414 345.661537c41.65383 1.347111 41.65383 1.347111 58.14867 16.152408 12.211221 14.042904 12.686101 27.116663 12.921927 45.226744-0.80439 10.072642-2.487471 19.867462-4.328846 29.794732a697.286543 697.286543 0 0 0-8.202193 70.941377l-0.581486 9.067962c-0.562104 9.097036-1.098364 18.190842-1.628163 27.291109-0.710706 12.243525-1.460178 24.487051-2.229033 36.730577l-0.452267 8.341103c-0.865769 13.729547-2.209649 24.958701-8.421866 37.505892h-6.460963v6.460964c-17.318612 8.657691-29.054952 11.53928-48.457225 9.691445-10.757504-4.464526-19.395812-9.701136-29.074335-16.152409-3.837812-11.710496-3.837812-11.710496-6.460963-22.613371h6.460963l6.460964-35.535299h6.460963c2.251646-13.984755 4.380533-27.985663 6.460963-41.996261l1.754152-11.684652c4.028411-29.148636 5.624269-58.019451 6.664483-87.420064 1.078981-27.814447 3.879808-54.79543 10.964255-81.802257z\"\n fill=\"#4140F5\" p-id=\"11548\"></path>\n <path\n d=\"M915.958787 352.1225l-0.155063 6.418968c-1.570014 76.86285-0.374736 155.890123 22.490613 229.897227 3.656905 12.963923 5.394904 24.907014 6.738785 38.274746l9.691445 3.230482c-19.828696 11.749262-35.089492 16.09426-58.14867 12.921927-15.247873-5.3626-23.766654-12.120767-32.304817-25.843854-5.730874-19.65102-8.44771-39.082367-10.628284-59.398866l-1.056368-9.581609c-0.730089-6.664484-1.453717-13.328967-2.164423-19.996681-1.082211-10.075872-2.209649-20.145284-3.337087-30.214695-12.049697-109.707157-12.049697-109.707157 8.502628-135.81591 16.70159-12.815321 40.297028-19.928841 60.371241-9.891735z\"\n fill=\"#3F3CF0\" p-id=\"11549\"></path>\n <path\n d=\"M263.401492 374.735872c6.460963 9.691445 6.460963 9.691445 5.453053 18.423437L266.631974 403.810207c-8.001903 56.769254-8.473553 113.987545-9.691445 171.215528l6.460963 3.230481v-19.38289h3.230482l0.959453 9.604222c6.719402 62.412906 22.774896 116.109972 63.65018 164.841788-21.114428-9.281174-33.215812-29.516911-45.226743-48.457225 16.617598 31.280754 37.014859 55.586898 71.070596 67.840115 65.901826 19.537953 133.005391 22.810431 201.301004 24.432133l16.70159 0.419962c13.477569 0.342431 26.955139 0.67194 40.435939 0.991758v3.230482c-20.616934 0.164755-41.233868 0.277821-61.854033 0.355353-6.987532 0.032305-13.978294 0.074301-20.965825 0.129219-166.06291 1.311576-166.06291 1.311576-214.384455-42.480834l-9.691445-3.230481c-1.815531 20.771997 9.966036 33.060749 22.613372 48.457224 7.006915 7.236279 13.987986 14.130127 22.613372 19.38289h9.691445a437.413677 437.413677 0 0 1 20.59432 13.325737c21.376097 14.214119 42.997711 25.013619 66.628684 35.131488l6.512651 3.101263c29.626747 13.987986 61.676356 14.298112 93.83257 14.262576l12.492273 0.006461c32.010843-0.371505 60.183873-4.538827 90.682851-14.139818 4.296541-1.111286 8.602773-2.206419 12.921926-3.230482v9.691445c-7.061833 2.106274-14.130127 4.186704-21.201651 6.260674l-11.920477 3.521225c-63.291597 16.43023-137.095181 9.575148-199.068741-9.174568l-7.688546-2.313025c-15.432011-4.974942-28.43793-11.377756-41.931652-20.374648-5.414287-3.576143-11.112857-6.712941-16.808196-9.820664C345.555871 817.570297 321.80537 799.492522 305.397754 778.546079l-1.414951-6.725863L302.167272 765.624152l-5.879477-2.813749c-26.354269-13.648785-39.376341-63.834318-48.305392-90.531018-7.656242-24.793947-11.461749-46.644925-9.820664-72.621228l0.494264-8.977508c11.216232-188.886262 11.216232-188.886262 24.745489-215.944777z\"\n fill=\"#CEEDF9\" p-id=\"11550\"></path>\n <path\n d=\"M715.668924 562.103808c16.643441 7.859762 27.375102 19.092147 35.535298 35.535298 3.82166 22.80397 1.162973 42.196551-11.332529 61.682817-10.705816 13.674629-23.214241 24.487051-40.355177 28.77067-22.212792 2.464858-36.976093 0.713936-54.918188-12.921927-13.109295-16.559449-17.631969-29.655822-17.23785-50.779941 3.130337-21.253339 13.820001-38.313512 30.767107-51.183751 18.785251-12.67964 34.953812-14.101052 57.541339-11.103166zM423.966122 562.294407c20.623395 11.390678 34.840745 25.365742 41.657061 48.305392 4.416068 21.831595 1.566784 36.204008-10.134021 54.918188-7.397803 10.069411-12.388897 14.533937-24.102624 19.344124-20.245429 2.988196-39.192203 3.989645-56.533429-8.076204-14.143049-12.560113-29.300469-31.836397-31.571497-51.10622-0.814081-22.451848 2.241954-36.682119 17.03433-53.884434 17.654582-16.09749 41.760436-18.074545 63.65018-9.500846z\"\n fill=\"#F7FAFD\" p-id=\"11551\"></path>\n <path\n d=\"M825.5053 384.427317h9.691445c9.184259 9.184259 7.869453 16.142717 8.754606 29.009725l1.066059 14.294882 0.533029 7.633628c3.295091 46.906594 8.053591 93.419069 14.61793 139.97677 8.509089 61.285467-5.940856 123.759752-43.546893 173.929132-7.420416 9.575148-7.420416 9.575148-13.729547 16.352698h-6.460964l-2.600537 5.679187c-12.00447 22.516457-31.778248 38.113223-52.317651 52.469483l-6.57403 5.249533c-8.302338 5.811636-15.780903 6.541725-25.730786 7.672394 8.547854-9.087345 17.589973-16.578832 27.685228-23.905564 26.435031-19.276284 50.912391-40.200114 59.537776-73.008886 0.545951-8.883825 0.545951-8.883825 0-16.152408l-5.90532 5.540276-7.824227 7.17813-7.720851 7.155517c-7.268584 5.692109-11.552202 7.901758-20.545863 9.200412v-6.460963a220.771116 220.771116 0 0 1 13.125447-8.076205c30.292226-19.848079 46.932437-53.225416 56.378366-87.536361 7.304119-36.200777 4.62605-78.839905-4.89418-114.368742h6.460963l6.460964 32.304816c3.243404-16.210557 3.82489-30.631427 3.837812-47.045504l0.119528-8.321721 0.016152-8.043899 0.041996-7.275045c-0.891613-7.779-3.605218-12.902544-7.24597-19.767317 0.190598-6.460963 0.190598-6.460963 1.414951-12.921927 1.318037-7.119982 2.073969-11.894633 0.303665-18.956466-1.712155-6.868004-2.367943-13.102834-2.739448-20.161436l-0.410271-7.384881-0.387658-7.607784-0.419963-7.759617A6525.831383 6525.831383 0 0 1 825.5053 384.427317z\"\n fill=\"#BFD1F9\" p-id=\"11552\"></path>\n <path\n d=\"M915.958787 361.813945c8.51878 8.51878 7.31381 12.495503 7.459182 24.380446l0.226134 11.20331 0.187368 12.065849c1.550631 58.946599 8.408944 115.244203 24.432132 172.023148 9.274713 0 16.895419-0.875461 25.843854-3.230482l3.230481-6.460963h22.613372l6.460963-12.921927c3.295091 17.935634 3.834582 32.440497-1.54094 49.998165-5.953778 22.468-5.782562 43.59535-5.123544 66.702985 1.085442 42.900796-1.495713 76.446118-25.640332 112.663048h-6.460964v6.460963c-14.663156 8.58339-25.026541 11.022403-41.996261 9.691445-3.230482-3.230482-3.230482-3.230482-3.434002-11.510206L922.41975 785.007042l10.298776-2.222571c16.708051-4.82634 25.210679-15.037892 34.120347-29.678435 14.563011-36.407528 9.042118-84.993972 4.038102-123.162113l-3.230482-3.230482c-0.129219-6.460963-0.138911-12.921927 0-19.38289h-6.460963l-3.230482 19.38289-16.152408 3.230482-0.959453-6.664484c-2.852515-18.488047-6.586952-36.129707-11.758953-54.110567-15.073427-55.968095-31.697486-151.638809-13.125447-207.354927z\"\n fill=\"#C0CFFA\" p-id=\"11553\"></path>\n <path\n d=\"M802.891929 142.141193c20.810763 2.400248 35.257477 22.102955 48.127715 36.989015C854.579635 184.137454 854.579635 184.137454 854.579635 190.598418h6.460964a289.27671 289.27671 0 0 1 13.529257 18.575269l3.89273 5.730875C896.136551 241.203913 911.878688 267.248056 922.41975 297.204312l6.460963 6.460964c6.735554 13.099603 7.817766 24.138159 6.460964 38.76578-3.634292 6.460963-3.634292 6.460963-9.691445 9.691444-10.298776-1.011141-10.298776-1.011141-19.38289-3.230481v-6.460963l-7.268584 1.21143C890.114933 342.431056 890.114933 342.431056 883.65397 334.958951c-14.294881-24.461207-30.592661-54.12349-29.074335-82.981382 0.678401-12.582726 0.678401-12.582726-3.230481-22.613371-6.509421-2.367943-6.509421-2.367943-12.921927-3.230482v-6.460963l-5.601655-2.561772c-7.856531-4.186704-14.22058-8.896746-21.049819-14.601777l-6.91323-5.614578C799.661447 190.598418 799.661447 190.598418 798.902284 181.779203L799.661447 174.446009l-6.460963-3.230481 9.691445-3.230482v-25.843853z\"\n fill=\"#E5F6FC\" p-id=\"11554\"></path>\n <path\n d=\"M968.176292 412.871708l7.950216 0.226134 8.001903 0.177676L990.259865 413.501652l6.460963 16.152408h6.460963l6.260674 17.163549 3.521225 9.652679c5.336756 14.818219 6.719402 25.814779 6.5708 41.631218l-0.087223 12.453506L1019.3342 520.107547h-9.691445l-2.222572 6.864773c-5.262455 11.526359-12.010931 19.189061-20.3908 28.670525-10.466761-0.898074-16.013498-3.133567-24.632422-9.287635-21.014283-27.652923-19.98699-64.057221-17.363839-97.31826 7.165208-34.724447 7.165208-34.724447 23.14317-36.165242z\"\n fill=\"#68D0FC\" p-id=\"11555\"></path>\n <path\n d=\"M108.338373 407.040689l3.230481 9.691445 22.613372-3.230482c19.680094 27.933975 18.992002 57.198908 16.152408 90.453486-3.275708 18.526812-8.932282 36.010179-19.38289 51.687707h-9.691445v-9.691445c-14.866677-3.721515-14.866677-3.721515-29.074335 0-11.555433-36.979324-16.278397-77.211742 1.515096-112.889182 4.748808-8.757836 9.610683-17.421988 14.637313-26.021529z\"\n fill=\"#6CE8FC\" p-id=\"11556\"></path>\n <path\n d=\"M189.100414 345.661537c26.800076 0.865769 44.086383 2.574694 64.005533 21.805751 5.714722 10.828575 6.050692 20.946443 7.065064 33.112437h-6.460964l-3.230481 6.460964c-9.691445-18.57527-9.691445-18.57527-9.691445-25.843854l-9.691445-3.230481-7.268584-8.076204c-10.738121-9.762516-17.3703-9.846508-31.497196-11.306686l0.051688 7.98575c0.054918 9.969266 0.096914 19.941763 0.125988 29.91103 0.022613 6.360818 0.06461 12.718406 0.106606 19.079225 0.06461 25.346359-0.930379 50.259834-3.514764 75.473743l-0.762394 7.908219C185.38536 528.971988 179.799857 558.582583 172.948006 587.947661h-6.460963v35.535299c7.811305 0.348892 15.603226 0.6041 23.420992 0.80762l6.674175 0.329509c11.53282 0.222903 17.060174-0.025844 25.982764-7.64978L227.866194 610.561033h6.460963v16.152408h-6.460963v6.460964c-17.318612 8.657691-29.054952 11.53928-48.457225 9.691445-10.757504-4.464526-19.395812-9.701136-29.074335-16.152409-3.837812-11.710496-3.837812-11.710496-6.460963-22.613371h6.460963l6.460964-35.535299h6.460963c2.251646-13.984755 4.380533-27.985663 6.460963-41.996261l1.754152-11.684652c4.028411-29.148636 5.624269-58.019451 6.664483-87.420064 1.078981-27.814447 3.879808-54.79543 10.964255-81.802257z\"\n fill=\"#5269FE\" p-id=\"11557\"></path>\n <path\n d=\"M282.784382 148.602156l1.211431 9.491155L286.014864 167.985046l6.460963 3.230482c-1.424642 15.270487-6.868004 20.920599-18.37498 30.689575l-8.806293 7.585171c-6.606335 5.49828-13.222361 10.983638-19.861001 16.443152C237.405806 231.832286 237.405806 231.832286 234.327157 239.055643l-7.472104 3.634291C214.879658 251.04719 210.860939 261.407345 205.252822 274.590941h6.460964c-2.768523 27.688458-2.768523 27.688458-9.691445 38.76578l-16.152409-3.230482v-25.843853h-6.460963c1.87691-12.330748 5.417518-21.179038 11.797719-31.862241l5.181693-8.677074 5.43367-8.92582c1.776765-3.010809 3.559991-6.018387 5.394904-9.11965l5.191384-8.612464 4.755269-7.888836L221.405231 203.520344h6.460963l2.222571-6.864773C235.41583 184.974149 241.72496 177.392209 250.479566 167.985046h6.460963v-6.460963h6.460963v-6.460964c9.691445-6.460963 9.691445-6.460963 19.38289-6.460963z\"\n fill=\"#DBFAFD\" p-id=\"11558\"></path>\n <path\n d=\"M747.973741 649.326813l3.230481 6.460963c8.31526 2.94943 8.31526 2.94943 17.97117 5.249533 3.266017 0.839925 6.535264 1.67985 9.904656 2.55208L786.73952 665.479221v6.460963h6.460964c5.288298-6.331744 5.288298-6.331744 9.691445-12.921926-2.112735 16.378542-9.223025 30.431137-16.152409 45.226743h-6.460963l-2.222571 7.268584c-9.126111 19.124451-30.78649 29.387692-49.465135 37.958159-11.655578 3.382314-23.353152 5.404596-35.335009 7.268584l-9.051809 1.563553c-8.883825 1.495713-17.767649 2.829902-26.683779 4.08979l-7.149056 1.053137c-26.903451 3.337088-54.104107 2.661917-81.165851 2.597307-8.702918-0.016152-17.405835 0-26.108753 0.022613-59.941587 0.025844-118.84942-1.043446-176.319689-19.825465l-11.510206-3.230482L347.394015 739.780299l-3.230481-9.691445 8.683534 2.626382A640.410683 640.410683 0 0 0 428.156057 749.471744l9.109958 1.679851c9.894965 1.492483 19.163217 1.980285 29.161558 2.019051l11.048247 0.064609 11.807411 0.009692 12.285521 0.032305c8.570468 0.016152 17.140936 0.025844 25.711404 0.022613 10.896415 0 21.792829 0.045227 32.689244 0.100145 10.492604 0.045227 20.985209 0.041996 31.477813 0.045227l11.726648 0.07107c19.770548-0.051688 38.009847-1.246966 57.257057-5.908551 8.625386-1.737999 16.943876-1.253427 25.695251-0.949761 11.904325-0.717167 22.991338-4.487139 34.34002-7.988981C728.590851 736.549818 728.590851 736.549818 741.512777 736.549818l3.230482-9.691445 11.106396-2.626382L767.356631 720.397409c5.83425-11.6685 6.460963-19.198752 6.460963-32.304816-7.840379-7.985751-7.840379-7.985751-17.767649-15.344788-3.295091-2.584385-6.596644-5.16231-9.99511-7.824227L738.282296 659.018258l9.691445-9.691445z\"\n fill=\"#2B41CD\" p-id=\"11559\"></path>\n <path\n d=\"M224.635712 239.055643c12.518116 6.057153 12.518116 6.057153 16.152409 9.691445-1.175895 22.384007-6.480346 40.610385-15.144498 61.178861l-3.198177 8.308799c-3.127106 7.517331-6.124993 14.249655-10.73166 20.965826-10.360155 4.251314-10.360155 4.251314-19.38289 6.460963-3.026961 5.821328-3.026961 5.821328-3.230482 12.921927l-1.615241 7.837148c-3.992875 23.046256-5.495049 45.536869-6.260673 68.886791a1063.413182 1063.413182 0 0 1-6.257443 83.792233l-1.114516 10.46353-1.182357 9.762516-1.014371 8.615695c-2.206419 8.767527-5.792254 13.810309-11.629734 20.623394-0.60087-15.344788 0.390888-29.284316 3.030192-44.419122 5.669495-34.87628 6.987532-70.443883 6.509421-105.746587l-0.109837-8.738453c-0.090453-5.491819-0.229364-10.983638-0.423193-16.475456-0.33597-17.328304 2.48424-28.815896 10.376307-44.293134h6.460963l-0.60733-9.087345C185.869932 329.509129 185.869932 329.509129 190.715655 323.455206L195.561377 319.817684l-22.613371-12.921927 3.230482-22.613371h9.691444v25.843853h16.152409l9.691445-35.535298h-6.460964c4.063946-14.563011 9.381319-24.199538 19.38289-35.535298z\"\n fill=\"#D6E9FA\" p-id=\"11560\"></path>\n <path\n d=\"M357.08546 739.780299l6.208986 2.81375c13.064068 4.790804 26.208898 7.546405 39.825378 10.308467l7.720851 1.699233c48.030801 9.79159 98.32294 8.557546 147.138748 8.599542l8.780449 0.012922c43.769796-0.012922 86.538143-1.505404 129.526162-10.511987l6.535265-1.356802c19.124451-2.823441 19.124451-2.823441 35.460997-11.565125 6.460963-0.129219 12.921927-0.138911 19.38289 0-3.230482 9.691445-3.230482 9.691445-10.705817 14.605008-57.773934 23.178706-123.888972 23.378996-185.151825 22.681211a2998.51369 2998.51369 0 0 0-37.770792-0.109836c-116.329644-0.290743-116.329644-0.290743-160.490328-21.023975-5.049243-8.683535-5.049243-8.683535-6.460964-16.152408z\"\n fill=\"#3C55F6\" p-id=\"11561\"></path>\n <path\n d=\"M292.475827 749.471744c11.80418 3.934727 14.14951 9.484694 20.910908 19.4475 11.025634 14.294881 25.524036 25.507883 40.468244 35.470688h9.691445a437.413677 437.413677 0 0 1 20.59432 13.325737c21.376097 14.214119 42.997711 25.013619 66.628684 35.131488l6.512651 3.101263c29.626747 13.987986 61.676356 14.298112 93.83257 14.262576l12.492273 0.006461c32.010843-0.371505 60.183873-4.538827 90.682851-14.139818 4.296541-1.111286 8.602773-2.206419 12.921926-3.230482v9.691445c-7.061833 2.106274-14.130127 4.186704-21.201651 6.260674l-11.920477 3.521225c-63.291597 16.43023-137.095181 9.575148-199.068741-9.174568l-7.688546-2.313025c-15.432011-4.974942-28.43793-11.377756-41.931652-20.374648-5.414287-3.576143-11.112857-6.712941-16.808196-9.820664C337.379522 812.931326 308.402102 788.415201 292.475827 755.932707v-6.460963z\"\n fill=\"#C9CDE0\" p-id=\"11562\"></path>\n <path\n d=\"M861.040599 242.286124c15.448163 11.384217 15.448163 11.384217 19.38289 19.990221L883.65397 268.129977a1712.155278 1712.155278 0 0 0 16.152408 3.230482c7.64332 7.37842 9.571917 11.148392 10.298776 21.805751L909.497823 300.434794h9.691445l-3.230481 12.921927-22.613372 6.460963v6.460963h9.691445c3.434002 5.856863 3.434002 5.856863 6.460963 12.921927l-3.230481 9.691445v-6.460963l-7.268584 1.21143C890.114933 342.431056 890.114933 342.431056 883.65397 334.958951c-13.761852-23.550211-32.094835-55.031255-29.074335-82.981382l6.460964-9.691445z\"\n fill=\"#DBF2FB\" p-id=\"11563\"></path>\n <path\n d=\"M256.940529 613.791515c7.097368 10.647668 9.352244 19.037228 12.518116 31.409973l1.663698 6.460963c1.162973 4.519444 2.309794 9.038888 3.453385 13.564793 1.721847 6.816316 3.472768 13.626172 5.233381 20.436026C295.706309 747.682057 295.706309 747.682057 295.706309 765.624152c-31.109538-39.334345-49.788183-86.376619-58.14867-135.680229 4.448373-8.896746 10.877032-11.355143 19.38289-16.152408z\"\n fill=\"#E5F7FC\" p-id=\"11564\"></path>\n <path\n d=\"M179.408969 400.579725h3.230482c0.949762 117.628298 0.949762 117.628298-6.460963 132.449748a589.110635 589.110635 0 0 0-2.435784 20.416644l-1.292192 12.304905-1.318037 12.909005-1.356802 12.986536c-1.108055 10.608902-2.203188 21.224264-3.28863 31.836397 7.811305 0.348892 15.603226 0.6041 23.420992 0.80762l6.674175 0.329509c11.53282 0.222903 17.060174-0.025844 25.982764-7.64978L227.866194 610.561033h6.460963v16.152408h-6.460963v6.460964c-17.318612 8.657691-29.054952 11.53928-48.457225 9.691445-10.757504-4.464526-19.395812-9.701136-29.074335-16.152409-3.837812-11.710496-3.837812-11.710496-6.460963-22.613371h6.460963l6.460964-35.535299h6.460963c2.251646-13.984755 4.380533-27.985663 6.460963-41.996261l1.754152-11.684652C176.721208 476.903085 178.171695 438.877085 179.408969 400.579725z\"\n fill=\"#5AA9F8\" p-id=\"11565\"></path>\n <path\n d=\"M253.710047 400.579725h6.460964l-1.776765 10.66059c-7.872684 50.679796-11.070861 101.511425-14.0849 152.666102l-0.565335 9.087345c-0.355353 5.7018-0.688093 11.4036-0.994988 17.1054-0.794698 12.492273-1.350341 19.544414-8.421866 30.153316v-9.691445h-6.460963l-2.626382 6.260673C221.405231 623.48296 221.405231 623.48296 211.713786 626.713441a952.66904 952.66904 0 0 1 2.826671-12.721637l1.589397-7.152286C218.174749 600.869588 218.174749 600.869588 224.635712 597.639106l3.230482-9.691445h-6.460963l4.416068-19.560566L227.866194 558.873326l1.54094-6.687097c5.058934-23.159323 6.971379-46.215271 8.554315-69.836552l0.846386-11.587738c1.615241-22.445387 1.615241-22.445387 1.867219-44.932769 0.151833-12.20799 4.748808-16.960029 13.034993-25.249445z\"\n fill=\"#3235B6\" p-id=\"11566\"></path>\n <path\n d=\"M990.259865 659.018258h6.460963c9.445928 40.277645 4.936176 83.860073-16.152408 119.527821l-6.460963 9.691445h-6.460964v6.460963c-14.663156 8.58339-25.026541 11.022403-41.996261 9.691445-3.230482-3.230482-3.230482-3.230482-3.434002-11.510206L922.41975 785.007042l10.298776-2.222571c12.925157-3.68921 19.815774-10.008032 28.467004-20.3908l3.230482-7.268584c3.230482-5.653343 3.230482-5.653343 11.710496-8.076204L983.798901 746.241263c2.474549-11.177467 3.782894-21.838056 4.251314-33.273962l0.410272-9.562225 0.387657-9.862661 0.419963-10.046798c0.342431-8.160197 0.67194-16.317163 0.991758-24.477359z\"\n fill=\"#BDCDFB\" p-id=\"11567\"></path>\n <path\n d=\"M915.958787 361.813945c8.51878 8.51878 7.31381 12.495503 7.459182 24.380446l0.226134 11.20331 0.187368 12.065849c0.785007 32.653709 3.240173 64.276894 8.205423 96.539714 3.337088 22.151413 4.448373 43.365986 3.304783 65.791989h6.460963l6.460963 32.304817h6.460964l3.230481 22.613371-16.152408 3.230482-0.959453-6.664484c-2.852515-18.488047-6.586952-36.129707-11.758953-54.110567-15.073427-55.968095-31.697486-151.638809-13.125447-207.354927z\"\n fill=\"#7FD8F4\" p-id=\"11568\"></path>\n <path\n d=\"M780.278557 494.263693v6.460964l-9.109958-0.113067c-23.669739-0.167985-46.919516 0.429654-70.524645 2.41317-52.776379 4.377303-105.475226 4.887719-158.409899 4.96848l-11.384217 0.048458c-10.889954 0.038766-21.779907 0.029074-32.669861 0l-9.781898 0.041996c-22.755513-0.148602-44.373896-3.043114-66.702986-7.359037v-3.230482l6.964919 0.06461c29.24232 0.261669 58.48464 0.436115 87.72696 0.53949l7.048911 0.025844c65.061901 0.206751 129.37756-1.033754 194.113181-8.202193C765.805999 484.614245 765.805999 484.614245 780.278557 494.263693z\"\n fill=\"#3B39EC\" p-id=\"11569\"></path>\n <path\n d=\"M108.338373 429.65406l6.460963 3.230482-6.460963 9.691445 6.057153 1.21143C121.260299 445.806469 121.260299 445.806469 127.721263 452.267432c0.859308 10.434456 0.859308 10.434456 0.80762 23.220702l0.051688 12.653797c-0.901304 13.180365-2.636073 22.904115-7.320272 35.196097l-9.691445 3.230482-3.230481-61.379152-6.460964 32.304817H92.185964l-3.230481-6.460963-6.460964 6.460963c-0.80762-19.444269-0.387658-36.5529 6.460964-54.918188 6.17022-5.824558 11.758953-8.941973 19.38289-12.921927z\"\n fill=\"#62E6FC\" p-id=\"11570\"></path>\n <path\n d=\"M935.341677 545.9514c6.732324 12.427663 11.296994 25.520805 16.152408 38.76578l5.856863-3.230482c7.065063-3.230482 7.065063-3.230482 16.756509-3.230482l3.230481-6.460963 19.38289 3.230482-1.298654 6.409275c-3.850734 19.902997-6.057153 39.124363-6.651561 59.398867-2.177345 10.612132-6.509421 14.543628-14.663156 21.414862l-0.594409-6.951996-0.817312-9.000122-0.797929-8.971048c-0.245517-7.258892-0.245517-7.258892-4.251314-10.612132-0.129219-6.460963-0.138911-12.921927 0-19.38289h-6.460963v9.691445h-6.460963v-12.921926h-6.460964c-4.251314-11.694344-6.460963-19.693016-6.460963-32.304817h-6.460963v-25.843853z\"\n fill=\"#BBC6F7\" p-id=\"11571\"></path>\n <path\n d=\"M825.5053 384.427317h9.691445c9.184259 9.184259 7.869453 16.142717 8.754606 29.009725l1.066059 14.294882 0.533029 7.633628c3.295091 46.906594 8.053591 93.419069 14.61793 139.97677 2.707144 19.492726 4.813418 38.151988 4.102711 57.832083l-1.011141-6.260674L861.040599 620.252478l-9.691445-3.230482c-4.839262-23.123788-7.10706-45.905144-8.076205-69.455355-0.965914-23.020412-2.422861-45.914836-4.645432-68.851256l-0.730089-7.998672c-1.563553-15.441702-4.832801-29.342465-9.161646-44.293134-0.87223-7.449491-1.557092-14.924825-2.019051-22.413082l-0.733319-11.190389L825.5053 384.427317z\"\n fill=\"#9BA4F5\" p-id=\"11572\"></path>\n <path\n d=\"M848.118672 613.791515l12.921927 6.460963c1.114516 22.60045-2.125657 39.815686-9.894966 60.975341l-3.039883 8.522011c-8.147275 21.954353-18.135924 40.962507-32.291895 59.721914-3.514764-10.705816-3.466307-12.392128 1.414951-23.420992L822.274819 717.166928h-6.460964c5.091239-17.431679 10.466761-34.708295 16.355929-51.891227 4.031641-11.910786 7.478565-23.637434 10.095255-35.939109C844.88819 617.021996 844.88819 617.021996 848.118672 613.791515z\"\n fill=\"#E3EFFB\" p-id=\"11573\"></path>\n <path\n d=\"M263.401492 374.735872c6.460963 9.691445 6.460963 9.691445 5.440131 18.44605L266.631974 403.810207c-6.176681 46.195888-8.421866 92.630831-10.667051 139.146536l-0.387657 7.620707a2565.3061 2565.3061 0 0 0-0.678401 14.378873c-0.827003 16.168561-0.827003 16.168561-4.419299 19.760857a466.817521 466.817521 0 0 0-1.818762 19.58641l-0.817311 10.812422L247.249084 623.48296l-9.691445 3.230481c7.236279-214.75596 7.236279-214.75596 25.843853-251.977569z\"\n fill=\"#BEEAFD\" p-id=\"11574\"></path>\n <path\n d=\"M828.735782 426.423579c7.64655 11.46821 8.257111 19.085686 9.894965 32.708626l1.524788 12.34044L841.657709 484.572248l0.849616 6.951997c2.138579 17.993783 3.233712 35.922956 3.996106 54.023345 0.891613 20.649239 2.141809 41.010965 5.201076 61.479296-0.47165 9.013044-4.189935 13.044685-10.046798 19.686555l-3.230482-6.460963-9.691445 6.460963-0.478111-10.763965c-1.324497-27.016518-3.320935-53.199572-9.213334-79.689521h6.460963l6.460964 32.304816c3.243404-16.210557 3.82489-30.631427 3.837812-47.045504l0.119528-8.321721 0.016152-8.043899 0.041996-7.275045c-0.40381-7.048911-0.40381-7.048911-4.151169-13.432342-4.296541-8.793371-2.112735-15.780903-0.597639-25.165453 1.182356-11.306686-0.697784-21.670071-2.497162-32.857228z\"\n fill=\"#B6C6FA\" p-id=\"11575\"></path>\n <path\n d=\"M848.118672 410.27117h3.230482l0.193828 6.848621c0.310126 10.437686 0.665479 20.875372 1.017602 31.313059 0.096914 3.55353 0.20029 7.10706 0.303665 10.767195 0.723628 20.442488 2.629612 39.896448 6.793703 59.928666 1.67985 9.025966 1.87691 17.670735 1.382647 26.822689h6.460963l1.185587 6.83893 1.641084 8.909668 1.589397 8.857981c1.495713 8.231267 1.495713 8.231267 8.505859 14.159201 1.337419 6.990762 1.337419 6.990762 2.019051 14.940977l0.733319 8.001903L883.65397 613.791515l-12.921926-3.230482-3.230482 9.691445c-10.402151-25.759861-13.138369-51.923532-15.942427-79.318016a2522.431148 2522.431148 0 0 0-2.552081-23.388687c-2.778214-25.614489-4.638972-51.009305-4.684198-76.788549l-0.016152-7.052142c0.151833-16.113642 0.151833-16.113642 3.811968-23.433914z\"\n fill=\"#362DA6\" p-id=\"11576\"></path>\n <path\n d=\"M189.100414 339.200574l9.691445 3.230482-6.460963 3.230481c-2.015821 5.811636-2.015821 5.811636-3.230482 12.921927l-1.615241 7.837148c-3.992875 23.046256-5.495049 45.536869-6.260673 68.886791a1063.413182 1063.413182 0 0 1-6.257443 83.792233l-1.114516 10.46353-1.182357 9.762516-1.014371 8.615695c-2.206419 8.767527-5.792254 13.810309-11.629734 20.623394-0.60087-15.344788 0.390888-29.284316 3.030192-44.419122 5.669495-34.87628 6.987532-70.443883 6.509421-105.746587l-0.109837-8.738453c-0.090453-5.491819-0.229364-10.983638-0.423193-16.475456-0.33597-17.328304 2.48424-28.815896 10.376307-44.293134h6.460963l3.230482-9.691445z\"\n fill=\"#82E8F7\" p-id=\"11577\"></path>\n <path\n d=\"M948.263603 432.884542l6.460964 9.691445 6.460963-6.460963-0.258439 5.611346c-2.209649 48.767351-2.209649 48.767351 13.193287 94.268685L977.337938 542.720918l-3.230481 6.460964c-6.018387-0.755933-6.018387-0.755933-12.921927-3.230482-3.973492-6.10561-3.973492-6.10561-7.068294-13.729547l-3.165872-7.520561c-5.708261-16.620828-6.418967-32.356504-6.322053-49.820489l-0.038765-6.838929c0.022613-12.127228 0.775316-23.372535 3.673057-35.157332z m22.613372 61.379151c6.460963 9.691445 6.460963 9.691445 6.460963 16.152409h6.460963l1.211431 6.057153c1.605549 7.481796 1.605549 7.481796 8.480014 13.325737-18.97908-2.826671-18.97908-2.826671-22.613371-6.460964a240.528742 240.528742 0 0 1-0.20352-14.740688l0.090453-8.085895L970.876975 494.263693z\"\n fill=\"#6AC4F6\" p-id=\"11578\"></path>\n <path\n d=\"M108.338373 407.040689l3.230481 9.691445 22.613372-3.230482 1.414951 10.902876c1.117747 11.13224 1.117747 11.13224 5.046012 18.171459 0.452267 10.169556-0.161524 20.31973-0.60733 30.489286l-0.180907 8.534932c-0.910996 20.788149-0.910996 20.788149-9.067962 29.132484L124.490781 513.646583l0.258439-5.482127c0.33274-8.198962 0.542721-16.397925 0.752702-24.603348l0.40704-8.625386c0.151833-7.869453 0.161524-14.950669-1.418181-22.66829-7.737004-6.396354-7.737004-6.396354-16.152408-9.691445v-9.691445l-6.460964 6.460963H92.185964c4.312693-11.610351 9.562226-21.821904 16.152409-32.304816z\"\n fill=\"#75EEFD\" p-id=\"11579\"></path>\n <path\n d=\"M298.93679 723.627891c13.047915 1.728308 19.534723 5.291529 29.478146 13.729547 60.691059 44.115457 158.367902 38.077687 229.971528 39.776921l16.70159 0.419962c13.477569 0.342431 26.955139 0.67194 40.435939 0.991758v3.230482c-20.616934 0.164755-41.233868 0.277821-61.854033 0.355353-6.987532 0.032305-13.978294 0.074301-20.965825 0.129219-166.06291 1.311576-166.06291 1.311576-214.384455-42.480834l-9.691445-3.230481-3.230481 6.460963-6.460964-19.38289z\"\n fill=\"#CFE8F9\" p-id=\"11580\"></path>\n <path\n d=\"M134.182226 416.732134c11.439136 9.358705 15.22526 20.891525 16.872806 35.425461 0.381197 7.116751 0.503955 14.181814 0.491033 21.308257v7.70793c-0.516877 26.580403-5.63073 52.023677-20.594321 74.469063h-9.691445c-2.222571-7.268584-2.222571-7.268584-3.230481-16.152408a267.448346 267.448346 0 0 1 9.691445-12.921927c6.244521-17.877485 7.969598-34.863358 8.883824-53.706758l0.542721-8.150505c0.775316-14.769762 0.006461-24.609809-6.196064-38.287668l3.230482-9.691445z\"\n fill=\"#74E0F5\" p-id=\"11581\"></path>\n <path\n d=\"M292.475827 749.471744c11.80418 3.934727 14.14951 9.484694 20.910908 19.4475 11.025634 14.294881 25.524036 25.507883 40.468244 35.470688h9.691445a415.123354 415.123354 0 0 1 22.613371 13.933068l6.157298 3.954109c9.575148 6.23806 18.562348 12.262908 26.147519 20.878603-11.296994-1.376185-20.969056-3.618139-31.296907-8.279724-10.237396-5.285068-10.237396-5.285068-20.3908-4.642202-30.350375-18.436359-58.756-41.91873-74.301078-74.301079v-6.460963z\"\n fill=\"#CBD6E5\" p-id=\"11582\"></path>\n <path\n d=\"M344.163534 730.088854l8.683534 2.626382A643.721927 643.721927 0 0 0 428.156057 749.471744l6.150837 1.104825c63.123612 11.20008 126.996695 10.941641 190.908544 11.817102v3.230481c-17.858103 0.080762-35.712975 0.138911-53.571078 0.177677-6.050692 0.016152-12.098154 0.038766-18.145615 0.06461-63.38205 0.290743-125.882179 0.258439-186.72184-19.625176l-11.510206-3.230482L347.394015 739.780299l-3.230481-9.691445z\"\n fill=\"#2F49E4\" p-id=\"11583\"></path>\n <path\n d=\"M812.583374 629.943923h3.230481c3.010809 25.898771-8.121431 51.558487-21.540851 73.364238-5.113852 7.365498-5.113852 7.365498-4.303002 17.089248-9.652679 11.032095-19.4475 18.866013-32.304816 25.843854v-6.460964l-12.921927-3.230481 5.314142-2.965583c14.155971-8.289416 22.539071-14.401487 30.221156-29.339234h6.460963c1.621702-4.777882 3.233712-9.555765 4.845723-14.336878l2.726526-8.063282c2.28072-6.018387 2.28072-6.018387 2.119196-9.904657l-12.921926 3.230482v-12.921927l7.268584-4.241622c12.133689-7.44626 15.396476-15.480468 21.805751-28.063194z\"\n fill=\"#4C61E6\" p-id=\"11584\"></path>\n <path\n d=\"M189.100414 345.661537c26.800076 0.865769 44.086383 2.574694 64.005533 21.805751 5.714722 10.828575 6.050692 20.946443 7.065064 33.112437h-6.460964l-3.230481 6.460964c-9.691445-18.57527-9.691445-18.57527-9.691445-25.843854l-9.691445-3.230481-7.268584-8.076204c-10.644437-9.675293-17.386452-10.476452-31.497196-11.306686l-3.230482-12.921927z\"\n fill=\"#7281EA\" p-id=\"11585\"></path>\n <path\n d=\"M263.401492 558.873326h3.230482l0.959453 9.604222c6.719402 62.412906 22.774896 116.109972 63.65018 164.841788-22.148182-9.788359-34.559693-30.763877-45.226743-51.687707v-6.460963h-6.460963c-2.096583-6.661253-4.180243-13.322506-6.260674-19.99022l-3.521225-11.242077c-5.705031-19.547644-6.780781-36.746729-6.57403-56.998618l0.045227-8.18604c0.038766-6.625718 0.096914-13.254666 0.158293-19.880385z\"\n fill=\"#8ABBF4\" p-id=\"11586\"></path>\n <path\n d=\"M747.973741 649.326813l3.230481 6.460963c8.31526 2.94943 8.31526 2.94943 17.97117 5.249533 3.266017 0.839925 6.535264 1.67985 9.904656 2.55208L786.73952 665.479221v6.460963h6.460964c5.288298-6.331744 5.288298-6.331744 9.691445-12.921926-2.112735 16.378542-9.223025 30.431137-16.152409 45.226743-1.747691-2.34533-3.498612-4.687429-5.297989-7.10706-8.030977-9.529921-16.468995-16.830809-26.199207-24.593657l-9.639757-7.733773L738.282296 659.018258l9.691445-9.691445z\"\n fill=\"#354CDF\" p-id=\"11587\"></path>\n <path\n d=\"M266.631974 552.412363h3.230482l3.230481 29.074335 6.460964-19.38289c2.455166 7.636859 3.495381 11.920477 1.41495 19.7867L279.553901 587.947661l6.460963 6.460964c0.129219 7.536714 0.13568 15.076658 0 22.613371l3.230481 3.230482v12.921927l-3.230481 3.230481 6.460963 3.230482a252.097097 252.097097 0 0 1 6.460963 16.152408l-6.460963 3.230482v9.691445h-6.460963c-13.942759-37.845093-21.414863-75.906627-19.38289-116.29734z\"\n fill=\"#5D8AF6\" p-id=\"11588\"></path>\n <path\n d=\"M915.958787 352.1225v19.38289l-6.460964-12.921926c-5.792254 0.193829-11.578046 0.481342-17.363838 0.80762l-9.765747 0.452268c-8.806293 1.059598-8.806293 1.059598-12.54396 8.127891L867.501562 374.735872l-6.460963 12.921927h-6.460964l-3.230481 16.152408-6.460964-3.230482c-0.943301-16.061955-1.053137-26.341347 9.691445-38.76578 17.428449-12.518116 41.11434-19.822235 61.379152-9.691445z\"\n fill=\"#5C69E7\" p-id=\"11589\"></path>\n <path\n d=\"M250.479566 445.806469h3.230481c0.442576 32.072222-0.251978 64.05399-1.414951 96.106829l-0.381197 10.996559A1314.883566 1314.883566 0 0 1 247.249084 623.48296l-9.691445 3.230481c2.035203-60.487539 7.491487-120.652029 12.921927-180.906972z\"\n fill=\"#8FBAF0\" p-id=\"11590\"></path>\n <path\n d=\"M247.249084 403.810207l6.460963 6.460963c-1.486022 7.094138-3.004348 14.181814-4.606667 21.250109-2.358252 14.052595-2.926816 27.924283-3.469537 42.148094-0.80762 20.284194-2.090122 40.251801-4.845722 60.371241-3.333857 24.41598-5.117083 48.69305-6.460964 73.289937l-9.691445-3.230481 3.230482-16.152409h-6.460963l4.416068-19.560566L227.866194 558.873326l1.54094-6.687097c5.058934-23.159323 6.971379-46.215271 8.554315-69.836552l0.846386-11.587738c1.61201-22.438926 1.61201-22.438926 1.954442-44.919847 0.025844-9.38778 1.47633-14.201197 6.486807-22.031885z\"\n fill=\"#3C3EDA\" p-id=\"11591\"></path>\n <path\n d=\"M870.732044 610.561033c15.105732 5.456284 15.105732 5.456284 21.401941 11.510206 11.639425 7.04245 22.623063 5.679187 35.939108 5.249533l7.759617-0.13568A1658.04471 1658.04471 0 0 0 954.724567 626.713441c-17.021408 14.262577-28.282867 17.092478-50.0337 16.872806-10.951333-0.969144-18.426667-4.29008-27.49786-10.411842-6.460963-9.691445-6.460963-9.691445-6.460963-22.613372z\"\n fill=\"#6062D4\" p-id=\"11592\"></path>\n <path\n d=\"M783.509039 497.494175c14.540398 4.441912 20.949674 9.768977 29.074335 22.613372 9.613913 22.67152 16.685438 44.067 16.355928 68.851255l-0.090453 8.641539L828.735782 604.10007h-3.230482l-2.145039-10.05649c-5.795484-25.763091-12.463198-47.782054-26.373653-70.579563C793.200484 516.877065 793.200484 516.877065 793.200484 510.416102l-9.691445-3.230482v-9.691445z\"\n fill=\"#383EDD\" p-id=\"11593\"></path>\n <path\n d=\"M806.12241 743.010781c2.019051 5.856863 2.019051 5.856863 3.230482 12.921926l-6.460963 9.691445h-6.460964l-2.600537 5.679187c-12.00447 22.516457-31.778248 38.113223-52.317651 52.469483l-6.57403 5.249533c-8.302338 5.811636-15.780903 6.541725-25.730786 7.672394 11.839715-12.563343 25.314054-22.539071 39.201895-32.669861 12.663488-9.491155 22.035115-19.534723 31.868701-31.939772l16.152408-16.152409a313.321185 313.321185 0 0 0 9.691445-12.921926z\"\n fill=\"#CCCEE4\" p-id=\"11594\"></path>\n <path\n d=\"M176.178488 284.282386h9.691444v25.843853c10.334311 0.287513 19.147065-0.290743 29.074335-3.230482l6.460964 9.691445-12.921927 25.843854-19.38289-3.230482-3.230482-9.691445 9.691445-9.691445-22.613371-12.921927 3.230482-22.613371z\"\n fill=\"#CCF0FB\" p-id=\"11595\"></path>\n <path\n d=\"M227.866194 610.561033h6.460963v16.152408h-6.460963v6.460964c-17.341226 8.670613-29.045261 11.258229-48.457225 9.691445-9.691445-3.230482-9.691445-3.230482-16.152408-6.460964l6.460963-6.460963-3.230481-6.460963 10.143712 0.452267c4.42576 0.122758 8.85152 0.242286 13.27728 0.355353l6.674175 0.329509c11.53282 0.222903 17.060174-0.025844 25.982764-7.64978L227.866194 610.561033z\"\n fill=\"#6373DF\" p-id=\"11596\"></path>\n <path\n d=\"M282.784382 675.170666c9.410393 12.333979 18.058392 25.136378 26.751619 37.984003 5.469205 7.940524 5.469205 7.940524 15.244643 13.703704l-12.921927-16.152409 12.921927 6.460964 10.095255 4.441912C344.919466 727.284796 346.101823 729.765806 350.624497 739.780299c6.5708 4.096251 6.5708 4.096251 12.921927 6.460964v9.691444c-30.075784-7.71116-52.947594-27.084358-71.070597-51.687706-9.691445-16.56914-9.691445-16.56914-9.691445-29.074335z\"\n fill=\"#5984F7\" p-id=\"11597\"></path>\n <path\n d=\"M1003.181791 558.873326h3.230482c4.742347 25.827701 1.024063 46.131278-6.460963 71.070597-1.282501 4.574362-2.558541 9.151955-3.837812 13.729547L993.490346 652.557294h-3.230481c-3.101262-26.338117-5.130005-51.91384 3.230481-77.531559l6.460964-3.230482c2.106274-6.541725 2.106274-6.541725 3.230481-12.921927z\"\n fill=\"#C2D0FB\" p-id=\"11598\"></path>\n <path\n d=\"M922.41975 526.56851c7.617476 7.37842 12.556882 12.94777 13.781235 23.698813A298.215453 298.215453 0 0 1 935.341677 571.795253h6.460963l6.460963 32.304817h6.460964l3.230481 22.613371-16.152408 3.230482-0.959453-6.664484c-3.466307-22.477691-8.273264-44.289904-14.155971-66.234565-2.810519-10.692894-4.267466-19.311819-4.267466-30.476364z\"\n fill=\"#6EB6EF\" p-id=\"11599\"></path>\n <path\n d=\"M909.497823 358.583464c-6.460963 6.460963-6.460963 6.460963-14.940977 10.095255-18.659262 10.366616-34.262488 25.28821-43.207692 44.822933l-3.230482 3.230482a224.851215 224.851215 0 0 0-1.818761 13.125447L844.88819 442.575987h-3.230481v-41.996262h6.460963l6.460963-12.921926h6.460964l0.60733-5.453053c8.573698-24.406289 25.21714-25.840623 47.849894-23.621282z\"\n fill=\"#5154E1\" p-id=\"11600\"></path>\n <path\n d=\"M822.274819 613.791515h3.230481c5.29799 21.182268 2.115965 35.599908-5.453053 55.525518l-2.503623 6.622488c-5.575811 13.910454-11.813871 26.199206-21.117659 37.996925h-9.691445c4.028411-10.553984 8.638308-20.229276 14.133358-30.085476 11.303455-22.099725 16.055494-45.982676 21.401941-70.059455z\"\n fill=\"#798FF1\" p-id=\"11601\"></path>\n <path\n d=\"M189.100414 339.200574l9.691445 3.230482-6.460963 3.230481c-2.015821 5.811636-2.015821 5.811636-3.230482 12.921927l-1.615241 7.837148c-4.739117 27.358949-6.082997 54.456229-6.971379 82.180223-0.549182 16.549758-1.582936 32.556794-4.335306 48.89334h-3.230482c0.377966-20.125901 0.781777-40.251801 1.201739-60.374472 0.142141-6.848621 0.274591-13.697242 0.40381-20.549093 0.187368-9.833586 0.394119-19.663942 0.6041-29.494298l0.161524-9.31994 0.193829-8.622155 0.155063-7.607784C176.178488 355.352982 176.178488 355.352982 179.408969 348.892019h6.460963l3.230482-9.691445z\"\n fill=\"#64E0F5\" p-id=\"11602\"></path>\n <path\n d=\"M489.535208 48.457225h109.836376v6.460963l6.460964 3.230482c-7.333193 0.087223-14.672848 0.148602-22.009272 0.20352l-12.379205 0.113067C560.605805 58.14867 560.605805 58.14867 550.91436 54.918188c-11.823563-0.452267-22.619833 0-34.323868 1.818761-10.272932 1.330958-17.160319 0.878691-27.055284-1.818761v-6.460963z\"\n fill=\"#72DDFC\" p-id=\"11603\"></path>\n <path\n d=\"M861.040599 545.9514h6.460963l1.185587 6.83893 1.641084 8.909668 1.589397 8.857981c1.495713 8.231267 1.495713 8.231267 8.505859 14.159201 1.337419 6.990762 1.337419 6.990762 2.019051 14.940977l0.733319 8.001903L883.65397 613.791515l-12.921926-3.230482-3.230482 9.691445c-4.732656-7.517331-6.848621-11.119318-4.945868-19.990221 2.132118-11.296994 1.263118-21.266261 0.303666-32.708626l-1.00145-12.275831L861.040599 545.9514z\"\n fill=\"#352FCE\" p-id=\"11604\"></path>\n <path\n d=\"M211.713786 274.590941c-2.768523 27.688458-2.768523 27.688458-9.691445 38.76578l-16.152409-3.230482a631.914517 631.914517 0 0 1-0.60733-14.133357l-0.339201-7.946985L185.869932 281.051904c10.427995-6.951997 13.839383-7.10706 25.843854-6.460963z\"\n fill=\"#E5FBFD\" p-id=\"11605\"></path>\n <path\n d=\"M983.798901 581.486698l6.460964 3.230482-3.030192 8.076204c-3.811968 12.569804-5.310912 24.105854-6.661253 37.150539h-9.691445c-3.230482-3.230482-3.230482-3.230482-3.434002-13.125447L967.646493 607.330551h-6.460963v9.691445h-6.460963v-12.921926c6.360818-6.208986 6.360818-6.208986 14.537167-12.114307l8.176349-6.008695L983.798901 581.486698z\"\n fill=\"#A1A6F1\" p-id=\"11606\"></path>\n <path\n d=\"M780.278557 494.263693v6.460964c-38.936995 0.358583-77.46695-0.193829-116.297339-3.230482v-3.230482c11.707266-1.098364 23.420992-2.167653 35.131488-3.230481 3.272478-0.306896 6.544956-0.613792 9.917578-0.93684 57.289362-5.136466 57.289362-5.136466 71.248273 4.167321z\"\n fill=\"#5954ED\" p-id=\"11607\"></path>\n <path\n d=\"M951.494085 377.966354c16.798505 7.032759 25.204218 14.491941 35.535298 29.074335v9.691445h-32.304816l0.20352-12.114307c0.016152-9.413624-0.429654-17.63843-3.434002-26.651473z\"\n fill=\"#DFF3FA\" p-id=\"11608\"></path>\n <path\n d=\"M1003.181791 520.107547c2.209649 5.705031 2.209649 5.705031 3.230482 12.921926-3.925035 6.208986-3.925035 6.208986-9.491155 12.114306l-5.537046 6.008696L987.029383 555.642845l-16.152408-3.230482 1.818761-5.453053c1.657237-8.757836 0.326279-15.041123-1.818761-23.621282l19.560566 3.156181L996.720828 526.56851l6.460963-6.460963z\"\n fill=\"#71C9F9\" p-id=\"11609\"></path>\n <path\n d=\"M137.412708 494.263693c8.131122 12.195068 7.649781 17.799954 6.460963 32.304817-2.225802 9.142263-4.522674 17.932404-9.691445 25.843853-6.816316 2.34856-6.816316 2.34856-12.921927 3.230482-2.222571-7.268584-2.222571-7.268584-3.230481-16.152408a3209.822726 3209.822726 0 0 1 9.691445-12.921927c3.188485-8.302338 3.188485-8.302338 5.453053-16.960029 0.80762-2.88159 1.621702-5.763179 2.458396-8.731992L137.412708 494.263693z\"\n fill=\"#58D8F8\" p-id=\"11610\"></path>\n <path\n d=\"M357.08546 801.159451l6.864774 4.377302c18.123002 11.548972 36.275079 23.033334 54.514378 34.388478-8.108509 2.939738-11.923708 3.572913-20.203433 0.720397l-7.455951-3.747359C381.56605 832.301294 377.26951 830.233786 366.776905 830.233786v-9.691445c-6.267134-5.507971-6.267134-5.507971-12.921926-9.691445l3.230481-9.691445z\"\n fill=\"#BDD0F1\" p-id=\"11611\"></path>\n <path\n d=\"M990.259865 659.018258h6.460963c6.519112 27.859674 8.005134 58.675238-6.460963 83.992523-3.117415-10.292315-3.398467-19.021076-2.839594-29.730123l0.474881-9.5913 0.549182-9.943422 0.510416-10.095256c0.419963-8.211884 0.852847-16.423769 1.305115-24.632422z\"\n fill=\"#CDDBFA\" p-id=\"11612\"></path>\n <path\n d=\"M870.732044 300.434794h6.460963v6.460963l12.921926 3.230482v6.460963l6.460964 3.230482-3.230482 6.460963h9.691445c3.434002 5.856863 3.434002 5.856863 6.460963 12.921927l-3.230481 9.691445v-6.460963l-7.268584 1.21143C890.114933 342.431056 890.114933 342.431056 883.04664 334.151331 877.005639 322.696043 873.736391 312.956141 870.732044 300.434794z\"\n fill=\"#BADCF5\" p-id=\"11613\"></path>\n <path\n d=\"M512.14858 197.059381h100.144931v6.460963c-13.826461 2.355021-25.239753 3.133567-39.182512 2.523006l-10.12756-0.439345-10.654128-0.46842-10.696125-0.46842L515.379061 203.520344l-3.230481-6.460963z\"\n fill=\"#D1E6FC\" p-id=\"11614\"></path>\n <path\n d=\"M192.330896 358.583464c13.713395-1.07575 20.529711-1.418181 32.104526 6.460963L231.096676 371.50539l-3.230482 6.460964-5.453053-5.249533L214.944267 368.274909c-7.730543 2.157962-13.635863 3.944418-19.38289 9.691445a819.027245 819.027245 0 0 0-1.818761 27.662614l-0.419962 7.892067A5695.27455 5695.27455 0 0 0 192.330896 432.884542h-3.230482c-0.093684-10.563675-0.151833-21.133811-0.20352-31.700717l-0.080762-9.090575-0.032305-8.738453-0.051688-8.04713C189.100414 368.274909 189.100414 368.274909 192.330896 358.583464z\"\n fill=\"#4A4DF9\" p-id=\"11615\"></path>\n <path\n d=\"M970.876975 494.263693c6.460963 9.691445 6.460963 9.691445 6.460963 16.152409h6.460963l1.211431 6.057153c1.605549 7.481796 1.605549 7.481796 8.480014 13.325737-18.97908-2.826671-18.97908-2.826671-22.613371-6.460964a240.528742 240.528742 0 0 1-0.20352-14.740688l0.090453-8.085895L970.876975 494.263693z m-16.152408 3.230482c8.037438 8.037438 10.686433 15.725985 14.940977 26.247663l4.367611 10.7252L977.337938 542.720918c-9.691445-3.230482-9.691445-3.230482-13.464647-9.452389l-3.295092-7.71116-3.366162-7.633628C954.724567 510.416102 954.724567 510.416102 954.724567 497.494175z\"\n fill=\"#55B4F2\" p-id=\"11616\"></path>\n <path\n d=\"M793.200484 710.705964c-4.283619 18.210225-17.657813 25.62418-32.304817 35.535299l-3.230481-6.460964c-6.541725-2.106274-6.541725-2.106274-12.921927-3.230481l5.201075-3.191716c14.411179-8.890286 14.411179-8.890286 28.111652-18.817556C783.509039 710.705964 783.509039 710.705964 793.200484 710.705964z\"\n fill=\"#4A60F2\" p-id=\"11617\"></path>\n <path\n d=\"M861.040599 242.286124c13.61325 9.313479 18.607574 16.291319 22.613371 32.304817h-19.38289v-6.460964h-9.691445c-0.646096-12.00447-0.491033-15.415858 6.460964-25.843853z\"\n fill=\"#C3E3FB\" p-id=\"11618\"></path>\n <path\n d=\"M919.189268 510.416102h3.230482l0.959453 8.302337c2.674839 20.988439 6.137915 40.300259 12.366284 60.548918 5.411057 17.780571 7.333193 32.175597 6.057153 50.676566h-3.230482c-3.295091-13.244975-6.50296-26.506102-9.691445-39.776921l-2.800827-11.235615c-5.537046-23.27239-8.202193-44.60003-6.890618-68.515285z\"\n fill=\"#4C64F1\" p-id=\"11619\"></path>\n <path\n d=\"M809.352892 365.044427l7.672394 3.230482c7.972829 3.614909 7.972829 3.614909 14.940978 3.230481l6.460963 12.921927-6.460963 9.691445-3.230482-3.230482v29.074335c-6.460963-12.921927-6.460963-12.921927-7.875914-20.99813-1.288962-8.334643-1.288962-8.334643-6.864774-14.740688C809.352892 377.966354 809.352892 377.966354 809.352892 365.044427z\"\n fill=\"#BBD0FB\" p-id=\"11620\"></path>\n <path\n d=\"M851.349154 533.029473h3.230481c1.644315 11.842946 3.246634 23.689122 4.845723 35.535298l1.402029 10.082334c2.455166 18.365288 3.976723 36.000488 3.443693 54.5273l-3.230481-12.921927h-6.460964c-3.456615-29.132484-3.559991-57.945149-3.230481-87.223005z\"\n fill=\"#7C79E1\" p-id=\"11621\"></path>\n <path\n d=\"M189.100414 335.970092l-3.230482 12.921927h-6.460963l-2.626381 10.902875C172.948006 371.50539 172.948006 371.50539 163.256561 377.966354c-5.197845-12.992997-1.905984-22.93642 3.230482-35.535298 8.124661-4.671276 13.296662-6.460963 22.613371-6.460964z\"\n fill=\"#CFF1F9\" p-id=\"11622\"></path>\n <path\n d=\"M302.167272 678.401148h12.921927l3.230481 6.460963 9.691445 3.230482v6.460963h6.460964v6.460963l-9.691445-3.230481v19.38289c-10.773656-9.65914-16.846962-19.043689-22.613372-32.304817v-6.460963z\"\n fill=\"#3353EB\" p-id=\"11623\"></path>\n <path\n d=\"M915.958787 361.813945c6.460963 6.460963 6.460963 6.460963 7.000453 12.67641l-0.387657 7.501179-0.416732 8.195732-0.542721 8.573698-0.390889 8.538163c-1.201739 21.107967-1.201739 21.107967-8.492936 32.046378-0.093684-11.103165-0.151833-22.209561-0.20352-33.315957l-0.080762-9.555765-0.032305-9.181029-0.051688-8.460631C912.728305 371.50539 912.728305 371.50539 915.958787 361.813945z\"\n fill=\"#6EC3F0\" p-id=\"11624\"></path>\n <path\n d=\"M819.044337 591.178143l3.230482 12.921927h6.460963v25.843853l-6.460963-3.230482-3.230482 16.152409c-5.049243-3.634292-5.049243-3.634292-9.691445-9.691445 1.211431-9.491155 1.211431-9.491155 3.230482-19.38289-1.156512-7.355807-1.156512-7.355807-3.230482-12.921927l9.691445-3.230482v-6.460963z\"\n fill=\"#6077EF\" p-id=\"11625\"></path>\n <path\n d=\"M894.960656 348.488209l7.772539-0.025844C909.497823 348.892019 909.497823 348.892019 915.958787 352.1225v19.38289l-6.460964-12.921926c-16.055494 1.330958-30.511899 2.571463-45.226743 9.691445l3.230482-9.691445h6.460963v-6.460964c7.64332-3.82166 12.495503-3.663366 20.998131-3.634291z\"\n fill=\"#6E7AE7\" p-id=\"11626\"></path>\n <path\n d=\"M221.405231 242.286124l3.230481 6.460964c6.515881 3.663366 6.515881 3.663366 12.921927 6.460963-5.653343 12.518116-5.653343 12.518116-12.921927 16.152408-6.460963 0.129219-12.921927 0.138911-19.38289 0 2.0772-4.244853 4.167321-8.483245 6.260674-12.721637l3.521225-7.152286C218.174749 245.516606 218.174749 245.516606 221.405231 242.286124z\"\n fill=\"#C1D6F8\" p-id=\"11627\"></path>\n <path\n d=\"M783.509039 497.494175c11.800949 4.038102 15.441702 5.398135 22.613371 16.152408 4.845722 12.821782 7.753156 25.210679 9.691445 38.76578-7.614245-6.961688-12.243525-13.558332-16.759738-22.816892l-3.366162-6.77432C793.200484 516.877065 793.200484 516.877065 793.200484 510.416102l-9.691445-3.230482v-9.691445z\"\n fill=\"#4151F6\" p-id=\"11628\"></path>\n <path\n d=\"M263.401492 374.735872c6.460963 9.691445 6.460963 9.691445 5.453053 18.171459L266.631974 403.810207a930.543471 930.543471 0 0 0-1.818761 15.748598l-0.817312 7.64655L263.401492 432.884542h-6.460963l-3.230482 12.921927c-0.878691-22.839505-0.694554-50.298599 9.691445-71.070597z\"\n fill=\"#9BC5F4\" p-id=\"11629\"></path>\n <path\n d=\"M549.906449 90.049676l11.545742 0.177677L570.29725 90.453486l-9.691445 6.460964 6.460963 6.460963h-48.457225v-6.460963c11.733109-7.820996 17.389683-7.139364 31.296906-6.864774z\"\n fill=\"#53BFD0\" p-id=\"11630\"></path>\n <path\n d=\"M806.12241 743.010781c2.019051 5.856863 2.019051 5.856863 3.230482 12.921926l-6.460963 9.691445h-6.460964l-2.222571 5.453053c-5.398135 9.510538-12.485812 16.133025-20.3908 23.621282 0-12.921927 0-12.921927 7.068294-20.39403L789.970002 765.624152c5.675956-7.365498 10.886723-14.940978 16.152408-22.613371z\"\n fill=\"#D5D8E1\" p-id=\"11631\"></path>\n <path\n d=\"M237.557639 584.71718h3.230482c0.80762 24.632423 0.80762 24.632423-6.460964 35.535298v-9.691445h-6.460963l-2.626382 6.260673C221.405231 623.48296 221.405231 623.48296 211.713786 626.713441c0.823773-4.251314 1.712155-8.489706 2.626381-12.721637l1.47633-7.152286L218.174749 600.869588l9.691445-3.230482v6.460964l6.460963 3.230481-0.20352-9.491155C234.327157 587.947661 234.327157 587.947661 237.557639 584.71718z\"\n fill=\"#4450B9\" p-id=\"11632\"></path>\n <path\n d=\"M812.583374 717.166928h9.691445l-9.691445 35.535298-6.460964-6.460963-19.38289 25.843853c0-12.085232 4.868336-16.724204 11.914017-26.108753 6.228369-9.106728 9.949884-18.542965 13.929837-28.809435z\"\n fill=\"#CFE0F8\" p-id=\"11633\"></path>\n <path\n d=\"M999.95131 591.178143h6.460963c-1.324497 21.844517-5.071856 40.936664-12.921927 61.379151h-3.230481l-3.230482-29.074334h6.460963l6.460964-32.304817z\"\n fill=\"#D2DCFA\" p-id=\"11634\"></path>\n <path\n d=\"M928.880713 594.408625c8.289416 12.437354 8.240959 20.788149 9.691445 35.535298-6.325283 0.174446-12.650566 0.300435-18.979079 0.40381l-10.676742 0.226134C899.806378 629.943923 899.806378 629.943923 893.345415 623.48296l35.535298-3.230482v-25.843853z\"\n fill=\"#3B37CD\" p-id=\"11635\"></path>\n <path\n d=\"M922.41975 526.56851c14.3498 14.320725 15.499851 26.96483 16.960029 46.237884l0.755932 8.18281c0.607331 6.622487 1.143591 13.251436 1.666929 19.880384-7.533483-11.300225-10.182478-22.33555-13.325737-35.335008-0.587948-2.313025-1.175895-4.62605-1.776765-7.010146-2.732987-11.070861-4.280388-20.481254-4.280388-31.955924z\"\n fill=\"#61B4EE\" p-id=\"11636\"></path>\n <path\n d=\"M205.252822 306.895757c6.460963 1.011141 6.460963 1.011141 12.921927 3.230482l3.230482 6.460963a439.074145 439.074145 0 0 1-9.691445 22.613372h-6.460964v-6.460963h-6.460963c2.826671-22.209561 2.826671-22.209561 6.460963-25.843854z\"\n fill=\"#B1CBEC\" p-id=\"11637\"></path>\n <path\n d=\"M799.661447 659.018258c3.440463 8.819215 3.48892 12.253217 0.012922 21.250108l-4.655124 8.631847-4.632511 8.731992L786.73952 704.245001l-12.921926-16.152408c8.480014-12.518116 8.480014-12.518116 19.38289-16.152409 3.905652-6.460963 3.905652-6.460963 6.460963-12.921926z\"\n fill=\"#3D51D7\" p-id=\"11638\"></path>\n <path\n d=\"M105.107891 461.958877l6.460963 3.230481c0.087223 7.203974 0.148602 14.401487 0.203521 21.605462l0.113067 12.149841c-0.26813 9.733441-1.259888 18.200534-3.547069 27.623849h-3.230482c-0.629944-8.948434-1.230814-17.900099-1.818761-26.854994l-0.549182-7.688546-0.47165-7.413956-0.461959-6.816316C101.877409 471.650322 101.877409 471.650322 105.107891 461.958877z\"\n fill=\"#7CF0FC\" p-id=\"11639\"></path>\n <path\n d=\"M466.921837 620.252478h3.230481c1.146821 16.110412 1.889832 28.525153-5.453053 43.207692-10.088794 11.452057-18.717411 19.767317-33.312727 24.632423v-6.460964l8.883825-5.249532c14.643773-9.313479 21.19196-23.576055 24.923166-40.219497 0.781777-5.275377 1.285732-10.59598 1.728308-15.910122z\"\n fill=\"#2745C6\" p-id=\"11640\"></path>\n <path\n d=\"M214.944267 604.10007c2.019051 5.856863 2.019051 5.856863 3.230482 12.921926l-6.460963 9.691445c-9.109958 0.946531-9.109958 0.946531-19.7867 0.607331l-10.7252-0.26813L172.948006 626.713441l-3.230482-12.921926 10.298776 3.634291c12.999458 2.984965 17.254003 3.091571 28.467004-3.634291l6.460963-9.691445z\"\n fill=\"#3A38D9\" p-id=\"11641\"></path>\n <path\n d=\"M987.029383 662.248739v29.074335h-6.460963v32.304817l-6.460963 3.230482c-0.258439-9.558995-0.452267-19.111529-0.607331-28.670525l-0.245517-8.237728-0.093684-7.888837-0.155063-7.281505L974.107457 668.709703c9.691445-6.460963 9.691445-6.460963 12.921926-6.460964z\"\n fill=\"#ABB1F6\" p-id=\"11642\"></path>\n <path\n d=\"M121.260299 575.025735l4.606667 3.534147 6.095919 4.542057 6.018387 4.542057c6.131454 4.364381 6.131454 4.364381 15.583844 3.534147v16.152408c-12.8767-4.416068-22.497074-9.8562-32.304817-19.38289v-12.921926z\"\n fill=\"#D5F1F7\" p-id=\"11643\"></path>\n <path\n d=\"M118.029818 487.80273h6.460963c0.174446 4.642202 0.300435 9.287635 0.40381 13.933067l0.226134 7.833918C124.490781 516.877065 124.490781 516.877065 118.029818 526.56851h-6.460964c-0.923918-27.688458-0.923918-27.688458 6.460964-38.76578z\"\n fill=\"#49DDFB\" p-id=\"11644\"></path>\n <path\n d=\"M189.100414 339.200574l9.691445 3.230482-6.460963 3.230481c-3.795816 11.151623-4.920024 23.114096-6.664484 34.727678l-1.728308 11.458518L182.639451 400.579725h-3.230482c-0.626713-7.401033-1.227583-14.805297-1.818761-22.209561l-1.020832-12.492273C176.178488 355.352982 176.178488 355.352982 179.408969 348.892019h6.460963l3.230482-9.691445z\"\n fill=\"#75C0F0\" p-id=\"11645\"></path>\n <path\n d=\"M231.096676 562.103808h3.230481v45.226743l-9.691445-3.230481 3.230482-16.152409h-6.460963c6.057153-18.57527 6.057153-18.57527 9.691445-25.843853z\"\n fill=\"#3839CC\" p-id=\"11646\"></path>\n <path\n d=\"M302.167272 665.479221l9.691445 9.691445-9.691445 3.230482 2.826672 5.427209L308.628235 690.919264l3.634292 7.04245C315.089199 704.245001 315.089199 704.245001 315.089199 710.705964h-6.460964c-9.529921-14.89252-14.698692-23.792497-12.921926-41.996261l6.460963-3.230482z\"\n fill=\"#466CF6\" p-id=\"11647\"></path>\n <path\n d=\"M935.341677 545.9514c6.163759 11.561894 9.717289 23.223933 13.312815 35.774354L951.494085 587.947661l9.691445 3.230482-6.460963 12.921927h-6.460964c-4.251314-11.694344-6.460963-19.693016-6.460963-32.304817h-6.460963v-25.843853z\"\n fill=\"#A1CCF8\" p-id=\"11648\"></path>\n <path\n d=\"M357.08546 801.159451c5.866555 3.614909 11.720187 7.252431 17.567359 10.902875l9.878813 6.131454C392.620758 823.772822 392.620758 823.772822 395.85124 830.233786c-16.733895-4.015489-28.111651-9.223025-41.996261-19.38289l3.230481-9.691445z\"\n fill=\"#C3DEF8\" p-id=\"11649\"></path>\n <path d=\"M893.345415 633.174405h38.76578l-3.230482 9.691445h-32.304816l-3.230482-9.691445z\" fill=\"#8789E5\"\n p-id=\"11650\"></path>\n <path\n d=\"M253.710047 400.579725h6.460964l-9.691445 58.14867h-3.230482a1849.282763 1849.282763 0 0 1-0.40381-19.99022l-0.226134-11.242077c0.613792-10.499065 2.587616-17.50598 7.090907-26.916373z\"\n fill=\"#3D41A6\" p-id=\"11651\"></path>\n <path d=\"M961.18553 413.501652h29.074335l6.460963 16.152408c-11.910786-1.624932-22.035115-3.224021-\"\n fill=\"#84E0FB\" p-id=\"11652\"></path>\n </svg>\n </a>\n\n <div class=\"ai-assistant-panel\" *ngIf=\"aiAssistantShow\">\n <div class=\"ai-assistant-panel-title\">\n <a (click)=\"aiAssistantShow=!aiAssistantShow\">\n <Icon [type]=\"'left'\"></Icon>\n </a>\n <span>{{selectAi.name}}</span>\n <a>\n <Icon [type]=\"'ellipsis'\"\n *ngIf=\"aiAssistantList.length>1\"\n (click)=\"showOpeartion()\"></Icon>\n </a>\n </div>\n <iframe [src]=\"selectAi.safeUrl\" frameborder=\"0\"></iframe>\n </div>\n\n</ng-container>\n",
styles: [".ai-assistant-btn{position:fixed;bottom:30px;right:30px;width:60px;height:60px;z-index:100;border-radius:50px;background:#fff;box-shadow:0 0 10px 3px rgba(0,0,0,.1)}.ai-assistant-btn svg{margin:9px 0 0 4px}.ai-assistant-panel{position:fixed;left:0;top:0;z-index:101;background:linear-gradient(180deg,#aec8f8,#f4f4f4);width:100%!important;height:100%!important}.ai-assistant-panel .ai-assistant-panel-title{text-align:center;line-height:45px;font-size:16px;display:flex;justify-content:space-between;align-items:center}.ai-assistant-panel .ai-assistant-panel-title Icon{padding:10px}.ai-assistant-panel .ai-assistant-panel-title a{display:flex;justify-content:center;align-items:center;cursor:pointer}.ai-assistant-panel .ai-assistant-panel-title span{display:block;max-width:calc(100% - 90px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ai-assistant-panel iframe{display:block;width:100%;height:calc(100% - 45px)}"]
}] }
];
/** @nocollapse */
YzAiAssistantComponent.ctorParameters = function () { return [
{ type: platformBrowser.DomSanitizer },
{ type: AiAssistantService },
{ type: router.ActivatedRoute },
{ type: TokenService },
{ type: UserService },
{ type: ngZorroAntdMobile.ModalService }
]; };
YzAiAssistantComponent.propDecorators = {
cdkDragBoundary: [{ type: core.Input }],
systemCode: [{ type: core.Input }]
};
return YzAiAssistantComponent;
}());
if (false) {
/** @type {?} */
YzAiAssistantComponent.prototype.aiAssistantShow;
/** @type {?} */
YzAiAssistantComponent.prototype.aiAssistantList;
/** @type {?} */
YzAiAssistantComponent.prototype.selectAi;
/** @type {?} */
YzAiAssistantComponent.prototype.modalRef;
/** @type {?} */
YzAiAssistantComponent.prototype.cdkDragBoundary;
/** @type {?} */
YzAiAssistantComponent.prototype.systemCode;
/**
* @type {?}
* @private
*/
YzAiAssistantComponent.prototype.sanitizer;
/**
* @type {?}
* @private
*/
YzAiAssistantComponent.prototype.aiAssistantService;
/**
* @type {?}
* @private
*/
YzAiAssistantComponent.prototype.activatedRoute;
/**
* @type {?}
* @private
*/
YzAiAssistantComponent.prototype.tokenService;
/**
* @type {?}
* @private
*/
YzAiAssistantComponent.prototype.user;
/**
* @type {?}
* @private
*/
YzAiAssistantComponent.prototype.modalService;
}
/**
* @record
*/
function AiAssistant() { }
if (false) {
/** @type {?|undefined} */
AiAssistant.prototype.id;
/** @type {?|undefined} */
AiAssistant.prototype.name;
/** @type {?|undefined} */
AiAssistant.prototype.url;
/** @type {?|undefined} */
AiAssistant.prototype.safeUrl;
}
/**
* @fileoverview added by tsickle
* Generated from: ai-assistant/ai-assistant.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var COMPONENTS$8 = [
YzAiAssistantComponent
];
var AiAssistantModule = /** @class */ (function () {
function AiAssistantModule() {
}
AiAssistantModule.decorators = [
{ type: core.NgModule, args: [{
schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
declarations: __spread(COMPONENTS$8),
entryComponents: __spread(COMPONENTS$8),
imports: [SharedModule],
exports: __spread(COMPONENTS$8)
},] }
];
return AiAssistantModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: ng-yunzai-mobile.module.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var MODULES = [
AclModule,
SelectContactsModule,
LoadingModule,
EmptyModule,
PageModule,
UploadFileModule,
LocationModule,
ImgCropperModule,
TreePickerModule,
LayoutModule,
YzFloatButtonModule,
AiAssistantModule
];
var NgYunzaiMobileModule = /** @class */ (function () {
function NgYunzaiMobileModule() {
}
/**
* @param {?} client
* @return {?}
*/
NgYunzaiMobileModule.forRoot = /**
* @param {?} client
* @return {?}
*/
function (client) {
return {
ngModule: NgYunzaiMobileModule,
providers: [
{ provide: BASE_CLIENT, useValue: client },
{ provide: DA_STORE_USER, useClass: MemoryUserStore },
{ provide: DA_STORE_TOKEN, useClass: MemoryStore }
]
};
};
NgYunzaiMobileModule.decorators = [
{ type: core.NgModule, args: [{
declarations: [],
schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
imports: __spread(MODULES, [
SharedModule
]),
exports: __spread(MODULES)
},] }
];
return NgYunzaiMobileModule;
}());
/**
* @fileoverview added by tsickle
* Generated from: acl/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: auth/itoken.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function Itoken() { }
if (false) {
/** @type {?} */
Itoken.prototype.accessToken;
/** @type {?} */
Itoken.prototype.tokenType;
/** @type {?} */
Itoken.prototype.tokenDataLine;
/** @type {?} */
Itoken.prototype.scope;
}
/**
* @fileoverview added by tsickle
* Generated from: auth/preloader.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @return {?}
*/
function preloaderFinished() {
/** @type {?} */
var body = document.querySelector('body');
/** @type {?} */
var preloader = document.querySelector('.preloader');
body.style.overflow = 'hidden';
/**
* @return {?}
*/
function remove() {
// preloader value null when running --hmr
if (!preloader) {
return;
}
preloader.addEventListener('transitionend', (/**
* @return {?}
*/
function () {
// preloader.className = 'preloader-hidden';
preloader.remove();
}));
preloader.className += ' preloader-hidden-add preloader-hidden-add-active';
}
remove();
}
/**
* @fileoverview added by tsickle
* Generated from: devices/base.device.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @abstract
*/
var /**
* @abstract
*/
BaseDevice = /** @class */ (function () {
function BaseDevice() {
}
return BaseDevice;
}());
if (false) {
/**
* 用户认证
* @abstract
* @return {?}
*/
BaseDevice.prototype.auth = function () { };
/**
* 新开窗口
* @abstract
* @param {?} iwindow
* @return {?}
*/
BaseDevice.prototype.openWindow = function (iwindow) { };
/**
* 设置标题
* @abstract
* @param {?} ititle
* @return {?}
*/
BaseDevice.prototype.setTitle = function (ititle) { };
/**
* 放置按钮
* @abstract
* @param {?} navigationBar
* @return {?}
*/
BaseDevice.prototype.setNavigationBar = function (navigationBar) { };
/**
* 分享
* @abstract
* @param {?} ishare
* @return {?}
*/
BaseDevice.prototype.share = function (ishare) { };
/**
* 获取token
* @abstract
* @return {?}
*/
BaseDevice.prototype.getToken = function () { };
/**
* 扫二维码
* @abstract
* @return {?}
*/
BaseDevice.prototype.scanCode = function () { };
/**
* 获取位置
* @abstract
* @return {?}
*/
BaseDevice.prototype.userLocation = function () { };
/**
* 验证wifi是否在地址列表里
* @abstract
* @param {?} bssids
* @return {?}
*/
BaseDevice.prototype.validateInWifi = function (bssids) { };
/**
* 获取wifi Mac地址
* @abstract
* @return {?}
*/
BaseDevice.prototype.getWifiMac = function () { };
/**
* 获取联系人
* @abstract
* @param {?} count
* @return {?}
*/
BaseDevice.prototype.chooseContacts = function (count) { };
/**
* 获取联系人详情
* @abstract
* @param {?} targetUserId 联系人id
* @return {?}
*/
BaseDevice.prototype.contactDetails = function (targetUserId) { };
/**
* 图片上传
* @abstract
* @param {?} count 选择上传图片的数量,默认1张 ,
* sourceType :album 从相册选图,camera 使用相机,默认二者都有
* @param {?} sourceType
* @return {?}
*/
BaseDevice.prototype.uploadImage = function (count, sourceType) { };
/**
* pdf计时
* @abstract
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
BaseDevice.prototype.openReadWithTimer = function (url, openType, title, id, type) { };
/**
* 视频上传
* @abstract
* @param {?} limitMinute 最大的视频时长,
* @return {?}
*/
BaseDevice.prototype.uploadMovie = function (limitMinute) { };
/**
* 文件浏览器
* @abstract
* @param {?} url
* @param {?} title
* @return {?}
*/
BaseDevice.prototype.fileBrowser = function (url, title) { };
/**
*
* @abstract
* @param {?} ticket //摇周边的业务ticket, 系统自动添加在摇出来的页面链接后面
* @param {?} callback //开启查找完成后的回调函数
* @return {?}
*/
BaseDevice.prototype.startSearchBeacons = function (ticket, callback) { };
/**
*
* @abstract
* @param {?} callback //关闭查找完成后的回调函数
* @return {?}
*/
BaseDevice.prototype.stopSearchBeacons = function (callback) { };
/**
*
* @abstract
* @param {?} callback //回调函数,可以数组形式取得该商家注册的在周边的相关设备列表
* @return {?}
*/
BaseDevice.prototype.onSearchBeacons = function (callback) { };
}
/**
* @fileoverview added by tsickle
* Generated from: devices/android.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var Android = /** @class */ (function (_super) {
__extends(Android, _super);
function Android(tokenService, http, user, baseclient) {
var _this = _super.call(this) || this;
_this.tokenService = tokenService;
_this.http = http;
_this.user = user;
_this.baseclient = baseclient;
/*
* @type {any[]} 暂存被选中联系人数据集合
* */
_this.checkboxTrue = [];
/*
* @type {any[]} 页面上的被选中联系人列表数据集合
* */
_this.checkboxName = [];
return _this;
}
/**
* 手机网页认证
*/
/**
* 手机网页认证
* @return {?}
*/
Android.prototype.auth = /**
* 手机网页认证
* @return {?}
*/
function () {
var _this = this;
if (this.baseclient.android && this.baseclient.android.auth === false) {
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
preloaderFinished();
resolve(true);
}));
}
if (null === this.baseclient.mobileVersion || this.baseclient.mobileVersion === "V6") {
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
// 设置token
_this.tokenService.set((/** @type {?} */ (_this.getToken())));
// 发送/user请求
_this.http
.get(_this.baseclient.gateway + "/auth/user")
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
// 设置user
_this.user.set(response.principal);
// 加载结束
preloaderFinished();
resolve(true);
}));
}));
}
else if (null !== this.baseclient.mobileVersion && this.baseclient.mobileVersion === "V5") {
/** @type {?} */
var userInfo = yz.getUserInfoSync();
/** @type {?} */
var formData_1 = new FormData();
var account = userInfo.account, password = userInfo.password;
formData_1.set("username", account);
formData_1.set("password", password);
formData_1.set("grant_type", "password");
formData_1.set("client_id", "webapp");
formData_1.set("scope", "webapp");
formData_1.set("client_secret", "123456");
return new Promise(((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
_this.http.post(_this.baseclient.gateway + "/auth/oauth/token", formData_1).subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
/** @type {?} */
var tokenInfo = {};
tokenInfo['accessToken'] = response.access_token;
tokenInfo['tokenType'] = response.token_type;
tokenInfo['refreshToken'] = response.refresh_token;
tokenInfo['expiresIn'] = response.expires_in;
tokenInfo['scope'] = response.scope;
_this.tokenService.set((/** @type {?} */ (tokenInfo)));
_this.http.get(_this.baseclient.gateway + "/auth/user").subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
// 设置user
_this.user.set(response.principal);
// 加载结束
preloaderFinished();
resolve(true);
}));
}));
})));
}
};
/**
* @return {?}
*/
Android.prototype.getToken = /**
* @return {?}
*/
function () {
return yz.getTokenSync();
};
/**
* @param {?} window
* @return {?}
*/
Android.prototype.openWindow = /**
* @param {?} window
* @return {?}
*/
function (window) {
yz.navigationOpenWindow(window);
if (window.listener) {
yz.listener.nBack(window.listener);
}
};
/**
* @return {?}
*/
Android.prototype.scanCode = /**
* @return {?}
*/
function () {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.scanCode({
success: /**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
},
fail: /**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject("error");
}
});
})));
};
/**
* @param {?} navigationBar
* @return {?}
*/
Android.prototype.setNavigationBar = /**
* @param {?} navigationBar
* @return {?}
*/
function (navigationBar) {
yz.setNavigationBarRightItems({
showMenu: navigationBar.showMenu,
shareFlag: navigationBar.shareFlag,
items: navigationBar.items,
onClick: navigationBar.onClick,
success: navigationBar.success,
fial: navigationBar.fial,
complete: navigationBar.complete
});
};
/**
* @param {?} ititle
* @return {?}
*/
Android.prototype.setTitle = /**
* @param {?} ititle
* @return {?}
*/
function (ititle) {
yz.setNavigationBarTitle(ititle);
};
/**
* @param {?} ishare
* @return {?}
*/
Android.prototype.share = /**
* @param {?} ishare
* @return {?}
*/
function (ishare) {
yz.setWebCanShare(ishare);
};
/**
* @return {?}
*/
Android.prototype.userLocation = /**
* @return {?}
*/
function () {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.userLocation({
success: /**
* @param {?} data
* @return {?}
*/
function (data) {
resolve((/** @type {?} */ ({
address: data.address,
latitude: data.latitude,
longitude: data.longitude
})));
},
fail: /**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
}
});
})));
};
/**
* @param {?} bssids
* @return {?}
*/
Android.prototype.validateInWifi = /**
* @param {?} bssids
* @return {?}
*/
function (bssids) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.userLocationContainAp({
bssids: bssids,
success: /**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
},
fail: /**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
}
});
})));
};
/**
* @return {?}
*/
Android.prototype.getWifiMac = /**
* @return {?}
*/
function () {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.getMac({
success: /**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
},
fail: /**
* @param {?} errorMsg
* @return {?}
*/
function (errorMsg) {
reject(errorMsg);
}
});
})));
};
/**
* @param {?} count
* @return {?}
*/
Android.prototype.chooseContacts = /**
* @param {?} count
* @return {?}
*/
function (count) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.chooseContacts({
count: count,
success: /**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
},
fail: /**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
}
});
})));
};
/**
* @param {?} targetUserId
* @return {?}
*/
Android.prototype.contactDetails = /**
* @param {?} targetUserId
* @return {?}
*/
function (targetUserId) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.ContactDetails({
targetUserId: targetUserId,
success: (/**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
}),
fail: (/**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
})
});
})));
};
/**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
Android.prototype.uploadImage = /**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
function (count, sourceType) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.uploadImage({
count: count,
sourceType: sourceType,
success: (/**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
}),
fail: (/**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
})
});
})));
};
/**
* @param {?} limitMinute
* @return {?}
*/
Android.prototype.uploadMovie = /**
* @param {?} limitMinute
* @return {?}
*/
function (limitMinute) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.uploadMovie({
limitMinute: limitMinute,
success: (/**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
}),
fail: (/**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
})
});
})));
};
/**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
Android.prototype.openReadWithTimer = /**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
function (url, openType, title, id, type) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.openReadWithTimer({
url: url,
openType: openType,
title: title,
id: id,
type: type,
success: (/**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
}),
fail: (/**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
})
});
})));
};
/**
* @param {?} url
* @param {?} title
* @return {?}
*/
Android.prototype.fileBrowser = /**
* @param {?} url
* @param {?} title
* @return {?}
*/
function (url, title) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.fileBrowser({
url: url,
title: title,
success: (/**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
}),
fail: (/**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
})
});
})));
};
/**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
Android.prototype.startSearchBeacons = /**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
function (ticket, callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
Android.prototype.stopSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
Android.prototype.onSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
Android.decorators = [
{ type: core.Injectable, args: [{
providedIn: "root"
},] }
];
/** @nocollapse */
Android.ctorParameters = function () { return [
{ type: TokenService },
{ type: http.HttpClient },
{ type: UserService },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ Android.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function Android_Factory() { return new Android(core.ɵɵinject(TokenService), core.ɵɵinject(http.HttpClient), core.ɵɵinject(UserService), core.ɵɵinject(BASE_CLIENT)); }, token: Android, providedIn: "root" });
return Android;
}(BaseDevice));
if (false) {
/** @type {?} */
Android.prototype.checkboxTrue;
/** @type {?} */
Android.prototype.checkboxName;
/**
* @type {?}
* @private
*/
Android.prototype.tokenService;
/**
* @type {?}
* @private
*/
Android.prototype.http;
/**
* @type {?}
* @private
*/
Android.prototype.user;
/**
* @type {?}
* @private
*/
Android.prototype.baseclient;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/ios.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var IOS = /** @class */ (function (_super) {
__extends(IOS, _super);
function IOS(tokenService, http, user, baseclient) {
var _this = _super.call(this) || this;
_this.tokenService = tokenService;
_this.http = http;
_this.user = user;
_this.baseclient = baseclient;
return _this;
}
/**
* 手机网页认证
*/
/**
* 手机网页认证
* @return {?}
*/
IOS.prototype.auth = /**
* 手机网页认证
* @return {?}
*/
function () {
var _this = this;
if (this.baseclient.ios && this.baseclient.ios.auth === false) {
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
preloaderFinished();
resolve(true);
}));
}
if (null === this.baseclient.mobileVersion || this.baseclient.mobileVersion === "V6") {
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
// 设置token
_this.tokenService.set((/** @type {?} */ (_this.getToken())));
// 发送/user请求
_this.http
.get(_this.baseclient.gateway + "/auth/user")
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
// 设置user
_this.user.set(response.principal);
// 加载结束
preloaderFinished();
resolve(true);
}));
}));
}
else if (null !== this.baseclient.mobileVersion && this.baseclient.mobileVersion === "V5") {
/** @type {?} */
var userInfo = yz.getUserInfoSync();
/** @type {?} */
var formData_1 = new FormData();
var account = userInfo.account, password = userInfo.password;
formData_1.set("username", account);
formData_1.set("password", password);
formData_1.set("grant_type", "password");
formData_1.set("client_id", "webapp");
formData_1.set("scope", "webapp");
formData_1.set("client_secret", "123456");
return new Promise(((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
_this.http.post(_this.baseclient.gateway + "/auth/oauth/token", formData_1).subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
/** @type {?} */
var tokenInfo = {};
tokenInfo['accessToken'] = response.access_token;
tokenInfo['tokenType'] = response.token_type;
tokenInfo['refreshToken'] = response.refresh_token;
tokenInfo['expiresIn'] = response.expires_in;
tokenInfo['scope'] = response.scope;
_this.tokenService.set((/** @type {?} */ (tokenInfo)));
_this.http.get(_this.baseclient.gateway + "/auth/user").subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
// 设置user
_this.user.set(response.principal);
// 加载结束
preloaderFinished();
resolve(true);
}));
}));
})));
}
};
/**
* @return {?}
*/
IOS.prototype.getToken = /**
* @return {?}
*/
function () {
return yz.getTokenSync();
};
/**
* @param {?} window
* @return {?}
*/
IOS.prototype.openWindow = /**
* @param {?} window
* @return {?}
*/
function (window) {
yz.navigationOpenWindow(window);
if (window.listener) {
yz.listener.nBack(window.listener);
}
};
/**
* @return {?}
*/
IOS.prototype.scanCode = /**
* @return {?}
*/
function () {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.scanCode({
success: /**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
},
fail: /**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject("error");
}
});
})));
};
/**
* @param {?} navigationBar
* @return {?}
*/
IOS.prototype.setNavigationBar = /**
* @param {?} navigationBar
* @return {?}
*/
function (navigationBar) {
yz.setNavigationBarRightItems({
showMenu: navigationBar.showMenu,
shareFlag: navigationBar.shareFlag,
items: navigationBar.items,
onClick: navigationBar.onClick,
success: navigationBar.success,
fial: navigationBar.fial,
complete: navigationBar.complete
});
};
/**
* @param {?} ititle
* @return {?}
*/
IOS.prototype.setTitle = /**
* @param {?} ititle
* @return {?}
*/
function (ititle) {
yz.setNavigationBarTitle(ititle);
};
/**
* @param {?} ishare
* @return {?}
*/
IOS.prototype.share = /**
* @param {?} ishare
* @return {?}
*/
function (ishare) {
yz.setWebCanShare(ishare);
};
/**
* @return {?}
*/
IOS.prototype.userLocation = /**
* @return {?}
*/
function () {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.userLocation({
success: /**
* @param {?} data
* @return {?}
*/
function (data) {
resolve((/** @type {?} */ ({
address: data.address,
latitude: data.latitude,
longitude: data.longitude
})));
},
fail: /**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
}
});
})));
};
/**
* @param {?} bssids
* @return {?}
*/
IOS.prototype.validateInWifi = /**
* @param {?} bssids
* @return {?}
*/
function (bssids) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.userLocationContainAp({
bssids: bssids,
success: /**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
},
fail: /**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
}
});
})));
};
/**
* @return {?}
*/
IOS.prototype.getWifiMac = /**
* @return {?}
*/
function () {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.getMac({
success: /**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
},
fail: /**
* @param {?} errorMsg
* @return {?}
*/
function (errorMsg) {
reject(errorMsg);
}
});
})));
};
/**
* @param {?} count
* @return {?}
*/
IOS.prototype.chooseContacts = /**
* @param {?} count
* @return {?}
*/
function (count) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.chooseContacts({
count: count,
success: /**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
},
fail: /**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
}
});
})));
};
/**
* @param {?} targetUserId
* @return {?}
*/
IOS.prototype.contactDetails = /**
* @param {?} targetUserId
* @return {?}
*/
function (targetUserId) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.ContactDetails({
targetUserId: targetUserId,
success: (/**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
}),
fail: (/**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
})
});
})));
};
/**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
IOS.prototype.uploadImage = /**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
function (count, sourceType) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.uploadImage({
count: count,
sourceType: sourceType,
success: (/**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
}),
fail: (/**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
})
});
})));
};
/**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
IOS.prototype.openReadWithTimer = /**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
function (url, openType, title, id, type) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.openReadWithTimer({
url: url,
openType: openType,
title: title,
id: id,
type: type,
success: (/**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
}),
fail: (/**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
})
});
})));
};
/**
* @param {?} limitMinute
* @return {?}
*/
IOS.prototype.uploadMovie = /**
* @param {?} limitMinute
* @return {?}
*/
function (limitMinute) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.uploadMovie({
limitMinute: limitMinute,
success: (/**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
}),
fail: (/**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
})
});
})));
};
/**
* @param {?} url
* @param {?} title
* @return {?}
*/
IOS.prototype.fileBrowser = /**
* @param {?} url
* @param {?} title
* @return {?}
*/
function (url, title) {
return rxjs.from(new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
yz.fileBrowser({
url: url,
title: title,
success: (/**
* @param {?} data
* @return {?}
*/
function (data) {
resolve(data);
}),
fail: (/**
* @param {?} errMsg
* @return {?}
*/
function (errMsg) {
reject(errMsg);
})
});
})));
};
/**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
IOS.prototype.startSearchBeacons = /**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
function (ticket, callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
IOS.prototype.stopSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
IOS.prototype.onSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
IOS.decorators = [
{ type: core.Injectable, args: [{
providedIn: "root"
},] }
];
/** @nocollapse */
IOS.ctorParameters = function () { return [
{ type: TokenService },
{ type: http.HttpClient },
{ type: UserService },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ IOS.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function IOS_Factory() { return new IOS(core.ɵɵinject(TokenService), core.ɵɵinject(http.HttpClient), core.ɵɵinject(UserService), core.ɵɵinject(BASE_CLIENT)); }, token: IOS, providedIn: "root" });
return IOS;
}(BaseDevice));
if (false) {
/**
* @type {?}
* @private
*/
IOS.prototype.tokenService;
/**
* @type {?}
* @private
*/
IOS.prototype.http;
/**
* @type {?}
* @private
*/
IOS.prototype.user;
/**
* @type {?}
* @private
*/
IOS.prototype.baseclient;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/wechat.mp.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var apis = [
"updateAppMessageShareData",
"updateTimelineShareData",
"onMenuShareTimeline",
"onMenuShareAppMessage",
"onMenuShareQQ",
"onMenuShareWeibo",
"onMenuShareQZone",
"startRecord",
"stopRecord",
"onVoiceRecordEnd",
"playVoice",
"pauseVoice",
"stopVoice",
"onVoicePlayEnd",
"uploadVoice",
"downloadVoice",
"chooseImage",
"previewImage",
"uploadImage",
"downloadImage",
"translateVoice",
"getNetworkType",
"openLocation",
"getLocation",
"hideOptionMenu",
"showOptionMenu",
"hideMenuItems",
"showMenuItems",
"hideAllNonBaseMenuItem",
"showAllNonBaseMenuItem",
"closeWindow",
"scanQRCode",
"chooseWXPay",
"openProductSpecificView",
"addCard",
"chooseCard",
"openCard",
];
/** @type {?} */
var openTags = [
'wx-open-launch-weapp',
'wx-open-launch-app',
'wx-open-subscribe',
'wx-open-audio'
];
var WechatMp = /** @class */ (function (_super) {
__extends(WechatMp, _super);
function WechatMp(tokenService, http, user, title, baseclient) {
var _this = _super.call(this) || this;
_this.tokenService = tokenService;
_this.http = http;
_this.user = user;
_this.title = title;
_this.baseclient = baseclient;
return _this;
}
/**
* @return {?}
*/
WechatMp.prototype.auth = /**
* @return {?}
*/
function () {
var _this = this;
if (this.baseclient.wechat && this.baseclient.wechat.auth === false) {
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
preloaderFinished();
resolve(true);
}));
}
return new Promise((/**
* @param {?} reject
* @param {?} resolve
* @return {?}
*/
function (reject, resolve) {
/** @type {?} */
var url = encodeURIComponent(window.location.href);
_this.http
.get(_this.baseclient.gateway + "/wechat/mp/token?url=" + url)
.subscribe((/**
* @param {?} token
* @return {?}
*/
function (token) {
if (token.error_code === 200) {
_this.tokenService.set((/** @type {?} */ ({
accessToken: token.message,
tokenType: "bearer",
})));
_this.http
.get(_this.baseclient.gateway + "/auth/user")
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
_this.user.set(response.principal);
// 暂不对微信jssdk进行对接
_this.generateWechatConfig();
preloaderFinished();
reject(null);
}));
}
else if (token.error_code === 500) {
// 没有token,则重定向到认证页面,认证完成后会跳回本页面
window.location.href = token.path;
}
}));
}));
};
/**
* @param {?} iwindow
* @return {?}
*/
WechatMp.prototype.openWindow = /**
* @param {?} iwindow
* @return {?}
*/
function (iwindow) {
window.location.href = iwindow.url;
};
/**
* @param {?} ititle
* @return {?}
*/
WechatMp.prototype.setTitle = /**
* @param {?} ititle
* @return {?}
*/
function (ititle) {
this.title.setTitle(ititle.title);
};
/**
* @param {?} navigationBar
* @return {?}
*/
WechatMp.prototype.setNavigationBar = /**
* @param {?} navigationBar
* @return {?}
*/
function (navigationBar) {
alert("微信端暂不支持放置按钮,请在APP中使用此功能!");
return;
};
/**
* @param {?} ishare
* @return {?}
*/
WechatMp.prototype.share = /**
* @param {?} ishare
* @return {?}
*/
function (ishare) {
alert("微信端暂不支持分享,请在APP中使用此功能!");
};
/**
* @return {?}
*/
WechatMp.prototype.getToken = /**
* @return {?}
*/
function () {
/** @type {?} */
var itoken = {
accessToken: this.tokenService.get().accessToken,
tokenType: null,
tokenDataLine: null,
scope: null,
};
return itoken;
};
/**
* @return {?}
*/
WechatMp.prototype.scanCode = /**
* @return {?}
*/
function () {
/** @type {?} */
var p = new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
wx.scanQRCode({
needResult: 1,
scanType: ['qrCode', 'barCode'],
success: (/**
* @param {?} res
* @return {?}
*/
function (res) {
resolve(res.resultStr);
}),
});
}));
return rxjs.from(p);
};
/**
* @return {?}
*/
WechatMp.prototype.userLocation = /**
* @return {?}
*/
function () {
/** @type {?} */
var p = new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
wx.getLocation({
type: 'wgs84',
// 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
success: (/**
* @param {?} res
* @return {?}
*/
function (res) {
if (res.errMsg === 'getLocation:ok') {
/** @type {?} */
var latitude = res.latitude;
// 纬度,浮点数,范围为90 ~ -90
/** @type {?} */
var longitude = res.longitude;
// 经度,浮点数,范围为180 ~ -180。
/** @type {?} */
var address = '微信无address';
resolve({ latitude: latitude, longitude: longitude, address: address });
}
}),
});
}));
return rxjs.from(p);
};
/**
* @param {?} bssids
* @return {?}
*/
WechatMp.prototype.validateInWifi = /**
* @param {?} bssids
* @return {?}
*/
function (bssids) {
alert("微信端暂不支持WIFI验证,请在APP中使用此功能!");
return undefined;
};
/**
* @return {?}
*/
WechatMp.prototype.getWifiMac = /**
* @return {?}
*/
function () {
alert("微信端暂不支持获取MAC地址,请在APP中使用此功能!");
return undefined;
};
/**
* @return {?}
*/
WechatMp.prototype.generateWechatConfig = /**
* @return {?}
*/
function () {
this.http
.get(this.baseclient.gateway + "/wechat/mp/jssdk?url=" + encodeURIComponent(window.location.href))
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
wx.config({
debug: false,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: response.appId,
// 必填,公众号的唯一标识
timestamp: response.timestamp,
// 必填,生成签名的时间戳
nonceStr: response.nonceStr,
// 必填,生成签名的随机串
signature: response.signature,
// 必填,签名
jsApiList: apis,
// 必填,需要使用的JS接口列表
openTagList: openTags // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
});
}));
wx.ready((/**
* @return {?}
*/
function () {
// config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,
// 所以如果需要在页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready函数中。
console.log('微信jssdk初始化完成.');
}));
wx.error((/**
* @param {?} res
* @return {?}
*/
function (res) {
// config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名。
console.log('微信jssdk初始化失败:', res);
}));
};
/**
* @param {?} count
* @return {?}
*/
WechatMp.prototype.chooseContacts = /**
* @param {?} count
* @return {?}
*/
function (count) {
alert("微信端暂不支持获取联系人,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} targetUserId
* @return {?}
*/
WechatMp.prototype.contactDetails = /**
* @param {?} targetUserId
* @return {?}
*/
function (targetUserId) {
alert("微信端暂不支持查询联系人详细信息,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
WechatMp.prototype.uploadImage = /**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
function (count, sourceType) {
alert("微信端暂不支持图片上传,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
WechatMp.prototype.openReadWithTimer = /**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
function (url, openType, title, id, type) {
alert("微信端暂不支持读物时间统计,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} limitMinute
* @return {?}
*/
WechatMp.prototype.uploadMovie = /**
* @param {?} limitMinute
* @return {?}
*/
function (limitMinute) {
alert("微信端暂不支持视频上传,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} url
* @param {?} title
* @return {?}
*/
WechatMp.prototype.fileBrowser = /**
* @param {?} url
* @param {?} title
* @return {?}
*/
function (url, title) {
alert("微信端暂不支持此功能,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
WechatMp.prototype.startSearchBeacons = /**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
function (ticket, callback) {
wx.startSearchBeacons({
ticket: ticket,
complete: callback,
});
};
/**
* @param {?} callback
* @return {?}
*/
WechatMp.prototype.stopSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
wx.stopSearchBeacons({
complete: callback,
});
};
/**
* @param {?} callback
* @return {?}
*/
WechatMp.prototype.onSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
wx.onSearchBeacons({
complete: callback,
});
};
WechatMp.decorators = [
{ type: core.Injectable, args: [{
providedIn: "root",
},] }
];
/** @nocollapse */
WechatMp.ctorParameters = function () { return [
{ type: TokenService },
{ type: http.HttpClient },
{ type: UserService },
{ type: platformBrowser.Title },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ WechatMp.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function WechatMp_Factory() { return new WechatMp(core.ɵɵinject(TokenService), core.ɵɵinject(http.HttpClient), core.ɵɵinject(UserService), core.ɵɵinject(platformBrowser.Title), core.ɵɵinject(BASE_CLIENT)); }, token: WechatMp, providedIn: "root" });
return WechatMp;
}(BaseDevice));
if (false) {
/**
* @type {?}
* @private
*/
WechatMp.prototype.tokenService;
/**
* @type {?}
* @private
*/
WechatMp.prototype.http;
/**
* @type {?}
* @private
*/
WechatMp.prototype.user;
/**
* @type {?}
* @private
*/
WechatMp.prototype.title;
/**
* @type {?}
* @private
*/
WechatMp.prototype.baseclient;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/wechat.micro.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var apis$1 = [
"updateAppMessageShareData",
"updateTimelineShareData",
"onMenuShareTimeline",
"onMenuShareAppMessage",
"onMenuShareQQ",
"onMenuShareWeibo",
"onMenuShareQZone",
"startRecord",
"stopRecord",
"onVoiceRecordEnd",
"playVoice",
"pauseVoice",
"stopVoice",
"onVoicePlayEnd",
"uploadVoice",
"downloadVoice",
"chooseImage",
"previewImage",
"uploadImage",
"downloadImage",
"translateVoice",
"getNetworkType",
"openLocation",
"getLocation",
"hideOptionMenu",
"showOptionMenu",
"hideMenuItems",
"showMenuItems",
"hideAllNonBaseMenuItem",
"showAllNonBaseMenuItem",
"closeWindow",
"scanQRCode",
"chooseWXPay",
"openProductSpecificView",
"addCard",
"chooseCard",
"openCard",
];
/** @type {?} */
var openTags$1 = [
'wx-open-launch-weapp',
'wx-open-launch-app',
'wx-open-subscribe',
'wx-open-audio'
];
var WechatMicro = /** @class */ (function (_super) {
__extends(WechatMicro, _super);
function WechatMicro(tokenService, http, user, title, baseclient) {
var _this = _super.call(this) || this;
_this.tokenService = tokenService;
_this.http = http;
_this.user = user;
_this.title = title;
_this.baseclient = baseclient;
return _this;
}
/**
* @return {?}
*/
WechatMicro.prototype.auth = /**
* @return {?}
*/
function () {
var _this = this;
if (this.baseclient.wechatMicro && this.baseclient.wechatMicro.auth === false) {
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
preloaderFinished();
resolve(true);
}));
}
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
/** @type {?} */
var tokenInfo = {};
tokenInfo.account = _this.getUrlParam('account');
tokenInfo.accessToken = _this.getUrlParam('accessToken');
tokenInfo.userId = _this.getUrlParam('userId');
tokenInfo.tokenType = 'bearer';
_this.tokenService.set((/** @type {?} */ (tokenInfo)));
_this.http
.get(_this.baseclient.gateway + "/auth/user")
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
// 设置user
_this.user.set(response.principal);
_this.generateWechatConfig();
// 加载结束
preloaderFinished();
resolve(true);
}));
}));
};
/**
* @return {?}
*/
WechatMicro.prototype.generateWechatConfig = /**
* @return {?}
*/
function () {
this.http
.get(this.baseclient.gateway + "/wechat/mp/jssdk?url=" + encodeURIComponent(window.location.href))
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
wx.config({
debug: false,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: response.appId,
// 必填,公众号的唯一标识
timestamp: response.timestamp,
// 必填,生成签名的时间戳
nonceStr: response.nonceStr,
// 必填,生成签名的随机串
signature: response.signature,
// 必填,签名
jsApiList: apis$1,
// 必填,需要使用的JS接口列表
openTagList: openTags$1 // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
});
}));
wx.ready((/**
* @return {?}
*/
function () {
// config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,
// 所以如果需要在页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready函数中。
console.log('微信jssdk初始化完成.');
}));
wx.error((/**
* @param {?} res
* @return {?}
*/
function (res) {
// config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名。
console.log('微信jssdk初始化失败:', res);
}));
};
/**
* @param {?} iwindow
* @return {?}
*/
WechatMicro.prototype.openWindow = /**
* @param {?} iwindow
* @return {?}
*/
function (iwindow) {
window.location.href = iwindow.url;
};
/**
* @param {?} ititle
* @return {?}
*/
WechatMicro.prototype.setTitle = /**
* @param {?} ititle
* @return {?}
*/
function (ititle) {
this.title.setTitle(ititle.title);
};
/**
* @param {?} navigationBar
* @return {?}
*/
WechatMicro.prototype.setNavigationBar = /**
* @param {?} navigationBar
* @return {?}
*/
function (navigationBar) {
alert("小程序暂不支持放置按钮,请在APP中使用此功能!");
};
/**
* @param {?} ishare
* @return {?}
*/
WechatMicro.prototype.share = /**
* @param {?} ishare
* @return {?}
*/
function (ishare) {
alert("小程序暂不支持分享,请在APP中使用此功能!");
};
/**
* @return {?}
*/
WechatMicro.prototype.getToken = /**
* @return {?}
*/
function () {
/** @type {?} */
var itoken = {
accessToken: this.tokenService.get().accessToken,
tokenType: null,
tokenDataLine: null,
scope: null,
};
return itoken;
};
/**
* @return {?}
*/
WechatMicro.prototype.scanCode = /**
* @return {?}
*/
function () {
/** @type {?} */
var p = new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
wx.scanQRCode({
needResult: 1,
scanType: ['qrCode', 'barCode'],
success: (/**
* @param {?} res
* @return {?}
*/
function (res) {
resolve(res.resultStr);
}),
});
}));
return rxjs.from(p);
};
/**
* @return {?}
*/
WechatMicro.prototype.userLocation = /**
* @return {?}
*/
function () {
/** @type {?} */
var p = new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
wx.getLocation({
type: 'wgs84',
success:
// 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
/**
* @param {?} res
* @return {?}
*/
function (res) {
if (res.errMsg === 'getLocation:ok') {
/** @type {?} */
var latitude = res.latitude;
// 纬度,浮点数,范围为90 ~ -90
/** @type {?} */
var longitude = res.longitude;
// 经度,浮点数,范围为180 ~ -180。
/** @type {?} */
var address = '微信无address';
resolve({ latitude: latitude, longitude: longitude, address: address });
}
},
});
}));
return rxjs.from(p);
};
/**
* @param {?} bssids
* @return {?}
*/
WechatMicro.prototype.validateInWifi = /**
* @param {?} bssids
* @return {?}
*/
function (bssids) {
alert("小程序暂不支持WIFI验证,请在APP中使用此功能!");
return undefined;
};
/**
* @return {?}
*/
WechatMicro.prototype.getWifiMac = /**
* @return {?}
*/
function () {
alert("小程序暂不支持获取MAC地址,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} count
* @return {?}
*/
WechatMicro.prototype.chooseContacts = /**
* @param {?} count
* @return {?}
*/
function (count) {
alert("小程序暂不支持获取联系人,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} targetUserId
* @return {?}
*/
WechatMicro.prototype.contactDetails = /**
* @param {?} targetUserId
* @return {?}
*/
function (targetUserId) {
alert("小程序暂不支持查询联系人详细信息,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
WechatMicro.prototype.uploadImage = /**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
function (count, sourceType) {
alert("小程序暂不支持图片上传,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
WechatMicro.prototype.openReadWithTimer = /**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
function (url, openType, title, id, type) {
alert("小程序暂不支持读物时间统计,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} limitMinute
* @return {?}
*/
WechatMicro.prototype.uploadMovie = /**
* @param {?} limitMinute
* @return {?}
*/
function (limitMinute) {
alert("小程序暂不支持视频上传,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} url
* @param {?} title
* @return {?}
*/
WechatMicro.prototype.fileBrowser = /**
* @param {?} url
* @param {?} title
* @return {?}
*/
function (url, title) {
alert("小程序暂不支持此功能,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
WechatMicro.prototype.startSearchBeacons = /**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
function (ticket, callback) {
wx.startSearchBeacons({
ticket: ticket,
complete: callback,
});
};
/**
* @param {?} callback
* @return {?}
*/
WechatMicro.prototype.stopSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
wx.stopSearchBeacons({
complete: callback,
});
};
/**
* @param {?} callback
* @return {?}
*/
WechatMicro.prototype.onSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
wx.onSearchBeacons({
complete: callback,
});
};
// 封装方法: 获取url中的参数
// 封装方法: 获取url中的参数
/**
* @private
* @param {?} name
* @return {?}
*/
WechatMicro.prototype.getUrlParam =
// 封装方法: 获取url中的参数
/**
* @private
* @param {?} name
* @return {?}
*/
function (name) {
// 构造一个含有目标参数的正则表达式对象
/** @type {?} */
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
/** @type {?} */
var strings = window.location.href.split('?');
// 匹配目标参数
/** @type {?} */
var r = strings[strings.length - 1].match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
};
WechatMicro.decorators = [
{ type: core.Injectable, args: [{
providedIn: "root",
},] }
];
/** @nocollapse */
WechatMicro.ctorParameters = function () { return [
{ type: TokenService },
{ type: http.HttpClient },
{ type: UserService },
{ type: platformBrowser.Title },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ WechatMicro.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function WechatMicro_Factory() { return new WechatMicro(core.ɵɵinject(TokenService), core.ɵɵinject(http.HttpClient), core.ɵɵinject(UserService), core.ɵɵinject(platformBrowser.Title), core.ɵɵinject(BASE_CLIENT)); }, token: WechatMicro, providedIn: "root" });
return WechatMicro;
}(BaseDevice));
if (false) {
/**
* @type {?}
* @private
*/
WechatMicro.prototype.tokenService;
/**
* @type {?}
* @private
*/
WechatMicro.prototype.http;
/**
* @type {?}
* @private
*/
WechatMicro.prototype.user;
/**
* @type {?}
* @private
*/
WechatMicro.prototype.title;
/**
* @type {?}
* @private
*/
WechatMicro.prototype.baseclient;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/browser.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var Browser = /** @class */ (function (_super) {
__extends(Browser, _super);
function Browser(tokenService, http, user, baseclient, title) {
var _this = _super.call(this) || this;
_this.tokenService = tokenService;
_this.http = http;
_this.user = user;
_this.baseclient = baseclient;
_this.title = title;
return _this;
}
/**
* @return {?}
*/
Browser.prototype.auth = /**
* @return {?}
*/
function () {
var _this = this;
if (this.baseclient.browser && this.baseclient.browser.auth === false) {
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
preloaderFinished();
resolve(true);
}));
}
// 如果是本地开发配置了账号密码
if (this.baseclient.dev && this.baseclient.dev.username && this.baseclient.dev.password) {
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
_this.authByConfiguredUserPass().then((/**
* @return {?}
*/
function () {
_this.http
.get(_this.baseclient.gateway + "/auth/user")
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
_this.user.set(response.principal);
preloaderFinished();
resolve(true);
}));
}));
}));
}
// 走cas认证流程
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
_this.authByCas().then((/**
* @return {?}
*/
function () {
_this.http
.get(_this.baseclient.gateway + "/auth/user")
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
_this.user.set(response.principal);
preloaderFinished();
resolve(true);
}));
}));
}));
};
/**
* @private
* @return {?}
*/
Browser.prototype.authByCas = /**
* @private
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var url = encodeURIComponent(window.location.href);
return this.http.get(this.baseclient.gateway + '/cas-proxy/app/validate_full?callback=' + url + '×tamp=' + new Date().getTime())
.pipe(operators.map((/**
* @param {?} res
* @return {?}
*/
function (res) {
switch (res.errcode) {
case 2000:
/** @type {?} */
var token = {};
token.tokenType = res.data.token_type;
token.accessToken = res.data.access_token;
token.scope = res.data.scope;
token.tokenDateLine = res.data.expires_in;
_this.tokenService.set(token);
break;
case 2001:
window.location.href = res.msg;
break;
case 2002:
alert(res.data);
break;
case 2003:
case 5000:
case 5001:
alert(res.msg);
break;
default:
break;
}
}))).toPromise();
};
/**
* @private
* @return {?}
*/
Browser.prototype.authByConfiguredUserPass = /**
* @private
* @return {?}
*/
function () {
var _this = this;
/** @type {?} */
var form = new FormData();
form.set('username', this.baseclient.dev.username);
form.set('password', this.baseclient.dev.password);
form.set('grant_type', 'password');
form.set('client_id', 'webapp');
form.set('scope', 'webapp');
form.set('client_secret', '123456');
return this.http
.post(this.baseclient.gateway + "/auth/oauth/token", form)
.pipe(operators.map((/**
* @param {?} response
* @return {?}
*/
function (response) {
/** @type {?} */
var token = {};
token.tokenType = response.token_type;
token.accessToken = response.access_token;
token.scope = response.scope;
token.tokenDateLine = response.expires_in;
_this.tokenService.set(token);
})))
.toPromise();
};
/**
* @return {?}
*/
Browser.prototype.getToken = /**
* @return {?}
*/
function () {
/** @type {?} */
var itoken = {
accessToken: this.tokenService.get().accessToken,
tokenType: this.tokenService.get().tokenType,
tokenDataLine: this.tokenService.get().tokenDateLine,
scope: this.tokenService.get().scope
};
return itoken;
};
/**
* @return {?}
*/
Browser.prototype.getUser = /**
* @return {?}
*/
function () {
/** @type {?} */
var iuser = Object.create({
account: this.user.get().username,
userName: this.user.get().username,
password: this.user.get().password,
userId: this.user.get().id,
realName: this.user.get().realname,
deptId: this.user.get().deptId,
deptName: this.user.get().deptName,
userType: this.user.get().userType
});
return iuser;
};
/**
* @param {?} iwindow
* @return {?}
*/
Browser.prototype.openWindow = /**
* @param {?} iwindow
* @return {?}
*/
function (iwindow) {
window.location.href = iwindow.url;
};
/**
* @return {?}
*/
Browser.prototype.scanCode = /**
* @return {?}
*/
function () {
alert("浏览器暂不支持扫码,请在APP中使用此功能!");
return rxjs.of("浏览器暂不支持扫码,请在APP中使用此功能!");
};
/**
* @param {?} navigationBar
* @return {?}
*/
Browser.prototype.setNavigationBar = /**
* @param {?} navigationBar
* @return {?}
*/
function (navigationBar) {
alert("浏览器暂不支持放置按钮,请在APP中使用此功能!");
};
/**
* @param {?} ititle
* @return {?}
*/
Browser.prototype.setTitle = /**
* @param {?} ititle
* @return {?}
*/
function (ititle) {
this.title.setTitle(ititle.title);
};
/**
* @return {?}
*/
Browser.prototype.share = /**
* @return {?}
*/
function () {
alert("浏览器暂不支持分享,请在APP中使用此功能!");
};
/**
* @return {?}
*/
Browser.prototype.userLocation = /**
* @return {?}
*/
function () {
alert("浏览器暂不支持定位,请在APP中使用此功能!");
return rxjs.of(null);
};
/**
* @param {?} bssids
* @return {?}
*/
Browser.prototype.validateInWifi = /**
* @param {?} bssids
* @return {?}
*/
function (bssids) {
alert("浏览器暂不支持WIFI验证,请在APP中使用此功能!");
return rxjs.of(null);
};
/**
* @return {?}
*/
Browser.prototype.getWifiMac = /**
* @return {?}
*/
function () {
alert("浏览器暂不支持获取MAC地址,请在APP中使用此功能!");
return rxjs.of("浏览器暂不支持获取MAC地址,请在APP中使用此功能!");
};
/**
* @param {?} count
* @return {?}
*/
Browser.prototype.chooseContacts = /**
* @param {?} count
* @return {?}
*/
function (count) {
alert("浏览器暂不支持获取联系人,请在APP中使用此功能!");
return rxjs.of("浏览器暂不支持获取联系人,请在APP中使用此功能!");
};
/**
* @param {?} targetUserId
* @return {?}
*/
Browser.prototype.contactDetails = /**
* @param {?} targetUserId
* @return {?}
*/
function (targetUserId) {
alert("浏览器暂不支持查询联系人详细信息,请在APP中使用此功能!");
return rxjs.of("浏览器暂不支持查询联系人详细信息,请在APP中使用此功能!");
};
/**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
Browser.prototype.uploadImage = /**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
function (count, sourceType) {
alert('浏览器暂不支持图片上传,请在APP中使用此功能!');
return undefined;
};
/**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
Browser.prototype.openReadWithTimer = /**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
function (url, openType, title, id, type) {
alert('浏览器暂不支持读物时间统计,请在APP中使用此功能!');
return undefined;
};
/**
* @param {?} limitMinute
* @return {?}
*/
Browser.prototype.uploadMovie = /**
* @param {?} limitMinute
* @return {?}
*/
function (limitMinute) {
alert('浏览器暂不支持视频上传,请在APP中使用此功能!');
return undefined;
};
/**
* @param {?} url
* @param {?} title
* @return {?}
*/
Browser.prototype.fileBrowser = /**
* @param {?} url
* @param {?} title
* @return {?}
*/
function (url, title) {
alert('浏览器暂不支持此功能,请在APP中使用此功能!');
return undefined;
};
/**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
Browser.prototype.startSearchBeacons = /**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
function (ticket, callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
Browser.prototype.stopSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
Browser.prototype.onSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
Browser.decorators = [
{ type: core.Injectable, args: [{
providedIn: "root"
},] }
];
/** @nocollapse */
Browser.ctorParameters = function () { return [
{ type: TokenService },
{ type: http.HttpClient },
{ type: UserService },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] },
{ type: platformBrowser.Title }
]; };
/** @nocollapse */ Browser.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function Browser_Factory() { return new Browser(core.ɵɵinject(TokenService), core.ɵɵinject(http.HttpClient), core.ɵɵinject(UserService), core.ɵɵinject(BASE_CLIENT), core.ɵɵinject(platformBrowser.Title)); }, token: Browser, providedIn: "root" });
return Browser;
}(BaseDevice));
if (false) {
/**
* @type {?}
* @private
*/
Browser.prototype.tokenService;
/**
* @type {?}
* @private
*/
Browser.prototype.http;
/**
* @type {?}
* @private
*/
Browser.prototype.user;
/**
* @type {?}
* @private
*/
Browser.prototype.baseclient;
/**
* @type {?}
* @private
*/
Browser.prototype.title;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/yiban.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var Yiban = /** @class */ (function (_super) {
__extends(Yiban, _super);
function Yiban(tokenService, http, user, title, baseclient) {
var _this = _super.call(this) || this;
_this.tokenService = tokenService;
_this.http = http;
_this.user = user;
_this.title = title;
_this.baseclient = baseclient;
return _this;
}
/**
* @return {?}
*/
Yiban.prototype.auth = /**
* @return {?}
*/
function () {
var _this = this;
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
// 查看有无参数
/** @type {?} */
var params = window.location.href.split("?")[1];
if (params) {
// 拿到参数键直对
/** @type {?} */
var kvs = params.split("&");
/** @type {?} */
var tokenInfo_1 = {};
// 查看有无token信息
kvs.forEach((/**
* @param {?} k
* @return {?}
*/
function (k) {
if (k.includes("_token")) {
tokenInfo_1["accessToken"] = k.split("=")[1];
tokenInfo_1["tokenType"] = "bearer";
}
}));
// 如果有token信息
if (tokenInfo_1.accessToken) {
// 设置token信息
_this.tokenService.set(tokenInfo_1);
// 请求user
_this.http
.get(_this.baseclient.gateway + "/auth/user")
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
// 设置user
_this.user.set(response.principal);
// 加载结束
preloaderFinished();
resolve(true);
}));
}
else {
alert("无法获取到易班用户信息参数");
}
}
else {
alert("无法获取到易班参数");
}
}));
};
/**
* @param {?} iwindow
* @return {?}
*/
Yiban.prototype.openWindow = /**
* @param {?} iwindow
* @return {?}
*/
function (iwindow) {
window.open(iwindow.url);
};
/**
* @param {?} ititle
* @return {?}
*/
Yiban.prototype.setTitle = /**
* @param {?} ititle
* @return {?}
*/
function (ititle) {
this.title.setTitle(ititle.title);
};
/**
* @param {?} navigationBar
* @return {?}
*/
Yiban.prototype.setNavigationBar = /**
* @param {?} navigationBar
* @return {?}
*/
function (navigationBar) {
alert("易班暂不支持放置按钮,请在APP中使用此功能!");
};
/**
* @param {?} ishare
* @return {?}
*/
Yiban.prototype.share = /**
* @param {?} ishare
* @return {?}
*/
function (ishare) {
alert("易班暂不支持分享,请在APP中使用此功能!");
};
/**
* @return {?}
*/
Yiban.prototype.getToken = /**
* @return {?}
*/
function () {
return this.tokenService.get();
};
/**
* @return {?}
*/
Yiban.prototype.scanCode = /**
* @return {?}
*/
function () {
alert("易班暂不支持扫码,请在APP中使用此功能!");
return undefined;
};
/**
* @return {?}
*/
Yiban.prototype.userLocation = /**
* @return {?}
*/
function () {
alert("易班暂不支持定位,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} bssids
* @return {?}
*/
Yiban.prototype.validateInWifi = /**
* @param {?} bssids
* @return {?}
*/
function (bssids) {
alert("易班暂不支持WIFI验证,请在APP中使用此功能!");
return undefined;
};
/**
* @return {?}
*/
Yiban.prototype.getWifiMac = /**
* @return {?}
*/
function () {
alert("易班暂不支持获取MAC地址,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} count
* @return {?}
*/
Yiban.prototype.chooseContacts = /**
* @param {?} count
* @return {?}
*/
function (count) {
alert("易班暂不支持获取联系人,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} targetUserId
* @return {?}
*/
Yiban.prototype.contactDetails = /**
* @param {?} targetUserId
* @return {?}
*/
function (targetUserId) {
alert("易班暂不支持查询联系人详细信息,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
Yiban.prototype.uploadImage = /**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
function (count, sourceType) {
alert("易班暂不支持图片上传,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
Yiban.prototype.openReadWithTimer = /**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
function (url, openType, title, id, type) {
alert("易班暂不支持读物时间统计,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} limitMinute
* @return {?}
*/
Yiban.prototype.uploadMovie = /**
* @param {?} limitMinute
* @return {?}
*/
function (limitMinute) {
alert("易班暂不支持视频上传,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} url
* @param {?} title
* @return {?}
*/
Yiban.prototype.fileBrowser = /**
* @param {?} url
* @param {?} title
* @return {?}
*/
function (url, title) {
alert("易班暂不支持此功能,请在APP中使用此功能!");
return undefined;
};
/**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
Yiban.prototype.startSearchBeacons = /**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
function (ticket, callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
Yiban.prototype.stopSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
Yiban.prototype.onSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
Yiban.decorators = [
{ type: core.Injectable, args: [{
providedIn: "root",
},] }
];
/** @nocollapse */
Yiban.ctorParameters = function () { return [
{ type: TokenService },
{ type: http.HttpClient },
{ type: UserService },
{ type: platformBrowser.Title },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ Yiban.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function Yiban_Factory() { return new Yiban(core.ɵɵinject(TokenService), core.ɵɵinject(http.HttpClient), core.ɵɵinject(UserService), core.ɵɵinject(platformBrowser.Title), core.ɵɵinject(BASE_CLIENT)); }, token: Yiban, providedIn: "root" });
return Yiban;
}(BaseDevice));
if (false) {
/**
* @type {?}
* @private
*/
Yiban.prototype.tokenService;
/**
* @type {?}
* @private
*/
Yiban.prototype.http;
/**
* @type {?}
* @private
*/
Yiban.prototype.user;
/**
* @type {?}
* @private
*/
Yiban.prototype.title;
/**
* @type {?}
* @private
*/
Yiban.prototype.baseclient;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/yunzai.im.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YunzaiIm = /** @class */ (function (_super) {
__extends(YunzaiIm, _super);
function YunzaiIm(tokenService, http, user, title, baseclient) {
var _this = _super.call(this) || this;
_this.tokenService = tokenService;
_this.http = http;
_this.user = user;
_this.title = title;
_this.baseclient = baseclient;
return _this;
}
/**
* @return {?}
*/
YunzaiIm.prototype.auth = /**
* @return {?}
*/
function () {
var _this = this;
if (this.baseclient.yunzaiIm && this.baseclient.yunzaiIm.auth === false) {
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
preloaderFinished();
resolve(true);
}));
}
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
UniJsBridge.callHandler("getToken", {}, (/**
* @param {?} res
* @return {?}
*/
function (res) {
// res:就是上面的callbackFunction的参数
// 注意:如果uni-app不调用callbackFunction,那么这个回调函数是不会执行
console.log('getToken response:', JSON.stringify(res));
/** @type {?} */
var token = {};
token.tokenType = res.data.token_type;
token.accessToken = res.data.access_token;
token.scope = res.data.scope;
token.tokenDateLine = res.data.expires_in;
// 设置token
_this.tokenService.set(token);
// 发送/user请求
_this.http
.get(_this.baseclient.gateway + "/auth/user")
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
// 设置user
_this.user.set(response.principal);
// 加载结束
preloaderFinished();
resolve(true);
}));
}));
}));
};
/**
* @param {?} iwindow
* @return {?}
*/
YunzaiIm.prototype.openWindow = /**
* @param {?} iwindow
* @return {?}
*/
function (iwindow) {
window.open(iwindow.url, '_self');
};
/**
* @param {?} ititle
* @return {?}
*/
YunzaiIm.prototype.setTitle = /**
* @param {?} ititle
* @return {?}
*/
function (ititle) {
this.title.setTitle(ititle.title);
};
/**
* @param {?} navigationBar
* @return {?}
*/
YunzaiIm.prototype.setNavigationBar = /**
* @param {?} navigationBar
* @return {?}
*/
function (navigationBar) {
alert("Yunzai_IM暂不支持放置按钮!");
};
/**
* @param {?} ishare
* @return {?}
*/
YunzaiIm.prototype.share = /**
* @param {?} ishare
* @return {?}
*/
function (ishare) {
alert("Yunzai_IM暂不支持分享!");
};
/**
* @return {?}
*/
YunzaiIm.prototype.getToken = /**
* @return {?}
*/
function () {
return this.tokenService.get();
};
/**
* @return {?}
*/
YunzaiIm.prototype.scanCode = /**
* @return {?}
*/
function () {
/** @type {?} */
var p = new Promise((/**
* @param {?} resolve
* @return {?}
*/
function (resolve) {
UniJsBridge.callHandler("clickScan", {}, (/**
* @param {?} res
* @return {?}
*/
function (res) {
console.log('clickScan response:', JSON.stringify(res));
var result = res.data.result;
resolve(result);
}));
}));
return rxjs.from(p);
};
/**
* @return {?}
*/
YunzaiIm.prototype.userLocation = /**
* @return {?}
*/
function () {
/** @type {?} */
var p = new Promise((/**
* @param {?} resolve
* @return {?}
*/
function (resolve) {
// type参数支持 wgs84和 gcj02
UniJsBridge.callHandler("userLocation", { type: 'wgs84', }, (/**
* @param {?} res
* @return {?}
*/
function (res) {
console.log('userLocation response:', JSON.stringify(res));
var _a = res.data, latitude = _a.latitude, longitude = _a.longitude;
/** @type {?} */
var address = '暂无address';
resolve({ latitude: latitude, longitude: longitude, address: address });
}));
}));
return rxjs.from(p);
};
/**
* @param {?} bssids
* @return {?}
*/
YunzaiIm.prototype.validateInWifi = /**
* @param {?} bssids
* @return {?}
*/
function (bssids) {
alert("Yunzai_IM暂不支持WIFI验证!");
return undefined;
};
/**
* @return {?}
*/
YunzaiIm.prototype.getWifiMac = /**
* @return {?}
*/
function () {
alert("Yunzai_IM暂不支持获取MAC地址!");
return undefined;
};
/**
* @param {?} count
* @return {?}
*/
YunzaiIm.prototype.chooseContacts = /**
* @param {?} count
* @return {?}
*/
function (count) {
alert("Yunzai_IM暂不支持获取联系人!");
return undefined;
};
/**
* @param {?} targetUserId
* @return {?}
*/
YunzaiIm.prototype.contactDetails = /**
* @param {?} targetUserId
* @return {?}
*/
function (targetUserId) {
alert("Yunzai_IM暂不支持查询联系人详细信息!");
return undefined;
};
/**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
YunzaiIm.prototype.uploadImage = /**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
function (count, sourceType) {
alert("Yunzai_IM暂不支持图片上传!");
return undefined;
};
/**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
YunzaiIm.prototype.openReadWithTimer = /**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
function (url, openType, title, id, type) {
alert("Yunzai_IM暂不支持读物时间统计!");
return undefined;
};
/**
* @param {?} limitMinute
* @return {?}
*/
YunzaiIm.prototype.uploadMovie = /**
* @param {?} limitMinute
* @return {?}
*/
function (limitMinute) {
alert("Yunzai_IM暂不支持视频上传!");
return undefined;
};
/**
* @param {?} url
* @param {?} title
* @return {?}
*/
YunzaiIm.prototype.fileBrowser = /**
* @param {?} url
* @param {?} title
* @return {?}
*/
function (url, title) {
alert("Yunzai_IM暂不支持此功能!");
return undefined;
};
/**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
YunzaiIm.prototype.startSearchBeacons = /**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
function (ticket, callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
YunzaiIm.prototype.stopSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
YunzaiIm.prototype.onSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
YunzaiIm.decorators = [
{ type: core.Injectable, args: [{
providedIn: "root",
},] }
];
/** @nocollapse */
YunzaiIm.ctorParameters = function () { return [
{ type: TokenService },
{ type: http.HttpClient },
{ type: UserService },
{ type: platformBrowser.Title },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ YunzaiIm.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function YunzaiIm_Factory() { return new YunzaiIm(core.ɵɵinject(TokenService), core.ɵɵinject(http.HttpClient), core.ɵɵinject(UserService), core.ɵɵinject(platformBrowser.Title), core.ɵɵinject(BASE_CLIENT)); }, token: YunzaiIm, providedIn: "root" });
return YunzaiIm;
}(BaseDevice));
if (false) {
/**
* @type {?}
* @private
*/
YunzaiIm.prototype.tokenService;
/**
* @type {?}
* @private
*/
YunzaiIm.prototype.http;
/**
* @type {?}
* @private
*/
YunzaiIm.prototype.user;
/**
* @type {?}
* @private
*/
YunzaiIm.prototype.title;
/**
* @type {?}
* @private
*/
YunzaiIm.prototype.baseclient;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/dingtalk.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var apis$2 = [
'requestAuthCode',
'scan',
'getLocation',
'device.geolocation.get',
];
var Dingtalk = /** @class */ (function (_super) {
__extends(Dingtalk, _super);
function Dingtalk(tokenService, http, user, title, baseclient) {
var _this = _super.call(this) || this;
_this.tokenService = tokenService;
_this.http = http;
_this.user = user;
_this.title = title;
_this.baseclient = baseclient;
return _this;
}
/**
* @return {?}
*/
Dingtalk.prototype.auth = /**
* @return {?}
*/
function () {
var _this = this;
if (this.baseclient.dingtalk && this.baseclient.dingtalk.auth === false) {
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) {
preloaderFinished();
resolve(true);
}));
}
return new Promise((/**
* @param {?} reject
* @param {?} resolve
* @return {?}
*/
function (reject, resolve) {
/** @type {?} */
var url = encodeURIComponent(window.location.href);
_this.http
.get(_this.baseclient.gateway + "/wechat/mp/token?url=" + url)
.subscribe((/**
* @param {?} token
* @return {?}
*/
function (token) {
if (token.error_code === 200) {
_this.tokenService.set((/** @type {?} */ ({
accessToken: token.message,
tokenType: "bearer",
})));
_this.http
.get(_this.baseclient.gateway + "/auth/user")
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
_this.user.set(response.principal);
_this.generateDingtalkConfig();
preloaderFinished();
reject(null);
}));
}
else if (token.error_code === 500) {
// 没有token,则重定向到认证页面,认证完成后会跳回本页面
window.location.href = token.path;
}
}));
}));
};
/**
* @param {?} iwindow
* @return {?}
*/
Dingtalk.prototype.openWindow = /**
* @param {?} iwindow
* @return {?}
*/
function (iwindow) {
window.open(iwindow.url, '_self');
};
/**
* @param {?} ititle
* @return {?}
*/
Dingtalk.prototype.setTitle = /**
* @param {?} ititle
* @return {?}
*/
function (ititle) {
this.title.setTitle(ititle.title);
};
/**
* @param {?} navigationBar
* @return {?}
*/
Dingtalk.prototype.setNavigationBar = /**
* @param {?} navigationBar
* @return {?}
*/
function (navigationBar) {
alert("dingtalk暂不支持放置按钮!");
};
/**
* @param {?} ishare
* @return {?}
*/
Dingtalk.prototype.share = /**
* @param {?} ishare
* @return {?}
*/
function (ishare) {
alert("dingtalk暂不支持分享!");
};
/**
* @return {?}
*/
Dingtalk.prototype.getToken = /**
* @return {?}
*/
function () {
return this.tokenService.get();
};
/**
* @return {?}
*/
Dingtalk.prototype.scanCode = /**
* @return {?}
*/
function () {
/** @type {?} */
var p = new Promise((/**
* @param {?} resolve
* @return {?}
*/
function (resolve) {
dd.scan({
type: 'qr',
success: (/**
* @param {?} res
* @return {?}
*/
function (res) {
resolve(res.text);
}),
fail: (/**
* @param {?} err
* @return {?}
*/
function (err) {
console.log('调用扫一扫失败:' + JSON.stringify(err));
}),
});
}));
return rxjs.from(p);
};
/**
* @return {?}
*/
Dingtalk.prototype.userLocation = /**
* @return {?}
*/
function () {
/** @type {?} */
var p = new Promise((/**
* @param {?} resolve
* @return {?}
*/
function (resolve) {
dd.getLocation({
type: 1,
useCache: true,
coordinate: '0',
cacheTimeout: 20,
withReGeocode: true,
targetAccuracy: '200',
success: (/**
* @param {?} res
* @return {?}
*/
function (res) {
console.log(res);
var latitude = res.latitude, longitude = res.longitude, address = res.address;
resolve({ latitude: latitude, longitude: longitude, address: address });
}),
fail: (/**
* @param {?} err
* @return {?}
*/
function (err) {
console.log('调用定位失败:' + JSON.stringify(err));
}),
});
}));
return rxjs.from(p);
};
/**
* @param {?} bssids
* @return {?}
*/
Dingtalk.prototype.validateInWifi = /**
* @param {?} bssids
* @return {?}
*/
function (bssids) {
alert("dingtalk暂不支持WIFI验证!");
return undefined;
};
/**
* @return {?}
*/
Dingtalk.prototype.getWifiMac = /**
* @return {?}
*/
function () {
alert("dingtalk暂不支持获取MAC地址!");
return undefined;
};
/**
* @param {?} count
* @return {?}
*/
Dingtalk.prototype.chooseContacts = /**
* @param {?} count
* @return {?}
*/
function (count) {
alert("dingtalk暂不支持获取联系人!");
return undefined;
};
/**
* @param {?} targetUserId
* @return {?}
*/
Dingtalk.prototype.contactDetails = /**
* @param {?} targetUserId
* @return {?}
*/
function (targetUserId) {
alert("dingtalk暂不支持查询联系人详细信息!");
return undefined;
};
/**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
Dingtalk.prototype.uploadImage = /**
* @param {?} count
* @param {?} sourceType
* @return {?}
*/
function (count, sourceType) {
alert("dingtalk暂不支持图片上传!");
return undefined;
};
/**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
Dingtalk.prototype.openReadWithTimer = /**
* @param {?} url
* @param {?} openType
* @param {?} title
* @param {?} id
* @param {?} type
* @return {?}
*/
function (url, openType, title, id, type) {
alert("dingtalk暂不支持读物时间统计!");
return undefined;
};
/**
* @param {?} limitMinute
* @return {?}
*/
Dingtalk.prototype.uploadMovie = /**
* @param {?} limitMinute
* @return {?}
*/
function (limitMinute) {
alert("dingtalk暂不支持视频上传!");
return undefined;
};
/**
* @param {?} url
* @param {?} title
* @return {?}
*/
Dingtalk.prototype.fileBrowser = /**
* @param {?} url
* @param {?} title
* @return {?}
*/
function (url, title) {
alert("dingtalk暂不支持此功能!");
return undefined;
};
/**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
Dingtalk.prototype.startSearchBeacons = /**
* @param {?} ticket
* @param {?} callback
* @return {?}
*/
function (ticket, callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
Dingtalk.prototype.stopSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
/**
* @param {?} callback
* @return {?}
*/
Dingtalk.prototype.onSearchBeacons = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
throw new Error("Method not implemented.");
};
/**
* @return {?}
*/
Dingtalk.prototype.generateDingtalkConfig = /**
* @return {?}
*/
function () {
this.http
.get(this.baseclient.gateway + "/wechat/mp/jssdk?url=" + encodeURIComponent(window.location.href))
.subscribe((/**
* @param {?} response
* @return {?}
*/
function (response) {
try {
dd.config({
agentId: response.agentId,
// 必填,微应用ID
corpId: response.corpId,
// 必填,企业ID
timeStamp: response.timestamp,
// 必填,生成签名的时间戳
nonceStr: response.nonceStr,
// 必填,自定义固定字符串。
signature: response.signature,
// 必填,签名
type: 0,
// 选填。0表示微应用的jsapi,1表示服务窗的jsapi;不填默认为0。该参数从dingtalk.js的0.8.3版本开始支持
jsApiList: apis$2 // 必填,需要使用的jsapi列表,注意:不要带dd。
});
}
catch (e) {
console.log(e);
}
}));
dd.ready((/**
* @return {?}
*/
function () {
console.log('钉钉jssdk初始化完成.');
}));
dd.error((/**
* @param {?} res
* @return {?}
*/
function (res) {
console.log('钉钉jssdk初始化失败:', res);
}));
};
Dingtalk.decorators = [
{ type: core.Injectable, args: [{
providedIn: "root",
},] }
];
/** @nocollapse */
Dingtalk.ctorParameters = function () { return [
{ type: TokenService },
{ type: http.HttpClient },
{ type: UserService },
{ type: platformBrowser.Title },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ Dingtalk.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function Dingtalk_Factory() { return new Dingtalk(core.ɵɵinject(TokenService), core.ɵɵinject(http.HttpClient), core.ɵɵinject(UserService), core.ɵɵinject(platformBrowser.Title), core.ɵɵinject(BASE_CLIENT)); }, token: Dingtalk, providedIn: "root" });
return Dingtalk;
}(BaseDevice));
if (false) {
/**
* @type {?}
* @private
*/
Dingtalk.prototype.tokenService;
/**
* @type {?}
* @private
*/
Dingtalk.prototype.http;
/**
* @type {?}
* @private
*/
Dingtalk.prototype.user;
/**
* @type {?}
* @private
*/
Dingtalk.prototype.title;
/**
* @type {?}
* @private
*/
Dingtalk.prototype.baseclient;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/device.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @enum {string} */
var DeviceType = {
// 浏览器
BROWSER: "BROWSER",
// 苹果
IOS: "IOS",
// 安卓
ANDROID: "ANDROID",
// 公众号
WECHAT_MP: "WECHAT_MP",
// 小程序
WECHAT_MICRO: "WECHAT_MICRO",
// YIBAN
YIBAN: "YIBAN",
// YUNZAI_IM
YUNZAI_IM: "YUNZAI_IM",
// 钉钉
DINGTALK: "DINGTALK",
};
var DeviceService = /** @class */ (function () {
// tslint:disable-next-line: no-use-before-declare
function DeviceService(inject, baseclient) {
this.inject = inject;
this.baseclient = baseclient;
if (this.baseclient.alwaysBrowser) {
this.native = this.inject.get(Browser);
return;
}
switch (this.getType()) {
case DeviceType.YIBAN:
this.native = this.inject.get(Yiban);
break;
case DeviceType.ANDROID:
this.native = this.inject.get(Android);
break;
case DeviceType.IOS:
this.native = this.inject.get(IOS);
break;
case DeviceType.YUNZAI_IM:
this.native = this.inject.get(YunzaiIm);
break;
case DeviceType.DINGTALK:
this.native = this.inject.get(Dingtalk);
break;
case DeviceType.WECHAT_MP:
this.native = this.inject.get(WechatMp);
break;
case DeviceType.WECHAT_MICRO:
this.native = this.inject.get(WechatMicro);
break;
default:
this.native = this.inject.get(Browser);
break;
}
}
/**
* @return {?}
*/
DeviceService.prototype.ngOnInit = /**
* @return {?}
*/
function () {
};
/**
* 获取设备类型
*/
/**
* 获取设备类型
* @return {?}
*/
DeviceService.prototype.getType = /**
* 获取设备类型
* @return {?}
*/
function () {
/** @type {?} */
var agent = window.navigator.userAgent.toLowerCase();
if (/yiban/.test(agent)) {
return DeviceType.YIBAN;
}
if (/miniprogram/.test(agent)) {
return DeviceType.WECHAT_MICRO;
}
if (/yunzai_im/.test(agent)) {
return DeviceType.YUNZAI_IM;
}
if (/dingtalk/.test(agent)) {
return DeviceType.DINGTALK;
}
if (/iphone|ipod|ipad/.test(agent) &&
/mobile/.test(agent) &&
/yunzai/.test(agent)) {
return DeviceType.IOS;
}
if (/android/.test(agent) &&
/mobile/.test(agent) &&
/yunzai/.test(agent)) {
return DeviceType.ANDROID;
}
if (/micromessenger/.test(agent)) {
return DeviceType.WECHAT_MP;
}
return DeviceType.BROWSER;
};
DeviceService.decorators = [
{ type: core.Injectable, args: [{
providedIn: "root",
},] }
];
/** @nocollapse */
DeviceService.ctorParameters = function () { return [
{ type: core.Injector },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ DeviceService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function DeviceService_Factory() { return new DeviceService(core.ɵɵinject(core.INJECTOR), core.ɵɵinject(BASE_CLIENT)); }, token: DeviceService, providedIn: "root" });
return DeviceService;
}());
if (false) {
/** @type {?} */
DeviceService.prototype.native;
/**
* @type {?}
* @private
*/
DeviceService.prototype.inject;
/**
* @type {?}
* @private
*/
DeviceService.prototype.baseclient;
}
/**
* @fileoverview added by tsickle
* Generated from: auth/startup.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var StartupService = /** @class */ (function () {
function StartupService(deviceService, systemInfoService, baseclient) {
this.deviceService = deviceService;
this.systemInfoService = systemInfoService;
this.baseclient = baseclient;
}
/**
* @return {?}
*/
StartupService.prototype.load = /**
* @return {?}
*/
function () {
var _this = this;
if (this.baseclient.openDev === true) {
preloaderFinished();
return new Promise((/**
* @param {?} resolve
* @param {?} reject
* @return {?}
*/
function (resolve, reject) { return resolve(true); }));
}
return this.deviceService.native.auth().then((/**
* @return {?}
*/
function () { return _this.systemInfoService.initSystemInfo(); }));
};
StartupService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
StartupService.ctorParameters = function () { return [
{ type: DeviceService },
{ type: InfoService },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ StartupService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function StartupService_Factory() { return new StartupService(core.ɵɵinject(DeviceService), core.ɵɵinject(InfoService), core.ɵɵinject(BASE_CLIENT)); }, token: StartupService, providedIn: "root" });
return StartupService;
}());
if (false) {
/**
* @type {?}
* @private
*/
StartupService.prototype.deviceService;
/**
* @type {?}
* @private
*/
StartupService.prototype.systemInfoService;
/**
* @type {?}
* @private
*/
StartupService.prototype.baseclient;
}
/**
* @param {?} startupService
* @return {?}
*/
function StartupServiceFactory(startupService) {
return (/**
* @return {?}
*/
function () { return startupService.load(); });
}
/** @type {?} */
var APPINIT_PROVIDES = [
StartupService,
{
provide: core.APP_INITIALIZER,
useFactory: StartupServiceFactory,
deps: [StartupService],
multi: true,
},
];
/**
* @fileoverview added by tsickle
* Generated from: auth/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: devices/model/location.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function UserLocation() { }
if (false) {
/** @type {?} */
UserLocation.prototype.address;
/** @type {?} */
UserLocation.prototype.latitude;
/** @type {?} */
UserLocation.prototype.longitude;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/model/navigationbar.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function NavigationBar() { }
if (false) {
/** @type {?} */
NavigationBar.prototype.showMenu;
/** @type {?} */
NavigationBar.prototype.shareFlag;
/** @type {?} */
NavigationBar.prototype.items;
/** @type {?} */
NavigationBar.prototype.onClick;
/** @type {?|undefined} */
NavigationBar.prototype.success;
/** @type {?|undefined} */
NavigationBar.prototype.fial;
/** @type {?|undefined} */
NavigationBar.prototype.complete;
}
/**
* @record
*/
function MyNavigationBar() { }
if (false) {
/** @type {?} */
MyNavigationBar.prototype.type;
/** @type {?} */
MyNavigationBar.prototype.title;
/** @type {?} */
MyNavigationBar.prototype.icon;
/** @type {?} */
MyNavigationBar.prototype.clickId;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/model/share.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/*
* @Createdby: Microsoft Visual Code
* @Author: ferried
* @Email: harlancui@outlook.com
* @LastEditors: ferried
* @Version: 1.0.0-SNAPSHOT
* @Description: none
* @Date: 2019-05-08 18:25:07
* @LastEditTime: 2019-05-08 18:27:35
*/
/**
* @record
*/
function IShare() { }
if (false) {
/** @type {?|undefined} */
IShare.prototype.shareFlag;
/** @type {?|undefined} */
IShare.prototype.success;
/** @type {?|undefined} */
IShare.prototype.fail;
/** @type {?|undefined} */
IShare.prototype.complete;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/model/title.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function ITitle() { }
if (false) {
/** @type {?|undefined} */
ITitle.prototype.title;
/** @type {?|undefined} */
ITitle.prototype.success;
/** @type {?|undefined} */
ITitle.prototype.fail;
/** @type {?|undefined} */
ITitle.prototype.complete;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/model/window.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function IWindow() { }
if (false) {
/** @type {?|undefined} */
IWindow.prototype.type;
/** @type {?|undefined} */
IWindow.prototype.url;
/** @type {?|undefined} */
IWindow.prototype.applicationId;
/** @type {?|undefined} */
IWindow.prototype.shareFlag;
/** @type {?|undefined} */
IWindow.prototype.nBack;
/** @type {?|undefined} */
IWindow.prototype.success;
/** @type {?|undefined} */
IWindow.prototype.fail;
/** @type {?|undefined} */
IWindow.prototype.complete;
/** @type {?|undefined} */
IWindow.prototype.listener;
}
/** @enum {string} */
var IWindowType = {
NATIVE: "native",
URL: "url",
};
/**
* @fileoverview added by tsickle
* Generated from: devices/model/wechat.api.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var WechatApi = /** @class */ (function () {
function WechatApi() {
this.api = [];
this.api = [
'updateAppMessageShareData',
'updateTimelineShareData',
'onMenuShareTimeline',
'onMenuShareAppMessage',
'onMenuShareQQ',
'onMenuShareWeibo',
'onMenuShareQZone',
'startRecord',
'stopRecord',
'onVoiceRecordEnd',
'playVoice',
'pauseVoice',
'stopVoice',
'onVoicePlayEnd',
'uploadVoice',
'downloadVoice',
'chooseImage',
'previewImage',
'uploadImage',
'downloadImage',
'translateVoice',
'getNetworkType',
'openLocation',
'getLocation',
'hideOptionMenu',
'showOptionMenu',
'hideMenuItems',
'showMenuItems',
'hideAllNonBaseMenuItem',
'showAllNonBaseMenuItem',
'closeWindow',
'scanQRCode',
'chooseWXPay',
'openProductSpecificView',
'addCard',
'chooseCard',
'openCard',
];
}
return WechatApi;
}());
if (false) {
/** @type {?} */
WechatApi.prototype.api;
}
/**
* @fileoverview added by tsickle
* Generated from: devices/model/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: devices/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: interceptor/cookie.interceptor.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var CookieInterceptor = /** @class */ (function () {
function CookieInterceptor() {
}
/**
* @param {?} req
* @param {?} next
* @return {?}
*/
CookieInterceptor.prototype.intercept = /**
* @param {?} req
* @param {?} next
* @return {?}
*/
function (req, next) {
// 在请求头中加入cookie跨域
/** @type {?} */
var request = req.clone({
withCredentials: true,
});
return next.handle(request);
};
CookieInterceptor.decorators = [
{ type: core.Injectable, args: [{ providedIn: 'root' },] }
];
/** @nocollapse */ CookieInterceptor.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function CookieInterceptor_Factory() { return new CookieInterceptor(); }, token: CookieInterceptor, providedIn: "root" });
return CookieInterceptor;
}());
/**
* @fileoverview added by tsickle
* Generated from: interceptor/token.interceptor.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var TokenInterceptor = /** @class */ (function () {
function TokenInterceptor(tokenService, baseclient) {
this.tokenService = tokenService;
this.baseclient = baseclient;
}
/**
* @param {?} req
* @param {?} next
* @return {?}
*/
TokenInterceptor.prototype.intercept = /**
* @param {?} req
* @param {?} next
* @return {?}
*/
function (req, next) {
var _this = this;
/** @type {?} */
var token = this.tokenService.get().accessToken;
console.log('token interceptor', token);
/** @type {?} */
var tokenType = this.tokenService.get().tokenType;
if (this.baseclient.openDev === true) {
return next.handle(req);
}
if (token) {
/** @type {?} */
var newReq = req.clone({
headers: req.headers.append('Authorization', tokenType + " " + token)
});
return next.handle(newReq);
}
else if (this.baseclient.ignores.includes(req.url)) {
return next.handle(req);
}
else {
return next.handle(req).pipe(operators.mergeMap((/**
* @param {?} event
* @return {?}
*/
function (event) {
if (event instanceof http.HttpResponseBase) {
return _this.handleData(event);
}
return rxjs.of(event);
})), operators.catchError((/**
* @param {?} err
* @return {?}
*/
function (err) { return _this.handleData(err); })));
}
};
/**
* @param {?} ev
* @return {?}
*/
TokenInterceptor.prototype.handleData = /**
* @param {?} ev
* @return {?}
*/
function (ev) {
if (ev instanceof http.HttpErrorResponse) {
return rxjs.throwError(ev);
}
return rxjs.of(ev);
};
TokenInterceptor.decorators = [
{ type: core.Injectable, args: [{ providedIn: 'root' },] }
];
/** @nocollapse */
TokenInterceptor.ctorParameters = function () { return [
{ type: TokenService },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ TokenInterceptor.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function TokenInterceptor_Factory() { return new TokenInterceptor(core.ɵɵinject(TokenService), core.ɵɵinject(BASE_CLIENT)); }, token: TokenInterceptor, providedIn: "root" });
return TokenInterceptor;
}());
if (false) {
/**
* @type {?}
* @private
*/
TokenInterceptor.prototype.tokenService;
/**
* @type {?}
* @private
*/
TokenInterceptor.prototype.baseclient;
}
/**
* @fileoverview added by tsickle
* Generated from: interceptor/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: token/itoken.model.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function ITokenModel() { }
if (false) {
/** @type {?} */
ITokenModel.prototype.token;
/* Skipping unhandled member: [key: string]: any;*/
}
/**
* @fileoverview added by tsickle
* Generated from: token/local-storage.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var LocalStorageStore = /** @class */ (function () {
function LocalStorageStore() {
}
/**
* @param {?} key
* @return {?}
*/
LocalStorageStore.prototype.get = /**
* @param {?} key
* @return {?}
*/
function (key) {
return JSON.parse(localStorage.getItem(key) || '{}') || {};
};
/**
* @param {?} key
* @param {?} value
* @return {?}
*/
LocalStorageStore.prototype.set = /**
* @param {?} key
* @param {?} value
* @return {?}
*/
function (key, value) {
localStorage.setItem(key, JSON.stringify(value));
return true;
};
/**
* @param {?} key
* @return {?}
*/
LocalStorageStore.prototype.remove = /**
* @param {?} key
* @return {?}
*/
function (key) {
localStorage.removeItem(key);
};
return LocalStorageStore;
}());
/**
* @fileoverview added by tsickle
* Generated from: token/session-storage.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var SessionStorageStore = /** @class */ (function () {
function SessionStorageStore() {
}
/**
* @param {?} key
* @return {?}
*/
SessionStorageStore.prototype.get = /**
* @param {?} key
* @return {?}
*/
function (key) {
return JSON.parse(sessionStorage.getItem(key) || '{}') || {};
};
/**
* @param {?} key
* @param {?} value
* @return {?}
*/
SessionStorageStore.prototype.set = /**
* @param {?} key
* @param {?} value
* @return {?}
*/
function (key, value) {
sessionStorage.setItem(key, JSON.stringify(value));
return true;
};
/**
* @param {?} key
* @return {?}
*/
SessionStorageStore.prototype.remove = /**
* @param {?} key
* @return {?}
*/
function (key) {
sessionStorage.removeItem(key);
};
return SessionStorageStore;
}());
/**
* @fileoverview added by tsickle
* Generated from: token/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: user/user.service.interface.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function UserServiceInterface() { }
if (false) {
/**
* @param {?} data
* @return {?}
*/
UserServiceInterface.prototype.set = function (data) { };
/**
* @param {?=} type
* @return {?}
*/
UserServiceInterface.prototype.get = function (type) { };
/**
* @template T
* @param {?=} type
* @return {?}
*/
UserServiceInterface.prototype.get = function (type) { };
/**
* @return {?}
*/
UserServiceInterface.prototype.clear = function () { };
/**
* @return {?}
*/
UserServiceInterface.prototype.change = function () { };
}
/**
* @fileoverview added by tsickle
* Generated from: user/user.interface.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function IUser() { }
if (false) {
/** @type {?|undefined} */
IUser.prototype.account;
/** @type {?|undefined} */
IUser.prototype.userName;
/** @type {?|undefined} */
IUser.prototype.password;
/** @type {?|undefined} */
IUser.prototype.userId;
/** @type {?|undefined} */
IUser.prototype.realName;
/** @type {?|undefined} */
IUser.prototype.deptId;
/** @type {?|undefined} */
IUser.prototype.deptName;
/** @type {?|undefined} */
IUser.prototype.userType;
}
/**
* @record
*/
function User() { }
if (false) {
/** @type {?|undefined} */
User.prototype.accountNonExpired;
/** @type {?|undefined} */
User.prototype.accountNonLocked;
/** @type {?|undefined} */
User.prototype.authorities;
/** @type {?|undefined} */
User.prototype.credentialsNonExpired;
/** @type {?|undefined} */
User.prototype.deptId;
/** @type {?|undefined} */
User.prototype.deptName;
/** @type {?|undefined} */
User.prototype.enabled;
/** @type {?|undefined} */
User.prototype.id;
/** @type {?|undefined} */
User.prototype.password;
/** @type {?|undefined} */
User.prototype.realname;
/** @type {?|undefined} */
User.prototype.roles;
/** @type {?|undefined} */
User.prototype.userCode;
/** @type {?|undefined} */
User.prototype.userId;
/** @type {?|undefined} */
User.prototype.userType;
/** @type {?|undefined} */
User.prototype.username;
/** @type {?|undefined} */
User.prototype.avatarId;
/** @type {?|undefined} */
User.prototype.menu;
}
/**
* @record
*/
function Sider() { }
if (false) {
/** @type {?|undefined} */
Sider.prototype.id;
/** @type {?|undefined} */
Sider.prototype.text;
/** @type {?|undefined} */
Sider.prototype.i18n;
/** @type {?|undefined} */
Sider.prototype.group;
/** @type {?|undefined} */
Sider.prototype.link;
/** @type {?|undefined} */
Sider.prototype.externalLink;
/** @type {?|undefined} */
Sider.prototype.target;
/** @type {?|undefined} */
Sider.prototype.intro;
/** @type {?|undefined} */
Sider.prototype.systemCode;
/** @type {?|undefined} */
Sider.prototype.icon;
/** @type {?|undefined} */
Sider.prototype.label;
/** @type {?|undefined} */
Sider.prototype.version;
/** @type {?|undefined} */
Sider.prototype.attribute;
/** @type {?|undefined} */
Sider.prototype.badge;
/** @type {?|undefined} */
Sider.prototype.badge_dot;
/** @type {?|undefined} */
Sider.prototype.badge_status;
/** @type {?|undefined} */
Sider.prototype.hide;
/** @type {?|undefined} */
Sider.prototype.hideChildren;
/** @type {?|undefined} */
Sider.prototype.hideInBreadcrumb;
/** @type {?|undefined} */
Sider.prototype.shortcut;
/** @type {?|undefined} */
Sider.prototype.shortcut_root;
/** @type {?|undefined} */
Sider.prototype.reuse;
/** @type {?|undefined} */
Sider.prototype.displayIndex;
/** @type {?|undefined} */
Sider.prototype.children;
/** @type {?|undefined} */
Sider.prototype.menuAuths;
/** @type {?|undefined} */
Sider.prototype.pid;
}
/** @enum {string} */
var BADGE_STATUS = {
SUCCESS: "success", PROCESSING: "processing", DEFAULT: "default", ERROR: "error", WARNING: "warning",
};
/** @enum {string} */
var SIDER_THEME = {
DARK: "dark", LIGHT: "light",
};
/** @enum {string} */
var SIDER_MODE = {
VERTICAL: "vertical", INLINE: "inline",
};
/** @type {?} */
var DA_SERVICE_USER = new core.InjectionToken('DA_SERVICE_USER', {
providedIn: 'root',
factory: DA_SERVICE_USER_FACTORY,
});
/**
* @return {?}
*/
function DA_SERVICE_USER_FACTORY() {
return new UserService((/** @type {?} */ (core.inject(DA_STORE_USER))), core.inject(BASE_CLIENT), (/** @type {?} */ (core.inject(DA_SERVICE_TOKEN))));
}
/**
* @fileoverview added by tsickle
* Generated from: user/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: select-contacts/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: loading/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: empty/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: page/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: upload-file/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: location/location.model.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function LocationModel() { }
if (false) {
/** @type {?} */
LocationModel.prototype.formatted_address;
/** @type {?} */
LocationModel.prototype.location;
/** @type {?} */
LocationModel.prototype.addressComponent;
}
/**
* @record
*/
function LocationInfo() { }
if (false) {
/** @type {?} */
LocationInfo.prototype.lon;
/** @type {?} */
LocationInfo.prototype.lat;
}
/**
* @record
*/
function AddressComponent() { }
if (false) {
/** @type {?} */
AddressComponent.prototype.address;
/** @type {?} */
AddressComponent.prototype.address_distance;
/** @type {?} */
AddressComponent.prototype.address_position;
/** @type {?} */
AddressComponent.prototype.city;
/** @type {?} */
AddressComponent.prototype.poi;
/** @type {?} */
AddressComponent.prototype.poi_distance;
/** @type {?} */
AddressComponent.prototype.poi_position;
/** @type {?} */
AddressComponent.prototype.road;
/** @type {?} */
AddressComponent.prototype.road_distance;
}
/**
* @fileoverview added by tsickle
* Generated from: location/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: img-cropper/yz-img-cropper/yz-img-cropper.service.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var YzImgCropperService = /** @class */ (function () {
function YzImgCropperService(dialog, client) {
this.dialog = dialog;
this.client = client;
}
/**
* 图片裁剪
* @param option
*/
/**
* 图片裁剪
* @param {?} option
* @return {?}
*/
YzImgCropperService.prototype.imgCropper = /**
* 图片裁剪
* @param {?} option
* @return {?}
*/
function (option) {
/** @type {?} */
var dialogRef = this.dialog.open(YzImgCropperComponent, {
panelClass: 'yz-img-cropper-panel',
closeOnNavigation: true,
data: {
imgFile: option.imgFile,
fileType: (option.fileType == undefined || option.fileType == null) ? 'FileEvent' : option.fileType,
containWithinAspectRatio: (option.containWithinAspectRatio == undefined || option.containWithinAspectRatio == null) ? false : option.containWithinAspectRatio,
format: (option.format == undefined || option.format == null) ? 'png' : option.format,
imageQuality: (option.imageQuality == undefined || option.imageQuality == null) ? 92 : option.imageQuality,
aspectRatio: (option.aspectRatio == undefined || option.aspectRatio == null) ? 1 / 1 : option.aspectRatio,
maxSizeMB: (option.maxSizeMB == undefined || option.maxSizeMB == null) ? 1 : option.maxSizeMB,
maxWidthOrHeight: (option.maxWidthOrHeight == undefined || option.maxWidthOrHeight == null) ? 100 : option.maxWidthOrHeight,
}
});
dialogRef.afterClosed().subscribe((/**
* @param {?} result
* @return {?}
*/
function (result) {
option.onOk(result ? result : null);
}));
};
YzImgCropperService.decorators = [
{ type: core.Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
YzImgCropperService.ctorParameters = function () { return [
{ type: dialog.MatDialog },
{ type: undefined, decorators: [{ type: core.Inject, args: [BASE_CLIENT,] }] }
]; };
/** @nocollapse */ YzImgCropperService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function YzImgCropperService_Factory() { return new YzImgCropperService(core.ɵɵinject(dialog.MatDialog), core.ɵɵinject(BASE_CLIENT)); }, token: YzImgCropperService, providedIn: "root" });
return YzImgCropperService;
}());
if (false) {
/** @type {?} */
YzImgCropperService.prototype.dialog;
/**
* @type {?}
* @private
*/
YzImgCropperService.prototype.client;
}
/**
* @fileoverview added by tsickle
* Generated from: img-cropper/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: tree-picker/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: info/info.interface.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function SystemInfo() { }
if (false) {
/** @type {?|undefined} */
SystemInfo.prototype.copyright;
/** @type {?|undefined} */
SystemInfo.prototype.faviconUrl;
/** @type {?|undefined} */
SystemInfo.prototype.gateway;
/** @type {?|undefined} */
SystemInfo.prototype.maxLogoUrl;
/** @type {?|undefined} */
SystemInfo.prototype.miniLogoUrl;
/** @type {?|undefined} */
SystemInfo.prototype.profileList;
/** @type {?|undefined} */
SystemInfo.prototype.projectName;
/** @type {?|undefined} */
SystemInfo.prototype.tucaoUrl;
/** @type {?|undefined} */
SystemInfo.prototype.headerStyle;
/** @type {?|undefined} */
SystemInfo.prototype.showAllMenu;
/** @type {?|undefined} */
SystemInfo.prototype.pageTitlePattern;
/** @type {?|undefined} */
SystemInfo.prototype.clientEnd;
}
/**
* @record
*/
function SystemMenu() { }
if (false) {
/** @type {?|undefined} */
SystemMenu.prototype.name;
/** @type {?|undefined} */
SystemMenu.prototype.url;
}
/**
* @record
*/
function headerStyle() { }
if (false) {
/** @type {?|undefined} */
headerStyle.prototype.label;
/** @type {?|undefined} */
headerStyle.prototype.value;
}
/**
* @record
*/
function ClientEnd() { }
if (false) {
/** @type {?|undefined} */
ClientEnd.prototype.color;
/** @type {?|undefined} */
ClientEnd.prototype.sloganUrl;
}
/**
* @fileoverview added by tsickle
* Generated from: info/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: layout/index.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* Generated from: float-button/float-button.model.ts
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @record
*/
function FloatButtonModel() { }
if (false) {
/** @type {?} */
FloatButtonModel.prototype.icon;
/** @type {?} */
FloatButtonModel.prototype.title;
/** @type {?} */
FloatButtonModel.prototype.click;
}
exports.APPINIT_PROVIDES = APPINIT_PROVIDES;
exports.AclDirective = AclDirective;
exports.AclModule = AclModule;
exports.AiAssistantModule = AiAssistantModule;
exports.Android = Android;
exports.BADGE_STATUS = BADGE_STATUS;
exports.BASE_CLIENT = BASE_CLIENT;
exports.BaseDevice = BaseDevice;
exports.Browser = Browser;
exports.ComponentOption = ComponentOption$2;
exports.CookieInterceptor = CookieInterceptor;
exports.DA_SERVICE_TOKEN = DA_SERVICE_TOKEN;
exports.DA_SERVICE_TOKEN_FACTORY = DA_SERVICE_TOKEN_FACTORY;
exports.DA_SERVICE_USER = DA_SERVICE_USER;
exports.DA_SERVICE_USER_FACTORY = DA_SERVICE_USER_FACTORY;
exports.DA_STORE_TOKEN = DA_STORE_TOKEN;
exports.DA_STORE_USER = DA_STORE_USER;
exports.DeviceService = DeviceService;
exports.DeviceType = DeviceType;
exports.EmptyModule = EmptyModule;
exports.FileCarouselService = FileCarouselService;
exports.FileShowService = FileShowService;
exports.IOS = IOS;
exports.IWindowType = IWindowType;
exports.ImgCropperModule = ImgCropperModule;
exports.InfoService = InfoService;
exports.LayoutModule = LayoutModule;
exports.LoadingModule = LoadingModule;
exports.LocalStorageStore = LocalStorageStore;
exports.LocationModule = LocationModule;
exports.LocationService = LocationService;
exports.MemoryStore = MemoryStore;
exports.MemoryUserStore = MemoryUserStore;
exports.NgYunzaiMobileModule = NgYunzaiMobileModule;
exports.PageModule = PageModule;
exports.SIDER_MODE = SIDER_MODE;
exports.SIDER_THEME = SIDER_THEME;
exports.SelectContactsModule = SelectContactsModule;
exports.SessionStorageStore = SessionStorageStore;
exports.ShowType = ShowType;
exports.StartupService = StartupService;
exports.StartupServiceFactory = StartupServiceFactory;
exports.TYPE_ENUM = TYPE_ENUM;
exports.TokenInterceptor = TokenInterceptor;
exports.TokenService = TokenService;
exports.TreePickerModule = TreePickerModule;
exports.UploadFileModule = UploadFileModule;
exports.UploadService = UploadService;
exports.UserService = UserService;
exports.WechatApi = WechatApi;
exports.WechatMicro = WechatMicro;
exports.WechatMp = WechatMp;
exports.Yiban = Yiban;
exports.YzAiAssistantComponent = YzAiAssistantComponent;
exports.YzBottomBtnComponent = YzBottomBtnComponent;
exports.YzDefaultIndexComponent = YzDefaultIndexComponent;
exports.YzFileCarouselComponent = YzFileCarouselComponent;
exports.YzFileShowComponent = YzFileShowComponent;
exports.YzFloatButtonComponent = YzFloatButtonComponent;
exports.YzFloatButtonModule = YzFloatButtonModule;
exports.YzImgCropperComponent = YzImgCropperComponent;
exports.YzImgCropperService = YzImgCropperService;
exports.YzLayoutComponent = YzLayoutComponent;
exports.YzLoadingMaskComponent = YzLoadingMaskComponent;
exports.YzLoadingMoreComponent = YzLoadingMoreComponent;
exports.YzNoDataInlineComponent = YzNoDataInlineComponent;
exports.YzNoDataMaskComponent = YzNoDataMaskComponent;
exports.YzPageComponent = YzPageComponent;
exports.YzRoleSelectContactsComponent = YzRoleSelectContactsComponent;
exports.YzRoleSelectContactsService = YzRoleSelectContactsService;
exports.YzSelectContactsComponent = YzSelectContactsComponent;
exports.YzSelectContactsService = YzSelectContactsService;
exports.YzTreePickerComponent = YzTreePickerComponent;
exports.YzTreePickerService = YzTreePickerService;
exports.YzUploadFileComponent = YzUploadFileComponent;
exports.fileModel = fileModel;
exports.listOption = listOption;
exports.preloaderFinished = preloaderFinished;
exports.treePickerParams = treePickerParams;
exports.ɵa = SharedModule;
exports.ɵb = ComponentOption;
exports.ɵc = ComponentOption$1;
exports.ɵd = BASE_CLIENT;
exports.ɵf = AiAssistantService;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=ng-yunzai-mobile.umd.js.map