bbj-screen-widget 2.4.58 → 2.4.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bbj-screen-widget.d.ts +14 -15
- package/bbj-screen-widget.metadata.json +1 -1
- package/bundles/bbj-screen-widget.umd.js +182 -168
- package/bundles/bbj-screen-widget.umd.js.map +1 -1
- package/bundles/bbj-screen-widget.umd.min.js +1 -1
- package/bundles/bbj-screen-widget.umd.min.js.map +1 -1
- package/esm2015/bbj-screen-widget.js +15 -16
- package/esm2015/lib/calendar/calendar.component.js +4 -1
- package/esm2015/lib/gauge-progress/gauge-progress.component.js +3 -3
- package/esm2015/lib/gauge-progress/gauge.module.js +5 -4
- package/esm2015/lib/item-swiper/item-swiper.component.js +42 -33
- package/esm2015/lib/item-swiper/item-swiper.module.js +6 -12
- package/esm2015/lib/video-grid/video-grid.component.js +10 -3
- package/esm2015/public-api.js +2 -1
- package/fesm2015/bbj-screen-widget.js +61 -47
- package/fesm2015/bbj-screen-widget.js.map +1 -1
- package/lib/gauge-progress/gauge.module.d.ts +1 -0
- package/lib/item-swiper/item-swiper.module.d.ts +1 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("bbj-screen-widget/core"),require("@angular/common/http"),require("@delon/util"),require("@delon/util/other"),require("@angular/common"),require("bbj-widget-base"),require("ngx-echarts"),require("ng-zorro-antd/icon"),require("@angular/forms"),require("ng-zorro-antd/checkbox"),require("ng-zorro-antd/select"),require("ng-zorro-antd/button"),require("ng-zorro-antd/input"),require("ng-zorro-antd/pipes"),require("ng-zorro-antd/radio"),require("ng-zorro-antd/rate"),require("ng-zorro-antd/slider"),require("echarts-gl"),require("ng-zorro-antd/core/resize-observers"),require("rxjs"),require("rxjs/operators"),require("echarts-liquidfill"),require("ng-zorro-antd/tooltip"),require("echarts"),require("ng-zorro-antd/tree"),require("ng-zorro-antd/core/highlight"),require("date-fns"),require("ng-zorro-antd/i18n"),require("date-fns/fp"),require("ng-zorro-antd/date-picker"),require("ng-zorro-antd/time-picker"),require("ng-zorro-antd/dropdown"),require("@angular/cdk/scrolling"),require("uuid"),require("ng-zorro-antd/core/no-animation"),require("ng-zorro-antd/message"),require("ng-zorro-antd/upload"),require("ng-zorro-antd/table"),require("swiper/angular"),require("swiper/core"),require("ng-zorro-antd/space"),require("ng-zorro-antd/grid"),require("@angular/router"),require("@fullcalendar/angular"),require("@fullcalendar/daygrid"),require("@fullcalendar/timegrid"),require("@fullcalendar/interaction"),require("ng-zorro-antd/tabs"),require("@fullcalendar/resource-timeline")):"function"==typeof define&&define.amd?define("bbj-screen-widget",["exports","@angular/core","bbj-screen-widget/core","@angular/common/http","@delon/util","@delon/util/other","@angular/common","bbj-widget-base","ngx-echarts","ng-zorro-antd/icon","@angular/forms","ng-zorro-antd/checkbox","ng-zorro-antd/select","ng-zorro-antd/button","ng-zorro-antd/input","ng-zorro-antd/pipes","ng-zorro-antd/radio","ng-zorro-antd/rate","ng-zorro-antd/slider","echarts-gl","ng-zorro-antd/core/resize-observers","rxjs","rxjs/operators","echarts-liquidfill","ng-zorro-antd/tooltip","echarts","ng-zorro-antd/tree","ng-zorro-antd/core/highlight","date-fns","ng-zorro-antd/i18n","date-fns/fp","ng-zorro-antd/date-picker","ng-zorro-antd/time-picker","ng-zorro-antd/dropdown","@angular/cdk/scrolling","uuid","ng-zorro-antd/core/no-animation","ng-zorro-antd/message","ng-zorro-antd/upload","ng-zorro-antd/table","swiper/angular","swiper/core","ng-zorro-antd/space","ng-zorro-antd/grid","@angular/router","@fullcalendar/angular","@fullcalendar/daygrid","@fullcalendar/timegrid","@fullcalendar/interaction","ng-zorro-antd/tabs","@fullcalendar/resource-timeline"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["bbj-screen-widget"]={},e.ng.core,e["bbj-screen-widget"].core,e.ng.common.http,e["@delon/util"],e["@delon/util/other"],e.ng.common,e["bbj-widget-base"],e["ngx-echarts"],e["ng-zorro-antd/icon"],e.ng.forms,e["ng-zorro-antd/checkbox"],e["ng-zorro-antd/select"],e["ng-zorro-antd/button"],e["ng-zorro-antd/input"],e["ng-zorro-antd/pipes"],e["ng-zorro-antd/radio"],e["ng-zorro-antd/rate"],e["ng-zorro-antd/slider"],null,e["ng-zorro-antd/core/resize-observers"],e.rxjs,e.rxjs.operators,null,e["ng-zorro-antd/tooltip"],e.echarts,e["ng-zorro-antd/tree"],e["ng-zorro-antd/core/highlight"],e["date-fns"],e["ng-zorro-antd/i18n"],e["date-fns/fp"],e["ng-zorro-antd/date-picker"],e["ng-zorro-antd/time-picker"],e["ng-zorro-antd/dropdown"],e.ng.cdk.scrolling,e.uuid,e["ng-zorro-antd/core/no-animation"],e["ng-zorro-antd/message"],e["ng-zorro-antd/upload"],e["ng-zorro-antd/table"],e["swiper/angular"],e["swiper/core"],e["ng-zorro-antd/space"],e.grid,e.ng.router,e["@fullcalendar/angular"],e["@fullcalendar/daygrid"],e["@fullcalendar/timegrid"],e["@fullcalendar/interaction"],e["ng-zorro-antd/tabs"],e["@fullcalendar/resource-timeline"])}(this,(function(exports,i0,i1,i2,util,i1$1,common,bbjWidgetBase,ngxEcharts,icon,forms,checkbox,select,button,input,pipes,radio,rate,slider,echartsGl,resizeObservers,rxjs,operators,echartsLiquidfill,tooltip,echarts,tree,highlight,dateFns,i18n,fp,datePicker,timePicker,dropdown,scrolling,uuid,noAnimation,message,upload,table,angular,SwiperCore,space,grid,router,angular$1,dayGridPlugin,timeGridPlugin,interactionPlugin,tabs,resourceTimelinePlugin){"use strict";function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var SwiperCore__default=_interopDefaultLegacy(SwiperCore),dayGridPlugin__default=_interopDefaultLegacy(dayGridPlugin),timeGridPlugin__default=_interopDefaultLegacy(timeGridPlugin),interactionPlugin__default=_interopDefaultLegacy(interactionPlugin),resourceTimelinePlugin__default=_interopDefaultLegacy(resourceTimelinePlugin),GaodeMapService=function(){function e(e,t){this.lazy=e,this.http=t}return e.prototype.loadMap=function(){return"undefined"!=typeof AMap?Promise.resolve():(this.loadAmapPromise||(this.loadAmapPromise=this.lazy.loadScript("https://webapi.amap.com/maps?v=1.4.15&key=803815fd5b53fbb5bfb6656b049f1d37&plugin=AMap.ControlBar")),this.loadAmapPromise)},e.prototype.getWeather=function(e){return this.http.jsonp("https://restapi.amap.com/v3/weather/weatherInfo?key=d633c7a49d34575ad5fb4235856f3a7b&city="+e,"callback").toPromise()},e}();GaodeMapService.ɵprov=i0.ɵɵdefineInjectable({factory:function(){return new GaodeMapService(i0.ɵɵinject(i1$1.LazyService),i0.ɵɵinject(i2.HttpClient))},token:GaodeMapService,providedIn:"root"}),GaodeMapService.decorators=[{type:i0.Injectable,args:[{providedIn:"root"}]}],GaodeMapService.ctorParameters=function(){return[{type:util.LazyService},{type:i2.HttpClient}]};var CommonService=function(){function e(e,t){this.baiduMapService=e,this.gaodeMapService=t}return e.prototype.getMap=function(){return this.baiduMapService.loadMap()},e.prototype.loadMap=function(){return this.gaodeMapService.loadMap()},e}();CommonService.ɵprov=i0.ɵɵdefineInjectable({factory:function(){return new CommonService(i0.ɵɵinject(i1.BaiduMapService),i0.ɵɵinject(GaodeMapService))},token:CommonService,providedIn:"root"}),CommonService.decorators=[{type:i0.Injectable,args:[{providedIn:"root"}]}],CommonService.ctorParameters=function(){return[{type:i1.BaiduMapService},{type:GaodeMapService}]};var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function __rest(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o}function __decorate(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n}function __param(e,t){return function(o,i){t(o,i,e)}}function __esDecorate(e,t,o,i,a,r){function n(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,d=i.kind,l="getter"===d?"get":"setter"===d?"set":"value",p=!t&&e?i.static?e:e.prototype:null,c=t||(p?Object.getOwnPropertyDescriptor(p,i.name):{}),g=!1,h=o.length-1;h>=0;h--){var u={};for(var y in i)u[y]="access"===y?{}:i[y];for(var y in i.access)u.access[y]=i.access[y];u.addInitializer=function(e){if(g)throw new TypeError("Cannot add initializers after decoration has completed");r.push(n(e||null))};var m=(0,o[h])("accessor"===d?{get:c.get,set:c.set}:c[l],u);if("accessor"===d){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=n(m.get))&&(c.get=s),(s=n(m.set))&&(c.set=s),(s=n(m.init))&&a.unshift(s)}else(s=n(m))&&("field"===d?a.unshift(s):c[l]=s)}p&&Object.defineProperty(p,i.name,c),g=!0}function __runInitializers(e,t,o){for(var i=arguments.length>2,a=0;a<t.length;a++)o=i?t[a].call(e,o):t[a].call(e);return i?o:void 0}function __propKey(e){return"symbol"==typeof e?e:"".concat(e)}function __setFunctionName(e,t,o){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:o?"".concat(o," ",t):t})}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,o,i){return new(o||(o=Promise))((function(a,r){function n(e){try{d(i.next(e))}catch(e){r(e)}}function s(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?a(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(n,s)}d((i=i.apply(e,t||[])).next())}))}function __generator(e,t){var o,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=s(0),n.throw=s(1),n.return=s(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(s){return function(d){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;n&&(n=0,s[0]&&(r=0)),r;)try{if(o=1,i&&(a=2&s[0]?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,i=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(6===s[0]&&r.label<a[1]){r.label=a[1],a=s;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(s);break}a[2]&&r.ops.pop(),r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e],i=0}finally{o=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,d])}}}var __createBinding=Object.create?function(e,t,o,i){void 0===i&&(i=o);var a=Object.getOwnPropertyDescriptor(t,o);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,i,a)}:function(e,t,o,i){void 0===i&&(i=o),e[i]=t[o]};function __exportStar(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||__createBinding(t,e,o)}function __values(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,a,r=o.call(e),n=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)n.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(a)throw a.error}}return n}function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}function __spreadArrays(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var i=Array(e),a=0;for(t=0;t<o;t++)for(var r=arguments[t],n=0,s=r.length;n<s;n++,a++)i[a]=r[n];return i}function __spreadArray(e,t,o){if(o||2===arguments.length)for(var i,a=0,r=t.length;a<r;a++)!i&&a in t||(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,a=o.apply(e,t||[]),r=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),n("next"),n("throw"),n("return",(function(e){return function(t){return Promise.resolve(t).then(e,l)}})),i[Symbol.asyncIterator]=function(){return this},i;function n(e,t){a[e]&&(i[e]=function(t){return new Promise((function(o,i){r.push([e,t,o,i])>1||s(e,t)}))},t&&(i[e]=t(i[e])))}function s(e,t){try{(o=a[e](t)).value instanceof __await?Promise.resolve(o.value.v).then(d,l):p(r[0][2],o)}catch(e){p(r[0][3],e)}var o}function d(e){s("next",e)}function l(e){s("throw",e)}function p(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function __asyncDelegator(e){var t,o;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,a){t[i]=e[i]?function(t){return(o=!o)?{value:__await(e[i](t)),done:!1}:a?a(t):t}:a}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,o=e[Symbol.asyncIterator];return o?o.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(t){return new Promise((function(i,a){(function(e,t,o,i){Promise.resolve(i).then((function(t){e({value:t,done:o})}),t)})(i,a,(t=e[o](t)).done,t.value)}))}}}function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var __setModuleDefault=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&__createBinding(t,e,o);return __setModuleDefault(t,e),t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t,o,i){if("a"===o&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?i:"a"===o?i.call(e):i?i.value:t.get(e)}function __classPrivateFieldSet(e,t,o,i,a){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?a.call(e,o):a?a.value=o:t.set(e,o),o}function __classPrivateFieldIn(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function __addDisposableResource(e,t,o){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var i,a;if(o){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],o&&(a=i)}if("function"!=typeof i)throw new TypeError("Object not disposable.");a&&(i=function(){try{a.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:i,async:o})}else o&&e.stack.push({async:!0});return t}var _SuppressedError="function"==typeof SuppressedError?SuppressedError:function(e,t,o){var i=new Error(o);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function __disposeResources(e){function t(t){e.error=e.hasError?new _SuppressedError(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var o,i=0;return function a(){for(;o=e.stack.pop();)try{if(!o.async&&1===i)return i=0,e.stack.push(o),Promise.resolve().then(a);if(o.dispose){var r=o.dispose.call(o.value);if(o.async)return i|=2,Promise.resolve(r).then(a,(function(e){return t(e),a()}))}else i|=1}catch(e){t(e)}if(1===i)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}var tslib_es6={__extends:__extends,__assign:__assign,__rest:__rest,__decorate:__decorate,__param:__param,__metadata:__metadata,__awaiter:__awaiter,__generator:__generator,__createBinding:__createBinding,__exportStar:__exportStar,__values:__values,__read:__read,__spread:__spread,__spreadArrays:__spreadArrays,__spreadArray:__spreadArray,__await:__await,__asyncGenerator:__asyncGenerator,__asyncDelegator:__asyncDelegator,__asyncValues:__asyncValues,__makeTemplateObject:__makeTemplateObject,__importStar:__importStar,__importDefault:__importDefault,__classPrivateFieldGet:__classPrivateFieldGet,__classPrivateFieldSet:__classPrivateFieldSet,__classPrivateFieldIn:__classPrivateFieldIn,__addDisposableResource:__addDisposableResource,__disposeResources:__disposeResources};exports.ɵb=function(){function e(e,t,o,i){this.cd=e,this.renderer=t,this.elementRef=o,this.widgetRef=i,this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0},this.style={},this.layout="auto",this._data=[]}return e.prototype.ngOnChanges=function(e){var t,o;o=this._data&&(null===(t=this._data[0])||void 0===t?void 0:t.image)?this._data[0].image:this.image,this.setStyle("backgroundImage",o?"url("+o+")":null),this.cd.markForCheck()},e.prototype.ngOnInit=function(){var e,t;this.renderer.addClass(this.element,this.layout||"auto"),this.setStyle("opacity",1===this.opacity?null:this.opacity);var o=this.shadow,i=o.color,a=o.X,r=o.Y,n=o.Z;this.setStyle("boxShadow",i?i+" "+a+"px "+r+"px "+n+"px":null);var s=this.widgetRef.widget;((null===(e=s.link)||void 0===e?void 0:e.enabled)||(null===(t=s.outputs)||void 0===t?void 0:t.enabled))&&this.setStyle("cursor","pointer")},Object.defineProperty(e.prototype,"element",{get:function(){return this.elementRef.nativeElement},enumerable:!1,configurable:!0}),e.prototype.setStyle=function(e,t){this.renderer.setStyle(this.element,e,t)},e}(),exports.ɵb.decorators=[{type:i0.Component,args:[{selector:"sc-picture",template:'\x3c!-- <img [src]="image" alt="" [ngStyle]="style"> --\x3e\n\x3c!-- <div class="image {{ layout || \'auto\' }}" [ngStyle]="style"></div> --\x3e\n',changeDetection:i0.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;width:100%;height:100%}:host.auto{background-repeat:no-repeat;background-size:contain}:host.stretch{background-size:100% 100%}"]}]}],exports.ɵb.ctorParameters=function(){return[{type:i0.ChangeDetectorRef},{type:i0.Renderer2},{type:i0.ElementRef},{type:bbjWidgetBase.WidgetRef}]},__decorate([bbjWidgetBase.Property("",{min:1,ui:{widget:"myUpload",spanLabel:0,spanControl:24}}),__metadata("design:type",String)],exports.ɵb.prototype,"image",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵb.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵb.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("布局",{enum:[{label:"自适应",value:"auto"},{label:"拉伸",value:"stretch"},{label:"重复",value:"repeat"}]}),__metadata("design:type",Object)],exports.ɵb.prototype,"layout",void 0),__decorate([bbjWidgetBase.Data({properties:{image:{type:"string",title:"路径"}}}),__metadata("design:type",Array)],exports.ɵb.prototype,"_data",void 0),exports.ɵb=__decorate([bbjWidgetBase.Widget("图片",{group:"picture",icon:"icontupian"}),__metadata("design:paramtypes",[i0.ChangeDetectorRef,i0.Renderer2,i0.ElementRef,bbjWidgetBase.WidgetRef])],exports.ɵb);var ImageModule=function(e){e.register(exports.ɵb)};function getEchartsTextStyle(e){var t={};return e&&(t.color=e.color,t.fontFamily=e.family,t.fontWeight=e.weight,t.fontSize=e.size,t.lineHeight=e.lineHeight),t}ImageModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵb],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],ImageModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0={lineColor:["#FF851D","#FFEF66"]},ɵ1={lineColor:["#00D191","#00FECB"]},ɵ2={lineColor:["#3285FF","#00D2FD"]},ɵ3={lineColor:["#8934F8","#FF3699"]},ɵ4=function(e){return!e},ɵ5=function(e){return!e},ɵ6=function(e){return!e},ɵ7=function(e){return!e};exports.ɵc=function(){function BasicLineChartComponent(){this.type="basic",this.lineColor=["#3285FF","#00D2FD"],this.font={family:"",color:"#595F7A",weight:"normal",size:12,space:0,lineHeight:12},this.grid={top:30,right:30,bottom:40,left:36},this.align="center",this.axisType="none",this.lineType="dashed",this.axisColor="#333333",this.axisWidth=10,this.xType="category",this.yUnit="",this.xUnit="",this.boundaryGap=!0,this.showY=!0,this.netLine=!1,this.netLineType="dashed",this.netLineX=!1,this.netLineXType="dashed",this.netLineColor="rgba(255,255,255,0.2)",this.label=!1,this.markLine=!1,this.YmarkLineHeight=10,this.YmarkLineName="",this.YmarkLineType="dashed",this.YmarkLineColor="#f00",this.YmarkWidth=2,this.XmarkLineLocation="二月",this.XmarkLineName="",this.XmarkLineType="dashed",this.XmarkLineColor="#f00",this.XmarkWidth=2,this.xLabelRotate=0,this.xLabelOverflow="auto",this.zoomOnMouseWheel=!0,this.chartOption=null,this._data=[{x:"一月",y:10,s:"收入"},{x:"二月",y:20,s:"收入"},{x:"三月",y:25,s:"收入"},{x:"四月",y:35,s:"收入"},{x:"五月",y:27,s:"收入"},{x:"六月",y:28,s:"收入"},{x:"一月",y:18,s:"支出"},{x:"二月",y:28,s:"支出"},{x:"三月",y:32,s:"支出"},{x:"四月",y:48,s:"支出"},{x:"五月",y:20,s:"支出"},{x:"六月",y:17,s:"支出"}],this.dataClick=new i0.EventEmitter,this.xData=[],this.yData=[],this.style={color:"",fontFamily:"",fontWeight:"",fontSize:"",lineHeight:""}}return BasicLineChartComponent.prototype.ngOnInit=function(){},BasicLineChartComponent.prototype.ngOnChanges=function(e){if(e._data){var t=this.getTextStyle(this.font);this.style=t,this.chartOption={dataZoom:this.getDataZoom(),tooltip:this.getTooltip(),legend:this.getLegend(),grid:this.getGrid(),xAxis:this.getXAxis(),yAxis:this.getYAxis(),color:this.lineColor,series:[]},this.reloadData()}},BasicLineChartComponent.prototype.getXAxis=function(){return{name:this.xUnit,nameTextStyle:this.style,type:this.xType||"category",boundaryGap:this.boundaryGap,axisLine:{lineStyle:{color:this.style.color}},axisLabel:Object.assign(Object.assign({},this.style),{rotate:this.xLabelRotate,show:!this.hideXLabel,width:this.xLabelWidth,overflow:this.xLabelOverflow,interval:this.xLabelInterval}),splitLine:{show:this.netLineX,lineStyle:{type:this.netLineXType,color:this.netLineColor}}}},BasicLineChartComponent.prototype.getYAxis=function(){var e=this;return{show:!0,name:this.yUnit,nameTextStyle:this.style,type:"value",min:this.yMin,max:function(t){var o=t.max;return e.yMax?o=Number(e.yMax):e.markLine&&(o=Math.max(Number(e.YmarkLineHeight),o)),Math.ceil(e.yMaxAddNum?o+Number(e.yMaxAddNum):o)},axisLine:{show:this.showY,lineStyle:{color:this.style.color}},axisLabel:this.style,splitLine:{show:this.netLine,lineStyle:{type:this.netLineXType,color:this.netLineColor}},axisTick:{show:this.showY},minInterval:this.yMinInterval}},BasicLineChartComponent.prototype.getGrid=function(){return{top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom}},BasicLineChartComponent.prototype.getLegend=function(){return{align:"left",left:this.align,show:"none"!==this.align,icon:"rect",textStyle:this.style}},BasicLineChartComponent.prototype.getTooltip=function(){return{trigger:"axis",textStyle:this.getTextStyle(this.tooltipFont),axisPointer:{type:this.axisType,label:{show:!1},lineStyle:{type:this.lineType,color:this.axisColor,width:this.axisWidth}}}},BasicLineChartComponent.prototype.getTextStyle=function(e){return getEchartsTextStyle(e)},BasicLineChartComponent.prototype.getDataZoom=function(){var e=[];if(this.insideDataZoom){var t=!0;if(null!=this.dataZoomMinData){var o=new Set;this._data.forEach((function(e){e.x&&o.add(e.x)})),o.size<this.dataZoomMinData&&(t=!1)}if(t){var i=this.dataZoomStart||0,a=this.dataZoomEnd||100;e.push({type:"inside",start:i,end:a,zoomOnMouseWheel:this.zoomOnMouseWheel}),this.sliderDataZoom&&e.push({type:"slider",start:i,end:a,zoomLock:this.zoomLock,brushSelect:!1})}}return e},BasicLineChartComponent.prototype.reloadData=function(){var _this=this,seriesMap={},dataset=[],source=[];if(dataset.push({source:source}),this._data.forEach((function(record){if(_this.markLine&&_this.YmarkLineName&&record.x===_this.YmarkLineName)_this.YmarkLineHeight=record.y;else{null==record.s&&(record=Object.assign(Object.assign({},record),{s:""})),source.push(record);var s=record.s,series=seriesMap[s];if(!series){var transform={type:"filter",config:{dimension:"s",value:s}};dataset.push({transform:transform}),series=_this.setSeriesStyle(s,dataset.length-1),seriesMap[s]=series,_this.showDataMarkLine&&(series.markLine={symbol:["none","none"],label:Object.assign(Object.assign({},_this.style),{position:"start"}),data:[]},_this.dataMarkLineFormatter&&(series.markLine.label.formatter=eval("("+_this.dataMarkLineFormatter+")")))}_this.showDataMarkLine&&series.markLine.data.push({xAxis:record.x})}})),this.chartOption.dataset=dataset,this.markLine){var marklineStyle={symbol:"none",silent:!0,data:[]};this.YmarkLineName&&marklineStyle.data.push({name:this.YmarkLineName,type:this.YmarkLineHeight?null:"average",yAxis:this.YmarkLineHeight,lineStyle:{color:this.YmarkLineColor,type:this.YmarkLineType,width:this.YmarkWidth?this.YmarkWidth:2},label:{formatter:"{b}{c}",position:"insideEndTop",color:this.YmarkLineColor,fontSize:this.font.size}}),this.XmarkLineName&&marklineStyle.data.push({name:this.XmarkLineName,type:this.XmarkLineLocation?null:"average",xAxis:this.XmarkLineLocation,lineStyle:{color:this.XmarkLineColor,type:this.XmarkLineType,width:this.XmarkWidth?this.XmarkWidth:2},label:{formatter:"{b}{c}",position:"insideEndTop",color:this.XmarkLineColor,fontSize:this.font.size}}),this.chartOption.series.push({type:"line",markLine:marklineStyle,data:[]})}},BasicLineChartComponent.prototype.setSeriesStyle=function(e,t){var o,i,a={name:e,label:{show:this.label,textStyle:this.style},connectNulls:!0,itemStyle:{},type:"line",areaStyle:{},smooth:!1,symbolSize:null!==(o=this.symbolSize)&&void 0!==o?o:10,encode:{x:"x",y:"y"},datasetIndex:t};return this.chartOption.series.push(a),a.areaStyle.opacity=0,"smooth"!==this.type&&"smooth-area"!==this.type||(a.smooth=!0),"area"!==this.type&&"smooth-area"!==this.type||(a.areaStyle.opacity=.5,a.symbolSize=null!==(i=this.symbolSize)&&void 0!==i?i:this.label?10:0),"step"===this.type&&(a.step=this.step),a},BasicLineChartComponent.prototype.uniqueData=function(e){for(var t=0;t<e.length-1;t++)for(var o=t+1;o<e.length;o++)e[t]===e[o]&&(e.splice(o,1),o--);return e},BasicLineChartComponent.prototype.getMaxY=function(){for(var e=0;e<this._data.length;e++)this.yData[e]=this._data[e].y;this.uniqueData(this.yData);var t=Math.max.apply(Math,__spread(this.yData)).toFixed(0),o=t.toString().length,i=Math.pow(10,o-1);return Number(i)+Number(t)},BasicLineChartComponent.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},BasicLineChartComponent}(),exports.ɵc.decorators=[{type:i0.Component,args:[{selector:"sc-basicLine",template:'<div\n echarts\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵc.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("类型",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵc.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["lineColor"],example:[{background:"assets/img/screen/line2.png",data:ɵ0},{background:"assets/img/screen/line3.png",data:ɵ1},{background:"assets/img/screen/line1.png",data:ɵ2},{background:"assets/img/screen/line4.png",data:ɵ3}]}}),__metadata("design:type",Object)],exports.ɵc.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵc.prototype,"lineColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵc.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵc.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"居中",value:"center"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("提示线样式",{ui:{widget:"select"},enum:[{label:"直线指示器",value:"line"},{label:"阴影指示器",value:"shadow"},{label:"十字准星指示器",value:"cross"},{label:"无",value:"none"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"axisType",void 0),__decorate([bbjWidgetBase.Property("提示线类型",{ui:{widget:"select"},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"lineType",void 0),__decorate([bbjWidgetBase.Property("提示线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵc.prototype,"axisColor",void 0),__decorate([bbjWidgetBase.Property("提示线宽度",{type:"number"}),__metadata("design:type",Object)],exports.ɵc.prototype,"axisWidth",void 0),__decorate([bbjWidgetBase.Property("x轴类型",{enum:[{label:"类目",value:"category"},{label:"时间",value:"time"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"xType",void 0),__decorate([bbjWidgetBase.Property("y轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵc.prototype,"yUnit",void 0),__decorate([bbjWidgetBase.Property("x轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵc.prototype,"xUnit",void 0),__decorate([bbjWidgetBase.Property("y轴最小"),__metadata("design:type",Number)],exports.ɵc.prototype,"yMin",void 0),__decorate([bbjWidgetBase.Property("y轴最大"),__metadata("design:type",Number)],exports.ɵc.prototype,"yMax",void 0),__decorate([bbjWidgetBase.Property("y轴最小间隔"),__metadata("design:type",Number)],exports.ɵc.prototype,"yMinInterval",void 0),__decorate([bbjWidgetBase.Property("y轴最大增减"),__metadata("design:type",Number)],exports.ɵc.prototype,"yMaxAddNum",void 0),__decorate([bbjWidgetBase.Property("坐标留白",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"boundaryGap",void 0),__decorate([bbjWidgetBase.Property("显示Y轴",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"showY",void 0),__decorate([bbjWidgetBase.Property("y轴网络线",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"netLine",void 0),__decorate([bbjWidgetBase.Property("y网络线类型",{ui:{widget:"select",visibleIf:{netLine:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"netLineType",void 0),__decorate([bbjWidgetBase.Property("x轴网络线",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"netLineX",void 0),__decorate([bbjWidgetBase.Property("x网络线类型",{ui:{widget:"select",visibleIf:{netLineX:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"netLineXType",void 0),__decorate([bbjWidgetBase.Property("网络线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵc.prototype,"netLineColor",void 0),__decorate([bbjWidgetBase.Property("标签",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("标线",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"markLine",void 0),__decorate([bbjWidgetBase.Property("Y轴标线高度",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"YmarkLineHeight",void 0),__decorate([bbjWidgetBase.Property("Y标线标题",{type:"string",ui:{visibleIf:{markLine:[!0]},optionalHelp:"此标题需要跟x字段内名字一致"}}),__metadata("design:type",Object)],exports.ɵc.prototype,"YmarkLineName",void 0),__decorate([bbjWidgetBase.Property("Y标线类型",{ui:{widget:"select",visibleIf:{markLine:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"YmarkLineType",void 0),__decorate([bbjWidgetBase.Property("Y标线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"],visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"YmarkLineColor",void 0),__decorate([bbjWidgetBase.Property("Y标线粗细",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"YmarkWidth",void 0),__decorate([bbjWidgetBase.Property("X轴标线位置",{type:"string",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"XmarkLineLocation",void 0),__decorate([bbjWidgetBase.Property("X标线标题",{type:"string",ui:{optionalHelp:"此标题需要跟x字段内名字一致",visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"XmarkLineName",void 0),__decorate([bbjWidgetBase.Property("X标线类型",{ui:{widget:"select",visibleIf:{markLine:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"XmarkLineType",void 0),__decorate([bbjWidgetBase.Property("X标线颜色",{ui:{visibleIf:{markLine:[!0]},widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵc.prototype,"XmarkLineColor",void 0),__decorate([bbjWidgetBase.Property("X标线粗细",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"XmarkWidth",void 0),__decorate([bbjWidgetBase.Property("数据标线"),__metadata("design:type",Boolean)],exports.ɵc.prototype,"showDataMarkLine",void 0),__decorate([bbjWidgetBase.Property("数据标线格式化",{ui:{visibleIf:{showDataMarkLine:[!0]},optionalHelp:"function(params){return params.data.value}"}}),__metadata("design:type",String)],exports.ɵc.prototype,"dataMarkLineFormatter",void 0),__decorate([bbjWidgetBase.Property("隐藏x轴标签"),__metadata("design:type",Boolean)],exports.ɵc.prototype,"hideXLabel",void 0),__decorate([bbjWidgetBase.Property("x轴标签角度",{ui:{widget:"myRange",min:-90,max:90,step:10,visibleIf:{hideXLabel:ɵ4}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"xLabelRotate",void 0),__decorate([bbjWidgetBase.Property("x轴文本宽度",{ui:{visibleIf:{hideXLabel:ɵ5}}}),__metadata("design:type",Number)],exports.ɵc.prototype,"xLabelWidth",void 0),__decorate([bbjWidgetBase.Property("x轴文字宽度超出",{enum:[{label:"自动",value:"auto"},{label:"截断",value:"truncate"},{label:"换行",value:"break"},{label:"强制换行",value:"breakAll"}],ui:{widget:"select",visibleIf:{hideXLabel:ɵ6}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"xLabelOverflow",void 0),__decorate([bbjWidgetBase.Property("标签显示间隔",{ui:{visibleIf:{hideXLabel:ɵ7},optionalHelp:{text:"默认会采用标签不重叠的策略间隔显示标签。\n可以设置成 0 强制显示所有标签。 \n如果设置为 1,表示『隔一个标签显示一个标签』,如果值为 2,表示隔两个标签显示一个标签,以此类推。",overlayStyle:{whiteSpace:"pre-line"}}}}),__metadata("design:type",Number)],exports.ɵc.prototype,"xLabelInterval",void 0),__decorate([bbjWidgetBase.Property("区域缩放"),__metadata("design:type",Boolean)],exports.ɵc.prototype,"insideDataZoom",void 0),__decorate([bbjWidgetBase.Property("缩放最少数量",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.ɵc.prototype,"dataZoomMinData",void 0),__decorate([bbjWidgetBase.Property("缩放开始百分比",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.ɵc.prototype,"dataZoomStart",void 0),__decorate([bbjWidgetBase.Property("缩放结束百分比",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.ɵc.prototype,"dataZoomEnd",void 0),__decorate([bbjWidgetBase.Property("滚轮缩放",{enum:[{label:"启用",value:!0},{label:"禁用",value:!1},{label:"按住shift",value:"shift"},{label:"按住ctrl",value:"ctrl"},{label:"按住alt",value:"alt"}],ui:{widget:"select",visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"zoomOnMouseWheel",void 0),__decorate([bbjWidgetBase.Property("滑动条",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Boolean)],exports.ɵc.prototype,"sliderDataZoom",void 0),__decorate([bbjWidgetBase.Property("锁定区域大小",{ui:{visibleIf:{sliderDataZoom:[!0]}}}),__metadata("design:type",Boolean)],exports.ɵc.prototype,"zoomLock",void 0),__decorate([bbjWidgetBase.Property("提示框字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵc.prototype,"tooltipFont",void 0),__decorate([bbjWidgetBase.Property("阶梯拐点",{enum:[{label:"当前点",value:"start"},{label:"中间点",value:"middle"},{label:"下个点",value:"end"}],ui:{widget:"select",visibleIf:{type:["step"]}}}),__metadata("design:type",String)],exports.ɵc.prototype,"step",void 0),__decorate([bbjWidgetBase.Property("标记点大小",{type:"number"}),__metadata("design:type",Number)],exports.ɵc.prototype,"symbolSize",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"},s:{type:"string",title:"系列"}}}),__metadata("design:type",Array)],exports.ɵc.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","s"]),__metadata("design:type",Object)],exports.ɵc.prototype,"dataClick",void 0),exports.ɵc=__decorate([bbjWidgetBase.Widget("基本折线图",{group:"lineChart",image:"assets/img/screen/basic-line-chart.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵc);var BasicLineChartModule=function(e){e.register(exports.ɵc)};BasicLineChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵc],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],BasicLineChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var HttpService=function(){function e(e){this.http=e}return e.prototype.get=function(e,t){return this.http.get(e,t).toPromise()},e.prototype.post=function(e,t,o){return this.http.post(e,t,o).toPromise()},e}();HttpService.decorators=[{type:i0.Injectable}],HttpService.ctorParameters=function(){return[{type:i2.HttpClient}]},exports.ɵp=function(){function e(e,t){this.http=e,this.gloabl=t,this.textStyle={},this.title="button",this.background="linear-gradient(-180deg, #20C8FF 0%, #0059DD 100%)",this.borderColor="#0059DD",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.opacity=1,this.radius=4,this.shadow={color:"",X:0,Y:0,Z:0},this.href="",this.openModel=!0,this.data=[],this.valueOutput=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.textStyle={background:this.background,borderColor:this.borderColor,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",opacity:this.opacity,borderRadius:this.radius+"%",boxShadow:this.shadow.color+" "+this.shadow.X+"px "+this.shadow.Y+"px "+this.shadow.Z+"px"}},e.prototype.openPage=function(e){var t;this.edit||(this.href&&(this.openModel?window.open(this.href,"_blank"):window.location.href=this.href),this.script&&new Function("http","global",this.script)(this.http,this.gloabl.data));(null===(t=this.data)||void 0===t?void 0:t.length)?this.valueOutput.emit(this.data[0].value):this.valueOutput.emit(null)},e}(),exports.ɵp.decorators=[{type:i0.Component,args:[{selector:"sc-button",template:'<div class="screen-button" (click)="openPage($event)" [ngStyle]="textStyle">{{title}}</div>\n',styles:[":host{display:inline-block}.screen-button,:host{width:100%;height:100%}.screen-button{color:#fff;display:flex;flex-direction:column;justify-content:center;border:1px solid;cursor:pointer;text-align:center}"]}]}],exports.ɵp.ctorParameters=function(){return[{type:HttpService},{type:bbjWidgetBase.GlobalVarService}]},__decorate([bbjWidgetBase.Property("按钮样式",{ui:{widget:"myButton",spanLabel:24,spanControl:24,name:"button",reset:["background","borderColor"],background:[{background:"#FFB700",borderColor:"#FFB700"},{background:"#00E371",borderColor:"#00E371"},{background:"#3285FF",borderColor:"#3285FF"},{background:"#B232FF",borderColor:"#B232FF"},{background:"#FF3286",borderColor:"#FF3286"},{background:"#FF3832",borderColor:"#FF3832"},{background:"linear-gradient(-180deg, #FAD961 0%, #F76B1C 100%)",borderColor:"#F76B1C"},{background:"linear-gradient(-180deg, #B4EC51 0%, #429321 100%)",borderColor:"#429321"},{background:"linear-gradient(-180deg, #20C8FF 0%, #0059DD 100%)",borderColor:"#0059DD"},{background:"linear-gradient(-90deg, #3023AE 0%, #C86DD7 87%)",borderColor:"#C86DD7"}]}}),__metadata("design:type",Object)],exports.ɵp.prototype,"colorExample",void 0),__decorate([bbjWidgetBase.Property("内容"),__metadata("design:type",Object)],exports.ɵp.prototype,"title",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵp.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#FFFFFF","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵp.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵp.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵp.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("圆角",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵp.prototype,"radius",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵp.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("超链接"),__metadata("design:type",Object)],exports.ɵp.prototype,"href",void 0),__decorate([bbjWidgetBase.Property("另起窗口",{type:"boolean",ui:{checkedChildren:"是",unCheckedChildren:"否"}}),__metadata("design:type",Object)],exports.ɵp.prototype,"openModel",void 0),__decorate([bbjWidgetBase.Property("执行脚本",{ui:{widget:"textarea",autosize:{minRows:6,maxRows:10},optionalHelp:{text:'内置变量:\n1、http:用于发起http请求\n2、global:全局变量\n例:http.post("http://www.xxx.com/xxx",{a:global.a});// POST,body传参\n http.post("http://www.xxx.com/xxx",null,{params:{a:global.a}});// POST,url传参\n http.get("http://www.xxx.com/xxx",{params:{a:global.a}});// GET,url传参\n',overlayStyle:{whiteSpace:"pre-line"}}}}),__metadata("design:type",String)],exports.ɵp.prototype,"script",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"string",title:"值"}}}),__metadata("design:type",Array)],exports.ɵp.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵp.prototype,"valueOutput",void 0),exports.ɵp=__decorate([bbjWidgetBase.Widget("按钮",{group:"component",image:"assets/img/screen/myButton.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[HttpService,bbjWidgetBase.GlobalVarService])],exports.ɵp);var ButtonModule=function(e){e.register(exports.ɵp)};ButtonModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵp],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule],providers:[HttpService]}]}],ButtonModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵs=function(){function e(){this.iconShow=!0,this.weekShow=!0,this.iconFontSize=20,this.iconMarginRight=10,this.iconColor="#5DF5F4",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.fontGlow=!1,this.flowColor="#ffffff",this.flowSize=3,this.format="yyyy-MM-dd HH:mm:ss",this.week=""}return e.prototype.ngOnInit=function(){var e=this;if(this.getTime(),this.iconStyle={fontSize:this.iconFontSize+"px",marginRight:this.iconMarginRight+"px",color:this.iconColor},this.textStyle={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"},this.fontGlow){for(var t="",o=0;o<this.flowSize;o++)t+="0 0 20px "+this.flowColor+",";t=t.substr(0,t.length-1),this.textStyle["text-shadow"]=t}else this.textStyle["text-shadow"]="";clearInterval(this.timer),this.timer=setInterval((function(){e.getTime()}),1e3)},e.prototype.getTime=function(){var e=new Array("星期天","星期一","星期二","星期三","星期四","星期五","星期六");this.data=new Date,this.week=e[this.data.getDay()]},e}(),exports.ɵs.decorators=[{type:i0.Component,args:[{selector:"sc-timer",template:'<div class="container">\n <div class="timer-show">\n <i nz-icon *ngIf="iconShow" [ngStyle]="iconStyle" nzType="clock-circle" nzTheme="outline"></i>\n <span [ngStyle]="textStyle">{{data | date:format}} </span>\n <span [ngStyle]="textStyle" *ngIf="weekShow">{{week}}</span>\n </div>\n</div>\n',styles:[".container,.timer-show{width:100%;height:100%}.timer-show{font-size:20px;color:#fff;font-weight:400;font-family:Microsoft Yahei;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;vertical-align:middle;justify-content:center}@keyframes dash{to{stroke-dashoffset:0}}"]}]}],exports.ɵs.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("图标显示",{ui:{widget:"checkbox"}}),__metadata("design:type",Object)],exports.ɵs.prototype,"iconShow",void 0),__decorate([bbjWidgetBase.Property("星期显示",{ui:{widget:"checkbox"}}),__metadata("design:type",Object)],exports.ɵs.prototype,"weekShow",void 0),__decorate([bbjWidgetBase.Property("图标大小",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵs.prototype,"iconFontSize",void 0),__decorate([bbjWidgetBase.Property("图标右边距",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵs.prototype,"iconMarginRight",void 0),__decorate([bbjWidgetBase.Property("图标颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵs.prototype,"iconColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵs.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("字体发光",{ui:{widget:"checkbox"}}),__metadata("design:type",Object)],exports.ɵs.prototype,"fontGlow",void 0),__decorate([bbjWidgetBase.Property("发光颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵs.prototype,"flowColor",void 0),__decorate([bbjWidgetBase.Property("发光程度",{ui:{widget:"myRange",min:1,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵs.prototype,"flowSize",void 0),__decorate([bbjWidgetBase.Property("格式"),__metadata("design:type",Object)],exports.ɵs.prototype,"format",void 0),exports.ɵs=__decorate([bbjWidgetBase.Widget("时间",{group:"component",image:"assets/img/screen/timer.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵs);var TimerModule=function(e){e.register(exports.ɵs)};TimerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵs],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,icon.NzIconModule]}]}],TimerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵu=function(){function e(){this.prefixContent="",this.prefixFont={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.numberFont={family:"",color:"#ffffff",weight:"normal",size:90,space:0,lineHeight:""},this.background="#01A4F9",this.point=0,this.suffixContent="",this.suffixFont={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.numDigit=0,this.serial={},this.tableBar={},this.number=[{value:1024}]}return e.prototype.ngOnChanges=function(){this.headlineStyle={height:this.numberFont.size+"px",lineHeight:this.numberFont.size+"px"},this.prefixStyle={fontSize:this.prefixFont.size+"px",fontFamily:this.prefixFont.family,color:this.prefixFont.color,fontWeight:this.prefixFont.weight,letterSpacing:this.prefixFont.space+"px",lineHeight:this.prefixFont.lineHeight+"px"},this.suffixStyle={fontSize:this.suffixFont.size+"px",fontFamily:this.suffixFont.family,color:this.suffixFont.color,fontWeight:this.suffixFont.weight,letterSpacing:this.suffixFont.space+"px",lineHeight:this.suffixFont.lineHeight+"px"},this.textStyle={fontSize:this.numberFont.size+"px",fontFamily:this.numberFont.family,color:this.numberFont.color,fontWeight:this.numberFont.weight,letterSpacing:this.numberFont.space+"px"},this.serial.width=.58*this.numberFont.size+"px",this.tableBar.width=.7*this.numberFont.size+"px",this.numberdate=Number(this.number&&this.number[0]?this.number[0].value:0);var e=0;if(this.numDigit>0&&this.numberdate.toString().length<this.numDigit&&(e=this.numDigit-this.numberdate.toString().length),this.numberdate=this.numberdate.toFixed(this.point).toString(),e>0)for(var t=0;t<e;t++)this.numberdate="0"+this.numberdate;this.numberdate=this.numberdate.split("")},e.prototype.ngOnInit=function(){},e}(),exports.ɵu.decorators=[{type:i0.Component,args:[{selector:"sc-number-flop",template:'<div>\n <div class="dowebok flipTimer" [ngStyle]="headlineStyle">\n <span [ngStyle]="prefixStyle">{{prefixContent}}</span>\n <div class="seconds" *ngFor="let num of numberdate" [ngStyle]="tableBar">\n <div class="digit-set" *ngIf="num!=\'.\'">\n <div class="digit previous">\n <div class="digit-top" [style.backgroundColor]="background">\n <span [ngStyle]="textStyle" class="digit-wrap">0</span>\n </div>\n <div class="shadow-top" [ngStyle]="tableBar"></div>\n <div class="digit-bottom" [style.backgroundColor]="background">\n <span [ngStyle]="textStyle" class="digit-wrap">0</span>\n </div>\n <div class="shadow-bottom" [ngStyle]="tableBar"></div>\n </div>\n <div class="digit active">\n <div class="digit-top" [style.backgroundColor]="background">\n <span [ngStyle]="textStyle" class="digit-wrap">{{num}}</span>\n </div>\n <div class="shadow-top" [ngStyle]="tableBar"></div>\n <div class="digit-bottom" [style.backgroundColor]="background">\n <span [ngStyle]="textStyle" class="digit-wrap">{{num}}</span>\n </div>\n <div class="shadow-bottom" [ngStyle]="tableBar"></div>\n </div>\n </div>\n <span *ngIf="num==\'.\'" style="width:45px;" class="digit-wrap">{{num}}</span>\n </div>\n <span [ngStyle]="suffixStyle" style="margin-left:15px">{{suffixContent}}</span>\n </div>\n</div>\n',styles:['@keyframes flipTop{0%{transform:perspective(400px) rotateX(0deg)}to{transform:perspective(400px) rotateX(-90deg)}}@keyframes flipBottom{0%{transform:perspective(400px) rotateX(90deg)}to{transform:perspective(400px) rotateX(0deg)}}.flipTimer{color:#fff;font-weight:700;overflow:hidden;display:flex;flex-direction:row;align-items:center}.flipTimer .seperator{vertical-align:top;margin:0 -20px;display:inline}.flipTimer .days,.flipTimer .digit-set,.flipTimer .hours,.flipTimer .minutes,.flipTimer .seconds{height:100%;display:inline-block}.flipTimer .digit-set{border-radius:10px;box-shadow:0 2px 4px rgba(0,0,0,.8);width:44px;position:relative;margin:0 1px}.flipTimer .digit{position:absolute;height:100%}.flipTimer .digit>div{position:absolute;left:0;overflow:hidden;height:50%;padding:0 10px}.flipTimer .digit>div.digit-top,.flipTimer .digit>div.shadow-top{border-bottom:1px solid #01a4f9;box-sizing:border-box;top:0;z-index:0;border-radius:10px 10px 0 0}.flipTimer .digit>div.digit-top:before,.flipTimer .digit>div.shadow-top:before{content:"";box-shadow:inset 0 10px 25px rgba(0,0,0,.3);height:100%;width:100%;position:absolute;left:0;top:0}.flipTimer .digit>div.shadow-top{background:gradient(linear,0 0,0 100%,from(transparent),to(#000));width:45px;opacity:0;transition:opacity .3s ease-in}.flipTimer .digit>div.digit-bottom,.flipTimer .digit>div.shadow-bottom{bottom:0;z-index:0;border-radius:0 0 10px 10px}.flipTimer .digit>div.digit-bottom .digit-wrap,.flipTimer .digit>div.shadow-bottom .digit-wrap{display:block;margin-top:-100%}.flipTimer .digit>div.digit-bottom:before,.flipTimer .digit>div.shadow-bottom:before{content:"";box-shadow:inset 0 10px 25px rgba(0,0,0,.2);border-radius:0 0 10px 10px;height:100%;width:100%;position:absolute;left:0;top:0}.flipTimer .digit>div.shadow-bottom{background:gradient(linear,0 0,0 100%,from(#000),to(transparent));width:25px;opacity:0;transition:opacity .3s ease-in}.flipTimer .digit.previous .digit-top,.flipTimer .digit.previous .shadow-top{opacity:1;z-index:2;transform-origin:50% 100%;animation:flipTop .3s ease-in both}.flipTimer .digit.previous .digit-bottom,.flipTimer .digit.previous .shadow-bottom{z-index:1;opacity:1}.flipTimer .digit.active .digit-top{z-index:1}.flipTimer .digit.active .digit-bottom{z-index:2;transform-origin:50% 0;animation:flipBottom .3s ease-out .3s both}.seconds{margin-right:12px}']}]}],exports.ɵu.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("前缀内容"),__metadata("design:type",Object)],exports.ɵu.prototype,"prefixContent",void 0),__decorate([bbjWidgetBase.Property("前缀字体",{ui:{widget:"myFont",hideProperty:{lineHeight:!0}}}),__metadata("design:type",Object)],exports.ɵu.prototype,"prefixFont",void 0),__decorate([bbjWidgetBase.Property("数字字体",{ui:{widget:"myFont",hideProperty:{lineHeight:!0}}}),__metadata("design:type",Object)],exports.ɵu.prototype,"numberFont",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵu.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("小数点位数",{ui:{widget:"myRange",min:0,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵu.prototype,"point",void 0),__decorate([bbjWidgetBase.Property("后缀内容"),__metadata("design:type",Object)],exports.ɵu.prototype,"suffixContent",void 0),__decorate([bbjWidgetBase.Property("后缀字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵu.prototype,"suffixFont",void 0),__decorate([bbjWidgetBase.Property("数字位数"),__metadata("design:type",Number)],exports.ɵu.prototype,"numDigit",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"number",title:"数值"}}}),__metadata("design:type",Array)],exports.ɵu.prototype,"number",void 0),exports.ɵu=__decorate([bbjWidgetBase.Widget("数字翻牌器",{group:"component",image:"assets/img/screen/number-flop.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵu);var NumberFlopModule=function(e){e.register(exports.ɵu)};NumberFlopModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵu],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],NumberFlopModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵw=function(){function e(e){this.ele=e,this.options=[{label:"选项一",value:"option1"},{label:"选项二",value:"option2"},{label:"选项三",value:"option3"}],this.num=1,this.background="rgba(50,133,255,0.2)",this.borderColor="#3285FF",this.btnColor="#3285FF",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.valueChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.ele.nativeElement.style.background=this.background,this.ele.nativeElement.style.border=this.borderColor?"1px solid "+this.borderColor:0,this.ele.nativeElement.style.setProperty("--color",this.borderColor),this.textStyle={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"}},e.prototype.log=function(e){this.valueChange.emit(e)},e}(),exports.ɵw.decorators=[{type:i0.Component,args:[{selector:"sc-vote",template:'<nz-checkbox-wrapper style="width: 100%;" (nzOnChange)="log($event)">\n <div class="item-wrap" [ngStyle]="textStyle">\n <div class="item" [style.color]="borderColor" *ngFor="let item of options"><label nz-checkbox [nzValue]="item.value ? item.value:item.label" [ngStyle]="textStyle" [ngModel]="item.checked">{{item.label}}</label></div>\n </div>\n</nz-checkbox-wrapper>\n<div class="vote-btn" [style.backgroundColor]="btnColor" [ngStyle]="textStyle">投票</div>\n',styles:[':host{width:100%;text-align:center;display:inline-block}:host ::ng-deep .item-wrap{display:inline-flex;flex-direction:column;text-align:left}:host ::ng-deep .item-wrap .ant-checkbox-inner{background-color:inherit}:host ::ng-deep .item-wrap .item{display:inline-block;height:28px;line-height:28px}:host ::ng-deep .item-wrap .item label{margin:0}:host ::ng-deep .item-wrap .item:before{content:"";position:absolute;left:0;right:0;border-bottom:1px solid;height:0}:host ::ng-deep .item-wrap .ant-checkbox-inner{border-color:var(--color)}:host ::ng-deep .vote-btn{height:28px;line-height:28px}:host ::ng-deep .ant-checkbox-group{position:relative}']}]}],exports.ɵw.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Data({properties:{label:{title:"标签",type:"string"},value:{title:"值",type:"string"},checked:{title:"是否选中",type:"boolean"}}}),__metadata("design:type",Object)],exports.ɵw.prototype,"options",void 0),__decorate([bbjWidgetBase.Property("",{ui:{widget:"myCheckNumber",title:"多选个数",spanLabel:0,spanControl:24}}),__metadata("design:type",Object)],exports.ɵw.prototype,"num",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵw.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵw.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("按钮颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵw.prototype,"btnColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵw.prototype,"font",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵw.prototype,"valueChange",void 0),exports.ɵw=__decorate([bbjWidgetBase.Widget("投票",{group:"component",image:"assets/img/screen/vote.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵw);var VoteModule=function(e){e.register(exports.ɵw)};VoteModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵw],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,checkbox.NzCheckboxModule,forms.FormsModule]}]}],VoteModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$1={selectColor:"#F5A623",borderColor:"#F5A623",background:"rgba(245,166,35,0.2)",dropdownBg:"rgba(245,166,35,0.2)",dropdownBorderColor:"#F5A623"},ɵ1$1={selectColor:"#50E3C2",borderColor:"#50E3C2",background:"rgba(80,227,194,0.2)",dropdownBg:"rgba(80,227,194,0.2)",dropdownBorderColor:"#50E3C2"},ɵ2$1={selectColor:"#9013fe",borderColor:"#9013fe",background:"rgba(144,19,254,0.2)",dropdownBg:"rgba(144,19,254,0.2)",dropdownBorderColor:"#9013fe"},ɵ3$1={selectColor:"#3285ff",borderColor:"#3285ff",background:"rgba(50,133,255,0.2)",dropdownBg:"rgba(50,133,255,0.2)",dropdownBorderColor:"#3285ff"},ɵ4$1=function(e){return e>1};exports.ɵx=function(){function e(){this.hint="请选择",this.num=1,this.borderColor="#d9d9d9",this.dropdownBackgroundColor="#E6F7FF",this.selectDropDownColor="rgba(0,0,0,0.85)",this.selectHoverColor="rgba(0,0,0,0.85)",this.selectHoverBackgroundColor="#f5f5f5",this.font={family:"",weight:"normal",size:12,space:0,lineHeight:30},this.align="left",this.dropdownWidth=null,this.dropdownBg="#fff",this.dropdownBorderColor="#fff",this.outputFormat="array",this.separator=",",this.mode="default",this.options=[{label:"选项1",value:"option1"},{label:"选项2",value:"option2"}],this.valueChange=new i0.EventEmitter,this.optionChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.ngStyle={backgroundColor:this.background,border:"1px solid "+this.borderColor,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"},this.dropdownBg=this.dropdownBg?this.dropdownBg:this.background,this.dropdownBorderColor=this.dropdownBorderColor?this.dropdownBorderColor:this.borderColor,this.dropdownStyle={backgroundColor:this.dropdownBg,border:"1px solid "+this.dropdownBorderColor,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",width:this.dropdownWidth+"px"},document.body.style.setProperty("--dropdownBackgroundColor",this.dropdownBackgroundColor||" rgba(255,255,255,0.2)"),document.body.style.setProperty("--selectDropDownColor",this.selectDropDownColor||"#333"),document.body.style.setProperty("--selectHoverColor",this.selectHoverColor||"rgba(255,255,255,0.5)"),document.body.style.setProperty("--selectHoverBackgroundColor",this.selectHoverBackgroundColor||"#333")},e.prototype.ngOnChanges=function(e){var t=this;if(e.options)if(this.num&&this.num>1)this.mode="multiple",this.selectedValue=[],this.options.forEach((function(e){e.checked&&t.selectedValue.length<t.num&&t.selectedValue.push(e.value?e.value:e.label)})),this.selectedValue.length>0&&this.selectChange(this.selectedValue);else{this.mode="default";var o=this.options.find((function(e){return e.checked}));o&&(this.selectedValue=o.value?o.value:o.label,this.selectChange(this.selectedValue))}e.value&&(this.selectedValue=this.value)},e.prototype.selectAllData=function(){var e=this;this.selectedValue=[],this.options.forEach((function(t){e.selectedValue.push(t.value)})),this.selectChange(this.selectedValue)},e.prototype.selectChange=function(e){if(this.selectedValue=e,Array.isArray(e)){"string"===this.outputFormat?this.valueChange.emit(e.join(this.separator||",")):this.valueChange.emit(e);var t=this.options.filter((function(t){return e.includes(t.value)}));this.optionChange.emit(t)}else{this.valueChange.emit(e);t=this.options.find((function(e){return e.value===event}));this.optionChange.emit(t)}},e.prototype.select=function(e){this.selectedValue=e,this.selectChange(e)},e}(),exports.ɵx.decorators=[{type:i0.Component,args:[{selector:"sc-select",template:'<nz-select\n class="select-wrap"\n [ngClass]="align"\n [ngModel]="selectedValue"\n [nzMode]="mode"\n [nzMaxTagCount]="num"\n [nzDropdownClassName]="\'dropDown\'"\n [ngStyle]="ngStyle"\n [nzDropdownStyle]="dropdownStyle"\n [nzDropdownClassName]="\'selectComp\'"\n [nzDropdownRender]="renderTemplate"\n [nzShowSearch]="showSearch"\n (ngModelChange)="selectChange($event)"\n [nzAllowClear]="showClean"\n [nzPlaceHolder]="hint"\n [(nzOpen)]="open"\n>\n <nz-option\n *ngFor="let item of options"\n [nzValue]="item.value ? item.value : item.label"\n [nzLabel]="item.label"\n ></nz-option>\n</nz-select>\n<ng-template #renderTemplate>\n <div *ngIf="options && options.length > 0 && mode === \'multiple\'" class="select-footer">\n <button nz-button (click)="selectAllData()">全选</button>\n <button nz-button *ngIf="showClean" (click)="selectChange(null)">清空</button>\n <button nz-button *ngIf="showConfirm" (click)="open = false">查看</button>\n </div>\n</ng-template>\n',styles:[":host{display:inline-block}:host,:host ::ng-deep .ant-select{width:100%;height:100%}:host ::ng-deep .ant-select.center .ant-select-selection-item{justify-content:center}:host ::ng-deep .ant-select.right .ant-select-selection-item{justify-content:flex-end}:host ::ng-deep .ant-select-selection-item{display:flex;align-items:center}:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{background-color:inherit;border:0;height:100%;box-shadow:none!important}:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input{height:100%}:host ::ng-deep .ant-select-arrow,:host ::ng-deep .ant-select-item,:host ::ng-deep .ant-select-item-empty{color:inherit}:host ::ng-deep .ant-select-single.ant-select-show-arrow .ant-select-selection-item,:host ::ng-deep .ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder{line-height:inherit}.select-allCheck:hover{background-color:#f8f8f8}.select-allCheck{display:flex;align-items:center;border-top:1px solid #eee;justify-content:flex-end;height:32px;padding:5px 12px;font-size:14px;position:relative;line-height:22px;font-weight:400;color:#333}.select-allCheck span{flex:1}.select-allCheck p{line-height:32px}:host ::ng-deep ::-webkit-scrollbar{width:2px}::ng-deep .selectComp .cdk-virtual-scroll-viewport::-webkit-scrollbar{width:0}::ng-deep .selectComp .ant-select-item-option{color:inherit;font-size:12px}::ng-deep .selectComp .ant-select-item-option-active{background:var(--selectHoverBackgroundColor);color:var(--selectHoverColor)}::ng-deep .selectComp .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background:var(--dropdownBackgroundColor);color:var(--selectDropDownColor)}::ng-deep .selectComp .ant-select-dropdown{background-color:transparent}.select-footer{padding:8px}"]}]}],exports.ɵx.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("下拉框样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["background","borderColor","selectColor"],example:[{background:"assets/img/screen/select1.png",data:ɵ0$1},{background:"assets/img/screen/select2.png",data:ɵ1$1},{background:"assets/img/screen/select3.png",data:ɵ2$1},{background:"assets/img/screen/select4.png",data:ɵ3$1}]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("提示用语",{type:"string"}),__metadata("design:type",Object)],exports.ɵx.prototype,"hint",void 0),__decorate([bbjWidgetBase.Property("",{ui:{widget:"myCheckNumber",title:"多选个数",spanLabel:0,spanControl:24}}),__metadata("design:type",Object)],exports.ɵx.prototype,"num",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",String)],exports.ɵx.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("选中颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"dropdownBackgroundColor",void 0),__decorate([bbjWidgetBase.Property("选中字体颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"selectDropDownColor",void 0),__decorate([bbjWidgetBase.Property("hover字体颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"selectHoverColor",void 0),__decorate([bbjWidgetBase.Property("hover背景颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"selectHoverBackgroundColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵx.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("对齐方式",{enum:[{label:"左对齐",value:"left"},{label:"居中",value:"center"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵx.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("搜索"),__metadata("design:type",Boolean)],exports.ɵx.prototype,"showSearch",void 0),__decorate([bbjWidgetBase.Property("清空按钮"),__metadata("design:type",Boolean)],exports.ɵx.prototype,"showClean",void 0),__decorate([bbjWidgetBase.Property("查看按钮"),__metadata("design:type",Boolean)],exports.ɵx.prototype,"showConfirm",void 0),__decorate([bbjWidgetBase.Property("下拉宽度",{type:"number"}),__metadata("design:type",Object)],exports.ɵx.prototype,"dropdownWidth",void 0),__decorate([bbjWidgetBase.Property("下拉填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"dropdownBg",void 0),__decorate([bbjWidgetBase.Property("下拉边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"dropdownBorderColor",void 0),__decorate([bbjWidgetBase.Property("输出格式",{enum:[{label:"数组",value:"array"},{label:"字符串",value:"string"}],ui:{widget:"select",visibleIf:{num:ɵ4$1}}}),__metadata("design:type",Object)],exports.ɵx.prototype,"outputFormat",void 0),__decorate([bbjWidgetBase.Property("分隔字符",{ui:{visibleIf:{outputFormat:["string"]}}}),__metadata("design:type",Object)],exports.ɵx.prototype,"separator",void 0),__decorate([bbjWidgetBase.Data({properties:{label:{title:"标签",type:"string"},value:{title:"值",type:"string"},checked:{title:"是否选中",type:"boolean"}}}),__metadata("design:type",Object)],exports.ɵx.prototype,"options",void 0),__decorate([bbjWidgetBase.DataInput("选中值"),__metadata("design:type",Object)],exports.ɵx.prototype,"value",void 0),__decorate([bbjWidgetBase.DataOutput("值"),bbjWidgetBase.Event("值改变",{params:"值"}),__metadata("design:type",Object)],exports.ɵx.prototype,"valueChange",void 0),__decorate([bbjWidgetBase.DataOutput("原始数据"),__metadata("design:type",Object)],exports.ɵx.prototype,"optionChange",void 0),__decorate([bbjWidgetBase.Method("选中"),__param(0,bbjWidgetBase.Param("值")),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],exports.ɵx.prototype,"select",null),exports.ɵx=__decorate([bbjWidgetBase.Widget("下拉框",{group:"component",image:"assets/img/screen/select.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵx);var SelectModule=function(e){e.register(exports.ɵx)};function getFontStyle(e){var t={};return e&&(e.size&&(t.fontSize=e.size+"px"),e.family&&(t.fontFamily=e.family),e.color&&(t.color=e.color),e.weight&&(t.fontWeight=e.weight),e.space&&(t.letterSpacing=e.space+"px"),e.lineHeight&&(t.lineHeight=e.lineHeight+"px")),t}SelectModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵx],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,select.NzSelectModule,forms.FormsModule,button.NzButtonModule]}]}],SelectModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵz=function(){function e(){this.colorExample={color:"#3285ff",borderColor:"#3285ff",background:"rgba(50,133,255,0.2)"},this.background="rgba(50,133,255,0.2)",this.borderColor="#3285ff",this.font={family:"",color:"#3285ff",weight:"normal",size:12,space:0,lineHeight:""},this.btnStyleOption="default",this.iconSingleColor="#fff",this.iconSingleSize=16,this.height=26,this.valueChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.btnStyle=Object.assign({backgroundColor:this.background,borderColor:this.borderColor},getFontStyle(this.font)),"iconSingle"===this.btnStyleOption&&(this.btnIconStyle={fontSize:this.iconSingleSize+"px",color:this.iconSingleColor})},e.prototype.searchChange=function(e){this.valueChange.emit(e)},e.prototype.onKeypress=function(e){"Enter"===e.key&&this.valueChange.emit(this.value)},e}(),exports.ɵz.decorators=[{type:i0.Component,args:[{selector:"sc-search",template:'<nz-input-group\n nzSearch\n [nzAddOnAfter]="hideBtn ? null : suffixIconButton"\n class="search-group"\n \n>\n <input\n type="text"\n nz-input\n [ngStyle]="btnStyle"\n [(ngModel)]="value"\n [placeholder]="placeholder | nzSafeNull"\n (keypress)="onKeypress($event)"\n [style.height.px]="height || 26"\n />\n</nz-input-group>\n<ng-template #suffixIconButton>\n <ng-container [ngSwitch]="btnStyleOption">\n <ng-container *ngSwitchCase="\'iconSingle\'">\n <div class="input-icon">\n <i [ngStyle]="btnIconStyle" nz-icon [nzIconfont]="\'iconsousuo1\'" (click)="searchChange(value)" ></i>\n </div>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button nz-button nzType="primary" [ngStyle]="btnStyle" (click)="searchChange(value)" nzSearch>\n <i nz-icon nzType="search"></i>\n </button>\n </ng-container>\n </ng-container>\n</ng-template>\n',styles:[":host ::ng-deep .ant-input-focused,:host ::ng-deep .ant-input:focus{box-shadow:none!important}:host ::ng-deep .search-group .ant-input-group-addon{background-color:unset;height:100%}:host ::ng-deep .ant-btn.ant-input-search-button,:host ::ng-deep .ant-input-group,:host ::ng-deep .ant-input-group .ant-input{height:100%}:host ::ng-deep .input-icon{display:flex;align-items:center;height:100%;cursor:pointer;font-size:16px;color:#fff;position:absolute;right:10px;top:0}"]}]}],exports.ɵz.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("按钮样式",{ui:{widget:"myButton",spanLabel:24,spanControl:24,icon:"search",reset:["background","borderColor",{parent:"font",child:"color"}],background:[{color:"#F5A623",borderColor:"#F5A623",background:"rgba(245,166,35,0.2)"},{color:"#50E3C2",borderColor:"#50E3C2",background:"rgba(80,227,194,0.2)"},{color:"#9013fe",borderColor:"#9013fe",background:"rgba(144,19,254,0.2)"},{color:"#3285ff",borderColor:"#3285ff",background:"rgba(50,133,255,0.2)"}]}}),__metadata("design:type",Object)],exports.ɵz.prototype,"colorExample",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵz.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵz.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵz.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("按钮样式",{enum:[{label:"样式一",value:"default"},{label:"样式二",value:"iconSingle"}]}),__metadata("design:type",Object)],exports.ɵz.prototype,"btnStyleOption",void 0),__decorate([bbjWidgetBase.Property("按钮颜色",{ui:{widget:"myColor",visibleIf:{btnStyleOption:["iconSingle"]}}}),__metadata("design:type",Object)],exports.ɵz.prototype,"iconSingleColor",void 0),__decorate([bbjWidgetBase.Property("按钮大小",{ui:{visibleIf:{btnStyleOption:["iconSingle"]}}}),__metadata("design:type",Object)],exports.ɵz.prototype,"iconSingleSize",void 0),__decorate([bbjWidgetBase.Property("隐藏按钮"),__metadata("design:type",Boolean)],exports.ɵz.prototype,"hideBtn",void 0),__decorate([bbjWidgetBase.Property("提示文字"),__metadata("design:type",String)],exports.ɵz.prototype,"placeholder",void 0),__decorate([bbjWidgetBase.Property("高度"),__metadata("design:type",Object)],exports.ɵz.prototype,"height",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵz.prototype,"valueChange",void 0),exports.ɵz=__decorate([bbjWidgetBase.Widget("搜索框",{group:"component",image:"assets/img/screen/search.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵz);var SearchModule=function(e,t){this.iconService=t,e.register(exports.ɵz),this.iconService.fetchFromIconfont({scriptUrl:"assets/icons/screen-icons.js"})};SearchModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵz],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,icon.NzIconModule,input.NzInputModule,button.NzButtonModule,forms.FormsModule,pipes.NzPipesModule]}]}],SearchModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService},{type:icon.NzIconService}]},exports.ɵbb=function(){function e(e,t,o){this.baiduMapService=e,this.gaodeMapService=t,this.zone=o,this.tempFont={family:"",color:"#ffffff",weight:"normal",size:40,space:0,lineHeight:""},this.weatherStyleType="default",this.iconSize=64,this.weatherIcon=["iconfont","icon-duoyun"],this.weatherImgs={cloudy:"weather_cloudy",rain:"weather_rain",overcast:"weather_overcast",sunny:"weather_sunny"},this.weatherImgName="overcast"}return e.prototype.ngOnInit=function(){this.tempStyle=getFontStyle(this.tempFont),this.reload()},e.prototype.reload=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,i=this;return __generator(this,(function(a){switch(a.label){case 0:return[4,this.baiduMapService.localCity()];case 1:return e=a.sent(),t=e.name,this.city=t,[4,this.gaodeMapService.getWeather(t)];case 2:return o=a.sent(),this.zone.run((function(){i.weather=o.lives[0].weather,i.weatherImgName=i.weather.includes("雨")?"rain":"晴"===i.weather?"sunny":i.weather.includes("云")?"cloudy":"overcast",i.temperature=o.lives[0].temperature})),[2]}}))}))},e}(),exports.ɵbb.decorators=[{type:i0.Component,args:[{selector:"sc-weather",template:'<ng-container [ngSwitch]="weatherStyleType">\n <ng-container *ngSwitchCase="\'mini\'">\n <div class="weatherStyle-mini" *ngIf="weather">\n <img\n [src]="\'/assets/img/screen/\' + weatherImgs[weatherImgName || \'overcast\'] + \'.png\'"\n alt=""\n [style]="{ width: (iconSize || 64) + \'px\', height: (iconSize || 64) + \'px\' }"\n />\n <span [ngStyle]="tempStyle">{{ weather }} {{ temperature }}℃</span>\n </div>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <div class="flex-row" [ngStyle]="tempStyle">\n <div class="wd flex-row">\n <div class="f-s30 f-w">{{ temperature }}</div>\n <div style="font-size: 0.4em">℃</div>\n </div>\n <div class="icon">\n <i [ngClass]="weatherIcon" style="font-size: 1em"></i>\n </div>\n <div class="status">\n <div class="weather">{{ weather }}</div>\n <div class="city">{{ city }}</div>\n </div>\n </div>\n </ng-container>\n</ng-container>\n',styles:['@font-face{font-family:iconfont;src:url(//at.alicdn.com/t/font_1514307_kyxp4dpada.eot?t=1574038799011);src:url(//at.alicdn.com/t/font_1514307_kyxp4dpada.eot?t=1574038799011#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAYEAAsAAAAAC+QAAAW2AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDMgqKeIkkATYCJAMUCwwABCAFhG0HUxs7ChFVpB+R/Thwzk/B+s/Oqy5qBi1S9C80//l3s859CaJVqJmQ1GxCqAsjZjBSZdUM2f0U0S8I6fZjOKE1zdZ0jPlGRagu2fPUs/yP/Henl6aM8ziNUggJwvHD/VIv0yOfnZ1LdS+6aAMdUETbJ95ozlvEs8mlzsisvw0EQItYZIOEpg4JavDgRoIu9oW5CagdLvARbILaqgy4kydahgJqdp69C+Cy9vv0IwpJDTAoOPAre2bFadR/E/K9wB3zH8OwgoI6vwCA630AByAbAA/QjsCQHZxhyNZM2qAQj/oW/E0NBvZNyDep3+R9L/j9WLoWWbSCEkMMXL7/PCW4SQ/4eiPfc2pJCgR8kyoFBnyTp3iH8b0AmhljUuD5WgAxAL0JsM0MnzxMCw4aqPS8zhwRadAbRLs5XElEJwYYbR+3uUKldVPDRpjtCvMgHddqHaHYMOmumNF7Ex2f0zqAY49UGLlkkqkxRUDWOSMCZu061i+4QqvXTVZAbdLvUVDdT5FdoT3rpgm3W/J4rD6fzevtFw2yrrAX3O6DjuSzIiSBV93xHnNA5FkO7ZbXvYm3+JpdRHLdoYvbe1xaP2Yybeh0mmPDWXzyuCtUq3gcU3aHI9R/hhzmdkhuNcySbTOnCDuGHKF14NzkEQ3r6+m8IClvw8EMCo7iu72l0Q3HPBl3ukE1I6O32aNu8H3i0zk9NY++m75+1W13hN3zTtnNoC8hcfyTMrmUZzkrbk1/0h3tCL374SmdM6zuiuN3O7qzx7G7ZOc9RC4b607ALjVpR195l0l03nP8bttxc63rc91VppqN2+75YkWS7Eui+JuKsj/Xxolq9dVqlajcdvW2rUmiSnW1alzc5rY/slcKqEWVn16puL+4I64mBfXv8sA2cRyO7KuUJL8oLtklCSrp/iZUgNnuqD/ca2eXLzOZvXR5+XlseZmWyL58eelaCw0OwALL4CDLY2CQLMJTBgaQ//GxYBY2eHnHJO1iV1/D4MqtFpsO4uCowEdbaccOYgjJO7bLOxkzY6qlQ6Vqap+JMdLsuXOzbIxO7dMNPx3fQmNjxL7YPDZeMLy4KAVNJ+TzcV1dgvEqg7C0JBiuHo/v6lbljmvw7xP0xRPjxfpzemEcViq3P+UQrLpfMMOC/kpCOOm+Yqf53GllFveVw5fTrwz8wtR3fLafFpjTSfMstrpLYey1ur/tpNk56hSOnZ1t6/oBIfUCo7rGPM3Ahg8cGCYr9tq1m66KbiBZpno4KFmf+78OawzxZSKJos/vSLOc6uhGSuv1rQnLXTQ/T11p0Zarvk9syURj70S9gftjhA4dIvnr8tb9ZUdS+lObPB3RGSXD2arW748cqBxdO7DZ39NANhsxfcNFDsh8EFTfgOzRK63XcoKQn6V9/lReXve1hO2rVS+T4dyZK6OKIq+EY6MTn20zFBoqDAlRieyYxP9e3G5M0CW+uOxqCOlwGa/cE0uvxWvP3ViEfQAA/zL3G7dNEz7Ffcp1Cl+e93C1lV+q5uL/YGfh/u0ja2MB1X+rdVvWvs/+MxrR4V+mhZBvNvuXmEFW/52GVQV+f9U3LTcovrMhmU+aAVA4Q8Guqfnn2PwYC/bLx2Iiq/+tFpMFjEoMcNSS0Tw+GxR0ikFJrQ60shT364RgS9QLyPRiQAK9gTF6ATiBPmge/wUFsz8oBWYJWnJCnqiTmkpZGLWgA/OEylLvRa8ovesRw9Rqtms1wRV5rLKQRom7WmCPnMc14y1kIh48UwcH9j5sW4KBqUYrUSky5HHsg74RWepmigVDmkAOMJ6KbMUiPb+3UJ6fP0LBpKVxxJhv2SvERtXhQSqSENCFqSeNWZfeo5sgIxjwQBrMSAccMIBaoUTAEHxaDVkiUqYoDHIxzuWppqh8SzeNLZiI4/BrFBmZaVY21R+2J5XIanul+9Bi9Zy209po0iw7/2A6mwEAAA==") format("woff2"),url(//at.alicdn.com/t/font_1514307_kyxp4dpada.woff?t=1574038799011) format("woff"),url(//at.alicdn.com/t/font_1514307_kyxp4dpada.ttf?t=1574038799011) format("truetype"),url(//at.alicdn.com/t/font_1514307_kyxp4dpada.svg?t=1574038799011#iconfont) format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-sun:before{content:"\\e613"}.icon-leiyu:before{content:"\\e626"}.icon-rain:before{content:"\\e62f"}.icon-duoyun:before{content:"\\e944"}.flex-row{display:flex;flex-flow:row;align-items:center}.f-w{font-weight:700}.wd{flex:1;align-items:baseline}.wd div:first-child{margin-right:10px}.status{font-size:.4em;margin-left:10px}.weatherStyle-mini{display:flex;align-items:center}.weatherStyle-mini img{display:block;margin-right:8px}']}]}],exports.ɵbb.ctorParameters=function(){return[{type:i1.BaiduMapService},{type:GaodeMapService},{type:i0.NgZone}]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbb.prototype,"tempFont",void 0),__decorate([bbjWidgetBase.Property("显示样式",{enum:[{label:"样式1",value:"default"},{label:"样式2",value:"mini"}]}),__metadata("design:type",Object)],exports.ɵbb.prototype,"weatherStyleType",void 0),__decorate([bbjWidgetBase.Property("图标大小",{ui:{widget:"myRange",min:0,max:100,step:1,visibleIf:{weatherStyleType:["mini"]}}}),__metadata("design:type",Object)],exports.ɵbb.prototype,"iconSize",void 0),exports.ɵbb=__decorate([bbjWidgetBase.Widget("天气",{group:"component",image:"assets/img/screen/weather.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i1.BaiduMapService,GaodeMapService,i0.NgZone])],exports.ɵbb);var WeatherModule=function(e){e.register(exports.ɵbb)};WeatherModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbb],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,i2.HttpClientJsonpModule],providers:[]}]}],WeatherModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbd=function(){function e(e){this.ele=e,this.radioColor="#3285FF",this.styleType="circle",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:26},this.selectImage="",this.notSelectImage="",this.width=150,this.height=50,this.isCustom=!1,this.options=[{label:"是",value:"1",checked:!0},{label:"否",value:"0"}],this.valueChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.ele.nativeElement.style.setProperty("--radioColor",this.radioColor),this.ele.nativeElement.style.setProperty("--outerSize",this.font.size+"px"),this.ele.nativeElement.style.setProperty("--innerSize",this.font.size/2+"px"),this.ele.nativeElement.style.setProperty("--width",this.width+"px"),this.ele.nativeElement.style.setProperty("--height",this.height+"px"),this.ele.nativeElement.style.setProperty("--color",this.font.color),this.ele.nativeElement.style.setProperty("--weight",this.font.weight),this.ele.nativeElement.style.setProperty("--family",this.font.weight),this.ele.nativeElement.style.setProperty("--select","url("+this.selectImage+")"),this.ele.nativeElement.style.setProperty("--notSelect","url("+this.notSelectImage+")"),this.ngStyle={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"}},e.prototype.ngOnChanges=function(e){if(this.selectImage&&this.notSelectImage&&""!=this.selectImage&&""!=this.notSelectImage&&(this.isCustom=!0),e.options&&this.options){var t=this.options.find((function(e){return e.checked}));t&&(this.radioValue=t.value,this.valueChange.emit(this.radioValue))}},e.prototype.checked=function(e){var t=this;this.options.forEach((function(o){o.value===e.value?(o.checked=!0,t.valueChange.emit(o.value)):o.checked=!1}))},e.prototype.radioChange=function(e){this.valueChange.emit(e)},e}(),exports.ɵbd.decorators=[{type:i0.Component,args:[{selector:"sc-radio",template:'<ng-container *ngIf="!isCustom">\n <ng-container *ngIf="styleType!=\'button\'">\n <nz-radio-group [(ngModel)]="radioValue" (ngModelChange)="radioChange($event)" [ngStyle]="ngStyle">\n <label nz-radio *ngFor="let option of options" [nzValue]="option.value">{{option.label}}</label>\n </nz-radio-group>\n </ng-container>\n <ng-container *ngIf="styleType==\'button\'">\n <nz-radio-group [(ngModel)]="radioValue" (ngModelChange)="radioChange($event)" [ngStyle]="ngStyle"\n nzButtonStyle="solid">\n <label nz-radio-button *ngFor="let option of options" [nzValue]="option.value">{{option.label}}</label>\n </nz-radio-group>\n </ng-container>\n</ng-container>\n<ng-container *ngIf="isCustom">\n <div class="content">\n <label class="customRadio" *ngFor="let option of options" (click)="checked(option)"><input type="radio" [value]="option.value" [checked]="option.checked" /><span>{{option.label}}</span></label>\n </div>\n</ng-container>',styles:[":host ::ng-deep .ant-radio-checked .ant-radio-inner,:host ::ng-deep .ant-radio-inner{border-color:var(--radioColor);width:var(--outerSize);height:var(--outerSize);position:relative}:host ::ng-deep .ant-radio-inner:after{background-color:var(--radioColor);width:var(--innerSize);height:var(--innerSize);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:50%;text-align:center}:host ::ng-deep .ant-radio,:host ::ng-deep .ant-radio-group,:host ::ng-deep .ant-radio-wrapper,:host ::ng-deep .ng-star-inserted{color:inherit;font-size:inherit;line-height:inherit}:host ::ng-deep .ant-radio-button-checked{background-color:var(--radioColor)}:host ::ng-deep .content{display:flex}:host ::ng-deep .content .customRadio{cursor:pointer;flex:1}:host ::ng-deep .customRadio input[type=radio]{display:none}:host ::ng-deep .customRadio input[type=radio]+span{display:inline-block;width:var(--width);height:var(--height);font-size:var(--outerSize);line-height:var(--height);color:var(--color);font-weight:var(--weight);font-family:var(--family);text-align:center;background-image:var(--notSelect);background-repeat:no-repeat;background-size:cover}:host ::ng-deep .customRadio input[type=radio]:checked+span{background-image:var(--select);background-repeat:no-repeat;background-size:cover}"]}]}],exports.ɵbd.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵbd.prototype,"radioColor",void 0),__decorate([bbjWidgetBase.Property("样式类型",{ui:{widget:"select"},enum:[{label:"圆点",value:"circle"},{label:"按钮",value:"button"}]}),__metadata("design:type",Object)],exports.ɵbd.prototype,"styleType",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbd.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("选中图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵbd.prototype,"selectImage",void 0),__decorate([bbjWidgetBase.Property("未选图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵbd.prototype,"notSelectImage",void 0),__decorate([bbjWidgetBase.Property("自定义宽",{type:"number"}),__metadata("design:type",Object)],exports.ɵbd.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("自定义高",{type:"number"}),__metadata("design:type",Object)],exports.ɵbd.prototype,"height",void 0),__decorate([bbjWidgetBase.Data({properties:{label:{title:"标签",type:"string"},value:{title:"值",type:"string"},checked:{title:"是否选中",type:"boolean"}}}),__metadata("design:type",Array)],exports.ɵbd.prototype,"options",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵbd.prototype,"valueChange",void 0),exports.ɵbd=__decorate([bbjWidgetBase.Widget("单选",{group:"component",image:"assets/img/screen/radio.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbd);var RadioModule=function(e){e.register(exports.ɵbd)};RadioModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbd],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,radio.NzRadioModule,forms.FormsModule]}]}],RadioModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbe=function(){function e(e){this.ele=e,this.options=[{label:"多选一",value:"option1",checked:!0},{label:"多选二",value:"option2"},{label:"多选三",value:"option3"}],this.borderColor="#3285FF",this.font={family:"",weight:"normal",size:12,space:0,lineHeight:26},this.layout="horizontal",this.lableLayout="horizontal",this.lablePaddNum={top:0,right:0,bottom:0,left:0},this.outputFormat="array",this.separator=",",this.selectImage="",this.notSelectImage="",this.width=150,this.height=50,this.isCustom=!1,this.valueChange=new i0.EventEmitter,this.allChecked=!1,this.indeterminate=!0}return e.prototype.ngOnInit=function(){this.textStyle={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",borderColor:this.borderColor,backgroudColor:this.borderColor}},e.prototype.ngOnChanges=function(e){var t=this;if(this.selectImage&&this.notSelectImage&&""!=this.selectImage&&""!=this.notSelectImage&&(this.ele.nativeElement.style.setProperty("--outerSize",this.font.size+"px"),this.ele.nativeElement.style.setProperty("--innerSize",this.font.size/2+"px"),this.ele.nativeElement.style.setProperty("--width",this.width+"px"),this.ele.nativeElement.style.setProperty("--height",this.height+"px"),this.ele.nativeElement.style.setProperty("--color",this.font.color),this.ele.nativeElement.style.setProperty("--weight",this.font.weight),this.ele.nativeElement.style.setProperty("--family",this.font.weight),this.ele.nativeElement.style.setProperty("--select","url("+this.selectImage+")"),this.ele.nativeElement.style.setProperty("--notSelect","url("+this.notSelectImage+")"),this.isCustom=!0),e.value&&this.updateCheckOptions(),e.options&&(this.checkOptions=this.options.map((function(e,o){var i;return e=Object.assign({},e),(null===(i=t.labelColors)||void 0===i?void 0:i.length)&&(e.color=t.labelColors[o%t.labelColors.length]),e})),this.updateSingleChecked(),this.value?this.updateCheckOptions():this.updateValue(!0)),e.lablePaddNum&&e.lablePaddNum.currentValue){var o=e.lablePaddNum.currentValue;this.lablePadd=(o.top||0)+"px "+(o.right||0)+"px "+(o.bottom||0)+"px "+(o.left||0)+"px"}if(e.labelWidthNum&&e.labelWidthNum.currentValue){var i=e.labelWidthNum.currentValue;if(Number(i))this.labelWidth=i+"px";else"%"===i.charAt(i.length-1)&&Number(i.slice(0,i.length-1))&&(this.labelWidth=i)}},e.prototype.change=function(e){this.updateSingleChecked(),this.updateValue()},e.prototype.updateCheckOptions=function(){var e;if(this.value&&(null===(e=this.checkOptions)||void 0===e?void 0:e.length)){var t;t="string"==typeof this.value?this.value.split(this.separator||","):this.value;var o=!1;this.checkOptions.forEach((function(e){var i=e.value&&t.includes(e.value.toString());e.checked!==i&&(o=!0,e.checked=i)})),o&&(this.checkOptions=__spread(this.checkOptions),this.updateSingleChecked())}},e.prototype.updateValue=function(e){var t=[];this.checkOptions.forEach((function(e){e.checked&&t.push(e.value)})),e&&!t.length||("string"===this.outputFormat?this.valueChange.emit(t.join(this.separator||",")):this.valueChange.emit(t))},e.prototype.updateAllChecked=function(){this.indeterminate=!1,this.allChecked?this.checkOptions=this.checkOptions.map((function(e){return Object.assign(Object.assign({},e),{checked:!0})})):this.checkOptions=this.checkOptions.map((function(e){return Object.assign(Object.assign({},e),{checked:!1})})),this.updateValue()},e.prototype.updateSingleChecked=function(){this.showCheckAll&&(this.checkOptions.every((function(e){return!e.checked}))?(this.allChecked=!1,this.indeterminate=!1):this.checkOptions.every((function(e){return e.checked}))?(this.allChecked=!0,this.indeterminate=!1):this.indeterminate=!0)},e.prototype.checkedAll=function(){this.allChecked=!this.allChecked},e.prototype.checked=function(e){var t=[];this.options.forEach((function(o){o.value===e.value&&(o.checked=!o.checked),o.checked&&t.push(o.value)})),this.valueChange.emit(t.join(this.separator||","))},e}(),exports.ɵbe.decorators=[{type:i0.Component,args:[{selector:"sc-checkbox",template:'<ng-container *ngIf="!isCustom">\n <div class="checkboxDefault" [class.label-vertical]="lableLayout === \'vertical\'">\n <label\n *ngIf="showCheckAll"\n nz-checkbox\n [ngStyle]="textStyle"\n [style.padding]="lablePadd"\n [style.width]="labelWidth"\n [(ngModel)]="allChecked"\n (ngModelChange)="updateAllChecked()"\n [nzIndeterminate]="indeterminate"\n >\n <ng-container *ngIf="!hiddenLabel">全选</ng-container>\n </label>\n <nz-checkbox-wrapper [ngStyle]="textStyle" (nzOnChange)="change($event)">\n <label\n *ngFor="let option of checkOptions"\n nz-checkbox\n [nzDisabled]="disabled"\n [style.padding]="lablePadd"\n [style.width]="labelWidth"\n [nzValue]="option.value"\n [(ngModel)]="option.checked"\n [style.color]="option.color"\n >\n <ng-container *ngIf="!hiddenLabel">{{ option.label }}</ng-container>\n </label>\n </nz-checkbox-wrapper>\n </div>\n</ng-container>\n<ng-container *ngIf="isCustom">\n <div\n class="content"\n [class.layout-vertical]="layout === \'vertical\'"\n [class.label-vertical]="lableLayout === \'vertical\'"\n [ngStyle]="textStyle"\n >\n <label\n *ngIf="showCheckAll"\n class="customRadio"\n [class.checked]="allChecked && !indeterminate"\n (click)="allChecked = !allChecked; updateAllChecked()"\n [style.padding]="lablePadd"\n [style.width]="labelWidth"\n >\n <i class="input-checkbox"></i>\n <span *ngIf="!hiddenLabel">全选</span></label\n >\n <label\n class="customRadio"\n [style.padding]="lablePadd"\n [style.width]="labelWidth"\n *ngFor="let option of checkOptions; let i = index"\n [class.checked]="option.checked"\n (click)="option.checked = !option.checked; change(option)"\n >\n <i class="input-checkbox"></i>\n <span *ngIf="!hiddenLabel" [style.color]="option.color">{{ option.label }}</span></label\n >\n </div>\n</ng-container>\n',host:{"[class.vertical]":'layout==="vertical"'},styles:[":host{display:block}:host ::ng-deep .ant-checkbox{display:inline-block}:host ::ng-deep .ant-checkbox,:host ::ng-deep .ant-checkbox-checked .ant-checkbox-inner,:host ::ng-deep .ant-checkbox-wrapper{background-color:inherit;border-color:inherit;color:inherit;font-size:inherit}:host ::ng-deep .ant-checkbox-checked .ant-checkbox-inner:after,:host ::ng-deep .ant-checkbox-inner{border-color:inherit;background-color:inherit}:host ::ng-deep .ant-checkbox-wrapper{margin-left:0}:host ::ng-deep .label-vertical label.ant-checkbox-wrapper{text-align:center}:host ::ng-deep .label-vertical .ant-checkbox+span{display:block}:host ::ng-deep .content .customRadio{display:inline-flex;align-items:center;cursor:pointer;padding:15px}:host ::ng-deep .content.layout-vertical{display:flex;flex-direction:column}:host ::ng-deep .content.label-vertical .customRadio{flex-direction:column;text-align:center}:host ::ng-deep .content.label-vertical .customRadio>i.input-checkbox{margin:0 0 5px}:host ::ng-deep .ant-checkbox+span,:host ::ng-deep .customRadio>i.input-checkbox+span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .customRadio>i.input-checkbox{display:inline-block;width:var(--width);height:var(--height);font-size:var(--outerSize);line-height:var(--height);color:var(--color);font-weight:var(--weight);font-family:var(--family);text-align:center;background-image:var(--notSelect);background-repeat:no-repeat;background-size:cover;margin:0 5px 0 0;flex:none}:host ::ng-deep .customRadio.checked>i.input-checkbox{background-image:var(--select);background-repeat:no-repeat;background-size:cover}.ant-checkbox-group{display:inline}:host.vertical::ng-deep .ant-checkbox-wrapper{display:block;text-align:center}"]}]}],exports.ɵbe.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Data({properties:{label:{title:"标签",type:"string"},value:{title:"值",type:"string"},checked:{title:"是否选中",type:"boolean"}}}),__metadata("design:type",Array)],exports.ɵbe.prototype,"options",void 0),__decorate([bbjWidgetBase.Property("复选框颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("整体布局",{enum:[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}]}),__metadata("design:type",Object)],exports.ɵbe.prototype,"layout",void 0),__decorate([bbjWidgetBase.Property("选项布局",{enum:[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}]}),__metadata("design:type",Object)],exports.ɵbe.prototype,"lableLayout",void 0),__decorate([bbjWidgetBase.Property("选项宽度"),__metadata("design:type",Object)],exports.ɵbe.prototype,"labelWidthNum",void 0),__decorate([bbjWidgetBase.Property("选项边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"lablePaddNum",void 0),__decorate([bbjWidgetBase.Property("显示全选"),__metadata("design:type",Boolean)],exports.ɵbe.prototype,"showCheckAll",void 0),__decorate([bbjWidgetBase.Property("隐藏文本"),__metadata("design:type",Boolean)],exports.ɵbe.prototype,"hiddenLabel",void 0),__decorate([bbjWidgetBase.Property("输出格式",{enum:[{label:"数组",value:"array"},{label:"字符串",value:"string"}]}),__metadata("design:type",Object)],exports.ɵbe.prototype,"outputFormat",void 0),__decorate([bbjWidgetBase.Property("分隔字符",{ui:{visibleIf:{outputFormat:["string"]}}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"separator",void 0),__decorate([bbjWidgetBase.Property("标签颜色",{ui:{widget:"seriesColor"}}),__metadata("design:type",Array)],exports.ɵbe.prototype,"labelColors",void 0),__decorate([bbjWidgetBase.Property("选中图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"selectImage",void 0),__decorate([bbjWidgetBase.Property("未选图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"notSelectImage",void 0),__decorate([bbjWidgetBase.Property("图片宽",{type:"number"}),__metadata("design:type",Object)],exports.ɵbe.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("图片高",{type:"number"}),__metadata("design:type",Object)],exports.ɵbe.prototype,"height",void 0),__decorate([bbjWidgetBase.DataInput("选中值"),__metadata("design:type",Object)],exports.ɵbe.prototype,"value",void 0),__decorate([bbjWidgetBase.DataOutput("值"),bbjWidgetBase.Event("值改变",{params:"值"}),__metadata("design:type",Object)],exports.ɵbe.prototype,"valueChange",void 0),__decorate([bbjWidgetBase.Property("禁用",{type:"boolean"}),__metadata("design:type",Boolean)],exports.ɵbe.prototype,"disabled",void 0),exports.ɵbe=__decorate([bbjWidgetBase.Widget("复选框",{group:"component",image:"assets/img/screen/checkbox.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbe);var CheckboxModule=function(e){e.register(exports.ɵbe)};CheckboxModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbe],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,checkbox.NzCheckboxModule,forms.FormsModule]}]}],CheckboxModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbg=function(){function e(e){this.ele=e,this.type="rate",this.radioColor="#3285FF",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:26},this.rateValue=3.5,this.radioValue="great",this.sliderValue=8}return e.prototype.ngOnInit=function(){this.ele.nativeElement.style.setProperty("--backgroundColor",this.radioColor),this.style={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"}},e}(),exports.ɵbg.decorators=[{type:i0.Component,args:[{selector:"sc-rate",template:'<ng-container *ngIf="type === \'rate\'">\n <nz-rate [ngModel]="rateValue" nzAllowHalf [style.color]="radioColor"></nz-rate>\n <span *ngIf="rateValue" [ngStyle]="style" class="ant-rate-text">{{rateValue}}星</span>\n</ng-container>\n<nz-radio-group [ngStyle]="style" class="radio-rate" [(ngModel)]="radioValue" *ngIf="type === \'radio\'">\n <label nz-radio [ngStyle]="style" nzValue="great">非常满意</label>\n <label nz-radio [ngStyle]="style" nzValue="satisfaction">满意</label>\n <label nz-radio [ngStyle]="style" nzValue="ordinary">一般</label>\n <label nz-radio [ngStyle]="style" nzValue="yawp">不满意</label>\n <label nz-radio [ngStyle]="style" nzValue="bad">差</label>\n</nz-radio-group>\n<div class="slider-rate" [ngStyle]="style" *ngIf="type === \'slider\'">\n <span>评分</span>\n <nz-slider class="slider" [(ngModel)]="sliderValue" [nzMin]="0" [nzMax]="10"></nz-slider>\n <span *ngIf="sliderValue">{{sliderValue}}分</span>\n</div>\n',styles:[":host ::ng-deep .slider-rate{display:flex}:host ::ng-deep .slider-rate span{white-space:nowrap;display:flex;justify-content:center;flex-direction:column}:host ::ng-deep .slider-rate .slider{display:inline-block;width:100%;margin:2px 8px 0}:host ::ng-deep .ant-rate-text{margin-left:8px}:host ::ng-deep .ant-rate{color:inherit}:host ::ng-deep .ant-slider-track,:host ::ng-deep .ant-slider:hover .ant-slider-track{background-color:var(--backgroundColor)}:host ::ng-deep .ant-radio-checked .ant-radio-inner,:host ::ng-deep .ant-radio-inner,:host ::ng-deep .ant-slider-handle,:host ::ng-deep .ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open){border-color:var(--backgroundColor)}:host ::ng-deep .ant-radio-inner:after{background-color:var(--backgroundColor)}:host ::ng-deep .ant-radio,:host ::ng-deep .ant-radio-group,:host ::ng-deep .ant-radio-wrapper{color:inherit;font-size:inherit;line-height:inherit}"]}]}],exports.ɵbg.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("类型",{enum:[{label:"分数",value:"slider"},{label:"星级",value:"rate"},{label:"满意度",value:"radio"}],ui:{widget:"select"}}),__metadata("design:type",Object)],exports.ɵbg.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵbg.prototype,"radioColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbg.prototype,"font",void 0),exports.ɵbg=__decorate([bbjWidgetBase.Widget("评分",{group:"component",image:"assets/img/screen/rate.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbg);var RateModule=function(e){e.register(exports.ɵbg)};RateModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbg],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,rate.NzRateModule,forms.FormsModule,radio.NzRadioModule,slider.NzSliderModule]}]}],RateModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbi=function(){function e(e,t,o){this.renderer=e,this.cd=t,this.widgetRef=o,this.title="文本",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0},this.align="left",this.grid={top:0,right:0,bottom:0,left:0},this.data=[],this.dataChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){var t,o,i;if(this.style={backgroundColor:this.background,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.data&&this.data[0]&&this.data[0].color?this.data[0].color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",opacity:this.opacity,textShadow:this.shadow.X+"px "+this.shadow.Y+"px "+this.shadow.Z+"px "+this.shadow.color},this.grid){var a=this.grid,r=a.top,n=void 0===r?0:r,s=a.right,d=void 0===s?0:s,l=a.bottom,p=void 0===l?0:l,c=a.left,g=void 0===c?0:c;this.style.padding=n+"px "+d+"px "+p+"px "+g+"px"}var h=this.widgetRef.widget;((null===(t=h.link)||void 0===t?void 0:t.enabled)||(null===(o=h.outputs)||void 0===o?void 0:o.enabled))&&(this.style.cursor="pointer"),this.style.textAlign=this.align,e.data&&((null===(i=this.data)||void 0===i?void 0:i.length)&&this.data[0].value?this.dataChange.emit(this.data[0].value):this.dataChange.emit(null)),this.cd.markForCheck()},e.prototype.exportWord=function(){var e=this,t=this.title;if(null!=this.data&&null!=this.data[0]&&null!=this.data[0].value&&(t=this.data[0].value),t){t=t.replace(/\n/g,"<br/>").replace(/ /g," ");var o=document.createElement("p");return o.innerHTML=t,Object.keys(this.style).forEach((function(t){e.renderer.setStyle(o,t,e.style[t])})),o.outerHTML}return null},e}(),exports.ɵbi.decorators=[{type:i0.Component,args:[{selector:"sc-general-text",template:'<div\n *ngIf="data && data[0]"\n [ngStyle]="style"\n class="text"\n [innerHTML]="(data[0].value != null ? data[0].value : title) | nzSanitizer: \'html\'"\n></div>\n<div *ngIf="!data || !data[0]" [ngStyle]="style" class="text" [innerHTML]="title | nzSanitizer: \'html\'"></div>\n',changeDetection:i0.ChangeDetectionStrategy.OnPush,styles:[":host{width:100%;height:100%}.text{white-space:pre-wrap}"]}]}],exports.ɵbi.ctorParameters=function(){return[{type:i0.Renderer2},{type:i0.ChangeDetectorRef},{type:bbjWidgetBase.WidgetRef}]},__decorate([bbjWidgetBase.Property("内容",{ui:{widget:"textarea",autosize:{minRows:6,maxRows:6}}}),__metadata("design:type",Object)],exports.ɵbi.prototype,"title",void 0),__decorate([bbjWidgetBase.Property("背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",String)],exports.ɵbi.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbi.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbi.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵbi.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("文字对齐",{ui:{widget:"select"},enum:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"},{label:"居中",value:"center"}]}),__metadata("design:type",Object)],exports.ɵbi.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("内容边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵbi.prototype,"grid",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"string",title:"值"},color:{type:"string",title:"颜色"}}}),__metadata("design:type",Array)],exports.ɵbi.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput("值",{triggerLink:!1}),__metadata("design:type",Object)],exports.ɵbi.prototype,"dataChange",void 0),exports.ɵbi=__decorate([bbjWidgetBase.Widget("常规文本",{group:"generalText",icon:"iconwenzi"}),__metadata("design:paramtypes",[i0.Renderer2,i0.ChangeDetectorRef,bbjWidgetBase.WidgetRef])],exports.ɵbi);var GeneralTextModule=function(e){e.register(exports.ɵbi)};GeneralTextModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbi],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,pipes.NzPipesModule]}]}],GeneralTextModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbj=function(){function e(){this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0},this.direction="left",this.scrollamount=2,this.behavior="scroll",this.data=[{value:"跑马灯"}],this.display=!0}return e.prototype.ngOnInit=function(){this.style={backgroundColor:this.background,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",opacity:this.opacity,boxShadow:this.shadow.color+" "+this.shadow.X+"px "+this.shadow.Y+"px "+this.shadow.Z+"px"}},e.prototype.ngOnChanges=function(e){e.data&&this.reset()},e.prototype.reset=function(){var e=this;this.display=!1,setTimeout((function(){return e.display=!0}))},e}(),exports.ɵbj.decorators=[{type:i0.Component,args:[{selector:"sc-marquee",template:'<marquee *ngIf="display" [ngStyle]="style" [behavior]="behavior" [direction]="direction" align="middle" [attr.scrollamount]="scrollamount">\n <p *ngFor="let row of data" [innerHTML]="row?.value">\n \x3c!-- {{ row?.value }} --\x3e\n </p>\n</marquee>\n',styles:[":host{display:block;width:100%}:host,marquee{height:100%}"]}]}],exports.ɵbj.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",String)],exports.ɵbj.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("动画",{enum:[{label:"从下向上滚动",value:"up"},{label:"从上向下滚动",value:"down"},{label:"从左向右滚动",value:"right"},{label:"从右向左滚动",value:"left"}],ui:{widget:"select"}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"direction",void 0),__decorate([bbjWidgetBase.Property("速度",{ui:{widget:"myRange",min:0,max:20,step:1}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"scrollamount",void 0),__decorate([bbjWidgetBase.Property("轨迹",{enum:[{label:"循环绕行",value:"scroll"},{label:"播放一次",value:"slide"},{label:"来回往复运动",value:"alternate"}],ui:{widget:"select"}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"behavior",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"string",title:"值"}}}),__metadata("design:type",Array)],exports.ɵbj.prototype,"data",void 0),exports.ɵbj=__decorate([bbjWidgetBase.Widget("跑马灯",{group:"scrollText",icon:"iconwenzi"}),__metadata("design:paramtypes",[])],exports.ɵbj);var MarqueeModule=function(e){e.register(exports.ɵbj)};MarqueeModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbj],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],MarqueeModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbl=function(){function e(e){this.ele=e,this.title="艺术字",this.font={family:"",color:"#333333",weight:"normal",size:12,space:0,lineHeight:""},this.opacity=1,this.align="left",this.data=[]}return e.prototype.ngOnInit=function(){this.style={fontSize:this.ele.nativeElement.offsetHeight>(this.ele.nativeElement.offsetWidth-10)/this.title.length?(this.ele.nativeElement.offsetWidth-10)/this.title.length+"px":this.ele.nativeElement.offsetHeight-10+"px",lineHeight:this.ele.nativeElement.offsetHeight>this.ele.nativeElement.offsetWidth/this.title.length?(this.ele.nativeElement.offsetWidth-10)/this.title.length+"px":this.ele.nativeElement.offsetHeight-10+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",opacity:this.opacity},this.backgroundImage&&(this.style.backgroundImage=this.backgroundImage),this.ele.nativeElement.style.backgroundColor=this.background,this.ele.nativeElement.style.textAlign=this.align},e}(),exports.ɵbl.decorators=[{type:i0.Component,args:[{selector:"sc-wordart",template:'<div *ngIf="data && data[0]" [ngStyle]="style" class="text" [class.gradual]="this.backgroundImage">{{data[0].value != null? data[0].value:title}}</div>\n<div *ngIf="!data||!data[0]" [ngStyle]="style" class="text" [class.gradual]="this.backgroundImage">{{title}}</div>',styles:[".text{display:inline-block}.gradual{-webkit-background-clip:text;-webkit-text-fill-color:transparent}:host{display:inline-block;width:100%;height:100%}"]}]}],exports.ɵbl.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("内容"),__metadata("design:type",Object)],exports.ɵbl.prototype,"title",void 0),__decorate([bbjWidgetBase.Property("背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",String)],exports.ɵbl.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont",hideProperty:{size:!0,lineHeight:!0,space:!0}}}),__metadata("design:type",Object)],exports.ɵbl.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbl.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("渐变色",{ui:{hidden:!0}}),__metadata("design:type",String)],exports.ɵbl.prototype,"backgroundImage",void 0),__decorate([bbjWidgetBase.Property("文字对齐",{ui:{widget:"select"},enum:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"},{label:"居中",value:"center"}]}),__metadata("design:type",Object)],exports.ɵbl.prototype,"align",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"string",title:"值"}}}),__metadata("design:type",Array)],exports.ɵbl.prototype,"data",void 0),exports.ɵbl=__decorate([bbjWidgetBase.Widget("艺术字",{group:"wordart",icon:"iconwenzi"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbl);var WordartModule=function(e){e.register(exports.ɵbl)};WordartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbl],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],WordartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbn=function(){function e(e){this.element=e,this.type="iconfont",this.background="#3285FF"}return e.prototype.ngOnInit=function(){this.style={fontSize:this.element.nativeElement.offsetWidth>this.element.nativeElement.offsetHeight?this.element.nativeElement.offsetHeight+"px":this.element.nativeElement.offsetWidth+"px",lineHeight:this.element.nativeElement.offsetWidth>this.element.nativeElement.offsetHeight?this.element.nativeElement.offsetHeight+"px":this.element.nativeElement.offsetWidth+"px",color:this.background}},e}(),exports.ɵbn.decorators=[{type:i0.Component,args:[{selector:"sc-iconfont",template:'<span *ngIf="type === \'iconfont\'" [ngStyle]="style">\n <i nz-icon [nzIconfont]="icon"></i>\n</span>\n<i nz-icon *ngIf="type === \'nzIcon\'" [ngStyle]="style" [nzType]="icon" nzTheme="outline"></i>\n',styles:[":host{width:100%;height:100%;display:inline-block}"]}]}],exports.ɵbn.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("图标",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵbn.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图标名称",{ui:{hidden:!0}}),__metadata("design:type",String)],exports.ɵbn.prototype,"icon",void 0),__decorate([bbjWidgetBase.Property("图标颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵbn.prototype,"background",void 0),exports.ɵbn=__decorate([bbjWidgetBase.Widget("图标",{group:"iconfont",icon:"icontupian"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbn);var IconfontModule=function(e){e.register(exports.ɵbn)};IconfontModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbn],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,icon.NzIconModule]}]}],IconfontModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var FileUrlService=function(){function e(){}return e.prototype.getUrl=function(e){return e},e}();FileUrlService.ɵprov=i0.ɵɵdefineInjectable({factory:function(){return new FileUrlService},token:FileUrlService,providedIn:"root"}),FileUrlService.decorators=[{type:i0.Injectable,args:[{providedIn:"root"}]}],exports.ɵbp=function(){function e(e){this.fileUrlService=e,this.type="video",this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0}}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){this.style={opacity:this.opacity,boxShadow:this.shadow.color+" "+this.shadow.X+"px "+this.shadow.Y+"px "+this.shadow.Z+"px"},(e.type||e.videoType||e.src||e.data)&&this.reset()},e.prototype.reset=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){if(this._src=null,e=this.data&&this.data.length&&this.data[0].src?this.data[0].src:this.src,e=this.fileUrlService.getUrl(e),"auto"===this.type&&e&&e.includes("."))switch(e.substring(e.lastIndexOf(".")+1)){case"png":case"jpg":this._type="image";break;case"mp4":this._type="video";break;case"mp3":this._type="audio"}else this._type=this.type,"video"===this._type&&"flv"===this.videoType&&(this._type="flv");return this._src=e,[2]}))}))},e}(),exports.ɵbp.decorators=[{type:i0.Component,args:[{selector:"sc-audio",template:'<ng-container [ngSwitch]="_type">\n <img *ngSwitchCase="\'image\'" [src]="_src" />\n <audio *ngSwitchCase="\'audio\'" [src]="_src" controls="controls" [ngStyle]="style"></audio>\n <sc-video-player *ngSwitchCase="\'flv\'" [type]="\'flv\'" [src]="_src"></sc-video-player>\n <video #video *ngSwitchCase="\'video\'" [src]="_src" controls="controls" autoplay [ngStyle]="style"></video>\n</ng-container>\n',styles:[":host{display:block}:host,audio,img,video{height:100%;width:100%}"]}]}],exports.ɵbp.ctorParameters=function(){return[{type:FileUrlService}]},exports.ɵbp.propDecorators={video:[{type:i0.ViewChild,args:["video"]}]},__decorate([bbjWidgetBase.Property("",{min:1,type:"string",ui:{widget:"radio",spanLabel:0,spanControl:24},enum:[{value:"video",label:"视频"},{value:"audio",label:"音频"},{value:"auto",label:"自动"}]}),__metadata("design:type",Object)],exports.ɵbp.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("",{min:1,ui:{widget:"myUploadAudio",spanLabel:0,spanControl:24,list:[{name:"无",value:null},{name:"测试一号",value:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4"},{name:"测试二号",value:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180508102521.mp4"}]}}),__metadata("design:type",String)],exports.ɵbp.prototype,"src",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbp.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵbp.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Data({properties:{src:{title:"视频/音频地址",type:"string"}}}),__metadata("design:type",Array)],exports.ɵbp.prototype,"data",void 0),__decorate([bbjWidgetBase.Property("视频格式",{enum:[{label:"MP4",value:"mp4"},{label:"flv",value:"flv"}],ui:{visibleIf:{type:["video"]},widget:"select"}}),__metadata("design:type",String)],exports.ɵbp.prototype,"videoType",void 0),__decorate([bbjWidgetBase.Property("是否有声音",{ui:{visibleIf:{videoType:["flv"]}}}),__metadata("design:type",Boolean)],exports.ɵbp.prototype,"hasAudio",void 0),exports.ɵbp=__decorate([bbjWidgetBase.Widget("音频",{group:"audio",icon:"icontupian"}),__metadata("design:paramtypes",[FileUrlService])],exports.ɵbp);var VideoPlayerComponent=function(){function e(e,t){this.lazy=e,this.fileUrlService=t}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.reset(),this.initd=!0},e.prototype.ngOnChanges=function(e){this.initd&&(e.type||e.src)&&this.reset()},e.prototype.reset=function(){"hls"===this.type?this.resetHls():"iframe"===this.type?this.destroy():this.resetFlv()},e.prototype.loadHls=function(){return null==e.loadHlsPromise&&(e.loadHlsPromise=this.lazy.loadScript("/assets/js/hls.js")),e.loadHlsPromise},e.prototype.resetHls=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.loadHls()];case 1:return t.sent(),this.destroy(),this.src&&Hls.isSupported()&&!this.destroyed&&(e=this.fileUrlService.getUrl(this.src),this.hlsPlayer=new Hls,this.hlsPlayer.loadSource(e),this.hlsPlayer.attachMedia(this.video.nativeElement)),[2]}}))}))},e.prototype.resetFlv=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.loadFlv()];case 1:return t.sent(),this.destroy(),this.src&&!this.destroyed&&(e=this.fileUrlService.getUrl(this.src),this.flvPlayer=flvjs.createPlayer({type:"flv",url:e,hasAudio:!0===this.hasAudio,hasVideo:!0,isLive:!0,withCredentials:!1},{enableWorker:!1,lazyLoadMaxDuration:180,seekType:"range"}),this.flvPlayer.attachMediaElement(this.video.nativeElement),this.flvPlayer.load()),[2]}}))}))},e.prototype.loadFlv=function(){return null==e.loadFlvPromise&&(e.loadFlvPromise=this.lazy.loadScript("assets/js/flv.min.js")),e.loadFlvPromise},e.prototype.destroy=function(){this.flvPlayer&&(this.flvPlayer.unload(),this.flvPlayer.detachMediaElement(),this.flvPlayer.destroy(),this.flvPlayer=null),this.hlsPlayer&&(this.hlsPlayer.destroy(),this.hlsPlayer=null)},e.prototype.ngOnDestroy=function(){this.destroy(),this.destroyed=!0},e}();VideoPlayerComponent.decorators=[{type:i0.Component,args:[{selector:"sc-video-player",template:'<video *ngIf="type !== \'iframe\' || !src" class="video-js" #video controls autoplay></video>\r\n<iframe *ngIf="type === \'iframe\' && src" [src]="src | nzSanitizer: \'resourceUrl\'"></iframe>\r\n',styles:[":host{display:block}:host,iframe,video{height:100%;width:100%}iframe{border:none;pointer-events:none}"]}]}],VideoPlayerComponent.ctorParameters=function(){return[{type:util.LazyService},{type:FileUrlService}]},VideoPlayerComponent.propDecorators={type:[{type:i0.Input}],src:[{type:i0.Input}],hasAudio:[{type:i0.Input}],video:[{type:i0.ViewChild,args:["video",{static:!1}]}]};var VideoPlayerModule=function(){};VideoPlayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[VideoPlayerComponent],imports:[common.CommonModule,pipes.NzPipesModule],exports:[VideoPlayerComponent]}]}];var AudioModule=function(e){e.register(exports.ɵbp)};AudioModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbp],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,VideoPlayerModule]}]}],AudioModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$2={barColor:{gradient:!0,value:[["#FFEF66","#FF851D"]]}},ɵ1$2={barColor:{gradient:!0,value:[["#00FECB","#00D191"]]}},ɵ2$2={barColor:{gradient:!0,value:[["#00D2FD","#3285FF"]]}},ɵ3$2={barColor:{gradient:!0,value:[["#FF3699","#8934F8"]]}};exports.BasicBarChartComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.type="basic",t.barColor={gradient:!0,value:[["#00D2FD","#3285FF"]]},t.font={family:"",color:"#595F7A",weight:"normal",size:12,space:0,lineHeight:12},t.colors=["#058DC7","#50B432","#ED561B","#DDDF00","#24CBE5","#64E572","#FF9655","#FFF263","#6AF9C4"],t.grid={top:30,right:30,bottom:36,left:38},t.align="center",t.axisShow="true",t.scaleShow="true",t.yUnit="",t.xUnit="",t.netLine=!1,t.netLineColor="rgba(255,255,255,0.2)",t.labelDirection="none",t.barCategoryGap=40,t.xType="category",t.xLabelRotate=0,t.xLabelOverflow="auto",t.zoomOnMouseWheel=!0,t.showBackground=!0,t.markLine=!1,t.YmarkLineHeight=10,t.YmarkLineName="",t.YmarkLineType="dashed",t.YmarkLineColor="#f00",t.YmarkWidth=2,t.XmarkLineLocation="二月",t.XmarkLineName="",t.XmarkLineType="dashed",t.XmarkLineColor="#f00",t.XmarkWidth=2,t.chartOption={},t._data=[{x:"一月",y:10,s:"收入"},{x:"二月",y:20,s:"收入"},{x:"三月",y:25,s:"收入"},{x:"四月",y:35,s:"收入"},{x:"五月",y:27,s:"收入"},{x:"六月",y:28,s:"收入"},{x:"一月",y:18,s:"支出"},{x:"二月",y:28,s:"支出"},{x:"三月",y:32,s:"支出"},{x:"四月",y:48,s:"支出"},{x:"五月",y:20,s:"支出"},{x:"六月",y:17,s:"支出"}],t.dataClick=new i0.EventEmitter,t.xData=[],t.yData=[],t.color=[],t.legends=[],t}return __extends(t,e),t.prototype.ngOnChanges=function(e){if(e._data){var t=this.getMaxY();[].fill(t,0,this.xData.length);var o=this.getTextStyle(this.font);this.style=o;var i=this.horizontal,a=void 0;a=this.barColor&&this.barColor.value?this.barColor.value:this.barColor,this.color=a.map((function(e){return{type:"linear",x:0,y:0,x2:i?1:0,y2:i?0:1,global:!1,colorStops:[{offset:0,color:e[0]},{offset:1,color:e[1]}]}}));var r=this.getXAxis(),n=this.getYAxis(),s={top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom};if("dcolor"===this.type){var d=n,l=this.getYAxis();d.inverse=!0,(n=[d,l]).forEach((function(e,t){e.gridIndex=t,e.position="top"})),(r=[r,this.getXAxis()]).forEach((function(e,t){e.gridIndex=t})),s=[{right:"50%"},{left:"50%"}]}var p=this.getDataZoom();this.chartOption={dataZoom:p,tooltip:this.getTooltip(),legend:this.getLegend(),grid:s,xAxis:i?n:r,yAxis:i?r:n,color:this.color,series:[]},this.reloadData()}},t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"horizontal",{get:function(){return"hori"===this.type||"horiD"===this.type||"dcolor"===this.type},enumerable:!1,configurable:!0}),t.prototype.getXAxis=function(){var e="true"===this.scaleShow||"0"!==this.scaleShow&&"1"===this.scaleShow;return{nameTextStyle:this.style,type:this.xType||"category",name:this.xUnit,axisLine:{show:"true"===this.axisShow||"0"!==this.axisShow&&"1"===this.axisShow,lineStyle:{color:this.font.color}},axisTick:{show:e},axisLabel:Object.assign(Object.assign({},this.style),{show:e,rotate:this.xLabelRotate,width:this.xLabelWidth,overflow:this.xLabelOverflow,interval:this.xLabelInterval})}},t.prototype.getYAxis=function(){var e=this,t="true"===this.scaleShow||("0"===this.scaleShow||(this.scaleShow,!1));return{nameTextStyle:this.style,type:"value",name:this.yUnit,axisLine:{show:"true"===this.axisShow||("0"===this.axisShow||(this.axisShow,!1)),lineStyle:{color:this.font.color}},axisTick:{show:t},min:this.yMin,max:function(t){var o=Number(e.yMax?e.yMax:t.max);return Math.ceil(e.yMaxAddNum?o+Number(e.yMaxAddNum):o)},axisLabel:Object.assign(Object.assign({},this.style),{show:t}),splitLine:{show:this.netLine,lineStyle:{type:"dashed",color:this.netLineColor}},minInterval:this.yMinInterval}},t.prototype.setSeriesStyle=function(e,t){var o=this.style,i=this.chartOption.series.length,a={name:e,showBackground:this.showBackground,xAxisIndex:"dcolor"===this.type?i:0,yAxisIndex:"dcolor"===this.type?i:0,label:{normal:{show:"none"!==this.labelDirection,position:this.labelDirection||"",textStyle:o}},barCategoryGap:this.barCategoryGap+"%",itemStyle:{barBorderRadius:this.barBorderRadius},stack:"double"===this.type||"horiD"===this.type?"0":null,type:"bar",areaStyle:{opacity:0},emphasis:{focus:"double"===this.type||"horiD"===this.type?"series":null},encode:this.horizontal?{y:"x",x:"y"}:{x:"x",y:"y"},datasetIndex:t};return this.chartOption.series.push(a),a},t}(exports.ɵc),exports.BasicBarChartComponent.decorators=[{type:i0.Component,args:[{selector:"sc-basic-bar-chart",template:'<div\n echarts\n [options]="chartOption"\n style="height: 100%"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[":host{display:block;height:100%;width:100%}"]}]}],__decorate([bbjWidgetBase.Property("类型",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["barColor"],example:[{background:"assets/img/screen/bar1.png",data:ɵ0$2},{background:"assets/img/screen/bar2.png",data:ɵ1$2},{background:"assets/img/screen/bar3.png",data:ɵ2$2},{background:"assets/img/screen/bar4.png",data:ɵ3$2}]}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"barColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("单系多色"),__metadata("design:type",Boolean)],exports.BasicBarChartComponent.prototype,"colorSwitch",void 0),__decorate([bbjWidgetBase.Property("类别颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"],visibleIf:{colorSwitch:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"colors",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"居中",value:"center"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("轴隐藏",{ui:{widget:"select"},enum:[{label:"无",value:"true"},{label:"x轴",value:"0"},{label:"y轴",value:"1"},{label:"两轴",value:"false"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"axisShow",void 0),__decorate([bbjWidgetBase.Property("刻度隐藏",{ui:{widget:"select"},enum:[{label:"无",value:"true"},{label:"x轴",value:"0"},{label:"y轴",value:"1"},{label:"两轴",value:"false"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"scaleShow",void 0),__decorate([bbjWidgetBase.Property("y轴单位",{type:"string"}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"yUnit",void 0),__decorate([bbjWidgetBase.Property("x轴单位",{type:"string"}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"xUnit",void 0),__decorate([bbjWidgetBase.Property("y轴最小"),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"yMin",void 0),__decorate([bbjWidgetBase.Property("y轴最大"),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"yMax",void 0),__decorate([bbjWidgetBase.Property("y轴最小间隔"),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"yMinInterval",void 0),__decorate([bbjWidgetBase.Property("y轴最大增减"),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"yMaxAddNum",void 0),__decorate([bbjWidgetBase.Property("网络线",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"netLine",void 0),__decorate([bbjWidgetBase.Property("网络线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"netLineColor",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"居上",value:"top"},{label:"居中",value:"inside"},{label:"居右",value:"right"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"labelDirection",void 0),__decorate([bbjWidgetBase.Property("列间距",{ui:{widget:"myRange",min:0,max:100,step:10}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"barCategoryGap",void 0),__decorate([bbjWidgetBase.Property("圆角",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"barBorderRadius",void 0),__decorate([bbjWidgetBase.Property("x轴类型",{enum:[{label:"类目",value:"category"},{label:"时间",value:"time"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"xType",void 0),__decorate([bbjWidgetBase.Property("轴标签角度",{ui:{widget:"myRange",min:-90,max:90,step:10}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"xLabelRotate",void 0),__decorate([bbjWidgetBase.Property("x轴文本宽度"),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"xLabelWidth",void 0),__decorate([bbjWidgetBase.Property("x轴文字宽度超出",{enum:[{label:"自动",value:"auto"},{label:"截断",value:"truncate"},{label:"换行",value:"break"},{label:"强制换行",value:"breakAll"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"xLabelOverflow",void 0),__decorate([bbjWidgetBase.Property("标签显示间隔",{ui:{optionalHelp:{text:"默认会采用标签不重叠的策略间隔显示标签。\n可以设置成 0 强制显示所有标签。 \n如果设置为 1,表示『隔一个标签显示一个标签』,如果值为 2,表示隔两个标签显示一个标签,以此类推。",overlayStyle:{whiteSpace:"pre-line"}}}}),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"xLabelInterval",void 0),__decorate([bbjWidgetBase.Property("区域缩放"),__metadata("design:type",Boolean)],exports.BasicBarChartComponent.prototype,"insideDataZoom",void 0),__decorate([bbjWidgetBase.Property("缩放最少数量",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"dataZoomMinData",void 0),__decorate([bbjWidgetBase.Property("缩放开始百分比",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"dataZoomStart",void 0),__decorate([bbjWidgetBase.Property("缩放结束百分比",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"dataZoomEnd",void 0),__decorate([bbjWidgetBase.Property("滚轮缩放",{enum:[{label:"启用",value:!0},{label:"禁用",value:!1},{label:"按住shift",value:"shift"},{label:"按住ctrl",value:"ctrl"},{label:"按住alt",value:"alt"}],ui:{widget:"select",visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"zoomOnMouseWheel",void 0),__decorate([bbjWidgetBase.Property("滑动条",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Boolean)],exports.BasicBarChartComponent.prototype,"sliderDataZoom",void 0),__decorate([bbjWidgetBase.Property("锁定区域大小",{ui:{visibleIf:{sliderDataZoom:[!0]}}}),__metadata("design:type",Boolean)],exports.BasicBarChartComponent.prototype,"zoomLock",void 0),__decorate([bbjWidgetBase.Property("提示框字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"tooltipFont",void 0),__decorate([bbjWidgetBase.Property("显示柱条背景",{type:"boolean"}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"showBackground",void 0),__decorate([bbjWidgetBase.Property("标线",{type:"boolean"}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"markLine",void 0),__decorate([bbjWidgetBase.Property("Y轴标线高度",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"YmarkLineHeight",void 0),__decorate([bbjWidgetBase.Property("Y标线标题",{type:"string",ui:{visibleIf:{markLine:[!0]},optionalHelp:"此标题需要跟x字段内名字一致"}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"YmarkLineName",void 0),__decorate([bbjWidgetBase.Property("Y标线类型",{ui:{widget:"select",visibleIf:{markLine:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"YmarkLineType",void 0),__decorate([bbjWidgetBase.Property("Y标线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"],visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"YmarkLineColor",void 0),__decorate([bbjWidgetBase.Property("Y标线粗细",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"YmarkWidth",void 0),__decorate([bbjWidgetBase.Property("X轴标线位置",{type:"string",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"XmarkLineLocation",void 0),__decorate([bbjWidgetBase.Property("X标线标题",{type:"string",ui:{optionalHelp:"此标题需要跟x字段内名字一致",visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"XmarkLineName",void 0),__decorate([bbjWidgetBase.Property("X标线类型",{ui:{widget:"select",visibleIf:{markLine:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"XmarkLineType",void 0),__decorate([bbjWidgetBase.Property("X标线颜色",{ui:{visibleIf:{markLine:[!0]},widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"XmarkLineColor",void 0),__decorate([bbjWidgetBase.Property("X标线粗细",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"XmarkWidth",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"},s:{type:"string",title:"系列"}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","s"]),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"dataClick",void 0),exports.BasicBarChartComponent=__decorate([bbjWidgetBase.Widget("基本柱状图",{group:"barChart",image:"assets/img/screen/baseBar.png",icon:"icontubiao"})],exports.BasicBarChartComponent);var BasicBarChartModule=function(e){this.widgetService=e,e.register(exports.BasicBarChartComponent)};BasicBarChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.BasicBarChartComponent],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],BasicBarChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$3={pieColor:{gradient:!0,value:[["#FFB82E","#FFB82E"],["#FF7C24","#FF7C24"],["#FF610F","#FF610F"],["#EE2100","#EE2100"],["#A52501","#A52501"],["#7B2C04","#7B2C04"]]}},ɵ1$3={pieColor:{gradient:!0,value:[["#00FEC3","#00FEC3"],["#00F4A8","#00F4A8"],["#00D59B","#00D59B"],["#00B880","#00B880"],["#00896E","#00896E"],["#006A60","#006A60"]]}},ɵ2$3={pieColor:{gradient:!0,value:[["#45C1FC","#45C1FC"],["#00A1FB","#00A1FB"],["#0076B7","#0076B7"],["#004D7E","#004D7E"],["#003560","#003560"],["#001736","#001736"]]}},ɵ3$3={pieColor:{gradient:!0,value:[["#BF91FA","#BF91FA"],["#9B35F8","#9B35F8"],["#9813D9","#9813D9"],["#790588","#790588"],["#B30B9A","#B30B9A"],["#DC1098","#DC1098"]]}};exports.ɵd=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.type="basic",t.pieColor={gradient:!0,value:[["#45C1FC","#45C1FC"],["#00A1FB","#00A1FB"],["#0076B7","#0076B7"],["#004D7E","#004D7E"],["#003560","#003560"],["#001736","#001736"]]},t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:""},t.align="none",t.legentData="data",t.lineMark=!1,t.buoy=!1,t.radius=1,t.grid={top:50,left:50},t.roundWidth=15,t.addSplit=!1,t.seriesDataPie=[],t.xData=[],t.radiusPie=["0%","75%"],t.chartOption={},t.roseType="false",t._data=[{x:"一月",y:33},{x:"二月",y:31},{x:"三月",y:11},{x:"四月",y:11},{x:"五月",y:7},{x:"六月",y:20}],t.dataClick=new i0.EventEmitter,t.splitWidth=0,t.splitItem={value:t.splitWidth,name:"split",itemStyle:{normal:{label:{show:!1},labelLine:{show:!1},color:"rgba(0, 0, 0, 0)",borderColor:"rgba(0, 0, 0, 0)",borderWidth:0}}},t}return __extends(t,e),t.prototype.ngOnChanges=function(e){var t=this;if(e._data){if(null==this._data&&(this._data=[]),this.getPieData(),this.addSplit){var o=this._data.reduce((function(e,t){return e+Number(t.y)}),0)/100;this.splitItem.value=o}if("ring"===this.type||"roseRing"===this.type){var i=75-(Math.abs(Number(this.roundWidth))||75);this.radiusPie=[i+"%","75%"]}else this.radiusPie=["0%","75%"];null!=this.radius&&(this.radiusPie[0]=parseInt(this.radiusPie[0],10)*this.radius+"%",this.radiusPie[1]=parseInt(this.radiusPie[1],10)*this.radius+"%"),"rose"!==this.type&&"roseRing"!==this.type||(this.roseType="radius");var a=this.array2obj(this.seriesDataPie,"name"),r=[],n={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},s=void 0;s=this.pieColor&&this.pieColor.value?this.pieColor.value:this.pieColor;for(var d=0;d<s.length;d++)r.push(s[d][0]);this.chartOption={tooltip:{show:this.buoy,textStyle:{fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},trigger:"item",formatter:function(e){return"split"===e.name?"":e.name+": "+t.addUnit(e.value)+"("+e.percent+"%)"}},legend:{type:"scroll",orient:"vertical",data:this.xData,x:this.align,show:"none"!==this.align,textStyle:n},color:r,series:[{name:"pie",type:"pie",roseType:"radius"===this.roseType&&"radius",label:{normal:{show:this.lineMark,formatter:function(e){return"split"===e.name?"":t.addUnit(e.value)},textStyle:n}},center:[this.grid.left+"%",this.grid.top+"%"],radius:this.radiusPie,labelLine:{normal:{show:this.lineMark}},textStyle:n,data:[]}]},this.reloadData(),"percent"===this.legentData&&(this.chartOption.legend.formatter=function(e){var t,o,i=0;Object.keys(a).forEach((function(e){var t,o;try{for(var r=__values(a[e]),n=r.next();!n.done;n=r.next()){var s=n.value;i+=parseInt(s.value,10)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(t)throw t.error}}}));var r=0;try{for(var n=__values(a[e]),s=n.next();!s.done;s=n.next()){var d=s.value;r+=Number(d.value)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}return e+"("+(r/i*100).toFixed(0)+"%)"}),"both"===this.legentData&&(this.chartOption.legend.formatter=function(e){var o,i,r=0;Object.keys(a).forEach((function(e){var t,o;try{for(var i=__values(a[e]),n=i.next();!n.done;n=i.next()){var s=n.value;r+=parseInt(s.value,10)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(t)throw t.error}}}));var n=0;try{for(var s=__values(a[e]),d=s.next();!d.done;d=s.next()){var l=d.value;n+=Number(l.value)}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}var p=(n/r*100).toFixed(0);return e+"("+t.addUnit(n)+"-"+p+"%)"}),"data"===this.legentData&&(this.chartOption.legend.formatter=function(e){var o,i,r=0;try{for(var n=__values(a[e]),s=n.next();!s.done;s=n.next()){var d=s.value;r+=Number(d.value)}}catch(e){o={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(o)throw o.error}}return e+"("+t.addUnit(r)+")"})}},t.prototype.addUnit=function(e){return this.unit&&null!=e&&""!==e&&(e+=this.unit),e},t.prototype.reloadData=function(){var e=this,t=[],o=this.addSplit&&this._data.filter((function(e){return e.y})).length>1;this._data.forEach((function(i){var a=i.x,r=i.y,n={name:a,value:Number(r)};t.push(n),o&&t.push(e.splitItem)})),this.chartOption.series[0].data=t,this._data.forEach((function(t){var o={name:t.x};e.xData.push(o)})),this.uniqueData(this.xData)},t.prototype.ngOnInit=function(){},t.prototype.getPieData=function(){this.seriesDataPie=[];this.addSplit&&this._data.forEach((function(e){e.y}));for(var e=0;e<this._data.length;e++)this.seriesDataPie.push({value:this._data[e].y,name:this._data[e].x})},t.prototype.array2obj=function(e,t){for(var o={},i=0;i<e.length;i++)o[e[i][t]]||(o[e[i][t]]=[]),o[e[i][t]].push(e[i]);return o},t.prototype.getLegentData=function(e){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵd.decorators=[{type:i0.Component,args:[{selector:"sc-basic-pie-chart",template:'<div\r\n echarts\r\n [options]="chartOption"\r\n class="demo-chart"\r\n (chartClick)="onChartClick($event)"\r\n [initOpts]="{ renderer: \'svg\' }"\r\n></div>\r\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("类型",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵd.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["pieColor"],class:"pie",example:[{background:"assets/img/screen/pie1.png",data:ɵ0$3},{background:"assets/img/screen/pie2.png",data:ɵ1$3},{background:"assets/img/screen/pie3.png",data:ɵ2$3},{background:"assets/img/screen/pie4.png",data:ɵ3$3}]}}),__metadata("design:type",Object)],exports.ɵd.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵd.prototype,"pieColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵd.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"纵向居中",value:"center"},{label:"纵向居左",value:"left"},{label:"纵向居右",value:"right"}]}),__metadata("design:type",Object)],exports.ɵd.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("图例呈现",{ui:{widget:"select"},enum:[{label:"数据",value:"data"},{label:"百分比",value:"percent"},{label:"数据-百分比",value:"both"}]}),__metadata("design:type",Object)],exports.ɵd.prototype,"legentData",void 0),__decorate([bbjWidgetBase.Property("线标",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵd.prototype,"lineMark",void 0),__decorate([bbjWidgetBase.Property("浮标",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵd.prototype,"buoy",void 0),__decorate([bbjWidgetBase.Property("缩放",{type:"number"}),__metadata("design:type",Object)],exports.ɵd.prototype,"radius",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid",type:"pie"}}),__metadata("design:type",Object)],exports.ɵd.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("环宽",{type:"number"}),__metadata("design:type",Object)],exports.ɵd.prototype,"roundWidth",void 0),__decorate([bbjWidgetBase.Property("增加隔断",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵd.prototype,"addSplit",void 0),__decorate([bbjWidgetBase.Property("单位"),__metadata("design:type",String)],exports.ɵd.prototype,"unit",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵd.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x"]),__metadata("design:type",Object)],exports.ɵd.prototype,"dataClick",void 0),exports.ɵd=__decorate([bbjWidgetBase.Widget("饼图",{group:"pieChart",image:"assets/img/screen/pie.png",icon:"icontubiao"})],exports.ɵd);var BasicPieChartModule=function(e){e.register(exports.ɵd)};BasicPieChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵd],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],BasicPieChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$4={barColor:["#FAA736"]},ɵ1$4={barColor:["#00D190"]},ɵ2$4={barColor:["#3285FF"]},ɵ3$4={barColor:["#8934F8"]};exports.ɵg=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.type="basic",t.barColor=["#3285FF","#00D2FD"],t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},t.grid={top:0,right:0,bottom:0,left:0},t.yUnit="",t.xUnit="",t.netLine=!1,t.label=!1,t.autoRotate=!1,t.boxWidth=200,t.boxDepth=20,t._data=[{x:"一月",y:10,s:"收入"},{x:"二月",y:20,s:"收入"},{x:"三月",y:25,s:"收入"},{x:"四月",y:35,s:"收入"},{x:"五月",y:27,s:"收入"},{x:"六月",y:28,s:"收入"},{x:"一月",y:18,s:"支出"},{x:"二月",y:28,s:"支出"},{x:"三月",y:32,s:"支出"},{x:"四月",y:48,s:"支出"},{x:"五月",y:20,s:"支出"},{x:"六月",y:17,s:"支出"}],t.dataClick=new i0.EventEmitter,t.sData=[],t.series=[],t}return __extends(t,e),t.prototype.ngOnChanges=function(e){var t=this;if(e._data){this.reloadData();var o={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,margin:this.font.lineHeight};this.chartOption={xAxis3D:{name:this.xUnit,nameTextStyle:o,type:"category",splitLine:{show:!1},data:this.xData},yAxis3D:{name:"",type:"category",data:[]},zAxis3D:{name:this.yUnit,nameTextStyle:o,type:"value",splitLine:{show:this.netLine,lineStyle:{width:1}}},grid3D:{top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom,boxWidth:this.boxWidth,boxDepth:this.boxDepth,axisTick:{show:!1},axisLine:{lineStyle:{color:this.font.color,width:1}},axisLabel:{textStyle:o},viewControl:{alpha:10,beta:0,autoRotate:this.autoRotate,zoomSensitivity:0,autoRotateAfterStill:15,distance:250}},color:["#45C1FC","#00A1FB","#0076B7","#004D7E","#003560","#001736"],series:[]},"3D"===this.type&&(this.series=[this.series[0]]);for(var i=function(e){a.chartOption.series.push({type:"bar3D",itemStyle:{},data:[],shading:"lambert",stack:"stack",label:{show:a.label,textStyle:o},emphasis:{label:{textStyle:{fontSize:a.font.size,color:a.font.color,fontWeight:a.font.weight,fontFamily:a.font.family,lineHeight:a.font.lineHeight,borderWidth:0,borderColor:"#00000000"}}}}),a.chartOption.series[e].itemStyle.color=a.barColor[e];var i=[];a._data.forEach((function(o){t.series[e]===o.s&&i.push(o)})),a.xData.forEach((function(o){var a=0;i.forEach((function(e){e.x===o&&a++})),0===a&&t._data.push({x:o,y:0,s:t.series[e]})})),a._data.sort((function(e,o){return t.xData.indexOf(e.x)-t.xData.indexOf(o.x)})),a._data.filter((function(o){return o.s===t.series[e]})).forEach((function(o){for(var i=0;i<t.xData.length;i++)t.xData[i]===o.x&&t.chartOption.series[e].data.push([i,0,o.y])}))},a=this,r=0;r<this.series.length;r++)i(r)}},t.prototype.reloadData=function(){if(this._data[0]){for(var e=0;e<this._data.length;e++)this._data[e].s&&(this.series[e]=this._data[e].s);this.uniqueData(this.series)}for(e=0;e<this._data.length;e++)this.xData[e]=this._data[e].x;this.uniqueData(this.xData)},t.prototype.ngOnInit=function(){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵg.decorators=[{type:i0.Component,args:[{selector:"sc-bar-chart-three-d",template:'<div *ngIf="chartOption" echarts [options]="chartOption" class="demo-chart" (chartClick)="onChartClick($event)"></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("类型",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵg.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["barColor"],example:[{background:"assets/img/screen/3d1.png",data:ɵ0$4},{background:"assets/img/screen/3d2.png",data:ɵ1$4},{background:"assets/img/screen/3d3.png",data:ɵ2$4},{background:"assets/img/screen/3d4.png",data:ɵ3$4}]}}),__metadata("design:type",Object)],exports.ɵg.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵg.prototype,"barColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵg.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵg.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("y轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵg.prototype,"yUnit",void 0),__decorate([bbjWidgetBase.Property("x轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵg.prototype,"xUnit",void 0),__decorate([bbjWidgetBase.Property("y轴最大"),__metadata("design:type",Number)],exports.ɵg.prototype,"yMax",void 0),__decorate([bbjWidgetBase.Property("网络线",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵg.prototype,"netLine",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵg.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("自动旋转",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵg.prototype,"autoRotate",void 0),__decorate([bbjWidgetBase.Property("柱子宽度",{ui:{widget:"myRange",min:100,max:1e3,step:100}}),__metadata("design:type",Object)],exports.ɵg.prototype,"boxWidth",void 0),__decorate([bbjWidgetBase.Property("柱子深度",{ui:{widget:"myRange",min:10,max:100,step:10}}),__metadata("design:type",Object)],exports.ɵg.prototype,"boxDepth",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"},z:{type:"string",title:"系列"}}}),__metadata("design:type",Object)],exports.ɵg.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","z"]),__metadata("design:type",Object)],exports.ɵg.prototype,"dataClick",void 0),exports.ɵg=__decorate([bbjWidgetBase.Widget("3D柱状图",{group:"barChart",image:"assets/img/screen/basic-bar-chart.png",icon:"icontubiao"})],exports.ɵg);var BarChartThreeDModule=function(e){e.register(exports.ɵg)};BarChartThreeDModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵg],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],BarChartThreeDModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbs=function(){function e(e,t,o,i,a){this.elementRef=e,this.resizeObserver=t,this.zone=o,this.cd=i,this.widgetRef=a,this.background=null,this.borderColor="#3285ff",this.borderWidth=1,this.fillet=0,this.side=3,this.sr=38,this.upper=60,this.bottom=100,this.deviation=0,this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0},this.type="rect",this.destroy$=new rxjs.Subject}return e.prototype.ngOnInit=function(){var e=this;this.reset(),this.resizeObserver.observe(this.elementRef).pipe(operators.takeUntil(this.destroy$)).subscribe((function(){e.zone.run((function(){e.reset()}))}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.reset=function(){var e=this,t=this.elementRef.nativeElement,o=t.clientWidth,i=t.clientHeight;switch(this.width=o,this.height=i,this.style={opacity:this.opacity,stroke:this.borderColor,strokeWidth:this.borderWidth,fill:this.background?this.background:"rgba(0,0,0,0)"},this.shadow&&(this.shadow.X||this.shadow.Y||this.shadow.Z)&&(this.filterId=this.widgetRef.widget.id,this.filterUrl="url(#"+this.filterId+")"),this.type){case"rect":this.style.rx=this.style.ry=this.fillet;break;case"triangle":this.points=o/2+o*this.deviation/200+",0 "+o+","+i+" 0,"+i;break;case"parallelogram":var a=o*this.deviation/100;this.deviation>=0?this.points=a+",0 "+o+",0 "+(o-a)+","+i+" 0,"+i:this.points="0,0 "+(o+a)+",0 "+o+","+i+" "+-a+","+i;break;case"trapezoid":var r=this.upper*o/100,n=this.bottom*o/100,s=(o-r)/2*(1+this.deviation/100),d=(o-n)/2*(1-this.deviation/100);this.points=s+",0 "+(s+r)+",0 "+(d+n)+","+i+" "+d+","+i;break;case"polyline":case"polygon":var l,p,c,g;this.points="",this.data.forEach((function(e){var t=e.x,o=e.y;(t<l||null==l)&&(l=t),(t>p||null==p)&&(p=t),(o<c||null==c)&&(c=o),(o>g||null==g)&&(g=o)}));var h=o/(p-l),u=i/(g-c);this.data.forEach((function(t){var o=t.x,i=t.y;e.points+=(o-l)*h+","+(i-c)*u+" "}));break;case"polygonplus":var y=o/2,m=i/2;this.points="";for(var b=0;b<this.side;b++)this.points+=this.getEllipsePoint(b,this.side,y,m,y,m);break;case"polyhedrosis":this.points="";var f=o/2,_=i/2,v=f*this.sr/100,x=_*this.sr/100;for(b=0;b<this.side;b++)this.points+=this.getEllipsePoint(b,this.side,f,_,f,_),this.points+=this.getEllipsePoint(b+.5,this.side,f,_,v,x);break;case"path":this.points="";for(b=0;b<this.data.length;b++)this.points+="L"+this.data[b].x+" "+this.data[b].y+" ";this.points="M"+this.points.substring(1)+"Z"}this.cd.markForCheck()},e.prototype.getEllipsePoint=function(e,t,o,i,a,r){var n=(2*e/t+.5)*Math.PI;return o+Math.cos(n)*a+","+(i-Math.sin(n)*r)+" "},e}(),exports.ɵbs.decorators=[{type:i0.Component,args:[{selector:"sc-shape",template:'<svg width="100%" height="100%" [ngSwitch]="type">\n <defs *ngIf="filterId">\n <filter [id]="filterId" x="-100%" y="-100%" width="300%" height="300%" filterUnits="userSpaceOnUse">\n <feOffset result="offOut" in="SourceGraphic" [attr.dx]="shadow.X" [attr.dy]="shadow.Y" />\n <feGaussianBlur result="blurOut" in="offOut" [attr.stdDeviation]="shadow.Z" />\n <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />\n </filter>\n </defs>\n <rect\n *ngSwitchCase="\'rect\'"\n x="0"\n y="0"\n [attr.width]="width"\n [attr.height]="height"\n [ngStyle]="style"\n [attr.filter]="filterUrl"\n ></rect>\n <ellipse\n *ngSwitchCase="\'circle\'"\n [attr.cx]="width / 2"\n [attr.cy]="height / 2"\n [attr.rx]="width / 2"\n [attr.ry]="height / 2"\n [ngStyle]="style"\n [attr.filter]="filterUrl"\n />\n <line\n *ngSwitchCase="\'line\'"\n x1="0"\n [attr.y1]="height / 2"\n [attr.x2]="width"\n [attr.y2]="height / 2"\n [ngStyle]="style"\n [attr.filter]="filterUrl"\n />\n \x3c!-- <path *ngSwitchCase="\'path\'" [attr.d]="data.d" [ngStyle]="style" [attr.filter]="filterUrl" /> --\x3e\n <polyline *ngSwitchCase="\'polyline\'" [attr.points]="points" [ngStyle]="style" [attr.filter]="filterUrl" />\n <polygon *ngSwitchDefault [attr.points]="points" [ngStyle]="style" [attr.filter]="filterUrl" />\n</svg>\n',changeDetection:i0.ChangeDetectionStrategy.OnPush,styles:[":host{width:100%;height:100%;display:block}svg{overflow:visible}"]}]}],exports.ɵbs.ctorParameters=function(){return[{type:i0.ElementRef},{type:resizeObservers.NzResizeObserver},{type:i0.NgZone},{type:i0.ChangeDetectorRef},{type:bbjWidgetBase.WidgetRef}]},__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",visibleIf:{type:["rect","polygonplus","polyhedrosis","circle","path","polygon","parallelogram","trapezoid"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("线条颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("线条粗细",{type:"number"}),__metadata("design:type",Object)],exports.ɵbs.prototype,"borderWidth",void 0),__decorate([bbjWidgetBase.Property("圆角",{type:"number",ui:{widget:"myRange",min:0,max:100,step:1,visibleIf:{type:["rect"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"fillet",void 0),__decorate([bbjWidgetBase.Property("几边形",{type:"number",ui:{widget:"myRange",min:3,max:100,step:1,visibleIf:{type:["polygonplus","polyhedrosis"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"side",void 0),__decorate([bbjWidgetBase.Property("内半径",{ui:{widget:"myRange",min:1,max:99,step:1,visibleIf:{type:["polyhedrosis"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"sr",void 0),__decorate([bbjWidgetBase.Property("上底",{ui:{widget:"myRange",min:1,max:100,step:1,visibleIf:{type:["trapezoid"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"upper",void 0),__decorate([bbjWidgetBase.Property("下底",{ui:{widget:"myRange",min:1,max:100,step:1,visibleIf:{type:["trapezoid"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"bottom",void 0),__decorate([bbjWidgetBase.Property("偏移",{ui:{widget:"myRange",min:-100,max:100,step:1,visibleIf:{type:["parallelogram","trapezoid","triangle"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"deviation",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("",{type:"string",ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("数据",{ui:{hidden:!0}}),__metadata("design:type",Array)],exports.ɵbs.prototype,"data",void 0),exports.ɵbs=__decorate([bbjWidgetBase.Widget("图形",{group:"shape",icon:"iconxingzhuang"}),__metadata("design:paramtypes",[i0.ElementRef,resizeObservers.NzResizeObserver,i0.NgZone,i0.ChangeDetectorRef,bbjWidgetBase.WidgetRef])],exports.ɵbs);var ShapeModule=function(e){e.register(exports.ɵbs)};ShapeModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbs],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],ShapeModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$5={barColor:{gradient:!0,value:[["#FFEF66","#FF851D"]]}},ɵ1$5={barColor:{gradient:!0,value:[["#00FECB","#00D191"]]}},ɵ2$5={barColor:{gradient:!0,value:[["#00D2FD","#3285FF"]]}},ɵ3$5={barColor:{gradient:!0,value:[["#FF3699","#8934F8"]]}};exports.ɵf=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.type="line",t.barColor={gradient:!0,value:[["#00D2FD","#3285FF"]]},t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},t.grid={top:30,right:30,bottom:30,left:30},t.align="none",t.yUnit="",t.xUnit="",t.showY1=!1,t.netLine=!1,t.label=!1,t.barCategoryGap=40,t.barBorderRadius=0,t.xLabelRotate=0,t.chartOption={},t._data=[{x:"一月",y:2,s:"蒸发量"},{x:"二月",y:4.9,s:"蒸发量"},{x:"三月",y:7,s:"蒸发量"},{x:"四月",y:35.6,s:"蒸发量"},{x:"五月",y:73.4,s:"蒸发量"},{x:"六月",y:123.4,s:"蒸发量"},{x:"一月",y:2.6,s:"降水量"},{x:"二月",y:5.9,s:"降水量"},{x:"三月",y:9,s:"降水量"},{x:"四月",y:25.7,s:"降水量"},{x:"五月",y:43.5,s:"降水量"},{x:"六月",y:78.9,s:"降水量"},{x:"一月",y:2,s:"温度"},{x:"二月",y:2.2,s:"温度"},{x:"三月",y:3.3,s:"温度"},{x:"四月",y:4.5,s:"温度"},{x:"五月",y:6.3,s:"温度"},{x:"六月",y:10.2,s:"温度"}],t.dataClick=new i0.EventEmitter,t.xData=[],t.series=[],t.yData=[],t}return __extends(t,e),t.prototype.ngOnChanges=function(e){if(e._data){for(var t=[],o=this.getMaxY(),i=0;i<this.xData.length;i++)t.push(o);this.style={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};var a=[],r=void 0;r=this.barColor&&this.barColor.value?this.barColor.value:this.barColor;for(i=0;i<r.length;i++)a.push({type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:r[i][0]},{offset:1,color:r[i][1]}]});var n={type:"category",name:this.xUnit,nameTextStyle:this.style,axisLine:{show:!0,lineStyle:{color:this.style.color}},axisTick:{show:!0},axisLabel:{rotate:this.xLabelRotate,show:!0,color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,margin:this.font.lineHeight}},s={type:"value",name:this.yUnit,nameTextStyle:this.style,axisLine:{lineStyle:{color:this.style.color}},max:this.yMax?void 0:this.yMax,axisLabel:this.style,splitLine:{show:this.netLine,lineStyle:{type:"dashed"}}},d={top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom};this.showY1&&(s=[{type:"value",name:this.yUnit,nameTextStyle:this.style,axisLine:{lineStyle:{color:this.style.color}},max:this.yMax?void 0:this.yMax,axisLabel:this.style,splitLine:{show:this.netLine,lineStyle:{type:"dashed"}}},{type:"value",name:this.yUnit,nameTextStyle:this.style,axisLine:{lineStyle:{color:this.style.color}},max:this.yMax?void 0:this.yMax,axisLabel:this.style,splitLine:{show:!1}}]),this.chartOption={legend:{data:this.series,align:this.align,icon:"stack",show:"none"!==this.align,textStyle:this.style},grid:d,xAxis:n,yAxis:s,color:a,series:[]},this.reloadData()}},t.prototype.setSeriesStyle=function(e,t){var o=1===t,i={name:e,showBackground:!0,label:{show:this.label,position:"top",textStyle:this.style},itemStyle:{normal:{barBorderRadius:this.barBorderRadius}},connectNulls:!0,barCategoryGap:this.barCategoryGap+"%",type:o?"bar":"line",yAxisIndex:this.showY1&&!o?1:0,areaStyle:{opacity:0},encode:{x:"x",y:"y"},datasetIndex:t};return this.chartOption.series.push(i),i},t.prototype.ngOnInit=function(){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵf.decorators=[{type:i0.Component,args:[{selector:"sc-line-bar-chart",template:'<div\n echarts\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[".demo-chart{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("类型",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵf.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["barColor"],example:[{background:"assets/img/screen/bar1.png",data:ɵ0$5},{background:"assets/img/screen/bar2.png",data:ɵ1$5},{background:"assets/img/screen/bar3.png",data:ɵ2$5},{background:"assets/img/screen/bar4.png",data:ɵ3$5}]}}),__metadata("design:type",Object)],exports.ɵf.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵf.prototype,"barColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵf.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵf.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵf.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("y轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵf.prototype,"yUnit",void 0),__decorate([bbjWidgetBase.Property("x轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵf.prototype,"xUnit",void 0),__decorate([bbjWidgetBase.Property("y轴最大"),__metadata("design:type",Number)],exports.ɵf.prototype,"yMax",void 0),__decorate([bbjWidgetBase.Property("y轴最大",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵf.prototype,"showY1",void 0),__decorate([bbjWidgetBase.Property("网络线",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵf.prototype,"netLine",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵf.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("列间距",{ui:{widget:"myRange",min:0,max:100,step:10}}),__metadata("design:type",Object)],exports.ɵf.prototype,"barCategoryGap",void 0),__decorate([bbjWidgetBase.Property("圆角",{ui:{widget:"myRange",min:0,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵf.prototype,"barBorderRadius",void 0),__decorate([bbjWidgetBase.Property("轴标签角度",{ui:{widget:"myRange",min:-90,max:90,step:10}}),__metadata("design:type",Object)],exports.ɵf.prototype,"xLabelRotate",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"},s:{type:"string",title:"系列"}}}),__metadata("design:type",Array)],exports.ɵf.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","s"]),__metadata("design:type",Object)],exports.ɵf.prototype,"dataClick",void 0),exports.ɵf=__decorate([bbjWidgetBase.Widget("折线柱图",{group:"barChart",image:"assets/img/screen/lineBar.png",icon:"icontubiao"})],exports.ɵf);var LineBarChartModule=function(e){e.register(exports.ɵf)};LineBarChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵf],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],LineBarChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$6={bubbleColor:{gradient:!0,value:[["#FFEF66","#FF851D"]]}},ɵ1$6={bubbleColor:{gradient:!0,value:[["#00FECB","#00D191"]]}},ɵ2$6={bubbleColor:{gradient:!0,value:[["#00D2FD","#3285FF"]]}},ɵ3$6={bubbleColor:{gradient:!0,value:[["#FF3699","#8934F8"]]}};exports.ɵh=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.bubbleColor={gradient:!0,value:[["#00D2FD","#3285FF"]]},t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},t.grid={top:30,right:30,bottom:34,left:36},t.align="auto",t.yUnit="",t.xUnit="",t.netLine=!1,t.label=!1,t.xLabelRotate=0,t.chartOption={},t._data=[{x:"一月",y:10,v:32,s:"收入"},{x:"二月",y:20,v:13,s:"收入"},{x:"三月",y:25,v:87,s:"收入"},{x:"四月",y:35,v:45,s:"收入"},{x:"五月",y:27,v:18,s:"收入"},{x:"六月",y:28,v:95,s:"收入"},{x:"一月",y:18,v:59,s:"支出"},{x:"二月",y:28,v:32,s:"支出"},{x:"三月",y:32,v:75,s:"支出"},{x:"四月",y:48,v:17,s:"支出"},{x:"五月",y:20,v:43,s:"支出"},{x:"六月",y:17,v:94,s:"支出"}],t.dataClick=new i0.EventEmitter,t.style={color:"",fontFamily:"",fontWeight:"",fontSize:"",lineHeight:""},t}return __extends(t,e),t.prototype.ngOnChanges=function(e){if(e._data){this.style={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};var t=[],o=void 0;o=this.bubbleColor&&this.bubbleColor.value?this.bubbleColor.value:this.bubbleColor;for(var i=0;i<o.length;i++)t.push({type:"radial",x:.4,y:.3,r:1,global:!1,colorStops:[{offset:0,color:o[i][0]},{offset:1,color:o[i][1]}]});this.chartOption={legend:{align:this.align,show:"none"!==this.align,textStyle:this.style},grid:{top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom},xAxis:{name:this.xUnit,nameTextStyle:this.style,type:"category",axisLine:{lineStyle:{color:this.style.color}},axisLabel:{rotate:this.xLabelRotate,show:!0,color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,margin:this.font.lineHeight}},yAxis:{name:this.yUnit,nameTextStyle:this.style,type:"value",axisLine:{lineStyle:{color:this.style.color}},axisLabel:this.style,splitLine:{show:this.netLine,lineStyle:{type:"dashed"}}},color:t,series:[]},this.reloadData()}},t.prototype.setSeriesStyle=function(e,t){var o={type:"scatter",symbolSize:function(e){return e.v},name:e,label:{show:this.label,textStyle:this.style,emphasis:{show:!0,position:"top",textStyle:this.style,formatter:[]}},itemStyle:{normal:{shadowBlur:10,shadowOffsetY:5,shadowColor:"rgba(67, 74, 78, 0.5)"}},encode:{x:"x",y:"y"},datasetIndex:t};return this.chartOption.series.push(o),o},t.prototype.ngOnInit=function(){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵh.decorators=[{type:i0.Component,args:[{selector:"sc-bubble-chart",template:'<div\r\n echarts\r\n [options]="chartOption"\r\n class="demo-chart"\r\n (chartClick)="onChartClick($event)"\r\n [initOpts]="{ renderer: \'svg\' }"\r\n></div>\r\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["bubbleColor"],example:[{background:"assets/img/screen/bubble1.png",data:ɵ0$6},{background:"assets/img/screen/bubble2.png",data:ɵ1$6},{background:"assets/img/screen/bubble3.png",data:ɵ2$6},{background:"assets/img/screen/bubble4.png",data:ɵ3$6}]}}),__metadata("design:type",Object)],exports.ɵh.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵh.prototype,"bubbleColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵh.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵh.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵh.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("y轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵh.prototype,"yUnit",void 0),__decorate([bbjWidgetBase.Property("x轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵh.prototype,"xUnit",void 0),__decorate([bbjWidgetBase.Property("y轴最大"),__metadata("design:type",Number)],exports.ɵh.prototype,"yMax",void 0),__decorate([bbjWidgetBase.Property("网络线",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵh.prototype,"netLine",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵh.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("轴标签角度",{ui:{widget:"myRange",min:-90,max:90,step:10}}),__metadata("design:type",Object)],exports.ɵh.prototype,"xLabelRotate",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"高度"},v:{type:"number",title:"值"},s:{type:"string",title:"系列"}}}),__metadata("design:type",Object)],exports.ɵh.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","s"]),__metadata("design:type",Object)],exports.ɵh.prototype,"dataClick",void 0),exports.ɵh=__decorate([bbjWidgetBase.Widget("散点图",{group:"otherChart",image:"assets/img/screen/bubble.png",icon:"icontubiao"})],exports.ɵh);var BubbleChartModule=function(e){e.register(exports.ɵh)};BubbleChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵh],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],BubbleChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵi=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.lineColor=["#3285FF","#00D2FD"],t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:""},t.align="auto",t.label=!1,t.shape="polygon",t.area=!1,t.grid={top:30,right:30,bottom:40,left:36},t.chartOption={},t._data=[{x:"销售",y:10,m:37,s:"预算"},{x:"管理",y:20,m:56,s:"预算"},{x:"信息技术",y:25,m:65,s:"预算"},{x:"客服",y:35,m:67,s:"预算"},{x:"研发",y:27,m:76,s:"预算"},{x:"市场",y:28,m:35,s:"预算"},{x:"销售",y:18,m:76,s:"实际"},{x:"管理",y:28,m:53,s:"实际"},{x:"信息技术",y:32,m:76,s:"实际"},{x:"客服",y:48,m:57,s:"实际"},{x:"市场",y:17,m:56,s:"实际"}],t.dataClick=new i0.EventEmitter,t.series=[],t}return __extends(t,e),t.prototype.ngOnChanges=function(e){var t=this;if(e._data){this.reloadData();var o={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};this.chartOption={legend:{data:this.series,align:this.align,show:"none"!==this.align,textStyle:o},radar:{shape:this.shape,name:{textStyle:o},indicator:[]},color:this.lineColor,grid:this.grid,series:[{label:{show:this.label,textStyle:this.getTextStyle(this.font),formatter:function(e){return e.value}},type:"radar",areaStyle:{opacity:this.area?.3:0},data:[]}]};for(var i=function(e){a._data.filter((function(o){return o.x===t.xData[e]})).forEach((function(o){if(t.series.length>1)if(t.chartOption.radar.indicator[e]&&t.chartOption.radar.indicator[e].max){var i=t.chartOption.radar.indicator[e].max;t.chartOption.radar.indicator[e].max=Math.max(i,o.m)}else t.chartOption.radar.indicator.push({name:t.xData[e],max:o.m});else t.chartOption.radar.indicator.push({name:t.xData[e],max:o.m})}))},a=this,r=0;r<this.xData.length;r++)i(r);var n=function(e){s.chartOption.series[0].data.push({value:[],name:s.series[e]});for(var o=[],i=0;i<s._data.length;i++)s.series[e],s._data[i].s,o.push(s._data[i]);for(i=0;i<s.xData.length;i++){for(var a=0,r=0;r<o.length;r++)o[r].x==s.xData[i]&&a++;0==a&&s._data.push({x:s.xData[i],y:null,m:null,s:s.series[e]})}s._data.sort((function(e,o){return t.xData.indexOf(e.x)-t.xData.indexOf(o.x)})),s._data.filter((function(o){return o.s===t.series[e]})).forEach((function(o){for(var i=0;i<t.xData.length;i++)t.xData[i]===o.x&&t.chartOption.series[0].data[e].value.push(o.y)}))},s=this;for(r=0;r<this.series.length;r++)n(r)}},t.prototype.reloadData=function(){if(this._data[0]){for(var e=0;e<this._data.length;e++)this._data[e].s||(this.align="none"),this._data[e].s=this._data[e].s||" ",this.series[e]=this._data[e].s;this.uniqueData(this.series)}for(e=0;e<this._data.length;e++)this.xData[e]=this._data[e].x;this.uniqueData(this.xData)},t.prototype.ngOnInit=function(){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵi.decorators=[{type:i0.Component,args:[{selector:"sc-radar-chart",template:'<div\n echarts\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵi.prototype,"lineColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵi.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵi.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("标签",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵi.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("形状",{ui:{widget:"select"},enum:[{label:"多边形",value:"polygon"},{label:"圆形",value:"circle"}]}),__metadata("design:type",Object)],exports.ɵi.prototype,"shape",void 0),__decorate([bbjWidgetBase.Property("区域",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵi.prototype,"area",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵi.prototype,"grid",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"},m:{type:"number",title:"最大值"},s:{type:"string",title:"系列"}}}),__metadata("design:type",Object)],exports.ɵi.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","s"]),__metadata("design:type",Object)],exports.ɵi.prototype,"dataClick",void 0),exports.ɵi=__decorate([bbjWidgetBase.Widget("雷达图",{group:"otherChart",image:"assets/img/screen/radar.png",icon:"icontubiao"})],exports.ɵi);var RadarChartModule=function(e){e.register(exports.ɵi)};RadarChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵi],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],RadarChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$7={seriesColor:["#FFE53F","#FFBF47","#FF7F1D","#FC460D","#EE2100"]},ɵ1$7={seriesColor:["#C0E656","#52D852","#00B335","#008F44","#006A61"]},ɵ2$7={seriesColor:["#00E5E3","#0DBBD8","#2A8BC9","#345EBB","#003560"]},ɵ3$7={seriesColor:["#FF6DB7","#E23FCA","#AD12CE","#7F0B84","#610796"]};exports.ɵj=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.seriesColor=["#00E5E3","#0DBBD8","#2A8BC9","#345EBB","#003560"],t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:""},t.grid={top:60,right:16,bottom:20,left:16},t.align="auto",t.max=100,t.min=0,t.sort="ascending",t.gap=4,t.label=!0,t.chartOption={},t._data=[{x:"一月",y:20},{x:"二月",y:40},{x:"三月",y:60},{x:"四月",y:80},{x:"五月",y:100}],t.dataClick=new i0.EventEmitter,t}return __extends(t,e),t.prototype.ngOnChanges=function(e){if(e._data){var t={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};this.chartOption={legend:{data:this.xData,align:this.align,show:"none"!==this.align,textStyle:t},calculable:!0,color:this.seriesColor,series:[{type:"funnel",top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom,maxSize:this.max+"%",minSize:this.min+"%",sort:this.sort,gap:this.gap,itemStyle:{borderWidth:0},label:{show:this.label,position:"inside"}}],dataset:{dimensions:[],source:[]}},this.reloadData()}},t.prototype.reloadData=function(){for(var e=this._data,t=0;t<this._data.length;t++)this.xData[t]=this._data[t].x;this.uniqueData(this.xData),this.chartOption.dataset.dimensions=["x","y"],this.chartOption.dataset.source=e},t.prototype.ngOnInit=function(){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵj.decorators=[{type:i0.Component,args:[{selector:"sc-funnel-chart",template:'<div\r\n echarts\r\n [options]="chartOption"\r\n class="demo-chart"\r\n (chartClick)="onChartClick($event)"\r\n [initOpts]="{ renderer: \'svg\' }"\r\n></div>\r\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["seriesColor"],example:[{background:"assets/img/screen/funnel1.png",data:ɵ0$7},{background:"assets/img/screen/funnel2.png",data:ɵ1$7},{background:"assets/img/screen/funnel3.png",data:ɵ2$7},{background:"assets/img/screen/funnel4.png",data:ɵ3$7}]}}),__metadata("design:type",Object)],exports.ɵj.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵj.prototype,"seriesColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵj.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵj.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵj.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("最大值",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵj.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("最小值",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵj.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("排序",{ui:{widget:"select"},enum:[{label:"升序",value:"ascending"},{label:"降序",value:"descending"},{label:"无/按数据先后",value:"none"}]}),__metadata("design:type",Object)],exports.ɵj.prototype,"sort",void 0),__decorate([bbjWidgetBase.Property("间隔",{ui:{widget:"myRange",min:0,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵj.prototype,"gap",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵj.prototype,"label",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵj.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x"]),__metadata("design:type",Object)],exports.ɵj.prototype,"dataClick",void 0),exports.ɵj=__decorate([bbjWidgetBase.Widget("三角图",{group:"otherChart",image:"assets/img/screen/funnel.png",icon:"icontubiao"})],exports.ɵj);var FunnelChartModule=function(e){e.register(exports.ɵj)};FunnelChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵj],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],FunnelChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbu=function(){function e(e){this.ele=e,this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0},this.pointerEvents=!1}return e.prototype.ngOnInit=function(){this.style={opacity:this.opacity,boxShadow:this.shadow.color+" "+this.shadow.X+"px "+this.shadow.Y+"px "+this.shadow.Z+"px"},!1===this.pointerEvents&&(this.ele.nativeElement.style.pointerEvents="none")},e}(),exports.ɵbu.decorators=[{type:i0.Component,args:[{selector:"sc-background",template:'<div [ngStyle]="style" [style.backgroundImage]="\'url(\' + image + \')\'" class="background"></div>\n',styles:[".background{width:100%;height:100%;background-size:100% 100%;background-repeat:no-repeat}"]}]}],exports.ɵbu.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("",{min:1,ui:{widget:"myUpload",spanLabel:0,spanControl:24}}),__metadata("design:type",String)],exports.ɵbu.prototype,"image",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbu.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵbu.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("响应鼠标事件",{type:"boolean",default:!0}),__metadata("design:type",Object)],exports.ɵbu.prototype,"pointerEvents",void 0),exports.ɵbu=__decorate([bbjWidgetBase.Widget("图片",{group:"background",icon:"iconbeijing"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbu);var BackgroundModule=function(e){e.register(exports.ɵbu)};BackgroundModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbu],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],BackgroundModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵm=function(){function e(){this.seriesColor={gradient:!0,value:[["#2841E8","#00CAFA"]]},this.pointerColor="auto",this.pointerShadow="rgba(0,138,255,0.45)",this.width=10,this.startAngle=225,this.endAngle=-45,this.label=!1,this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},this.labelOffset=50,this.labelWidth=null,this.labelVal=!0,this.numFont={family:"",color:"#FFFFFF",weight:"normal",size:38,space:0,lineHeight:38},this.percent=!1,this.labelValOffset=-10,this.max=100,this.min=0,this.splitLine=!1,this.axisTick=!0,this.axisLabel=!0,this.axisTickLen=10,this.axisTickWidth=1,this.axisTickColor="auto",this.chartOption={},this._data=[{name:"速度",value:48}]}return e.prototype.ngOnChanges=function(e){if(e._data){var t={show:this.axisLabel,color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},o=[],i=[],a=void 0;a=this.seriesColor&&this.seriesColor.value?this.seriesColor.value:this.seriesColor;for(var r=0;r<a.length;r++)o.push({type:"linear",x:0,y:0,x2:1,y2:0,global:!1,colorStops:[{offset:0,color:a[r][0]},{offset:1,color:a[r][1]}]});var n=1;if(a.length>1){n=1/a.length;for(r=0;r<a.length;r++)i.push([n*(r+1),o[r]])}this.chartOption={series:[{type:"gauge",detail:{show:this.labelVal,formatter:this.percent?(this._data[0].value/this.max*100).toFixed(2)+"%":"{value}",color:this.numFont.color,fontFamily:this.numFont.family,fontWeight:this.numFont.weight,fontSize:this.numFont.size,lineHeight:this.numFont.lineHeight,offsetCenter:[0,this.labelValOffset+"%"]},data:this._data,startAngle:this.startAngle,endAngle:this.endAngle,title:{show:this.label,color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight,offsetCenter:[0,this.labelOffset+"%"],overflow:"breakAll",width:this.labelWidth},axisLine:{lineStyle:{width:this.width,color:n<1?i:[[1,o[0]]]}},axisLabel:t,max:this.max,min:this.min,splitLine:{show:this.splitLine,distance:0,length:10},axisTick:{show:this.axisTick,length:this.axisTickLen,lineStyle:{width:this.axisTickWidth,color:this.axisTickColor}},pointer:{width:6,length:"70%",itemStyle:{color:this.pointerColor,shadowColor:this.pointerShadow,shadowBlur:10,shadowOffsetX:2,shadowOffsetY:2}}}]}}},e.prototype.ngOnInit=function(){},e}(),exports.ɵm.decorators=[{type:i0.Component,args:[{selector:"sc-gauge",template:'<div echarts [options]="chartOption" class="demo-chart" [initOpts]="{ renderer: \'svg\' }"></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵm.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("表盘颜色",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵm.prototype,"seriesColor",void 0),__decorate([bbjWidgetBase.Property("指针颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵm.prototype,"pointerColor",void 0),__decorate([bbjWidgetBase.Property("指针阴影",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵm.prototype,"pointerShadow",void 0),__decorate([bbjWidgetBase.Property("表盘宽度",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵm.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("起始角度",{ui:{widget:"myRange",min:90,max:360,step:1}}),__metadata("design:type",Object)],exports.ɵm.prototype,"startAngle",void 0),__decorate([bbjWidgetBase.Property("结束角度",{ui:{widget:"myRange",min:-90,max:90,step:1}}),__metadata("design:type",Object)],exports.ɵm.prototype,"endAngle",void 0),__decorate([bbjWidgetBase.Property("显示标题",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("标题位移",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"labelOffset",void 0),__decorate([bbjWidgetBase.Property("标题宽度",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"labelWidth",void 0),__decorate([bbjWidgetBase.Property("显示数值",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"labelVal",void 0),__decorate([bbjWidgetBase.Property("数值字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"numFont",void 0),__decorate([bbjWidgetBase.Property("百分号",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"percent",void 0),__decorate([bbjWidgetBase.Property("数值位移",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"labelValOffset",void 0),__decorate([bbjWidgetBase.Property("最大值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("最小值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("分隔线",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"splitLine",void 0),__decorate([bbjWidgetBase.Property("刻度",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"axisTick",void 0),__decorate([bbjWidgetBase.Property("刻度数值",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"axisLabel",void 0),__decorate([bbjWidgetBase.Property("刻度长度",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"axisTickLen",void 0),__decorate([bbjWidgetBase.Property("刻度宽度",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"axisTickWidth",void 0),__decorate([bbjWidgetBase.Property("刻度颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵm.prototype,"axisTickColor",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"文字"},value:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵm.prototype,"_data",void 0),exports.ɵm=__decorate([bbjWidgetBase.Widget("仪表盘",{group:"otherChart",image:"assets/img/screen/gauge.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵm);var GaugeModule=function(e){e.register(exports.ɵm)};GaugeModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵm],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],GaugeModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$8={pieColor:{gradient:!0,value:[["#FF7C24","#50536E"]]}},ɵ1$8={pieColor:{gradient:!0,value:[["#00FEC3","#50536E"]]}},ɵ2$8={pieColor:{gradient:!0,value:[["#00D2FD","#50536E"]]}},ɵ3$8={pieColor:{gradient:!0,value:[["#BF91FA","#50536E"]]}};exports.ɵk=function(){function e(){this.pieColor={gradient:!0,value:[["#00A2FD","#50536E"],["black","black"]]},this.font={family:"",color:"#AFB2BF",weight:"normal",size:20,space:0,lineHeight:""},this.width=20,this.fillet=!1,this.clockwise=!0,this.percent=!0,this.chartOption={},this._data=[{value:80,max:100}],this.dataClick=new i0.EventEmitter}return e.prototype.ngOnChanges=function(e){if(e._data){var t=this._data[0].value,o=this._data[0].value/this._data[0].max*100,i={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},a=void 0,r={type:"linear",x:0,y:0,global:!1,colorStops:[{offset:0,color:(a=this.pieColor&&this.pieColor.value?this.pieColor.value:this.pieColor)[0][0]},{offset:1,color:a[0][1]}]};this.chartOption={title:{text:this.percent?parseInt(o.toString())+"%":parseInt(t.toString()),textStyle:i,left:"center",top:"center"},angleAxis:{max:this._data[0].max,clockwise:this.clockwise,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},radiusAxis:{type:"category",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},polar:{center:["50%","50%"],radius:"100%"},series:[{type:"bar",label:{show:!1},data:[{value:t,itemStyle:{color:r}}],coordinateSystem:"polar",roundCap:this.fillet,barWidth:this.width,barGap:"-100%",z:2},{type:"bar",data:[{value:this._data[0].max,itemStyle:{color:a[a.length-1][0]}}],coordinateSystem:"polar",roundCap:this.fillet,barWidth:this.width,barGap:"-100%",z:1}]}}console.log(this.chartOption)},e.prototype.ngOnInit=function(){},e.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},e}(),exports.ɵk.decorators=[{type:i0.Component,args:[{selector:"sc-percent-pie-chart",template:'<div\n echarts\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵk.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,class:"percentPie",reset:["pieColor"],example:[{background:"assets/img/screen/percent_pie1.png",data:ɵ0$8},{background:"assets/img/screen/percent_pie2.png",data:ɵ1$8},{background:"assets/img/screen/percent_pie3.png",data:ɵ2$8},{background:"assets/img/screen/percent_pie4.png",data:ɵ3$8}]}}),__metadata("design:type",Object)],exports.ɵk.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵk.prototype,"pieColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵk.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("环宽",{type:"number"}),__metadata("design:type",Object)],exports.ɵk.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("圆角",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵk.prototype,"fillet",void 0),__decorate([bbjWidgetBase.Property("顺时针",{ui:{widget:"boolean",checkedChildren:"顺",unCheckedChildren:"逆"}}),__metadata("design:type",Object)],exports.ɵk.prototype,"clockwise",void 0),__decorate([bbjWidgetBase.Property("百分值",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵk.prototype,"percent",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"number",title:"值"},max:{type:"number",title:"最大值"}}}),__metadata("design:type",Object)],exports.ɵk.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["value","max"]),__metadata("design:type",Object)],exports.ɵk.prototype,"dataClick",void 0),exports.ɵk=__decorate([bbjWidgetBase.Widget("占比饼图",{group:"pieChart",image:"assets/img/screen/percent_pie.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵk);var PercentPieChartModule=function(e){e.register(exports.ɵk)};PercentPieChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵk],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],PercentPieChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵl=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.color=["#3285FF","#00D2FD"],t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},t.clockwise=!1,t.align="none",t.grid={top:45,left:50},t.chartOption={},t._data=[{name:"短信",value:1419},{name:"客服",value:1776},{name:"外呼",value:1895},{name:"网厅",value:1576},{name:"手厅",value:2077}],t.dataClick=new i0.EventEmitter,t}return __extends(t,e),t.prototype.ngOnChanges=function(e){if(e._data){var t=this._data.sort((function(e,t){return t.value-e.value})),o=this.array2obj(t,"name"),i={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};this.chartOption={legend:{type:"scroll",orient:"vertical",data:t,x:this.align,show:"none"!==this.align,formatter:function(e){return e+"("+o[e].value+")"},textStyle:i},color:this.color,yAxis:[{type:"category",inverse:!0,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},data:this.getData(t).yAxis}],xAxis:[{show:!1}],series:this.getData(t).series}}},t.prototype.ngOnInit=function(){},t.prototype.getMax=function(e){var t=Math.max.apply(Math,__spread(e.map((function(e){return e.value})))),o=t.toString().length,i=Math.pow(10,o-1);return Number(i)+Number(t)},t.prototype.getData=function(e){for(var t={series:[],yAxis:[]},o=0;o<e.length;o++)t.series.push({name:o,type:"pie",clockWise:this.clockwise,hoverAnimation:!1,radius:[63-8*o+"%",58-8*o+"%"],center:[this.grid.left+"%",this.grid.top+"%"],label:{show:!1},itemStyle:{label:{show:!1},labelLine:{show:!1},borderWidth:5},data:[{value:this.getMax(e)-e[o].value,name:"",itemStyle:{color:"#ffffff00",borderWidth:0},tooltip:{show:!1},hoverAnimation:!1},{value:e[o].value,name:e[o].name}]});return t},t.prototype.array2obj=function(e,t){for(var o={},i=0;i<e.length;i++)o[e[i][t]]=e[i];return o},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵl.decorators=[{type:i0.Component,args:[{selector:"sc-tree-ring-chart",template:'<div\n echarts\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵl.prototype,"color",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵl.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("顺时针",{ui:{widget:"boolean",checkedChildren:"顺",unCheckedChildren:"逆"}}),__metadata("design:type",Object)],exports.ɵl.prototype,"clockwise",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"纵向居中",value:"center"},{label:"纵向居左",value:"left"},{label:"纵向居右",value:"right"}]}),__metadata("design:type",Object)],exports.ɵl.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid",type:"pie"}}),__metadata("design:type",Object)],exports.ɵl.prototype,"grid",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"类目"},value:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵl.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["value"]),__metadata("design:type",Object)],exports.ɵl.prototype,"dataClick",void 0),exports.ɵl=__decorate([bbjWidgetBase.Widget("年轮图",{group:"pieChart",image:"assets/img/screen/ringTree.png",icon:"icontubiao"})],exports.ɵl);var TreeRingChartModule=function(e){e.register(exports.ɵl)};TreeRingChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵl],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],TreeRingChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵn=function(){function e(){this.font={family:"",color:"#294D99",weight:"normal",size:40,space:0,lineHeight:""},this.cover="#fff",this.bg="#DEDEDE",this.border="#DEDEDE",this.seriesColor=["#1DE2C4","#008FE9"],this.level=2,this.shape="circle",this.waveAnimation=!0,this._data=[{value:.48}],this.chartOption=null}return e.prototype.ngOnChanges=function(e){if(e._data){for(var t=this._data[0].value,o={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},i=[],a=0;a<this.level;a++)i.push({value:t,label:{normal:{textStyle:o,insideColor:this.cover}}});""==this.bg&&(this.bg="#ffffff00"),this.chartOption={series:[{type:"liquidFill",data:i,radius:"80%",shape:this.shape,waveAnimation:this.waveAnimation,backgroundStyle:{borderColor:this.border,color:this.bg},color:this.seriesColor,outline:{show:!1}}]}}},e.prototype.ngOnInit=function(){},e}(),exports.ɵn.decorators=[{type:i0.Component,args:[{selector:"sc-liquid-fill",template:'<div echarts [options]="chartOption" class="demo-chart" [initOpts]="{ renderer: \'svg\' }"></div>\r\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵn.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵn.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("字体覆盖",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵn.prototype,"cover",void 0),__decorate([bbjWidgetBase.Property("背景色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵn.prototype,"bg",void 0),__decorate([bbjWidgetBase.Property("边框色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵn.prototype,"border",void 0),__decorate([bbjWidgetBase.Property("水波色系",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵn.prototype,"seriesColor",void 0),__decorate([bbjWidgetBase.Property("水波层数",{ui:{widget:"myRange",min:1,max:5,step:1}}),__metadata("design:type",Object)],exports.ɵn.prototype,"level",void 0),__decorate([bbjWidgetBase.Property("形状",{ui:{widget:"select"},enum:[{label:"圆形",value:"circle"},{label:"矩形",value:"rect"},{label:"圆角矩形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"菱形",value:"diamond"},{label:"大头针",value:"pin"},{label:"箭头",value:"arrow"}]}),__metadata("design:type",Object)],exports.ɵn.prototype,"shape",void 0),__decorate([bbjWidgetBase.Property("动画",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵn.prototype,"waveAnimation",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"number",title:"值"}}}),__metadata("design:type",Array)],exports.ɵn.prototype,"_data",void 0),exports.ɵn=__decorate([bbjWidgetBase.Widget("水球图",{group:"otherChart",image:"assets/img/screen/liquidFill.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵn);var LiquidFillModule=function(e){e.register(exports.ɵn)};LiquidFillModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵn],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],LiquidFillModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbw=function(){function e(e,t,o,i){this.ele=e,this.cd=t,this.widgetRef=o,this.renderer=i,this.carousel=!0,this.lineWrap=!0,this.time=1,this.serialNumberDisplay=!0,this.headDisplay=!0,this.headBackground="",this.headFont={family:"",color:"#ffffff",weight:"normal",size:20,space:0,lineHeight:40},this.fontBling=!1,this.bindColor=[],this.blingColor="",this.borderColor="",this.borderBlingColor="",this.borderSize=0,this.clickTarget="row",this.titleStyle=[],this.blingNum=3,this.oddBackground="",this.evenBackground="",this.contentFont={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:40},this.contentFontBling=!1,this.contentBlingColor="",this.contentBlingNum=3,this.paddingLeft=0,this.paddingRight=0,this.data=[{"地区":"温州","流量":"123","行为":"xxxx"},{"地区":"杭州","流量":"1235","行为":"xxxx"},{"地区":"上海","流量":"1234","行为":"xxxx"},{"地区":"北京","流量":"12367","行为":"xxxx"},{"地区":"温州1","流量":"123835","行为":"xxxx"},{"地区":"温州2","流量":"123835","行为":"xxxx"},{"地区":"温州3","流量":"123835","行为":"xxxx"},{"地区":"温州4","流量":"123835","行为":"xxxx"}],this.tableStyle={},this.animationDelay=0,this.dateChange=new i0.EventEmitter,this.cellClick=new i0.EventEmitter,this.columnClick=new i0.EventEmitter,this.headStyle={},this.bodyStyle={},this.rowStyle={},this.pageChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){var e,t,o=this.widgetRef.widget;if("cell"!==this.clickTarget&&((null===(e=o.link)||void 0===e?void 0:e.enabled)||(null===(t=o.outputs)||void 0===t?void 0:t.enabled))&&(this.tableStyle.cursor="pointer"),this.headStyle=getFontStyle(this.headFont),this.headStyle.backgroundColor=this.headBackground,this.paddingLeft&&(this.headStyle.paddingLeft=this.rowStyle.paddingLeft=this.paddingLeft+"px"),this.paddingRight&&(this.headStyle.paddingRight=this.rowStyle.paddingRight=this.paddingRight+"px"),Object.assign(this.tableStyle,getFontStyle(this.contentFont)),this.borderSize&&this.borderColor){var i=this.ele.nativeElement,a=this.borderSize+"px solid "+(this.borderColor||"#fff");if(this.rowStyle.borderBottom=this.headStyle.borderBottom=a,this.renderer.setStyle(i,"border",a),this.borderBlingColor){var r="drop-shadow(0 0 8px "+this.borderBlingColor+")";this.renderer.setStyle(i,"filter",r)}}if(this.fontBling){var n=this.blingColor||this.headFont.color||"#ffffff",s=this.blingNum||3;this.headStyle.textShadow=this.getBlingStyle(n,s)}if(this.contentFontBling){n=this.contentBlingColor||this.contentFont.color||"#ffffff",s=this.blingNum||3;this.tableStyle.textShadow=this.getBlingStyle(n,s)}this.lineWrap?this.tableStyle.wordBreak="break-all":this.tableStyle.whiteSpace="nowrap",this.cd.markForCheck()},e.prototype.ngOnChanges=function(e){var t;if((e.data||e.schema)&&this.data){if(null!=this.data.totalElements){this.paged=!0;var o=this.data.number*this.data.size;if(null==this.content&&(this.content=[]),this.content.length>o)this.content.splice(o,this.content.length-o);else if(this.content.length<o)return void this.pageChange.emit(Math.ceil(this.content.length/this.data.size));(t=this.content).push.apply(t,__spread(this.data.content)),this.total=this.data.totalElements}else this.paged=!1,this.content=this.data,this.total=this.data.length;this.paged&&0!==this.data.number||this.updateColumns();var i=this.ele.nativeElement;this.parentHeight=Number(i.parentElement.style.height.replace("px","")),this.headerHeight=this.headFont.lineHeight||40,this.rowHeight=this.contentFont.linHeight||40,this.borderSize&&this.borderColor&&(this.headerHeight+=this.borderSize,this.rowHeight+=this.borderSize),this.headDisplay||(this.headerHeight=0);var a=this.carousel&&this.total*this.rowHeight+this.headerHeight>this.parentHeight;if(!this._carousel&&a&&(this.runtime=0),this._carousel=a,this.placeholder=null,this._carousel){var r=this.total*this.time;this.tableStyle.animation="carousel "+r+"s linear infinite",this.paged&&this.total>this.content.length&&(this.placeholder=this.rowHeight*(this.total-this.content.length)),this.paused||(this.updateRuntime(),this.loadNextPage())}else this.tableStyle.animation=null}this.cd.markForCheck()},e.prototype.ngOnDestroy=function(){this.stopLoadNext()},e.prototype.getBlingStyle=function(e,t){for(var o="",i=0;i<t;i++)o+="0 0 20px "+e+",";return o.substr(0,o.length-1)},e.prototype.updateRuntime=function(){var e=(new Date).getTime();this.lastTime&&(this.runtime+=e-this.lastTime),this.lastTime=e},e.prototype.stopLoadNext=function(){null!=this.nextPageTimeout&&clearTimeout(this.nextPageTimeout)},e.prototype.getNextLoadTime=function(){return(this.headerHeight+this.rowHeight*this.content.length-this.parentHeight)/this.rowHeight*this.time*1e3-this.runtime+this.animationDelay},e.prototype.loadNextPage=function(){var e=this;if(this.stopLoadNext(),this.paged&&this.total>this.content.length){var t=this.getNextLoadTime();t<0&&(t=0),this.nextPageTimeout=setTimeout((function(){e.pageChange.next(e.data.number+1)}),t)}},e.prototype.updateColumns=function(){var e,t,o,i;this.columns=[],this.schema&&this.schema.properties?i=Object.keys(this.schema.properties):this.content&&this.content[0]&&(i=Object.keys(this.content[0]));var a={};if(this.titleStyle&&this.titleStyle.length>0&&this.titleStyle.forEach((function(e){e.key&&(a[e.key]=e)})),i)try{for(var r=__values(i),n=r.next();!n.done;n=r.next()){var s=n.value,d=s;if(this.schema&&this.schema.properties){var l=this.schema.properties[s];l&&l.title&&(d=l.title)}var p={},c={},g={index:s,title:d,headStyle:p,cellStyle:c},h=a[s];if(!(null===(o=this.titleStyle)||void 0===o?void 0:o.length)||null!=h&&h.show){var u=void 0;h&&(u=h.width,h.align&&(c.textAlign=h.align),"cell"===this.clickTarget&&h.clickable&&(g.clickable=!0)),u?p.width=c.width=u+"px":p.flex=c.flex=1,this.columns.push(g)}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.onClick=function(e){"cell"!==this.clickTarget&&this.dateChange.emit(e)},e.prototype.mouseover=function(){this._carousel&&(this.paused=!0,this.tableStyle.animationPlayState="paused",this.updateRuntime(),this.stopLoadNext())},e.prototype.mouseout=function(){this._carousel&&(this.paused=!1,this.lastTime=(new Date).getTime(),this.tableStyle.animationPlayState="running",this.paged&&this.loadNextPage())},e.prototype.onMousewheel=function(e){this._carousel&&(this.animationDelay-=2*e.deltaY,this.animationDelay>this.runtime&&(this.animationDelay=this.runtime),this.tableStyle.animationDelay=this.animationDelay/1e3+"s",this.paged&&this.total>this.content.length&&this.getNextLoadTime()<0&&this.pageChange.emit(this.data.number+1),e.stopPropagation(),e.preventDefault())},e.prototype.onCellClick=function(e,t,o){("cell"!==this.clickTarget||e.clickable)&&(o.stopPropagation(),this.cellClick.emit(t[e.index]),this.columnClick.emit(e.index),this.dateChange.emit(t))},e.prototype.exportWord=function(){var e=this,t="<table>";return this.headDisplay&&(t+="<thead><tr>",this.columns.forEach((function(e){t+="<th>"+e.title+"</th>"})),t+="</tr></thead>"),t+="<tbody>",this.content.forEach((function(o){t+="<tr>",e.columns.forEach((function(e){t+="<td>"+o[e.index]+"</td>"})),t+="</tr>"})),t+="</tbody></table><br/>"},e}(),exports.ɵbw.decorators=[{type:i0.Component,args:[{selector:"sc-shuffling-list",template:'<ng-container *ngIf="data">\n <div *ngIf="headDisplay" class="head" [ngStyle]="headStyle">\n <div *ngIf="serialNumberDisplay" class="cell index-col"></div>\n <div *ngFor="let column of columns" class="cell" [ngStyle]="column.headStyle">{{ column.title }}</div>\n </div>\n <div class="body" [class.carousel]="carousel" (mouseover)="mouseover()" (mouseout)="mouseout()">\n <div class="body-scroll" [ngStyle]="tableStyle" (mousewheel)="onMousewheel($event)">\n <ng-template #list>\n <div\n *ngFor="let row of content; let idx = index"\n class="row"\n [style.backgroundColor]="idx % 2 == 0 ? oddBackground : evenBackground"\n [ngStyle]="rowStyle"\n [style.color]="row | bindColor: bindColor"\n (click)="onClick(row)"\n >\n <div *ngIf="serialNumberDisplay" class="cell index-col">\n {{ idx + 1 }}\n </div>\n <ng-container *ngFor="let column of columns; let index = index">\n <div class="cell" [ngStyle]="column.cellStyle" [title]="row[column.index]">\n <span\n *ngIf="row[column.index] != null"\n [class.clickable]="column.clickable"\n (click)="onCellClick(column, row, $event)"\n [innerHTML]="row[column.index] | nzSafeNull | nzSanitizer: \'html\'"\n ></span>\n </div>\n </ng-container>\n </div>\n <div *ngIf="placeholder" [style.height.px]="placeholder"></div>\n </ng-template>\n <ng-container [ngTemplateOutlet]="list"></ng-container>\n <ng-container *ngIf="_carousel" [ngTemplateOutlet]="list"></ng-container>\n </div>\n </div>\n</ng-container>\n',changeDetection:i0.ChangeDetectionStrategy.OnPush,styles:[":host{flex-direction:column;height:100%;width:100%;overflow:hidden}.head,:host{display:flex}.head{flex:none}.cell{text-align:center;overflow:hidden;text-overflow:ellipsis}.cell>.clickable{cursor:pointer;color:#ff0;text-decoration:underline}.cell>.clickable:hover{color:#4e87ad}.body{flex:1;overflow:auto}.body.carousel{overflow:hidden}.row{display:flex}.index-col{width:30px;text-align:left}::-webkit-scrollbar{width:0}@keyframes carousel{0%{transform:translateY(0)}to{transform:translateY(-50%)}}"]}]}],exports.ɵbw.ctorParameters=function(){return[{type:i0.ElementRef},{type:i0.ChangeDetectorRef},{type:bbjWidgetBase.WidgetRef},{type:i0.Renderer2}]},__decorate([bbjWidgetBase.Property("轮播",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"carousel",void 0),__decorate([bbjWidgetBase.Property("自动换行",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"lineWrap",void 0),__decorate([bbjWidgetBase.Property("轮播间隔",{ui:{widget:"myRange",min:1,max:20,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"time",void 0),__decorate([bbjWidgetBase.Property("序列号显示",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"serialNumberDisplay",void 0),__decorate([bbjWidgetBase.Property("表头显示",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"headDisplay",void 0),__decorate([bbjWidgetBase.Property("表头背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"headBackground",void 0),__decorate([bbjWidgetBase.Property("表头字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"headFont",void 0),__decorate([bbjWidgetBase.Property("字体发光",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"fontBling",void 0),__decorate([bbjWidgetBase.Property("字段颜色",{type:"array",maxItems:99,items:{type:"object",properties:{key:{type:"string",title:"字段"},value:{type:"string",title:"值"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"bindColor",void 0),__decorate([bbjWidgetBase.Property("发光颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"blingColor",void 0),__decorate([bbjWidgetBase.Property("边框颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("边框发光",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"borderBlingColor",void 0),__decorate([bbjWidgetBase.Property("边框粗细",{ui:{widget:"myRange",min:0,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"borderSize",void 0),__decorate([bbjWidgetBase.Property("点击触发方式",{enum:[{label:"行",value:"row"},{label:"单元格",value:"cell"}]}),__metadata("design:type",Object)],exports.ɵbw.prototype,"clickTarget",void 0),__decorate([bbjWidgetBase.Property("表头设置",{type:"array",maxItems:99,items:{type:"object",properties:{key:{type:"string",title:"key"},width:{type:"number",title:"宽度"},align:{type:"string",ui:{widget:"select"},enum:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]},show:{type:"boolean",title:"是否显示",default:!0},clickable:{type:"boolean",title:"是否可点击",ui:{visibleIf:{"/clickTarget":["cell"]}}}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"titleStyle",void 0),__decorate([bbjWidgetBase.Property("发光程度",{ui:{widget:"myRange",min:1,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"blingNum",void 0),__decorate([bbjWidgetBase.Property("奇行背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"oddBackground",void 0),__decorate([bbjWidgetBase.Property("偶行背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"evenBackground",void 0),__decorate([bbjWidgetBase.Property("内容字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"contentFont",void 0),__decorate([bbjWidgetBase.Property("字体发光",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"contentFontBling",void 0),__decorate([bbjWidgetBase.Property("发光颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"contentBlingColor",void 0),__decorate([bbjWidgetBase.Property("发光程度",{ui:{widget:"myRange",min:1,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"contentBlingNum",void 0),__decorate([bbjWidgetBase.Property("左内边距",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"paddingLeft",void 0),__decorate([bbjWidgetBase.Property("右内边距",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"paddingRight",void 0),__decorate([bbjWidgetBase.Data({}),__metadata("design:type",Object)],exports.ɵbw.prototype,"data",void 0),__decorate([bbjWidgetBase.DataSchema("data"),__metadata("design:type",Object)],exports.ɵbw.prototype,"schema",void 0),__decorate([bbjWidgetBase.DataOutput("行数据"),__metadata("design:type",Object)],exports.ɵbw.prototype,"dateChange",void 0),__decorate([bbjWidgetBase.DataOutput("单元格"),__metadata("design:type",Object)],exports.ɵbw.prototype,"cellClick",void 0),__decorate([bbjWidgetBase.DataOutput("列"),__metadata("design:type",Object)],exports.ɵbw.prototype,"columnClick",void 0),__decorate([bbjWidgetBase.DataOutput("翻页"),__metadata("design:type",Object)],exports.ɵbw.prototype,"pageChange",void 0),exports.ɵbw=__decorate([bbjWidgetBase.Widget("滚动表格",{group:"table",icon:"icontubiao",image:"/assets/img/screen/shuffling.png"}),__metadata("design:paramtypes",[i0.ElementRef,i0.ChangeDetectorRef,bbjWidgetBase.WidgetRef,i0.Renderer2])],exports.ɵbw);var ColorPipe=function(){function e(){}return e.prototype.transform=function(e){for(var t,o,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(e){var r=i[0];if(null==r?void 0:r.length)try{for(var n=__values(r),s=n.next();!s.done;s=n.next()){var d=s.value,l=d.key,p=d.value,c=d.color;if(l&&c&&e[l]==p)return c}}catch(e){t={error:e}}finally{try{s&&!s.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}}return null},e}();ColorPipe.decorators=[{type:i0.Pipe,args:[{name:"bindColor"}]}];var ShufflingListModule=function(e){e.register(exports.ɵbw)};ShufflingListModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbw,ColorPipe],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,pipes.NzPipesModule,tooltip.NzToolTipModule]}]}],ShufflingListModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ParentContainerComponent=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.childInit=function(e){},e.prototype.deleteChild=function(e){},e}(),BasicPlanimetricMapComponent_1;ParentContainerComponent.decorators=[{type:i0.Component,args:[{selector:"sc-parent-container",template:"",styles:[""]}]}],ParentContainerComponent.ctorParameters=function(){return[]},exports.ɵby=BasicPlanimetricMapComponent_1=function(e){function t(t){var o=e.call(this)||this;return o.baiduMapService=t,o.zoom=5,o.centerLng=104,o.centerLat=36,o.hasMap=!1,o._children=[],o}return __extends(t,e),t.prototype.ngOnChanges=function(e){},t.prototype.ngOnInit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.baiduMapService.loadMap()];case 1:return e.sent(),[4,import("echarts/extension/bmap/bmap.js")];case 2:return e.sent(),this.hasMap=!0,this.chartInit(),[2]}}))}))},t.prototype.chartInit=function(){var e=[];this._children.forEach((function(t){e=Array.isArray(t.item)?__spread(e,t.item):__spread(e,[t.item])})),this.chartOption={title:{text:"基础平面地图"},tooltip:{trigger:"item"},bmap:{label:{emphasis:{show:!1}},itemStyle:{normal:{areaColor:"#323c48",borderColor:"#404a59",opacity:1},emphasis:{areaColor:"#2a333d"}},center:[this.centerLng,this.centerLat],zoom:this.zoom,roam:!0,mapStyle:{styleJson:[{featureType:"water",elementType:"all",stylers:{color:"#d1d1d1"}},{featureType:"land",elementType:"all",stylers:{color:"#f3f3f3"}},{featureType:"railway",elementType:"all",stylers:{visibility:"off"}},{featureType:"highway",elementType:"all",stylers:{color:"#fdfdfd"}},{featureType:"highway",elementType:"labels",stylers:{visibility:"off"}},{featureType:"arterial",elementType:"geometry",stylers:{color:"#fefefe"}},{featureType:"arterial",elementType:"geometry.fill",stylers:{color:"#fefefe"}},{featureType:"poi",elementType:"all",stylers:{visibility:"off"}},{featureType:"green",elementType:"all",stylers:{visibility:"off"}},{featureType:"subway",elementType:"all",stylers:{visibility:"off"}},{featureType:"manmade",elementType:"all",stylers:{color:"#d1d1d1"}},{featureType:"local",elementType:"all",stylers:{color:"#d1d1d1"}},{featureType:"arterial",elementType:"labels",stylers:{visibility:"off"}},{featureType:"boundary",elementType:"all",stylers:{color:"#fefefe"}},{featureType:"building",elementType:"all",stylers:{color:"#d1d1d1"}},{featureType:"label",elementType:"labels.text.fill",stylers:{color:"#999999"}}]}},series:e}},t.prototype.childInit=function(e){if(e.id){var t=this._children.findIndex((function(t){return t.id===e.id}));t>-1?this._children[t]=e:this._children.push(e),this.chartInit()}},t.prototype.deleteChild=function(e){if(e){var t=this._children.findIndex((function(t){return t.id===e}));t>-1&&(this._children.splice(t,1),this.chartInit())}},t}(ParentContainerComponent),exports.ɵby.decorators=[{type:i0.Component,args:[{selector:"sc-basic-planimetric-map",template:'<ng-template *ngFor="let child of children" widget-host [widget]="child"></ng-template>\r\n<div echarts *ngIf="hasMap" [options]="chartOption" class="demo-chart"></div>\r\n',providers:[{provide:ParentContainerComponent,useExisting:i0.forwardRef((function(){return BasicPlanimetricMapComponent_1}))}],styles:[".demo-chart,:host{height:100%}:host{display:block;width:100%}"]}]}],exports.ɵby.ctorParameters=function(){return[{type:i1.BaiduMapService}]},__decorate([bbjWidgetBase.Property("地图缩放",{ui:{widget:"myRange",min:1,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵby.prototype,"zoom",void 0),__decorate([bbjWidgetBase.Property("中心经度",{ui:{widget:"myRange",min:-180,max:180,step:1}}),__metadata("design:type",Object)],exports.ɵby.prototype,"centerLng",void 0),__decorate([bbjWidgetBase.Property("中心纬度",{ui:{widget:"myRange",min:-90,max:90,step:1}}),__metadata("design:type",Object)],exports.ɵby.prototype,"centerLat",void 0),exports.ɵby=BasicPlanimetricMapComponent_1=__decorate([bbjWidgetBase.Widget("基础平面地图",{group:"component",image:"assets/img/screen/basicMap.png",icon:"iconmokuai",children:[{title:"呼吸气泡层",type:"sc-breathing-bubble-layer",option:{},hidden:!0,hideChild:!0}],childTypes:["sc-breathing-bubble-layer"],description:"hasChildItem"}),__metadata("design:paramtypes",[i1.BaiduMapService])],exports.ɵby),exports.ɵcb=function(){function BreathingBubbleLayerComponent(e){this.parent=e,this.bubbleType=[{key:1,color:"#ddb926",size:"function (val) {return val[2]*0.1;}"}],this.data=[{name:"海门",value:9,series:1},{name:"鄂尔多斯",value:12,series:1},{name:"招远",value:12,series:1},{name:"舟山",value:12,series:1},{name:"齐齐哈尔",value:14,series:1},{name:"盐城",value:15,series:1},{name:"赤峰",value:16,series:1},{name:"青岛",value:18,series:1},{name:"乳山",value:18,series:1},{name:"金昌",value:19,series:1},{name:"泉州",value:21,series:1},{name:"莱西",value:21,series:1},{name:"日照",value:21,series:1},{name:"胶南",value:22,series:1},{name:"南通",value:23,series:1},{name:"拉萨",value:24,series:2},{name:"云浮",value:24,series:2},{name:"梅州",value:25,series:2},{name:"文登",value:25,series:2},{name:"上海",value:25,series:2},{name:"攀枝花",value:25,series:2},{name:"威海",value:25,series:2},{name:"承德",value:25,series:2},{name:"厦门",value:26,series:2},{name:"汕尾",value:26,series:2},{name:"潮州",value:26,series:2},{name:"丹东",value:27,series:2},{name:"太仓",value:27,series:2},{name:"曲靖",value:27,series:2},{name:"烟台",value:28,series:2},{name:"福州",value:29,series:2},{name:"瓦房店",value:30,series:2},{name:"即墨",value:30,series:2},{name:"抚顺",value:31,series:2},{name:"玉溪",value:31,series:2},{name:"张家口",value:31,series:2},{name:"阳泉",value:31,series:2},{name:"莱州",value:32,series:2},{name:"湖州",value:32,series:2},{name:"汕头",value:32,series:2},{name:"昆山",value:33,series:2},{name:"宁波",value:33,series:2},{name:"湛江",value:33,series:2},{name:"揭阳",value:34,series:1},{name:"荣成",value:34,series:1},{name:"连云港",value:35,series:1},{name:"葫芦岛",value:35,series:1},{name:"常熟",value:36,series:1},{name:"东莞",value:36,series:1},{name:"河源",value:36,series:1},{name:"淮安",value:36,series:1},{name:"泰州",value:36,series:1},{name:"南宁",value:37,series:1},{name:"营口",value:37,series:1},{name:"惠州",value:37,series:1},{name:"江阴",value:37,series:1},{name:"蓬莱",value:37,series:1},{name:"韶关",value:38,series:1},{name:"嘉峪关",value:38,series:1},{name:"广州",value:38,series:1},{name:"延安",value:38,series:1},{name:"太原",value:39,series:1},{name:"清远",value:39,series:1},{name:"中山",value:39,series:1},{name:"昆明",value:39,series:1},{name:"寿光",value:40,series:1},{name:"盘锦",value:40,series:1},{name:"长治",value:41,series:1},{name:"深圳",value:41,series:1},{name:"珠海",value:42,series:1},{name:"宿迁",value:43,series:1},{name:"咸阳",value:43,series:1},{name:"铜川",value:44,series:1},{name:"平度",value:44,series:1},{name:"佛山",value:44,series:1},{name:"海口",value:44,series:1},{name:"江门",value:45,series:1},{name:"章丘",value:45,series:1},{name:"肇庆",value:46,series:1},{name:"大连",value:47,series:1},{name:"临汾",value:47,series:1},{name:"吴江",value:47,series:1},{name:"石嘴山",value:49,series:1},{name:"沈阳",value:50,series:1},{name:"苏州",value:50,series:1},{name:"茂名",value:50,series:1},{name:"嘉兴",value:51,series:1},{name:"长春",value:51,series:1},{name:"胶州",value:52,series:1},{name:"银川",value:52,series:1},{name:"张家港",value:52,series:1},{name:"三门峡",value:53,series:1},{name:"锦州",value:54,series:1},{name:"南昌",value:54,series:1},{name:"柳州",value:54,series:1},{name:"三亚",value:54,series:1},{name:"自贡",value:56,series:1},{name:"吉林",value:56,series:1},{name:"阳江",value:57,series:1},{name:"泸州",value:57,series:1},{name:"西宁",value:57,series:1},{name:"宜宾",value:58,series:1},{name:"呼和浩特",value:58,series:1},{name:"成都",value:58,series:1},{name:"大同",value:58,series:1},{name:"镇江",value:59,series:1},{name:"桂林",value:59,series:1},{name:"张家界",value:59,series:1},{name:"宜兴",value:59,series:1},{name:"北海",value:60,series:1},{name:"西安",value:61,series:1},{name:"金坛",value:62,series:1},{name:"东营",value:62,series:1},{name:"牡丹江",value:63,series:1},{name:"遵义",value:63,series:1},{name:"绍兴",value:63,series:1},{name:"扬州",value:64,series:1},{name:"常州",value:64,series:1},{name:"潍坊",value:65,series:1},{name:"重庆",value:66,series:1},{name:"台州",value:67,series:1},{name:"南京",value:67,series:1},{name:"滨州",value:70,series:1},{name:"贵阳",value:71,series:1},{name:"无锡",value:71,series:1},{name:"本溪",value:71,series:1},{name:"克拉玛依",value:72,series:1},{name:"渭南",value:72,series:1},{name:"马鞍山",value:72,series:1},{name:"宝鸡",value:72,series:1},{name:"焦作",value:75,series:1},{name:"句容",value:75,series:1},{name:"北京",value:79,series:1},{name:"徐州",value:79,series:1},{name:"衡水",value:80,series:1},{name:"包头",value:80,series:1},{name:"绵阳",value:80,series:1},{name:"乌鲁木齐",value:84,series:1},{name:"枣庄",value:84,series:1},{name:"杭州",value:84,series:1},{name:"淄博",value:85,series:1},{name:"鞍山",value:86,series:1},{name:"溧阳",value:86,series:1},{name:"库尔勒",value:86,series:1},{name:"安阳",value:90,series:1},{name:"开封",value:90,series:1},{name:"济南",value:92,series:1},{name:"德阳",value:93,series:1},{name:"温州",value:95,series:1},{name:"九江",value:96,series:1},{name:"邯郸",value:98,series:1},{name:"临安",value:99,series:1},{name:"兰州",value:99,series:1},{name:"沧州",value:100,series:1},{name:"临沂",value:103,series:1},{name:"南充",value:104,series:1},{name:"天津",value:105,series:1},{name:"富阳",value:106,series:1},{name:"泰安",value:112,series:1},{name:"诸暨",value:112,series:1},{name:"郑州",value:113,series:1},{name:"哈尔滨",value:114,series:1},{name:"聊城",value:116,series:1},{name:"芜湖",value:117,series:1},{name:"唐山",value:119,series:1},{name:"平顶山",value:119,series:1},{name:"邢台",value:11,series:19},{name:"德州",value:120,series:1},{name:"济宁",value:120,series:1},{name:"荆州",value:127,series:1},{name:"宜昌",value:130,series:1},{name:"义乌",value:132,series:1},{name:"丽水",value:133,series:1},{name:"洛阳",value:134,series:1},{name:"秦皇岛",value:136,series:1},{name:"株洲",value:143,series:1},{name:"石家庄",value:147,series:1},{name:"莱芜",value:148,series:1},{name:"常德",value:152,series:1},{name:"保定",value:153,series:1},{name:"湘潭",value:154,series:1},{name:"金华",value:157,series:1},{name:"岳阳",value:169,series:1},{name:"长沙",value:175,series:1},{name:"衢州",value:177,series:1},{name:"廊坊",value:193,series:1},{name:"菏泽",value:194,series:1},{name:"合肥",value:229,series:1},{name:"武汉",value:273,series:1},{name:"大庆",value:279,series:1}],this.geoCoordMap={"海门":[121.15,31.89],"鄂尔多斯":[109.781327,39.608266],"招远":[120.38,37.35],"舟山":[122.207216,29.985295],"齐齐哈尔":[123.97,47.33],"盐城":[120.13,33.38],"赤峰":[118.87,42.28],"青岛":[120.33,36.07],"乳山":[121.52,36.89],"金昌":[102.188043,38.520089],"泉州":[118.58,24.93],"莱西":[120.53,36.86],"日照":[119.46,35.42],"胶南":[119.97,35.88],"南通":[121.05,32.08],"拉萨":[91.11,29.97],"云浮":[112.02,22.93],"梅州":[116.1,24.55],"文登":[122.05,37.2],"上海":[121.48,31.22],"攀枝花":[101.718637,26.582347],"威海":[122.1,37.5],"承德":[117.93,40.97],"厦门":[118.1,24.46],"汕尾":[115.375279,22.786211],"潮州":[116.63,23.68],"丹东":[124.37,40.13],"太仓":[121.1,31.45],"曲靖":[103.79,25.51],"烟台":[121.39,37.52],"福州":[119.3,26.08],"瓦房店":[121.979603,39.627114],"即墨":[120.45,36.38],"抚顺":[123.97,41.97],"玉溪":[102.52,24.35],"张家口":[114.87,40.82],"阳泉":[113.57,37.85],"莱州":[119.942327,37.177017],"湖州":[120.1,30.86],"汕头":[116.69,23.39],"昆山":[120.95,31.39],"宁波":[121.56,29.86],"湛江":[110.359377,21.270708],"揭阳":[116.35,23.55],"荣成":[122.41,37.16],"连云港":[119.16,34.59],"葫芦岛":[120.836932,40.711052],"常熟":[120.74,31.64],"东莞":[113.75,23.04],"河源":[114.68,23.73],"淮安":[119.15,33.5],"泰州":[119.9,32.49],"南宁":[108.33,22.84],"营口":[122.18,40.65],"惠州":[114.4,23.09],"江阴":[120.26,31.91],"蓬莱":[120.75,37.8],"韶关":[113.62,24.84],"嘉峪关":[98.289152,39.77313],"广州":[113.23,23.16],"延安":[109.47,36.6],"太原":[112.53,37.87],"清远":[113.01,23.7],"中山":[113.38,22.52],"昆明":[102.73,25.04],"寿光":[118.73,36.86],"盘锦":[122.070714,41.119997],"长治":[113.08,36.18],"深圳":[114.07,22.62],"珠海":[113.52,22.3],"宿迁":[118.3,33.96],"咸阳":[108.72,34.36],"铜川":[109.11,35.09],"平度":[119.97,36.77],"佛山":[113.11,23.05],"海口":[110.35,20.02],"江门":[113.06,22.61],"章丘":[117.53,36.72],"肇庆":[112.44,23.05],"大连":[121.62,38.92],"临汾":[111.5,36.08],"吴江":[120.63,31.16],"石嘴山":[106.39,39.04],"沈阳":[123.38,41.8],"苏州":[120.62,31.32],"茂名":[110.88,21.68],"嘉兴":[120.76,30.77],"长春":[125.35,43.88],"胶州":[120.03336,36.264622],"银川":[106.27,38.47],"张家港":[120.555821,31.875428],"三门峡":[111.19,34.76],"锦州":[121.15,41.13],"南昌":[115.89,28.68],"柳州":[109.4,24.33],"三亚":[109.511909,18.252847],"自贡":[104.778442,29.33903],"吉林":[126.57,43.87],"阳江":[111.95,21.85],"泸州":[105.39,28.91],"西宁":[101.74,36.56],"宜宾":[104.56,29.77],"呼和浩特":[111.65,40.82],"成都":[104.06,30.67],"大同":[113.3,40.12],"镇江":[119.44,32.2],"桂林":[110.28,25.29],"张家界":[110.479191,29.117096],"宜兴":[119.82,31.36],"北海":[109.12,21.49],"西安":[108.95,34.27],"金坛":[119.56,31.74],"东营":[118.49,37.46],"牡丹江":[129.58,44.6],"遵义":[106.9,27.7],"绍兴":[120.58,30.01],"扬州":[119.42,32.39],"常州":[119.95,31.79],"潍坊":[119.1,36.62],"重庆":[106.54,29.59],"台州":[121.420757,28.656386],"南京":[118.78,32.04],"滨州":[118.03,37.36],"贵阳":[106.71,26.57],"无锡":[120.29,31.59],"本溪":[123.73,41.3],"克拉玛依":[84.77,45.59],"渭南":[109.5,34.52],"马鞍山":[118.48,31.56],"宝鸡":[107.15,34.38],"焦作":[113.21,35.24],"句容":[119.16,31.95],"北京":[116.46,39.92],"徐州":[117.2,34.26],"衡水":[115.72,37.72],"包头":[110,40.58],"绵阳":[104.73,31.48],"乌鲁木齐":[87.68,43.77],"枣庄":[117.57,34.86],"杭州":[120.19,30.26],"淄博":[118.05,36.78],"鞍山":[122.85,41.12],"溧阳":[119.48,31.43],"库尔勒":[86.06,41.68],"安阳":[114.35,36.1],"开封":[114.35,34.79],"济南":[117,36.65],"德阳":[104.37,31.13],"温州":[120.65,28.01],"九江":[115.97,29.71],"邯郸":[114.47,36.6],"临安":[119.72,30.23],"兰州":[103.73,36.03],"沧州":[116.83,38.33],"临沂":[118.35,35.05],"南充":[106.110698,30.837793],"天津":[117.2,39.13],"富阳":[119.95,30.07],"泰安":[117.13,36.18],"诸暨":[120.23,29.71],"郑州":[113.65,34.76],"哈尔滨":[126.63,45.75],"聊城":[115.97,36.45],"芜湖":[118.38,31.33],"唐山":[118.02,39.63],"平顶山":[113.29,33.75],"邢台":[114.48,37.05],"德州":[116.29,37.45],"济宁":[116.59,35.38],"荆州":[112.239741,30.335165],"宜昌":[111.3,30.7],"义乌":[120.06,29.32],"丽水":[119.92,28.45],"洛阳":[112.44,34.7],"秦皇岛":[119.57,39.95],"株洲":[113.16,27.83],"石家庄":[114.48,38.03],"莱芜":[117.67,36.19],"常德":[111.69,29.05],"保定":[115.48,38.85],"湘潭":[112.91,27.87],"金华":[119.64,29.12],"岳阳":[113.09,29.37],"长沙":[113,28.21],"衢州":[118.88,28.97],"廊坊":[116.7,39.53],"菏泽":[115.480656,35.23375],"合肥":[117.27,31.86],"武汉":[114.31,30.52],"大庆":[125.03,46.58]}}return BreathingBubbleLayerComponent.prototype.ngOnChanges=function(e){var t=this,o=[];this.bubbleType.forEach((function(e){o.push({coordinateSystem:"bmap",data:t.convertData(t.data,e.key),itemStyle:{normal:{color:e.color}},label:{formatter:"{b}",position:"right",show:!1},symbolSize:t.getItem(e.size),name:e.key,type:"scatter"})})),this.parent.childInit({id:this.id,item:o})},BreathingBubbleLayerComponent.prototype.ngOnInit=function(){},BreathingBubbleLayerComponent.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},BreathingBubbleLayerComponent.prototype.getItem=function(v){if(v&&v.indexOf&&v.indexOf("function")>-1)return eval("("+v+")")},BreathingBubbleLayerComponent.prototype.convertData=function(e,t){for(var o=[],i=0;i<e.length;i++){var a=this.geoCoordMap[e[i].name];a&&e[i].series==t&&o.push({name:e[i].name,extraData:{lat:a[1],lng:a[0],s:e[i].series,value:e[i].value},value:a.concat(e[i].value)})}return o},BreathingBubbleLayerComponent}(),exports.ɵcb.decorators=[{type:i0.Component,args:[{selector:"sc-breathing-bubble-layer",template:"\n",styles:[""]}]}],exports.ɵcb.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("气泡类型",{type:"array",items:{type:"object",properties:{key:{type:"string"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}},size:{type:"string",title:"大小",ui:{widget:"textarea",autosize:{minRows:4}}}},ui:{spanLabelFixed:50}},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵcb.prototype,"bubbleType",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"地名"},value:{type:"number",title:"值"},series:{type:"string",title:"系列"}}}),__metadata("design:type",Array)],exports.ɵcb.prototype,"data",void 0),exports.ɵcb=__decorate([bbjWidgetBase.Widget("呼吸气泡层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵcb);var BreathingBubbleLayerModule=function(e){e.register(exports.ɵcb)};BreathingBubbleLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcb],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],BreathingBubbleLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var BasicPlanimetricMapModule=function(e){e.register(exports.ɵby)},PlanimetricMap2dComponent_1;BasicPlanimetricMapModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵby],imports:[common.CommonModule,ngxEcharts.NgxEchartsModule,bbjWidgetBase.WidgetBaseModule,BreathingBubbleLayerModule]}]}],BasicPlanimetricMapModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcc=PlanimetricMap2dComponent_1=function(e){function t(t){var o=e.call(this)||this;return o.http=t,o.mapStyle="china",o.zoom=1,o.areaColor="#323c48",o.borderColor="#404a59",o._areaColor="#2a333d",o.areaNamefont={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},o.showAreaName=!0,o.triggerType="mousemove",o.selectedMode="",o.zoomSwitch="false",o._borderColor="",o.shadowColor="#2a333d",o.shadowWidth=20,o.mapColorStart="#2a333d",o.mapColorEnd="#2a333d",o.selectColorStart="#2a333d",o.selectColorEnd="#2a333d",o.hasMap=!1,o.data=[],o.areaClick=new i0.EventEmitter,o.nameMap={Somalia:"索马里",Liechtenstein:"列支敦士登",Morocco:"摩洛哥","W. Sahara":"西撒哈拉",Serbia:"塞尔维亚",Afghanistan:"阿富汗",Angola:"安哥拉",Albania:"阿尔巴尼亚",Aland:"奥兰群岛",Andorra:"安道尔","United Arab Emirates":"阿拉伯联合酋长国",Argentina:"阿根廷",Armenia:"亚美尼亚","American Samoa":"美属萨摩亚","Fr. S. Antarctic Lands":"法属南部领地","Antigua and Barb.":"安提瓜和巴布达",Australia:"澳大利亚",Austria:"奥地利",Azerbaijan:"阿塞拜疆",Burundi:"布隆迪",Belgium:"比利时",Benin:"贝宁","Burkina Faso":"布基纳法索",Bangladesh:"孟加拉国",Bulgaria:"保加利亚",Bahrain:"巴林",Bahamas:"巴哈马","Bosnia and Herz.":"波斯尼亚和黑塞哥维那",Belarus:"白俄罗斯",Belize:"伯利兹",Bermuda:"百慕大",Bolivia:"玻利维亚",Brazil:"巴西",Barbados:"巴巴多斯",Brunei:"文莱",Bhutan:"不丹",Botswana:"博茨瓦纳","Central African Rep.":"中非共和国",Canada:"加拿大",Switzerland:"瑞士",Chile:"智利",China:"中国","Côte d'Ivoire":"科特迪瓦",Cameroon:"喀麦隆","Dem. Rep. Congo":"刚果(金)",Congo:"刚果(布)",Colombia:"哥伦比亚",Comoros:"科摩罗","Cape Verde":"佛得角","Costa Rica":"哥斯达黎加",Cuba:"古巴","Curaçao":"库拉索","Cayman Is.":"开曼群岛","N. Cyprus":"北塞浦路斯",Cyprus:"塞浦路斯","Czech Rep.":"捷克",Germany:"德国",Djibouti:"吉布提",Dominica:"多米尼克",Denmark:"丹麦","Dominican Rep.":"多米尼加",Algeria:"阿尔及利亚",Ecuador:"厄瓜多尔",Egypt:"埃及",Eritrea:"厄立特里亚",Spain:"西班牙",Estonia:"爱沙尼亚",Ethiopia:"埃塞俄比亚",Finland:"芬兰",Fiji:"斐济","Falkland Is.":"福克兰群岛",France:"法国","Faeroe Is.":"法罗群岛",Micronesia:"密克罗尼西亚",Gabon:"加蓬","United Kingdom":"英国",Georgia:"格鲁吉亚",Ghana:"加纳",Guinea:"几内亚",Gambia:"冈比亚","Guinea-Bissau":"几内亚比绍","Eq. Guinea":"赤道几内亚",Greece:"希腊",Grenada:"格林纳达",Greenland:"格陵兰",Guatemala:"危地马拉",Guam:"关岛",Guyana:"圭亚那","Heard I. and McDonald Is.":"赫德岛和麦克唐纳群岛",Honduras:"洪都拉斯",Croatia:"克罗地亚",Haiti:"海地",Hungary:"匈牙利",Indonesia:"印度尼西亚","Isle of Man":"马恩岛",India:"印度","Br. Indian Ocean Ter.":"英属印度洋领地",Ireland:"爱尔兰",Iran:"伊朗",Iraq:"伊拉克",Iceland:"冰岛",Israel:"以色列",Italy:"意大利",Jamaica:"牙买加",Jersey:"泽西岛",Jordan:"约旦",Japan:"日本","Siachen Glacier":"锡亚琴冰川",Kazakhstan:"哈萨克斯坦",Kenya:"肯尼亚",Kyrgyzstan:"吉尔吉斯斯坦",Cambodia:"柬埔寨",Kiribati:"基里巴斯",Korea:"韩国",Kuwait:"科威特","Lao PDR":"老挝",Lebanon:"黎巴嫩",Liberia:"利比里亚",Libya:"利比亚","Saint Lucia":"圣卢西亚","Sri Lanka":"斯里兰卡",Lesotho:"莱索托",Lithuania:"立陶宛",Luxembourg:"卢森堡",Latvia:"拉脱维亚",Moldova:"摩尔多瓦",Madagascar:"马达加斯加",Mexico:"墨西哥",Macedonia:"北马其顿",Mali:"马里",Malta:"马耳他",Myanmar:"缅甸",Montenegro:"黑山",Mongolia:"蒙古","N. Mariana Is.":"北马里亚纳群岛",Mozambique:"莫桑比克",Mauritania:"毛里塔尼亚",Montserrat:"蒙特塞拉特",Mauritius:"毛里求斯",Malawi:"马拉维",Malaysia:"马来西亚",Namibia:"纳米比亚","New Caledonia":"新喀里多尼亚",Niger:"尼日尔",Nigeria:"尼日利亚",Nicaragua:"尼加拉瓜",Niue:"纽埃",Netherlands:"荷兰",Norway:"挪威",Nepal:"尼泊尔","New Zealand":"新西兰",Oman:"阿曼",Pakistan:"巴基斯坦",Panama:"巴拿马",Peru:"秘鲁",Philippines:"菲律宾",Palau:"帕劳","Papua New Guinea":"巴布亚新几内亚",Poland:"波兰","Puerto Rico":"波多黎各","Dem. Rep. Korea":"朝鲜",Portugal:"葡萄牙",Paraguay:"巴拉圭",Palestine:"巴勒斯坦","Fr. Polynesia":"法属波利尼西亚",Qatar:"卡塔尔",Romania:"罗马尼亚",Russia:"俄罗斯",Rwanda:"卢旺达","Saudi Arabia":"沙特阿拉伯",Sudan:"苏丹","S. Sudan":"南苏丹",Senegal:"塞内加尔",Singapore:"新加坡","S. Geo. and S. Sandw. Is.":"南乔治亚岛和南桑威奇群岛","Saint Helena":"圣赫勒拿","Solomon Is.":"所罗门群岛","Sierra Leone":"塞拉利昂","El Salvador":"萨尔瓦多","St. Pierre and Miquelon":"圣皮埃尔和密克隆","São Tomé and Principe":"圣多美和普林西比",Suriname:"苏里南",Slovakia:"斯洛伐克",Slovenia:"斯洛文尼亚",Sweden:"瑞典",Swaziland:"斯威士兰",Seychelles:"塞舌尔",Syria:"叙利亚","Turks and Caicos Is.":"特克斯和凯科斯群岛",Chad:"乍得",Togo:"多哥",Thailand:"泰国",Tajikistan:"塔吉克斯坦",Turkmenistan:"土库曼斯坦","Timor-Leste":"东帝汶",Tonga:"汤加","Trinidad and Tobago":"特立尼达和多巴哥",Tunisia:"突尼斯",Turkey:"土耳其",Tanzania:"坦桑尼亚",Uganda:"乌干达",Ukraine:"乌克兰",Uruguay:"乌拉圭","United States":"美国",Uzbekistan:"乌兹别克斯坦","St. Vin. and Gren.":"圣文森特和格林纳丁斯",Venezuela:"委内瑞拉","U.S. Virgin Is.":"美属维尔京群岛",Vietnam:"越南",Vanuatu:"瓦努阿图",Samoa:"萨摩亚",Yemen:"也门","South Africa":"南非",Zambia:"赞比亚",Zimbabwe:"津巴布韦"},o._children=[],o.loadedMap={},o.stack=[],o.renderer="svg",o}return __extends(t,e),t.prototype.ngOnChanges=function(e){e.data&&(this.data&&this.data[0]&&(this.mapStyle=this.data[0].name,this.stack.push(this.mapStyle)),this.reloadMap())},t.prototype.ngOnInit=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return e=this,[4,this.http.get("/assets/mapListItem.json").toPromise()];case 1:return e.provinces=t.sent(),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.ngxEcharts&&(this.ngxEcharts.initChart=function(){})},t.prototype.chartInit=function(){var e,t,o,i,a,r=this,n=[];this.visualMap=[],this.renderer="svg",this._children.forEach((function(e){"visual"===e.type&&e.visualMap&&e.item.length&&(e.visualMap2&&r.visualMap.push(e.visualMap2),r.visualMap.push(e.visualMap),e.visualMap.seriesIndex=n.length),n=Array.isArray(e.item)?__spread(n,e.item):__spread(n,[e.item])})),n.forEach((function(e,t){"lines"===e.type&&(delete e.coordinateSystem,r.renderer="canvas"),"scatter"===e.type&&(e.coordinateSystem="geo")}));var s=getEchartsTextStyle(this.areaNamefont);this.chartOption={tooltip:{trigger:"item",triggerOn:this.triggerType?this.triggerType:"mousemove"},geo:{label:{normal:{show:this.showAreaName,textStyle:s},emphasis:{show:this.showAreaName,textStyle:s}},selectedMode:this.selectedMode,select:{label:{show:this.showAreaName,textStyle:{color:(null===(e=this.areaNamefont)||void 0===e?void 0:e.color)||"#fff",fontSize:(null===(t=this.areaNamefont)||void 0===t?void 0:t.size)||12,fontFamily:(null===(o=this.areaNamefont)||void 0===o?void 0:o.family)||"",lineHeight:(null===(i=this.areaNamefont)||void 0===i?void 0:i.lineHeight)||12}},itemStyle:{areaColor:{type:"radial",x:.5,y:.5,r:.8,colorStops:[{offset:0,color:this.selectColorStart?this.selectColorStart:this._areaColor},{offset:1,color:this.selectColorEnd?this.selectColorEnd:this._areaColor}],globalCoord:!1},borderColor:this._borderColor}},itemStyle:{normal:{borderColor:this.borderColor,opacity:1,areaColor:{type:"radial",x:.5,y:.5,r:.8,colorStops:[{offset:0,color:this.mapColorStart?this.mapColorStart:this.areaColor},{offset:1,color:this.mapColorEnd?this.mapColorEnd:this.areaColor}],globalCoord:!1},shadowColor:this.shadowColor,shadowBlur:this.shadowWidth,shadowOffsetX:-2,shadowOffsetY:2},emphasis:{areaColor:{type:"radial",x:.5,y:.5,r:.8,colorStops:[{offset:0,color:this.selectColorStart?this.selectColorStart:this._areaColor},{offset:1,color:this.selectColorEnd?this.selectColorEnd:this._areaColor}],globalCoord:!1},borderColor:this._borderColor}},map:this.mapStyle,roam:this.zoomSwitch,nameMap:this.nameMap,zoom:this.zoom},series:n},(null===(a=this.visualMap)||void 0===a?void 0:a.length)&&(this.chartOption.visualMap=this.visualMap)},t.prototype.childInit=function(e){if(e.id){var t=this._children.findIndex((function(t){return t.id===e.id}));t>-1?this._children[t]=e:this._children.push(e),this.chartInit()}},t.prototype.deleteChild=function(e){if(e){var t=this._children.findIndex((function(t){return t.id===e}));t>-1&&(this._children.splice(t,1),this.chartInit())}},t.prototype.reloadMap=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(o){switch(o.label){case 0:return e=this.mapStyle,null!=echarts.getMap(e)?[3,2]:[4,this.http.get("assets/echarts/map/json/"+e+".json").toPromise()];case 1:t=o.sent(),echarts.registerMap(e,t),o.label=2;case 2:return this.hasMap=!0,this.chartInit(),[2]}}))}))},t.prototype.markClick=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o,i,a,r,n,s,d,l,p,c;return __generator(this,(function(g){if(e.seriesId)t=e.value[0],o=e.value[1],(i=this._children.find((function(t){return e.seriesId.startsWith(t.id)})))&&i.onClick&&i.onClick(e);else{if(a=echarts.getMap(this.mapStyle))try{for(r=__values(a.geoJson.features),n=r.next();!n.done;n=r.next())if(s=n.value,(d=s.properties).name===e.name){d.cp?(t=d.cp[0],o=d.cp[1]):d.center?(t=d.center[0],o=d.center[1]):console.log(d);break}}catch(e){p={error:e}}finally{try{n&&!n.done&&(c=r.return)&&c.call(r)}finally{if(p)throw p.error}}(l=this.provinces.find((function(t){return t.label===e.name})))&&(this.stack.push(this.mapStyle),this.mapStyle=l.value,this.reloadMap())}return this.areaClick.emit({name:e.name,lng:t,lat:o}),[2]}))}))},t.prototype.rollback=function(e){e.preventDefault(),null!=this.stack&&0!=this.stack.length&&(this.mapStyle=this.stack.pop(),this.reloadMap())},t.prototype.getTextStyle=function(){},t}(ParentContainerComponent),exports.ɵcc.decorators=[{type:i0.Component,args:[{selector:"sc-planimetric-map2d",template:'<ng-template *ngFor="let child of children" widget-host [widget]="child"></ng-template>\n<div\n echarts\n *ngIf="hasMap"\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="markClick($event)"\n (contextmenu)="rollback($event)"\n [initOpts]="{ renderer: renderer}"\n></div>\n\x3c!-- --\x3e\n',providers:[{provide:ParentContainerComponent,useExisting:i0.forwardRef((function(){return PlanimetricMap2dComponent_1}))}],styles:[".demo-chart,:host{height:100%}:host{display:block;width:100%}"]}]}],exports.ɵcc.ctorParameters=function(){return[{type:i2.HttpClient}]},exports.ɵcc.propDecorators={ngxEcharts:[{type:i0.ViewChild,args:[ngxEcharts.NgxEchartsDirective]}]},__decorate([bbjWidgetBase.Property("地图样式",{ui:{widget:"myUrlSelect",url:"/assets/mapListItem.json"}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"mapStyle",void 0),__decorate([bbjWidgetBase.Property("地图缩放",{ui:{widget:"myRange",min:1,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"zoom",void 0),__decorate([bbjWidgetBase.Property("区域背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"areaColor",void 0),__decorate([bbjWidgetBase.Property("区域描边",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("移动高亮",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"_areaColor",void 0),__decorate([bbjWidgetBase.Property("地区字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"areaNamefont",void 0),__decorate([bbjWidgetBase.Property("显示地名",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcc.prototype,"showAreaName",void 0),__decorate([bbjWidgetBase.Property("触发方式",{ui:{widget:"select"},enum:[{label:"点击",value:"click"},{label:"鼠标移动",value:"mousemove"}]}),__metadata("design:type",Object)],exports.ɵcc.prototype,"triggerType",void 0),__decorate([bbjWidgetBase.Property("选中方式",{ui:{widget:"select"},enum:[{label:"默认",value:""},{label:"单选",value:"single"},{label:"多选",value:"multiple"}]}),__metadata("design:type",Object)],exports.ɵcc.prototype,"selectedMode",void 0),__decorate([bbjWidgetBase.Property("缩放开关",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcc.prototype,"zoomSwitch",void 0),__decorate([bbjWidgetBase.Property("高亮描边",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"_borderColor",void 0),__decorate([bbjWidgetBase.Property("阴影颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"shadowColor",void 0),__decorate([bbjWidgetBase.Property("边框粗细",{type:"number"}),__metadata("design:type",Object)],exports.ɵcc.prototype,"shadowWidth",void 0),__decorate([bbjWidgetBase.Property("地图渐变开始",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"mapColorStart",void 0),__decorate([bbjWidgetBase.Property("地图渐变结束",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"mapColorEnd",void 0),__decorate([bbjWidgetBase.Property("选中渐变开始",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"selectColorStart",void 0),__decorate([bbjWidgetBase.Property("选中渐变结束",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"selectColorEnd",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"地名"},lng:{type:"number",title:"经度"},lat:{type:"string",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵcc.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["name","lng","lat"]),bbjWidgetBase.Event("选中",{params:{properties:{name:{type:"string",title:"值"},lng:{type:"number",title:"经度"},lat:{type:"string",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"areaClick",void 0),exports.ɵcc=PlanimetricMap2dComponent_1=__decorate([bbjWidgetBase.Widget("2D平面地图",{group:"component",image:"assets/img/screen/2dmap.png",icon:"iconmokuai",children:[{title:"呼吸气泡层",type:"sc-breathing-bubble-layer",option:{},hidden:!0,hideChild:!0}],childTypes:["sc-fly-line-layer","sc-breathing-bubble-layer","sc-map2d-polyline-layer","sc-map2d-mark-layer","sc-map2d-visual-layer"],description:"hasChildItem"}),__metadata("design:paramtypes",[i2.HttpClient])],exports.ɵcc),exports.ɵce=function(){function e(e){this.parent=e,this.size=1,this.color="RGB(0, 252, 255)",this.data=[{from:"116.85059,31.69078",to:"118.69629,36.20882",fromInfo:"起点",toInfo:"终点"},{from:"120.89355,37.09024",to:"116.93848,31.61597",fromInfo:"起点",toInfo:"终点"},{from:"121.28906,29.34388",to:"117.20215,31.12820",fromInfo:"起点",toInfo:"终点"},{from:"118.16895,31.57854",to:"119.79492,32.47270",fromInfo:"起点",toInfo:"终点"},{from:"116.76270,33.35806",to:"116.49902,38.95941",fromInfo:"起点",toInfo:"终点"},{from:"116.41113,30.93992",to:"114.78516,26.58853",fromInfo:"起点",toInfo:"终点"},{from:"115.83984,32.13841",to:"97.47070,37.54458",fromInfo:"起点",toInfo:"终点"},{from:"116.27930,32.36140",to:"114.08203,36.27971",fromInfo:"起点",toInfo:"终点"},{from:"103.66699,25.79989",to:"116.05957,31.54109",fromInfo:"起点",toInfo:"终点"},{from:"112.14844,24.40714",to:"116.71875,33.21112",fromInfo:"起点",toInfo:"终点"},{from:"116.93848,31.65338",to:"118.34473,26.62782",fromInfo:"起点",toInfo:"终点"},{from:"90.70313,42.26105",to:"116.23535,32.32428",fromInfo:"起点",toInfo:"终点"},{from:"116.41113,30.82678",to:"114.87305,36.94989",fromInfo:"起点",toInfo:"终点"},{from:"116.45508,30.78904",to:"118.91602,28.57487",fromInfo:"起点",toInfo:"终点"},{from:"116.01562,40.07807",to:"116.71875,31.69078",fromInfo:"起点",toInfo:"终点"},{from:"116.71875,31.72817",to:"108.45703,40.24599",fromInfo:"起点",toInfo:"终点"},{from:"117.99316,40.84706",to:"116.85059,31.69078",fromInfo:"起点",toInfo:"终点"},{from:"118.30078,36.56260",to:"117.24609,40.97990",fromInfo:"起点",toInfo:"终点"},{from:"119.35547,26.86328",to:"120.41016,32.28713",fromInfo:"起点",toInfo:"终点"},{from:"113.07129,31.42866",to:"106.04004,31.31610",fromInfo:"起点",toInfo:"终点"},{from:"116.85059,31.31610",to:"110.43457,32.76880",fromInfo:"起点",toInfo:"终点"}],this.geoCoordMap={"海门":[121.15,31.89],"鄂尔多斯":[109.781327,39.608266],"招远":[120.38,37.35],"舟山":[122.207216,29.985295],"齐齐哈尔":[123.97,47.33],"盐城":[120.13,33.38],"赤峰":[118.87,42.28],"青岛":[120.33,36.07],"乳山":[121.52,36.89],"金昌":[102.188043,38.520089],"泉州":[118.58,24.93],"莱西":[120.53,36.86],"日照":[119.46,35.42],"胶南":[119.97,35.88],"南通":[121.05,32.08],"拉萨":[91.11,29.97],"云浮":[112.02,22.93],"梅州":[116.1,24.55],"文登":[122.05,37.2],"上海":[121.48,31.22],"攀枝花":[101.718637,26.582347],"威海":[122.1,37.5],"承德":[117.93,40.97],"厦门":[118.1,24.46],"汕尾":[115.375279,22.786211],"潮州":[116.63,23.68],"丹东":[124.37,40.13],"太仓":[121.1,31.45],"曲靖":[103.79,25.51],"烟台":[121.39,37.52],"福州":[119.3,26.08],"瓦房店":[121.979603,39.627114],"即墨":[120.45,36.38],"抚顺":[123.97,41.97],"玉溪":[102.52,24.35],"张家口":[114.87,40.82],"阳泉":[113.57,37.85],"莱州":[119.942327,37.177017],"湖州":[120.1,30.86],"汕头":[116.69,23.39],"昆山":[120.95,31.39],"宁波":[121.56,29.86],"湛江":[110.359377,21.270708],"揭阳":[116.35,23.55],"荣成":[122.41,37.16],"连云港":[119.16,34.59],"葫芦岛":[120.836932,40.711052],"常熟":[120.74,31.64],"东莞":[113.75,23.04],"河源":[114.68,23.73],"淮安":[119.15,33.5],"泰州":[119.9,32.49],"南宁":[108.33,22.84],"营口":[122.18,40.65],"惠州":[114.4,23.09],"江阴":[120.26,31.91],"蓬莱":[120.75,37.8],"韶关":[113.62,24.84],"嘉峪关":[98.289152,39.77313],"广州":[113.23,23.16],"延安":[109.47,36.6],"太原":[112.53,37.87],"清远":[113.01,23.7],"中山":[113.38,22.52],"昆明":[102.73,25.04],"寿光":[118.73,36.86],"盘锦":[122.070714,41.119997],"长治":[113.08,36.18],"深圳":[114.07,22.62],"珠海":[113.52,22.3],"宿迁":[118.3,33.96],"咸阳":[108.72,34.36],"铜川":[109.11,35.09],"平度":[119.97,36.77],"佛山":[113.11,23.05],"海口":[110.35,20.02],"江门":[113.06,22.61],"章丘":[117.53,36.72],"肇庆":[112.44,23.05],"大连":[121.62,38.92],"临汾":[111.5,36.08],"吴江":[120.63,31.16],"石嘴山":[106.39,39.04],"沈阳":[123.38,41.8],"苏州":[120.62,31.32],"茂名":[110.88,21.68],"嘉兴":[120.76,30.77],"长春":[125.35,43.88],"胶州":[120.03336,36.264622],"银川":[106.27,38.47],"张家港":[120.555821,31.875428],"三门峡":[111.19,34.76],"锦州":[121.15,41.13],"南昌":[115.89,28.68],"柳州":[109.4,24.33],"三亚":[109.511909,18.252847],"自贡":[104.778442,29.33903],"吉林":[126.57,43.87],"阳江":[111.95,21.85],"泸州":[105.39,28.91],"西宁":[101.74,36.56],"宜宾":[104.56,29.77],"呼和浩特":[111.65,40.82],"成都":[104.06,30.67],"大同":[113.3,40.12],"镇江":[119.44,32.2],"桂林":[110.28,25.29],"张家界":[110.479191,29.117096],"宜兴":[119.82,31.36],"北海":[109.12,21.49],"西安":[108.95,34.27],"金坛":[119.56,31.74],"东营":[118.49,37.46],"牡丹江":[129.58,44.6],"遵义":[106.9,27.7],"绍兴":[120.58,30.01],"扬州":[119.42,32.39],"常州":[119.95,31.79],"潍坊":[119.1,36.62],"重庆":[106.54,29.59],"台州":[121.420757,28.656386],"南京":[118.78,32.04],"滨州":[118.03,37.36],"贵阳":[106.71,26.57],"无锡":[120.29,31.59],"本溪":[123.73,41.3],"克拉玛依":[84.77,45.59],"渭南":[109.5,34.52],"马鞍山":[118.48,31.56],"宝鸡":[107.15,34.38],"焦作":[113.21,35.24],"句容":[119.16,31.95],"北京":[116.46,39.92],"徐州":[117.2,34.26],"衡水":[115.72,37.72],"包头":[110,40.58],"绵阳":[104.73,31.48],"乌鲁木齐":[87.68,43.77],"枣庄":[117.57,34.86],"杭州":[120.19,30.26],"淄博":[118.05,36.78],"鞍山":[122.85,41.12],"溧阳":[119.48,31.43],"库尔勒":[86.06,41.68],"安阳":[114.35,36.1],"开封":[114.35,34.79],"济南":[117,36.65],"德阳":[104.37,31.13],"温州":[120.65,28.01],"九江":[115.97,29.71],"邯郸":[114.47,36.6],"临安":[119.72,30.23],"兰州":[103.73,36.03],"沧州":[116.83,38.33],"临沂":[118.35,35.05],"南充":[106.110698,30.837793],"天津":[117.2,39.13],"富阳":[119.95,30.07],"泰安":[117.13,36.18],"诸暨":[120.23,29.71],"郑州":[113.65,34.76],"哈尔滨":[126.63,45.75],"聊城":[115.97,36.45],"芜湖":[118.38,31.33],"唐山":[118.02,39.63],"平顶山":[113.29,33.75],"邢台":[114.48,37.05],"德州":[116.29,37.45],"济宁":[116.59,35.38],"荆州":[112.239741,30.335165],"宜昌":[111.3,30.7],"义乌":[120.06,29.32],"丽水":[119.92,28.45],"洛阳":[112.44,34.7],"秦皇岛":[119.57,39.95],"株洲":[113.16,27.83],"石家庄":[114.48,38.03],"莱芜":[117.67,36.19],"常德":[111.69,29.05],"保定":[115.48,38.85],"湘潭":[112.91,27.87],"金华":[119.64,29.12],"岳阳":[113.09,29.37],"长沙":[113,28.21],"衢州":[118.88,28.97],"廊坊":[116.7,39.53],"菏泽":[115.480656,35.23375],"合肥":[117.27,31.86],"武汉":[114.31,30.52],"大庆":[125.03,46.58]}}return e.prototype.ngOnChanges=function(e){var t=[{coordinateSystem:"bmap",data:this.convertData(this.data),effect:{color:this.color,period:1,show:!0,symbolSize:[this.size,20],trailLength:.05},lineStyle:{normal:{color:"#a6c84c",curveness:.2,opacity:1,width:0}},type:"lines",zlevel:1}];this.parent.childInit({id:this.id,item:t})},e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.convertData=function(e){for(var t=[],o=0;o<e.length;o++){"string"==typeof e[o].from&&(e[o].from=e[o].from.split(",")),"string"==typeof e[o].to&&(e[o].to=e[o].to.split(",")),e[o].from&&e[o].to&&t.push({fromName:e[o].fromInfo,toName:e[o].toInfo,coords:[e[o].from,e[o].to]})}return t},e}(),exports.ɵce.decorators=[{type:i0.Component,args:[{selector:"sc-fly-line-layer",template:"",styles:[""]}]}],exports.ɵce.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("飞线粗细",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵce.prototype,"size",void 0),__decorate([bbjWidgetBase.Property("飞线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵce.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{from:{type:"number",title:"出发位置"},to:{type:"number",title:"结束位置"},fromInfo:{type:"string",title:"出发信息"},toInfo:{type:"string",title:"结束信息"}}}),__metadata("design:type",Array)],exports.ɵce.prototype,"data",void 0),exports.ɵce=__decorate([bbjWidgetBase.Widget("飞线层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵce);var FlyLineLayerModule=function(e){e.register(exports.ɵce)};FlyLineLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵce],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],FlyLineLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcg=function(){function e(e){this.parent=e,this.size=1,this.color="RGB(0, 252, 255)",this.data=[{group:"x",lng:"116.85",lat:"28.69"},{group:"x",lng:"116.35",lat:"28.79"},{group:"x",lng:"116.10",lat:"29"}],this.datalist=[]}return e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.ngOnChanges=function(e){this.grouping();var t=[{coordinateSystem:"bmap",data:this.datalist,polyline:!0,lineStyle:{normal:{color:this.color,opacity:.6,width:this.size}},type:"lines",name:"polyline",zlevel:1}];this.parent.childInit({id:this.id,item:t})},e.prototype.ngOnInit=function(){},e.prototype.grouping=function(){var e=this;this.datalist=[];var t=[],o={};null!=this.data&&(this.data.forEach((function(e){t.indexOf(e.group)<0&&t.push(e.group),o[e.group]=o[e.group]||{coords:[]};var i=[];i.push(e.lng),i.push(e.lat),o[e.group].coords.push(i)})),t.forEach((function(t){e.datalist.push(o[t])})))},e}(),exports.ɵcg.decorators=[{type:i0.Component,args:[{selector:"sc-map2d-polyline-layer",template:"",styles:[""]}]}],exports.ɵcg.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("线条粗细",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵcg.prototype,"size",void 0),__decorate([bbjWidgetBase.Property("线条颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵcg.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{group:{type:"string",title:"分组"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵcg.prototype,"data",void 0),exports.ɵcg=__decorate([bbjWidgetBase.Widget("折线层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵcg);var Map2dPolylineLayerModule=function(e){e.register(exports.ɵcg)};Map2dPolylineLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcg],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],Map2dPolylineLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$9={type:"string",title:"id"},ɵ1$9={type:"string",title:"id"};exports.ɵci=function(){function e(e){this.parent=e,this.groups=[],this.size=12,this.color="RGB(0, 252, 255)",this.data=[{address:"机楼1号",information:"暂无信息",group:"",lng:"116.7",lat:"28"}],this.makerClick=new i0.EventEmitter}return e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.ngOnChanges=function(e){var t=this,o={id:this.id,type:"scatter",coordinateSyste:"bmap",data:[],tooltip:{formatter:"{b}",position:"top",textStyle:{color:this.color,fontSize:this.size}},emphasis:{label:{show:!0}}};this.data.forEach((function(e){null!==t.groups&&t.groups.length>0&&t.groups.forEach((function(t){t.group===e.group&&("image://"+t.imageUrl,t.width)}));var i={id:e.id,name:e.address,value:[e.lng,e.lat],symbolSize:0,label:{formatter:function(e){return e.name},rich:{title:{fontSize:t.size,color:t.color,align:"left"},value:{fontSize:t.size,padding:[3,20,0,5],align:"right"}},color:t.color,fontSize:t.size,show:!0}};e.information&&(i.tooltip={formatter:e.information}),t.groups&&t.groups.length>0&&t.groups.forEach((function(e){e.imageUrl&&(i.label.rich[e.group]={height:e.width,align:"bottom",backgroundColor:{image:e.imageUrl}})})),o.data.push(i)})),this.parent.childInit({id:this.id,item:o,onClick:function(e){var o=e.data;t.makerClick.emit({id:o.id,address:o.name,lng:o.value[0],lat:o.value[1]})}})},e.prototype.ngOnInit=function(){},e}(),exports.ɵci.decorators=[{type:i0.Component,args:[{selector:"sc-map2d-mark-layer",template:"\n",styles:[""]}]}],exports.ɵci.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("标记分组",{type:"array",title:"标记分组",maxItems:10,items:{type:"object",properties:{imageUrl:{type:"string",title:"图片",ui:{widget:"myUpload"}},width:{type:"number",title:"大小"},group:{type:"string",title:"分组"}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵci.prototype,"groups",void 0),__decorate([bbjWidgetBase.Property("字体大小",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵci.prototype,"size",void 0),__decorate([bbjWidgetBase.Property("字体颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵci.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$9,address:{type:"string",title:"地点"},information:{type:"string",title:"信息"},group:{type:"string",title:"标记分组"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵci.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["id","address","lng","lat"]),bbjWidgetBase.Event("点击标记",{params:{properties:{id:ɵ1$9,address:{type:"string",title:"地点"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵci.prototype,"makerClick",void 0),exports.ɵci=__decorate([bbjWidgetBase.Widget("标记层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵci);var Map2dMarkLayerModule=function(e){e.register(exports.ɵci)};Map2dMarkLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵci],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],Map2dMarkLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵck=function(){function e(e){this.parent=e,this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},this.left=26,this.bottom=40,this.level=[{gte:0,lte:50,label:"等级1",color:"#AAAAAA",colorEnd:null,unit:""},{gte:50,label:"等级2",color:"#FF3333",colorEnd:null,unit:""}],this.max="高",this.min="低",this.prefix="",this.suffix="",this._data=[{name:"南海诸岛",value:0,tooltip:"告警统计<br />失联告警:0"},{name:"北京",value:54,tooltip:"告警统计<br />失联告警:54"},{name:"天津",value:13,tooltip:"告警统计<br />失联告警:13"},{name:"上海",value:40,tooltip:"告警统计<br />失联告警:40"},{name:"重庆",value:75,tooltip:"告警统计<br />失联告警:75"},{name:"河北",value:13,tooltip:"告警统计<br />失联告警:13"},{name:"海口市",value:70,tooltip:"告警统计<br />失联告警:70"}],this.dataClick=new i0.EventEmitter,this.xData=[],this.yData=[],this.series=[],this.style={color:"",fontFamily:"",fontWeight:"",fontSize:"",lineHeight:""},this.visualMap={}}return e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){var t=this;if(this.style={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},e._data){var o=!1,i=!1,a=this.level.map((function(e){var a=Object.assign({},e);return!i&&t.isLucency(e.color)&&(i=!0),e.color&&e.colorEnd&&(o=!0,a.color={type:"radial",x:.5,y:.5,r:.8,colorStops:[{offset:0,color:e.color},{offset:1,color:e.colorEnd}],globalCoord:!1}),a}));this.visualMap={min:0,max:500,left:this.left||26,bottom:this.bottom||40,showLabel:!0,text:[this.max,this.min],pieces:a,textStyle:this.style,show:!0};var r=[];this._data.length&&(r=[{name:"",type:"map",geoIndex:0,mapType:"",label:{normal:{show:!0,formatter:function(e){var o=e.value?e.value:0,i=t.prefix?t.prefix:"",a=t.suffix?t.suffix:"";return(e.name+"-"+i+o+a).split("-").join("\n")},textStyle:this.style},emphasis:{show:!1}},data:this._data}]);var n={id:this.id,item:r,visualMap:this.visualMap,type:"visual"};(o||i)&&(n.visualMap2=Object.assign(Object.assign({},this.visualMap),{pieces:this.level.map((function(e){return Object.assign(Object.assign({},e),{color:t.opacity(e.color)})}))}),n.visualMap.show=!1),this.parent.childInit(n)}},e.prototype.isLucency=function(e){if(e){var t=/rgba\(\d+,\d+,\d+,([\d.]+)\)/.exec(e);if(t)if(Number(t[1])<1)return!0}return!1},e.prototype.opacity=function(e){return e&&(e=e.replace(/rgba\((\d+),(\d+),(\d+),([\d.]+)\)/,(function(e,t,o,i,a){return console.log(e,t,o,i,a),"rgb("+t+","+o+","+i+")"}))),e},e}(),exports.ɵck.decorators=[{type:i0.Component,args:[{selector:"sc-map2d-visual-layer",template:"",styles:[""]}]}],exports.ɵck.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵck.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("左侧边距",{type:"number"}),__metadata("design:type",Object)],exports.ɵck.prototype,"left",void 0),__decorate([bbjWidgetBase.Property("底部边距",{type:"number"}),__metadata("design:type",Object)],exports.ɵck.prototype,"bottom",void 0),__decorate([bbjWidgetBase.Property("分级",{type:"array",title:"热力等级",maxItems:10,items:{type:"object",properties:{gte:{type:"number",title:"大于"},lte:{type:"number",title:"小于等于"},label:{type:"string",title:"标签"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}},colorEnd:{type:"string",title:"渐变颜色",ui:{widget:"myColor"}},unit:{type:"string",title:"单位"}},required:["label","color"]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵck.prototype,"level",void 0),__decorate([bbjWidgetBase.Property("正极名称",{max:{type:"string",title:"max",ui:{}},required:["max"]}),__metadata("design:type",Object)],exports.ɵck.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("负极名称",{min:{type:"string",title:"min",ui:{}},required:["min"]}),__metadata("design:type",Object)],exports.ɵck.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("前缀",{min:{type:"string",ui:{}}}),__metadata("design:type",Object)],exports.ɵck.prototype,"prefix",void 0),__decorate([bbjWidgetBase.Property("后缀",{min:{type:"string",ui:{}}}),__metadata("design:type",Object)],exports.ɵck.prototype,"suffix",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"地名"},value:{type:"number",title:"值"},tooltip:{type:"string",title:"提示"},lng:{type:"number",title:"中心经度"},lat:{type:"number",title:"中心纬度"}}}),__metadata("design:type",Array)],exports.ɵck.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["name","value","tooltip","lng","lat"]),__metadata("design:type",Object)],exports.ɵck.prototype,"dataClick",void 0),exports.ɵck=__decorate([bbjWidgetBase.Widget("热力层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵck);var Map2dVisualLayerModule=function(e){e.register(exports.ɵck)};Map2dVisualLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵck],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],Map2dVisualLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var PlanimetricMap2dModule=function(e){e.register(exports.ɵcc)};PlanimetricMap2dModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcc],imports:[common.CommonModule,ngxEcharts.NgxEchartsModule,bbjWidgetBase.WidgetBaseModule,FlyLineLayerModule,BreathingBubbleLayerModule,Map2dPolylineLayerModule,Map2dMarkLayerModule,Map2dVisualLayerModule]}]}],PlanimetricMap2dModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ParentContainerModule=function(e){},PlanimetricMap3dComponent_1;ParentContainerModule.decorators=[{type:i0.NgModule,args:[{declarations:[ParentContainerComponent],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],ParentContainerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var buttonEnum=[{label:"鼠标左键",value:"left"},{label:"鼠标中键",value:"middle"},{label:"鼠标右键",value:"right"}];exports.ɵcm=PlanimetricMap3dComponent_1=function(e){function t(t){var o=e.call(this,t)||this;return o.mapStyle="china",o.areaColor="#323c48",o.borderColor="#404a59",o._areaColor="#2a333d",o.areaNamefont={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},o.showAreaName=!0,o.shadowColor="#2a333d",o.boderWidth=2,o.regionHeight=3,o.projection="perspective",o.distance=100,o.orthographicSize=100,o.alpha=40,o.beta=0,o.panMouseButton="middle",o.rotateMouseButton="left",o.bloomIntensity=.1,o.hasMap=!1,o.data=[],o.areaClick=new i0.EventEmitter,o}return __extends(t,e),t.prototype.chartInit=function(){var e=getEchartsTextStyle(this.areaNamefont),t={type:"map3D",boxHeight:7,regionHeight:this.regionHeight,label:Object.assign({show:this.showAreaName,distance:0},e),selectedMode:this.selectedMode,itemStyle:{color:this.areaColor,borderColor:this.borderColor,borderWidth:this.boderWidth},emphasis:{label:Object.assign({show:this.showAreaName},e),itemStyle:{color:this._areaColor}},map:this.mapStyle,roam:this.zoomSwitch,nameMap:this.nameMap,zoom:this.zoom,viewControl:{projection:this.projection,distance:this.distance,orthographicSize:this.orthographicSize,alpha:this.alpha,beta:this.beta,panMouseButton:this.panMouseButton,rotateMouseButton:this.rotateMouseButton},postEffect:{enable:this.bloomEnable,bloom:{enable:this.bloomEnable,bloomIntensity:this.bloomIntensity}}},o=[];this._children.forEach((function(e){Array.isArray(e.item)?o.push.apply(o,__spread(e.item)):o.push(e.item)})),this.chartOption={geo3D:t,tooltip:{},series:o}},t}(exports.ɵcc),exports.ɵcm.decorators=[{type:i0.Component,args:[{selector:"sc-planimetric-map3d",template:'<ng-template *ngFor="let child of children" widget-host [widget]="child"></ng-template>\n<div echarts *ngIf="hasMap" [options]="chartOption" class="demo-chart" (chartClick)=\'markClick($event)\' (contextmenu)=\'rollback($event)\'></div> ',providers:[{provide:ParentContainerComponent,useExisting:i0.forwardRef((function(){return PlanimetricMap3dComponent_1}))}],styles:[".demo-chart,:host{height:100%}:host{display:block;width:100%}"]}]}],exports.ɵcm.ctorParameters=function(){return[{type:i2.HttpClient}]},__decorate([bbjWidgetBase.Property("地图样式",{ui:{widget:"myUrlSelect",url:"/assets/mapListItem.json"}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"mapStyle",void 0),__decorate([bbjWidgetBase.Property("区域背景",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"areaColor",void 0),__decorate([bbjWidgetBase.Property("区域描边",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("移动高亮",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"_areaColor",void 0),__decorate([bbjWidgetBase.Property("地区字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"areaNamefont",void 0),__decorate([bbjWidgetBase.Property("显示地名",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcm.prototype,"showAreaName",void 0),__decorate([bbjWidgetBase.Property("阴影颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"shadowColor",void 0),__decorate([bbjWidgetBase.Property("边框粗细",{type:"number"}),__metadata("design:type",Object)],exports.ɵcm.prototype,"boderWidth",void 0),__decorate([bbjWidgetBase.Property("模型高度",{type:"number"}),__metadata("design:type",Object)],exports.ɵcm.prototype,"regionHeight",void 0),__decorate([bbjWidgetBase.Property("投影方式",{enum:[{label:"透视投影",value:"perspective"},{label:"正交投影",value:"orthographic"}]}),__metadata("design:type",Object)],exports.ɵcm.prototype,"projection",void 0),__decorate([bbjWidgetBase.Property("视角距离",{type:"number",ui:{visibleIf:{projection:["perspective"]}}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"distance",void 0),__decorate([bbjWidgetBase.Property("正交大小",{type:"number",ui:{visibleIf:{projection:["orthographic"]}}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"orthographicSize",void 0),__decorate([bbjWidgetBase.Property("alpha角",{type:"number"}),__metadata("design:type",Object)],exports.ɵcm.prototype,"alpha",void 0),__decorate([bbjWidgetBase.Property("beta角",{type:"number"}),__metadata("design:type",Object)],exports.ɵcm.prototype,"beta",void 0),__decorate([bbjWidgetBase.Property("平移操作",{enum:buttonEnum}),__metadata("design:type",Object)],exports.ɵcm.prototype,"panMouseButton",void 0),__decorate([bbjWidgetBase.Property("旋转操作",{enum:buttonEnum}),__metadata("design:type",Object)],exports.ɵcm.prototype,"rotateMouseButton",void 0),__decorate([bbjWidgetBase.Property("开启光晕",{type:"boolean"}),__metadata("design:type",Boolean)],exports.ɵcm.prototype,"bloomEnable",void 0),__decorate([bbjWidgetBase.Property("光晕强度",{type:"number",ui:{visibleIf:{bloomEnable:[!0]}}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"bloomIntensity",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"地名"},lng:{type:"number",title:"经度"},lat:{type:"string",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵcm.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["name","lng","lat"]),bbjWidgetBase.Event("选中",{params:{properties:{name:{type:"string",title:"值"},lng:{type:"number",title:"经度"},lat:{type:"string",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"areaClick",void 0),exports.ɵcm=PlanimetricMap3dComponent_1=__decorate([bbjWidgetBase.Widget("3D平面地图",{group:"component",image:"assets/img/screen/3dmap.png",icon:"iconmokuai",children:[{title:"散点图",type:"sc-map3d-mark-layer",option:{},hidden:!0,hideChild:!0}],childTypes:["sc-map3d-mark-layer","sc-map3d-line-layer"],description:"hasChildItem"}),__metadata("design:paramtypes",[i2.HttpClient])],exports.ɵcm);var ɵ0$a={type:"string",title:"id"},ɵ1$a={type:"string",title:"id"};exports.ɵco=function(){function e(e,t){this.parent=e,this.http=t,this.groups=[{group:"",symbol:"circle",size:30}],this.data=[{address:"机楼1号",information:"暂无信息",group:"",lng:"120",lat:"28"}],this.makerClick=new i0.EventEmitter}return e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.ngOnChanges=function(e){this.reload()},e.prototype.reload=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,i,a,r,n,s,d,l,p,c=this;return __generator(this,(function(g){switch(g.label){case 0:e={},t=[],o={},g.label=1;case 1:g.trys.push([1,6,7,8]),i=__values(this.groups),a=i.next(),g.label=2;case 2:return a.done?[3,5]:(r=a.value,n=r.group||"",e[n]=r,[4,this.getSeries(r)]);case 3:s=g.sent(),t.push(s),o[n]=s,g.label=4;case 4:return a=i.next(),[3,2];case 5:return[3,8];case 6:return d=g.sent(),l={error:d},[3,8];case 7:try{a&&!a.done&&(p=i.return)&&p.call(i)}finally{if(l)throw l.error}return[7];case 8:return this.data.forEach((function(e){var t=o[e.group];null==t&&(t=o[""]),t&&t.data.push({id:e.id,name:e.address,value:[+e.lng,+e.lat,1,e.information]})})),this.parent.childInit({id:this.id,item:t,onClick:function(e){var t=e.data;c.makerClick.emit({id:t.id,address:t.name,lng:t.value[0],lat:t.value[1]})}}),[2]}}))}))},e.prototype.getSeries=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o,i,a,r,n,s;return __generator(this,(function(d){switch(d.label){case 0:return"image"!==(t=e.symbol)?[3,5]:(o=e.image)?o.endsWith("svg")?[4,this.http.get(o,{responseType:"text"}).toPromise()]:[3,2]:[3,4];case 1:for(i=d.sent(),a=(new DOMParser).parseFromString(i,"text/xml"),r=a.getElementsByTagName("path"),t="path://",n=0;n<r.length;n++)s=r[n],n>0&&(t+=" "),t+=s.getAttribute("d").replace(" ",",");return[3,3];case 2:t="image://"+location.origin+o,d.label=3;case 3:return[3,5];case 4:t="none",d.label=5;case 5:return[2,{id:this.id+e.group,type:"scatter3D",coordinateSystem:"geo3D",data:[],tooltip:{formatter:function(e){return e.value[3]}},label:{show:!0,formatter:"{b}",position:"bottom",textStyle:getEchartsTextStyle(e.font)},symbol:t,symbolSize:e.size,itemStyle:{color:e.color,opacity:1}}]}}))}))},e.prototype.ngOnInit=function(){},e}(),exports.ɵco.decorators=[{type:i0.Component,args:[{selector:"sc-map3d-mark-layer",template:"",styles:[""]}]}],exports.ɵco.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]},{type:i2.HttpClient}]},__decorate([bbjWidgetBase.Property("分组",{type:"array",title:"分组",maxItems:10,items:{type:"object",properties:{group:{type:"string",title:"分组"},symbol:{type:"string",title:"形状",enum:[{label:"圆",value:"circle"},{label:"矩形",value:"rect"},{label:"圆角矩形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"菱形",value:"diamond"},{label:"针形",value:"pin"},{label:"箭头",value:"arrow"},{label:"无",value:"none"},{label:"图片",value:"image"}]},image:{title:"图片",type:"string",ui:{widget:"myPicture",visibleIf:{symbol:["image"]}}},size:{type:"number",title:"大小"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}},font:{type:"string",title:"字体",ui:{widget:"myFont"}}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵco.prototype,"groups",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$a,address:{type:"string",title:"地点"},information:{type:"string",title:"信息"},group:{type:"string",title:"标记分组"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵco.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["id","address","lng","lat"]),bbjWidgetBase.Event("点击标记",{params:{properties:{id:ɵ1$a,address:{type:"string",title:"地点"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵco.prototype,"makerClick",void 0),exports.ɵco=__decorate([bbjWidgetBase.Widget("散点图",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent,i2.HttpClient])],exports.ɵco);var Map3dMarkLayerModule=function(e){e.register(exports.ɵco)};Map3dMarkLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵco],imports:[common.CommonModule]}]}],Map3dMarkLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcq=function(){function e(e){this.parent=e,this.width=4,this.color="rgba(242,213,173,0.85)",this.data=[{group:"x",lng:"120.7",lat:"28"},{group:"x",lng:"120.71",lat:"28.01"},{group:"x",lng:"120.79",lat:"28.1"},{group:"y",lng:"120.72",lat:"28.02"},{group:"y",lng:"120.73",lat:"28.03"},{group:"y",lng:"120.81",lat:"28.12"}]}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.ngOnChanges=function(e){this.reload()},e.prototype.reload=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o;return __generator(this,(function(i){return console.log(this.data),e=[],t={},this.data.forEach((function(o){var i=t[o.group];i||(i=[],t[o.group]=i,e.push(i)),i.push([+o.lng,+o.lat,1])})),o={type:"lines3D",coordinateSystem:"geo3D",polyline:!0,lineStyle:{width:this.width,color:this.color,opacity:1},data:e,silent:!0},this.parent.childInit({id:this.id,item:o}),[2]}))}))},e}(),exports.ɵcq.decorators=[{type:i0.Component,args:[{selector:"sc-map3d-line-layer",template:"",styles:[""]}]}],exports.ɵcq.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("线条宽度",{ui:{widget:"myRange",min:1,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵcq.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("线条颜色",{type:"string",ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcq.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{group:{type:"string",title:"分组"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵcq.prototype,"data",void 0),exports.ɵcq=__decorate([bbjWidgetBase.Widget("折线图",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵcq);var Map3dLineLayerModule=function(e){e.register(exports.ɵcq)};Map3dLineLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcq],imports:[common.CommonModule]}]}],Map3dLineLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var PlanimetricMap3dModule=function(e){e.register(exports.ɵcm)};PlanimetricMap3dModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcm],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule,Map3dMarkLayerModule,Map3dLineLayerModule]}]}],PlanimetricMap3dModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcs=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),exports.ɵcs.decorators=[{type:i0.Component,args:[{selector:"sc-mip-anim",template:"<div [style.backgroundImage]=\"'url(' + image + ')'\" class=\"image\"></div>",styles:[".image{width:100%;height:100%;background-repeat:no-repeat;background-size:contain}"]}]}],exports.ɵcs.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("图片",{ui:{widget:"myPicture"}}),__metadata("design:type",String)],exports.ɵcs.prototype,"image",void 0),exports.ɵcs=__decorate([bbjWidgetBase.Widget("动态图",{group:"mipAnim",icon:"icontupian"}),__metadata("design:paramtypes",[])],exports.ɵcs);var MipAnimModule=function(e){e.register(exports.ɵcs)};MipAnimModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcs],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],MipAnimModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵct=function(){function e(e,t){this.arrayService=e,this.elementRef=t,this.font={family:"",color:"#595F7A",weight:"normal",size:16,space:0,lineHeight:0},this.grid={top:0,right:0,bottom:0,left:0},this.checkable=!1,this.outputType="array",this.checkStrictly=!1,this.showLine=!1,this.expandAll=!1,this.expandLevel=0,this.iconWidth=20,this.iconHeight=20,this.iconPosition="left",this.nodeDefaultIcon=null,this.nodeBackground=null,this.selectedBackground="#bae7ff",this.nodeCheckedColor="#333",this.nodeCheckedBackground=null,this.searchBorderColor="#8F9AB3",this.searchBackgroundColor="rgba(0,0,0,0)",this.searchPlaceholder="请输入搜索内容",this.treeScrollbarThumbBackground="#ddd",this.data=[{title:"江苏省",key:"300",parentKey:""},{title:"浙江省",key:"100",parentKey:""},{title:"杭州市",key:"1001",parentKey:"100"},{title:"顶顶区",key:"10010",parentKey:"1001"},{title:"的方区",key:"10011",parentKey:"1001"},{title:"温州市",key:"1002",parentKey:"100"},{title:"鹿城区",key:"10020",parentKey:"1002"},{title:"龙湾区",key:"10021",parentKey:"1002"}],this.keyChange=new i0.EventEmitter,this.nodes=[],this.selectedKeys=[],this.style={}}return e.prototype.ngOnInit=function(){document.body.style.setProperty("--treeScrollbar-thumb-background",this.treeScrollbarThumbBackground||"#ddd")},e.prototype.ngOnChanges=function(e){e.data&&(this.nodes=this.toTree(this.data),this.waittingSelect&&this.select(this.waittingSelect)),e.font&&this.updateStyle(),(e.data||e.expandLevel||e.expandAll)&&this.expand()},e.prototype.toTree=function(e){var t=this,o={},i=[],a=[];return e&&(e.forEach((function(e){var a=e.title,r=e.key,n=e.parentKey,s=e.parentKey_value,d=e.icon,l=e.count;if(r){var p={key:r,title:a,parentKey:s||n,icon:d,isLeaf:!0,count:l};t.selectedKeys.includes(r)&&(p.selected=!0),o[r]=p,i.push(p)}})),i.forEach((function(e){if(e.parentKey){var t=o[e.parentKey];if(t)return t.children=t.children||[],t.children.push(e),void(t.isLeaf=!1)}a.push(e)}))),a},e.prototype.expand=function(){var e=this;this.expandedKeys=[],(this.expandAll||this.expandLevel)&&this.arrayService.visitTree(this.nodes,(function(t,o,i){(e.expandAll||i<=e.expandLevel)&&e.expandedKeys.push(t.key)}))},e.prototype.updateStyle=function(){this.style=getFontStyle(this.font),this.elementRef.nativeElement.style.setProperty("--selected-background",this.selectedBackground||"#bae7ff")},e.prototype.onClick=function(e){this.onKeysChange(e.keys),this.nodeClick(e.node.key,e.node.title)},e.prototype.onKeysChange=function(e){this.waittingSelect=null,this.selectedKeys=e,this.checkable?"string"===this.outputType?this.keyChange.emit(null==e?void 0:e.join(";")):this.keyChange.emit(e):this.keyChange.emit(e[0])},e.prototype.onCheckBoxChange=function(e){this.onKeysChange(e.keys)},e.prototype.onNodeDblclick=function(e){var t=this;this.renamable&&(this.edittingNode=e.node,setTimeout((function(){t.renameInput&&t.renameInput.nativeElement.focus()})))},e.prototype.renameEnd=function(e){this.edittingNode=null,this.rename(e.key,e.title)},e.prototype.showNode=function(e){console.log(e)},e.prototype.search=function(e){this.searchValue=e},e.prototype.select=function(e){var t=this,o=!1,i=[];if(e&&(this.checkable?("string"==typeof e&&(e=e.split(";")),i.push.apply(i,__spread(e))):i.push(e)),this.selectedKeys=i,i.length){if(this.nodes){var a=[];this.arrayService.visitTree(this.nodes,(function(e){i.includes(e.key)&&a.push(e)})),a.length&&(this.onKeysChange(i),a.forEach((function(e){return t.nodeClick(e.key,e.title)})),o=!0)}o||(this.waittingSelect=e)}},e.prototype.nodeClick=function(e,t){},e.prototype.rename=function(e,t){},e}(),exports.ɵct.decorators=[{type:i0.Component,args:[{selector:"sc-tree-control",template:'<div *ngIf="showSearch" class="searchBox">\n <input\n class="search-input"\n type="text"\n nz-input\n [(ngModel)]="searchValue"\n [placeholder]="searchPlaceholder"\n [style]="{ \'border-color\': searchBorderColor, background: searchBackgroundColor }"\n />\n <i nz-icon nzType="search"></i>\n</div>\n\n<div class="warp-tree">\n <nz-tree\n #tree\n [ngClass]="{ \'ant-tree-nodeBgCustom\': nodeBackground }"\n [ngStyle]="style"\n [nzData]="nodes"\n [nzCheckable]="checkable"\n [nzMultiple]="checkable"\n [nzExpandAll]="expandAll"\n [nzShowLine]="showLine"\n [nzExpandedKeys]="expandedKeys"\n [nzCheckStrictly]="checkStrictly"\n [nzExpandedIcon]="nodeDefaultIcon ? multiExpandedIconTpl : null"\n [nzTreeTemplate]="nzTreeTemplate"\n [nzSearchValue]="searchValue"\n [nzHideUnMatched]="true"\n [nzSelectedKeys]="selectedKeys"\n [nzCheckedKeys]="selectedKeys"\n (nzClick)="onClick($event)"\n (nzDblClick)="onNodeDblclick($event)"\n (nzCheckBoxChange)="onCheckBoxChange($event)"\n >\n </nz-tree>\n <ng-template #multiExpandedIconTpl let-node let-origin="origin">\n <img [src]="nodeDefaultIcon" [class]="node.isExpanded ? \'nodeImg-open\' : \'\'" />\n </ng-template>\n\n <ng-template #nzTreeTemplate let-node let-origin="origin">\n <div\n class="custom-node"\n [style.color]="node.isSelected ? nodeCheckedColor : \'\'"\n [style.backgroundImage]="\n node.isSelected ? \'url(\' + nodeCheckedBackground + \')\' : nodeBackground ? \'url(\' + nodeBackground + \')\' : \'\'\n "\n [style.padding]="\n (grid?.top || 0) + \'px \' + (grid?.right || 0) + \'px \' + (grid?.bottom || 0) + \'px \' + (grid?.left || 0) + \'px\'\n "\n >\n <img\n *ngIf="origin.icon && iconPosition !== \'right\'"\n [src]="origin.icon"\n [style.width.px]="iconWidth"\n [style.height.px]="iconHeight"\n />\n <span\n *ngIf="edittingNode !== node"\n class="folder-name"\n [innerHTML]="node.title | nzHighlight: searchValue:\'i\':\'font-highlight\'"\n (click)="showNode(node)"\n ></span>\n <input *ngIf="edittingNode === node" #renameInput nz-input [(ngModel)]="node.title" (blur)="renameEnd(node)" />\n\n <span class="node-count" [class.noCount]="origin.count === \'0\'" *ngIf="origin.count || origin.count === \'0\'"\n >({{ origin.count }})</span\n >\n <img\n *ngIf="origin.icon && iconPosition === \'right\'"\n [src]="origin.icon"\n [style.width.px]="iconWidth"\n [style.height.px]="iconHeight"\n />\n\n \x3c!-- \n\n <img\n *ngIf="origin.icon && iconPosition !== \'right\'"\n [src]="origin.icon"\n [style.width.px]="iconWidth"\n [style.height.px]="iconHeight"\n />\n <span\n *ngIf="edittingNode !== node"\n class="folder-name"\n [innerHTML]="node.title | nzHighlight: searchValue:\'i\':\'font-highlight\'"\n ></span>\n <input *ngIf="edittingNode === node" #renameInput nz-input [(ngModel)]="node.title" (blur)="renameEnd(node)" />\n <img\n *ngIf="origin.icon && iconPosition === \'right\'"\n [src]="origin.icon"\n [style.width.px]="iconWidth"\n [style.height.px]="iconHeight"\n /> --\x3e\n </div>\n </ng-template>\n</div>\n',styles:[':host{display:block;height:100%;width:100%;overflow:hidden;display:flex;flex-direction:column}.ant-tree,.ant-tree ::ng-deep .ant-tree-checkbox-inner,.ant-tree ::ng-deep .ant-tree-switcher{background:initial}.ant-tree ::ng-deep .ant-tree-switcher-icon{font-size:inherit}.ant-tree ::ng-deep .ant-tree-checkbox{color:inherit}.ant-tree ::ng-deep .ant-tree-checkbox-checked .ant-tree-checkbox-inner:after{border-color:#1890ff}.ant-tree ::ng-deep .ant-tree-switcher-noop>i{display:none}.ant-tree ::ng-deep .ant-tree-node-content-wrapper.ant-tree-node-selected,.ant-tree ::ng-deep .ant-tree-node-content-wrapper:hover{background-color:var(--selected-background)}::ng-deep .ant-tree.ant-tree-nodeBgCustom .ant-tree-node-content-wrapper{flex:1}::ng-deep .ant-tree.ant-tree-nodeBgCustom nz-tree-node-switcher{width:16px}.custom-node{display:flex;align-items:center;white-space:nowrap;background-repeat:no-repeat;background-size:180px 8px;background-position:0 bottom}.searchBox{position:relative;margin-bottom:20px}.searchBox .search-input{line-height:32px;height:32px;color:#7a8799;outline:none;box-shadow:none}.searchBox i.anticon{width:16px;height:16px;color:#8f9ab3;position:absolute;top:10px;right:10px}.warp-tree{flex:1;overflow:auto}.warp-tree::-webkit-scrollbar-thumb{background-color:var(--treeScrollbar-thumb-background,"#ddd")!important}.warp-tree::-webkit-scrollbar-corner{background-color:transparent}.folder-name{flex:1}.node-count{color:hsla(0,0%,100%,.8)}.node-count.noCount{color:#7a8799}']}]}],exports.ɵct.ctorParameters=function(){return[{type:util.ArrayService},{type:i0.ElementRef}]},exports.ɵct.propDecorators={tree:[{type:i0.ViewChild,args:["tree"]}],renameInput:[{type:i0.ViewChild,args:["renameInput"]}]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("复选框",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵct.prototype,"checkable",void 0),__decorate([bbjWidgetBase.Property("输出格式",{type:"string",enum:[{label:"数组",value:"array"},{label:"字符串",value:"string"}],ui:{widget:"select",visibleIf:{checkable:[!0]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"outputType",void 0),__decorate([bbjWidgetBase.Property("选择完全受控",{type:"boolean",ui:{optionalHelp:"父子节点选中状态不再关联",visibleIf:{checkable:[!0]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"checkStrictly",void 0),__decorate([bbjWidgetBase.Property("连接线",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵct.prototype,"showLine",void 0),__decorate([bbjWidgetBase.Property("展开所有",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵct.prototype,"expandAll",void 0),__decorate([bbjWidgetBase.Property("展开层级",{type:"integer",minimum:0,ui:{precision:0,visibleIf:{expandAll:[!1]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"expandLevel",void 0),__decorate([bbjWidgetBase.Property("图标宽度",{type:"integer"}),__metadata("design:type",Object)],exports.ɵct.prototype,"iconWidth",void 0),__decorate([bbjWidgetBase.Property("图标高度",{type:"integer"}),__metadata("design:type",Object)],exports.ɵct.prototype,"iconHeight",void 0),__decorate([bbjWidgetBase.Property("图标位置",{enum:[{label:"左",value:"left"},{label:"右",value:"right"}]}),__metadata("design:type",Object)],exports.ɵct.prototype,"iconPosition",void 0),__decorate([bbjWidgetBase.Property("节点图标",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"nodeDefaultIcon",void 0),__decorate([bbjWidgetBase.Property("节点背景",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"nodeBackground",void 0),__decorate([bbjWidgetBase.Property("节点选中背景色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"selectedBackground",void 0),__decorate([bbjWidgetBase.Property("节点选中字体色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"nodeCheckedColor",void 0),__decorate([bbjWidgetBase.Property("节点选中背景",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"nodeCheckedBackground",void 0),__decorate([bbjWidgetBase.Property("双击重命名"),__metadata("design:type",Boolean)],exports.ɵct.prototype,"renamable",void 0),__decorate([bbjWidgetBase.Property("显示搜索框"),__metadata("design:type",Boolean)],exports.ɵct.prototype,"showSearch",void 0),__decorate([bbjWidgetBase.Property("搜索框颜色",{ui:{widget:"myColor",visibleIf:{showSearch:[!0]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"searchBorderColor",void 0),__decorate([bbjWidgetBase.Property("搜索框背景色",{ui:{widget:"myColor",visibleIf:{showSearch:[!0]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"searchBackgroundColor",void 0),__decorate([bbjWidgetBase.Property("搜索框提示语",{type:"string",ui:{visibleIf:{showSearch:[!0]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"searchPlaceholder",void 0),__decorate([bbjWidgetBase.Property("滚动条颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"treeScrollbarThumbBackground",void 0),__decorate([bbjWidgetBase.Data({properties:{title:{type:"string",title:"标题"},key:{type:"string",title:"id"},parentKey:{type:"string",title:"父级id"},icon:{type:"string",title:"图标"},count:{type:"string",title:"数量"}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"data",void 0),__decorate([bbjWidgetBase.DataInput("选中值"),__metadata("design:type",Object)],exports.ɵct.prototype,"value",void 0),__decorate([bbjWidgetBase.DataOutput("选中id"),bbjWidgetBase.Event("选中值改变",{params:"id"}),__metadata("design:type",Object)],exports.ɵct.prototype,"keyChange",void 0),__decorate([bbjWidgetBase.Method("搜索"),__param(0,bbjWidgetBase.Param("内容")),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],exports.ɵct.prototype,"search",null),__decorate([bbjWidgetBase.Method("选中"),__param(0,bbjWidgetBase.Param("id")),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],exports.ɵct.prototype,"select",null),__decorate([bbjWidgetBase.Event("点击"),__param(0,bbjWidgetBase.EventParam("id")),__param(1,bbjWidgetBase.EventParam("标题")),__metadata("design:type",Function),__metadata("design:paramtypes",[String,String]),__metadata("design:returntype",void 0)],exports.ɵct.prototype,"nodeClick",null),__decorate([bbjWidgetBase.Event("重命名"),__param(0,bbjWidgetBase.EventParam("id")),__param(1,bbjWidgetBase.EventParam("名称")),__metadata("design:type",Function),__metadata("design:paramtypes",[String,String]),__metadata("design:returntype",void 0)],exports.ɵct.prototype,"rename",null),exports.ɵct=__decorate([bbjWidgetBase.Widget("树控件",{group:"component",image:"assets/img/screen/Tree.png",icon:"bianzu40"}),__metadata("design:paramtypes",[util.ArrayService,i0.ElementRef])],exports.ɵct);var TreeControlModule=function(e){e.register(exports.ɵct)};TreeControlModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵct],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,tree.NzTreeModule,input.NzInputModule,forms.FormsModule,highlight.NzHighlightModule,icon.NzIconModule]}]}],TreeControlModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcu=function(){function e(e){this.http=e,this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},this.chartOption=null,this.mapStyle="china",this.trigger="mousemove",this.visualMapPosition={left:"",right:"",top:"",bottom:40},this.level=[{gte:0,lte:50,label:"等级1",color:"#AAAAAA",unit:""},{gte:50,label:"等级2",color:"#FF3333",unit:""}],this.mapColor="#FFFFFF",this.selectAreaColor="#f2d5ad",this.max="高",this.min="低",this.prefix="",this.suffix="",this._data=[{name:"南海诸岛",value:0,tooltip:"告警统计<br />失联告警:0"},{name:"北京",value:54,tooltip:"告警统计<br />失联告警:54"},{name:"天津",value:13,tooltip:"告警统计<br />失联告警:13"},{name:"上海",value:40,tooltip:"告警统计<br />失联告警:40"},{name:"重庆",value:75,tooltip:"告警统计<br />失联告警:75"},{name:"河北",value:13,tooltip:"告警统计<br />失联告警:13"},{name:"海口市",value:70,tooltip:"告警统计<br />失联告警:70"}],this.dataClick=new i0.EventEmitter,this.xData=[],this.yData=[],this.series=[],this.style={color:"",fontFamily:"",fontWeight:"",fontSize:"",lineHeight:""}}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){var t=this;this.style={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};var o={bottom:40};this.visualMapPosition&&Object.keys(this.visualMapPosition).forEach((function(e){(t.visualMapPosition[e]||0===t.visualMapPosition[e])&&(o[e]=t.visualMapPosition[e])})),e._data&&this.http.get("assets/echarts/map/json/"+this.mapStyle+".json").toPromise().then((function(e){echarts.registerMap(t.mapStyle,e),t.data=e,t.chartOption={tooltip:{triggerOn:t.trigger},visualMap:Object.assign(Object.assign({min:0,max:500},o),{showLabel:!0,text:[],pieces:t.level,textStyle:t.style,show:!0}),series:[{name:"",type:"map",geoIndex:0,mapType:t.mapStyle,label:{normal:{show:!0,formatter:function(e){var o=e.value?e.value:0,i=t.prefix?t.prefix:"",a=t.suffix?t.suffix:"";return(e.name+"-"+i+o+a).split("-").join("\n")},textStyle:t.style},emphasis:{show:!1}},itemStyle:{normal:{borderColor:"rgba(0, 0, 0, 0.2)",areaColor:t.mapColor},emphasis:{areaColor:t.selectAreaColor,shadowOffsetX:0,shadowOffsetY:0,borderWidth:0}},data:t._data}]},t.reloadData()}))},e.prototype.onChartClick=function(e){var t="",o="",i="",a="",r="";void 0!==e.data?(t=e.data.name,o=e.data.value,i=e.data.tooltip):(t=e.name,o="0"),this.data.features.forEach((function(e){e.properties.name===t&&(a=e.properties.cp[0],r=e.properties.cp[1])})),this.dataClick.emit({name:t,value:o,tooltip:i,lng:a,lat:r}),this.onClick(t,o,i,Number(a),Number(r))},e.prototype.reloadData=function(){this.chartOption.visualMap.text.push(this.max),this.chartOption.visualMap.text.push(this.min),"province/hainan"===this.mapStyle&&(this.chartOption.geo.center=[109.844902,19.0392],this.chartOption.geo.layoutCenter=["50%","50%"],this.chartOption.geo.layoutSize="600%")},e.prototype.onClick=function(e,t,o,i,a){},e}(),exports.ɵcu.decorators=[{type:i0.Component,args:[{selector:"sc-visual-map-chart",template:'<div\n echarts\n id="main"\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[".demo-chart,:host{height:100%;width:100%}:host{display:block}"]}]}],exports.ɵcu.ctorParameters=function(){return[{type:i2.HttpClient}]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("地图样式",{ui:{widget:"myUrlSelect",url:"/assets/mapListItem.json"}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"mapStyle",void 0),__decorate([bbjWidgetBase.Property("触发提示",{type:"string",enum:[{value:"mousemove",label:"移动"},{value:"click",label:"点击"}],ui:{widget:"radio",styleType:"button",buttonStyle:"solid"},default:"mousemove"}),__metadata("design:type",Object)],exports.ɵcu.prototype,"trigger",void 0),__decorate([bbjWidgetBase.Property("图例位置",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"visualMapPosition",void 0),__decorate([bbjWidgetBase.Property("分级",{type:"array",title:"热力等级",maxItems:10,items:{type:"object",properties:{gte:{type:"number",title:"大于"},lte:{type:"number",title:"小于",minimum:1},label:{type:"string",title:"标签"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}},unit:{type:"string",title:"单位"}},required:["label","color"]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"level",void 0),__decorate([bbjWidgetBase.Property("地图颜色",{type:"string",ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"mapColor",void 0),__decorate([bbjWidgetBase.Property("选中区域颜色",{type:"string",ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"selectAreaColor",void 0),__decorate([bbjWidgetBase.Property("正极名称",{max:{type:"string",title:"max",ui:{}},required:["max"]}),__metadata("design:type",Object)],exports.ɵcu.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("负极名称",{min:{type:"string",title:"min",ui:{}},required:["min"]}),__metadata("design:type",Object)],exports.ɵcu.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("前缀",{min:{type:"string",ui:{}}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"prefix",void 0),__decorate([bbjWidgetBase.Property("后缀",{min:{type:"string",ui:{}}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"suffix",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"地名"},value:{type:"number",title:"值"},tooltip:{type:"string",title:"提示"},lng:{type:"number",title:"中心经度"},lat:{type:"number",title:"中心纬度"}}}),__metadata("design:type",Array)],exports.ɵcu.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["name","value","tooltip","lng","lat"]),__metadata("design:type",Object)],exports.ɵcu.prototype,"dataClick",void 0),__decorate([bbjWidgetBase.Event("点击"),__param(0,bbjWidgetBase.EventParam("名称")),__param(1,bbjWidgetBase.EventParam("值")),__param(2,bbjWidgetBase.EventParam("提示")),__param(3,bbjWidgetBase.EventParam("经度")),__param(4,bbjWidgetBase.EventParam("维度")),__metadata("design:type",Function),__metadata("design:paramtypes",[String,String,String,Number,Number]),__metadata("design:returntype",void 0)],exports.ɵcu.prototype,"onClick",null),exports.ɵcu=__decorate([bbjWidgetBase.Widget("2D热力图",{group:"component",image:"assets/img/screen/hotMap.png",icon:"icontubiao"}),__metadata("design:paramtypes",[i2.HttpClient])],exports.ɵcu);var VisualMapChartModule=function(e){e.register(exports.ɵcu)};VisualMapChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcu],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],VisualMapChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var defaultDateEnum=[{label:"当前",value:"now"},{label:"今天",value:"today"},{label:"昨天",value:"yesterday"},{label:"明天",value:"tomorrow"},{label:"本月",value:"thisMonth"},{label:"上个月",value:"lastMonth"},{label:"下个月",value:"nextMonth"},{label:"本周",value:"thisWeek"},{label:"上周",value:"lastWeek"},{label:"下周",value:"nextWeek"},{label:"今年",value:"thisYear"},{label:"去年",value:"lastYear"},{label:"明年",value:"nextYear"}];exports.ɵcv=function(){function e(e){this.i18n=e,this.font={family:"",weight:"normal",size:14,space:0,lineHeight:""},this.backImage=null,this.height=30,this.dateFormat="",this.selectMode="",this.showTime=!1,this.timeFormat="HH:mm:ss",this.alert="请选择日期",this.allowClear=!0,this.data=[],this.dateChange=new i0.EventEmitter,this.endDateChange=new i0.EventEmitter,this.inputDate=new i0.EventEmitter,this.inputEndDate=new i0.EventEmitter,this.dateRange=[]}return e.prototype.ngOnInit=function(){},e.prototype.initDefaultDate=function(){if(this.rangeMode){var e=this.getDefaultDate(this.defaultDate),t=this.getDefaultDate(this.defaultEndDate);this.date=[e,t],(e||t)&&this.onChange(this.date)}else this.date=this.getDefaultDate(this.defaultDate),this.date&&this.onChange(this.date)},e.prototype.getDefaultDate=function(e){if(e){var t=new Date;switch(e){case"now":return t;case"today":return dateFns.startOfDay(t);case"yesterday":return dateFns.addDays(dateFns.startOfDay(t),-1);case"tomorrow":return dateFns.addDays(dateFns.startOfDay(t),1);case"thisMonth":return dateFns.startOfMonth(t);case"lastMonth":return dateFns.addMonths(dateFns.startOfMonth(t),-1);case"nextMonth":return dateFns.addMonths(dateFns.startOfMonth(t),1);case"thisYear":return dateFns.startOfYear(t);case"lastYear":return dateFns.addYears(dateFns.startOfYear(t),-1);case"nextYear":return dateFns.addYears(dateFns.startOfYear(t),1);case"thisWeek":return dateFns.addDays(dateFns.startOfWeek(dateFns.addDays(t,-1)),1);case"lastWeek":return dateFns.addWeeks(dateFns.addDays(dateFns.startOfWeek(dateFns.addDays(t,-1)),1),-1);case"nextWeek":return dateFns.addWeeks(dateFns.addDays(dateFns.startOfWeek(dateFns.addDays(t,-1)),1),1)}}return null},e.prototype.ngOnChanges=function(e){e.dateFormat&&!this.dateFormat&&this.setDefaultFormat(),this.datePickerStyle={borderColor:this.borderColor,backgroundColor:this.background,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",height:this.height+"px",backgroundSize:"100% 100%",lineHeight:this.font.lineHeight+"px"},this.showTime&&(this.nzShowTime={nzFormat:this.timeFormat||"HH:mm:ss",nzHourStep:this.hourStep,nzMinuteStep:this.minuteStep,nzSecondStep:this.secondStep}),this.backImage&&(this.datePickerStyle.backgroundImage="url("+this.backImage+")"),(e.rangeMode||e.defaultDate||e.defaultEndDate)&&this.initDefaultDate(),e.data&&this.updateData(),e.disabledDate&&this.updateDisabledDate(),e.value&&(this.date?"string"==typeof this.date&&(this.date=dateFns.parse(this.date,this.dateFormat,new Date)):this.date=null)},e.prototype.updateDisabledDate=function(){switch(this.disabledDate){case"after":this.nzDisabledDate=function(e){return fp.differenceInCalendarDays(e,new Date)<0};break;case"before":this.nzDisabledDate=function(e){return fp.differenceInCalendarDays(e,new Date)>0};break;default:this.nzDisabledDate=null}},e.prototype.updateData=function(){var e;if(null===(e=this.data)||void 0===e?void 0:e.length){var t=this.data[0],o=t.date,i=t.endDate,a=this.getDate(o);if(this.rangeMode){var r=this.getDate(i);(a||r)&&(this.date=[a||this.date[0],r||this.date[1]],this.onChange(this.date))}else a&&(this.date=a,this.onChange(this.date))}},e.prototype.getDate=function(e){return e?new Date(e):null},e.prototype.onChange=function(e,t){if(this.rangeMode){var o=this.format(this.date[0]),i=this.format(this.date[1]);this.dateChange.emit(o),this.endDateChange.emit(i),t&&(this.inputDate.emit(o),this.inputEndDate.emit(i))}else{var a=this.format(this.date);this.dateChange.emit(a),t&&this.inputDate.emit(a)}},e.prototype.format=function(e){return e?common.formatDate(e,this.dateFormat,this.i18n.getLocaleId()):null},e.prototype.setDefaultFormat=function(){switch(this.selectMode){case"week":this.dateFormat="yyyy-ww";break;case"month":this.dateFormat="yyyy-MM";break;case"year":this.dateFormat="yyyy";break;default:if(this.showTime){if(this.dateFormat="yyyy-MM-dd HH:mm:ss",this.timeFormat)switch(this.timeFormat){case"HH":this.dateFormat="yyyy-MM-dd HH:00:00";break;case"HH:mm":this.dateFormat="yyyy-MM-dd HH:mm:00"}}else this.dateFormat="yyyy-MM-dd"}},e.prototype.setValue=function(e){this.date=e,this.onChange(e)},e.prototype.exportWord=function(){return null},e}(),exports.ɵcv.decorators=[{type:i0.Component,args:[{selector:"sc-date-picker",template:'<ng-container *ngIf="!rangeMode">\n <nz-date-picker\n [nzDisabled]="disabled"\n [nzMode]="selectMode"\n [(ngModel)]="date"\n [nzFormat]="dateFormat"\n (ngModelChange)="onChange(date, true)"\n class="demo-picker"\n [nzPlaceHolder]="alert"\n [ngStyle]="datePickerStyle"\n [nzShowTime]="nzShowTime"\n [nzDisabledDate]="nzDisabledDate"\n [nzAllowClear]="allowClear !== false"\n >\n </nz-date-picker>\n</ng-container>\n<ng-container *ngIf="rangeMode">\n <nz-range-picker\n [nzDisabled]="disabled"\n [nzMode]="selectMode"\n [(ngModel)]="date"\n [nzFormat]="dateFormat"\n (ngModelChange)="onChange(date, true)"\n class="demo-picker"\n [nzPlaceHolder]="alert"\n [ngStyle]="datePickerStyle"\n [nzShowTime]="nzShowTime"\n [nzDisabledDate]="nzDisabledDate"\n [nzAllowClear]="allowClear !== false"\n >\n </nz-range-picker>\n</ng-container>\n',styles:[":host ::ng-deep .demo-picker{background-color:unset;height:32px;width:100%;color:inherit}:host ::ng-deep .ant-picker-input>input{color:inherit;font-size:inherit;font-weight:inherit}:host ::ng-deep .ant-picker-suffix{color:inherit}.ant-picker-disabled::ng-deep .ant-picker-suffix{display:none}"]}]}],exports.ɵcv.ctorParameters=function(){return[{type:i18n.NzI18nService}]},__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",String)],exports.ɵcv.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",String)],exports.ɵcv.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("背景图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"backImage",void 0),__decorate([bbjWidgetBase.Property("高度"),__metadata("design:type",Number)],exports.ɵcv.prototype,"height",void 0),__decorate([bbjWidgetBase.Property("日期格式",{dateFormat:{type:"string",title:"max",ui:{}},required:["dateFormat"]}),__metadata("design:type",Object)],exports.ɵcv.prototype,"dateFormat",void 0),__decorate([bbjWidgetBase.Property("开启区间模式"),__metadata("design:type",Boolean)],exports.ɵcv.prototype,"rangeMode",void 0),__decorate([bbjWidgetBase.Property("默认时间",{type:"string",enum:defaultDateEnum}),__metadata("design:type",String)],exports.ɵcv.prototype,"defaultDate",void 0),__decorate([bbjWidgetBase.Property("默认结束时间",{type:"string",enum:defaultDateEnum,ui:{widget:"select",visibleIf:{rangeMode:[!0]}}}),__metadata("design:type",String)],exports.ɵcv.prototype,"defaultEndDate",void 0),__decorate([bbjWidgetBase.Property("选择模式",{type:"string",enum:[{label:"默认",value:""},{label:"周",value:"week"},{label:"月份",value:"month"},{label:"年份",value:"year"}]}),__metadata("design:type",String)],exports.ɵcv.prototype,"selectMode",void 0),__decorate([bbjWidgetBase.Property("显示时间",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcv.prototype,"showTime",void 0),__decorate([bbjWidgetBase.Property("时间格式",{enum:[{label:"时分秒",value:"HH:mm:ss"},{label:"时分",value:"HH:mm"},{label:"时",value:"HH"}],ui:{widget:"select",visibleIf:{showTime:[!0]}}}),__metadata("design:type",String)],exports.ɵcv.prototype,"timeFormat",void 0),__decorate([bbjWidgetBase.Property("小时间隔",{ui:{visibleIf:{showTime:[!0]}}}),__metadata("design:type",Number)],exports.ɵcv.prototype,"hourStep",void 0),__decorate([bbjWidgetBase.Property("分钟间隔",{ui:{visibleIf:{timeFormat:["HH:mm:ss","HH:mm"]}}}),__metadata("design:type",Number)],exports.ɵcv.prototype,"minuteStep",void 0),__decorate([bbjWidgetBase.Property("秒间隔",{ui:{visibleIf:{timeFormat:["HH:mm:ss"]}}}),__metadata("design:type",Number)],exports.ɵcv.prototype,"secondStep",void 0),__decorate([bbjWidgetBase.Property("提示语"),__metadata("design:type",Object)],exports.ɵcv.prototype,"alert",void 0),__decorate([bbjWidgetBase.Property("是否禁用"),__metadata("design:type",Boolean)],exports.ɵcv.prototype,"disabled",void 0),__decorate([bbjWidgetBase.Property("不可选日期",{enum:[{label:"今天之后",value:"after"},{label:"今天之前",value:"before"}]}),__metadata("design:type",String)],exports.ɵcv.prototype,"disabledDate",void 0),__decorate([bbjWidgetBase.Property("清除按钮",{type:"boolean",default:!0}),__metadata("design:type",Object)],exports.ɵcv.prototype,"allowClear",void 0),__decorate([bbjWidgetBase.Data({properties:{date:{title:"日期",type:"string"},endDate:{title:"结束日期",type:"string"}}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput("值"),bbjWidgetBase.Event("值改变",{params:{title:"值"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"dateChange",void 0),__decorate([bbjWidgetBase.DataOutput("结束"),bbjWidgetBase.Event("结束值",{params:{title:"结束值"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"endDateChange",void 0),__decorate([bbjWidgetBase.Event("输入",{params:{title:"值"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"inputDate",void 0),__decorate([bbjWidgetBase.Event("输入结束时间",{params:{title:"结束值"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"inputEndDate",void 0),__decorate([bbjWidgetBase.DataInput("值"),__metadata("design:type",Object)],exports.ɵcv.prototype,"date",void 0),__decorate([bbjWidgetBase.Method("设置值"),__param(0,bbjWidgetBase.Param("值")),__metadata("design:type",Function),__metadata("design:paramtypes",[Date]),__metadata("design:returntype",void 0)],exports.ɵcv.prototype,"setValue",null),exports.ɵcv=__decorate([bbjWidgetBase.Widget("日期选择器",{group:"component",image:"assets/img/screen/date-picker.png",icon:"riqi",platform:"pc"}),__metadata("design:paramtypes",[i18n.NzI18nService])],exports.ɵcv);var DatePickerModule=function(e){e.register(exports.ɵcv)};DatePickerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcv],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,datePicker.NzDatePickerModule,forms.FormsModule],exports:[exports.ɵcv]}]}],DatePickerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcx=function(){function e(){this.borderColor="#3285ff",this.backImage=null,this.height=30,this.font={family:"",color:"#3285ff",weight:"normal",size:12,space:0,lineHeight:""},this.background="rgba(50,133,255,0.2)",this.timeFormat="HH:mm:ss",this.alert="请选择时间",this.timeChange=new i0.EventEmitter,this.time=null,this.defaultOpenValue=new Date(0,0,0,0,0,0)}return e.prototype.ngOnInit=function(){this.timePickerStyle={borderColor:this.borderColor,backgroundColor:this.background,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",height:this.height+"px",backgroundImage:"url("+this.backImage+")",backgroundSize:"100% 100%"}},e.prototype.onChange=function(e){var t="";null!==e&&(t=dateFns.format(e,this.timeFormat)),this.timeChange.emit(t)},e}(),exports.ɵcx.decorators=[{type:i0.Component,args:[{selector:"sc-time-picker",template:'<nz-time-picker [(ngModel)]="time" (ngModelChange)="onChange(time)" [nzFormat]="timeFormat" [nzDefaultOpenValue]="defaultOpenValue" [nzPlaceHolder]="alert" class="time-picker" [ngStyle]="timePickerStyle" ></nz-time-picker>\n',styles:[":host ::ng-deep .time-picker{background-color:unset;height:32px;width:100%;color:inherit}:host ::ng-deep .ant-picker-input>input,:host ::ng-deep .ant-picker-suffix{color:inherit}"]}]}],exports.ɵcx.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵcx.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("背景图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵcx.prototype,"backImage",void 0),__decorate([bbjWidgetBase.Property("高度"),__metadata("design:type",Number)],exports.ɵcx.prototype,"height",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcx.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵcx.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("时间格式",{timeFormat:{type:"string",title:"max",ui:{}},required:["timeFormat"]}),__metadata("design:type",Object)],exports.ɵcx.prototype,"timeFormat",void 0),__decorate([bbjWidgetBase.Property("提示语"),__metadata("design:type",Object)],exports.ɵcx.prototype,"alert",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵcx.prototype,"timeChange",void 0),exports.ɵcx=__decorate([bbjWidgetBase.Widget("时间选择器",{group:"component",image:"assets/img/screen/time-picker.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵcx);var TimePickerModule=function(e){e.register(exports.ɵcx)};TimePickerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcx],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,timePicker.NzTimePickerModule,forms.FormsModule]}]}],TimePickerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var MapTypeEnum=[{label:"普通",value:"normal"},{label:"深色",value:"dark"},{label:"卫星",value:"satellite"},{label:"自定义",value:"custom"}];exports.ɵcy=function(){function e(e,t,o,i,a,r,n){var s=this;this.baiduMapService=e,this.http=t,this.elementRef=o,this.zone=i,this.scale$=a,this.cd=r,this.widgetRef=n,this.mapType="normal",this.minMapShow=!1,this.showType="click",this.dragging=!0,this.shadeColor="#004395",this.mapCityColor="#41b7ff",this.zoom=12,this.fillOpacity=0,this.strokesize=2,this.nightMode=!1,this.tilt=73,this.centerLng=120.7,this.centerLat=28,this.cityName=null,this._data=[{lng:120.7,lat:28}],this.dataChange=new i0.EventEmitter,this.zoomChange=new i0.EventEmitter,this.mapClick=new i0.EventEmitter,this.destroy$=new rxjs.Subject,this.overlaysMap={},this.init$=new Promise((function(e){s.inited=e})),this.mapTypeEnum=MapTypeEnum.slice(0,3)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.elementRef.nativeElement},enumerable:!1,configurable:!0}),e.prototype.addLayer=function(e){this.view&&this.view.addLayer(e)},e.prototype.removeLayer=function(e){this.view&&this.view.removeLayer(e)},e.prototype.ngOnChanges=function(e){e._data&&this._data[0]&&(this.centerLng=+this._data[0].lng,this.centerLat=+this._data[0].lat,this.setCenter(this.centerLng,this.centerLat))},e.prototype.ngOnInit=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:return this.scale$&&this.scale$.pipe(operators.takeUntil(this.destroy$)).subscribe((function(t){var o=t.x,i=t.y,a=t.scaleContent,r=e.element.style;if(!1===a)e.zone.onStable.pipe(operators.take(1)).subscribe((function(){var t=e.element.parentNode;if(t){var o=/translate\(([-\d.]+)px, ([-\d.]+)px\)/.exec(t.style.transform);if(o){var i=parseFloat(o[1]),a=parseFloat(o[2]);r.transform="translate("+-i+"px,"+-a+"px)",r.height=t.clientHeight+a+"px",r.width=t.clientWidth+i+"px",r.padding=a+"px 0 0 "+i+"px"}}}));else{var n=e.widgetRef.widget,s=n.position,d=n.size,l=s.x,p=s.y,c=d.width,g=d.height;r.transform="translate("+-l+"px,"+-p+"px) scale("+1/o+","+1/i+")",r.height=(p+g)*i+"px",r.width=(l+c)*o+"px",r.padding=p*i+"px 0 0 "+l*o+"px"}})),[4,this.initMap()];case 1:return t.sent(),[2]}}))}))},e.prototype.initMap=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.baiduMapService.loadMapGL()];case 1:return t.sent(),[4,this.baiduMapService.loadMapVGL()];case 2:return t.sent(),this.mapTypeValue=this.mapType,null==this.mapType&&(this.uploadStyle?this.mapTypeValue="custom":this.nightMode&&(this.mapTypeValue="dark")),this.destroyed||(this.zone.runOutsideAngular((function(){if(e.map=new BMapGL.Map(e.container.nativeElement,{restrictCenter:!1}),e.map.centerAndZoom(new BMapGL.Point(e.centerLng,e.centerLat),e.zoom),e.map.enableScrollWheelZoom(),e.mapTypeChange(e.mapTypeValue),(e.edit||!1===e.dragging)&&e.map.disableDragging(),e.enable3D?(e.map.setTilt(null==e.tilt?73:e.tilt,{noAnimation:!0}),e.map.setDisplayOptions({skyColors:["rgba(0, 0, 0, 0)"]})):(e.map.disableTilt(),e.map.disableRotate()),e.showLocationControl){var t={anchor:BMAP_ANCHOR_TOP_LEFT,offset:new BMapGL.Size(20,20)},o=new BMapGL.LocationControl(t);e.map.addControl(o)}if(e.minMapShow){var i=new BMapGL.PanoramaControl;i.setOffset(new BMapGL.Size(20,20)),e.map.addControl(i)}e.infoWindowBackground&&e.element.style.setProperty("--info-window-background",e.infoWindowBackground),e.infoWindowColor&&e.element.style.setProperty("--info-window-color",e.infoWindowColor),e.infoWindowBorderColor&&e.element.style.setProperty("--info-window-border-color",e.infoWindowBorderColor),e.map.addEventListener("moveend",(function(t){var o=e.map.getCenter();e.dataChange.emit(o)})),e.map.addEventListener("click",(function(t){e.mapClick.emit(t.pointer)})),e.map.addEventListener("zoomend",(function(t){e.zoomChange.emit(e.map.getZoom()),e.dataChange.emit(e.map.getCenter())})),e.view=new mapvgl.View({map:e.map}),e.mapLoaded(e.map)})),this.inited(this.map)),[2]}}))}))},e.prototype.setCenter=function(e,t){if(this.map&&e&&t){var o=this.map.getCenter();o.lng==e&&o.lat==t||this.setCenterAndZoom(e,t,this.map.getZoom())}},e.prototype.setCenterAndZoom=function(e,t,o){var i=this.map.getCenter();if(o!=this.map.getZoom()||Math.abs(e-i.lng)>1e-13||Math.abs(t-i.lat)>1e-7){var a=new BMapGL.Point(e,t);this.map.centerAndZoom(a,o,{tilt:this.map.getTilt()})}},e.prototype.setRectCenterAndZoom=function(e,t,o,i){this.setCenterAndZoom((t+e)/2,(i+o)/2,this.getZoom(t,e,i,o))},e.prototype.getZoom=function(e,t,o,i){var a=new BMapGL.Point(e,o),r=new BMapGL.Point(t,i),n=+this.map.getDistance(a,r).toFixed(1),s=[50,100,200,500,1e3,2e3,5e3,1e4,2e4,25e3,5e4,1e5,2e5,5e5,1e6,2e6].findIndex((function(e){return e-n>0}));return-1===s?5:18-s+3},e.prototype.openInfoWindow=function(e,t,o){var i=this;if(e.information||this.infoWindowTemplate){var a=new BMapGL.Point(+t,+o),r=e.information;this.infoWindowTemplate&&(r=bbjWidgetBase.TemplateUtil.parse(this.infoWindowTemplate,e));var n={offset:new BMapGL.Size(0,0),width:this.infoWindowWidth||0,height:this.infoWindowHeight||0},s=new BMapGL.InfoWindow(r,n);if(this.firstOpen)this.map.openInfoWindow(s,a);else{this.firstOpenPromise?this.firstOpenPromise.then((function(){i.map.openInfoWindow(s,a)})):(this.firstOpenPromise=new Promise((function(e){setTimeout((function(){i.firstOpen=!0,i.firstOpenPromise=null,e()}),500)})),this.map.openInfoWindow(s,a));var d=s.close;s.close=function(){i.firstOpenPromise?i.firstOpenPromise.then((function(){return d.call(s)})):d.call(s)}}return s}},e.prototype.getCanvasOverlay=function(e){var t,o=this;if(this.enable3D){var i=e.item;if(i){var a=new BMapGL.Point(i.start.lng,i.start.lat),r=new BMapGL.Point(i.end.lng,i.end.lat),n=new BMapGL.Bounds(new BMapGL.Point(a.lng,r.lat),new BMapGL.Point(r.lng,a.lat));t=new BMapGL.GroundOverlay(n,{type:"canvas",url:i.canvas,opacity:1})}}else{var s=function(e){var t=new BMapGL.Point(e.lng,e.lat);return o.map.pointToPixel(t)};t=new BMapGL.CanvasLayer({paneName:"markerShadow",update:function(){var t=this.canvas.getContext("2d");t&&(t.clearRect(0,0,t.canvas.width,t.canvas.height),e.update(t,s))}})}return t},e.prototype.ngOnDestroy=function(){if(this.destroy$.next(),this.destroy$.complete(),this.destroyed=!0,this.view)try{this.view.destroy()}catch(e){console.error(e)}if(this.map)try{this.map.destroy()}catch(e){console.error(e)}},e.prototype.mapLoaded=function(e){return __awaiter(this,void 0,void 0,(function(){var e,t,o,i,a,r,n=this;return __generator(this,(function(s){switch(s.label){case 0:return this.cityName?("温州"===this.cityName&&(this.cityName="wenzhou"),[4,this.http.get("assets/echarts/map/json/"+this.cityName+".json").toPromise()]):[3,2];case 1:e=s.sent(),t=[],o=e.UTF8Scale||1024,e.features.forEach((function(i){var a=i.geometry;a.coordinates=a.coordinates.forEach((function(i,r){if("MultiPolygon"===a.type){var s=i.map((function(t,i){return e.UTF8Encoding&&(t=n.decodePolygon(t,a.encodeOffsets[r][i],o)),t}));t.push(s)}else e.UTF8Encoding&&(i=n.decodePolygon(i,a.encodeOffsets[r],o)),t.push([i])}))})),i=[{geometry:{type:"MultiPolygon",coordinates:t}}],a=new mapvgl.PolygonLayer({lineColor:this.mapCityColor,lineWidth:this.strokesize||2,fillColor:this.shadeColor,data:i,renderOrder:-2}),this.view.addLayer(a),this.mapBackColor&&!this.mapBackColor.match(/rgba\(\d+,\d+,\d+,0\)/)&&(r=new mapvgl.MaskLayer({color:this.mapBackColor,data:i,renderOrder:-3}),this.view.addLayer(r)),s.label=2;case 2:return[2]}}))}))},e.prototype.decodePolygon=function(e,t,o){for(var i=[],a=t[0],r=t[1],n=0;n<e.length;n+=2){var s=e.charCodeAt(n)-64,d=e.charCodeAt(n+1)-64;s=s>>1^-(1&s),d=d>>1^-(1&d),a=s+=a,r=d+=r,i.push([s/o,d/o])}return i},e.prototype.mapTypeChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o;return __generator(this,(function(i){switch(i.label){case 0:switch(e){case"dark":return[3,1];case"satellite":return[3,4];case"custom":return[3,5]}return[3,8];case 1:return this.darkStyle?[3,3]:(t=this,[4,this.http.get("assets/echarts/map/json/custom_map.json").toPromise()]);case 2:t.darkStyle=i.sent(),i.label=3;case 3:return this.map.setMapType(BMAP_NORMAL_MAP),this.map.setMapStyleV2({styleJson:this.darkStyle}),[3,9];case 4:return this.map.setMapType(BMAP_SATELLITE_MAP),[3,9];case 5:return this.uploadStyle?[4,this.http.get(this.uploadStyle).toPromise()]:[3,7];case 6:o=i.sent(),this.map.setMapType(BMAP_NORMAL_MAP),this.map.setMapStyleV2({styleJson:o}),i.label=7;case 7:return[3,9];case 8:this.map.setMapType(BMAP_NORMAL_MAP),this.map.setMapStyleV2({styleJson:null}),i.label=9;case 9:return[2]}}))}))},e}(),exports.ɵcy.decorators=[{type:i0.Component,args:[{selector:"sc-custom-baidu-map",template:'<ng-template *ngFor="let child of children" widget-host [widget]="child"></ng-template>\n\n\x3c!-- {{children|json}} --\x3e\n\x3c!-- <div class="map-container" [ngStyle]="containerStyle"> --\x3e\n<div #container class="map"></div>\n<nz-radio-group\n *ngIf="showMapTypeRadio"\n class="map-type-radio"\n [(ngModel)]="mapTypeValue"\n (ngModelChange)="mapTypeChange($event)"\n nzButtonStyle="solid"\n>\n <label *ngFor="let item of mapTypeEnum" nz-radio-button [nzValue]="item.value">{{ item.label }}</label>\n</nz-radio-group>\n\x3c!-- </div> --\x3e\n',styles:[':host{display:block;height:100%;width:100%;overflow:hidden;transform-origin:0 0;z-index:0;pointer-events:none}:host>*{pointer-events:auto}.map{height:100%;width:100%}:host::ng-deep .BMap_bubble_pop{background-color:var(--info-window-background,#fff)!important;border-color:var(--info-window-border-color,#ddd)!important}:host::ng-deep .BMap_bubble_content{color:var(--info-window-color,"#555555")!important}:host::ng-deep .BMap_pop div{background-color:var(--info-window-background,#fff)!important}:host::ng-deep .BMap_pop>div:nth-child(8){background-color:transparent!important}:host.hideInfoWindowTail::ng-deep .BMap_bubble_pop>img,:host.hideInfoWindowTail::ng-deep .BMap_pop>div:nth-child(8),:host::ng-deep img[src$="/image/api/iws3.png"]{display:none}:host.hideInfoWindowTop::ng-deep .BMap_bubble_pop{transform:translateY(31px)}:host.hideInfoWindowTop::ng-deep .BMap_bubble_pop>img{transform:translateY(-31px)}:host.hideInfoWindowTop::ng-deep .BMap_bubble_top,:host::ng-deep .anchorBL{display:none}.map-type-radio{position:absolute;bottom:20px;right:20px;z-index:10}']}]}],exports.ɵcy.ctorParameters=function(){return[{type:i1.BaiduMapService},{type:i2.HttpClient},{type:i0.ElementRef},{type:i0.NgZone},{type:bbjWidgetBase.ScaleSubject,decorators:[{type:i0.Optional}]},{type:i0.ChangeDetectorRef},{type:bbjWidgetBase.WidgetRef}]},exports.ɵcy.propDecorators={hideInfoWindowTail:[{type:i0.HostBinding,args:["class.hideInfoWindowTail"]}],hideInfoWindowTop:[{type:i0.HostBinding,args:["class.hideInfoWindowTop"]}],container:[{type:i0.ViewChild,args:["container",{static:!0}]}]},__decorate([bbjWidgetBase.Property("地图类型",{enum:MapTypeEnum}),__metadata("design:type",Object)],exports.ɵcy.prototype,"mapType",void 0),__decorate([bbjWidgetBase.Property("上传样式",{type:"string",ui:{widget:"myUploadAudio",visibleIf:{mapType:["custom"]}}}),__metadata("design:type",String)],exports.ɵcy.prototype,"uploadStyle",void 0),__decorate([bbjWidgetBase.Property("切换按钮"),__metadata("design:type",Boolean)],exports.ɵcy.prototype,"showMapTypeRadio",void 0),__decorate([bbjWidgetBase.Property("全景地图",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcy.prototype,"minMapShow",void 0),__decorate([bbjWidgetBase.Property("显示信息",{ui:{widget:"select"},enum:[{label:"点击",value:"click"},{label:"悬停",value:"mouseover"}]}),__metadata("design:type",Object)],exports.ɵcy.prototype,"showType",void 0),__decorate([bbjWidgetBase.Property("信息窗背景",{ui:{widget:"myColor"}}),__metadata("design:type",String)],exports.ɵcy.prototype,"infoWindowBackground",void 0),__decorate([bbjWidgetBase.Property("信息窗字体",{ui:{widget:"myColor"}}),__metadata("design:type",String)],exports.ɵcy.prototype,"infoWindowColor",void 0),__decorate([bbjWidgetBase.Property("信息窗宽度"),__metadata("design:type",Number)],exports.ɵcy.prototype,"infoWindowWidth",void 0),__decorate([bbjWidgetBase.Property("信息窗高度"),__metadata("design:type",Number)],exports.ɵcy.prototype,"infoWindowHeight",void 0),__decorate([bbjWidgetBase.Property("信息窗模板",{ui:{widget:"textarea"}}),__metadata("design:type",String)],exports.ɵcy.prototype,"infoWindowTemplate",void 0),__decorate([bbjWidgetBase.Property("信息窗边框",{ui:{widget:"myColor"},example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}),__metadata("design:type",String)],exports.ɵcy.prototype,"infoWindowBorderColor",void 0),__decorate([bbjWidgetBase.Property("隐藏尖角"),__metadata("design:type",Boolean)],exports.ɵcy.prototype,"hideInfoWindowTail",void 0),__decorate([bbjWidgetBase.Property("隐藏关闭按钮"),__metadata("design:type",Boolean)],exports.ɵcy.prototype,"hideInfoWindowTop",void 0),__decorate([bbjWidgetBase.Property("地图拖动",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcy.prototype,"dragging",void 0),__decorate([bbjWidgetBase.Property("遮罩颜色",{ui:{widget:"myColor"},example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}),__metadata("design:type",Object)],exports.ɵcy.prototype,"shadeColor",void 0),__decorate([bbjWidgetBase.Property("背景颜色",{ui:{widget:"myColor"},example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}),__metadata("design:type",String)],exports.ɵcy.prototype,"mapBackColor",void 0),__decorate([bbjWidgetBase.Property("多边线色",{ui:{widget:"myColor"},example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}),__metadata("design:type",Object)],exports.ɵcy.prototype,"mapCityColor",void 0),__decorate([bbjWidgetBase.Property("地图缩放",{ui:{widget:"myRange",min:1,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"zoom",void 0),__decorate([bbjWidgetBase.Property("遮罩透明",{type:"number"}),__metadata("design:type",Object)],exports.ɵcy.prototype,"fillOpacity",void 0),__decorate([bbjWidgetBase.Property("多边线粗",{type:"number"}),__metadata("design:type",Object)],exports.ɵcy.prototype,"strokesize",void 0),__decorate([bbjWidgetBase.Property("黑夜模式",{type:"boolean",ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"nightMode",void 0),__decorate([bbjWidgetBase.Property("3D视角"),__metadata("design:type",Boolean)],exports.ɵcy.prototype,"enable3D",void 0),__decorate([bbjWidgetBase.Property("定位控件"),__metadata("design:type",Boolean)],exports.ɵcy.prototype,"showLocationControl",void 0),__decorate([bbjWidgetBase.Property("初始角度",{type:"number",ui:{visibleIf:{enable3D:[!0]}}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"tilt",void 0),__decorate([bbjWidgetBase.Property("显示省市",{ui:{widget:"myUrlSelect",allowClear:!0,url:"/assets/mapListItem.json"}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"cityName",void 0),__decorate([bbjWidgetBase.Data({properties:{lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵcy.prototype,"_data",void 0),__decorate([bbjWidgetBase.DataOutput(["lng","lat"]),bbjWidgetBase.Event("中心点改变",{params:{properties:{lng:{title:"经度",type:"number"},lat:{title:"纬度",type:"number"}}}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"dataChange",void 0),__decorate([bbjWidgetBase.DataOutput("缩放等级"),bbjWidgetBase.Event("缩放",{params:"缩放等级"}),__metadata("design:type",Object)],exports.ɵcy.prototype,"zoomChange",void 0),__decorate([bbjWidgetBase.Event("地图点击",{params:{properties:{lng:{title:"经度",type:"number"},lat:{title:"纬度",type:"number"}}}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"mapClick",void 0),exports.ɵcy=__decorate([bbjWidgetBase.Widget("百度地图",{group:"component",image:"assets/img/screen/my-baidu-map.png",children:[{title:"标记层",type:"sc-baidu-marker-layer",option:{},hidden:!0,hideChild:!0}],childTypes:["sc-baidu-marker-layer","sc-baidu-polyline-layer","sc-wind-layer","sc-typhoon-area-layer"],description:"hasChildItem"}),__metadata("design:paramtypes",[i1.BaiduMapService,i2.HttpClient,i0.ElementRef,i0.NgZone,bbjWidgetBase.ScaleSubject,i0.ChangeDetectorRef,bbjWidgetBase.WidgetRef])],exports.ɵcy),exports.ɵdc=function(){function e(e){this.parent=e,this.sharpness=1e3,this.groups=[{group:"3",color:"rgba(62,194,35,0.4)",borderColor:"#60db91",borderWidth:1,shadowColor:"rgba(96,219,145,0.2)"},{group:"2",color:"rgba(255,101,41,0.4)",borderColor:"#ff7b48",borderWidth:1,shadowColor:"rgba(255,166,51,0.2)"},{group:"1",color:"rgba(243,68,68,0.4)",borderColor:"#ff3355",borderWidth:1,shadowColor:"rgba(255,51,85,0.2)",image:"/assets/img/screen/typhoon.png"}],this.data=[{lng:121.3,lat:27.4,group:"3",r:160},{lng:119.5,lat:29.97,group:"3",r:160},{lng:120.52,lat:33.93,group:"3",r:75},{lng:121.3,lat:27.4,group:"2",r:80},{lng:119.5,lat:29.97,group:"2",r:80},{lng:120.52,lat:33.93,group:"2",r:50},{lng:121.3,lat:27.4,group:"1",r:40},{lng:119.5,lat:29.97,group:"1",r:40},{lng:120.52,lat:33.93,group:"1",r:25}]}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return this.updateOverlay(),[2]}))}))},e.prototype.updateOverlay=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.parent.init$];case 1:return t.sent(),this.remove(),e=this.getCanvas(),this.addCanvasOverlay(e),[2]}}))}))},e.prototype.addCanvasOverlay=function(e){if(e){var t=new BMapGL.Point(e.start.lng,e.start.lat),o=new BMapGL.Point(e.end.lng,e.end.lat),i=new BMapGL.Bounds(new BMapGL.Point(t.lng,o.lat),new BMapGL.Point(o.lng,t.lat));this.canvasOverlay=new BMapGL.GroundOverlay(i,{type:"canvas",url:e.canvas,opacity:1}),this.parent.map.addOverlay(this.canvasOverlay)}},e.prototype.ngOnDestroy=function(){this.remove()},e.prototype.remove=function(){this.canvasOverlay&&(this.parent.map.removeOverlay(this.canvasOverlay),this.canvasOverlay=null)},e.prototype.getCanvas=function(){if(this.data&&this.data.length>=3){var e=180,t=90,o=-180,i=-90,a=this.data.map((function(a){var r=180*+a.r/Math.PI/6371.393;return e=Math.min(e,+a.lng-r),t=Math.min(t,+a.lat-r),o=Math.max(o,+a.lng+r),i=Math.max(i,+a.lat+r),Object.assign(Object.assign({},a),{r:r})})),r=this.sharpness||1e3,n=Math.min(r/(o-e),r/(i-t)),s=document.createElement("canvas");s.width=Math.round((o-e)*n),s.height=Math.round((i-t)*n);var d={};return a.forEach((function(t){var o=t.group;if(o){var a=d[o];a||(a=[],d[o]=a),a.push({x:(+t.lng-e)*n,y:(i-+t.lat)*n,r:t.r*n})}})),this.groups.forEach((function(e){var t=d[e.group];if((null==t?void 0:t.length)>=3){var o=s.getContext("2d"),i=t[0],a=t[Math.floor(t.length/2)],r=t[t.length-1],n=o.createRadialGradient(i.x,i.y,0,i.x,i.y,i.r);n.addColorStop(1,e.shadowColor||"green"),n.addColorStop(0,"rgba(0,0,0,0)"),o.fillStyle=n,o.beginPath(),o.arc(i.x,i.y,i.r,0,2*Math.PI,!0),o.closePath(),o.fill();var l=function(e,t){var o=Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));return{x:t.x+t.r*(e.y-t.y)/o,y:t.y+t.r*(t.x-e.x)/o}};o.beginPath();var p=Math.atan((a.x-i.x)/(i.y-a.y));o.arc(i.x,i.y,i.r,p-Math.PI,p,!1);var c=l(i,a),g=l(a,r);o.quadraticCurveTo(c.x,c.y,g.x,g.y),p=Math.atan((r.x-a.x)/(a.y-r.y)),o.arc(r.x,r.y,r.r,p,p+Math.PI,!0),c=l(r,a),g=l(a,i),o.quadraticCurveTo(c.x,c.y,g.x,g.y),o.closePath(),o.fillStyle=e.color||"green",o.fill(),o.lineWidth=e.borderWidth||1,o.beginPath(),o.arc(i.x,i.y,i.r,0,2*Math.PI,!0),o.closePath(),o.strokeStyle=e.borderColor||"green",o.stroke()}})),{start:{lng:e,lat:t},end:{lng:o,lat:i},canvas:s}}},e}(),exports.ɵdc.decorators=[{type:i0.Component,args:[{selector:"sc-wind-layer",template:"",styles:[""]}]}],exports.ɵdc.ctorParameters=function(){return[{type:exports.ɵcy}]},__decorate([bbjWidgetBase.Property("清晰度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdc.prototype,"sharpness",void 0),__decorate([bbjWidgetBase.Property("标记分组",{type:"array",title:"标记分组",maxItems:10,items:{type:"object",properties:{group:{type:"string",title:"分组"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}},borderColor:{type:"string",title:"线条颜色",ui:{widget:"myColor"}},borderWidth:{type:"number",title:"线条粗细"},shadowColor:{type:"string",title:"阴影颜色",ui:{widget:"myColor"}},image:{type:"string",title:"中心图片",ui:{widget:"myUpload"}}}},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵdc.prototype,"groups",void 0),__decorate([bbjWidgetBase.Data({properties:{lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"},r:{type:"number",title:"半径"},group:{type:"string",title:"分组"}}}),__metadata("design:type",Array)],exports.ɵdc.prototype,"data",void 0),exports.ɵdc=__decorate([bbjWidgetBase.Widget("台风层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[exports.ɵcy])],exports.ɵdc);var BaseLayer=function(){function e(e,t){this.parent=e,this.zone=t,this.layers=[]}return e.prototype.ngOnInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.updateLayers()}))},e.prototype.ngOnChanges=function(e){var t=this;this.inited&&this.zone.runOutsideAngular((function(){t.updateData()}))},e.prototype.ngOnDestroy=function(){this.removeLayers()},e.prototype.updateLayers=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.parent.init$];case 1:return t.sent(),this.removeLayers(),this.layers=this.createLayers(),this.layers.forEach((function(t){e.parent.addLayer(t)})),this.inited=!0,this.updateData(),[2]}}))}))},e.prototype.removeLayers=function(){var e=this;this.layers.length&&(this.layers.forEach((function(t){e.parent.removeLayer(t)})),this.layers=[])},e}();BaseLayer.decorators=[{type:i0.Directive}],BaseLayer.ctorParameters=function(){return[{type:exports.ɵcy},{type:i0.NgZone}]};var getUUID=function(){return uuid.v1().replace(/-/g,"")},ɵ0$b={type:"string",title:"id"},ɵ1$b={type:"string",title:"id"},ɵ2$9={type:"string",title:"id"};exports.ɵcz=function(e){function t(t,o,i,a){var r=e.call(this,t,o)||this;return r.parent=t,r.zone=o,r.fileUrlService=i,r.nzContextMenuService=a,r.iconUrl="assets/img/screen/marker.png",r.iconWidth=25,r.iconHeight=38.25,r.iconOffsetX=0,r.iconOffsetY=-19.125,r.toCenter=!1,r.enableMarkerClusterer=!1,r.clusterMinSize=25,r.clusterMaxSize=40,r.clusterFont={color:"#ffffff",size:16},r.clusterMaxZoom=4,r.labelFont={family:"",color:"#000000",weight:"normal",size:16,space:0,lineHeight:0},r.shadow={color:"",X:0,Y:0,Z:0},r.unselectOnClickBlank=!0,r.groups=[],r._data=[{id:"1",address:"",information:"暂无信息",group:"",lng:"120.7",lat:"28"}],r.makerClick=new i0.EventEmitter,r.onClick=new i0.EventEmitter,r.layers=[],r.layerMap={},r.dataMap={},r.destroy$=new rxjs.Subject,r}return __extends(t,e),t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.showLabel&&null!=this.showLabelMinZoom&&this.parent.zoomChange.pipe(operators.takeUntil(this.destroy$)).subscribe((function(e){t.updateTextVisible(e)}))},t.prototype.ngOnChanges=function(e){var t=this;this.inited&&(e._data&&this.zone.runOutsideAngular((function(){t.updateData()})),e.selectedId&&this.selectedId!=this.currentSelectedId&&this.select(this.selectedId,{move:!0}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.destroy$.next(),this.destroy$.complete()},t.prototype.createLayers=function(){var e,t=this,o=[];this.layerMap={};var i=this.createLayer();if(this.layerMap[""]=i,o.push(i),(null===(e=this.groups)||void 0===e?void 0:e.length)&&this.groups.forEach((function(e){if(e.group){var i=t.createLayer(e);t.layerMap[e.group]=i,o.push(i)}})),!this.enableMarkerClusterer&&this.showLabel){var a=Object.assign(Object.assign({},this.getTextOptions(this.labelFont)),{flat:!1,collides:!0,offset:[this.labelOffsetX||0,this.labelOffsetY||0],stroke:{color:this.stroke},padding:[2,2],margin:[0,0]});this.stroke&&"rgba(0,0,0,0)"!==this.stroke&&(a.stroke={color:this.stroke}),this.strokeWidth&&(a.lineWidth=this.strokeWidth),this.shadow&&(a.shadow={color:this.shadow.color,blur:this.shadow.Z,offsetX:this.shadow.X,offsetY:this.shadow.Y}),this.textLayer=new mapvgl.TextLayer(a),null!=this.showLabelMinZoom&&this.parent.init$.then((function(){var e=t.parent.map.getZoom();t.updateTextVisible(e)})),o.push(this.textLayer)}return o},t.prototype.createLayer=function(e){var t,o,i=this,a=null==e?void 0:e.type;if("circle"===a||"square"===a){var r={shape:a,color:(null==e?void 0:e.color)||"rgba(50, 50, 200, 1)",size:(null==e?void 0:e.size)||10};this.addPickEvent(r),o=new mapvgl.PointLayer(r)}else if("bubble"===a||"wave"===a){r={type:a,color:(null==e?void 0:e.color)||"rgba(255, 0, 0, 1)",size:(null==e?void 0:e.size)||10,duration:1,trail:1};this.addPickEvent(r),o=new mapvgl.CircleLayer(r)}else{var n=this.getIconOptions(e);if(this.enableMarkerClusterer||(null==e?void 0:e.enableMarkerClusterer)){r={iconOptions:n,textOptions:this.getTextOptions(this.clusterFont),minSize:this.clusterMinSize||25,maxSize:this.clusterMaxSize||40};if(null===(t=this.clusterGradient)||void 0===t?void 0:t.length){var s={};s[0]=this.clusterGradient[0],this.clusterGradient.slice(1).forEach((function(e,t){s[(t+1)/i.clusterGradient.length]=e})),r.gradient=s}null!=this.clusterMaxZoom&&(r.maxZoom=this.clusterMaxZoom),this.addPickEvent(r),o=new mapvgl.ClusterLayer(r)}else this.addPickEvent(n),o=new mapvgl.IconLayer(n)}return o},t.prototype.updateTextVisible=function(e){this.textLayer&&(e>=this.showLabelMinZoom?this.textLayer.show():this.textLayer.hide())},t.prototype.updateData=function(){var e=this;if(this.dataMap={},this.toCenter&&this._data.length>0){var t=-180,o=180,i=-90,a=90;this._data.forEach((function(e){t=Math.max(t,e.lng),o=Math.min(o,e.lng),i=Math.max(i,e.lat),a=Math.min(a,e.lat)})),this.parent.setRectCenterAndZoom(o,t,a,i)}var r={};this.groupData=r;var n=[],s=Object.keys(this.layerMap);s.forEach((function(e){r[e]=[]})),this._data.forEach((function(t){var o=t.group;null!=o&&null!=e.layerMap[o]||(o="");var i=t.id_value||t.id;null!=i&&""!=i||(i=getUUID());var a={geometry:{type:"Point",coordinates:[t.lng,t.lat]},properties:{text:t.address,id:i,group:o,raw:t}},s=e.layerMap[o];if(null!=s&&s instanceof mapvgl.ClusterLayer){var d=s.getOptions();if(d.iconOptions){var l=d.iconOptions,p=l.height,c=l.width,g=l.offset,h=l.icon;a.properties=Object.assign({height:p,width:c,offset:g,icon:h},a.properties)}}t.icon&&(a.properties.icon=e.fileUrlService.getUrl(t.icon)),r[o].push(a),e.dataMap[a.properties.id]=a,e.textLayer&&n.push(a)})),this.selectedId&&this.select(this.selectedId,{move:this.selectedId!=this.currentSelectedId,resetLayer:!1,force:!0}),s.forEach((function(t){var o=e.layerMap[t],i=r[t];o.setData(i)})),this.textLayer&&this.textLayer.setData(n)},t.prototype.getIconOptions=function(e){var t=this.iconUrl||"assets/img/screen/marker.png",o=this.iconHeight||38.25,i=this.iconWidth||25,a=null==this.iconOffsetX?0:this.iconOffsetX,r=null==this.iconOffsetY?-o/2:this.iconOffsetY;return e&&e.imageUrl&&(t=this.fileUrlService.getUrl(e.imageUrl),i=e.width||i,o=e.height||o,a=null!=e.XOffset?e.XOffset:0,r=null!=e.YOffset?e.YOffset:-o/2),{icon:t,width:i,height:o,offset:[a,r]}},t.prototype.getTextOptions=function(e){var t={};return e&&(e.size&&(t.fontSize=e.size),e.family&&(t.fontFamily=e.family),e.color&&(t.color=e.color)),t},t.prototype.addPickEvent=function(e){var t=this;if(e.enablePicked=!0,e.onClick=function(e){var o=e.dataItem;if(o&&(t.clickData=o),!1!==t.unselectOnClickBlank&&null==t.clickTimeout&&(t.clickTimeout=setTimeout((function(){null==t.clickData&&(t.selectedId=null,t.select(null)),t.clickTimeout=null,t.clickData=null,t.subMarkers=null}))),o)if("Feature"===o.type){var i=o.geometry.coordinates;t.parent.setCenterAndZoom(i[0],i[1],t.parent.map.getZoom()+2)}else{var a=o.properties.raw;a&&(t.selectedId=o.properties.id,t.select(o.properties.id),t.zone.run((function(){t.onClick.emit(Object.assign(Object.assign({},a),{id:a.id_value||a.id}))})))}},"mouseover"===this.parent.showType){var o=null,i=null;e.onMousemove=function(e){var a=e.dataItem,r=null!=a?a.properties.raw:null;null!=o&&i!=r&&(o.close(),o=null),r&&r.information&&null==o&&(i=r,o=t.parent.openInfoWindow(r,r.lng,r.lat))}}},t.prototype.select=function(e,t){var o=this;if(void 0===t&&(t={}),e!=this.currentSelectedId||t.force){var i=void 0;if(null!=e&&""!==e&&null==(i=this.dataMap[e]))return;this.currentSelectedId=e;var a,r=void 0,n=void 0;if(this.lastSelect&&(r=this.lastSelect.properties.group,this.updateSize(this.lastSelect,1),this.lastSelect=null),i){if(n=i.properties.group,this.updateSize(i,1.5),this.lastSelect=i,a=i.properties.raw,t.move){var s=this.layerMap[n],d=this.parent.map.getZoom();s instanceof mapvgl.ClusterLayer&&null!=this.clusterMaxZoom&&d<=this.clusterMaxZoom&&(d=this.clusterMaxZoom+2),this.parent.setCenterAndZoom(a.lng,a.lat,d)}a.information&&"mouseover"!==this.parent.showType&&setTimeout((function(){o.parent.openInfoWindow(a,a.lng,a.lat)}))}else a={};!1!==t.resetLayer&&(null!=n&&this.resetLayerData(n),null!=r&&r!==n&&this.resetLayerData(r)),null!=e&&null==i||this.zone.run((function(){o.makerClick.emit(Object.assign(Object.assign({},a),{id:a.id_value||a.id}))}))}},t.prototype.resetLayerData=function(e){var t=this.layerMap[e],o=this.groupData[e];t&&o&&t.setData(o)},t.prototype.updateSize=function(e,t){if(e&&this.enlargeOnSelect){var o=this.layerMap[e.properties.group],i=void 0,a=(i=o instanceof mapvgl.ClusterLayer?o.getOptions().iconOptions:o.getOptions()).height,r=i.width,n=i.offset;e.properties.height=a*t,e.properties.width=r*t,e.properties.offset&&(e.properties.offset=[n[0]*t,n[1]*t])}},t}(BaseLayer),exports.ɵcz.decorators=[{type:i0.Component,args:[{selector:"sc-baidu-marker-layer",template:'<nz-dropdown-menu #menu="nzDropdownMenu">\n <ng-template #li let-item>\n <li nz-menu-item (click)="makerClick.emit(item.properties.raw)">\n <div class="menu-item-img">\n <img [src]="item.properties.icon" />\n </div>\n {{ item.properties.raw.address }}\n </li>\n </ng-template>\n <ul *ngIf="subMarkers" nz-menu style="max-height: 300px; overflow: auto">\n <ng-container *ngIf="subMarkers.length <= 50">\n <ng-template\n *ngFor="let marker of subMarkers"\n [ngTemplateOutlet]="li"\n [ngTemplateOutletContext]="{ $implicit: marker }"\n ></ng-template>\n </ng-container>\n <cdk-virtual-scroll-viewport\n *ngIf="subMarkers.length > 50"\n [itemSize]="32"\n [minBufferPx]="500"\n [maxBufferPx]="1000"\n style="height: 292px; width: 200px"\n >\n <ng-template\n *cdkVirtualFor="let marker of subMarkers"\n [ngTemplateOutlet]="li"\n [ngTemplateOutletContext]="{ $implicit: marker }"\n ></ng-template>\n </cdk-virtual-scroll-viewport>\n </ul>\n</nz-dropdown-menu>\n',providers:[scrolling.ScrollDispatcher],styles:[".menu-item-img{width:14px;height:14px;display:inline-flex;align-items:center;justify-content:center}.menu-item-img img{max-height:100%;max-width:100%}"]}]}],exports.ɵcz.ctorParameters=function(){return[{type:exports.ɵcy},{type:i0.NgZone},{type:FileUrlService},{type:dropdown.NzContextMenuService}]},exports.ɵcz.propDecorators={menu:[{type:i0.ViewChild,args:["menu"]}]},__decorate([bbjWidgetBase.Property("",{min:1,ui:{widget:"myPicture",spanLabel:0,spanControl:24}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"iconUrl",void 0),__decorate([bbjWidgetBase.Property("图标宽",{type:"number"}),__metadata("design:type",Object)],exports.ɵcz.prototype,"iconWidth",void 0),__decorate([bbjWidgetBase.Property("图标高",{type:"number"}),__metadata("design:type",Object)],exports.ɵcz.prototype,"iconHeight",void 0),__decorate([bbjWidgetBase.Property("图标偏移x",{type:"number"}),__metadata("design:type",Object)],exports.ɵcz.prototype,"iconOffsetX",void 0),__decorate([bbjWidgetBase.Property("图标偏移y",{type:"number"}),__metadata("design:type",Object)],exports.ɵcz.prototype,"iconOffsetY",void 0),__decorate([bbjWidgetBase.Property("移至中心"),__metadata("design:type",Boolean)],exports.ɵcz.prototype,"toCenter",void 0),__decorate([bbjWidgetBase.Property("点聚合"),__metadata("design:type",Boolean)],exports.ɵcz.prototype,"enableMarkerClusterer",void 0),__decorate([bbjWidgetBase.Property("聚合最小直径",{type:"number",ui:{visibleIf:{enableMarkerClusterer:[!0]}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"clusterMinSize",void 0),__decorate([bbjWidgetBase.Property("聚合最大直径",{type:"number",ui:{visibleIf:{enableMarkerClusterer:[!0]}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"clusterMaxSize",void 0),__decorate([bbjWidgetBase.Property("聚合字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"clusterFont",void 0),__decorate([bbjWidgetBase.Property("聚合颜色",{ui:{widget:"seriesColor",visibleIf:{enableMarkerClusterer:[!0]}}}),__metadata("design:type",Array)],exports.ɵcz.prototype,"clusterGradient",void 0),__decorate([bbjWidgetBase.Property("聚合最大级别",{type:"number",ui:{visibleIf:{enableMarkerClusterer:[!0]}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"clusterMaxZoom",void 0),__decorate([bbjWidgetBase.Property("显示标签",{ui:{visibleIf:{enableMarkerClusterer:[!1]}}}),__metadata("design:type",Boolean)],exports.ɵcz.prototype,"showLabel",void 0),__decorate([bbjWidgetBase.Property("标签显示缩放等级",{ui:{visibleIf:{showLabel:[!0]}}}),__metadata("design:type",Number)],exports.ɵcz.prototype,"showLabelMinZoom",void 0),__decorate([bbjWidgetBase.Property("标签字体",{ui:{widget:"myFont",visibleIf:{showLabel:[!0]}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"labelFont",void 0),__decorate([bbjWidgetBase.Property("描边颜色",{ui:{widget:"myColor"}}),__metadata("design:type",String)],exports.ɵcz.prototype,"stroke",void 0),__decorate([bbjWidgetBase.Property("描边粗细",{type:"integer"}),__metadata("design:type",Number)],exports.ɵcz.prototype,"strokeWidth",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("标签偏移x",{ui:{widget:"number",visibleIf:{showLabel:[!0]}}}),__metadata("design:type",Number)],exports.ɵcz.prototype,"labelOffsetX",void 0),__decorate([bbjWidgetBase.Property("标签偏移y",{ui:{widget:"number",visibleIf:{showLabel:[!0]}}}),__metadata("design:type",Number)],exports.ɵcz.prototype,"labelOffsetY",void 0),__decorate([bbjWidgetBase.Property("选中放大"),__metadata("design:type",Boolean)],exports.ɵcz.prototype,"enlargeOnSelect",void 0),__decorate([bbjWidgetBase.Property("点击空白取消选中",{type:"boolean",default:!0}),__metadata("design:type",Object)],exports.ɵcz.prototype,"unselectOnClickBlank",void 0),__decorate([bbjWidgetBase.Property("标记分组",{type:"array",title:"标记分组",maxItems:10,items:{type:"object",properties:{group:{type:"string",title:"分组"},type:{title:"类型",type:"string",enum:[{label:"图标",value:"icon"},{label:"圆点",value:"circle"},{label:"正方形",value:"square"},{label:"波纹",value:"wave"},{label:"扩散",value:"bubble"}],default:"icon"},color:{type:"string",title:"颜色",ui:{widget:"myColor",visibleIf:{type:["circle","square"]}}},size:{type:"number",title:"尺寸",ui:{visibleIf:{type:["circle","square","wave","bubble"]}}},imageUrl:{type:"string",title:"图片",ui:{widget:"myPicture",visibleIf:{type:["icon"]}}},width:{type:"number",title:"宽度",default:19,ui:{visibleIf:{type:["icon"]}}},height:{type:"number",title:"高度",default:25,ui:{visibleIf:{type:["icon"]}}},XOffset:{type:"number",title:"X轴偏移",ui:{visibleIf:{type:["icon"]}}},YOffset:{type:"number",title:"Y轴偏移",ui:{visibleIf:{type:["icon"]}}},enableMarkerClusterer:{type:"boolean",title:"是否聚合",ui:{visibleIf:{type:["icon"]}}}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"groups",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$b,address:{type:"string",title:"地点"},information:{type:"string",title:"信息"},group:{type:"string",title:"标记分组"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"},icon:{type:"string",title:"图标"}}}),__metadata("design:type",Array)],exports.ɵcz.prototype,"_data",void 0),__decorate([bbjWidgetBase.DataOutput(["id","address","lng","lat"]),bbjWidgetBase.Event("选中值改变",{params:{properties:{id:ɵ1$b,address:{type:"string",title:"地点"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"makerClick",void 0),__decorate([bbjWidgetBase.DataInput("选中id"),__metadata("design:type",String)],exports.ɵcz.prototype,"selectedId",void 0),__decorate([bbjWidgetBase.Event("点击",{params:{properties:{id:ɵ2$9,address:{type:"string",title:"地点"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"onClick",void 0),exports.ɵcz=__decorate([bbjWidgetBase.Widget("标记层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[exports.ɵcy,i0.NgZone,FileUrlService,dropdown.NzContextMenuService])],exports.ɵcz),exports.ɵdb=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.parent=t,i.zone=o,i.strokeWeight=4,i.strokeColor="rgba(242,213,173,1)",i.strokeStyle="solid",i.dashInterval=10,i.interval=.1,i.duration=2,i.trailLength=.5,i.layerOptions=[],i._data=[{group:"x",lng:"120.7",lat:"28"},{group:"x",lng:"120.71",lat:"28.01"},{group:"x",lng:"120.79",lat:"28.1"},{group:"y",lng:"120.72",lat:"28.02"},{group:"y",lng:"120.73",lat:"28.03"},{group:"y",lng:"120.81",lat:"28.12"}],i.layerMap={},i}return __extends(t,e),t.prototype.updateData=function(){var e=this,t={},o={};this._data.forEach((function(i){var a=i.layer;e.layerMap[a]||(a="");var r=t[a],n=o[a];r||(r=[],n={},t[a]=r,o[a]=n);var s=i.group;null==s&&(s="");var d=n[s];null==d&&(d={geometry:{type:"LineString",coordinates:[]}},n[s]=d,r.push(d)),d.geometry.coordinates.push([i.lng,i.lat])})),Object.keys(this.layerMap).forEach((function(o){var i=e.layerMap[o],a=t[o]||[];i.setData(a)}))},t.prototype.createLayers=function(){var e,t=this,o=[];this.layerMap={};var i=this.createLayer();return this.layerMap[""]=i,o.push(i),(null===(e=this.layerOptions)||void 0===e?void 0:e.length)&&this.layerOptions.forEach((function(e){if(e.layer){var i=t.createLayer(e);t.layerMap[e.layer]=i,o.push(i)}})),o},t.prototype.createLayer=function(e){var t={color:this.strokeColor,width:this.strokeWeight,lineCap:"round",animation:this.animation,interval:this.interval,duration:this.duration,trailLength:this.trailLength,blend:"lighter"};if(e&&e.color&&(t.color=e.color),"dashed"===this.strokeStyle){var o=this.dashInterval||10;t.dashArray=[o,o]}return new mapvgl.LineLayer(t)},t}(BaseLayer),exports.ɵdb.decorators=[{type:i0.Component,args:[{selector:"sc-baidu-polyline-layer",template:"",styles:[""]}]}],exports.ɵdb.ctorParameters=function(){return[{type:exports.ɵcy},{type:i0.NgZone}]},__decorate([bbjWidgetBase.Property("线条宽度",{ui:{widget:"myRange",min:1,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"strokeWeight",void 0),__decorate([bbjWidgetBase.Property("线条颜色",{type:"string",ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"strokeColor",void 0),__decorate([bbjWidgetBase.Property("线条类型",{ui:{widget:"select"},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"}]}),__metadata("design:type",Object)],exports.ɵdb.prototype,"strokeStyle",void 0),__decorate([bbjWidgetBase.Property("虚线间隔",{type:"number",ui:{visibleIf:{strokeStyle:["solid"]}}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"dashInterval",void 0),__decorate([bbjWidgetBase.Property("动画"),__metadata("design:type",Boolean)],exports.ɵdb.prototype,"animation",void 0),__decorate([bbjWidgetBase.Property("动画线段长度",{type:"number",ui:{widget:"number",visibleIf:{animation:[!0]}}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"interval",void 0),__decorate([bbjWidgetBase.Property("动画循环时间",{type:"number",ui:{widget:"number",visibleIf:{animation:[!0]}}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"duration",void 0),__decorate([bbjWidgetBase.Property("拖尾长度",{type:"number",ui:{widget:"number",visibleIf:{animation:[!0]}}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"trailLength",void 0),__decorate([bbjWidgetBase.Property("图层",{type:"array",maxItems:10,items:{type:"object",properties:{layer:{type:"string",title:"图层"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"layerOptions",void 0),__decorate([bbjWidgetBase.Data({properties:{layer:{type:"string",title:"图层"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"},group:{type:"string",title:"线编号"}}}),__metadata("design:type",Array)],exports.ɵdb.prototype,"_data",void 0),exports.ɵdb=__decorate([bbjWidgetBase.Widget("折线层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[exports.ɵcy,i0.NgZone])],exports.ɵdb);var EARTH_RADIUS=6371.393;exports.ɵdd=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.parent=t,i.zone=o,i.lineColor="rgba(238,160,29,0.8)",i.lineWidth=2,i.fillColor="rgba(238,160,29,0.3)",i.data=[{lng:144.7,lat:38.9,nw:50,ne:100,sw:150,se:200}],i}return __extends(t,e),t.prototype.createLayers=function(){return this.layer=new mapvgl.PolygonLayer({lineColor:this.lineColor,lineWidth:this.lineWidth,fillColor:this.fillColor,renderOrder:-1}),[this.layer]},t.prototype.updateData=function(){var e=this,t=[];this.data.forEach((function(o){var i=e.getTF([+o.lng,+o.lat],+o.ne,+o.se,+o.sw,+o.nw);t.push({geometry:{type:"Polygon",coordinates:[i]}})})),this.layer.setData(t)},t.prototype.getTF=function(e,t,o,i,a){var r=function(e,t,o){for(var i=180*t/EARTH_RADIUS/Math.PI,a=o+Math.PI/2,r=[],n=0;n<=90;n++){var s=o+(a-o)*n/90,d=e[0]+i*Math.cos(s)/Math.abs(Math.cos(e[1]*Math.PI/180)),l=e[1]+i*Math.sin(s);r.push([d,l])}return r};return __spread(r(e,t,0),r(e,a,Math.PI/2),r(e,i,Math.PI),r(e,o,3*Math.PI/2))},t}(BaseLayer),exports.ɵdd.decorators=[{type:i0.Component,args:[{selector:"sc-typhoon-area-layer",template:"",styles:[""]}]}],exports.ɵdd.ctorParameters=function(){return[{type:exports.ɵcy},{type:i0.NgZone}]},__decorate([bbjWidgetBase.Property("描边颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdd.prototype,"lineColor",void 0),__decorate([bbjWidgetBase.Property("描边宽度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdd.prototype,"lineWidth",void 0),__decorate([bbjWidgetBase.Property("填充颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdd.prototype,"fillColor",void 0),__decorate([bbjWidgetBase.Data({properties:{lng:{type:"number",title:"中心经度"},lat:{type:"number",title:"中心纬度"},nw:{type:"number",title:"西北半径"},ne:{type:"number",title:"东北半径"},sw:{type:"number",title:"西南半径"},se:{type:"number",title:"东南半径"}}}),__metadata("design:type",Array)],exports.ɵdd.prototype,"data",void 0),exports.ɵdd=__decorate([bbjWidgetBase.Widget("风圈",{group:"component",hidden:!0}),__metadata("design:paramtypes",[exports.ɵcy,i0.NgZone])],exports.ɵdd);var CustomBaiduMapModule=function(e){e.register(exports.ɵcy,{scaleContent:!1}),e.register(exports.ɵcz),e.register(exports.ɵdb),e.register(exports.ɵdc),e.register(exports.ɵdd)};CustomBaiduMapModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcy,exports.ɵcz,exports.ɵdb,exports.ɵdc,exports.ɵdd],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,dropdown.NzDropDownModule,noAnimation.NzNoAnimationModule,scrolling.ScrollingModule,radio.NzRadioModule,forms.FormsModule]}]}],CustomBaiduMapModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var icons=["icondingwei1","iconxialakuang","icontianjiazu","iconguanlianshuxing","iconbianzu401","iconanzhuang","iconbaojing","iconbuguifan","iconbianzu621","iconbumen","iconbianzu6","iconbianzu3311","icondaohang","iconbianzu111","iconditu2","iconfuzeren","iconfuzhi1","icongengduo1","iconbuguifanjiashi","iconfadianji","iconbianzu33xiawu42347","iconche","iconguanli","icondukaqi","iconhulian1","iconhoutai","icondianhua2","iconliangqizuozhanjianting","iconguanggao","iconkongqijinghua","iconjuleledaohang","iconluxiang1","iconchouti1","icongerenxinxilan","iconqiqiu","iconpihuating","iconkulian","iconhulianxiawu35716","iconguiji","iconrenyuan1","iconnongye","iconremen","iconshajunshebei","iconnengyuan1","iconshezhixiawu20722","iconshujuyuan","iconxiangpiting","iconlajitong1","iconjiaocheng","icontuichu2","iconweifanggaizao","iconxiaodudu","iconxiaodu1","iconriqi","iconxiaofang","iconwurenji","icontanzhaodengshijian","iconquanxian","iconxiaodu2","iconbumenxiawu14836","iconqiche","iconwulianwang","iconxiaoqu","iconxingzhuangjiehe1","iconxunjian1","iconyangan","iconxinxixiugai","iconyangan1","iconxinshuai","iconzhihang1","iconxiaolian","iconxieya","iconLEDTrackLight-02","iconzhaomingdeng","iconzhangpeng","iconyouhuiquanquanmian","iconicon_gouwu1","iconLedCleanEnergy","iconicon_diannao1","iconled2","iconzhihang2","iconzhineng","iconzhihang","iconjindu","iconhoutui","iconguanbi1","iconhulian","iconkefu","iconkuaidi","iconlianjie","iconkefurexian","iconliuchengjiedian","iconmengjiangnan","iconmoxing","iconqunyou","iconrenyuanguanli","iconqingchuhuancun3x1","iconrenyuanjiegou","iconrongyu","iconshangpin","iconsaomiaohongbao","iconsaoyisao","iconshebei","iconshenghuo","iconshexiang","icontianjia","icontuichubeifen2","icontishi","iconshexiangtou","iconshijiandefuben","iconsoucha","iconxiuxi1","iconxuanze","iconyoutui","iconyonghu","iconzhuanyi","iconicon_diannao","iconwenduji","iconicon_dengdaicaiji","iconzhihuinongye","iconsousuo1","iconicon_neirongjilu","iconicon_ppt","iconshuidi","iconicon_word","iconicon_txt","iconwenjiansoucha","iconwodedianzan1","iconyanganjiankong","iconzhinenglajitong","iconwuliu","iconGroup2","iconicon_gouwu","iconxunjian","iconyouhuiquan","iconyinhangka","iconwodepinglun1","iconGroup2beifen2","iconicon_zhuye","iconwangluo","iconbanbenhao1","iconbianzu11","iconbianzu22","iconbianzu12","iconbianzu13","iconchukou","iconbianzu361","icondaima","iconbianzu39","icondajian","icondiannao","icondenglu","iconbianzu381","iconfangan","icongengxin","icongenghuantouxiang1","icongouwuche","iconguangbo","iconcaijian","iconbaocun","iconbianji","iconbeijing","icondian","iconbukejian","iconfuzhi","iconkejian","iconfangwen","iconguanbi","iconjia","iconlajitong2","iconshangyibu","iconren","iconshangchuan","iconsshanchu","iconshijian","iconsousuo","iconsuo","iconsuoding","iconmokuai","icontexiao","icontubiao","iconwenzi","iconwenjianjia","icontianjiaxuanxiang","iconxiala","iconkaisuo","iconxiayibu","icontupian","iconsxingzhuang","iconxiuxi","iconzhinanzhen","iconyulan","iconstuichu","iconyinle","iconyun","iconzhinanzhen"];exports.ɵdf=function(){function e(e){var t=this;this.msg=e,this.style="classics",this.listType="",this.class={},this.showUploadList=!0,this.loading=!1,this.type="",this.valueChange=new i0.EventEmitter,this.beforeUpload=function(e,o){return"portrait"!==t.style?null:new rxjs.Observable((function(o){var i="image/jpeg"===e.type||"image/png"===e.type;if(!i)return t.msg.error("只能上传图片"),void o.complete();var a=e.size/1024/1024<2;if(!a)return t.msg.error("图片要小于2M"),void o.complete();o.next(i&&a),o.complete()}))}}return e.prototype.handleChange=function(e){var t=this,o=e.file.status;"done"===o?(this.msg.success(e.file.name+" 上传成功"),this.valueChange.emit(e.file.response),"portrait"===this.style&&this.getBase64(e.file.originFileObj,(function(e){t.loading=!1,t.avatarUrl=e}))):"error"===o?(this.msg.error(e.file.name+" 上传失败"),this.loading=!1):"uploading"===o&&(this.loading=!0)},e.prototype.getBase64=function(e,t){var o=new FileReader;o.addEventListener("load",(function(){return t(o.result.toString())})),o.readAsDataURL(e)},e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){switch(this.style){case"portrait":this.listType="picture-card",this.showUploadList=!1,this.class.width="128px",this.class.height="128px",this.type="";break;case"drag":this.type="drag",this.listType="",this.showUploadList=!0,this.class.width="",this.class.height="";break;default:this.type="",this.listType="text",this.showUploadList=!0,this.class.width="",this.class.height=""}},e}(),exports.ɵdf.decorators=[{type:i0.Component,args:[{selector:"sc-upload",template:'<div class="content">\n <nz-upload\n nzAction="/api/screen/fileUpload"\n [nzHeaders]="{ authorization: \'authorization-text\' }"\n (nzChange)="handleChange($event)"\n [nzLimit]="1"\n [ngClass]="class"\n [nzListType]="listType"\n [nzShowUploadList]="showUploadList"\n [nzMultiple]="true"\n [nzBeforeUpload]="beforeUpload"\n nzType="{{type}}"\n\n\n >\n <button nz-button *ngIf="style === \'classics\'"><i nz-icon nzType="upload"></i>点击上传</button>\n <ng-container *ngIf="style === \'portrait\'">\n <ng-container *ngIf="!avatarUrl">\n <i class="upload-icon" nz-icon [nzType]="loading ? \'loading\' : \'plus\'"></i>\n <div class="ant-upload-text">Upload</div>\n </ng-container>\n <img *ngIf="avatarUrl" [src]="avatarUrl" style="width: 100%"/>\n </ng-container>\n <ng-container *ngIf="style===\'drag\'">\n <p class="ant-upload-drag-icon">\n <i nz-icon nzType="inbox"></i>\n </p>\n <p class="ant-upload-text">点击或者拖拽上传</p>\n <p class="ant-upload-hint"></p>\n </ng-container>\n </nz-upload>\n</div>\n',styles:[":host{display:block;text-align:center}:host,div.content{height:100%;width:100%}div.content{display:flex;align-items:center;justify-content:center}"]}]}],exports.ɵdf.ctorParameters=function(){return[{type:message.NzMessageService}]},__decorate([bbjWidgetBase.Property("上传样式",{type:"string",ui:{widget:"select"},enum:[{label:"经典",value:"classics"},{label:"头像",value:"portrait"},{label:"拖拽",value:"drag"}]}),__metadata("design:type",Object)],exports.ɵdf.prototype,"style",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵdf.prototype,"valueChange",void 0),exports.ɵdf=__decorate([bbjWidgetBase.Widget("文件上传",{group:"component",image:"assets/img/screen/file-upload.png",icon:"icontubiao"}),__metadata("design:paramtypes",[message.NzMessageService])],exports.ɵdf);var UploadModule=function(e){e.register(exports.ɵdf)};UploadModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdf],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,icon.NzIconModule,upload.NzUploadModule,button.NzButtonModule]}]}],UploadModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdg=function(){function e(){this.pageSize=10,this.theadBackground="#fafafa",this.headFont={family:"",color:"#222222",weight:"normal",size:12,space:0,lineHeight:2},this.contentAlign="center",this.tbodyBackground="#fafafa",this.showBorder=!1,this.font={family:"",color:"#222222",weight:"normal",size:12,space:0,lineHeight:2},this.cross="x",this.needPage=!1,this.crossVal="y",this._data=[{x:"一月",y:10,s:"收入"},{x:"二月",y:20,s:"收入"},{x:"三月",y:25,s:"收入"},{x:"四月",y:35,s:"收入"},{x:"五月",y:27,s:"收入"},{x:"六月",y:28,s:"收入"},{x:"一月",y:18,s:"支出"},{x:"二月",y:28,s:"支出"},{x:"三月",y:32,s:"支出"},{x:"四月",y:48,s:"支出"},{x:"五月",y:20,s:"支出"},{x:"六月",y:17,s:"支出"}],this.widthConfig=[],this.rows=[],this.heads=[],this.ths=[],this.groups={},this.data=[]}return e.prototype.ngOnInit=function(){this.headStyle={family:this.headFont.family,color:this.headFont.color,weight:this.headFont.weight,fontSize:this.headFont.size+"px",space:this.headFont.space,lineHeight:this.headFont.lineHeight,background:this.theadBackground},this.bodyStyle={family:this.font.family,color:this.font.color,weight:this.font.weight,fontSize:this.font.size+"px",space:this.font.space,lineHeight:this.font.lineHeight,background:this.tbodyBackground}},e.prototype.ngOnChanges=function(e){var t,o=this;if(e._data||e.schema){if(this.data=[],this.groups={},this.heads=[],this.ths=[],this.widthConfig=[],null===(t=this.schema)||void 0===t?void 0:t.properties)Object.keys(this.schema.properties).forEach((function(e){var t,i=o.schema.properties[e];o.cross===e||o.crossVal===e||(null===(t=i.ui)||void 0===t?void 0:t.hidden)||(o.heads.push(e),o.ths.push(i.title),o.widthConfig.push("100px"))}));else{if(null==this._data[0])return;Object.keys(this._data[0]).forEach((function(e){o.cross===e||o.crossVal===e||o.heads.includes(e)||(o.heads.push(e),o.ths.push(e),o.widthConfig.push("100px"))}))}this._data.forEach((function(e){var t=[];o.heads.forEach((function(o){t.push(e[o])})),null==o.groups[t]&&(o.groups[t]=[]),o.ths.includes(e[o.cross])||(o.ths.push(e[o.cross]),o.widthConfig.push("100px")),o.groups[t].push({title:e[o.cross],value:e[o.crossVal]})})),this.assemble()}},e.prototype.assemble=function(){var e=this;null!==this.groups&&"undefined"!==this.groups&&(this.rows=[],Object.keys(this.groups).forEach((function(t){for(var o,i,a=[],r=t.split(","),n=0;n<r.length;n++)a.push({title:e.ths[n],value:r[n]});var s=0;if(e.groups[t].forEach((function(e){a.push(e),s+=e.value})),a.length>0&&a.length<e.ths.length){var d=[],l=function(e){var t="";a.forEach((function(o){o.title===e&&(t=o.value)})),d.push({title:e,value:t})};try{for(var p=__values(e.ths),c=p.next();!c.done;c=p.next()){l(c.value)}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}a=d}a.push({title:"合计",value:Number(s).toFixed(2)}),e.rows.push(a)})),this.data=this.rows,this.ths.push("合计"),this.widthConfig.push("100px"))},e.prototype.exportWord=function(){var e="<table>\n <thead>\n <tr>\n "+this.ths.map((function(e){return"<th>"+e+"</th>"})).join("")+"\n </tr>\n </thead>\n <tbody>\n "+this.data.map((function(e){return"<tr>\n "+e.map((function(e){return"<td>"+e.value+"</td>"})).join("")+"\n </tr>"})).join("")+"\n </tbody>\n</table><br/>";return console.log(e),e},e}(),exports.ɵdg.decorators=[{type:i0.Component,args:[{selector:"sc-cross-table",template:'<nz-table #basicTable [nzData]="data" [nzScroll]="{ x: \'50px\', y: \'100%\' }" [nzPageSize]="pageSize"\n [ngStyle]="bodyStyle"\n [nzBordered]="showBorder" [nzWidthConfig]="widthConfig" [nzFrontPagination]="needPage">\n <thead>\n <tr >\n <th *ngFor="let head of ths" nzAlign="{{contentAlign}}" [ngStyle]="headStyle">{{ head }}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let row of basicTable.data" >\n <ng-container *ngFor="let td of row">\n <td nzAlign="{{contentAlign}}" [ngStyle]="bodyStyle">{{td.value}}</td>\n </ng-container>\n </tr>\n </tbody>\n</nz-table>\n',styles:[":host{display:block;width:100%}.ant-table-wrapper,.ant-table-wrapper ::ng-deep.ant-spin-nested-loading,:host{height:100%}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container{height:100%;display:flex;flex-direction:column}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table{background:inherit;flex:1;overflow:hidden}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-thead>tr>th{background:inherit}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container{height:100%;display:flex;flex-direction:column}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-header{flex:none}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-body{flex:1;overflow:auto}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table-pagination-right{align-self:flex-end}"]}]}],exports.ɵdg.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("条数/页",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"pageSize",void 0),__decorate([bbjWidgetBase.Property("表头背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"theadBackground",void 0),__decorate([bbjWidgetBase.Property("表头字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"headFont",void 0),__decorate([bbjWidgetBase.Property("内容对齐",{type:"string",ui:{widget:"select"},enum:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"},{label:"居中",value:"center"}]}),__metadata("design:type",Object)],exports.ɵdg.prototype,"contentAlign",void 0),__decorate([bbjWidgetBase.Property("表格背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"tbodyBackground",void 0),__decorate([bbjWidgetBase.Property("显示边框",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"showBorder",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("交叉字段",{cross:{type:"string",ui:{}},required:[""]}),__metadata("design:type",Object)],exports.ɵdg.prototype,"cross",void 0),__decorate([bbjWidgetBase.Property("显示分页",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"needPage",void 0),__decorate([bbjWidgetBase.Property("绑定值",{crossVal:{type:"string",ui:{}},required:[""]}),__metadata("design:type",Object)],exports.ɵdg.prototype,"crossVal",void 0),__decorate([bbjWidgetBase.Data({}),__metadata("design:type",Array)],exports.ɵdg.prototype,"_data",void 0),__decorate([bbjWidgetBase.DataSchema("_data"),__metadata("design:type",Object)],exports.ɵdg.prototype,"schema",void 0),exports.ɵdg=__decorate([bbjWidgetBase.Widget("交叉表格",{group:"table",icon:"icontubiao",image:"/assets/img/screen/cross-table.png"}),__metadata("design:paramtypes",[])],exports.ɵdg);var CrossTableModule=function(e){e.register(exports.ɵdg)};CrossTableModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdg],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,table.NzTableModule]}]}],CrossTableModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$c={type:"object",title:"行数据"};exports.ɵbo=function(){function e(e){this.ele=e,this.pageSize=10,this.theadBackground="#fafafa",this.headFont={family:"",color:"#222222",weight:"normal",size:12,space:0,lineHeight:2},this.contentAlign="center",this.tbodyBackground="#FFFFFF",this.font={family:"",color:"#222222",weight:"normal",size:12,space:0,lineHeight:2},this.isCustom=!1,this.showBorder=!1,this.needPage=!1,this.isCount=!1,this.level=[],this.customCol=[],this.isCross=!1,this._data=[{x:"一月",y:"10%",s:"收入"},{x:"二月",y:20,s:"收入"},{x:"三月",y:25,s:"收入"},{x:"四月",y:35,s:"收入"},{x:"五月",y:27,s:"收入"},{x:"六月",y:28,s:"收入"},{x:"一月",y:18,s:"支出"},{x:"二月",y:28,s:"支出"},{x:"三月",y:32,s:"支出"},{x:"四月",y:48,s:"支出"},{x:"五月",y:20,s:"支出"},{x:"六月",y:17,s:"支出"}],this.tdChange=new i0.EventEmitter,this.trChange=new i0.EventEmitter,this.rowChange=new i0.EventEmitter,this.tdClick=new i0.EventEmitter,this.headStyle={},this.bodyStyle={},this.widthConfig=[],this.rows=[],this.totalCount=[],this.needCount=!1,this.searchValue={},this.headers=[],this.filterValues={},this.sumData={}}return e.prototype.ngOnChanges=function(e){e.schema||e.customCol?(this.updateHeader(),this.updateData()):e._data&&(this.schema||this.updateHeader(),this.updateData())},e.prototype.ngOnInit=function(){this.headStyle={family:this.headFont.family,color:this.headFont.color,weight:this.headFont.weight,fontSize:this.headFont.size+"px",space:this.headFont.space,lineHeight:this.headFont.lineHeight,background:this.theadBackground},this.bodyStyle={family:this.font.family,color:this.font.color,weight:this.font.weight,fontSize:this.font.size+"px",space:this.font.space,lineHeight:this.font.lineHeight}},e.prototype.updateHeader=function(){var e=this;if(this.columns=[],this.widthConfig=[],this.isCustom&&this.customCol[0]){var t=this.customCol.some((function(e){return null!=e.group&&""!==e.group}));this.groups=[];var o=[],i={};this.customCol.forEach((function(a){var r=!!a.group,n=a.group||a.title;e.widthConfig.push((a.width||100)+"px");var s={title:a.title,index:a.field,ismerge:a.ismerge,iscount:a.iscount,needlevel:a.needlevel,showFilter:a.showFilter},d=i[n];null==d&&(d={title:n,row:1,col:0,columns:[]},i[n]=d,e.groups.push(d)),d.columns.push(s),d.col++,r?o.push(s):(d.index=a.field,t&&(d.row=2))})),this.headers=[this.groups,o]}else{if(this.schema)Object.keys(this.schema.properties).forEach((function(t){var o=e.schema.properties[t];if(o){var i={title:o.title||t,index:t,schema:o};e.columns.push(i)}}));else if(this._data&&this._data[0]){var a=this._data[0];Object.keys(a).forEach((function(t){var o={title:t,index:t};e.widthConfig.push("100px"),e.columns.push(o)}))}this.headers=[this.columns],console.log("header",this.headers)}},e.prototype.updateData=function(){var e=this;this.dataSize=this._data.length,this._data[0]&&(this.titleSize=Object.keys(this._data[0]).length),this.isCustom&&this.customCol[0]&&(this.updateFilterOptions(),this.groupBy(this._data),this.count()),this.sumColumns&&(this.sumData={},this.sumColumns.split(",").forEach((function(t){var o=e._data.reduce((function(e,o){var i=o[t];return i&&util.isNum(i)&&(e+=+i),e}),0);e.sumData[t]=+o.toFixed(2)})))},e.prototype.updateFilterOptions=function(){var e=this;this.groups&&this.groups.forEach((function(t){t.columns.forEach((function(o){if(o.showFilter){var i=new Set,a=1==t.columns.length?t:o;a.filter=[],e._data&&e._data.forEach((function(t){var r=o.index,n=t[r],s=e.filterValues[r],d=s&&s.includes(n);if((d||e.filterMatch(t,r))&&null!=n&&""!=n&&!i.has(n)){i.add(n);var l={value:n,checked:d};a.filter.push(l)}}))}}))}))},e.prototype.filterMatch=function(e,t){var o,i,a=Object.keys(this.filterValues);try{for(var r=__values(a),n=r.next();!n.done;n=r.next()){var s=n.value;if(s!==t){var d=this.filterValues[s],l=e[s];if((null==d?void 0:d.length)&&!d.includes(l))return!1}}}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return!0},e.prototype.groupBy=function(e){var t=this;this.rows=[],e.forEach((function(e){var o,i,a,r;if(t.filterMatch(e)){var n=[];try{for(var s=__values(t.groups),d=s.next();!d.done;d=s.next()){var l=d.value;try{for(var p=(a=void 0,__values(l.columns)),c=p.next();!c.done;c=p.next()){var g=c.value,h=e[g.index],u="";g.needlevel&&(u=t.getColor(e[g.index])),""==u&&(u=t.tbodyBackground),n.push({rowspan:1,value:h,index:g.index,color:u,data:e})}}catch(e){a={error:e}}finally{try{c&&!c.done&&(r=p.return)&&r.call(p)}finally{if(a)throw a.error}}}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}t.rows.push(n)}})),this.customCol.forEach((function(e,o){if(e.ismerge){t.needPage=!1;var i=null;t.rows.forEach((function(e){var t=e[o];null!=i&&i.value===t.value?(i.rowspan++,t.rowspan=0):i=t}))}}))},e.prototype.getColor=function(e){var t,o,i=/-?\d+\.?\d*/.exec(e);if(this.level.length>0)try{for(var a=__values(this.level),r=a.next();!r.done;r=a.next()){var n=r.value;if(n.gte<=Number(i[0])&&Number(i[0])<n.lte)return n.color}}catch(e){t={error:e}}finally{try{r&&!r.done&&(o=a.return)&&o.call(a)}finally{if(t)throw t.error}}return""},e.prototype.count=function(){var e=this;this._data.forEach((function(t){e.groups.forEach((function(o,i){o.columns.forEach((function(o,a){var r={},n=!1;e.totalCount.forEach((function(e){if(e.filed===o.index)return r=e,void(n=!0)})),0!==i||0!==a||n||(r={filed:o.index,value:"合计"}),0===i&&0===a||(n||(r={filed:o.index}),o.iscount?(e.needCount=!0,r.value||(r.value=0),r.value=Number(r.value)+e.getDataValue(t,o.index)):r.value=""),n||e.totalCount.push(r)}))}))}))},e.prototype.getDataValue=function(e,t){var o=0;return e.forEach((function(e){e.index!==t||(o=Number(e.value))})),o},e.prototype.onTdClick=function(e,t){var o=e.index,i=e.value,a=e.data;this.tdChange.emit(i),this.rowChange.emit(this.customCol[t].title),this.tdClick.emit({index:o,value:i,data:a})},e.prototype.onTdClickByGroup=function(e,t){var o=t.index,i=e[o];this.tdChange.emit(i),this.rowChange.emit(t.title),this.tdClick.emit({index:o,value:i,data:e})},e.prototype.onTrClick=function(e){this.trChange.emit(e)},e.prototype.onCheck=function(e,t){e.filterChecked=t},e.prototype.filter=function(e){this.filterValues[e.index]=e.filterChecked,this.updateData(),e.filterVisible=!1},e.prototype.reset=function(e){e.filterChecked=[],e.filter=e.filter.map((function(e){return{value:e.value}})),this.filter(e)},e.prototype.export=function(){var e=this,t=[],o=[];if(this.groups){var i=[],a=[];this.groups.forEach((function(e){var t=i.length;e.columns.forEach((function(t){i.push(e.title),a.push(t.title)})),(e.row>1||e.col>1)&&o.push({s:{r:0,c:t},e:{r:e.row-1,c:t+e.col-1}})})),t.push(i,a),this._data.forEach((function(e){var i=t.length,a=[];e.forEach((function(e,t){a.push(e.value),e.rowspan>1&&o.push({s:{r:i,c:t},e:{r:i+e.rowspan-1,c:t}})})),t.push(a)}))}else{var r=this.columns.map((function(e){return e.title}));t.push(r),this._data.forEach((function(o){var i=e.columns.map((function(e){return o[e.index]}));t.push(i)}))}return{data:t,merges:o}},e.prototype.exportWord=function(){var e=this.ele.nativeElement,t="",o=e.querySelectorAll("table");return 1===o.length?t+=o.item(0).outerHTML:o.length>1&&(t+="<table>",o.forEach((function(e){var o=(e=e.cloneNode(!0)).querySelector(".ant-table-measure-now");o&&o.parentElement.removeChild(o),t+=e.innerHTML})),t+="</table><br/>"),t},e}(),exports.ɵbo.decorators=[{type:i0.Component,args:[{selector:"sc-table",template:'<nz-table\n *ngIf="columns"\n #basicTable\n [nzData]="_data"\n [nzScroll]="{ x: \'50px\', y: \'100%\' }"\n [nzPageSize]="pageSize"\n [ngStyle]="bodyStyle"\n [nzBordered]="showBorder"\n [nzWidthConfig]="widthConfig"\n [nzFrontPagination]="needPage"\n>\n <thead>\n <tr *ngFor="let header of headers">\n <ng-container *ngFor="let column of header">\n <th\n *ngIf="column.filter"\n [rowSpan]="column.row"\n [ngStyle]="headStyle"\n [colSpan]="column.col"\n [nzAlign]="contentAlign"\n nzCustomFilter\n >\n {{ column.title }}\n <ng-container *ngIf="column.filter">\n <nz-filter-trigger\n [nzDropdownMenu]="menu"\n [(nzVisible)]="column.filterVisible"\n [nzActive]="filterValues[column.index]?.length"\n >\n <i nz-icon nzType="filter" nzTheme="outline"></i>\n </nz-filter-trigger>\n <nz-dropdown-menu #menu="nzDropdownMenu">\n <div class="ant-table-filter-dropdown">\n <div class="search-box">\n <nz-checkbox-wrapper style="width: 100%" (nzOnChange)="onCheck(column, $event)">\n <div *ngFor="let option of column.filter">\n <label nz-checkbox [nzValue]="option.value" [ngModel]="option.checked">\n <span [innerHTML]="option.value | nzSafeNull | nzSanitizer : \'html\'"></span>\n </label>\n </div>\n </nz-checkbox-wrapper>\n <button nz-button nzSize="small" nzType="primary" (click)="filter(column)" class="search-button">\n 查询\n </button>\n <button nz-button nzSize="small" (click)="reset(column)">重置</button>\n </div>\n </div>\n </nz-dropdown-menu>\n </ng-container>\n </th>\n <th\n *ngIf="!column.filter"\n [rowSpan]="column.row"\n [ngStyle]="headStyle"\n [colSpan]="column.col"\n [nzAlign]="contentAlign"\n >\n {{ column.title }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf="!groups">\n <tr *ngFor="let data of basicTable.data" (click)="onTrClick(data)">\n <td\n *ngFor="let column of columns"\n nzAlign="{{ contentAlign }}"\n (click)="onTdClickByGroup(data, column)"\n [ngStyle]="bodyStyle"\n [style.backgroundColor]="tbodyBackground"\n [innerHTML]="data[column.index] | nzSafeNull | nzSanitizer : \'html\'"\n >\n </td>\n </tr>\n </ng-container>\n <ng-container *ngIf="groups">\n <tr *ngFor="let row of rows" (click)="onTrClick(row)">\n <ng-container *ngFor="let td of row; let i = index">\n <td\n *ngIf="td.rowspan"\n [attr.rowspan]="td.rowspan"\n [style.backgroundColor]="td.color"\n nzAlign="{{ contentAlign }}"\n (click)="onTdClick(td, i)"\n [ngStyle]="bodyStyle"\n [innerHTML]="td.value | nzSafeNull | nzSanitizer : \'html\'"\n ></td>\n </ng-container>\n </tr>\n </ng-container>\n <tr *ngIf="needCount">\n <td *ngFor="let count of totalCount" nzAlign="{{ contentAlign }}" [style.backgroundColor]="tbodyBackground">\n {{ count.value }}\n </td>\n </tr>\n <tr *ngIf="needCount">\n <ng-container *ngFor="let count of totalCount; let i = index">\n <td *ngIf="i === 0" nzAlign="{{ contentAlign }}" [style.backgroundColor]="tbodyBackground">平均值</td>\n <td *ngIf="i !== 0" nzAlign="{{ contentAlign }}" [style.backgroundColor]="tbodyBackground">\n {{ count.value / dataSize }}\n </td>\n </ng-container>\n </tr>\n <tr *ngIf="isCount">\n <td nzAlign="{{ contentAlign }}" [style.backgroundColor]="tbodyBackground">个数</td>\n <td nzAlign="{{ contentAlign }}" colSpan="{{ titleSize - 1 }}" [style.backgroundColor]="tbodyBackground">\n {{ dataSize }}\n </td>\n </tr>\n <tr *ngIf="sumColumns">\n <td\n *ngFor="let column of columns; let i = index"\n nzAlign="{{ contentAlign }}"\n [ngStyle]="bodyStyle"\n [style.backgroundColor]="tbodyBackground"\n >\n <ng-container *ngIf="i == 0 && sumData[column.index] == null">合计</ng-container>\n <ng-container *ngIf="sumData[column.index] != null">{{ sumData[column.index] }}</ng-container>\n </td>\n </tr>\n </tbody>\n</nz-table>\n',styles:[":host{display:block;width:100%}.ant-table-wrapper,.ant-table-wrapper ::ng-deep.ant-spin-nested-loading,:host{height:100%}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container{height:100%;display:flex;flex-direction:column}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table{background:inherit;flex:1;overflow:hidden}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-thead>tr>th{background:inherit}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container{height:100%;display:flex;flex-direction:column}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-header{flex:none}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-header::-webkit-scrollbar{opacity:0;background:transparent}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-body{flex:1;overflow:auto}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table-pagination-right{align-self:flex-end}.search-box{padding:8px;width:212px}.search-box input{margin-bottom:8px;display:block}.search-box button{width:90px}.search-button{margin-right:8px}nz-filter-trigger{background:transparent!important}nz-filter-trigger ::ng-deep .ant-table-filter-trigger{font-size:inherit}nz-filter-trigger ::ng-deep .ant-table-filter-trigger:not(.active){color:inherit}.ant-checkbox-group{max-height:300px;overflow:auto}"]}]}],exports.ɵbo.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("条数/页",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"pageSize",void 0),__decorate([bbjWidgetBase.Property("表头背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"theadBackground",void 0),__decorate([bbjWidgetBase.Property("表头字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"headFont",void 0),__decorate([bbjWidgetBase.Property("内容对齐",{type:"string",ui:{widget:"select"},enum:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"},{label:"居中",value:"center"}]}),__metadata("design:type",Object)],exports.ɵbo.prototype,"contentAlign",void 0),__decorate([bbjWidgetBase.Property("表格背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"tbodyBackground",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("是否自定义",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"isCustom",void 0),__decorate([bbjWidgetBase.Property("显示边框",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"showBorder",void 0),__decorate([bbjWidgetBase.Property("显示分页",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"needPage",void 0),__decorate([bbjWidgetBase.Property("统计个数",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"isCount",void 0),__decorate([bbjWidgetBase.Property("合计",{type:"string",ui:{optionalHelp:"填写列名,逗号分隔"}}),__metadata("design:type",String)],exports.ɵbo.prototype,"sumColumns",void 0),__decorate([bbjWidgetBase.Property("颜色分层",{type:"array",maxItems:99,items:{type:"object",properties:{gte:{type:"number",title:"大于"},lte:{type:"number",title:"小于",minimum:1},color:{type:"string",title:"颜色",ui:{widget:"myColor"}}},required:["gte","lte"]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"level",void 0),__decorate([bbjWidgetBase.Property("自定义列",{type:"array",maxItems:99,items:{type:"object",properties:{group:{type:"string",title:"分组名"},title:{type:"string",title:"列名"},field:{type:"string",title:"bind"},width:{type:"number",title:"宽度"},ismerge:{type:"boolean",title:"是否合并"},needlevel:{type:"boolean",title:"颜色分层"},showFilter:{type:"boolean",title:"显示筛选"}},required:["title","field"]},ui:{visibleIf:{isCustom:[!0]},grid:{arraySpan:24},spanLabel:24,spanControl:24}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"customCol",void 0),__decorate([bbjWidgetBase.Data({}),__metadata("design:type",Array)],exports.ɵbo.prototype,"_data",void 0),__decorate([bbjWidgetBase.DataSchema("_data"),__metadata("design:type",Object)],exports.ɵbo.prototype,"schema",void 0),__decorate([bbjWidgetBase.DataOutput("单元格内容"),__metadata("design:type",Object)],exports.ɵbo.prototype,"tdChange",void 0),__decorate([bbjWidgetBase.DataOutput("行数据"),__metadata("design:type",Object)],exports.ɵbo.prototype,"trChange",void 0),__decorate([bbjWidgetBase.DataOutput("列名"),__metadata("design:type",Object)],exports.ɵbo.prototype,"rowChange",void 0),__decorate([bbjWidgetBase.Event("点击单元格",{params:{properties:{index:{type:"string",title:"列名"},value:{type:"string",title:"值"},data:ɵ0$c}}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"tdClick",void 0),exports.ɵbo=__decorate([bbjWidgetBase.Widget("表格",{group:"table",icon:"icontubiao",image:"/assets/img/screen/custom-table.png"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbo);var TableModule=function(e){e.register(exports.ɵbo)};TableModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbo],imports:[common.CommonModule,forms.FormsModule,bbjWidgetBase.WidgetBaseModule,table.NzTableModule,pipes.NzPipesModule,select.NzSelectModule,icon.NzIconModule,dropdown.NzDropDownModule,checkbox.NzCheckboxModule,button.NzButtonModule]}]}],TableModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var HighChartsService=function(){function e(e){this.lazy=e}return e.prototype.load=function(){return"undefined"!=typeof Highcharts?Promise.resolve():(null==this.loadHighChartsPromise&&(this.loadHighChartsPromise=this.lazy.loadScript("assets/js/highcharts/highcharts.js")),this.loadHighChartsPromise)},e.prototype.load3D=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.load()];case 1:return e.sent(),null==this.loadHighCharts3DPromise&&(this.loadHighCharts3DPromise=this.lazy.loadScript("assets/js/highcharts/highcharts-3d.js")),[2,this.loadHighCharts3DPromise]}}))}))},e}();HighChartsService.ɵprov=i0.ɵɵdefineInjectable({factory:function(){return new HighChartsService(i0.ɵɵinject(i1$1.LazyService))},token:HighChartsService,providedIn:"root"}),HighChartsService.decorators=[{type:i0.Injectable,args:[{providedIn:"root"}]}],HighChartsService.ctorParameters=function(){return[{type:util.LazyService}]},exports.ɵdi=function(){function e(e){this.highChartsService=e,this.title="",this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:""},this.buoy=!1,this.colors=["#058DC7","#50B432","#ED561B","#DDDF00","#24CBE5","#64E572","#FF9655","#FFF263","#6AF9C4"],this.thickness=45,this.angle=60,this.showLegend=!0,this.itemDistance=80,this.coefficient=1,this.startAngle=90,this.alignType="center",this.verticalAlign="bottom",this._data=[{x:"一月",y:33},{x:"二月",y:31},{x:"三月",y:11},{x:"四月",y:11},{x:"五月",y:7},{x:"六月",y:20}],this.data=[]}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){return __awaiter(this,void 0,void 0,(function(){var e,t,o,i,a,r,n,s,d,l,p,c=this;return __generator(this,(function(g){switch(g.label){case 0:return[4,this.initPlugin()];case 1:return g.sent(),this.reloadData(),e=Highcharts.each,t=Math.round,o=Math.cos,i=Math.sin,a=Math.PI/180,Highcharts.wrap(Highcharts.seriesTypes.pie.prototype,"translate",(function(r){if(r.apply(this,[].slice.call(arguments,1)),this.chart.is3d()){var n=this,s=n.chart,d=s.options,l=n.options,p=l.depth||0,c=d.chart.options3d,g=c.alpha,h=c.beta,u=l.stacking?(l.stack||0)*p:n._i*p;u+=p/2,!1!==l.grouping&&(u=0),e(n.data,(function(e){var r,s=e.shapeArgs;e.shapeType="arc3d";var d=e.options.h;s.z=u,s.depth=.75*p+d,s.alpha=g,s.beta=h,s.center=n.center,s.ran=d,r=(s.end+s.start)/2,e.slicedTranslation={translateX:t(o(r)*l.slicedOffset*o(g*a)),translateY:t(i(r)*l.slicedOffset*o(g*a))}}))}})),Highcharts.wrap(Highcharts.SVGRenderer.prototype,"arc3dPath",(function(e){var t=e.apply(this,[].slice.call(arguments,1));return t.zTop=(t.zOut+.5)/100,t})),r=this._data.reduce((function(e,t){return e+Number(t.y)}),0),this._data.sort((function(e,t){return t.y-e.y})),n=[],this._data.forEach((function(e){var t,o=e.x,i=e.y;t=0===r?{name:o,y:1,h:100/c._data.length*(c.coefficient||1)}:{name:o,y:Number(i),h:Number(i)/r*100*(c.coefficient||1)},n.push(t)})),s="{series.name}: <b>{point.percentage:.1f}%</b>",d='<span style="{color}">{name} :{y}</span>',l='<span style="color:{point.color}">{point.y}<br/>{point.name}',0===r&&(s="{series.name}: <b>0%</b>",d='<span style="{color}">{name} :0</span>',l='<span style="color:{point.color}">0<br/>{point.name}'),p={legend:{itemStyle:{color:this.font.color,fontSize:this.font.size+"px",fontWeight:this.font.weight,fontFamily:this.font.family},verticalAlign:this.verticalAlign,align:this.alignType,itemDistance:this.itemDistance,labelFormat:d},chart:{type:"pie",animation:!1,events:{load:function(){(0,Highcharts.each)(this.series[0].points,(function(e,t){e.graphic.attr({translateY:-e.shapeArgs.ran}),e.graphic.side1.attr({translateY:-e.shapeArgs.ran}),e.graphic.side2.attr({translateY:-e.shapeArgs.ran})}))}},options3d:{enabled:!0,alpha:this.angle,beta:0}},title:{text:this.title,style:{color:this.font.color,fontSize:this.font.size+"px",fontWeight:this.font.weight,fontFamily:this.font.family}},tooltip:{pointFormat:s,style:getFontStyle(this.tooltipFont)},plotOptions:{pie:{showInLegend:this.showLegend,allowPointSelect:!1,cursor:"pointer",depth:this.thickness,point:{events:{legendItemClick:function(){return!1}}},dataLabels:{style:getFontStyle(this.font),enabled:this.buoy,format:l}}},colors:this.colors,series:[{type:"pie",name:this.title,startAngle:this.startAngle,data:n}]},Highcharts.chart(this.container.nativeElement,p),[2]}}))}))},e.prototype.reloadData=function(){},e.prototype.initPlugin=function(){return this.highChartsService.load3D()},e}(),exports.ɵdi.initPluginPromise=null,exports.ɵdi.decorators=[{type:i0.Component,args:[{selector:"sc-pie3d-chart",template:'<div #container style="height: 100%"></div>\n',styles:[":host::ng-deep .highcharts-background,:host::ng-deep .highcharts-credits{display:none}"]}]}],exports.ɵdi.ctorParameters=function(){return[{type:HighChartsService}]},exports.ɵdi.propDecorators={container:[{type:i0.ViewChild,args:["container",{static:!0}]}]},__decorate([bbjWidgetBase.Property("标题",{type:"string"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"title",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("浮标",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"buoy",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"colors",void 0),__decorate([bbjWidgetBase.Property("饼图厚度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"thickness",void 0),__decorate([bbjWidgetBase.Property("倾斜角度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"angle",void 0),__decorate([bbjWidgetBase.Property("图例开关",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"showLegend",void 0),__decorate([bbjWidgetBase.Property("图例间距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"itemDistance",void 0),__decorate([bbjWidgetBase.Property("高度系数",{type:"number"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"coefficient",void 0),__decorate([bbjWidgetBase.Property("开始角度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"startAngle",void 0),__decorate([bbjWidgetBase.Property("图例水平",{ui:{widget:"select"},enum:[{label:"居中",value:"center"},{label:"居左",value:"left"},{label:"居右",value:"right"}]}),__metadata("design:type",Object)],exports.ɵdi.prototype,"alignType",void 0),__decorate([bbjWidgetBase.Property("图例垂直",{ui:{widget:"select"},enum:[{label:"居上",value:"top"},{label:"居下",value:"bottom"},{label:"居中",value:"middle"}]}),__metadata("design:type",Object)],exports.ɵdi.prototype,"verticalAlign",void 0),__decorate([bbjWidgetBase.Property("提示框字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"tooltipFont",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"_data",void 0),exports.ɵdi=__decorate([bbjWidgetBase.Widget("3D饼图",{group:"pieChart",image:"assets/img/screen/pie3d.png",icon:"icontubiao"}),__metadata("design:paramtypes",[HighChartsService])],exports.ɵdi);var Pie3dChartModule=function(e){e.register(exports.ɵdi)};Pie3dChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdi],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],Pie3dChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdl=function(){function e(){this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},this.detailFont={family:"",color:"#FFFFFF",weight:"normal",size:14,space:0,lineHeight:12},this.percent=!1,this.colors=["#058DC7","#50B432","#ED561B","#DDDF00","#24CBE5","#64E572","#FF9655","#FFF263","#6AF9C4"],this.startAngle=225,this.endAngle=-45,this.label=!1,this.max=100,this.min=0,this.pointerLength=80,this.width=12,this.showPointer=!0,this.showScale=!0,this.chartOption={},this._data=[{name:"速度",value:48},{name:"温度",value:20}]}return e.prototype.ngOnChanges=function(e){if(e._data){this.font.color,this.font.family,this.font.weight,this.font.size,this.font.lineHeight;this.showPointer||(this.pointerLength=0),this.chartOption={series:[{type:"gauge",anchor:{show:this.showPointer,showAbove:!0,size:18,itemStyle:{color:"#FAC858"}},pointer:{icon:"path://M2.9,0.7L2.9,0.7c1.4,0,2.6,1.2,2.6,2.6v115c0,1.4-1.2,2.6-2.6,2.6l0,0c-1.4,0-2.6-1.2-2.6-2.6V3.3C0.3,1.9,1.4,0.7,2.9,0.7z",width:8,length:this.pointerLength+"%",offsetCenter:[0,"8%"]},progress:{show:!0,overlap:!0,roundCap:!0,width:this.width},axisLine:{roundCap:!0,lineStyle:{width:this.width}},startAngle:this.startAngle,endAngle:this.endAngle,splitLine:{show:this.showScale},axisTick:{show:this.showScale},axisLabel:{show:this.showScale,color:"#fff"},data:[],color:this.colors,title:{show:this.label,fontSize:this.font.size,color:this.font.color},detail:{formatter:this.percent?"{value}%":"{value}",width:40,height:this.detailFont.size,fontSize:this.detailFont.size,color:this.detailFont.color,backgroundColor:"auto",borderRadius:3,show:this.label},max:this.max,min:this.min}]}}this.reloadData()},e.prototype.ngOnInit=function(){},e.prototype.reloadData=function(){var e=[];if(this._data){var t=200/(this._data.length+1),o=t-100;this._data.forEach((function(i,a){var r={value:i.value,name:i.name,title:{offsetCenter:[o+a*t+"%","30%"]},detail:{offsetCenter:[o+a*t+"%","50%"]}};e.push(r)}))}this.chartOption.series[0].data=e},e}(),exports.ɵdl.decorators=[{type:i0.Component,args:[{selector:"sc-multi-title-gauge",template:'<div echarts [options]="chartOption" class="demo-chart" [initOpts]="{ renderer: \'svg\' }"></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵdl.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"detailFont",void 0),__decorate([bbjWidgetBase.Property("百分号",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"percent",void 0),__decorate([bbjWidgetBase.Property("类别颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"],visibleIf:{colorSwitch:[!0]}}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"colors",void 0),__decorate([bbjWidgetBase.Property("起始角度",{ui:{widget:"myRange",min:90,max:360,step:1}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"startAngle",void 0),__decorate([bbjWidgetBase.Property("结束角度",{ui:{widget:"myRange",min:-90,max:90,step:1}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"endAngle",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("最大值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("最小值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("指针长度",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"pointerLength",void 0),__decorate([bbjWidgetBase.Property("环宽",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("显示指针",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"showPointer",void 0),__decorate([bbjWidgetBase.Property("显示刻度",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"showScale",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"文字"},value:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"_data",void 0),exports.ɵdl=__decorate([bbjWidgetBase.Widget("多标题仪表盘",{group:"otherChart",image:"assets/img/screen/multiTitleGauge.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵdl);var MultiTitleGaugeModule=function(e){e.register(exports.ɵdl)};MultiTitleGaugeModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdl],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],MultiTitleGaugeModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdn=function(){function e(){this.numfont={family:"Microsoft YaHei",color:"#ffffff",weight:"normal",size:21,space:0,lineHeight:"20"},this.slidesPerView=1,this.spaceBetween=0,this.navigation=!0,this.navigationMoveVal=-60,this.navigationLeftIcon=null,this.navigationRightIcon=null,this.showType="card",this.cardBgImg=null,this.navigationBtnConfig={prevEl:".swiper-navigation-prev",nextEl:".swiper-navigation-next"},this.seriesColor={gradient:!1,value:[["#6D7597","#6D7597"]]},this.width=10,this.startAngle=210,this.endAngle=-30,this.label=!0,this.font={family:"",color:"#FFFFFF",weight:"normal",size:18,space:0,lineHeight:18},this.labelOffset=50,this.labelWidth=null,this.labelVal=!0,this.numFont={family:"",color:"#FFFFFF",weight:"normal",size:38,space:0,lineHeight:38},this.percent=!1,this.labelValOffset=-10,this.max=100,this.min=0,this.progressColor={gradient:!0,value:[["#2505F0","#f00"]]},this.progressShadow=null,this.chartOption={},this._data=[{name:"标题",value:50}],this.data=[]}return e.prototype.ngOnChanges=function(e){var t=this;e._data&&(this.data=[],this._data&&(this._data.length<=this.slidesPerView&&(this.navigation=!1),this._data.forEach((function(e){var o=[];o.push(e);var i={series:[{type:"gauge",startAngle:t.startAngle,endAngle:t.endAngle,progress:{show:!!(e.value&&Number(e.value)>0),overlap:!1,roundCap:!0,clip:!1,itemStyle:{borderWidth:1,color:t.getColor(t.progressColor,"progress"),shadowColor:t.progressShadow,shadowBlur:5}},detail:{show:t.labelVal,formatter:t.percent?(e.value/t.max*100).toFixed(2)+"%":"{value}",color:t.numFont.color,fontFamily:t.numFont.family,fontWeight:t.numFont.weight,fontSize:t.numFont.size,lineHeight:t.numFont.lineHeight,offsetCenter:[0,t.labelValOffset+"%"]},data:o,title:{show:t.label,color:t.font.color,fontFamily:t.font.family,fontWeight:t.font.weight,fontSize:t.font.size,lineHeight:t.font.lineHeight,offsetCenter:[0,t.labelOffset+"%"],overflow:"breakAll",width:t.labelWidth},axisLine:{roundCap:!0,lineStyle:{width:t.width,color:t.getColor(t.seriesColor)}},max:t.max,min:t.min,axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1},pointer:{show:!1}}]};t.data.push(i)}))))},e.prototype.ngOnInit=function(){},e.prototype.getColor=function(e,t){var o=[],i=[],a=e&&e.value?e.value:e;a.forEach((function(e){o.push({type:"linear",x:0,y:0,x2:1,y2:0,global:!1,colorStops:[{offset:0,color:e[0]},{offset:1,color:e[1]}]})}));var r=1;if(a.length>1){r=1/a.length;for(var n=0;n<a.length;n++)i.push([r*(n+1),o[n]])}return"progress"===t?o[0]:r<1?i:[[1,o[0]]]},e}(),exports.ɵdn.decorators=[{type:i0.Component,args:[{selector:"sc-gauge-progress",template:'\n<swiper\n #swiper\n [slidesPerView]="slidesPerView"\n [spaceBetween]="spaceBetween"\n [navigation]="navigation && navigationLeftIcon && navigationRightIcon ? navigationBtnConfig : navigation"\n class="swiper-no-swiping"\n [noSwiping]="true"\n>\n <ng-template swiperSlide *ngFor="let item of data">\n \x3c!-- <div class="item-img">\n <div class="item-val" [ngStyle]="numfont">{{ item.value }}</div>\n <img [src]="cardBgImg" alt="" />\n </div>\n <div [ngStyle]="font">{{ item.label }}</div> --\x3e\n <div echarts [options]="item" class="demo-chart" [initOpts]="{ renderer: \'svg\' }"></div>\n </ng-template>\n</swiper>\n<ng-container *ngIf="navigation && navigationLeftIcon && navigationRightIcon">\n <div class="navigationbtn swiper-navigation-prev" [style]="{ left: (navigationMoveVal || \'-60\') + \'px\' }">\n <img [src]="navigationLeftIcon" alt="" />\n </div>\n <div class="navigationbtn swiper-navigation-next" [style]="{ right: (navigationMoveVal || \'-60\') + \'px\' }">\n <img [src]="navigationRightIcon" alt="" />\n </div>\n</ng-container>\n\n\n\n',styles:[":host{display:block}:host,:host ::ng-deep .swiper-container{height:100%;width:100%}:host ::ng-deep .swiper-slide{text-align:center;position:relative}:host ::ng-deep .item-img{position:relative}:host ::ng-deep .item-img img{display:block;width:100%}:host ::ng-deep .item-val{position:absolute;text-align:center;top:0;bottom:0;left:0;width:100%;z-index:99}:host ::ng-deep .navigationbtn{cursor:pointer;position:absolute;top:0;bottom:0;display:flex;align-items:center;outline:none}:host ::ng-deep .swiper-navigation-prev{left:-60px}:host ::ng-deep .swiper-navigation-next{right:-60px}.demo-chart{height:100%}"]}]}],exports.ɵdn.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("数值字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"numfont",void 0),__decorate([bbjWidgetBase.Property("可视个数",{type:"number"}),__metadata("design:type",Object)],exports.ɵdn.prototype,"slidesPerView",void 0),__decorate([bbjWidgetBase.Property("间距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdn.prototype,"spaceBetween",void 0),__decorate([bbjWidgetBase.Property("左右按钮",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"navigation",void 0),__decorate([bbjWidgetBase.Property("按钮偏移",{type:"number"}),__metadata("design:type",Object)],exports.ɵdn.prototype,"navigationMoveVal",void 0),__decorate([bbjWidgetBase.Property("左图标",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"navigationLeftIcon",void 0),__decorate([bbjWidgetBase.Property("右图标",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"navigationRightIcon",void 0),__decorate([bbjWidgetBase.Property("显示模式",{ui:{widget:"select"},enum:[{label:"图标卡片",value:"card"}]}),__metadata("design:type",Object)],exports.ɵdn.prototype,"showType",void 0),__decorate([bbjWidgetBase.Property("卡片背景",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"cardBgImg",void 0),__decorate([bbjWidgetBase.Property("表盘颜色",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"seriesColor",void 0),__decorate([bbjWidgetBase.Property("表盘宽度",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("起始角度",{ui:{widget:"myRange",min:90,max:360,step:1}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"startAngle",void 0),__decorate([bbjWidgetBase.Property("结束角度",{ui:{widget:"myRange",min:-90,max:90,step:1}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"endAngle",void 0),__decorate([bbjWidgetBase.Property("显示标题",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("标题字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("标题位移",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"labelOffset",void 0),__decorate([bbjWidgetBase.Property("标题宽度",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"labelWidth",void 0),__decorate([bbjWidgetBase.Property("显示数值",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"labelVal",void 0),__decorate([bbjWidgetBase.Property("数值字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"numFont",void 0),__decorate([bbjWidgetBase.Property("百分号",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"percent",void 0),__decorate([bbjWidgetBase.Property("数值位移",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"labelValOffset",void 0),__decorate([bbjWidgetBase.Property("最大值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("最小值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("进度颜色",{ui:{widget:"seriesColor",type:"gradual"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"progressColor",void 0),__decorate([bbjWidgetBase.Property("进度阴影",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"progressShadow",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"文字"},value:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"_data",void 0),exports.ɵdn=__decorate([bbjWidgetBase.Widget("进度条仪表盘",{group:"otherChart",image:"assets/img/screen/gauge-progress.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵdn);var GaugeProgressModule=function(e){e.register(exports.ɵdn)};GaugeProgressModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdn],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule,angular.SwiperModule]}]}],GaugeProgressModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdr=function(){function e(){this.title="",this.titleFont={family:"",color:"#ffffff",weight:"normal",size:20,space:0,lineHeight:40},this.subtitleFont={family:"",color:"#ffffff",weight:"normal",size:20,space:0,lineHeight:40},this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},this.borderColor="",this.startColor="#D0021B",this.endColor="#F5A623",this.borderWidth=5,this.separate=";",this.marginSize=";",this._data=[{title:"单位单位单位",content:"【带班领导】 张三 1300000000;【值班联系】 李四 1300000000 "},{title:"单位单位单位",content:"【带班领导】 张三 1300000000;【值班联系】 李四 1300000000 "},{title:"单位单位单位",content:"【带班领导】 张三 1300000000;【值班联系】 李四 1300000000 "},{title:"单位单位单位",content:"【带班领导】 张三 1300000000;【值班联系】 李四 1300000000 "}],this.contentArr=[]}return e.prototype.ngOnChanges=function(e){var t=this;this._data&&this._data.length>0&&this._data.forEach((function(e){var o={title:"",content:[]},i=t.separate;i&&""!==i||(i=";"),o.title=e.title,o.content=e.content.split(i),t.contentArr.push(o)}))},e.prototype.ngOnInit=function(){this.titleStyle={fontSize:this.titleFont.size+"px",fontFamily:this.titleFont.family,color:this.titleFont.color,fontWeight:this.titleFont.weight,letterSpacing:this.titleFont.space+"px",lineHeight:this.titleFont.lineHeight+"px"},this.subtitleStyle={fontSize:this.subtitleFont.size+"px",fontFamily:this.subtitleFont.family,color:this.subtitleFont.color,fontWeight:this.subtitleFont.weight,letterSpacing:this.subtitleFont.space+"px",lineHeight:this.subtitleFont.lineHeight+"px",borderLeft:this.borderWidth+"px solid "+this.borderColor,background:"-webkit-linear-gradient(left,"+this.startColor+","+this.endColor+")"},this.textStyle={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"},this.boxStyle={margin:this.marginSize+"px 0px"}},e}(),exports.ɵdr.decorators=[{type:i0.Component,args:[{selector:"sc-bulletin-board",template:'<div class="content">\n <div *ngIf="title" class="title">\n <p [ngStyle]="titleStyle">{{ title }}</p>\n </div>\n <div class="module" *ngFor="let item of contentArr">\n <div class="subtitle" [ngStyle]="subtitleStyle">\n {{ item.title }}\n </div>\n <div class="box" [ngStyle]="boxStyle">\n <div class="text" [ngStyle]="textStyle" *ngFor="let a of item.content">\n {{ a }}\n </div>\n </div>\n </div>\n</div>\n',styles:[".content,:host{width:100%;height:100%}.content{display:block;padding:0 5%;overflow-y:scroll}.content .title{padding:10% 0 5%}.content .text{margin-bottom:10px;padding-left:5%}.content .subtitle{margin-bottom:3%;padding-left:5%}.content::-webkit-scrollbar{display:none}"]}]}],exports.ɵdr.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("标题",{type:"string"}),__metadata("design:type",Object)],exports.ɵdr.prototype,"title",void 0),__decorate([bbjWidgetBase.Property("标题字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"titleFont",void 0),__decorate([bbjWidgetBase.Property("小标题字",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"subtitleFont",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边框颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("渐变开始",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"startColor",void 0),__decorate([bbjWidgetBase.Property("渐变结束",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"endColor",void 0),__decorate([bbjWidgetBase.Property("边框粗细",{type:"number"}),__metadata("design:type",Object)],exports.ɵdr.prototype,"borderWidth",void 0),__decorate([bbjWidgetBase.Property("分隔符",{type:"string"}),__metadata("design:type",Object)],exports.ɵdr.prototype,"separate",void 0),__decorate([bbjWidgetBase.Property("内容边距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdr.prototype,"marginSize",void 0),__decorate([bbjWidgetBase.Data({properties:{title:{type:"string",title:"小标题"},content:{type:"string",title:"内容"}}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"_data",void 0),exports.ɵdr=__decorate([bbjWidgetBase.Widget("布告栏",{group:"component",icon:"icontubiao",image:"/assets/img/screen/bulletin-board.png"}),__metadata("design:paramtypes",[])],exports.ɵdr);var BulletinBoardModule=function(e){e.register(exports.ɵdr)};BulletinBoardModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdr],imports:[common.CommonModule]}]}],BulletinBoardModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},SwiperCore__default.default.use([SwiperCore.Navigation,SwiperCore.Pagination,SwiperCore.Scrollbar,SwiperCore.A11y,SwiperCore.Virtual,SwiperCore.Zoom,SwiperCore.Autoplay,SwiperCore.Thumbs,SwiperCore.Controller]),exports.ɵdp=function(){function e(e){this.ele=e,this.font={family:"Microsoft YaHei",color:"#ffffff",weight:"normal",size:20,space:0,lineHeight:"66"},this.numfont={family:"Microsoft YaHei",color:"#ffffff",weight:"normal",size:21,space:0,lineHeight:"25"},this.titlefont={family:"Microsoft YaHei",color:"#ffffff",weight:"normal",size:21,space:0,lineHeight:"25"},this.slidesPerView=3,this.selectHeight=180,this.gourpHeight=0,this.valueBottom=0,this.spaceBetween=10,this.navigation=!0,this.navigationMoveVal=-60,this.navigationLeftIcon=null,this.navigationRightIcon=null,this.showType="card",this.cardBgImg=null,this.height=180,this.width=180,this.isgroup=!1,this.images=[{imageUrl:"assets/img/screen/picture9.png"},{imageUrl:"assets/img/screen/picture9.png"},{imageUrl:"assets/img/screen/picture9.png"},{imageUrl:"assets/img/screen/picture9.png"},{imageUrl:"assets/img/screen/picture9.png"},{imageUrl:"assets/img/screen/picture9.png"}],this.groups=[{groupName:"1",imageUrl:"assets/img/screen/picture9.png"},{groupName:"2",imageUrl:"assets/img/screen/picture9.png"},{groupName:"3",imageUrl:"assets/img/screen/picture9.png"},{groupName:"4",imageUrl:"assets/img/screen/picture9.png"},{groupName:"5",imageUrl:"assets/img/screen/picture9.png"},{groupName:"6",imageUrl:"assets/img/screen/picture9.png"}],this.groupfont={},this._data=[{label:"测试1",value:"1000",group:"1"},{label:"测试2",value:"1000",group:"2"},{label:"测试3",value:"1000",group:"3"},{label:"测试4",value:"1000",group:"4"},{label:"测试5",value:"1000",group:"5"},{label:"测试6",value:"1000",group:"6"}],this.valueChange=new i0.EventEmitter,this.navigationBtnConfig={prevEl:".swiper-navigation-prev",nextEl:".swiper-navigation-next"},this.data=[],this.items={},this.showNavigation=!0}return e.prototype.ngOnInit=function(){this.isgroup&&(this.groupfont={fontSize:this.titlefont.size+"px",fontFamily:this.titlefont.family,color:this.titlefont.color,fontWeight:this.titlefont.weight,letterSpacing:this.titlefont.space+"px",lineHeight:this.titlefont.lineHeight+"px",top:this.gourpHeight+"px"})},e.prototype.ngOnChanges=function(e){var t=this;this.items={},this.data=[],e.numfont&&(this.numfont={fontSize:this.numfont.size+"px",fontFamily:this.numfont.family,color:this.numfont.color,fontWeight:this.numfont.weight,letterSpacing:this.numfont.space+"px",lineHeight:this.numfont.lineHeight+"px"}),e.font&&(this.font={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"}),this._data&&this._data[0]&&!this.isgroup&&this._data.forEach((function(e,o){var i,a="";t.images&&(a=(null===(i=t.images[o])||void 0===i?void 0:i.imageUrl)||t.images[t.images.length-1].imageUrl,e.imgstyle={height:(t.height||30)+"px",width:(t.width||30)+"px"}),e.img=a,t.data.push(e)})),this._data&&this._data[0]&&this.isgroup&&(this._data.forEach((function(e){var o=e.group||" ";t.items[o]||(t.items[o]={});var i=t.items[o];i.field||(i.field=[]),i.field.push({label:e.label,value:e.value})})),this.groups&&this.groups.length>0&&this.groups.forEach((function(e){var o=t.items[e.groupName];o&&(o.img=e.imageUrl||"",o.imgstyle={height:(t.height||30)+"px",width:(t.width||30)+"px"})})),Object.keys(this.items).forEach((function(e){var o=t.items[e];o.group=e,t.data.push(o)}))),this.data&&this.data[0]?this.showNavigation=this.navigation:this.showNavigation=!1,console.log(this.data)},e.prototype.onSwiper=function(e){},e.prototype.onSlideChange=function(){},e}(),exports.ɵdp.decorators=[{type:i0.Component,args:[{selector:"sc-item-swiper",template:'<swiper\n #swiper\n [slidesPerView]="slidesPerView"\n [spaceBetween]="spaceBetween"\n [navigation]="navigation && navigationLeftIcon && navigationRightIcon ? navigationBtnConfig : navigation"\n class="swiper-no-swiping"\n [noSwiping]="true"\n>\n <ng-template swiperSlide *ngFor="let item of data">\n <ng-container *ngIf="!isgroup">\n <div class="item-img">\n <div class="item-val" [ngStyle]="numfont">{{ item.value }}</div>\n <img [src]="item.img" alt="" [ngStyle]="item.imgstyle" />\n </div>\n <div [ngStyle]="font">{{ item.label }}</div>\n </ng-container>\n \x3c!-- <ng-container *ngFor="let i of item"> --\x3e\n <ng-container *ngIf="isgroup">\n <div class="content" [style.height]="selectHeight + \'px\'">\n <div [ngStyle]="groupfont" class="title">{{ item.group }}</div>\n <div class="item-img">\n \x3c!-- <ng-container *ngIf="item.img"> --\x3e\n <img [src]="item.img" alt="" [ngStyle]="item.imgstyle" />\n \x3c!-- </ng-container> --\x3e\n </div>\n <div class="kvbox" [style.bottom]="valueBottom + \'px\'">\n <div style="display: inline-flex">\n <ng-container *ngFor="let a of item.field">\n <span style="flex: 1; left: 0px" class="label">\n <div [ngStyle]="font">{{ a.label }}</div>\n <div [ngStyle]="numfont">{{ a.value }}</div>\n </span>\n </ng-container>\n </div>\n </div>\n </div>\n </ng-container>\n \x3c!-- </ng-container> --\x3e\n </ng-template>\n</swiper>\n<ng-container *ngIf="navigationLeftIcon && navigationRightIcon">\n <div class="navigationbtn swiper-navigation-prev" [style.left.px]="navigationMoveVal || -60" [class.hidden]="!showNavigation">\n <img [src]="navigationLeftIcon" alt="" />\n </div>\n <div class="navigationbtn swiper-navigation-next" [style.right.px]="navigationMoveVal || -60" [class.hidden]="!showNavigation">\n <img [src]="navigationRightIcon" alt="" />\n </div>\n</ng-container>\n',styles:[":host{position:relative;display:block}:host ::ng-deep .swiper-container{width:100%}:host ::ng-deep .title{z-index:100;position:absolute;left:0;width:100%;text-align:center}:host ::ng-deep .swiper-slide{text-align:center;position:relative;overflow:visible;padding-top:30px}:host ::ng-deep .content,:host ::ng-deep .item-img{position:relative;height:100%;width:100%}:host ::ng-deep .item-img img{display:block;margin:auto}:host ::ng-deep .item-val{position:absolute;text-align:center;top:0;bottom:0;left:0;width:100%;z-index:99;overflow:visible}:host ::ng-deep .navigationbtn{cursor:pointer;position:absolute;top:0;bottom:0;display:flex;align-items:center;outline:none}:host ::ng-deep .navigationbtn.hidden{display:none}:host ::ng-deep .swiper-navigation-prev{left:-60px}:host ::ng-deep .swiper-navigation-next{right:-60px}:host ::ng-deep .label{margin:0 8px}:host ::ng-deep .kvbox{position:absolute;text-align:center;left:0;width:100%;z-index:99}"]}]}],exports.ɵdp.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("标题字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("数值字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"numfont",void 0),__decorate([bbjWidgetBase.Property("分组字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"titlefont",void 0),__decorate([bbjWidgetBase.Property("可视个数",{type:"number"}),__metadata("design:type",Object)],exports.ɵdp.prototype,"slidesPerView",void 0),__decorate([bbjWidgetBase.Property("选项高度"),__metadata("design:type",Number)],exports.ɵdp.prototype,"selectHeight",void 0),__decorate([bbjWidgetBase.Property("分组高度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdp.prototype,"gourpHeight",void 0),__decorate([bbjWidgetBase.Property("值高度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdp.prototype,"valueBottom",void 0),__decorate([bbjWidgetBase.Property("间距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdp.prototype,"spaceBetween",void 0),__decorate([bbjWidgetBase.Property("左右按钮",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"navigation",void 0),__decorate([bbjWidgetBase.Property("按钮偏移",{type:"number"}),__metadata("design:type",Object)],exports.ɵdp.prototype,"navigationMoveVal",void 0),__decorate([bbjWidgetBase.Property("左图标",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"navigationLeftIcon",void 0),__decorate([bbjWidgetBase.Property("右图标",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"navigationRightIcon",void 0),__decorate([bbjWidgetBase.Property("显示模式",{ui:{widget:"select"},enum:[{label:"图标卡片",value:"card"}]}),__metadata("design:type",Object)],exports.ɵdp.prototype,"showType",void 0),__decorate([bbjWidgetBase.Property("卡片背景",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"cardBgImg",void 0),__decorate([bbjWidgetBase.Property("图片高度"),__metadata("design:type",Number)],exports.ɵdp.prototype,"height",void 0),__decorate([bbjWidgetBase.Property("图片宽度"),__metadata("design:type",Number)],exports.ɵdp.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("是否分组"),__metadata("design:type",Boolean)],exports.ɵdp.prototype,"isgroup",void 0),__decorate([bbjWidgetBase.Property("图片分类",{type:"array",title:"图片分类",maxItems:10,items:{type:"object",properties:{imageUrl:{type:"string",title:"图片",ui:{widget:"myPicture"}}},required:[]},ui:{visibleIf:{isgroup:[!1]},grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"images",void 0),__decorate([bbjWidgetBase.Property("新增分组",{type:"array",title:"新增分组",maxItems:10,items:{type:"object",properties:{groupName:{type:"string",title:"组名"},imageUrl:{type:"string",title:"图片",ui:{widget:"myPicture"}}},required:[]},ui:{visibleIf:{isgroup:[!0]},grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"groups",void 0),__decorate([bbjWidgetBase.Data({properties:{label:{title:"标题",type:"string"},value:{title:"值",type:"string"},group:{title:"分组",type:"string"}}}),__metadata("design:type",Array)],exports.ɵdp.prototype,"_data",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵdp.prototype,"valueChange",void 0),exports.ɵdp=__decorate([bbjWidgetBase.Widget("轮播",{group:"component",image:"assets/img/screen/item-swiper.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵdp);var ItemSwiperModule=function(e){e.register(exports.ɵdp)};ItemSwiperModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdp],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,space.NzSpaceModule,angular.SwiperModule]}]}],ItemSwiperModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdt=function(){function e(e,t){this.renderer=e,this.elementRef=t,this.data=[],this.dataChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.edit||this.renderer.setStyle(this.elementRef.nativeElement,"display","none")},e.prototype.ngOnChanges=function(e){e.data&&this.dataChange.emit(this.data)},e.prototype.exportWord=function(){return null},e}(),exports.ɵdt.decorators=[{type:i0.Component,args:[{selector:"sc-temporary-data",template:'<i nz-icon nzType="database" nzTheme="outline"></i>',styles:[":host{font-size:40px;color:#1890ff}"]}]}],exports.ɵdt.ctorParameters=function(){return[{type:i0.Renderer2},{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Data({}),__metadata("design:type",Array)],exports.ɵdt.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput("数据"),__metadata("design:type",Object)],exports.ɵdt.prototype,"dataChange",void 0),exports.ɵdt=__decorate([bbjWidgetBase.Widget("临时数据",{group:"component",image:"assets/img/screen/temporary-data.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.Renderer2,i0.ElementRef])],exports.ɵdt);var TemporaryDataModule=function(e){e.register(exports.ɵdt)};TemporaryDataModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdt],imports:[common.CommonModule,icon.NzIconModule]}]}],TemporaryDataModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdv=function(){function e(){this.lineColor="#004CB3",this.lineshadowColor="rgba(0, 193, 220, 1)",this.lineHightLightColor="#8ED6FF",this.distance=10,this.topDistance=0}return e.prototype.resize=function(){var e=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){e.reload(),e.resizeTimeout=null}),100)},e.prototype.ngAfterViewInit=function(){this.reload()},e.prototype.reload=function(){this.opt={},this.opt.currentIndex=1,this.opt.canvas=this.lineCanvas.nativeElement,this.initOpt(),this._initCanvas(this.opt.canvas,this.opt.width,this.opt.height),this._createPattern(this.opt.canvas),this.draw(0)},e.prototype.ngOnInit=function(){},e.prototype.initOpt=function(){var e=this.distance||100,t=this.canvasBox.nativeElement.offsetWidth;console.log(t,t*Number(this.distance)/100,"间距",e),this.opt=Object.assign(Object.assign({},this.opt),{animating:!0,distance:e,width:t,tabHeight:40,height:60,curDisX:0,currentIndex:0,avgSpeed:this.calcAVGSpeed(2*e),tabWidthList:[Math.round(t/2)-e/2,Math.round(t/2)+e/2]})},e.prototype.calcAVGSpeed=function(e){var t=__read([.85,10,4],3),o=t[0],i=t[1],a=t[2],r=(a*o*e+i*(1-o)*e)/(i*a*20);return r=Math.max(Math.abs(r),2.5)*Math.sign(r)},e.prototype.getCurSpeed=function(e,t){var o=__read([.85,10,4],3),i=o[0],a=o[1],r=o[2];return Math.abs(e)>Math.abs(i*t)?r*this.opt.avgSpeed:a*this.opt.avgSpeed},e.prototype._calCurve=function(e,t,o,i,a,r){a.bezierCurveTo(e+r,t,o-r,i,o,i)},e.prototype._initCanvas=function(e,t,o){var i=window.devicePixelRatio,a=e.getContext("2d");e.width=t*i,e.height=o*i,e.style.width=t+"px",e.style.height=o+"px",a.scale(i,i)},e.prototype._createPattern=function(e){var t=__read([140,23,1],3),o=t[0],i=t[1],a=t[2],r=document.createElement("canvas");r.width=o,r.height=i,r.style.width=o/a+"px",r.style.height=i/a+"px";var n=r.getContext("2d");n.scale(a,a),n.lineWidth=.4;for(var s=1;2>s;s++)n.strokeStyle="RGBA(0, 0, 0,0)",n.beginPath(),n.moveTo(0,3*s),n.lineTo(o,3*s),n.stroke(),n.closePath(),10<s&&.1;var d=e.getContext("2d").createPattern(r,"repeat-x");this.opt.pattern=d,r=null},e.prototype._drawHightlight=function(e){var t=this.opt,o=t.canvas.getContext("2d");o.clearRect(0,0,2*t.width,2*t.height),o.shadowColor=this.lineshadowColor,o.shadowBlur=5,o.strokeStyle=this.lineColor,o.lineWidth=.8,o.fillStyle="none",this._draw(o,!1);var i=o.createLinearGradient(0,0,t.width,t.height),a=e-.3;i.addColorStop(Math.min(1,Math.max(0,0+a)),"rgba(0,0,0,0)"),i.addColorStop(Math.min(1,Math.max(0,0+a+.1)),this.lineHightLightColor),i.addColorStop(Math.min(1,0+a+.3),this.lineHightLightColor),i.addColorStop(Math.min(1,0+a+.3+.1),"rgba(0,0,0,0)"),i.addColorStop(1,"rgba(0,0,0,0)"),o.lineWidth=1.5,o.strokeStyle=i,o.fillStyle=t.pattern,this._draw(o,!0)},e.prototype.draw=function(e){var t=this;this._drawHightlight(e),this.opt.timer=requestAnimationFrame((function(){t.draw((e+.005)%1.6)}))},e.prototype._draw=function(e,t){var o=this.opt,i=o.tabHeight,a=__read([0,110,40,.5,2.5],5),r=a[0],n=a[1],s=a[2],d=a[3],l=a[4],p=0;if(e.beginPath(),e.moveTo(-50,-15),e.lineTo(-50,d),o.animating){var c=this.getCurSpeed(o.curDisX,o.distance);p=Math.min(Math.abs(o.distance),Math.abs(o.curDisX+c))*Math.sign(c)}if(e.lineTo(r+o.tabWidthList[0]+p-n/2,l+d),this._calCurve(r+o.tabWidthList[0]+p-n/2,l+d,r+o.tabWidthList[0]+p+n/2,i+d,e,s),o.animating){var g=o.tabWidthList[o.nextIndex+1]-o.tabWidthList[o.nextIndex];e.lineTo(r+o.tabWidthList[0]+g+p-n/2,i+d),this._calCurve(r+o.tabWidthList[0]+g+p-n/2,i+d,r+o.tabWidthList[0]+g+p+n/2,l+d,e,s)}else e.lineTo(r+o.tabWidthList[1]+p-n/2,i+d),this._calCurve(r+o.tabWidthList[1]+p-n/2,i+d,r+o.tabWidthList[1]+p+n/2,l+d,e,s);e.lineTo(o.width+10,d),e.lineTo(o.width+10,-15),e.closePath(),e.stroke(),t&&e.fill(),o.animating&&t&&(o.curDisX=p),Math.abs(p)>=Math.abs(o.distance)&&(o.animating=!1)},e}(),exports.ɵdv.decorators=[{type:i0.Component,args:[{selector:"sc-line-light-flow",template:"<div #canvasBox [style.paddingTop]=\"topDistance + 'px'\">\r\n <canvas #lineCanvas></canvas>\r\n</div>\r\n",styles:[""]}]}],exports.ɵdv.ctorParameters=function(){return[]},exports.ɵdv.propDecorators={lineCanvas:[{type:i0.ViewChild,args:["lineCanvas"]}],canvasBox:[{type:i0.ViewChild,args:["canvasBox"]}],resize:[{type:i0.HostListener,args:["window:resize"]}]},__decorate([bbjWidgetBase.Property("线条颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdv.prototype,"lineColor",void 0),__decorate([bbjWidgetBase.Property("线条阴影",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdv.prototype,"lineshadowColor",void 0),__decorate([bbjWidgetBase.Property("高亮颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdv.prototype,"lineHightLightColor",void 0),__decorate([bbjWidgetBase.Property("中间间距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdv.prototype,"distance",void 0),__decorate([bbjWidgetBase.Property("上边距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdv.prototype,"topDistance",void 0),exports.ɵdv=__decorate([bbjWidgetBase.Widget("光线特效",{group:"mipAnim"}),__metadata("design:paramtypes",[])],exports.ɵdv);var LineLightFlowModule=function(e){e.register(exports.ɵdv)};LineLightFlowModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdv],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],LineLightFlowModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdw=function(){function e(){}return e.prototype.ngOnChanges=function(e){e.data&&this.data.length&&this.data[0].url&&(this.url=this.data[0].url)},e.prototype.ngOnInit=function(){},e.prototype.setUrl=function(e){this.url=e},e}(),exports.ɵdw.decorators=[{type:i0.Component,args:[{selector:"sc-iframe",template:'<iframe *ngIf="url" [class.edit]="edit" [src]="url | nzSanitizer: \'resourceUrl\'"> </iframe>\n',styles:[":host{display:block}:host,iframe{width:100%;height:100%}iframe{border:none}iframe.edit{pointer-events:none}"]}]}],exports.ɵdw.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("url"),__metadata("design:type",String)],exports.ɵdw.prototype,"url",void 0),__decorate([bbjWidgetBase.Data({properties:{url:{type:"string",title:"url"}}}),__metadata("design:type",Array)],exports.ɵdw.prototype,"data",void 0),__decorate([bbjWidgetBase.Method("设置url"),__param(0,bbjWidgetBase.Param("url")),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],exports.ɵdw.prototype,"setUrl",null),exports.ɵdw=__decorate([bbjWidgetBase.Widget("iframe",{group:"component",image:"assets/img/screen/iframe.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵdw);var IframeModule=function(e){e.register(exports.ɵdw)};IframeModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdw],imports:[common.CommonModule,pipes.NzPipesModule]}]}],IframeModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdy=function(){function e(){this.size=4,this.gutter=4,this.type="flv",this.data=[],this.videos=[],this.selectedIndex=0}return e.prototype.ngOnInit=function(){this.updateSize()},e.prototype.ngOnChanges=function(e){var t,o=this;e.size&&this.updateSize(),e.gutter&&this.updateGutter(),e.src&&this.addSrc(this.src),e.data&&(null===(t=this.data)||void 0===t?void 0:t.length)&&this.data.forEach((function(e,t){var i=o.videos[t];i&&(i.src=e.src)}))},e.prototype.updateSize=function(){if(this.size!==this.videos.length){if(this.size>this.videos.length)for(var e=this.videos.length;e<this.size;e++)this.videos.push({});else this.videos=this.videos.slice(0,this.size);9===this.size?this.cellSize="33.33%":this.cellSize="50%",this.validIndex()}},e.prototype.updateGutter=function(){this.gutter&&(this.margin=-this.gutter,this.height="calc(100% + "+2*this.gutter+"px)")},e.prototype.validIndex=function(){this.selectedIndex>=this.videos.length&&(this.selectedIndex=0)},e.prototype.addSrc=function(e){if(e){var t=this.videos[this.selectedIndex];t&&(t.src=e),this.selectedIndex++,this.validIndex()}},e.prototype.toggle=function(){this.size=4===this.size?9:4,this.updateSize()},e}(),exports.ɵdy.decorators=[{type:i0.Component,args:[{selector:"sc-video-grid",template:'\x3c!-- <div nz-row style="height: 100%" [nzGutter]="[gutter, gutter]">\n \n</div> --\x3e\n<div *ngIf="showToggle" class="grid-top">\n <div class="toggle-btn" (click)="toggle()">\n <img src="/assets/img/screen/grid.png" />\n <span>切换</span>\n </div>\n</div>\n<div class="video-grid">\n <div class="video-grid-inner" [style.margin.px]="margin" [style.height]="height">\n <div\n *ngFor="let video of videos; let i = index"\n class="grid-cell"\n [style.width]="cellSize"\n [style.height]="cellSize"\n [style.padding.px]="gutter"\n >\n <div class="video-container" [class.selected]="i === selectedIndex" (click)="selectedIndex = i">\n <sc-video-player [type]="type" [src]="video.src" [hasAudio]="hasAudio"></sc-video-player>\n <div *ngIf="video.src" class="video-top">\n <i\n class="close"\n nz-icon\n nzType="close"\n nzTheme="outline"\n (click)="$event.stopPropagation(); video.src = null"\n ></i>\n </div>\n </div>\n </div>\n </div>\n</div>\n',styles:[":host{display:flex;flex-direction:column;height:100%;width:100%}.grid-top{flex:none;justify-content:flex-end;padding:10px 0}.grid-top,.toggle-btn{display:flex;align-items:center}.toggle-btn{cursor:pointer;color:#fff}.toggle-btn img{width:14px;height:14px;margin-right:4px}.video-grid{flex:1;width:100%;height:100%}.video-grid-inner{display:flex;height:100%;flex-wrap:wrap;pointer-events:none}.video-container{position:relative;pointer-events:auto;height:100%}.video-container:not(:hover)>.video-top{display:none}.video-top{position:absolute;top:0;left:0;right:0;background-color:rgba(0,0,0,.6);height:30px;display:flex;align-items:center;justify-content:flex-end;padding:0 4px}.close{cursor:pointer;color:#fff;width:16px;height:16px}.selected{outline:2px solid red}"]}]}],exports.ɵdy.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("宫格数",{enum:[{label:"四宫格",value:4},{label:"九宫格",value:9}]}),__metadata("design:type",Object)],exports.ɵdy.prototype,"size",void 0),__decorate([bbjWidgetBase.Property("间隔",{type:"number"}),__metadata("design:type",Object)],exports.ɵdy.prototype,"gutter",void 0),__decorate([bbjWidgetBase.Property("切换按钮"),__metadata("design:type",Boolean)],exports.ɵdy.prototype,"showToggle",void 0),__decorate([bbjWidgetBase.Property("视频类型",{enum:["flv","hls","iframe"]}),__metadata("design:type",Object)],exports.ɵdy.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("是否有声音"),__metadata("design:type",Boolean)],exports.ɵdy.prototype,"hasAudio",void 0),__decorate([bbjWidgetBase.DataInput("视频地址"),__metadata("design:type",String)],exports.ɵdy.prototype,"src",void 0),__decorate([bbjWidgetBase.Data({properties:{src:{title:"视频地址",type:"string"}}}),__metadata("design:type",Object)],exports.ɵdy.prototype,"data",void 0),exports.ɵdy=__decorate([bbjWidgetBase.Widget("视频宫格",{group:"component",image:"assets/img/screen/video-grid.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵdy);var VideoGridModule=function(e){e.register(exports.ɵdy)};VideoGridModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdy],imports:[common.CommonModule,VideoPlayerModule,grid.NzGridModule,icon.NzIconModule]}]}],VideoGridModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdz=function(){function e(){this.min=0,this.max=10,this.symbolSizeMin=10,this.symbolSizeMax=20,this.visualMapColor=["#313695","#4575b4","#74add1","#abd9e9","#e0f3f8","#ffffbf","#fee090","#fdae61","#f46d43","#d73027","#a50026"],this.colorAlphaMin=.5,this.colorAlphaMax=1,this.boxHeight=100,this.boxWidth=100,this.boxDepth=100,this.data=[{x:0,y:0,z:0,value:1},{x:0,y:0,z:1,value:2},{x:0,y:1,z:0,value:3},{x:0,y:1,z:1,value:4},{x:1,y:0,z:0,value:5},{x:1,y:0,z:1,value:6},{x:1,y:1,z:0,value:7},{x:1,y:1,z:1,value:8}]}return e.prototype.ngOnInit=function(){this.reset()},e.prototype.ngOnChanges=function(e){this.reset()},e.prototype.reset=function(){var e,t,o,i=this.data?this.data.map((function(e){return[e.x,e.y,e.z,e.value]})):[];this.options={visualMap:{show:!1,min:this.min,max:this.max,inRange:{symbolSize:[this.symbolSizeMin,this.symbolSizeMax],color:this.visualMapColor,colorAlpha:[this.colorAlphaMin,this.colorAlphaMax]}},xAxis3D:{type:"value"},yAxis3D:{type:"value"},zAxis3D:{type:"value"},grid3D:{axisLine:{lineStyle:{color:"#fff"}},axisPointer:{lineStyle:{color:"#fff"}},viewControl:{},boxHeight:null!==(e=this.boxHeight)&&void 0!==e?e:100,boxWidth:null!==(t=this.boxWidth)&&void 0!==t?t:100,boxDepth:null!==(o=this.boxDepth)&&void 0!==o?o:100},series:[{type:"scatter3D",data:i}]},console.log(this.options)},e.prototype.onChartClick=function(e){},e}(),exports.ɵdz.decorators=[{type:i0.Component,args:[{selector:"sc-scatter3d",template:'<div echarts [options]="options" class="demo-chart" (chartClick)="onChartClick($event)"></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵdz.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("最小值",{type:"number"}),__metadata("design:type",Object)],exports.ɵdz.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("最大值",{type:"number"}),__metadata("design:type",Object)],exports.ɵdz.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("最小尺寸",{type:"number"}),__metadata("design:type",Object)],exports.ɵdz.prototype,"symbolSizeMin",void 0),__decorate([bbjWidgetBase.Property("最大尺寸",{type:"number"}),__metadata("design:type",Object)],exports.ɵdz.prototype,"symbolSizeMax",void 0),__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵdz.prototype,"visualMapColor",void 0),__decorate([bbjWidgetBase.Property("最小不透明度",{type:"number",minimum:0,maximum:1}),__metadata("design:type",Object)],exports.ɵdz.prototype,"colorAlphaMin",void 0),__decorate([bbjWidgetBase.Property("最大不透明度",{type:"number",minimum:0,maximum:1}),__metadata("design:type",Object)],exports.ɵdz.prototype,"colorAlphaMax",void 0),__decorate([bbjWidgetBase.Property("高度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdz.prototype,"boxHeight",void 0),__decorate([bbjWidgetBase.Property("宽度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdz.prototype,"boxWidth",void 0),__decorate([bbjWidgetBase.Property("深度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdz.prototype,"boxDepth",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"number",title:"x"},y:{type:"number",title:"y"},z:{type:"number",title:"z"},value:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵdz.prototype,"data",void 0),exports.ɵdz=__decorate([bbjWidgetBase.Widget("3D散点图",{group:"otherChart",image:"assets/img/screen/bubble.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵdz);var Scatter3dModule=function(e){e.register(exports.ɵdz)};Scatter3dModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdz],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],Scatter3dModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ScreenWidgetModule=function(e){e.register(exports.ɵp,{size:{width:60,height:30}}),e.register(exports.ɵx,{size:{width:200,height:36},option:{borderColor:"#3285ff",background:"rgba(50,133,255,0.2)",dropdownBackgroundColor:"#3285ff",selectDropDownColor:"#fff",selectHoverColor:"#fff",selectHoverBackgroundColor:"#3285ff",font:{color:"#ffffff"},dropdownBg:"rgba(50,133,255,0.2)",dropdownBorderColor:"#3285ff"}});for(var t=1;t<=82;t++)e.register(exports.ɵb,{option:{image:"assets/img/screen/picture"+t+".png"}});for(icons.forEach((function(t){e.register(exports.ɵbn,{option:{icon:t}})})),e.register(exports.ɵbi,{className:"big-title title",title:"大标题",option:{title:"大标题",font:{family:"",color:"#ffffff",weight:"normal",size:36,space:0,lineHeight:50}}},{className:"normal-title title",title:"标题",option:{title:"标题",font:{family:"",color:"#ffffff",weight:"normal",size:32,space:0,lineHeight:45}}},{className:"subtitle title",title:"副标题",option:{title:"副标题",font:{family:"",color:"#ffffff",weight:"normal",size:24,space:0,lineHeight:33}}},{className:"small-title title",title:"小标题",option:{title:"小标题",font:{family:"",color:"#ffffff",weight:"normal",size:16,space:0,lineHeight:22}}},{className:"content title",title:"正文内容",option:{title:"正文内容",font:{family:"",color:"#ffffff",weight:"normal",size:13,space:0,lineHeight:18}}}),e.register(exports.ɵbl,{className:"wordart1 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",font:{family:"cursive",color:"#3285FF",weight:"normal",size:24,space:0,lineHeight:""}}},{className:"wordart2 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}}},{className:"wordart3 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #09FFDD 14%, #0055FF 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}}},{className:"wordart4 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #F76B1C 14%, #FAD961 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}}},{className:"wordart5 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #B4EC51 14%, #429321 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}}},{className:"wordart6 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #3023AE 14%, #FE55FF 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}}}),e.register(exports.ɵbp,{title:"视频demo",option:{type:"video",src:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4"}},{title:"音频demo",option:{type:"audio",src:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4"}}),e.register(exports.ɵc,{option:{type:"basic",font:{color:"#FFFFFF"}},image:"assets/img/screen/basic-line-chart.png"},{title:"区域折线图",image:"assets/img/screen/area-line-chart.png",option:{type:"area",font:{color:"#FFFFFF"}}},{title:"基本曲线图",image:"assets/img/screen/smooth-line-chart.png",group:"smoothLineChart",option:{type:"smooth",font:{color:"#FFFFFF"}}},{title:"区域曲线图",image:"assets/img/screen/smooth-area-line-chart.png",group:"smoothLineChart",option:{type:"smooth-area",font:{color:"#FFFFFF"}}},{title:"阶梯线图",group:"stepLineChart",option:{type:"step",step:"end",font:{color:"#FFFFFF"}},image:"assets/img/screen/basic-line-chart.png"}),e.register(exports.ɵd,{option:{type:"basic"}},{title:"环形饼图",image:"assets/img/screen/pie-o.png",option:{type:"ring"}},{title:"玫瑰饼图",image:"assets/img/screen/rosePie.png",option:{type:"rose"}},{title:"玫瑰环形饼图",image:"assets/img/screen/roseRingPie.png",option:{type:"roseRing"}}),e.register(exports.BasicBarChartComponent,{option:{font:{color:"#FFFFFF"}}},{title:"堆叠柱图",image:"assets/img/screen/doubleBar.png",option:{type:"double",font:{color:"#FFFFFF"}}},{title:"横向柱图",image:"assets/img/screen/horiBar.png",option:{type:"hori",font:{color:"#FFFFFF"}}},{title:"横向堆叠柱图",image:"assets/img/screen/doubleHoriBar.png",option:{type:"horiD",font:{color:"#FFFFFF"}}},{title:"双向柱图",image:"assets/img/screen/doubleColorBar.png",option:{type:"dcolor",font:{color:"#FFFFFF"}}}),e.register(exports.ɵg,{title:"3D柱图",image:"assets/img/screen/3Dbar.png",option:{type:"3D"}},{title:"3D堆叠柱图",image:"assets/img/screen/3DdoubleBar.png",option:{type:"3Ddouble"}},{title:"3D横向柱图",image:"assets/img/screen/3DhoriBar.png",option:{type:"hori"}},{title:"3D堆叠横向柱图",image:"assets/img/screen/3DdoubleHoriBar.png",option:{type:"horiD"}}),e.register(exports.ɵct,{option:{font:{color:"#ffffff"}}}),e.register(exports.ɵbs,{title:"线条",image:"assets/img/screen/shape01.png",option:{type:"line"}},{title:"三角形",image:"assets/img/screen/shape06.png",option:{type:"triangle"}},{title:"矩形",image:"assets/img/screen/shape03.png",option:{type:"rect"}},{title:"圆角矩形",image:"assets/img/screen/shape04.png",option:{type:"rect",fillet:16}},{title:"平行四边形",image:"assets/img/screen/shape09.png",option:{type:"parallelogram",deviation:30}},{title:"梯形",image:"assets/img/screen/shape10.png",option:{type:"trapezoid",upper:50,bottom:100}},{title:"五边形",image:"assets/img/screen/shape08.png",option:{type:"polygonplus",side:5}},{title:"五角星",image:"assets/img/screen/shape07.png",option:{type:"polyhedrosis",side:5}},{title:"圆形",image:"assets/img/screen/shape05.png",option:{type:"circle"}},{title:"箭头",image:"assets/img/screen/shape11.png",option:{type:"polygon",data:[{x:20,y:80},{x:100,y:80},{x:100,y:40},{x:180,y:100},{x:100,y:160},{x:100,y:120},{x:20,y:120}]}}),t=1;t<=75;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/moduleBg"+t+".png",type:"background"}});for(t=1;t<=8;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/border"+t+".png",type:"background"}});for(t=1;t<=8;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/bg"+t+".png",type:"border"}});["assets/img/screen/mipAnim1.gif","assets/img/screen/mipAnim2.gif"].forEach((function(t){e.register(exports.ɵcs,{option:{image:t}})})),e.register(exports.ɵcv,{option:{borderColor:"#3285ff",font:{color:"#3285ff"},background:"rgba(50,133,255,0.2)"}}),e.register(exports.ɵbe,{option:{font:{color:"#ffffff"}}})};ScreenWidgetModule.decorators=[{type:i0.NgModule,args:[{imports:[forms.FormsModule,ImageModule,BasicLineChartModule,BasicPieChartModule,BasicBarChartModule,LineBarChartModule,BarChartThreeDModule,BubbleChartModule,RadarChartModule,FunnelChartModule,PercentPieChartModule,TreeRingChartModule,GaugeModule,LiquidFillModule,ButtonModule,TimerModule,NumberFlopModule,VoteModule,SelectModule,SearchModule,WeatherModule,RadioModule,CheckboxModule,RateModule,GeneralTextModule,MarqueeModule,WordartModule,IconfontModule,TableModule,AudioModule,ShapeModule,BackgroundModule,ShufflingListModule,BasicPlanimetricMapModule,BreathingBubbleLayerModule,PlanimetricMap2dModule,ParentContainerModule,PlanimetricMap3dModule,MipAnimModule,TreeControlModule,VisualMapChartModule,DatePickerModule,TimePickerModule,CustomBaiduMapModule,UploadModule,CrossTableModule,Pie3dChartModule,MultiTitleGaugeModule,GaugeProgressModule,ItemSwiperModule,BulletinBoardModule,TemporaryDataModule,LineLightFlowModule,IframeModule,VideoGridModule,Scatter3dModule],exports:[],declarations:[]}]}],ScreenWidgetModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵeb=function(){function e(e){this.element=e,this.headIconDisplay=!0,this.padding={top:30,right:24,bottom:30,left:24},this.font={family:"",color:"#333333",weight:"normal",size:13,space:0,lineHeight:""},this.icon="sound",this.data=[{content:"陆十三,男,共产党员,村小组长。多年来,他始终怀着对党、对人民无比热爱的赤诚之心,热衷于社会公益慈善事业,尽心竭力地为人民群众做好事实事,通过自身捐款、社会筹款等多种途径融资,为贫困山区、失学儿童送去…"}]}return e.prototype.ngOnInit=function(){this.padding&&(this.element.nativeElement.style.padding=this.padding.top+"px "+this.padding.right+"px "+this.padding.bottom+"px "+this.padding.left+"px",this.element.nativeElement.style.fontSize=this.font.size+"px",this.element.nativeElement.style.fontFamily=this.font.family,this.element.nativeElement.style.color=this.font.color,this.element.nativeElement.style.fontWeight=this.font.weight,this.element.nativeElement.style.letterSpacing=this.font.space+"px",this.element.nativeElement.style.lineHeight=this.font.lineHeight+"px")},e}(),exports.ɵeb.decorators=[{type:i0.Component,args:[{selector:"sc-announcement",template:'<ng-container *ngIf="data[0]">\n {{data[0].content}}\n</ng-container>',styles:[":host{height:100%;overflow:auto;display:block}"]}]}],exports.ɵeb.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("显示图标",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵeb.prototype,"headIconDisplay",void 0),__decorate([bbjWidgetBase.Property("内边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵeb.prototype,"padding",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵeb.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("图标",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵeb.prototype,"icon",void 0),__decorate([bbjWidgetBase.Data({properties:{content:{type:"string",title:"公告内容"}}}),__metadata("design:type",Object)],exports.ɵeb.prototype,"data",void 0),exports.ɵeb=__decorate([bbjWidgetBase.Widget("公告",{group:"component",image:"assets/img/screen/announcement.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵeb);var AnnouncementModule=function(e){this.widgetService=e,e.register(exports.ɵeb)};AnnouncementModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵeb],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],AnnouncementModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var dayFormat="yyyy-MM-dd";function updateEndTime(e){"string"==typeof e.end&&dateFns.isMatch(e.end,dayFormat)&&(e.end=dateFns.format(dateFns.addDays(dateFns.parse(e.end,dayFormat,new Date),1),dayFormat))}var ɵ0$d={type:"string",title:"id"};exports.ɵeg=function(){function e(e,t){var o=this;this.router=e,this.cd=t,this.isInitialDate=!0,this.initialDate="2020-07-18",this.data=[{end:"2020-07-21 00:00:00",start:"2020-07-19 00:00:00",title:"event 3"},{end:"2020-07-19 00:00:00",start:"2020-07-18 00:00:00",title:"event 4"},{end:"2020-07-22",start:"2020-07-20",title:"event 5"}],this.dataClick=new i0.EventEmitter,this.datesSetChange=new i0.EventEmitter,this.eventMap=new Map,this.eventClick=function(e){o.dataClick.emit({id:e.id,title:e.title})}}return e.prototype.ngOnChanges=function(e){var t,o=this;if(e.data)if(null===(t=this.data)||void 0===t?void 0:t.length){var i=this.data.map((function(e){var t=Object.assign(Object.assign({},e),{extendedProps:{eventClick:o.eventClick}});return updateEndTime(t),t}));this.setEvents(this.id,i)}else this.removeEvents(this.id)},e.prototype.ngOnInit=function(){},e.prototype.setEvents=function(e,t){this.eventMap.set(e,t),this.update()},e.prototype.removeEvents=function(e){this.eventMap.has(e)&&(this.eventMap.delete(e),this.update())},e.prototype.update=function(){var e,t,o=this,i=[];try{for(var a=__values(this.eventMap.values()),r=a.next();!r.done;r=a.next()){var n=r.value;n&&i.push.apply(i,__spread(n))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this.calendarOptions={headerToolbar:{left:"prev,next today",center:"title",right:"timeGridDay,timeGridWeek,dayGridMonth"},buttonText:{dayGridMonth:"月",timeGridWeek:"周",timeGridDay:"日",today:"今日"},timeZone:"local",initialDate:this.isInitialDate?this.initialDate:null,events:i,locale:"zh",eventTimeFormat:{hour:"numeric",minute:"2-digit",hour12:!1},slotLabelFormat:{hour:"numeric",minute:"2-digit",hour12:!1},eventClick:function(e){var t;e.jsEvent.preventDefault(),(null===(t=e.event.extendedProps)||void 0===t?void 0:t.eventClick)&&e.event.extendedProps.eventClick(e.event)},datesSet:function(e){console.log(e);var t=e.view.type;t=t.substring(t.indexOf("Grid")+4).toLowerCase();var i=dateFns.format(e.start,"yyyy-MM-dd"),a=dateFns.format(e.end,"yyyy-MM-dd");o.datesSetChange.emit({type:t,start:i,end:a})}},this.cd.markForCheck()},e}(),exports.ɵeg.decorators=[{type:i0.Component,args:[{selector:"sc-calendar",template:'<full-calendar *ngIf="calendarOptions" [options]="calendarOptions"></full-calendar>\n<ng-template *ngFor="let child of children" widget-host [widget]="child"></ng-template>\n',styles:[":host ::ng-deep .fc-direction-ltr{height:100%}:host ::ng-deep .fc .fc-view-harness{padding-bottom:0!important}:host ::ng-deep .fc-license-message{display:none}:host ::ng-deep .fc-daygrid-event{white-space:normal}"]}]}],exports.ɵeg.ctorParameters=function(){return[{type:router.Router},{type:i0.ChangeDetectorRef}]},__decorate([bbjWidgetBase.Property("是否自定义初始日期",{ui:{format:"date",widget:"checkbox",spanLabel:0,spanControl:24}}),__metadata("design:type",Object)],exports.ɵeg.prototype,"isInitialDate",void 0),__decorate([bbjWidgetBase.Property("",{ui:{type:"date",format:"date",spanLabel:0,spanControl:24}}),__metadata("design:type",Object)],exports.ɵeg.prototype,"initialDate",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$d,start:{type:"string",title:"开始日期"},end:{type:"string",title:"结束日期"},title:{type:"string",title:"内容"}}}),__metadata("design:type",Array)],exports.ɵeg.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["id","title"]),__metadata("design:type",Object)],exports.ɵeg.prototype,"dataClick",void 0),__decorate([bbjWidgetBase.DataOutput({properties:{type:{type:"string",title:"视图类型"},start:{type:"string",title:"开始时间"},end:{type:"string",title:"结束时间"}}},{triggerLink:!1}),__metadata("design:type",Object)],exports.ɵeg.prototype,"datesSetChange",void 0),exports.ɵeg=__decorate([bbjWidgetBase.Widget("日历",{group:"component",image:"assets/img/screen/rili.png",icon:"iconmokuai",childTypes:["sc-calendar-events","sc-calendar-background-events"]}),__metadata("design:paramtypes",[router.Router,i0.ChangeDetectorRef])],exports.ɵeg);var CalendarEventsChild=function(){function e(e){this.parent=e}return e.prototype.ngOnChanges=function(e){if(e.data)if(this.data){var t=this.getEvents(this.data);this.parent.setEvents(this.id,t)}else this.parent.removeEvents(this.id)},e.prototype.ngOnDestroy=function(){this.parent.removeEvents(this.id)},e}();CalendarEventsChild.decorators=[{type:i0.Directive}],CalendarEventsChild.ctorParameters=function(){return[{type:exports.ɵeg}]};var ɵ0$e={type:"string",title:"id"};exports.ɵeh=function(e){function t(t){var o=e.call(this,t)||this;return o.parent=t,o.data=[{end:"2020-07-21 00:00:00",start:"2020-07-19 00:00:00",title:"event 3"},{end:"2020-07-19 00:00:00",start:"2020-07-18 00:00:00",title:"event 4"},{end:"2020-07-22",start:"2020-07-20",title:"event 5"}],o}return __extends(t,e),t.prototype.getEvents=function(e){var t=this;return e.map((function(e){var o=Object.assign(Object.assign({},e),{display:"background"});return!o.color&&t.color&&(o.color=t.color),updateEndTime(o),o}))},t}(CalendarEventsChild),exports.ɵeh.decorators=[{type:i0.Component,args:[{selector:"sc-calendar-background-events",template:"",styles:[""]}]}],exports.ɵeh.ctorParameters=function(){return[{type:exports.ɵeg}]},__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"myColor"}}),__metadata("design:type",String)],exports.ɵeh.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$e,start:{type:"string",title:"开始日期"},end:{type:"string",title:"结束日期"},title:{type:"string",title:"标题"},color:{type:"string",title:"背景颜色"}}}),__metadata("design:type",Array)],exports.ɵeh.prototype,"data",void 0),exports.ɵeh=__decorate([bbjWidgetBase.Widget("背景颜色",{hidden:!0}),__metadata("design:paramtypes",[exports.ɵeg])],exports.ɵeh);var ɵ0$f={type:"string",title:"id"};exports.ɵej=function(e){function t(t){var o=e.call(this,t)||this;return o.parent=t,o.data=[{end:"2020-07-21 00:00:00",start:"2020-07-19 00:00:00",title:"event 3"},{end:"2020-07-19 00:00:00",start:"2020-07-18 00:00:00",title:"event 4"},{end:"2020-07-22",start:"2020-07-20",title:"event 5"}],o.dataClick=new i0.EventEmitter,o.eventClick=function(e){o.dataClick.emit(e)},o}return __extends(t,e),t.prototype.getEvents=function(e){var t=this;return e.map((function(e){var o=Object.assign(Object.assign({},e),{extendedProps:{eventClick:t.eventClick}});return!o.color&&t.color&&(o.color=t.color),updateEndTime(o),o}))},t}(CalendarEventsChild),exports.ɵej.decorators=[{type:i0.Component,args:[{selector:"sc-calendar-events",template:"",styles:[""]}]}],exports.ɵej.ctorParameters=function(){return[{type:exports.ɵeg}]},__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"myColor"}}),__metadata("design:type",String)],exports.ɵej.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$f,start:{type:"string",title:"开始日期"},end:{type:"string",title:"结束日期"},title:{type:"string",title:"标题"},color:{type:"string",title:"颜色"}}}),__metadata("design:type",Array)],exports.ɵej.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["id","title"]),__metadata("design:type",Object)],exports.ɵej.prototype,"dataClick",void 0),exports.ɵej=__decorate([bbjWidgetBase.Widget("事件",{hidden:!0}),__metadata("design:paramtypes",[exports.ɵeg])],exports.ɵej);var CalendarModule=function(e){angular$1.FullCalendarModule.registerPlugins([dayGridPlugin__default.default,timeGridPlugin__default.default,interactionPlugin__default.default]),e.register(exports.ɵeg),e.register(exports.ɵej),e.register(exports.ɵeh)};CalendarModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵeg,exports.ɵeh,exports.ɵej],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,angular$1.FullCalendarModule]}]}],CalendarModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵed=function(){function e(){this.type="line",this.size="default",this.tabPosition="top",this.animated=!0,this.selectedIndex=0}return e.prototype.ngOnInit=function(){},e.prototype.getContainer=function(){if(this.children){var e=this.children[this.selectedIndex];if(e)return e.id}},e}(),exports.ɵed.decorators=[{type:i0.Component,args:[{selector:"sc-tabs",template:'<nz-tabset\n [style]="tabPosition === \'top\' || tabPosition === \'bottom\' ? \'padding:0 10px\' : \'\'"\n [(nzSelectedIndex)]="selectedIndex"\n [nzAnimated]="animated"\n [nzSize]="size"\n [nzTabPosition]="tabPosition"\n [nzType]="type"\n [nzTabBarGutter]="tabBarGutter"\n>\n <nz-tab *ngFor="let child of children" [nzTitle]="child.option.title" nzForceRender>\n <ng-template widgetHost [widget]="child"></ng-template>\n </nz-tab>\n</nz-tabset>\n',styles:[":host{display:block}.ant-tabs,:host{height:100%}.ant-tabs ::ng-deep>.ant-tabs-nav{margin:0}.ant-tabs ::ng-deep .ant-tabs-content{height:100%}.ant-tabs ::ng-deep .ant-tabs-content .ant-tabs-tabpane{overflow:auto}.ant-tabs{display:flex}.ant-tabs ::ng-deep .ant-tabs-content{flex:1}.ant-tabs ::ng-deep.ant-tabs-bottom,.ant-tabs ::ng-deep.ant-tabs-top{flex-direction:column}.ant-tabs ::ng-deep.ant-tabs-bottom ::ng-deep>.ant-tabs-bar,.ant-tabs ::ng-deep.ant-tabs-right ::ng-deep>.ant-tabs-bar{order:1}"]}]}],exports.ɵed.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("页签样式",{enum:[{label:"线条",value:"line"},{label:"卡片",value:"card"}]}),__metadata("design:type",Object)],exports.ɵed.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("尺寸",{enum:[{label:"大",value:"large"},{label:"中",value:"default"},{label:"小",value:"small"}]}),__metadata("design:type",Object)],exports.ɵed.prototype,"size",void 0),__decorate([bbjWidgetBase.Property("页签位置",{enum:[{label:"上",value:"top"},{label:"右",value:"right"},{label:"下",value:"bottom"},{label:"左",value:"left"}]}),__metadata("design:type",Object)],exports.ɵed.prototype,"tabPosition",void 0),__decorate([bbjWidgetBase.Property("切换动画",{type:"boolean",ui:{visibleIf:{tabPosition:["top","bottom"]}}}),__metadata("design:type",Object)],exports.ɵed.prototype,"animated",void 0),__decorate([bbjWidgetBase.Property("间隙"),__metadata("design:type",Number)],exports.ɵed.prototype,"tabBarGutter",void 0),exports.ɵed=__decorate([bbjWidgetBase.Widget("标签页",{group:"component",image:"assets/img/screen/tabs.png",icon:"iconmokuai",children:[{title:"选项卡1",type:"sc-tab",option:{title:"Tab 1"},hidden:!0,hideChild:!0}],childTypes:["sc-tab"]}),__metadata("design:paramtypes",[])],exports.ɵed),exports.ɵee=function(){function e(){this.title="New Tab"}return e.prototype.ngOnInit=function(){},e}(),exports.ɵee.decorators=[{type:i0.Component,args:[{selector:"sc-tab",template:'<ng-template [widgetChildren]="children"></ng-template>\n',styles:[""]}]}],exports.ɵee.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("标题"),__metadata("design:type",Object)],exports.ɵee.prototype,"title",void 0),exports.ɵee=__decorate([bbjWidgetBase.Widget("选项卡",{hidden:!0}),__metadata("design:paramtypes",[])],exports.ɵee);var TabsModule=function(e){e.register(exports.ɵed),e.register(exports.ɵee)};TabsModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵed,exports.ɵee],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,tabs.NzTabsModule]}]}],TabsModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵel=function(){function e(e){this.ele=e,this.contentRenderers=new Map,this.headerContent="项目",this.contentFont={family:"",color:"",weight:"normal",size:12,space:0,lineHeight:40},this.lineColor=["rgba(50,133,255,1)","rgba(123,113,192,1)"],this.progressTransparency=.8,this.areaRate=20,this.progressHeight=32,this.data=[{start:"2020-11-10",end:"2020-11-15",title:"代办事件1",project:"benbenjun",progress:"0.4"},{start:"2020-10-10",end:"2020-11-11",title:"代办事件2",project:"benbenjun2",progress:"0.6"},{start:"2020-10-11",end:"2020-11-19",title:"代办事件3",project:"benbenjun3",progress:"0.9"}],this.resources=[],this.events=[]}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){this.init()},e.prototype.init=function(){var e=this;if(this.contentFont&&(this.ele.nativeElement.style.setProperty("--fontSize",this.contentFont.size+"px"),this.ele.nativeElement.style.setProperty("--color",this.contentFont.color),this.ele.nativeElement.style.setProperty("--weight",this.contentFont.weight),this.ele.nativeElement.style.setProperty("--family",this.contentFont.weight),this.ele.nativeElement.style.setProperty("--lineHeight",this.contentFont.lineHeight+"px"),this.ele.nativeElement.style.setProperty("--height",this.progressHeight+"px")),!(null==this.data||this.data.length<1)){var t=[],o=0;this.data.forEach((function(i){var a="";null!==e.lineColor&&e.lineColor.length>0&&(o>=e.lineColor.length&&(o=0),a=e.lineColor[o]),t.push(dateFns.parseISO(i.start)),e.resources.push({id:i.project,title:i.project,eventColor:"rgb(0,210,253,0)"}),e.events.push({id:getUUID(),resourceId:i.project,start:i.start,end:i.end,title:i.title,backColor:a,progress:i.progress}),o++})),this.calendarOptions={timeZone:"UTC",headerToolbar:{left:"today prev,next",center:"title",right:"resourceTimelineDay,resourceTimelineTenDay,resourceTimelineMonth,resourceTimelineYear"},initialView:"resourceTimelineMonth",scrollTime:"08:00",aspectRatio:1.5,initialDate:this.initDate?dateFns.format(this.initDate,"yyyy-MM-dd"):dateFns.format(dateFns.min(t),"yyyy-MM-dd"),views:{resourceTimelineDay:{buttonText:"小时",slotDuration:"00:15"},resourceTimelineTenDay:{type:"resourceTimeline",duration:{days:10},buttonText:"未来10天"},resourceTimelineMonth:{buttonText:"月",slotLabelFormat:[{day:"numeric"},{weekday:"long"}]},resourceTimelineYear:{buttonText:"年",slotLabelFormat:[{month:"long"}],slotLabelInterval:{month:1}}},buttonText:{today:"今日"},editable:!1,resourceAreaHeaderContent:this.headerContent,locale:"zh-cn",resourceAreaWidth:this.areaRate+"%",resources:[],events:[],columnFormat:"dddd",eventContent:function(t){return e.renderEventContent(t)},eventWillUnmount:function(t){return e.unrenderEvent(t)}},this.calendarOptions.resources=this.resources,this.calendarOptions.events=this.events}},e.prototype.renderEventContent=function(e){var t=this.contentRenderers.get(e.event.id),o=e.event.extendedProps.backColor.substr(0,e.event.extendedProps.backColor.lastIndexOf(",")+1)+this.progressTransparency+")",i={barStyle:{width:100*e.event.extendedProps.progress+"%",backgroundColor:e.event.extendedProps.backColor},progressStyle:{backgroundColor:o},title:e.event.title,progress:100*Number(e.event.extendedProps.progress)+"%",start:dateFns.format(e.event.start,"yyyy-MM-dd"),end:dateFns.format(e.event.end,"yyyy-MM-dd")};return t=this.eventContent.createEmbeddedView({data:i}),this.contentRenderers.set(e.event.id,t),t.detectChanges(),{domNodes:t.rootNodes}},e.prototype.unrenderEvent=function(e){var t=this.contentRenderers.get(e.event.id);t&&t.destroy()},e}(),exports.ɵel.decorators=[{type:i0.Component,args:[{selector:"sc-gantt",template:'\x3c!--<nz-date-picker [(ngModel)]="initDate" (ngModelChange)="onChange(initDate)"></nz-date-picker>--\x3e\n<full-calendar *ngIf="calendarOptions" [options]="calendarOptions" ></full-calendar>\n<ng-template #fcEventContent let-data="data">\n\n <div class="progress" nz-tooltip [nzTooltipTitle]="titleTemplate" [ngStyle]="data.progressStyle">\n <span class="bar" [ngStyle]="data.barStyle">{{data.title}}</span>\n </div>\n <ng-template #titleTemplate><i nz-icon nzType="file" style="margin-right: 8px"></i> <span>{{data.title}}<br/>开始:{{data.start}}<br/>结束:{{data.end}}<br/>进度:{{data.progress}}</span></ng-template>\n</ng-template>\n\n',styles:[':host ::ng-deep .fc-direction-ltr{height:100%}:host ::ng-deep .fc .fc-view-harness{padding-bottom:0!important}:host ::ng-deep .progress{overflow:hidden;height:var(--height);background-color:#f7f7f7;background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff5f5f5",endColorstr="#fff9f9f9",GradientType=0);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);border-radius:4px;width:100%}:host ::ng-deep .progress .bar{white-space:nowrap;width:0;height:100%;color:#fff;float:left;font-size:12px;text-align:center;align-items:center;display:flex;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#0e90d2;background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff149bdf",endColorstr="#ff0480be",GradientType=0);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-sizing:border-box;transition:width .6s ease}:host ::ng-deep .fc-license-message{display:none!important}:host ::ng-deep .fc table{font-size:17px!important}:host ::ng-deep .fc-resource .fc-datagrid-cell-main{font-size:var(--fontSize);color:var(--color);font-weight:var(--weight);font-family:var(--family);line-height:var(--lineHeight)}']}]}],exports.ɵel.ctorParameters=function(){return[{type:i0.ElementRef}]},exports.ɵel.propDecorators={eventContent:[{type:i0.ViewChild,args:["fcEventContent",{static:!0}]}]},__decorate([bbjWidgetBase.Property("头部名称",{type:"string"}),__metadata("design:type",Object)],exports.ɵel.prototype,"headerContent",void 0),__decorate([bbjWidgetBase.Property("项目字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵel.prototype,"contentFont",void 0),__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵel.prototype,"lineColor",void 0),__decorate([bbjWidgetBase.Property("进度透明",{type:"number",max:1}),__metadata("design:type",Object)],exports.ɵel.prototype,"progressTransparency",void 0),__decorate([bbjWidgetBase.Property("区域占比",{type:"number"}),__metadata("design:type",Object)],exports.ɵel.prototype,"areaRate",void 0),__decorate([bbjWidgetBase.Property("进度条高度",{type:"number"}),__metadata("design:type",Object)],exports.ɵel.prototype,"progressHeight",void 0),__decorate([bbjWidgetBase.Data({properties:{start:{type:"string",title:"开始日期"},end:{type:"string",title:"结束日期"},title:{type:"string",title:"待办事项"},project:{type:"string",title:"所属项目"},progress:{type:"string",title:"进度"}}}),__metadata("design:type",Array)],exports.ɵel.prototype,"data",void 0),exports.ɵel=__decorate([bbjWidgetBase.Widget("甘特图",{group:"component",image:"assets/img/screen/gantt.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵel);var GanttModule=function(e){angular$1.FullCalendarModule.registerPlugins([dayGridPlugin__default.default,timeGridPlugin__default.default,interactionPlugin__default.default,resourceTimelinePlugin__default.default]),e.register(exports.ɵel)};GanttModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵel],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,angular$1.FullCalendarModule,tooltip.NzToolTipModule]}]}],GanttModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var WorkbenchWidgetModule=function(e){e.register(exports.ɵp,{option:{},size:{width:3,height:3}}),e.register(exports.ɵeg,{option:{},size:{width:16,height:12}});for(var t=1;t<=82;t++)e.register(exports.ɵb,{option:{image:"assets/img/screen/picture"+t+".png",hideHead:!0},size:{width:6,height:6}});for(icons.forEach((function(t){e.register(exports.ɵbn,{option:{type:"iconfont",icon:t,hideHead:!0},size:{width:4,height:4}})})),e.register(exports.ɵs,{option:{font:{color:"#595F7A"}},size:{width:10,height:4}}),e.register(exports.ɵu,{size:{width:12,height:6}}),e.register(exports.ɵw,{size:{width:6,height:6}}),e.register(exports.ɵx,{size:{width:6,height:4}}),e.register(exports.ɵz,{size:{width:6,height:3}}),e.register(exports.ɵbb,{option:{tempFont:{color:"#595F7A"}},size:{width:10,height:6}}),e.register(exports.ɵbd,{option:{font:{color:"#595F7A"}},size:{width:6,height:4}}),e.register(exports.ɵbg,{option:{font:{color:"#595F7A"}},size:{width:6,height:6}}),e.register(exports.ɵbi,{className:"big-title title",title:"大标题",option:{title:"大标题",font:{family:"",color:"#333333",weight:"normal",size:36,space:0,lineHeight:50}},size:{width:5,height:3}},{className:"normal-title title",title:"标题",option:{title:"标题",font:{family:"",color:"#333333",weight:"normal",size:32,space:0,lineHeight:45}},size:{width:5,height:3}},{className:"subtitle title",title:"副标题",option:{title:"副标题",font:{family:"",color:"#333333",weight:"normal",size:24,space:0,lineHeight:33}},size:{width:5,height:3}},{className:"small-title title",title:"小标题",option:{title:"小标题",font:{family:"",color:"#333333",weight:"normal",size:16,space:0,lineHeight:22}},size:{width:5,height:3}},{className:"content title",title:"正文内容",option:{title:"正文内容",font:{family:"",color:"#333333",weight:"normal",size:13,space:0,lineHeight:18}},size:{width:5,height:3}}),e.register(exports.ɵbl,{className:"wordart1 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",font:{family:"cursive",color:"#3285FF",weight:"normal",size:24,space:0,lineHeight:""}},size:{width:7,height:3}},{className:"wordart2 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}},size:{width:7,height:3}},{className:"wordart3 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #09FFDD 14%, #0055FF 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}},size:{width:7,height:3}},{className:"wordart4 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #F76B1C 14%, #FAD961 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}},size:{width:7,height:3}},{className:"wordart5 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #B4EC51 14%, #429321 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}},size:{width:7,height:3}},{className:"wordart6 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #3023AE 14%, #FE55FF 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}},size:{width:7,height:3}}),e.register(exports.ɵbj,{option:{font:{color:"#595F7A"}},size:{width:7,height:3}}),e.register(exports.ɵbp,{title:"视频demo",option:{type:"video",src:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4"}},{title:"音频demo",option:{type:"audio",src:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4"}}),e.register(exports.ɵc,{option:{type:"basic"},image:"assets/img/screen/basic-line-chart.png"},{title:"区域折线图",image:"assets/img/screen/area-line-chart.png",option:{type:"area"}},{title:"基本曲线图",image:"assets/img/screen/smooth-line-chart.png",group:"smoothLineChart",option:{type:"smooth"}},{title:"区域曲线图",image:"assets/img/screen/smooth-area-line-chart.png",group:"smoothLineChart",option:{type:"smooth-area"}},{title:"阶梯线图",group:"stepLineChart",option:{type:"step",step:"end"},image:"assets/img/screen/basic-line-chart.png"}),e.register(exports.ɵd,{option:{type:"basic",font:{color:"#595F7A"}}},{title:"环形饼图",image:"assets/img/screen/pie-o.png",option:{type:"ring",font:{color:"#595F7A"}}},{title:"玫瑰饼图",image:"assets/img/screen/rosePie.png",option:{type:"rose",font:{color:"#595F7A"}}},{title:"玫瑰环形饼图",image:"assets/img/screen/roseRingPie.png",option:{type:"roseRing",font:{color:"#595F7A"}}}),e.register(exports.ɵk,{option:{font:{color:"#595F7A"}}}),e.register(exports.ɵl,{option:{font:{color:"#595F7A"}}}),e.register(exports.BasicBarChartComponent,{},{title:"堆叠柱图",image:"assets/img/screen/doubleBar.png",option:{type:"double"}},{title:"横向柱图",image:"assets/img/screen/horiBar.png",option:{type:"hori"}},{title:"横向堆叠柱图",image:"assets/img/screen/doubleHoriBar.png",option:{type:"horiD"}},{title:"双向柱图",image:"assets/img/screen/doubleColorBar.png",option:{type:"dcolor"}}),e.register(exports.ɵf,{title:"折线柱图",image:"assets/img/screen/lineBar.png",option:{type:"line",font:{color:"#595F7A"}}}),e.register(exports.ɵg,{title:"3D柱图",image:"assets/img/screen/3Dbar.png",option:{type:"3D",font:{color:"#595F7A"}}},{title:"3D堆叠柱图",image:"assets/img/screen/3DdoubleBar.png",option:{type:"3Ddouble",font:{color:"#595F7A"}}},{title:"3D横向柱图",image:"assets/img/screen/3DhoriBar.png",option:{type:"hori",font:{color:"#595F7A"}}},{title:"3D堆叠横向柱图",image:"assets/img/screen/3DdoubleHoriBar.png",option:{type:"horiD",font:{color:"#595F7A"}}}),e.register(exports.ɵh,{title:"散点图",image:"assets/img/screen/bubble.png",option:{type:"bubble",font:{color:"#595F7A"}}}),e.register(exports.ɵi,{title:"雷达图",image:"assets/img/screen/radar.png",option:{type:"radar",font:{color:"#595F7A"}}}),e.register(exports.ɵj,{title:"三角图",image:"assets/img/screen/funnel.png",option:{type:"funnel",font:{color:"#595F7A"}}}),e.register(exports.ɵm,{option:{font:{color:"#595F7A"}}}),e.register(exports.ɵn,{option:{font:{color:"#595F7A"}}}),e.register(exports.ɵbs,{title:"线条",image:"assets/img/screen/shape01.png",option:{type:"line"},size:{width:6,height:7}},{title:"三角形",image:"assets/img/screen/shape06.png",option:{type:"triangle"},size:{width:6,height:7}},{title:"矩形",image:"assets/img/screen/shape03.png",option:{type:"rect"},size:{width:6,height:7}},{title:"圆角矩形",image:"assets/img/screen/shape04.png",option:{type:"rect",fillet:16},size:{width:6,height:7}},{title:"平行四边形",image:"assets/img/screen/shape09.png",option:{type:"parallelogram",bottom:110,deviation:30},size:{width:6,height:7}},{title:"梯形",image:"assets/img/screen/shape10.png",option:{type:"trapezoid",upper:70,bottom:100,deviation:0},size:{width:6,height:7}},{title:"五边形",image:"assets/img/screen/shape08.png",option:{type:"polygonplus",side:5},size:{width:6,height:7}},{title:"五角星",image:"assets/img/screen/shape07.png",option:{type:"polyhedrosis",side:5},size:{width:6,height:7}},{title:"圆形",image:"assets/img/screen/shape05.png",option:{type:"circle"},size:{width:6,height:7}},{title:"箭头",image:"assets/img/screen/shape11.png",option:{type:"polygon",data:[{x:20,y:80},{x:100,y:80},{x:100,y:40},{x:180,y:100},{x:100,y:160},{x:100,y:120},{x:20,y:120}]}}),t=1;t<=75;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/moduleBg"+t+".png",type:"background"},size:{width:10,height:3}});for(t=1;t<=8;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/border"+t+".png",type:"background"},size:{width:10,height:10}});for(t=1;t<=8;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/bg"+t+".png",type:"border"},size:{width:10,height:10}});e.register(exports.ɵeb,{size:{width:14,height:6}}),e.register(exports.ɵbo,{option:{image:"assets/img/screen/table.png"}}),e.register(exports.ɵby,{size:{width:12,height:12}}),e.register(exports.ɵcm,{size:{width:12,height:12}}),["assets/img/screen/mipAnim1.gif","assets/img/screen/mipAnim2.gif"].forEach((function(t){e.register(exports.ɵcs,{option:{image:t},size:{height:6,width:6}})}))};WorkbenchWidgetModule.decorators=[{type:i0.NgModule,args:[{imports:[ImageModule,BasicLineChartModule,BasicPieChartModule,BasicBarChartModule,LineBarChartModule,BarChartThreeDModule,BubbleChartModule,RadarChartModule,FunnelChartModule,PercentPieChartModule,TreeRingChartModule,GaugeModule,LiquidFillModule,ButtonModule,TimerModule,NumberFlopModule,VoteModule,SelectModule,SearchModule,WeatherModule,RadioModule,CheckboxModule,RateModule,GeneralTextModule,MarqueeModule,WordartModule,IconfontModule,AudioModule,ShapeModule,BackgroundModule,AnnouncementModule,TableModule,BasicPlanimetricMapModule,BreathingBubbleLayerModule,PlanimetricMap2dModule,ParentContainerModule,PlanimetricMap3dModule,TreeControlModule,VisualMapChartModule,TimePickerModule,DatePickerModule,CustomBaiduMapModule,TabsModule,MipAnimModule,CalendarModule,UploadModule,CrossTableModule,GanttModule,Pie3dChartModule,LineLightFlowModule,TemporaryDataModule],exports:[],declarations:[]}]}],WorkbenchWidgetModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},Object.keys(i1).forEach((function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return i1[e]}})})),exports.AudioModule=AudioModule,exports.BarChartThreeDModule=BarChartThreeDModule,exports.BasicBarChartModule=BasicBarChartModule,exports.BasicLineChartModule=BasicLineChartModule,exports.BasicPieChartModule=BasicPieChartModule,exports.BasicPlanimetricMapModule=BasicPlanimetricMapModule,exports.BubbleChartModule=BubbleChartModule,exports.CheckboxModule=CheckboxModule,exports.CommonService=CommonService,exports.CrossTableModule=CrossTableModule,exports.CustomBaiduMapModule=CustomBaiduMapModule,exports.DatePickerModule=DatePickerModule,exports.FileUrlService=FileUrlService,exports.FunnelChartModule=FunnelChartModule,exports.GaodeMapService=GaodeMapService,exports.GaugeModule=GaugeModule,exports.IframeModule=IframeModule,exports.LiquidFillModule=LiquidFillModule,exports.MarqueeModule=MarqueeModule,exports.PercentPieChartModule=PercentPieChartModule,exports.PlanimetricMap2dModule=PlanimetricMap2dModule,exports.PlanimetricMap3dModule=PlanimetricMap3dModule,exports.RadarChartModule=RadarChartModule,exports.Scatter3dModule=Scatter3dModule,exports.ScreenWidgetModule=ScreenWidgetModule,exports.SelectModule=SelectModule,exports.TableModule=TableModule,exports.TreeControlModule=TreeControlModule,exports.TreeRingChartModule=TreeRingChartModule,exports.VideoPlayerModule=VideoPlayerModule,exports.VisualMapChartModule=VisualMapChartModule,exports.WorkbenchWidgetModule=WorkbenchWidgetModule,exports.ɵ0=ɵ0$2,exports.ɵ1=ɵ1$2,exports.ɵ2=ɵ2$2,exports.ɵ3=ɵ3$2,exports.ɵa=ImageModule,exports.ɵba=WeatherModule,exports.ɵbc=RadioModule,exports.ɵbf=RateModule,exports.ɵbh=GeneralTextModule,exports.ɵbk=WordartModule,exports.ɵbm=IconfontModule,exports.ɵbq=VideoPlayerComponent,exports.ɵbr=ShapeModule,exports.ɵbt=BackgroundModule,exports.ɵbv=ShufflingListModule,exports.ɵbx=ColorPipe,exports.ɵbz=ParentContainerComponent,exports.ɵca=BreathingBubbleLayerModule,exports.ɵcd=FlyLineLayerModule,exports.ɵcf=Map2dPolylineLayerModule,exports.ɵch=Map2dMarkLayerModule,exports.ɵcj=Map2dVisualLayerModule,exports.ɵcl=ParentContainerModule,exports.ɵcn=Map3dMarkLayerModule,exports.ɵcp=Map3dLineLayerModule,exports.ɵcr=MipAnimModule,exports.ɵcw=TimePickerModule,exports.ɵda=BaseLayer,exports.ɵde=UploadModule,exports.ɵdh=Pie3dChartModule,exports.ɵdj=HighChartsService,exports.ɵdk=MultiTitleGaugeModule,exports.ɵdm=GaugeProgressModule,exports.ɵdo=ItemSwiperModule,exports.ɵdq=BulletinBoardModule,exports.ɵds=TemporaryDataModule,exports.ɵdu=LineLightFlowModule,exports.ɵdx=VideoGridModule,exports.ɵe=LineBarChartModule,exports.ɵea=AnnouncementModule,exports.ɵec=TabsModule,exports.ɵef=CalendarModule,exports.ɵei=CalendarEventsChild,exports.ɵek=GanttModule,exports.ɵo=ButtonModule,exports.ɵq=HttpService,exports.ɵr=TimerModule,exports.ɵt=NumberFlopModule,exports.ɵv=VoteModule,exports.ɵy=SearchModule,Object.defineProperty(exports,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("bbj-screen-widget/core"),require("@angular/common/http"),require("@delon/util"),require("@delon/util/other"),require("@angular/common"),require("bbj-widget-base"),require("ngx-echarts"),require("ng-zorro-antd/icon"),require("@angular/forms"),require("ng-zorro-antd/checkbox"),require("ng-zorro-antd/select"),require("ng-zorro-antd/button"),require("ng-zorro-antd/input"),require("ng-zorro-antd/pipes"),require("ng-zorro-antd/radio"),require("ng-zorro-antd/rate"),require("ng-zorro-antd/slider"),require("echarts-gl"),require("ng-zorro-antd/core/resize-observers"),require("rxjs"),require("rxjs/operators"),require("echarts-liquidfill"),require("ng-zorro-antd/tooltip"),require("echarts"),require("ng-zorro-antd/tree"),require("ng-zorro-antd/core/highlight"),require("date-fns"),require("ng-zorro-antd/i18n"),require("date-fns/fp"),require("ng-zorro-antd/date-picker"),require("ng-zorro-antd/time-picker"),require("ng-zorro-antd/dropdown"),require("@angular/cdk/scrolling"),require("uuid"),require("ng-zorro-antd/core/no-animation"),require("ng-zorro-antd/message"),require("ng-zorro-antd/upload"),require("ng-zorro-antd/table"),require("swiper/swiper-element-bundle.js"),require("ng-zorro-antd/space"),require("ng-zorro-antd/grid"),require("@angular/router"),require("@fullcalendar/angular"),require("@fullcalendar/daygrid"),require("@fullcalendar/timegrid"),require("@fullcalendar/interaction"),require("ng-zorro-antd/tabs"),require("@fullcalendar/resource-timeline")):"function"==typeof define&&define.amd?define("bbj-screen-widget",["exports","@angular/core","bbj-screen-widget/core","@angular/common/http","@delon/util","@delon/util/other","@angular/common","bbj-widget-base","ngx-echarts","ng-zorro-antd/icon","@angular/forms","ng-zorro-antd/checkbox","ng-zorro-antd/select","ng-zorro-antd/button","ng-zorro-antd/input","ng-zorro-antd/pipes","ng-zorro-antd/radio","ng-zorro-antd/rate","ng-zorro-antd/slider","echarts-gl","ng-zorro-antd/core/resize-observers","rxjs","rxjs/operators","echarts-liquidfill","ng-zorro-antd/tooltip","echarts","ng-zorro-antd/tree","ng-zorro-antd/core/highlight","date-fns","ng-zorro-antd/i18n","date-fns/fp","ng-zorro-antd/date-picker","ng-zorro-antd/time-picker","ng-zorro-antd/dropdown","@angular/cdk/scrolling","uuid","ng-zorro-antd/core/no-animation","ng-zorro-antd/message","ng-zorro-antd/upload","ng-zorro-antd/table","swiper/swiper-element-bundle.js","ng-zorro-antd/space","ng-zorro-antd/grid","@angular/router","@fullcalendar/angular","@fullcalendar/daygrid","@fullcalendar/timegrid","@fullcalendar/interaction","ng-zorro-antd/tabs","@fullcalendar/resource-timeline"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["bbj-screen-widget"]={},e.ng.core,e["bbj-screen-widget"].core,e.ng.common.http,e["@delon/util"],e["@delon/util/other"],e.ng.common,e["bbj-widget-base"],e["ngx-echarts"],e["ng-zorro-antd/icon"],e.ng.forms,e["ng-zorro-antd/checkbox"],e["ng-zorro-antd/select"],e["ng-zorro-antd/button"],e["ng-zorro-antd/input"],e["ng-zorro-antd/pipes"],e["ng-zorro-antd/radio"],e["ng-zorro-antd/rate"],e["ng-zorro-antd/slider"],null,e["ng-zorro-antd/core/resize-observers"],e.rxjs,e.rxjs.operators,null,e["ng-zorro-antd/tooltip"],e.echarts,e["ng-zorro-antd/tree"],e["ng-zorro-antd/core/highlight"],e["date-fns"],e["ng-zorro-antd/i18n"],e["date-fns/fp"],e["ng-zorro-antd/date-picker"],e["ng-zorro-antd/time-picker"],e["ng-zorro-antd/dropdown"],e.ng.cdk.scrolling,e.uuid,e["ng-zorro-antd/core/no-animation"],e["ng-zorro-antd/message"],e["ng-zorro-antd/upload"],e["ng-zorro-antd/table"],null,e["ng-zorro-antd/space"],e.grid,e.ng.router,e["@fullcalendar/angular"],e["@fullcalendar/daygrid"],e["@fullcalendar/timegrid"],e["@fullcalendar/interaction"],e["ng-zorro-antd/tabs"],e["@fullcalendar/resource-timeline"])}(this,(function(exports,i0,i1,i2,util,i1$1,common,bbjWidgetBase,ngxEcharts,icon,forms,checkbox,select,button,input,pipes,radio,rate,slider,echartsGl,resizeObservers,rxjs,operators,echartsLiquidfill,tooltip,echarts,tree,highlight,dateFns,i18n,fp,datePicker,timePicker,dropdown,scrolling,uuid,noAnimation,message,upload,table,swiperElementBundle_js,space,grid,router,angular,dayGridPlugin,timeGridPlugin,interactionPlugin,tabs,resourceTimelinePlugin){"use strict";function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var dayGridPlugin__default=_interopDefaultLegacy(dayGridPlugin),timeGridPlugin__default=_interopDefaultLegacy(timeGridPlugin),interactionPlugin__default=_interopDefaultLegacy(interactionPlugin),resourceTimelinePlugin__default=_interopDefaultLegacy(resourceTimelinePlugin),GaodeMapService=function(){function e(e,t){this.lazy=e,this.http=t}return e.prototype.loadMap=function(){return"undefined"!=typeof AMap?Promise.resolve():(this.loadAmapPromise||(this.loadAmapPromise=this.lazy.loadScript("https://webapi.amap.com/maps?v=1.4.15&key=803815fd5b53fbb5bfb6656b049f1d37&plugin=AMap.ControlBar")),this.loadAmapPromise)},e.prototype.getWeather=function(e){return this.http.jsonp("https://restapi.amap.com/v3/weather/weatherInfo?key=d633c7a49d34575ad5fb4235856f3a7b&city="+e,"callback").toPromise()},e}();GaodeMapService.ɵprov=i0.ɵɵdefineInjectable({factory:function(){return new GaodeMapService(i0.ɵɵinject(i1$1.LazyService),i0.ɵɵinject(i2.HttpClient))},token:GaodeMapService,providedIn:"root"}),GaodeMapService.decorators=[{type:i0.Injectable,args:[{providedIn:"root"}]}],GaodeMapService.ctorParameters=function(){return[{type:util.LazyService},{type:i2.HttpClient}]};var CommonService=function(){function e(e,t){this.baiduMapService=e,this.gaodeMapService=t}return e.prototype.getMap=function(){return this.baiduMapService.loadMap()},e.prototype.loadMap=function(){return this.gaodeMapService.loadMap()},e}();CommonService.ɵprov=i0.ɵɵdefineInjectable({factory:function(){return new CommonService(i0.ɵɵinject(i1.BaiduMapService),i0.ɵɵinject(GaodeMapService))},token:CommonService,providedIn:"root"}),CommonService.decorators=[{type:i0.Injectable,args:[{providedIn:"root"}]}],CommonService.ctorParameters=function(){return[{type:i1.BaiduMapService},{type:GaodeMapService}]};var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function __rest(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(o[i[a]]=e[i[a]])}return o}function __decorate(e,t,o,i){var a,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,o,n):a(t,o))||n);return r>3&&n&&Object.defineProperty(t,o,n),n}function __param(e,t){return function(o,i){t(o,i,e)}}function __esDecorate(e,t,o,i,a,r){function n(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,d=i.kind,l="getter"===d?"get":"setter"===d?"set":"value",p=!t&&e?i.static?e:e.prototype:null,c=t||(p?Object.getOwnPropertyDescriptor(p,i.name):{}),g=!1,h=o.length-1;h>=0;h--){var u={};for(var y in i)u[y]="access"===y?{}:i[y];for(var y in i.access)u.access[y]=i.access[y];u.addInitializer=function(e){if(g)throw new TypeError("Cannot add initializers after decoration has completed");r.push(n(e||null))};var m=(0,o[h])("accessor"===d?{get:c.get,set:c.set}:c[l],u);if("accessor"===d){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=n(m.get))&&(c.get=s),(s=n(m.set))&&(c.set=s),(s=n(m.init))&&a.unshift(s)}else(s=n(m))&&("field"===d?a.unshift(s):c[l]=s)}p&&Object.defineProperty(p,i.name,c),g=!0}function __runInitializers(e,t,o){for(var i=arguments.length>2,a=0;a<t.length;a++)o=i?t[a].call(e,o):t[a].call(e);return i?o:void 0}function __propKey(e){return"symbol"==typeof e?e:"".concat(e)}function __setFunctionName(e,t,o){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:o?"".concat(o," ",t):t})}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,o,i){return new(o||(o=Promise))((function(a,r){function n(e){try{d(i.next(e))}catch(e){r(e)}}function s(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var t;e.done?a(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(n,s)}d((i=i.apply(e,t||[])).next())}))}function __generator(e,t){var o,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},n=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return n.next=s(0),n.throw=s(1),n.return=s(2),"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(s){return function(d){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;n&&(n=0,s[0]&&(r=0)),r;)try{if(o=1,i&&(a=2&s[0]?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,i=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(6===s[0]&&r.label<a[1]){r.label=a[1],a=s;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(s);break}a[2]&&r.ops.pop(),r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e],i=0}finally{o=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,d])}}}var __createBinding=Object.create?function(e,t,o,i){void 0===i&&(i=o);var a=Object.getOwnPropertyDescriptor(t,o);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,i,a)}:function(e,t,o,i){void 0===i&&(i=o),e[i]=t[o]};function __exportStar(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||__createBinding(t,e,o)}function __values(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],i=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,a,r=o.call(e),n=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)n.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(a)throw a.error}}return n}function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}function __spreadArrays(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var i=Array(e),a=0;for(t=0;t<o;t++)for(var r=arguments[t],n=0,s=r.length;n<s;n++,a++)i[a]=r[n];return i}function __spreadArray(e,t,o){if(o||2===arguments.length)for(var i,a=0,r=t.length;a<r;a++)!i&&a in t||(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,a=o.apply(e,t||[]),r=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),n("next"),n("throw"),n("return",(function(e){return function(t){return Promise.resolve(t).then(e,l)}})),i[Symbol.asyncIterator]=function(){return this},i;function n(e,t){a[e]&&(i[e]=function(t){return new Promise((function(o,i){r.push([e,t,o,i])>1||s(e,t)}))},t&&(i[e]=t(i[e])))}function s(e,t){try{(o=a[e](t)).value instanceof __await?Promise.resolve(o.value.v).then(d,l):p(r[0][2],o)}catch(e){p(r[0][3],e)}var o}function d(e){s("next",e)}function l(e){s("throw",e)}function p(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function __asyncDelegator(e){var t,o;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,a){t[i]=e[i]?function(t){return(o=!o)?{value:__await(e[i](t)),done:!1}:a?a(t):t}:a}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,o=e[Symbol.asyncIterator];return o?o.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(t){return new Promise((function(i,a){(function(e,t,o,i){Promise.resolve(i).then((function(t){e({value:t,done:o})}),t)})(i,a,(t=e[o](t)).done,t.value)}))}}}function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var __setModuleDefault=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&__createBinding(t,e,o);return __setModuleDefault(t,e),t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t,o,i){if("a"===o&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?i:"a"===o?i.call(e):i?i.value:t.get(e)}function __classPrivateFieldSet(e,t,o,i,a){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?a.call(e,o):a?a.value=o:t.set(e,o),o}function __classPrivateFieldIn(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function __addDisposableResource(e,t,o){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var i,a;if(o){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],o&&(a=i)}if("function"!=typeof i)throw new TypeError("Object not disposable.");a&&(i=function(){try{a.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:i,async:o})}else o&&e.stack.push({async:!0});return t}var _SuppressedError="function"==typeof SuppressedError?SuppressedError:function(e,t,o){var i=new Error(o);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function __disposeResources(e){function t(t){e.error=e.hasError?new _SuppressedError(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var o,i=0;return function a(){for(;o=e.stack.pop();)try{if(!o.async&&1===i)return i=0,e.stack.push(o),Promise.resolve().then(a);if(o.dispose){var r=o.dispose.call(o.value);if(o.async)return i|=2,Promise.resolve(r).then(a,(function(e){return t(e),a()}))}else i|=1}catch(e){t(e)}if(1===i)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}var tslib_es6={__extends:__extends,__assign:__assign,__rest:__rest,__decorate:__decorate,__param:__param,__metadata:__metadata,__awaiter:__awaiter,__generator:__generator,__createBinding:__createBinding,__exportStar:__exportStar,__values:__values,__read:__read,__spread:__spread,__spreadArrays:__spreadArrays,__spreadArray:__spreadArray,__await:__await,__asyncGenerator:__asyncGenerator,__asyncDelegator:__asyncDelegator,__asyncValues:__asyncValues,__makeTemplateObject:__makeTemplateObject,__importStar:__importStar,__importDefault:__importDefault,__classPrivateFieldGet:__classPrivateFieldGet,__classPrivateFieldSet:__classPrivateFieldSet,__classPrivateFieldIn:__classPrivateFieldIn,__addDisposableResource:__addDisposableResource,__disposeResources:__disposeResources};exports.ɵb=function(){function e(e,t,o,i){this.cd=e,this.renderer=t,this.elementRef=o,this.widgetRef=i,this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0},this.style={},this.layout="auto",this._data=[]}return e.prototype.ngOnChanges=function(e){var t,o;o=this._data&&(null===(t=this._data[0])||void 0===t?void 0:t.image)?this._data[0].image:this.image,this.setStyle("backgroundImage",o?"url("+o+")":null),this.cd.markForCheck()},e.prototype.ngOnInit=function(){var e,t;this.renderer.addClass(this.element,this.layout||"auto"),this.setStyle("opacity",1===this.opacity?null:this.opacity);var o=this.shadow,i=o.color,a=o.X,r=o.Y,n=o.Z;this.setStyle("boxShadow",i?i+" "+a+"px "+r+"px "+n+"px":null);var s=this.widgetRef.widget;((null===(e=s.link)||void 0===e?void 0:e.enabled)||(null===(t=s.outputs)||void 0===t?void 0:t.enabled))&&this.setStyle("cursor","pointer")},Object.defineProperty(e.prototype,"element",{get:function(){return this.elementRef.nativeElement},enumerable:!1,configurable:!0}),e.prototype.setStyle=function(e,t){this.renderer.setStyle(this.element,e,t)},e}(),exports.ɵb.decorators=[{type:i0.Component,args:[{selector:"sc-picture",template:'\x3c!-- <img [src]="image" alt="" [ngStyle]="style"> --\x3e\n\x3c!-- <div class="image {{ layout || \'auto\' }}" [ngStyle]="style"></div> --\x3e\n',changeDetection:i0.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;width:100%;height:100%}:host.auto{background-repeat:no-repeat;background-size:contain}:host.stretch{background-size:100% 100%}"]}]}],exports.ɵb.ctorParameters=function(){return[{type:i0.ChangeDetectorRef},{type:i0.Renderer2},{type:i0.ElementRef},{type:bbjWidgetBase.WidgetRef}]},__decorate([bbjWidgetBase.Property("",{min:1,ui:{widget:"myUpload",spanLabel:0,spanControl:24}}),__metadata("design:type",String)],exports.ɵb.prototype,"image",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵb.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵb.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("布局",{enum:[{label:"自适应",value:"auto"},{label:"拉伸",value:"stretch"},{label:"重复",value:"repeat"}]}),__metadata("design:type",Object)],exports.ɵb.prototype,"layout",void 0),__decorate([bbjWidgetBase.Data({properties:{image:{type:"string",title:"路径"}}}),__metadata("design:type",Array)],exports.ɵb.prototype,"_data",void 0),exports.ɵb=__decorate([bbjWidgetBase.Widget("图片",{group:"picture",icon:"icontupian"}),__metadata("design:paramtypes",[i0.ChangeDetectorRef,i0.Renderer2,i0.ElementRef,bbjWidgetBase.WidgetRef])],exports.ɵb);var ImageModule=function(e){e.register(exports.ɵb)};function getEchartsTextStyle(e){var t={};return e&&(t.color=e.color,t.fontFamily=e.family,t.fontWeight=e.weight,t.fontSize=e.size,t.lineHeight=e.lineHeight),t}ImageModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵb],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],ImageModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0={lineColor:["#FF851D","#FFEF66"]},ɵ1={lineColor:["#00D191","#00FECB"]},ɵ2={lineColor:["#3285FF","#00D2FD"]},ɵ3={lineColor:["#8934F8","#FF3699"]},ɵ4=function(e){return!e},ɵ5=function(e){return!e},ɵ6=function(e){return!e},ɵ7=function(e){return!e};exports.ɵc=function(){function BasicLineChartComponent(){this.type="basic",this.lineColor=["#3285FF","#00D2FD"],this.font={family:"",color:"#595F7A",weight:"normal",size:12,space:0,lineHeight:12},this.grid={top:30,right:30,bottom:40,left:36},this.align="center",this.axisType="none",this.lineType="dashed",this.axisColor="#333333",this.axisWidth=10,this.xType="category",this.yUnit="",this.xUnit="",this.boundaryGap=!0,this.showY=!0,this.netLine=!1,this.netLineType="dashed",this.netLineX=!1,this.netLineXType="dashed",this.netLineColor="rgba(255,255,255,0.2)",this.label=!1,this.markLine=!1,this.YmarkLineHeight=10,this.YmarkLineName="",this.YmarkLineType="dashed",this.YmarkLineColor="#f00",this.YmarkWidth=2,this.XmarkLineLocation="二月",this.XmarkLineName="",this.XmarkLineType="dashed",this.XmarkLineColor="#f00",this.XmarkWidth=2,this.xLabelRotate=0,this.xLabelOverflow="auto",this.zoomOnMouseWheel=!0,this.chartOption=null,this._data=[{x:"一月",y:10,s:"收入"},{x:"二月",y:20,s:"收入"},{x:"三月",y:25,s:"收入"},{x:"四月",y:35,s:"收入"},{x:"五月",y:27,s:"收入"},{x:"六月",y:28,s:"收入"},{x:"一月",y:18,s:"支出"},{x:"二月",y:28,s:"支出"},{x:"三月",y:32,s:"支出"},{x:"四月",y:48,s:"支出"},{x:"五月",y:20,s:"支出"},{x:"六月",y:17,s:"支出"}],this.dataClick=new i0.EventEmitter,this.xData=[],this.yData=[],this.style={color:"",fontFamily:"",fontWeight:"",fontSize:"",lineHeight:""}}return BasicLineChartComponent.prototype.ngOnInit=function(){},BasicLineChartComponent.prototype.ngOnChanges=function(e){if(e._data){var t=this.getTextStyle(this.font);this.style=t,this.chartOption={dataZoom:this.getDataZoom(),tooltip:this.getTooltip(),legend:this.getLegend(),grid:this.getGrid(),xAxis:this.getXAxis(),yAxis:this.getYAxis(),color:this.lineColor,series:[]},this.reloadData()}},BasicLineChartComponent.prototype.getXAxis=function(){return{name:this.xUnit,nameTextStyle:this.style,type:this.xType||"category",boundaryGap:this.boundaryGap,axisLine:{lineStyle:{color:this.style.color}},axisLabel:Object.assign(Object.assign({},this.style),{rotate:this.xLabelRotate,show:!this.hideXLabel,width:this.xLabelWidth,overflow:this.xLabelOverflow,interval:this.xLabelInterval}),splitLine:{show:this.netLineX,lineStyle:{type:this.netLineXType,color:this.netLineColor}}}},BasicLineChartComponent.prototype.getYAxis=function(){var e=this;return{show:!0,name:this.yUnit,nameTextStyle:this.style,type:"value",min:this.yMin,max:function(t){var o=t.max;return e.yMax?o=Number(e.yMax):e.markLine&&(o=Math.max(Number(e.YmarkLineHeight),o)),Math.ceil(e.yMaxAddNum?o+Number(e.yMaxAddNum):o)},axisLine:{show:this.showY,lineStyle:{color:this.style.color}},axisLabel:this.style,splitLine:{show:this.netLine,lineStyle:{type:this.netLineXType,color:this.netLineColor}},axisTick:{show:this.showY},minInterval:this.yMinInterval}},BasicLineChartComponent.prototype.getGrid=function(){return{top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom}},BasicLineChartComponent.prototype.getLegend=function(){return{align:"left",left:this.align,show:"none"!==this.align,icon:"rect",textStyle:this.style}},BasicLineChartComponent.prototype.getTooltip=function(){return{trigger:"axis",textStyle:this.getTextStyle(this.tooltipFont),axisPointer:{type:this.axisType,label:{show:!1},lineStyle:{type:this.lineType,color:this.axisColor,width:this.axisWidth}}}},BasicLineChartComponent.prototype.getTextStyle=function(e){return getEchartsTextStyle(e)},BasicLineChartComponent.prototype.getDataZoom=function(){var e=[];if(this.insideDataZoom){var t=!0;if(null!=this.dataZoomMinData){var o=new Set;this._data.forEach((function(e){e.x&&o.add(e.x)})),o.size<this.dataZoomMinData&&(t=!1)}if(t){var i=this.dataZoomStart||0,a=this.dataZoomEnd||100;e.push({type:"inside",start:i,end:a,zoomOnMouseWheel:this.zoomOnMouseWheel}),this.sliderDataZoom&&e.push({type:"slider",start:i,end:a,zoomLock:this.zoomLock,brushSelect:!1})}}return e},BasicLineChartComponent.prototype.reloadData=function(){var _this=this,seriesMap={},dataset=[],source=[];if(dataset.push({source:source}),this._data.forEach((function(record){if(_this.markLine&&_this.YmarkLineName&&record.x===_this.YmarkLineName)_this.YmarkLineHeight=record.y;else{null==record.s&&(record=Object.assign(Object.assign({},record),{s:""})),source.push(record);var s=record.s,series=seriesMap[s];if(!series){var transform={type:"filter",config:{dimension:"s",value:s}};dataset.push({transform:transform}),series=_this.setSeriesStyle(s,dataset.length-1),seriesMap[s]=series,_this.showDataMarkLine&&(series.markLine={symbol:["none","none"],label:Object.assign(Object.assign({},_this.style),{position:"start"}),data:[]},_this.dataMarkLineFormatter&&(series.markLine.label.formatter=eval("("+_this.dataMarkLineFormatter+")")))}_this.showDataMarkLine&&series.markLine.data.push({xAxis:record.x})}})),this.chartOption.dataset=dataset,this.markLine){var marklineStyle={symbol:"none",silent:!0,data:[]};this.YmarkLineName&&marklineStyle.data.push({name:this.YmarkLineName,type:this.YmarkLineHeight?null:"average",yAxis:this.YmarkLineHeight,lineStyle:{color:this.YmarkLineColor,type:this.YmarkLineType,width:this.YmarkWidth?this.YmarkWidth:2},label:{formatter:"{b}{c}",position:"insideEndTop",color:this.YmarkLineColor,fontSize:this.font.size}}),this.XmarkLineName&&marklineStyle.data.push({name:this.XmarkLineName,type:this.XmarkLineLocation?null:"average",xAxis:this.XmarkLineLocation,lineStyle:{color:this.XmarkLineColor,type:this.XmarkLineType,width:this.XmarkWidth?this.XmarkWidth:2},label:{formatter:"{b}{c}",position:"insideEndTop",color:this.XmarkLineColor,fontSize:this.font.size}}),this.chartOption.series.push({type:"line",markLine:marklineStyle,data:[]})}},BasicLineChartComponent.prototype.setSeriesStyle=function(e,t){var o,i,a={name:e,label:{show:this.label,textStyle:this.style},connectNulls:!0,itemStyle:{},type:"line",areaStyle:{},smooth:!1,symbolSize:null!==(o=this.symbolSize)&&void 0!==o?o:10,encode:{x:"x",y:"y"},datasetIndex:t};return this.chartOption.series.push(a),a.areaStyle.opacity=0,"smooth"!==this.type&&"smooth-area"!==this.type||(a.smooth=!0),"area"!==this.type&&"smooth-area"!==this.type||(a.areaStyle.opacity=.5,a.symbolSize=null!==(i=this.symbolSize)&&void 0!==i?i:this.label?10:0),"step"===this.type&&(a.step=this.step),a},BasicLineChartComponent.prototype.uniqueData=function(e){for(var t=0;t<e.length-1;t++)for(var o=t+1;o<e.length;o++)e[t]===e[o]&&(e.splice(o,1),o--);return e},BasicLineChartComponent.prototype.getMaxY=function(){for(var e=0;e<this._data.length;e++)this.yData[e]=this._data[e].y;this.uniqueData(this.yData);var t=Math.max.apply(Math,__spread(this.yData)).toFixed(0),o=t.toString().length,i=Math.pow(10,o-1);return Number(i)+Number(t)},BasicLineChartComponent.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},BasicLineChartComponent}(),exports.ɵc.decorators=[{type:i0.Component,args:[{selector:"sc-basicLine",template:'<div\n echarts\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵc.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("类型",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵc.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["lineColor"],example:[{background:"assets/img/screen/line2.png",data:ɵ0},{background:"assets/img/screen/line3.png",data:ɵ1},{background:"assets/img/screen/line1.png",data:ɵ2},{background:"assets/img/screen/line4.png",data:ɵ3}]}}),__metadata("design:type",Object)],exports.ɵc.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵc.prototype,"lineColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵc.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵc.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"居中",value:"center"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("提示线样式",{ui:{widget:"select"},enum:[{label:"直线指示器",value:"line"},{label:"阴影指示器",value:"shadow"},{label:"十字准星指示器",value:"cross"},{label:"无",value:"none"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"axisType",void 0),__decorate([bbjWidgetBase.Property("提示线类型",{ui:{widget:"select"},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"lineType",void 0),__decorate([bbjWidgetBase.Property("提示线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵc.prototype,"axisColor",void 0),__decorate([bbjWidgetBase.Property("提示线宽度",{type:"number"}),__metadata("design:type",Object)],exports.ɵc.prototype,"axisWidth",void 0),__decorate([bbjWidgetBase.Property("x轴类型",{enum:[{label:"类目",value:"category"},{label:"时间",value:"time"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"xType",void 0),__decorate([bbjWidgetBase.Property("y轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵc.prototype,"yUnit",void 0),__decorate([bbjWidgetBase.Property("x轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵc.prototype,"xUnit",void 0),__decorate([bbjWidgetBase.Property("y轴最小"),__metadata("design:type",Number)],exports.ɵc.prototype,"yMin",void 0),__decorate([bbjWidgetBase.Property("y轴最大"),__metadata("design:type",Number)],exports.ɵc.prototype,"yMax",void 0),__decorate([bbjWidgetBase.Property("y轴最小间隔"),__metadata("design:type",Number)],exports.ɵc.prototype,"yMinInterval",void 0),__decorate([bbjWidgetBase.Property("y轴最大增减"),__metadata("design:type",Number)],exports.ɵc.prototype,"yMaxAddNum",void 0),__decorate([bbjWidgetBase.Property("坐标留白",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"boundaryGap",void 0),__decorate([bbjWidgetBase.Property("显示Y轴",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"showY",void 0),__decorate([bbjWidgetBase.Property("y轴网络线",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"netLine",void 0),__decorate([bbjWidgetBase.Property("y网络线类型",{ui:{widget:"select",visibleIf:{netLine:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"netLineType",void 0),__decorate([bbjWidgetBase.Property("x轴网络线",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"netLineX",void 0),__decorate([bbjWidgetBase.Property("x网络线类型",{ui:{widget:"select",visibleIf:{netLineX:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"netLineXType",void 0),__decorate([bbjWidgetBase.Property("网络线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵc.prototype,"netLineColor",void 0),__decorate([bbjWidgetBase.Property("标签",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("标线",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵc.prototype,"markLine",void 0),__decorate([bbjWidgetBase.Property("Y轴标线高度",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"YmarkLineHeight",void 0),__decorate([bbjWidgetBase.Property("Y标线标题",{type:"string",ui:{visibleIf:{markLine:[!0]},optionalHelp:"此标题需要跟x字段内名字一致"}}),__metadata("design:type",Object)],exports.ɵc.prototype,"YmarkLineName",void 0),__decorate([bbjWidgetBase.Property("Y标线类型",{ui:{widget:"select",visibleIf:{markLine:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"YmarkLineType",void 0),__decorate([bbjWidgetBase.Property("Y标线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"],visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"YmarkLineColor",void 0),__decorate([bbjWidgetBase.Property("Y标线粗细",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"YmarkWidth",void 0),__decorate([bbjWidgetBase.Property("X轴标线位置",{type:"string",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"XmarkLineLocation",void 0),__decorate([bbjWidgetBase.Property("X标线标题",{type:"string",ui:{optionalHelp:"此标题需要跟x字段内名字一致",visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"XmarkLineName",void 0),__decorate([bbjWidgetBase.Property("X标线类型",{ui:{widget:"select",visibleIf:{markLine:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.ɵc.prototype,"XmarkLineType",void 0),__decorate([bbjWidgetBase.Property("X标线颜色",{ui:{visibleIf:{markLine:[!0]},widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵc.prototype,"XmarkLineColor",void 0),__decorate([bbjWidgetBase.Property("X标线粗细",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"XmarkWidth",void 0),__decorate([bbjWidgetBase.Property("数据标线"),__metadata("design:type",Boolean)],exports.ɵc.prototype,"showDataMarkLine",void 0),__decorate([bbjWidgetBase.Property("数据标线格式化",{ui:{visibleIf:{showDataMarkLine:[!0]},optionalHelp:"function(params){return params.data.value}"}}),__metadata("design:type",String)],exports.ɵc.prototype,"dataMarkLineFormatter",void 0),__decorate([bbjWidgetBase.Property("隐藏x轴标签"),__metadata("design:type",Boolean)],exports.ɵc.prototype,"hideXLabel",void 0),__decorate([bbjWidgetBase.Property("x轴标签角度",{ui:{widget:"myRange",min:-90,max:90,step:10,visibleIf:{hideXLabel:ɵ4}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"xLabelRotate",void 0),__decorate([bbjWidgetBase.Property("x轴文本宽度",{ui:{visibleIf:{hideXLabel:ɵ5}}}),__metadata("design:type",Number)],exports.ɵc.prototype,"xLabelWidth",void 0),__decorate([bbjWidgetBase.Property("x轴文字宽度超出",{enum:[{label:"自动",value:"auto"},{label:"截断",value:"truncate"},{label:"换行",value:"break"},{label:"强制换行",value:"breakAll"}],ui:{widget:"select",visibleIf:{hideXLabel:ɵ6}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"xLabelOverflow",void 0),__decorate([bbjWidgetBase.Property("标签显示间隔",{ui:{visibleIf:{hideXLabel:ɵ7},optionalHelp:{text:"默认会采用标签不重叠的策略间隔显示标签。\n可以设置成 0 强制显示所有标签。 \n如果设置为 1,表示『隔一个标签显示一个标签』,如果值为 2,表示隔两个标签显示一个标签,以此类推。",overlayStyle:{whiteSpace:"pre-line"}}}}),__metadata("design:type",Number)],exports.ɵc.prototype,"xLabelInterval",void 0),__decorate([bbjWidgetBase.Property("区域缩放"),__metadata("design:type",Boolean)],exports.ɵc.prototype,"insideDataZoom",void 0),__decorate([bbjWidgetBase.Property("缩放最少数量",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.ɵc.prototype,"dataZoomMinData",void 0),__decorate([bbjWidgetBase.Property("缩放开始百分比",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.ɵc.prototype,"dataZoomStart",void 0),__decorate([bbjWidgetBase.Property("缩放结束百分比",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.ɵc.prototype,"dataZoomEnd",void 0),__decorate([bbjWidgetBase.Property("滚轮缩放",{enum:[{label:"启用",value:!0},{label:"禁用",value:!1},{label:"按住shift",value:"shift"},{label:"按住ctrl",value:"ctrl"},{label:"按住alt",value:"alt"}],ui:{widget:"select",visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Object)],exports.ɵc.prototype,"zoomOnMouseWheel",void 0),__decorate([bbjWidgetBase.Property("滑动条",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Boolean)],exports.ɵc.prototype,"sliderDataZoom",void 0),__decorate([bbjWidgetBase.Property("锁定区域大小",{ui:{visibleIf:{sliderDataZoom:[!0]}}}),__metadata("design:type",Boolean)],exports.ɵc.prototype,"zoomLock",void 0),__decorate([bbjWidgetBase.Property("提示框字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵc.prototype,"tooltipFont",void 0),__decorate([bbjWidgetBase.Property("阶梯拐点",{enum:[{label:"当前点",value:"start"},{label:"中间点",value:"middle"},{label:"下个点",value:"end"}],ui:{widget:"select",visibleIf:{type:["step"]}}}),__metadata("design:type",String)],exports.ɵc.prototype,"step",void 0),__decorate([bbjWidgetBase.Property("标记点大小",{type:"number"}),__metadata("design:type",Number)],exports.ɵc.prototype,"symbolSize",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"},s:{type:"string",title:"系列"}}}),__metadata("design:type",Array)],exports.ɵc.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","s"]),__metadata("design:type",Object)],exports.ɵc.prototype,"dataClick",void 0),exports.ɵc=__decorate([bbjWidgetBase.Widget("基本折线图",{group:"lineChart",image:"assets/img/screen/basic-line-chart.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵc);var BasicLineChartModule=function(e){e.register(exports.ɵc)};BasicLineChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵc],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],BasicLineChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var HttpService=function(){function e(e){this.http=e}return e.prototype.get=function(e,t){return this.http.get(e,t).toPromise()},e.prototype.post=function(e,t,o){return this.http.post(e,t,o).toPromise()},e}();HttpService.decorators=[{type:i0.Injectable}],HttpService.ctorParameters=function(){return[{type:i2.HttpClient}]},exports.ɵp=function(){function e(e,t){this.http=e,this.gloabl=t,this.textStyle={},this.title="button",this.background="linear-gradient(-180deg, #20C8FF 0%, #0059DD 100%)",this.borderColor="#0059DD",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.opacity=1,this.radius=4,this.shadow={color:"",X:0,Y:0,Z:0},this.href="",this.openModel=!0,this.data=[],this.valueOutput=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.textStyle={background:this.background,borderColor:this.borderColor,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",opacity:this.opacity,borderRadius:this.radius+"%",boxShadow:this.shadow.color+" "+this.shadow.X+"px "+this.shadow.Y+"px "+this.shadow.Z+"px"}},e.prototype.openPage=function(e){var t;this.edit||(this.href&&(this.openModel?window.open(this.href,"_blank"):window.location.href=this.href),this.script&&new Function("http","global",this.script)(this.http,this.gloabl.data));(null===(t=this.data)||void 0===t?void 0:t.length)?this.valueOutput.emit(this.data[0].value):this.valueOutput.emit(null)},e}(),exports.ɵp.decorators=[{type:i0.Component,args:[{selector:"sc-button",template:'<div class="screen-button" (click)="openPage($event)" [ngStyle]="textStyle">{{title}}</div>\n',styles:[":host{display:inline-block}.screen-button,:host{width:100%;height:100%}.screen-button{color:#fff;display:flex;flex-direction:column;justify-content:center;border:1px solid;cursor:pointer;text-align:center}"]}]}],exports.ɵp.ctorParameters=function(){return[{type:HttpService},{type:bbjWidgetBase.GlobalVarService}]},__decorate([bbjWidgetBase.Property("按钮样式",{ui:{widget:"myButton",spanLabel:24,spanControl:24,name:"button",reset:["background","borderColor"],background:[{background:"#FFB700",borderColor:"#FFB700"},{background:"#00E371",borderColor:"#00E371"},{background:"#3285FF",borderColor:"#3285FF"},{background:"#B232FF",borderColor:"#B232FF"},{background:"#FF3286",borderColor:"#FF3286"},{background:"#FF3832",borderColor:"#FF3832"},{background:"linear-gradient(-180deg, #FAD961 0%, #F76B1C 100%)",borderColor:"#F76B1C"},{background:"linear-gradient(-180deg, #B4EC51 0%, #429321 100%)",borderColor:"#429321"},{background:"linear-gradient(-180deg, #20C8FF 0%, #0059DD 100%)",borderColor:"#0059DD"},{background:"linear-gradient(-90deg, #3023AE 0%, #C86DD7 87%)",borderColor:"#C86DD7"}]}}),__metadata("design:type",Object)],exports.ɵp.prototype,"colorExample",void 0),__decorate([bbjWidgetBase.Property("内容"),__metadata("design:type",Object)],exports.ɵp.prototype,"title",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵp.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#FFFFFF","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵp.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵp.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵp.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("圆角",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵp.prototype,"radius",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵp.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("超链接"),__metadata("design:type",Object)],exports.ɵp.prototype,"href",void 0),__decorate([bbjWidgetBase.Property("另起窗口",{type:"boolean",ui:{checkedChildren:"是",unCheckedChildren:"否"}}),__metadata("design:type",Object)],exports.ɵp.prototype,"openModel",void 0),__decorate([bbjWidgetBase.Property("执行脚本",{ui:{widget:"textarea",autosize:{minRows:6,maxRows:10},optionalHelp:{text:'内置变量:\n1、http:用于发起http请求\n2、global:全局变量\n例:http.post("http://www.xxx.com/xxx",{a:global.a});// POST,body传参\n http.post("http://www.xxx.com/xxx",null,{params:{a:global.a}});// POST,url传参\n http.get("http://www.xxx.com/xxx",{params:{a:global.a}});// GET,url传参\n',overlayStyle:{whiteSpace:"pre-line"}}}}),__metadata("design:type",String)],exports.ɵp.prototype,"script",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"string",title:"值"}}}),__metadata("design:type",Array)],exports.ɵp.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵp.prototype,"valueOutput",void 0),exports.ɵp=__decorate([bbjWidgetBase.Widget("按钮",{group:"component",image:"assets/img/screen/myButton.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[HttpService,bbjWidgetBase.GlobalVarService])],exports.ɵp);var ButtonModule=function(e){e.register(exports.ɵp)};ButtonModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵp],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule],providers:[HttpService]}]}],ButtonModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵs=function(){function e(){this.iconShow=!0,this.weekShow=!0,this.iconFontSize=20,this.iconMarginRight=10,this.iconColor="#5DF5F4",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.fontGlow=!1,this.flowColor="#ffffff",this.flowSize=3,this.format="yyyy-MM-dd HH:mm:ss",this.week=""}return e.prototype.ngOnInit=function(){var e=this;if(this.getTime(),this.iconStyle={fontSize:this.iconFontSize+"px",marginRight:this.iconMarginRight+"px",color:this.iconColor},this.textStyle={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"},this.fontGlow){for(var t="",o=0;o<this.flowSize;o++)t+="0 0 20px "+this.flowColor+",";t=t.substr(0,t.length-1),this.textStyle["text-shadow"]=t}else this.textStyle["text-shadow"]="";clearInterval(this.timer),this.timer=setInterval((function(){e.getTime()}),1e3)},e.prototype.getTime=function(){var e=new Array("星期天","星期一","星期二","星期三","星期四","星期五","星期六");this.data=new Date,this.week=e[this.data.getDay()]},e}(),exports.ɵs.decorators=[{type:i0.Component,args:[{selector:"sc-timer",template:'<div class="container">\n <div class="timer-show">\n <i nz-icon *ngIf="iconShow" [ngStyle]="iconStyle" nzType="clock-circle" nzTheme="outline"></i>\n <span [ngStyle]="textStyle">{{data | date:format}} </span>\n <span [ngStyle]="textStyle" *ngIf="weekShow">{{week}}</span>\n </div>\n</div>\n',styles:[".container,.timer-show{width:100%;height:100%}.timer-show{font-size:20px;color:#fff;font-weight:400;font-family:Microsoft Yahei;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;vertical-align:middle;justify-content:center}@keyframes dash{to{stroke-dashoffset:0}}"]}]}],exports.ɵs.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("图标显示",{ui:{widget:"checkbox"}}),__metadata("design:type",Object)],exports.ɵs.prototype,"iconShow",void 0),__decorate([bbjWidgetBase.Property("星期显示",{ui:{widget:"checkbox"}}),__metadata("design:type",Object)],exports.ɵs.prototype,"weekShow",void 0),__decorate([bbjWidgetBase.Property("图标大小",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵs.prototype,"iconFontSize",void 0),__decorate([bbjWidgetBase.Property("图标右边距",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵs.prototype,"iconMarginRight",void 0),__decorate([bbjWidgetBase.Property("图标颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵs.prototype,"iconColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵs.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("字体发光",{ui:{widget:"checkbox"}}),__metadata("design:type",Object)],exports.ɵs.prototype,"fontGlow",void 0),__decorate([bbjWidgetBase.Property("发光颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵs.prototype,"flowColor",void 0),__decorate([bbjWidgetBase.Property("发光程度",{ui:{widget:"myRange",min:1,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵs.prototype,"flowSize",void 0),__decorate([bbjWidgetBase.Property("格式"),__metadata("design:type",Object)],exports.ɵs.prototype,"format",void 0),exports.ɵs=__decorate([bbjWidgetBase.Widget("时间",{group:"component",image:"assets/img/screen/timer.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵs);var TimerModule=function(e){e.register(exports.ɵs)};TimerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵs],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,icon.NzIconModule]}]}],TimerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵu=function(){function e(){this.prefixContent="",this.prefixFont={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.numberFont={family:"",color:"#ffffff",weight:"normal",size:90,space:0,lineHeight:""},this.background="#01A4F9",this.point=0,this.suffixContent="",this.suffixFont={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.numDigit=0,this.serial={},this.tableBar={},this.number=[{value:1024}]}return e.prototype.ngOnChanges=function(){this.headlineStyle={height:this.numberFont.size+"px",lineHeight:this.numberFont.size+"px"},this.prefixStyle={fontSize:this.prefixFont.size+"px",fontFamily:this.prefixFont.family,color:this.prefixFont.color,fontWeight:this.prefixFont.weight,letterSpacing:this.prefixFont.space+"px",lineHeight:this.prefixFont.lineHeight+"px"},this.suffixStyle={fontSize:this.suffixFont.size+"px",fontFamily:this.suffixFont.family,color:this.suffixFont.color,fontWeight:this.suffixFont.weight,letterSpacing:this.suffixFont.space+"px",lineHeight:this.suffixFont.lineHeight+"px"},this.textStyle={fontSize:this.numberFont.size+"px",fontFamily:this.numberFont.family,color:this.numberFont.color,fontWeight:this.numberFont.weight,letterSpacing:this.numberFont.space+"px"},this.serial.width=.58*this.numberFont.size+"px",this.tableBar.width=.7*this.numberFont.size+"px",this.numberdate=Number(this.number&&this.number[0]?this.number[0].value:0);var e=0;if(this.numDigit>0&&this.numberdate.toString().length<this.numDigit&&(e=this.numDigit-this.numberdate.toString().length),this.numberdate=this.numberdate.toFixed(this.point).toString(),e>0)for(var t=0;t<e;t++)this.numberdate="0"+this.numberdate;this.numberdate=this.numberdate.split("")},e.prototype.ngOnInit=function(){},e}(),exports.ɵu.decorators=[{type:i0.Component,args:[{selector:"sc-number-flop",template:'<div>\n <div class="dowebok flipTimer" [ngStyle]="headlineStyle">\n <span [ngStyle]="prefixStyle">{{prefixContent}}</span>\n <div class="seconds" *ngFor="let num of numberdate" [ngStyle]="tableBar">\n <div class="digit-set" *ngIf="num!=\'.\'">\n <div class="digit previous">\n <div class="digit-top" [style.backgroundColor]="background">\n <span [ngStyle]="textStyle" class="digit-wrap">0</span>\n </div>\n <div class="shadow-top" [ngStyle]="tableBar"></div>\n <div class="digit-bottom" [style.backgroundColor]="background">\n <span [ngStyle]="textStyle" class="digit-wrap">0</span>\n </div>\n <div class="shadow-bottom" [ngStyle]="tableBar"></div>\n </div>\n <div class="digit active">\n <div class="digit-top" [style.backgroundColor]="background">\n <span [ngStyle]="textStyle" class="digit-wrap">{{num}}</span>\n </div>\n <div class="shadow-top" [ngStyle]="tableBar"></div>\n <div class="digit-bottom" [style.backgroundColor]="background">\n <span [ngStyle]="textStyle" class="digit-wrap">{{num}}</span>\n </div>\n <div class="shadow-bottom" [ngStyle]="tableBar"></div>\n </div>\n </div>\n <span *ngIf="num==\'.\'" style="width:45px;" class="digit-wrap">{{num}}</span>\n </div>\n <span [ngStyle]="suffixStyle" style="margin-left:15px">{{suffixContent}}</span>\n </div>\n</div>\n',styles:['@keyframes flipTop{0%{transform:perspective(400px) rotateX(0deg)}to{transform:perspective(400px) rotateX(-90deg)}}@keyframes flipBottom{0%{transform:perspective(400px) rotateX(90deg)}to{transform:perspective(400px) rotateX(0deg)}}.flipTimer{color:#fff;font-weight:700;overflow:hidden;display:flex;flex-direction:row;align-items:center}.flipTimer .seperator{vertical-align:top;margin:0 -20px;display:inline}.flipTimer .days,.flipTimer .digit-set,.flipTimer .hours,.flipTimer .minutes,.flipTimer .seconds{height:100%;display:inline-block}.flipTimer .digit-set{border-radius:10px;box-shadow:0 2px 4px rgba(0,0,0,.8);width:44px;position:relative;margin:0 1px}.flipTimer .digit{position:absolute;height:100%}.flipTimer .digit>div{position:absolute;left:0;overflow:hidden;height:50%;padding:0 10px}.flipTimer .digit>div.digit-top,.flipTimer .digit>div.shadow-top{border-bottom:1px solid #01a4f9;box-sizing:border-box;top:0;z-index:0;border-radius:10px 10px 0 0}.flipTimer .digit>div.digit-top:before,.flipTimer .digit>div.shadow-top:before{content:"";box-shadow:inset 0 10px 25px rgba(0,0,0,.3);height:100%;width:100%;position:absolute;left:0;top:0}.flipTimer .digit>div.shadow-top{background:gradient(linear,0 0,0 100%,from(transparent),to(#000));width:45px;opacity:0;transition:opacity .3s ease-in}.flipTimer .digit>div.digit-bottom,.flipTimer .digit>div.shadow-bottom{bottom:0;z-index:0;border-radius:0 0 10px 10px}.flipTimer .digit>div.digit-bottom .digit-wrap,.flipTimer .digit>div.shadow-bottom .digit-wrap{display:block;margin-top:-100%}.flipTimer .digit>div.digit-bottom:before,.flipTimer .digit>div.shadow-bottom:before{content:"";box-shadow:inset 0 10px 25px rgba(0,0,0,.2);border-radius:0 0 10px 10px;height:100%;width:100%;position:absolute;left:0;top:0}.flipTimer .digit>div.shadow-bottom{background:gradient(linear,0 0,0 100%,from(#000),to(transparent));width:25px;opacity:0;transition:opacity .3s ease-in}.flipTimer .digit.previous .digit-top,.flipTimer .digit.previous .shadow-top{opacity:1;z-index:2;transform-origin:50% 100%;animation:flipTop .3s ease-in both}.flipTimer .digit.previous .digit-bottom,.flipTimer .digit.previous .shadow-bottom{z-index:1;opacity:1}.flipTimer .digit.active .digit-top{z-index:1}.flipTimer .digit.active .digit-bottom{z-index:2;transform-origin:50% 0;animation:flipBottom .3s ease-out .3s both}.seconds{margin-right:12px}']}]}],exports.ɵu.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("前缀内容"),__metadata("design:type",Object)],exports.ɵu.prototype,"prefixContent",void 0),__decorate([bbjWidgetBase.Property("前缀字体",{ui:{widget:"myFont",hideProperty:{lineHeight:!0}}}),__metadata("design:type",Object)],exports.ɵu.prototype,"prefixFont",void 0),__decorate([bbjWidgetBase.Property("数字字体",{ui:{widget:"myFont",hideProperty:{lineHeight:!0}}}),__metadata("design:type",Object)],exports.ɵu.prototype,"numberFont",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵu.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("小数点位数",{ui:{widget:"myRange",min:0,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵu.prototype,"point",void 0),__decorate([bbjWidgetBase.Property("后缀内容"),__metadata("design:type",Object)],exports.ɵu.prototype,"suffixContent",void 0),__decorate([bbjWidgetBase.Property("后缀字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵu.prototype,"suffixFont",void 0),__decorate([bbjWidgetBase.Property("数字位数"),__metadata("design:type",Number)],exports.ɵu.prototype,"numDigit",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"number",title:"数值"}}}),__metadata("design:type",Array)],exports.ɵu.prototype,"number",void 0),exports.ɵu=__decorate([bbjWidgetBase.Widget("数字翻牌器",{group:"component",image:"assets/img/screen/number-flop.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵu);var NumberFlopModule=function(e){e.register(exports.ɵu)};NumberFlopModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵu],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],NumberFlopModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵw=function(){function e(e){this.ele=e,this.options=[{label:"选项一",value:"option1"},{label:"选项二",value:"option2"},{label:"选项三",value:"option3"}],this.num=1,this.background="rgba(50,133,255,0.2)",this.borderColor="#3285FF",this.btnColor="#3285FF",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.valueChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.ele.nativeElement.style.background=this.background,this.ele.nativeElement.style.border=this.borderColor?"1px solid "+this.borderColor:0,this.ele.nativeElement.style.setProperty("--color",this.borderColor),this.textStyle={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"}},e.prototype.log=function(e){this.valueChange.emit(e)},e}(),exports.ɵw.decorators=[{type:i0.Component,args:[{selector:"sc-vote",template:'<nz-checkbox-wrapper style="width: 100%;" (nzOnChange)="log($event)">\n <div class="item-wrap" [ngStyle]="textStyle">\n <div class="item" [style.color]="borderColor" *ngFor="let item of options"><label nz-checkbox [nzValue]="item.value ? item.value:item.label" [ngStyle]="textStyle" [ngModel]="item.checked">{{item.label}}</label></div>\n </div>\n</nz-checkbox-wrapper>\n<div class="vote-btn" [style.backgroundColor]="btnColor" [ngStyle]="textStyle">投票</div>\n',styles:[':host{width:100%;text-align:center;display:inline-block}:host ::ng-deep .item-wrap{display:inline-flex;flex-direction:column;text-align:left}:host ::ng-deep .item-wrap .ant-checkbox-inner{background-color:inherit}:host ::ng-deep .item-wrap .item{display:inline-block;height:28px;line-height:28px}:host ::ng-deep .item-wrap .item label{margin:0}:host ::ng-deep .item-wrap .item:before{content:"";position:absolute;left:0;right:0;border-bottom:1px solid;height:0}:host ::ng-deep .item-wrap .ant-checkbox-inner{border-color:var(--color)}:host ::ng-deep .vote-btn{height:28px;line-height:28px}:host ::ng-deep .ant-checkbox-group{position:relative}']}]}],exports.ɵw.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Data({properties:{label:{title:"标签",type:"string"},value:{title:"值",type:"string"},checked:{title:"是否选中",type:"boolean"}}}),__metadata("design:type",Object)],exports.ɵw.prototype,"options",void 0),__decorate([bbjWidgetBase.Property("",{ui:{widget:"myCheckNumber",title:"多选个数",spanLabel:0,spanControl:24}}),__metadata("design:type",Object)],exports.ɵw.prototype,"num",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵw.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵw.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("按钮颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵw.prototype,"btnColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵw.prototype,"font",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵw.prototype,"valueChange",void 0),exports.ɵw=__decorate([bbjWidgetBase.Widget("投票",{group:"component",image:"assets/img/screen/vote.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵw);var VoteModule=function(e){e.register(exports.ɵw)};VoteModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵw],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,checkbox.NzCheckboxModule,forms.FormsModule]}]}],VoteModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$1={selectColor:"#F5A623",borderColor:"#F5A623",background:"rgba(245,166,35,0.2)",dropdownBg:"rgba(245,166,35,0.2)",dropdownBorderColor:"#F5A623"},ɵ1$1={selectColor:"#50E3C2",borderColor:"#50E3C2",background:"rgba(80,227,194,0.2)",dropdownBg:"rgba(80,227,194,0.2)",dropdownBorderColor:"#50E3C2"},ɵ2$1={selectColor:"#9013fe",borderColor:"#9013fe",background:"rgba(144,19,254,0.2)",dropdownBg:"rgba(144,19,254,0.2)",dropdownBorderColor:"#9013fe"},ɵ3$1={selectColor:"#3285ff",borderColor:"#3285ff",background:"rgba(50,133,255,0.2)",dropdownBg:"rgba(50,133,255,0.2)",dropdownBorderColor:"#3285ff"},ɵ4$1=function(e){return e>1};exports.ɵx=function(){function e(){this.hint="请选择",this.num=1,this.borderColor="#d9d9d9",this.dropdownBackgroundColor="#E6F7FF",this.selectDropDownColor="rgba(0,0,0,0.85)",this.selectHoverColor="rgba(0,0,0,0.85)",this.selectHoverBackgroundColor="#f5f5f5",this.font={family:"",weight:"normal",size:12,space:0,lineHeight:30},this.align="left",this.dropdownWidth=null,this.dropdownBg="#fff",this.dropdownBorderColor="#fff",this.outputFormat="array",this.separator=",",this.mode="default",this.options=[{label:"选项1",value:"option1"},{label:"选项2",value:"option2"}],this.valueChange=new i0.EventEmitter,this.optionChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.ngStyle={backgroundColor:this.background,border:"1px solid "+this.borderColor,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"},this.dropdownBg=this.dropdownBg?this.dropdownBg:this.background,this.dropdownBorderColor=this.dropdownBorderColor?this.dropdownBorderColor:this.borderColor,this.dropdownStyle={backgroundColor:this.dropdownBg,border:"1px solid "+this.dropdownBorderColor,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",width:this.dropdownWidth+"px"},document.body.style.setProperty("--dropdownBackgroundColor",this.dropdownBackgroundColor||" rgba(255,255,255,0.2)"),document.body.style.setProperty("--selectDropDownColor",this.selectDropDownColor||"#333"),document.body.style.setProperty("--selectHoverColor",this.selectHoverColor||"rgba(255,255,255,0.5)"),document.body.style.setProperty("--selectHoverBackgroundColor",this.selectHoverBackgroundColor||"#333")},e.prototype.ngOnChanges=function(e){var t=this;if(e.options)if(this.num&&this.num>1)this.mode="multiple",this.selectedValue=[],this.options.forEach((function(e){e.checked&&t.selectedValue.length<t.num&&t.selectedValue.push(e.value?e.value:e.label)})),this.selectedValue.length>0&&this.selectChange(this.selectedValue);else{this.mode="default";var o=this.options.find((function(e){return e.checked}));o&&(this.selectedValue=o.value?o.value:o.label,this.selectChange(this.selectedValue))}e.value&&(this.selectedValue=this.value)},e.prototype.selectAllData=function(){var e=this;this.selectedValue=[],this.options.forEach((function(t){e.selectedValue.push(t.value)})),this.selectChange(this.selectedValue)},e.prototype.selectChange=function(e){if(this.selectedValue=e,Array.isArray(e)){"string"===this.outputFormat?this.valueChange.emit(e.join(this.separator||",")):this.valueChange.emit(e);var t=this.options.filter((function(t){return e.includes(t.value)}));this.optionChange.emit(t)}else{this.valueChange.emit(e);t=this.options.find((function(e){return e.value===event}));this.optionChange.emit(t)}},e.prototype.select=function(e){this.selectedValue=e,this.selectChange(e)},e}(),exports.ɵx.decorators=[{type:i0.Component,args:[{selector:"sc-select",template:'<nz-select\n class="select-wrap"\n [ngClass]="align"\n [ngModel]="selectedValue"\n [nzMode]="mode"\n [nzMaxTagCount]="num"\n [nzDropdownClassName]="\'dropDown\'"\n [ngStyle]="ngStyle"\n [nzDropdownStyle]="dropdownStyle"\n [nzDropdownClassName]="\'selectComp\'"\n [nzDropdownRender]="renderTemplate"\n [nzShowSearch]="showSearch"\n (ngModelChange)="selectChange($event)"\n [nzAllowClear]="showClean"\n [nzPlaceHolder]="hint"\n [(nzOpen)]="open"\n>\n <nz-option\n *ngFor="let item of options"\n [nzValue]="item.value ? item.value : item.label"\n [nzLabel]="item.label"\n ></nz-option>\n</nz-select>\n<ng-template #renderTemplate>\n <div *ngIf="options && options.length > 0 && mode === \'multiple\'" class="select-footer">\n <button nz-button (click)="selectAllData()">全选</button>\n <button nz-button *ngIf="showClean" (click)="selectChange(null)">清空</button>\n <button nz-button *ngIf="showConfirm" (click)="open = false">查看</button>\n </div>\n</ng-template>\n',styles:[":host{display:inline-block}:host,:host ::ng-deep .ant-select{width:100%;height:100%}:host ::ng-deep .ant-select.center .ant-select-selection-item{justify-content:center}:host ::ng-deep .ant-select.right .ant-select-selection-item{justify-content:flex-end}:host ::ng-deep .ant-select-selection-item{display:flex;align-items:center}:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{background-color:inherit;border:0;height:100%;box-shadow:none!important}:host ::ng-deep .ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-search-input{height:100%}:host ::ng-deep .ant-select-arrow,:host ::ng-deep .ant-select-item,:host ::ng-deep .ant-select-item-empty{color:inherit}:host ::ng-deep .ant-select-single.ant-select-show-arrow .ant-select-selection-item,:host ::ng-deep .ant-select-single.ant-select-show-arrow .ant-select-selection-placeholder{line-height:inherit}.select-allCheck:hover{background-color:#f8f8f8}.select-allCheck{display:flex;align-items:center;border-top:1px solid #eee;justify-content:flex-end;height:32px;padding:5px 12px;font-size:14px;position:relative;line-height:22px;font-weight:400;color:#333}.select-allCheck span{flex:1}.select-allCheck p{line-height:32px}:host ::ng-deep ::-webkit-scrollbar{width:2px}::ng-deep .selectComp .cdk-virtual-scroll-viewport::-webkit-scrollbar{width:0}::ng-deep .selectComp .ant-select-item-option{color:inherit;font-size:12px}::ng-deep .selectComp .ant-select-item-option-active{background:var(--selectHoverBackgroundColor);color:var(--selectHoverColor)}::ng-deep .selectComp .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background:var(--dropdownBackgroundColor);color:var(--selectDropDownColor)}::ng-deep .selectComp .ant-select-dropdown{background-color:transparent}.select-footer{padding:8px}"]}]}],exports.ɵx.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("下拉框样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["background","borderColor","selectColor"],example:[{background:"assets/img/screen/select1.png",data:ɵ0$1},{background:"assets/img/screen/select2.png",data:ɵ1$1},{background:"assets/img/screen/select3.png",data:ɵ2$1},{background:"assets/img/screen/select4.png",data:ɵ3$1}]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("提示用语",{type:"string"}),__metadata("design:type",Object)],exports.ɵx.prototype,"hint",void 0),__decorate([bbjWidgetBase.Property("",{ui:{widget:"myCheckNumber",title:"多选个数",spanLabel:0,spanControl:24}}),__metadata("design:type",Object)],exports.ɵx.prototype,"num",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",String)],exports.ɵx.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("选中颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"dropdownBackgroundColor",void 0),__decorate([bbjWidgetBase.Property("选中字体颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"selectDropDownColor",void 0),__decorate([bbjWidgetBase.Property("hover字体颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"selectHoverColor",void 0),__decorate([bbjWidgetBase.Property("hover背景颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"selectHoverBackgroundColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵx.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("对齐方式",{enum:[{label:"左对齐",value:"left"},{label:"居中",value:"center"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵx.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("搜索"),__metadata("design:type",Boolean)],exports.ɵx.prototype,"showSearch",void 0),__decorate([bbjWidgetBase.Property("清空按钮"),__metadata("design:type",Boolean)],exports.ɵx.prototype,"showClean",void 0),__decorate([bbjWidgetBase.Property("查看按钮"),__metadata("design:type",Boolean)],exports.ɵx.prototype,"showConfirm",void 0),__decorate([bbjWidgetBase.Property("下拉宽度",{type:"number"}),__metadata("design:type",Object)],exports.ɵx.prototype,"dropdownWidth",void 0),__decorate([bbjWidgetBase.Property("下拉填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"dropdownBg",void 0),__decorate([bbjWidgetBase.Property("下拉边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵx.prototype,"dropdownBorderColor",void 0),__decorate([bbjWidgetBase.Property("输出格式",{enum:[{label:"数组",value:"array"},{label:"字符串",value:"string"}],ui:{widget:"select",visibleIf:{num:ɵ4$1}}}),__metadata("design:type",Object)],exports.ɵx.prototype,"outputFormat",void 0),__decorate([bbjWidgetBase.Property("分隔字符",{ui:{visibleIf:{outputFormat:["string"]}}}),__metadata("design:type",Object)],exports.ɵx.prototype,"separator",void 0),__decorate([bbjWidgetBase.Data({properties:{label:{title:"标签",type:"string"},value:{title:"值",type:"string"},checked:{title:"是否选中",type:"boolean"}}}),__metadata("design:type",Object)],exports.ɵx.prototype,"options",void 0),__decorate([bbjWidgetBase.DataInput("选中值"),__metadata("design:type",Object)],exports.ɵx.prototype,"value",void 0),__decorate([bbjWidgetBase.DataOutput("值"),bbjWidgetBase.Event("值改变",{params:"值"}),__metadata("design:type",Object)],exports.ɵx.prototype,"valueChange",void 0),__decorate([bbjWidgetBase.DataOutput("原始数据"),__metadata("design:type",Object)],exports.ɵx.prototype,"optionChange",void 0),__decorate([bbjWidgetBase.Method("选中"),__param(0,bbjWidgetBase.Param("值")),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],exports.ɵx.prototype,"select",null),exports.ɵx=__decorate([bbjWidgetBase.Widget("下拉框",{group:"component",image:"assets/img/screen/select.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵx);var SelectModule=function(e){e.register(exports.ɵx)};function getFontStyle(e){var t={};return e&&(e.size&&(t.fontSize=e.size+"px"),e.family&&(t.fontFamily=e.family),e.color&&(t.color=e.color),e.weight&&(t.fontWeight=e.weight),e.space&&(t.letterSpacing=e.space+"px"),e.lineHeight&&(t.lineHeight=e.lineHeight+"px")),t}SelectModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵx],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,select.NzSelectModule,forms.FormsModule,button.NzButtonModule]}]}],SelectModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵz=function(){function e(){this.colorExample={color:"#3285ff",borderColor:"#3285ff",background:"rgba(50,133,255,0.2)"},this.background="rgba(50,133,255,0.2)",this.borderColor="#3285ff",this.font={family:"",color:"#3285ff",weight:"normal",size:12,space:0,lineHeight:""},this.btnStyleOption="default",this.iconSingleColor="#fff",this.iconSingleSize=16,this.height=26,this.valueChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.btnStyle=Object.assign({backgroundColor:this.background,borderColor:this.borderColor},getFontStyle(this.font)),"iconSingle"===this.btnStyleOption&&(this.btnIconStyle={fontSize:this.iconSingleSize+"px",color:this.iconSingleColor})},e.prototype.searchChange=function(e){this.valueChange.emit(e)},e.prototype.onKeypress=function(e){"Enter"===e.key&&this.valueChange.emit(this.value)},e}(),exports.ɵz.decorators=[{type:i0.Component,args:[{selector:"sc-search",template:'<nz-input-group\n nzSearch\n [nzAddOnAfter]="hideBtn ? null : suffixIconButton"\n class="search-group"\n \n>\n <input\n type="text"\n nz-input\n [ngStyle]="btnStyle"\n [(ngModel)]="value"\n [placeholder]="placeholder | nzSafeNull"\n (keypress)="onKeypress($event)"\n [style.height.px]="height || 26"\n />\n</nz-input-group>\n<ng-template #suffixIconButton>\n <ng-container [ngSwitch]="btnStyleOption">\n <ng-container *ngSwitchCase="\'iconSingle\'">\n <div class="input-icon">\n <i [ngStyle]="btnIconStyle" nz-icon [nzIconfont]="\'iconsousuo1\'" (click)="searchChange(value)" ></i>\n </div>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <button nz-button nzType="primary" [ngStyle]="btnStyle" (click)="searchChange(value)" nzSearch>\n <i nz-icon nzType="search"></i>\n </button>\n </ng-container>\n </ng-container>\n</ng-template>\n',styles:[":host ::ng-deep .ant-input-focused,:host ::ng-deep .ant-input:focus{box-shadow:none!important}:host ::ng-deep .search-group .ant-input-group-addon{background-color:unset;height:100%}:host ::ng-deep .ant-btn.ant-input-search-button,:host ::ng-deep .ant-input-group,:host ::ng-deep .ant-input-group .ant-input{height:100%}:host ::ng-deep .input-icon{display:flex;align-items:center;height:100%;cursor:pointer;font-size:16px;color:#fff;position:absolute;right:10px;top:0}"]}]}],exports.ɵz.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("按钮样式",{ui:{widget:"myButton",spanLabel:24,spanControl:24,icon:"search",reset:["background","borderColor",{parent:"font",child:"color"}],background:[{color:"#F5A623",borderColor:"#F5A623",background:"rgba(245,166,35,0.2)"},{color:"#50E3C2",borderColor:"#50E3C2",background:"rgba(80,227,194,0.2)"},{color:"#9013fe",borderColor:"#9013fe",background:"rgba(144,19,254,0.2)"},{color:"#3285ff",borderColor:"#3285ff",background:"rgba(50,133,255,0.2)"}]}}),__metadata("design:type",Object)],exports.ɵz.prototype,"colorExample",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵz.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵz.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵz.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("按钮样式",{enum:[{label:"样式一",value:"default"},{label:"样式二",value:"iconSingle"}]}),__metadata("design:type",Object)],exports.ɵz.prototype,"btnStyleOption",void 0),__decorate([bbjWidgetBase.Property("按钮颜色",{ui:{widget:"myColor",visibleIf:{btnStyleOption:["iconSingle"]}}}),__metadata("design:type",Object)],exports.ɵz.prototype,"iconSingleColor",void 0),__decorate([bbjWidgetBase.Property("按钮大小",{ui:{visibleIf:{btnStyleOption:["iconSingle"]}}}),__metadata("design:type",Object)],exports.ɵz.prototype,"iconSingleSize",void 0),__decorate([bbjWidgetBase.Property("隐藏按钮"),__metadata("design:type",Boolean)],exports.ɵz.prototype,"hideBtn",void 0),__decorate([bbjWidgetBase.Property("提示文字"),__metadata("design:type",String)],exports.ɵz.prototype,"placeholder",void 0),__decorate([bbjWidgetBase.Property("高度"),__metadata("design:type",Object)],exports.ɵz.prototype,"height",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵz.prototype,"valueChange",void 0),exports.ɵz=__decorate([bbjWidgetBase.Widget("搜索框",{group:"component",image:"assets/img/screen/search.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵz);var SearchModule=function(e,t){this.iconService=t,e.register(exports.ɵz),this.iconService.fetchFromIconfont({scriptUrl:"assets/icons/screen-icons.js"})};SearchModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵz],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,icon.NzIconModule,input.NzInputModule,button.NzButtonModule,forms.FormsModule,pipes.NzPipesModule]}]}],SearchModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService},{type:icon.NzIconService}]},exports.ɵbb=function(){function e(e,t,o){this.baiduMapService=e,this.gaodeMapService=t,this.zone=o,this.tempFont={family:"",color:"#ffffff",weight:"normal",size:40,space:0,lineHeight:""},this.weatherStyleType="default",this.iconSize=64,this.weatherIcon=["iconfont","icon-duoyun"],this.weatherImgs={cloudy:"weather_cloudy",rain:"weather_rain",overcast:"weather_overcast",sunny:"weather_sunny"},this.weatherImgName="overcast"}return e.prototype.ngOnInit=function(){this.tempStyle=getFontStyle(this.tempFont),this.reload()},e.prototype.reload=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,i=this;return __generator(this,(function(a){switch(a.label){case 0:return[4,this.baiduMapService.localCity()];case 1:return e=a.sent(),t=e.name,this.city=t,[4,this.gaodeMapService.getWeather(t)];case 2:return o=a.sent(),this.zone.run((function(){i.weather=o.lives[0].weather,i.weatherImgName=i.weather.includes("雨")?"rain":"晴"===i.weather?"sunny":i.weather.includes("云")?"cloudy":"overcast",i.temperature=o.lives[0].temperature})),[2]}}))}))},e}(),exports.ɵbb.decorators=[{type:i0.Component,args:[{selector:"sc-weather",template:'<ng-container [ngSwitch]="weatherStyleType">\n <ng-container *ngSwitchCase="\'mini\'">\n <div class="weatherStyle-mini" *ngIf="weather">\n <img\n [src]="\'/assets/img/screen/\' + weatherImgs[weatherImgName || \'overcast\'] + \'.png\'"\n alt=""\n [style]="{ width: (iconSize || 64) + \'px\', height: (iconSize || 64) + \'px\' }"\n />\n <span [ngStyle]="tempStyle">{{ weather }} {{ temperature }}℃</span>\n </div>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <div class="flex-row" [ngStyle]="tempStyle">\n <div class="wd flex-row">\n <div class="f-s30 f-w">{{ temperature }}</div>\n <div style="font-size: 0.4em">℃</div>\n </div>\n <div class="icon">\n <i [ngClass]="weatherIcon" style="font-size: 1em"></i>\n </div>\n <div class="status">\n <div class="weather">{{ weather }}</div>\n <div class="city">{{ city }}</div>\n </div>\n </div>\n </ng-container>\n</ng-container>\n',styles:['@font-face{font-family:iconfont;src:url(//at.alicdn.com/t/font_1514307_kyxp4dpada.eot?t=1574038799011);src:url(//at.alicdn.com/t/font_1514307_kyxp4dpada.eot?t=1574038799011#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAYEAAsAAAAAC+QAAAW2AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDMgqKeIkkATYCJAMUCwwABCAFhG0HUxs7ChFVpB+R/Thwzk/B+s/Oqy5qBi1S9C80//l3s859CaJVqJmQ1GxCqAsjZjBSZdUM2f0U0S8I6fZjOKE1zdZ0jPlGRagu2fPUs/yP/Henl6aM8ziNUggJwvHD/VIv0yOfnZ1LdS+6aAMdUETbJ95ozlvEs8mlzsisvw0EQItYZIOEpg4JavDgRoIu9oW5CagdLvARbILaqgy4kydahgJqdp69C+Cy9vv0IwpJDTAoOPAre2bFadR/E/K9wB3zH8OwgoI6vwCA630AByAbAA/QjsCQHZxhyNZM2qAQj/oW/E0NBvZNyDep3+R9L/j9WLoWWbSCEkMMXL7/PCW4SQ/4eiPfc2pJCgR8kyoFBnyTp3iH8b0AmhljUuD5WgAxAL0JsM0MnzxMCw4aqPS8zhwRadAbRLs5XElEJwYYbR+3uUKldVPDRpjtCvMgHddqHaHYMOmumNF7Ex2f0zqAY49UGLlkkqkxRUDWOSMCZu061i+4QqvXTVZAbdLvUVDdT5FdoT3rpgm3W/J4rD6fzevtFw2yrrAX3O6DjuSzIiSBV93xHnNA5FkO7ZbXvYm3+JpdRHLdoYvbe1xaP2Yybeh0mmPDWXzyuCtUq3gcU3aHI9R/hhzmdkhuNcySbTOnCDuGHKF14NzkEQ3r6+m8IClvw8EMCo7iu72l0Q3HPBl3ukE1I6O32aNu8H3i0zk9NY++m75+1W13hN3zTtnNoC8hcfyTMrmUZzkrbk1/0h3tCL374SmdM6zuiuN3O7qzx7G7ZOc9RC4b607ALjVpR195l0l03nP8bttxc63rc91VppqN2+75YkWS7Eui+JuKsj/Xxolq9dVqlajcdvW2rUmiSnW1alzc5rY/slcKqEWVn16puL+4I64mBfXv8sA2cRyO7KuUJL8oLtklCSrp/iZUgNnuqD/ca2eXLzOZvXR5+XlseZmWyL58eelaCw0OwALL4CDLY2CQLMJTBgaQ//GxYBY2eHnHJO1iV1/D4MqtFpsO4uCowEdbaccOYgjJO7bLOxkzY6qlQ6Vqap+JMdLsuXOzbIxO7dMNPx3fQmNjxL7YPDZeMLy4KAVNJ+TzcV1dgvEqg7C0JBiuHo/v6lbljmvw7xP0xRPjxfpzemEcViq3P+UQrLpfMMOC/kpCOOm+Yqf53GllFveVw5fTrwz8wtR3fLafFpjTSfMstrpLYey1ur/tpNk56hSOnZ1t6/oBIfUCo7rGPM3Ahg8cGCYr9tq1m66KbiBZpno4KFmf+78OawzxZSKJos/vSLOc6uhGSuv1rQnLXTQ/T11p0Zarvk9syURj70S9gftjhA4dIvnr8tb9ZUdS+lObPB3RGSXD2arW748cqBxdO7DZ39NANhsxfcNFDsh8EFTfgOzRK63XcoKQn6V9/lReXve1hO2rVS+T4dyZK6OKIq+EY6MTn20zFBoqDAlRieyYxP9e3G5M0CW+uOxqCOlwGa/cE0uvxWvP3ViEfQAA/zL3G7dNEz7Ffcp1Cl+e93C1lV+q5uL/YGfh/u0ja2MB1X+rdVvWvs/+MxrR4V+mhZBvNvuXmEFW/52GVQV+f9U3LTcovrMhmU+aAVA4Q8Guqfnn2PwYC/bLx2Iiq/+tFpMFjEoMcNSS0Tw+GxR0ikFJrQ60shT364RgS9QLyPRiQAK9gTF6ATiBPmge/wUFsz8oBWYJWnJCnqiTmkpZGLWgA/OEylLvRa8ovesRw9Rqtms1wRV5rLKQRom7WmCPnMc14y1kIh48UwcH9j5sW4KBqUYrUSky5HHsg74RWepmigVDmkAOMJ6KbMUiPb+3UJ6fP0LBpKVxxJhv2SvERtXhQSqSENCFqSeNWZfeo5sgIxjwQBrMSAccMIBaoUTAEHxaDVkiUqYoDHIxzuWppqh8SzeNLZiI4/BrFBmZaVY21R+2J5XIanul+9Bi9Zy209po0iw7/2A6mwEAAA==") format("woff2"),url(//at.alicdn.com/t/font_1514307_kyxp4dpada.woff?t=1574038799011) format("woff"),url(//at.alicdn.com/t/font_1514307_kyxp4dpada.ttf?t=1574038799011) format("truetype"),url(//at.alicdn.com/t/font_1514307_kyxp4dpada.svg?t=1574038799011#iconfont) format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-sun:before{content:"\\e613"}.icon-leiyu:before{content:"\\e626"}.icon-rain:before{content:"\\e62f"}.icon-duoyun:before{content:"\\e944"}.flex-row{display:flex;flex-flow:row;align-items:center}.f-w{font-weight:700}.wd{flex:1;align-items:baseline}.wd div:first-child{margin-right:10px}.status{font-size:.4em;margin-left:10px}.weatherStyle-mini{display:flex;align-items:center}.weatherStyle-mini img{display:block;margin-right:8px}']}]}],exports.ɵbb.ctorParameters=function(){return[{type:i1.BaiduMapService},{type:GaodeMapService},{type:i0.NgZone}]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbb.prototype,"tempFont",void 0),__decorate([bbjWidgetBase.Property("显示样式",{enum:[{label:"样式1",value:"default"},{label:"样式2",value:"mini"}]}),__metadata("design:type",Object)],exports.ɵbb.prototype,"weatherStyleType",void 0),__decorate([bbjWidgetBase.Property("图标大小",{ui:{widget:"myRange",min:0,max:100,step:1,visibleIf:{weatherStyleType:["mini"]}}}),__metadata("design:type",Object)],exports.ɵbb.prototype,"iconSize",void 0),exports.ɵbb=__decorate([bbjWidgetBase.Widget("天气",{group:"component",image:"assets/img/screen/weather.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i1.BaiduMapService,GaodeMapService,i0.NgZone])],exports.ɵbb);var WeatherModule=function(e){e.register(exports.ɵbb)};WeatherModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbb],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,i2.HttpClientJsonpModule],providers:[]}]}],WeatherModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbd=function(){function e(e){this.ele=e,this.radioColor="#3285FF",this.styleType="circle",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:26},this.selectImage="",this.notSelectImage="",this.width=150,this.height=50,this.isCustom=!1,this.options=[{label:"是",value:"1",checked:!0},{label:"否",value:"0"}],this.valueChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.ele.nativeElement.style.setProperty("--radioColor",this.radioColor),this.ele.nativeElement.style.setProperty("--outerSize",this.font.size+"px"),this.ele.nativeElement.style.setProperty("--innerSize",this.font.size/2+"px"),this.ele.nativeElement.style.setProperty("--width",this.width+"px"),this.ele.nativeElement.style.setProperty("--height",this.height+"px"),this.ele.nativeElement.style.setProperty("--color",this.font.color),this.ele.nativeElement.style.setProperty("--weight",this.font.weight),this.ele.nativeElement.style.setProperty("--family",this.font.weight),this.ele.nativeElement.style.setProperty("--select","url("+this.selectImage+")"),this.ele.nativeElement.style.setProperty("--notSelect","url("+this.notSelectImage+")"),this.ngStyle={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"}},e.prototype.ngOnChanges=function(e){if(this.selectImage&&this.notSelectImage&&""!=this.selectImage&&""!=this.notSelectImage&&(this.isCustom=!0),e.options&&this.options){var t=this.options.find((function(e){return e.checked}));t&&(this.radioValue=t.value,this.valueChange.emit(this.radioValue))}},e.prototype.checked=function(e){var t=this;this.options.forEach((function(o){o.value===e.value?(o.checked=!0,t.valueChange.emit(o.value)):o.checked=!1}))},e.prototype.radioChange=function(e){this.valueChange.emit(e)},e}(),exports.ɵbd.decorators=[{type:i0.Component,args:[{selector:"sc-radio",template:'<ng-container *ngIf="!isCustom">\n <ng-container *ngIf="styleType!=\'button\'">\n <nz-radio-group [(ngModel)]="radioValue" (ngModelChange)="radioChange($event)" [ngStyle]="ngStyle">\n <label nz-radio *ngFor="let option of options" [nzValue]="option.value">{{option.label}}</label>\n </nz-radio-group>\n </ng-container>\n <ng-container *ngIf="styleType==\'button\'">\n <nz-radio-group [(ngModel)]="radioValue" (ngModelChange)="radioChange($event)" [ngStyle]="ngStyle"\n nzButtonStyle="solid">\n <label nz-radio-button *ngFor="let option of options" [nzValue]="option.value">{{option.label}}</label>\n </nz-radio-group>\n </ng-container>\n</ng-container>\n<ng-container *ngIf="isCustom">\n <div class="content">\n <label class="customRadio" *ngFor="let option of options" (click)="checked(option)"><input type="radio" [value]="option.value" [checked]="option.checked" /><span>{{option.label}}</span></label>\n </div>\n</ng-container>',styles:[":host ::ng-deep .ant-radio-checked .ant-radio-inner,:host ::ng-deep .ant-radio-inner{border-color:var(--radioColor);width:var(--outerSize);height:var(--outerSize);position:relative}:host ::ng-deep .ant-radio-inner:after{background-color:var(--radioColor);width:var(--innerSize);height:var(--innerSize);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:50%;text-align:center}:host ::ng-deep .ant-radio,:host ::ng-deep .ant-radio-group,:host ::ng-deep .ant-radio-wrapper,:host ::ng-deep .ng-star-inserted{color:inherit;font-size:inherit;line-height:inherit}:host ::ng-deep .ant-radio-button-checked{background-color:var(--radioColor)}:host ::ng-deep .content{display:flex}:host ::ng-deep .content .customRadio{cursor:pointer;flex:1}:host ::ng-deep .customRadio input[type=radio]{display:none}:host ::ng-deep .customRadio input[type=radio]+span{display:inline-block;width:var(--width);height:var(--height);font-size:var(--outerSize);line-height:var(--height);color:var(--color);font-weight:var(--weight);font-family:var(--family);text-align:center;background-image:var(--notSelect);background-repeat:no-repeat;background-size:cover}:host ::ng-deep .customRadio input[type=radio]:checked+span{background-image:var(--select);background-repeat:no-repeat;background-size:cover}"]}]}],exports.ɵbd.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵbd.prototype,"radioColor",void 0),__decorate([bbjWidgetBase.Property("样式类型",{ui:{widget:"select"},enum:[{label:"圆点",value:"circle"},{label:"按钮",value:"button"}]}),__metadata("design:type",Object)],exports.ɵbd.prototype,"styleType",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbd.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("选中图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵbd.prototype,"selectImage",void 0),__decorate([bbjWidgetBase.Property("未选图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵbd.prototype,"notSelectImage",void 0),__decorate([bbjWidgetBase.Property("自定义宽",{type:"number"}),__metadata("design:type",Object)],exports.ɵbd.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("自定义高",{type:"number"}),__metadata("design:type",Object)],exports.ɵbd.prototype,"height",void 0),__decorate([bbjWidgetBase.Data({properties:{label:{title:"标签",type:"string"},value:{title:"值",type:"string"},checked:{title:"是否选中",type:"boolean"}}}),__metadata("design:type",Array)],exports.ɵbd.prototype,"options",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵbd.prototype,"valueChange",void 0),exports.ɵbd=__decorate([bbjWidgetBase.Widget("单选",{group:"component",image:"assets/img/screen/radio.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbd);var RadioModule=function(e){e.register(exports.ɵbd)};RadioModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbd],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,radio.NzRadioModule,forms.FormsModule]}]}],RadioModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbe=function(){function e(e){this.ele=e,this.options=[{label:"多选一",value:"option1",checked:!0},{label:"多选二",value:"option2"},{label:"多选三",value:"option3"}],this.borderColor="#3285FF",this.font={family:"",weight:"normal",size:12,space:0,lineHeight:26},this.layout="horizontal",this.lableLayout="horizontal",this.lablePaddNum={top:0,right:0,bottom:0,left:0},this.outputFormat="array",this.separator=",",this.selectImage="",this.notSelectImage="",this.width=150,this.height=50,this.isCustom=!1,this.valueChange=new i0.EventEmitter,this.allChecked=!1,this.indeterminate=!0}return e.prototype.ngOnInit=function(){this.textStyle={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",borderColor:this.borderColor,backgroudColor:this.borderColor}},e.prototype.ngOnChanges=function(e){var t=this;if(this.selectImage&&this.notSelectImage&&""!=this.selectImage&&""!=this.notSelectImage&&(this.ele.nativeElement.style.setProperty("--outerSize",this.font.size+"px"),this.ele.nativeElement.style.setProperty("--innerSize",this.font.size/2+"px"),this.ele.nativeElement.style.setProperty("--width",this.width+"px"),this.ele.nativeElement.style.setProperty("--height",this.height+"px"),this.ele.nativeElement.style.setProperty("--color",this.font.color),this.ele.nativeElement.style.setProperty("--weight",this.font.weight),this.ele.nativeElement.style.setProperty("--family",this.font.weight),this.ele.nativeElement.style.setProperty("--select","url("+this.selectImage+")"),this.ele.nativeElement.style.setProperty("--notSelect","url("+this.notSelectImage+")"),this.isCustom=!0),e.value&&this.updateCheckOptions(),e.options&&(this.checkOptions=this.options.map((function(e,o){var i;return e=Object.assign({},e),(null===(i=t.labelColors)||void 0===i?void 0:i.length)&&(e.color=t.labelColors[o%t.labelColors.length]),e})),this.updateSingleChecked(),this.value?this.updateCheckOptions():this.updateValue(!0)),e.lablePaddNum&&e.lablePaddNum.currentValue){var o=e.lablePaddNum.currentValue;this.lablePadd=(o.top||0)+"px "+(o.right||0)+"px "+(o.bottom||0)+"px "+(o.left||0)+"px"}if(e.labelWidthNum&&e.labelWidthNum.currentValue){var i=e.labelWidthNum.currentValue;if(Number(i))this.labelWidth=i+"px";else"%"===i.charAt(i.length-1)&&Number(i.slice(0,i.length-1))&&(this.labelWidth=i)}},e.prototype.change=function(e){this.updateSingleChecked(),this.updateValue()},e.prototype.updateCheckOptions=function(){var e;if(this.value&&(null===(e=this.checkOptions)||void 0===e?void 0:e.length)){var t;t="string"==typeof this.value?this.value.split(this.separator||","):this.value;var o=!1;this.checkOptions.forEach((function(e){var i=e.value&&t.includes(e.value.toString());e.checked!==i&&(o=!0,e.checked=i)})),o&&(this.checkOptions=__spread(this.checkOptions),this.updateSingleChecked())}},e.prototype.updateValue=function(e){var t=[];this.checkOptions.forEach((function(e){e.checked&&t.push(e.value)})),e&&!t.length||("string"===this.outputFormat?this.valueChange.emit(t.join(this.separator||",")):this.valueChange.emit(t))},e.prototype.updateAllChecked=function(){this.indeterminate=!1,this.allChecked?this.checkOptions=this.checkOptions.map((function(e){return Object.assign(Object.assign({},e),{checked:!0})})):this.checkOptions=this.checkOptions.map((function(e){return Object.assign(Object.assign({},e),{checked:!1})})),this.updateValue()},e.prototype.updateSingleChecked=function(){this.showCheckAll&&(this.checkOptions.every((function(e){return!e.checked}))?(this.allChecked=!1,this.indeterminate=!1):this.checkOptions.every((function(e){return e.checked}))?(this.allChecked=!0,this.indeterminate=!1):this.indeterminate=!0)},e.prototype.checkedAll=function(){this.allChecked=!this.allChecked},e.prototype.checked=function(e){var t=[];this.options.forEach((function(o){o.value===e.value&&(o.checked=!o.checked),o.checked&&t.push(o.value)})),this.valueChange.emit(t.join(this.separator||","))},e}(),exports.ɵbe.decorators=[{type:i0.Component,args:[{selector:"sc-checkbox",template:'<ng-container *ngIf="!isCustom">\n <div class="checkboxDefault" [class.label-vertical]="lableLayout === \'vertical\'">\n <label\n *ngIf="showCheckAll"\n nz-checkbox\n [ngStyle]="textStyle"\n [style.padding]="lablePadd"\n [style.width]="labelWidth"\n [(ngModel)]="allChecked"\n (ngModelChange)="updateAllChecked()"\n [nzIndeterminate]="indeterminate"\n >\n <ng-container *ngIf="!hiddenLabel">全选</ng-container>\n </label>\n <nz-checkbox-wrapper [ngStyle]="textStyle" (nzOnChange)="change($event)">\n <label\n *ngFor="let option of checkOptions"\n nz-checkbox\n [nzDisabled]="disabled"\n [style.padding]="lablePadd"\n [style.width]="labelWidth"\n [nzValue]="option.value"\n [(ngModel)]="option.checked"\n [style.color]="option.color"\n >\n <ng-container *ngIf="!hiddenLabel">{{ option.label }}</ng-container>\n </label>\n </nz-checkbox-wrapper>\n </div>\n</ng-container>\n<ng-container *ngIf="isCustom">\n <div\n class="content"\n [class.layout-vertical]="layout === \'vertical\'"\n [class.label-vertical]="lableLayout === \'vertical\'"\n [ngStyle]="textStyle"\n >\n <label\n *ngIf="showCheckAll"\n class="customRadio"\n [class.checked]="allChecked && !indeterminate"\n (click)="allChecked = !allChecked; updateAllChecked()"\n [style.padding]="lablePadd"\n [style.width]="labelWidth"\n >\n <i class="input-checkbox"></i>\n <span *ngIf="!hiddenLabel">全选</span></label\n >\n <label\n class="customRadio"\n [style.padding]="lablePadd"\n [style.width]="labelWidth"\n *ngFor="let option of checkOptions; let i = index"\n [class.checked]="option.checked"\n (click)="option.checked = !option.checked; change(option)"\n >\n <i class="input-checkbox"></i>\n <span *ngIf="!hiddenLabel" [style.color]="option.color">{{ option.label }}</span></label\n >\n </div>\n</ng-container>\n',host:{"[class.vertical]":'layout==="vertical"'},styles:[":host{display:block}:host ::ng-deep .ant-checkbox{display:inline-block}:host ::ng-deep .ant-checkbox,:host ::ng-deep .ant-checkbox-checked .ant-checkbox-inner,:host ::ng-deep .ant-checkbox-wrapper{background-color:inherit;border-color:inherit;color:inherit;font-size:inherit}:host ::ng-deep .ant-checkbox-checked .ant-checkbox-inner:after,:host ::ng-deep .ant-checkbox-inner{border-color:inherit;background-color:inherit}:host ::ng-deep .ant-checkbox-wrapper{margin-left:0}:host ::ng-deep .label-vertical label.ant-checkbox-wrapper{text-align:center}:host ::ng-deep .label-vertical .ant-checkbox+span{display:block}:host ::ng-deep .content .customRadio{display:inline-flex;align-items:center;cursor:pointer;padding:15px}:host ::ng-deep .content.layout-vertical{display:flex;flex-direction:column}:host ::ng-deep .content.label-vertical .customRadio{flex-direction:column;text-align:center}:host ::ng-deep .content.label-vertical .customRadio>i.input-checkbox{margin:0 0 5px}:host ::ng-deep .ant-checkbox+span,:host ::ng-deep .customRadio>i.input-checkbox+span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .customRadio>i.input-checkbox{display:inline-block;width:var(--width);height:var(--height);font-size:var(--outerSize);line-height:var(--height);color:var(--color);font-weight:var(--weight);font-family:var(--family);text-align:center;background-image:var(--notSelect);background-repeat:no-repeat;background-size:cover;margin:0 5px 0 0;flex:none}:host ::ng-deep .customRadio.checked>i.input-checkbox{background-image:var(--select);background-repeat:no-repeat;background-size:cover}.ant-checkbox-group{display:inline}:host.vertical::ng-deep .ant-checkbox-wrapper{display:block;text-align:center}"]}]}],exports.ɵbe.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Data({properties:{label:{title:"标签",type:"string"},value:{title:"值",type:"string"},checked:{title:"是否选中",type:"boolean"}}}),__metadata("design:type",Array)],exports.ɵbe.prototype,"options",void 0),__decorate([bbjWidgetBase.Property("复选框颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("整体布局",{enum:[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}]}),__metadata("design:type",Object)],exports.ɵbe.prototype,"layout",void 0),__decorate([bbjWidgetBase.Property("选项布局",{enum:[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}]}),__metadata("design:type",Object)],exports.ɵbe.prototype,"lableLayout",void 0),__decorate([bbjWidgetBase.Property("选项宽度"),__metadata("design:type",Object)],exports.ɵbe.prototype,"labelWidthNum",void 0),__decorate([bbjWidgetBase.Property("选项边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"lablePaddNum",void 0),__decorate([bbjWidgetBase.Property("显示全选"),__metadata("design:type",Boolean)],exports.ɵbe.prototype,"showCheckAll",void 0),__decorate([bbjWidgetBase.Property("隐藏文本"),__metadata("design:type",Boolean)],exports.ɵbe.prototype,"hiddenLabel",void 0),__decorate([bbjWidgetBase.Property("输出格式",{enum:[{label:"数组",value:"array"},{label:"字符串",value:"string"}]}),__metadata("design:type",Object)],exports.ɵbe.prototype,"outputFormat",void 0),__decorate([bbjWidgetBase.Property("分隔字符",{ui:{visibleIf:{outputFormat:["string"]}}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"separator",void 0),__decorate([bbjWidgetBase.Property("标签颜色",{ui:{widget:"seriesColor"}}),__metadata("design:type",Array)],exports.ɵbe.prototype,"labelColors",void 0),__decorate([bbjWidgetBase.Property("选中图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"selectImage",void 0),__decorate([bbjWidgetBase.Property("未选图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵbe.prototype,"notSelectImage",void 0),__decorate([bbjWidgetBase.Property("图片宽",{type:"number"}),__metadata("design:type",Object)],exports.ɵbe.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("图片高",{type:"number"}),__metadata("design:type",Object)],exports.ɵbe.prototype,"height",void 0),__decorate([bbjWidgetBase.DataInput("选中值"),__metadata("design:type",Object)],exports.ɵbe.prototype,"value",void 0),__decorate([bbjWidgetBase.DataOutput("值"),bbjWidgetBase.Event("值改变",{params:"值"}),__metadata("design:type",Object)],exports.ɵbe.prototype,"valueChange",void 0),__decorate([bbjWidgetBase.Property("禁用",{type:"boolean"}),__metadata("design:type",Boolean)],exports.ɵbe.prototype,"disabled",void 0),exports.ɵbe=__decorate([bbjWidgetBase.Widget("复选框",{group:"component",image:"assets/img/screen/checkbox.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbe);var CheckboxModule=function(e){e.register(exports.ɵbe)};CheckboxModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbe],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,checkbox.NzCheckboxModule,forms.FormsModule]}]}],CheckboxModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbg=function(){function e(e){this.ele=e,this.type="rate",this.radioColor="#3285FF",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:26},this.rateValue=3.5,this.radioValue="great",this.sliderValue=8}return e.prototype.ngOnInit=function(){this.ele.nativeElement.style.setProperty("--backgroundColor",this.radioColor),this.style={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"}},e}(),exports.ɵbg.decorators=[{type:i0.Component,args:[{selector:"sc-rate",template:'<ng-container *ngIf="type === \'rate\'">\n <nz-rate [ngModel]="rateValue" nzAllowHalf [style.color]="radioColor"></nz-rate>\n <span *ngIf="rateValue" [ngStyle]="style" class="ant-rate-text">{{rateValue}}星</span>\n</ng-container>\n<nz-radio-group [ngStyle]="style" class="radio-rate" [(ngModel)]="radioValue" *ngIf="type === \'radio\'">\n <label nz-radio [ngStyle]="style" nzValue="great">非常满意</label>\n <label nz-radio [ngStyle]="style" nzValue="satisfaction">满意</label>\n <label nz-radio [ngStyle]="style" nzValue="ordinary">一般</label>\n <label nz-radio [ngStyle]="style" nzValue="yawp">不满意</label>\n <label nz-radio [ngStyle]="style" nzValue="bad">差</label>\n</nz-radio-group>\n<div class="slider-rate" [ngStyle]="style" *ngIf="type === \'slider\'">\n <span>评分</span>\n <nz-slider class="slider" [(ngModel)]="sliderValue" [nzMin]="0" [nzMax]="10"></nz-slider>\n <span *ngIf="sliderValue">{{sliderValue}}分</span>\n</div>\n',styles:[":host ::ng-deep .slider-rate{display:flex}:host ::ng-deep .slider-rate span{white-space:nowrap;display:flex;justify-content:center;flex-direction:column}:host ::ng-deep .slider-rate .slider{display:inline-block;width:100%;margin:2px 8px 0}:host ::ng-deep .ant-rate-text{margin-left:8px}:host ::ng-deep .ant-rate{color:inherit}:host ::ng-deep .ant-slider-track,:host ::ng-deep .ant-slider:hover .ant-slider-track{background-color:var(--backgroundColor)}:host ::ng-deep .ant-radio-checked .ant-radio-inner,:host ::ng-deep .ant-radio-inner,:host ::ng-deep .ant-slider-handle,:host ::ng-deep .ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open){border-color:var(--backgroundColor)}:host ::ng-deep .ant-radio-inner:after{background-color:var(--backgroundColor)}:host ::ng-deep .ant-radio,:host ::ng-deep .ant-radio-group,:host ::ng-deep .ant-radio-wrapper{color:inherit;font-size:inherit;line-height:inherit}"]}]}],exports.ɵbg.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("类型",{enum:[{label:"分数",value:"slider"},{label:"星级",value:"rate"},{label:"满意度",value:"radio"}],ui:{widget:"select"}}),__metadata("design:type",Object)],exports.ɵbg.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵbg.prototype,"radioColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbg.prototype,"font",void 0),exports.ɵbg=__decorate([bbjWidgetBase.Widget("评分",{group:"component",image:"assets/img/screen/rate.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbg);var RateModule=function(e){e.register(exports.ɵbg)};RateModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbg],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,rate.NzRateModule,forms.FormsModule,radio.NzRadioModule,slider.NzSliderModule]}]}],RateModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbi=function(){function e(e,t,o){this.renderer=e,this.cd=t,this.widgetRef=o,this.title="文本",this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0},this.align="left",this.grid={top:0,right:0,bottom:0,left:0},this.data=[],this.dataChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){var t,o,i;if(this.style={backgroundColor:this.background,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.data&&this.data[0]&&this.data[0].color?this.data[0].color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",opacity:this.opacity,textShadow:this.shadow.X+"px "+this.shadow.Y+"px "+this.shadow.Z+"px "+this.shadow.color},this.grid){var a=this.grid,r=a.top,n=void 0===r?0:r,s=a.right,d=void 0===s?0:s,l=a.bottom,p=void 0===l?0:l,c=a.left,g=void 0===c?0:c;this.style.padding=n+"px "+d+"px "+p+"px "+g+"px"}var h=this.widgetRef.widget;((null===(t=h.link)||void 0===t?void 0:t.enabled)||(null===(o=h.outputs)||void 0===o?void 0:o.enabled))&&(this.style.cursor="pointer"),this.style.textAlign=this.align,e.data&&((null===(i=this.data)||void 0===i?void 0:i.length)&&this.data[0].value?this.dataChange.emit(this.data[0].value):this.dataChange.emit(null)),this.cd.markForCheck()},e.prototype.exportWord=function(){var e=this,t=this.title;if(null!=this.data&&null!=this.data[0]&&null!=this.data[0].value&&(t=this.data[0].value),t){t=t.replace(/\n/g,"<br/>").replace(/ /g," ");var o=document.createElement("p");return o.innerHTML=t,Object.keys(this.style).forEach((function(t){e.renderer.setStyle(o,t,e.style[t])})),o.outerHTML}return null},e}(),exports.ɵbi.decorators=[{type:i0.Component,args:[{selector:"sc-general-text",template:'<div\n *ngIf="data && data[0]"\n [ngStyle]="style"\n class="text"\n [innerHTML]="(data[0].value != null ? data[0].value : title) | nzSanitizer: \'html\'"\n></div>\n<div *ngIf="!data || !data[0]" [ngStyle]="style" class="text" [innerHTML]="title | nzSanitizer: \'html\'"></div>\n',changeDetection:i0.ChangeDetectionStrategy.OnPush,styles:[":host{width:100%;height:100%}.text{white-space:pre-wrap}"]}]}],exports.ɵbi.ctorParameters=function(){return[{type:i0.Renderer2},{type:i0.ChangeDetectorRef},{type:bbjWidgetBase.WidgetRef}]},__decorate([bbjWidgetBase.Property("内容",{ui:{widget:"textarea",autosize:{minRows:6,maxRows:6}}}),__metadata("design:type",Object)],exports.ɵbi.prototype,"title",void 0),__decorate([bbjWidgetBase.Property("背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",String)],exports.ɵbi.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbi.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbi.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵbi.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("文字对齐",{ui:{widget:"select"},enum:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"},{label:"居中",value:"center"}]}),__metadata("design:type",Object)],exports.ɵbi.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("内容边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵbi.prototype,"grid",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"string",title:"值"},color:{type:"string",title:"颜色"}}}),__metadata("design:type",Array)],exports.ɵbi.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput("值",{triggerLink:!1}),__metadata("design:type",Object)],exports.ɵbi.prototype,"dataChange",void 0),exports.ɵbi=__decorate([bbjWidgetBase.Widget("常规文本",{group:"generalText",icon:"iconwenzi"}),__metadata("design:paramtypes",[i0.Renderer2,i0.ChangeDetectorRef,bbjWidgetBase.WidgetRef])],exports.ɵbi);var GeneralTextModule=function(e){e.register(exports.ɵbi)};GeneralTextModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbi],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,pipes.NzPipesModule]}]}],GeneralTextModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbj=function(){function e(){this.font={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:""},this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0},this.direction="left",this.scrollamount=2,this.behavior="scroll",this.data=[{value:"跑马灯"}],this.display=!0}return e.prototype.ngOnInit=function(){this.style={backgroundColor:this.background,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",opacity:this.opacity,boxShadow:this.shadow.color+" "+this.shadow.X+"px "+this.shadow.Y+"px "+this.shadow.Z+"px"}},e.prototype.ngOnChanges=function(e){e.data&&this.reset()},e.prototype.reset=function(){var e=this;this.display=!1,setTimeout((function(){return e.display=!0}))},e}(),exports.ɵbj.decorators=[{type:i0.Component,args:[{selector:"sc-marquee",template:'<marquee *ngIf="display" [ngStyle]="style" [behavior]="behavior" [direction]="direction" align="middle" [attr.scrollamount]="scrollamount">\n <p *ngFor="let row of data" [innerHTML]="row?.value">\n \x3c!-- {{ row?.value }} --\x3e\n </p>\n</marquee>\n',styles:[":host{display:block;width:100%}:host,marquee{height:100%}"]}]}],exports.ɵbj.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",String)],exports.ɵbj.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("动画",{enum:[{label:"从下向上滚动",value:"up"},{label:"从上向下滚动",value:"down"},{label:"从左向右滚动",value:"right"},{label:"从右向左滚动",value:"left"}],ui:{widget:"select"}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"direction",void 0),__decorate([bbjWidgetBase.Property("速度",{ui:{widget:"myRange",min:0,max:20,step:1}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"scrollamount",void 0),__decorate([bbjWidgetBase.Property("轨迹",{enum:[{label:"循环绕行",value:"scroll"},{label:"播放一次",value:"slide"},{label:"来回往复运动",value:"alternate"}],ui:{widget:"select"}}),__metadata("design:type",Object)],exports.ɵbj.prototype,"behavior",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"string",title:"值"}}}),__metadata("design:type",Array)],exports.ɵbj.prototype,"data",void 0),exports.ɵbj=__decorate([bbjWidgetBase.Widget("跑马灯",{group:"scrollText",icon:"iconwenzi"}),__metadata("design:paramtypes",[])],exports.ɵbj);var MarqueeModule=function(e){e.register(exports.ɵbj)};MarqueeModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbj],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],MarqueeModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbl=function(){function e(e){this.ele=e,this.title="艺术字",this.font={family:"",color:"#333333",weight:"normal",size:12,space:0,lineHeight:""},this.opacity=1,this.align="left",this.data=[]}return e.prototype.ngOnInit=function(){this.style={fontSize:this.ele.nativeElement.offsetHeight>(this.ele.nativeElement.offsetWidth-10)/this.title.length?(this.ele.nativeElement.offsetWidth-10)/this.title.length+"px":this.ele.nativeElement.offsetHeight-10+"px",lineHeight:this.ele.nativeElement.offsetHeight>this.ele.nativeElement.offsetWidth/this.title.length?(this.ele.nativeElement.offsetWidth-10)/this.title.length+"px":this.ele.nativeElement.offsetHeight-10+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",opacity:this.opacity},this.backgroundImage&&(this.style.backgroundImage=this.backgroundImage),this.ele.nativeElement.style.backgroundColor=this.background,this.ele.nativeElement.style.textAlign=this.align},e}(),exports.ɵbl.decorators=[{type:i0.Component,args:[{selector:"sc-wordart",template:'<div *ngIf="data && data[0]" [ngStyle]="style" class="text" [class.gradual]="this.backgroundImage">{{data[0].value != null? data[0].value:title}}</div>\n<div *ngIf="!data||!data[0]" [ngStyle]="style" class="text" [class.gradual]="this.backgroundImage">{{title}}</div>',styles:[".text{display:inline-block}.gradual{-webkit-background-clip:text;-webkit-text-fill-color:transparent}:host{display:inline-block;width:100%;height:100%}"]}]}],exports.ɵbl.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("内容"),__metadata("design:type",Object)],exports.ɵbl.prototype,"title",void 0),__decorate([bbjWidgetBase.Property("背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",String)],exports.ɵbl.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont",hideProperty:{size:!0,lineHeight:!0,space:!0}}}),__metadata("design:type",Object)],exports.ɵbl.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbl.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("渐变色",{ui:{hidden:!0}}),__metadata("design:type",String)],exports.ɵbl.prototype,"backgroundImage",void 0),__decorate([bbjWidgetBase.Property("文字对齐",{ui:{widget:"select"},enum:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"},{label:"居中",value:"center"}]}),__metadata("design:type",Object)],exports.ɵbl.prototype,"align",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"string",title:"值"}}}),__metadata("design:type",Array)],exports.ɵbl.prototype,"data",void 0),exports.ɵbl=__decorate([bbjWidgetBase.Widget("艺术字",{group:"wordart",icon:"iconwenzi"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbl);var WordartModule=function(e){e.register(exports.ɵbl)};WordartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbl],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],WordartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbn=function(){function e(e){this.element=e,this.type="iconfont",this.background="#3285FF"}return e.prototype.ngOnInit=function(){this.style={fontSize:this.element.nativeElement.offsetWidth>this.element.nativeElement.offsetHeight?this.element.nativeElement.offsetHeight+"px":this.element.nativeElement.offsetWidth+"px",lineHeight:this.element.nativeElement.offsetWidth>this.element.nativeElement.offsetHeight?this.element.nativeElement.offsetHeight+"px":this.element.nativeElement.offsetWidth+"px",color:this.background}},e}(),exports.ɵbn.decorators=[{type:i0.Component,args:[{selector:"sc-iconfont",template:'<span *ngIf="type === \'iconfont\'" [ngStyle]="style">\n <i nz-icon [nzIconfont]="icon"></i>\n</span>\n<i nz-icon *ngIf="type === \'nzIcon\'" [ngStyle]="style" [nzType]="icon" nzTheme="outline"></i>\n',styles:[":host{width:100%;height:100%;display:inline-block}"]}]}],exports.ɵbn.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("图标",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵbn.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图标名称",{ui:{hidden:!0}}),__metadata("design:type",String)],exports.ɵbn.prototype,"icon",void 0),__decorate([bbjWidgetBase.Property("图标颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵbn.prototype,"background",void 0),exports.ɵbn=__decorate([bbjWidgetBase.Widget("图标",{group:"iconfont",icon:"icontupian"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbn);var IconfontModule=function(e){e.register(exports.ɵbn)};IconfontModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbn],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,icon.NzIconModule]}]}],IconfontModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var FileUrlService=function(){function e(){}return e.prototype.getUrl=function(e){return e},e}();FileUrlService.ɵprov=i0.ɵɵdefineInjectable({factory:function(){return new FileUrlService},token:FileUrlService,providedIn:"root"}),FileUrlService.decorators=[{type:i0.Injectable,args:[{providedIn:"root"}]}],exports.ɵbp=function(){function e(e){this.fileUrlService=e,this.type="video",this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0}}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){this.style={opacity:this.opacity,boxShadow:this.shadow.color+" "+this.shadow.X+"px "+this.shadow.Y+"px "+this.shadow.Z+"px"},(e.type||e.videoType||e.src||e.data)&&this.reset()},e.prototype.reset=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){if(this._src=null,e=this.data&&this.data.length&&this.data[0].src?this.data[0].src:this.src,e=this.fileUrlService.getUrl(e),"auto"===this.type&&e&&e.includes("."))switch(e.substring(e.lastIndexOf(".")+1)){case"png":case"jpg":this._type="image";break;case"mp4":this._type="video";break;case"mp3":this._type="audio"}else this._type=this.type,"video"===this._type&&"flv"===this.videoType&&(this._type="flv");return this._src=e,[2]}))}))},e}(),exports.ɵbp.decorators=[{type:i0.Component,args:[{selector:"sc-audio",template:'<ng-container [ngSwitch]="_type">\n <img *ngSwitchCase="\'image\'" [src]="_src" />\n <audio *ngSwitchCase="\'audio\'" [src]="_src" controls="controls" [ngStyle]="style"></audio>\n <sc-video-player *ngSwitchCase="\'flv\'" [type]="\'flv\'" [src]="_src"></sc-video-player>\n <video #video *ngSwitchCase="\'video\'" [src]="_src" controls="controls" autoplay [ngStyle]="style"></video>\n</ng-container>\n',styles:[":host{display:block}:host,audio,img,video{height:100%;width:100%}"]}]}],exports.ɵbp.ctorParameters=function(){return[{type:FileUrlService}]},exports.ɵbp.propDecorators={video:[{type:i0.ViewChild,args:["video"]}]},__decorate([bbjWidgetBase.Property("",{min:1,type:"string",ui:{widget:"radio",spanLabel:0,spanControl:24},enum:[{value:"video",label:"视频"},{value:"audio",label:"音频"},{value:"auto",label:"自动"}]}),__metadata("design:type",Object)],exports.ɵbp.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("",{min:1,ui:{widget:"myUploadAudio",spanLabel:0,spanControl:24,list:[{name:"无",value:null},{name:"测试一号",value:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4"},{name:"测试二号",value:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180508102521.mp4"}]}}),__metadata("design:type",String)],exports.ɵbp.prototype,"src",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbp.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵbp.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Data({properties:{src:{title:"视频/音频地址",type:"string"}}}),__metadata("design:type",Array)],exports.ɵbp.prototype,"data",void 0),__decorate([bbjWidgetBase.Property("视频格式",{enum:[{label:"MP4",value:"mp4"},{label:"flv",value:"flv"}],ui:{visibleIf:{type:["video"]},widget:"select"}}),__metadata("design:type",String)],exports.ɵbp.prototype,"videoType",void 0),__decorate([bbjWidgetBase.Property("是否有声音",{ui:{visibleIf:{videoType:["flv"]}}}),__metadata("design:type",Boolean)],exports.ɵbp.prototype,"hasAudio",void 0),exports.ɵbp=__decorate([bbjWidgetBase.Widget("音频",{group:"audio",icon:"icontupian"}),__metadata("design:paramtypes",[FileUrlService])],exports.ɵbp);var VideoPlayerComponent=function(){function e(e,t){this.lazy=e,this.fileUrlService=t}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.reset(),this.initd=!0},e.prototype.ngOnChanges=function(e){this.initd&&(e.type||e.src)&&this.reset()},e.prototype.reset=function(){"hls"===this.type?this.resetHls():"iframe"===this.type?this.destroy():this.resetFlv()},e.prototype.loadHls=function(){return null==e.loadHlsPromise&&(e.loadHlsPromise=this.lazy.loadScript("/assets/js/hls.js")),e.loadHlsPromise},e.prototype.resetHls=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.loadHls()];case 1:return t.sent(),this.destroy(),this.src&&Hls.isSupported()&&!this.destroyed&&(e=this.fileUrlService.getUrl(this.src),this.hlsPlayer=new Hls,this.hlsPlayer.loadSource(e),this.hlsPlayer.attachMedia(this.video.nativeElement)),[2]}}))}))},e.prototype.resetFlv=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.loadFlv()];case 1:return t.sent(),this.destroy(),this.src&&!this.destroyed&&(e=this.fileUrlService.getUrl(this.src),this.flvPlayer=flvjs.createPlayer({type:"flv",url:e,hasAudio:!0===this.hasAudio,hasVideo:!0,isLive:!0,withCredentials:!1},{enableWorker:!1,lazyLoadMaxDuration:180,seekType:"range"}),this.flvPlayer.attachMediaElement(this.video.nativeElement),this.flvPlayer.load()),[2]}}))}))},e.prototype.loadFlv=function(){return null==e.loadFlvPromise&&(e.loadFlvPromise=this.lazy.loadScript("assets/js/flv.min.js")),e.loadFlvPromise},e.prototype.destroy=function(){this.flvPlayer&&(this.flvPlayer.unload(),this.flvPlayer.detachMediaElement(),this.flvPlayer.destroy(),this.flvPlayer=null),this.hlsPlayer&&(this.hlsPlayer.destroy(),this.hlsPlayer=null)},e.prototype.ngOnDestroy=function(){this.destroy(),this.destroyed=!0},e}();VideoPlayerComponent.decorators=[{type:i0.Component,args:[{selector:"sc-video-player",template:'<video *ngIf="type !== \'iframe\' || !src" class="video-js" #video controls autoplay></video>\r\n<iframe *ngIf="type === \'iframe\' && src" [src]="src | nzSanitizer: \'resourceUrl\'"></iframe>\r\n',styles:[":host{display:block}:host,iframe,video{height:100%;width:100%}iframe{border:none;pointer-events:none}"]}]}],VideoPlayerComponent.ctorParameters=function(){return[{type:util.LazyService},{type:FileUrlService}]},VideoPlayerComponent.propDecorators={type:[{type:i0.Input}],src:[{type:i0.Input}],hasAudio:[{type:i0.Input}],video:[{type:i0.ViewChild,args:["video",{static:!1}]}]};var VideoPlayerModule=function(){};VideoPlayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[VideoPlayerComponent],imports:[common.CommonModule,pipes.NzPipesModule],exports:[VideoPlayerComponent]}]}];var AudioModule=function(e){e.register(exports.ɵbp)};AudioModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbp],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,VideoPlayerModule]}]}],AudioModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$2={barColor:{gradient:!0,value:[["#FFEF66","#FF851D"]]}},ɵ1$2={barColor:{gradient:!0,value:[["#00FECB","#00D191"]]}},ɵ2$2={barColor:{gradient:!0,value:[["#00D2FD","#3285FF"]]}},ɵ3$2={barColor:{gradient:!0,value:[["#FF3699","#8934F8"]]}};exports.BasicBarChartComponent=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.type="basic",t.barColor={gradient:!0,value:[["#00D2FD","#3285FF"]]},t.font={family:"",color:"#595F7A",weight:"normal",size:12,space:0,lineHeight:12},t.colors=["#058DC7","#50B432","#ED561B","#DDDF00","#24CBE5","#64E572","#FF9655","#FFF263","#6AF9C4"],t.grid={top:30,right:30,bottom:36,left:38},t.align="center",t.axisShow="true",t.scaleShow="true",t.yUnit="",t.xUnit="",t.netLine=!1,t.netLineColor="rgba(255,255,255,0.2)",t.labelDirection="none",t.barCategoryGap=40,t.xType="category",t.xLabelRotate=0,t.xLabelOverflow="auto",t.zoomOnMouseWheel=!0,t.showBackground=!0,t.markLine=!1,t.YmarkLineHeight=10,t.YmarkLineName="",t.YmarkLineType="dashed",t.YmarkLineColor="#f00",t.YmarkWidth=2,t.XmarkLineLocation="二月",t.XmarkLineName="",t.XmarkLineType="dashed",t.XmarkLineColor="#f00",t.XmarkWidth=2,t.chartOption={},t._data=[{x:"一月",y:10,s:"收入"},{x:"二月",y:20,s:"收入"},{x:"三月",y:25,s:"收入"},{x:"四月",y:35,s:"收入"},{x:"五月",y:27,s:"收入"},{x:"六月",y:28,s:"收入"},{x:"一月",y:18,s:"支出"},{x:"二月",y:28,s:"支出"},{x:"三月",y:32,s:"支出"},{x:"四月",y:48,s:"支出"},{x:"五月",y:20,s:"支出"},{x:"六月",y:17,s:"支出"}],t.dataClick=new i0.EventEmitter,t.xData=[],t.yData=[],t.color=[],t.legends=[],t}return __extends(t,e),t.prototype.ngOnChanges=function(e){if(e._data){var t=this.getMaxY();[].fill(t,0,this.xData.length);var o=this.getTextStyle(this.font);this.style=o;var i=this.horizontal,a=void 0;a=this.barColor&&this.barColor.value?this.barColor.value:this.barColor,this.color=a.map((function(e){return{type:"linear",x:0,y:0,x2:i?1:0,y2:i?0:1,global:!1,colorStops:[{offset:0,color:e[0]},{offset:1,color:e[1]}]}}));var r=this.getXAxis(),n=this.getYAxis(),s={top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom};if("dcolor"===this.type){var d=n,l=this.getYAxis();d.inverse=!0,(n=[d,l]).forEach((function(e,t){e.gridIndex=t,e.position="top"})),(r=[r,this.getXAxis()]).forEach((function(e,t){e.gridIndex=t})),s=[{right:"50%"},{left:"50%"}]}var p=this.getDataZoom();this.chartOption={dataZoom:p,tooltip:this.getTooltip(),legend:this.getLegend(),grid:s,xAxis:i?n:r,yAxis:i?r:n,color:this.color,series:[]},this.reloadData()}},t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"horizontal",{get:function(){return"hori"===this.type||"horiD"===this.type||"dcolor"===this.type},enumerable:!1,configurable:!0}),t.prototype.getXAxis=function(){var e="true"===this.scaleShow||"0"!==this.scaleShow&&"1"===this.scaleShow;return{nameTextStyle:this.style,type:this.xType||"category",name:this.xUnit,axisLine:{show:"true"===this.axisShow||"0"!==this.axisShow&&"1"===this.axisShow,lineStyle:{color:this.font.color}},axisTick:{show:e},axisLabel:Object.assign(Object.assign({},this.style),{show:e,rotate:this.xLabelRotate,width:this.xLabelWidth,overflow:this.xLabelOverflow,interval:this.xLabelInterval})}},t.prototype.getYAxis=function(){var e=this,t="true"===this.scaleShow||("0"===this.scaleShow||(this.scaleShow,!1));return{nameTextStyle:this.style,type:"value",name:this.yUnit,axisLine:{show:"true"===this.axisShow||("0"===this.axisShow||(this.axisShow,!1)),lineStyle:{color:this.font.color}},axisTick:{show:t},min:this.yMin,max:function(t){var o=Number(e.yMax?e.yMax:t.max);return Math.ceil(e.yMaxAddNum?o+Number(e.yMaxAddNum):o)},axisLabel:Object.assign(Object.assign({},this.style),{show:t}),splitLine:{show:this.netLine,lineStyle:{type:"dashed",color:this.netLineColor}},minInterval:this.yMinInterval}},t.prototype.setSeriesStyle=function(e,t){var o=this.style,i=this.chartOption.series.length,a={name:e,showBackground:this.showBackground,xAxisIndex:"dcolor"===this.type?i:0,yAxisIndex:"dcolor"===this.type?i:0,label:{normal:{show:"none"!==this.labelDirection,position:this.labelDirection||"",textStyle:o}},barCategoryGap:this.barCategoryGap+"%",itemStyle:{barBorderRadius:this.barBorderRadius},stack:"double"===this.type||"horiD"===this.type?"0":null,type:"bar",areaStyle:{opacity:0},emphasis:{focus:"double"===this.type||"horiD"===this.type?"series":null},encode:this.horizontal?{y:"x",x:"y"}:{x:"x",y:"y"},datasetIndex:t};return this.chartOption.series.push(a),a},t}(exports.ɵc),exports.BasicBarChartComponent.decorators=[{type:i0.Component,args:[{selector:"sc-basic-bar-chart",template:'<div\n echarts\n [options]="chartOption"\n style="height: 100%"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[":host{display:block;height:100%;width:100%}"]}]}],__decorate([bbjWidgetBase.Property("类型",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["barColor"],example:[{background:"assets/img/screen/bar1.png",data:ɵ0$2},{background:"assets/img/screen/bar2.png",data:ɵ1$2},{background:"assets/img/screen/bar3.png",data:ɵ2$2},{background:"assets/img/screen/bar4.png",data:ɵ3$2}]}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"barColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("单系多色"),__metadata("design:type",Boolean)],exports.BasicBarChartComponent.prototype,"colorSwitch",void 0),__decorate([bbjWidgetBase.Property("类别颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"],visibleIf:{colorSwitch:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"colors",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"居中",value:"center"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("轴隐藏",{ui:{widget:"select"},enum:[{label:"无",value:"true"},{label:"x轴",value:"0"},{label:"y轴",value:"1"},{label:"两轴",value:"false"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"axisShow",void 0),__decorate([bbjWidgetBase.Property("刻度隐藏",{ui:{widget:"select"},enum:[{label:"无",value:"true"},{label:"x轴",value:"0"},{label:"y轴",value:"1"},{label:"两轴",value:"false"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"scaleShow",void 0),__decorate([bbjWidgetBase.Property("y轴单位",{type:"string"}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"yUnit",void 0),__decorate([bbjWidgetBase.Property("x轴单位",{type:"string"}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"xUnit",void 0),__decorate([bbjWidgetBase.Property("y轴最小"),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"yMin",void 0),__decorate([bbjWidgetBase.Property("y轴最大"),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"yMax",void 0),__decorate([bbjWidgetBase.Property("y轴最小间隔"),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"yMinInterval",void 0),__decorate([bbjWidgetBase.Property("y轴最大增减"),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"yMaxAddNum",void 0),__decorate([bbjWidgetBase.Property("网络线",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"netLine",void 0),__decorate([bbjWidgetBase.Property("网络线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"netLineColor",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"居上",value:"top"},{label:"居中",value:"inside"},{label:"居右",value:"right"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"labelDirection",void 0),__decorate([bbjWidgetBase.Property("列间距",{ui:{widget:"myRange",min:0,max:100,step:10}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"barCategoryGap",void 0),__decorate([bbjWidgetBase.Property("圆角",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"barBorderRadius",void 0),__decorate([bbjWidgetBase.Property("x轴类型",{enum:[{label:"类目",value:"category"},{label:"时间",value:"time"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"xType",void 0),__decorate([bbjWidgetBase.Property("轴标签角度",{ui:{widget:"myRange",min:-90,max:90,step:10}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"xLabelRotate",void 0),__decorate([bbjWidgetBase.Property("x轴文本宽度"),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"xLabelWidth",void 0),__decorate([bbjWidgetBase.Property("x轴文字宽度超出",{enum:[{label:"自动",value:"auto"},{label:"截断",value:"truncate"},{label:"换行",value:"break"},{label:"强制换行",value:"breakAll"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"xLabelOverflow",void 0),__decorate([bbjWidgetBase.Property("标签显示间隔",{ui:{optionalHelp:{text:"默认会采用标签不重叠的策略间隔显示标签。\n可以设置成 0 强制显示所有标签。 \n如果设置为 1,表示『隔一个标签显示一个标签』,如果值为 2,表示隔两个标签显示一个标签,以此类推。",overlayStyle:{whiteSpace:"pre-line"}}}}),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"xLabelInterval",void 0),__decorate([bbjWidgetBase.Property("区域缩放"),__metadata("design:type",Boolean)],exports.BasicBarChartComponent.prototype,"insideDataZoom",void 0),__decorate([bbjWidgetBase.Property("缩放最少数量",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"dataZoomMinData",void 0),__decorate([bbjWidgetBase.Property("缩放开始百分比",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"dataZoomStart",void 0),__decorate([bbjWidgetBase.Property("缩放结束百分比",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Number)],exports.BasicBarChartComponent.prototype,"dataZoomEnd",void 0),__decorate([bbjWidgetBase.Property("滚轮缩放",{enum:[{label:"启用",value:!0},{label:"禁用",value:!1},{label:"按住shift",value:"shift"},{label:"按住ctrl",value:"ctrl"},{label:"按住alt",value:"alt"}],ui:{widget:"select",visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"zoomOnMouseWheel",void 0),__decorate([bbjWidgetBase.Property("滑动条",{ui:{visibleIf:{insideDataZoom:[!0]}}}),__metadata("design:type",Boolean)],exports.BasicBarChartComponent.prototype,"sliderDataZoom",void 0),__decorate([bbjWidgetBase.Property("锁定区域大小",{ui:{visibleIf:{sliderDataZoom:[!0]}}}),__metadata("design:type",Boolean)],exports.BasicBarChartComponent.prototype,"zoomLock",void 0),__decorate([bbjWidgetBase.Property("提示框字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"tooltipFont",void 0),__decorate([bbjWidgetBase.Property("显示柱条背景",{type:"boolean"}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"showBackground",void 0),__decorate([bbjWidgetBase.Property("标线",{type:"boolean"}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"markLine",void 0),__decorate([bbjWidgetBase.Property("Y轴标线高度",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"YmarkLineHeight",void 0),__decorate([bbjWidgetBase.Property("Y标线标题",{type:"string",ui:{visibleIf:{markLine:[!0]},optionalHelp:"此标题需要跟x字段内名字一致"}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"YmarkLineName",void 0),__decorate([bbjWidgetBase.Property("Y标线类型",{ui:{widget:"select",visibleIf:{markLine:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"YmarkLineType",void 0),__decorate([bbjWidgetBase.Property("Y标线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"],visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"YmarkLineColor",void 0),__decorate([bbjWidgetBase.Property("Y标线粗细",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"YmarkWidth",void 0),__decorate([bbjWidgetBase.Property("X轴标线位置",{type:"string",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"XmarkLineLocation",void 0),__decorate([bbjWidgetBase.Property("X标线标题",{type:"string",ui:{optionalHelp:"此标题需要跟x字段内名字一致",visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"XmarkLineName",void 0),__decorate([bbjWidgetBase.Property("X标线类型",{ui:{widget:"select",visibleIf:{markLine:[!0]}},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"XmarkLineType",void 0),__decorate([bbjWidgetBase.Property("X标线颜色",{ui:{visibleIf:{markLine:[!0]},widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"XmarkLineColor",void 0),__decorate([bbjWidgetBase.Property("X标线粗细",{type:"number",ui:{visibleIf:{markLine:[!0]}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"XmarkWidth",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"},s:{type:"string",title:"系列"}}}),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","s"]),__metadata("design:type",Object)],exports.BasicBarChartComponent.prototype,"dataClick",void 0),exports.BasicBarChartComponent=__decorate([bbjWidgetBase.Widget("基本柱状图",{group:"barChart",image:"assets/img/screen/baseBar.png",icon:"icontubiao"})],exports.BasicBarChartComponent);var BasicBarChartModule=function(e){this.widgetService=e,e.register(exports.BasicBarChartComponent)};BasicBarChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.BasicBarChartComponent],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],BasicBarChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$3={pieColor:{gradient:!0,value:[["#FFB82E","#FFB82E"],["#FF7C24","#FF7C24"],["#FF610F","#FF610F"],["#EE2100","#EE2100"],["#A52501","#A52501"],["#7B2C04","#7B2C04"]]}},ɵ1$3={pieColor:{gradient:!0,value:[["#00FEC3","#00FEC3"],["#00F4A8","#00F4A8"],["#00D59B","#00D59B"],["#00B880","#00B880"],["#00896E","#00896E"],["#006A60","#006A60"]]}},ɵ2$3={pieColor:{gradient:!0,value:[["#45C1FC","#45C1FC"],["#00A1FB","#00A1FB"],["#0076B7","#0076B7"],["#004D7E","#004D7E"],["#003560","#003560"],["#001736","#001736"]]}},ɵ3$3={pieColor:{gradient:!0,value:[["#BF91FA","#BF91FA"],["#9B35F8","#9B35F8"],["#9813D9","#9813D9"],["#790588","#790588"],["#B30B9A","#B30B9A"],["#DC1098","#DC1098"]]}};exports.ɵd=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.type="basic",t.pieColor={gradient:!0,value:[["#45C1FC","#45C1FC"],["#00A1FB","#00A1FB"],["#0076B7","#0076B7"],["#004D7E","#004D7E"],["#003560","#003560"],["#001736","#001736"]]},t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:""},t.align="none",t.legentData="data",t.lineMark=!1,t.buoy=!1,t.radius=1,t.grid={top:50,left:50},t.roundWidth=15,t.addSplit=!1,t.seriesDataPie=[],t.xData=[],t.radiusPie=["0%","75%"],t.chartOption={},t.roseType="false",t._data=[{x:"一月",y:33},{x:"二月",y:31},{x:"三月",y:11},{x:"四月",y:11},{x:"五月",y:7},{x:"六月",y:20}],t.dataClick=new i0.EventEmitter,t.splitWidth=0,t.splitItem={value:t.splitWidth,name:"split",itemStyle:{normal:{label:{show:!1},labelLine:{show:!1},color:"rgba(0, 0, 0, 0)",borderColor:"rgba(0, 0, 0, 0)",borderWidth:0}}},t}return __extends(t,e),t.prototype.ngOnChanges=function(e){var t=this;if(e._data){if(null==this._data&&(this._data=[]),this.getPieData(),this.addSplit){var o=this._data.reduce((function(e,t){return e+Number(t.y)}),0)/100;this.splitItem.value=o}if("ring"===this.type||"roseRing"===this.type){var i=75-(Math.abs(Number(this.roundWidth))||75);this.radiusPie=[i+"%","75%"]}else this.radiusPie=["0%","75%"];null!=this.radius&&(this.radiusPie[0]=parseInt(this.radiusPie[0],10)*this.radius+"%",this.radiusPie[1]=parseInt(this.radiusPie[1],10)*this.radius+"%"),"rose"!==this.type&&"roseRing"!==this.type||(this.roseType="radius");var a=this.array2obj(this.seriesDataPie,"name"),r=[],n={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},s=void 0;s=this.pieColor&&this.pieColor.value?this.pieColor.value:this.pieColor;for(var d=0;d<s.length;d++)r.push(s[d][0]);this.chartOption={tooltip:{show:this.buoy,textStyle:{fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},trigger:"item",formatter:function(e){return"split"===e.name?"":e.name+": "+t.addUnit(e.value)+"("+e.percent+"%)"}},legend:{type:"scroll",orient:"vertical",data:this.xData,x:this.align,show:"none"!==this.align,textStyle:n},color:r,series:[{name:"pie",type:"pie",roseType:"radius"===this.roseType&&"radius",label:{normal:{show:this.lineMark,formatter:function(e){return"split"===e.name?"":t.addUnit(e.value)},textStyle:n}},center:[this.grid.left+"%",this.grid.top+"%"],radius:this.radiusPie,labelLine:{normal:{show:this.lineMark}},textStyle:n,data:[]}]},this.reloadData(),"percent"===this.legentData&&(this.chartOption.legend.formatter=function(e){var t,o,i=0;Object.keys(a).forEach((function(e){var t,o;try{for(var r=__values(a[e]),n=r.next();!n.done;n=r.next()){var s=n.value;i+=parseInt(s.value,10)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(t)throw t.error}}}));var r=0;try{for(var n=__values(a[e]),s=n.next();!s.done;s=n.next()){var d=s.value;r+=Number(d.value)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}return e+"("+(r/i*100).toFixed(0)+"%)"}),"both"===this.legentData&&(this.chartOption.legend.formatter=function(e){var o,i,r=0;Object.keys(a).forEach((function(e){var t,o;try{for(var i=__values(a[e]),n=i.next();!n.done;n=i.next()){var s=n.value;r+=parseInt(s.value,10)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(t)throw t.error}}}));var n=0;try{for(var s=__values(a[e]),d=s.next();!d.done;d=s.next()){var l=d.value;n+=Number(l.value)}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}var p=(n/r*100).toFixed(0);return e+"("+t.addUnit(n)+"-"+p+"%)"}),"data"===this.legentData&&(this.chartOption.legend.formatter=function(e){var o,i,r=0;try{for(var n=__values(a[e]),s=n.next();!s.done;s=n.next()){var d=s.value;r+=Number(d.value)}}catch(e){o={error:e}}finally{try{s&&!s.done&&(i=n.return)&&i.call(n)}finally{if(o)throw o.error}}return e+"("+t.addUnit(r)+")"})}},t.prototype.addUnit=function(e){return this.unit&&null!=e&&""!==e&&(e+=this.unit),e},t.prototype.reloadData=function(){var e=this,t=[],o=this.addSplit&&this._data.filter((function(e){return e.y})).length>1;this._data.forEach((function(i){var a=i.x,r=i.y,n={name:a,value:Number(r)};t.push(n),o&&t.push(e.splitItem)})),this.chartOption.series[0].data=t,this._data.forEach((function(t){var o={name:t.x};e.xData.push(o)})),this.uniqueData(this.xData)},t.prototype.ngOnInit=function(){},t.prototype.getPieData=function(){this.seriesDataPie=[];this.addSplit&&this._data.forEach((function(e){e.y}));for(var e=0;e<this._data.length;e++)this.seriesDataPie.push({value:this._data[e].y,name:this._data[e].x})},t.prototype.array2obj=function(e,t){for(var o={},i=0;i<e.length;i++)o[e[i][t]]||(o[e[i][t]]=[]),o[e[i][t]].push(e[i]);return o},t.prototype.getLegentData=function(e){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵd.decorators=[{type:i0.Component,args:[{selector:"sc-basic-pie-chart",template:'<div\r\n echarts\r\n [options]="chartOption"\r\n class="demo-chart"\r\n (chartClick)="onChartClick($event)"\r\n [initOpts]="{ renderer: \'svg\' }"\r\n></div>\r\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("类型",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵd.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["pieColor"],class:"pie",example:[{background:"assets/img/screen/pie1.png",data:ɵ0$3},{background:"assets/img/screen/pie2.png",data:ɵ1$3},{background:"assets/img/screen/pie3.png",data:ɵ2$3},{background:"assets/img/screen/pie4.png",data:ɵ3$3}]}}),__metadata("design:type",Object)],exports.ɵd.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵd.prototype,"pieColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵd.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"纵向居中",value:"center"},{label:"纵向居左",value:"left"},{label:"纵向居右",value:"right"}]}),__metadata("design:type",Object)],exports.ɵd.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("图例呈现",{ui:{widget:"select"},enum:[{label:"数据",value:"data"},{label:"百分比",value:"percent"},{label:"数据-百分比",value:"both"}]}),__metadata("design:type",Object)],exports.ɵd.prototype,"legentData",void 0),__decorate([bbjWidgetBase.Property("线标",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵd.prototype,"lineMark",void 0),__decorate([bbjWidgetBase.Property("浮标",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵd.prototype,"buoy",void 0),__decorate([bbjWidgetBase.Property("缩放",{type:"number"}),__metadata("design:type",Object)],exports.ɵd.prototype,"radius",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid",type:"pie"}}),__metadata("design:type",Object)],exports.ɵd.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("环宽",{type:"number"}),__metadata("design:type",Object)],exports.ɵd.prototype,"roundWidth",void 0),__decorate([bbjWidgetBase.Property("增加隔断",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵd.prototype,"addSplit",void 0),__decorate([bbjWidgetBase.Property("单位"),__metadata("design:type",String)],exports.ɵd.prototype,"unit",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵd.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x"]),__metadata("design:type",Object)],exports.ɵd.prototype,"dataClick",void 0),exports.ɵd=__decorate([bbjWidgetBase.Widget("饼图",{group:"pieChart",image:"assets/img/screen/pie.png",icon:"icontubiao"})],exports.ɵd);var BasicPieChartModule=function(e){e.register(exports.ɵd)};BasicPieChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵd],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],BasicPieChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$4={barColor:["#FAA736"]},ɵ1$4={barColor:["#00D190"]},ɵ2$4={barColor:["#3285FF"]},ɵ3$4={barColor:["#8934F8"]};exports.ɵg=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.type="basic",t.barColor=["#3285FF","#00D2FD"],t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},t.grid={top:0,right:0,bottom:0,left:0},t.yUnit="",t.xUnit="",t.netLine=!1,t.label=!1,t.autoRotate=!1,t.boxWidth=200,t.boxDepth=20,t._data=[{x:"一月",y:10,s:"收入"},{x:"二月",y:20,s:"收入"},{x:"三月",y:25,s:"收入"},{x:"四月",y:35,s:"收入"},{x:"五月",y:27,s:"收入"},{x:"六月",y:28,s:"收入"},{x:"一月",y:18,s:"支出"},{x:"二月",y:28,s:"支出"},{x:"三月",y:32,s:"支出"},{x:"四月",y:48,s:"支出"},{x:"五月",y:20,s:"支出"},{x:"六月",y:17,s:"支出"}],t.dataClick=new i0.EventEmitter,t.sData=[],t.series=[],t}return __extends(t,e),t.prototype.ngOnChanges=function(e){var t=this;if(e._data){this.reloadData();var o={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,margin:this.font.lineHeight};this.chartOption={xAxis3D:{name:this.xUnit,nameTextStyle:o,type:"category",splitLine:{show:!1},data:this.xData},yAxis3D:{name:"",type:"category",data:[]},zAxis3D:{name:this.yUnit,nameTextStyle:o,type:"value",splitLine:{show:this.netLine,lineStyle:{width:1}}},grid3D:{top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom,boxWidth:this.boxWidth,boxDepth:this.boxDepth,axisTick:{show:!1},axisLine:{lineStyle:{color:this.font.color,width:1}},axisLabel:{textStyle:o},viewControl:{alpha:10,beta:0,autoRotate:this.autoRotate,zoomSensitivity:0,autoRotateAfterStill:15,distance:250}},color:["#45C1FC","#00A1FB","#0076B7","#004D7E","#003560","#001736"],series:[]},"3D"===this.type&&(this.series=[this.series[0]]);for(var i=function(e){a.chartOption.series.push({type:"bar3D",itemStyle:{},data:[],shading:"lambert",stack:"stack",label:{show:a.label,textStyle:o},emphasis:{label:{textStyle:{fontSize:a.font.size,color:a.font.color,fontWeight:a.font.weight,fontFamily:a.font.family,lineHeight:a.font.lineHeight,borderWidth:0,borderColor:"#00000000"}}}}),a.chartOption.series[e].itemStyle.color=a.barColor[e];var i=[];a._data.forEach((function(o){t.series[e]===o.s&&i.push(o)})),a.xData.forEach((function(o){var a=0;i.forEach((function(e){e.x===o&&a++})),0===a&&t._data.push({x:o,y:0,s:t.series[e]})})),a._data.sort((function(e,o){return t.xData.indexOf(e.x)-t.xData.indexOf(o.x)})),a._data.filter((function(o){return o.s===t.series[e]})).forEach((function(o){for(var i=0;i<t.xData.length;i++)t.xData[i]===o.x&&t.chartOption.series[e].data.push([i,0,o.y])}))},a=this,r=0;r<this.series.length;r++)i(r)}},t.prototype.reloadData=function(){if(this._data[0]){for(var e=0;e<this._data.length;e++)this._data[e].s&&(this.series[e]=this._data[e].s);this.uniqueData(this.series)}for(e=0;e<this._data.length;e++)this.xData[e]=this._data[e].x;this.uniqueData(this.xData)},t.prototype.ngOnInit=function(){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵg.decorators=[{type:i0.Component,args:[{selector:"sc-bar-chart-three-d",template:'<div *ngIf="chartOption" echarts [options]="chartOption" class="demo-chart" (chartClick)="onChartClick($event)"></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("类型",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵg.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["barColor"],example:[{background:"assets/img/screen/3d1.png",data:ɵ0$4},{background:"assets/img/screen/3d2.png",data:ɵ1$4},{background:"assets/img/screen/3d3.png",data:ɵ2$4},{background:"assets/img/screen/3d4.png",data:ɵ3$4}]}}),__metadata("design:type",Object)],exports.ɵg.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵg.prototype,"barColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵg.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵg.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("y轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵg.prototype,"yUnit",void 0),__decorate([bbjWidgetBase.Property("x轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵg.prototype,"xUnit",void 0),__decorate([bbjWidgetBase.Property("y轴最大"),__metadata("design:type",Number)],exports.ɵg.prototype,"yMax",void 0),__decorate([bbjWidgetBase.Property("网络线",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵg.prototype,"netLine",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵg.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("自动旋转",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵg.prototype,"autoRotate",void 0),__decorate([bbjWidgetBase.Property("柱子宽度",{ui:{widget:"myRange",min:100,max:1e3,step:100}}),__metadata("design:type",Object)],exports.ɵg.prototype,"boxWidth",void 0),__decorate([bbjWidgetBase.Property("柱子深度",{ui:{widget:"myRange",min:10,max:100,step:10}}),__metadata("design:type",Object)],exports.ɵg.prototype,"boxDepth",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"},z:{type:"string",title:"系列"}}}),__metadata("design:type",Object)],exports.ɵg.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","z"]),__metadata("design:type",Object)],exports.ɵg.prototype,"dataClick",void 0),exports.ɵg=__decorate([bbjWidgetBase.Widget("3D柱状图",{group:"barChart",image:"assets/img/screen/basic-bar-chart.png",icon:"icontubiao"})],exports.ɵg);var BarChartThreeDModule=function(e){e.register(exports.ɵg)};BarChartThreeDModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵg],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],BarChartThreeDModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbs=function(){function e(e,t,o,i,a){this.elementRef=e,this.resizeObserver=t,this.zone=o,this.cd=i,this.widgetRef=a,this.background=null,this.borderColor="#3285ff",this.borderWidth=1,this.fillet=0,this.side=3,this.sr=38,this.upper=60,this.bottom=100,this.deviation=0,this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0},this.type="rect",this.destroy$=new rxjs.Subject}return e.prototype.ngOnInit=function(){var e=this;this.reset(),this.resizeObserver.observe(this.elementRef).pipe(operators.takeUntil(this.destroy$)).subscribe((function(){e.zone.run((function(){e.reset()}))}))},e.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},e.prototype.reset=function(){var e=this,t=this.elementRef.nativeElement,o=t.clientWidth,i=t.clientHeight;switch(this.width=o,this.height=i,this.style={opacity:this.opacity,stroke:this.borderColor,strokeWidth:this.borderWidth,fill:this.background?this.background:"rgba(0,0,0,0)"},this.shadow&&(this.shadow.X||this.shadow.Y||this.shadow.Z)&&(this.filterId=this.widgetRef.widget.id,this.filterUrl="url(#"+this.filterId+")"),this.type){case"rect":this.style.rx=this.style.ry=this.fillet;break;case"triangle":this.points=o/2+o*this.deviation/200+",0 "+o+","+i+" 0,"+i;break;case"parallelogram":var a=o*this.deviation/100;this.deviation>=0?this.points=a+",0 "+o+",0 "+(o-a)+","+i+" 0,"+i:this.points="0,0 "+(o+a)+",0 "+o+","+i+" "+-a+","+i;break;case"trapezoid":var r=this.upper*o/100,n=this.bottom*o/100,s=(o-r)/2*(1+this.deviation/100),d=(o-n)/2*(1-this.deviation/100);this.points=s+",0 "+(s+r)+",0 "+(d+n)+","+i+" "+d+","+i;break;case"polyline":case"polygon":var l,p,c,g;this.points="",this.data.forEach((function(e){var t=e.x,o=e.y;(t<l||null==l)&&(l=t),(t>p||null==p)&&(p=t),(o<c||null==c)&&(c=o),(o>g||null==g)&&(g=o)}));var h=o/(p-l),u=i/(g-c);this.data.forEach((function(t){var o=t.x,i=t.y;e.points+=(o-l)*h+","+(i-c)*u+" "}));break;case"polygonplus":var y=o/2,m=i/2;this.points="";for(var b=0;b<this.side;b++)this.points+=this.getEllipsePoint(b,this.side,y,m,y,m);break;case"polyhedrosis":this.points="";var f=o/2,_=i/2,v=f*this.sr/100,x=_*this.sr/100;for(b=0;b<this.side;b++)this.points+=this.getEllipsePoint(b,this.side,f,_,f,_),this.points+=this.getEllipsePoint(b+.5,this.side,f,_,v,x);break;case"path":this.points="";for(b=0;b<this.data.length;b++)this.points+="L"+this.data[b].x+" "+this.data[b].y+" ";this.points="M"+this.points.substring(1)+"Z"}this.cd.markForCheck()},e.prototype.getEllipsePoint=function(e,t,o,i,a,r){var n=(2*e/t+.5)*Math.PI;return o+Math.cos(n)*a+","+(i-Math.sin(n)*r)+" "},e}(),exports.ɵbs.decorators=[{type:i0.Component,args:[{selector:"sc-shape",template:'<svg width="100%" height="100%" [ngSwitch]="type">\n <defs *ngIf="filterId">\n <filter [id]="filterId" x="-100%" y="-100%" width="300%" height="300%" filterUnits="userSpaceOnUse">\n <feOffset result="offOut" in="SourceGraphic" [attr.dx]="shadow.X" [attr.dy]="shadow.Y" />\n <feGaussianBlur result="blurOut" in="offOut" [attr.stdDeviation]="shadow.Z" />\n <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />\n </filter>\n </defs>\n <rect\n *ngSwitchCase="\'rect\'"\n x="0"\n y="0"\n [attr.width]="width"\n [attr.height]="height"\n [ngStyle]="style"\n [attr.filter]="filterUrl"\n ></rect>\n <ellipse\n *ngSwitchCase="\'circle\'"\n [attr.cx]="width / 2"\n [attr.cy]="height / 2"\n [attr.rx]="width / 2"\n [attr.ry]="height / 2"\n [ngStyle]="style"\n [attr.filter]="filterUrl"\n />\n <line\n *ngSwitchCase="\'line\'"\n x1="0"\n [attr.y1]="height / 2"\n [attr.x2]="width"\n [attr.y2]="height / 2"\n [ngStyle]="style"\n [attr.filter]="filterUrl"\n />\n \x3c!-- <path *ngSwitchCase="\'path\'" [attr.d]="data.d" [ngStyle]="style" [attr.filter]="filterUrl" /> --\x3e\n <polyline *ngSwitchCase="\'polyline\'" [attr.points]="points" [ngStyle]="style" [attr.filter]="filterUrl" />\n <polygon *ngSwitchDefault [attr.points]="points" [ngStyle]="style" [attr.filter]="filterUrl" />\n</svg>\n',changeDetection:i0.ChangeDetectionStrategy.OnPush,styles:[":host{width:100%;height:100%;display:block}svg{overflow:visible}"]}]}],exports.ɵbs.ctorParameters=function(){return[{type:i0.ElementRef},{type:resizeObservers.NzResizeObserver},{type:i0.NgZone},{type:i0.ChangeDetectorRef},{type:bbjWidgetBase.WidgetRef}]},__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",visibleIf:{type:["rect","polygonplus","polyhedrosis","circle","path","polygon","parallelogram","trapezoid"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("线条颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("线条粗细",{type:"number"}),__metadata("design:type",Object)],exports.ɵbs.prototype,"borderWidth",void 0),__decorate([bbjWidgetBase.Property("圆角",{type:"number",ui:{widget:"myRange",min:0,max:100,step:1,visibleIf:{type:["rect"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"fillet",void 0),__decorate([bbjWidgetBase.Property("几边形",{type:"number",ui:{widget:"myRange",min:3,max:100,step:1,visibleIf:{type:["polygonplus","polyhedrosis"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"side",void 0),__decorate([bbjWidgetBase.Property("内半径",{ui:{widget:"myRange",min:1,max:99,step:1,visibleIf:{type:["polyhedrosis"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"sr",void 0),__decorate([bbjWidgetBase.Property("上底",{ui:{widget:"myRange",min:1,max:100,step:1,visibleIf:{type:["trapezoid"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"upper",void 0),__decorate([bbjWidgetBase.Property("下底",{ui:{widget:"myRange",min:1,max:100,step:1,visibleIf:{type:["trapezoid"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"bottom",void 0),__decorate([bbjWidgetBase.Property("偏移",{ui:{widget:"myRange",min:-100,max:100,step:1,visibleIf:{type:["parallelogram","trapezoid","triangle"]}}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"deviation",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("",{type:"string",ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵbs.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("数据",{ui:{hidden:!0}}),__metadata("design:type",Array)],exports.ɵbs.prototype,"data",void 0),exports.ɵbs=__decorate([bbjWidgetBase.Widget("图形",{group:"shape",icon:"iconxingzhuang"}),__metadata("design:paramtypes",[i0.ElementRef,resizeObservers.NzResizeObserver,i0.NgZone,i0.ChangeDetectorRef,bbjWidgetBase.WidgetRef])],exports.ɵbs);var ShapeModule=function(e){e.register(exports.ɵbs)};ShapeModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbs],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],ShapeModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$5={barColor:{gradient:!0,value:[["#FFEF66","#FF851D"]]}},ɵ1$5={barColor:{gradient:!0,value:[["#00FECB","#00D191"]]}},ɵ2$5={barColor:{gradient:!0,value:[["#00D2FD","#3285FF"]]}},ɵ3$5={barColor:{gradient:!0,value:[["#FF3699","#8934F8"]]}};exports.ɵf=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.type="line",t.barColor={gradient:!0,value:[["#00D2FD","#3285FF"]]},t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},t.grid={top:30,right:30,bottom:30,left:30},t.align="none",t.yUnit="",t.xUnit="",t.showY1=!1,t.netLine=!1,t.label=!1,t.barCategoryGap=40,t.barBorderRadius=0,t.xLabelRotate=0,t.chartOption={},t._data=[{x:"一月",y:2,s:"蒸发量"},{x:"二月",y:4.9,s:"蒸发量"},{x:"三月",y:7,s:"蒸发量"},{x:"四月",y:35.6,s:"蒸发量"},{x:"五月",y:73.4,s:"蒸发量"},{x:"六月",y:123.4,s:"蒸发量"},{x:"一月",y:2.6,s:"降水量"},{x:"二月",y:5.9,s:"降水量"},{x:"三月",y:9,s:"降水量"},{x:"四月",y:25.7,s:"降水量"},{x:"五月",y:43.5,s:"降水量"},{x:"六月",y:78.9,s:"降水量"},{x:"一月",y:2,s:"温度"},{x:"二月",y:2.2,s:"温度"},{x:"三月",y:3.3,s:"温度"},{x:"四月",y:4.5,s:"温度"},{x:"五月",y:6.3,s:"温度"},{x:"六月",y:10.2,s:"温度"}],t.dataClick=new i0.EventEmitter,t.xData=[],t.series=[],t.yData=[],t}return __extends(t,e),t.prototype.ngOnChanges=function(e){if(e._data){for(var t=[],o=this.getMaxY(),i=0;i<this.xData.length;i++)t.push(o);this.style={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};var a=[],r=void 0;r=this.barColor&&this.barColor.value?this.barColor.value:this.barColor;for(i=0;i<r.length;i++)a.push({type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:r[i][0]},{offset:1,color:r[i][1]}]});var n={type:"category",name:this.xUnit,nameTextStyle:this.style,axisLine:{show:!0,lineStyle:{color:this.style.color}},axisTick:{show:!0},axisLabel:{rotate:this.xLabelRotate,show:!0,color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,margin:this.font.lineHeight}},s={type:"value",name:this.yUnit,nameTextStyle:this.style,axisLine:{lineStyle:{color:this.style.color}},max:this.yMax?void 0:this.yMax,axisLabel:this.style,splitLine:{show:this.netLine,lineStyle:{type:"dashed"}}},d={top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom};this.showY1&&(s=[{type:"value",name:this.yUnit,nameTextStyle:this.style,axisLine:{lineStyle:{color:this.style.color}},max:this.yMax?void 0:this.yMax,axisLabel:this.style,splitLine:{show:this.netLine,lineStyle:{type:"dashed"}}},{type:"value",name:this.yUnit,nameTextStyle:this.style,axisLine:{lineStyle:{color:this.style.color}},max:this.yMax?void 0:this.yMax,axisLabel:this.style,splitLine:{show:!1}}]),this.chartOption={legend:{data:this.series,align:this.align,icon:"stack",show:"none"!==this.align,textStyle:this.style},grid:d,xAxis:n,yAxis:s,color:a,series:[]},this.reloadData()}},t.prototype.setSeriesStyle=function(e,t){var o=1===t,i={name:e,showBackground:!0,label:{show:this.label,position:"top",textStyle:this.style},itemStyle:{normal:{barBorderRadius:this.barBorderRadius}},connectNulls:!0,barCategoryGap:this.barCategoryGap+"%",type:o?"bar":"line",yAxisIndex:this.showY1&&!o?1:0,areaStyle:{opacity:0},encode:{x:"x",y:"y"},datasetIndex:t};return this.chartOption.series.push(i),i},t.prototype.ngOnInit=function(){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵf.decorators=[{type:i0.Component,args:[{selector:"sc-line-bar-chart",template:'<div\n echarts\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[".demo-chart{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("类型",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵf.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["barColor"],example:[{background:"assets/img/screen/bar1.png",data:ɵ0$5},{background:"assets/img/screen/bar2.png",data:ɵ1$5},{background:"assets/img/screen/bar3.png",data:ɵ2$5},{background:"assets/img/screen/bar4.png",data:ɵ3$5}]}}),__metadata("design:type",Object)],exports.ɵf.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵf.prototype,"barColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵf.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵf.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵf.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("y轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵf.prototype,"yUnit",void 0),__decorate([bbjWidgetBase.Property("x轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵf.prototype,"xUnit",void 0),__decorate([bbjWidgetBase.Property("y轴最大"),__metadata("design:type",Number)],exports.ɵf.prototype,"yMax",void 0),__decorate([bbjWidgetBase.Property("y轴最大",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵf.prototype,"showY1",void 0),__decorate([bbjWidgetBase.Property("网络线",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵf.prototype,"netLine",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵf.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("列间距",{ui:{widget:"myRange",min:0,max:100,step:10}}),__metadata("design:type",Object)],exports.ɵf.prototype,"barCategoryGap",void 0),__decorate([bbjWidgetBase.Property("圆角",{ui:{widget:"myRange",min:0,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵf.prototype,"barBorderRadius",void 0),__decorate([bbjWidgetBase.Property("轴标签角度",{ui:{widget:"myRange",min:-90,max:90,step:10}}),__metadata("design:type",Object)],exports.ɵf.prototype,"xLabelRotate",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"},s:{type:"string",title:"系列"}}}),__metadata("design:type",Array)],exports.ɵf.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","s"]),__metadata("design:type",Object)],exports.ɵf.prototype,"dataClick",void 0),exports.ɵf=__decorate([bbjWidgetBase.Widget("折线柱图",{group:"barChart",image:"assets/img/screen/lineBar.png",icon:"icontubiao"})],exports.ɵf);var LineBarChartModule=function(e){e.register(exports.ɵf)};LineBarChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵf],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],LineBarChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$6={bubbleColor:{gradient:!0,value:[["#FFEF66","#FF851D"]]}},ɵ1$6={bubbleColor:{gradient:!0,value:[["#00FECB","#00D191"]]}},ɵ2$6={bubbleColor:{gradient:!0,value:[["#00D2FD","#3285FF"]]}},ɵ3$6={bubbleColor:{gradient:!0,value:[["#FF3699","#8934F8"]]}};exports.ɵh=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.bubbleColor={gradient:!0,value:[["#00D2FD","#3285FF"]]},t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},t.grid={top:30,right:30,bottom:34,left:36},t.align="auto",t.yUnit="",t.xUnit="",t.netLine=!1,t.label=!1,t.xLabelRotate=0,t.chartOption={},t._data=[{x:"一月",y:10,v:32,s:"收入"},{x:"二月",y:20,v:13,s:"收入"},{x:"三月",y:25,v:87,s:"收入"},{x:"四月",y:35,v:45,s:"收入"},{x:"五月",y:27,v:18,s:"收入"},{x:"六月",y:28,v:95,s:"收入"},{x:"一月",y:18,v:59,s:"支出"},{x:"二月",y:28,v:32,s:"支出"},{x:"三月",y:32,v:75,s:"支出"},{x:"四月",y:48,v:17,s:"支出"},{x:"五月",y:20,v:43,s:"支出"},{x:"六月",y:17,v:94,s:"支出"}],t.dataClick=new i0.EventEmitter,t.style={color:"",fontFamily:"",fontWeight:"",fontSize:"",lineHeight:""},t}return __extends(t,e),t.prototype.ngOnChanges=function(e){if(e._data){this.style={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};var t=[],o=void 0;o=this.bubbleColor&&this.bubbleColor.value?this.bubbleColor.value:this.bubbleColor;for(var i=0;i<o.length;i++)t.push({type:"radial",x:.4,y:.3,r:1,global:!1,colorStops:[{offset:0,color:o[i][0]},{offset:1,color:o[i][1]}]});this.chartOption={legend:{align:this.align,show:"none"!==this.align,textStyle:this.style},grid:{top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom},xAxis:{name:this.xUnit,nameTextStyle:this.style,type:"category",axisLine:{lineStyle:{color:this.style.color}},axisLabel:{rotate:this.xLabelRotate,show:!0,color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,margin:this.font.lineHeight}},yAxis:{name:this.yUnit,nameTextStyle:this.style,type:"value",axisLine:{lineStyle:{color:this.style.color}},axisLabel:this.style,splitLine:{show:this.netLine,lineStyle:{type:"dashed"}}},color:t,series:[]},this.reloadData()}},t.prototype.setSeriesStyle=function(e,t){var o={type:"scatter",symbolSize:function(e){return e.v},name:e,label:{show:this.label,textStyle:this.style,emphasis:{show:!0,position:"top",textStyle:this.style,formatter:[]}},itemStyle:{normal:{shadowBlur:10,shadowOffsetY:5,shadowColor:"rgba(67, 74, 78, 0.5)"}},encode:{x:"x",y:"y"},datasetIndex:t};return this.chartOption.series.push(o),o},t.prototype.ngOnInit=function(){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵh.decorators=[{type:i0.Component,args:[{selector:"sc-bubble-chart",template:'<div\r\n echarts\r\n [options]="chartOption"\r\n class="demo-chart"\r\n (chartClick)="onChartClick($event)"\r\n [initOpts]="{ renderer: \'svg\' }"\r\n></div>\r\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["bubbleColor"],example:[{background:"assets/img/screen/bubble1.png",data:ɵ0$6},{background:"assets/img/screen/bubble2.png",data:ɵ1$6},{background:"assets/img/screen/bubble3.png",data:ɵ2$6},{background:"assets/img/screen/bubble4.png",data:ɵ3$6}]}}),__metadata("design:type",Object)],exports.ɵh.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵh.prototype,"bubbleColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵh.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵh.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵh.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("y轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵh.prototype,"yUnit",void 0),__decorate([bbjWidgetBase.Property("x轴单位",{type:"string"}),__metadata("design:type",Object)],exports.ɵh.prototype,"xUnit",void 0),__decorate([bbjWidgetBase.Property("y轴最大"),__metadata("design:type",Number)],exports.ɵh.prototype,"yMax",void 0),__decorate([bbjWidgetBase.Property("网络线",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵh.prototype,"netLine",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵh.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("轴标签角度",{ui:{widget:"myRange",min:-90,max:90,step:10}}),__metadata("design:type",Object)],exports.ɵh.prototype,"xLabelRotate",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"高度"},v:{type:"number",title:"值"},s:{type:"string",title:"系列"}}}),__metadata("design:type",Object)],exports.ɵh.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","s"]),__metadata("design:type",Object)],exports.ɵh.prototype,"dataClick",void 0),exports.ɵh=__decorate([bbjWidgetBase.Widget("散点图",{group:"otherChart",image:"assets/img/screen/bubble.png",icon:"icontubiao"})],exports.ɵh);var BubbleChartModule=function(e){e.register(exports.ɵh)};BubbleChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵh],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],BubbleChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵi=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.lineColor=["#3285FF","#00D2FD"],t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:""},t.align="auto",t.label=!1,t.shape="polygon",t.area=!1,t.grid={top:30,right:30,bottom:40,left:36},t.chartOption={},t._data=[{x:"销售",y:10,m:37,s:"预算"},{x:"管理",y:20,m:56,s:"预算"},{x:"信息技术",y:25,m:65,s:"预算"},{x:"客服",y:35,m:67,s:"预算"},{x:"研发",y:27,m:76,s:"预算"},{x:"市场",y:28,m:35,s:"预算"},{x:"销售",y:18,m:76,s:"实际"},{x:"管理",y:28,m:53,s:"实际"},{x:"信息技术",y:32,m:76,s:"实际"},{x:"客服",y:48,m:57,s:"实际"},{x:"市场",y:17,m:56,s:"实际"}],t.dataClick=new i0.EventEmitter,t.series=[],t}return __extends(t,e),t.prototype.ngOnChanges=function(e){var t=this;if(e._data){this.reloadData();var o={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};this.chartOption={legend:{data:this.series,align:this.align,show:"none"!==this.align,textStyle:o},radar:{shape:this.shape,name:{textStyle:o},indicator:[]},color:this.lineColor,grid:this.grid,series:[{label:{show:this.label,textStyle:this.getTextStyle(this.font),formatter:function(e){return e.value}},type:"radar",areaStyle:{opacity:this.area?.3:0},data:[]}]};for(var i=function(e){a._data.filter((function(o){return o.x===t.xData[e]})).forEach((function(o){if(t.series.length>1)if(t.chartOption.radar.indicator[e]&&t.chartOption.radar.indicator[e].max){var i=t.chartOption.radar.indicator[e].max;t.chartOption.radar.indicator[e].max=Math.max(i,o.m)}else t.chartOption.radar.indicator.push({name:t.xData[e],max:o.m});else t.chartOption.radar.indicator.push({name:t.xData[e],max:o.m})}))},a=this,r=0;r<this.xData.length;r++)i(r);var n=function(e){s.chartOption.series[0].data.push({value:[],name:s.series[e]});for(var o=[],i=0;i<s._data.length;i++)s.series[e],s._data[i].s,o.push(s._data[i]);for(i=0;i<s.xData.length;i++){for(var a=0,r=0;r<o.length;r++)o[r].x==s.xData[i]&&a++;0==a&&s._data.push({x:s.xData[i],y:null,m:null,s:s.series[e]})}s._data.sort((function(e,o){return t.xData.indexOf(e.x)-t.xData.indexOf(o.x)})),s._data.filter((function(o){return o.s===t.series[e]})).forEach((function(o){for(var i=0;i<t.xData.length;i++)t.xData[i]===o.x&&t.chartOption.series[0].data[e].value.push(o.y)}))},s=this;for(r=0;r<this.series.length;r++)n(r)}},t.prototype.reloadData=function(){if(this._data[0]){for(var e=0;e<this._data.length;e++)this._data[e].s||(this.align="none"),this._data[e].s=this._data[e].s||" ",this.series[e]=this._data[e].s;this.uniqueData(this.series)}for(e=0;e<this._data.length;e++)this.xData[e]=this._data[e].x;this.uniqueData(this.xData)},t.prototype.ngOnInit=function(){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵi.decorators=[{type:i0.Component,args:[{selector:"sc-radar-chart",template:'<div\n echarts\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵi.prototype,"lineColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵi.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵi.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("标签",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵi.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("形状",{ui:{widget:"select"},enum:[{label:"多边形",value:"polygon"},{label:"圆形",value:"circle"}]}),__metadata("design:type",Object)],exports.ɵi.prototype,"shape",void 0),__decorate([bbjWidgetBase.Property("区域",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵi.prototype,"area",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵi.prototype,"grid",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"},m:{type:"number",title:"最大值"},s:{type:"string",title:"系列"}}}),__metadata("design:type",Object)],exports.ɵi.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x","s"]),__metadata("design:type",Object)],exports.ɵi.prototype,"dataClick",void 0),exports.ɵi=__decorate([bbjWidgetBase.Widget("雷达图",{group:"otherChart",image:"assets/img/screen/radar.png",icon:"icontubiao"})],exports.ɵi);var RadarChartModule=function(e){e.register(exports.ɵi)};RadarChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵi],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],RadarChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$7={seriesColor:["#FFE53F","#FFBF47","#FF7F1D","#FC460D","#EE2100"]},ɵ1$7={seriesColor:["#C0E656","#52D852","#00B335","#008F44","#006A61"]},ɵ2$7={seriesColor:["#00E5E3","#0DBBD8","#2A8BC9","#345EBB","#003560"]},ɵ3$7={seriesColor:["#FF6DB7","#E23FCA","#AD12CE","#7F0B84","#610796"]};exports.ɵj=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.seriesColor=["#00E5E3","#0DBBD8","#2A8BC9","#345EBB","#003560"],t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:""},t.grid={top:60,right:16,bottom:20,left:16},t.align="auto",t.max=100,t.min=0,t.sort="ascending",t.gap=4,t.label=!0,t.chartOption={},t._data=[{x:"一月",y:20},{x:"二月",y:40},{x:"三月",y:60},{x:"四月",y:80},{x:"五月",y:100}],t.dataClick=new i0.EventEmitter,t}return __extends(t,e),t.prototype.ngOnChanges=function(e){if(e._data){var t={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};this.chartOption={legend:{data:this.xData,align:this.align,show:"none"!==this.align,textStyle:t},calculable:!0,color:this.seriesColor,series:[{type:"funnel",top:this.grid.top,right:this.grid.right,left:this.grid.left,bottom:this.grid.bottom,maxSize:this.max+"%",minSize:this.min+"%",sort:this.sort,gap:this.gap,itemStyle:{borderWidth:0},label:{show:this.label,position:"inside"}}],dataset:{dimensions:[],source:[]}},this.reloadData()}},t.prototype.reloadData=function(){for(var e=this._data,t=0;t<this._data.length;t++)this.xData[t]=this._data[t].x;this.uniqueData(this.xData),this.chartOption.dataset.dimensions=["x","y"],this.chartOption.dataset.source=e},t.prototype.ngOnInit=function(){},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵj.decorators=[{type:i0.Component,args:[{selector:"sc-funnel-chart",template:'<div\r\n echarts\r\n [options]="chartOption"\r\n class="demo-chart"\r\n (chartClick)="onChartClick($event)"\r\n [initOpts]="{ renderer: \'svg\' }"\r\n></div>\r\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,reset:["seriesColor"],example:[{background:"assets/img/screen/funnel1.png",data:ɵ0$7},{background:"assets/img/screen/funnel2.png",data:ɵ1$7},{background:"assets/img/screen/funnel3.png",data:ɵ2$7},{background:"assets/img/screen/funnel4.png",data:ɵ3$7}]}}),__metadata("design:type",Object)],exports.ɵj.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵj.prototype,"seriesColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵj.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵj.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}),__metadata("design:type",Object)],exports.ɵj.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("最大值",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵj.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("最小值",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵj.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("排序",{ui:{widget:"select"},enum:[{label:"升序",value:"ascending"},{label:"降序",value:"descending"},{label:"无/按数据先后",value:"none"}]}),__metadata("design:type",Object)],exports.ɵj.prototype,"sort",void 0),__decorate([bbjWidgetBase.Property("间隔",{ui:{widget:"myRange",min:0,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵj.prototype,"gap",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵj.prototype,"label",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵj.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["x"]),__metadata("design:type",Object)],exports.ɵj.prototype,"dataClick",void 0),exports.ɵj=__decorate([bbjWidgetBase.Widget("三角图",{group:"otherChart",image:"assets/img/screen/funnel.png",icon:"icontubiao"})],exports.ɵj);var FunnelChartModule=function(e){e.register(exports.ɵj)};FunnelChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵj],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],FunnelChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbu=function(){function e(e){this.ele=e,this.opacity=1,this.shadow={color:"",X:0,Y:0,Z:0},this.pointerEvents=!1}return e.prototype.ngOnInit=function(){this.style={opacity:this.opacity,boxShadow:this.shadow.color+" "+this.shadow.X+"px "+this.shadow.Y+"px "+this.shadow.Z+"px"},!1===this.pointerEvents&&(this.ele.nativeElement.style.pointerEvents="none")},e}(),exports.ɵbu.decorators=[{type:i0.Component,args:[{selector:"sc-background",template:'<div [ngStyle]="style" [style.backgroundImage]="\'url(\' + image + \')\'" class="background"></div>\n',styles:[".background{width:100%;height:100%;background-size:100% 100%;background-repeat:no-repeat}"]}]}],exports.ɵbu.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("",{min:1,ui:{widget:"myUpload",spanLabel:0,spanControl:24}}),__metadata("design:type",String)],exports.ɵbu.prototype,"image",void 0),__decorate([bbjWidgetBase.Property("透明度",{ui:{widget:"myRange",min:0,max:1,step:.1}}),__metadata("design:type",Object)],exports.ɵbu.prototype,"opacity",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵbu.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("响应鼠标事件",{type:"boolean",default:!0}),__metadata("design:type",Object)],exports.ɵbu.prototype,"pointerEvents",void 0),exports.ɵbu=__decorate([bbjWidgetBase.Widget("图片",{group:"background",icon:"iconbeijing"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbu);var BackgroundModule=function(e){e.register(exports.ɵbu)};BackgroundModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbu],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],BackgroundModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵm=function(){function e(){this.seriesColor={gradient:!0,value:[["#2841E8","#00CAFA"]]},this.pointerColor="auto",this.pointerShadow="rgba(0,138,255,0.45)",this.width=10,this.startAngle=225,this.endAngle=-45,this.label=!1,this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},this.labelOffset=50,this.labelWidth=null,this.labelVal=!0,this.numFont={family:"",color:"#FFFFFF",weight:"normal",size:38,space:0,lineHeight:38},this.percent=!1,this.labelValOffset=-10,this.max=100,this.min=0,this.splitLine=!1,this.axisTick=!0,this.axisLabel=!0,this.axisTickLen=10,this.axisTickWidth=1,this.axisTickColor="auto",this.chartOption={},this._data=[{name:"速度",value:48}]}return e.prototype.ngOnChanges=function(e){if(e._data){var t={show:this.axisLabel,color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},o=[],i=[],a=void 0;a=this.seriesColor&&this.seriesColor.value?this.seriesColor.value:this.seriesColor;for(var r=0;r<a.length;r++)o.push({type:"linear",x:0,y:0,x2:1,y2:0,global:!1,colorStops:[{offset:0,color:a[r][0]},{offset:1,color:a[r][1]}]});var n=1;if(a.length>1){n=1/a.length;for(r=0;r<a.length;r++)i.push([n*(r+1),o[r]])}this.chartOption={series:[{type:"gauge",detail:{show:this.labelVal,formatter:this.percent?(this._data[0].value/this.max*100).toFixed(2)+"%":"{value}",color:this.numFont.color,fontFamily:this.numFont.family,fontWeight:this.numFont.weight,fontSize:this.numFont.size,lineHeight:this.numFont.lineHeight,offsetCenter:[0,this.labelValOffset+"%"]},data:this._data,startAngle:this.startAngle,endAngle:this.endAngle,title:{show:this.label,color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight,offsetCenter:[0,this.labelOffset+"%"],overflow:"breakAll",width:this.labelWidth},axisLine:{lineStyle:{width:this.width,color:n<1?i:[[1,o[0]]]}},axisLabel:t,max:this.max,min:this.min,splitLine:{show:this.splitLine,distance:0,length:10},axisTick:{show:this.axisTick,length:this.axisTickLen,lineStyle:{width:this.axisTickWidth,color:this.axisTickColor}},pointer:{width:6,length:"70%",itemStyle:{color:this.pointerColor,shadowColor:this.pointerShadow,shadowBlur:10,shadowOffsetX:2,shadowOffsetY:2}}}]}}},e.prototype.ngOnInit=function(){},e}(),exports.ɵm.decorators=[{type:i0.Component,args:[{selector:"sc-gauge",template:'<div echarts [options]="chartOption" class="demo-chart" [initOpts]="{ renderer: \'svg\' }"></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵm.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("表盘颜色",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵm.prototype,"seriesColor",void 0),__decorate([bbjWidgetBase.Property("指针颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵm.prototype,"pointerColor",void 0),__decorate([bbjWidgetBase.Property("指针阴影",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵm.prototype,"pointerShadow",void 0),__decorate([bbjWidgetBase.Property("表盘宽度",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵm.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("起始角度",{ui:{widget:"myRange",min:90,max:360,step:1}}),__metadata("design:type",Object)],exports.ɵm.prototype,"startAngle",void 0),__decorate([bbjWidgetBase.Property("结束角度",{ui:{widget:"myRange",min:-90,max:90,step:1}}),__metadata("design:type",Object)],exports.ɵm.prototype,"endAngle",void 0),__decorate([bbjWidgetBase.Property("显示标题",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("标题位移",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"labelOffset",void 0),__decorate([bbjWidgetBase.Property("标题宽度",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"labelWidth",void 0),__decorate([bbjWidgetBase.Property("显示数值",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"labelVal",void 0),__decorate([bbjWidgetBase.Property("数值字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"numFont",void 0),__decorate([bbjWidgetBase.Property("百分号",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"percent",void 0),__decorate([bbjWidgetBase.Property("数值位移",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"labelValOffset",void 0),__decorate([bbjWidgetBase.Property("最大值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("最小值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("分隔线",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"splitLine",void 0),__decorate([bbjWidgetBase.Property("刻度",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"axisTick",void 0),__decorate([bbjWidgetBase.Property("刻度数值",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"axisLabel",void 0),__decorate([bbjWidgetBase.Property("刻度长度",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"axisTickLen",void 0),__decorate([bbjWidgetBase.Property("刻度宽度",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵm.prototype,"axisTickWidth",void 0),__decorate([bbjWidgetBase.Property("刻度颜色",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵm.prototype,"axisTickColor",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"文字"},value:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵm.prototype,"_data",void 0),exports.ɵm=__decorate([bbjWidgetBase.Widget("仪表盘",{group:"otherChart",image:"assets/img/screen/gauge.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵm);var GaugeModule=function(e){e.register(exports.ɵm)};GaugeModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵm],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],GaugeModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$8={pieColor:{gradient:!0,value:[["#FF7C24","#50536E"]]}},ɵ1$8={pieColor:{gradient:!0,value:[["#00FEC3","#50536E"]]}},ɵ2$8={pieColor:{gradient:!0,value:[["#00D2FD","#50536E"]]}},ɵ3$8={pieColor:{gradient:!0,value:[["#BF91FA","#50536E"]]}};exports.ɵk=function(){function e(){this.pieColor={gradient:!0,value:[["#00A2FD","#50536E"],["black","black"]]},this.font={family:"",color:"#AFB2BF",weight:"normal",size:20,space:0,lineHeight:""},this.width=20,this.fillet=!1,this.clockwise=!0,this.percent=!0,this.chartOption={},this._data=[{value:80,max:100}],this.dataClick=new i0.EventEmitter}return e.prototype.ngOnChanges=function(e){if(e._data){var t=this._data[0].value,o=this._data[0].value/this._data[0].max*100,i={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},a=void 0,r={type:"linear",x:0,y:0,global:!1,colorStops:[{offset:0,color:(a=this.pieColor&&this.pieColor.value?this.pieColor.value:this.pieColor)[0][0]},{offset:1,color:a[0][1]}]};this.chartOption={title:{text:this.percent?parseInt(o.toString())+"%":parseInt(t.toString()),textStyle:i,left:"center",top:"center"},angleAxis:{max:this._data[0].max,clockwise:this.clockwise,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},radiusAxis:{type:"category",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1}},polar:{center:["50%","50%"],radius:"100%"},series:[{type:"bar",label:{show:!1},data:[{value:t,itemStyle:{color:r}}],coordinateSystem:"polar",roundCap:this.fillet,barWidth:this.width,barGap:"-100%",z:2},{type:"bar",data:[{value:this._data[0].max,itemStyle:{color:a[a.length-1][0]}}],coordinateSystem:"polar",roundCap:this.fillet,barWidth:this.width,barGap:"-100%",z:1}]}}console.log(this.chartOption)},e.prototype.ngOnInit=function(){},e.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},e}(),exports.ɵk.decorators=[{type:i0.Component,args:[{selector:"sc-percent-pie-chart",template:'<div\n echarts\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵk.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("图表样式",{ui:{widget:"myImageExample",spanLabel:24,spanControl:24,class:"percentPie",reset:["pieColor"],example:[{background:"assets/img/screen/percent_pie1.png",data:ɵ0$8},{background:"assets/img/screen/percent_pie2.png",data:ɵ1$8},{background:"assets/img/screen/percent_pie3.png",data:ɵ2$8},{background:"assets/img/screen/percent_pie4.png",data:ɵ3$8}]}}),__metadata("design:type",Object)],exports.ɵk.prototype,"example",void 0),__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵk.prototype,"pieColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵk.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("环宽",{type:"number"}),__metadata("design:type",Object)],exports.ɵk.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("圆角",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵk.prototype,"fillet",void 0),__decorate([bbjWidgetBase.Property("顺时针",{ui:{widget:"boolean",checkedChildren:"顺",unCheckedChildren:"逆"}}),__metadata("design:type",Object)],exports.ɵk.prototype,"clockwise",void 0),__decorate([bbjWidgetBase.Property("百分值",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵk.prototype,"percent",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"number",title:"值"},max:{type:"number",title:"最大值"}}}),__metadata("design:type",Object)],exports.ɵk.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["value","max"]),__metadata("design:type",Object)],exports.ɵk.prototype,"dataClick",void 0),exports.ɵk=__decorate([bbjWidgetBase.Widget("占比饼图",{group:"pieChart",image:"assets/img/screen/percent_pie.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵk);var PercentPieChartModule=function(e){e.register(exports.ɵk)};PercentPieChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵk],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],PercentPieChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵl=function(e){function t(){var t=e.apply(this,__spread(arguments))||this;return t.color=["#3285FF","#00D2FD"],t.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},t.clockwise=!1,t.align="none",t.grid={top:45,left:50},t.chartOption={},t._data=[{name:"短信",value:1419},{name:"客服",value:1776},{name:"外呼",value:1895},{name:"网厅",value:1576},{name:"手厅",value:2077}],t.dataClick=new i0.EventEmitter,t}return __extends(t,e),t.prototype.ngOnChanges=function(e){if(e._data){var t=this._data.sort((function(e,t){return t.value-e.value})),o=this.array2obj(t,"name"),i={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};this.chartOption={legend:{type:"scroll",orient:"vertical",data:t,x:this.align,show:"none"!==this.align,formatter:function(e){return e+"("+o[e].value+")"},textStyle:i},color:this.color,yAxis:[{type:"category",inverse:!0,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},data:this.getData(t).yAxis}],xAxis:[{show:!1}],series:this.getData(t).series}}},t.prototype.ngOnInit=function(){},t.prototype.getMax=function(e){var t=Math.max.apply(Math,__spread(e.map((function(e){return e.value})))),o=t.toString().length,i=Math.pow(10,o-1);return Number(i)+Number(t)},t.prototype.getData=function(e){for(var t={series:[],yAxis:[]},o=0;o<e.length;o++)t.series.push({name:o,type:"pie",clockWise:this.clockwise,hoverAnimation:!1,radius:[63-8*o+"%",58-8*o+"%"],center:[this.grid.left+"%",this.grid.top+"%"],label:{show:!1},itemStyle:{label:{show:!1},labelLine:{show:!1},borderWidth:5},data:[{value:this.getMax(e)-e[o].value,name:"",itemStyle:{color:"#ffffff00",borderWidth:0},tooltip:{show:!1},hoverAnimation:!1},{value:e[o].value,name:e[o].name}]});return t},t.prototype.array2obj=function(e,t){for(var o={},i=0;i<e.length;i++)o[e[i][t]]=e[i];return o},t.prototype.onChartClick=function(e){this.dataClick.emit({x:e.name,s:e.seriesName})},t}(exports.ɵc),exports.ɵl.decorators=[{type:i0.Component,args:[{selector:"sc-tree-ring-chart",template:'<div\n echarts\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵl.prototype,"color",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵl.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("顺时针",{ui:{widget:"boolean",checkedChildren:"顺",unCheckedChildren:"逆"}}),__metadata("design:type",Object)],exports.ɵl.prototype,"clockwise",void 0),__decorate([bbjWidgetBase.Property("图例",{ui:{widget:"select"},enum:[{label:"无",value:"none"},{label:"自动",value:"auto"},{label:"纵向居中",value:"center"},{label:"纵向居左",value:"left"},{label:"纵向居右",value:"right"}]}),__metadata("design:type",Object)],exports.ɵl.prototype,"align",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid",type:"pie"}}),__metadata("design:type",Object)],exports.ɵl.prototype,"grid",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"类目"},value:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵl.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["value"]),__metadata("design:type",Object)],exports.ɵl.prototype,"dataClick",void 0),exports.ɵl=__decorate([bbjWidgetBase.Widget("年轮图",{group:"pieChart",image:"assets/img/screen/ringTree.png",icon:"icontubiao"})],exports.ɵl);var TreeRingChartModule=function(e){e.register(exports.ɵl)};TreeRingChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵl],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],TreeRingChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵn=function(){function e(){this.font={family:"",color:"#294D99",weight:"normal",size:40,space:0,lineHeight:""},this.cover="#fff",this.bg="#DEDEDE",this.border="#DEDEDE",this.seriesColor=["#1DE2C4","#008FE9"],this.level=2,this.shape="circle",this.waveAnimation=!0,this._data=[{value:.48}],this.chartOption=null}return e.prototype.ngOnChanges=function(e){if(e._data){for(var t=this._data[0].value,o={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},i=[],a=0;a<this.level;a++)i.push({value:t,label:{normal:{textStyle:o,insideColor:this.cover}}});""==this.bg&&(this.bg="#ffffff00"),this.chartOption={series:[{type:"liquidFill",data:i,radius:"80%",shape:this.shape,waveAnimation:this.waveAnimation,backgroundStyle:{borderColor:this.border,color:this.bg},color:this.seriesColor,outline:{show:!1}}]}}},e.prototype.ngOnInit=function(){},e}(),exports.ɵn.decorators=[{type:i0.Component,args:[{selector:"sc-liquid-fill",template:'<div echarts [options]="chartOption" class="demo-chart" [initOpts]="{ renderer: \'svg\' }"></div>\r\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵn.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵn.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("字体覆盖",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵn.prototype,"cover",void 0),__decorate([bbjWidgetBase.Property("背景色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵn.prototype,"bg",void 0),__decorate([bbjWidgetBase.Property("边框色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵn.prototype,"border",void 0),__decorate([bbjWidgetBase.Property("水波色系",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵn.prototype,"seriesColor",void 0),__decorate([bbjWidgetBase.Property("水波层数",{ui:{widget:"myRange",min:1,max:5,step:1}}),__metadata("design:type",Object)],exports.ɵn.prototype,"level",void 0),__decorate([bbjWidgetBase.Property("形状",{ui:{widget:"select"},enum:[{label:"圆形",value:"circle"},{label:"矩形",value:"rect"},{label:"圆角矩形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"菱形",value:"diamond"},{label:"大头针",value:"pin"},{label:"箭头",value:"arrow"}]}),__metadata("design:type",Object)],exports.ɵn.prototype,"shape",void 0),__decorate([bbjWidgetBase.Property("动画",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵn.prototype,"waveAnimation",void 0),__decorate([bbjWidgetBase.Data({properties:{value:{type:"number",title:"值"}}}),__metadata("design:type",Array)],exports.ɵn.prototype,"_data",void 0),exports.ɵn=__decorate([bbjWidgetBase.Widget("水球图",{group:"otherChart",image:"assets/img/screen/liquidFill.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵn);var LiquidFillModule=function(e){e.register(exports.ɵn)};LiquidFillModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵn],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],LiquidFillModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵbw=function(){function e(e,t,o,i){this.ele=e,this.cd=t,this.widgetRef=o,this.renderer=i,this.carousel=!0,this.lineWrap=!0,this.time=1,this.serialNumberDisplay=!0,this.headDisplay=!0,this.headBackground="",this.headFont={family:"",color:"#ffffff",weight:"normal",size:20,space:0,lineHeight:40},this.fontBling=!1,this.bindColor=[],this.blingColor="",this.borderColor="",this.borderBlingColor="",this.borderSize=0,this.clickTarget="row",this.titleStyle=[],this.blingNum=3,this.oddBackground="",this.evenBackground="",this.contentFont={family:"",color:"#ffffff",weight:"normal",size:12,space:0,lineHeight:40},this.contentFontBling=!1,this.contentBlingColor="",this.contentBlingNum=3,this.paddingLeft=0,this.paddingRight=0,this.data=[{"地区":"温州","流量":"123","行为":"xxxx"},{"地区":"杭州","流量":"1235","行为":"xxxx"},{"地区":"上海","流量":"1234","行为":"xxxx"},{"地区":"北京","流量":"12367","行为":"xxxx"},{"地区":"温州1","流量":"123835","行为":"xxxx"},{"地区":"温州2","流量":"123835","行为":"xxxx"},{"地区":"温州3","流量":"123835","行为":"xxxx"},{"地区":"温州4","流量":"123835","行为":"xxxx"}],this.tableStyle={},this.animationDelay=0,this.dateChange=new i0.EventEmitter,this.cellClick=new i0.EventEmitter,this.columnClick=new i0.EventEmitter,this.headStyle={},this.bodyStyle={},this.rowStyle={},this.pageChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){var e,t,o=this.widgetRef.widget;if("cell"!==this.clickTarget&&((null===(e=o.link)||void 0===e?void 0:e.enabled)||(null===(t=o.outputs)||void 0===t?void 0:t.enabled))&&(this.tableStyle.cursor="pointer"),this.headStyle=getFontStyle(this.headFont),this.headStyle.backgroundColor=this.headBackground,this.paddingLeft&&(this.headStyle.paddingLeft=this.rowStyle.paddingLeft=this.paddingLeft+"px"),this.paddingRight&&(this.headStyle.paddingRight=this.rowStyle.paddingRight=this.paddingRight+"px"),Object.assign(this.tableStyle,getFontStyle(this.contentFont)),this.borderSize&&this.borderColor){var i=this.ele.nativeElement,a=this.borderSize+"px solid "+(this.borderColor||"#fff");if(this.rowStyle.borderBottom=this.headStyle.borderBottom=a,this.renderer.setStyle(i,"border",a),this.borderBlingColor){var r="drop-shadow(0 0 8px "+this.borderBlingColor+")";this.renderer.setStyle(i,"filter",r)}}if(this.fontBling){var n=this.blingColor||this.headFont.color||"#ffffff",s=this.blingNum||3;this.headStyle.textShadow=this.getBlingStyle(n,s)}if(this.contentFontBling){n=this.contentBlingColor||this.contentFont.color||"#ffffff",s=this.blingNum||3;this.tableStyle.textShadow=this.getBlingStyle(n,s)}this.lineWrap?this.tableStyle.wordBreak="break-all":this.tableStyle.whiteSpace="nowrap",this.cd.markForCheck()},e.prototype.ngOnChanges=function(e){var t;if((e.data||e.schema)&&this.data){if(null!=this.data.totalElements){this.paged=!0;var o=this.data.number*this.data.size;if(null==this.content&&(this.content=[]),this.content.length>o)this.content.splice(o,this.content.length-o);else if(this.content.length<o)return void this.pageChange.emit(Math.ceil(this.content.length/this.data.size));(t=this.content).push.apply(t,__spread(this.data.content)),this.total=this.data.totalElements}else this.paged=!1,this.content=this.data,this.total=this.data.length;this.paged&&0!==this.data.number||this.updateColumns();var i=this.ele.nativeElement;this.parentHeight=Number(i.parentElement.style.height.replace("px","")),this.headerHeight=this.headFont.lineHeight||40,this.rowHeight=this.contentFont.linHeight||40,this.borderSize&&this.borderColor&&(this.headerHeight+=this.borderSize,this.rowHeight+=this.borderSize),this.headDisplay||(this.headerHeight=0);var a=this.carousel&&this.total*this.rowHeight+this.headerHeight>this.parentHeight;if(!this._carousel&&a&&(this.runtime=0),this._carousel=a,this.placeholder=null,this._carousel){var r=this.total*this.time;this.tableStyle.animation="carousel "+r+"s linear infinite",this.paged&&this.total>this.content.length&&(this.placeholder=this.rowHeight*(this.total-this.content.length)),this.paused||(this.updateRuntime(),this.loadNextPage())}else this.tableStyle.animation=null}this.cd.markForCheck()},e.prototype.ngOnDestroy=function(){this.stopLoadNext()},e.prototype.getBlingStyle=function(e,t){for(var o="",i=0;i<t;i++)o+="0 0 20px "+e+",";return o.substr(0,o.length-1)},e.prototype.updateRuntime=function(){var e=(new Date).getTime();this.lastTime&&(this.runtime+=e-this.lastTime),this.lastTime=e},e.prototype.stopLoadNext=function(){null!=this.nextPageTimeout&&clearTimeout(this.nextPageTimeout)},e.prototype.getNextLoadTime=function(){return(this.headerHeight+this.rowHeight*this.content.length-this.parentHeight)/this.rowHeight*this.time*1e3-this.runtime+this.animationDelay},e.prototype.loadNextPage=function(){var e=this;if(this.stopLoadNext(),this.paged&&this.total>this.content.length){var t=this.getNextLoadTime();t<0&&(t=0),this.nextPageTimeout=setTimeout((function(){e.pageChange.next(e.data.number+1)}),t)}},e.prototype.updateColumns=function(){var e,t,o,i;this.columns=[],this.schema&&this.schema.properties?i=Object.keys(this.schema.properties):this.content&&this.content[0]&&(i=Object.keys(this.content[0]));var a={};if(this.titleStyle&&this.titleStyle.length>0&&this.titleStyle.forEach((function(e){e.key&&(a[e.key]=e)})),i)try{for(var r=__values(i),n=r.next();!n.done;n=r.next()){var s=n.value,d=s;if(this.schema&&this.schema.properties){var l=this.schema.properties[s];l&&l.title&&(d=l.title)}var p={},c={},g={index:s,title:d,headStyle:p,cellStyle:c},h=a[s];if(!(null===(o=this.titleStyle)||void 0===o?void 0:o.length)||null!=h&&h.show){var u=void 0;h&&(u=h.width,h.align&&(c.textAlign=h.align),"cell"===this.clickTarget&&h.clickable&&(g.clickable=!0)),u?p.width=c.width=u+"px":p.flex=c.flex=1,this.columns.push(g)}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.onClick=function(e){"cell"!==this.clickTarget&&this.dateChange.emit(e)},e.prototype.mouseover=function(){this._carousel&&(this.paused=!0,this.tableStyle.animationPlayState="paused",this.updateRuntime(),this.stopLoadNext())},e.prototype.mouseout=function(){this._carousel&&(this.paused=!1,this.lastTime=(new Date).getTime(),this.tableStyle.animationPlayState="running",this.paged&&this.loadNextPage())},e.prototype.onMousewheel=function(e){this._carousel&&(this.animationDelay-=2*e.deltaY,this.animationDelay>this.runtime&&(this.animationDelay=this.runtime),this.tableStyle.animationDelay=this.animationDelay/1e3+"s",this.paged&&this.total>this.content.length&&this.getNextLoadTime()<0&&this.pageChange.emit(this.data.number+1),e.stopPropagation(),e.preventDefault())},e.prototype.onCellClick=function(e,t,o){("cell"!==this.clickTarget||e.clickable)&&(o.stopPropagation(),this.cellClick.emit(t[e.index]),this.columnClick.emit(e.index),this.dateChange.emit(t))},e.prototype.exportWord=function(){var e=this,t="<table>";return this.headDisplay&&(t+="<thead><tr>",this.columns.forEach((function(e){t+="<th>"+e.title+"</th>"})),t+="</tr></thead>"),t+="<tbody>",this.content.forEach((function(o){t+="<tr>",e.columns.forEach((function(e){t+="<td>"+o[e.index]+"</td>"})),t+="</tr>"})),t+="</tbody></table><br/>"},e}(),exports.ɵbw.decorators=[{type:i0.Component,args:[{selector:"sc-shuffling-list",template:'<ng-container *ngIf="data">\n <div *ngIf="headDisplay" class="head" [ngStyle]="headStyle">\n <div *ngIf="serialNumberDisplay" class="cell index-col"></div>\n <div *ngFor="let column of columns" class="cell" [ngStyle]="column.headStyle">{{ column.title }}</div>\n </div>\n <div class="body" [class.carousel]="carousel" (mouseover)="mouseover()" (mouseout)="mouseout()">\n <div class="body-scroll" [ngStyle]="tableStyle" (mousewheel)="onMousewheel($event)">\n <ng-template #list>\n <div\n *ngFor="let row of content; let idx = index"\n class="row"\n [style.backgroundColor]="idx % 2 == 0 ? oddBackground : evenBackground"\n [ngStyle]="rowStyle"\n [style.color]="row | bindColor: bindColor"\n (click)="onClick(row)"\n >\n <div *ngIf="serialNumberDisplay" class="cell index-col">\n {{ idx + 1 }}\n </div>\n <ng-container *ngFor="let column of columns; let index = index">\n <div class="cell" [ngStyle]="column.cellStyle" [title]="row[column.index]">\n <span\n *ngIf="row[column.index] != null"\n [class.clickable]="column.clickable"\n (click)="onCellClick(column, row, $event)"\n [innerHTML]="row[column.index] | nzSafeNull | nzSanitizer: \'html\'"\n ></span>\n </div>\n </ng-container>\n </div>\n <div *ngIf="placeholder" [style.height.px]="placeholder"></div>\n </ng-template>\n <ng-container [ngTemplateOutlet]="list"></ng-container>\n <ng-container *ngIf="_carousel" [ngTemplateOutlet]="list"></ng-container>\n </div>\n </div>\n</ng-container>\n',changeDetection:i0.ChangeDetectionStrategy.OnPush,styles:[":host{flex-direction:column;height:100%;width:100%;overflow:hidden}.head,:host{display:flex}.head{flex:none}.cell{text-align:center;overflow:hidden;text-overflow:ellipsis}.cell>.clickable{cursor:pointer;color:#ff0;text-decoration:underline}.cell>.clickable:hover{color:#4e87ad}.body{flex:1;overflow:auto}.body.carousel{overflow:hidden}.row{display:flex}.index-col{width:30px;text-align:left}::-webkit-scrollbar{width:0}@keyframes carousel{0%{transform:translateY(0)}to{transform:translateY(-50%)}}"]}]}],exports.ɵbw.ctorParameters=function(){return[{type:i0.ElementRef},{type:i0.ChangeDetectorRef},{type:bbjWidgetBase.WidgetRef},{type:i0.Renderer2}]},__decorate([bbjWidgetBase.Property("轮播",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"carousel",void 0),__decorate([bbjWidgetBase.Property("自动换行",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"lineWrap",void 0),__decorate([bbjWidgetBase.Property("轮播间隔",{ui:{widget:"myRange",min:1,max:20,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"time",void 0),__decorate([bbjWidgetBase.Property("序列号显示",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"serialNumberDisplay",void 0),__decorate([bbjWidgetBase.Property("表头显示",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"headDisplay",void 0),__decorate([bbjWidgetBase.Property("表头背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"headBackground",void 0),__decorate([bbjWidgetBase.Property("表头字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"headFont",void 0),__decorate([bbjWidgetBase.Property("字体发光",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"fontBling",void 0),__decorate([bbjWidgetBase.Property("字段颜色",{type:"array",maxItems:99,items:{type:"object",properties:{key:{type:"string",title:"字段"},value:{type:"string",title:"值"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"bindColor",void 0),__decorate([bbjWidgetBase.Property("发光颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"blingColor",void 0),__decorate([bbjWidgetBase.Property("边框颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("边框发光",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"borderBlingColor",void 0),__decorate([bbjWidgetBase.Property("边框粗细",{ui:{widget:"myRange",min:0,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"borderSize",void 0),__decorate([bbjWidgetBase.Property("点击触发方式",{enum:[{label:"行",value:"row"},{label:"单元格",value:"cell"}]}),__metadata("design:type",Object)],exports.ɵbw.prototype,"clickTarget",void 0),__decorate([bbjWidgetBase.Property("表头设置",{type:"array",maxItems:99,items:{type:"object",properties:{key:{type:"string",title:"key"},width:{type:"number",title:"宽度"},align:{type:"string",ui:{widget:"select"},enum:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]},show:{type:"boolean",title:"是否显示",default:!0},clickable:{type:"boolean",title:"是否可点击",ui:{visibleIf:{"/clickTarget":["cell"]}}}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"titleStyle",void 0),__decorate([bbjWidgetBase.Property("发光程度",{ui:{widget:"myRange",min:1,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"blingNum",void 0),__decorate([bbjWidgetBase.Property("奇行背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"oddBackground",void 0),__decorate([bbjWidgetBase.Property("偶行背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"evenBackground",void 0),__decorate([bbjWidgetBase.Property("内容字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"contentFont",void 0),__decorate([bbjWidgetBase.Property("字体发光",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵbw.prototype,"contentFontBling",void 0),__decorate([bbjWidgetBase.Property("发光颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"contentBlingColor",void 0),__decorate([bbjWidgetBase.Property("发光程度",{ui:{widget:"myRange",min:1,max:10,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"contentBlingNum",void 0),__decorate([bbjWidgetBase.Property("左内边距",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"paddingLeft",void 0),__decorate([bbjWidgetBase.Property("右内边距",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵbw.prototype,"paddingRight",void 0),__decorate([bbjWidgetBase.Data({}),__metadata("design:type",Object)],exports.ɵbw.prototype,"data",void 0),__decorate([bbjWidgetBase.DataSchema("data"),__metadata("design:type",Object)],exports.ɵbw.prototype,"schema",void 0),__decorate([bbjWidgetBase.DataOutput("行数据"),__metadata("design:type",Object)],exports.ɵbw.prototype,"dateChange",void 0),__decorate([bbjWidgetBase.DataOutput("单元格"),__metadata("design:type",Object)],exports.ɵbw.prototype,"cellClick",void 0),__decorate([bbjWidgetBase.DataOutput("列"),__metadata("design:type",Object)],exports.ɵbw.prototype,"columnClick",void 0),__decorate([bbjWidgetBase.DataOutput("翻页"),__metadata("design:type",Object)],exports.ɵbw.prototype,"pageChange",void 0),exports.ɵbw=__decorate([bbjWidgetBase.Widget("滚动表格",{group:"table",icon:"icontubiao",image:"/assets/img/screen/shuffling.png"}),__metadata("design:paramtypes",[i0.ElementRef,i0.ChangeDetectorRef,bbjWidgetBase.WidgetRef,i0.Renderer2])],exports.ɵbw);var ColorPipe=function(){function e(){}return e.prototype.transform=function(e){for(var t,o,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(e){var r=i[0];if(null==r?void 0:r.length)try{for(var n=__values(r),s=n.next();!s.done;s=n.next()){var d=s.value,l=d.key,p=d.value,c=d.color;if(l&&c&&e[l]==p)return c}}catch(e){t={error:e}}finally{try{s&&!s.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}}return null},e}();ColorPipe.decorators=[{type:i0.Pipe,args:[{name:"bindColor"}]}];var ShufflingListModule=function(e){e.register(exports.ɵbw)};ShufflingListModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbw,ColorPipe],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,pipes.NzPipesModule,tooltip.NzToolTipModule]}]}],ShufflingListModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ParentContainerComponent=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.childInit=function(e){},e.prototype.deleteChild=function(e){},e}(),BasicPlanimetricMapComponent_1;ParentContainerComponent.decorators=[{type:i0.Component,args:[{selector:"sc-parent-container",template:"",styles:[""]}]}],ParentContainerComponent.ctorParameters=function(){return[]},exports.ɵby=BasicPlanimetricMapComponent_1=function(e){function t(t){var o=e.call(this)||this;return o.baiduMapService=t,o.zoom=5,o.centerLng=104,o.centerLat=36,o.hasMap=!1,o._children=[],o}return __extends(t,e),t.prototype.ngOnChanges=function(e){},t.prototype.ngOnInit=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.baiduMapService.loadMap()];case 1:return e.sent(),[4,import("echarts/extension/bmap/bmap.js")];case 2:return e.sent(),this.hasMap=!0,this.chartInit(),[2]}}))}))},t.prototype.chartInit=function(){var e=[];this._children.forEach((function(t){e=Array.isArray(t.item)?__spread(e,t.item):__spread(e,[t.item])})),this.chartOption={title:{text:"基础平面地图"},tooltip:{trigger:"item"},bmap:{label:{emphasis:{show:!1}},itemStyle:{normal:{areaColor:"#323c48",borderColor:"#404a59",opacity:1},emphasis:{areaColor:"#2a333d"}},center:[this.centerLng,this.centerLat],zoom:this.zoom,roam:!0,mapStyle:{styleJson:[{featureType:"water",elementType:"all",stylers:{color:"#d1d1d1"}},{featureType:"land",elementType:"all",stylers:{color:"#f3f3f3"}},{featureType:"railway",elementType:"all",stylers:{visibility:"off"}},{featureType:"highway",elementType:"all",stylers:{color:"#fdfdfd"}},{featureType:"highway",elementType:"labels",stylers:{visibility:"off"}},{featureType:"arterial",elementType:"geometry",stylers:{color:"#fefefe"}},{featureType:"arterial",elementType:"geometry.fill",stylers:{color:"#fefefe"}},{featureType:"poi",elementType:"all",stylers:{visibility:"off"}},{featureType:"green",elementType:"all",stylers:{visibility:"off"}},{featureType:"subway",elementType:"all",stylers:{visibility:"off"}},{featureType:"manmade",elementType:"all",stylers:{color:"#d1d1d1"}},{featureType:"local",elementType:"all",stylers:{color:"#d1d1d1"}},{featureType:"arterial",elementType:"labels",stylers:{visibility:"off"}},{featureType:"boundary",elementType:"all",stylers:{color:"#fefefe"}},{featureType:"building",elementType:"all",stylers:{color:"#d1d1d1"}},{featureType:"label",elementType:"labels.text.fill",stylers:{color:"#999999"}}]}},series:e}},t.prototype.childInit=function(e){if(e.id){var t=this._children.findIndex((function(t){return t.id===e.id}));t>-1?this._children[t]=e:this._children.push(e),this.chartInit()}},t.prototype.deleteChild=function(e){if(e){var t=this._children.findIndex((function(t){return t.id===e}));t>-1&&(this._children.splice(t,1),this.chartInit())}},t}(ParentContainerComponent),exports.ɵby.decorators=[{type:i0.Component,args:[{selector:"sc-basic-planimetric-map",template:'<ng-template *ngFor="let child of children" widget-host [widget]="child"></ng-template>\r\n<div echarts *ngIf="hasMap" [options]="chartOption" class="demo-chart"></div>\r\n',providers:[{provide:ParentContainerComponent,useExisting:i0.forwardRef((function(){return BasicPlanimetricMapComponent_1}))}],styles:[".demo-chart,:host{height:100%}:host{display:block;width:100%}"]}]}],exports.ɵby.ctorParameters=function(){return[{type:i1.BaiduMapService}]},__decorate([bbjWidgetBase.Property("地图缩放",{ui:{widget:"myRange",min:1,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵby.prototype,"zoom",void 0),__decorate([bbjWidgetBase.Property("中心经度",{ui:{widget:"myRange",min:-180,max:180,step:1}}),__metadata("design:type",Object)],exports.ɵby.prototype,"centerLng",void 0),__decorate([bbjWidgetBase.Property("中心纬度",{ui:{widget:"myRange",min:-90,max:90,step:1}}),__metadata("design:type",Object)],exports.ɵby.prototype,"centerLat",void 0),exports.ɵby=BasicPlanimetricMapComponent_1=__decorate([bbjWidgetBase.Widget("基础平面地图",{group:"component",image:"assets/img/screen/basicMap.png",icon:"iconmokuai",children:[{title:"呼吸气泡层",type:"sc-breathing-bubble-layer",option:{},hidden:!0,hideChild:!0}],childTypes:["sc-breathing-bubble-layer"],description:"hasChildItem"}),__metadata("design:paramtypes",[i1.BaiduMapService])],exports.ɵby),exports.ɵcb=function(){function BreathingBubbleLayerComponent(e){this.parent=e,this.bubbleType=[{key:1,color:"#ddb926",size:"function (val) {return val[2]*0.1;}"}],this.data=[{name:"海门",value:9,series:1},{name:"鄂尔多斯",value:12,series:1},{name:"招远",value:12,series:1},{name:"舟山",value:12,series:1},{name:"齐齐哈尔",value:14,series:1},{name:"盐城",value:15,series:1},{name:"赤峰",value:16,series:1},{name:"青岛",value:18,series:1},{name:"乳山",value:18,series:1},{name:"金昌",value:19,series:1},{name:"泉州",value:21,series:1},{name:"莱西",value:21,series:1},{name:"日照",value:21,series:1},{name:"胶南",value:22,series:1},{name:"南通",value:23,series:1},{name:"拉萨",value:24,series:2},{name:"云浮",value:24,series:2},{name:"梅州",value:25,series:2},{name:"文登",value:25,series:2},{name:"上海",value:25,series:2},{name:"攀枝花",value:25,series:2},{name:"威海",value:25,series:2},{name:"承德",value:25,series:2},{name:"厦门",value:26,series:2},{name:"汕尾",value:26,series:2},{name:"潮州",value:26,series:2},{name:"丹东",value:27,series:2},{name:"太仓",value:27,series:2},{name:"曲靖",value:27,series:2},{name:"烟台",value:28,series:2},{name:"福州",value:29,series:2},{name:"瓦房店",value:30,series:2},{name:"即墨",value:30,series:2},{name:"抚顺",value:31,series:2},{name:"玉溪",value:31,series:2},{name:"张家口",value:31,series:2},{name:"阳泉",value:31,series:2},{name:"莱州",value:32,series:2},{name:"湖州",value:32,series:2},{name:"汕头",value:32,series:2},{name:"昆山",value:33,series:2},{name:"宁波",value:33,series:2},{name:"湛江",value:33,series:2},{name:"揭阳",value:34,series:1},{name:"荣成",value:34,series:1},{name:"连云港",value:35,series:1},{name:"葫芦岛",value:35,series:1},{name:"常熟",value:36,series:1},{name:"东莞",value:36,series:1},{name:"河源",value:36,series:1},{name:"淮安",value:36,series:1},{name:"泰州",value:36,series:1},{name:"南宁",value:37,series:1},{name:"营口",value:37,series:1},{name:"惠州",value:37,series:1},{name:"江阴",value:37,series:1},{name:"蓬莱",value:37,series:1},{name:"韶关",value:38,series:1},{name:"嘉峪关",value:38,series:1},{name:"广州",value:38,series:1},{name:"延安",value:38,series:1},{name:"太原",value:39,series:1},{name:"清远",value:39,series:1},{name:"中山",value:39,series:1},{name:"昆明",value:39,series:1},{name:"寿光",value:40,series:1},{name:"盘锦",value:40,series:1},{name:"长治",value:41,series:1},{name:"深圳",value:41,series:1},{name:"珠海",value:42,series:1},{name:"宿迁",value:43,series:1},{name:"咸阳",value:43,series:1},{name:"铜川",value:44,series:1},{name:"平度",value:44,series:1},{name:"佛山",value:44,series:1},{name:"海口",value:44,series:1},{name:"江门",value:45,series:1},{name:"章丘",value:45,series:1},{name:"肇庆",value:46,series:1},{name:"大连",value:47,series:1},{name:"临汾",value:47,series:1},{name:"吴江",value:47,series:1},{name:"石嘴山",value:49,series:1},{name:"沈阳",value:50,series:1},{name:"苏州",value:50,series:1},{name:"茂名",value:50,series:1},{name:"嘉兴",value:51,series:1},{name:"长春",value:51,series:1},{name:"胶州",value:52,series:1},{name:"银川",value:52,series:1},{name:"张家港",value:52,series:1},{name:"三门峡",value:53,series:1},{name:"锦州",value:54,series:1},{name:"南昌",value:54,series:1},{name:"柳州",value:54,series:1},{name:"三亚",value:54,series:1},{name:"自贡",value:56,series:1},{name:"吉林",value:56,series:1},{name:"阳江",value:57,series:1},{name:"泸州",value:57,series:1},{name:"西宁",value:57,series:1},{name:"宜宾",value:58,series:1},{name:"呼和浩特",value:58,series:1},{name:"成都",value:58,series:1},{name:"大同",value:58,series:1},{name:"镇江",value:59,series:1},{name:"桂林",value:59,series:1},{name:"张家界",value:59,series:1},{name:"宜兴",value:59,series:1},{name:"北海",value:60,series:1},{name:"西安",value:61,series:1},{name:"金坛",value:62,series:1},{name:"东营",value:62,series:1},{name:"牡丹江",value:63,series:1},{name:"遵义",value:63,series:1},{name:"绍兴",value:63,series:1},{name:"扬州",value:64,series:1},{name:"常州",value:64,series:1},{name:"潍坊",value:65,series:1},{name:"重庆",value:66,series:1},{name:"台州",value:67,series:1},{name:"南京",value:67,series:1},{name:"滨州",value:70,series:1},{name:"贵阳",value:71,series:1},{name:"无锡",value:71,series:1},{name:"本溪",value:71,series:1},{name:"克拉玛依",value:72,series:1},{name:"渭南",value:72,series:1},{name:"马鞍山",value:72,series:1},{name:"宝鸡",value:72,series:1},{name:"焦作",value:75,series:1},{name:"句容",value:75,series:1},{name:"北京",value:79,series:1},{name:"徐州",value:79,series:1},{name:"衡水",value:80,series:1},{name:"包头",value:80,series:1},{name:"绵阳",value:80,series:1},{name:"乌鲁木齐",value:84,series:1},{name:"枣庄",value:84,series:1},{name:"杭州",value:84,series:1},{name:"淄博",value:85,series:1},{name:"鞍山",value:86,series:1},{name:"溧阳",value:86,series:1},{name:"库尔勒",value:86,series:1},{name:"安阳",value:90,series:1},{name:"开封",value:90,series:1},{name:"济南",value:92,series:1},{name:"德阳",value:93,series:1},{name:"温州",value:95,series:1},{name:"九江",value:96,series:1},{name:"邯郸",value:98,series:1},{name:"临安",value:99,series:1},{name:"兰州",value:99,series:1},{name:"沧州",value:100,series:1},{name:"临沂",value:103,series:1},{name:"南充",value:104,series:1},{name:"天津",value:105,series:1},{name:"富阳",value:106,series:1},{name:"泰安",value:112,series:1},{name:"诸暨",value:112,series:1},{name:"郑州",value:113,series:1},{name:"哈尔滨",value:114,series:1},{name:"聊城",value:116,series:1},{name:"芜湖",value:117,series:1},{name:"唐山",value:119,series:1},{name:"平顶山",value:119,series:1},{name:"邢台",value:11,series:19},{name:"德州",value:120,series:1},{name:"济宁",value:120,series:1},{name:"荆州",value:127,series:1},{name:"宜昌",value:130,series:1},{name:"义乌",value:132,series:1},{name:"丽水",value:133,series:1},{name:"洛阳",value:134,series:1},{name:"秦皇岛",value:136,series:1},{name:"株洲",value:143,series:1},{name:"石家庄",value:147,series:1},{name:"莱芜",value:148,series:1},{name:"常德",value:152,series:1},{name:"保定",value:153,series:1},{name:"湘潭",value:154,series:1},{name:"金华",value:157,series:1},{name:"岳阳",value:169,series:1},{name:"长沙",value:175,series:1},{name:"衢州",value:177,series:1},{name:"廊坊",value:193,series:1},{name:"菏泽",value:194,series:1},{name:"合肥",value:229,series:1},{name:"武汉",value:273,series:1},{name:"大庆",value:279,series:1}],this.geoCoordMap={"海门":[121.15,31.89],"鄂尔多斯":[109.781327,39.608266],"招远":[120.38,37.35],"舟山":[122.207216,29.985295],"齐齐哈尔":[123.97,47.33],"盐城":[120.13,33.38],"赤峰":[118.87,42.28],"青岛":[120.33,36.07],"乳山":[121.52,36.89],"金昌":[102.188043,38.520089],"泉州":[118.58,24.93],"莱西":[120.53,36.86],"日照":[119.46,35.42],"胶南":[119.97,35.88],"南通":[121.05,32.08],"拉萨":[91.11,29.97],"云浮":[112.02,22.93],"梅州":[116.1,24.55],"文登":[122.05,37.2],"上海":[121.48,31.22],"攀枝花":[101.718637,26.582347],"威海":[122.1,37.5],"承德":[117.93,40.97],"厦门":[118.1,24.46],"汕尾":[115.375279,22.786211],"潮州":[116.63,23.68],"丹东":[124.37,40.13],"太仓":[121.1,31.45],"曲靖":[103.79,25.51],"烟台":[121.39,37.52],"福州":[119.3,26.08],"瓦房店":[121.979603,39.627114],"即墨":[120.45,36.38],"抚顺":[123.97,41.97],"玉溪":[102.52,24.35],"张家口":[114.87,40.82],"阳泉":[113.57,37.85],"莱州":[119.942327,37.177017],"湖州":[120.1,30.86],"汕头":[116.69,23.39],"昆山":[120.95,31.39],"宁波":[121.56,29.86],"湛江":[110.359377,21.270708],"揭阳":[116.35,23.55],"荣成":[122.41,37.16],"连云港":[119.16,34.59],"葫芦岛":[120.836932,40.711052],"常熟":[120.74,31.64],"东莞":[113.75,23.04],"河源":[114.68,23.73],"淮安":[119.15,33.5],"泰州":[119.9,32.49],"南宁":[108.33,22.84],"营口":[122.18,40.65],"惠州":[114.4,23.09],"江阴":[120.26,31.91],"蓬莱":[120.75,37.8],"韶关":[113.62,24.84],"嘉峪关":[98.289152,39.77313],"广州":[113.23,23.16],"延安":[109.47,36.6],"太原":[112.53,37.87],"清远":[113.01,23.7],"中山":[113.38,22.52],"昆明":[102.73,25.04],"寿光":[118.73,36.86],"盘锦":[122.070714,41.119997],"长治":[113.08,36.18],"深圳":[114.07,22.62],"珠海":[113.52,22.3],"宿迁":[118.3,33.96],"咸阳":[108.72,34.36],"铜川":[109.11,35.09],"平度":[119.97,36.77],"佛山":[113.11,23.05],"海口":[110.35,20.02],"江门":[113.06,22.61],"章丘":[117.53,36.72],"肇庆":[112.44,23.05],"大连":[121.62,38.92],"临汾":[111.5,36.08],"吴江":[120.63,31.16],"石嘴山":[106.39,39.04],"沈阳":[123.38,41.8],"苏州":[120.62,31.32],"茂名":[110.88,21.68],"嘉兴":[120.76,30.77],"长春":[125.35,43.88],"胶州":[120.03336,36.264622],"银川":[106.27,38.47],"张家港":[120.555821,31.875428],"三门峡":[111.19,34.76],"锦州":[121.15,41.13],"南昌":[115.89,28.68],"柳州":[109.4,24.33],"三亚":[109.511909,18.252847],"自贡":[104.778442,29.33903],"吉林":[126.57,43.87],"阳江":[111.95,21.85],"泸州":[105.39,28.91],"西宁":[101.74,36.56],"宜宾":[104.56,29.77],"呼和浩特":[111.65,40.82],"成都":[104.06,30.67],"大同":[113.3,40.12],"镇江":[119.44,32.2],"桂林":[110.28,25.29],"张家界":[110.479191,29.117096],"宜兴":[119.82,31.36],"北海":[109.12,21.49],"西安":[108.95,34.27],"金坛":[119.56,31.74],"东营":[118.49,37.46],"牡丹江":[129.58,44.6],"遵义":[106.9,27.7],"绍兴":[120.58,30.01],"扬州":[119.42,32.39],"常州":[119.95,31.79],"潍坊":[119.1,36.62],"重庆":[106.54,29.59],"台州":[121.420757,28.656386],"南京":[118.78,32.04],"滨州":[118.03,37.36],"贵阳":[106.71,26.57],"无锡":[120.29,31.59],"本溪":[123.73,41.3],"克拉玛依":[84.77,45.59],"渭南":[109.5,34.52],"马鞍山":[118.48,31.56],"宝鸡":[107.15,34.38],"焦作":[113.21,35.24],"句容":[119.16,31.95],"北京":[116.46,39.92],"徐州":[117.2,34.26],"衡水":[115.72,37.72],"包头":[110,40.58],"绵阳":[104.73,31.48],"乌鲁木齐":[87.68,43.77],"枣庄":[117.57,34.86],"杭州":[120.19,30.26],"淄博":[118.05,36.78],"鞍山":[122.85,41.12],"溧阳":[119.48,31.43],"库尔勒":[86.06,41.68],"安阳":[114.35,36.1],"开封":[114.35,34.79],"济南":[117,36.65],"德阳":[104.37,31.13],"温州":[120.65,28.01],"九江":[115.97,29.71],"邯郸":[114.47,36.6],"临安":[119.72,30.23],"兰州":[103.73,36.03],"沧州":[116.83,38.33],"临沂":[118.35,35.05],"南充":[106.110698,30.837793],"天津":[117.2,39.13],"富阳":[119.95,30.07],"泰安":[117.13,36.18],"诸暨":[120.23,29.71],"郑州":[113.65,34.76],"哈尔滨":[126.63,45.75],"聊城":[115.97,36.45],"芜湖":[118.38,31.33],"唐山":[118.02,39.63],"平顶山":[113.29,33.75],"邢台":[114.48,37.05],"德州":[116.29,37.45],"济宁":[116.59,35.38],"荆州":[112.239741,30.335165],"宜昌":[111.3,30.7],"义乌":[120.06,29.32],"丽水":[119.92,28.45],"洛阳":[112.44,34.7],"秦皇岛":[119.57,39.95],"株洲":[113.16,27.83],"石家庄":[114.48,38.03],"莱芜":[117.67,36.19],"常德":[111.69,29.05],"保定":[115.48,38.85],"湘潭":[112.91,27.87],"金华":[119.64,29.12],"岳阳":[113.09,29.37],"长沙":[113,28.21],"衢州":[118.88,28.97],"廊坊":[116.7,39.53],"菏泽":[115.480656,35.23375],"合肥":[117.27,31.86],"武汉":[114.31,30.52],"大庆":[125.03,46.58]}}return BreathingBubbleLayerComponent.prototype.ngOnChanges=function(e){var t=this,o=[];this.bubbleType.forEach((function(e){o.push({coordinateSystem:"bmap",data:t.convertData(t.data,e.key),itemStyle:{normal:{color:e.color}},label:{formatter:"{b}",position:"right",show:!1},symbolSize:t.getItem(e.size),name:e.key,type:"scatter"})})),this.parent.childInit({id:this.id,item:o})},BreathingBubbleLayerComponent.prototype.ngOnInit=function(){},BreathingBubbleLayerComponent.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},BreathingBubbleLayerComponent.prototype.getItem=function(v){if(v&&v.indexOf&&v.indexOf("function")>-1)return eval("("+v+")")},BreathingBubbleLayerComponent.prototype.convertData=function(e,t){for(var o=[],i=0;i<e.length;i++){var a=this.geoCoordMap[e[i].name];a&&e[i].series==t&&o.push({name:e[i].name,extraData:{lat:a[1],lng:a[0],s:e[i].series,value:e[i].value},value:a.concat(e[i].value)})}return o},BreathingBubbleLayerComponent}(),exports.ɵcb.decorators=[{type:i0.Component,args:[{selector:"sc-breathing-bubble-layer",template:"\n",styles:[""]}]}],exports.ɵcb.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("气泡类型",{type:"array",items:{type:"object",properties:{key:{type:"string"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}},size:{type:"string",title:"大小",ui:{widget:"textarea",autosize:{minRows:4}}}},ui:{spanLabelFixed:50}},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵcb.prototype,"bubbleType",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"地名"},value:{type:"number",title:"值"},series:{type:"string",title:"系列"}}}),__metadata("design:type",Array)],exports.ɵcb.prototype,"data",void 0),exports.ɵcb=__decorate([bbjWidgetBase.Widget("呼吸气泡层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵcb);var BreathingBubbleLayerModule=function(e){e.register(exports.ɵcb)};BreathingBubbleLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcb],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],BreathingBubbleLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var BasicPlanimetricMapModule=function(e){e.register(exports.ɵby)},PlanimetricMap2dComponent_1;BasicPlanimetricMapModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵby],imports:[common.CommonModule,ngxEcharts.NgxEchartsModule,bbjWidgetBase.WidgetBaseModule,BreathingBubbleLayerModule]}]}],BasicPlanimetricMapModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcc=PlanimetricMap2dComponent_1=function(e){function t(t){var o=e.call(this)||this;return o.http=t,o.mapStyle="china",o.zoom=1,o.areaColor="#323c48",o.borderColor="#404a59",o._areaColor="#2a333d",o.areaNamefont={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},o.showAreaName=!0,o.triggerType="mousemove",o.selectedMode="",o.zoomSwitch="false",o._borderColor="",o.shadowColor="#2a333d",o.shadowWidth=20,o.mapColorStart="#2a333d",o.mapColorEnd="#2a333d",o.selectColorStart="#2a333d",o.selectColorEnd="#2a333d",o.hasMap=!1,o.data=[],o.areaClick=new i0.EventEmitter,o.nameMap={Somalia:"索马里",Liechtenstein:"列支敦士登",Morocco:"摩洛哥","W. Sahara":"西撒哈拉",Serbia:"塞尔维亚",Afghanistan:"阿富汗",Angola:"安哥拉",Albania:"阿尔巴尼亚",Aland:"奥兰群岛",Andorra:"安道尔","United Arab Emirates":"阿拉伯联合酋长国",Argentina:"阿根廷",Armenia:"亚美尼亚","American Samoa":"美属萨摩亚","Fr. S. Antarctic Lands":"法属南部领地","Antigua and Barb.":"安提瓜和巴布达",Australia:"澳大利亚",Austria:"奥地利",Azerbaijan:"阿塞拜疆",Burundi:"布隆迪",Belgium:"比利时",Benin:"贝宁","Burkina Faso":"布基纳法索",Bangladesh:"孟加拉国",Bulgaria:"保加利亚",Bahrain:"巴林",Bahamas:"巴哈马","Bosnia and Herz.":"波斯尼亚和黑塞哥维那",Belarus:"白俄罗斯",Belize:"伯利兹",Bermuda:"百慕大",Bolivia:"玻利维亚",Brazil:"巴西",Barbados:"巴巴多斯",Brunei:"文莱",Bhutan:"不丹",Botswana:"博茨瓦纳","Central African Rep.":"中非共和国",Canada:"加拿大",Switzerland:"瑞士",Chile:"智利",China:"中国","Côte d'Ivoire":"科特迪瓦",Cameroon:"喀麦隆","Dem. Rep. Congo":"刚果(金)",Congo:"刚果(布)",Colombia:"哥伦比亚",Comoros:"科摩罗","Cape Verde":"佛得角","Costa Rica":"哥斯达黎加",Cuba:"古巴","Curaçao":"库拉索","Cayman Is.":"开曼群岛","N. Cyprus":"北塞浦路斯",Cyprus:"塞浦路斯","Czech Rep.":"捷克",Germany:"德国",Djibouti:"吉布提",Dominica:"多米尼克",Denmark:"丹麦","Dominican Rep.":"多米尼加",Algeria:"阿尔及利亚",Ecuador:"厄瓜多尔",Egypt:"埃及",Eritrea:"厄立特里亚",Spain:"西班牙",Estonia:"爱沙尼亚",Ethiopia:"埃塞俄比亚",Finland:"芬兰",Fiji:"斐济","Falkland Is.":"福克兰群岛",France:"法国","Faeroe Is.":"法罗群岛",Micronesia:"密克罗尼西亚",Gabon:"加蓬","United Kingdom":"英国",Georgia:"格鲁吉亚",Ghana:"加纳",Guinea:"几内亚",Gambia:"冈比亚","Guinea-Bissau":"几内亚比绍","Eq. Guinea":"赤道几内亚",Greece:"希腊",Grenada:"格林纳达",Greenland:"格陵兰",Guatemala:"危地马拉",Guam:"关岛",Guyana:"圭亚那","Heard I. and McDonald Is.":"赫德岛和麦克唐纳群岛",Honduras:"洪都拉斯",Croatia:"克罗地亚",Haiti:"海地",Hungary:"匈牙利",Indonesia:"印度尼西亚","Isle of Man":"马恩岛",India:"印度","Br. Indian Ocean Ter.":"英属印度洋领地",Ireland:"爱尔兰",Iran:"伊朗",Iraq:"伊拉克",Iceland:"冰岛",Israel:"以色列",Italy:"意大利",Jamaica:"牙买加",Jersey:"泽西岛",Jordan:"约旦",Japan:"日本","Siachen Glacier":"锡亚琴冰川",Kazakhstan:"哈萨克斯坦",Kenya:"肯尼亚",Kyrgyzstan:"吉尔吉斯斯坦",Cambodia:"柬埔寨",Kiribati:"基里巴斯",Korea:"韩国",Kuwait:"科威特","Lao PDR":"老挝",Lebanon:"黎巴嫩",Liberia:"利比里亚",Libya:"利比亚","Saint Lucia":"圣卢西亚","Sri Lanka":"斯里兰卡",Lesotho:"莱索托",Lithuania:"立陶宛",Luxembourg:"卢森堡",Latvia:"拉脱维亚",Moldova:"摩尔多瓦",Madagascar:"马达加斯加",Mexico:"墨西哥",Macedonia:"北马其顿",Mali:"马里",Malta:"马耳他",Myanmar:"缅甸",Montenegro:"黑山",Mongolia:"蒙古","N. Mariana Is.":"北马里亚纳群岛",Mozambique:"莫桑比克",Mauritania:"毛里塔尼亚",Montserrat:"蒙特塞拉特",Mauritius:"毛里求斯",Malawi:"马拉维",Malaysia:"马来西亚",Namibia:"纳米比亚","New Caledonia":"新喀里多尼亚",Niger:"尼日尔",Nigeria:"尼日利亚",Nicaragua:"尼加拉瓜",Niue:"纽埃",Netherlands:"荷兰",Norway:"挪威",Nepal:"尼泊尔","New Zealand":"新西兰",Oman:"阿曼",Pakistan:"巴基斯坦",Panama:"巴拿马",Peru:"秘鲁",Philippines:"菲律宾",Palau:"帕劳","Papua New Guinea":"巴布亚新几内亚",Poland:"波兰","Puerto Rico":"波多黎各","Dem. Rep. Korea":"朝鲜",Portugal:"葡萄牙",Paraguay:"巴拉圭",Palestine:"巴勒斯坦","Fr. Polynesia":"法属波利尼西亚",Qatar:"卡塔尔",Romania:"罗马尼亚",Russia:"俄罗斯",Rwanda:"卢旺达","Saudi Arabia":"沙特阿拉伯",Sudan:"苏丹","S. Sudan":"南苏丹",Senegal:"塞内加尔",Singapore:"新加坡","S. Geo. and S. Sandw. Is.":"南乔治亚岛和南桑威奇群岛","Saint Helena":"圣赫勒拿","Solomon Is.":"所罗门群岛","Sierra Leone":"塞拉利昂","El Salvador":"萨尔瓦多","St. Pierre and Miquelon":"圣皮埃尔和密克隆","São Tomé and Principe":"圣多美和普林西比",Suriname:"苏里南",Slovakia:"斯洛伐克",Slovenia:"斯洛文尼亚",Sweden:"瑞典",Swaziland:"斯威士兰",Seychelles:"塞舌尔",Syria:"叙利亚","Turks and Caicos Is.":"特克斯和凯科斯群岛",Chad:"乍得",Togo:"多哥",Thailand:"泰国",Tajikistan:"塔吉克斯坦",Turkmenistan:"土库曼斯坦","Timor-Leste":"东帝汶",Tonga:"汤加","Trinidad and Tobago":"特立尼达和多巴哥",Tunisia:"突尼斯",Turkey:"土耳其",Tanzania:"坦桑尼亚",Uganda:"乌干达",Ukraine:"乌克兰",Uruguay:"乌拉圭","United States":"美国",Uzbekistan:"乌兹别克斯坦","St. Vin. and Gren.":"圣文森特和格林纳丁斯",Venezuela:"委内瑞拉","U.S. Virgin Is.":"美属维尔京群岛",Vietnam:"越南",Vanuatu:"瓦努阿图",Samoa:"萨摩亚",Yemen:"也门","South Africa":"南非",Zambia:"赞比亚",Zimbabwe:"津巴布韦"},o._children=[],o.loadedMap={},o.stack=[],o.renderer="svg",o}return __extends(t,e),t.prototype.ngOnChanges=function(e){e.data&&(this.data&&this.data[0]&&(this.mapStyle=this.data[0].name,this.stack.push(this.mapStyle)),this.reloadMap())},t.prototype.ngOnInit=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return e=this,[4,this.http.get("/assets/mapListItem.json").toPromise()];case 1:return e.provinces=t.sent(),[2]}}))}))},t.prototype.ngOnDestroy=function(){this.ngxEcharts&&(this.ngxEcharts.initChart=function(){})},t.prototype.chartInit=function(){var e,t,o,i,a,r=this,n=[];this.visualMap=[],this.renderer="svg",this._children.forEach((function(e){"visual"===e.type&&e.visualMap&&e.item.length&&(e.visualMap2&&r.visualMap.push(e.visualMap2),r.visualMap.push(e.visualMap),e.visualMap.seriesIndex=n.length),n=Array.isArray(e.item)?__spread(n,e.item):__spread(n,[e.item])})),n.forEach((function(e,t){"lines"===e.type&&(delete e.coordinateSystem,r.renderer="canvas"),"scatter"===e.type&&(e.coordinateSystem="geo")}));var s=getEchartsTextStyle(this.areaNamefont);this.chartOption={tooltip:{trigger:"item",triggerOn:this.triggerType?this.triggerType:"mousemove"},geo:{label:{normal:{show:this.showAreaName,textStyle:s},emphasis:{show:this.showAreaName,textStyle:s}},selectedMode:this.selectedMode,select:{label:{show:this.showAreaName,textStyle:{color:(null===(e=this.areaNamefont)||void 0===e?void 0:e.color)||"#fff",fontSize:(null===(t=this.areaNamefont)||void 0===t?void 0:t.size)||12,fontFamily:(null===(o=this.areaNamefont)||void 0===o?void 0:o.family)||"",lineHeight:(null===(i=this.areaNamefont)||void 0===i?void 0:i.lineHeight)||12}},itemStyle:{areaColor:{type:"radial",x:.5,y:.5,r:.8,colorStops:[{offset:0,color:this.selectColorStart?this.selectColorStart:this._areaColor},{offset:1,color:this.selectColorEnd?this.selectColorEnd:this._areaColor}],globalCoord:!1},borderColor:this._borderColor}},itemStyle:{normal:{borderColor:this.borderColor,opacity:1,areaColor:{type:"radial",x:.5,y:.5,r:.8,colorStops:[{offset:0,color:this.mapColorStart?this.mapColorStart:this.areaColor},{offset:1,color:this.mapColorEnd?this.mapColorEnd:this.areaColor}],globalCoord:!1},shadowColor:this.shadowColor,shadowBlur:this.shadowWidth,shadowOffsetX:-2,shadowOffsetY:2},emphasis:{areaColor:{type:"radial",x:.5,y:.5,r:.8,colorStops:[{offset:0,color:this.selectColorStart?this.selectColorStart:this._areaColor},{offset:1,color:this.selectColorEnd?this.selectColorEnd:this._areaColor}],globalCoord:!1},borderColor:this._borderColor}},map:this.mapStyle,roam:this.zoomSwitch,nameMap:this.nameMap,zoom:this.zoom},series:n},(null===(a=this.visualMap)||void 0===a?void 0:a.length)&&(this.chartOption.visualMap=this.visualMap)},t.prototype.childInit=function(e){if(e.id){var t=this._children.findIndex((function(t){return t.id===e.id}));t>-1?this._children[t]=e:this._children.push(e),this.chartInit()}},t.prototype.deleteChild=function(e){if(e){var t=this._children.findIndex((function(t){return t.id===e}));t>-1&&(this._children.splice(t,1),this.chartInit())}},t.prototype.reloadMap=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(o){switch(o.label){case 0:return e=this.mapStyle,null!=echarts.getMap(e)?[3,2]:[4,this.http.get("assets/echarts/map/json/"+e+".json").toPromise()];case 1:t=o.sent(),echarts.registerMap(e,t),o.label=2;case 2:return this.hasMap=!0,this.chartInit(),[2]}}))}))},t.prototype.markClick=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o,i,a,r,n,s,d,l,p,c;return __generator(this,(function(g){if(e.seriesId)t=e.value[0],o=e.value[1],(i=this._children.find((function(t){return e.seriesId.startsWith(t.id)})))&&i.onClick&&i.onClick(e);else{if(a=echarts.getMap(this.mapStyle))try{for(r=__values(a.geoJson.features),n=r.next();!n.done;n=r.next())if(s=n.value,(d=s.properties).name===e.name){d.cp?(t=d.cp[0],o=d.cp[1]):d.center?(t=d.center[0],o=d.center[1]):console.log(d);break}}catch(e){p={error:e}}finally{try{n&&!n.done&&(c=r.return)&&c.call(r)}finally{if(p)throw p.error}}(l=this.provinces.find((function(t){return t.label===e.name})))&&(this.stack.push(this.mapStyle),this.mapStyle=l.value,this.reloadMap())}return this.areaClick.emit({name:e.name,lng:t,lat:o}),[2]}))}))},t.prototype.rollback=function(e){e.preventDefault(),null!=this.stack&&0!=this.stack.length&&(this.mapStyle=this.stack.pop(),this.reloadMap())},t.prototype.getTextStyle=function(){},t}(ParentContainerComponent),exports.ɵcc.decorators=[{type:i0.Component,args:[{selector:"sc-planimetric-map2d",template:'<ng-template *ngFor="let child of children" widget-host [widget]="child"></ng-template>\n<div\n echarts\n *ngIf="hasMap"\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="markClick($event)"\n (contextmenu)="rollback($event)"\n [initOpts]="{ renderer: renderer}"\n></div>\n\x3c!-- --\x3e\n',providers:[{provide:ParentContainerComponent,useExisting:i0.forwardRef((function(){return PlanimetricMap2dComponent_1}))}],styles:[".demo-chart,:host{height:100%}:host{display:block;width:100%}"]}]}],exports.ɵcc.ctorParameters=function(){return[{type:i2.HttpClient}]},exports.ɵcc.propDecorators={ngxEcharts:[{type:i0.ViewChild,args:[ngxEcharts.NgxEchartsDirective]}]},__decorate([bbjWidgetBase.Property("地图样式",{ui:{widget:"myUrlSelect",url:"/assets/mapListItem.json"}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"mapStyle",void 0),__decorate([bbjWidgetBase.Property("地图缩放",{ui:{widget:"myRange",min:1,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"zoom",void 0),__decorate([bbjWidgetBase.Property("区域背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"areaColor",void 0),__decorate([bbjWidgetBase.Property("区域描边",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("移动高亮",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"_areaColor",void 0),__decorate([bbjWidgetBase.Property("地区字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"areaNamefont",void 0),__decorate([bbjWidgetBase.Property("显示地名",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcc.prototype,"showAreaName",void 0),__decorate([bbjWidgetBase.Property("触发方式",{ui:{widget:"select"},enum:[{label:"点击",value:"click"},{label:"鼠标移动",value:"mousemove"}]}),__metadata("design:type",Object)],exports.ɵcc.prototype,"triggerType",void 0),__decorate([bbjWidgetBase.Property("选中方式",{ui:{widget:"select"},enum:[{label:"默认",value:""},{label:"单选",value:"single"},{label:"多选",value:"multiple"}]}),__metadata("design:type",Object)],exports.ɵcc.prototype,"selectedMode",void 0),__decorate([bbjWidgetBase.Property("缩放开关",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcc.prototype,"zoomSwitch",void 0),__decorate([bbjWidgetBase.Property("高亮描边",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"_borderColor",void 0),__decorate([bbjWidgetBase.Property("阴影颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"shadowColor",void 0),__decorate([bbjWidgetBase.Property("边框粗细",{type:"number"}),__metadata("design:type",Object)],exports.ɵcc.prototype,"shadowWidth",void 0),__decorate([bbjWidgetBase.Property("地图渐变开始",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"mapColorStart",void 0),__decorate([bbjWidgetBase.Property("地图渐变结束",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"mapColorEnd",void 0),__decorate([bbjWidgetBase.Property("选中渐变开始",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"selectColorStart",void 0),__decorate([bbjWidgetBase.Property("选中渐变结束",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"selectColorEnd",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"地名"},lng:{type:"number",title:"经度"},lat:{type:"string",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵcc.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["name","lng","lat"]),bbjWidgetBase.Event("选中",{params:{properties:{name:{type:"string",title:"值"},lng:{type:"number",title:"经度"},lat:{type:"string",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵcc.prototype,"areaClick",void 0),exports.ɵcc=PlanimetricMap2dComponent_1=__decorate([bbjWidgetBase.Widget("2D平面地图",{group:"component",image:"assets/img/screen/2dmap.png",icon:"iconmokuai",children:[{title:"呼吸气泡层",type:"sc-breathing-bubble-layer",option:{},hidden:!0,hideChild:!0}],childTypes:["sc-fly-line-layer","sc-breathing-bubble-layer","sc-map2d-polyline-layer","sc-map2d-mark-layer","sc-map2d-visual-layer"],description:"hasChildItem"}),__metadata("design:paramtypes",[i2.HttpClient])],exports.ɵcc),exports.ɵce=function(){function e(e){this.parent=e,this.size=1,this.color="RGB(0, 252, 255)",this.data=[{from:"116.85059,31.69078",to:"118.69629,36.20882",fromInfo:"起点",toInfo:"终点"},{from:"120.89355,37.09024",to:"116.93848,31.61597",fromInfo:"起点",toInfo:"终点"},{from:"121.28906,29.34388",to:"117.20215,31.12820",fromInfo:"起点",toInfo:"终点"},{from:"118.16895,31.57854",to:"119.79492,32.47270",fromInfo:"起点",toInfo:"终点"},{from:"116.76270,33.35806",to:"116.49902,38.95941",fromInfo:"起点",toInfo:"终点"},{from:"116.41113,30.93992",to:"114.78516,26.58853",fromInfo:"起点",toInfo:"终点"},{from:"115.83984,32.13841",to:"97.47070,37.54458",fromInfo:"起点",toInfo:"终点"},{from:"116.27930,32.36140",to:"114.08203,36.27971",fromInfo:"起点",toInfo:"终点"},{from:"103.66699,25.79989",to:"116.05957,31.54109",fromInfo:"起点",toInfo:"终点"},{from:"112.14844,24.40714",to:"116.71875,33.21112",fromInfo:"起点",toInfo:"终点"},{from:"116.93848,31.65338",to:"118.34473,26.62782",fromInfo:"起点",toInfo:"终点"},{from:"90.70313,42.26105",to:"116.23535,32.32428",fromInfo:"起点",toInfo:"终点"},{from:"116.41113,30.82678",to:"114.87305,36.94989",fromInfo:"起点",toInfo:"终点"},{from:"116.45508,30.78904",to:"118.91602,28.57487",fromInfo:"起点",toInfo:"终点"},{from:"116.01562,40.07807",to:"116.71875,31.69078",fromInfo:"起点",toInfo:"终点"},{from:"116.71875,31.72817",to:"108.45703,40.24599",fromInfo:"起点",toInfo:"终点"},{from:"117.99316,40.84706",to:"116.85059,31.69078",fromInfo:"起点",toInfo:"终点"},{from:"118.30078,36.56260",to:"117.24609,40.97990",fromInfo:"起点",toInfo:"终点"},{from:"119.35547,26.86328",to:"120.41016,32.28713",fromInfo:"起点",toInfo:"终点"},{from:"113.07129,31.42866",to:"106.04004,31.31610",fromInfo:"起点",toInfo:"终点"},{from:"116.85059,31.31610",to:"110.43457,32.76880",fromInfo:"起点",toInfo:"终点"}],this.geoCoordMap={"海门":[121.15,31.89],"鄂尔多斯":[109.781327,39.608266],"招远":[120.38,37.35],"舟山":[122.207216,29.985295],"齐齐哈尔":[123.97,47.33],"盐城":[120.13,33.38],"赤峰":[118.87,42.28],"青岛":[120.33,36.07],"乳山":[121.52,36.89],"金昌":[102.188043,38.520089],"泉州":[118.58,24.93],"莱西":[120.53,36.86],"日照":[119.46,35.42],"胶南":[119.97,35.88],"南通":[121.05,32.08],"拉萨":[91.11,29.97],"云浮":[112.02,22.93],"梅州":[116.1,24.55],"文登":[122.05,37.2],"上海":[121.48,31.22],"攀枝花":[101.718637,26.582347],"威海":[122.1,37.5],"承德":[117.93,40.97],"厦门":[118.1,24.46],"汕尾":[115.375279,22.786211],"潮州":[116.63,23.68],"丹东":[124.37,40.13],"太仓":[121.1,31.45],"曲靖":[103.79,25.51],"烟台":[121.39,37.52],"福州":[119.3,26.08],"瓦房店":[121.979603,39.627114],"即墨":[120.45,36.38],"抚顺":[123.97,41.97],"玉溪":[102.52,24.35],"张家口":[114.87,40.82],"阳泉":[113.57,37.85],"莱州":[119.942327,37.177017],"湖州":[120.1,30.86],"汕头":[116.69,23.39],"昆山":[120.95,31.39],"宁波":[121.56,29.86],"湛江":[110.359377,21.270708],"揭阳":[116.35,23.55],"荣成":[122.41,37.16],"连云港":[119.16,34.59],"葫芦岛":[120.836932,40.711052],"常熟":[120.74,31.64],"东莞":[113.75,23.04],"河源":[114.68,23.73],"淮安":[119.15,33.5],"泰州":[119.9,32.49],"南宁":[108.33,22.84],"营口":[122.18,40.65],"惠州":[114.4,23.09],"江阴":[120.26,31.91],"蓬莱":[120.75,37.8],"韶关":[113.62,24.84],"嘉峪关":[98.289152,39.77313],"广州":[113.23,23.16],"延安":[109.47,36.6],"太原":[112.53,37.87],"清远":[113.01,23.7],"中山":[113.38,22.52],"昆明":[102.73,25.04],"寿光":[118.73,36.86],"盘锦":[122.070714,41.119997],"长治":[113.08,36.18],"深圳":[114.07,22.62],"珠海":[113.52,22.3],"宿迁":[118.3,33.96],"咸阳":[108.72,34.36],"铜川":[109.11,35.09],"平度":[119.97,36.77],"佛山":[113.11,23.05],"海口":[110.35,20.02],"江门":[113.06,22.61],"章丘":[117.53,36.72],"肇庆":[112.44,23.05],"大连":[121.62,38.92],"临汾":[111.5,36.08],"吴江":[120.63,31.16],"石嘴山":[106.39,39.04],"沈阳":[123.38,41.8],"苏州":[120.62,31.32],"茂名":[110.88,21.68],"嘉兴":[120.76,30.77],"长春":[125.35,43.88],"胶州":[120.03336,36.264622],"银川":[106.27,38.47],"张家港":[120.555821,31.875428],"三门峡":[111.19,34.76],"锦州":[121.15,41.13],"南昌":[115.89,28.68],"柳州":[109.4,24.33],"三亚":[109.511909,18.252847],"自贡":[104.778442,29.33903],"吉林":[126.57,43.87],"阳江":[111.95,21.85],"泸州":[105.39,28.91],"西宁":[101.74,36.56],"宜宾":[104.56,29.77],"呼和浩特":[111.65,40.82],"成都":[104.06,30.67],"大同":[113.3,40.12],"镇江":[119.44,32.2],"桂林":[110.28,25.29],"张家界":[110.479191,29.117096],"宜兴":[119.82,31.36],"北海":[109.12,21.49],"西安":[108.95,34.27],"金坛":[119.56,31.74],"东营":[118.49,37.46],"牡丹江":[129.58,44.6],"遵义":[106.9,27.7],"绍兴":[120.58,30.01],"扬州":[119.42,32.39],"常州":[119.95,31.79],"潍坊":[119.1,36.62],"重庆":[106.54,29.59],"台州":[121.420757,28.656386],"南京":[118.78,32.04],"滨州":[118.03,37.36],"贵阳":[106.71,26.57],"无锡":[120.29,31.59],"本溪":[123.73,41.3],"克拉玛依":[84.77,45.59],"渭南":[109.5,34.52],"马鞍山":[118.48,31.56],"宝鸡":[107.15,34.38],"焦作":[113.21,35.24],"句容":[119.16,31.95],"北京":[116.46,39.92],"徐州":[117.2,34.26],"衡水":[115.72,37.72],"包头":[110,40.58],"绵阳":[104.73,31.48],"乌鲁木齐":[87.68,43.77],"枣庄":[117.57,34.86],"杭州":[120.19,30.26],"淄博":[118.05,36.78],"鞍山":[122.85,41.12],"溧阳":[119.48,31.43],"库尔勒":[86.06,41.68],"安阳":[114.35,36.1],"开封":[114.35,34.79],"济南":[117,36.65],"德阳":[104.37,31.13],"温州":[120.65,28.01],"九江":[115.97,29.71],"邯郸":[114.47,36.6],"临安":[119.72,30.23],"兰州":[103.73,36.03],"沧州":[116.83,38.33],"临沂":[118.35,35.05],"南充":[106.110698,30.837793],"天津":[117.2,39.13],"富阳":[119.95,30.07],"泰安":[117.13,36.18],"诸暨":[120.23,29.71],"郑州":[113.65,34.76],"哈尔滨":[126.63,45.75],"聊城":[115.97,36.45],"芜湖":[118.38,31.33],"唐山":[118.02,39.63],"平顶山":[113.29,33.75],"邢台":[114.48,37.05],"德州":[116.29,37.45],"济宁":[116.59,35.38],"荆州":[112.239741,30.335165],"宜昌":[111.3,30.7],"义乌":[120.06,29.32],"丽水":[119.92,28.45],"洛阳":[112.44,34.7],"秦皇岛":[119.57,39.95],"株洲":[113.16,27.83],"石家庄":[114.48,38.03],"莱芜":[117.67,36.19],"常德":[111.69,29.05],"保定":[115.48,38.85],"湘潭":[112.91,27.87],"金华":[119.64,29.12],"岳阳":[113.09,29.37],"长沙":[113,28.21],"衢州":[118.88,28.97],"廊坊":[116.7,39.53],"菏泽":[115.480656,35.23375],"合肥":[117.27,31.86],"武汉":[114.31,30.52],"大庆":[125.03,46.58]}}return e.prototype.ngOnChanges=function(e){var t=[{coordinateSystem:"bmap",data:this.convertData(this.data),effect:{color:this.color,period:1,show:!0,symbolSize:[this.size,20],trailLength:.05},lineStyle:{normal:{color:"#a6c84c",curveness:.2,opacity:1,width:0}},type:"lines",zlevel:1}];this.parent.childInit({id:this.id,item:t})},e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.convertData=function(e){for(var t=[],o=0;o<e.length;o++){"string"==typeof e[o].from&&(e[o].from=e[o].from.split(",")),"string"==typeof e[o].to&&(e[o].to=e[o].to.split(",")),e[o].from&&e[o].to&&t.push({fromName:e[o].fromInfo,toName:e[o].toInfo,coords:[e[o].from,e[o].to]})}return t},e}(),exports.ɵce.decorators=[{type:i0.Component,args:[{selector:"sc-fly-line-layer",template:"",styles:[""]}]}],exports.ɵce.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("飞线粗细",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵce.prototype,"size",void 0),__decorate([bbjWidgetBase.Property("飞线颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵce.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{from:{type:"number",title:"出发位置"},to:{type:"number",title:"结束位置"},fromInfo:{type:"string",title:"出发信息"},toInfo:{type:"string",title:"结束信息"}}}),__metadata("design:type",Array)],exports.ɵce.prototype,"data",void 0),exports.ɵce=__decorate([bbjWidgetBase.Widget("飞线层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵce);var FlyLineLayerModule=function(e){e.register(exports.ɵce)};FlyLineLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵce],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],FlyLineLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcg=function(){function e(e){this.parent=e,this.size=1,this.color="RGB(0, 252, 255)",this.data=[{group:"x",lng:"116.85",lat:"28.69"},{group:"x",lng:"116.35",lat:"28.79"},{group:"x",lng:"116.10",lat:"29"}],this.datalist=[]}return e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.ngOnChanges=function(e){this.grouping();var t=[{coordinateSystem:"bmap",data:this.datalist,polyline:!0,lineStyle:{normal:{color:this.color,opacity:.6,width:this.size}},type:"lines",name:"polyline",zlevel:1}];this.parent.childInit({id:this.id,item:t})},e.prototype.ngOnInit=function(){},e.prototype.grouping=function(){var e=this;this.datalist=[];var t=[],o={};null!=this.data&&(this.data.forEach((function(e){t.indexOf(e.group)<0&&t.push(e.group),o[e.group]=o[e.group]||{coords:[]};var i=[];i.push(e.lng),i.push(e.lat),o[e.group].coords.push(i)})),t.forEach((function(t){e.datalist.push(o[t])})))},e}(),exports.ɵcg.decorators=[{type:i0.Component,args:[{selector:"sc-map2d-polyline-layer",template:"",styles:[""]}]}],exports.ɵcg.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("线条粗细",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵcg.prototype,"size",void 0),__decorate([bbjWidgetBase.Property("线条颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵcg.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{group:{type:"string",title:"分组"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵcg.prototype,"data",void 0),exports.ɵcg=__decorate([bbjWidgetBase.Widget("折线层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵcg);var Map2dPolylineLayerModule=function(e){e.register(exports.ɵcg)};Map2dPolylineLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcg],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],Map2dPolylineLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$9={type:"string",title:"id"},ɵ1$9={type:"string",title:"id"};exports.ɵci=function(){function e(e){this.parent=e,this.groups=[],this.size=12,this.color="RGB(0, 252, 255)",this.data=[{address:"机楼1号",information:"暂无信息",group:"",lng:"116.7",lat:"28"}],this.makerClick=new i0.EventEmitter}return e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.ngOnChanges=function(e){var t=this,o={id:this.id,type:"scatter",coordinateSyste:"bmap",data:[],tooltip:{formatter:"{b}",position:"top",textStyle:{color:this.color,fontSize:this.size}},emphasis:{label:{show:!0}}};this.data.forEach((function(e){null!==t.groups&&t.groups.length>0&&t.groups.forEach((function(t){t.group===e.group&&("image://"+t.imageUrl,t.width)}));var i={id:e.id,name:e.address,value:[e.lng,e.lat],symbolSize:0,label:{formatter:function(e){return e.name},rich:{title:{fontSize:t.size,color:t.color,align:"left"},value:{fontSize:t.size,padding:[3,20,0,5],align:"right"}},color:t.color,fontSize:t.size,show:!0}};e.information&&(i.tooltip={formatter:e.information}),t.groups&&t.groups.length>0&&t.groups.forEach((function(e){e.imageUrl&&(i.label.rich[e.group]={height:e.width,align:"bottom",backgroundColor:{image:e.imageUrl}})})),o.data.push(i)})),this.parent.childInit({id:this.id,item:o,onClick:function(e){var o=e.data;t.makerClick.emit({id:o.id,address:o.name,lng:o.value[0],lat:o.value[1]})}})},e.prototype.ngOnInit=function(){},e}(),exports.ɵci.decorators=[{type:i0.Component,args:[{selector:"sc-map2d-mark-layer",template:"\n",styles:[""]}]}],exports.ɵci.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("标记分组",{type:"array",title:"标记分组",maxItems:10,items:{type:"object",properties:{imageUrl:{type:"string",title:"图片",ui:{widget:"myUpload"}},width:{type:"number",title:"大小"},group:{type:"string",title:"分组"}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵci.prototype,"groups",void 0),__decorate([bbjWidgetBase.Property("字体大小",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵci.prototype,"size",void 0),__decorate([bbjWidgetBase.Property("字体颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵci.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$9,address:{type:"string",title:"地点"},information:{type:"string",title:"信息"},group:{type:"string",title:"标记分组"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵci.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["id","address","lng","lat"]),bbjWidgetBase.Event("点击标记",{params:{properties:{id:ɵ1$9,address:{type:"string",title:"地点"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵci.prototype,"makerClick",void 0),exports.ɵci=__decorate([bbjWidgetBase.Widget("标记层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵci);var Map2dMarkLayerModule=function(e){e.register(exports.ɵci)};Map2dMarkLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵci],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],Map2dMarkLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵck=function(){function e(e){this.parent=e,this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},this.left=26,this.bottom=40,this.level=[{gte:0,lte:50,label:"等级1",color:"#AAAAAA",colorEnd:null,unit:""},{gte:50,label:"等级2",color:"#FF3333",colorEnd:null,unit:""}],this.max="高",this.min="低",this.prefix="",this.suffix="",this._data=[{name:"南海诸岛",value:0,tooltip:"告警统计<br />失联告警:0"},{name:"北京",value:54,tooltip:"告警统计<br />失联告警:54"},{name:"天津",value:13,tooltip:"告警统计<br />失联告警:13"},{name:"上海",value:40,tooltip:"告警统计<br />失联告警:40"},{name:"重庆",value:75,tooltip:"告警统计<br />失联告警:75"},{name:"河北",value:13,tooltip:"告警统计<br />失联告警:13"},{name:"海口市",value:70,tooltip:"告警统计<br />失联告警:70"}],this.dataClick=new i0.EventEmitter,this.xData=[],this.yData=[],this.series=[],this.style={color:"",fontFamily:"",fontWeight:"",fontSize:"",lineHeight:""},this.visualMap={}}return e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){var t=this;if(this.style={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight},e._data){var o=!1,i=!1,a=this.level.map((function(e){var a=Object.assign({},e);return!i&&t.isLucency(e.color)&&(i=!0),e.color&&e.colorEnd&&(o=!0,a.color={type:"radial",x:.5,y:.5,r:.8,colorStops:[{offset:0,color:e.color},{offset:1,color:e.colorEnd}],globalCoord:!1}),a}));this.visualMap={min:0,max:500,left:this.left||26,bottom:this.bottom||40,showLabel:!0,text:[this.max,this.min],pieces:a,textStyle:this.style,show:!0};var r=[];this._data.length&&(r=[{name:"",type:"map",geoIndex:0,mapType:"",label:{normal:{show:!0,formatter:function(e){var o=e.value?e.value:0,i=t.prefix?t.prefix:"",a=t.suffix?t.suffix:"";return(e.name+"-"+i+o+a).split("-").join("\n")},textStyle:this.style},emphasis:{show:!1}},data:this._data}]);var n={id:this.id,item:r,visualMap:this.visualMap,type:"visual"};(o||i)&&(n.visualMap2=Object.assign(Object.assign({},this.visualMap),{pieces:this.level.map((function(e){return Object.assign(Object.assign({},e),{color:t.opacity(e.color)})}))}),n.visualMap.show=!1),this.parent.childInit(n)}},e.prototype.isLucency=function(e){if(e){var t=/rgba\(\d+,\d+,\d+,([\d.]+)\)/.exec(e);if(t)if(Number(t[1])<1)return!0}return!1},e.prototype.opacity=function(e){return e&&(e=e.replace(/rgba\((\d+),(\d+),(\d+),([\d.]+)\)/,(function(e,t,o,i,a){return console.log(e,t,o,i,a),"rgb("+t+","+o+","+i+")"}))),e},e}(),exports.ɵck.decorators=[{type:i0.Component,args:[{selector:"sc-map2d-visual-layer",template:"",styles:[""]}]}],exports.ɵck.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵck.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("左侧边距",{type:"number"}),__metadata("design:type",Object)],exports.ɵck.prototype,"left",void 0),__decorate([bbjWidgetBase.Property("底部边距",{type:"number"}),__metadata("design:type",Object)],exports.ɵck.prototype,"bottom",void 0),__decorate([bbjWidgetBase.Property("分级",{type:"array",title:"热力等级",maxItems:10,items:{type:"object",properties:{gte:{type:"number",title:"大于"},lte:{type:"number",title:"小于等于"},label:{type:"string",title:"标签"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}},colorEnd:{type:"string",title:"渐变颜色",ui:{widget:"myColor"}},unit:{type:"string",title:"单位"}},required:["label","color"]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵck.prototype,"level",void 0),__decorate([bbjWidgetBase.Property("正极名称",{max:{type:"string",title:"max",ui:{}},required:["max"]}),__metadata("design:type",Object)],exports.ɵck.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("负极名称",{min:{type:"string",title:"min",ui:{}},required:["min"]}),__metadata("design:type",Object)],exports.ɵck.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("前缀",{min:{type:"string",ui:{}}}),__metadata("design:type",Object)],exports.ɵck.prototype,"prefix",void 0),__decorate([bbjWidgetBase.Property("后缀",{min:{type:"string",ui:{}}}),__metadata("design:type",Object)],exports.ɵck.prototype,"suffix",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"地名"},value:{type:"number",title:"值"},tooltip:{type:"string",title:"提示"},lng:{type:"number",title:"中心经度"},lat:{type:"number",title:"中心纬度"}}}),__metadata("design:type",Array)],exports.ɵck.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["name","value","tooltip","lng","lat"]),__metadata("design:type",Object)],exports.ɵck.prototype,"dataClick",void 0),exports.ɵck=__decorate([bbjWidgetBase.Widget("热力层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵck);var Map2dVisualLayerModule=function(e){e.register(exports.ɵck)};Map2dVisualLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵck],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],Map2dVisualLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var PlanimetricMap2dModule=function(e){e.register(exports.ɵcc)};PlanimetricMap2dModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcc],imports:[common.CommonModule,ngxEcharts.NgxEchartsModule,bbjWidgetBase.WidgetBaseModule,FlyLineLayerModule,BreathingBubbleLayerModule,Map2dPolylineLayerModule,Map2dMarkLayerModule,Map2dVisualLayerModule]}]}],PlanimetricMap2dModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ParentContainerModule=function(e){},PlanimetricMap3dComponent_1;ParentContainerModule.decorators=[{type:i0.NgModule,args:[{declarations:[ParentContainerComponent],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],ParentContainerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var buttonEnum=[{label:"鼠标左键",value:"left"},{label:"鼠标中键",value:"middle"},{label:"鼠标右键",value:"right"}];exports.ɵcm=PlanimetricMap3dComponent_1=function(e){function t(t){var o=e.call(this,t)||this;return o.mapStyle="china",o.areaColor="#323c48",o.borderColor="#404a59",o._areaColor="#2a333d",o.areaNamefont={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},o.showAreaName=!0,o.shadowColor="#2a333d",o.boderWidth=2,o.regionHeight=3,o.projection="perspective",o.distance=100,o.orthographicSize=100,o.alpha=40,o.beta=0,o.panMouseButton="middle",o.rotateMouseButton="left",o.bloomIntensity=.1,o.hasMap=!1,o.data=[],o.areaClick=new i0.EventEmitter,o}return __extends(t,e),t.prototype.chartInit=function(){var e=getEchartsTextStyle(this.areaNamefont),t={type:"map3D",boxHeight:7,regionHeight:this.regionHeight,label:Object.assign({show:this.showAreaName,distance:0},e),selectedMode:this.selectedMode,itemStyle:{color:this.areaColor,borderColor:this.borderColor,borderWidth:this.boderWidth},emphasis:{label:Object.assign({show:this.showAreaName},e),itemStyle:{color:this._areaColor}},map:this.mapStyle,roam:this.zoomSwitch,nameMap:this.nameMap,zoom:this.zoom,viewControl:{projection:this.projection,distance:this.distance,orthographicSize:this.orthographicSize,alpha:this.alpha,beta:this.beta,panMouseButton:this.panMouseButton,rotateMouseButton:this.rotateMouseButton},postEffect:{enable:this.bloomEnable,bloom:{enable:this.bloomEnable,bloomIntensity:this.bloomIntensity}}},o=[];this._children.forEach((function(e){Array.isArray(e.item)?o.push.apply(o,__spread(e.item)):o.push(e.item)})),this.chartOption={geo3D:t,tooltip:{},series:o}},t}(exports.ɵcc),exports.ɵcm.decorators=[{type:i0.Component,args:[{selector:"sc-planimetric-map3d",template:'<ng-template *ngFor="let child of children" widget-host [widget]="child"></ng-template>\n<div echarts *ngIf="hasMap" [options]="chartOption" class="demo-chart" (chartClick)=\'markClick($event)\' (contextmenu)=\'rollback($event)\'></div> ',providers:[{provide:ParentContainerComponent,useExisting:i0.forwardRef((function(){return PlanimetricMap3dComponent_1}))}],styles:[".demo-chart,:host{height:100%}:host{display:block;width:100%}"]}]}],exports.ɵcm.ctorParameters=function(){return[{type:i2.HttpClient}]},__decorate([bbjWidgetBase.Property("地图样式",{ui:{widget:"myUrlSelect",url:"/assets/mapListItem.json"}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"mapStyle",void 0),__decorate([bbjWidgetBase.Property("区域背景",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"areaColor",void 0),__decorate([bbjWidgetBase.Property("区域描边",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("移动高亮",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"_areaColor",void 0),__decorate([bbjWidgetBase.Property("地区字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"areaNamefont",void 0),__decorate([bbjWidgetBase.Property("显示地名",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcm.prototype,"showAreaName",void 0),__decorate([bbjWidgetBase.Property("阴影颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"shadowColor",void 0),__decorate([bbjWidgetBase.Property("边框粗细",{type:"number"}),__metadata("design:type",Object)],exports.ɵcm.prototype,"boderWidth",void 0),__decorate([bbjWidgetBase.Property("模型高度",{type:"number"}),__metadata("design:type",Object)],exports.ɵcm.prototype,"regionHeight",void 0),__decorate([bbjWidgetBase.Property("投影方式",{enum:[{label:"透视投影",value:"perspective"},{label:"正交投影",value:"orthographic"}]}),__metadata("design:type",Object)],exports.ɵcm.prototype,"projection",void 0),__decorate([bbjWidgetBase.Property("视角距离",{type:"number",ui:{visibleIf:{projection:["perspective"]}}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"distance",void 0),__decorate([bbjWidgetBase.Property("正交大小",{type:"number",ui:{visibleIf:{projection:["orthographic"]}}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"orthographicSize",void 0),__decorate([bbjWidgetBase.Property("alpha角",{type:"number"}),__metadata("design:type",Object)],exports.ɵcm.prototype,"alpha",void 0),__decorate([bbjWidgetBase.Property("beta角",{type:"number"}),__metadata("design:type",Object)],exports.ɵcm.prototype,"beta",void 0),__decorate([bbjWidgetBase.Property("平移操作",{enum:buttonEnum}),__metadata("design:type",Object)],exports.ɵcm.prototype,"panMouseButton",void 0),__decorate([bbjWidgetBase.Property("旋转操作",{enum:buttonEnum}),__metadata("design:type",Object)],exports.ɵcm.prototype,"rotateMouseButton",void 0),__decorate([bbjWidgetBase.Property("开启光晕",{type:"boolean"}),__metadata("design:type",Boolean)],exports.ɵcm.prototype,"bloomEnable",void 0),__decorate([bbjWidgetBase.Property("光晕强度",{type:"number",ui:{visibleIf:{bloomEnable:[!0]}}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"bloomIntensity",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"地名"},lng:{type:"number",title:"经度"},lat:{type:"string",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵcm.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["name","lng","lat"]),bbjWidgetBase.Event("选中",{params:{properties:{name:{type:"string",title:"值"},lng:{type:"number",title:"经度"},lat:{type:"string",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵcm.prototype,"areaClick",void 0),exports.ɵcm=PlanimetricMap3dComponent_1=__decorate([bbjWidgetBase.Widget("3D平面地图",{group:"component",image:"assets/img/screen/3dmap.png",icon:"iconmokuai",children:[{title:"散点图",type:"sc-map3d-mark-layer",option:{},hidden:!0,hideChild:!0}],childTypes:["sc-map3d-mark-layer","sc-map3d-line-layer"],description:"hasChildItem"}),__metadata("design:paramtypes",[i2.HttpClient])],exports.ɵcm);var ɵ0$a={type:"string",title:"id"},ɵ1$a={type:"string",title:"id"};exports.ɵco=function(){function e(e,t){this.parent=e,this.http=t,this.groups=[{group:"",symbol:"circle",size:30}],this.data=[{address:"机楼1号",information:"暂无信息",group:"",lng:"120",lat:"28"}],this.makerClick=new i0.EventEmitter}return e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.ngOnChanges=function(e){this.reload()},e.prototype.reload=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,i,a,r,n,s,d,l,p,c=this;return __generator(this,(function(g){switch(g.label){case 0:e={},t=[],o={},g.label=1;case 1:g.trys.push([1,6,7,8]),i=__values(this.groups),a=i.next(),g.label=2;case 2:return a.done?[3,5]:(r=a.value,n=r.group||"",e[n]=r,[4,this.getSeries(r)]);case 3:s=g.sent(),t.push(s),o[n]=s,g.label=4;case 4:return a=i.next(),[3,2];case 5:return[3,8];case 6:return d=g.sent(),l={error:d},[3,8];case 7:try{a&&!a.done&&(p=i.return)&&p.call(i)}finally{if(l)throw l.error}return[7];case 8:return this.data.forEach((function(e){var t=o[e.group];null==t&&(t=o[""]),t&&t.data.push({id:e.id,name:e.address,value:[+e.lng,+e.lat,1,e.information]})})),this.parent.childInit({id:this.id,item:t,onClick:function(e){var t=e.data;c.makerClick.emit({id:t.id,address:t.name,lng:t.value[0],lat:t.value[1]})}}),[2]}}))}))},e.prototype.getSeries=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o,i,a,r,n,s;return __generator(this,(function(d){switch(d.label){case 0:return"image"!==(t=e.symbol)?[3,5]:(o=e.image)?o.endsWith("svg")?[4,this.http.get(o,{responseType:"text"}).toPromise()]:[3,2]:[3,4];case 1:for(i=d.sent(),a=(new DOMParser).parseFromString(i,"text/xml"),r=a.getElementsByTagName("path"),t="path://",n=0;n<r.length;n++)s=r[n],n>0&&(t+=" "),t+=s.getAttribute("d").replace(" ",",");return[3,3];case 2:t="image://"+location.origin+o,d.label=3;case 3:return[3,5];case 4:t="none",d.label=5;case 5:return[2,{id:this.id+e.group,type:"scatter3D",coordinateSystem:"geo3D",data:[],tooltip:{formatter:function(e){return e.value[3]}},label:{show:!0,formatter:"{b}",position:"bottom",textStyle:getEchartsTextStyle(e.font)},symbol:t,symbolSize:e.size,itemStyle:{color:e.color,opacity:1}}]}}))}))},e.prototype.ngOnInit=function(){},e}(),exports.ɵco.decorators=[{type:i0.Component,args:[{selector:"sc-map3d-mark-layer",template:"",styles:[""]}]}],exports.ɵco.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]},{type:i2.HttpClient}]},__decorate([bbjWidgetBase.Property("分组",{type:"array",title:"分组",maxItems:10,items:{type:"object",properties:{group:{type:"string",title:"分组"},symbol:{type:"string",title:"形状",enum:[{label:"圆",value:"circle"},{label:"矩形",value:"rect"},{label:"圆角矩形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"菱形",value:"diamond"},{label:"针形",value:"pin"},{label:"箭头",value:"arrow"},{label:"无",value:"none"},{label:"图片",value:"image"}]},image:{title:"图片",type:"string",ui:{widget:"myPicture",visibleIf:{symbol:["image"]}}},size:{type:"number",title:"大小"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}},font:{type:"string",title:"字体",ui:{widget:"myFont"}}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵco.prototype,"groups",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$a,address:{type:"string",title:"地点"},information:{type:"string",title:"信息"},group:{type:"string",title:"标记分组"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵco.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["id","address","lng","lat"]),bbjWidgetBase.Event("点击标记",{params:{properties:{id:ɵ1$a,address:{type:"string",title:"地点"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵco.prototype,"makerClick",void 0),exports.ɵco=__decorate([bbjWidgetBase.Widget("散点图",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent,i2.HttpClient])],exports.ɵco);var Map3dMarkLayerModule=function(e){e.register(exports.ɵco)};Map3dMarkLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵco],imports:[common.CommonModule]}]}],Map3dMarkLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcq=function(){function e(e){this.parent=e,this.width=4,this.color="rgba(242,213,173,0.85)",this.data=[{group:"x",lng:"120.7",lat:"28"},{group:"x",lng:"120.71",lat:"28.01"},{group:"x",lng:"120.79",lat:"28.1"},{group:"y",lng:"120.72",lat:"28.02"},{group:"y",lng:"120.73",lat:"28.03"},{group:"y",lng:"120.81",lat:"28.12"}]}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.parent.deleteChild(this.id)},e.prototype.ngOnChanges=function(e){this.reload()},e.prototype.reload=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o;return __generator(this,(function(i){return console.log(this.data),e=[],t={},this.data.forEach((function(o){var i=t[o.group];i||(i=[],t[o.group]=i,e.push(i)),i.push([+o.lng,+o.lat,1])})),o={type:"lines3D",coordinateSystem:"geo3D",polyline:!0,lineStyle:{width:this.width,color:this.color,opacity:1},data:e,silent:!0},this.parent.childInit({id:this.id,item:o}),[2]}))}))},e}(),exports.ɵcq.decorators=[{type:i0.Component,args:[{selector:"sc-map3d-line-layer",template:"",styles:[""]}]}],exports.ɵcq.ctorParameters=function(){return[{type:ParentContainerComponent,decorators:[{type:i0.Inject,args:[i0.forwardRef((function(){return ParentContainerComponent}))]}]}]},__decorate([bbjWidgetBase.Property("线条宽度",{ui:{widget:"myRange",min:1,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵcq.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("线条颜色",{type:"string",ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcq.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{group:{type:"string",title:"分组"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵcq.prototype,"data",void 0),exports.ɵcq=__decorate([bbjWidgetBase.Widget("折线图",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[ParentContainerComponent])],exports.ɵcq);var Map3dLineLayerModule=function(e){e.register(exports.ɵcq)};Map3dLineLayerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcq],imports:[common.CommonModule]}]}],Map3dLineLayerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var PlanimetricMap3dModule=function(e){e.register(exports.ɵcm)};PlanimetricMap3dModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcm],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule,Map3dMarkLayerModule,Map3dLineLayerModule]}]}],PlanimetricMap3dModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcs=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),exports.ɵcs.decorators=[{type:i0.Component,args:[{selector:"sc-mip-anim",template:"<div [style.backgroundImage]=\"'url(' + image + ')'\" class=\"image\"></div>",styles:[".image{width:100%;height:100%;background-repeat:no-repeat;background-size:contain}"]}]}],exports.ɵcs.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("图片",{ui:{widget:"myPicture"}}),__metadata("design:type",String)],exports.ɵcs.prototype,"image",void 0),exports.ɵcs=__decorate([bbjWidgetBase.Widget("动态图",{group:"mipAnim",icon:"icontupian"}),__metadata("design:paramtypes",[])],exports.ɵcs);var MipAnimModule=function(e){e.register(exports.ɵcs)};MipAnimModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcs],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],MipAnimModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵct=function(){function e(e,t){this.arrayService=e,this.elementRef=t,this.font={family:"",color:"#595F7A",weight:"normal",size:16,space:0,lineHeight:0},this.grid={top:0,right:0,bottom:0,left:0},this.checkable=!1,this.outputType="array",this.checkStrictly=!1,this.showLine=!1,this.expandAll=!1,this.expandLevel=0,this.iconWidth=20,this.iconHeight=20,this.iconPosition="left",this.nodeDefaultIcon=null,this.nodeBackground=null,this.selectedBackground="#bae7ff",this.nodeCheckedColor="#333",this.nodeCheckedBackground=null,this.searchBorderColor="#8F9AB3",this.searchBackgroundColor="rgba(0,0,0,0)",this.searchPlaceholder="请输入搜索内容",this.treeScrollbarThumbBackground="#ddd",this.data=[{title:"江苏省",key:"300",parentKey:""},{title:"浙江省",key:"100",parentKey:""},{title:"杭州市",key:"1001",parentKey:"100"},{title:"顶顶区",key:"10010",parentKey:"1001"},{title:"的方区",key:"10011",parentKey:"1001"},{title:"温州市",key:"1002",parentKey:"100"},{title:"鹿城区",key:"10020",parentKey:"1002"},{title:"龙湾区",key:"10021",parentKey:"1002"}],this.keyChange=new i0.EventEmitter,this.nodes=[],this.selectedKeys=[],this.style={}}return e.prototype.ngOnInit=function(){document.body.style.setProperty("--treeScrollbar-thumb-background",this.treeScrollbarThumbBackground||"#ddd")},e.prototype.ngOnChanges=function(e){e.data&&(this.nodes=this.toTree(this.data),this.waittingSelect&&this.select(this.waittingSelect)),e.font&&this.updateStyle(),(e.data||e.expandLevel||e.expandAll)&&this.expand()},e.prototype.toTree=function(e){var t=this,o={},i=[],a=[];return e&&(e.forEach((function(e){var a=e.title,r=e.key,n=e.parentKey,s=e.parentKey_value,d=e.icon,l=e.count;if(r){var p={key:r,title:a,parentKey:s||n,icon:d,isLeaf:!0,count:l};t.selectedKeys.includes(r)&&(p.selected=!0),o[r]=p,i.push(p)}})),i.forEach((function(e){if(e.parentKey){var t=o[e.parentKey];if(t)return t.children=t.children||[],t.children.push(e),void(t.isLeaf=!1)}a.push(e)}))),a},e.prototype.expand=function(){var e=this;this.expandedKeys=[],(this.expandAll||this.expandLevel)&&this.arrayService.visitTree(this.nodes,(function(t,o,i){(e.expandAll||i<=e.expandLevel)&&e.expandedKeys.push(t.key)}))},e.prototype.updateStyle=function(){this.style=getFontStyle(this.font),this.elementRef.nativeElement.style.setProperty("--selected-background",this.selectedBackground||"#bae7ff")},e.prototype.onClick=function(e){this.onKeysChange(e.keys),this.nodeClick(e.node.key,e.node.title)},e.prototype.onKeysChange=function(e){this.waittingSelect=null,this.selectedKeys=e,this.checkable?"string"===this.outputType?this.keyChange.emit(null==e?void 0:e.join(";")):this.keyChange.emit(e):this.keyChange.emit(e[0])},e.prototype.onCheckBoxChange=function(e){this.onKeysChange(e.keys)},e.prototype.onNodeDblclick=function(e){var t=this;this.renamable&&(this.edittingNode=e.node,setTimeout((function(){t.renameInput&&t.renameInput.nativeElement.focus()})))},e.prototype.renameEnd=function(e){this.edittingNode=null,this.rename(e.key,e.title)},e.prototype.showNode=function(e){console.log(e)},e.prototype.search=function(e){this.searchValue=e},e.prototype.select=function(e){var t=this,o=!1,i=[];if(e&&(this.checkable?("string"==typeof e&&(e=e.split(";")),i.push.apply(i,__spread(e))):i.push(e)),this.selectedKeys=i,i.length){if(this.nodes){var a=[];this.arrayService.visitTree(this.nodes,(function(e){i.includes(e.key)&&a.push(e)})),a.length&&(this.onKeysChange(i),a.forEach((function(e){return t.nodeClick(e.key,e.title)})),o=!0)}o||(this.waittingSelect=e)}},e.prototype.nodeClick=function(e,t){},e.prototype.rename=function(e,t){},e}(),exports.ɵct.decorators=[{type:i0.Component,args:[{selector:"sc-tree-control",template:'<div *ngIf="showSearch" class="searchBox">\n <input\n class="search-input"\n type="text"\n nz-input\n [(ngModel)]="searchValue"\n [placeholder]="searchPlaceholder"\n [style]="{ \'border-color\': searchBorderColor, background: searchBackgroundColor }"\n />\n <i nz-icon nzType="search"></i>\n</div>\n\n<div class="warp-tree">\n <nz-tree\n #tree\n [ngClass]="{ \'ant-tree-nodeBgCustom\': nodeBackground }"\n [ngStyle]="style"\n [nzData]="nodes"\n [nzCheckable]="checkable"\n [nzMultiple]="checkable"\n [nzExpandAll]="expandAll"\n [nzShowLine]="showLine"\n [nzExpandedKeys]="expandedKeys"\n [nzCheckStrictly]="checkStrictly"\n [nzExpandedIcon]="nodeDefaultIcon ? multiExpandedIconTpl : null"\n [nzTreeTemplate]="nzTreeTemplate"\n [nzSearchValue]="searchValue"\n [nzHideUnMatched]="true"\n [nzSelectedKeys]="selectedKeys"\n [nzCheckedKeys]="selectedKeys"\n (nzClick)="onClick($event)"\n (nzDblClick)="onNodeDblclick($event)"\n (nzCheckBoxChange)="onCheckBoxChange($event)"\n >\n </nz-tree>\n <ng-template #multiExpandedIconTpl let-node let-origin="origin">\n <img [src]="nodeDefaultIcon" [class]="node.isExpanded ? \'nodeImg-open\' : \'\'" />\n </ng-template>\n\n <ng-template #nzTreeTemplate let-node let-origin="origin">\n <div\n class="custom-node"\n [style.color]="node.isSelected ? nodeCheckedColor : \'\'"\n [style.backgroundImage]="\n node.isSelected ? \'url(\' + nodeCheckedBackground + \')\' : nodeBackground ? \'url(\' + nodeBackground + \')\' : \'\'\n "\n [style.padding]="\n (grid?.top || 0) + \'px \' + (grid?.right || 0) + \'px \' + (grid?.bottom || 0) + \'px \' + (grid?.left || 0) + \'px\'\n "\n >\n <img\n *ngIf="origin.icon && iconPosition !== \'right\'"\n [src]="origin.icon"\n [style.width.px]="iconWidth"\n [style.height.px]="iconHeight"\n />\n <span\n *ngIf="edittingNode !== node"\n class="folder-name"\n [innerHTML]="node.title | nzHighlight: searchValue:\'i\':\'font-highlight\'"\n (click)="showNode(node)"\n ></span>\n <input *ngIf="edittingNode === node" #renameInput nz-input [(ngModel)]="node.title" (blur)="renameEnd(node)" />\n\n <span class="node-count" [class.noCount]="origin.count === \'0\'" *ngIf="origin.count || origin.count === \'0\'"\n >({{ origin.count }})</span\n >\n <img\n *ngIf="origin.icon && iconPosition === \'right\'"\n [src]="origin.icon"\n [style.width.px]="iconWidth"\n [style.height.px]="iconHeight"\n />\n\n \x3c!-- \n\n <img\n *ngIf="origin.icon && iconPosition !== \'right\'"\n [src]="origin.icon"\n [style.width.px]="iconWidth"\n [style.height.px]="iconHeight"\n />\n <span\n *ngIf="edittingNode !== node"\n class="folder-name"\n [innerHTML]="node.title | nzHighlight: searchValue:\'i\':\'font-highlight\'"\n ></span>\n <input *ngIf="edittingNode === node" #renameInput nz-input [(ngModel)]="node.title" (blur)="renameEnd(node)" />\n <img\n *ngIf="origin.icon && iconPosition === \'right\'"\n [src]="origin.icon"\n [style.width.px]="iconWidth"\n [style.height.px]="iconHeight"\n /> --\x3e\n </div>\n </ng-template>\n</div>\n',styles:[':host{display:block;height:100%;width:100%;overflow:hidden;display:flex;flex-direction:column}.ant-tree,.ant-tree ::ng-deep .ant-tree-checkbox-inner,.ant-tree ::ng-deep .ant-tree-switcher{background:initial}.ant-tree ::ng-deep .ant-tree-switcher-icon{font-size:inherit}.ant-tree ::ng-deep .ant-tree-checkbox{color:inherit}.ant-tree ::ng-deep .ant-tree-checkbox-checked .ant-tree-checkbox-inner:after{border-color:#1890ff}.ant-tree ::ng-deep .ant-tree-switcher-noop>i{display:none}.ant-tree ::ng-deep .ant-tree-node-content-wrapper.ant-tree-node-selected,.ant-tree ::ng-deep .ant-tree-node-content-wrapper:hover{background-color:var(--selected-background)}::ng-deep .ant-tree.ant-tree-nodeBgCustom .ant-tree-node-content-wrapper{flex:1}::ng-deep .ant-tree.ant-tree-nodeBgCustom nz-tree-node-switcher{width:16px}.custom-node{display:flex;align-items:center;white-space:nowrap;background-repeat:no-repeat;background-size:180px 8px;background-position:0 bottom}.searchBox{position:relative;margin-bottom:20px}.searchBox .search-input{line-height:32px;height:32px;color:#7a8799;outline:none;box-shadow:none}.searchBox i.anticon{width:16px;height:16px;color:#8f9ab3;position:absolute;top:10px;right:10px}.warp-tree{flex:1;overflow:auto}.warp-tree::-webkit-scrollbar-thumb{background-color:var(--treeScrollbar-thumb-background,"#ddd")!important}.warp-tree::-webkit-scrollbar-corner{background-color:transparent}.folder-name{flex:1}.node-count{color:hsla(0,0%,100%,.8)}.node-count.noCount{color:#7a8799}']}]}],exports.ɵct.ctorParameters=function(){return[{type:util.ArrayService},{type:i0.ElementRef}]},exports.ɵct.propDecorators={tree:[{type:i0.ViewChild,args:["tree"]}],renameInput:[{type:i0.ViewChild,args:["renameInput"]}]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"grid",void 0),__decorate([bbjWidgetBase.Property("复选框",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵct.prototype,"checkable",void 0),__decorate([bbjWidgetBase.Property("输出格式",{type:"string",enum:[{label:"数组",value:"array"},{label:"字符串",value:"string"}],ui:{widget:"select",visibleIf:{checkable:[!0]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"outputType",void 0),__decorate([bbjWidgetBase.Property("选择完全受控",{type:"boolean",ui:{optionalHelp:"父子节点选中状态不再关联",visibleIf:{checkable:[!0]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"checkStrictly",void 0),__decorate([bbjWidgetBase.Property("连接线",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵct.prototype,"showLine",void 0),__decorate([bbjWidgetBase.Property("展开所有",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵct.prototype,"expandAll",void 0),__decorate([bbjWidgetBase.Property("展开层级",{type:"integer",minimum:0,ui:{precision:0,visibleIf:{expandAll:[!1]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"expandLevel",void 0),__decorate([bbjWidgetBase.Property("图标宽度",{type:"integer"}),__metadata("design:type",Object)],exports.ɵct.prototype,"iconWidth",void 0),__decorate([bbjWidgetBase.Property("图标高度",{type:"integer"}),__metadata("design:type",Object)],exports.ɵct.prototype,"iconHeight",void 0),__decorate([bbjWidgetBase.Property("图标位置",{enum:[{label:"左",value:"left"},{label:"右",value:"right"}]}),__metadata("design:type",Object)],exports.ɵct.prototype,"iconPosition",void 0),__decorate([bbjWidgetBase.Property("节点图标",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"nodeDefaultIcon",void 0),__decorate([bbjWidgetBase.Property("节点背景",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"nodeBackground",void 0),__decorate([bbjWidgetBase.Property("节点选中背景色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"selectedBackground",void 0),__decorate([bbjWidgetBase.Property("节点选中字体色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"nodeCheckedColor",void 0),__decorate([bbjWidgetBase.Property("节点选中背景",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"nodeCheckedBackground",void 0),__decorate([bbjWidgetBase.Property("双击重命名"),__metadata("design:type",Boolean)],exports.ɵct.prototype,"renamable",void 0),__decorate([bbjWidgetBase.Property("显示搜索框"),__metadata("design:type",Boolean)],exports.ɵct.prototype,"showSearch",void 0),__decorate([bbjWidgetBase.Property("搜索框颜色",{ui:{widget:"myColor",visibleIf:{showSearch:[!0]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"searchBorderColor",void 0),__decorate([bbjWidgetBase.Property("搜索框背景色",{ui:{widget:"myColor",visibleIf:{showSearch:[!0]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"searchBackgroundColor",void 0),__decorate([bbjWidgetBase.Property("搜索框提示语",{type:"string",ui:{visibleIf:{showSearch:[!0]}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"searchPlaceholder",void 0),__decorate([bbjWidgetBase.Property("滚动条颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵct.prototype,"treeScrollbarThumbBackground",void 0),__decorate([bbjWidgetBase.Data({properties:{title:{type:"string",title:"标题"},key:{type:"string",title:"id"},parentKey:{type:"string",title:"父级id"},icon:{type:"string",title:"图标"},count:{type:"string",title:"数量"}}}),__metadata("design:type",Object)],exports.ɵct.prototype,"data",void 0),__decorate([bbjWidgetBase.DataInput("选中值"),__metadata("design:type",Object)],exports.ɵct.prototype,"value",void 0),__decorate([bbjWidgetBase.DataOutput("选中id"),bbjWidgetBase.Event("选中值改变",{params:"id"}),__metadata("design:type",Object)],exports.ɵct.prototype,"keyChange",void 0),__decorate([bbjWidgetBase.Method("搜索"),__param(0,bbjWidgetBase.Param("内容")),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],exports.ɵct.prototype,"search",null),__decorate([bbjWidgetBase.Method("选中"),__param(0,bbjWidgetBase.Param("id")),__metadata("design:type",Function),__metadata("design:paramtypes",[Object]),__metadata("design:returntype",void 0)],exports.ɵct.prototype,"select",null),__decorate([bbjWidgetBase.Event("点击"),__param(0,bbjWidgetBase.EventParam("id")),__param(1,bbjWidgetBase.EventParam("标题")),__metadata("design:type",Function),__metadata("design:paramtypes",[String,String]),__metadata("design:returntype",void 0)],exports.ɵct.prototype,"nodeClick",null),__decorate([bbjWidgetBase.Event("重命名"),__param(0,bbjWidgetBase.EventParam("id")),__param(1,bbjWidgetBase.EventParam("名称")),__metadata("design:type",Function),__metadata("design:paramtypes",[String,String]),__metadata("design:returntype",void 0)],exports.ɵct.prototype,"rename",null),exports.ɵct=__decorate([bbjWidgetBase.Widget("树控件",{group:"component",image:"assets/img/screen/Tree.png",icon:"bianzu40"}),__metadata("design:paramtypes",[util.ArrayService,i0.ElementRef])],exports.ɵct);var TreeControlModule=function(e){e.register(exports.ɵct)};TreeControlModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵct],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,tree.NzTreeModule,input.NzInputModule,forms.FormsModule,highlight.NzHighlightModule,icon.NzIconModule]}]}],TreeControlModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcu=function(){function e(e){this.http=e,this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},this.chartOption=null,this.mapStyle="china",this.trigger="mousemove",this.visualMapPosition={left:"",right:"",top:"",bottom:40},this.level=[{gte:0,lte:50,label:"等级1",color:"#AAAAAA",unit:""},{gte:50,label:"等级2",color:"#FF3333",unit:""}],this.mapColor="#FFFFFF",this.selectAreaColor="#f2d5ad",this.max="高",this.min="低",this.prefix="",this.suffix="",this._data=[{name:"南海诸岛",value:0,tooltip:"告警统计<br />失联告警:0"},{name:"北京",value:54,tooltip:"告警统计<br />失联告警:54"},{name:"天津",value:13,tooltip:"告警统计<br />失联告警:13"},{name:"上海",value:40,tooltip:"告警统计<br />失联告警:40"},{name:"重庆",value:75,tooltip:"告警统计<br />失联告警:75"},{name:"河北",value:13,tooltip:"告警统计<br />失联告警:13"},{name:"海口市",value:70,tooltip:"告警统计<br />失联告警:70"}],this.dataClick=new i0.EventEmitter,this.xData=[],this.yData=[],this.series=[],this.style={color:"",fontFamily:"",fontWeight:"",fontSize:"",lineHeight:""}}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){var t=this;this.style={color:this.font.color,fontFamily:this.font.family,fontWeight:this.font.weight,fontSize:this.font.size,lineHeight:this.font.lineHeight};var o={bottom:40};this.visualMapPosition&&Object.keys(this.visualMapPosition).forEach((function(e){(t.visualMapPosition[e]||0===t.visualMapPosition[e])&&(o[e]=t.visualMapPosition[e])})),e._data&&this.http.get("assets/echarts/map/json/"+this.mapStyle+".json").toPromise().then((function(e){echarts.registerMap(t.mapStyle,e),t.data=e,t.chartOption={tooltip:{triggerOn:t.trigger},visualMap:Object.assign(Object.assign({min:0,max:500},o),{showLabel:!0,text:[],pieces:t.level,textStyle:t.style,show:!0}),series:[{name:"",type:"map",geoIndex:0,mapType:t.mapStyle,label:{normal:{show:!0,formatter:function(e){var o=e.value?e.value:0,i=t.prefix?t.prefix:"",a=t.suffix?t.suffix:"";return(e.name+"-"+i+o+a).split("-").join("\n")},textStyle:t.style},emphasis:{show:!1}},itemStyle:{normal:{borderColor:"rgba(0, 0, 0, 0.2)",areaColor:t.mapColor},emphasis:{areaColor:t.selectAreaColor,shadowOffsetX:0,shadowOffsetY:0,borderWidth:0}},data:t._data}]},t.reloadData()}))},e.prototype.onChartClick=function(e){var t="",o="",i="",a="",r="";void 0!==e.data?(t=e.data.name,o=e.data.value,i=e.data.tooltip):(t=e.name,o="0"),this.data.features.forEach((function(e){e.properties.name===t&&(a=e.properties.cp[0],r=e.properties.cp[1])})),this.dataClick.emit({name:t,value:o,tooltip:i,lng:a,lat:r}),this.onClick(t,o,i,Number(a),Number(r))},e.prototype.reloadData=function(){this.chartOption.visualMap.text.push(this.max),this.chartOption.visualMap.text.push(this.min),"province/hainan"===this.mapStyle&&(this.chartOption.geo.center=[109.844902,19.0392],this.chartOption.geo.layoutCenter=["50%","50%"],this.chartOption.geo.layoutSize="600%")},e.prototype.onClick=function(e,t,o,i,a){},e}(),exports.ɵcu.decorators=[{type:i0.Component,args:[{selector:"sc-visual-map-chart",template:'<div\n echarts\n id="main"\n [options]="chartOption"\n class="demo-chart"\n (chartClick)="onChartClick($event)"\n [initOpts]="{ renderer: \'svg\' }"\n></div>\n',styles:[".demo-chart,:host{height:100%;width:100%}:host{display:block}"]}]}],exports.ɵcu.ctorParameters=function(){return[{type:i2.HttpClient}]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("地图样式",{ui:{widget:"myUrlSelect",url:"/assets/mapListItem.json"}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"mapStyle",void 0),__decorate([bbjWidgetBase.Property("触发提示",{type:"string",enum:[{value:"mousemove",label:"移动"},{value:"click",label:"点击"}],ui:{widget:"radio",styleType:"button",buttonStyle:"solid"},default:"mousemove"}),__metadata("design:type",Object)],exports.ɵcu.prototype,"trigger",void 0),__decorate([bbjWidgetBase.Property("图例位置",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"visualMapPosition",void 0),__decorate([bbjWidgetBase.Property("分级",{type:"array",title:"热力等级",maxItems:10,items:{type:"object",properties:{gte:{type:"number",title:"大于"},lte:{type:"number",title:"小于",minimum:1},label:{type:"string",title:"标签"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}},unit:{type:"string",title:"单位"}},required:["label","color"]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"level",void 0),__decorate([bbjWidgetBase.Property("地图颜色",{type:"string",ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"mapColor",void 0),__decorate([bbjWidgetBase.Property("选中区域颜色",{type:"string",ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"selectAreaColor",void 0),__decorate([bbjWidgetBase.Property("正极名称",{max:{type:"string",title:"max",ui:{}},required:["max"]}),__metadata("design:type",Object)],exports.ɵcu.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("负极名称",{min:{type:"string",title:"min",ui:{}},required:["min"]}),__metadata("design:type",Object)],exports.ɵcu.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("前缀",{min:{type:"string",ui:{}}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"prefix",void 0),__decorate([bbjWidgetBase.Property("后缀",{min:{type:"string",ui:{}}}),__metadata("design:type",Object)],exports.ɵcu.prototype,"suffix",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"地名"},value:{type:"number",title:"值"},tooltip:{type:"string",title:"提示"},lng:{type:"number",title:"中心经度"},lat:{type:"number",title:"中心纬度"}}}),__metadata("design:type",Array)],exports.ɵcu.prototype,"_data",void 0),__decorate([bbjWidgetBase.Drill(),bbjWidgetBase.DataOutput(["name","value","tooltip","lng","lat"]),__metadata("design:type",Object)],exports.ɵcu.prototype,"dataClick",void 0),__decorate([bbjWidgetBase.Event("点击"),__param(0,bbjWidgetBase.EventParam("名称")),__param(1,bbjWidgetBase.EventParam("值")),__param(2,bbjWidgetBase.EventParam("提示")),__param(3,bbjWidgetBase.EventParam("经度")),__param(4,bbjWidgetBase.EventParam("维度")),__metadata("design:type",Function),__metadata("design:paramtypes",[String,String,String,Number,Number]),__metadata("design:returntype",void 0)],exports.ɵcu.prototype,"onClick",null),exports.ɵcu=__decorate([bbjWidgetBase.Widget("2D热力图",{group:"component",image:"assets/img/screen/hotMap.png",icon:"icontubiao"}),__metadata("design:paramtypes",[i2.HttpClient])],exports.ɵcu);var VisualMapChartModule=function(e){e.register(exports.ɵcu)};VisualMapChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcu],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],VisualMapChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var defaultDateEnum=[{label:"当前",value:"now"},{label:"今天",value:"today"},{label:"昨天",value:"yesterday"},{label:"明天",value:"tomorrow"},{label:"本月",value:"thisMonth"},{label:"上个月",value:"lastMonth"},{label:"下个月",value:"nextMonth"},{label:"本周",value:"thisWeek"},{label:"上周",value:"lastWeek"},{label:"下周",value:"nextWeek"},{label:"今年",value:"thisYear"},{label:"去年",value:"lastYear"},{label:"明年",value:"nextYear"}];exports.ɵcv=function(){function e(e){this.i18n=e,this.font={family:"",weight:"normal",size:14,space:0,lineHeight:""},this.backImage=null,this.height=30,this.dateFormat="",this.selectMode="",this.showTime=!1,this.timeFormat="HH:mm:ss",this.alert="请选择日期",this.allowClear=!0,this.data=[],this.dateChange=new i0.EventEmitter,this.endDateChange=new i0.EventEmitter,this.inputDate=new i0.EventEmitter,this.inputEndDate=new i0.EventEmitter,this.dateRange=[]}return e.prototype.ngOnInit=function(){},e.prototype.initDefaultDate=function(){if(this.rangeMode){var e=this.getDefaultDate(this.defaultDate),t=this.getDefaultDate(this.defaultEndDate);this.date=[e,t],(e||t)&&this.onChange(this.date)}else this.date=this.getDefaultDate(this.defaultDate),this.date&&this.onChange(this.date)},e.prototype.getDefaultDate=function(e){if(e){var t=new Date;switch(e){case"now":return t;case"today":return dateFns.startOfDay(t);case"yesterday":return dateFns.addDays(dateFns.startOfDay(t),-1);case"tomorrow":return dateFns.addDays(dateFns.startOfDay(t),1);case"thisMonth":return dateFns.startOfMonth(t);case"lastMonth":return dateFns.addMonths(dateFns.startOfMonth(t),-1);case"nextMonth":return dateFns.addMonths(dateFns.startOfMonth(t),1);case"thisYear":return dateFns.startOfYear(t);case"lastYear":return dateFns.addYears(dateFns.startOfYear(t),-1);case"nextYear":return dateFns.addYears(dateFns.startOfYear(t),1);case"thisWeek":return dateFns.addDays(dateFns.startOfWeek(dateFns.addDays(t,-1)),1);case"lastWeek":return dateFns.addWeeks(dateFns.addDays(dateFns.startOfWeek(dateFns.addDays(t,-1)),1),-1);case"nextWeek":return dateFns.addWeeks(dateFns.addDays(dateFns.startOfWeek(dateFns.addDays(t,-1)),1),1)}}return null},e.prototype.ngOnChanges=function(e){e.dateFormat&&!this.dateFormat&&this.setDefaultFormat(),this.datePickerStyle={borderColor:this.borderColor,backgroundColor:this.background,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",height:this.height+"px",backgroundSize:"100% 100%",lineHeight:this.font.lineHeight+"px"},this.showTime&&(this.nzShowTime={nzFormat:this.timeFormat||"HH:mm:ss",nzHourStep:this.hourStep,nzMinuteStep:this.minuteStep,nzSecondStep:this.secondStep}),this.backImage&&(this.datePickerStyle.backgroundImage="url("+this.backImage+")"),(e.rangeMode||e.defaultDate||e.defaultEndDate)&&this.initDefaultDate(),e.data&&this.updateData(),e.disabledDate&&this.updateDisabledDate(),e.value&&(this.date?"string"==typeof this.date&&(this.date=dateFns.parse(this.date,this.dateFormat,new Date)):this.date=null)},e.prototype.updateDisabledDate=function(){switch(this.disabledDate){case"after":this.nzDisabledDate=function(e){return fp.differenceInCalendarDays(e,new Date)<0};break;case"before":this.nzDisabledDate=function(e){return fp.differenceInCalendarDays(e,new Date)>0};break;default:this.nzDisabledDate=null}},e.prototype.updateData=function(){var e;if(null===(e=this.data)||void 0===e?void 0:e.length){var t=this.data[0],o=t.date,i=t.endDate,a=this.getDate(o);if(this.rangeMode){var r=this.getDate(i);(a||r)&&(this.date=[a||this.date[0],r||this.date[1]],this.onChange(this.date))}else a&&(this.date=a,this.onChange(this.date))}},e.prototype.getDate=function(e){return e?new Date(e):null},e.prototype.onChange=function(e,t){if(this.rangeMode){var o=this.format(this.date[0]),i=this.format(this.date[1]);this.dateChange.emit(o),this.endDateChange.emit(i),t&&(this.inputDate.emit(o),this.inputEndDate.emit(i))}else{var a=this.format(this.date);this.dateChange.emit(a),t&&this.inputDate.emit(a)}},e.prototype.format=function(e){return e?common.formatDate(e,this.dateFormat,this.i18n.getLocaleId()):null},e.prototype.setDefaultFormat=function(){switch(this.selectMode){case"week":this.dateFormat="yyyy-ww";break;case"month":this.dateFormat="yyyy-MM";break;case"year":this.dateFormat="yyyy";break;default:if(this.showTime){if(this.dateFormat="yyyy-MM-dd HH:mm:ss",this.timeFormat)switch(this.timeFormat){case"HH":this.dateFormat="yyyy-MM-dd HH:00:00";break;case"HH:mm":this.dateFormat="yyyy-MM-dd HH:mm:00"}}else this.dateFormat="yyyy-MM-dd"}},e.prototype.setValue=function(e){this.date=e,this.onChange(e)},e.prototype.exportWord=function(){return null},e}(),exports.ɵcv.decorators=[{type:i0.Component,args:[{selector:"sc-date-picker",template:'<ng-container *ngIf="!rangeMode">\n <nz-date-picker\n [nzDisabled]="disabled"\n [nzMode]="selectMode"\n [(ngModel)]="date"\n [nzFormat]="dateFormat"\n (ngModelChange)="onChange(date, true)"\n class="demo-picker"\n [nzPlaceHolder]="alert"\n [ngStyle]="datePickerStyle"\n [nzShowTime]="nzShowTime"\n [nzDisabledDate]="nzDisabledDate"\n [nzAllowClear]="allowClear !== false"\n >\n </nz-date-picker>\n</ng-container>\n<ng-container *ngIf="rangeMode">\n <nz-range-picker\n [nzDisabled]="disabled"\n [nzMode]="selectMode"\n [(ngModel)]="date"\n [nzFormat]="dateFormat"\n (ngModelChange)="onChange(date, true)"\n class="demo-picker"\n [nzPlaceHolder]="alert"\n [ngStyle]="datePickerStyle"\n [nzShowTime]="nzShowTime"\n [nzDisabledDate]="nzDisabledDate"\n [nzAllowClear]="allowClear !== false"\n >\n </nz-range-picker>\n</ng-container>\n',styles:[":host ::ng-deep .demo-picker{background-color:unset;height:32px;width:100%;color:inherit}:host ::ng-deep .ant-picker-input>input{color:inherit;font-size:inherit;font-weight:inherit}:host ::ng-deep .ant-picker-suffix{color:inherit}.ant-picker-disabled::ng-deep .ant-picker-suffix{display:none}"]}]}],exports.ɵcv.ctorParameters=function(){return[{type:i18n.NzI18nService}]},__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",String)],exports.ɵcv.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",String)],exports.ɵcv.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("背景图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"backImage",void 0),__decorate([bbjWidgetBase.Property("高度"),__metadata("design:type",Number)],exports.ɵcv.prototype,"height",void 0),__decorate([bbjWidgetBase.Property("日期格式",{dateFormat:{type:"string",title:"max",ui:{}},required:["dateFormat"]}),__metadata("design:type",Object)],exports.ɵcv.prototype,"dateFormat",void 0),__decorate([bbjWidgetBase.Property("开启区间模式"),__metadata("design:type",Boolean)],exports.ɵcv.prototype,"rangeMode",void 0),__decorate([bbjWidgetBase.Property("默认时间",{type:"string",enum:defaultDateEnum}),__metadata("design:type",String)],exports.ɵcv.prototype,"defaultDate",void 0),__decorate([bbjWidgetBase.Property("默认结束时间",{type:"string",enum:defaultDateEnum,ui:{widget:"select",visibleIf:{rangeMode:[!0]}}}),__metadata("design:type",String)],exports.ɵcv.prototype,"defaultEndDate",void 0),__decorate([bbjWidgetBase.Property("选择模式",{type:"string",enum:[{label:"默认",value:""},{label:"周",value:"week"},{label:"月份",value:"month"},{label:"年份",value:"year"}]}),__metadata("design:type",String)],exports.ɵcv.prototype,"selectMode",void 0),__decorate([bbjWidgetBase.Property("显示时间",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcv.prototype,"showTime",void 0),__decorate([bbjWidgetBase.Property("时间格式",{enum:[{label:"时分秒",value:"HH:mm:ss"},{label:"时分",value:"HH:mm"},{label:"时",value:"HH"}],ui:{widget:"select",visibleIf:{showTime:[!0]}}}),__metadata("design:type",String)],exports.ɵcv.prototype,"timeFormat",void 0),__decorate([bbjWidgetBase.Property("小时间隔",{ui:{visibleIf:{showTime:[!0]}}}),__metadata("design:type",Number)],exports.ɵcv.prototype,"hourStep",void 0),__decorate([bbjWidgetBase.Property("分钟间隔",{ui:{visibleIf:{timeFormat:["HH:mm:ss","HH:mm"]}}}),__metadata("design:type",Number)],exports.ɵcv.prototype,"minuteStep",void 0),__decorate([bbjWidgetBase.Property("秒间隔",{ui:{visibleIf:{timeFormat:["HH:mm:ss"]}}}),__metadata("design:type",Number)],exports.ɵcv.prototype,"secondStep",void 0),__decorate([bbjWidgetBase.Property("提示语"),__metadata("design:type",Object)],exports.ɵcv.prototype,"alert",void 0),__decorate([bbjWidgetBase.Property("是否禁用"),__metadata("design:type",Boolean)],exports.ɵcv.prototype,"disabled",void 0),__decorate([bbjWidgetBase.Property("不可选日期",{enum:[{label:"今天之后",value:"after"},{label:"今天之前",value:"before"}]}),__metadata("design:type",String)],exports.ɵcv.prototype,"disabledDate",void 0),__decorate([bbjWidgetBase.Property("清除按钮",{type:"boolean",default:!0}),__metadata("design:type",Object)],exports.ɵcv.prototype,"allowClear",void 0),__decorate([bbjWidgetBase.Data({properties:{date:{title:"日期",type:"string"},endDate:{title:"结束日期",type:"string"}}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput("值"),bbjWidgetBase.Event("值改变",{params:{title:"值"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"dateChange",void 0),__decorate([bbjWidgetBase.DataOutput("结束"),bbjWidgetBase.Event("结束值",{params:{title:"结束值"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"endDateChange",void 0),__decorate([bbjWidgetBase.Event("输入",{params:{title:"值"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"inputDate",void 0),__decorate([bbjWidgetBase.Event("输入结束时间",{params:{title:"结束值"}}),__metadata("design:type",Object)],exports.ɵcv.prototype,"inputEndDate",void 0),__decorate([bbjWidgetBase.DataInput("值"),__metadata("design:type",Object)],exports.ɵcv.prototype,"date",void 0),__decorate([bbjWidgetBase.Method("设置值"),__param(0,bbjWidgetBase.Param("值")),__metadata("design:type",Function),__metadata("design:paramtypes",[Date]),__metadata("design:returntype",void 0)],exports.ɵcv.prototype,"setValue",null),exports.ɵcv=__decorate([bbjWidgetBase.Widget("日期选择器",{group:"component",image:"assets/img/screen/date-picker.png",icon:"riqi",platform:"pc"}),__metadata("design:paramtypes",[i18n.NzI18nService])],exports.ɵcv);var DatePickerModule=function(e){e.register(exports.ɵcv)};DatePickerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcv],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,datePicker.NzDatePickerModule,forms.FormsModule],exports:[exports.ɵcv]}]}],DatePickerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵcx=function(){function e(){this.borderColor="#3285ff",this.backImage=null,this.height=30,this.font={family:"",color:"#3285ff",weight:"normal",size:12,space:0,lineHeight:""},this.background="rgba(50,133,255,0.2)",this.timeFormat="HH:mm:ss",this.alert="请选择时间",this.timeChange=new i0.EventEmitter,this.time=null,this.defaultOpenValue=new Date(0,0,0,0,0,0)}return e.prototype.ngOnInit=function(){this.timePickerStyle={borderColor:this.borderColor,backgroundColor:this.background,fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px",height:this.height+"px",backgroundImage:"url("+this.backImage+")",backgroundSize:"100% 100%"}},e.prototype.onChange=function(e){var t="";null!==e&&(t=dateFns.format(e,this.timeFormat)),this.timeChange.emit(t)},e}(),exports.ɵcx.decorators=[{type:i0.Component,args:[{selector:"sc-time-picker",template:'<nz-time-picker [(ngModel)]="time" (ngModelChange)="onChange(time)" [nzFormat]="timeFormat" [nzDefaultOpenValue]="defaultOpenValue" [nzPlaceHolder]="alert" class="time-picker" [ngStyle]="timePickerStyle" ></nz-time-picker>\n',styles:[":host ::ng-deep .time-picker{background-color:unset;height:32px;width:100%;color:inherit}:host ::ng-deep .ant-picker-input>input,:host ::ng-deep .ant-picker-suffix{color:inherit}"]}]}],exports.ɵcx.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("边框",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵcx.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("背景图片",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵcx.prototype,"backImage",void 0),__decorate([bbjWidgetBase.Property("高度"),__metadata("design:type",Number)],exports.ɵcx.prototype,"height",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcx.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵcx.prototype,"background",void 0),__decorate([bbjWidgetBase.Property("时间格式",{timeFormat:{type:"string",title:"max",ui:{}},required:["timeFormat"]}),__metadata("design:type",Object)],exports.ɵcx.prototype,"timeFormat",void 0),__decorate([bbjWidgetBase.Property("提示语"),__metadata("design:type",Object)],exports.ɵcx.prototype,"alert",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵcx.prototype,"timeChange",void 0),exports.ɵcx=__decorate([bbjWidgetBase.Widget("时间选择器",{group:"component",image:"assets/img/screen/time-picker.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵcx);var TimePickerModule=function(e){e.register(exports.ɵcx)};TimePickerModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcx],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,timePicker.NzTimePickerModule,forms.FormsModule]}]}],TimePickerModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var MapTypeEnum=[{label:"普通",value:"normal"},{label:"深色",value:"dark"},{label:"卫星",value:"satellite"},{label:"自定义",value:"custom"}];exports.ɵcy=function(){function e(e,t,o,i,a,r,n){var s=this;this.baiduMapService=e,this.http=t,this.elementRef=o,this.zone=i,this.scale$=a,this.cd=r,this.widgetRef=n,this.mapType="normal",this.minMapShow=!1,this.showType="click",this.dragging=!0,this.shadeColor="#004395",this.mapCityColor="#41b7ff",this.zoom=12,this.fillOpacity=0,this.strokesize=2,this.nightMode=!1,this.tilt=73,this.centerLng=120.7,this.centerLat=28,this.cityName=null,this._data=[{lng:120.7,lat:28}],this.dataChange=new i0.EventEmitter,this.zoomChange=new i0.EventEmitter,this.mapClick=new i0.EventEmitter,this.destroy$=new rxjs.Subject,this.overlaysMap={},this.init$=new Promise((function(e){s.inited=e})),this.mapTypeEnum=MapTypeEnum.slice(0,3)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.elementRef.nativeElement},enumerable:!1,configurable:!0}),e.prototype.addLayer=function(e){this.view&&this.view.addLayer(e)},e.prototype.removeLayer=function(e){this.view&&this.view.removeLayer(e)},e.prototype.ngOnChanges=function(e){e._data&&this._data[0]&&(this.centerLng=+this._data[0].lng,this.centerLat=+this._data[0].lat,this.setCenter(this.centerLng,this.centerLat))},e.prototype.ngOnInit=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:return this.scale$&&this.scale$.pipe(operators.takeUntil(this.destroy$)).subscribe((function(t){var o=t.x,i=t.y,a=t.scaleContent,r=e.element.style;if(!1===a)e.zone.onStable.pipe(operators.take(1)).subscribe((function(){var t=e.element.parentNode;if(t){var o=/translate\(([-\d.]+)px, ([-\d.]+)px\)/.exec(t.style.transform);if(o){var i=parseFloat(o[1]),a=parseFloat(o[2]);r.transform="translate("+-i+"px,"+-a+"px)",r.height=t.clientHeight+a+"px",r.width=t.clientWidth+i+"px",r.padding=a+"px 0 0 "+i+"px"}}}));else{var n=e.widgetRef.widget,s=n.position,d=n.size,l=s.x,p=s.y,c=d.width,g=d.height;r.transform="translate("+-l+"px,"+-p+"px) scale("+1/o+","+1/i+")",r.height=(p+g)*i+"px",r.width=(l+c)*o+"px",r.padding=p*i+"px 0 0 "+l*o+"px"}})),[4,this.initMap()];case 1:return t.sent(),[2]}}))}))},e.prototype.initMap=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.baiduMapService.loadMapGL()];case 1:return t.sent(),[4,this.baiduMapService.loadMapVGL()];case 2:return t.sent(),this.mapTypeValue=this.mapType,null==this.mapType&&(this.uploadStyle?this.mapTypeValue="custom":this.nightMode&&(this.mapTypeValue="dark")),this.destroyed||(this.zone.runOutsideAngular((function(){if(e.map=new BMapGL.Map(e.container.nativeElement,{restrictCenter:!1}),e.map.centerAndZoom(new BMapGL.Point(e.centerLng,e.centerLat),e.zoom),e.map.enableScrollWheelZoom(),e.mapTypeChange(e.mapTypeValue),(e.edit||!1===e.dragging)&&e.map.disableDragging(),e.enable3D?(e.map.setTilt(null==e.tilt?73:e.tilt,{noAnimation:!0}),e.map.setDisplayOptions({skyColors:["rgba(0, 0, 0, 0)"]})):(e.map.disableTilt(),e.map.disableRotate()),e.showLocationControl){var t={anchor:BMAP_ANCHOR_TOP_LEFT,offset:new BMapGL.Size(20,20)},o=new BMapGL.LocationControl(t);e.map.addControl(o)}if(e.minMapShow){var i=new BMapGL.PanoramaControl;i.setOffset(new BMapGL.Size(20,20)),e.map.addControl(i)}e.infoWindowBackground&&e.element.style.setProperty("--info-window-background",e.infoWindowBackground),e.infoWindowColor&&e.element.style.setProperty("--info-window-color",e.infoWindowColor),e.infoWindowBorderColor&&e.element.style.setProperty("--info-window-border-color",e.infoWindowBorderColor),e.map.addEventListener("moveend",(function(t){var o=e.map.getCenter();e.dataChange.emit(o)})),e.map.addEventListener("click",(function(t){e.mapClick.emit(t.pointer)})),e.map.addEventListener("zoomend",(function(t){e.zoomChange.emit(e.map.getZoom()),e.dataChange.emit(e.map.getCenter())})),e.view=new mapvgl.View({map:e.map}),e.mapLoaded(e.map)})),this.inited(this.map)),[2]}}))}))},e.prototype.setCenter=function(e,t){if(this.map&&e&&t){var o=this.map.getCenter();o.lng==e&&o.lat==t||this.setCenterAndZoom(e,t,this.map.getZoom())}},e.prototype.setCenterAndZoom=function(e,t,o){var i=this.map.getCenter();if(o!=this.map.getZoom()||Math.abs(e-i.lng)>1e-13||Math.abs(t-i.lat)>1e-7){var a=new BMapGL.Point(e,t);this.map.centerAndZoom(a,o,{tilt:this.map.getTilt()})}},e.prototype.setRectCenterAndZoom=function(e,t,o,i){this.setCenterAndZoom((t+e)/2,(i+o)/2,this.getZoom(t,e,i,o))},e.prototype.getZoom=function(e,t,o,i){var a=new BMapGL.Point(e,o),r=new BMapGL.Point(t,i),n=+this.map.getDistance(a,r).toFixed(1),s=[50,100,200,500,1e3,2e3,5e3,1e4,2e4,25e3,5e4,1e5,2e5,5e5,1e6,2e6].findIndex((function(e){return e-n>0}));return-1===s?5:18-s+3},e.prototype.openInfoWindow=function(e,t,o){var i=this;if(e.information||this.infoWindowTemplate){var a=new BMapGL.Point(+t,+o),r=e.information;this.infoWindowTemplate&&(r=bbjWidgetBase.TemplateUtil.parse(this.infoWindowTemplate,e));var n={offset:new BMapGL.Size(0,0),width:this.infoWindowWidth||0,height:this.infoWindowHeight||0},s=new BMapGL.InfoWindow(r,n);if(this.firstOpen)this.map.openInfoWindow(s,a);else{this.firstOpenPromise?this.firstOpenPromise.then((function(){i.map.openInfoWindow(s,a)})):(this.firstOpenPromise=new Promise((function(e){setTimeout((function(){i.firstOpen=!0,i.firstOpenPromise=null,e()}),500)})),this.map.openInfoWindow(s,a));var d=s.close;s.close=function(){i.firstOpenPromise?i.firstOpenPromise.then((function(){return d.call(s)})):d.call(s)}}return s}},e.prototype.getCanvasOverlay=function(e){var t,o=this;if(this.enable3D){var i=e.item;if(i){var a=new BMapGL.Point(i.start.lng,i.start.lat),r=new BMapGL.Point(i.end.lng,i.end.lat),n=new BMapGL.Bounds(new BMapGL.Point(a.lng,r.lat),new BMapGL.Point(r.lng,a.lat));t=new BMapGL.GroundOverlay(n,{type:"canvas",url:i.canvas,opacity:1})}}else{var s=function(e){var t=new BMapGL.Point(e.lng,e.lat);return o.map.pointToPixel(t)};t=new BMapGL.CanvasLayer({paneName:"markerShadow",update:function(){var t=this.canvas.getContext("2d");t&&(t.clearRect(0,0,t.canvas.width,t.canvas.height),e.update(t,s))}})}return t},e.prototype.ngOnDestroy=function(){if(this.destroy$.next(),this.destroy$.complete(),this.destroyed=!0,this.view)try{this.view.destroy()}catch(e){console.error(e)}if(this.map)try{this.map.destroy()}catch(e){console.error(e)}},e.prototype.mapLoaded=function(e){return __awaiter(this,void 0,void 0,(function(){var e,t,o,i,a,r,n=this;return __generator(this,(function(s){switch(s.label){case 0:return this.cityName?("温州"===this.cityName&&(this.cityName="wenzhou"),[4,this.http.get("assets/echarts/map/json/"+this.cityName+".json").toPromise()]):[3,2];case 1:e=s.sent(),t=[],o=e.UTF8Scale||1024,e.features.forEach((function(i){var a=i.geometry;a.coordinates=a.coordinates.forEach((function(i,r){if("MultiPolygon"===a.type){var s=i.map((function(t,i){return e.UTF8Encoding&&(t=n.decodePolygon(t,a.encodeOffsets[r][i],o)),t}));t.push(s)}else e.UTF8Encoding&&(i=n.decodePolygon(i,a.encodeOffsets[r],o)),t.push([i])}))})),i=[{geometry:{type:"MultiPolygon",coordinates:t}}],a=new mapvgl.PolygonLayer({lineColor:this.mapCityColor,lineWidth:this.strokesize||2,fillColor:this.shadeColor,data:i,renderOrder:-2}),this.view.addLayer(a),this.mapBackColor&&!this.mapBackColor.match(/rgba\(\d+,\d+,\d+,0\)/)&&(r=new mapvgl.MaskLayer({color:this.mapBackColor,data:i,renderOrder:-3}),this.view.addLayer(r)),s.label=2;case 2:return[2]}}))}))},e.prototype.decodePolygon=function(e,t,o){for(var i=[],a=t[0],r=t[1],n=0;n<e.length;n+=2){var s=e.charCodeAt(n)-64,d=e.charCodeAt(n+1)-64;s=s>>1^-(1&s),d=d>>1^-(1&d),a=s+=a,r=d+=r,i.push([s/o,d/o])}return i},e.prototype.mapTypeChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o;return __generator(this,(function(i){switch(i.label){case 0:switch(e){case"dark":return[3,1];case"satellite":return[3,4];case"custom":return[3,5]}return[3,8];case 1:return this.darkStyle?[3,3]:(t=this,[4,this.http.get("assets/echarts/map/json/custom_map.json").toPromise()]);case 2:t.darkStyle=i.sent(),i.label=3;case 3:return this.map.setMapType(BMAP_NORMAL_MAP),this.map.setMapStyleV2({styleJson:this.darkStyle}),[3,9];case 4:return this.map.setMapType(BMAP_SATELLITE_MAP),[3,9];case 5:return this.uploadStyle?[4,this.http.get(this.uploadStyle).toPromise()]:[3,7];case 6:o=i.sent(),this.map.setMapType(BMAP_NORMAL_MAP),this.map.setMapStyleV2({styleJson:o}),i.label=7;case 7:return[3,9];case 8:this.map.setMapType(BMAP_NORMAL_MAP),this.map.setMapStyleV2({styleJson:null}),i.label=9;case 9:return[2]}}))}))},e}(),exports.ɵcy.decorators=[{type:i0.Component,args:[{selector:"sc-custom-baidu-map",template:'<ng-template *ngFor="let child of children" widget-host [widget]="child"></ng-template>\n\n\x3c!-- {{children|json}} --\x3e\n\x3c!-- <div class="map-container" [ngStyle]="containerStyle"> --\x3e\n<div #container class="map"></div>\n<nz-radio-group\n *ngIf="showMapTypeRadio"\n class="map-type-radio"\n [(ngModel)]="mapTypeValue"\n (ngModelChange)="mapTypeChange($event)"\n nzButtonStyle="solid"\n>\n <label *ngFor="let item of mapTypeEnum" nz-radio-button [nzValue]="item.value">{{ item.label }}</label>\n</nz-radio-group>\n\x3c!-- </div> --\x3e\n',styles:[':host{display:block;height:100%;width:100%;overflow:hidden;transform-origin:0 0;z-index:0;pointer-events:none}:host>*{pointer-events:auto}.map{height:100%;width:100%}:host::ng-deep .BMap_bubble_pop{background-color:var(--info-window-background,#fff)!important;border-color:var(--info-window-border-color,#ddd)!important}:host::ng-deep .BMap_bubble_content{color:var(--info-window-color,"#555555")!important}:host::ng-deep .BMap_pop div{background-color:var(--info-window-background,#fff)!important}:host::ng-deep .BMap_pop>div:nth-child(8){background-color:transparent!important}:host.hideInfoWindowTail::ng-deep .BMap_bubble_pop>img,:host.hideInfoWindowTail::ng-deep .BMap_pop>div:nth-child(8),:host::ng-deep img[src$="/image/api/iws3.png"]{display:none}:host.hideInfoWindowTop::ng-deep .BMap_bubble_pop{transform:translateY(31px)}:host.hideInfoWindowTop::ng-deep .BMap_bubble_pop>img{transform:translateY(-31px)}:host.hideInfoWindowTop::ng-deep .BMap_bubble_top,:host::ng-deep .anchorBL{display:none}.map-type-radio{position:absolute;bottom:20px;right:20px;z-index:10}']}]}],exports.ɵcy.ctorParameters=function(){return[{type:i1.BaiduMapService},{type:i2.HttpClient},{type:i0.ElementRef},{type:i0.NgZone},{type:bbjWidgetBase.ScaleSubject,decorators:[{type:i0.Optional}]},{type:i0.ChangeDetectorRef},{type:bbjWidgetBase.WidgetRef}]},exports.ɵcy.propDecorators={hideInfoWindowTail:[{type:i0.HostBinding,args:["class.hideInfoWindowTail"]}],hideInfoWindowTop:[{type:i0.HostBinding,args:["class.hideInfoWindowTop"]}],container:[{type:i0.ViewChild,args:["container",{static:!0}]}]},__decorate([bbjWidgetBase.Property("地图类型",{enum:MapTypeEnum}),__metadata("design:type",Object)],exports.ɵcy.prototype,"mapType",void 0),__decorate([bbjWidgetBase.Property("上传样式",{type:"string",ui:{widget:"myUploadAudio",visibleIf:{mapType:["custom"]}}}),__metadata("design:type",String)],exports.ɵcy.prototype,"uploadStyle",void 0),__decorate([bbjWidgetBase.Property("切换按钮"),__metadata("design:type",Boolean)],exports.ɵcy.prototype,"showMapTypeRadio",void 0),__decorate([bbjWidgetBase.Property("全景地图",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcy.prototype,"minMapShow",void 0),__decorate([bbjWidgetBase.Property("显示信息",{ui:{widget:"select"},enum:[{label:"点击",value:"click"},{label:"悬停",value:"mouseover"}]}),__metadata("design:type",Object)],exports.ɵcy.prototype,"showType",void 0),__decorate([bbjWidgetBase.Property("信息窗背景",{ui:{widget:"myColor"}}),__metadata("design:type",String)],exports.ɵcy.prototype,"infoWindowBackground",void 0),__decorate([bbjWidgetBase.Property("信息窗字体",{ui:{widget:"myColor"}}),__metadata("design:type",String)],exports.ɵcy.prototype,"infoWindowColor",void 0),__decorate([bbjWidgetBase.Property("信息窗宽度"),__metadata("design:type",Number)],exports.ɵcy.prototype,"infoWindowWidth",void 0),__decorate([bbjWidgetBase.Property("信息窗高度"),__metadata("design:type",Number)],exports.ɵcy.prototype,"infoWindowHeight",void 0),__decorate([bbjWidgetBase.Property("信息窗模板",{ui:{widget:"textarea"}}),__metadata("design:type",String)],exports.ɵcy.prototype,"infoWindowTemplate",void 0),__decorate([bbjWidgetBase.Property("信息窗边框",{ui:{widget:"myColor"},example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}),__metadata("design:type",String)],exports.ɵcy.prototype,"infoWindowBorderColor",void 0),__decorate([bbjWidgetBase.Property("隐藏尖角"),__metadata("design:type",Boolean)],exports.ɵcy.prototype,"hideInfoWindowTail",void 0),__decorate([bbjWidgetBase.Property("隐藏关闭按钮"),__metadata("design:type",Boolean)],exports.ɵcy.prototype,"hideInfoWindowTop",void 0),__decorate([bbjWidgetBase.Property("地图拖动",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵcy.prototype,"dragging",void 0),__decorate([bbjWidgetBase.Property("遮罩颜色",{ui:{widget:"myColor"},example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}),__metadata("design:type",Object)],exports.ɵcy.prototype,"shadeColor",void 0),__decorate([bbjWidgetBase.Property("背景颜色",{ui:{widget:"myColor"},example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}),__metadata("design:type",String)],exports.ɵcy.prototype,"mapBackColor",void 0),__decorate([bbjWidgetBase.Property("多边线色",{ui:{widget:"myColor"},example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}),__metadata("design:type",Object)],exports.ɵcy.prototype,"mapCityColor",void 0),__decorate([bbjWidgetBase.Property("地图缩放",{ui:{widget:"myRange",min:1,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"zoom",void 0),__decorate([bbjWidgetBase.Property("遮罩透明",{type:"number"}),__metadata("design:type",Object)],exports.ɵcy.prototype,"fillOpacity",void 0),__decorate([bbjWidgetBase.Property("多边线粗",{type:"number"}),__metadata("design:type",Object)],exports.ɵcy.prototype,"strokesize",void 0),__decorate([bbjWidgetBase.Property("黑夜模式",{type:"boolean",ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"nightMode",void 0),__decorate([bbjWidgetBase.Property("3D视角"),__metadata("design:type",Boolean)],exports.ɵcy.prototype,"enable3D",void 0),__decorate([bbjWidgetBase.Property("定位控件"),__metadata("design:type",Boolean)],exports.ɵcy.prototype,"showLocationControl",void 0),__decorate([bbjWidgetBase.Property("初始角度",{type:"number",ui:{visibleIf:{enable3D:[!0]}}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"tilt",void 0),__decorate([bbjWidgetBase.Property("显示省市",{ui:{widget:"myUrlSelect",allowClear:!0,url:"/assets/mapListItem.json"}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"cityName",void 0),__decorate([bbjWidgetBase.Data({properties:{lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}),__metadata("design:type",Array)],exports.ɵcy.prototype,"_data",void 0),__decorate([bbjWidgetBase.DataOutput(["lng","lat"]),bbjWidgetBase.Event("中心点改变",{params:{properties:{lng:{title:"经度",type:"number"},lat:{title:"纬度",type:"number"}}}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"dataChange",void 0),__decorate([bbjWidgetBase.DataOutput("缩放等级"),bbjWidgetBase.Event("缩放",{params:"缩放等级"}),__metadata("design:type",Object)],exports.ɵcy.prototype,"zoomChange",void 0),__decorate([bbjWidgetBase.Event("地图点击",{params:{properties:{lng:{title:"经度",type:"number"},lat:{title:"纬度",type:"number"}}}}),__metadata("design:type",Object)],exports.ɵcy.prototype,"mapClick",void 0),exports.ɵcy=__decorate([bbjWidgetBase.Widget("百度地图",{group:"component",image:"assets/img/screen/my-baidu-map.png",children:[{title:"标记层",type:"sc-baidu-marker-layer",option:{},hidden:!0,hideChild:!0}],childTypes:["sc-baidu-marker-layer","sc-baidu-polyline-layer","sc-wind-layer","sc-typhoon-area-layer"],description:"hasChildItem"}),__metadata("design:paramtypes",[i1.BaiduMapService,i2.HttpClient,i0.ElementRef,i0.NgZone,bbjWidgetBase.ScaleSubject,i0.ChangeDetectorRef,bbjWidgetBase.WidgetRef])],exports.ɵcy),exports.ɵdc=function(){function e(e){this.parent=e,this.sharpness=1e3,this.groups=[{group:"3",color:"rgba(62,194,35,0.4)",borderColor:"#60db91",borderWidth:1,shadowColor:"rgba(96,219,145,0.2)"},{group:"2",color:"rgba(255,101,41,0.4)",borderColor:"#ff7b48",borderWidth:1,shadowColor:"rgba(255,166,51,0.2)"},{group:"1",color:"rgba(243,68,68,0.4)",borderColor:"#ff3355",borderWidth:1,shadowColor:"rgba(255,51,85,0.2)",image:"/assets/img/screen/typhoon.png"}],this.data=[{lng:121.3,lat:27.4,group:"3",r:160},{lng:119.5,lat:29.97,group:"3",r:160},{lng:120.52,lat:33.93,group:"3",r:75},{lng:121.3,lat:27.4,group:"2",r:80},{lng:119.5,lat:29.97,group:"2",r:80},{lng:120.52,lat:33.93,group:"2",r:50},{lng:121.3,lat:27.4,group:"1",r:40},{lng:119.5,lat:29.97,group:"1",r:40},{lng:120.52,lat:33.93,group:"1",r:25}]}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return this.updateOverlay(),[2]}))}))},e.prototype.updateOverlay=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.parent.init$];case 1:return t.sent(),this.remove(),e=this.getCanvas(),this.addCanvasOverlay(e),[2]}}))}))},e.prototype.addCanvasOverlay=function(e){if(e){var t=new BMapGL.Point(e.start.lng,e.start.lat),o=new BMapGL.Point(e.end.lng,e.end.lat),i=new BMapGL.Bounds(new BMapGL.Point(t.lng,o.lat),new BMapGL.Point(o.lng,t.lat));this.canvasOverlay=new BMapGL.GroundOverlay(i,{type:"canvas",url:e.canvas,opacity:1}),this.parent.map.addOverlay(this.canvasOverlay)}},e.prototype.ngOnDestroy=function(){this.remove()},e.prototype.remove=function(){this.canvasOverlay&&(this.parent.map.removeOverlay(this.canvasOverlay),this.canvasOverlay=null)},e.prototype.getCanvas=function(){if(this.data&&this.data.length>=3){var e=180,t=90,o=-180,i=-90,a=this.data.map((function(a){var r=180*+a.r/Math.PI/6371.393;return e=Math.min(e,+a.lng-r),t=Math.min(t,+a.lat-r),o=Math.max(o,+a.lng+r),i=Math.max(i,+a.lat+r),Object.assign(Object.assign({},a),{r:r})})),r=this.sharpness||1e3,n=Math.min(r/(o-e),r/(i-t)),s=document.createElement("canvas");s.width=Math.round((o-e)*n),s.height=Math.round((i-t)*n);var d={};return a.forEach((function(t){var o=t.group;if(o){var a=d[o];a||(a=[],d[o]=a),a.push({x:(+t.lng-e)*n,y:(i-+t.lat)*n,r:t.r*n})}})),this.groups.forEach((function(e){var t=d[e.group];if((null==t?void 0:t.length)>=3){var o=s.getContext("2d"),i=t[0],a=t[Math.floor(t.length/2)],r=t[t.length-1],n=o.createRadialGradient(i.x,i.y,0,i.x,i.y,i.r);n.addColorStop(1,e.shadowColor||"green"),n.addColorStop(0,"rgba(0,0,0,0)"),o.fillStyle=n,o.beginPath(),o.arc(i.x,i.y,i.r,0,2*Math.PI,!0),o.closePath(),o.fill();var l=function(e,t){var o=Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));return{x:t.x+t.r*(e.y-t.y)/o,y:t.y+t.r*(t.x-e.x)/o}};o.beginPath();var p=Math.atan((a.x-i.x)/(i.y-a.y));o.arc(i.x,i.y,i.r,p-Math.PI,p,!1);var c=l(i,a),g=l(a,r);o.quadraticCurveTo(c.x,c.y,g.x,g.y),p=Math.atan((r.x-a.x)/(a.y-r.y)),o.arc(r.x,r.y,r.r,p,p+Math.PI,!0),c=l(r,a),g=l(a,i),o.quadraticCurveTo(c.x,c.y,g.x,g.y),o.closePath(),o.fillStyle=e.color||"green",o.fill(),o.lineWidth=e.borderWidth||1,o.beginPath(),o.arc(i.x,i.y,i.r,0,2*Math.PI,!0),o.closePath(),o.strokeStyle=e.borderColor||"green",o.stroke()}})),{start:{lng:e,lat:t},end:{lng:o,lat:i},canvas:s}}},e}(),exports.ɵdc.decorators=[{type:i0.Component,args:[{selector:"sc-wind-layer",template:"",styles:[""]}]}],exports.ɵdc.ctorParameters=function(){return[{type:exports.ɵcy}]},__decorate([bbjWidgetBase.Property("清晰度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdc.prototype,"sharpness",void 0),__decorate([bbjWidgetBase.Property("标记分组",{type:"array",title:"标记分组",maxItems:10,items:{type:"object",properties:{group:{type:"string",title:"分组"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}},borderColor:{type:"string",title:"线条颜色",ui:{widget:"myColor"}},borderWidth:{type:"number",title:"线条粗细"},shadowColor:{type:"string",title:"阴影颜色",ui:{widget:"myColor"}},image:{type:"string",title:"中心图片",ui:{widget:"myUpload"}}}},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵdc.prototype,"groups",void 0),__decorate([bbjWidgetBase.Data({properties:{lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"},r:{type:"number",title:"半径"},group:{type:"string",title:"分组"}}}),__metadata("design:type",Array)],exports.ɵdc.prototype,"data",void 0),exports.ɵdc=__decorate([bbjWidgetBase.Widget("台风层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[exports.ɵcy])],exports.ɵdc);var BaseLayer=function(){function e(e,t){this.parent=e,this.zone=t,this.layers=[]}return e.prototype.ngOnInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.updateLayers()}))},e.prototype.ngOnChanges=function(e){var t=this;this.inited&&this.zone.runOutsideAngular((function(){t.updateData()}))},e.prototype.ngOnDestroy=function(){this.removeLayers()},e.prototype.updateLayers=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.parent.init$];case 1:return t.sent(),this.removeLayers(),this.layers=this.createLayers(),this.layers.forEach((function(t){e.parent.addLayer(t)})),this.inited=!0,this.updateData(),[2]}}))}))},e.prototype.removeLayers=function(){var e=this;this.layers.length&&(this.layers.forEach((function(t){e.parent.removeLayer(t)})),this.layers=[])},e}();BaseLayer.decorators=[{type:i0.Directive}],BaseLayer.ctorParameters=function(){return[{type:exports.ɵcy},{type:i0.NgZone}]};var getUUID=function(){return uuid.v1().replace(/-/g,"")},ɵ0$b={type:"string",title:"id"},ɵ1$b={type:"string",title:"id"},ɵ2$9={type:"string",title:"id"};exports.ɵcz=function(e){function t(t,o,i,a){var r=e.call(this,t,o)||this;return r.parent=t,r.zone=o,r.fileUrlService=i,r.nzContextMenuService=a,r.iconUrl="assets/img/screen/marker.png",r.iconWidth=25,r.iconHeight=38.25,r.iconOffsetX=0,r.iconOffsetY=-19.125,r.toCenter=!1,r.enableMarkerClusterer=!1,r.clusterMinSize=25,r.clusterMaxSize=40,r.clusterFont={color:"#ffffff",size:16},r.clusterMaxZoom=4,r.labelFont={family:"",color:"#000000",weight:"normal",size:16,space:0,lineHeight:0},r.shadow={color:"",X:0,Y:0,Z:0},r.unselectOnClickBlank=!0,r.groups=[],r._data=[{id:"1",address:"",information:"暂无信息",group:"",lng:"120.7",lat:"28"}],r.makerClick=new i0.EventEmitter,r.onClick=new i0.EventEmitter,r.layers=[],r.layerMap={},r.dataMap={},r.destroy$=new rxjs.Subject,r}return __extends(t,e),t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.showLabel&&null!=this.showLabelMinZoom&&this.parent.zoomChange.pipe(operators.takeUntil(this.destroy$)).subscribe((function(e){t.updateTextVisible(e)}))},t.prototype.ngOnChanges=function(e){var t=this;this.inited&&(e._data&&this.zone.runOutsideAngular((function(){t.updateData()})),e.selectedId&&this.selectedId!=this.currentSelectedId&&this.select(this.selectedId,{move:!0}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.destroy$.next(),this.destroy$.complete()},t.prototype.createLayers=function(){var e,t=this,o=[];this.layerMap={};var i=this.createLayer();if(this.layerMap[""]=i,o.push(i),(null===(e=this.groups)||void 0===e?void 0:e.length)&&this.groups.forEach((function(e){if(e.group){var i=t.createLayer(e);t.layerMap[e.group]=i,o.push(i)}})),!this.enableMarkerClusterer&&this.showLabel){var a=Object.assign(Object.assign({},this.getTextOptions(this.labelFont)),{flat:!1,collides:!0,offset:[this.labelOffsetX||0,this.labelOffsetY||0],stroke:{color:this.stroke},padding:[2,2],margin:[0,0]});this.stroke&&"rgba(0,0,0,0)"!==this.stroke&&(a.stroke={color:this.stroke}),this.strokeWidth&&(a.lineWidth=this.strokeWidth),this.shadow&&(a.shadow={color:this.shadow.color,blur:this.shadow.Z,offsetX:this.shadow.X,offsetY:this.shadow.Y}),this.textLayer=new mapvgl.TextLayer(a),null!=this.showLabelMinZoom&&this.parent.init$.then((function(){var e=t.parent.map.getZoom();t.updateTextVisible(e)})),o.push(this.textLayer)}return o},t.prototype.createLayer=function(e){var t,o,i=this,a=null==e?void 0:e.type;if("circle"===a||"square"===a){var r={shape:a,color:(null==e?void 0:e.color)||"rgba(50, 50, 200, 1)",size:(null==e?void 0:e.size)||10};this.addPickEvent(r),o=new mapvgl.PointLayer(r)}else if("bubble"===a||"wave"===a){r={type:a,color:(null==e?void 0:e.color)||"rgba(255, 0, 0, 1)",size:(null==e?void 0:e.size)||10,duration:1,trail:1};this.addPickEvent(r),o=new mapvgl.CircleLayer(r)}else{var n=this.getIconOptions(e);if(this.enableMarkerClusterer||(null==e?void 0:e.enableMarkerClusterer)){r={iconOptions:n,textOptions:this.getTextOptions(this.clusterFont),minSize:this.clusterMinSize||25,maxSize:this.clusterMaxSize||40};if(null===(t=this.clusterGradient)||void 0===t?void 0:t.length){var s={};s[0]=this.clusterGradient[0],this.clusterGradient.slice(1).forEach((function(e,t){s[(t+1)/i.clusterGradient.length]=e})),r.gradient=s}null!=this.clusterMaxZoom&&(r.maxZoom=this.clusterMaxZoom),this.addPickEvent(r),o=new mapvgl.ClusterLayer(r)}else this.addPickEvent(n),o=new mapvgl.IconLayer(n)}return o},t.prototype.updateTextVisible=function(e){this.textLayer&&(e>=this.showLabelMinZoom?this.textLayer.show():this.textLayer.hide())},t.prototype.updateData=function(){var e=this;if(this.dataMap={},this.toCenter&&this._data.length>0){var t=-180,o=180,i=-90,a=90;this._data.forEach((function(e){t=Math.max(t,e.lng),o=Math.min(o,e.lng),i=Math.max(i,e.lat),a=Math.min(a,e.lat)})),this.parent.setRectCenterAndZoom(o,t,a,i)}var r={};this.groupData=r;var n=[],s=Object.keys(this.layerMap);s.forEach((function(e){r[e]=[]})),this._data.forEach((function(t){var o=t.group;null!=o&&null!=e.layerMap[o]||(o="");var i=t.id_value||t.id;null!=i&&""!=i||(i=getUUID());var a={geometry:{type:"Point",coordinates:[t.lng,t.lat]},properties:{text:t.address,id:i,group:o,raw:t}},s=e.layerMap[o];if(null!=s&&s instanceof mapvgl.ClusterLayer){var d=s.getOptions();if(d.iconOptions){var l=d.iconOptions,p=l.height,c=l.width,g=l.offset,h=l.icon;a.properties=Object.assign({height:p,width:c,offset:g,icon:h},a.properties)}}t.icon&&(a.properties.icon=e.fileUrlService.getUrl(t.icon)),r[o].push(a),e.dataMap[a.properties.id]=a,e.textLayer&&n.push(a)})),this.selectedId&&this.select(this.selectedId,{move:this.selectedId!=this.currentSelectedId,resetLayer:!1,force:!0}),s.forEach((function(t){var o=e.layerMap[t],i=r[t];o.setData(i)})),this.textLayer&&this.textLayer.setData(n)},t.prototype.getIconOptions=function(e){var t=this.iconUrl||"assets/img/screen/marker.png",o=this.iconHeight||38.25,i=this.iconWidth||25,a=null==this.iconOffsetX?0:this.iconOffsetX,r=null==this.iconOffsetY?-o/2:this.iconOffsetY;return e&&e.imageUrl&&(t=this.fileUrlService.getUrl(e.imageUrl),i=e.width||i,o=e.height||o,a=null!=e.XOffset?e.XOffset:0,r=null!=e.YOffset?e.YOffset:-o/2),{icon:t,width:i,height:o,offset:[a,r]}},t.prototype.getTextOptions=function(e){var t={};return e&&(e.size&&(t.fontSize=e.size),e.family&&(t.fontFamily=e.family),e.color&&(t.color=e.color)),t},t.prototype.addPickEvent=function(e){var t=this;if(e.enablePicked=!0,e.onClick=function(e){var o=e.dataItem;if(o&&(t.clickData=o),!1!==t.unselectOnClickBlank&&null==t.clickTimeout&&(t.clickTimeout=setTimeout((function(){null==t.clickData&&(t.selectedId=null,t.select(null)),t.clickTimeout=null,t.clickData=null,t.subMarkers=null}))),o)if("Feature"===o.type){var i=o.geometry.coordinates;t.parent.setCenterAndZoom(i[0],i[1],t.parent.map.getZoom()+2)}else{var a=o.properties.raw;a&&(t.selectedId=o.properties.id,t.select(o.properties.id),t.zone.run((function(){t.onClick.emit(Object.assign(Object.assign({},a),{id:a.id_value||a.id}))})))}},"mouseover"===this.parent.showType){var o=null,i=null;e.onMousemove=function(e){var a=e.dataItem,r=null!=a?a.properties.raw:null;null!=o&&i!=r&&(o.close(),o=null),r&&r.information&&null==o&&(i=r,o=t.parent.openInfoWindow(r,r.lng,r.lat))}}},t.prototype.select=function(e,t){var o=this;if(void 0===t&&(t={}),e!=this.currentSelectedId||t.force){var i=void 0;if(null!=e&&""!==e&&null==(i=this.dataMap[e]))return;this.currentSelectedId=e;var a,r=void 0,n=void 0;if(this.lastSelect&&(r=this.lastSelect.properties.group,this.updateSize(this.lastSelect,1),this.lastSelect=null),i){if(n=i.properties.group,this.updateSize(i,1.5),this.lastSelect=i,a=i.properties.raw,t.move){var s=this.layerMap[n],d=this.parent.map.getZoom();s instanceof mapvgl.ClusterLayer&&null!=this.clusterMaxZoom&&d<=this.clusterMaxZoom&&(d=this.clusterMaxZoom+2),this.parent.setCenterAndZoom(a.lng,a.lat,d)}a.information&&"mouseover"!==this.parent.showType&&setTimeout((function(){o.parent.openInfoWindow(a,a.lng,a.lat)}))}else a={};!1!==t.resetLayer&&(null!=n&&this.resetLayerData(n),null!=r&&r!==n&&this.resetLayerData(r)),null!=e&&null==i||this.zone.run((function(){o.makerClick.emit(Object.assign(Object.assign({},a),{id:a.id_value||a.id}))}))}},t.prototype.resetLayerData=function(e){var t=this.layerMap[e],o=this.groupData[e];t&&o&&t.setData(o)},t.prototype.updateSize=function(e,t){if(e&&this.enlargeOnSelect){var o=this.layerMap[e.properties.group],i=void 0,a=(i=o instanceof mapvgl.ClusterLayer?o.getOptions().iconOptions:o.getOptions()).height,r=i.width,n=i.offset;e.properties.height=a*t,e.properties.width=r*t,e.properties.offset&&(e.properties.offset=[n[0]*t,n[1]*t])}},t}(BaseLayer),exports.ɵcz.decorators=[{type:i0.Component,args:[{selector:"sc-baidu-marker-layer",template:'<nz-dropdown-menu #menu="nzDropdownMenu">\n <ng-template #li let-item>\n <li nz-menu-item (click)="makerClick.emit(item.properties.raw)">\n <div class="menu-item-img">\n <img [src]="item.properties.icon" />\n </div>\n {{ item.properties.raw.address }}\n </li>\n </ng-template>\n <ul *ngIf="subMarkers" nz-menu style="max-height: 300px; overflow: auto">\n <ng-container *ngIf="subMarkers.length <= 50">\n <ng-template\n *ngFor="let marker of subMarkers"\n [ngTemplateOutlet]="li"\n [ngTemplateOutletContext]="{ $implicit: marker }"\n ></ng-template>\n </ng-container>\n <cdk-virtual-scroll-viewport\n *ngIf="subMarkers.length > 50"\n [itemSize]="32"\n [minBufferPx]="500"\n [maxBufferPx]="1000"\n style="height: 292px; width: 200px"\n >\n <ng-template\n *cdkVirtualFor="let marker of subMarkers"\n [ngTemplateOutlet]="li"\n [ngTemplateOutletContext]="{ $implicit: marker }"\n ></ng-template>\n </cdk-virtual-scroll-viewport>\n </ul>\n</nz-dropdown-menu>\n',providers:[scrolling.ScrollDispatcher],styles:[".menu-item-img{width:14px;height:14px;display:inline-flex;align-items:center;justify-content:center}.menu-item-img img{max-height:100%;max-width:100%}"]}]}],exports.ɵcz.ctorParameters=function(){return[{type:exports.ɵcy},{type:i0.NgZone},{type:FileUrlService},{type:dropdown.NzContextMenuService}]},exports.ɵcz.propDecorators={menu:[{type:i0.ViewChild,args:["menu"]}]},__decorate([bbjWidgetBase.Property("",{min:1,ui:{widget:"myPicture",spanLabel:0,spanControl:24}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"iconUrl",void 0),__decorate([bbjWidgetBase.Property("图标宽",{type:"number"}),__metadata("design:type",Object)],exports.ɵcz.prototype,"iconWidth",void 0),__decorate([bbjWidgetBase.Property("图标高",{type:"number"}),__metadata("design:type",Object)],exports.ɵcz.prototype,"iconHeight",void 0),__decorate([bbjWidgetBase.Property("图标偏移x",{type:"number"}),__metadata("design:type",Object)],exports.ɵcz.prototype,"iconOffsetX",void 0),__decorate([bbjWidgetBase.Property("图标偏移y",{type:"number"}),__metadata("design:type",Object)],exports.ɵcz.prototype,"iconOffsetY",void 0),__decorate([bbjWidgetBase.Property("移至中心"),__metadata("design:type",Boolean)],exports.ɵcz.prototype,"toCenter",void 0),__decorate([bbjWidgetBase.Property("点聚合"),__metadata("design:type",Boolean)],exports.ɵcz.prototype,"enableMarkerClusterer",void 0),__decorate([bbjWidgetBase.Property("聚合最小直径",{type:"number",ui:{visibleIf:{enableMarkerClusterer:[!0]}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"clusterMinSize",void 0),__decorate([bbjWidgetBase.Property("聚合最大直径",{type:"number",ui:{visibleIf:{enableMarkerClusterer:[!0]}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"clusterMaxSize",void 0),__decorate([bbjWidgetBase.Property("聚合字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"clusterFont",void 0),__decorate([bbjWidgetBase.Property("聚合颜色",{ui:{widget:"seriesColor",visibleIf:{enableMarkerClusterer:[!0]}}}),__metadata("design:type",Array)],exports.ɵcz.prototype,"clusterGradient",void 0),__decorate([bbjWidgetBase.Property("聚合最大级别",{type:"number",ui:{visibleIf:{enableMarkerClusterer:[!0]}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"clusterMaxZoom",void 0),__decorate([bbjWidgetBase.Property("显示标签",{ui:{visibleIf:{enableMarkerClusterer:[!1]}}}),__metadata("design:type",Boolean)],exports.ɵcz.prototype,"showLabel",void 0),__decorate([bbjWidgetBase.Property("标签显示缩放等级",{ui:{visibleIf:{showLabel:[!0]}}}),__metadata("design:type",Number)],exports.ɵcz.prototype,"showLabelMinZoom",void 0),__decorate([bbjWidgetBase.Property("标签字体",{ui:{widget:"myFont",visibleIf:{showLabel:[!0]}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"labelFont",void 0),__decorate([bbjWidgetBase.Property("描边颜色",{ui:{widget:"myColor"}}),__metadata("design:type",String)],exports.ɵcz.prototype,"stroke",void 0),__decorate([bbjWidgetBase.Property("描边粗细",{type:"integer"}),__metadata("design:type",Number)],exports.ɵcz.prototype,"strokeWidth",void 0),__decorate([bbjWidgetBase.Property("阴影",{ui:{widget:"myShadow"}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"shadow",void 0),__decorate([bbjWidgetBase.Property("标签偏移x",{ui:{widget:"number",visibleIf:{showLabel:[!0]}}}),__metadata("design:type",Number)],exports.ɵcz.prototype,"labelOffsetX",void 0),__decorate([bbjWidgetBase.Property("标签偏移y",{ui:{widget:"number",visibleIf:{showLabel:[!0]}}}),__metadata("design:type",Number)],exports.ɵcz.prototype,"labelOffsetY",void 0),__decorate([bbjWidgetBase.Property("选中放大"),__metadata("design:type",Boolean)],exports.ɵcz.prototype,"enlargeOnSelect",void 0),__decorate([bbjWidgetBase.Property("点击空白取消选中",{type:"boolean",default:!0}),__metadata("design:type",Object)],exports.ɵcz.prototype,"unselectOnClickBlank",void 0),__decorate([bbjWidgetBase.Property("标记分组",{type:"array",title:"标记分组",maxItems:10,items:{type:"object",properties:{group:{type:"string",title:"分组"},type:{title:"类型",type:"string",enum:[{label:"图标",value:"icon"},{label:"圆点",value:"circle"},{label:"正方形",value:"square"},{label:"波纹",value:"wave"},{label:"扩散",value:"bubble"}],default:"icon"},color:{type:"string",title:"颜色",ui:{widget:"myColor",visibleIf:{type:["circle","square"]}}},size:{type:"number",title:"尺寸",ui:{visibleIf:{type:["circle","square","wave","bubble"]}}},imageUrl:{type:"string",title:"图片",ui:{widget:"myPicture",visibleIf:{type:["icon"]}}},width:{type:"number",title:"宽度",default:19,ui:{visibleIf:{type:["icon"]}}},height:{type:"number",title:"高度",default:25,ui:{visibleIf:{type:["icon"]}}},XOffset:{type:"number",title:"X轴偏移",ui:{visibleIf:{type:["icon"]}}},YOffset:{type:"number",title:"Y轴偏移",ui:{visibleIf:{type:["icon"]}}},enableMarkerClusterer:{type:"boolean",title:"是否聚合",ui:{visibleIf:{type:["icon"]}}}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"groups",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$b,address:{type:"string",title:"地点"},information:{type:"string",title:"信息"},group:{type:"string",title:"标记分组"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"},icon:{type:"string",title:"图标"}}}),__metadata("design:type",Array)],exports.ɵcz.prototype,"_data",void 0),__decorate([bbjWidgetBase.DataOutput(["id","address","lng","lat"]),bbjWidgetBase.Event("选中值改变",{params:{properties:{id:ɵ1$b,address:{type:"string",title:"地点"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"makerClick",void 0),__decorate([bbjWidgetBase.DataInput("选中id"),__metadata("design:type",String)],exports.ɵcz.prototype,"selectedId",void 0),__decorate([bbjWidgetBase.Event("点击",{params:{properties:{id:ɵ2$9,address:{type:"string",title:"地点"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"}}}}),__metadata("design:type",Object)],exports.ɵcz.prototype,"onClick",void 0),exports.ɵcz=__decorate([bbjWidgetBase.Widget("标记层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[exports.ɵcy,i0.NgZone,FileUrlService,dropdown.NzContextMenuService])],exports.ɵcz),exports.ɵdb=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.parent=t,i.zone=o,i.strokeWeight=4,i.strokeColor="rgba(242,213,173,1)",i.strokeStyle="solid",i.dashInterval=10,i.interval=.1,i.duration=2,i.trailLength=.5,i.layerOptions=[],i._data=[{group:"x",lng:"120.7",lat:"28"},{group:"x",lng:"120.71",lat:"28.01"},{group:"x",lng:"120.79",lat:"28.1"},{group:"y",lng:"120.72",lat:"28.02"},{group:"y",lng:"120.73",lat:"28.03"},{group:"y",lng:"120.81",lat:"28.12"}],i.layerMap={},i}return __extends(t,e),t.prototype.updateData=function(){var e=this,t={},o={};this._data.forEach((function(i){var a=i.layer;e.layerMap[a]||(a="");var r=t[a],n=o[a];r||(r=[],n={},t[a]=r,o[a]=n);var s=i.group;null==s&&(s="");var d=n[s];null==d&&(d={geometry:{type:"LineString",coordinates:[]}},n[s]=d,r.push(d)),d.geometry.coordinates.push([i.lng,i.lat])})),Object.keys(this.layerMap).forEach((function(o){var i=e.layerMap[o],a=t[o]||[];i.setData(a)}))},t.prototype.createLayers=function(){var e,t=this,o=[];this.layerMap={};var i=this.createLayer();return this.layerMap[""]=i,o.push(i),(null===(e=this.layerOptions)||void 0===e?void 0:e.length)&&this.layerOptions.forEach((function(e){if(e.layer){var i=t.createLayer(e);t.layerMap[e.layer]=i,o.push(i)}})),o},t.prototype.createLayer=function(e){var t={color:this.strokeColor,width:this.strokeWeight,lineCap:"round",animation:this.animation,interval:this.interval,duration:this.duration,trailLength:this.trailLength,blend:"lighter"};if(e&&e.color&&(t.color=e.color),"dashed"===this.strokeStyle){var o=this.dashInterval||10;t.dashArray=[o,o]}return new mapvgl.LineLayer(t)},t}(BaseLayer),exports.ɵdb.decorators=[{type:i0.Component,args:[{selector:"sc-baidu-polyline-layer",template:"",styles:[""]}]}],exports.ɵdb.ctorParameters=function(){return[{type:exports.ɵcy},{type:i0.NgZone}]},__decorate([bbjWidgetBase.Property("线条宽度",{ui:{widget:"myRange",min:1,max:40,step:1}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"strokeWeight",void 0),__decorate([bbjWidgetBase.Property("线条颜色",{type:"string",ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"strokeColor",void 0),__decorate([bbjWidgetBase.Property("线条类型",{ui:{widget:"select"},enum:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"}]}),__metadata("design:type",Object)],exports.ɵdb.prototype,"strokeStyle",void 0),__decorate([bbjWidgetBase.Property("虚线间隔",{type:"number",ui:{visibleIf:{strokeStyle:["solid"]}}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"dashInterval",void 0),__decorate([bbjWidgetBase.Property("动画"),__metadata("design:type",Boolean)],exports.ɵdb.prototype,"animation",void 0),__decorate([bbjWidgetBase.Property("动画线段长度",{type:"number",ui:{widget:"number",visibleIf:{animation:[!0]}}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"interval",void 0),__decorate([bbjWidgetBase.Property("动画循环时间",{type:"number",ui:{widget:"number",visibleIf:{animation:[!0]}}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"duration",void 0),__decorate([bbjWidgetBase.Property("拖尾长度",{type:"number",ui:{widget:"number",visibleIf:{animation:[!0]}}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"trailLength",void 0),__decorate([bbjWidgetBase.Property("图层",{type:"array",maxItems:10,items:{type:"object",properties:{layer:{type:"string",title:"图层"},color:{type:"string",title:"颜色",ui:{widget:"myColor"}}},required:[]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵdb.prototype,"layerOptions",void 0),__decorate([bbjWidgetBase.Data({properties:{layer:{type:"string",title:"图层"},lng:{type:"number",title:"经度"},lat:{type:"number",title:"纬度"},group:{type:"string",title:"线编号"}}}),__metadata("design:type",Array)],exports.ɵdb.prototype,"_data",void 0),exports.ɵdb=__decorate([bbjWidgetBase.Widget("折线层",{group:"component",image:"",icon:"",hidden:!0}),__metadata("design:paramtypes",[exports.ɵcy,i0.NgZone])],exports.ɵdb);var EARTH_RADIUS=6371.393;exports.ɵdd=function(e){function t(t,o){var i=e.call(this,t,o)||this;return i.parent=t,i.zone=o,i.lineColor="rgba(238,160,29,0.8)",i.lineWidth=2,i.fillColor="rgba(238,160,29,0.3)",i.data=[{lng:144.7,lat:38.9,nw:50,ne:100,sw:150,se:200}],i}return __extends(t,e),t.prototype.createLayers=function(){return this.layer=new mapvgl.PolygonLayer({lineColor:this.lineColor,lineWidth:this.lineWidth,fillColor:this.fillColor,renderOrder:-1}),[this.layer]},t.prototype.updateData=function(){var e=this,t=[];this.data.forEach((function(o){var i=e.getTF([+o.lng,+o.lat],+o.ne,+o.se,+o.sw,+o.nw);t.push({geometry:{type:"Polygon",coordinates:[i]}})})),this.layer.setData(t)},t.prototype.getTF=function(e,t,o,i,a){var r=function(e,t,o){for(var i=180*t/EARTH_RADIUS/Math.PI,a=o+Math.PI/2,r=[],n=0;n<=90;n++){var s=o+(a-o)*n/90,d=e[0]+i*Math.cos(s)/Math.abs(Math.cos(e[1]*Math.PI/180)),l=e[1]+i*Math.sin(s);r.push([d,l])}return r};return __spread(r(e,t,0),r(e,a,Math.PI/2),r(e,i,Math.PI),r(e,o,3*Math.PI/2))},t}(BaseLayer),exports.ɵdd.decorators=[{type:i0.Component,args:[{selector:"sc-typhoon-area-layer",template:"",styles:[""]}]}],exports.ɵdd.ctorParameters=function(){return[{type:exports.ɵcy},{type:i0.NgZone}]},__decorate([bbjWidgetBase.Property("描边颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdd.prototype,"lineColor",void 0),__decorate([bbjWidgetBase.Property("描边宽度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdd.prototype,"lineWidth",void 0),__decorate([bbjWidgetBase.Property("填充颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdd.prototype,"fillColor",void 0),__decorate([bbjWidgetBase.Data({properties:{lng:{type:"number",title:"中心经度"},lat:{type:"number",title:"中心纬度"},nw:{type:"number",title:"西北半径"},ne:{type:"number",title:"东北半径"},sw:{type:"number",title:"西南半径"},se:{type:"number",title:"东南半径"}}}),__metadata("design:type",Array)],exports.ɵdd.prototype,"data",void 0),exports.ɵdd=__decorate([bbjWidgetBase.Widget("风圈",{group:"component",hidden:!0}),__metadata("design:paramtypes",[exports.ɵcy,i0.NgZone])],exports.ɵdd);var CustomBaiduMapModule=function(e){e.register(exports.ɵcy,{scaleContent:!1}),e.register(exports.ɵcz),e.register(exports.ɵdb),e.register(exports.ɵdc),e.register(exports.ɵdd)};CustomBaiduMapModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵcy,exports.ɵcz,exports.ɵdb,exports.ɵdc,exports.ɵdd],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,dropdown.NzDropDownModule,noAnimation.NzNoAnimationModule,scrolling.ScrollingModule,radio.NzRadioModule,forms.FormsModule]}]}],CustomBaiduMapModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var icons=["icondingwei1","iconxialakuang","icontianjiazu","iconguanlianshuxing","iconbianzu401","iconanzhuang","iconbaojing","iconbuguifan","iconbianzu621","iconbumen","iconbianzu6","iconbianzu3311","icondaohang","iconbianzu111","iconditu2","iconfuzeren","iconfuzhi1","icongengduo1","iconbuguifanjiashi","iconfadianji","iconbianzu33xiawu42347","iconche","iconguanli","icondukaqi","iconhulian1","iconhoutai","icondianhua2","iconliangqizuozhanjianting","iconguanggao","iconkongqijinghua","iconjuleledaohang","iconluxiang1","iconchouti1","icongerenxinxilan","iconqiqiu","iconpihuating","iconkulian","iconhulianxiawu35716","iconguiji","iconrenyuan1","iconnongye","iconremen","iconshajunshebei","iconnengyuan1","iconshezhixiawu20722","iconshujuyuan","iconxiangpiting","iconlajitong1","iconjiaocheng","icontuichu2","iconweifanggaizao","iconxiaodudu","iconxiaodu1","iconriqi","iconxiaofang","iconwurenji","icontanzhaodengshijian","iconquanxian","iconxiaodu2","iconbumenxiawu14836","iconqiche","iconwulianwang","iconxiaoqu","iconxingzhuangjiehe1","iconxunjian1","iconyangan","iconxinxixiugai","iconyangan1","iconxinshuai","iconzhihang1","iconxiaolian","iconxieya","iconLEDTrackLight-02","iconzhaomingdeng","iconzhangpeng","iconyouhuiquanquanmian","iconicon_gouwu1","iconLedCleanEnergy","iconicon_diannao1","iconled2","iconzhihang2","iconzhineng","iconzhihang","iconjindu","iconhoutui","iconguanbi1","iconhulian","iconkefu","iconkuaidi","iconlianjie","iconkefurexian","iconliuchengjiedian","iconmengjiangnan","iconmoxing","iconqunyou","iconrenyuanguanli","iconqingchuhuancun3x1","iconrenyuanjiegou","iconrongyu","iconshangpin","iconsaomiaohongbao","iconsaoyisao","iconshebei","iconshenghuo","iconshexiang","icontianjia","icontuichubeifen2","icontishi","iconshexiangtou","iconshijiandefuben","iconsoucha","iconxiuxi1","iconxuanze","iconyoutui","iconyonghu","iconzhuanyi","iconicon_diannao","iconwenduji","iconicon_dengdaicaiji","iconzhihuinongye","iconsousuo1","iconicon_neirongjilu","iconicon_ppt","iconshuidi","iconicon_word","iconicon_txt","iconwenjiansoucha","iconwodedianzan1","iconyanganjiankong","iconzhinenglajitong","iconwuliu","iconGroup2","iconicon_gouwu","iconxunjian","iconyouhuiquan","iconyinhangka","iconwodepinglun1","iconGroup2beifen2","iconicon_zhuye","iconwangluo","iconbanbenhao1","iconbianzu11","iconbianzu22","iconbianzu12","iconbianzu13","iconchukou","iconbianzu361","icondaima","iconbianzu39","icondajian","icondiannao","icondenglu","iconbianzu381","iconfangan","icongengxin","icongenghuantouxiang1","icongouwuche","iconguangbo","iconcaijian","iconbaocun","iconbianji","iconbeijing","icondian","iconbukejian","iconfuzhi","iconkejian","iconfangwen","iconguanbi","iconjia","iconlajitong2","iconshangyibu","iconren","iconshangchuan","iconsshanchu","iconshijian","iconsousuo","iconsuo","iconsuoding","iconmokuai","icontexiao","icontubiao","iconwenzi","iconwenjianjia","icontianjiaxuanxiang","iconxiala","iconkaisuo","iconxiayibu","icontupian","iconsxingzhuang","iconxiuxi","iconzhinanzhen","iconyulan","iconstuichu","iconyinle","iconyun","iconzhinanzhen"];exports.ɵdf=function(){function e(e){var t=this;this.msg=e,this.style="classics",this.listType="",this.class={},this.showUploadList=!0,this.loading=!1,this.type="",this.valueChange=new i0.EventEmitter,this.beforeUpload=function(e,o){return"portrait"!==t.style?null:new rxjs.Observable((function(o){var i="image/jpeg"===e.type||"image/png"===e.type;if(!i)return t.msg.error("只能上传图片"),void o.complete();var a=e.size/1024/1024<2;if(!a)return t.msg.error("图片要小于2M"),void o.complete();o.next(i&&a),o.complete()}))}}return e.prototype.handleChange=function(e){var t=this,o=e.file.status;"done"===o?(this.msg.success(e.file.name+" 上传成功"),this.valueChange.emit(e.file.response),"portrait"===this.style&&this.getBase64(e.file.originFileObj,(function(e){t.loading=!1,t.avatarUrl=e}))):"error"===o?(this.msg.error(e.file.name+" 上传失败"),this.loading=!1):"uploading"===o&&(this.loading=!0)},e.prototype.getBase64=function(e,t){var o=new FileReader;o.addEventListener("load",(function(){return t(o.result.toString())})),o.readAsDataURL(e)},e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){switch(this.style){case"portrait":this.listType="picture-card",this.showUploadList=!1,this.class.width="128px",this.class.height="128px",this.type="";break;case"drag":this.type="drag",this.listType="",this.showUploadList=!0,this.class.width="",this.class.height="";break;default:this.type="",this.listType="text",this.showUploadList=!0,this.class.width="",this.class.height=""}},e}(),exports.ɵdf.decorators=[{type:i0.Component,args:[{selector:"sc-upload",template:'<div class="content">\n <nz-upload\n nzAction="/api/screen/fileUpload"\n [nzHeaders]="{ authorization: \'authorization-text\' }"\n (nzChange)="handleChange($event)"\n [nzLimit]="1"\n [ngClass]="class"\n [nzListType]="listType"\n [nzShowUploadList]="showUploadList"\n [nzMultiple]="true"\n [nzBeforeUpload]="beforeUpload"\n nzType="{{type}}"\n\n\n >\n <button nz-button *ngIf="style === \'classics\'"><i nz-icon nzType="upload"></i>点击上传</button>\n <ng-container *ngIf="style === \'portrait\'">\n <ng-container *ngIf="!avatarUrl">\n <i class="upload-icon" nz-icon [nzType]="loading ? \'loading\' : \'plus\'"></i>\n <div class="ant-upload-text">Upload</div>\n </ng-container>\n <img *ngIf="avatarUrl" [src]="avatarUrl" style="width: 100%"/>\n </ng-container>\n <ng-container *ngIf="style===\'drag\'">\n <p class="ant-upload-drag-icon">\n <i nz-icon nzType="inbox"></i>\n </p>\n <p class="ant-upload-text">点击或者拖拽上传</p>\n <p class="ant-upload-hint"></p>\n </ng-container>\n </nz-upload>\n</div>\n',styles:[":host{display:block;text-align:center}:host,div.content{height:100%;width:100%}div.content{display:flex;align-items:center;justify-content:center}"]}]}],exports.ɵdf.ctorParameters=function(){return[{type:message.NzMessageService}]},__decorate([bbjWidgetBase.Property("上传样式",{type:"string",ui:{widget:"select"},enum:[{label:"经典",value:"classics"},{label:"头像",value:"portrait"},{label:"拖拽",value:"drag"}]}),__metadata("design:type",Object)],exports.ɵdf.prototype,"style",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵdf.prototype,"valueChange",void 0),exports.ɵdf=__decorate([bbjWidgetBase.Widget("文件上传",{group:"component",image:"assets/img/screen/file-upload.png",icon:"icontubiao"}),__metadata("design:paramtypes",[message.NzMessageService])],exports.ɵdf);var UploadModule=function(e){e.register(exports.ɵdf)};UploadModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdf],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,icon.NzIconModule,upload.NzUploadModule,button.NzButtonModule]}]}],UploadModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdg=function(){function e(){this.pageSize=10,this.theadBackground="#fafafa",this.headFont={family:"",color:"#222222",weight:"normal",size:12,space:0,lineHeight:2},this.contentAlign="center",this.tbodyBackground="#fafafa",this.showBorder=!1,this.font={family:"",color:"#222222",weight:"normal",size:12,space:0,lineHeight:2},this.cross="x",this.needPage=!1,this.crossVal="y",this._data=[{x:"一月",y:10,s:"收入"},{x:"二月",y:20,s:"收入"},{x:"三月",y:25,s:"收入"},{x:"四月",y:35,s:"收入"},{x:"五月",y:27,s:"收入"},{x:"六月",y:28,s:"收入"},{x:"一月",y:18,s:"支出"},{x:"二月",y:28,s:"支出"},{x:"三月",y:32,s:"支出"},{x:"四月",y:48,s:"支出"},{x:"五月",y:20,s:"支出"},{x:"六月",y:17,s:"支出"}],this.widthConfig=[],this.rows=[],this.heads=[],this.ths=[],this.groups={},this.data=[]}return e.prototype.ngOnInit=function(){this.headStyle={family:this.headFont.family,color:this.headFont.color,weight:this.headFont.weight,fontSize:this.headFont.size+"px",space:this.headFont.space,lineHeight:this.headFont.lineHeight,background:this.theadBackground},this.bodyStyle={family:this.font.family,color:this.font.color,weight:this.font.weight,fontSize:this.font.size+"px",space:this.font.space,lineHeight:this.font.lineHeight,background:this.tbodyBackground}},e.prototype.ngOnChanges=function(e){var t,o=this;if(e._data||e.schema){if(this.data=[],this.groups={},this.heads=[],this.ths=[],this.widthConfig=[],null===(t=this.schema)||void 0===t?void 0:t.properties)Object.keys(this.schema.properties).forEach((function(e){var t,i=o.schema.properties[e];o.cross===e||o.crossVal===e||(null===(t=i.ui)||void 0===t?void 0:t.hidden)||(o.heads.push(e),o.ths.push(i.title),o.widthConfig.push("100px"))}));else{if(null==this._data[0])return;Object.keys(this._data[0]).forEach((function(e){o.cross===e||o.crossVal===e||o.heads.includes(e)||(o.heads.push(e),o.ths.push(e),o.widthConfig.push("100px"))}))}this._data.forEach((function(e){var t=[];o.heads.forEach((function(o){t.push(e[o])})),null==o.groups[t]&&(o.groups[t]=[]),o.ths.includes(e[o.cross])||(o.ths.push(e[o.cross]),o.widthConfig.push("100px")),o.groups[t].push({title:e[o.cross],value:e[o.crossVal]})})),this.assemble()}},e.prototype.assemble=function(){var e=this;null!==this.groups&&"undefined"!==this.groups&&(this.rows=[],Object.keys(this.groups).forEach((function(t){for(var o,i,a=[],r=t.split(","),n=0;n<r.length;n++)a.push({title:e.ths[n],value:r[n]});var s=0;if(e.groups[t].forEach((function(e){a.push(e),s+=e.value})),a.length>0&&a.length<e.ths.length){var d=[],l=function(e){var t="";a.forEach((function(o){o.title===e&&(t=o.value)})),d.push({title:e,value:t})};try{for(var p=__values(e.ths),c=p.next();!c.done;c=p.next()){l(c.value)}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}a=d}a.push({title:"合计",value:Number(s).toFixed(2)}),e.rows.push(a)})),this.data=this.rows,this.ths.push("合计"),this.widthConfig.push("100px"))},e.prototype.exportWord=function(){var e="<table>\n <thead>\n <tr>\n "+this.ths.map((function(e){return"<th>"+e+"</th>"})).join("")+"\n </tr>\n </thead>\n <tbody>\n "+this.data.map((function(e){return"<tr>\n "+e.map((function(e){return"<td>"+e.value+"</td>"})).join("")+"\n </tr>"})).join("")+"\n </tbody>\n</table><br/>";return console.log(e),e},e}(),exports.ɵdg.decorators=[{type:i0.Component,args:[{selector:"sc-cross-table",template:'<nz-table #basicTable [nzData]="data" [nzScroll]="{ x: \'50px\', y: \'100%\' }" [nzPageSize]="pageSize"\n [ngStyle]="bodyStyle"\n [nzBordered]="showBorder" [nzWidthConfig]="widthConfig" [nzFrontPagination]="needPage">\n <thead>\n <tr >\n <th *ngFor="let head of ths" nzAlign="{{contentAlign}}" [ngStyle]="headStyle">{{ head }}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="let row of basicTable.data" >\n <ng-container *ngFor="let td of row">\n <td nzAlign="{{contentAlign}}" [ngStyle]="bodyStyle">{{td.value}}</td>\n </ng-container>\n </tr>\n </tbody>\n</nz-table>\n',styles:[":host{display:block;width:100%}.ant-table-wrapper,.ant-table-wrapper ::ng-deep.ant-spin-nested-loading,:host{height:100%}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container{height:100%;display:flex;flex-direction:column}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table{background:inherit;flex:1;overflow:hidden}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-thead>tr>th{background:inherit}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container{height:100%;display:flex;flex-direction:column}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-header{flex:none}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-body{flex:1;overflow:auto}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table-pagination-right{align-self:flex-end}"]}]}],exports.ɵdg.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("条数/页",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"pageSize",void 0),__decorate([bbjWidgetBase.Property("表头背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"theadBackground",void 0),__decorate([bbjWidgetBase.Property("表头字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"headFont",void 0),__decorate([bbjWidgetBase.Property("内容对齐",{type:"string",ui:{widget:"select"},enum:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"},{label:"居中",value:"center"}]}),__metadata("design:type",Object)],exports.ɵdg.prototype,"contentAlign",void 0),__decorate([bbjWidgetBase.Property("表格背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"tbodyBackground",void 0),__decorate([bbjWidgetBase.Property("显示边框",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"showBorder",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("交叉字段",{cross:{type:"string",ui:{}},required:[""]}),__metadata("design:type",Object)],exports.ɵdg.prototype,"cross",void 0),__decorate([bbjWidgetBase.Property("显示分页",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdg.prototype,"needPage",void 0),__decorate([bbjWidgetBase.Property("绑定值",{crossVal:{type:"string",ui:{}},required:[""]}),__metadata("design:type",Object)],exports.ɵdg.prototype,"crossVal",void 0),__decorate([bbjWidgetBase.Data({}),__metadata("design:type",Array)],exports.ɵdg.prototype,"_data",void 0),__decorate([bbjWidgetBase.DataSchema("_data"),__metadata("design:type",Object)],exports.ɵdg.prototype,"schema",void 0),exports.ɵdg=__decorate([bbjWidgetBase.Widget("交叉表格",{group:"table",icon:"icontubiao",image:"/assets/img/screen/cross-table.png"}),__metadata("design:paramtypes",[])],exports.ɵdg);var CrossTableModule=function(e){e.register(exports.ɵdg)};CrossTableModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdg],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,table.NzTableModule]}]}],CrossTableModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ɵ0$c={type:"object",title:"行数据"};exports.ɵbo=function(){function e(e){this.ele=e,this.pageSize=10,this.theadBackground="#fafafa",this.headFont={family:"",color:"#222222",weight:"normal",size:12,space:0,lineHeight:2},this.contentAlign="center",this.tbodyBackground="#FFFFFF",this.font={family:"",color:"#222222",weight:"normal",size:12,space:0,lineHeight:2},this.isCustom=!1,this.showBorder=!1,this.needPage=!1,this.isCount=!1,this.level=[],this.customCol=[],this.isCross=!1,this._data=[{x:"一月",y:"10%",s:"收入"},{x:"二月",y:20,s:"收入"},{x:"三月",y:25,s:"收入"},{x:"四月",y:35,s:"收入"},{x:"五月",y:27,s:"收入"},{x:"六月",y:28,s:"收入"},{x:"一月",y:18,s:"支出"},{x:"二月",y:28,s:"支出"},{x:"三月",y:32,s:"支出"},{x:"四月",y:48,s:"支出"},{x:"五月",y:20,s:"支出"},{x:"六月",y:17,s:"支出"}],this.tdChange=new i0.EventEmitter,this.trChange=new i0.EventEmitter,this.rowChange=new i0.EventEmitter,this.tdClick=new i0.EventEmitter,this.headStyle={},this.bodyStyle={},this.widthConfig=[],this.rows=[],this.totalCount=[],this.needCount=!1,this.searchValue={},this.headers=[],this.filterValues={},this.sumData={}}return e.prototype.ngOnChanges=function(e){e.schema||e.customCol?(this.updateHeader(),this.updateData()):e._data&&(this.schema||this.updateHeader(),this.updateData())},e.prototype.ngOnInit=function(){this.headStyle={family:this.headFont.family,color:this.headFont.color,weight:this.headFont.weight,fontSize:this.headFont.size+"px",space:this.headFont.space,lineHeight:this.headFont.lineHeight,background:this.theadBackground},this.bodyStyle={family:this.font.family,color:this.font.color,weight:this.font.weight,fontSize:this.font.size+"px",space:this.font.space,lineHeight:this.font.lineHeight}},e.prototype.updateHeader=function(){var e=this;if(this.columns=[],this.widthConfig=[],this.isCustom&&this.customCol[0]){var t=this.customCol.some((function(e){return null!=e.group&&""!==e.group}));this.groups=[];var o=[],i={};this.customCol.forEach((function(a){var r=!!a.group,n=a.group||a.title;e.widthConfig.push((a.width||100)+"px");var s={title:a.title,index:a.field,ismerge:a.ismerge,iscount:a.iscount,needlevel:a.needlevel,showFilter:a.showFilter},d=i[n];null==d&&(d={title:n,row:1,col:0,columns:[]},i[n]=d,e.groups.push(d)),d.columns.push(s),d.col++,r?o.push(s):(d.index=a.field,t&&(d.row=2))})),this.headers=[this.groups,o]}else{if(this.schema)Object.keys(this.schema.properties).forEach((function(t){var o=e.schema.properties[t];if(o){var i={title:o.title||t,index:t,schema:o};e.columns.push(i)}}));else if(this._data&&this._data[0]){var a=this._data[0];Object.keys(a).forEach((function(t){var o={title:t,index:t};e.widthConfig.push("100px"),e.columns.push(o)}))}this.headers=[this.columns],console.log("header",this.headers)}},e.prototype.updateData=function(){var e=this;this.dataSize=this._data.length,this._data[0]&&(this.titleSize=Object.keys(this._data[0]).length),this.isCustom&&this.customCol[0]&&(this.updateFilterOptions(),this.groupBy(this._data),this.count()),this.sumColumns&&(this.sumData={},this.sumColumns.split(",").forEach((function(t){var o=e._data.reduce((function(e,o){var i=o[t];return i&&util.isNum(i)&&(e+=+i),e}),0);e.sumData[t]=+o.toFixed(2)})))},e.prototype.updateFilterOptions=function(){var e=this;this.groups&&this.groups.forEach((function(t){t.columns.forEach((function(o){if(o.showFilter){var i=new Set,a=1==t.columns.length?t:o;a.filter=[],e._data&&e._data.forEach((function(t){var r=o.index,n=t[r],s=e.filterValues[r],d=s&&s.includes(n);if((d||e.filterMatch(t,r))&&null!=n&&""!=n&&!i.has(n)){i.add(n);var l={value:n,checked:d};a.filter.push(l)}}))}}))}))},e.prototype.filterMatch=function(e,t){var o,i,a=Object.keys(this.filterValues);try{for(var r=__values(a),n=r.next();!n.done;n=r.next()){var s=n.value;if(s!==t){var d=this.filterValues[s],l=e[s];if((null==d?void 0:d.length)&&!d.includes(l))return!1}}}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return!0},e.prototype.groupBy=function(e){var t=this;this.rows=[],e.forEach((function(e){var o,i,a,r;if(t.filterMatch(e)){var n=[];try{for(var s=__values(t.groups),d=s.next();!d.done;d=s.next()){var l=d.value;try{for(var p=(a=void 0,__values(l.columns)),c=p.next();!c.done;c=p.next()){var g=c.value,h=e[g.index],u="";g.needlevel&&(u=t.getColor(e[g.index])),""==u&&(u=t.tbodyBackground),n.push({rowspan:1,value:h,index:g.index,color:u,data:e})}}catch(e){a={error:e}}finally{try{c&&!c.done&&(r=p.return)&&r.call(p)}finally{if(a)throw a.error}}}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}t.rows.push(n)}})),this.customCol.forEach((function(e,o){if(e.ismerge){t.needPage=!1;var i=null;t.rows.forEach((function(e){var t=e[o];null!=i&&i.value===t.value?(i.rowspan++,t.rowspan=0):i=t}))}}))},e.prototype.getColor=function(e){var t,o,i=/-?\d+\.?\d*/.exec(e);if(this.level.length>0)try{for(var a=__values(this.level),r=a.next();!r.done;r=a.next()){var n=r.value;if(n.gte<=Number(i[0])&&Number(i[0])<n.lte)return n.color}}catch(e){t={error:e}}finally{try{r&&!r.done&&(o=a.return)&&o.call(a)}finally{if(t)throw t.error}}return""},e.prototype.count=function(){var e=this;this._data.forEach((function(t){e.groups.forEach((function(o,i){o.columns.forEach((function(o,a){var r={},n=!1;e.totalCount.forEach((function(e){if(e.filed===o.index)return r=e,void(n=!0)})),0!==i||0!==a||n||(r={filed:o.index,value:"合计"}),0===i&&0===a||(n||(r={filed:o.index}),o.iscount?(e.needCount=!0,r.value||(r.value=0),r.value=Number(r.value)+e.getDataValue(t,o.index)):r.value=""),n||e.totalCount.push(r)}))}))}))},e.prototype.getDataValue=function(e,t){var o=0;return e.forEach((function(e){e.index!==t||(o=Number(e.value))})),o},e.prototype.onTdClick=function(e,t){var o=e.index,i=e.value,a=e.data;this.tdChange.emit(i),this.rowChange.emit(this.customCol[t].title),this.tdClick.emit({index:o,value:i,data:a})},e.prototype.onTdClickByGroup=function(e,t){var o=t.index,i=e[o];this.tdChange.emit(i),this.rowChange.emit(t.title),this.tdClick.emit({index:o,value:i,data:e})},e.prototype.onTrClick=function(e){this.trChange.emit(e)},e.prototype.onCheck=function(e,t){e.filterChecked=t},e.prototype.filter=function(e){this.filterValues[e.index]=e.filterChecked,this.updateData(),e.filterVisible=!1},e.prototype.reset=function(e){e.filterChecked=[],e.filter=e.filter.map((function(e){return{value:e.value}})),this.filter(e)},e.prototype.export=function(){var e=this,t=[],o=[];if(this.groups){var i=[],a=[];this.groups.forEach((function(e){var t=i.length;e.columns.forEach((function(t){i.push(e.title),a.push(t.title)})),(e.row>1||e.col>1)&&o.push({s:{r:0,c:t},e:{r:e.row-1,c:t+e.col-1}})})),t.push(i,a),this._data.forEach((function(e){var i=t.length,a=[];e.forEach((function(e,t){a.push(e.value),e.rowspan>1&&o.push({s:{r:i,c:t},e:{r:i+e.rowspan-1,c:t}})})),t.push(a)}))}else{var r=this.columns.map((function(e){return e.title}));t.push(r),this._data.forEach((function(o){var i=e.columns.map((function(e){return o[e.index]}));t.push(i)}))}return{data:t,merges:o}},e.prototype.exportWord=function(){var e=this.ele.nativeElement,t="",o=e.querySelectorAll("table");return 1===o.length?t+=o.item(0).outerHTML:o.length>1&&(t+="<table>",o.forEach((function(e){var o=(e=e.cloneNode(!0)).querySelector(".ant-table-measure-now");o&&o.parentElement.removeChild(o),t+=e.innerHTML})),t+="</table><br/>"),t},e}(),exports.ɵbo.decorators=[{type:i0.Component,args:[{selector:"sc-table",template:'<nz-table\n *ngIf="columns"\n #basicTable\n [nzData]="_data"\n [nzScroll]="{ x: \'50px\', y: \'100%\' }"\n [nzPageSize]="pageSize"\n [ngStyle]="bodyStyle"\n [nzBordered]="showBorder"\n [nzWidthConfig]="widthConfig"\n [nzFrontPagination]="needPage"\n>\n <thead>\n <tr *ngFor="let header of headers">\n <ng-container *ngFor="let column of header">\n <th\n *ngIf="column.filter"\n [rowSpan]="column.row"\n [ngStyle]="headStyle"\n [colSpan]="column.col"\n [nzAlign]="contentAlign"\n nzCustomFilter\n >\n {{ column.title }}\n <ng-container *ngIf="column.filter">\n <nz-filter-trigger\n [nzDropdownMenu]="menu"\n [(nzVisible)]="column.filterVisible"\n [nzActive]="filterValues[column.index]?.length"\n >\n <i nz-icon nzType="filter" nzTheme="outline"></i>\n </nz-filter-trigger>\n <nz-dropdown-menu #menu="nzDropdownMenu">\n <div class="ant-table-filter-dropdown">\n <div class="search-box">\n <nz-checkbox-wrapper style="width: 100%" (nzOnChange)="onCheck(column, $event)">\n <div *ngFor="let option of column.filter">\n <label nz-checkbox [nzValue]="option.value" [ngModel]="option.checked">\n <span [innerHTML]="option.value | nzSafeNull | nzSanitizer : \'html\'"></span>\n </label>\n </div>\n </nz-checkbox-wrapper>\n <button nz-button nzSize="small" nzType="primary" (click)="filter(column)" class="search-button">\n 查询\n </button>\n <button nz-button nzSize="small" (click)="reset(column)">重置</button>\n </div>\n </div>\n </nz-dropdown-menu>\n </ng-container>\n </th>\n <th\n *ngIf="!column.filter"\n [rowSpan]="column.row"\n [ngStyle]="headStyle"\n [colSpan]="column.col"\n [nzAlign]="contentAlign"\n >\n {{ column.title }}\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngIf="!groups">\n <tr *ngFor="let data of basicTable.data" (click)="onTrClick(data)">\n <td\n *ngFor="let column of columns"\n nzAlign="{{ contentAlign }}"\n (click)="onTdClickByGroup(data, column)"\n [ngStyle]="bodyStyle"\n [style.backgroundColor]="tbodyBackground"\n [innerHTML]="data[column.index] | nzSafeNull | nzSanitizer : \'html\'"\n >\n </td>\n </tr>\n </ng-container>\n <ng-container *ngIf="groups">\n <tr *ngFor="let row of rows" (click)="onTrClick(row)">\n <ng-container *ngFor="let td of row; let i = index">\n <td\n *ngIf="td.rowspan"\n [attr.rowspan]="td.rowspan"\n [style.backgroundColor]="td.color"\n nzAlign="{{ contentAlign }}"\n (click)="onTdClick(td, i)"\n [ngStyle]="bodyStyle"\n [innerHTML]="td.value | nzSafeNull | nzSanitizer : \'html\'"\n ></td>\n </ng-container>\n </tr>\n </ng-container>\n <tr *ngIf="needCount">\n <td *ngFor="let count of totalCount" nzAlign="{{ contentAlign }}" [style.backgroundColor]="tbodyBackground">\n {{ count.value }}\n </td>\n </tr>\n <tr *ngIf="needCount">\n <ng-container *ngFor="let count of totalCount; let i = index">\n <td *ngIf="i === 0" nzAlign="{{ contentAlign }}" [style.backgroundColor]="tbodyBackground">平均值</td>\n <td *ngIf="i !== 0" nzAlign="{{ contentAlign }}" [style.backgroundColor]="tbodyBackground">\n {{ count.value / dataSize }}\n </td>\n </ng-container>\n </tr>\n <tr *ngIf="isCount">\n <td nzAlign="{{ contentAlign }}" [style.backgroundColor]="tbodyBackground">个数</td>\n <td nzAlign="{{ contentAlign }}" colSpan="{{ titleSize - 1 }}" [style.backgroundColor]="tbodyBackground">\n {{ dataSize }}\n </td>\n </tr>\n <tr *ngIf="sumColumns">\n <td\n *ngFor="let column of columns; let i = index"\n nzAlign="{{ contentAlign }}"\n [ngStyle]="bodyStyle"\n [style.backgroundColor]="tbodyBackground"\n >\n <ng-container *ngIf="i == 0 && sumData[column.index] == null">合计</ng-container>\n <ng-container *ngIf="sumData[column.index] != null">{{ sumData[column.index] }}</ng-container>\n </td>\n </tr>\n </tbody>\n</nz-table>\n',styles:[":host{display:block;width:100%}.ant-table-wrapper,.ant-table-wrapper ::ng-deep.ant-spin-nested-loading,:host{height:100%}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container{height:100%;display:flex;flex-direction:column}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table{background:inherit;flex:1;overflow:hidden}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-thead>tr>th{background:inherit}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container{height:100%;display:flex;flex-direction:column}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-header{flex:none}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-header::-webkit-scrollbar{opacity:0;background:transparent}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table .ant-table-container .ant-table-body{flex:1;overflow:auto}.ant-table-wrapper ::ng-deep.ant-spin-nested-loading .ant-spin-container .ant-table-pagination-right{align-self:flex-end}.search-box{padding:8px;width:212px}.search-box input{margin-bottom:8px;display:block}.search-box button{width:90px}.search-button{margin-right:8px}nz-filter-trigger{background:transparent!important}nz-filter-trigger ::ng-deep .ant-table-filter-trigger{font-size:inherit}nz-filter-trigger ::ng-deep .ant-table-filter-trigger:not(.active){color:inherit}.ant-checkbox-group{max-height:300px;overflow:auto}"]}]}],exports.ɵbo.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("条数/页",{ui:{widget:"myRange",min:1,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"pageSize",void 0),__decorate([bbjWidgetBase.Property("表头背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"theadBackground",void 0),__decorate([bbjWidgetBase.Property("表头字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"headFont",void 0),__decorate([bbjWidgetBase.Property("内容对齐",{type:"string",ui:{widget:"select"},enum:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"},{label:"居中",value:"center"}]}),__metadata("design:type",Object)],exports.ɵbo.prototype,"contentAlign",void 0),__decorate([bbjWidgetBase.Property("表格背景",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"tbodyBackground",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("是否自定义",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"isCustom",void 0),__decorate([bbjWidgetBase.Property("显示边框",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"showBorder",void 0),__decorate([bbjWidgetBase.Property("显示分页",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"needPage",void 0),__decorate([bbjWidgetBase.Property("统计个数",{type:"boolean",ui:{checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"isCount",void 0),__decorate([bbjWidgetBase.Property("合计",{type:"string",ui:{optionalHelp:"填写列名,逗号分隔"}}),__metadata("design:type",String)],exports.ɵbo.prototype,"sumColumns",void 0),__decorate([bbjWidgetBase.Property("颜色分层",{type:"array",maxItems:99,items:{type:"object",properties:{gte:{type:"number",title:"大于"},lte:{type:"number",title:"小于",minimum:1},color:{type:"string",title:"颜色",ui:{widget:"myColor"}}},required:["gte","lte"]},ui:{grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"level",void 0),__decorate([bbjWidgetBase.Property("自定义列",{type:"array",maxItems:99,items:{type:"object",properties:{group:{type:"string",title:"分组名"},title:{type:"string",title:"列名"},field:{type:"string",title:"bind"},width:{type:"number",title:"宽度"},ismerge:{type:"boolean",title:"是否合并"},needlevel:{type:"boolean",title:"颜色分层"},showFilter:{type:"boolean",title:"显示筛选"}},required:["title","field"]},ui:{visibleIf:{isCustom:[!0]},grid:{arraySpan:24},spanLabel:24,spanControl:24}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"customCol",void 0),__decorate([bbjWidgetBase.Data({}),__metadata("design:type",Array)],exports.ɵbo.prototype,"_data",void 0),__decorate([bbjWidgetBase.DataSchema("_data"),__metadata("design:type",Object)],exports.ɵbo.prototype,"schema",void 0),__decorate([bbjWidgetBase.DataOutput("单元格内容"),__metadata("design:type",Object)],exports.ɵbo.prototype,"tdChange",void 0),__decorate([bbjWidgetBase.DataOutput("行数据"),__metadata("design:type",Object)],exports.ɵbo.prototype,"trChange",void 0),__decorate([bbjWidgetBase.DataOutput("列名"),__metadata("design:type",Object)],exports.ɵbo.prototype,"rowChange",void 0),__decorate([bbjWidgetBase.Event("点击单元格",{params:{properties:{index:{type:"string",title:"列名"},value:{type:"string",title:"值"},data:ɵ0$c}}}),__metadata("design:type",Object)],exports.ɵbo.prototype,"tdClick",void 0),exports.ɵbo=__decorate([bbjWidgetBase.Widget("表格",{group:"table",icon:"icontubiao",image:"/assets/img/screen/custom-table.png"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵbo);var TableModule=function(e){e.register(exports.ɵbo)};TableModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵbo],imports:[common.CommonModule,forms.FormsModule,bbjWidgetBase.WidgetBaseModule,table.NzTableModule,pipes.NzPipesModule,select.NzSelectModule,icon.NzIconModule,dropdown.NzDropDownModule,checkbox.NzCheckboxModule,button.NzButtonModule]}]}],TableModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var HighChartsService=function(){function e(e){this.lazy=e}return e.prototype.load=function(){return"undefined"!=typeof Highcharts?Promise.resolve():(null==this.loadHighChartsPromise&&(this.loadHighChartsPromise=this.lazy.loadScript("assets/js/highcharts/highcharts.js")),this.loadHighChartsPromise)},e.prototype.load3D=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.load()];case 1:return e.sent(),null==this.loadHighCharts3DPromise&&(this.loadHighCharts3DPromise=this.lazy.loadScript("assets/js/highcharts/highcharts-3d.js")),[2,this.loadHighCharts3DPromise]}}))}))},e}();HighChartsService.ɵprov=i0.ɵɵdefineInjectable({factory:function(){return new HighChartsService(i0.ɵɵinject(i1$1.LazyService))},token:HighChartsService,providedIn:"root"}),HighChartsService.decorators=[{type:i0.Injectable,args:[{providedIn:"root"}]}],HighChartsService.ctorParameters=function(){return[{type:util.LazyService}]},exports.ɵdi=function(){function e(e){this.highChartsService=e,this.title="",this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:""},this.buoy=!1,this.colors=["#058DC7","#50B432","#ED561B","#DDDF00","#24CBE5","#64E572","#FF9655","#FFF263","#6AF9C4"],this.thickness=45,this.angle=60,this.showLegend=!0,this.itemDistance=80,this.coefficient=1,this.startAngle=90,this.alignType="center",this.verticalAlign="bottom",this._data=[{x:"一月",y:33},{x:"二月",y:31},{x:"三月",y:11},{x:"四月",y:11},{x:"五月",y:7},{x:"六月",y:20}],this.data=[]}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){return __awaiter(this,void 0,void 0,(function(){var e,t,o,i,a,r,n,s,d,l,p,c=this;return __generator(this,(function(g){switch(g.label){case 0:return[4,this.initPlugin()];case 1:return g.sent(),this.reloadData(),e=Highcharts.each,t=Math.round,o=Math.cos,i=Math.sin,a=Math.PI/180,Highcharts.wrap(Highcharts.seriesTypes.pie.prototype,"translate",(function(r){if(r.apply(this,[].slice.call(arguments,1)),this.chart.is3d()){var n=this,s=n.chart,d=s.options,l=n.options,p=l.depth||0,c=d.chart.options3d,g=c.alpha,h=c.beta,u=l.stacking?(l.stack||0)*p:n._i*p;u+=p/2,!1!==l.grouping&&(u=0),e(n.data,(function(e){var r,s=e.shapeArgs;e.shapeType="arc3d";var d=e.options.h;s.z=u,s.depth=.75*p+d,s.alpha=g,s.beta=h,s.center=n.center,s.ran=d,r=(s.end+s.start)/2,e.slicedTranslation={translateX:t(o(r)*l.slicedOffset*o(g*a)),translateY:t(i(r)*l.slicedOffset*o(g*a))}}))}})),Highcharts.wrap(Highcharts.SVGRenderer.prototype,"arc3dPath",(function(e){var t=e.apply(this,[].slice.call(arguments,1));return t.zTop=(t.zOut+.5)/100,t})),r=this._data.reduce((function(e,t){return e+Number(t.y)}),0),this._data.sort((function(e,t){return t.y-e.y})),n=[],this._data.forEach((function(e){var t,o=e.x,i=e.y;t=0===r?{name:o,y:1,h:100/c._data.length*(c.coefficient||1)}:{name:o,y:Number(i),h:Number(i)/r*100*(c.coefficient||1)},n.push(t)})),s="{series.name}: <b>{point.percentage:.1f}%</b>",d='<span style="{color}">{name} :{y}</span>',l='<span style="color:{point.color}">{point.y}<br/>{point.name}',0===r&&(s="{series.name}: <b>0%</b>",d='<span style="{color}">{name} :0</span>',l='<span style="color:{point.color}">0<br/>{point.name}'),p={legend:{itemStyle:{color:this.font.color,fontSize:this.font.size+"px",fontWeight:this.font.weight,fontFamily:this.font.family},verticalAlign:this.verticalAlign,align:this.alignType,itemDistance:this.itemDistance,labelFormat:d},chart:{type:"pie",animation:!1,events:{load:function(){(0,Highcharts.each)(this.series[0].points,(function(e,t){e.graphic.attr({translateY:-e.shapeArgs.ran}),e.graphic.side1.attr({translateY:-e.shapeArgs.ran}),e.graphic.side2.attr({translateY:-e.shapeArgs.ran})}))}},options3d:{enabled:!0,alpha:this.angle,beta:0}},title:{text:this.title,style:{color:this.font.color,fontSize:this.font.size+"px",fontWeight:this.font.weight,fontFamily:this.font.family}},tooltip:{pointFormat:s,style:getFontStyle(this.tooltipFont)},plotOptions:{pie:{showInLegend:this.showLegend,allowPointSelect:!1,cursor:"pointer",depth:this.thickness,point:{events:{legendItemClick:function(){return!1}}},dataLabels:{style:getFontStyle(this.font),enabled:this.buoy,format:l}}},colors:this.colors,series:[{type:"pie",name:this.title,startAngle:this.startAngle,data:n}]},Highcharts.chart(this.container.nativeElement,p),[2]}}))}))},e.prototype.reloadData=function(){},e.prototype.initPlugin=function(){return this.highChartsService.load3D()},e}(),exports.ɵdi.initPluginPromise=null,exports.ɵdi.decorators=[{type:i0.Component,args:[{selector:"sc-pie3d-chart",template:'<div #container style="height: 100%"></div>\n',styles:[":host::ng-deep .highcharts-background,:host::ng-deep .highcharts-credits{display:none}"]}]}],exports.ɵdi.ctorParameters=function(){return[{type:HighChartsService}]},exports.ɵdi.propDecorators={container:[{type:i0.ViewChild,args:["container",{static:!0}]}]},__decorate([bbjWidgetBase.Property("标题",{type:"string"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"title",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("浮标",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"buoy",void 0),__decorate([bbjWidgetBase.Property("填充",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"colors",void 0),__decorate([bbjWidgetBase.Property("饼图厚度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"thickness",void 0),__decorate([bbjWidgetBase.Property("倾斜角度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"angle",void 0),__decorate([bbjWidgetBase.Property("图例开关",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"showLegend",void 0),__decorate([bbjWidgetBase.Property("图例间距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"itemDistance",void 0),__decorate([bbjWidgetBase.Property("高度系数",{type:"number"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"coefficient",void 0),__decorate([bbjWidgetBase.Property("开始角度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdi.prototype,"startAngle",void 0),__decorate([bbjWidgetBase.Property("图例水平",{ui:{widget:"select"},enum:[{label:"居中",value:"center"},{label:"居左",value:"left"},{label:"居右",value:"right"}]}),__metadata("design:type",Object)],exports.ɵdi.prototype,"alignType",void 0),__decorate([bbjWidgetBase.Property("图例垂直",{ui:{widget:"select"},enum:[{label:"居上",value:"top"},{label:"居下",value:"bottom"},{label:"居中",value:"middle"}]}),__metadata("design:type",Object)],exports.ɵdi.prototype,"verticalAlign",void 0),__decorate([bbjWidgetBase.Property("提示框字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"tooltipFont",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"string",title:"类目"},y:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵdi.prototype,"_data",void 0),exports.ɵdi=__decorate([bbjWidgetBase.Widget("3D饼图",{group:"pieChart",image:"assets/img/screen/pie3d.png",icon:"icontubiao"}),__metadata("design:paramtypes",[HighChartsService])],exports.ɵdi);var Pie3dChartModule=function(e){e.register(exports.ɵdi)};Pie3dChartModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdi],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],Pie3dChartModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdl=function(){function e(){this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},this.detailFont={family:"",color:"#FFFFFF",weight:"normal",size:14,space:0,lineHeight:12},this.percent=!1,this.colors=["#058DC7","#50B432","#ED561B","#DDDF00","#24CBE5","#64E572","#FF9655","#FFF263","#6AF9C4"],this.startAngle=225,this.endAngle=-45,this.label=!1,this.max=100,this.min=0,this.pointerLength=80,this.width=12,this.showPointer=!0,this.showScale=!0,this.chartOption={},this._data=[{name:"速度",value:48},{name:"温度",value:20}]}return e.prototype.ngOnChanges=function(e){if(e._data){this.font.color,this.font.family,this.font.weight,this.font.size,this.font.lineHeight;this.showPointer||(this.pointerLength=0),this.chartOption={series:[{type:"gauge",anchor:{show:this.showPointer,showAbove:!0,size:18,itemStyle:{color:"#FAC858"}},pointer:{icon:"path://M2.9,0.7L2.9,0.7c1.4,0,2.6,1.2,2.6,2.6v115c0,1.4-1.2,2.6-2.6,2.6l0,0c-1.4,0-2.6-1.2-2.6-2.6V3.3C0.3,1.9,1.4,0.7,2.9,0.7z",width:8,length:this.pointerLength+"%",offsetCenter:[0,"8%"]},progress:{show:!0,overlap:!0,roundCap:!0,width:this.width},axisLine:{roundCap:!0,lineStyle:{width:this.width}},startAngle:this.startAngle,endAngle:this.endAngle,splitLine:{show:this.showScale},axisTick:{show:this.showScale},axisLabel:{show:this.showScale,color:"#fff"},data:[],color:this.colors,title:{show:this.label,fontSize:this.font.size,color:this.font.color},detail:{formatter:this.percent?"{value}%":"{value}",width:40,height:this.detailFont.size,fontSize:this.detailFont.size,color:this.detailFont.color,backgroundColor:"auto",borderRadius:3,show:this.label},max:this.max,min:this.min}]}}this.reloadData()},e.prototype.ngOnInit=function(){},e.prototype.reloadData=function(){var e=[];if(this._data){var t=200/(this._data.length+1),o=t-100;this._data.forEach((function(i,a){var r={value:i.value,name:i.name,title:{offsetCenter:[o+a*t+"%","30%"]},detail:{offsetCenter:[o+a*t+"%","50%"]}};e.push(r)}))}this.chartOption.series[0].data=e},e}(),exports.ɵdl.decorators=[{type:i0.Component,args:[{selector:"sc-multi-title-gauge",template:'<div echarts [options]="chartOption" class="demo-chart" [initOpts]="{ renderer: \'svg\' }"></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵdl.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"detailFont",void 0),__decorate([bbjWidgetBase.Property("百分号",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"percent",void 0),__decorate([bbjWidgetBase.Property("类别颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"],visibleIf:{colorSwitch:[!0]}}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"colors",void 0),__decorate([bbjWidgetBase.Property("起始角度",{ui:{widget:"myRange",min:90,max:360,step:1}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"startAngle",void 0),__decorate([bbjWidgetBase.Property("结束角度",{ui:{widget:"myRange",min:-90,max:90,step:1}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"endAngle",void 0),__decorate([bbjWidgetBase.Property("标签",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("最大值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("最小值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("指针长度",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"pointerLength",void 0),__decorate([bbjWidgetBase.Property("环宽",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("显示指针",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"showPointer",void 0),__decorate([bbjWidgetBase.Property("显示刻度",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"showScale",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"文字"},value:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵdl.prototype,"_data",void 0),exports.ɵdl=__decorate([bbjWidgetBase.Widget("多标题仪表盘",{group:"otherChart",image:"assets/img/screen/multiTitleGauge.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵdl);var MultiTitleGaugeModule=function(e){e.register(exports.ɵdl)};MultiTitleGaugeModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdl],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],MultiTitleGaugeModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdn=function(){function e(){this.numfont={family:"Microsoft YaHei",color:"#ffffff",weight:"normal",size:21,space:0,lineHeight:"20"},this.slidesPerView=1,this.spaceBetween=0,this.navigation=!0,this.navigationMoveVal=-60,this.navigationLeftIcon=null,this.navigationRightIcon=null,this.showType="card",this.cardBgImg=null,this.navigationBtnConfig={prevEl:".swiper-navigation-prev",nextEl:".swiper-navigation-next"},this.seriesColor={gradient:!1,value:[["#6D7597","#6D7597"]]},this.width=10,this.startAngle=210,this.endAngle=-30,this.label=!0,this.font={family:"",color:"#FFFFFF",weight:"normal",size:18,space:0,lineHeight:18},this.labelOffset=50,this.labelWidth=null,this.labelVal=!0,this.numFont={family:"",color:"#FFFFFF",weight:"normal",size:38,space:0,lineHeight:38},this.percent=!1,this.labelValOffset=-10,this.max=100,this.min=0,this.progressColor={gradient:!0,value:[["#2505F0","#f00"]]},this.progressShadow=null,this.chartOption={},this._data=[{name:"标题",value:50}],this.data=[]}return e.prototype.ngOnChanges=function(e){var t=this;e._data&&(this.data=[],this._data&&(this._data.length<=this.slidesPerView&&(this.navigation=!1),this._data.forEach((function(e){var o=[];o.push(e);var i={series:[{type:"gauge",startAngle:t.startAngle,endAngle:t.endAngle,progress:{show:!!(e.value&&Number(e.value)>0),overlap:!1,roundCap:!0,clip:!1,itemStyle:{borderWidth:1,color:t.getColor(t.progressColor,"progress"),shadowColor:t.progressShadow,shadowBlur:5}},detail:{show:t.labelVal,formatter:t.percent?(e.value/t.max*100).toFixed(2)+"%":"{value}",color:t.numFont.color,fontFamily:t.numFont.family,fontWeight:t.numFont.weight,fontSize:t.numFont.size,lineHeight:t.numFont.lineHeight,offsetCenter:[0,t.labelValOffset+"%"]},data:o,title:{show:t.label,color:t.font.color,fontFamily:t.font.family,fontWeight:t.font.weight,fontSize:t.font.size,lineHeight:t.font.lineHeight,offsetCenter:[0,t.labelOffset+"%"],overflow:"breakAll",width:t.labelWidth},axisLine:{roundCap:!0,lineStyle:{width:t.width,color:t.getColor(t.seriesColor)}},max:t.max,min:t.min,axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1},pointer:{show:!1}}]};t.data.push(i)}))))},e.prototype.ngOnInit=function(){},e.prototype.getColor=function(e,t){var o=[],i=[],a=e&&e.value?e.value:e;a.forEach((function(e){o.push({type:"linear",x:0,y:0,x2:1,y2:0,global:!1,colorStops:[{offset:0,color:e[0]},{offset:1,color:e[1]}]})}));var r=1;if(a.length>1){r=1/a.length;for(var n=0;n<a.length;n++)i.push([r*(n+1),o[n]])}return"progress"===t?o[0]:r<1?i:[[1,o[0]]]},e}(),exports.ɵdn.decorators=[{type:i0.Component,args:[{selector:"sc-gauge-progress",template:'\n<swiper-container\n #swiper\n [slidesPerView]="slidesPerView"\n [spaceBetween]="spaceBetween"\n [navigation]="navigation && navigationLeftIcon && navigationRightIcon ? navigationBtnConfig : navigation"\n class="swiper-no-swiping"\n [noSwiping]="true"\n>\n <swiper-slide *ngFor="let item of data">\n \x3c!-- <div class="item-img">\n <div class="item-val" [ngStyle]="numfont">{{ item.value }}</div>\n <img [src]="cardBgImg" alt="" />\n </div>\n <div [ngStyle]="font">{{ item.label }}</div> --\x3e\n <div echarts [options]="item" class="demo-chart" [initOpts]="{ renderer: \'svg\' }"></div>\n </swiper-slide>\n</swiper-container>\n<ng-container *ngIf="navigation && navigationLeftIcon && navigationRightIcon">\n <div class="navigationbtn swiper-navigation-prev" [style]="{ left: (navigationMoveVal || \'-60\') + \'px\' }">\n <img [src]="navigationLeftIcon" alt="" />\n </div>\n <div class="navigationbtn swiper-navigation-next" [style]="{ right: (navigationMoveVal || \'-60\') + \'px\' }">\n <img [src]="navigationRightIcon" alt="" />\n </div>\n</ng-container>\n\n\n\n',styles:[":host{display:block}:host,:host ::ng-deep swiper-container{height:100%;width:100%}:host ::ng-deep swiper-slide{text-align:center;position:relative}:host ::ng-deep .item-img{position:relative}:host ::ng-deep .item-img img{display:block;width:100%}:host ::ng-deep .item-val{position:absolute;text-align:center;top:0;bottom:0;left:0;width:100%;z-index:99}:host ::ng-deep .navigationbtn{cursor:pointer;position:absolute;top:0;bottom:0;display:flex;align-items:center;outline:none}:host ::ng-deep .swiper-navigation-prev{left:-60px}:host ::ng-deep .swiper-navigation-next{right:-60px}.demo-chart{height:100%}"]}]}],exports.ɵdn.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("数值字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"numfont",void 0),__decorate([bbjWidgetBase.Property("可视个数",{type:"number"}),__metadata("design:type",Object)],exports.ɵdn.prototype,"slidesPerView",void 0),__decorate([bbjWidgetBase.Property("间距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdn.prototype,"spaceBetween",void 0),__decorate([bbjWidgetBase.Property("左右按钮",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"navigation",void 0),__decorate([bbjWidgetBase.Property("按钮偏移",{type:"number"}),__metadata("design:type",Object)],exports.ɵdn.prototype,"navigationMoveVal",void 0),__decorate([bbjWidgetBase.Property("左图标",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"navigationLeftIcon",void 0),__decorate([bbjWidgetBase.Property("右图标",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"navigationRightIcon",void 0),__decorate([bbjWidgetBase.Property("显示模式",{ui:{widget:"select"},enum:[{label:"图标卡片",value:"card"}]}),__metadata("design:type",Object)],exports.ɵdn.prototype,"showType",void 0),__decorate([bbjWidgetBase.Property("卡片背景",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"cardBgImg",void 0),__decorate([bbjWidgetBase.Property("表盘颜色",{ui:{widget:"seriesColor",type:"gradual",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"seriesColor",void 0),__decorate([bbjWidgetBase.Property("表盘宽度",{ui:{widget:"myRange",min:0,max:100,step:1}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("起始角度",{ui:{widget:"myRange",min:90,max:360,step:1}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"startAngle",void 0),__decorate([bbjWidgetBase.Property("结束角度",{ui:{widget:"myRange",min:-90,max:90,step:1}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"endAngle",void 0),__decorate([bbjWidgetBase.Property("显示标题",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"label",void 0),__decorate([bbjWidgetBase.Property("标题字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("标题位移",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"labelOffset",void 0),__decorate([bbjWidgetBase.Property("标题宽度",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"labelWidth",void 0),__decorate([bbjWidgetBase.Property("显示数值",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"labelVal",void 0),__decorate([bbjWidgetBase.Property("数值字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"numFont",void 0),__decorate([bbjWidgetBase.Property("百分号",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"percent",void 0),__decorate([bbjWidgetBase.Property("数值位移",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"labelValOffset",void 0),__decorate([bbjWidgetBase.Property("最大值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("最小值",{ui:{widget:"number"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("进度颜色",{ui:{widget:"seriesColor",type:"gradual"}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"progressColor",void 0),__decorate([bbjWidgetBase.Property("进度阴影",{ui:{widget:"myColor",example:["#ffffff","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B",null]}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"progressShadow",void 0),__decorate([bbjWidgetBase.Data({properties:{name:{type:"string",title:"文字"},value:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵdn.prototype,"_data",void 0),exports.ɵdn=__decorate([bbjWidgetBase.Widget("进度条仪表盘",{group:"otherChart",image:"assets/img/screen/gauge-progress.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵdn);var GaugeProgressModule=function(e){e.register(exports.ɵdn)};GaugeProgressModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdn],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule],schemas:[i0.CUSTOM_ELEMENTS_SCHEMA]}]}],GaugeProgressModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdr=function(){function e(){this.title="",this.titleFont={family:"",color:"#ffffff",weight:"normal",size:20,space:0,lineHeight:40},this.subtitleFont={family:"",color:"#ffffff",weight:"normal",size:20,space:0,lineHeight:40},this.font={family:"",color:"#FFFFFF",weight:"normal",size:12,space:0,lineHeight:12},this.borderColor="",this.startColor="#D0021B",this.endColor="#F5A623",this.borderWidth=5,this.separate=";",this.marginSize=";",this._data=[{title:"单位单位单位",content:"【带班领导】 张三 1300000000;【值班联系】 李四 1300000000 "},{title:"单位单位单位",content:"【带班领导】 张三 1300000000;【值班联系】 李四 1300000000 "},{title:"单位单位单位",content:"【带班领导】 张三 1300000000;【值班联系】 李四 1300000000 "},{title:"单位单位单位",content:"【带班领导】 张三 1300000000;【值班联系】 李四 1300000000 "}],this.contentArr=[]}return e.prototype.ngOnChanges=function(e){var t=this;this._data&&this._data.length>0&&this._data.forEach((function(e){var o={title:"",content:[]},i=t.separate;i&&""!==i||(i=";"),o.title=e.title,o.content=e.content.split(i),t.contentArr.push(o)}))},e.prototype.ngOnInit=function(){this.titleStyle={fontSize:this.titleFont.size+"px",fontFamily:this.titleFont.family,color:this.titleFont.color,fontWeight:this.titleFont.weight,letterSpacing:this.titleFont.space+"px",lineHeight:this.titleFont.lineHeight+"px"},this.subtitleStyle={fontSize:this.subtitleFont.size+"px",fontFamily:this.subtitleFont.family,color:this.subtitleFont.color,fontWeight:this.subtitleFont.weight,letterSpacing:this.subtitleFont.space+"px",lineHeight:this.subtitleFont.lineHeight+"px",borderLeft:this.borderWidth+"px solid "+this.borderColor,background:"-webkit-linear-gradient(left,"+this.startColor+","+this.endColor+")"},this.textStyle={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"},this.boxStyle={margin:this.marginSize+"px 0px"}},e}(),exports.ɵdr.decorators=[{type:i0.Component,args:[{selector:"sc-bulletin-board",template:'<div class="content">\n <div *ngIf="title" class="title">\n <p [ngStyle]="titleStyle">{{ title }}</p>\n </div>\n <div class="module" *ngFor="let item of contentArr">\n <div class="subtitle" [ngStyle]="subtitleStyle">\n {{ item.title }}\n </div>\n <div class="box" [ngStyle]="boxStyle">\n <div class="text" [ngStyle]="textStyle" *ngFor="let a of item.content">\n {{ a }}\n </div>\n </div>\n </div>\n</div>\n',styles:[".content,:host{width:100%;height:100%}.content{display:block;padding:0 5%;overflow-y:scroll}.content .title{padding:10% 0 5%}.content .text{margin-bottom:10px;padding-left:5%}.content .subtitle{margin-bottom:3%;padding-left:5%}.content::-webkit-scrollbar{display:none}"]}]}],exports.ɵdr.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("标题",{type:"string"}),__metadata("design:type",Object)],exports.ɵdr.prototype,"title",void 0),__decorate([bbjWidgetBase.Property("标题字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"titleFont",void 0),__decorate([bbjWidgetBase.Property("小标题字",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"subtitleFont",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("边框颜色",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"borderColor",void 0),__decorate([bbjWidgetBase.Property("渐变开始",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"startColor",void 0),__decorate([bbjWidgetBase.Property("渐变结束",{ui:{widget:"myColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#ffffff"]}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"endColor",void 0),__decorate([bbjWidgetBase.Property("边框粗细",{type:"number"}),__metadata("design:type",Object)],exports.ɵdr.prototype,"borderWidth",void 0),__decorate([bbjWidgetBase.Property("分隔符",{type:"string"}),__metadata("design:type",Object)],exports.ɵdr.prototype,"separate",void 0),__decorate([bbjWidgetBase.Property("内容边距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdr.prototype,"marginSize",void 0),__decorate([bbjWidgetBase.Data({properties:{title:{type:"string",title:"小标题"},content:{type:"string",title:"内容"}}}),__metadata("design:type",Object)],exports.ɵdr.prototype,"_data",void 0),exports.ɵdr=__decorate([bbjWidgetBase.Widget("布告栏",{group:"component",icon:"icontubiao",image:"/assets/img/screen/bulletin-board.png"}),__metadata("design:paramtypes",[])],exports.ɵdr);var BulletinBoardModule=function(e){e.register(exports.ɵdr)};BulletinBoardModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdr],imports:[common.CommonModule]}]}],BulletinBoardModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdp=function(){function e(e){this.ele=e,this.font={family:"Microsoft YaHei",color:"#ffffff",weight:"normal",size:20,space:0,lineHeight:"66"},this.numfont={family:"Microsoft YaHei",color:"#ffffff",weight:"normal",size:21,space:0,lineHeight:"25"},this.titlefont={family:"Microsoft YaHei",color:"#ffffff",weight:"normal",size:21,space:0,lineHeight:"25"},this.slidesPerView=3,this.selectHeight=180,this.gourpHeight=0,this.valueBottom=0,this.spaceBetween=10,this.navigation=!0,this.navigationMoveVal=-60,this.navigationLeftIcon=null,this.navigationRightIcon=null,this.showType="card",this.cardBgImg=null,this.height=180,this.width=180,this.isgroup=!1,this.images=[{imageUrl:"assets/img/screen/picture9.png"},{imageUrl:"assets/img/screen/picture9.png"},{imageUrl:"assets/img/screen/picture9.png"},{imageUrl:"assets/img/screen/picture9.png"},{imageUrl:"assets/img/screen/picture9.png"},{imageUrl:"assets/img/screen/picture9.png"}],this.groups=[{groupName:"1",imageUrl:"assets/img/screen/picture9.png"},{groupName:"2",imageUrl:"assets/img/screen/picture9.png"},{groupName:"3",imageUrl:"assets/img/screen/picture9.png"},{groupName:"4",imageUrl:"assets/img/screen/picture9.png"},{groupName:"5",imageUrl:"assets/img/screen/picture9.png"},{groupName:"6",imageUrl:"assets/img/screen/picture9.png"}],this.groupfont={},this._data=[{label:"测试1",value:"1000",group:"1"},{label:"测试2",value:"1000",group:"2"},{label:"测试3",value:"1000",group:"3"},{label:"测试4",value:"1000",group:"4"},{label:"测试5",value:"1000",group:"5"},{label:"测试6",value:"1000",group:"6"}],this.valueChange=new i0.EventEmitter,this.navigationBtnConfig={prevEl:".swiper-navigation-prev",nextEl:".swiper-navigation-next"},this.data=[],this.items={},this.showNavigation=!0}return e.prototype.ngOnInit=function(){this.isgroup&&(this.groupfont={fontSize:this.titlefont.size+"px",fontFamily:this.titlefont.family,color:this.titlefont.color,fontWeight:this.titlefont.weight,letterSpacing:this.titlefont.space+"px",lineHeight:this.titlefont.lineHeight+"px",top:this.gourpHeight+"px"})},e.prototype.ngOnChanges=function(e){var t=this;this.items={},this.data=[],e.numfont&&(this.numfont={fontSize:this.numfont.size+"px",fontFamily:this.numfont.family,color:this.numfont.color,fontWeight:this.numfont.weight,letterSpacing:this.numfont.space+"px",lineHeight:this.numfont.lineHeight+"px"}),e.font&&(this.font={fontSize:this.font.size+"px",fontFamily:this.font.family,color:this.font.color,fontWeight:this.font.weight,letterSpacing:this.font.space+"px",lineHeight:this.font.lineHeight+"px"}),this._data&&this._data[0]&&!this.isgroup&&this._data.forEach((function(e,o){var i,a="";t.images&&(a=(null===(i=t.images[o])||void 0===i?void 0:i.imageUrl)||t.images[t.images.length-1].imageUrl,e.imgstyle={height:(t.height||30)+"px",width:(t.width||30)+"px"}),e.img=a,t.data.push(e)})),this._data&&this._data[0]&&this.isgroup&&(this._data.forEach((function(e){var o=e.group||" ";t.items[o]||(t.items[o]={});var i=t.items[o];i.field||(i.field=[]),i.field.push({label:e.label,value:e.value})})),this.groups&&this.groups.length>0&&this.groups.forEach((function(e){var o=t.items[e.groupName];o&&(o.img=e.imageUrl||"",o.imgstyle={height:(t.height||30)+"px",width:(t.width||30)+"px"})})),Object.keys(this.items).forEach((function(e){var o=t.items[e];o.group=e,t.data.push(o)}))),this.data&&this.data[0]?this.showNavigation=this.navigation:this.showNavigation=!1,console.log(this.data)},e.prototype.onSwiper=function(e){},e.prototype.onSlideChange=function(){},e}(),exports.ɵdp.decorators=[{type:i0.Component,args:[{selector:"sc-item-swiper",template:'<swiper-container appSwiper\n #swiper\n [attr.slides-per-view]="slidesPerView"\n [attr.space-between]="spaceBetween"\n [attr.navigation]="navigation && navigationLeftIcon && navigationRightIcon ? navigationBtnConfig : navigation"\n class="swiper-no-swiping"\n [attr.no-swiping]="true"\n>\n <swiper-slide *ngFor="let item of data">\n <ng-container *ngIf="!isgroup">\n <div class="item-img">\n <div class="item-val" [ngStyle]="numfont">{{ item.value }}</div>\n <img [src]="item.img" alt="" [ngStyle]="item.imgstyle" />\n </div>\n <div [ngStyle]="font">{{ item.label }}</div>\n </ng-container>\n \x3c!-- <ng-container *ngFor="let i of item"> --\x3e\n <ng-container *ngIf="isgroup">\n <div class="content" [style.height]="selectHeight + \'px\'">\n <div [ngStyle]="groupfont" class="title">{{ item.group }}</div>\n <div class="item-img">\n \x3c!-- <ng-container *ngIf="item.img"> --\x3e\n <img [src]="item.img" alt="" [ngStyle]="item.imgstyle" />\n \x3c!-- </ng-container> --\x3e\n </div>\n <div class="kvbox" [style.bottom]="valueBottom + \'px\'">\n <div style="display: inline-flex">\n <ng-container *ngFor="let a of item.field">\n <span style="flex: 1; left: 0px" class="label">\n <div [ngStyle]="font">{{ a.label }}</div>\n <div [ngStyle]="numfont">{{ a.value }}</div>\n </span>\n </ng-container>\n </div>\n </div>\n </div>\n </ng-container>\n \x3c!-- </ng-container> --\x3e\n </swiper-slide>\n</swiper-container>\n<ng-container *ngIf="navigationLeftIcon && navigationRightIcon">\n <div class="navigationbtn swiper-navigation-prev" [style.left.px]="navigationMoveVal || -60" [class.hidden]="!showNavigation">\n <img [src]="navigationLeftIcon" alt="" />\n </div>\n <div class="navigationbtn swiper-navigation-next" [style.right.px]="navigationMoveVal || -60" [class.hidden]="!showNavigation">\n <img [src]="navigationRightIcon" alt="" />\n </div>\n</ng-container>\n',styles:[":host{position:relative;display:block}:host ::ng-deep swiper-container{width:100%}:host ::ng-deep .title{z-index:100;position:absolute;left:0;width:100%;text-align:center}:host ::ng-deep swiper-slide{text-align:center;position:relative;overflow:visible;padding-top:30px}:host ::ng-deep .content,:host ::ng-deep .item-img{position:relative;height:100%;width:100%}:host ::ng-deep .item-img img{display:block;margin:auto}:host ::ng-deep .item-val{position:absolute;text-align:center;top:0;bottom:0;left:0;width:100%;z-index:99;overflow:visible}:host ::ng-deep .navigationbtn{cursor:pointer;position:absolute;top:0;bottom:0;display:flex;align-items:center;outline:none}:host ::ng-deep .navigationbtn.hidden{display:none}:host ::ng-deep .swiper-navigation-prev{left:-60px}:host ::ng-deep .swiper-navigation-next{right:-60px}:host ::ng-deep .label{margin:0 8px}:host ::ng-deep .kvbox{position:absolute;text-align:center;left:0;width:100%;z-index:99}"]}]}],exports.ɵdp.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("标题字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("数值字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"numfont",void 0),__decorate([bbjWidgetBase.Property("分组字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"titlefont",void 0),__decorate([bbjWidgetBase.Property("可视个数",{type:"number"}),__metadata("design:type",Object)],exports.ɵdp.prototype,"slidesPerView",void 0),__decorate([bbjWidgetBase.Property("选项高度"),__metadata("design:type",Number)],exports.ɵdp.prototype,"selectHeight",void 0),__decorate([bbjWidgetBase.Property("分组高度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdp.prototype,"gourpHeight",void 0),__decorate([bbjWidgetBase.Property("值高度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdp.prototype,"valueBottom",void 0),__decorate([bbjWidgetBase.Property("间距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdp.prototype,"spaceBetween",void 0),__decorate([bbjWidgetBase.Property("左右按钮",{ui:{widget:"boolean",checkedChildren:"开",unCheckedChildren:"关"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"navigation",void 0),__decorate([bbjWidgetBase.Property("按钮偏移",{type:"number"}),__metadata("design:type",Object)],exports.ɵdp.prototype,"navigationMoveVal",void 0),__decorate([bbjWidgetBase.Property("左图标",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"navigationLeftIcon",void 0),__decorate([bbjWidgetBase.Property("右图标",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"navigationRightIcon",void 0),__decorate([bbjWidgetBase.Property("显示模式",{ui:{widget:"select"},enum:[{label:"图标卡片",value:"card"}]}),__metadata("design:type",Object)],exports.ɵdp.prototype,"showType",void 0),__decorate([bbjWidgetBase.Property("卡片背景",{type:"string",ui:{widget:"myUpload"}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"cardBgImg",void 0),__decorate([bbjWidgetBase.Property("图片高度"),__metadata("design:type",Number)],exports.ɵdp.prototype,"height",void 0),__decorate([bbjWidgetBase.Property("图片宽度"),__metadata("design:type",Number)],exports.ɵdp.prototype,"width",void 0),__decorate([bbjWidgetBase.Property("是否分组"),__metadata("design:type",Boolean)],exports.ɵdp.prototype,"isgroup",void 0),__decorate([bbjWidgetBase.Property("图片分类",{type:"array",title:"图片分类",maxItems:10,items:{type:"object",properties:{imageUrl:{type:"string",title:"图片",ui:{widget:"myPicture"}}},required:[]},ui:{visibleIf:{isgroup:[!1]},grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"images",void 0),__decorate([bbjWidgetBase.Property("新增分组",{type:"array",title:"新增分组",maxItems:10,items:{type:"object",properties:{groupName:{type:"string",title:"组名"},imageUrl:{type:"string",title:"图片",ui:{widget:"myPicture"}}},required:[]},ui:{visibleIf:{isgroup:[!0]},grid:{arraySpan:24},spanControl:24}}),__metadata("design:type",Object)],exports.ɵdp.prototype,"groups",void 0),__decorate([bbjWidgetBase.Data({properties:{label:{title:"标题",type:"string"},value:{title:"值",type:"string"},group:{title:"分组",type:"string"}}}),__metadata("design:type",Array)],exports.ɵdp.prototype,"_data",void 0),__decorate([bbjWidgetBase.DataOutput("值"),__metadata("design:type",Object)],exports.ɵdp.prototype,"valueChange",void 0),exports.ɵdp=__decorate([bbjWidgetBase.Widget("轮播",{group:"component",image:"assets/img/screen/item-swiper.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵdp);var ItemSwiperModule=function(e){e.register(exports.ɵdp)};ItemSwiperModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdp],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,space.NzSpaceModule],schemas:[i0.CUSTOM_ELEMENTS_SCHEMA]}]}],ItemSwiperModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdt=function(){function e(e,t){this.renderer=e,this.elementRef=t,this.data=[],this.dataChange=new i0.EventEmitter}return e.prototype.ngOnInit=function(){this.edit||this.renderer.setStyle(this.elementRef.nativeElement,"display","none")},e.prototype.ngOnChanges=function(e){e.data&&this.dataChange.emit(this.data)},e.prototype.exportWord=function(){return null},e}(),exports.ɵdt.decorators=[{type:i0.Component,args:[{selector:"sc-temporary-data",template:'<i nz-icon nzType="database" nzTheme="outline"></i>',styles:[":host{font-size:40px;color:#1890ff}"]}]}],exports.ɵdt.ctorParameters=function(){return[{type:i0.Renderer2},{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Data({}),__metadata("design:type",Array)],exports.ɵdt.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput("数据"),__metadata("design:type",Object)],exports.ɵdt.prototype,"dataChange",void 0),exports.ɵdt=__decorate([bbjWidgetBase.Widget("临时数据",{group:"component",image:"assets/img/screen/temporary-data.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.Renderer2,i0.ElementRef])],exports.ɵdt);var TemporaryDataModule=function(e){e.register(exports.ɵdt)};TemporaryDataModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdt],imports:[common.CommonModule,icon.NzIconModule]}]}],TemporaryDataModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdv=function(){function e(){this.lineColor="#004CB3",this.lineshadowColor="rgba(0, 193, 220, 1)",this.lineHightLightColor="#8ED6FF",this.distance=10,this.topDistance=0}return e.prototype.resize=function(){var e=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((function(){e.reload(),e.resizeTimeout=null}),100)},e.prototype.ngAfterViewInit=function(){this.reload()},e.prototype.reload=function(){this.opt={},this.opt.currentIndex=1,this.opt.canvas=this.lineCanvas.nativeElement,this.initOpt(),this._initCanvas(this.opt.canvas,this.opt.width,this.opt.height),this._createPattern(this.opt.canvas),this.draw(0)},e.prototype.ngOnInit=function(){},e.prototype.initOpt=function(){var e=this.distance||100,t=this.canvasBox.nativeElement.offsetWidth;console.log(t,t*Number(this.distance)/100,"间距",e),this.opt=Object.assign(Object.assign({},this.opt),{animating:!0,distance:e,width:t,tabHeight:40,height:60,curDisX:0,currentIndex:0,avgSpeed:this.calcAVGSpeed(2*e),tabWidthList:[Math.round(t/2)-e/2,Math.round(t/2)+e/2]})},e.prototype.calcAVGSpeed=function(e){var t=__read([.85,10,4],3),o=t[0],i=t[1],a=t[2],r=(a*o*e+i*(1-o)*e)/(i*a*20);return r=Math.max(Math.abs(r),2.5)*Math.sign(r)},e.prototype.getCurSpeed=function(e,t){var o=__read([.85,10,4],3),i=o[0],a=o[1],r=o[2];return Math.abs(e)>Math.abs(i*t)?r*this.opt.avgSpeed:a*this.opt.avgSpeed},e.prototype._calCurve=function(e,t,o,i,a,r){a.bezierCurveTo(e+r,t,o-r,i,o,i)},e.prototype._initCanvas=function(e,t,o){var i=window.devicePixelRatio,a=e.getContext("2d");e.width=t*i,e.height=o*i,e.style.width=t+"px",e.style.height=o+"px",a.scale(i,i)},e.prototype._createPattern=function(e){var t=__read([140,23,1],3),o=t[0],i=t[1],a=t[2],r=document.createElement("canvas");r.width=o,r.height=i,r.style.width=o/a+"px",r.style.height=i/a+"px";var n=r.getContext("2d");n.scale(a,a),n.lineWidth=.4;for(var s=1;2>s;s++)n.strokeStyle="RGBA(0, 0, 0,0)",n.beginPath(),n.moveTo(0,3*s),n.lineTo(o,3*s),n.stroke(),n.closePath(),10<s&&.1;var d=e.getContext("2d").createPattern(r,"repeat-x");this.opt.pattern=d,r=null},e.prototype._drawHightlight=function(e){var t=this.opt,o=t.canvas.getContext("2d");o.clearRect(0,0,2*t.width,2*t.height),o.shadowColor=this.lineshadowColor,o.shadowBlur=5,o.strokeStyle=this.lineColor,o.lineWidth=.8,o.fillStyle="none",this._draw(o,!1);var i=o.createLinearGradient(0,0,t.width,t.height),a=e-.3;i.addColorStop(Math.min(1,Math.max(0,0+a)),"rgba(0,0,0,0)"),i.addColorStop(Math.min(1,Math.max(0,0+a+.1)),this.lineHightLightColor),i.addColorStop(Math.min(1,0+a+.3),this.lineHightLightColor),i.addColorStop(Math.min(1,0+a+.3+.1),"rgba(0,0,0,0)"),i.addColorStop(1,"rgba(0,0,0,0)"),o.lineWidth=1.5,o.strokeStyle=i,o.fillStyle=t.pattern,this._draw(o,!0)},e.prototype.draw=function(e){var t=this;this._drawHightlight(e),this.opt.timer=requestAnimationFrame((function(){t.draw((e+.005)%1.6)}))},e.prototype._draw=function(e,t){var o=this.opt,i=o.tabHeight,a=__read([0,110,40,.5,2.5],5),r=a[0],n=a[1],s=a[2],d=a[3],l=a[4],p=0;if(e.beginPath(),e.moveTo(-50,-15),e.lineTo(-50,d),o.animating){var c=this.getCurSpeed(o.curDisX,o.distance);p=Math.min(Math.abs(o.distance),Math.abs(o.curDisX+c))*Math.sign(c)}if(e.lineTo(r+o.tabWidthList[0]+p-n/2,l+d),this._calCurve(r+o.tabWidthList[0]+p-n/2,l+d,r+o.tabWidthList[0]+p+n/2,i+d,e,s),o.animating){var g=o.tabWidthList[o.nextIndex+1]-o.tabWidthList[o.nextIndex];e.lineTo(r+o.tabWidthList[0]+g+p-n/2,i+d),this._calCurve(r+o.tabWidthList[0]+g+p-n/2,i+d,r+o.tabWidthList[0]+g+p+n/2,l+d,e,s)}else e.lineTo(r+o.tabWidthList[1]+p-n/2,i+d),this._calCurve(r+o.tabWidthList[1]+p-n/2,i+d,r+o.tabWidthList[1]+p+n/2,l+d,e,s);e.lineTo(o.width+10,d),e.lineTo(o.width+10,-15),e.closePath(),e.stroke(),t&&e.fill(),o.animating&&t&&(o.curDisX=p),Math.abs(p)>=Math.abs(o.distance)&&(o.animating=!1)},e}(),exports.ɵdv.decorators=[{type:i0.Component,args:[{selector:"sc-line-light-flow",template:"<div #canvasBox [style.paddingTop]=\"topDistance + 'px'\">\r\n <canvas #lineCanvas></canvas>\r\n</div>\r\n",styles:[""]}]}],exports.ɵdv.ctorParameters=function(){return[]},exports.ɵdv.propDecorators={lineCanvas:[{type:i0.ViewChild,args:["lineCanvas"]}],canvasBox:[{type:i0.ViewChild,args:["canvasBox"]}],resize:[{type:i0.HostListener,args:["window:resize"]}]},__decorate([bbjWidgetBase.Property("线条颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdv.prototype,"lineColor",void 0),__decorate([bbjWidgetBase.Property("线条阴影",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdv.prototype,"lineshadowColor",void 0),__decorate([bbjWidgetBase.Property("高亮颜色",{ui:{widget:"myColor"}}),__metadata("design:type",Object)],exports.ɵdv.prototype,"lineHightLightColor",void 0),__decorate([bbjWidgetBase.Property("中间间距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdv.prototype,"distance",void 0),__decorate([bbjWidgetBase.Property("上边距",{type:"number"}),__metadata("design:type",Object)],exports.ɵdv.prototype,"topDistance",void 0),exports.ɵdv=__decorate([bbjWidgetBase.Widget("光线特效",{group:"mipAnim"}),__metadata("design:paramtypes",[])],exports.ɵdv);var LineLightFlowModule=function(e){e.register(exports.ɵdv)};LineLightFlowModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdv],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],LineLightFlowModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdw=function(){function e(){}return e.prototype.ngOnChanges=function(e){e.data&&this.data.length&&this.data[0].url&&(this.url=this.data[0].url)},e.prototype.ngOnInit=function(){},e.prototype.setUrl=function(e){this.url=e},e}(),exports.ɵdw.decorators=[{type:i0.Component,args:[{selector:"sc-iframe",template:'<iframe *ngIf="url" [class.edit]="edit" [src]="url | nzSanitizer: \'resourceUrl\'"> </iframe>\n',styles:[":host{display:block}:host,iframe{width:100%;height:100%}iframe{border:none}iframe.edit{pointer-events:none}"]}]}],exports.ɵdw.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("url"),__metadata("design:type",String)],exports.ɵdw.prototype,"url",void 0),__decorate([bbjWidgetBase.Data({properties:{url:{type:"string",title:"url"}}}),__metadata("design:type",Array)],exports.ɵdw.prototype,"data",void 0),__decorate([bbjWidgetBase.Method("设置url"),__param(0,bbjWidgetBase.Param("url")),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],exports.ɵdw.prototype,"setUrl",null),exports.ɵdw=__decorate([bbjWidgetBase.Widget("iframe",{group:"component",image:"assets/img/screen/iframe.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵdw);var IframeModule=function(e){e.register(exports.ɵdw)};IframeModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdw],imports:[common.CommonModule,pipes.NzPipesModule]}]}],IframeModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdx=function(){function e(){this.size=4,this.gutter=4,this.type="flv",this.data=[],this.videos=[],this.selectedIndex=0}return e.prototype.ngOnInit=function(){this.updateSize()},e.prototype.ngOnChanges=function(e){var t,o=this;e.size&&this.updateSize(),e.gutter&&this.updateGutter(),e.src&&this.addSrc(this.src),e.data&&(null===(t=this.data)||void 0===t?void 0:t.length)&&this.data.forEach((function(e,t){var i=o.videos[t];i&&(i.src=e.src)}))},e.prototype.updateSize=function(){if(this.size!==this.videos.length){if(this.size>this.videos.length)for(var e=this.videos.length;e<this.size;e++)this.videos.push({});else this.videos=this.videos.slice(0,this.size);9===this.size?this.cellSize="33.33%":this.cellSize="50%",this.validIndex()}},e.prototype.updateGutter=function(){this.gutter&&(this.margin=-this.gutter,this.height="calc(100% + "+2*this.gutter+"px)")},e.prototype.validIndex=function(){this.selectedIndex>=this.videos.length&&(this.selectedIndex=0)},e.prototype.addSrc=function(e){if(e){var t=this.videos[this.selectedIndex];t&&(t.src=e),this.selectedIndex++,this.validIndex()}},e.prototype.toggle=function(){this.size=4===this.size?9:4,this.updateSize()},e}(),exports.ɵdx.decorators=[{type:i0.Component,args:[{selector:"sc-video-grid",template:'\x3c!-- <div nz-row style="height: 100%" [nzGutter]="[gutter, gutter]">\n \n</div> --\x3e\n<div *ngIf="showToggle" class="grid-top">\n <div class="toggle-btn" (click)="toggle()">\n <img src="/assets/img/screen/grid.png" />\n <span>切换</span>\n </div>\n</div>\n<div class="video-grid">\n <div class="video-grid-inner" [style.margin.px]="margin" [style.height]="height">\n <div\n *ngFor="let video of videos; let i = index"\n class="grid-cell"\n [style.width]="cellSize"\n [style.height]="cellSize"\n [style.padding.px]="gutter"\n >\n <div class="video-container" [class.selected]="i === selectedIndex" (click)="selectedIndex = i">\n <sc-video-player [type]="type" [src]="video.src" [hasAudio]="hasAudio"></sc-video-player>\n <div *ngIf="video.src" class="video-top">\n <i\n class="close"\n nz-icon\n nzType="close"\n nzTheme="outline"\n (click)="$event.stopPropagation(); video.src = null"\n ></i>\n </div>\n </div>\n </div>\n </div>\n</div>\n',styles:[":host{display:flex;flex-direction:column;height:100%;width:100%}.grid-top{flex:none;justify-content:flex-end;padding:10px 0}.grid-top,.toggle-btn{display:flex;align-items:center}.toggle-btn{cursor:pointer;color:#fff}.toggle-btn img{width:14px;height:14px;margin-right:4px}.video-grid{flex:1;width:100%;height:100%}.video-grid-inner{display:flex;height:100%;flex-wrap:wrap;pointer-events:none}.video-container{position:relative;pointer-events:auto;height:100%}.video-container:not(:hover)>.video-top{display:none}.video-top{position:absolute;top:0;left:0;right:0;background-color:rgba(0,0,0,.6);height:30px;display:flex;align-items:center;justify-content:flex-end;padding:0 4px}.close{cursor:pointer;color:#fff;width:16px;height:16px}.selected{outline:2px solid red}"]}]}],exports.ɵdx.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("宫格数",{enum:[{label:"四宫格",value:4},{label:"九宫格",value:9}]}),__metadata("design:type",Object)],exports.ɵdx.prototype,"size",void 0),__decorate([bbjWidgetBase.Property("间隔",{type:"number"}),__metadata("design:type",Object)],exports.ɵdx.prototype,"gutter",void 0),__decorate([bbjWidgetBase.Property("切换按钮"),__metadata("design:type",Boolean)],exports.ɵdx.prototype,"showToggle",void 0),__decorate([bbjWidgetBase.Property("视频类型",{enum:["flv","hls","iframe"]}),__metadata("design:type",Object)],exports.ɵdx.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("是否有声音"),__metadata("design:type",Boolean)],exports.ɵdx.prototype,"hasAudio",void 0),__decorate([bbjWidgetBase.DataInput("视频地址"),__metadata("design:type",String)],exports.ɵdx.prototype,"src",void 0),__decorate([bbjWidgetBase.Data({properties:{src:{title:"视频地址",type:"string"}}}),__metadata("design:type",Object)],exports.ɵdx.prototype,"data",void 0),__decorate([bbjWidgetBase.Method("设置视频地址"),__param(0,bbjWidgetBase.Param("视频地址")),__metadata("design:type",Function),__metadata("design:paramtypes",[String]),__metadata("design:returntype",void 0)],exports.ɵdx.prototype,"addSrc",null),exports.ɵdx=__decorate([bbjWidgetBase.Widget("视频宫格",{group:"component",image:"assets/img/screen/video-grid.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[])],exports.ɵdx);var VideoGridModule=function(e){e.register(exports.ɵdx)};VideoGridModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdx],imports:[common.CommonModule,VideoPlayerModule,grid.NzGridModule,icon.NzIconModule]}]}],VideoGridModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵdy=function(){function e(){this.min=0,this.max=10,this.symbolSizeMin=10,this.symbolSizeMax=20,this.visualMapColor=["#313695","#4575b4","#74add1","#abd9e9","#e0f3f8","#ffffbf","#fee090","#fdae61","#f46d43","#d73027","#a50026"],this.colorAlphaMin=.5,this.colorAlphaMax=1,this.boxHeight=100,this.boxWidth=100,this.boxDepth=100,this.data=[{x:0,y:0,z:0,value:1},{x:0,y:0,z:1,value:2},{x:0,y:1,z:0,value:3},{x:0,y:1,z:1,value:4},{x:1,y:0,z:0,value:5},{x:1,y:0,z:1,value:6},{x:1,y:1,z:0,value:7},{x:1,y:1,z:1,value:8}]}return e.prototype.ngOnInit=function(){this.reset()},e.prototype.ngOnChanges=function(e){this.reset()},e.prototype.reset=function(){var e,t,o,i=this.data?this.data.map((function(e){return[e.x,e.y,e.z,e.value]})):[];this.options={visualMap:{show:!1,min:this.min,max:this.max,inRange:{symbolSize:[this.symbolSizeMin,this.symbolSizeMax],color:this.visualMapColor,colorAlpha:[this.colorAlphaMin,this.colorAlphaMax]}},xAxis3D:{type:"value"},yAxis3D:{type:"value"},zAxis3D:{type:"value"},grid3D:{axisLine:{lineStyle:{color:"#fff"}},axisPointer:{lineStyle:{color:"#fff"}},viewControl:{},boxHeight:null!==(e=this.boxHeight)&&void 0!==e?e:100,boxWidth:null!==(t=this.boxWidth)&&void 0!==t?t:100,boxDepth:null!==(o=this.boxDepth)&&void 0!==o?o:100},series:[{type:"scatter3D",data:i}]},console.log(this.options)},e.prototype.onChartClick=function(e){},e}(),exports.ɵdy.decorators=[{type:i0.Component,args:[{selector:"sc-scatter3d",template:'<div echarts [options]="options" class="demo-chart" (chartClick)="onChartClick($event)"></div>\n',styles:[":host{display:block;width:100%}.demo-chart,:host{height:100%}"]}]}],exports.ɵdy.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("最小值",{type:"number"}),__metadata("design:type",Object)],exports.ɵdy.prototype,"min",void 0),__decorate([bbjWidgetBase.Property("最大值",{type:"number"}),__metadata("design:type",Object)],exports.ɵdy.prototype,"max",void 0),__decorate([bbjWidgetBase.Property("最小尺寸",{type:"number"}),__metadata("design:type",Object)],exports.ɵdy.prototype,"symbolSizeMin",void 0),__decorate([bbjWidgetBase.Property("最大尺寸",{type:"number"}),__metadata("design:type",Object)],exports.ɵdy.prototype,"symbolSizeMax",void 0),__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵdy.prototype,"visualMapColor",void 0),__decorate([bbjWidgetBase.Property("最小不透明度",{type:"number",minimum:0,maximum:1}),__metadata("design:type",Object)],exports.ɵdy.prototype,"colorAlphaMin",void 0),__decorate([bbjWidgetBase.Property("最大不透明度",{type:"number",minimum:0,maximum:1}),__metadata("design:type",Object)],exports.ɵdy.prototype,"colorAlphaMax",void 0),__decorate([bbjWidgetBase.Property("高度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdy.prototype,"boxHeight",void 0),__decorate([bbjWidgetBase.Property("宽度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdy.prototype,"boxWidth",void 0),__decorate([bbjWidgetBase.Property("深度",{type:"number"}),__metadata("design:type",Object)],exports.ɵdy.prototype,"boxDepth",void 0),__decorate([bbjWidgetBase.Data({properties:{x:{type:"number",title:"x"},y:{type:"number",title:"y"},z:{type:"number",title:"z"},value:{type:"number",title:"值"}}}),__metadata("design:type",Object)],exports.ɵdy.prototype,"data",void 0),exports.ɵdy=__decorate([bbjWidgetBase.Widget("3D散点图",{group:"otherChart",image:"assets/img/screen/bubble.png",icon:"icontubiao"}),__metadata("design:paramtypes",[])],exports.ɵdy);var Scatter3dModule=function(e){e.register(exports.ɵdy)};Scatter3dModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵdy],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,ngxEcharts.NgxEchartsModule]}]}],Scatter3dModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var ScreenWidgetModule=function(e){e.register(exports.ɵp,{size:{width:60,height:30}}),e.register(exports.ɵx,{size:{width:200,height:36},option:{borderColor:"#3285ff",background:"rgba(50,133,255,0.2)",dropdownBackgroundColor:"#3285ff",selectDropDownColor:"#fff",selectHoverColor:"#fff",selectHoverBackgroundColor:"#3285ff",font:{color:"#ffffff"},dropdownBg:"rgba(50,133,255,0.2)",dropdownBorderColor:"#3285ff"}});for(var t=1;t<=82;t++)e.register(exports.ɵb,{option:{image:"assets/img/screen/picture"+t+".png"}});for(icons.forEach((function(t){e.register(exports.ɵbn,{option:{icon:t}})})),e.register(exports.ɵbi,{className:"big-title title",title:"大标题",option:{title:"大标题",font:{family:"",color:"#ffffff",weight:"normal",size:36,space:0,lineHeight:50}}},{className:"normal-title title",title:"标题",option:{title:"标题",font:{family:"",color:"#ffffff",weight:"normal",size:32,space:0,lineHeight:45}}},{className:"subtitle title",title:"副标题",option:{title:"副标题",font:{family:"",color:"#ffffff",weight:"normal",size:24,space:0,lineHeight:33}}},{className:"small-title title",title:"小标题",option:{title:"小标题",font:{family:"",color:"#ffffff",weight:"normal",size:16,space:0,lineHeight:22}}},{className:"content title",title:"正文内容",option:{title:"正文内容",font:{family:"",color:"#ffffff",weight:"normal",size:13,space:0,lineHeight:18}}}),e.register(exports.ɵbl,{className:"wordart1 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",font:{family:"cursive",color:"#3285FF",weight:"normal",size:24,space:0,lineHeight:""}}},{className:"wordart2 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}}},{className:"wordart3 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #09FFDD 14%, #0055FF 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}}},{className:"wordart4 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #F76B1C 14%, #FAD961 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}}},{className:"wordart5 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #B4EC51 14%, #429321 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}}},{className:"wordart6 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #3023AE 14%, #FE55FF 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}}}),e.register(exports.ɵbp,{title:"视频demo",option:{type:"video",src:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4"}},{title:"音频demo",option:{type:"audio",src:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4"}}),e.register(exports.ɵc,{option:{type:"basic",font:{color:"#FFFFFF"}},image:"assets/img/screen/basic-line-chart.png"},{title:"区域折线图",image:"assets/img/screen/area-line-chart.png",option:{type:"area",font:{color:"#FFFFFF"}}},{title:"基本曲线图",image:"assets/img/screen/smooth-line-chart.png",group:"smoothLineChart",option:{type:"smooth",font:{color:"#FFFFFF"}}},{title:"区域曲线图",image:"assets/img/screen/smooth-area-line-chart.png",group:"smoothLineChart",option:{type:"smooth-area",font:{color:"#FFFFFF"}}},{title:"阶梯线图",group:"stepLineChart",option:{type:"step",step:"end",font:{color:"#FFFFFF"}},image:"assets/img/screen/basic-line-chart.png"}),e.register(exports.ɵd,{option:{type:"basic"}},{title:"环形饼图",image:"assets/img/screen/pie-o.png",option:{type:"ring"}},{title:"玫瑰饼图",image:"assets/img/screen/rosePie.png",option:{type:"rose"}},{title:"玫瑰环形饼图",image:"assets/img/screen/roseRingPie.png",option:{type:"roseRing"}}),e.register(exports.BasicBarChartComponent,{option:{font:{color:"#FFFFFF"}}},{title:"堆叠柱图",image:"assets/img/screen/doubleBar.png",option:{type:"double",font:{color:"#FFFFFF"}}},{title:"横向柱图",image:"assets/img/screen/horiBar.png",option:{type:"hori",font:{color:"#FFFFFF"}}},{title:"横向堆叠柱图",image:"assets/img/screen/doubleHoriBar.png",option:{type:"horiD",font:{color:"#FFFFFF"}}},{title:"双向柱图",image:"assets/img/screen/doubleColorBar.png",option:{type:"dcolor",font:{color:"#FFFFFF"}}}),e.register(exports.ɵg,{title:"3D柱图",image:"assets/img/screen/3Dbar.png",option:{type:"3D"}},{title:"3D堆叠柱图",image:"assets/img/screen/3DdoubleBar.png",option:{type:"3Ddouble"}},{title:"3D横向柱图",image:"assets/img/screen/3DhoriBar.png",option:{type:"hori"}},{title:"3D堆叠横向柱图",image:"assets/img/screen/3DdoubleHoriBar.png",option:{type:"horiD"}}),e.register(exports.ɵct,{option:{font:{color:"#ffffff"}}}),e.register(exports.ɵbs,{title:"线条",image:"assets/img/screen/shape01.png",option:{type:"line"}},{title:"三角形",image:"assets/img/screen/shape06.png",option:{type:"triangle"}},{title:"矩形",image:"assets/img/screen/shape03.png",option:{type:"rect"}},{title:"圆角矩形",image:"assets/img/screen/shape04.png",option:{type:"rect",fillet:16}},{title:"平行四边形",image:"assets/img/screen/shape09.png",option:{type:"parallelogram",deviation:30}},{title:"梯形",image:"assets/img/screen/shape10.png",option:{type:"trapezoid",upper:50,bottom:100}},{title:"五边形",image:"assets/img/screen/shape08.png",option:{type:"polygonplus",side:5}},{title:"五角星",image:"assets/img/screen/shape07.png",option:{type:"polyhedrosis",side:5}},{title:"圆形",image:"assets/img/screen/shape05.png",option:{type:"circle"}},{title:"箭头",image:"assets/img/screen/shape11.png",option:{type:"polygon",data:[{x:20,y:80},{x:100,y:80},{x:100,y:40},{x:180,y:100},{x:100,y:160},{x:100,y:120},{x:20,y:120}]}}),t=1;t<=75;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/moduleBg"+t+".png",type:"background"}});for(t=1;t<=8;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/border"+t+".png",type:"background"}});for(t=1;t<=8;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/bg"+t+".png",type:"border"}});["assets/img/screen/mipAnim1.gif","assets/img/screen/mipAnim2.gif"].forEach((function(t){e.register(exports.ɵcs,{option:{image:t}})})),e.register(exports.ɵcv,{option:{borderColor:"#3285ff",font:{color:"#3285ff"},background:"rgba(50,133,255,0.2)"}}),e.register(exports.ɵbe,{option:{font:{color:"#ffffff"}}})};ScreenWidgetModule.decorators=[{type:i0.NgModule,args:[{imports:[forms.FormsModule,ImageModule,BasicLineChartModule,BasicPieChartModule,BasicBarChartModule,LineBarChartModule,BarChartThreeDModule,BubbleChartModule,RadarChartModule,FunnelChartModule,PercentPieChartModule,TreeRingChartModule,GaugeModule,LiquidFillModule,ButtonModule,TimerModule,NumberFlopModule,VoteModule,SelectModule,SearchModule,WeatherModule,RadioModule,CheckboxModule,RateModule,GeneralTextModule,MarqueeModule,WordartModule,IconfontModule,TableModule,AudioModule,ShapeModule,BackgroundModule,ShufflingListModule,BasicPlanimetricMapModule,BreathingBubbleLayerModule,PlanimetricMap2dModule,ParentContainerModule,PlanimetricMap3dModule,MipAnimModule,TreeControlModule,VisualMapChartModule,DatePickerModule,TimePickerModule,CustomBaiduMapModule,UploadModule,CrossTableModule,Pie3dChartModule,MultiTitleGaugeModule,GaugeProgressModule,ItemSwiperModule,BulletinBoardModule,TemporaryDataModule,LineLightFlowModule,IframeModule,VideoGridModule,Scatter3dModule],exports:[],declarations:[]}]}],ScreenWidgetModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵea=function(){function e(e){this.element=e,this.headIconDisplay=!0,this.padding={top:30,right:24,bottom:30,left:24},this.font={family:"",color:"#333333",weight:"normal",size:13,space:0,lineHeight:""},this.icon="sound",this.data=[{content:"陆十三,男,共产党员,村小组长。多年来,他始终怀着对党、对人民无比热爱的赤诚之心,热衷于社会公益慈善事业,尽心竭力地为人民群众做好事实事,通过自身捐款、社会筹款等多种途径融资,为贫困山区、失学儿童送去…"}]}return e.prototype.ngOnInit=function(){this.padding&&(this.element.nativeElement.style.padding=this.padding.top+"px "+this.padding.right+"px "+this.padding.bottom+"px "+this.padding.left+"px",this.element.nativeElement.style.fontSize=this.font.size+"px",this.element.nativeElement.style.fontFamily=this.font.family,this.element.nativeElement.style.color=this.font.color,this.element.nativeElement.style.fontWeight=this.font.weight,this.element.nativeElement.style.letterSpacing=this.font.space+"px",this.element.nativeElement.style.lineHeight=this.font.lineHeight+"px")},e}(),exports.ɵea.decorators=[{type:i0.Component,args:[{selector:"sc-announcement",template:'<ng-container *ngIf="data[0]">\n {{data[0].content}}\n</ng-container>',styles:[":host{height:100%;overflow:auto;display:block}"]}]}],exports.ɵea.ctorParameters=function(){return[{type:i0.ElementRef}]},__decorate([bbjWidgetBase.Property("显示图标",{type:"boolean"}),__metadata("design:type",Object)],exports.ɵea.prototype,"headIconDisplay",void 0),__decorate([bbjWidgetBase.Property("内边距",{ui:{widget:"myGrid"}}),__metadata("design:type",Object)],exports.ɵea.prototype,"padding",void 0),__decorate([bbjWidgetBase.Property("字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵea.prototype,"font",void 0),__decorate([bbjWidgetBase.Property("图标",{ui:{hidden:!0}}),__metadata("design:type",Object)],exports.ɵea.prototype,"icon",void 0),__decorate([bbjWidgetBase.Data({properties:{content:{type:"string",title:"公告内容"}}}),__metadata("design:type",Object)],exports.ɵea.prototype,"data",void 0),exports.ɵea=__decorate([bbjWidgetBase.Widget("公告",{group:"component",image:"assets/img/screen/announcement.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵea);var AnnouncementModule=function(e){this.widgetService=e,e.register(exports.ɵea)};AnnouncementModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵea],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule]}]}],AnnouncementModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var dayFormat="yyyy-MM-dd";function updateEndTime(e){"string"==typeof e.end&&dateFns.isMatch(e.end,dayFormat)&&(e.end=dateFns.format(dateFns.addDays(dateFns.parse(e.end,dayFormat,new Date),1),dayFormat))}var ɵ0$d={type:"string",title:"id"};exports.ɵef=function(){function e(e,t){var o=this;this.router=e,this.cd=t,this.isInitialDate=!0,this.initialDate="2020-07-18",this.data=[{end:"2020-07-21 00:00:00",start:"2020-07-19 00:00:00",title:"event 3"},{end:"2020-07-19 00:00:00",start:"2020-07-18 00:00:00",title:"event 4"},{end:"2020-07-22",start:"2020-07-20",title:"event 5"}],this.dataClick=new i0.EventEmitter,this.datesSetChange=new i0.EventEmitter,this.eventMap=new Map,this.eventClick=function(e){o.dataClick.emit({id:e.id,title:e.title})}}return e.prototype.ngOnChanges=function(e){var t,o=this;if(e.data){if(null===(t=this.data)||void 0===t?void 0:t.length){var i=this.data.map((function(e){var t=Object.assign(Object.assign({},e),{extendedProps:{eventClick:o.eventClick}});return updateEndTime(t),t}));this.setEvents(this.id,i)}else this.removeEvents(this.id);this.calendarOptions||this.update()}},e.prototype.ngOnInit=function(){},e.prototype.setEvents=function(e,t){this.eventMap.set(e,t),this.update()},e.prototype.removeEvents=function(e){this.eventMap.has(e)&&(this.eventMap.delete(e),this.update())},e.prototype.update=function(){var e,t,o=this,i=[];try{for(var a=__values(this.eventMap.values()),r=a.next();!r.done;r=a.next()){var n=r.value;n&&i.push.apply(i,__spread(n))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this.calendarOptions={headerToolbar:{left:"prev,next today",center:"title",right:"timeGridDay,timeGridWeek,dayGridMonth"},buttonText:{dayGridMonth:"月",timeGridWeek:"周",timeGridDay:"日",today:"今日"},timeZone:"local",initialDate:this.isInitialDate?this.initialDate:null,events:i,locale:"zh",eventTimeFormat:{hour:"numeric",minute:"2-digit",hour12:!1},slotLabelFormat:{hour:"numeric",minute:"2-digit",hour12:!1},eventClick:function(e){var t;e.jsEvent.preventDefault(),(null===(t=e.event.extendedProps)||void 0===t?void 0:t.eventClick)&&e.event.extendedProps.eventClick(e.event)},datesSet:function(e){console.log(e);var t=e.view.type;t=t.substring(t.indexOf("Grid")+4).toLowerCase();var i=dateFns.format(e.start,"yyyy-MM-dd"),a=dateFns.format(e.end,"yyyy-MM-dd");o.datesSetChange.emit({type:t,start:i,end:a})}},this.cd.markForCheck()},e}(),exports.ɵef.decorators=[{type:i0.Component,args:[{selector:"sc-calendar",template:'<full-calendar *ngIf="calendarOptions" [options]="calendarOptions"></full-calendar>\n<ng-template *ngFor="let child of children" widget-host [widget]="child"></ng-template>\n',styles:[":host ::ng-deep .fc-direction-ltr{height:100%}:host ::ng-deep .fc .fc-view-harness{padding-bottom:0!important}:host ::ng-deep .fc-license-message{display:none}:host ::ng-deep .fc-daygrid-event{white-space:normal}"]}]}],exports.ɵef.ctorParameters=function(){return[{type:router.Router},{type:i0.ChangeDetectorRef}]},__decorate([bbjWidgetBase.Property("是否自定义初始日期",{ui:{format:"date",widget:"checkbox",spanLabel:0,spanControl:24}}),__metadata("design:type",Object)],exports.ɵef.prototype,"isInitialDate",void 0),__decorate([bbjWidgetBase.Property("",{ui:{type:"date",format:"date",spanLabel:0,spanControl:24}}),__metadata("design:type",Object)],exports.ɵef.prototype,"initialDate",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$d,start:{type:"string",title:"开始日期"},end:{type:"string",title:"结束日期"},title:{type:"string",title:"内容"}}}),__metadata("design:type",Array)],exports.ɵef.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["id","title"]),__metadata("design:type",Object)],exports.ɵef.prototype,"dataClick",void 0),__decorate([bbjWidgetBase.DataOutput({properties:{type:{type:"string",title:"视图类型"},start:{type:"string",title:"开始时间"},end:{type:"string",title:"结束时间"}}},{triggerLink:!1}),__metadata("design:type",Object)],exports.ɵef.prototype,"datesSetChange",void 0),exports.ɵef=__decorate([bbjWidgetBase.Widget("日历",{group:"component",image:"assets/img/screen/rili.png",icon:"iconmokuai",childTypes:["sc-calendar-events","sc-calendar-background-events"]}),__metadata("design:paramtypes",[router.Router,i0.ChangeDetectorRef])],exports.ɵef);var CalendarEventsChild=function(){function e(e){this.parent=e}return e.prototype.ngOnChanges=function(e){if(e.data)if(this.data){var t=this.getEvents(this.data);this.parent.setEvents(this.id,t)}else this.parent.removeEvents(this.id)},e.prototype.ngOnDestroy=function(){this.parent.removeEvents(this.id)},e}();CalendarEventsChild.decorators=[{type:i0.Directive}],CalendarEventsChild.ctorParameters=function(){return[{type:exports.ɵef}]};var ɵ0$e={type:"string",title:"id"};exports.ɵeg=function(e){function t(t){var o=e.call(this,t)||this;return o.parent=t,o.data=[{end:"2020-07-21 00:00:00",start:"2020-07-19 00:00:00",title:"event 3"},{end:"2020-07-19 00:00:00",start:"2020-07-18 00:00:00",title:"event 4"},{end:"2020-07-22",start:"2020-07-20",title:"event 5"}],o}return __extends(t,e),t.prototype.getEvents=function(e){var t=this;return e.map((function(e){var o=Object.assign(Object.assign({},e),{display:"background"});return!o.color&&t.color&&(o.color=t.color),updateEndTime(o),o}))},t}(CalendarEventsChild),exports.ɵeg.decorators=[{type:i0.Component,args:[{selector:"sc-calendar-background-events",template:"",styles:[""]}]}],exports.ɵeg.ctorParameters=function(){return[{type:exports.ɵef}]},__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"myColor"}}),__metadata("design:type",String)],exports.ɵeg.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$e,start:{type:"string",title:"开始日期"},end:{type:"string",title:"结束日期"},title:{type:"string",title:"标题"},color:{type:"string",title:"背景颜色"}}}),__metadata("design:type",Array)],exports.ɵeg.prototype,"data",void 0),exports.ɵeg=__decorate([bbjWidgetBase.Widget("背景颜色",{hidden:!0}),__metadata("design:paramtypes",[exports.ɵef])],exports.ɵeg);var ɵ0$f={type:"string",title:"id"};exports.ɵei=function(e){function t(t){var o=e.call(this,t)||this;return o.parent=t,o.data=[{end:"2020-07-21 00:00:00",start:"2020-07-19 00:00:00",title:"event 3"},{end:"2020-07-19 00:00:00",start:"2020-07-18 00:00:00",title:"event 4"},{end:"2020-07-22",start:"2020-07-20",title:"event 5"}],o.dataClick=new i0.EventEmitter,o.eventClick=function(e){o.dataClick.emit(e)},o}return __extends(t,e),t.prototype.getEvents=function(e){var t=this;return e.map((function(e){var o=Object.assign(Object.assign({},e),{extendedProps:{eventClick:t.eventClick}});return!o.color&&t.color&&(o.color=t.color),updateEndTime(o),o}))},t}(CalendarEventsChild),exports.ɵei.decorators=[{type:i0.Component,args:[{selector:"sc-calendar-events",template:"",styles:[""]}]}],exports.ɵei.ctorParameters=function(){return[{type:exports.ɵef}]},__decorate([bbjWidgetBase.Property("颜色",{ui:{widget:"myColor"}}),__metadata("design:type",String)],exports.ɵei.prototype,"color",void 0),__decorate([bbjWidgetBase.Data({properties:{id:ɵ0$f,start:{type:"string",title:"开始日期"},end:{type:"string",title:"结束日期"},title:{type:"string",title:"标题"},color:{type:"string",title:"颜色"}}}),__metadata("design:type",Array)],exports.ɵei.prototype,"data",void 0),__decorate([bbjWidgetBase.DataOutput(["id","title"]),__metadata("design:type",Object)],exports.ɵei.prototype,"dataClick",void 0),exports.ɵei=__decorate([bbjWidgetBase.Widget("事件",{hidden:!0}),__metadata("design:paramtypes",[exports.ɵef])],exports.ɵei);var CalendarModule=function(e){angular.FullCalendarModule.registerPlugins([dayGridPlugin__default.default,timeGridPlugin__default.default,interactionPlugin__default.default]),e.register(exports.ɵef),e.register(exports.ɵei),e.register(exports.ɵeg)};CalendarModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵef,exports.ɵeg,exports.ɵei],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,angular.FullCalendarModule]}]}],CalendarModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵec=function(){function e(){this.type="line",this.size="default",this.tabPosition="top",this.animated=!0,this.selectedIndex=0}return e.prototype.ngOnInit=function(){},e.prototype.getContainer=function(){if(this.children){var e=this.children[this.selectedIndex];if(e)return e.id}},e}(),exports.ɵec.decorators=[{type:i0.Component,args:[{selector:"sc-tabs",template:'<nz-tabset\n [style]="tabPosition === \'top\' || tabPosition === \'bottom\' ? \'padding:0 10px\' : \'\'"\n [(nzSelectedIndex)]="selectedIndex"\n [nzAnimated]="animated"\n [nzSize]="size"\n [nzTabPosition]="tabPosition"\n [nzType]="type"\n [nzTabBarGutter]="tabBarGutter"\n>\n <nz-tab *ngFor="let child of children" [nzTitle]="child.option.title" nzForceRender>\n <ng-template widgetHost [widget]="child"></ng-template>\n </nz-tab>\n</nz-tabset>\n',styles:[":host{display:block}.ant-tabs,:host{height:100%}.ant-tabs ::ng-deep>.ant-tabs-nav{margin:0}.ant-tabs ::ng-deep .ant-tabs-content{height:100%}.ant-tabs ::ng-deep .ant-tabs-content .ant-tabs-tabpane{overflow:auto}.ant-tabs{display:flex}.ant-tabs ::ng-deep .ant-tabs-content{flex:1}.ant-tabs ::ng-deep.ant-tabs-bottom,.ant-tabs ::ng-deep.ant-tabs-top{flex-direction:column}.ant-tabs ::ng-deep.ant-tabs-bottom ::ng-deep>.ant-tabs-bar,.ant-tabs ::ng-deep.ant-tabs-right ::ng-deep>.ant-tabs-bar{order:1}"]}]}],exports.ɵec.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("页签样式",{enum:[{label:"线条",value:"line"},{label:"卡片",value:"card"}]}),__metadata("design:type",Object)],exports.ɵec.prototype,"type",void 0),__decorate([bbjWidgetBase.Property("尺寸",{enum:[{label:"大",value:"large"},{label:"中",value:"default"},{label:"小",value:"small"}]}),__metadata("design:type",Object)],exports.ɵec.prototype,"size",void 0),__decorate([bbjWidgetBase.Property("页签位置",{enum:[{label:"上",value:"top"},{label:"右",value:"right"},{label:"下",value:"bottom"},{label:"左",value:"left"}]}),__metadata("design:type",Object)],exports.ɵec.prototype,"tabPosition",void 0),__decorate([bbjWidgetBase.Property("切换动画",{type:"boolean",ui:{visibleIf:{tabPosition:["top","bottom"]}}}),__metadata("design:type",Object)],exports.ɵec.prototype,"animated",void 0),__decorate([bbjWidgetBase.Property("间隙"),__metadata("design:type",Number)],exports.ɵec.prototype,"tabBarGutter",void 0),exports.ɵec=__decorate([bbjWidgetBase.Widget("标签页",{group:"component",image:"assets/img/screen/tabs.png",icon:"iconmokuai",children:[{title:"选项卡1",type:"sc-tab",option:{title:"Tab 1"},hidden:!0,hideChild:!0}],childTypes:["sc-tab"]}),__metadata("design:paramtypes",[])],exports.ɵec),exports.ɵed=function(){function e(){this.title="New Tab"}return e.prototype.ngOnInit=function(){},e}(),exports.ɵed.decorators=[{type:i0.Component,args:[{selector:"sc-tab",template:'<ng-template [widgetChildren]="children"></ng-template>\n',styles:[""]}]}],exports.ɵed.ctorParameters=function(){return[]},__decorate([bbjWidgetBase.Property("标题"),__metadata("design:type",Object)],exports.ɵed.prototype,"title",void 0),exports.ɵed=__decorate([bbjWidgetBase.Widget("选项卡",{hidden:!0}),__metadata("design:paramtypes",[])],exports.ɵed);var TabsModule=function(e){e.register(exports.ɵec),e.register(exports.ɵed)};TabsModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵec,exports.ɵed],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,tabs.NzTabsModule]}]}],TabsModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},exports.ɵek=function(){function e(e){this.ele=e,this.contentRenderers=new Map,this.headerContent="项目",this.contentFont={family:"",color:"",weight:"normal",size:12,space:0,lineHeight:40},this.lineColor=["rgba(50,133,255,1)","rgba(123,113,192,1)"],this.progressTransparency=.8,this.areaRate=20,this.progressHeight=32,this.data=[{start:"2020-11-10",end:"2020-11-15",title:"代办事件1",project:"benbenjun",progress:"0.4"},{start:"2020-10-10",end:"2020-11-11",title:"代办事件2",project:"benbenjun2",progress:"0.6"},{start:"2020-10-11",end:"2020-11-19",title:"代办事件3",project:"benbenjun3",progress:"0.9"}],this.resources=[],this.events=[]}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){this.init()},e.prototype.init=function(){var e=this;if(this.contentFont&&(this.ele.nativeElement.style.setProperty("--fontSize",this.contentFont.size+"px"),this.ele.nativeElement.style.setProperty("--color",this.contentFont.color),this.ele.nativeElement.style.setProperty("--weight",this.contentFont.weight),this.ele.nativeElement.style.setProperty("--family",this.contentFont.weight),this.ele.nativeElement.style.setProperty("--lineHeight",this.contentFont.lineHeight+"px"),this.ele.nativeElement.style.setProperty("--height",this.progressHeight+"px")),!(null==this.data||this.data.length<1)){var t=[],o=0;this.data.forEach((function(i){var a="";null!==e.lineColor&&e.lineColor.length>0&&(o>=e.lineColor.length&&(o=0),a=e.lineColor[o]),t.push(dateFns.parseISO(i.start)),e.resources.push({id:i.project,title:i.project,eventColor:"rgb(0,210,253,0)"}),e.events.push({id:getUUID(),resourceId:i.project,start:i.start,end:i.end,title:i.title,backColor:a,progress:i.progress}),o++})),this.calendarOptions={timeZone:"UTC",headerToolbar:{left:"today prev,next",center:"title",right:"resourceTimelineDay,resourceTimelineTenDay,resourceTimelineMonth,resourceTimelineYear"},initialView:"resourceTimelineMonth",scrollTime:"08:00",aspectRatio:1.5,initialDate:this.initDate?dateFns.format(this.initDate,"yyyy-MM-dd"):dateFns.format(dateFns.min(t),"yyyy-MM-dd"),views:{resourceTimelineDay:{buttonText:"小时",slotDuration:"00:15"},resourceTimelineTenDay:{type:"resourceTimeline",duration:{days:10},buttonText:"未来10天"},resourceTimelineMonth:{buttonText:"月",slotLabelFormat:[{day:"numeric"},{weekday:"long"}]},resourceTimelineYear:{buttonText:"年",slotLabelFormat:[{month:"long"}],slotLabelInterval:{month:1}}},buttonText:{today:"今日"},editable:!1,resourceAreaHeaderContent:this.headerContent,locale:"zh-cn",resourceAreaWidth:this.areaRate+"%",resources:[],events:[],columnFormat:"dddd",eventContent:function(t){return e.renderEventContent(t)},eventWillUnmount:function(t){return e.unrenderEvent(t)}},this.calendarOptions.resources=this.resources,this.calendarOptions.events=this.events}},e.prototype.renderEventContent=function(e){var t=this.contentRenderers.get(e.event.id),o=e.event.extendedProps.backColor.substr(0,e.event.extendedProps.backColor.lastIndexOf(",")+1)+this.progressTransparency+")",i={barStyle:{width:100*e.event.extendedProps.progress+"%",backgroundColor:e.event.extendedProps.backColor},progressStyle:{backgroundColor:o},title:e.event.title,progress:100*Number(e.event.extendedProps.progress)+"%",start:dateFns.format(e.event.start,"yyyy-MM-dd"),end:dateFns.format(e.event.end,"yyyy-MM-dd")};return t=this.eventContent.createEmbeddedView({data:i}),this.contentRenderers.set(e.event.id,t),t.detectChanges(),{domNodes:t.rootNodes}},e.prototype.unrenderEvent=function(e){var t=this.contentRenderers.get(e.event.id);t&&t.destroy()},e}(),exports.ɵek.decorators=[{type:i0.Component,args:[{selector:"sc-gantt",template:'\x3c!--<nz-date-picker [(ngModel)]="initDate" (ngModelChange)="onChange(initDate)"></nz-date-picker>--\x3e\n<full-calendar *ngIf="calendarOptions" [options]="calendarOptions" ></full-calendar>\n<ng-template #fcEventContent let-data="data">\n\n <div class="progress" nz-tooltip [nzTooltipTitle]="titleTemplate" [ngStyle]="data.progressStyle">\n <span class="bar" [ngStyle]="data.barStyle">{{data.title}}</span>\n </div>\n <ng-template #titleTemplate><i nz-icon nzType="file" style="margin-right: 8px"></i> <span>{{data.title}}<br/>开始:{{data.start}}<br/>结束:{{data.end}}<br/>进度:{{data.progress}}</span></ng-template>\n</ng-template>\n\n',styles:[':host ::ng-deep .fc-direction-ltr{height:100%}:host ::ng-deep .fc .fc-view-harness{padding-bottom:0!important}:host ::ng-deep .progress{overflow:hidden;height:var(--height);background-color:#f7f7f7;background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff5f5f5",endColorstr="#fff9f9f9",GradientType=0);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);border-radius:4px;width:100%}:host ::ng-deep .progress .bar{white-space:nowrap;width:0;height:100%;color:#fff;float:left;font-size:12px;text-align:center;align-items:center;display:flex;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#0e90d2;background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff149bdf",endColorstr="#ff0480be",GradientType=0);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-sizing:border-box;transition:width .6s ease}:host ::ng-deep .fc-license-message{display:none!important}:host ::ng-deep .fc table{font-size:17px!important}:host ::ng-deep .fc-resource .fc-datagrid-cell-main{font-size:var(--fontSize);color:var(--color);font-weight:var(--weight);font-family:var(--family);line-height:var(--lineHeight)}']}]}],exports.ɵek.ctorParameters=function(){return[{type:i0.ElementRef}]},exports.ɵek.propDecorators={eventContent:[{type:i0.ViewChild,args:["fcEventContent",{static:!0}]}]},__decorate([bbjWidgetBase.Property("头部名称",{type:"string"}),__metadata("design:type",Object)],exports.ɵek.prototype,"headerContent",void 0),__decorate([bbjWidgetBase.Property("项目字体",{ui:{widget:"myFont"}}),__metadata("design:type",Object)],exports.ɵek.prototype,"contentFont",void 0),__decorate([bbjWidgetBase.Property("系列颜色",{ui:{widget:"seriesColor",example:["#D0021B","#F5A623","#F8E71C","#50E3C2","#3285FF","#B45FFF","#9B9B9B","#333333"]}}),__metadata("design:type",Object)],exports.ɵek.prototype,"lineColor",void 0),__decorate([bbjWidgetBase.Property("进度透明",{type:"number",max:1}),__metadata("design:type",Object)],exports.ɵek.prototype,"progressTransparency",void 0),__decorate([bbjWidgetBase.Property("区域占比",{type:"number"}),__metadata("design:type",Object)],exports.ɵek.prototype,"areaRate",void 0),__decorate([bbjWidgetBase.Property("进度条高度",{type:"number"}),__metadata("design:type",Object)],exports.ɵek.prototype,"progressHeight",void 0),__decorate([bbjWidgetBase.Data({properties:{start:{type:"string",title:"开始日期"},end:{type:"string",title:"结束日期"},title:{type:"string",title:"待办事项"},project:{type:"string",title:"所属项目"},progress:{type:"string",title:"进度"}}}),__metadata("design:type",Array)],exports.ɵek.prototype,"data",void 0),exports.ɵek=__decorate([bbjWidgetBase.Widget("甘特图",{group:"component",image:"assets/img/screen/gantt.png",icon:"iconmokuai"}),__metadata("design:paramtypes",[i0.ElementRef])],exports.ɵek);var GanttModule=function(e){angular.FullCalendarModule.registerPlugins([dayGridPlugin__default.default,timeGridPlugin__default.default,interactionPlugin__default.default,resourceTimelinePlugin__default.default]),e.register(exports.ɵek)};GanttModule.decorators=[{type:i0.NgModule,args:[{declarations:[exports.ɵek],imports:[common.CommonModule,bbjWidgetBase.WidgetBaseModule,angular.FullCalendarModule,tooltip.NzToolTipModule]}]}],GanttModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]};var WorkbenchWidgetModule=function(e){e.register(exports.ɵp,{option:{},size:{width:3,height:3}}),e.register(exports.ɵef,{option:{},size:{width:16,height:12}});for(var t=1;t<=82;t++)e.register(exports.ɵb,{option:{image:"assets/img/screen/picture"+t+".png",hideHead:!0},size:{width:6,height:6}});for(icons.forEach((function(t){e.register(exports.ɵbn,{option:{type:"iconfont",icon:t,hideHead:!0},size:{width:4,height:4}})})),e.register(exports.ɵs,{option:{font:{color:"#595F7A"}},size:{width:10,height:4}}),e.register(exports.ɵu,{size:{width:12,height:6}}),e.register(exports.ɵw,{size:{width:6,height:6}}),e.register(exports.ɵx,{size:{width:6,height:4}}),e.register(exports.ɵz,{size:{width:6,height:3}}),e.register(exports.ɵbb,{option:{tempFont:{color:"#595F7A"}},size:{width:10,height:6}}),e.register(exports.ɵbd,{option:{font:{color:"#595F7A"}},size:{width:6,height:4}}),e.register(exports.ɵbg,{option:{font:{color:"#595F7A"}},size:{width:6,height:6}}),e.register(exports.ɵbi,{className:"big-title title",title:"大标题",option:{title:"大标题",font:{family:"",color:"#333333",weight:"normal",size:36,space:0,lineHeight:50}},size:{width:5,height:3}},{className:"normal-title title",title:"标题",option:{title:"标题",font:{family:"",color:"#333333",weight:"normal",size:32,space:0,lineHeight:45}},size:{width:5,height:3}},{className:"subtitle title",title:"副标题",option:{title:"副标题",font:{family:"",color:"#333333",weight:"normal",size:24,space:0,lineHeight:33}},size:{width:5,height:3}},{className:"small-title title",title:"小标题",option:{title:"小标题",font:{family:"",color:"#333333",weight:"normal",size:16,space:0,lineHeight:22}},size:{width:5,height:3}},{className:"content title",title:"正文内容",option:{title:"正文内容",font:{family:"",color:"#333333",weight:"normal",size:13,space:0,lineHeight:18}},size:{width:5,height:3}}),e.register(exports.ɵbl,{className:"wordart1 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",font:{family:"cursive",color:"#3285FF",weight:"normal",size:24,space:0,lineHeight:""}},size:{width:7,height:3}},{className:"wordart2 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}},size:{width:7,height:3}},{className:"wordart3 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #09FFDD 14%, #0055FF 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}},size:{width:7,height:3}},{className:"wordart4 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #F76B1C 14%, #FAD961 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}},size:{width:7,height:3}},{className:"wordart5 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #B4EC51 14%, #429321 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}},size:{width:7,height:3}},{className:"wordart6 wordart",title:"可视化数字大屏",option:{title:"可视化数字大屏",backgroundImage:"-webkit-linear-gradient(-90deg, #3023AE 14%, #FE55FF 100%)",font:{family:"sans-serif",color:"#7ee5ce",weight:"bold",size:24,space:0,lineHeight:""}},size:{width:7,height:3}}),e.register(exports.ɵbj,{option:{font:{color:"#595F7A"}},size:{width:7,height:3}}),e.register(exports.ɵbp,{title:"视频demo",option:{type:"video",src:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4"}},{title:"音频demo",option:{type:"audio",src:"https://xiche.oss-cn-beijing.aliyuncs.com/video/20180417154421.mp4"}}),e.register(exports.ɵc,{option:{type:"basic"},image:"assets/img/screen/basic-line-chart.png"},{title:"区域折线图",image:"assets/img/screen/area-line-chart.png",option:{type:"area"}},{title:"基本曲线图",image:"assets/img/screen/smooth-line-chart.png",group:"smoothLineChart",option:{type:"smooth"}},{title:"区域曲线图",image:"assets/img/screen/smooth-area-line-chart.png",group:"smoothLineChart",option:{type:"smooth-area"}},{title:"阶梯线图",group:"stepLineChart",option:{type:"step",step:"end"},image:"assets/img/screen/basic-line-chart.png"}),e.register(exports.ɵd,{option:{type:"basic",font:{color:"#595F7A"}}},{title:"环形饼图",image:"assets/img/screen/pie-o.png",option:{type:"ring",font:{color:"#595F7A"}}},{title:"玫瑰饼图",image:"assets/img/screen/rosePie.png",option:{type:"rose",font:{color:"#595F7A"}}},{title:"玫瑰环形饼图",image:"assets/img/screen/roseRingPie.png",option:{type:"roseRing",font:{color:"#595F7A"}}}),e.register(exports.ɵk,{option:{font:{color:"#595F7A"}}}),e.register(exports.ɵl,{option:{font:{color:"#595F7A"}}}),e.register(exports.BasicBarChartComponent,{},{title:"堆叠柱图",image:"assets/img/screen/doubleBar.png",option:{type:"double"}},{title:"横向柱图",image:"assets/img/screen/horiBar.png",option:{type:"hori"}},{title:"横向堆叠柱图",image:"assets/img/screen/doubleHoriBar.png",option:{type:"horiD"}},{title:"双向柱图",image:"assets/img/screen/doubleColorBar.png",option:{type:"dcolor"}}),e.register(exports.ɵf,{title:"折线柱图",image:"assets/img/screen/lineBar.png",option:{type:"line",font:{color:"#595F7A"}}}),e.register(exports.ɵg,{title:"3D柱图",image:"assets/img/screen/3Dbar.png",option:{type:"3D",font:{color:"#595F7A"}}},{title:"3D堆叠柱图",image:"assets/img/screen/3DdoubleBar.png",option:{type:"3Ddouble",font:{color:"#595F7A"}}},{title:"3D横向柱图",image:"assets/img/screen/3DhoriBar.png",option:{type:"hori",font:{color:"#595F7A"}}},{title:"3D堆叠横向柱图",image:"assets/img/screen/3DdoubleHoriBar.png",option:{type:"horiD",font:{color:"#595F7A"}}}),e.register(exports.ɵh,{title:"散点图",image:"assets/img/screen/bubble.png",option:{type:"bubble",font:{color:"#595F7A"}}}),e.register(exports.ɵi,{title:"雷达图",image:"assets/img/screen/radar.png",option:{type:"radar",font:{color:"#595F7A"}}}),e.register(exports.ɵj,{title:"三角图",image:"assets/img/screen/funnel.png",option:{type:"funnel",font:{color:"#595F7A"}}}),e.register(exports.ɵm,{option:{font:{color:"#595F7A"}}}),e.register(exports.ɵn,{option:{font:{color:"#595F7A"}}}),e.register(exports.ɵbs,{title:"线条",image:"assets/img/screen/shape01.png",option:{type:"line"},size:{width:6,height:7}},{title:"三角形",image:"assets/img/screen/shape06.png",option:{type:"triangle"},size:{width:6,height:7}},{title:"矩形",image:"assets/img/screen/shape03.png",option:{type:"rect"},size:{width:6,height:7}},{title:"圆角矩形",image:"assets/img/screen/shape04.png",option:{type:"rect",fillet:16},size:{width:6,height:7}},{title:"平行四边形",image:"assets/img/screen/shape09.png",option:{type:"parallelogram",bottom:110,deviation:30},size:{width:6,height:7}},{title:"梯形",image:"assets/img/screen/shape10.png",option:{type:"trapezoid",upper:70,bottom:100,deviation:0},size:{width:6,height:7}},{title:"五边形",image:"assets/img/screen/shape08.png",option:{type:"polygonplus",side:5},size:{width:6,height:7}},{title:"五角星",image:"assets/img/screen/shape07.png",option:{type:"polyhedrosis",side:5},size:{width:6,height:7}},{title:"圆形",image:"assets/img/screen/shape05.png",option:{type:"circle"},size:{width:6,height:7}},{title:"箭头",image:"assets/img/screen/shape11.png",option:{type:"polygon",data:[{x:20,y:80},{x:100,y:80},{x:100,y:40},{x:180,y:100},{x:100,y:160},{x:100,y:120},{x:20,y:120}]}}),t=1;t<=75;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/moduleBg"+t+".png",type:"background"},size:{width:10,height:3}});for(t=1;t<=8;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/border"+t+".png",type:"background"},size:{width:10,height:10}});for(t=1;t<=8;t++)e.register(exports.ɵbu,{option:{image:"assets/img/screen/bg"+t+".png",type:"border"},size:{width:10,height:10}});e.register(exports.ɵea,{size:{width:14,height:6}}),e.register(exports.ɵbo,{option:{image:"assets/img/screen/table.png"}}),e.register(exports.ɵby,{size:{width:12,height:12}}),e.register(exports.ɵcm,{size:{width:12,height:12}}),["assets/img/screen/mipAnim1.gif","assets/img/screen/mipAnim2.gif"].forEach((function(t){e.register(exports.ɵcs,{option:{image:t},size:{height:6,width:6}})}))};WorkbenchWidgetModule.decorators=[{type:i0.NgModule,args:[{imports:[ImageModule,BasicLineChartModule,BasicPieChartModule,BasicBarChartModule,LineBarChartModule,BarChartThreeDModule,BubbleChartModule,RadarChartModule,FunnelChartModule,PercentPieChartModule,TreeRingChartModule,GaugeModule,LiquidFillModule,ButtonModule,TimerModule,NumberFlopModule,VoteModule,SelectModule,SearchModule,WeatherModule,RadioModule,CheckboxModule,RateModule,GeneralTextModule,MarqueeModule,WordartModule,IconfontModule,AudioModule,ShapeModule,BackgroundModule,AnnouncementModule,TableModule,BasicPlanimetricMapModule,BreathingBubbleLayerModule,PlanimetricMap2dModule,ParentContainerModule,PlanimetricMap3dModule,TreeControlModule,VisualMapChartModule,TimePickerModule,DatePickerModule,CustomBaiduMapModule,TabsModule,MipAnimModule,CalendarModule,UploadModule,CrossTableModule,GanttModule,Pie3dChartModule,LineLightFlowModule,TemporaryDataModule],exports:[],declarations:[]}]}],WorkbenchWidgetModule.ctorParameters=function(){return[{type:bbjWidgetBase.WidgetService}]},Object.keys(i1).forEach((function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return i1[e]}})})),exports.AudioModule=AudioModule,exports.BarChartThreeDModule=BarChartThreeDModule,exports.BasicBarChartModule=BasicBarChartModule,exports.BasicLineChartModule=BasicLineChartModule,exports.BasicPieChartModule=BasicPieChartModule,exports.BasicPlanimetricMapModule=BasicPlanimetricMapModule,exports.BubbleChartModule=BubbleChartModule,exports.CheckboxModule=CheckboxModule,exports.CommonService=CommonService,exports.CrossTableModule=CrossTableModule,exports.CustomBaiduMapModule=CustomBaiduMapModule,exports.DatePickerModule=DatePickerModule,exports.FileUrlService=FileUrlService,exports.FunnelChartModule=FunnelChartModule,exports.GaodeMapService=GaodeMapService,exports.GaugeModule=GaugeModule,exports.IframeModule=IframeModule,exports.LiquidFillModule=LiquidFillModule,exports.MarqueeModule=MarqueeModule,exports.PercentPieChartModule=PercentPieChartModule,exports.PlanimetricMap2dModule=PlanimetricMap2dModule,exports.PlanimetricMap3dModule=PlanimetricMap3dModule,exports.RadarChartModule=RadarChartModule,exports.Scatter3dModule=Scatter3dModule,exports.ScreenWidgetModule=ScreenWidgetModule,exports.SelectModule=SelectModule,exports.TableModule=TableModule,exports.TreeControlModule=TreeControlModule,exports.TreeRingChartModule=TreeRingChartModule,exports.VideoGridModule=VideoGridModule,exports.VideoPlayerModule=VideoPlayerModule,exports.VisualMapChartModule=VisualMapChartModule,exports.WorkbenchWidgetModule=WorkbenchWidgetModule,exports.ɵ0=ɵ0$2,exports.ɵ1=ɵ1$2,exports.ɵ2=ɵ2$2,exports.ɵ3=ɵ3$2,exports.ɵa=ImageModule,exports.ɵba=WeatherModule,exports.ɵbc=RadioModule,exports.ɵbf=RateModule,exports.ɵbh=GeneralTextModule,exports.ɵbk=WordartModule,exports.ɵbm=IconfontModule,exports.ɵbq=VideoPlayerComponent,exports.ɵbr=ShapeModule,exports.ɵbt=BackgroundModule,exports.ɵbv=ShufflingListModule,exports.ɵbx=ColorPipe,exports.ɵbz=ParentContainerComponent,exports.ɵca=BreathingBubbleLayerModule,exports.ɵcd=FlyLineLayerModule,exports.ɵcf=Map2dPolylineLayerModule,exports.ɵch=Map2dMarkLayerModule,exports.ɵcj=Map2dVisualLayerModule,exports.ɵcl=ParentContainerModule,exports.ɵcn=Map3dMarkLayerModule,exports.ɵcp=Map3dLineLayerModule,exports.ɵcr=MipAnimModule,exports.ɵcw=TimePickerModule,exports.ɵda=BaseLayer,exports.ɵde=UploadModule,exports.ɵdh=Pie3dChartModule,exports.ɵdj=HighChartsService,exports.ɵdk=MultiTitleGaugeModule,exports.ɵdm=GaugeProgressModule,exports.ɵdo=ItemSwiperModule,exports.ɵdq=BulletinBoardModule,exports.ɵds=TemporaryDataModule,exports.ɵdu=LineLightFlowModule,exports.ɵdz=AnnouncementModule,exports.ɵe=LineBarChartModule,exports.ɵeb=TabsModule,exports.ɵee=CalendarModule,exports.ɵeh=CalendarEventsChild,exports.ɵej=GanttModule,exports.ɵo=ButtonModule,exports.ɵq=HttpService,exports.ɵr=TimerModule,exports.ɵt=NumberFlopModule,exports.ɵv=VoteModule,exports.ɵy=SearchModule,Object.defineProperty(exports,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=bbj-screen-widget.umd.min.js.map
|