(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[49],{"2QG8":function(e,t,a){"use strict";var l=a("g09b");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("OaEy");var n=l(a("2fM7"));a("5NDa");var u=l(a("5rEg"));a("jCWc");var d=l(a("kPKH"));a("14J3");var r=l(a("BMrR"));a("y8nQ");var f=l(a("Vl3Y")),i=l(a("qIgq")),o=s(a("q1tI")),c=l(a("dRV3"));function m(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(m=function(e){return e?a:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var a=m(t);if(a&&a.has(e))return a.get(e);var l={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var d=n?Object.getOwnPropertyDescriptor(e,u):null;d&&(d.get||d.set)?Object.defineProperty(l,u,d):l[u]=e[u]}return l.default=e,a&&a.set(e,l),l}var p=function(e){var t,a=e.form,l=e.form.getFieldDecorator,m=e.metadata,s=JSON.parse(m),p=s.properties,v=(0,o.useState)(),E=(0,i.default)(v,2),g=(E[0],E[1]),y=null===(t=e.data)||void 0===t?void 0:t.config;return(0,o.useEffect)(function(){var t,l;(e.save&&e.save(function(){return a.getFieldsValue()}),e.data)&&g(null===(t=e.data)||void 0===t?void 0:null===(l=t.config)||void 0===l?void 0:l.dimension)},[]),o.default.createElement(f.default,{className:c.default.configForm},o.default.createElement(r.default,{gutter:16},o.default.createElement(d.default,{lg:22,push:2,md:12,sm:24},o.default.createElement(f.default.Item,{label:"\u540d\u79f0"},l("name",{initialValue:null===y||void 0===y?void 0:y.name})(o.default.createElement(u.default,null)))),o.default.createElement(d.default,{xl:{span:10,offset:2},lg:{span:8},md:{span:12},sm:24},o.default.createElement(f.default.Item,{label:"X\u8f74"},l("x",{initialValue:null===y||void 0===y?void 0:y.x})(o.default.createElement(u.default,null)))),o.default.createElement(d.default,{xl:{span:10,offset:2},lg:{span:10},md:{span:24},sm:24},o.default.createElement(f.default.Item,{label:"Y\u8f74"},l("y",{initialValue:null===y||void 0===y?void 0:y.y})(o.default.createElement(u.default,null)))),o.default.createElement(d.default,{xl:{span:10,offset:2},lg:{span:8},md:{span:12},sm:24},o.default.createElement(f.default.Item,{label:"\u5c5e\u6027"},l("measurement",{initialValue:null===y||void 0===y?void 0:y.measurement})(o.default.createElement(n.default,{style:{width:"100%"}},p.map(function(e){return o.default.createElement(n.default.Option,{key:e.id,value:e.id},e.name)}))))),o.default.createElement(d.default,{xl:{span:10,offset:2},lg:{span:10},md:{span:24},sm:24},o.default.createElement(f.default.Item,{label:"\u7c7b\u578b"},l("dimension",{initialValue:null===y||void 0===y?void 0:y.dimension})(o.default.createElement(n.default,{onChange:function(e){return g(e)}},o.default.createElement(n.default.Option,{value:"history"},"\u5386\u53f2\u6570\u636e"),o.default.createElement(n.default.Option,{value:"agg"},"\u805a\u5408\u6570\u636e")))))))},v=f.default.create()(p);t.default=v}}]);