amis/gh-pages/pkg/app_4ae4e9a.js
2019-05-14 12:27:00 +08:00

463 lines
762 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;/*!src/theme.tsx*/
define("256b65d",function(e,n){"use strict";function t(e,n){c[e]=i.__assign({},n)}function s(e){if(e&&d[e])return d[e];var n=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var s=u.apply(void 0,n);return s&&e?s.replace(/(^|\s)([A-Z])/g,"$1"+e+"$2"):s||""};return e&&(d[e]=n),n}function r(e){return!!c[e]}function a(e){if(!c[e])throw new Error('Theme with name "'+e+'" does not exist!');var n=c[e];if(n.getRendererConfig||(n.getRendererConfig=function(e){return n.renderers&&e?n.renderers[e]:null}),!n.classnames){var t=n.classPrefix;n.classnames=n.classnames||s(t)}return n}function o(e){var t=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(s,t),s.prototype.render=function(){var t=this.props.theme||this.context||"default",s=a(r(t)?t:"default"),o={classPrefix:s.classPrefix,classnames:s.classnames};return l.createElement(n.ThemeContext.Provider,{value:t},l.createElement(e,i.__assign({},this.props,o)))},s.displayName="Themeable("+(e.displayName||e.name)+")",s.contextType=n.ThemeContext,s.ComposedComponent=e,s}(l.Component);return m(t,e)}Object.defineProperty(n,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),u=e("node_modules/classnames/index"),l=e("node_modules/react/index"),m=e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs"),c={"default":{}};n.theme=t;var d={};n.makeClassnames=s,n.hasTheme=r,n.getTheme=a,n.ThemeContext=l.createContext("theme"),n.themeable=o});
;/*!src/components/404.tsx*/
define("bb0be5b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),l=e("node_modules/react/index"),a=e("256b65d"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.links,n=e.footerText,a=e.description,s=e.children,r=e.code;return l.createElement("div",{className:"container w-xxl w-auto-xs"},l.createElement("div",{className:"text-center m-b-lg"},l.createElement("h1",{className:"text-shadow text-white"},r||"404"),a?l.createElement("div",{className:"text-danger"},a):null),s,t?l.createElement("div",{className:"list-group bg-info auto m-b-sm m-b-lg"},t):null,n?l.createElement("div",{className:"text-center"},l.createElement("p",null,l.createElement("small",{className:"text-muted"},n))):null)},t}(l.Component);t.NotFound=s,t.default=a.themeable(s)});
;/*!src/components/Layout.tsx*/
define("4c26fd3",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),s=e("256b65d"),d=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a.prototype.render=function(){var e=this.props,a=e.header,t=e.aside,s=e.asideClassName,d=e.children,n=e.className,r=e.contentClassName,l=e.folded,i=e.asideFixed,u=e.headerFixed,c=e.footer,m=e.offScreen,f=e.size,y=(e.classPrefix,e.classnames),L=o.createElement("div",{className:y("Layout-body",r)},d);return t&&(L=o.createElement("div",{className:y("Layout-content"),role:"main"},L)),o.createElement("div",{className:y("Layout",n,(N={"Layout--withAside":!!t,"Layout--headerFixed":a?u:!1,"Layout--asideFixed":t?i:!1,"Layout--folded":l,"Layout--offScreen":m},N["Layout--"+f]=f,N["Layout--noFooter"]=!c,N))},a?o.createElement("div",{className:y("Layout-header")},a):null,t?o.createElement("div",{className:y("Layout-aside",s)},o.createElement("div",{className:y("Layout-asideWrap")},o.createElement("div",{id:"asideInner",className:y("Layout-asideInner")},t))):null,L,c?o.createElement("footer",{className:y("Layout-footer"),role:"footer"},c):null);var N},a.defaultProps={asideFixed:!0,asideClassName:"",headerFixed:!0,offScreen:!1,footer:!1},a}(o.Component);a.Layout=d,a.default=s.themeable(d)});
;/*!src/utils/tpl.ts*/
define("6a2dbb7",function(t,r){"use strict";function e(t,r){u[t]=r}function n(t,r){if(void 0===r&&(r={}),!t||"string"!=typeof t)return"";for(var e=Object.keys(u),n=0,i=e.length;i>n;n++){var a=u[e[n]];if(a.test(t))return a.compile(t,r)}return t}function i(t,r){try{var e=new Function("data","with(data) {return !!("+t+");}");return r=r||{},e.call(r,r)}catch(n){return!1}}function a(t,r){try{var e=new Function("data","with(data) {"+(~t.indexOf("return")?"":"return ")+t+";}");return r=r||{},e.call(r,r)}catch(n){return null}}Object.defineProperty(r,"__esModule",{value:!0});var u={};r.reigsterTplEnginer=e,r.filter=n,r.evalExpression=i,r.evalJS=a});
;/*!src/utils/helper.ts*/
define("9a80175",function(e,n){"use strict";function r(e,n,r){e&&Object.isFrozen(e)&&(e=t(e));var i=e?Object.create(e,L.__assign({},r,{__super:{value:e,writable:!1,enumerable:!1}})):Object.create(Object.prototype,r);return n&&Object.keys(n).forEach(function(e){return i[e]=n[e]}),i}function t(e){var n=e&&e.__super?Object.create(e.__super,{__super:{value:e.__super,writable:!1,enumerable:!1}}):Object.create(Object.prototype);return e&&Object.keys(e).forEach(function(r){return n[r]=e[r]}),n}function i(e,n){var r=t(e);return n&&Object.keys(n).forEach(function(e){return r[e]=n[e]}),r}function o(e,n,r,t){var i=L.__assign({},e);return(n||r)&&Object.keys(i).forEach(function(e){(n&&"undefined"!=typeof n[e]||r&&"undefined"!=typeof r[e])&&(t||r&&!n||!r&&n||r[e]!==n[e])&&(i[e]=n[e])}),i}function u(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()}function a(e,n){for(var r=0,t=e.length;t>r;r++)if(n(e[r],r))return r;return-1}function s(e,n,r){return void 0===r&&(r=!0),e&&n?(r?n in e:e.hasOwnProperty(n))?e[n]:n.split(".").reduce(function(e,n){return e&&"object"==typeof e&&(r?n in e:e.hasOwnProperty(n))?e[n]:void 0},e):void 0}function c(e,n,r){if(e=e||{},n in e)return void(e[n]=r);for(var t=n.split("."),i=t.pop();t.length;){var o=t.shift();U(e[o])?e=e[o]=L.__assign({},e[o]):e[o]?(e[o]={},e=e[o]):(e[o]={},e=e[o])}e[i]=r}function f(e,n){if(e){if(e.hasOwnProperty(n))return void delete e[n];for(var r=n.split("."),t=r.pop();r.length;){var i=r.shift();if(!U(e[i])){if(e[i])throw new Error("目标路径不是纯对象,不能修改");break}e=e[i]=L.__assign({},e[i])}e&&e.hasOwnProperty&&e.hasOwnProperty(t)&&delete e[t]}}function l(e,n){for(var r=n.split(".");r.length;){var t=r.shift();if(!E(e)||!e.hasOwnProperty(t))return!1;e=e[t]}return!0}function d(){}function h(e,n,r,t){return void 0===t&&(t=!0),("string"==typeof e?e.split(/\s*,\s*/):e).some(function(e){return t?n[e]!==r[e]:n[e]!=r[e]})}function p(e){var n={};if("object"!=typeof e)return e;var r=Object.keys(e);return r.forEach(function(r){void 0!==e[r]&&(n[r]=e[r])}),n}function m(e,n,r,t){if(void 0===r&&(r=!0),void 0===t&&(t=!1),null==e||null==n||"object"!=typeof e||"object"!=typeof n)return r?e!==n:e!=n;t&&(e=p(e),n=p(n));var i=Object.keys(e),o=Object.keys(n);if(i.length!==o.length||i.join(",")!==o.join(","))return!0;for(var u=i.length-1;u>=0;u--){var a=i[u];if(r?n[a]!==e[a]:m(n[a],e[a],!1,t))return!0}return!1}function v(e,n,r){if(void 0===r&&(r=!0),!Array.isArray(e)||!Array.isArray(n))return r?e!==n:e!=n;if(e.length!==n.length)return!0;for(var t=e.length-1;t>=0;t--)if(r?e[t]!==n[t]:e[t]!=n[t])return!0;return!1}function b(e,n){void 0===n&&(n="col-sm-$value");var r=12,t=Math.floor(r/e);return function(i){if(i.columnClassName&&/\bcol-(?:xs|sm|md|lg)-(\d+)\b/.test(i.columnClassName)){var o=parseInt(RegExp.$1,10);return r-=o,e--,t=Math.floor(r/e),i.columnClassName}return i.columnClassName?(r-=t,e--,i.columnClassName):(r-=t,e--,n.replace("$value",""+t))}}function y(e,n){return!(e.hidden||e.visible===!1||e.hiddenOn&&Y.evalExpression(e.hiddenOn,n)===!0||e.visibleOn&&Y.evalExpression(e.visibleOn,n)===!1)}function g(e,n){return e.disabled||e.disabledOn&&Y.evalExpression(e.disabledOn,n)}function _(e,n){if(n>1&&/\bcol-(xs|sm|md|lg)-(\d+)\b/.test(e.left)){var r=parseInt(RegExp.$2,10)*n;return{leftFixed:e.leftFixed,left:r,right:12-r,offset:r}}if(n>1&&"number"==typeof e.left){var r=e.left*n;return{leftFixed:e.leftFixed,left:r,right:12-r,offset:r}}return e}function O(e){var n=function(){try{var n=e.apply(null,arguments);return n&&n.then?n:"function"==typeof n?new Promise(function(e,r){return n(function(n,t){return n?r(n):e(t)})}):Promise.resolve(n)}catch(r){Promise.reject(r)}};return n.raw=e,n}function w(e){if(null==e)return null;var n=getComputedStyle(e),r=n.getPropertyValue("overflow")+n.getPropertyValue("overflow-x")+n.getPropertyValue("overflow-y");return/auto|scroll/.test(r)||"BODY"===e.nodeName?e:w(e.parentNode)}function j(e,n){function r(e,n){return W(e,function(e,t,i){q(t,n[i])||(e[i]=H(t)&&H(n[i])?r(t,n[i]):t)})}return r(e,n)}function x(e){return e}function E(e){var n=typeof e;return e&&"string"!==n&&"number"!==n&&"boolean"!==n&&"function"!==n&&!Array.isArray(e)}function P(e){if("string"!=typeof e)return!!e;var n=e.split(/\s*,\s*|\s+/);if(window.matchMedia)return n.some(function(e){return"*"===e||"xs"===e&&matchMedia("screen and (max-width: 767px)").matches||"sm"===e&&matchMedia("screen and (min-width: 768px) and (max-width: 991px)").matches||"md"===e&&matchMedia("screen and (min-width: 992px) and (max-width: 1199px)").matches||"lg"===e&&matchMedia("screen and (min-width: 1200px)").matches});var r=window.innerWidth;return n.some(function(e){return"*"===e||"xs"===e&&768>r||"sm"===e&&r>=768&&992>r||"md"===e&&r>=992&&1200>r||"lg"===e&&r>=1200})}function k(e,n,r,t){var i=this;void 0===t&&(t=5e3);var o,u=!1;return new Promise(function(a){var s=function(){clearTimeout(o),u=!0},c=function(){return L.__awaiter(i,void 0,void 0,function(){var r;return L.__generator(this,function(i){switch(i.label){case 0:return[4,e()];case 1:return r=i.sent(),u?[2]:(n(r)?(u=!0,a(r)):o=setTimeout(c,t),[2])}})})};c(),r&&r(s)})}function A(e,n){return e.filter(function(e){return!~n.indexOf(e.name||e._name)})}function C(e){return E(e)&&Object.keys(e).length?!1:!0}function M(e,n,r,t,i){return void 0===r&&(r=1),void 0===t&&(t=!1),void 0===i&&(i=[]),e.map(function(e,o){if(t){var u=e.children?M(e.children,n,r+1,t,i.concat(e)):void 0;return u&&(e=L.__assign({},e,{children:u})),e=n(e,o,r,i)||L.__assign({},e)}return e=n(e,o,r,i)||L.__assign({},e),e.children&&Array.isArray(e.children)&&(e.children=M(e.children,n,r+1,t,i.concat(e))),e})}function F(e,n,r){return void 0===r&&(r=1),e.map(function(e,t){n(e,t,r),e.children&&Array.isArray(e.children)&&F(e.children,n,r+1)})}function N(e,n,r){return void 0===r&&(r=1),e.filter(function(e,t){return n(e,t,r)?(e.children&&Array.isArray(e.children)&&(e.children=N(e.children,n,r+1)),!0):!1})}function S(e,n,r){return void 0===r&&(r=1),e.some(function(e,t){var i=n(e,t,r);return!i&&e.children&&Array.isArray(e.children)?S(e.children,n,r+1):i})}function T(e){var n=[];return F(e,function(e){return n.push(e)}),n}function V(e){return e?e.substring(0,1).toUpperCase()+e.substring(1):""}function $(e){return e?e.substring(0,1).toLowerCase()+e.substring(1):""}function D(e){return e?e.split(/[\s_\-]/).map(function(e,n){return 0===n?$(e):V(e)}).join(""):""}function R(e){return"string"==typeof e&&/\bcol\-\w+\-(\d+)\b/.test(e)?parseInt(RegExp.$1,10):e||0}function B(e,n){return void 0===n&&(n="default"),/\b(?:btn|text)-(link|primary|secondary|info|success|warning|danger|light|dark)\b/.test(e)?RegExp.$1:n}function I(e){var n={};return e&&Object.keys(e).forEach(function(r){return/^on/.test(r)&&(n[r]=e[r])}),n}function z(e,n,r){return e.sort(function(e,t){var i,o=e[n],u=t[n];return i="number"==typeof o&&"number"==typeof u?u>o?-1:o===u?0:1:String(o).localeCompare(String(u)),i*r})}Object.defineProperty(n,"__esModule",{value:!0});var L=e("node_modules/tslib/tslib"),U=e("node_modules/lodash/isPlainObject"),W=e("node_modules/lodash/transform"),q=e("node_modules/lodash/isEqual"),H=e("node_modules/lodash/isObject"),Y=e("6a2dbb7"),G=e("node_modules/autobind-decorator/lib/cjs/index");n.createObject=r,n.cloneObject=t,n.extendObject=i,n.syncDataFromSuper=o,n.guid=u,n.findIndex=a,n.getVariable=s,n.setVariable=c,n.deleteVariable=f,n.hasOwnProperty=l,n.noop=d,n.anyChanged=h,n.rmUndefined=p,n.isObjectShallowModified=m,n.isArrayChilrenModified=v,n.makeColumnClassBuild=b,n.isVisible=y,n.isDisabled=g,n.makeHorizontalDeeper=_,n.promisify=O,n.getScrollParent=w,n.difference=j,n.padArr=function(e,n){void 0===n&&(n=4);for(var r=[],t=e.concat(),i=0;t.length;){var o=r[i]||(r[i]=[]);o.length>=n?i+=1:o.push(t.shift())}return r},n.__uri=x,n.isObject=E,n.isBreakpoint=P,n.until=k,n.omitControls=A,n.isEmpty=C,n.uuid=function(){return(+new Date).toString(36)},n.mapTree=M,n.eachTree=F,n.filterTree=N,n.someTree=S,n.flattenTree=T,n.ucFirst=V,n.lcFirst=$,n.camel=D,n.getWidthRate=R,n.getLevelFromClassName=B,n.pickEventsProps=I,n.autobind=G.boundMethod,n.bulkBindFunctions=function(e,n){n.forEach(function(n){return e[n]=e[n].bind(e)})},n.sortArray=z});
;/*!src/components/AsideNav.tsx*/
define("4e7c54b",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),t=e("node_modules/react/index"),a=e("9a80175"),s=e("256b65d"),r=function(e){function n(n){var t=e.call(this,n)||this,s=n.isOpen,r=1;return t.state={navigations:a.mapTree(n.navigations,function(e){var t="undefined"==typeof e.active?n.isActive(e):e.active;return i.__assign({},e,{id:r++,active:t,open:t||s(e)})},1,!0)},t.renderLink=t.renderLink.bind(t),t.toggleExpand=t.toggleExpand.bind(t),t}return i.__extends(n,e),n.prototype.componentWillReceiveProps=function(e){var n=this.props,t=n.isOpen;if(n.navigations!==e.navigations||n.isActive!==e.isActive){var s=1;this.setState({navigations:a.mapTree(e.navigations,function(n){var a="undefined"==typeof n.active?e.isActive(n):n.active;return i.__assign({},n,{id:s++,active:a,open:a||t(n)})},1,!0)})}},n.prototype.toggleExpand=function(e){this.setState({navigations:a.mapTree(this.state.navigations,function(n){return i.__assign({},n,{open:e.id===n.id?!n.open:n.open})},1,!0)})},n.prototype.renderLink=function(e,n,a,s){void 0===a&&(a={}),void 0===s&&(s=1);var r=this.props,l=r.renderLink,o=(r.isActive,r.renderSubLinks),c=r.classnames,p=i.__rest(r,["renderLink","isActive","renderSubLinks","classnames"]),d=l(i.__assign({link:e,active:e.active,open:e.open,toggleExpand:this.toggleExpand,depth:s,classnames:c},p));if(d){return t.createElement("li",i.__assign({},a,{key:n,className:c("AsideNav-item",e.className,(u={},u["is-active"]=e.active||e.open,u))}),d,o(e,this.renderLink,s,this.props));var u}},n.prototype.render=function(){var e=this,n=this.state.navigations,a=[],s=this.props,r=s.className,l=s.classnames;return n.forEach(function(n,s){if(n.prefix){var r="function"==typeof n.prefix?n.prefix(e.props):n.prefix;a.push(t.cloneElement(r,i.__assign({},r.props,{key:s+"-prefix"})))}if(n.label&&a.push(t.createElement("li",{key:s+"-label",className:l("AsideNav-label",n.className)},t.createElement("span",null,n.label))),n.children.forEach(function(n,i){var t=e.renderLink(n,s+"-"+i);t&&a.push(t)}),n.affix){var o="function"==typeof n.affix?n.affix(e.props):n.affix;a.push(t.cloneElement(o,i.__assign({},o.props,{key:s+"-affix"})))}}),t.createElement("nav",{className:l("AsideNav",r)},t.createElement("ul",{className:l("AsideNav-list")},a))},n.defaultProps={renderLink:function(e){return t.createElement("a",null,e.label)},renderSubLinks:function(e,n,i,a){var s=a.classnames;return e.children&&e.children.length?t.createElement("ul",{className:s("AsideNav-subList")},e.label?t.createElement("li",{key:"subHeader",className:s("AsideNav-subHeader")},t.createElement("a",null,e.label)):null,e.children.map(function(e,t){return n(e,t,{},i+1)})):e.label&&1===i?t.createElement("div",{className:s("AsideNav-tooltip")},e.label):null},isActive:function(e){return e.open},isOpen:function(e){return e.children?e.children.some(function(e){return e.open}):!1}},n}(t.Component);n.AsideNav=r,n.default=s.themeable(r)});
;/*!src/components/ModalManager.ts*/
define("8768414",function(e,n){"use strict";function o(){return c.length}function d(){return c[c.length-1]}function r(e){c.push(e)}function t(){c.pop()}function i(e){var n=u(e);if("esc"===n){var o=d();if(o){var r=o.props,t=r.disabled,i=r.closeOnEsc;i&&!t&&o.props.onHide()}}}Object.defineProperty(n,"__esModule",{value:!0});var u=e("node_modules/keycode/index"),c=[];n.current=o,n.currentModal=d,n.addModal=r,n.removeModal=t,window.addEventListener("keydown",i)});
;/*!src/components/Modal.tsx*/
define("628f736",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),d=e("node_modules/react-transition-group/Transition"),a=e("node_modules/react-overlays/lib/index"),i=e("node_modules/classnames/index"),r=e("8768414"),s=e("256b65d"),l=(u={},u[d.ENTERING]="in",u[d.ENTERED]="in",u),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.contentRef=function(e){return t.contentDom=e},t.handleEntered=function(){var e=t.props.onEntered;document.body.classList.add("is-modalOpened"),e&&e()},t.handleExited=function(){var e=t.props.onExited;e&&e(),setTimeout(function(){document.querySelector(".amis-dialog-widget")||document.body.classList.remove("is-modalOpened")},200)},t.modalRef=function(e){var n=t.props.classPrefix;e?(r.addModal(t),e.classList.add(n+"Modal--"+r.current()+"th")):r.removeModal()},t}return n.__extends(t,e),t.prototype.componentDidMount=function(){this.props.show&&this.handleEntered()},t.prototype.componentWillUnmount=function(){this.props.show&&this.handleExited()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.children,s=t.container,c=t.show,u=t.size,m=t.overlay,f=t.classPrefix;return o.createElement(a.Portal,{container:s},o.createElement(d.default,{mountOnEnter:!0,unmountOnExit:!0,"in":c,timeout:350,onExited:this.handleExited,onEntered:this.handleEntered},function(t){return t===d.ENTERING&&e.contentDom.offsetWidth,o.createElement("div",{ref:e.modalRef,role:"dialog",className:i("amis-dialog-widget "+f+"Modal",(a={},a[f+"Modal--"+u]=u,a),n)},m?o.createElement("div",{className:i(f+"Modal-overlay",l[t])}):null,o.createElement("div",{ref:e.contentRef,className:i(f+"Modal-content",l[t])},r));var a}))},t.defaultProps={container:document.body,size:"",overlay:!0},t}(o.Component);t.Modal=c,t.default=s.themeable(c);var u});
;/*!src/components/Html.tsx*/
define("580df19",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),o=e("node_modules/classnames/index"),i=e("256b65d"),s=function(e){function t(t){var n=e.call(this,t)||this;return n.htmlRef=n.htmlRef.bind(n),n}return n.__extends(t,e),t.prototype.componentDidUpdate=function(e){this.props.html!==e.html&&this._render()},t.prototype.htmlRef=function(e){this.dom=e,e&&this._render()},t.prototype._render=function(){var e=this.props.html;e&&(this.dom.innerHTML=e)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.wrapperComponent,i=e.inline,s=e.classPrefix,l=n||(i?"span":"div");return r.createElement(l,{ref:this.htmlRef,className:o(s+"Html",t)})},t.defaultProps={inline:!0},t}(r.Component);t.Html=s,t.default=i.themeable(s)});
;/*!src/components/Tooltip.tsx*/
define("007c3b6",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),l=e("256b65d"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),t.prototype.render=function(){var e=this.props,t=(e.classPrefix,e.className),l=e.title,a=e.children,r=e.arrowProps,i=e.style,n=e.placement,p=(e.arrowOffsetLeft,e.arrowOffsetTop,e.positionLeft,e.positionTop,e.classnames),c=s.__rest(e,["classPrefix","className","title","children","arrowProps","style","placement","arrowOffsetLeft","arrowOffsetTop","positionLeft","positionTop","classnames"]);return o.createElement("div",s.__assign({},c,{className:p("Tooltip",n?"Tooltip--"+n:"",t),style:i,role:"tooltip"}),o.createElement("div",s.__assign({className:p("Tooltip-arrow")},r)),l?o.createElement("div",{className:p("Tooltip-title")},l):null,o.createElement("div",{className:p("Tooltip-body")},a))},t.defaultProps={className:""},t}(o.Component);t.Tooltip=a,t.default=l.themeable(a)});
;/*!src/components/TooltipWrapper.tsx*/
define("8d5abcb",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),i=e("node_modules/react-overlays/lib/index"),r=e("580df19"),l=e("node_modules/uncontrollable/index"),h=e("node_modules/react-dom/index"),s=e("007c3b6"),d=e("256b65d"),a=function(e){function t(t){var o=e.call(this,t)||this;return o.targetRef=o.targetRef.bind(o),o.getTarget=o.getTarget.bind(o),o.show=o.show.bind(o),o.hide=o.hide.bind(o),o.handleShow=o.handleShow.bind(o),o.handleHide=o.handleHide.bind(o),o.handleClick=o.handleClick.bind(o),o.handleFocus=o.handleFocus.bind(o),o.handleBlur=o.handleBlur.bind(o),o.handleMouseOver=o.handleMouseOver.bind(o),o.handleMouseOut=o.handleMouseOut.bind(o),o.state={show:!1},o}return o.__extends(t,e),t.prototype.componentWillUnmount=function(){clearTimeout(this.timer)},t.prototype.getTarget=function(){return this.target?h.findDOMNode(this.target):null},t.prototype.targetRef=function(e){this.target=e},t.prototype.show=function(){this.setState({show:!0})},t.prototype.hide=function(){this.setState({show:!1})},t.prototype.getChildProps=function(){var e=n.Children.only(this.props.children);return e&&e.props},t.prototype.handleShow=function(){this.show()},t.prototype.handleHide=function(){clearTimeout(this.timer);var e=this.props.delay;this.timer=setTimeout(this.hide,e)},t.prototype.handleFocus=function(e){var t=this.getChildProps().onFocus;this.handleShow(),t&&t(e)},t.prototype.handleBlur=function(e){var t=this.getChildProps().onBlur;this.handleHide(),t&&t(e)},t.prototype.handleMouseOver=function(e){this.handleMouseOverOut(this.handleShow,e,"fromElement")},t.prototype.handleMouseOut=function(e){this.handleMouseOverOut(this.handleHide,e,"toElement")},t.prototype.handleMouseOverOut=function(e,t,o){var n=t.currentTarget,i=t.relatedTarget||t.nativeEvent[o];i&&i===n||n.contains(i)||e(t)},t.prototype.handleClick=function(e){var t=this.getChildProps().onClick;this.state.show?this.hide():this.show(),t&&t(e)},t.prototype.render=function(){var e=this.props,t=e.tooltip,o=e.children,l=e.placement,h=e.container,d=e.trigger,a=e.rootClose,u=n.Children.only(o);if(!t)return u;var c={ref:this.targetRef,key:"target"},p=Array.isArray(d)?d.concat():[d];return~p.indexOf("click")&&(c.onClick=this.handleClick),~p.indexOf("focus")&&(c.onFocus=this.handleShow,c.onBlur=this.handleHide),~p.indexOf("hover")&&(c.onMouseOver=this.handleMouseOver,c.onMouseOut=this.handleMouseOut),[u?n.cloneElement(u,c):null,n.createElement(i.Overlay,{key:"overlay",target:this.getTarget,show:this.state.show,onHide:this.handleHide,rootClose:a,placement:l,container:h},n.createElement(s.default,{title:"string"!=typeof t?t.title:void 0},n.createElement(r.default,{html:"string"==typeof t?t:t.content})))]},t.defaultProps={placement:"top",trigger:["hover","focus"],rootClose:!1,delay:200},t}(n.Component);t.TooltipWrapper=a,t.default=d.themeable(l(a,{show:"onVisibleChange"}))});
;/*!src/components/Button.tsx*/
define("a67acca",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),s=e("8d5abcb"),l=e("9a80175"),a=e("256b65d"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.renderButton=function(){var e=this.props,t=e.level,s=e.size,a=e.disabled,i=e.className,r=e.componentClass,c=e.classnames,d=e.children,p=(e.disabledTip,e.block),u=e.type,b=e.active,m=e.iconOnly,v=o.__rest(e,["level","size","disabled","className","componentClass","classnames","children","disabledTip","block","type","active","iconOnly"]);return n.createElement(r,o.__assign({type:"a"===r?void 0:u},l.pickEventsProps(v),{className:c("Button",(f={},f["Button--"+t]=t,f["Button--"+s]=s,f["Button--block"]=p,f["Button--iconOnly"]=m,f["is-disabled"]=a,f["is-active"]=b,f),i),disabled:a}),d);var f},t.prototype.render=function(){var e=this.props,t=e.tooltip,o=e.placement,l=e.tooltipContainer,a=e.tooltipTrigger,i=e.tooltipRootClose,r=e.disabled,c=e.disabledTip,d=(e.classPrefix,e.classnames);return n.createElement(s.default,{placement:o,tooltip:r?c:t,container:l,trigger:a,rootClose:i},r&&c?n.createElement("div",{className:d("Button--disabled-wrap")},this.renderButton()):this.renderButton())},t.defaultProps={componentClass:"button",level:"default",type:"button",placement:"top",tooltipTrigger:["hover","focus"],tooltipRootClose:!1},t}(n.Component);t.Button=i,t.default=a.themeable(i)});
;/*!src/components/Alert.tsx*/
define("bfe4ee0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),i=e("node_modules/react-dom/index"),l=e("628f736"),a=e("a67acca"),r=e("256b65d"),c=function(e){function r(t){var n=e.call(this,t)||this;return n.state={show:!1,title:"",content:"",confirm:!1},n.close=n.close.bind(n),n.handleConfirm=n.handleConfirm.bind(n),n.handleCancel=n.handleCancel.bind(n),n.modalRef=n.modalRef.bind(n),n.bodyRef=n.bodyRef.bind(n),n}return n.__extends(r,e),r.getInstance=function(){if(!r.instance){console.warn("Alert 组件应该没有被渲染,所以隐性的渲染到 body 了");var e=document.body,n=document.createElement("div");e.appendChild(n),i.render(o.createElement(t.ThemedAlert,null),n)}return r.instance},r.prototype.componentWillMount=function(){r.instance=this},r.prototype.componentDidMount=function(){this._body&&(this._body.innerHTML=this.state.content)},r.prototype.componentDidUpdate=function(e,t){t.content!==this.state.content&&this._body&&(this._body.innerHTML=this.state.content)},r.prototype.componentWillUnmount=function(){r.instance=null},r.prototype.handleConfirm=function(){this.close(!0)},r.prototype.handleCancel=function(){this.close(!1)},r.prototype.close=function(e){var t=this,n=this.state.confirm;this.setState({show:!1},n?function(){return t._resolve(e)}:void 0)},r.prototype.alert=function(e,t){this.setState({title:t,content:e,show:!0,confirm:!1})},r.prototype.confirm=function(e,t){var n=this;return this.setState({title:t,content:e,show:!0,confirm:!0}),new Promise(function(e){n._resolve=e})},r.prototype.modalRef=function(e){this._modal=e},r.prototype.bodyRef=function(e){this._body=e,this._body&&(this._body.innerHTML=this.state.content)},r.prototype.render=function(){{var e=this.props,t=e.container,n=e.cancelText,i=e.confirmText,r=e.title,c=e.confirmBtnLevel,s=e.alertBtnLevel,d=e.classnames;e.classPrefix}return o.createElement(l.default,{show:this.state.show,onHide:this.handleCancel,container:t,ref:this.modalRef},o.createElement("div",{className:d("Modal-header")},o.createElement("div",{className:d("Modal-title")},this.state.title||r)),o.createElement("div",{className:d("Modal-body")},o.createElement("div",{ref:this.bodyRef})),o.createElement("div",{className:d("Modal-footer")},this.state.confirm?o.createElement(a.default,{onClick:this.handleCancel},n):null,o.createElement(a.default,{level:this.state.confirm?c:s,onClick:this.handleConfirm},i)))},r.instance=null,r.defaultProps={confirmText:"确认",cancelText:"取消",title:"系统消息",alertBtnLevel:"primary",confirmBtnLevel:"danger"},r}(o.Component);t.Alert=c,t.alert=function(e,t){return c.getInstance().alert(e,t)},t.confirm=function(e,t){return c.getInstance().confirm(e,t)},t.ThemedAlert=r.themeable(c),t.default=t.ThemedAlert});
;/*!src/components/Checkbox.tsx*/
define("0a43d97",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),t=e("node_modules/classnames/index"),c=e("256b65d"),s={sm:"i-checks-sm",lg:"i-checks-lg",small:"i-checks-sm",large:"i-checks-lg"},r=function(e){function l(l){var n=e.call(this,l)||this;return n.hanldeCheck=n.hanldeCheck.bind(n),n}return n.__extends(l,e),l.prototype.hanldeCheck=function(e){var l=this.props,n=l.trueValue,a=l.falseValue,t=l.onChange;t&&t(e.currentTarget.checked?n:a)},l.prototype.render=function(){var e=this.props,l=e.size,n=e.className,c=e.classPrefix,r=e.value,d=e.label,i=e.partial,u=e.trueValue,o=e.children,h=e.disabled,p=e.readOnly,m=e.checked,f=e.type,k=e.name;return n=(n?n:"")+(l&&s[l]?" "+s[l]:""),a.createElement("label",{className:t(c+"Checkbox "+c+"Checkbox--"+f,(b={},b[c+"Checkbox--full"]=!i,b),n)},a.createElement("input",{type:f,checked:"undefined"!=typeof m?m:"undefined"==typeof r?r:r==u,onChange:this.hanldeCheck,disabled:h,readOnly:p,name:k}),a.createElement("i",null),a.createElement("span",null,o||d));var b},l.defaultProps={trueValue:!0,falseValue:!1,type:"checkbox"},l}(a.Component);l.Checkbox=r,l.default=c.themeable(r)});
;/*!src/components/Checkboxes.tsx*/
define("f203847",function(e,n){"use strict";function t(e,n){if(n.multi||n.multiple){if("string"==typeof e&&(e=e.split(n.delimiter||",")),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return l(!n.joinValues&&e&&e.hasOwnProperty(n.valueField||"value")?e[n.valueField||"value"]:e,n)}).filter(function(e){return e})}var t=l(e,n);return t?[t]:[]}function l(e,n){var t=typeof e;if("string"!==t&&"number"!==t&&"boolean"!==t&&"object"!==t)return null;var l=n.options,i=n.valueField;return l?("object"===t&&(e=e[i||"value"]||""),o(s.flattenTree(l),function(n){return String(n[i||"value"])===String(e)})):null}Object.defineProperty(n,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),u=e("node_modules/uncontrollable/index"),a=e("0a43d97"),o=e("node_modules/lodash/find"),d=e("node_modules/lodash/chunk"),s=e("9a80175"),c=e("256b65d");n.value2array=t,n.expandValue=l;var p=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(n,e),n.prototype.toggleOption=function(e){var n=this.props,l=n.value,i=n.onChange,r=n.joinValues,u=n.extractValue,a=n.delimiter,o=n.valueField,d=n.options,s=t(l,{multiple:!0,valueField:o,delimiter:a,options:d}),c=s.indexOf(e);~c||(e=t(e[o||"value"],{multiple:!0,valueField:o,delimiter:a,options:d})[0]||e,c=s.indexOf(e)),~c?s.splice(c,1):s.push(e);var p=s;r?p=p.map(function(e){return e[o||"value"]}).join(a):u&&(p=p.map(function(e){return e[o||"value"]})),i&&i(p)},n.prototype.render=function(){var e=this,n=this.props,l=n.value,i=n.valueField,u=n.delimiter,o=n.options,s=n.className,c=n.placeholder,p=n.columnsCount,m=n.disabled,f=n.inline,v=t(l,{multiple:!0,valueField:i,delimiter:u,options:o}),h=[];if(o&&(h=o.map(function(n,t){return r.createElement(a.default,{key:t,onChange:function(){return e.toggleOption(n)},checked:!!~v.indexOf(n),disabled:m||n.disabled,inline:f},n.label)})),!f&&p>1){var b="col-sm-"+(12/p).toFixed(1).replace(/\.0$/,"").replace(/\./,"-");h=d(h,p).map(function(e,n){return r.createElement("div",{className:"row",key:n},e.map(function(e,n){return r.createElement("div",{key:n,className:b},e)}))})}return r.createElement("div",{className:s},h&&h.length?h:c)},n.defaultProps={joinValues:!0,extractValue:!1,inline:!1,delimiter:",",columnsCount:1},n}(r.PureComponent);n.Checkboxes=p,n.default=c.themeable(u(p,{value:"onChange"}))});
;/*!src/components/Collapse.tsx*/
define("0d13109",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=e("node_modules/react-bootstrap/lib/index");t.default=d.Collapse});
;/*!src/components/icons.tsx*/
define("b7bbd16",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=e("node_modules/react/index");a.closeIcon=c.createElement("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1463"},c.createElement("path",{d:"M967.81435 106.836237 917.16274 56.18565 512 461.34839 106.836237 56.18565 56.184627 106.836237 461.34839 512 56.184627 917.163763 106.836237 967.815373 512 562.65161 917.16274 967.815373 967.81435 917.163763 562.650587 512Z","p-id":"1464","data-spm-anchor-id":"a313x.7781069.0.i0"})),a.unDoIcon=c.createElement("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1"},c.createElement("path",{d:"M661.333333 341.333333H167.04l183.253333-183.253333L320 128 85.333333 362.666667l234.666667 234.666666 30.08-30.08L167.04 384H661.333333a234.666667 234.666667 0 0 1 0 469.333333H448v42.666667h213.333333a277.333333 277.333333 0 0 0 0-554.666667z"})),a.reDoIcon=c.createElement("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1"},c.createElement("path",{d:"M704 128l-30.08 30.08L856.96 341.333333H362.666667a277.333333 277.333333 0 0 0 0 554.666667h213.333333v-42.666667H362.666667a234.666667 234.666667 0 0 1 0-469.333333h494.293333l-183.253333 183.253333L704 597.333333l234.666667-234.666666z"})),a.enterIcon=c.createElement("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1"},c.createElement("path",{d:"M864 192c-19.2 0-32 12.8-32 32v224c0 89.6-70.4 160-160 160H236.8l105.6-105.6c12.8-12.8 12.8-32 0-44.8s-32-12.8-44.8 0l-160 160c-3.2 3.2-6.4 6.4-6.4 9.6-3.2 6.4-3.2 16 0 25.6 3.2 3.2 3.2 6.4 6.4 9.6l160 160c6.4 6.4 12.8 9.6 22.4 9.6s16-3.2 22.4-9.6c12.8-12.8 12.8-32 0-44.8L236.8 672H672c124.8 0 224-99.2 224-224V224c0-19.2-12.8-32-32-32z"})),a.volumeIcon=c.createElement("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1"},c.createElement("path",{d:"M536.319574 5.11991a63.99888 63.99888 0 0 0-69.758779 13.439765L229.764939 255.99552H64.00784a63.99888 63.99888 0 0 0-63.99888 63.99888v383.99328a63.99888 63.99888 0 0 0 63.99888 63.99888h165.757099l236.795856 237.435845A63.99888 63.99888 0 0 0 512 1023.98208a53.759059 53.759059 0 0 0 24.319574-5.11991A63.99888 63.99888 0 0 0 575.99888 959.9832V63.99888a63.99888 63.99888 0 0 0-39.679306-58.87897zM192.0056 639.9888H128.00672V383.99328h63.99888z m255.99552 165.757099l-127.99776-127.99776V346.233941l127.99776-127.99776zM879.353571 148.477402a63.99888 63.99888 0 0 0-94.718342 87.038476 402.552955 402.552955 0 0 1 0 552.950324A63.99888 63.99888 0 0 0 831.9944 895.98432a63.99888 63.99888 0 0 0 46.719183-20.479641 531.830693 531.830693 0 0 0 0-727.027277z",fill:"#606670","p-id":"3605"}),c.createElement("path",{d:"M751.9958 277.11515a63.99888 63.99888 0 0 0-95.99832 85.7585A218.236181 218.236181 0 0 1 703.99664 511.99104a221.436125 221.436125 0 0 1-47.359171 149.117391 63.99888 63.99888 0 0 0 4.479921 90.23842A63.99888 63.99888 0 0 0 703.99664 767.98656a63.99888 63.99888 0 0 0 47.359171-21.11963A349.433885 349.433885 0 0 0 831.9944 511.99104a353.273818 353.273818 0 0 0-79.9986-234.87589z",fill:"#606670","p-id":"3606"})),a.muteIcon=c.createElement("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1"},c.createElement("path",{d:"M536.310615 5.11991a63.99888 63.99888 0 0 0-69.75878 13.439765L229.755979 255.99552H63.99888a63.99888 63.99888 0 0 0-63.99888 63.99888v383.99328a63.99888 63.99888 0 0 0 63.99888 63.99888h165.757099l236.795856 237.435845A63.99888 63.99888 0 0 0 511.99104 1023.98208a53.759059 53.759059 0 0 0 24.319575-5.11991A63.99888 63.99888 0 0 0 575.98992 959.9832V63.99888a63.99888 63.99888 0 0 0-39.679305-58.87897zM191.99664 639.9888H127.99776V383.99328h63.99888z m255.99552 165.757099l-127.99776-127.99776V346.233941l127.99776-127.99776zM914.543995 511.99104l90.87841-90.238421a63.99888 63.99888 0 1 0-90.87841-90.878409l-90.23842 90.878409-90.238421-90.878409a63.99888 63.99888 0 0 0-90.87841 90.878409L734.067154 511.99104l-90.87841 90.238421a63.99888 63.99888 0 0 0 90.87841 90.87841l90.238421-90.87841 90.23842 90.87841a63.99888 63.99888 0 1 0 90.87841-90.87841z",fill:"#606670","p-id":"2312"})),a.playIcon=c.createElement("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1"},c.createElement("path",{d:"M852.727563 392.447107C956.997809 458.473635 956.941389 565.559517 852.727563 631.55032L281.888889 993.019655C177.618644 1059.046186 93.090909 1016.054114 93.090909 897.137364L93.090909 126.860063C93.090909 7.879206 177.675064-35.013033 281.888889 30.977769L852.727563 392.447107 852.727563 392.447107Z","p-id":"4494",fill:"#606670"})),a.pauseIcon=c.createElement("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1"},c.createElement("path",{d:"M757.52 73.107h-62.493c-34.526 0-62.498 27.984-62.498 62.511v749.948c0 34.526 27.974 62.493 62.498 62.493h62.493c34.516 0 62.502-27.968 62.502-62.493v-749.953c-0.001-34.524-27.984-62.509-62.502-62.509z","p-id":"7567",fill:"#606670"}),c.createElement("path",{d:"M320.054 73.107h-62.502c-34.526 0-62.498 27.984-62.498 62.511v749.948c0 34.526 27.974 62.493 62.498 62.493h62.502c34.505 0 62.493-27.968 62.493-62.493v-749.953c-0.001-34.524-27.984-62.509-62.493-62.509z","p-id":"7568",fill:"#606670"}))});
;/*!src/utils/dom.tsx*/
define("fb7767a",function(t,e){"use strict";function o(t,e){return t="function"==typeof t?t():t,f.findDOMNode(t)||e}function n(t){return p(f.findDOMNode(t))}function i(t){var e,o,i;return"BODY"===t.tagName?(e=window.innerWidth,o=window.innerHeight,i=m(n(t).documentElement)||m(t)):(r=c(t),e=r.width,o=r.height,i=m(t)),{width:e,height:o,scroll:i};var r}function r(t,e,o,n){var r=i(o),s=r.scroll,l=r.height,d=t-n-s,h=t+n-s+e;return 0>d?-d:h>l?l-h:0}function s(t,e,o,n){var r=i(o),s=r.width,l=t-n,d=t+n+e;return 0>l?-l:d>s?s-d:0}function l(t,e,o,n,i){var l="BODY"===n.tagName?c(o):a(o,n),d=c(e),h=d.height,f=d.width,u=0,p=0,m="",g="";if(~t.indexOf("-"))for(var w=t.split(/\s+/);w.length;){var v=w.shift(),y=v.split("-"),_=y[0],b=y[1],O=y[2],x=y[3];if(O=O||_,x=x||b,u="left"===_?l.left:"right"===_?l.left+l.width:l.left+l.width/2,p="top"===b?l.top:"bottom"===b?l.top+l.height:l.top+l.height/2,u-="left"===O?0:"right"===O?f:f/2,p-="top"===x?0:"bottom"===x?h:h/2,w.length){var P=o.getBoundingClientRect(),B={x:P.x+u-l.left,y:P.y+p-l.top,width:f,height:h};if(B.x>0&&B.x+B.width<window.innerWidth&&B.y>0&&B.y+B.height<window.innerHeight)break}}else if("left"===t||"right"===t){u="left"===t?l.left-f:l.left+l.width,p=l.top+(l.height-h)/2;var D=r(p,h,n,i);p+=D,g=50*(1-2*D/h)+"%"}else if("top"===t||"bottom"===t){p="top"===t?l.top-h:l.top+l.height,u=l.left+(l.width-f)/2;var N=s(u,f,n,i);u+=N,m=50*(1-2*N/h)+"%"}else{if(!(t="center"))throw new Error('calcOverlayPosition(): No such placement of "'+t+'" found.');u=l.left+(l.width-f)/2,p=l.top+(l.height-h)/2,m=g=void 0}return{positionLeft:u,positionTop:p,arrowOffsetLeft:m,arrowOffsetTop:g}}Object.defineProperty(e,"__esModule",{value:!0});var d=t("node_modules/tslib/tslib"),h=t("node_modules/react/index"),f=t("node_modules/react-dom/index"),u=t("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs"),p=t("node_modules/dom-helpers/ownerDocument"),c=t("node_modules/dom-helpers/query/offset"),a=t("node_modules/dom-helpers/query/position"),m=t("node_modules/dom-helpers/query/scrollTop"),g={level:"bsStyle",classPrefix:"bsClass",size:"bsSize"};e.props2BsProps=function(t){var e={};return Object.keys(t).forEach(function(o){return e[g[o]||o]=t[o]}),e},e.props2BsPropsHoc=function(t){var o=function(o){function n(){return null!==o&&o.apply(this,arguments)||this}return d.__extends(n,o),n.prototype.render=function(){return h.createElement(t,d.__assign({},e.props2BsProps(this.props)))},n}(h.Component);return u(o,t),o},e.getContainer=o,e.ownerDocument=n,e.calculatePosition=l});
;/*!src/components/Overlay.tsx*/
define("997df41",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=e("node_modules/react-overlays/lib/index"),i=e("node_modules/react-dom/index"),r=e("node_modules/react/index"),s=e("fb7767a");o.Position.propTypes.placement=o.Overlay.propTypes.placement=function(){return null},o.Position.prototype.updatePosition=function(e){if(this._lastTarget=e,!e)return this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null});var t=i.findDOMNode(this),n=s.getContainer(this.props.container,s.ownerDocument(this).body);this.setState(s.calculatePosition(this.props.placement,t,e,n,this.props.containerPadding))};var a=function(e){function t(t){return e.call(this,t)||this}return n.__extends(t,e),t.prototype.render=function(){return r.createElement(o.Overlay,n.__assign({},this.props))},t}(r.Component);t.default=a});
;/*!src/components/PopOver.tsx*/
define("2b3dcdf",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),n=e("node_modules/react-dom/index"),f=e("256b65d"),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={xOffset:0,yOffset:0},t}return s.__extends(t,e),t.prototype.componentDidMount=function(){this.mayUpdateOffset()},t.prototype.componentDidUpdate=function(){this.mayUpdateOffset()},t.prototype.mayUpdateOffset=function(){var e,t=this.props.offset;if(t&&"function"==typeof t){var s=this.props,o=s.placement,f=s.positionTop,a=s.positionLeft;e=t(n.findDOMNode(this).getBoundingClientRect(),{x:a,y:f,placement:o})}else e=t;this.setState({xOffset:e?e.x:0,yOffset:e?e.y:0})},t.prototype.render=function(){var e=this.props,t=e.placement,n=e.positionTop,f=e.positionLeft,a=(e.arrowOffsetLeft,e.arrowOffsetTop,e.style),i=e.children,r=(e.offset,e.overlay),p=e.onHide,l=e.classPrefix,c=e.classnames,d=e.className,m=s.__rest(e,["placement","positionTop","positionLeft","arrowOffsetLeft","arrowOffsetTop","style","children","offset","overlay","onHide","classPrefix","classnames","className"]),u=this.state,y=u.xOffset,O=u.yOffset,v=s.__assign({display:"block"},a,{top:n+O,left:f+y});return o.createElement("div",s.__assign({className:c(l+"PopOver",d,l+"PopOver--"+t),style:v},m),r?o.createElement("div",{className:l+"PopOver-overlay",onClick:p}):null,i)},t.defaultProps={className:"",offset:{x:0,y:0},overlay:!1,placement:"bottom"},t}(o.PureComponent);t.PopOver=a,t.default=f.themeable(a)});
;/*!src/components/ColorPicker.tsx*/
define("f11d26b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),l=e("node_modules/react-dom/index"),a=e("node_modules/react-color/lib/index"),r=e("b7bbd16"),i=e("997df41"),s=e("node_modules/uncontrollable/index"),u=e("2b3dcdf"),c=e("256b65d"),d=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpened:!1,isFocused:!1,inputValue:n.props.value||""},n.open=n.open.bind(n),n.close=n.close.bind(n),n.focus=n.focus.bind(n),n.blur=n.blur.bind(n),n.handleChange=n.handleChange.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.clearValue=n.clearValue.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleClick=n.handleClick.bind(n),n.preview=o.createRef(),n.input=o.createRef(),n}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;t.value!==e.value&&this.setState({inputValue:e.value||""})},t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!1,inputValue:this.props.value})},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.blur=function(){this.input.current&&this.input.current.blur()},t.prototype.open=function(e){this.props.disabled||this.setState({isOpened:!0},e)},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.clearValue=function(){var e=this.props.onChange;e("")},t.prototype.handleClick=function(){this.state.isOpened?this.close():this.open(this.focus)},t.prototype.handleInputChange=function(e){var t=this,n=this.props.onChange;this.setState({inputValue:e.currentTarget.value},function(){var e=t.preview.current;e&&e.style.backgroundColor===t.state.inputValue&&n(t.state.inputValue)})},t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,o=t.format;n("rgba"===o?"rgba("+e.rgb.r+", "+e.rgb.g+", "+e.rgb.b+", "+e.rgb.a+")":"rgb"===o?"rgb("+e.rgb.r+", "+e.rgb.g+", "+e.rgb.b+")":"hsl"===o?"hsl("+Math.round(e.hsl.h)+", "+Math.round(100*e.hsl.s)+"%, "+Math.round(100*e.hsl.l)+"%)":e.hex)},t.prototype.render=function(){var e=this,t=this.props,n=t.classPrefix,s=t.className,c=t.value,d=t.placeholder,h=t.disabled,p=t.popOverContainer,b=t.format,f=t.clearable,C=t.placement,g=t.classnames,m=this.state.isOpened,v=this.state.isFocused;return o.createElement("div",{className:g("ColorPicker",{"is-disabled":h,"is-focused":v},s)},o.createElement("input",{size:10,ref:this.input,type:"text",autoComplete:"off",className:g("ColorPicker-input"),value:this.state.inputValue||"",placeholder:d,disabled:h,onChange:this.handleInputChange,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick}),f&&!h&&c?o.createElement("a",{onClick:this.clearValue,className:g("ColorPicker-clear")},r.closeIcon):null,o.createElement("span",{onClick:this.handleClick,className:g("ColorPicker-preview")},o.createElement("i",{ref:this.preview,className:n+"ColorPicker-previewIcon",style:{background:this.state.inputValue||"#ccc"}})),m?o.createElement(i.default,{placement:C||"left-bottom-left-top right-bottom-right-top",target:function(){return l.findDOMNode(e)},onHide:this.close,container:p||function(){return l.findDOMNode(e)},rootClose:!1,show:!0},o.createElement(u.default,{classPrefix:n,className:g("ColorPicker-popover"),onHide:this.close,overlay:!0},o.createElement(a.SketchPicker,{disableAlpha:!!~["rgb","hex"].indexOf(b),color:c,onChangeComplete:this.handleChange}))):null)},t.defaultProps={format:"hex",clearable:!0,placeholder:"请选择颜色"},t}(o.PureComponent);t.ColorControl=d,t.default=c.themeable(s(d,{value:"onChange"}))});
;/*!src/utils/tpl-builtin.ts*/
define("f2e345e",function(e,r){"use strict";function t(e){for(var r=["秒","分","时","天","月","季","年"],t=[1,60,3600,86400,2592e3,7776e3,31104e3],n=t.length,i=[];n--;)t[n]&&e>=t[n]?(i.push(Math.round(e/t[n])+r[n]),e%=t[n]):0===n&&e&&i.push((e.toFixed?e.toFixed(2):"0")+r[0]);return i.join("")}function n(e,t){r.filters[e]=t}function i(e,t){var n;if(!e||(n=e.split(","))&&n.length<2){var i=e.indexOf("~");if(~i){var o=e.substring(0,i),u=e.substring(i+1);return s={},s[o]=r.resolveVariable(u,t),s}return r.resolveVariable(e,t)}var a={};return n.forEach(function(e){var n=e.indexOf("~"),i=e;~n&&(i=e.substring(n+1),e=e.substring(0,n)),c.setVariable(a,e,r.resolveVariable(i,t))}),a;var s}function o(e,t){return"string"==typeof e&&/^\$(?:([a-z0-9_.]+)|{[^}{]+})$/.test(e)?r.resolveVariableAndFilter(e,t,"| raw"):"string"==typeof e&&~e.indexOf("$")?r.tokenize(e,t,"| raw"):e}function u(e,r){var t={};return Object.keys(e).forEach(function(n){var i,s=e[n];if("&"===n&&"$$"===s)t=a.__assign({},t,r);else if("&"===n){var f=o(s,r);t=Array.isArray(f)||"string"==typeof f?f:"function"==typeof f?a.__assign({},t,f(r)):a.__assign({},t,f)}else if("$$"===s)t[n]=r;else if(s&&"$"===s[0]){var f=o(s,r);t[n]=f,"__undefined"===f&&delete t[n]}else if(l(s)&&(i=Object.keys(s))&&1===i.length&&r[i[0].substring(1)]&&Array.isArray(r[i[0].substring(1)])){var d=r[i[0].substring(1)],p=s[i[0]];t[n]=d.map(function(e){var t=c.createObject(r,e),n=null;return Object.keys(p).forEach(function(e){var r=p[e];"&"===e&&"$$"===r?(n=l(n)?n:{},n=a.__assign({},n,{itemData:t})):"&"===e?n=l(n)?a.__assign({},n,o(r,t)):o(r,t):(n=l(n)?n:{},n[e]=o(r,t))}),n})}else l(s)?t[n]=u(s,r):Array.isArray(s)?t[n]=s.map(function(e){return l(e)?u(e,r):o(e,r)}):"string"==typeof s&&~s.indexOf("$")?t[n]=o(s,r):"function"==typeof s?t[n]=s(r):(t[n]=s,"__undefined"===s&&delete t[n])}),t}Object.defineProperty(r,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),s=e("6a2dbb7"),f=e("node_modules/moment/moment"),l=e("node_modules/lodash/isPlainObject"),c=e("9a80175"),d=["B","kB","MB","GB","TB","PB","EB","ZB","YB"];r.prettyBytes=function(e){if(!Number.isFinite(e))throw new TypeError("Expected a finite number, got "+typeof e+": "+e);var r=0>e;if(r&&(e=-e),1>e)return(r?"-":"")+e+" B";var t=Math.min(Math.floor(Math.log(e)/Math.log(1e3)),d.length-1),n=Number((e/Math.pow(1e3,t)).toPrecision(3)),i=d[t];return(r?"-":"")+n+" "+i};var p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};r.escapeHtml=function(e){return String(e).replace(/[&<>"'\/]/g,function(e){return p[e]})},r.formatDuration=t;var v={year:"Y",years:"Y",month:"M",months:"M",week:"w",weeks:"w",weekday:"W",day:"d",days:"d",hour:"h",hours:"h",minute:"m",minutes:"m",min:"m",mins:"m"};r.relativeValueRe=/^(.+)?(\+|-)(\d+)(minute|minutes|min|mins|hours|hour|day|days|week|weeks|month|months|year|years|weekday)$/i,r.filterDate=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n="X");var i;if("string"==typeof e&&(e=e.trim()),e=s.filter(e,t),e&&"string"==typeof e&&(i=r.relativeValueRe.exec(e))){var o=new Date,u=parseInt(i[3],10),a=i[1]?r.filterDate(i[1],t,n):f(/minute|minutes|min|mins|hours|hour/.test(i[4])?[o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds()]:[o.getFullYear(),o.getMonth(),o.getDate()]);return"-"===i[2]?a.subtract(u,v[i[4]]):a.add(u,v[i[4]])}if("now"===e)return f();if("today"===e){var o=new Date;return f([o.getFullYear(),o.getMonth(),o.getDate()])}return f(e,n)},r.filters={html:function(e){return r.escapeHtml(e)},json:function(e,r){return void 0===r&&(r=2),r?JSON.stringify(e,null,parseInt(r,10)):JSON.stringify(e)},toJson:function(e){var r;try{r=JSON.parse(e)}catch(t){r=null}return r},raw:function(e){return e},date:function(e,r,t){return void 0===r&&(r="LLL"),void 0===t&&(t="X"),f(e,t).format(r)},number:function(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,",")},trim:function(e){return e.trim()},percent:function(e,r){void 0===r&&(r=0),e=parseFloat(e)||0,r=parseInt(r,10)||0;var t=100*e,n=Math.pow(10,r);return(Math.round(t*n)/n).toFixed(r)+"%"},duration:function(e){return e?t(e):e},bytes:function(e){return e?r.prettyBytes(parseFloat(e)):e},round:function(e,r){if(void 0===r&&(r=0),isNaN(e))return 0;r=parseInt(r,10)||2;var t=Math.pow(10,r);return(Math.round(e*t)/t).toFixed(r)},truncate:function(e,r,t){return t=t||"...",null==r?e:(r=parseInt(r,10)||200,e.substring(0,r)+(e.length>r?t:""))},url_encode:function(e){return encodeURIComponent(e)},url_decode:function(e){return decodeURIComponent(e)},"default":function(e,r){return e||function(){try{return"undefined"===r?void 0:JSON.parse(r)}catch(e){return r}}()},join:function(e,r){return e&&e.join?e.join(r):e},split:function(e,r){return void 0===r&&(r=","),"string"==typeof e?e.split(r):e},first:function(e){return e&&e[0]},nth:function(e,r){return void 0===r&&(r=0),e&&e[r]},last:function(e){return e&&(e.length?e[e.length-1]:null)},minus:function(e,r){return void 0===r&&(r=1),(parseInt(e,10)||0)-parseInt(r,10)},plus:function(e,r){return void 0===r&&(r=1),(parseInt(e,10)||0)+parseInt(r,10)},pick:function(e,r){return void 0===r&&(r="&"),Array.isArray(e)&&!/^\d+$/.test(r)?e.map(function(e){return i(r,e)}):i(r,e)},pick_if_exist:function(e,t){return void 0===t&&(t="&"),Array.isArray(e)?e.map(function(e){return r.resolveVariable(t,e)||e}):r.resolveVariable(t,e)||e},str2date:function(e,t,n){return void 0===t&&(t="X"),void 0===n&&(n="X"),e?r.filterDate(e,this,t).format(n):""},asArray:function(e){return e?[e]:e},filter:function(e,t,n){var i;return Array.isArray(e)&&t&&n&&(i=r.resolveVariable(n,this))?(i=i.toLowerCase(),t=t.split(/\s*,\s*/),e.filter(function(e){return t.some(function(t){return~String(r.resolveVariable(t,e)).toLowerCase().indexOf(i)})})):e},base64Encode:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,r){return String.fromCharCode("0x"+r)}))},base64Decode:function(e){return decodeURIComponent(atob(e).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))},lowerCase:function(e){return e&&"string"==typeof e?e.toLowerCase():e},upperCase:function(e){return e&&"string"==typeof e?e.toUpperCase():e}},r.registerFilter=n,r.pickValues=i,r.resolveVariable=function(e,r){if(void 0===r&&(r={}),!e)return void 0;if("$$"===e)return r;if("$"===e[0]&&(e=e.substring(1)),!e)return void 0;if("&"===e)return r;if("undefined"!=typeof r[e])return r[e];var t=e.replace(/^{|}$/g,"").split(".");return t.reduce(function(e,r){return(c.isObject(e)||Array.isArray(e))&&r in e?e[r]:void 0},r)},r.resolveVariableAndFilter=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n="| html"),!e)return void 0;var i=/^(\\)?\$(?:([a-z0-9_.]+)|{([\s\S]+)})$/i.exec(e);if(!i)return void 0;var o=i[0],u=i[1],a=i[2],s=i[3];if(u)return o.substring(1);var f=a||s;f=f.replace(/(\\)?\$(?:([a-z0-9_.]+)|{([^}{]+)})/g,function(e,i){return i?e.substring(1):r.resolveVariableAndFilter(e,t,n)}),~f.indexOf("|")||(f+=n);var l=f.split(/\s*\|\s*/g),c=f;f=l.shift();var d=r.resolveVariable(f,t);return null!=d||~c.indexOf("default")?l.reduce(function(e,n){var i=n.replace(/([^\\])\\([\:\\])/g,function(e,r,t){return r+"__"+(":"===t?"colon":"slash")+"__"}).split(":").map(function(e){return e.replace(/__(slash|colon)__/g,function(e,r){return"colon"===r?":":"\\"})}),o=i.shift();return(u=r.filters[o]||r.filters.raw).call.apply(u,[t,e].concat(i));var u},d):""},r.tokenize=function(e,t,n){return void 0===n&&(n="| html"),e&&"string"==typeof e?e.replace(/(\\)?\$(?:([a-z0-9_\.]+|&)|{([^}{]+?)})/gi,function(e,i){return i?e.substring(1):r.resolveVariableAndFilter(e,t,n)}):e},r.dataMapping=u,s.reigsterTplEnginer("builtin",{test:function(e){return!!~e.indexOf("$")},compile:function(e,t){return r.tokenize(e,t)}})});
;/*!src/utils/api.ts*/
define("1caead1",function(e,t){"use strict";function a(e,t,a){if(void 0===a&&(a={}),"string"==typeof e){var r=h.test(e)?RegExp.$1:"";r&&(e=e.replace(r+":","")),e={method:r,url:e}}else e=l.__assign({},e);var n=a.autoAppend,i=a.ignoreData,s=l.__rest(a,["autoAppend","ignoreData"]);if(e.config=l.__assign({},s),e.method=e.method||a.method||"get",!t)return e;if(t instanceof FormData||t instanceof Blob||t instanceof ArrayBuffer)return e.data=t,e;var u=e.url=e.url||"";if(e.url=p.tokenize(e.url,t,"| url_encode"),e.data?e.data=p.dataMapping(e.data,t):("post"===e.method||"put"===e.method)&&(e.data=t),"get"===e.method&&(~u.indexOf("$")||e.data||!n||(e.data=t),e.data&&!i)){var o=e.url.indexOf("?");if(~o){var d=l.__assign({},g.parse(e.url.substring(o+1)),e.data);e.url=e.url.substring(0,o)+"?"+g.stringify(d)}else e.url+="?"+g.stringify(e.data);delete e.data}return e.headers&&(e.headers=p.dataMapping(e.headers,t)),e}function r(e){var t=e.data;if(!t)throw new Error("Response is empty!");var a={ok:0==t.status,status:t.status,msg:t.msg,data:t.data};return 422==a.status&&(a.errors=t.errors),a}function n(e){return function(t,r,n){if(t=a(t,r,n),t.requestAdaptor&&(t=t.requestAdaptor(t)||t),"number"==typeof t.cache&&t.cache>0){var s=d(t);return i(s?s.cachedPromise:c(t,e(t)),t)}return i(e(t),t)}}function i(e,t){var a=t.adaptor;return a?e.then(function(e){return l.__assign({},e,{data:a(e.data,e,t)})}).then(r):e.then(r)}function s(e,t,r,n){var i=t&&t.url||t;return i&&"string"==typeof i&&~i.indexOf("$")?(e=a(e,r,{ignoreData:!0}),t=a(t,n,{ignoreData:!0}),!(e.url===t.url||!u(t.url)||t.sendOn&&!m.evalExpression(t.sendOn,n))):!1}function u(e){return e&&/^(?:https?:\/\/[^\/]+)?(\/[^\s\/\?]*){1,}(\?.*)?$/.test(e)}function o(e,t){return e.method===t.method&&e.url===t.url&&!_.isObjectShallowModified(e.data,t.data,!1)}function d(e){for(var t,a=Date.now(),r=0,n=v.length;n>r;r++){var i=v[r];if(a-i.requestTime>i.cache)v.splice(r,1),n--,r--;else if(o(e,i)){t=i;break}}return t}function c(e,t){return v.push(l.__assign({},e,{cachedPromise:t,requestTime:Date.now()})),t}function f(){v.splice(0,v.length)}Object.defineProperty(t,"__esModule",{value:!0});var l=e("node_modules/tslib/tslib"),p=e("f2e345e"),h=/(?:^|raw\:)(get|post|put|delete|patch):/i,g=e("node_modules/qs/lib/index"),m=e("6a2dbb7"),_=e("9a80175"),v=[];t.buildApi=a,t.wrapFetcher=n,t.wrapAdaptor=i,t.isApiOutdated=s,t.isValidApi=u,t.isSameApi=o,t.getApiCache=d,t.setApiCache=c,t.clearApiCache=f});
;/*!src/store/iRenderer.ts*/
define("7820b08",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),n=e("9a80175"),o=e("f2e345e");t.iRendererStore=r.types.model("iRendererStore",{id:r.types.identifier,path:"",storeType:r.types.string,hasRemoteData:r.types.optional(r.types.boolean,!1),data:r.types.optional(r.types.frozen(),{}),updatedAt:0,pristine:r.types.optional(r.types.frozen(),{}),parentId:r.types.optional(r.types.string,""),action:r.types.optional(r.types.frozen(),void 0),dialogOpen:!1,dialogData:r.types.optional(r.types.frozen(),void 0),drawerOpen:!1,drawerData:r.types.optional(r.types.frozen(),void 0)}).views(function(e){return{get parentStore(){return e.parentId&&r.getRoot(e)&&"RendererStore"===r.getRoot(e).storeType?r.getRoot(e).stores.get(e.parentId):null}}}).actions(function(e){var t=new Map;return{initData:function(t){void 0===t&&(t={}),e.pristine=t,e.data=t},reset:function(){e.data=e.pristine},updateData:function(t,r){void 0===t&&(t={});var o,i=e.data;if(r){var d=n.createObject(e.data.__super||null,r);o=n.createObject(d,a.__assign({},e.data,t))}else o=n.extendObject(e.data,t);Object.defineProperty(o,"__prev",{value:a.__assign({},i),enumerable:!1,configurable:!1,writable:!1}),e.data=o},setCurrentAction:function(t){e.action=t},openDialog:function(r,i,d){var s=r.__super?r.__super:e.data;i&&(s=n.createObject(s,i));var p=n.createObject(s,a.__assign({},r));e.dialogData=e.action.dialog&&e.action.dialog.data?n.createObject(s,a.__assign({},o.dataMapping(e.action.dialog.data,p))):p,e.dialogOpen=!0,d&&t.set(e.dialogData,d)},closeDialog:function(a){var r=t.get(e.dialogData);e.dialogOpen=!1,r&&(t.delete(e.dialogData),setTimeout(function(){return r(a)},200))},openDrawer:function(r,i,d){var s=r.__super?r.__super:e.data;i&&(s=n.createObject(s,i));var p=n.createObject(s,a.__assign({},r));e.drawerData=e.action.drawer.data?o.dataMapping(e.action.drawer.data,p):p,e.drawerOpen=!0,d&&t.set(e.drawerData,d)},closeDrawer:function(a){var r=t.get(e.drawerData);e.drawerOpen=!1,r&&(t.delete(e.drawerData),setTimeout(function(){return r(a)},200))}}})});
;/*!src/store/service.ts*/
define("57d76d7",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),n=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),r=e("7820b08"),a=e("9a80175");t.ServiceStore=r.iRendererStore.named("ServiceStore").props({msg:"",error:!1,fetching:!1,saving:!1,busying:!1,checking:!1,initializing:!1,schema:n.types.optional(n.types.frozen(),null),schemaKey:""}).views(function(e){return{get loading(){return e.fetching||e.saving||e.busying||e.initializing}}}).actions(function(e){function t(t){void 0===t&&(t=!0),e.fetching=t}function r(t){void 0===t&&(t=!0),e.saving=t}function o(t){void 0===t&&(t=!0),e.busying=t}function c(t){var s=a.extendObject(e.pristine,t);e.data=e.pristine=s}function i(t,s){void 0===s&&(s=!1),e.msg=String(t)||"",e.error=s}function u(){i("")}var g,l,f=n.flow(function(r,a,o){var u,l,f,h;return s.__generator(this,function(d){switch(d.label){case 0:return d.trys.push([0,6,,7]),g&&(g(),g=null,e.fetching=!1),e.fetching?[2]:(o&&o.silent||t(!0),[4,n.getRoot(e).fetcher(r,a,s.__assign({},o,{cancelExecutor:function(e){return g=e}}))]);case 1:return u=d.sent(),g=null,u.ok?[3,2]:(i(u.msg||o&&o.errorMessage,!0),n.getRoot(e).notify("error",u.msg),[3,5]);case 2:return c(s.__assign({},e.data,u.data)),e.updatedAt=Date.now(),e.hasRemoteData=!0,o&&o.onSuccess?(l=o.onSuccess(u),l&&l.then?[4,l]:[3,4]):[3,4];case 3:d.sent(),d.label=4;case 4:i(u.msg||o&&o.successMessage),o&&o.successMessage&&n.getRoot(e).notify("success",e.msg),d.label=5;case 5:return t(!1),[2,u];case 6:return f=d.sent(),h=n.getRoot(e),"RendererStore"!==h.storeType?[2]:(t(!1),h.isCancel(f)?[2]:(f.stack&&console.error(f.stack),h.notify("error",f.message||f),[3,7]));case 7:return[2]}})}),h=n.flow(function(r,a,o){var c,u,l,f;return s.__generator(this,function(h){switch(h.label){case 0:return h.trys.push([0,6,,7]),g&&(g(),g=null,e.fetching=!1),e.fetching?[2]:(o&&o.silent||t(!0),[4,n.getRoot(e).fetcher(r,a,s.__assign({},o,{cancelExecutor:function(e){return g=e}}))]);case 1:return c=h.sent(),g=null,c.ok?[3,2]:(i(c.msg||o&&o.errorMessage,!0),n.getRoot(e).notify("error",e.msg),[3,5]);case 2:return e.updateData(c.data),e.updatedAt=Date.now(),e.hasRemoteData=!0,o&&o.onSuccess?(u=o.onSuccess(c),u&&u.then?[4,u]:[3,4]):[3,4];case 3:h.sent(),h.label=4;case 4:i(c.msg||o&&o.successMessage),o&&o.successMessage&&n.getRoot(e).notify("success",e.msg),h.label=5;case 5:return t(!1),[2,c];case 6:return l=h.sent(),f=n.getRoot(e),"RendererStore"!==f.storeType?[2]:(t(!1),f.isCancel(l)?[2]:(l.stack&&console.error(l.stack),f.notify("error",l.message||l),[3,7]));case 7:return[2]}})}),d=n.flow(function(t,o,c){void 0===c&&(c={});var u,g,l;return s.__generator(this,function(f){switch(f.label){case 0:return f.trys.push([0,6,,7]),c=s.__assign({method:"post"},c),e.saving?[2]:(r(!0),[4,n.getRoot(e).fetcher(t,o,c)]);case 1:if(u=f.sent(),u.ok)return[3,2];throw i(u.msg||c&&c.errorMessage||"保存失败",!0),new Error(e.msg);case 2:return e.updateData(u.data),a.isEmpty(u.data)||(e.updatedAt=Date.now()),c&&c.onSuccess?(g=c.onSuccess(u),g&&g.then?[4,g]:[3,4]):[3,4];case 3:f.sent(),f.label=4;case 4:i(u.msg||c&&c.successMessage||"保存成功"),n.getRoot(e).notify("success",e.msg),f.label=5;case 5:return r(!1),[2,u.data];case 6:throw l=f.sent(),e.saving=!1,n.getRoot(e).notify("error",l.message||l),l;case 7:return[2]}})}),m=n.flow(function(t,r,a){void 0===a&&(a={});var o,c,u;return s.__generator(this,function(g){switch(g.label){case 0:return g.trys.push([0,2,,3]),a=s.__assign({method:"post"},a,{cancelExecutor:function(e){return l=e}}),l&&(l(),l=null,e.initializing=!1),e.initializing?[2]:(e.initializing=!0,"string"==typeof t?t+=(~t.indexOf("?")?"&":"?")+"_replace=1":t=s.__assign({},t,{url:t.url+(~t.url.indexOf("?")?"&":"?")+"_replace=1"}),[4,n.getRoot(e).fetcher(t,r,a)]);case 1:return o=g.sent(),l=null,e.schema=o.data,e.schemaKey=""+Date.now(),o.ok?(i(o.msg||a&&a.successMessage),a&&a.successMessage&&n.getRoot(e).notify("success",e.msg)):(i(o.msg||a&&a.errorMessage||"获取失败,请重试",!0),n.getRoot(e).notify("error",e.msg)),e.initializing=!1,[3,3];case 2:return c=g.sent(),u=n.getRoot(e),"RendererStore"!==u.storeType?[2]:(e.initializing=!1,u.isCancel(c)?[2]:(c.stack&&console.error(c.stack),u.notify("error",c.message||c),[3,3]));case 3:return[2]}})}),y=n.flow(function(t,r,a){var o;return s.__generator(this,function(s){switch(s.label){case 0:if(e.checking)return[2];s.label=1;case 1:return s.trys.push([1,,3,4]),e.checking=!0,[4,n.getRoot(e).fetcher(t,r,a)];case 2:if(o=s.sent(),o.ok&&e.updateData(o.data),!o.ok)throw new Error(o.msg);return[2,o.data];case 3:return e.checking=!1,[7];case 4:return[2]}})});return{markFetching:t,markSaving:r,markBusying:o,fetchInitData:f,fetchData:h,reInitData:c,updateMessage:i,clearMessage:u,saveRemote:d,fetchSchema:m,checkRemote:y}})});
;/*!src/utils/validations.ts*/
define("943464a",function(u,F){"use strict";function t(u,t,n){void 0===n&&(n=""),F.validations[u]=t,F.validateMessages[u]=n}function n(u,t,n,e){var r=[];return Object.keys(n).forEach(function(s){if(n[s]){if("function"!=typeof F.validations[s])throw new Error("Validation `"+s+"` not exists!");var d=F.validations[s];d.apply(void 0,[t,u].concat(n[s]))||r.push(a.filter(e&&e[s]||F.validateMessages[s],i.__assign({},[""].concat(n[s]))))}}),r}function e(u){return"string"==typeof u?u?o(u).reduce(function(u,F){var t=F.indexOf(":"),n=F,e=[];return~t&&(n=F.substring(0,t),e=F.substring(t+1).split(",").map(function(u){try{return JSON.parse(u)}catch(F){return u}})),u[n]=e.length?e:!0,u},{}):{}:u||{}}Object.defineProperty(F,"__esModule",{value:!0});var i=u("node_modules/tslib/tslib"),a=u("6a2dbb7"),r=function(u){return null!==u&&void 0!==u},s=function(u){return""===u},d=function(u){return u instanceof RegExp?u:/\/(.+)\/([gimuy]*)/.test(u)?new RegExp(RegExp.$1,RegExp.$2||""):"string"==typeof u?new RegExp(u):/^$/};F.validations={isRequired:function(u,F){return void 0!==F&&""!==F&&null!==F},isExisty:function(u,F){return r(F)},matchRegexp:function(u,F,t){return!r(F)||s(F)||d(t).test(F)},isUndefined:function(u,F){return void 0===F},isEmptyString:function(u,F){return s(F)},isEmail:function(u,t){return F.validations.matchRegexp(u,t,/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i)},isUrl:function(u,t){return F.validations.matchRegexp(u,t,/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i)},isTrue:function(u,F){return F===!0},isFalse:function(u,F){return F===!1},isNumeric:function(u,t){return"number"==typeof t?!0:F.validations.matchRegexp(u,t,/^[-+]?(?:\d*[.])?\d+$/)},isAlpha:function(u,t){return F.validations.matchRegexp(u,t,/^[A-Z]+$/i)},isAlphanumeric:function(u,t){return F.validations.matchRegexp(u,t,/^[0-9A-Z]+$/i)},isInt:function(u,t){return F.validations.matchRegexp(u,t,/^(?:[-+]?(?:0|[1-9]\d*))$/)},isFloat:function(u,t){return F.validations.matchRegexp(u,t,/^(?:[-+]?(?:\d+))?(?:\.\d*)?(?:[eE][\+\-]?(?:\d+))?$/)},isWords:function(u,t){return F.validations.matchRegexp(u,t,/^[A-Z\s]+$/i)},isSpecialWords:function(u,t){return F.validations.matchRegexp(u,t,/^[A-Z\s\u00C0-\u017F]+$/i)},isLength:function(u,F,t){return!r(F)||s(F)||F.length===t},equals:function(u,F,t){return!r(F)||s(F)||F==t},equalsField:function(u,F,t){return F==u[t]},maxLength:function(u,F,t){return!r(F)||F.length<=t},minLength:function(u,F,t){return!r(F)||s(F)||F.length>=t},isUrlPath:function(u,F){return!r(F)||s(F)||/^[a-z0-9_\\-]+$/i.test(F)},maximum:function(u,F,t){return!r(F)||s(F)||(parseFloat(F)||0)<=(parseFloat(t)||0)},minimum:function(u,F,t){return!r(F)||s(F)||(parseFloat(F)||0)>=(parseFloat(t)||0)},isJson:function(u,F){if(r(F)&&!s(F))try{JSON.parse(F)}catch(t){return!1}return!0},notEmptyString:function(u,F){return!r(F)||!(String(F)&&""===String(F).trim())},matchRegexp1:function(u,t,n){return F.validations.matchRegexp(u,t,n)},matchRegexp2:function(u,t,n){return F.validations.matchRegexp(u,t,n)},matchRegexp3:function(u,t,n){return F.validations.matchRegexp(u,t,n)},matchRegexp4:function(u,t,n){return F.validations.matchRegexp(u,t,n)},matchRegexp5:function(u,t,n){return F.validations.matchRegexp(u,t,n)},matchRegexp6:function(u,t,n){return F.validations.matchRegexp(u,t,n)},matchRegexp7:function(u,t,n){return F.validations.matchRegexp(u,t,n)},matchRegexp8:function(u,t,n){return F.validations.matchRegexp(u,t,n)},matchRegexp9:function(u,t,n){return F.validations.matchRegexp(u,t,n)}},F.addRule=t,F.validateMessages={isEmail:"Email 格式不正确",isRequired:"这是必填项",isUrl:"Url 格式不正确",isInt:"请输入整形数字",isAlpha:"请输入字母",isNumeric:"请输入数字",isAlphanumeric:"请输入字母或者数字",isFloat:"请输入浮点型数值",isWords:"请输入字母",isUrlPath:"只能输入字母、数字、`-` 和 `_`.",matchRegexp:"格式不正确, 请输入符合规则为 `$1` 的内容。",minLength:"请输入更多的内容,至少输入 $1 个字符。",maxLength:"请控制内容长度, 请不要输入 $1 个字符以上",maximum:"当前输入值超出最大值 $1请检查",minimum:"当前输入值低于最小值 $1请检查",isJson:"请检查 Json 格式。",isLength:"请输入长度为 $1 的内容",notEmptyString:"请不要全输入空白字符",equalsField:"输入的数据与 $1 值不一致",equals:"输入的数据与 $1 不一致"},F.validate=n;var o=function(u){var F=0,t={};return u.replace(/matchRegexp\d*:\/.*?\/[igm]*/g,function(u){return t["__"+F]=u,"__"+F++}).split(/,(?![^{\[]*[}\]])/g).map(function(u){return/^__\d+$/.test(u)?t[u]:u.trim()})};F.str2rules=e});
;/*!src/store/formItem.ts*/
define("4ad5d54",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),i=e("943464a"),a=e("3fbfd93"),o=e("6a2dbb7"),l=e("node_modules/lodash/findIndex"),u=e("9a80175"),s=e("9a80175"),d=e("d57879c"),f=r.types.model("ErrorDetail",{msg:"",tag:""});t.FormItemStore=r.types.model("FormItemStore",{identifier:r.types.identifier,type:"",unique:!1,loading:!1,required:!1,rules:r.types.optional(r.types.frozen(),{}),messages:r.types.optional(r.types.frozen(),{}),errorData:r.types.optional(r.types.array(f),[]),name:r.types.string,id:"",unsetValueOnInvisible:!1,validated:!1,validating:!1,multiple:!1,delimiter:",",valueField:"value",labelField:"label",joinValues:!0,extractValue:!1,options:r.types.optional(r.types.array(r.types.frozen()),[]),selectedOptions:r.types.optional(r.types.frozen(),[]),filteredOptions:r.types.optional(r.types.frozen(),[])}).views(function(e){function t(){return r.getParent(e,2)}function n(){return t().getValueByName(e.name)}function i(){return e.selectedOptions.length?e.selectedOptions[e.selectedOptions.length-1].value:""}function a(){return e.errorData.map(function(e){return e.msg})}return{get form(){return t()},get value(){return n()},get prinstine(){return r.getParent(e,2).getPristineValueByName(e.name)},get errors(){return a()},get valid(){var e=a();return!(e&&e.length)},get lastSelectValue(){return i()},getSelectedOptions:function(t){if(void 0===t&&(t=n()),t===n())return e.selectedOptions;if("undefined"==typeof t)return[];var r=Array.isArray(t)?t.map(function(t){return t&&t.hasOwnProperty(e.valueField||"value")?t[e.valueField||"value"]:t}):"string"==typeof t?t.split(e.delimiter||","):[t&&t.hasOwnProperty(e.valueField||"value")?t[e.valueField||"value"]:t],i=[];return e.filteredOptions.forEach(function(t){var n=l(r,function(n){return u.isObject(n)?n===t[e.valueField||"value"]:String(t[e.valueField||"value"])===String(n)});~n&&(r.splice(n,1),i.push(t))}),r.forEach(function(n,r){var a=t&&t[r]||n;!a||"string"!=typeof a&&"number"!=typeof a||(o={},o[e.valueField||"value"]=n,o[e.labelField||"label"]=n,a=o),a&&i.push(a);var o}),i}}}).actions(function(e){function t(t){var r=t.required,a=t.unique,o=t.value,l=t.rules,s=t.messages,d=t.delimiter,f=t.multiple,p=t.valueField,c=t.labelField,v=t.joinValues,y=t.extractValue,m=t.type,g=t.id,b=e.form;"string"==typeof l&&(l=i.str2rules(l)),"undefined"!=typeof m&&(e.type=m),"undefined"!=typeof g&&(e.id=g),"undefined"!=typeof s&&(e.messages=s),"undefined"!=typeof r&&(e.required=!!r),"undefined"!=typeof a&&(e.unique=!!a),"undefined"!=typeof f&&(e.multiple=!!f),"undefined"!=typeof v&&(e.joinValues=!!v),"undefined"!=typeof y&&(e.extractValue=!!y),"undefined"!=typeof d&&(e.delimiter=d||","),"undefined"!=typeof p&&(e.valueField=p||"value"),"undefined"!=typeof c&&(e.labelField=c||"label"),e.required&&(l=l||{},l=n.__assign({},l,{isRequired:!0})),l&&(e.rules=l),"undefined"==typeof o||u.hasOwnProperty(b.data,e.name)||b.setValueByName(e.name,o,!0)}function f(t,n){void 0===n&&(n=!1),"undefined"==typeof t||"__undefined"===t?e.form.deleteValueByName(e.name):e.form.setValueByName(e.name,t,n)}function p(e,t){void 0===t&&(t="bultin"),v(),c(e,t)}function c(t,n){void 0===n&&(n="bultin");var r=Array.isArray(t)?t:[t];r.forEach(function(t){return e.errorData.push({msg:t,tag:n})})}function v(t){if(t){var n=e.errorData.filter(function(e){return e.tag!==t});e.errorData.replace(n)}else e.errorData.clear()}function y(t){Array.isArray(t)&&(t=t.filter(function(e){return e}),t.length?e.options.replace(t):e.options.clear(),m())}function m(){if(!e.options.length&&"undefined"==typeof e.value)return e.selectedOptions=[],void(e.filteredOptions=[]);var t=e.form,r=e.value,i=Array.isArray(r)?r.map(function(t){return t&&t.hasOwnProperty(e.valueField||"value")?t[e.valueField||"value"]:t}):"string"==typeof r?r.split(e.delimiter||","):[r&&r.hasOwnProperty(e.valueField||"value")?r[e.valueField||"value"]:r],d=e.options.filter(function(e){return e.visibleOn?o.evalExpression(e.visibleOn,t.data)!==!1:e.hiddenOn?o.evalExpression(e.hiddenOn,t.data)!==!0:e.visible!==!1||e.hidden!==!0}).map(function(r,i){var a=o.evalExpression(r.disabledOn,t.data),l=r.disabledOn?e.filteredOptions.length>i&&e.filteredOptions[i].disabled===a?e.filteredOptions[i]:n.__assign({},r,{disabled:a}):r;return l}),f=s.flattenTree(d),p=[];i.forEach(function(t,n){var i=l(f,function(n){return u.isObject(t)?t===n[e.valueField||"value"]:String(n[e.valueField||"value"])===String(t)});if(~i)p.push(f[i]);else{var a=r&&r[n]||t;!a||"string"!=typeof a&&"number"!=typeof a||(o={},o[e.valueField||"value"]=t,o[e.labelField||"label"]=t,o.__unmatched=!0,a=o),a&&p.push(a)}var o});var c=t.parentStore;if(c&&c.storeType===a.ComboStore.name){var v=c,y=v.uniques.get(e.name),m=[];y&&y.items.forEach(function(t){e!==t&&m.push.apply(m,t.selectedOptions.map(function(e){return e&&e.value}))}),d.length&&(d=d.filter(function(e){return!~m.indexOf(e.value)}))}u.isArrayChilrenModified(e.selectedOptions,p)&&(e.selectedOptions=p),u.isArrayChilrenModified(e.filteredOptions,d)&&(e.filteredOptions=d)}function g(t){e.loading=t}function b(){e.validated=!1,v()}var O=r.flow(function(t){var r,a;return n.__generator(this,function(n){switch(n.label){case 0:return e.validating?[2,e.valid]:(e.validating=!0,v(),t?[4,t()]:[3,2]);case 1:n.sent(),n.label=2;case 2:return c(i.validate(e.value,e.form.data,e.rules,e.messages)),e.validated=!0,e.unique&&e.form.parentStore&&"ComboStore"===e.form.parentStore.storeType&&(r=e.form.parentStore,a=r.uniques.get(e.name),a.items.some(function(t){return t!==e&&e.value&&t.value===e.value})&&c("当前值不唯一")),e.validating=!1,[2,e.valid]}})}),h=null,F=r.flow(function(t,i,a,o,l){var u,s,f,c;return n.__generator(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),h&&(h(),h=null,e.loading=!1),e.loading=!0,[4,r.getRoot(e).fetcher(t,i,n.__assign({autoAppend:!1,cancelExecutor:function(e){return h=e}},a))];case 1:return u=m.sent(),h=null,u.ok?(v(),s=u.data.options||u.data.items||u.data.rows||u.data||[],s=d.normalizeOptions(s),y(s),u.data&&"undefined"!=typeof u.data.value?l&&l(u.data.value):o&&e.selectedOptions.some(function(e){return e.__unmatched})&&l&&l("")):(p("加载选项失败,原因:"+(u.msg||a&&a.errorMessage)),r.getRoot(e).notify("error",e.errors.join(""))),e.loading=!1,[2,u];case 2:return f=m.sent(),c=r.getRoot(e),"RendererStore"!==c.storeType?[2]:(e.loading=!1,c.isCancel(f)?[2]:(console.error(f.stack),r.getRoot(e)&&r.getRoot(e).notify("error",f.message),[3,3]));case 3:return[2]}})});return{config:t,changeValue:f,validate:O,setError:p,addError:c,clearError:v,setOptions:y,loadOptions:F,syncOptions:m,setLoading:g,reset:b}})});
;/*!src/store/form.ts*/
define("956950c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),n=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),a=e("57d76d7"),i=e("4ad5d54");t.IFormItemStore=i.IFormItemStore;var s=e("9a80175"),o=e("node_modules/lodash/isEqual"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ServerError",t}return r.__extends(t,e),t}(Error);t.FormStore=a.ServiceStore.named("FormStore").props({inited:!1,validated:!1,submited:!1,submiting:!1,validating:!1,items:n.types.optional(n.types.array(n.types.late(function(){return i.FormItemStore})),[]),canAccessSuperData:!0}).views(function(e){return{get loading(){return e.saving||e.fetching},get errors(){var t={};return e.items.forEach(function(e){e.valid||(t[e.name]=Array.isArray(t[e.name])?t[e.name].concat(e.errors):e.errors.concat())}),t},getValueByName:function(t){return s.getVariable(e.data,t,e.canAccessSuperData)},getPristineValueByName:function(t){return s.getVariable(e.pristine,t)},getItemById:function(t){return e.items.find(function(e){return e.id===t})},getItemByName:function(t){return e.items.find(function(e){return e.name===t})},getItemsByName:function(t){return e.items.filter(function(e){return e.name===t})},get valid(){return e.items.every(function(e){return e.valid})},get isPristine(){return o(e.pristine,e.data)}}}).actions(function(e){function t(t,r){e.updateData(t,r),o()}function a(t,n,a){void 0===a&&(a=!1);var i=s.getVariable(e.data,t,!1);if(n!==i){var c=e.data,u=s.cloneObject(e.data);if(c.__prev){var l=s.cloneObject(c.__prev);s.setVariable(l,t,i),Object.defineProperty(u,"__prev",{value:l,enumerable:!1,configurable:!1,writable:!1})}else Object.defineProperty(u,"__prev",{value:r.__assign({},c),enumerable:!1,configurable:!1,writable:!1});if(s.setVariable(u,t,n),e.data=u,a){var f=s.cloneObject(e.pristine);s.setVariable(f,t,n),e.pristine=f}o()}}function i(t){var n=e.data,a=s.cloneObject(e.data);if(n.__prev){var i=s.cloneObject(n.__prev);s.setVariable(i,t,s.getVariable(n,t)),Object.defineProperty(a,"__prev",{value:i,enumerable:!1,configurable:!1,writable:!1})}else Object.defineProperty(a,"__prev",{value:r.__assign({},n),enumerable:!1,configurable:!1,writable:!1});s.deleteVariable(a,t),e.data=a}function o(){e.items.forEach(function(e){return e.syncOptions()})}function u(t){e.data=e.pristine,e.validated=!1,e.items.forEach(function(e){return e.reset()}),t&&t(e.data)}function l(t,r){var n;return e.items.push({identifier:s.guid(),name:t}),n=e.items[e.items.length-1],a(n.name,n.value),r&&n.config(r),n}function f(e){n.detach(e)}function d(){if(e.parentStore&&"ComboStore"===e.parentStore.storeType){var t=e.parentStore;e.items.forEach(function(e){e.unique&&t.unBindUniuqueItem(e)}),t.removeForm(e),t.forms.forEach(function(e){return e.items.forEach(function(e){return e.unique&&e.syncOptions()})})}e.items.forEach(function(e){return n.detach(e)})}function m(t){void 0===t&&(t=!0),e.canAccessSuperData=t}function b(t){e.inited=t}var g=n.flow(function(a,i,s){void 0===s&&(s={});var o,u,l,o,f;return r.__generator(this,function(d){switch(d.label){case 0:return d.trys.push([0,9,,10]),s=r.__assign({method:"post"},s),s&&s.beforeSend?(o=s.beforeSend(i),o&&o.then?[4,o]:[3,2]):[3,3];case 1:o=d.sent(),d.label=2;case 2:if(o===!1)return[2];d.label=3;case 3:return e.markSaving(!0),[4,n.getRoot(e).fetcher(a,i,s)];case 4:if(u=d.sent(),u.ok)return[3,5];throw 422===u.status&&u.errors?(l=u.errors,Object.keys(l).forEach(function(t){var r=e.getItemById(t);r?r.setError(l[t]):e.getItemsByName(t).forEach(function(e){return e.setError(l[t])})}),e.updateMessage(u.msg||s&&s.errorMessage||"验证错误",!0)):e.updateMessage(u.msg||s&&s.errorMessage,!0),new c(e.msg);case 5:return t(u.data,{__saved:Date.now()}),e.updatedAt=Date.now(),s&&s.onSuccess?(o=s.onSuccess(u),o&&o.then?[4,o]:[3,7]):[3,7];case 6:d.sent(),d.label=7;case 7:return e.markSaving(!1),e.updateMessage(u.msg||s&&s.successMessage),n.getRoot(e).notify("success",e.msg),[2,u.data];case 8:return[3,10];case 9:if(f=d.sent(),"RendererStore"!==n.getRoot(e).storeType)return[2];throw e.markSaving(!1),n.getRoot(e).notify("error",f.message),f;case 10:return[2]}})}),v=n.flow(function(t,a){var i,o;return r.__generator(this,function(r){switch(r.label){case 0:e.submited=!0,e.submiting=!0,r.label=1;case 1:return r.trys.push([1,,5,6]),[4,p(a)];case 2:if(i=r.sent(),!i)throw n.getRoot(e).notify("error","表单验证失败,请仔细检查"),new Error("验证失败");return t?(o=s.difference(e.data,e.pristine),[4,t(s.createObject(s.createObject(e.data.__super,{diff:o,__diff:o}),e.data))]):[3,4];case 3:r.sent(),r.label=4;case 4:return[3,6];case 5:return e.submiting=!1,[7];case 6:return[2,e.data]}})}),p=n.flow(function(t,n){var a,i,s,o,i,s;return r.__generator(this,function(r){switch(r.label){case 0:e.validating=!0,e.validated=!0,a=e.items.concat(),i=0,s=a.length,r.label=1;case 1:return s>i?(o=a[i],o.validated&&!n?[3,3]:[4,o.validate()]):[3,4];case 2:r.sent(),r.label=3;case 3:return i++,[3,1];case 4:if(!t||!t.length)return[3,8];i=0,s=t.length,r.label=5;case 5:return s>i?[4,t[i]()]:[3,8];case 6:r.sent(),r.label=7;case 7:return i++,[3,5];case 8:return e.validating=!1,[2,e.valid]}})}),_=n.flow(function(t){var n,a,i,s,o,c,u;return r.__generator(this,function(r){switch(r.label){case 0:e.validating=!0,n=e.items.concat(),a=[],i=0,s=n.length,r.label=1;case 1:return s>i?(o=n[i],~t.indexOf(o.name)?(u=(c=a).push,[4,o.validate()]):[3,3]):[3,4];case 2:u.apply(c,[r.sent()]),r.label=3;case 3:return i++,[3,1];case 4:return e.validating=!1,[2,a.every(function(e){return e})]}})});return{setInited:b,setValues:t,setValueByName:a,submit:v,validate:p,validateFields:_,saveRemote:g,reset:u,registryItem:l,unRegistryItem:f,beforeDetach:d,syncOptions:o,setCanAccessSuperData:m,deleteValueByName:i}})});
;/*!src/store/combo.ts*/
define("3fbfd93",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),i=e("7820b08"),u=e("4ad5d54"),r=e("956950c");n.UniqueGroup=t.types.model("UniqueGroup",{name:t.types.identifier,items:t.types.array(t.types.reference(t.types.late(function(){return u.FormItemStore})))}),n.ComboStore=i.iRendererStore.named("ComboStore").props({uniques:t.types.map(n.UniqueGroup),forms:t.types.array(t.types.reference(t.types.late(function(){return r.FormStore}))),minLength:0,maxLength:0,length:0}).views(function(e){return{get addable(){if(e.maxLength&&e.length>=e.maxLength)return!1;if(e.uniques.size){var n=!1;if(e.uniques.forEach(function(e){if(!n&&e.items.length){var t=e.items[0].options.length,i=e.items.reduce(function(e,n){return e+n.selectedOptions.length},0);n=t&&i>=t?!0:!1}}),n)return!1}return!0},get removable(){return e.minLength&&e.minLength>=e.length?!1:!0}}}).actions(function(e){function n(n){"undefined"!=typeof n.minLength&&(e.minLength=n.minLength),"undefined"!=typeof n.maxLength&&(e.maxLength=n.maxLength),"undefined"!=typeof n.length&&(e.length=n.length)}function t(n){e.uniques.has(n.name)||e.uniques.put({name:n.name});var t=e.uniques.get(n.name);t.items.push(n)}function i(n){var t=e.uniques.get(n.name);t.items.remove(n),t.items.length||e.uniques.delete(n.name)}function u(n){e.forms.push(n)}function r(n){e.forms.remove(n)}return{config:n,bindUniuqueItem:t,unBindUniuqueItem:i,addForm:u,removeForm:r}})});
;/*!src/store/crud.ts*/
define("7b0821e",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),s=e("57d76d7"),n=e("9a80175"),o=e("node_modules/qs/lib/index"),i=e("node_modules/lodash/pick"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="ServerError",t}return r.__extends(t,e),t}(Error);t.CRUDStore=s.ServiceStore.named("CRUDStore").props({pristineQuery:a.types.optional(a.types.frozen(),{}),query:a.types.optional(a.types.frozen(),{}),prevPage:1,page:1,perPage:10,total:0,loadDataOnce:!1,mode:"normal",hasNext:!1,selectedAction:a.types.frozen(),items:a.types.optional(a.types.array(a.types.frozen()),[]),selectedItems:a.types.optional(a.types.array(a.types.frozen()),[]),unSelectedItems:a.types.optional(a.types.array(a.types.frozen()),[]),filterTogggable:!1,filterVisible:!0,hasInnerModalOpen:!1}).views(function(e){return{get lastPage(){return Math.max(Math.ceil(e.total/(e.perPage<1?10:e.perPage)),1)},get filterData(){return n.createObject(e.data,r.__assign({},e.query))},get mergedData(){return n.extendObject(e.data,r.__assign({},e.query,e.data,{selectedItems:e.selectedItems,unSelectedItems:e.unSelectedItems}))},get hasModalOpened(){return e.dialogOpen||e.drawerOpen||e.hasInnerModalOpen},get selectedItemsAsArray(){return e.selectedItems.concat()}}}).actions(function(e){function t(){e.pristineQuery=e.query}function s(t,a,s,i,c){void 0===s&&(s="page"),void 0===i&&(i="perPage"),void 0===c&&(c=!1);var u=e.query;e.query=c?r.__assign({},t):r.__assign({},e.query,t),e.query[s||"page"]&&(e.page=parseInt(e.query[s||"page"],10)),e.query[i||"perPage"]&&(e.perPage=parseInt(e.query[i||"perPage"],10)),a&&n.isObjectShallowModified(u,e.query,!1)&&setTimeout(function(){return a("?"+o.stringify(e.query))},4)}function u(t,r){e.page=t,r&&(e.perPage=r)}function g(t){e.selectedAction=t}var l=null,d=a.flow(function(t,o,c){var u,g,d,p,y,f,u,m,_,h,b,v,O,P,q,g,I,w,D;return r.__generator(this,function(M){switch(M.label){case 0:return M.trys.push([0,2,,3]),c&&c.forceReload===!1&&e.loadDataOnce&&e.total?(u=e.items.concat(),e.query.orderBy&&(g=/desc/i.test(e.query.orderDir)?-1:1,u=n.sortArray(u,e.query.orderBy,g)),d=r.__assign({},e.data,{items:u.slice((e.page-1)*e.perPage,e.page*e.perPage)}),e.reInitData(d),[2]):(l&&(l(),l=null,e.fetching=!1),c&&c.silent||e.markFetching(!0),p=n.createObject(e.data,r.__assign({},e.query,(D={},D[c&&c.pageField||"page"]=e.page,D[c&&c.perPageField||"perPage"]=e.perPage,D),o)),e.loadDataOnce&&delete p[c&&c.perPageField||"perPage"],[4,a.getRoot(e).fetcher(t,p,r.__assign({},c,{cancelExecutor:function(e){return l=e}}))]);case 1:if(y=M.sent(),l=null,y.ok){if(!y.data)throw new Error("返回数据格式不正确payload.data 没有数据");if(e.updatedAt=Date.now(),f=y.data,Array.isArray(f)&&(f={items:f}),u=f.items,m=f.rows,_=f.total,h=f.count,b=f.page,v=f.hasNext,O=r.__rest(f,["items","rows","total","count","page","hasNext"]),!Array.isArray(u)&&!Array.isArray(m))throw new Error("返回数据格式不正确payload.data.items 必须是数组");P=[],P=c&&c.loadDataMode&&Array.isArray(e.data.items)?e.data.items.concat(u||m):u||m,Array.isArray(P)&&(P=P.map(function(e){return"string"==typeof e?{text:e}:e})),q=r.__assign({},e.pristine,{items:P,count:h,total:_},O),e.loadDataOnce&&(e.query.orderBy&&(g=/desc/i.test(e.query.orderDir)?-1:1,P=n.sortArray(P,e.query.orderBy,g)),q.items=P.slice((e.page-1)*e.perPage,e.page*e.perPage),q.count=q.total=P.length),e.items.replace(P),e.reInitData(q),c&&c.syncResponse2Query!==!1&&s(i(O,Object.keys(e.query)),void 0,c&&c.pageField||"page",c&&c.perPageField||"perPage"),e.total=parseInt(q.total||q.count,10)||0,"undefined"!=typeof b&&(e.page=parseInt(b,10)),"undefined"!=typeof v&&(e.mode="simple",e.total=0,e.hasNext=!!v),e.updateMessage(y.msg||c&&c.successMessage),c&&c.successMessage&&a.getRoot(e).notify("success",e.msg)}else e.updateMessage(y.msg||c&&c.errorMessage||"获取失败",!0),a.getRoot(e).notify("error",y.msg);return e.markFetching(!1),[2,y];case 2:return I=M.sent(),w=a.getRoot(e),"RendererStore"!==w.storeType?[2]:(e.markFetching(!1),w.isCancel(I)?[2]:(console.error(I.stack),w.notify("error",I.message),[3,3]));case 3:return[2]}})}),p=a.flow(function(t,s,n){void 0===n&&(n={});var o,i;return r.__generator(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),n=r.__assign({method:"post"},n),e.markSaving(!0),[4,a.getRoot(e).fetcher(t,s,n)];case 1:if(o=u.sent(),e.markSaving(!1),!o.ok)throw e.updateMessage(o.msg||n&&n.errorMessage||"保存失败",!0),a.getRoot(e).notify("error",e.msg),new c(e.msg);return e.updateData(o.data,{__saved:Date.now()}),e.updatedAt=Date.now(),e.updateMessage(o.msg||n&&n.successMessage||"保存成功"),a.getRoot(e).notify("success",e.msg),[2,o.data];case 2:throw i=u.sent(),e.markSaving(!1),"ServerError"!==i.type&&a.getRoot(e)&&a.getRoot(e).notify("error",i.message),i;case 3:return[2]}})}),y=function(t,r){e.filterTogggable=t,void 0!==r&&(e.filterVisible=r)},f=function(t){e.filterVisible=t},m=function(t){e.selectedItems.replace(t)},_=function(t){e.unSelectedItems.replace(t)},h=function(t){e.hasInnerModalOpen=t},b=function(t){e.loadDataOnce=t};return{setPristineQuery:t,updateQuery:s,fetchInitData:d,changePage:u,selectAction:g,saveRemote:p,setFilterTogglable:y,setFilterVisible:f,setSelectedItems:m,setUnSelectedItems:_,setInnerModalOpened:h,setLoadDataOnce:b}})});
;/*!src/store/table.ts*/
define("4fbfbc8",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),o=e("7820b08"),i=e("f2e345e"),a=e("node_modules/lodash/isEqual"),l=e("node_modules/lodash/find"),c=e("9a80175"),s=e("6a2dbb7");t.Column=r.types.model("Column",{label:r.types.optional(r.types.frozen(),void 0),type:r.types.string,name:r.types.maybe(r.types.string),toggled:!1,toggable:!0,searchable:r.types.maybe(r.types.frozen()),sortable:!1,filterable:r.types.optional(r.types.frozen(),void 0),fixed:"",index:0,breakpoint:r.types.optional(r.types.frozen(),void 0),pristine:r.types.optional(r.types.frozen(),void 0),remark:r.types.optional(r.types.frozen(),void 0),className:""}).actions(function(e){return{toggleToggle:function(){e.toggled=!e.toggled;var t=r.getParent(e,2);t.activeToggaleColumns.length||(e.toggled=!0),t.persistSaveToggledColumns()},setToggled:function(t){e.toggled=t}}}),t.Row=r.types.model("Row",{id:r.types.identifier,key:r.types.string,expandable:!1,pristine:r.types.frozen({}),data:r.types.frozen({}),rowSpans:r.types.frozen({}),index:r.types.number,newIndex:r.types.number,isHover:!1,children:r.types.optional(r.types.array(r.types.late(function(){return t.Row})),[]),depth:r.types.number}).views(function(e){return{get checked(){return r.getParent(e,2*e.depth).isSelected(e)},get modified(){return e.data?Object.keys(e.data).some(function(t){return!a(e.data[t],e.pristine[t])}):!1},get expanded(){return r.getParent(e,2*e.depth).isExpanded(e)},get moved(){return e.index!==e.newIndex},get locals(){return c.createObject(c.createObject(r.getParent(e,2*e.depth).data,{index:e.index}),e.data)},get checkable(){var t=r.getParent(e,2*e.depth);return t&&t.itemCheckableOn?s.evalExpression(t.itemCheckableOn,e.locals):!0},get draggable(){var t=r.getParent(e,2*e.depth);return t&&t.itemDraggableOn?s.evalExpression(t.itemDraggableOn,e.locals):!0}}}).actions(function(e){return{toggle:function(){r.getParent(e,2*e.depth).toggle(e)},toggleExpanded:function(){r.getParent(e,2*e.depth).toggleExpanded(e)},change:function(t,r){e.data=n.__assign({},e.data,t),r&&(e.pristine=n.__assign({},e.data))},reset:function(){e.newIndex=e.index,e.data=e.pristine},setIsHover:function(t){e.isHover=t}}}),t.TableStore=o.iRendererStore.named("TableStore").props({columns:r.types.array(t.Column),rows:r.types.array(t.Row),selectedRows:r.types.array(r.types.reference(t.Row)),expandedRows:r.types.array(r.types.reference(t.Row)),primaryField:"id",orderBy:"",orderDir:r.types.optional(r.types.union(r.types.literal("asc"),r.types.literal("desc")),"asc"),draggable:!1,dragging:!1,selectable:!1,multiple:!0,footable:r.types.frozen(),isNested:!1,columnsTogglable:r.types.optional(r.types.union(r.types.boolean,r.types.literal("auto")),"auto"),itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1,combineNum:0}).views(function(e){function t(){return e.columns.filter(function(t){return c.isVisible(t.pristine,e.data)&&("__checkme"===t.type?e.selectable&&!e.dragging&&!e.hideCheckToggler&&e.rows.length:"__dragme"===t.type?e.dragging:"__expandme"===t.type?(n().length||e.isNested)&&!e.dragging:!(!t.toggled&&t.toggable||e.footable&&t.breakpoint&&c.isBreakpoint(t.breakpoint)))})}function n(){return e.columns.filter(function(t){return"__checkme"===t.type||"__dragme"===t.type||"__expandme"===t.type?!1:(t.toggled||!t.toggable)&&e.footable&&t.breakpoint&&c.isBreakpoint(t.breakpoint)})}function r(){return e.dragging?[]:t().filter(function(e){return"left"===e.fixed})}function o(){return e.dragging?[]:t().filter(function(e){return"right"===e.fixed})}function i(t){return!!~e.selectedRows.indexOf(t)}function a(t){return!!~e.expandedRows.indexOf(t)}function l(){return"auto"===e.columnsTogglable?e.columns.filter(function(e){return!/^__/.test(e.type)}).length>5:e.columnsTogglable}function s(){return e.columns.filter(function(t){return c.isVisible(t.pristine,e.data)&&t.toggable!==!1})}function u(){return s().filter(function(e){return e.toggled})}function d(){return e.rows.filter(function(e){return e.modified})}function g(){return d().length}function p(){return e.rows.filter(function(e){return e.moved})}function f(){return p().length}function b(){return e.rows.findIndex(function(e){return e.isHover})}function m(){return e.rows.filter(function(e){return!e.checked})}function h(t){return c.createObject(t,{items:e.rows.map(function(e){return e.data}),selectedItems:e.selectedRows.map(function(e){return e.data}),unSeelctedItems:m().map(function(e){return e.data})})}return{get filteredColumns(){return t()},get footableColumns(){return n()},get leftFixedColumns(){return r()},get rightFixedColumns(){return o()},get toggableColumns(){return s()},get activeToggaleColumns(){return u()},get someChecked(){return!!e.selectedRows.length},get allChecked(){return!(e.selectedRows.length!==e.checkableRows.length||!e.checkableRows.length)},isSelected:i,get allExpanded(){return!(e.expandedRows.length!==e.rows.length||!e.rows.length)},isExpanded:a,get toggable(){return l()},get modified(){return g()},get modifiedRows(){return d()},get unSelectedRows(){return m()},get checkableRows(){return e.rows.filter(function(e){return e.checkable})},get moved(){return f()},get movedRows(){return p()},get hoverIndex(){return b()},getData:h}}).actions(function(e){function t(t){if(void 0!==t.primaryField&&(e.primaryField=t.primaryField),void 0!==t.selectable&&(e.selectable=t.selectable),void 0!==t.columnsTogglable&&(e.columnsTogglable=t.columnsTogglable),void 0!==t.draggable&&(e.draggable=t.draggable),"string"==typeof t.orderBy&&m(t.orderBy,"desc"===t.orderDir?"desc":"asc"),void 0!==t.multiple&&(e.multiple=t.multiple),void 0!==t.footable&&(e.footable=t.footable),void 0!==t.itemCheckableOn&&(e.itemCheckableOn=t.itemCheckableOn),void 0!==t.itemDraggableOn&&(e.itemDraggableOn=t.itemDraggableOn),void 0!==t.hideCheckToggler&&(e.hideCheckToggler=!!t.hideCheckToggler),void 0!==t.combineNum&&(e.combineNum=parseInt(t.combineNum,10)||0),t.columns&&Array.isArray(t.columns)){var r=t.columns.concat();r.unshift({type:"__expandme",toggable:!1,fixed:"left",className:"Table-expandCell"}),r.unshift({type:"__checkme",toggable:!1,fixed:"left",className:"Table-checkCell"}),r.unshift({type:"__dragme",toggable:!1,className:"Table-dragCell"}),r=r.map(function(e,t){return n.__assign({},e,{index:t,type:e.type||"plain",pristine:e,toggled:e.toggled!==!1,breakpoint:e.breakpoint})}),e.columns.replace(r)}}function r(e,t){if(!t.length||!e.length)return e;var n=t.shift(),o=0,a=e[o];a.rowSpans[n]=1;for(var l=i.resolveVariable(n,a.data),c=1,s=e.length;s>c;c++){var u=e[c];i.resolveVariable(n,u.data)==l?(a.rowSpans[n]+=1,u.rowSpans[n]=0):(a.rowSpans[n]>1&&r(e.slice(o,c),t.concat()),o=c,a=u,a.rowSpans[n]=1,l=i.resolveVariable(n,a.data))}return a.rowSpans[n]>1&&t.length&&r(e.slice(o,e.length),t.concat()),e}function o(e,t,n){if(!t.length||!n||!e.length)return e;for(var o=[],i=0;n>i;i++){var a=t[i];if("__"!==a.type.substring(0,2)){var l=a.name;if(!l)break;o.push(l)}else n++}return r(e,o)}function a(t,n,r){return n+=1,t.map(function(t,o){return t=c.isObject(t)?t:{item:t},{id:String(t&&t[e.primaryField]||r+"-"+n+"-"+o),key:String(r+"-"+n+"-"+o),depth:n,index:o,newIndex:o,pristine:t,data:t,rowSpans:{},modified:!1,children:t&&Array.isArray(t.children)?a(t.children,n,o):[],expandable:!!(t&&Array.isArray(t.children)||e.footable&&e.footableColumns.length)}})}function s(t,n){e.selectedRows.clear(),e.expandedRows.clear();var r=t.map(function(t,r){return{id:n?n(t,r):String(t&&t[e.primaryField]||r+"-1-"+r),key:String(r+"-1-"+r),depth:1,index:r,newIndex:r,pristine:t,data:t,rowSpans:{},modified:!1,children:t&&Array.isArray(t.children)?a(t.children,1,r):[],expandable:!!(t&&Array.isArray(t.children)||e.footable&&e.footableColumns.length)}});e.combineNum&&(r=o(r,e.columns,e.combineNum)),e.rows.replace(r),e.isNested=e.rows.some(function(e){return e.expandable});var i=e.footable&&e.footable.expand;"first"===i?e.rows.length&&e.expandedRows.push(e.rows[0]):"all"===i&&e.expandedRows.replace(e.rows),e.dragging=!1}function u(t,n){e.selectedRows.clear(),e.rows.forEach(function(r){~t.indexOf(r.pristine)?e.selectedRows.push(r):l(t,function(e){return e[n||"value"]==r.pristine[n||"value"]})&&e.selectedRows.push(r)})}function d(){e.allChecked?e.selectedRows.clear():e.selectedRows.replace(e.checkableRows)}function g(t){if(t.checkable){var n=e.selectedRows.indexOf(t);e.multiple?~n?e.selectedRows.splice(n,1):e.selectedRows.push(t):~n?e.selectedRows.splice(n,1):e.selectedRows.replace([t])}}function p(){e.selectedRows.clear()}function f(){e.allExpanded?e.expandedRows.clear():e.expandedRows.replace(e.rows)}function b(t){var n=e.expandedRows.indexOf(t);~n?e.expandedRows.splice(n,1):e.expandedRows.push(t)}function m(t,n){e.orderBy=t,e.orderDir=n}function h(){e.rows.forEach(function(e){return e.reset()});var t=e.rows.slice().sort(function(e,t){return e.newIndex-t.newIndex});e.rows.replace(t),e.dragging=!1}function y(){e.dragging=!e.dragging}function w(){e.dragging=!1}function x(t,n){var r=e.rows[t];r.newIndex=n;var o=e.rows.slice();o.splice(t,1),o.splice(n,0,r),e.rows.replace(o)}function j(){var t=location.pathname+e.path+e.toggableColumns.map(function(e){return e.name||e.index}).join("-");localStorage.setItem(t,JSON.stringify(e.activeToggaleColumns.map(function(e){return e.index})))}return{update:t,initRows:s,updateSelected:u,toggleAll:d,toggle:g,toggleExpandAll:f,toggleExpanded:b,clear:p,setOrderByInfo:m,reset:h,toggleDragging:y,stopDragging:w,exchange:x,persistSaveToggledColumns:j,afterAttach:function(){setTimeout(function(){var t=location.pathname+e.path+e.toggableColumns.map(function(e){return e.name||e.index}).join("-"),n=localStorage.getItem(t);if(n){var r=JSON.parse(n);e.toggableColumns.forEach(function(e){return e.setToggled(!!~r.indexOf(e.index))})}},200)}}})});
;/*!src/store/list.ts*/
define("4e9b495",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),r=e("7820b08"),c=e("node_modules/lodash/isEqual"),a=e("node_modules/lodash/find"),s=e("9a80175"),l=e("6a2dbb7");t.Item=i.types.model("Item",{id:i.types.identifier,pristine:i.types.frozen(),data:i.types.frozen(),index:i.types.number,newIndex:i.types.number}).views(function(e){return{get checked(){return i.getParent(e,2).isSelected(e)},get modified(){return e.data?Object.keys(e.data).some(function(t){return!c(e.data[t],e.pristine[t])}):!1},get moved(){return e.index!==e.newIndex},get locals(){return s.createObject(s.createObject(i.getParent(e,2).data,{index:e.index}),e.data)},get checkable(){var t=i.getParent(e,2);return t&&t.itemCheckableOn?l.evalExpression(t.itemCheckableOn,e.locals):!0},get draggable(){var t=i.getParent(e,2);return t&&t.itemDraggableOn?l.evalExpression(t.itemDraggableOn,e.locals):!0}}}).actions(function(e){return{toggle:function(){i.getParent(e,2).toggle(e)},change:function(t,i){e.data=n.__assign({},e.data,t),i&&(e.pristine=n.__assign({},e.data))},reset:function(){e.newIndex=e.index,e.data=e.pristine}}}),t.ListStore=r.iRendererStore.named("ListStore").props({items:i.types.array(t.Item),selectedItems:i.types.array(i.types.reference(t.Item)),primaryField:"id",orderBy:"",orderDir:i.types.optional(i.types.union(i.types.literal("asc"),i.types.literal("desc")),"asc"),draggable:!1,dragging:!1,multiple:!0,selectable:!1,itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1}).views(function(e){function t(t){return!!~e.selectedItems.indexOf(t)}function n(){return e.items.filter(function(e){return e.modified})}function i(){return n().length}function r(){return e.items.filter(function(e){return e.moved})}function c(){return r().length}return{get allChecked(){return!(e.selectedItems.length!==e.checkableItems.length||!e.checkableItems.length)},get checkableItems(){return e.items.filter(function(e){return e.checkable})},get unSelectedItems(){return e.items.filter(function(e){return!e.checked})},isSelected:t,get modified(){return i()},get modifiedItems(){return n()},get moved(){return c()},get movedItems(){return r()}}}).actions(function(e){function t(t){void 0===t.selectable||(e.selectable=t.selectable),void 0===t.draggable||(e.draggable=t.draggable),void 0===t.multiple||(e.multiple=t.multiple),void 0===t.hideCheckToggler||(e.hideCheckToggler=t.hideCheckToggler),"undefined"!=typeof t.orderBy&&o(t.orderBy,"desc"===t.orderDir?"desc":"asc"),void 0===t.itemCheckableOn||(e.itemCheckableOn=t.itemCheckableOn),void 0===t.itemDraggableOn||(e.itemDraggableOn=t.itemDraggableOn)}function n(t){var n=t.map(function(t,n){return t=s.isObject(t)?t:{item:t},{id:String(t[e.primaryField]||n),index:n,newIndex:n,pristine:t,data:t,modified:!1}});e.selectedItems.clear(),e.items.replace(n),e.dragging=!1}function i(t,n){e.selectedItems.clear(),e.items.forEach(function(i){~t.indexOf(i.pristine)?e.selectedItems.push(i):a(t,function(e){return e[n||"value"]==i.pristine[n||"value"]})&&e.selectedItems.push(i)})}function r(){e.allChecked?e.selectedItems.clear():e.selectedItems.replace(e.checkableItems)}function c(t){if(t.checkable){var n=e.selectedItems.indexOf(t);e.multiple?~n?e.selectedItems.splice(n,1):e.selectedItems.push(t):~n?e.selectedItems.splice(n,1):e.selectedItems.replace([t])}}function l(){e.selectedItems.clear()}function o(t,n){e.orderBy=t,e.orderDir=n}function d(){e.items.forEach(function(e){return e.reset()}),e.dragging=!1}function u(){e.dragging=!e.dragging}function g(){e.dragging=!1}function m(t,n){var i=e.items[t];i.newIndex=n;var r=e.items.slice();r.splice(t,1),r.splice(n,0,i),e.items.replace(r)}return{update:t,initItems:n,updateSelected:i,toggleAll:r,toggle:c,clear:l,setOrderByInfo:o,reset:d,toggleDragging:u,stopDragging:g,exchange:m}})});
;/*!src/store/modal.ts*/
define("4550477",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("57d76d7"),r=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),n=e("9a80175");t.ModalStore=o.ServiceStore.named("ModalStore").props({form:r.types.frozen()}).views(function(e){return{get formData(){return n.createObject(e.data,e.form)}}}).actions(function(e){return{setFormData:function(t){e.form=t}}})});
;/*!src/store/index.ts*/
define("448f42f",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/mobx-state-tree/dist/mobx-state-tree");e("node_modules/setimmediate/setImmediate");var o=e("7820b08");t.iRendererStore=o.iRendererStore,t.IIRendererStore=o.IIRendererStore;var n=e("57d76d7"),i=e("3fbfd93"),s=e("956950c"),d=e("7b0821e"),c=e("4fbfbc8"),u=e("4e9b495"),a=e("4550477");r.setLivelynessChecking("ignore");var f=[n.ServiceStore,s.FormStore,i.ComboStore,d.CRUDStore,c.TableStore,u.ListStore,a.ModalStore];t.RendererStore=r.types.model("RendererStore",{storeType:"RendererStore",stores:r.types.map(r.types.union.apply(r.types,[{eager:!1,dispatcher:function(e){for(var t=0,r=f;t<r.length;t++){var n=r[t];if(n.name===e.storeType)return n}return o.iRendererStore}},o.iRendererStore].concat(f)))}).views(function(e){return{get fetcher(){return r.getEnv(e).fetcher},get notify(){return r.getEnv(e).notify},get isCancel(){return r.getEnv(e).isCancel}}}).views(function(e){return{getStoreById:function(t){return e.stores.get(t)}}}).actions(function(e){return{addStore:function(t){return e.stores.has(t.id)?e.stores.get(t.id):(e.stores.put(t),e.stores.get(t.id))},removeStore:function(e){r.detach(e)}}})});
;/*!src/utils/filter-schema.ts*/
define("01e2bb4",function(e,n){"use strict";function r(e,n,r){void 0===n&&(n={}),void 0===r&&(r=["addOn"]);var i={};return Object.getOwnPropertyNames(e).forEach(function(a){if(!r||!~r.indexOf(a)){var d=/^(.*)(On|Expr)$/.exec(a),f=e[a];f&&d&&("On"===d[2]||"Expr"===d[2])&&(a=d[1],("On"===d[2]||"Expr"===d[2])&&(f="On"===d[2]?t.evalExpression(f,n):t.filter(f,n)),i[a]=f)}}),i}Object.defineProperty(n,"__esModule",{value:!0});var t=e("6a2dbb7");n.default=r});
;/*!src/Scoped.tsx*/
define("919cbd9",function(e,t){"use strict";function n(e,t,n){var o=[];return{parent:t,registerComponent:function(n){return n.props.$path===e&&t?t.registerComponent(n):void(~o.indexOf(n)||o.push(n))},unRegisterComponent:function(n){if(n.props.$path===e&&t)return t.unRegisterComponent(n);var r=o.indexOf(n);~r&&o.splice(r,1)},getComponentByName:function(e){var n=s(o,function(t){return t.props.name===e||t.props.id===e});return n||t&&t.getComponentByName(e)},getComponents:function(){return o.concat()},reload:function(e,t){var n=this;if("window"===e)return location.reload();var o="string"==typeof e?e.split(/\s*,\s*/):e;o.forEach(function(e){var o=e.indexOf("?"),r=null;~o&&(r=c.dataMapping(p.parse(e.substring(o+1)),t),e=e.substring(0,o));var i=e.indexOf("."),s="";~i&&(s=e.substring(1+i),e=e.substring(0,i));var a=n.getComponentByName(e);a&&a.reload&&a.reload(s,r,t)})},send:function(e,t){var o=this,i="string"==typeof e?e.split(/\s*,\s*/):e;i.forEach(function(e){var i=e.indexOf("."),s="";~i&&(s=e.substring(1+i),e=e.substring(0,i));var a=o.getComponentByName(e);if(a&&a.receive)a.receive(t,s);else if("window"===e&&n&&n.updateLocation){var c=r.__assign({},location.search?p.parse(location.search.substring(1)):{},t),d=location.pathname+"?"+p.stringify(c);n.updateLocation(d)}})}}}function o(e){var o=function(o){function s(){var e=null!==o&&o.apply(this,arguments)||this;return e.scoped=n(e.props.$path,e.context,e.props.env),e}return r.__extends(s,o),s.prototype.getWrappedInstance=function(){return this.ref},s.prototype.childRef=function(e){for(;e&&e.getWrappedInstance;)e=e.getWrappedInstance();this.ref=e},s.prototype.componentWillMount=function(){var e=this.props.scopeRef;e&&e(this.scoped)},s.prototype.componentWillUnmount=function(){var e=this.props.scopeRef;e&&e(null)},s.prototype.render=function(){var n=this.props,o=(n.scopeRef,r.__rest(n,["scopeRef"]));return i.createElement(t.ScopedContext.Provider,{value:this.scoped},i.createElement(e,r.__assign({},o,{ref:this.childRef})))},s.displayName="Scoped("+(e.displayName||e.name)+")",s.contextType=t.ScopedContext,s.ComposedComponent=e,r.__decorate([d.autobind,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object]),r.__metadata("design:returntype",void 0)],s.prototype,"childRef",null),s}(i.Component);return a(o,e),o}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),i=e("node_modules/react/index"),s=e("node_modules/lodash/find"),a=e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs"),p=e("node_modules/qs/lib/index"),c=e("f2e345e"),d=e("9a80175");t.ScopedContext=i.createContext(n("")),t.HocScoped=o,t.default=o});
;/*!src/components/Alert2.tsx*/
define("15e4197",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("node_modules/tslib/tslib"),s=e("node_modules/react/index"),n=e("256b65d"),o=function(e){function t(t){var l=e.call(this,t)||this;return l.handleClick=l.handleClick.bind(l),l.state={show:!0},l}return l.__extends(t,e),t.prototype.handleClick=function(){this.setState({show:!1},this.props.onClose)},t.prototype.render=function(){var e=this.props,t=e.classnames,l=e.className,n=e.level,o=e.children,a=e.showCloseButton;return this.state.show?s.createElement("div",{className:t("Alert",n?"Alert--"+n:"",l)},a?s.createElement("button",{className:t("Alert-close"),onClick:this.handleClick,type:"button"},s.createElement("span",null,"×")):null,o):null},t.defaultProps={level:"info",className:"",showCloseButton:!1},t.propsList=["level","className","showCloseButton","onClose"],t}(s.Component);t.Alert=o,t.default=n.themeable(o)});
;/*!src/factory.tsx*/
define("0f9ebdf",function(e,t){"use strict";function r(e){T.push(e)}function n(e,t,r){return T.reduce(function(e,n){return n(e,t,r)},e)}function a(e){return function(t){var r=s(m.__assign({},e,{component:t}));return r.component}}function s(e){if(!e.test)throw new TypeError("config.test is required");if(!e.component)throw new TypeError("config.component is required");if(e.weight=e.weight||0,e.Renderer=e.component,e.name=e.name||"anonymous-"+$++,~F.indexOf(e.name))throw new Error('The renderer with name "'+e.name+'" has already exists, please try another name!');e.storeType&&e.component&&(e.component=p({storeType:e.storeType,extendsData:e.storeExtendsData})(x.observer(e.component))),e.isolateScope&&(e.component=E.default(e.component));var t=b.findIndex(A,function(t){return e.weight<t.weight});return~t?A.splice(t,0,e):A.push(e),F.push(e.name),e}function o(e){var t="string"==typeof e?b.findIndex(A,function(t){return t.name===e}):A.indexOf(e);~t&&A.splice(t,1),q={}}function i(e,t,r){return Array.isArray(t)?t.map(function(t,n){return d(e+"/"+n,t,m.__assign({},r,{key:""+(r.key?r.key+"-":"")+n}))}):d(e,t,r)}function d(e,t,r){if(Array.isArray(t))return i(e,t,r);var n=typeof t,a="string"===n||"number"===n?{type:"tpl",tpl:String(t)}:t,s=r[a.detectField||"data"],o=s?D.default(a,s):null;return o&&(o.hidden||o.visible===!1||a.hidden||a.visible===!1||r.hidden||r.visible===!1)?null:y.createElement(N,m.__assign({},r,o,{schema:a,$path:""+(e?e+"/":"")+(a&&a.type||"")}))}function p(e){return function(t){var r=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}return m.__extends(n,r),n.prototype.getWrappedInstance=function(){return this.ref},n.prototype.refFn=function(e){this.ref=e},n.prototype.formatData=function(e){return Array.isArray(e)?{items:e}:e},n.prototype.componentWillMount=function(){var t=this.context;this.renderChild=this.renderChild.bind(this),this.refFn=this.refFn.bind(this);var r=this.store=t.addStore({id:b.guid(),path:this.props.$path,storeType:e.storeType,parentId:this.props.store?this.props.store.id:""});r.initData(e.extendsData===!1?b.createObject(this.props.data?this.props.data.__super:null,m.__assign({},this.formatData(this.props.defaultData),this.formatData(this.props.data))):this.props.scope||this.props.data&&this.props.data.__super?this.props.store&&this.props.data===this.props.store.data?b.createObject(this.props.store.data,m.__assign({},this.formatData(this.props.defaultData))):b.createObject(this.props.data.__super||this.props.scope,m.__assign({},this.formatData(this.props.defaultData),this.formatData(this.props.data))):m.__assign({},this.formatData(this.props.defaultData),this.formatData(this.props.data)))},n.prototype.componentWillReceiveProps=function(t){var r=this.props,n=this.store;if(e.extendsData===!1)(r.defaultData!==t.defaultData||b.isObjectShallowModified(r.data,t.data))&&n.initData(b.extendObject(t.data,m.__assign({},n.hasRemoteData?n.data:null,this.formatData(t.defaultData),this.formatData(t.data))));else if(b.isObjectShallowModified(r.data,t.data))if(t.store&&t.store.data===t.data){var a=b.createObject(t.store.data,b.syncDataFromSuper(n.data,t.store.data,r.scope,t.dataUpdatedAt!==r.dataUpdatedAt));n.initData(a)}else n.initData(t.data.__super?b.extendObject(t.data):b.createObject(t.scope,t.data));else t.scope!==r.scope&&n.initData(b.createObject(t.scope,n.data))},n.prototype.componentWillUnmount=function(){var e=this.context,t=this.store;e.removeStore(t),delete this.store},n.prototype.renderChild=function(e,t,r){void 0===r&&(r={});var n=this.props.render;return n(e,t,m.__assign({data:this.store.data,dataUpdatedAt:this.store.updatedAt},r,{scope:this.store.data,store:this.store}))},n.prototype.render=function(){var e=this.props,r=e.detectField,n=m.__rest(e,["detectField"]),a={};return r&&"data"!==r||(a=D.default(n,this.store.data),!a.hidden&&a.visible!==!1)?y.createElement(t,m.__assign({},n,a,{ref:this.refFn,data:this.store.data,dataUpdatedAt:this.store.updatedAt,store:this.store,scope:this.store.data,render:this.renderChild})):null},n.displayName="WithStore("+(t.displayName||t.name)+")",n.ComposedComponent=t,n.contextType=k,n=m.__decorate([x.observer],n)}(y.Component);return C(r,t),r}}function c(e,r,n,a){void 0===r&&(r={}),void 0===n&&(n={}),void 0===a&&(a=""),n=m.__assign({},I,n);var s=M[n.session||"global"]||(M[n.session||"global"]=_.RendererStore.create({},m.__assign({},n,{fetcher:n.fetcher?g.wrapFetcher(n.fetcher):I.fetcher,confirm:n.confirm?b.promisify(n.confirm):I.confirm})));window.amisStore=s;var o=v.getEnv(s),i=r.theme||n.theme||"default";return o.theme=j.getTheme(i),y.createElement(t.ScopedRootRenderer,m.__assign({},r,{schema:e,pathPrefix:a,rootStore:s,env:o,theme:i}))}function h(e){Array.isArray(e)&&e.length?e.forEach(function(e){return delete M[e]}):M={}}function l(e,t){if(q[e])return q[e];if(e&&e.length>1024)throw new Error("Path太长是不是死循环了");var r=null;return A.some(function(n){var a=!1;return"function"==typeof n.test?a=n.test(e,t):n.test instanceof RegExp&&(a=n.test.test(e)),a&&(r=n),a}),null!==r&&(r.test instanceof RegExp||"function"==typeof r.test&&r.test.length<2)&&(q[e]=r),r}function u(){return A.concat()}function f(e){return w(A,function(t){return t.name===e})}Object.defineProperty(t,"__esModule",{value:!0});var m=e("node_modules/tslib/tslib"),y=e("node_modules/react/index"),_=e("448f42f"),v=e("node_modules/mobx-state-tree/dist/mobx-state-tree"),g=e("1caead1"),b=e("9a80175"),x=e("node_modules/mobx-react/index"),D=e("01e2bb4"),C=e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs"),O=e("node_modules/lodash/omit"),R=e("node_modules/lodash/difference"),S=e("node_modules/lodash/isPlainObject"),E=e("919cbd9"),j=e("256b65d"),w=e("node_modules/lodash/find"),P=e("15e4197"),A=[],F=[],T=[],$=1;t.addSchemaFilter=r,t.filterSchema=n,t.Renderer=a,t.registerRenderer=s,t.unRegisterRenderer=o,t.renderChildren=i,t.renderChild=d;var k=y.createContext(void 0),W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.schema,r=e.rootStore,n=e.env,a=e.pathPrefix,s=m.__rest(e,["schema","rootStore","env","pathPrefix"]),o=n.theme;return y.createElement(k.Provider,{value:r},y.createElement(j.ThemeContext.Provider,{value:this.props.theme||"default"},d(a||"",S(t)?m.__assign({type:"page"},t):t,m.__assign({},s,{env:n,classnames:o.classnames,classPrefix:o.classPrefix}))))},t}(y.Component);t.RootRenderer=W,t.ScopedRootRenderer=E.default(W);var U=["type","className","data","children","ref","visible","visibleOn","hidden","hiddenOn","disabled","disabledOn","children"],N=function(e){function t(t){var r=e.call(this,t)||this;return r.refFn=r.refFn.bind(r),r.renderChild=r.renderChild.bind(r),r}return m.__extends(t,e),t.prototype.componentWillMount=function(){this.resolveSchema(this.props)},t.prototype.componentWillReceiveProps=function(e){var t=this.props;(t.schema.type!==e.schema.type||t.schema.$$id!==e.schema.$$id)&&this.resolveSchema(e)},t.prototype.shouldComponentUpdate=function(e){var t=this.props,r=R(Object.keys(e),["schema"]);if(R(Object.keys(t),["schema"]).length!==r.length||b.anyChanged(r,this.props,e))return!0;var n=Object.keys(e.schema);return Object.keys(t.schema).length!==n.length||b.anyChanged(n,t.schema,e.schema)?!0:!1},t.prototype.resolveSchema=function(e){var t=e.schema,r=e.$path,n=e.env.rendererResolver||l;this.renderer=n(r,t,e)},t.prototype.getWrappedInstance=function(){return this.ref},t.prototype.refFn=function(e){this.ref=e},t.prototype.renderChild=function(e,t,r){void 0===r&&(r={});var n=this.props,a=(n.schema,n.$path),s=n.env,o=m.__rest(n,["schema","$path","env"]),i=U.concat();if(this.renderer){var p=this.renderer.component;p.propsList&&i.push.apply(i,p.propsList)}return d(""+a+(e?"/"+e:""),t||"",m.__assign({},O(o,i),r,{data:r.data||o.data,env:s}))},t.prototype.render=function(){var e=this.props,t=e.schema,r=e.$path,a=m.__rest(e,["schema","$path"]),s=this.props.env.theme;if(Array.isArray(t))return i(r,t,a);if(t.children)return"function"==typeof t.children?t.children(m.__assign({},a,{$path:r,render:this.renderChild,ref:this.refFn}),t):t.children;if(!this.renderer)return y.createElement(P.default,{level:"danger"},y.createElement("p",null,"Error: 找不到对应的渲染器"),y.createElement("p",null,"Path: ",r),y.createElement("pre",null,y.createElement("code",null,JSON.stringify(t,null,2))));var o=this.renderer;t=n(t,o,a);var d=t.data,p=m.__rest(t,["data"]),c=o.component;return y.createElement(c,m.__assign({},s.getRendererConfig(o.name),p,a,{defaultData:d,$path:r,ref:this.refFn,render:this.renderChild}))},t.displayName="Renderer",t}(y.Component);t.HocStoreFactory=p;var I={session:"global",affixOffsetTop:50,affixOffsetBottom:0,richTextToken:"",fetcher:function(){return Promise.reject("fetcher is required")},isCancel:function(){return console.error("Please implements this."),!1},alert:function(e){alert(e)},updateLocation:function(){console.error("Please implements this.")},confirm:function(e){return confirm(e)},notify:function(e){alert(e)},jumpTo:function(){console.error("Please implements this.")},isCurrentUrl:function(){return!1},copy:function(e){console.error("copy contents",e)},rendererResolver:l},M={};t.render=c,t.clearStoresCache=h;var q={};t.resolveRenderer=l,t.getRenderers=u,t.getRendererByName=f});
;/*!src/renderers/Form/Item.tsx*/
define("567b83c",function(e,r){"use strict";function t(e){var r=e.component;if(e.validate&&!r.prototype.validate){var t=e.validate;r.prototype.validate=function(){var e={input:this};return t.apply(e,arguments)}}else e.validate&&console.error("FormItem配置中的 validate 将不起作用,因为类的成员函数中已经定义了 validate 方法,将优先使用类里面的实现。");e.storeType&&(r=m.HocStoreFactory({storeType:e.storeType})(r),delete e.storeType);var a=function(t){function a(e){var r=t.call(this,e)||this;return r.refFn=r.refFn.bind(r),r}return n.__extends(a,t),a.prototype.componentWillMount=function(){var r=this.props,a=r.validations,n=r.formItem;n&&!a&&e.validations&&n.config({rules:e.validations}),t.prototype.componentWillMount.call(this)},a.prototype.shouldComponentUpdate=function(e){return e.strictMode===!1?!0:c.anyChanged(["formPristine","addable","addButtonClassName","addButtonText","addOn","btnClassName","btnLabel","btnDisabled","className","clearable","columns","columnsCount","controls","desc","description","disabled","draggable","editable","editButtonClassName","formHorizontal","formMode","hideRoot","horizontal","icon","inline","inputClassName","label","labelClassName","labelField","language","level","max","maxRows","min","minRows","multiLine","multiple","option","placeholder","removable","required","remark","hint","rows","searchable","showCompressOptions","size","step","showInput","unit","value","diffValue"],this.props,e)?!0:!1},a.prototype.getWrappedInstance=function(){return this.ref},a.prototype.refFn=function(e){this.ref=e},a.prototype.renderControl=function(){var t=this.props,a=t.inputClassName,l=t.formItem,i=t.classPrefix,m=(t.children,t.type),d=t.size,p=t.defaultSize,u=n.__rest(t,["inputClassName","formItem","classPrefix","children","type","size","defaultSize"]),f=d||p;return o.createElement(r,n.__assign({},u,{size:e.sizeMutable!==!1?void 0:d,onFocus:this.handleFocus,onBlur:this.handleBlur,type:m,classPrefix:i,ref:this.refFn,formItem:l,className:s(i+"Form-control",(h={"is-inline":!!u.inline,"is-error":l&&!l.valid},h[i+"Form-control--size"+c.ucFirst(f)]=e.sizeMutable!==!1&&"string"==typeof f&&!!f&&"full"!==f,h),a)}));var h},a.defaultProps=n.__assign({className:"",renderLabel:e.renderLabel,sizeMutable:e.sizeMutable,wrap:e.wrap,strictMode:e.strictMode},r.defaultProps),a.propsList=["value","defaultValue","onChange","setPrinstineValue","readOnly"].concat(r.propsList),a.displayName="FormItem"+(e.type?"("+e.type+")":""),a.ComposedComponent=r,a}(d);return l(a,r),m.registerRenderer(n.__assign({},e,{name:e.name||e.type+"-control",weight:"undefined"!=typeof e.weight?e.weight:-100,test:e.test||new RegExp("(^|/)form(?:/.+)?/control/(?:d+/)?"+e.type+"$","i"),component:a,isFormItem:!0}))}function a(e){return function(r){var a=t(n.__assign({},e,{component:r}));return a.component}}Object.defineProperty(r,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),l=e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs"),s=e("node_modules/classnames/index"),i=e("node_modules/mobx/lib/mobx"),m=e("0f9ebdf"),c=e("9a80175"),d=function(e){function r(r){var t=e.call(this,r)||this;return t.state={isFocused:!1},t.handleFocus=t.handleFocus.bind(t),t.handleBlur=t.handleBlur.bind(t),t}return n.__extends(r,e),r.prototype.componentWillMount=function(){var e=this,r=this.props.formItem;r&&(this.reaction=i.reaction(function(){return r.errors.join("")},function(){return e.forceUpdate()}))},r.prototype.componentWillUnmount=function(){this.reaction&&this.reaction()},r.prototype.handleFocus=function(e){this.setState({isFocused:!0}),this.props.onFocus&&this.props.onFocus(e)},r.prototype.handleBlur=function(e){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},r.prototype.renderControl=function(){var e=this.props,r=e.inputClassName,t=e.formItem,a=e.classPrefix,o=(e.children,e.type),l=e.renderControl,i=(e.formItemConfig,e.sizeMutable),m=e.size,d=e.defaultSize,p=n.__rest(e,["inputClassName","formItem","classPrefix","children","type","renderControl","formItemConfig","sizeMutable","size","defaultSize"]);if(l){var u=m||d;return l(n.__assign({},p,{type:o,classPrefix:a,formItem:t,className:s(a+"Form-control",(f={"is-inline":!!p.inline,"is-error":t&&!t.valid},f[a+"Form-control--size"+c.ucFirst(u)]=i!==!1&&"string"==typeof u&&!!u&&"full"!==u,f),r)}))}return null;var f},r.prototype.renderHorizontal=function(){var e=this.props,r=e.className,t=e.classPrefix,a=e.description,n=e.descriptionClassName,l=e.captionClassName,i=e.desc,m=e.label,d=e.labelClassName,p=e.render,u=e.required,f=e.caption,h=(e.type,e.remark),F=e.labelRemark,v=e.env,N=e.formItem,b=e.renderLabel,C=e.hint;b===!1&&(m=m===!1?!1:""),a=a||i;var y=this.props.horizontal||this.props.formHorizontal,g=c.getWidthRate(y.left),k=c.getWidthRate(y.right);return o.createElement("div",{className:s(t+"Form-item "+t+"Form-item--horizontal",r,(M={},M["is-error"]=N&&!N.valid,M["is-required"]=u,M))},m!==!1?o.createElement("label",{className:s(t+"Form-label",(E={},E[t+"Form-itemColumn--"+("string"==typeof y.leftFixed?y.leftFixed:"normal")]=y.leftFixed,E[t+"Form-itemColumn--"+g]=!y.leftFixed,E),d)},o.createElement("span",null,m,u?o.createElement("span",{className:t+"Form-star"},"*"):null,F?p("label-remark",{type:"remark",tooltip:F,className:s(t+"Form-labelRemark"),container:v&&v.getModalContainer?v.getModalContainer():void 0}):null)):null,o.createElement("div",{className:s(t+"Form-value",(z={},z[t+"Form-itemColumn--"+k]=!!k&&k!==12-g,z))},this.renderControl(),f?p("caption",f,{className:s(t+"Form-caption",l)}):null,h?p("remark",{type:"remark",tooltip:h,className:s(t+"Form-remark"),container:v&&v.getModalContainer?v.getModalContainer():void 0}):null,C&&this.state.isFocused?p("hint",C,{className:s(t+"Form-hint")}):null,N&&!N.valid?o.createElement("ul",{className:t+"Form-feedback"},N.errors.map(function(e,r){return o.createElement("li",{key:r},e)})):null,a?p("description",a,{className:s(t+"Form-description",n)}):null));var M,E,z},r.prototype.renderNormal=function(){var e=this.props,r=e.className,t=e.classPrefix,a=e.desc,n=e.description,l=e.label,i=e.labelClassName,m=e.render,c=e.required,d=(e.type,e.caption),p=e.remark,u=e.labelRemark,f=e.env,h=e.descriptionClassName,F=e.captionClassName,v=e.formItem,N=e.renderLabel,b=e.hint,C=e.formMode;return n=n||a,o.createElement("div",{className:s(t+"Form-item "+t+"Form-item--"+C,r,(y={"is-error":v&&!v.valid},y["is-required"]=c,y))},l&&N!==!1?o.createElement("label",{className:s(t+"Form-label",i)},o.createElement("span",null,l,c?o.createElement("span",{className:t+"Form-star"},"*"):null,u?m("label-remark",{type:"remark",tooltip:u,className:s(t+"Form-lableRemark"),container:f&&f.getModalContainer?f.getModalContainer():void 0}):null)):null,this.renderControl(),d?m("caption",d,{className:s(t+"Form-caption",F)}):null,p?m("remark",{type:"remark",className:s(t+"Form-remark"),tooltip:p,container:f&&f.getModalContainer?f.getModalContainer():void 0}):null,b&&this.state.isFocused?m("hint",b,{className:s(t+"Form-hint")}):null,v&&!v.valid?o.createElement("ul",{className:t+"Form-feedback"},v.errors.map(function(e,r){return o.createElement("li",{key:r},e)})):null,n?m("description",n,{className:s(t+"Form-description",h)}):null);var y},r.prototype.renderInline=function(){var e=this.props,r=e.className,t=e.classPrefix,a=e.desc,n=e.description,l=e.label,i=e.labelClassName,m=e.render,c=e.required,d=e.caption,p=e.descriptionClassName,u=e.captionClassName,f=e.formItem,h=e.remark,F=e.labelRemark,v=e.env,N=e.hint,b=e.renderLabel;return n=n||a,o.createElement("div",{className:s(t+"Form-item "+t+"Form-item--inline",r,(C={"is-error":f&&!f.valid},C["is-required"]=c,C))},l&&b!==!1?o.createElement("label",{className:s(t+"Form-label",i)},o.createElement("span",null,l,c?o.createElement("span",{className:t+"Form-star"},"*"):null,F?m("label-remark",{type:"remark",tooltip:F,className:s(t+"Form-lableRemark"),container:v&&v.getModalContainer?v.getModalContainer():void 0}):null)):null,o.createElement("div",{className:t+"Form-value"},this.renderControl(),d?m("caption",d,{className:s(t+"Form-caption",u)}):null,h?m("remark",{type:"remark",className:s(t+"Form-remark"),tooltip:h,container:v&&v.getModalContainer?v.getModalContainer():void 0}):null,N&&this.state.isFocused?m("hint",N,{className:s(t+"Form-hint")}):null,f&&!f.valid?o.createElement("ul",{className:t+"Form-feedback"},f.errors.map(function(e,r){return o.createElement("li",{key:r},e)})):null,n?m("description",n,{className:s(t+"Form-description",p)}):null));var C},r.prototype.renderRow=function(){var e=this.props,r=e.className,t=e.classnames,a=(e.classPrefix,e.desc),n=e.description,l=e.label,s=e.labelClassName,i=e.render,m=e.required,c=(e.type,e.caption),d=e.remark,p=e.labelRemark,u=e.env,f=e.descriptionClassName,h=e.captionClassName,F=e.formItem,v=e.renderLabel,N=e.hint,b=e.formMode;return n=n||a,o.createElement("div",{className:t("Form-item Form-item--"+b,r,(C={"is-error":F&&!F.valid},C["is-required"]=m,C))},o.createElement("div",{className:t("Form-rowInner")},l&&v!==!1?o.createElement("label",{className:t("Form-label",s)},o.createElement("span",null,l,m?o.createElement("span",{className:t("Form-star")},"*"):null,p?i("label-remark",{type:"remark",tooltip:p,className:t("Form-lableRemark"),container:u&&u.getModalContainer?u.getModalContainer():void 0}):null)):null,this.renderControl(),c?i("caption",c,{className:t("Form-caption",h)}):null,d?i("remark",{type:"remark",className:t("Form-remark"),tooltip:d,container:u&&u.getModalContainer?u.getModalContainer():void 0}):null),N&&this.state.isFocused?i("hint",N,{className:t("Form-hint")}):null,F&&!F.valid?o.createElement("ul",{className:t("Form-feedback")},F.errors.map(function(e,r){return o.createElement("li",{key:r},e)})):null,n?i("description",n,{className:t("Form-description",f)}):null);var C},r.prototype.render=function(){var e=this.props,r=e.formMode,t=e.inputOnly,a=e.wrap;return a===!1||t?this.renderControl():"inline"===r?this.renderInline():"horizontal"===r?this.renderHorizontal():"row"===r?this.renderRow():this.renderNormal()},r}(o.Component);r.FormItemWrap=d,r.registerFormItem=t,r.FormItem=a,r.default=a});
;/*!src/renderers/Form/Options.tsx*/
define("b86428a",function(e,t){"use strict";function o(e){var t=e.component,o=function(o){function n(e){var t=o.call(this,e)||this,n=e.formItem;return n&&e.options&&n.setOptions(m.normalizeOptions(e.options)),t.handleToggle=t.handleToggle.bind(t),t.handleToggleAll=t.handleToggleAll.bind(t),t.setOptions=t.setOptions.bind(t),t.setLoading=t.setLoading.bind(t),t.inputRef=t.inputRef.bind(t),t.reload=t.reload.bind(t),t}return s.__extends(n,o),n.prototype.componentWillMount=function(){var e=this,t=this.props,o=t.initFetch,n=t.formItem,i=t.source,s=t.data,r=t.setPrinstineValue,a=t.defaultValue,p=t.multiple,u=t.joinValues,c=t.extractValue,f=t.addHook,h=t.formInited,g=t.valueField;n&&(this.reaction=l.reaction(function(){return JSON.stringify([n.loading,n.selectedOptions,n.filteredOptions])},function(){return e.forceUpdate()}));var v=o!==!1;if(/^\$(?:([a-z0-9_.]+)|{.+})$/.test(i)&&n&&(n.setOptions(m.normalizeOptions(d.resolveVariableAndFilter(i,s,"| raw")||[])),v=!1),n&&u===!1&&a){var O=c?n.selectedOptions.map(function(e){return e[g||"value"]}):n.selectedOptions;r(p?O.concat():n.selectedOptions[0])}v&&(h?this.reload():f&&f(this.reload,"init"))},n.prototype.componentDidMount=function(){this.normalizeValue()},n.prototype.shouldComponentUpdate=function(t){return e.strictMode===!1||t.strictMode===!1?!0:a.anyChanged(["formPristine","addOn","disabled","placeholder","required","formMode","className","inputClassName","labelClassName","label","inline","options","size","btnClassName","btnActiveClassName","buttons","columnsCount","multiple","hideRoot","checkAll","showIcon","showRadio","btnDisabled"],this.props,t)?!0:!1},n.prototype.componentWillReceiveProps=function(t){var o=this.props,n=t.formItem;if(n)if(!o.formItem,o.value!==t.value&&n.syncOptions(),o.options!==t.options&&n)n.setOptions(m.normalizeOptions(t.options||[]));else if(e.autoLoadOptionsFromSource!==!1&&t.source&&n&&(o.source!==t.source||o.data!==t.data))if(/^\$(?:([a-z0-9_.]+)|{.+})$/.test(t.source)){var i=d.resolveVariableAndFilter(o.source,o.data,"| raw"),s=d.resolveVariableAndFilter(t.source,t.data,"| raw");i!==s&&n.setOptions(m.normalizeOptions(s||[]))}else{var a=r.buildApi(o.source,o.data,{ignoreData:!0}),l=r.buildApi(t.source,t.data,{ignoreData:!0});a.url===l.url||!r.isValidApi(l.url)||l.sendOn&&!c.evalExpression(l.sendOn,t.data)||n.loadOptions(t.source,t.data,void 0,!0,t.onChange)}},n.prototype.componentDidUpdate=function(){this.normalizeValue()},n.prototype.componentWillUnmount=function(){this.props.removeHook&&this.props.removeHook(this.reload,"init"),this.reaction&&this.reaction()},n.prototype.normalizeValue=function(){var e=this.props,t=e.joinValues,o=e.extractValue,n=e.value,i=e.multiple,s=e.formItem,r=e.valueField;if(s&&t===!1&&o===!1&&("string"==typeof n||"number"==typeof n)&&s.options.length&&s.changeValue(i?s.selectedOptions.concat():s.selectedOptions[0]),s&&t===!1&&o===!0&&n&&!(Array.isArray(n)&&n.every(function(e){return"string"==typeof e||"number"==typeof e})||"string"==typeof n||"number"==typeof n)&&s.options.length){var a=s.selectedOptions.map(function(e){return e[r||"value"]});s.changeValue(i?a.concat():a[0])}},n.prototype.inputRef=function(e){this.input=e},n.prototype.handleToggle=function(e,t){var o=this.props,n=o.onChange,i=o.joinValues,s=o.extractValue,r=o.valueField,a=o.delimiter,l=o.clearable,p=o.resetValue,u=o.multiple,d=o.formItem;if(d){var c=d.selectedOptions.concat(),m=c.indexOf(e),f="";u?(~m?c.splice(m,1):c.push(e),f=c,i?f=f.map(function(e){return e[r||"value"]}).join(a):s&&(f=f.map(function(e){return e[r||"value"]}))):(~m&&l?c.splice(m,1):c=[e],f=c[0]||p,i&&f&&(f=f[r||"value"])),n&&n(f,t)}},n.prototype.handleToggleAll=function(){var e=this.props,t=e.onChange,o=e.joinValues,n=e.extractValue,i=e.valueField,s=e.delimiter,r=e.resetValue,a=e.multiple,l=e.formItem;if(l){var p=l.selectedOptions.length===l.filteredOptions.length?[]:l.filteredOptions.concat(),u="";a?(u=p,o?u=u.map(function(e){return e[i||"value"]}).join(s):n&&(u=u.map(function(e){return e[i||"value"]}))):(u=p[0]||r,o&&u&&(u=u[i||"value"])),t&&t(u)}},n.prototype.reload=function(){var t=this.props,o=t.source,n=t.formItem,i=t.data,s=t.onChange;if(e.autoLoadOptionsFromSource!==!1&&n&&o&&(!o.sendOn||c.evalExpression(o.sendOn,i)))return n.loadOptions(o,i,void 0,!1,s)},n.prototype.focus=function(){this.input&&this.input.focus&&this.input.focus()},n.prototype.setOptions=function(e){var t=this.props.formItem;t&&t.setOptions(m.normalizeOptions(e||[]))},n.prototype.setLoading=function(e){var t=this.props.formItem;t&&t.setLoading(e)},n.prototype.render=function(){var e=this.props,o=e.value,n=e.formItem;return u.createElement(t,s.__assign({},this.props,{ref:this.inputRef,options:n?n.filteredOptions:[],onToggle:this.handleToggle,onToggleAll:this.handleToggleAll,selectedOptions:n?n.getSelectedOptions(o):[],loading:n?n.loading:!1,setLoading:this.setLoading,setOptions:this.setOptions}))},n.displayName="OptionsControl("+e.type+")",n.defaultProps=s.__assign({delimiter:",",labelField:"label",valueField:"value",joinValues:!0,extractValue:!1,multiple:!1,placeholder:"请选择",resetValue:""},t.defaultProps),n.propsList=t.propsList?t.propsList.slice():[],n.ComposedComponent=t,n}(u.Component);return p.registerFormItem(s.__assign({},e,{strictMode:!1,component:o}))}function n(e){return function(t){var n=o(s.__assign({},e,{component:t}));return n.component}}function i(e,t,o){if(void 0===o&&(o="is-matched"),!t)return e;e=String(e);var n=new RegExp(t.replace(/([\$\^\*\+\-\?\.\(\)\|\[\]\\])/,"\\$1"),"i");if(!n.test(e))return e;var i=e.split(n),s=[];return i.forEach(function(e,n){e&&s.push(u.createElement("span",{key:n},e)),s.push(u.createElement("span",{className:o,key:n+"-hl"},t))}),s.pop(),s}Object.defineProperty(t,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),r=e("1caead1"),a=e("9a80175"),l=e("node_modules/mobx/lib/mobx"),p=e("567b83c"),u=e("node_modules/react/index"),d=e("f2e345e"),c=e("6a2dbb7"),m=e("d57879c");t.Option=m.Option,t.registerOptionsControl=o,t.OptionsControl=n,t.highlight=i});
;/*!src/components/Select.tsx*/
define("d57879c",function(e,t){"use strict";function n(e,t){if(t.multi||t.multiple){if("string"==typeof e&&(e=e.split(t.delimiter||",")),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return a(e,t)}).filter(function(e){return e})}Array.isArray(e)&&(e=e[0]);var n=a(e,t);return n?[n]:[]}function a(e,t){var n=typeof e;if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var a=t.options;return a?g(a,function(n){return String(n[t.valueField||"value"])===String(e)}):null}function l(e){return"string"==typeof e?e.split(",").map(function(e){return{label:e,value:e}}):Array.isArray(e)&&"string"==typeof e[0]?e.map(function(e){return{label:e,value:e}}):Array.isArray(e)?e.map(function(e){var t=i.__assign({},e,{value:e&&e.value});return"undefined"!=typeof t.children&&(t.children=l(t.children)),t}):f(e)?Object.keys(e).map(function(t){return{label:e[t],value:t}}):[]}Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),s=e("node_modules/uncontrollable/index"),o=e("node_modules/react/index"),r=e("997df41"),u=e("2b3dcdf"),c=e("node_modules/downshift/dist/downshift.cjs"),p=e("b7bbd16"),d=e("node_modules/match-sorter/dist/match-sorter.cjs"),h=e("9a80175"),g=e("node_modules/lodash/find"),f=e("node_modules/lodash/isPlainObject"),m=e("b86428a"),v=e("node_modules/react-dom/index"),b=e("256b65d");t.value2array=n,t.expandValue=a,t.normalizeOptions=l;var y=function(e){function t(t){var a=e.call(this,t)||this;return a.open=a.open.bind(a),a.close=a.close.bind(a),a.toggle=a.toggle.bind(a),a.onBlur=a.onBlur.bind(a),a.onFocus=a.onFocus.bind(a),a.focus=a.focus.bind(a),a.inputRef=a.inputRef.bind(a),a.handleChange=a.handleChange.bind(a),a.handleInputChange=a.handleInputChange.bind(a),a.clearValue=a.clearValue.bind(a),a.handleStateChange=a.handleStateChange.bind(a),a.handleKeyPress=a.handleKeyPress.bind(a),a.getTarget=a.getTarget.bind(a),a.state={isOpen:!1,isFocused:!1,inputValue:"",highlightedIndex:-1,selection:n(t.value,t)},a}return i.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.loadOptions;e&&e("")},t.prototype.componentWillReceiveProps=function(e){var t=this.props;(t.value!==e.value||JSON.stringify(t.options)!==JSON.stringify(e.options))&&this.setState({selection:n(e.value,e)})},t.prototype.open=function(){this.props.disabled||this.setState({isOpen:!0})},t.prototype.close=function(){this.setState({isOpen:!1})},t.prototype.toggle=function(){this.props.disabled||this.setState({isOpen:!this.state.isOpen})},t.prototype.onFocus=function(e){this.props.disabled||this.setState({isFocused:!0},this.focus),this.props.onFocus&&this.props.onFocus(e)},t.prototype.onBlur=function(e){this.setState({isFocused:!1,inputValue:""}),this.props.onBlur&&this.props.onBlur(e)},t.prototype.focus=function(){this.input?this.input.focus():this.getTarget()&&this.getTarget().focus()},t.prototype.blur=function(){this.input?this.input.blur():this.getTarget()&&this.getTarget().blur()},t.prototype.getTarget=function(){return this.target||(this.target=v.findDOMNode(this)),this.target},t.prototype.inputRef=function(e){this.input=e},t.prototype.removeItem=function(e,t){var n=this.props.value,a=this.props.onChange;t&&t.stopPropagation(),n=Array.isArray(n)?n.concat():[n],n.splice(e,1),a(n)},t.prototype.handleInputChange=function(e){var t=this,n=this.props.loadOptions;this.setState({inputValue:e.currentTarget.value},function(){return n&&n(t.state.inputValue)})},t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,a=t.multiple,l=t.onNewOptionClick,i=this.state.selection;if(e.isNew&&(delete e.isNew,l(e)),a){i=i.concat();var s=i.indexOf(e);~s?i.splice(s,1):i.push(e),n(i)}else n(e)},t.prototype.handleStateChange=function(e){var t={},n=this.props.loadOptions,a=!1;switch(void 0!==e.isOpen&&(t.isOpen=e.isOpen),void 0!==e.highlightedIndex&&(t.highlightedIndex=e.highlightedIndex),e.type){case c.default.stateChangeTypes.keyDownEnter:case c.default.stateChangeTypes.clickItem:t=i.__assign({},t,{inputValue:"",isOpen:!1,isFocused:!1}),a=!0;break;case c.default.stateChangeTypes.changeInput:t.highlightedIndex=0}Object.keys(t).length&&this.setState(t,a&&n?function(){return n("")}:void 0)},t.prototype.handleKeyPress=function(e){" "===e.key&&this.toggle()},t.prototype.clearValue=function(e){var t=this.props.onChange;e.preventDefault(),e.stopPropagation(),t("")},t.prototype.renderValue=function(e){var t=this,n=e.inputValue,a=e.isOpen,l=this.props,i=l.multiple,s=l.placeholder,r=l.classPrefix,u=l.labelField,c=l.searchable,p=l.creatable,d=this.state.selection;return!c||p||!n||(i?d.length:0)?d.length?d.map(function(e,l){return i?o.createElement("div",{className:r+"Select-value",key:l},o.createElement("span",{className:r+"Select-valueIcon",onClick:t.removeItem.bind(t,l)},"×"),o.createElement("span",{className:r+"Select-valueLabel"},e[u||"label"])):n&&a?null:o.createElement("div",{className:r+"Select-value",key:l},e.label)}):p&&n?null:o.createElement("div",{key:"placeholder",className:r+"Select-placeholder"},s):null},t.prototype.renderOuter=function(e){var t=e.selectedItem,n=e.getItemProps,a=e.highlightedIndex,l=e.inputValue,s=e.isOpen,c=this.props,p=c.popOverContainer,h=c.options,g=c.valueField,f=c.labelField,v=c.noResultsText,b=c.loadOptions,y=c.creatable,S=c.promptTextCreator,O=c.multiple,C=c.classnames,N=l&&s&&!b?d(h,l,{keys:[f||"label",g||"value"]}):h.concat();O&&(N=N.filter(function(e){return!~t.indexOf(e)})),l&&y&&(!N.length||s&&b&&!d(h,l,{keys:[f||"label",g||"value"]}).length)&&N.push((I={},I[f]=l,I[g]=l,I.isNew=!0,I));var x=o.createElement("div",{className:C("Select-menu")},N.length?N.map(function(e,s){return o.createElement("div",i.__assign({},n({key:s,index:s,item:e,disabled:e.disabled}),{className:C("Select-option",{"is-disabled":e.disabled,"is-highlight":a===s,"is-active":t===e||Array.isArray(t)&&~t.indexOf(e)})}),e.isNew?S(e.label):e.disabled?e[f]:m.highlight(e[f],l,C("Select-option-hl")))}):o.createElement("div",{className:C("Select-option Select-option--placeholder")},v));return p?o.createElement(r.default,{container:p,placement:"left-bottom-left-top",target:this.getTarget,show:!0},o.createElement(u.default,{className:C("Select-popover"),style:{width:this.target?this.target.offsetWidth:"auto"}},x)):o.createElement("div",{className:C("Select-menuOuter")},x);var I},t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,a=t.multiple,l=t.searchable,s=t.inline,r=t.className,u=t.value,d=t.loading,h=t.spinnerClassName,g=t.clearable,f=t.labelField,m=t.disabled,v=this.state.selection,b=this.state.inputValue;return o.createElement(c.default,{selectedItem:v,highlightedIndex:this.state.highlightedIndex,isOpen:this.state.isOpen,inputValue:b,onChange:this.handleChange,onStateChange:this.handleStateChange,onOuterClick:this.close,itemToString:function(e){return e?e[f]:""}},function(t){var c=t.isOpen,f=t.getInputProps;return o.createElement("div",{tabIndex:l||m?-1:0,onKeyPress:e.handleKeyPress,onClick:e.toggle,onFocus:e.onFocus,onBlur:e.onBlur,className:n("Select",(v={},v["Select--multi"]=a,v["Select--inline"]=s,v["Select--searchable"]=l,v["is-opened"]=c,v["is-focused"]=e.state.isFocused,v["is-disabled"]=m,v),r)},o.createElement("div",{className:n("Select-valueWrap")},e.renderValue(t),l?o.createElement("input",i.__assign({},f({className:n("Select-input"),onFocus:e.onFocus,onBlur:e.onBlur,onKeyDown:function(t){"Backspace"!==t.key||b||e.removeItem(u.length-1)},onChange:e.handleInputChange,ref:e.inputRef}))):null),g&&!m&&u&&u.length?o.createElement("a",{onClick:e.clearValue,className:n("Select-clear")},p.closeIcon):null,d?o.createElement("span",{className:n("Select-spinner")},o.createElement("i",{className:h})):null,o.createElement("span",{className:n("Select-arrow")}),c?e.renderOuter(t):null);var v})},t.defaultProps={multiple:!1,clearable:!1,creatable:!1,searchPromptText:"输入内容进行检索",loadingPlaceholder:"加载中..",noResultsText:"没有结果",clearAllText:"移除所有",clearValueText:"移除",placeholder:"请选择",valueField:"value",labelField:"label",spinnerClassName:"fa fa-spinner fa-spin fa-1x fa-fw",promptTextCreator:function(e){return"新增:"+e},onNewOptionClick:h.noop,inline:!1},t}(o.Component);t.Select=y,t.default=b.themeable(s(y,{value:"onChange"}))});
;/*!src/components/DatePicker.tsx*/
define("dd24912",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),r=e("node_modules/classnames/index"),s=e("node_modules/moment/moment");e("node_modules/moment/locale/zh-cn");var o=e("node_modules/react-datetime/src/CalendarContainer"),i=e("node_modules/react-datetime/DateTime"),l=e("d57879c"),c=e("b7bbd16"),d=e("2b3dcdf"),p=e("997df41"),h=e("256b65d");o.prototype.render=function(e){return function(){return"days"===this.props.view?n.createElement(m,a.__assign({},this.props.viewProps)):e.apply(this,arguments)}}(o.prototype.render);var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){if(!this.__hacked){this.__hacked=!0;var t=this.getComponentProps,a=this.setState.bind(this);this.getComponentProps=function(){var e=this,n=t.apply(this);return n.setDateTimeState=a,["onChange","onClose","requiredConfirm","classPrefix","prevIcon","nextIcon","isEndDate"].forEach(function(t){return n[t]=e.props[t]}),n}}return e.prototype.render.call(this)},t}(i);t.BaseDatePicker=u;var m=function(e){function t(t){var a=e.call(this,t)||this;return a.handleClickOutside=a.handleClickOutside.bind(a),a.handleYearChange=a.handleYearChange.bind(a),a.handleMonthChange=a.handleMonthChange.bind(a),a.handleDayChange=a.handleDayChange.bind(a),a.confirm=a.confirm.bind(a),a.cancel=a.cancel.bind(a),a}return a.__extends(t,e),t.prototype.getDaysOfWeek=function(e){var t=e.weekdaysMin(),a=e.firstDayOfWeek(),n=[],r=0;return t.forEach(function(e){n[(7+r++-a)%7]=e}),n},t.prototype.alwaysValidDate=function(){return!0},t.prototype.handleDayChange=function(e){if(this.props.requiredConfirm){var t=this.props.viewDate.clone(),a=this.props.selectedDate||t,n=e.target,r=0;return~n.className.indexOf("rdtNew")&&(r=1),~n.className.indexOf("rdtOld")&&(r=-1),t.month(t.month()+r).date(parseInt(n.getAttribute("data-value"),10)).hours(a.hours()).minutes(a.minutes()).seconds(a.seconds()).milliseconds(a.milliseconds()),void this.props.setDateTimeState({viewDate:t,selectedDate:t.clone()})}this.props.updateSelectedDate(e,!0)},t.prototype.handleMonthChange=function(e){var t=this.props.viewDate;this.props.setDateTimeState({viewDate:t.clone().month(e.value).startOf("month")})},t.prototype.handleYearChange=function(e){var t=this.props.viewDate,a=t.clone().year(e.value);this.props.setDateTimeState({viewDate:a[a.isBefore(t)?"endOf":"startOf"]("year")})},t.prototype.setTime=function(e,t){var a=(this.props.selectedDate||this.props.viewDate).clone();a[e](t),this.props.setDateTimeState({viewDate:a.clone(),selectedDate:a.clone()}),this.props.requiredConfirm||this.props.onChange(a)},t.prototype.confirm=function(){var e=this.props.viewDate.clone();this.props.setDateTimeState({selectedDate:e}),this.props.onChange(e),this.props.onClose&&this.props.onClose()},t.prototype.cancel=function(){this.props.onClose&&this.props.onClose()},t.prototype.handleClickOutside=function(){this.props.handleClickOutside()},t.prototype.renderYearsSelect=function(){var e=(this.props.classPrefix,this.props.viewDate),t=[],a=this.props.isValidDate||this.alwaysValidDate,r=0,s=1,o=e.year(),i=0;t.push(o);for(var c=function(){o++;var n=e.clone().set({year:o,month:r,date:s}),l=parseInt(n.endOf("year").format("DDD"),10),c=Array.from({length:l},function(e,t){return t+1}),d=c.find(function(e){return a(n.clone().dayOfYear(e))});return d?(t.push(o),void i++):"break"};20>i;){var d=c();if("break"===d)break}i=0,o=e.year();for(var p=function(){o--;var n=e.clone().set({year:o,month:r,date:s}),l=parseInt(n.endOf("year").format("DDD"),10),c=Array.from({length:l},function(e,t){return t+1}),d=c.find(function(e){return a(n.clone().dayOfYear(e))});return d?(t.unshift(o),void i++):"break"};20>i;){var h=p();if("break"===h)break}return n.createElement(l.default,{value:e.year(),options:t.map(function(e){return{label:""+e,value:e}}),onChange:this.handleYearChange,clearable:!1,searchable:!1})},t.prototype.renderMonthsSelect=function(){for(var e=this.props.classPrefix,t=this.props.viewDate,a=this.props.viewDate.year(),r=this.props.isValidDate||this.alwaysValidDate,s=0,o=[],i=function(){var e=t.clone().set({year:a,month:s,date:1}),n=parseInt(e.endOf("month").format("D"),10),i=Array.from({length:n},function(e,t){return t+1}),l=i.find(function(t){return r(e.clone().set("date",t))});l&&o.push(s),s++};12>s;)i();return n.createElement(l.default,{classPrefix:e,value:t.month(),options:o.map(function(e){return{label:""+(e+1),value:e}}),onChange:this.handleMonthChange,clearable:!1,searchable:!1})},t.prototype.renderDay=function(e,t){return n.createElement("td",a.__assign({},e),t.date())},t.prototype.renderTimes=function(){var e=this,t=this.props,a=t.timeFormat,r=t.selectedDate,s=t.viewDate,o=t.isEndDate,i=r||(o?s.endOf("day"):s),l=[];return a.split(":").forEach(function(t,a){var r=/h/i.test(t)?"hours":/m/i.test(t)?"minutes":"seconds",s=0,o="hours"===r?23:59;l.push(n.createElement("input",{key:a+"input",type:"text",value:i.format(t),min:s,max:o,onChange:function(t){return e.setTime(r,Math.max(s,Math.min(parseInt(t.currentTarget.value.replace(/\D/g,""),10)||0,o)))}})),l.push(n.createElement("span",{key:a+"divider"},":"))}),l.length&&l.pop(),n.createElement("div",null,l)},t.prototype.renderFooter=function(){return this.props.timeFormat||this.props.requiredConfirm?n.createElement("tfoot",{key:"tf"},n.createElement("tr",null,n.createElement("td",{colSpan:7},this.props.timeFormat?this.renderTimes():null,this.props.requiredConfirm?n.createElement("div",{key:"button",className:"rdtActions"},n.createElement("a",{className:"rdtBtn rdtBtnConfirm",onClick:this.confirm},"确认"),n.createElement("a",{className:"rdtBtn rdtBtnCancel",onClick:this.cancel},"取消")):null))):null},t.prototype.renderDays=function(){var e,t,a,r,o=this.props.viewDate,i=this.props.selectedDate&&this.props.selectedDate.clone(),l=o.clone().subtract(1,"months"),c=o.year(),d=o.month(),p=[],h=[],u=this.props.renderDay||this.renderDay,m=this.props.isValidDate||this.alwaysValidDate;l.date(l.daysInMonth()).startOf("week");for(var f=l.clone().add(42,"d");l.isBefore(f);)e="rdtDay",r=l.clone(),l.year()===c&&l.month()<d||l.year()<c?e+=" rdtOld":(l.year()===c&&l.month()>d||l.year()>c)&&(e+=" rdtNew"),i&&l.isSame(i,"day")&&(e+=" rdtActive"),l.isSame(s(),"day")&&(e+=" rdtToday"),t=!m(r,i),t&&(e+=" rdtDisabled"),a={key:l.format("M_D"),"data-value":l.date(),className:e},t||(a.onClick=this.handleDayChange),h.push(u(a,r,i)),7===h.length&&(p.push(n.createElement("tr",{key:l.format("M_D")},h)),h=[]),l.add(1,"d");return p},t.prototype.render=function(){var e=this.renderFooter(),t=this.props.viewDate,a=t.localeData(),r=[n.createElement("thead",{key:"th"},n.createElement("tr",null,n.createElement("th",{colSpan:7},n.createElement("div",{className:"rdtHeader"},n.createElement("a",{className:"rdtBtn",onClick:this.props.subtractTime(1,"months")},n.createElement("i",{className:"rdtBtnPrev"})),n.createElement("div",{className:"rdtSelect"},this.renderYearsSelect()),n.createElement("div",{className:"rdtSelect"},this.renderMonthsSelect()),n.createElement("a",{className:"rdtBtn",onClick:this.props.addTime(1,"months")},n.createElement("i",{className:"rdtBtnNext"}))))),n.createElement("tr",null,this.getDaysOfWeek(a).map(function(e,t){return n.createElement("th",{key:e+t,className:"dow"},e)}))),n.createElement("tbody",{key:"tb"},this.renderDays())];return e&&r.push(e),n.createElement("div",{className:"rdtDays"},n.createElement("table",null,r))},t.defaultProps={classPrefix:"a-"},t}(n.Component),f=function(e){function t(t){var a=e.call(this,t)||this;return a.state={isOpened:!1,isFocused:!1,value:a.props.value?s(a.props.value,a.props.format):void 0},a.domRef=function(e){a.dom=e},a.handleChange=a.handleChange.bind(a),a.checkIsValidDate=a.checkIsValidDate.bind(a),a.open=a.open.bind(a),a.close=a.close.bind(a),a.handleFocus=a.handleFocus.bind(a),a.handleBlur=a.handleBlur.bind(a),a.clearValue=a.clearValue.bind(a),a.handleClick=a.handleClick.bind(a),a.handleKeyPress=a.handleKeyPress.bind(a),a.getParent=a.getParent.bind(a),a.getTarget=a.getTarget.bind(a),a.handlePopOverClick=a.handlePopOverClick.bind(a),a}return a.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.value!==e.value&&this.setState({value:e.value?s(e.value,e.format):void 0})},t.prototype.focus=function(){this.dom&&this.dom.focus()},t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!1})},t.prototype.handleKeyPress=function(e){" "===e.key&&this.handleClick()},t.prototype.handleClick=function(){this.state.isOpened?this.close():this.open()},t.prototype.handlePopOverClick=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.open=function(e){this.props.disabled||this.setState({isOpened:!0},e)},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.clearValue=function(e){e.preventDefault(),e.stopPropagation();var t=this.props.onChange;t("")},t.prototype.handleChange=function(e){var t=this.props,a=t.onChange,n=t.format,r=t.minTime,o=t.maxTime,i=t.dateFormat,l=t.timeFormat;s.isMoment(e)&&(r&&e&&e.isBefore(r,"second")?e=r:o&&e&&e.isAfter(o,"second")&&(e=o),a(e.format(n)),i&&!l&&this.close())},t.prototype.checkIsValidDate=function(e){var t=this.props,a=t.minDate,n=t.maxDate;return a&&e.isBefore(a,"day")?!1:n&&e.isAfter(n,"day")?!1:!0},t.prototype.getTarget=function(){return this.dom},t.prototype.getParent=function(){return this.dom},t.prototype.render=function(){var e=this.props,t=e.classPrefix,a=e.className,s=e.value,o=e.placeholder,i=e.disabled,l=(e.format,e.inputFormat),h=e.dateFormat,m=e.timeFormat,f=e.viewMode,y=e.timeConstraints,v=e.popOverContainer,D=e.clearable,C=this.state.isOpened,g=this.state.value;return n.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:r(t+"DatePicker",{"is-disabled":i,"is-focused":this.state.isFocused},a),ref:this.domRef,onClick:this.handleClick},g?n.createElement("span",{className:t+"DatePicker-value"},g.format(l)):n.createElement("span",{className:t+"DatePicker-placeholder"},o),D&&s?n.createElement("a",{className:t+"DatePicker-clear",onClick:this.clearValue},c.closeIcon):null,n.createElement("a",{className:t+"DatePicker-toggler"}),C?n.createElement(p.default,{placement:"left-bottom-left-top right-bottom-right-top",target:this.getTarget,container:v||this.getParent,rootClose:!1,show:!0},n.createElement(d.default,{classPrefix:t,className:t+"DatePicker-popover",onHide:this.close,overlay:!0,onClick:this.handlePopOverClick},n.createElement(u,{value:g,onChange:this.handleChange,classPrefix:t,classnames:r,requiredConfirm:h&&m,dateFormat:h,timeFormat:m,isValidDate:this.checkIsValidDate,viewMode:f,timeConstraints:y,input:!1,onClose:this.close}))):null)},t.defaultProps={viewMode:"days"},t}(n.Component);t.DatePicker=f,t.default=h.themeable(f)});
;/*!src/components/DateRangePicker.tsx*/
define("eaae631",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),r=e("node_modules/moment/moment"),s=e("node_modules/react-dom/index"),i=e("node_modules/classnames/index"),o=e("b7bbd16"),d=e("997df41"),l=e("dd24912"),c=e("2b3dcdf"),u=e("256b65d"),h={today:{label:"今天",startDate:function(e){return e.startOf("day")},endDate:function(e){return e}},yesterday:{label:"昨天",startDate:function(e){return e.add(-1,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}},"1dayago":{label:"最近1天",startDate:function(e){return e.add(-1,"days")},endDate:function(e){return e}},"7daysago":{label:"最近7天",startDate:function(e){return e.add(-7,"days")},endDate:function(e){return e}},"90daysago":{label:"最近90天",startDate:function(e){return e.add(-90,"days")},endDate:function(e){return e}},prevweek:{label:"上周",startDate:function(e){return e.add(-1,"days").startOf("week").add(-1,"weeks")},endDate:function(e){return e.add(-1,"days").startOf("week").add(-1,"day").endOf("day")}},thismonth:{label:"本月",startDate:function(e){return e.startOf("month")},endDate:function(e){return e}},prevmonth:{label:"上个月",startDate:function(e){return e.startOf("month").add(-1,"month")},endDate:function(e){return e.startOf("month").add(-1,"day").endOf("day")}},prevquarter:{label:"上个季节",startDate:function(e){return e.startOf("quarter").add(-1,"quarter")},endDate:function(e){return e.startOf("quarter").add(-1,"day").endOf("day")}},thisquarter:{label:"本季度",startDate:function(e){return e.startOf("quarter")},endDate:function(e){return e}}},p=function(e){function t(r){var s=e.call(this,r)||this;s.open=s.open.bind(s),s.close=s.close.bind(s),s.handleStartChange=s.handleStartChange.bind(s),s.handleEndChange=s.handleEndChange.bind(s),s.handleFocus=s.handleFocus.bind(s),s.handleBlur=s.handleBlur.bind(s),s.checkStartIsValidDate=s.checkStartIsValidDate.bind(s),s.checkEndIsValidDate=s.checkEndIsValidDate.bind(s),s.confirm=s.confirm.bind(s),s.clearValue=s.clearValue.bind(s),s.dom=n.createRef(),s.handleClick=s.handleClick.bind(s),s.handleKeyPress=s.handleKeyPress.bind(s),s.handlePopOverClick=s.handlePopOverClick.bind(s);var i=s.props,o=i.format,d=i.joinValues,l=i.delimiter,c=i.value;return s.state=a.__assign({isOpened:!1,isFocused:!1},t.unFormatValue(c,o,d,l)),s}return a.__extends(t,e),t.formatValue=function(e,t,a,n){return e=[e.startDate.format(t),e.endDate.format(t)],a&&(e=e.join(n)),e},t.unFormatValue=function(e,t,a,n){return e?(a&&"string"==typeof e&&(e=e.split(n)),{startDate:e[0]?r(e[0],t):void 0,endDate:e[1]?r(e[1],t):void 0}):{startDate:void 0,endDate:void 0}},t.prototype.componentWillReceiveProps=function(e){var n=this.props,r=e.value,s=e.format,i=e.joinValues,o=e.delimiter;n.value!==r&&this.setState(a.__assign({},t.unFormatValue(r,s,i,o)))},t.prototype.focus=function(){this.dom.current&&!this.props.disabled&&this.dom.current.focus()},t.prototype.blur=function(){this.dom.current&&!this.props.disabled&&this.dom.current.blur()},t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!1})},t.prototype.open=function(){this.props.disabled||this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1},this.blur)},t.prototype.handleClick=function(){this.state.isOpened?this.close():this.open()},t.prototype.handlePopOverClick=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.handleKeyPress=function(e){" "===e.key&&this.handleClick()},t.prototype.confirm=function(){this.state.startDate&&this.state.endDate&&(this.state.startDate.isAfter(this.state.endDate)||(this.props.onChange(t.formatValue({startDate:this.state.startDate,endDate:this.state.endDate},this.props.format,this.props.joinValues,this.props.delimiter)),this.close()))},t.prototype.handleStartChange=function(e){this.setState({startDate:e.clone()})},t.prototype.handleEndChange=function(e){e=this.state.endDate||this.props.timeFormat?e:e.endOf("day"),this.setState({endDate:e.clone()})},t.prototype.selectRannge=function(e){var t=r();this.setState({startDate:e.startDate(t.clone()),endDate:e.endDate(t.clone())})},t.prototype.clearValue=function(e){e.preventDefault(),e.stopPropagation();var t=this.props,a=t.resetValue,n=t.onChange;n(a)},t.prototype.checkStartIsValidDate=function(e){var t=this.state.endDate,a=this.props,n=a.minDate,r=a.maxDate;return r=r&&t?r.isBefore(t)?r:t:r||t,n&&e.isBefore(n,"day")?!1:r&&e.isAfter(r,"day")?!1:!0},t.prototype.checkEndIsValidDate=function(e){var t=this.state.startDate,a=this.props,n=a.minDate,r=a.maxDate;return n=n&&t?n.isAfter(t)?n:t:n||t,n&&e.isBefore(n,"day")?!1:r&&e.isAfter(r,"day")?!1:!0},t.prototype.render=function(){var e=this,a=this.props,r=a.className,u=a.classPrefix,p=a.value,f=a.placeholder,m=a.popOverContainer,D=a.inputFormat,y=a.format,b=a.joinValues,g=a.delimiter,k=a.clearable,v=a.timeFormat,C=a.ranges,P=a.disabled,O=a.iconClassName,V=this.state,E=V.isOpened,F=V.isFocused,N=V.startDate,R=V.endDate,S=t.unFormatValue(p,y,b,g),B=S.startDate?S.startDate.format(D):"",_=S.endDate?S.endDate.format(D):"",x=[];return B&&x.push(B),_&&x.push(_),n.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:i(u+"DateRangePicker",{"is-disabled":P,"is-focused":F},r),ref:this.dom,onClick:this.handleClick},x.length?n.createElement("span",{className:u+"DateRangePicker-value"},x.join(" 至 ")):n.createElement("span",{className:u+"DateRangePicker-placeholder"},f),k&&p?n.createElement("a",{className:u+"DateRangePicker-clear",onClick:this.clearValue},o.closeIcon):null,n.createElement("a",{className:u+"DateRangePicker-toggler"},n.createElement("i",{className:O})),E?n.createElement(d.default,{placement:"left-bottom-left-top right-bottom-right-top",target:function(){return e.dom.current},onHide:this.close,container:m||function(){return s.findDOMNode(e)},rootClose:!1,show:!0},n.createElement(c.default,{classPrefix:u,className:u+"DateRangePicker-popover",onHide:this.close,onClick:this.handlePopOverClick,overlay:!0},n.createElement("div",{className:u+"DateRangePicker-wrap"},C?n.createElement("ul",{className:u+"DateRangePicker-rangers"},("string"==typeof C?C.split(","):Array.isArray(C)?C:[]).filter(function(e){return!!h[e]}).map(function(t){return n.createElement("li",{className:u+"DateRangePicker-ranger",onClick:function(){return e.selectRannge(h[t])},key:t},n.createElement("a",null,h[t].label))})):null,n.createElement(l.BaseDatePicker,{classPrefix:u,classnames:i,className:u+"DateRangePicker-start",value:N,onChange:this.handleStartChange,requiredConfirm:!1,dateFormat:y,timeFormat:v,isValidDate:this.checkStartIsValidDate,viewMode:"days",input:!1,onClose:this.close}),n.createElement(l.BaseDatePicker,{classPrefix:u,classnames:i,className:u+"DateRangePicker-end",value:R,onChange:this.handleEndChange,requiredConfirm:!1,dateFormat:y,timeFormat:v,isEndDate:!0,isValidDate:this.checkEndIsValidDate,viewMode:"days",input:!1,onClose:this.close}),n.createElement("div",{key:"button",className:u+"DateRangePicker-actions"},n.createElement("a",{className:i("rdtBtn rdtBtnConfirm",{"is-disabled":!this.state.startDate||!this.state.endDate}),onClick:this.confirm},"确认"),n.createElement("a",{className:"rdtBtn rdtBtnCancel",onClick:this.close},"取消"))))):null)},t.defaultProps={placeholder:"请选择日期范围",format:"X",inputFormat:"YYYY-MM-DD",joinValues:!0,clearable:!0,delimiter:",",ranges:"yesterday,7daysago,prevweek,thismonth,prevmonth,prevquarter",iconClassName:"fa fa-calendar",resetValue:""},t}(n.Component);t.DateRangePicker=p,t.default=u.themeable(p)});
;/*!src/components/Drawer.tsx*/
define("01a937e",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),i=e("node_modules/react-transition-group/Transition"),r=e("node_modules/react-overlays/lib/index"),a=e("b7bbd16"),d=e("node_modules/classnames/index"),s=e("8768414"),l=e("node_modules/react-onclickoutside/lib/index"),c=e("256b65d"),u=e("9a80175"),m=(f={},f[i.ENTERING]="in",f[i.ENTERED]="in",f),p=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.contentRef=function(e){return n.contentDom=e},n.handleEntered=function(){var e=n.props.onEntered;document.body.classList.add("is-modalOpened"),e&&e()},n.handleExited=function(){var e=n.props.onExited;e&&e(),setTimeout(function(){document.querySelector(".amis-dialog-widget")||document.body.classList.remove("is-modalOpened")},200)},n.modalRef=function(e){e?(s.addModal(n),e.classList.add(n.props.classPrefix+"Modal--"+s.current()+"th")):s.removeModal()},n}return t.__extends(n,e),n.prototype.componentDidMount=function(){this.props.show&&this.handleEntered()},n.prototype.componentWillUnmount=function(){this.props.show&&this.handleExited()},n.prototype.handleClickOutside=function(){var e=this.props,n=e.closeOnOutside,t=e.onHide;n&&t&&t()},n.prototype.render=function(){var e=this,n=this.props,t=n.classPrefix,s=n.className,l=n.children,c=n.container,u=n.show,p=n.position,f=n.size,h=n.onHide,E=n.disabled,v=n.overlay;return o.createElement(r.Portal,{container:c},o.createElement(i.default,{mountOnEnter:!0,unmountOnExit:!0,"in":u,timeout:500,onExited:this.handleExited,onEntered:this.handleEntered},function(n){return n===i.ENTERING&&e.contentDom.offsetWidth,o.createElement("div",{ref:e.modalRef,role:"dialog",className:d("amis-dialog-widget "+t+"Drawer",(r={},r[t+"Drawer--"+p]=p,r[t+"Drawer--"+f]=f,r[t+"Drawer--noOverlay"]=!v,r),s)},v?o.createElement("div",{className:d(t+"Drawer-overlay",m[n])}):null,o.createElement("div",{ref:e.contentRef,className:d(t+"Drawer-content",m[n])},o.createElement("a",{onClick:E?void 0:h,className:t+"Drawer-close"},a.closeIcon),l));var r}))},n.defaultProps={container:document.body,position:"left",size:"md",overlay:!0,disableOnClickOutside:u.noop,enableOnClickOutside:u.noop},n}(o.Component);n.Drawer=p,n.default=c.themeable(l.default(p));var f});
;/*!src/components/DropdownButton.tsx*/
define("756a83e",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/react-bootstrap/lib/index");t.default=o.DropdownButton});
;/*!src/components/LazyComponent.tsx*/
define("4783ce8",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),s=e("node_modules/react-visibility-sensor/visibility-sensor"),l=function(e){function t(t){var i=e.call(this,t)||this;return i.handleVisibleChange=i.handleVisibleChange.bind(i),i.state={visible:!1,component:t.component},i}return i.__extends(t,e),t.prototype.handleVisibleChange=function(e){var t=this;this.setState({visible:e}),e&&!this.state.component&&this.props.getComponent&&this.props.getComponent().then(function(e){return t.setState({component:e})}).catch(function(e){return t.setState({component:function(){return n.createElement("div",{className:"alert alert-danger"},String(e))}})})},t.prototype.render=function(){var e=this.props,t=e.placeholder,l=e.unMountOnHidden,a=e.childProps,o=e.visiblilityProps,r=e.partialVisibility,c=i.__rest(e,["placeholder","unMountOnHidden","childProps","visiblilityProps","partialVisibility"]),d=this.state,p=d.visible,h=d.component;return l?n.createElement(s,i.__assign({},o,{partialVisibility:r,onChange:this.handleVisibleChange}),n.createElement("div",{className:"visibility-sensor"},h&&p?n.createElement(h,i.__assign({},c,a)):t)):p?h?n.createElement(h,i.__assign({},c,a)):n.createElement("div",null,t):n.createElement(s,i.__assign({},o,{partialVisibility:r,onChange:this.handleVisibleChange}),n.createElement("div",{className:"visibility-sensor"},t))},t.defaultProps={placeholder:"加载中...",unMountOnHidden:!1,partialVisibility:!0},t}(n.Component);t.default=l});
;/*!src/components/Radios.tsx*/
define("8e37af0",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),t=e("node_modules/uncontrollable/index"),i=e("0a43d97"),o=e("f203847"),r=e("node_modules/lodash/chunk"),s=e("256b65d"),u=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(l,e),l.prototype.toggleOption=function(e){var l=this.props,a=l.value,n=l.onChange,t=l.joinValues,i=l.extractValue,r=l.valueField,s=l.clearable,u=l.delimiter,d=l.options,c=o.value2array(a,{multiple:!1,delimiter:u,valueField:r,options:d}),m=c.indexOf(e);~m?s&&c.splice(m,1):c=[e];var p=c[0];p&&(t||i)&&(p=p[r||"value"]),n&&n(p)},l.prototype.render=function(){var e=this,l=this.props,a=l.value,t=l.options,s=l.className,u=l.classnames,d=l.placeholder,c=l.columnsCount,m=l.disabled,p=l.inline,f=l.delimiter,v=l.valueField,h=l.classPrefix,b=o.value2array(a,{multiple:!1,delimiter:f,valueField:v,options:t}),y=[];if(t&&(y=t.map(function(l,a){return n.createElement(i.default,{type:"radio",classPrefix:h,key:a,onChange:function(){return e.toggleOption(l)},checked:!!~b.indexOf(l),className:l.className,disabled:m||l.disabled,inline:p},l.label)})),!p&&c>1){var g=12/c,x="Grid-col--sm"+(g===Math.round(g)?g:"");y=r(y,c).map(function(e,l){return n.createElement("div",{className:u("Grid"),key:l},e.map(function(e,l){return n.createElement("div",{key:l,className:u(x)},e)}))})}return n.createElement("div",{className:s},y&&y.length?y:d)},l.defaultProps={joinValues:!0,clearable:!1,columnsCount:1},l}(n.Component);l.Radios=u,l.default=s.themeable(t(u,{value:"onChange"}))});
;/*!src/components/Range.tsx*/
define("736bbb6",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),t=e("node_modules/react/index"),l=e("node_modules/react-input-range/lib/js/index"),u=e("node_modules/uncontrollable/index"),i=e("256b65d"),r=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.min,u=e.max,i=e.value,r=e.className,s=e.classPrefix,o={activeTrack:s+"InputRange-track is-active",disabledInputRange:s+"InputRange is-disabled",inputRange:s+"InputRange",labelContainer:s+"InputRange-labelContainer",maxLabel:s+"InputRange-label "+s+"InputRange-label--max",minLabel:s+"InputRange-label "+s+"InputRange-label--min",slider:s+"InputRange-slider",sliderContainer:s+"InputRange-sliderContainer",track:s+"InputRange-track "+s+"InputRange-track--background",valueLabel:s+"InputRange-label "+s+"InputRange-label--value"};return t.createElement(l,a.__assign({},this.props,{className:r,classNames:o,minValue:n,maxValue:u,value:"number"==typeof i?i:n}))},n.defaultProps={min:1,max:100},n}(t.Component);n.Range=r,n.default=i.themeable(u(r,{value:"onChange"}))});
;/*!src/components/Rating.tsx*/
define("1b690d8",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("node_modules/tslib/tslib"),s=t("node_modules/react/index"),r=t("node_modules/classnames/index"),n=t("256b65d"),i=function(t){function e(e){var a=t.call(this,e)||this;return a.state={value:e.value||0,stars:[],halfStar:{at:Math.floor(e.value),hidden:e.half&&e.value%1<.5}},a.getRate=a.getRate.bind(a),a.getStars=a.getStars.bind(a),a.moreThanHalf=a.moreThanHalf.bind(a),a.mouseOver=a.mouseOver.bind(a),a.mouseLeave=a.mouseLeave.bind(a),a.handleClick=a.handleClick.bind(a),a}return a.__extends(e,t),e.prototype.componentDidMount=function(){var t=this.state.value;this.setState({stars:this.getStars(t)})},e.prototype.componentWillReceiveProps=function(t){this.setState({stars:this.getStars(t.value),value:t.value,halfStar:{at:Math.floor(t.value),hidden:t.half&&t.value%1<.5}})},e.prototype.getRate=function(){var t,e=this.state.value,a=this.props.half;return t=a?Math.floor(e):Math.round(e)},e.prototype.getStars=function(t){"undefined"==typeof t&&(t=this.getRate());for(var e=[],a=this.props.count,s=0;a>s;s++)e.push({active:t-1>=s});return e},e.prototype.mouseOver=function(t){var e=this.props,a=e.readOnly,s=e.size,r=e.half;if(!a){var n=Number(t.target.getAttribute("data-index"));if(r){var i=this.moreThanHalf(t,s);i&&(n+=1),this.setState({halfStar:{at:n,hidden:i}})}else n+=1;this.setState({stars:this.getStars(n)})}},e.prototype.moreThanHalf=function(t,e){var a=t.target,s=t.clientX-a.getBoundingClientRect().left;return s=Math.round(Math.abs(s)),s>e/2},e.prototype.mouseLeave=function(){var t=this.state.value,e=this.props,a=e.half,s=e.readOnly;s||(a&&this.setState({halfStar:{at:Math.floor(t),hidden:t%1===0}}),this.setState({stars:this.getStars()}))},e.prototype.handleClick=function(t){var e=this.props,a=e.half,s=e.readOnly,r=e.onChange,n=e.size;if(!s){var i,o=Number(t.target.getAttribute("data-index"));if(a){var l=this.moreThanHalf(t,n);l&&(o+=1),i=l?o:o+.5,this.setState({halfStar:{at:o,hidden:l}})}else i=o+=1;this.setState({value:i,stars:this.getStars(o)}),r&&r(i)}},e.prototype.renderStars=function(){var t=this,e=this.state,a=e.halfStar,r=e.stars,n=this.props,i=n.char,o=n.half,l=n.readOnly,h=n.classnames;return r.map(function(e,r){var n=h("Rating",{"Rating-half":o&&!a.hidden&&a.at===r,"is-active":e.active,"is-disabled":l});return s.createElement("span",{className:n,key:r,"data-index":r,"data-forhalf":i,onMouseOver:t.mouseOver,onMouseMove:t.mouseOver,onMouseLeave:t.mouseLeave,onClick:t.handleClick},i)})},e.prototype.render=function(){var t=this.props.className;return s.createElement("div",{className:r(t?t:"")},this.renderStars())},e.defaultProps={containerClass:"rating",readOnly:!1,half:!0,value:0,count:5,"char":"★",size:24},e}(s.Component);e.Rating=i,e.default=n.themeable(i)});
;/*!src/components/Spinner.tsx*/
define("acad559",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),s=e("node_modules/react/index"),t=e("256b65d"),a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.mode,r=e.overlay,t=e.spinnerClassName,a=e.classPrefix,i=e.classnames,l=e.size,o=s.createElement("div",{className:i(a+"Spinner",t,(d={},d["Spinner--"+n]=!!n,d["Spinner--"+l]=!!l,d))});return r?s.createElement("div",{className:i("Spinner-overlay")},o):o;var d},n.defaultProps={overlay:!1,spinnerClassName:"",mode:"",size:""},n}(s.Component);n.Spinner=a,n.default=t.themeable(a)});
;/*!src/components/Switch.tsx*/
define("aa2413a",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var l=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),t=e("256b65d"),i={md:"i-switch-md",lg:"i-switch-lg",middle:"i-switch-md",large:"i-switch-lg"},s={info:"bg-info",primary:"bg-primary",danger:"bg-danger"},r=function(e){function a(a){var l=e.call(this,a)||this;return l.hanldeCheck=l.hanldeCheck.bind(l),l}return l.__extends(a,e),a.prototype.hanldeCheck=function(e){var a=this.props,l=a.trueValue,n=a.falseValue,t=a.onChange;t&&t(e.currentTarget.checked?l:n)},a.prototype.render=function(){var e=this.props,a=e.size,t=e.level,r=e.className,d=(e.classPrefix,e.onChange,e.value),c=(e.inline,e.trueValue),u=(e.falseValue,e.disabled),h=e.readOnly,o=e.checked,f=e.classnames,m=l.__rest(e,["size","level","className","classPrefix","onChange","value","inline","trueValue","falseValue","disabled","readOnly","checked","classnames"]);return r=(r?r:"")+(a&&i[a]?" "+i[a]:"")+(t&&s[t]?" "+s[t]:""),n.createElement("label",{className:f("Switch",u?"is-disabled":"",r)},n.createElement("input",l.__assign({type:"checkbox",checked:"undefined"!=typeof o?o:"undefined"==typeof d?!1:d==c,onChange:this.hanldeCheck,disabled:u,readOnly:h},m)),n.createElement("i",null))},a.defaultProps={trueValue:!0,falseValue:!1},a}(n.PureComponent);a.Switch=r,a.default=t.themeable(r)});
;/*!src/components/Textarea.tsx*/
define("05807e2",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/react-textarea-autosize/lib/index");t.default=a});
;/*!src/components/TitleBar.tsx*/
define("06d307c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=e("node_modules/react/index"),r=e("256b65d"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,a=e.title,r=e.titleClassName,s=e.right,i=a?l.createElement("div",{className:r},a):null,n=i;return n=s?l.createElement("div",{className:"hbox hbox-auto-xs h-auto"},l.createElement("div",{className:"col bg-light b-b wrapper"},i),l.createElement("div",{className:"col v-middle padder-md text-right bg-light b-b wrapper-sm"},s)):l.createElement("div",{className:"wrapper"},i),l.createElement("div",{className:t},n)},t.defaultProps={className:"bg-light lter b-b",title:"标题",titleClassName:"m-n font-thin h3",right:!1},t}(l.PureComponent);t.TitleBar=s,t.default=r.themeable(s)});
;/*!src/components/Toast.tsx*/
define("6ae88e0",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t("node_modules/tslib/tslib"),i=t("node_modules/react-transition-group/Transition"),o=t("node_modules/react/index"),s=t("node_modules/classnames/index"),r=t("580df19"),a=t("9a80175"),u=t("256b65d"),d=(h={},h[i.ENTERING]="in",h[i.ENTERED]="",h[i.EXITING]="out",h[i.EXITED]="hidden",h),l=null,c={},p=function(t,e,i,o){void 0===e&&(e=""),void 0===i&&(i={}),l&&l[o]&&l[o](t,e||"",n.__assign({},c,i))},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasRendered=!1,e.state={items:[]},e}return n.__extends(e,t),e.prototype.componentWillMount=function(){var t=this.props,e=t.closeButton,n=t.timeOut,i=t.extendedTimeOut;c={closeButton:e,timeOut:n,extendedTimeOut:i}},e.prototype.componentDidMount=function(){this.hasRendered=!0,l=this},e.prototype.componentWillUnmount=function(){this.hasRendered&&(l=null)},e.prototype.notifiy=function(t,e,i,o){var s=this.state.items.concat();s.push(n.__assign({title:i,body:e,level:t},o,{id:a.uuid()})),this.setState({items:s})},e.prototype.success=function(t,e,n){this.notifiy("success",t,e,n)},e.prototype.error=function(t,e,n){this.notifiy("error",t,e,n)},e.prototype.info=function(t,e,n){this.notifiy("info",t,e,n)},e.prototype.warning=function(t,e,n){this.notifiy("warning",t,e,n)},e.prototype.handleDismissed=function(t){var e=this.state.items.concat();e.splice(t,1),this.setState({items:e})},e.prototype.render=function(){var t=this;if(l&&!this.hasRendered)return null;var e=this.props,n=e.classPrefix,i=e.className,r=e.timeOut,a=e.position,u=this.state.items;return o.createElement("div",{className:s(n+"Toast-wrap "+n+"Toast-wrap--"+a.replace(/\-(\w)/g,function(t,e){return e.toUpperCase()}),i)},u.map(function(e,i){return o.createElement(f,{key:e.id,classPrefix:n,title:e.title,body:e.body,level:e.level||"info",timeOut:r,onDismiss:t.handleDismissed.bind(t,i)})}))},e.defaultProps={position:"top-right",closeButton:!1,timeOut:5e3,extendedTimeOut:3e3},n.__decorate([a.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String,Object]),n.__metadata("design:returntype",void 0)],e.prototype,"success",null),n.__decorate([a.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String,Object]),n.__metadata("design:returntype",void 0)],e.prototype,"error",null),n.__decorate([a.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String,Object]),n.__metadata("design:returntype",void 0)],e.prototype,"info",null),n.__decorate([a.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String,String,Object]),n.__metadata("design:returntype",void 0)],e.prototype,"warning",null),e}(o.PureComponent);e.ToastComponent=m,e.default=u.themeable(m);var f=function(t){function e(e){var n=t.call(this,e)||this;return n.state={visible:!1},n.content=o.createRef(),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseLeave=n.handleMouseLeave.bind(n),n.handleEntered=n.handleEntered.bind(n),n.close=n.close.bind(n),n}return n.__extends(e,t),e.prototype.componentWillUnmount=function(){clearTimeout(this.timer)},e.prototype.componentDidMount=function(){this.setState({visible:!0})},e.prototype.handleMouseEnter=function(){clearTimeout(this.timer)},e.prototype.handleMouseLeave=function(){this.handleEntered()},e.prototype.handleEntered=function(){var t=this.props.timeOut;this.timer=setTimeout(this.close,t)},e.prototype.close=function(){clearTimeout(this.timer),this.setState({visible:!1})},e.prototype.render=function(){var t=this,e=this.props,n=e.onDismiss,a=e.classPrefix,u=(e.position,e.title),l=e.body,c=e.allowHtml,p=e.level;return o.createElement(i.default,{mountOnEnter:!0,unmountOnExit:!0,"in":this.state.visible,timeout:750,onEntered:this.handleEntered,onExited:n},function(e){return e===i.ENTERING&&t.content.current&&t.content.current.offsetWidth,o.createElement("div",{ref:t.content,className:s(a+"Toast "+a+"Toast--"+p,d[e]),onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave,onClick:t.close},u?o.createElement("div",{className:a+"Toast-title"},u):null,o.createElement("div",{className:a+"Toast-body"},c?o.createElement(r.default,{html:l}):l))})},e.defaultProps={timeOut:5e3,classPrefix:"",position:"top-right",allowHtml:!0,level:"info"},e}(o.Component);e.ToastMessage=f,e.toast={container:l,success:function(t,e,n){return p(t,e,n,"success")},error:function(t,e,n){return p(t,e,n,"error")},info:function(t,e,n){return p(t,e,n,"info")},warning:function(t,e,n){return p(t,e,n,"warning")}};var h});
;/*!src/components/Tree.tsx*/
define("d233af4",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),i=e("node_modules/react/index"),n=e("9a80175"),a=e("f203847"),d=e("256b65d"),r=e("b86428a"),s=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(l,e),l.prototype.componentWillMount=function(){this.renderList=this.renderList.bind(this),this.handleSelect=this.handleSelect.bind(this),this.clearSelect=this.clearSelect.bind(this),this.handleCheck=this.handleCheck.bind(this),this.toggleUnfolded=this.toggleUnfolded.bind(this);var e=this.props;this.setState({value:a.value2array(e.value,{joinValues:e.joinValues,extractValue:e.extractValue,multiple:e.multiple,delimiter:e.delimiter,valueField:e.valueField,options:e.data}),unfolded:this.syncUnFolded(e)})},l.prototype.componentWillReceiveProps=function(e){var l={};(this.props.value!==e.value||this.props.data!==e.data)&&(l.value=a.value2array(e.value,{joinValues:e.joinValues,extractValue:e.extractValue,multiple:e.multiple,delimiter:e.delimiter,valueField:e.valueField,options:e.data})),this.props.data!==e.data&&(l.unfolded=this.syncUnFolded(e)),this.setState(l)},l.prototype.syncUnFolded=function(e){var l={},t=this.props,i=t.foldedField,a=t.unfoldedField;return n.eachTree(e.data,function(t,n,d){if(t.children&&t.children.length){var r=!0;a&&"undefined"!=typeof t[a]?r=!!t[a]:i&&"undefined"!=typeof t[i]?r=!t[i]:(r=!!e.initiallyOpen,!r&&d<=e.unfoldedLevel&&(r=!0)),l[t[e.valueField]]=r}}),l},l.prototype.toggleUnfolded=function(e){this.setState({unfolded:t.__assign({},this.state.unfolded,(l={},l[e[this.props.valueField]]=!this.state.unfolded[e[this.props.valueField]],l))});var l},l.prototype.clearSelect=function(){var e=this;this.setState({value:[]},function(){var l=e.props,t=l.joinValues,i=l.rootValue,n=l.onChange;n(t?i:[])})},l.prototype.handleSelect=function(e){var l=this;this.setState({value:[e]},function(){var t=l.props,i=t.joinValues,n=t.valueField,a=t.onChange;a(i?e[n]:e)})},l.prototype.handleCheck=function(e,l){var t=this,i=this.props,n=this.state.value.concat(),a=n.indexOf(e),d=this.props.onlyChildren;if(l){if(~a||n.push(e),!i.cascade){var r=e.children?e.children.concat([]):[];if(d)for(!~a&&r.length&&n.shift();r.length;){var s=r.shift(),o=n.indexOf(s);s.children?r.push.apply(r,s.children):~o||n.push(s)}else for(;r.length;){var s=r.shift(),o=n.indexOf(s);~o&&n.splice(o,1),i.withChildren&&n.push(s),s.children&&s.children.length&&r.push.apply(r,s.children)}}}else if(!l&&(~a&&n.splice(a,1),!i.cascade&&(i.withChildren||d)))for(var r=e.children?e.children.concat([]):[];r.length;){var s=r.shift(),o=n.indexOf(s);~o&&n.splice(o,1),s.children&&s.children.length&&r.push.apply(r,s.children)}this.setState({value:n},function(){var e=t.props,l=e.joinValues,i=e.extractValue,a=e.valueField,d=e.delimiter,r=e.onChange;r(l?n.map(function(e){return e[a]}).join(d):i?n.map(function(e){return e[a]}):n)})},l.prototype.renderList=function(e,l,t){var a=this,d=this.props,s=d.itemClassName,o=d.showIcon,c=d.showRadio,h=d.multiple,u=d.disabled,p=d.nameField,m=void 0===p?"":p,f=d.valueField,v=void 0===f?"":f,b=d.iconField,g=void 0===b?"":b,C=d.disabledField,y=void 0===C?"":C,k=d.cascade,x=d.selfDisabledAffectChildren,F=d.onlyChildren,T=d.classnames,E=d.highlightTxt,N=d.data,V=0,S=e.map(function(e,d){if(!n.isVisible(e,N))return null;var p=!!~l.indexOf(e),f=e[y],b=!!t||p,C=null,S=!1;e.children&&e.children.length&&(C=a.renderList(e.children,l,k?!1:t||(x?f:!1)||h&&p),S=!!C.childrenChecked,!b&&F&&e.children.length===C.childrenChecked&&(b=!0),C=C.dom),(S||p)&&V++;var L=!!t||!!u||f,j=h?i.createElement("label",{className:T("Checkbox Checkbox--checkbox Checkbox--sm")},i.createElement("input",{type:"checkbox",disabled:L,checked:b,onChange:function(l){return a.handleCheck(e,l.currentTarget.checked)}}),i.createElement("i",null)):c?i.createElement("label",{className:T("Checkbox Checkbox--radio Checkbox--sm")},i.createElement("input",{type:"radio",disabled:L,checked:p,onChange:function(){return a.handleSelect(e)}}),i.createElement("i",null)):null,w=!e.children||!e.children.length;return i.createElement("li",{key:d,className:T("Tree-item "+(s||""),{"Tree-item--isLeaf":w})},i.createElement("a",null,w?null:i.createElement("i",{onClick:function(){return a.toggleUnfolded(e)},className:T("Tree-itemArrow",{"is-folded":!a.state.unfolded[e[v]]})}),o?i.createElement("i",{className:T("Tree-itemIcon "+(e[g]||(C?"Tree-folderIcon":"Tree-leafIcon")))}):null,j,i.createElement("span",{className:T("Tree-itemText",{"is-children-checked":h&&!k&&S&&!L,"is-checked":p,"is-disabled":L}),onClick:function(){return!L&&(h?a.handleCheck(e,!b):a.handleSelect(e))}},E?r.highlight(e[m],E):e[m])),C?i.createElement("ul",{className:T("Tree-sublist",{"is-folded":!a.state.unfolded[e[v]]})},C):null)});return{dom:S,childrenChecked:V}},l.prototype.render=function(){var e=this.props,l=e.className,t=e.placeholder,n=e.hideRoot,a=e.rootLabel,d=e.showIcon,r=e.classnames,s=this.props.data,o=this.state.value;return i.createElement("div",{className:r("Tree "+(l||""))},s&&s.length?i.createElement("ul",{className:r("Tree-list")},n?this.renderList(s,o,!1).dom:i.createElement("li",{className:r("Tree-item Tree-rootItem")},i.createElement("a",null,d?i.createElement("i",{className:r("Tree-itemIcon Tree-rootIcon")}):null,i.createElement("label",{className:r("Tree-itemLabel",{"is-checked":!o||!o.length})},i.createElement("span",{className:r("Tree-itemText"),onClick:this.clearSelect},a))),i.createElement("ul",{className:r("Tree-sublist")},this.renderList(s,o,!1).dom))):i.createElement("div",{className:r("Tree-placeholder")},t))},l.defaultProps={showIcon:!0,initiallyOpen:!0,unfoldedLevel:0,showRadio:!1,multiple:!1,disabled:!1,withChildren:!1,onlyChildren:!1,nameField:"name",valueField:"value",iconField:"icon",unfoldedField:"unfolded",foldedField:"foled",disabledField:"disabled",joinValues:!0,extractValue:!1,delimiter:",",hideRoot:!0,rootLabel:"顶级",rootValue:0,cascade:!1,selfDisabledAffectChildren:!0},l}(i.Component);l.TreeSelector=s,l.default=d.themeable(s)});
;/*!src/components/index.tsx*/
define("1953fc1",function(a,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=a("bb0be5b");e.NotFound=t.default;var d=a("bfe4ee0");e.AlertComponent=d.default,e.alert=d.alert,e.confirm=d.confirm;var r=a("4e7c54b");e.AsideNav=r.default;var f=a("a67acca");e.Button=f.default;var l=a("0a43d97");e.Checkbox=l.default;var u=a("f203847");e.Checkboxes=u.default;var v=a("0d13109");e.Collapse=v.default;var o=a("f11d26b");e.ColorPicker=o.default;var c=a("dd24912");e.DatePicker=c.default;var n=a("eaae631");e.DateRangePicker=n.default;var b=a("01a937e");e.Drawer=b.default;var i=a("756a83e");e.DropdownButton=i.default;var p=a("580df19");e.Html=p.default;var s=a("b7bbd16");e.Icons=s;var C=a("4c26fd3");e.Layout=C.default;var m=a("4783ce8");e.LazyComponent=m.default;var T=a("628f736");e.Modal=T.default;var k=a("997df41");e.Overlay=k.default;var P=a("2b3dcdf");e.PopOver=P.default;var y=a("8e37af0");e.Radios=y.default;var D=a("736bbb6");e.Range=D.default;var R=a("1b690d8");e.Rating=R.default;var g=a("d57879c");e.Select=g.default;var h=a("acad559");e.Spinner=h.default;var w=a("aa2413a");e.Switch=w.default;var x=a("05807e2");e.Textarea=x.default;var B=a("06d307c");e.TitleBar=B.default;var O=a("6ae88e0");e.ToastComponent=O.default,e.toast=O.toast;var S=a("007c3b6");e.Tooltip=S.default;var A=a("8d5abcb");e.TooltipWrapper=A.default;var L=a("d233af4");e.Tree=L.default});
;/*!src/utils/tpl-lodash.ts*/
define("1267928",function(e,t){"use strict";function n(e,t){try{var n=o(e,{imports:s,variable:"data"});return n(t)}catch(r){return'<span class="text-danger">'+r.message+"</span>"}}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=e("6a2dbb7"),o=e("node_modules/lodash/template"),i=e("f2e345e"),u=e("node_modules/moment/moment"),s=r.__assign({},i.filters,{formatTimeStamp:i.filters.date,formatNumber:i.filters.number,defaultValue:i.filters.defaut,"default":void 0,moment:u,countDown:function(e){if(!e)return"--";var t=new Date(1e3*parseInt(e,10)),n=Date.now();return t.getTime()<n?"已结束":Math.ceil((t.getTime()-n)/864e5)+"天"},formatDate:function(e,t,n){return void 0===t&&(t="LLL"),void 0===n&&(n=""),u(e,n).format(t)}});delete s.default,a.reigsterTplEnginer("lodash",{test:function(e){return!!~e.indexOf("<%")},compile:function(e,t){return n(e,t)}})});
;/*!src/utils/resize-sensor.ts*/
define("67d35e6",function(e,t){"use strict";function i(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,void 0).getPropertyValue(t):e.style[t]}function s(e,t){if(e.resizedAttached){if(e.resizedAttached)return void e.resizedAttached.add(t)}else e.resizedAttached=new n,e.resizedAttached.add(t);e.resizeSensor=document.createElement("div"),e.resizeSensor.className="resize-sensor";var s="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;",o="position: absolute; left: 0; top: 0;";e.resizeSensor.style.cssText=s,e.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+s+'"><div style="'+o+'"></div></div><div class="resize-sensor-shrink" style="'+s+'"><div style="'+o+' width: 200%; height: 200%"></div></div>',e.appendChild(e.resizeSensor),~["fixed","absolute"].indexOf(i(e,"position"))||(e.style.position="relative");var r,d,l=e.resizeSensor.childNodes[0],c=l.childNodes[0],a=e.resizeSensor.childNodes[1],h=(a.childNodes[0],function(){c.style.width=l.offsetWidth+10+"px",c.style.height=l.offsetHeight+10+"px",l.scrollLeft=l.scrollWidth,l.scrollTop=l.scrollHeight,a.scrollLeft=a.scrollWidth,a.scrollTop=a.scrollHeight,r=e.offsetWidth,d=e.offsetHeight});h();var f=function(){e.resizedAttached&&e.resizedAttached.call()},u=function(e,t,i){e.attachEvent?e.attachEvent("on"+t,i):e.addEventListener(t,i)},v=function(){(e.offsetWidth!=r||e.offsetHeight!=d)&&f(),h()};u(l,"scroll",v),u(a,"scroll",v)}function o(e){if(e.resizeSensor){try{e.removeChild(e.resizeSensor)}catch(t){}delete e.resizeSensor,delete e.resizedAttached}}function r(e,t){s(e,t);var i=!1;return function(){i||(i=!0,o(e))}}Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.q=[]}return e.prototype.add=function(e){this.q.push(e)},e.prototype.call=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.q.forEach(function(t){t.apply(void 0,e)})},e}();t.resizeSensor=r});
;/*!src/renderers/Form/IconPicker-icons.tsx*/
define("3bc41ff",function(e,s){"use strict";function n(e){s.ICONS=e}Object.defineProperty(s,"__esModule",{value:!0}),s.ICONS=[{name:"Font Awesome 4.7",prefix:"fa fa-",icons:["slideshare","snapchat","snapchat-ghost","snapchat-square","soundcloud","spotify","stack-exchange","stack-overflow"]}],s.setIconVendor=n});
;/*!src/renderers/Remark.tsx*/
define("4b7dfbe",function(e,t){"use strict";function n(e,t){return"string"==typeof e?s.filter(e,t):e?e.title?{title:s.filter(e.title,t),content:e.content||e.body?s.filter(e.content||e.body||"",t):void 0}:e.content||e.body?s.filter(e.content||e.body||"",t):void 0:e}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),a=e("0f9ebdf"),i=e("8d5abcb"),s=e("6a2dbb7");t.filterContents=n;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,r=e.icon,a=e.tooltip,s=e.placement,l=e.rootClose,c=e.trigger,d=e.container,u=e.classPrefix,f=e.classnames,m=e.content,p=e.data;return o.createElement(i.default,{classPrefix:u,classnames:f,tooltip:n(a||m,p),placement:a&&a.placement||s,rootClose:a&&a.rootClose||l,trigger:a&&a.trigger||c,container:d,delay:a&&a.delay},o.createElement("div",{className:f("Remark",a&&a.className||t||"Remark--warning")},o.createElement("i",{className:f("Remark-icon",a&&a.icon||r)})))},t.propsList=[],t.defaultProps={icon:"fa fa-question-circle",trigger:["hover","focus"]},t}(o.Component);t.default=l;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([a.Renderer({test:/(^|\/)remark$/,name:"remark"})],t)}(l);t.RemarkRenderer=c});
;/*!src/renderers/Action.tsx*/
define("7648928",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),i=e("0f9ebdf"),o=e("6a2dbb7"),r=e("a67acca"),s=e("node_modules/lodash/pick"),l=["dialog","drawer","url","link","confirmText","tooltip","disabledTip","className","asyncApi","redirect","size","level","primary","feedback","api","blank","tooltipPlacement","to","content","required","type","actionType","label","icon","reload","target","close","messages","mergeData","index","copy"],d=e("4b7dfbe"),c=e("256b65d"),u=e("9a80175"),p=["button","submit","reset"],m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.handleAction=function(e){var t=this.props,n=t.onAction,a=t.onClick,i=t.disabled;if(a&&a(e),!i&&!e.isDefaultPrevented()&&n){e.preventDefault();var o=s(this.props,l);n(e,o)}},t.prototype.render=function(){var e=this.props,t=e.type,n=e.label,i=e.icon,s=e.iconClassName,l=e.primary,c=e.size,u=e.level,m=e.disabled,_=e.block,b=e.className,f=e.componentClass,v=e.tooltip,y=e.disabledTip,h=e.tooltipPlacement,C=e.actionType,g=e.link,A=e.data,k=e.activeClassName,x=e.isCurrentUrl,N=e.isMenuItem,R=e.active,T=e.activeLevel,E=e.tooltipContainer,O=e.classnames,P=!!R;return"link"===C&&!P&&g&&x&&(P=x(g)),N?a.createElement("a",{className:O(b,(D={},D[k||"is-active"]=P,D["is-disabled"]=m,D)),onClick:this.handleAction},n,i?a.createElement("i",{className:O("Button-icon",i)}):null):a.createElement(r.default,{className:O(b,(M={},M[k||"is-active"]=P,M)),size:c,level:T&&P?T:u||(l?"primary":void 0),onClick:this.handleAction,type:t&&~p.indexOf(t)?t:"button",disabled:m,componentClass:f,tooltip:d.filterContents(v,A),disabledTip:d.filterContents(y,A),placement:h,tooltipContainer:E,block:_,iconOnly:!(!i||n||"link"===u)},n?a.createElement("span",null,o.filter(n,A)):null,i?a.createElement("i",{className:O("Button-icon",i,s)}):null);var D,M},t.defaultProps={type:"button",componentClass:"button",tooltipPlacement:"bottom",activeClassName:"is-active"},n.__decorate([u.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(i=("undefined"!=typeof a&&a).MouseEvent)&&i||Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleAction",null),t;var i}(a.Component);t.Action=m,t.default=c.themeable(m);var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.handleAction=function(e,t){var n=this.props,a=n.env,i=n.onAction,r=n.data;t.confirmText&&a.confirm?a.confirm(o.filter(t.confirmText,r)).then(function(n){return n&&i(e,t,r)}):i(e,t,r)},t.prototype.isCurrentAction=function(e){var t=this.props,n=t.env,a=t.data;return n.isCurrentUrl(o.filter(e,a))},t.prototype.render=function(){var e=this.props,t=e.env,i=e.disabled,o=e.btnDisabled,r=n.__rest(e,["env","disabled","btnDisabled"]);return a.createElement(m,n.__assign({},r,{disabled:i||o,onAction:this.handleAction,isCurrentUrl:this.isCurrentAction,tooltipContainer:t.getModalContainer?t.getModalContainer():void 0}))},n.__decorate([u.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object,Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleAction",null),n.__decorate([u.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[String]),n.__metadata("design:returntype",void 0)],t.prototype,"isCurrentAction",null),t=n.__decorate([i.Renderer({test:/(^|\/)action$/,name:"action"})],t)}(a.Component);t.ActionRenderer=_;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)button$/,name:"button"})],t)}(_);t.ButtonRenderer=b;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)submit$/,name:"submit"})],t)}(_);t.SubmitRenderer=f;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)reset$/,name:"reset"})],t)}(_);t.ResetRenderer=v});
;/*!src/renderers/Alert.tsx*/
define("30de479",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),n=e("0f9ebdf"),d=e("node_modules/react/index"),o=e("15e4197"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.render,n=e.body,s=r.__rest(e,["render","body"]);return d.createElement(o.default,r.__assign({},s),t("body",n))},t=r.__decorate([n.Renderer({test:/(^|\/)alert$/,name:"alert"})],t)}(d.Component);t.TplRenderer=s});
;/*!src/renderers/Form/ButtonGroup.tsx*/
define("aa22e57",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),l=e("b86428a"),s=e("9a80175"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(e){void 0===e&&(e=this.props);var t=e.render,l=e.classPrefix,o=e.classnames,r=e.className,i=e.disabled,u=e.options,c=(e.value,e.placeholder),p=e.btnClassName,d=e.btnActiveClassName,m=e.onToggle,v=e.selectedOptions,b=e.buttons,f=e.size,_=e.block,N=e.vertical,g=[],h=e.btnLevel,y=e.btnActiveLevel;return p&&(h=s.getLevelFromClassName(p)),d&&(y=s.getLevelFromClassName(d)),u&&u.length?g=u.map(function(e,n){var a=!!~v.indexOf(e);return t("option/"+n,{label:e.label,icon:e.icon,size:e.size||f,type:"button",block:_},{key:n,active:a,level:(a?y:"")||e.level||h,className:o(e.className,p),disabled:e.disabled||i,onClick:function(t){m(e),t.preventDefault()}})}):b&&(g=b.map(function(e,a){return t("button/"+a,n.__assign({size:f,block:_,activeLevel:y},e),{key:a})})),a.createElement("div",{className:o("ButtonGroup",(C={"ButtonGroup--block":_,"ButtonGroup--vertical":N},C["ButtonGroup--"+f]=f,C),r)},g.length?g:a.createElement("span",{className:l+"ButtonGroup-placeholder"},c));var C},t.defaultProps={btnLevel:"default",btnActiveLevel:"primary",clearable:!1,vertical:!1},t}(a.Component);t.default=o;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var t=this.props,l=t.className,s=t.classnames,o=n.__rest(t,["className","classnames"]),r=e.prototype.render.call(this,n.__assign({},o,{classnames:s}));return a.createElement("div",{className:s("ButtonGroupControl",l)},r)},t=n.__decorate([l.OptionsControl({type:"button-group",sizeMutable:!1})],t)}(o);t.ButtonGroupControlRenderer=r});
;/*!src/renderers/ButtonGroup.tsx*/
define("d539455",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),u=e("aa22e57"),r=e("0f9ebdf");t.default=u.default;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.Renderer({test:/(^|\/)(?:button|action)\-group$/,name:"button-group"})],t)}(u.default);t.ButtonGroupRenderer=o});
;/*!src/renderers/ButtonToolbar.tsx*/
define("10294a9",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),o=e("0f9ebdf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.buttons,n=e.className,o=e.classnames,s=e.render;return r.createElement("div",{className:o("ButtonToolbar",n)},Array.isArray(t)?t.map(function(e,t){return s(""+t,e,{key:t})}):null)},t.propsList=["buttons"],t}(r.Component);t.default=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([o.Renderer({test:/(^|\/)button-toolbar$/,name:"button-toolbar"})],t)}(s);t.ButtonToolbarRenderer=u});
;/*!src/renderers/DropDownButton.tsx*/
define("bb5331d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),r=e("0f9ebdf"),i=e("node_modules/react-overlays/lib/index"),s=e("997df41"),a=e("2b3dcdf"),l=e("9a80175"),d=e("6a2dbb7"),p=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpened:!1},n.open=n.open.bind(n),n.close=n.close.bind(n),n.toogle=n.toogle.bind(n),n.domRef=n.domRef.bind(n),n}return n.__extends(t,e),t.prototype.domRef=function(e){this.target=e},t.prototype.toogle=function(e){e.preventDefault(),this.setState({isOpened:!this.state.isOpened})},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.renderOuter=function(){var e=this,t=this.props,r=t.render,d=t.buttons,p=t.data,c=t.popOverContainer,u=t.classnames,f=t.classPrefix,m=t.children,b=t.align,h=o.createElement(i.RootCloseWrapper,{disabled:!this.state.isOpened,onRootClose:this.close},o.createElement("ul",{className:u("DropDown-menu")},m?m:Array.isArray(d)?d.map(function(e,t){return l.isVisible(e,p)?"divider"===e||"divider"===e.type?o.createElement("li",{key:t,className:u("DropDown-divider")}):o.createElement("li",{key:t},r("button/"+t,n.__assign({type:"button"},e,{isMenuItem:!0}))):null}):null));return c?o.createElement(s.default,{container:c,placement:"right"===b?"right-bottom-right-top":"left-bottom-left-top",target:function(){return e.target},show:!0},o.createElement(a.default,{overlay:!0,onHide:this.close,classPrefix:f,className:u("DropDown-popover"),style:{minWidth:this.target.offsetWidth}},h)):h},t.prototype.render=function(){var e=this.props,t=e.block,n=e.disabled,r=e.btnDisabled,i=e.size,s=e.label,a=e.level,l=e.primary,p=e.className,c=e.classnames,u=e.caretIcon,f=e.align,m=e.iconOnly,b=e.data;return o.createElement("div",{className:c("DropDown ",{"DropDown--block":t,"DropDown--alignRight":"right"===f,"is-opened":this.state.isOpened}),ref:this.domRef},o.createElement("button",{onClick:this.toogle,disabled:n||r,className:c("Button",p,"undefined"==typeof a?"Button--default":a?"Button--"+a:"",{"Button--block":t,"Button--primary":l,"Button--iconOnly":m},i?"Button--"+i:"")},"string"==typeof s?d.filter(s,b):s,o.createElement("i",{className:c("DropDown-caret",u)})),this.state.isOpened?this.renderOuter():null)},t.defaultProps={caretIcon:"fa fa-angle-down"},t}(o.Component);t.default=p;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.Renderer({test:/(^|\/)dropdown-button$/,name:"dropdown-button"})],t)}(p);t.DropDownButtonRenderer=c});
;/*!src/renderers/Collapse.tsx*/
define("d221521",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),s=e("node_modules/react/index"),t=e("0f9ebdf"),o=e("node_modules/react-bootstrap/lib/index"),n=function(e){function l(l){var a=e.call(this,l)||this;return a.state={collapsed:!1},a.toggleCollapsed=a.toggleCollapsed.bind(a),a.state.collapsed=!!l.collapsed,a}return a.__extends(l,e),l.prototype.componentWillReceiveProps=function(e){var l=this.props;l.collapsed!==e.collapsed&&this.setState({collapsed:!!e.collapsed})},l.prototype.toggleCollapsed=function(){this.setState({collapsed:!this.state.collapsed})},l.prototype.render=function(){var e=this.props,l=(e.classPrefix,e.classnames),a=e.size,t=e.wrapperComponent,n=e.headingComponent,p=e.className,d=e.title,r=e.headingClassName,c=e.children,i=e.body,m=e.bodyClassName,u=e.render,C=e.collapsable;return s.createElement(t,{className:l("Collapse",(h={"is-collapsed":this.state.collapsed},h["Collapse--"+a]=a,h["Collapse--collapsable"]=C,h),p)},d?s.createElement(n,{className:l("Collapse-header",r)},u("heading",d),C&&s.createElement("span",{onClick:this.toggleCollapsed,className:l("Collapse-arrow")})):null,s.createElement(o.Collapse,{"in":C?!this.state.collapsed:!0},s.createElement("div",{className:l("Collapse-body",m)},c?"function"==typeof c?c(this.props):c:i?u("body",i):null)));var h},l.propsList=["wrapperComponent","headingComponent","bodyClassName","collapsed","headingClassName"],l.defaultProps={wrapperComponent:"div",headingComponent:"h4",className:"",headingClassName:"",bodyClassName:"",collapsable:!0},l}(s.Component);l.default=n;var p=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(l,e),l=a.__decorate([t.Renderer({test:/(^|\/)collapse$/,name:"collapse"})],l)}(n);l.CollapseRenderer=p});
;/*!src/renderers/CRUD.tsx*/
define("e5683c7",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),n=e("0f9ebdf"),i=e("7b0821e"),o=e("9a80175"),s=e("919cbd9"),l=e("a67acca"),d=e("d57879c"),c=e("01e2bb4"),p=e("node_modules/lodash/pick"),u=e("node_modules/qs/lib/index"),h=e("node_modules/react-dom/index"),m=e("6a2dbb7"),f=e("1caead1"),g=e("node_modules/lodash/omit"),v=e("node_modules/lodash/find"),b=function(e){function t(t){var a=e.call(this,t)||this;return a.dataInvalid=!1,a.controlRef=a.controlRef.bind(a),a.handleFilterReset=a.handleFilterReset.bind(a),a.handleFilterSubmit=a.handleFilterSubmit.bind(a),a.handleFilterInit=a.handleFilterInit.bind(a),a.handleAction=a.handleAction.bind(a),a.handleBulkAction=a.handleBulkAction.bind(a),a.handleChangePage=a.handleChangePage.bind(a),a.handleBulkGo=a.handleBulkGo.bind(a),a.handleDialogConfirm=a.handleDialogConfirm.bind(a),a.handleDialogClose=a.handleDialogClose.bind(a),a.handleSave=a.handleSave.bind(a),a.handleSaveOrder=a.handleSaveOrder.bind(a),a.handleSelect=a.handleSelect.bind(a),a.handleChildPopOverOpen=a.handleChildPopOverOpen.bind(a),a.handleChildPopOverClose=a.handleChildPopOverClose.bind(a),a.search=a.search.bind(a),a.silentSearch=a.silentSearch.bind(a),a.handlQuery=a.handlQuery.bind(a),a.renderHeaderToolbar=a.renderHeaderToolbar.bind(a),a.renderFooterToolbar=a.renderFooterToolbar.bind(a),a.clearSelection=a.clearSelection.bind(a),a}return a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.location,a=e.store,r=e.pageField,n=e.perPageField,i=e.syncLocation,o=e.loadDataOnce;this.mounted=!0,a.setLoadDataOnce(o),i&&t&&(t.query||t.search)?a.updateQuery(t.query||u.parse(t.search.substring(1)),void 0,r,n):i&&!t&&window.location.search&&a.updateQuery(u.parse(window.location.search.substring(1)),void 0,r,n),this.props.store.setFilterTogglable(!!this.props.filterTogglable,this.props.filterDefaultVisible)},t.prototype.componentDidMount=function(){var e=this.props.store;(!this.props.filter||e.filterTogggable&&!e.filterVisible)&&this.handleFilterInit({}),this.props.pickerMode&&this.props.value&&e.setSelectedItems(this.props.value)},t.prototype.componentWillReceiveProps=function(e){var t=this.props,a=t.store;if(o.anyChanged(["toolbar","headerToolbar","footerToolbar","bulkActions"],t,e)&&(this.renderHeaderToolbar=this.renderHeaderToolbar.bind(this),this.renderFooterToolbar=this.renderFooterToolbar.bind(this)),this.props.filterTogglable!==e.filterTogglable&&a.setFilterTogglable(!!e.filterTogglable,e.filterDefaultVisible),this.props.loadDataOnce!==e.loadDataOnce&&a.setLoadDataOnce(!!e.loadDataOnce),t.syncLocation&&t.location&&t.location.search!==e.location.search)a.updateQuery(e.location.query||u.parse(e.location.search.substring(1)),void 0,e.pageField,e.perPageField),this.dataInvalid=o.isObjectShallowModified(a.query,this.lastQuery,!1);else if(!t.syncLocation&&t.api&&e.api){var r=f.buildApi(t.api,t.data,{ignoreData:!0}),n=f.buildApi(e.api,e.data,{ignoreData:!0});r.url===n.url||!f.isValidApi(n.url)||n.sendOn&&!m.evalExpression(n.sendOn,e.data)||(this.dataInvalid=!0)}},t.prototype.componentDidUpdate=function(){this.dataInvalid&&(this.dataInvalid=!1,this.search())},t.prototype.componentWillUnmount=function(){this.mounted=!1,clearTimeout(this.timer)},t.prototype.controlRef=function(e){for(;e&&e.getWrappedInstance;)e=e.getWrappedInstance();this.control=e},t.prototype.handleAction=function(e,t,r,n){var i=this,s=this.props,l=s.onAction,d=s.store,c=s.messages,p=s.pickerMode,u=s.env,h=(s.pageField,s.stopAutoRefreshWhenModalIsOpen);if(n||d.setCurrentAction(t),"dialog"===t.actionType){var f=r.index,g=d.data.items.length;h&&clearTimeout(this.timer),d.openDialog(r,{hasNext:g-1>f,nextIndex:f+1,hasPrev:f>0,prevIndex:f-1,index:f})}else{if("ajax"===t.actionType){var v=r;return t.redirect&&t.blank&&u.jumpTo(m.filter(t.redirect,v),t),d.saveRemote(t.api,v,{successMessage:t.messages&&t.messages.success||c&&c.saveSuccess,errorMessage:t.messages&&t.messages.failed||c&&c.saveFailed}).then(function(e){return a.__awaiter(i,void 0,void 0,function(){var n;return a.__generator(this,function(a){switch(a.label){case 0:return n=o.createObject(r,e),t.feedback&&o.isVisible(t.feedback,n)?[4,this.openFeedback(t.feedback,n)]:[3,2];case 1:a.sent(),h&&clearTimeout(this.timer),a.label=2;case 2:return t.redirect&&!t.blank&&u.jumpTo(m.filter(t.redirect,n),t),t.reload?this.reloadTarget(t.reload,n):this.search(void 0,void 0,!0),[2]}})})}).catch(function(){})}if(p&&("confirm"===t.actionType||"submit"===t.actionType))return Promise.resolve({items:d.selectedItems.concat()});l(e,t,r)}},t.prototype.handleBulkAction=function(e,t,r,n){var i=this,s=this.props,l=s.store,d=s.primaryField,c=s.onAction,p=s.messages,u=s.pageField,h=s.stopAutoRefreshWhenModalIsOpen;if(e.length){var m=e.map(function(e){return e.hasOwnProperty(d)?e[d]:null}).filter(function(e){return e}).join(","),f=o.createObject(l.mergedData,a.__assign({},e[0],{rows:e,items:e,unSelectedItems:t,ids:m}));return"dialog"===n.actionType?this.handleAction(r,a.__assign({},n,{__from:"bulkAction"}),f):void("ajax"===n.actionType?l.saveRemote(n.api,f,{successMessage:n.messages&&n.messages.success||p&&p.saveSuccess,errorMessage:n.messages&&n.messages.failed||p&&p.saveFailed}).then(function(){return a.__awaiter(i,void 0,void 0,function(){var e;return a.__generator(this,function(t){switch(t.label){case 0:return n.feedback&&o.isVisible(n.feedback,l.data)?[4,this.openFeedback(n.feedback,l.data)]:[3,2];case 1:t.sent(),h&&clearTimeout(this.timer),t.label=2;case 2:return n.reload?this.reloadTarget(n.reload,l.data):this.search((e={},e[u||"page"]=1,e),void 0,!0),[2]}})})}).catch(function(){return null}):c&&c(r,n,f))}},t.prototype.handleItemAction=function(e,t){this.doAction(e,t)},t.prototype.handleFilterInit=function(e){var t=this.props,r=t.defaultParams,n=(t.data,t.store);this.handleFilterSubmit(a.__assign({},r,e,n.query),!1,!0,this.props.initFetch!==!1),n.setPristineQuery();var i=this.props,s=i.pickerMode,l=i.options;s&&n.updateData({items:l||[]}),this.handleFilterInit=o.noop},t.prototype.handleFilterReset=function(){var e=this.props,t=e.store,a=e.syncLocation,r=e.env,n=e.pageField,i=e.perPageField;t.updateQuery(t.pristineQuery,a&&r&&r.updateLocation?function(e){return r.updateLocation(e)}:void 0,n,i,!0),this.lastQuery=t.query,this.search()},t.prototype.handleFilterSubmit=function(e,t,r,n){void 0===t&&(t=!0),void 0===r&&(r=!1),void 0===n&&(n=!0);var i=this.props,o=i.store,s=i.syncLocation,l=i.env,d=i.pageField,c=i.perPageField;o.updateQuery(a.__assign({},e,(p={},p[d||"page"]=t?1:o.page,p)),s&&l&&l.updateLocation?function(e){return l.updateLocation(e,r)}:void 0,d,c),this.lastQuery=o.query,n&&this.search();var p},t.prototype.handleBulkGo=function(e,t,a){var r=this,n=this.props.store.selectedAction,i=this.props.env;return n.confirmText?i.confirm(n.confirmText).then(function(i){return i&&r.handleBulkAction(e,t,a,n)}):this.handleBulkAction(e,t,a,n)},t.prototype.handleDialogConfirm=function(e,t,r,n){var i=this.props,s=i.store,l=i.pageField,d=i.stopAutoRefreshWhenModalIsOpen,c=i.interval,p=i.silentPolling;s.closeDialog();var u=s.action;if(d&&c&&(this.timer=setTimeout(p?this.silentSearch:this.search,Math.max(c,3e3))),"next"===t.actionType&&"number"==typeof r.nextIndex&&s.data.items[r.nextIndex])return this.handleAction(void 0,a.__assign({},u),o.createObject(s.data.items[r.nextIndex],{index:r.nextIndex}));if("prev"===t.actionType&&"number"==typeof r.prevIndex&&s.data.items[r.prevIndex])return this.handleAction(void 0,a.__assign({},u),o.createObject(s.data.items[r.prevIndex],{index:r.prevIndex}));if(e.length){var h=e[0],m=n[0];m&&"form"===m.props.type&&(h&&h.__saved?this.search(u.__from?(f={},f[l||"page"]=1,f):void 0,void 0,!0):h&&(h.hasOwnProperty("items")&&h.items||h.hasOwnProperty("ids"))&&this.control.bulkUpdate&&this.control.bulkUpdate(h,h.items))}u.reload&&this.reloadTarget(u.reload,s.data);var f},t.prototype.handleDialogClose=function(){var e=this.props,t=e.store,a=e.stopAutoRefreshWhenModalIsOpen,r=e.silentPolling,n=e.interval;t.closeDialog(),a&&n&&(this.timer=setTimeout(r?this.silentSearch:this.search,Math.max(n,3e3)))},t.prototype.openFeedback=function(e,t){var a=this;return new Promise(function(r){var n=a.props.store;n.setCurrentAction({type:"button",actionType:"dialog",dialog:e}),n.openDialog(t,void 0,function(e){r(e)})})},t.prototype.search=function(e,t,a,r){var n=this;void 0===r&&(r=!0);var i=this.props,s=i.store,l=i.api,d=i.messages,c=i.pageField,p=i.perPageField,u=i.interval,h=i.stopAutoRefreshWhen,f=i.stopAutoRefreshWhenModalIsOpen,g=i.silentPolling,v=i.syncLocation,b=i.syncResponse2Query,y=i.keepItemSelectionOnPageChange,A=i.pickerMode,O=i.env;y&&a&&!A&&(s.setSelectedItems([]),s.setUnSelectedItems([]));var T="";e&&"string"==typeof e.loadDataMode&&(T="load-more",delete e.loadDataMode),clearTimeout(this.timer),e&&s.updateQuery(e,!T&&v&&O&&O.updateLocation?O.updateLocation:void 0,c,p),this.lastQuery=s.query;var P=o.createObject(s.data,s.query);l&&(!l.sendOn||m.evalExpression(l.sendOn,P))&&s.fetchInitData(l,P,{successMessage:d&&d.fetchSuccess,errorMessage:d&&d.fetchFailed,autoAppend:!0,forceReload:r,silent:t,pageField:c,perPageField:p,loadDataMode:T,syncResponse2Query:b}).then(function(e){return u&&n.mounted&&(!h||!(f&&s.hasModalOpened||m.evalExpression(h,P)))&&(n.timer=setTimeout(g?n.silentSearch:n.search,Math.max(u,3e3))),e})},t.prototype.silentSearch=function(e){return this.search(e,!0)},t.prototype.handleChangePage=function(e,t){var a=this.props,r=a.store,n=a.syncLocation,i=a.env,o=a.pageField,s=a.perPageField,l=a.autoJumpToTopOnPagerChange,d=(p={},p[o||"page"]=e,p);if(t&&(d[s||"perPage"]=t),r.updateQuery(d,n&&i&&i.updateLocation?i.updateLocation:void 0,o,s),this.search(void 0,void 0,void 0,!1),l&&this.control){h.findDOMNode(this.control).scrollIntoView();var c=window.scrollY;c&&window.scroll(0,c-50)}var p},t.prototype.handleSave=function(e,t,a,r){var n=this,i=this.props,s=i.store,l=i.quickSaveApi,d=i.quickSaveItemApi,c=i.primaryField,p=i.env,u=i.messages;if(Array.isArray(e)){if(!l)return void(p&&p.alert("CRUD quickSaveApi is required!"));var h=o.createObject(s.data,{rows:e,rowsDiff:t,indexes:a});e.length&&e[0].hasOwnProperty(c||"id")&&(h.ids=e.map(function(e){return e[c||"id"]}).join(",")),r&&(h.unModifiedItems=r),s.saveRemote(l,h,{successMessage:u&&u.saveFailed,errorMessage:u&&u.saveSuccess}).then(function(){l.reload&&n.reloadTarget(l.reload,h),n.search()}).catch(function(){})}else{if(!d)return void(p&&p.alert("CRUD quickSaveItemApi is required!"));var m=o.createObject(s.data,{item:e,modified:t});s.saveRemote(d,o.createObject(m,e)).then(function(){d.reload&&n.reloadTarget(d.reload,m),n.search()}).catch(function(){})}},t.prototype.handleSaveOrder=function(e,t){var a=this,r=this.props,n=r.store,i=r.saveOrderApi,s=r.orderField,l=r.primaryField,d=r.env;if(!i)return void(d&&d.alert("CRUD saveOrderApi is required!"));var c,u,h=o.createObject(n.data),m=[],f=l&&t[0]&&t[0].hasOwnProperty(l);if(f||(h.idMap={}),h.insertAfter={},t.forEach(function(a){if(~e.indexOf(a))if(c){var r=f?c[l]:t.indexOf(c);h.insertAfter[r]=h.insertAfter[r]||[],f||(h.idMap[r]=c),h.insertAfter[r].push(f?a[l]:a)}else m.push(a);else c=a,u=u||a}),u&&m.length){var g=f?u[l]:t.indexOf(u);f||(h.idMap[g]=u),h.insertBefore={},h.insertBefore[g]=m.map(function(e){return f?e[l]:e})}else if(m.length){var v=m[0],b=f?v[l]:t.indexOf(v);f||(h.idMap[b]=v),h.insertAfter[b]=m.slice(1).map(function(e){return f?e[l]:e})}if(s){var y=(n.page-1)*n.perPage||0;t=t.map(function(e,t){return o.extendObject(e,(a={},a[s]=y+t+1,a));var a})}h.rows=t.concat(),f&&(h.ids=t.map(function(e){return e[l]}).join(",")),f&&s&&(h.order=t.map(function(e){return p(e,[l,s])})),n.saveRemote(i,h).then(function(){i.reload&&a.reloadTarget(i.reload,h),a.search()}).catch(function(){})},t.prototype.handleSelect=function(e,t){var a=this.props,r=a.store,n=a.keepItemSelectionOnPageChange,i=a.primaryField,o=a.multiple,s=a.pickerMode,l=e,d=t;if(n&&r.selectedItems.length){var c=e.concat(t),p=function(e){return!v(c,function(t){return t[i||"id"]==e[i||"id"]})};l=r.selectedItems.filter(p),d=r.unSelectedItems.filter(p),l.push.apply(l,e),d.push.apply(d,t)}s&&!o&&l.length>1&&d.push.apply(d,l.splice(0,l.length-1)),r.setSelectedItems(l),r.setUnSelectedItems(d)},t.prototype.handleChildPopOverOpen=function(e){this.props.interval&&e&&~["dialog","drawer"].indexOf(e.mode)&&(clearTimeout(this.timer),this.props.store.setInnerModalOpened(!0))},t.prototype.handleChildPopOverClose=function(e){var t=this.props,a=t.stopAutoRefreshWhenModalIsOpen,r=t.silentPolling,n=t.interval;e&&~["dialog","drawer"].indexOf(e.mode)&&(this.props.store.setInnerModalOpened(!1),a&&n&&(this.timer=setTimeout(r?this.silentSearch:this.search,Math.max(n,3e3))))},t.prototype.handlQuery=function(e){var t=this.props,r=t.store,n=t.syncLocation,i=t.env,o=t.pageField,s=t.perPageField;r.updateQuery(a.__assign({},e,(l={},l[o||"page"]=1,l)),n&&i&&i.updateLocation?i.updateLocation:void 0,o,s),this.search(void 0,void 0,void 0,!1);var l},t.prototype.reload=function(e,t){return t?this.receive(t):void this.search(void 0,void 0,!0)},t.prototype.receive=function(e){this.handlQuery(e)},t.prototype.reloadTarget=function(){},t.prototype.doAction=function(e,t,a){return void 0===a&&(a=!1),this.handleAction(void 0,e,t,a)},t.prototype.unSelectItem=function(e){var t=this.props.store,a=t.selectedItems.concat(),r=t.unSelectedItems.concat(),n=a.indexOf(e);~n&&r.push.apply(r,a.splice(n,1)),t.setSelectedItems(a),t.setUnSelectedItems(r)},t.prototype.clearSelection=function(){var e=this.props.store,t=e.selectedItems.concat(),a=e.unSelectedItems.concat();e.setSelectedItems([]),e.setUnSelectedItems(a.concat(t))},t.prototype.hasBulkActionsToolbar=function(){var e=this.props,t=e.headerToolbar,a=e.footerToolbar,r=function(e){return~["bulkActions","bulk-actions"].indexOf(e.type||e)};return Array.isArray(t)&&v(t,r)||Array.isArray(a)&&v(a,r)},t.prototype.hasBulkActions=function(){var e=this.props,t=e.bulkActions,r=e.itemActions,n=e.store;if(!(t&&t.length||r&&r.length))return!1;var i=[],s=[],l=n.mergedData;t&&t.length&&(i=t.map(function(e){return a.__assign({},e,c.default(e,l))}).filter(function(e){return!e.hidden&&e.visible!==!1}));var d=o.createObject(n.data,n.selectedItems.length?n.selectedItems[0]:{});return r&&r.length&&(s=r.map(function(e){return a.__assign({},e,c.default(e,d))}).filter(function(e){return!e.hidden&&e.visible!==!1})),i.length||s.length},t.prototype.renderBulkActions=function(e){var t=this,n=this.props,i=n.bulkActions,s=n.itemActions,l=n.store,d=n.render,p=n.classnames,u=e.items;if(!(u.length&&(i&&i.length||s&&s.length)))return null;var h=l.selectedItems,m=l.unSelectedItems,f=[],v=[],b=l.mergedData;i&&i.length&&(!s||!s.length||h.length>1)&&(f=i.map(function(e){return a.__assign({},e,c.default(e,b))}).filter(function(e){return!e.hidden&&e.visible!==!1}));var y=o.createObject(l.data,h.length?h[0]:{});return s&&1===h.length&&(v=s.map(function(e){return a.__assign({},e,c.default(e,y))}).filter(function(e){return!e.hidden&&e.visible!==!1})),r.createElement("div",{className:p("Crud-actions")},f.map(function(e,r){return d("bulk-action/"+r,a.__assign({size:"sm"},g(e,["visibileOn","hiddenOn","disabledOn"]),{type:"button"}),{key:"bulk-"+r,data:b,disabled:e.disabled||!h.length,onAction:t.handleBulkAction.bind(t,h.concat(),m.concat())})}),v.map(function(e,r){return d("bulk-action/"+r,a.__assign({size:"sm"},g(e,["visibileOn","hiddenOn","disabledOn"]),{type:"button"}),{key:"item-"+r,data:y,disabled:e.disabled,onAction:t.handleItemAction.bind(t,e,y)})}))},t.prototype.renderPagination=function(){var e=this.props,t=e.store,a=e.render,n=e.classnames,i=t.page,o=t.lastPage;return"simple"!==t.mode&&t.lastPage<2?null:r.createElement("div",{className:n("Crud-pager")},a("pagination",{type:"pagination"},{activePage:i,items:o,hasNext:t.hasNext,mode:t.mode,onPageChange:this.handleChangePage}))},t.prototype.renderStatistics=function(){var e=this.props,t=e.store,a=e.classnames;return t.lastPage<=1?null:r.createElement("div",{className:a("Crud-statistics")},t.page+"/"+t.lastPage+"总共"+t.total+"项。")},t.prototype.renderSwitchPerPage=function(e){var t=this,a=this.props,n=a.store,i=a.perPageAvailable,o=a.classnames,s=a.classPrefix,l=e.items;if(!l.length)return null;var c=(i||[5,10,20,50,100]).map(function(e){return{label:e,value:e+""}});return r.createElement("div",{className:o("Crud-pageSwitch")},"每页显示",r.createElement(d.default,{classPrefix:s,searchable:!1,placeholder:"请选择..",options:c,value:n.perPage+"",onChange:function(e){return t.handleChangePage(1,e.value)},clearable:!1}))},t.prototype.renderLoadMore=function(){var e=this,t=this.props,a=t.store,n=t.classPrefix,i=t.classnames,o=a.page,s=a.lastPage;return s>o?r.createElement("div",{className:i("Crud-loadMore")},r.createElement(l.default,{classPrefix:n,onClick:function(){return e.search({page:o+1,loadDataMode:"load-more"})},size:"sm",className:"btn-primary"},"加载更多")):""},t.prototype.renderFilterToggler=function(){var e=this.props,t=e.store,a=e.classnames;return t.filterTogggable?r.createElement("button",{onClick:function(){return t.setFilterVisible(!t.filterVisible)},className:a("Button Button--sm Button--default",{"is-active":t.filterVisible})},r.createElement("i",{className:"fa fa-sliders m-r-sm"}),"筛选"):null},t.prototype.renderToolbar=function(e,t,a,n){var i=this;if(void 0===t&&(t=0),void 0===a&&(a={}),!e)return null;var s=e.type||e;if("bulkActions"===s||"bulk-actions"===s)return this.renderBulkActions(a);if("pagination"===s)return this.renderPagination();if("statistics"===s)return this.renderStatistics();if("switch-per-page"===s)return this.renderSwitchPerPage(a);if("load-more"===s)return this.renderLoadMore();if("filter-toggler"===s)return this.renderFilterToggler();if(Array.isArray(e)){var l=e.map(function(e,t){return{dom:i.renderToolbar(e,t,a,n),toolbar:e}}).filter(function(e){return e.dom}),d=l.length,c=this.props.classnames;return d?r.createElement("div",{className:c("Crud-toolbar"),key:t},l.map(function(e,t){var a=e.toolbar,n=e.dom,i=a.type||a,o=a.align||("pagination"===i||t===d-1&&t>0?"right":d-1>t?"left":"");return r.createElement("div",{key:t,className:c("Crud-toolbar-item",o?"Crud-toolbar-item--"+o:"",a.className)},n)})):null}var p=n?n(e,t):void 0;if(void 0!==p)return p;var u=this.props,h=u.render,m=u.store,f=a.$$editable;return h("toolbar/"+t,e,{data:o.createObject(o.createObject(m.data,{items:a.items,selectedItems:a.selectedItems,unSelectedItems:a.unSelectedItems}),{}),page:m.page,lastPage:m.lastPage,perPage:m.perPage,total:m.total,onAction:this.handleAction,onChangePage:this.handleChangePage,onBulkAction:this.handleBulkAction,$$editable:f})},t.prototype.renderHeaderToolbar=function(e,t){var a=this.props,r=a.toolbar,n=a.toolbarInline,i=a.headerToolbar;return r&&(i=Array.isArray(i)?n?i.concat(r):[i,r]:i?[i,r]:r),this.renderToolbar(i,0,e,t)},t.prototype.renderFooterToolbar=function(e,t){var a=this.props,r=a.toolbar,n=a.toolbarInline,i=a.footerToolbar;return r&&(i=Array.isArray(i)?n?i.concat(r):[i,r]:i?[i,r]:r),this.renderToolbar(i,0,e,t)},t.prototype.renderSelection=function(){var e=this,t=this.props,a=t.store,n=t.classnames,i=t.labelField,s=t.labelTpl,l=t.primaryField;return a.selectedItems.length?r.createElement("div",{className:n("Crud-selection")},r.createElement("div",{className:n("Crud-selectionLabel")},"已选条目:"),a.selectedItems.map(function(t,a){return r.createElement("div",{key:a,className:n("Crud-value")},r.createElement("span",{"data-tooltip":"删除","data-position":"bottom",className:n("Crud-valueIcon"),onClick:e.unSelectItem.bind(e,t,a)},"×"),r.createElement("span",{className:n("Crud-valueLabel")},s?m.filter(s,t):o.getVariable(t,i||"label")||o.getVariable(t,l||"id")))}),r.createElement("a",{onClick:this.clearSelection,className:n("Crud-selectionClear")},"清空")):null},t.prototype.render=function(){var e=this.props,t=e.className,n=e.bodyClassName,i=e.filter,o=e.render,s=e.store,l=e.mode,d=(e.syncLocation,e.children,e.bulkActions),c=e.pickerMode,p=e.multiple,u=e.valueField,h=e.primaryField,m=(e.value,e.hideQuickSaveBtn),f=e.itemActions,g=e.classnames,v=e.keepItemSelectionOnPageChange,b=a.__rest(e,["className","bodyClassName","filter","render","store","mode","syncLocation","children","bulkActions","pickerMode","multiple","valueField","primaryField","value","hideQuickSaveBtn","itemActions","classnames","keepItemSelectionOnPageChange"]);return r.createElement("div",{className:g("Crud",t,{"is-loading":s.loading})},!i||s.filterTogggable&&!s.filterVisible?null:o("filter",a.__assign({title:"条件过滤",mode:"inline",submitText:"搜索"},i,{type:"form",api:null}),{key:"filter",data:s.filterData,onReset:this.handleFilterReset,onSubmit:this.handleFilterSubmit,onInit:this.handleFilterInit}),v?this.renderSelection():null,o("body",a.__assign({},b,{type:l||"table"}),{key:"body",className:g("Crud-body",n),ref:this.controlRef,selectable:!!(this.hasBulkActionsToolbar()&&this.hasBulkActions()||c),itemActions:f,multiple:void 0===p?d&&d.length>0?!0:!1:p,selected:c||v?s.selectedItemsAsArray:void 0,valueField:u||h,hideQuickSaveBtn:m,items:s.data.items,query:s.query,orderBy:s.query.orderBy,orderDir:s.query.orderDir,onAction:this.handleAction,onSave:this.handleSave,onSaveOrder:this.handleSaveOrder,onQuery:this.handlQuery,onSelect:this.handleSelect,onPopOverOpen:this.handleChildPopOverOpen,onPopOverClose:this.handleChildPopOverClose,headerToolbarRender:this.renderHeaderToolbar,footerToolbarRender:this.renderFooterToolbar,data:s.mergedData}),s.loading?o("info",{type:"spinner",overlay:!0},{size:"lg",key:"info"}):null,o("dialog",a.__assign({},s.action&&s.action.dialog,{type:"dialog"}),{key:"dialog",data:s.dialogData,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,show:s.dialogOpen}))},t.propsList=["bulkActions","itemActions","mode","orderField","syncLocation","toolbar","toolbarInline","messages","value","options","multiple","valueField","defaultParams","bodyClassName","perPageAvailable","pageField","perPageField","hideQuickSaveBtn","autoJumpToTopOnPagerChange","interval","silentPolling","stopAutoRefreshWhen","stopAutoRefreshWhenModalIsOpen","api","affixHeader","columnsTogglable","placeholder","tableClassName","headerClassName","footerClassName","toolbarClassName","headerToolbar","footerToolbar","filterTogglable","filterDefaultVisible","syncResponse2Query","keepItemSelectionOnPageChange","labelTpl","labelField","loadDataOnce"],t.defaultProps={toolbarInline:!0,headerToolbar:["bulkActions","pagination"],footerToolbar:["statistics","pagination"],primaryField:"id",syncLocation:!0,pageField:"page",perPageField:"perPage",hideQuickSaveBtn:!1,autoJumpToTopOnPagerChange:!0,silentPolling:!1,filterTogglable:!1,filterDefaultVisible:!0,loadDataOnce:!1},t}(r.Component);t.default=b;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentWillMount=function(){e.prototype.componentWillMount.call(this);var t=this.context;t.registerComponent(this)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.context;t.unRegisterComponent(this)},t.prototype.reloadTarget=function(e,t){var a=this.context;a.reload(e,t)},t.contextType=s.ScopedContext,t=a.__decorate([n.Renderer({test:/(^|\/)crud$/,storeType:i.CRUDStore.name,name:"crud"})],t)}(b);t.CRUDRenderer=y});
;/*!src/renderers/Pagination.tsx*/
define("4fd96cf",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),r=e("0f9ebdf"),i=e("9a80175"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={pageNum:String(t.props.activePage)||""},t}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.activePage!==e.activePage&&this.setState({pageNum:String(e.activePage)||""})},t.prototype.renderSimple=function(){var e=this.props,t=e.activePage,n=e.hasNext,r=e.onPageChange,i=e.classnames;return a.createElement("ul",{className:i("Pagination","Pagination--sm")},a.createElement("li",{className:i({disabled:2>t}),onClick:2>t?function(e){return e.preventDefault()}:function(){return r(t-1)}},a.createElement("a",null,a.createElement("i",{className:"fa fa-chevron-left"}))),a.createElement("li",{className:i({disabled:!n}),onClick:n?function(){return r(t+1)}:function(e){return e.preventDefault()}},a.createElement("a",null,a.createElement("i",{className:"fa fa-chevron-right"}))))},t.prototype.handlePageChange=function(e){var t=this.props.items,n=e.currentTarget.value;/^\d+$/.test(n)&&parseInt(n,10)>t&&(n=String(t)),this.setState({pageNum:n})},t.prototype.renderNormal=function(){var e,t,n=this.props,r=n.activePage,i=n.items,l=n.maxButtons,o=n.onPageChange,s=n.classnames,u=n.showPageInput,c=this.state.pageNum,m=[];(l-1)/2+2>r&&(l=r+(l-1)/2),(l-1)/2+2>i-r&&(l=i-r+(l-1)/2+1),l&&i>l?(e=Math.max(Math.min(r-Math.floor(l/2),i-l+1),1),t=e+l-1):(e=1,t=i);for(var p=function(e){m.push(a.createElement("li",{onClick:function(){return o(e)},key:e,className:s({active:e===r})},a.createElement("a",{role:"button"},e)))},f=e;t>=f;++f)p(f);return e>1&&(e>2&&m.unshift(a.createElement("li",{onClick:function(){return o(e-1)},key:"prev-ellipsis"},a.createElement("a",{role:"button"},"..."))),m.unshift(a.createElement("li",{onClick:function(){return o(1)},key:1,className:s({active:1===r})},a.createElement("a",{role:"button"},1)))),i>t&&(i-t>1&&m.push(a.createElement("li",{className:s("Pagination-ellipsis"),onClick:function(){return o(t+1)},key:"next-ellipsis"},a.createElement("a",{role:"button"},a.createElement("span",null,"...")))),m.push(a.createElement("li",{onClick:function(){return o(i)},key:i,className:s({active:i===r})},a.createElement("a",{role:"button"},i)))),m.unshift(a.createElement("li",{className:s("Pagination-prev",{disabled:1===r}),onClick:1===r?function(e){return e.preventDefault()}:function(){return o(r-1)},key:"prev"},a.createElement("span",null))),m.push(a.createElement("li",{className:s("Pagination-next",{disabled:r===i}),onClick:r===i?function(e){return e.preventDefault()}:function(){return o(r+1)},key:"next"},a.createElement("span",null))),a.createElement("div",null,a.createElement("ul",{className:s("Pagination","Pagination--sm")},m),i>9&&u?a.createElement("div",{className:"inline m-l-xs w-xs",key:"toPage"},a.createElement("span",{className:s("Pagination-inputGroup")},a.createElement("input",{type:"text",className:s("Pagination-input"),onChange:this.handlePageChange,onFocus:function(e){return e.currentTarget.select()},onKeyUp:function(e){return 13==e.keyCode&&o(parseInt(e.currentTarget.value,10))},value:c}),a.createElement("span",null,a.createElement("button",{onClick:function(){return o(parseInt(c,10))},type:"submit",className:s("Button","Button--default")},"Go")))):null)},t.prototype.render=function(){var e=this.props.mode;return"simple"===e?this.renderSimple():this.renderNormal()},t.defaultProps={activePage:1,items:1,maxButtons:5,mode:"normal",hasNext:!1,showPageInput:!0},n.__decorate([i.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(r=("undefined"!=typeof a&&a).ChangeEvent)&&r||Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handlePageChange",null),t;var r}(a.Component);t.default=l;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.Renderer({test:/(^|\/)pagination$/,name:"pagination"})],t)}(l);t.PaginationRenderer=o});
;/*!src/renderers/Cards.tsx*/
define("0afb30b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),n=e("node_modules/react-dom/index"),i=e("0f9ebdf"),s=e("a67acca"),o=e("4e9b495"),l=e("9a80175"),d=e("f2e345e"),c=e("node_modules/sortablejs/Sortable"),m=e("6a2dbb7"),u=function(e){function t(t){var a=e.call(this,t)||this;return a.handleAction=a.handleAction.bind(a),a.handleCheck=a.handleCheck.bind(a),a.handleCheckAll=a.handleCheckAll.bind(a),a.handleQuickChange=a.handleQuickChange.bind(a),a.handleSave=a.handleSave.bind(a),a.handleSaveOrder=a.handleSaveOrder.bind(a),a.reset=a.reset.bind(a),a.dragTipRef=a.dragTipRef.bind(a),a.bodyRef=a.bodyRef.bind(a),a.affixDetect=a.affixDetect.bind(a),a.itemsRef=a.itemsRef.bind(a),a}return a.__extends(t,e),t.syncItems=function(e,t,a){var r=t.source,n=t.value||t.items,i=[],s=!0;if(Array.isArray(n))i=n;else if("string"==typeof r){var o=d.resolveVariable(r,t.data),l=a?d.resolveVariable(r,a.data):null;l&&l===o?s=!1:Array.isArray(o)&&(i=o)}s&&e.initItems(i),"undefined"!=typeof t.selected&&e.updateSelected(t.selected,t.valueField)},t.prototype.componentWillMount=function(){var e=this.props,a=e.store,r=e.selectable,n=e.draggable,i=e.orderBy,s=e.orderDir,o=e.multiple,l=e.hideCheckToggler,d=e.itemCheckableOn,c=e.itemDraggableOn;a.update({selectable:r,draggable:n,orderBy:i,orderDir:s,multiple:o,hideCheckToggler:l,itemCheckableOn:d,itemDraggableOn:c}),t.syncItems(a,this.props),this.syncSelected()},t.prototype.componentDidMount=function(){var e=l.getScrollParent(n.findDOMNode(this));e&&e!==document.body||(e=window),this.parentNode=e,this.affixDetect(),e.addEventListener("scroll",this.affixDetect),window.addEventListener("resize",this.affixDetect)},t.prototype.componentWillReceiveProps=function(e){var a=this.props,r=e.store;l.anyChanged(["selectable","draggable","orderBy","orderDir","multiple","hideCheckToggler","itemCheckableOn","itemDraggableOn"],a,e)&&r.update({selectable:e.selectable,draggable:e.draggable,orderBy:e.orderBy,orderDir:e.orderDir,multiple:e.multiple,hideCheckToggler:e.hideCheckToggler,itemCheckableOn:e.itemCheckableOn,itemDraggableOn:e.itemDraggableOn}),l.anyChanged(["source","value","items"],a,e)||!e.value&&!e.items&&e.data!==a.data?(t.syncItems(r,e,a),this.syncSelected()):a.selected!==e.selected&&r.updateSelected(e.selected||[],e.valueField)},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),window.removeEventListener("resize",this.affixDetect)},t.prototype.bodyRef=function(e){this.body=e},t.prototype.itemsRef=function(e){e||(this.unSensor&&this.unSensor(),delete this.unSensor)},t.prototype.affixDetect=function(){if(this.props.affixHeader&&this.body){var e=this.props.classPrefix,t=n.findDOMNode(this),a=this.body.getBoundingClientRect(),r=this.props.env.affixOffsetTop||0,i=a.top<r&&a.top+a.height-40>r,s=t.querySelector("."+e+"Cards-fixedTop");this.body.offsetWidth&&(s.style.cssText="top: "+r+"px;width: "+this.body.offsetWidth+"px;"),i?s.classList.add("in"):s.classList.remove("in")}},t.prototype.handleAction=function(e,t,a){var r=this.props.onAction;r(e,t,a)},t.prototype.handleCheck=function(e){e.toggle(),this.syncSelected()},t.prototype.handleCheckAll=function(){var e=this.props.store;e.toggleAll(),this.syncSelected()},t.prototype.syncSelected=function(){var e=this.props,t=e.store,a=e.onSelect;a&&a(t.selectedItems.map(function(e){return e.data}),t.unSelectedItems.map(function(e){return e.data}))},t.prototype.handleQuickChange=function(e,t,a,r){if(e.change(t,r),a&&!r){if(a&&a.api)return void this.props.onAction(null,{actionType:"ajax",api:a.api},t);var n=this.props.onSave;n&&n(e.data,l.difference(e.data,e.pristine),e.index)}},t.prototype.handleSave=function(){var e=this.props,t=e.store,a=e.onSave;if(a&&t.modifiedItems.length){var r=t.modifiedItems.map(function(e){return e.data}),n=t.modifiedItems.map(function(e){return e.index}),i=t.modifiedItems.map(function(e){return l.difference(e.data,e.pristine)}),s=t.items.filter(function(e){return!e.modified}).map(function(e){return e.data});a(r,i,n,s)}},t.prototype.handleSaveOrder=function(){var e=this.props,t=e.store,a=e.onSaveOrder;a&&t.movedItems.length&&a(t.movedItems.map(function(e){return e.data}),t.items.map(function(e){return e.data}))},t.prototype.reset=function(){var e=this.props.store;e.reset()},t.prototype.bulkUpdate=function(e,t){var a=this.props.store,r=a.items.filter(function(e){return~t.indexOf(e.pristine)});r.forEach(function(t){return t.change(e)})},t.prototype.getSelected=function(){var e=this.props.store;return e.selectedItems.map(function(e){return e.data})},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.initDragging=function(){var e=this.props.store,t=n.findDOMNode(this),a=this.props.classPrefix;this.sortable=new c(t.querySelector("."+a+"Cards-body"),{group:"table",handle:"."+a+"Card-dragBtn",ghostClass:"is-dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var a=t.to;t.oldIndex<a.childNodes.length-1?a.insertBefore(t.item,a.childNodes[t.oldIndex]):a.appendChild(t.item),e.exchange(t.oldIndex,t.newIndex)}}})},t.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},t.prototype.renderActions=function(e){var t=this,n=this.props,i=n.actions,o=n.render,l=n.store,d=n.multiple,c=n.selectable,m=n.classnames,u=n.classPrefix,h=n.env;return i=Array.isArray(i)?i.concat():[],l.selectable&&d&&c&&!l.dragging&&l.items.length&&i.unshift({type:"button",children:r.createElement(s.default,{key:"checkall",classPrefix:u,tooltip:"切换全选",onClick:this.handleCheckAll,size:"sm",level:l.allChecked?"info":"default"},"全选")}),l.draggable&&"header"===e&&l.items.length>1&&i.unshift({type:"button",children:r.createElement(s.default,{iconOnly:!0,classPrefix:u,key:"dragging-toggle",tooltip:"对卡片进行排序操作",tooltipContainer:h&&h.getModalContainer?h.getModalContainer():void 0,size:"sm",active:l.dragging,onClick:function(e){e.preventDefault(),l.toggleDragging(),l.dragging&&l.clear()}},r.createElement("i",{className:"fa fa-exchange"}))}),Array.isArray(i)&&i.length?r.createElement("div",{className:m("Cards-actions")},i.map(function(e,r){return o("action/"+r,a.__assign({type:"button"},e),{onAction:t.handleAction,key:r,btnDisabled:l.dragging})})):null},t.prototype.renderHeading=function(){var e=this.props,t=e.title,a=e.store,n=e.hideQuickSaveBtn,i=e.classnames,s=e.data;return t||a.modified&&!n||a.moved?r.createElement("div",{className:i("Cards-heading")},a.modified&&!n?r.createElement("span",null,"当前有 "+a.modified+" 条记录修改了内容, 但并没有提交。请选择:",r.createElement("button",{type:"button",className:i("Button Button--xs Button--success m-l-sm"),onClick:this.handleSave},r.createElement("i",{className:"fa fa-check m-r-xs"}),"提交"),r.createElement("button",{type:"button",className:i("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},r.createElement("i",{className:"fa fa-times m-r-xs"}),"放弃")):a.moved?r.createElement("span",null,"当前有 "+a.moved+" 条记录修改了顺序, 但并没有提交。请选择:",r.createElement("button",{type:"button",className:i("Button Button--xs Button--success m-l-sm"),onClick:this.handleSaveOrder},r.createElement("i",{className:"fa fa-check m-r-xs"}),"提交"),r.createElement("button",{type:"button",className:i("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},r.createElement("i",{className:"fa fa-times m-r-xs"}),"放弃")):t?m.filter(t,s):""):null},t.prototype.renderHeader=function(){var e=this.props,t=e.header,n=e.headerClassName,i=(e.headerToolbar,e.headerToolbarRender),s=e.showHeader,o=e.render,l=e.store,d=e.classnames;if(s===!1)return null;var c=this.renderActions("header"),m=i?i(a.__assign({},this.props,{selectedItems:l.selectedItems.map(function(e){return e.data}),items:l.items.map(function(e){return e.data}),unSelectedItems:l.unSelectedItems.map(function(e){return e.data})})):null,u=c||m||l.dragging?r.createElement("div",{className:d("Cards-toolbar"),key:"header-toolbar"},c,m,l.dragging?r.createElement("div",{className:d("Cards-dragTip"),ref:this.dragTipRef},"请拖动右边的按钮进行排序"):null):null,h=t?r.createElement("div",{className:d("Cards-header",n),key:"header"},o("header",t)):null;return h&&u?[h,u]:h||u||null},t.prototype.renderFooter=function(){var e=this.props,t=e.footer,n=e.footerClassName,i=(e.footerToolbar,e.footerToolbarRender),s=e.render,o=e.showFooter,l=e.store,d=e.classnames;if(o===!1)return null;var c=this.renderActions("footer"),m=i?i(a.__assign({},this.props,{selectedItems:l.selectedItems.map(function(e){return e.data}),items:l.items.map(function(e){return e.data}),unSelectedItems:l.unSelectedItems.map(function(e){return e.data})})):null,u=c||m?r.createElement("div",{className:d("Cards-toolbar"),key:"footer-toolbar"},c,m):null,h=t?r.createElement("div",{className:d("Cards-footer",n),key:"footer"},s("footer",t)):null;return h&&u?[u,h]:h||u||null},t.prototype.render=function(){var e=this,t=this.props,n=t.className,i=t.store,s=t.columnsCount,o=t.itemClassName,d=t.placeholder,c=t.render,m=t.affixHeader,u=t.card,h=t.onAction,p=t.multiple,f=t.hideCheckToggler,g=t.checkOnItemClick,b=t.masonryLayout,y=t.itemsClassName,v=t.classnames,C=s?"Grid-col--sm"+Math.round(12/s):o||"",k=this.renderHeader(),x=this.renderHeading(),N=this.renderFooter(),S="";return b&&(S="Cards--masonry "+C.split(/\s/).map(function(e){return/^Grid-col--(xs|sm|md|lg)(\d+)/.test(e)?"Cards--masonry"+l.ucFirst(RegExp.$1)+RegExp.$2:e}).join(" ")),r.createElement("div",{ref:this.bodyRef,className:v("Cards",n,{"Cards--unsaved":!!i.modified||!!i.moved})},m?r.createElement("div",{className:v("Cards-fixedTop")},x,k):null,x,k,i.items.length?r.createElement("div",{ref:this.itemsRef,className:v("Cards-body Grid",y,S)},i.items.map(function(t,n){return r.createElement("div",{key:t.index,className:v(C)},c(""+n,a.__assign({type:"card"},u),{className:v(u&&u.className||"",{"is-checked":t.checked,"is-modified":t.modified,"is-moved":t.moved}),item:t,multiple:p,hideCheckToggler:f,selectable:i.selectable,checkable:t.checkable,draggable:t.draggable,selected:t.checked,onSelect:t.toggle,dragging:i.dragging,data:t.locals,checkOnItemClick:g,onAction:h,onCheck:e.handleCheck,onQuickChange:i.dragging?null:e.handleQuickChange}))})):r.createElement("div",{className:v("Cards-placeholder")},d),N)},t.propsList=["header","headerToolbarRender","footer","footerToolbarRender","placeholder","source","selectable","headerClassName","footerClassName","fixAlignment","hideQuickSaveBtn","hideCheckToggler","itemCheckableOn","itemDraggableOn","masonryLayout","items","valueField"],t.defaultProps={className:"",placeholder:"没有数据",source:"$items",selectable:!1,headerClassName:"",footerClassName:"",itemClassName:"Grid-col--sm6 Grid-col--md4 Grid-col--lg3",hideCheckToggler:!1,masonryLayout:!1,affixHeader:!0,itemsClassName:""},t}(r.Component);t.default=u;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([i.Renderer({test:/(^|\/)(?:crud\/body\/grid|cards)$/,name:"cards",storeType:o.ListStore.name,weight:-100})],t)}(u);t.CardsRenderer=h});
;/*!src/renderers/QuickEdit.tsx*/
define("b497f17",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),a=e("node_modules/react-dom/index"),s=e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs"),l=e("node_modules/keycode/index"),r=e("node_modules/dom-helpers/query/matches"),d=e("997df41"),c=e("2b3dcdf"),u=!1;t.HocQuickEdit=function(e){return void 0===e&&(e={}),function(e){var t=function(t){function s(e){var i=t.call(this,e)||this;return i.openQuickEdit=i.openQuickEdit.bind(i),i.closeQuickEdit=i.closeQuickEdit.bind(i),i.handleAction=i.handleAction.bind(i),i.handleSubmit=i.handleSubmit.bind(i),i.handleKeyUp=i.handleKeyUp.bind(i),i.overlayRef=i.overlayRef.bind(i),i.handleWindowKeyPress=i.handleWindowKeyPress.bind(i),i.handleWindowKeyDown=i.handleWindowKeyDown.bind(i),i.state={isOpened:!1},i}return n.__extends(s,t),s.prototype.componentDidMount=function(){this.target=a.findDOMNode(this),u||(u=!0,document.body.addEventListener("keypress",this.handleWindowKeyPress),document.body.addEventListener("keydown",this.handleWindowKeyDown))},s.prototype.handleWindowKeyPress=function(e){var t=this.props.classPrefix,i=e.target.closest("."+t+"Field--quickEditable");if(i){var n=i.closest("table");n&&("space"!==l(e)||~["INPUT","TEXTAREA"].indexOf(i.tagName)||(e.preventDefault(),e.stopPropagation()))}},s.prototype.handleWindowKeyDown=function(e){var t=l(e);if("esc"===t&&i)i.closeQuickEdit();else if(~["INPUT","TEXTAREA"].indexOf(e.target.tagName)||"true"===e.target.contentEditable||!~["up","down","left","right"].indexOf(t))return;e.preventDefault();var n=this.props.classPrefix,o=e.target.closest("."+n+"Field--quickEditable")||document.querySelector("."+n+"Field--quickEditable");if(o){var a=o.closest("table");if(a){var s=a.querySelector("."+n+"Field--quickEditable:focus");if(s){var d=void 0,c=void 0,u=void 0,p=void 0;switch(t){case"up":if(d=s.parentNode.previousSibling){var f=s.cellIndex;d.children[f].focus()}break;case"down":if(c=s.parentNode.nextSibling){var f=s.cellIndex;c.children[f].focus()}break;case"left":for(u=s.previousElementSibling;u&&!r(u,"."+n+"Field--quickEditable[tabindex]");)u=u.previousElementSibling;if(u)u.focus();else if(s.parentNode.previousSibling){var h=s.parentNode.previousSibling.querySelectorAll("."+n+"Field--quickEditable[tabindex]");h.length&&h[h.length-1].focus()}break;case"right":for(p=s.nextSibling;p&&!r(p,"."+n+"Field--quickEditable[tabindex]");)p=p.nextSibling;p?p.focus():s.parentNode.nextSibling&&(p=s.parentNode.nextSibling.querySelector("."+n+"Field--quickEditable[tabindex]"),p&&p.focus())}}else{var m=a.querySelector("."+n+"Field--quickEditable[tabindex]");m&&m.focus()}}}},s.prototype.overlayRef=function(e){this.overlay=e},s.prototype.handleAction=function(e,t,i){var n=this.props.onAction;return"cancel"===t.actionType||"close"===t.actionType?void this.closeQuickEdit():void(n&&n(e,t,i))},s.prototype.handleSubmit=function(e){var t=this.props,i=t.onQuickChange,n=t.quickEdit;this.closeQuickEdit(),i(e,n.saveImmediately)},s.prototype.openQuickEdit=function(){i=this,this.setState({isOpened:!0})},s.prototype.closeQuickEdit=function(){var e=this;if(this.state.isOpened){i=null;var t=this.props.classPrefix;this.setState({isOpened:!1},function(){var i=a.findDOMNode(e),n=i.closest("table");(n&&n.querySelectorAll("td."+t+"Field--quickEditable:focus").length||i)&&i.focus()})}},s.prototype.buildSchema=function(){var e,t=this.props,i=t.quickEdit,o=t.name,a=t.label;return i===!0?e={type:"form",title:"",autoFocus:!0,controls:[{type:"text",name:o,placeholder:a,label:!1}]}:i&&(e=i.controls&&!~["combo","group","panel","fieldSet"].indexOf(i.type)||i.tabs||i.fieldSet?n.__assign({title:"",autoFocus:"inline"!==i.mode,mode:"inline"===i.mode?"inline":"normal"},i,{type:"form"}):{title:"",className:i.formClassName,type:"form",autoFocus:"inline"!==i.mode,mode:"inline"===i.mode?"inline":"normal",controls:[n.__assign({type:i.type||"text",name:i.name||o,placeholder:a,label:!1},i)]}),e&&(e=n.__assign({},e,{wrapWithPanel:"inline"!==i.mode,actions:"inline"===i.mode?[]:[{type:"button",label:"取消",actionType:"cancel"},{label:"确认",type:"submit",primary:!0}]})),e||"error"},s.prototype.handleKeyUp=function(e){var t=l(e);"space"!==t||~["INPUT","TEXTAREA"].indexOf(e.target.tagName)||(e.preventDefault(),e.stopPropagation(),this.openQuickEdit())},s.prototype.renderPopOver=function(){var e=this,t=this.props,i=t.quickEdit,n=t.render,s=t.popOverContainer,l=t.classPrefix,r=t.classnames,u=o.createElement("div",{className:r(i.className)},n("quick-edit-form",this.buildSchema(),{onSubmit:this.handleSubmit,onAction:this.handleAction,onChange:null,popOverContainer:s?function(){return e.overlay}:null}));return s=s||function(){return a.findDOMNode(e)},o.createElement(d.default,{container:s,placement:"left-top right-top left-bottom right-bottom",target:function(){return e.target},onHide:this.closeQuickEdit,show:!0},o.createElement(c.default,{classPrefix:l,ref:this.overlayRef,className:r(l+"QuickEdit-popover",i.popOverClassName),onHide:this.closeQuickEdit,overlay:!0},u))},s.prototype.render=function(){var t=this.props,i=t.onQuickChange,a=t.quickEdit,s=t.quickEditEnabled,l=t.className,r=t.classnames,d=t.render,c=t.noHoc;return a&&i&&s!==!1&&!c?"inline"===a.mode?o.createElement(e,n.__assign({},this.props),d("inline-form",this.buildSchema(),{wrapperComponent:"div",className:r("Form--quickEdit"),onChange:function(e){return i(e,a.saveImmediately)}})):o.createElement(e,n.__assign({},this.props,{className:r("Field--quickEditable",l,{"in":this.state.isOpened}),tabIndex:a.focusable===!1?void 0:"0",onKeyUp:this.handleKeyUp}),o.createElement(e,n.__assign({},this.props,{wrapperComponent:"",noHoc:!0})),o.createElement("i",{key:"edit-btn",className:r("Field-quickEditBtn fa fa-edit"),onClick:this.openQuickEdit}),this.state.isOpened?this.renderPopOver():null):o.createElement(e,n.__assign({},this.props))},s.ComposedComponent=e,s}(o.PureComponent);return s(t,e),t}},t.default=t.HocQuickEdit});
;/*!src/renderers/PopOver.tsx*/
define("bcd7efc",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),n=e("node_modules/react-dom/index"),s=e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs"),p=e("node_modules/react-overlays/lib/index"),i=e("2b3dcdf"),a=e("997df41");t.HocPopOver=function(e){return void 0===e&&(e={}),function(e){var t=function(t){function s(e){var o=t.call(this,e)||this;return o.openPopOver=o.openPopOver.bind(o),o.closePopOver=o.closePopOver.bind(o),o.targetRef=o.targetRef.bind(o),o.state={isOpened:!1},o}return o.__extends(s,t),s.prototype.targetRef=function(e){this.target=e},s.prototype.openPopOver=function(){var e=this,t=this.props.onPopOverOpen;this.setState({isOpened:!0},function(){return t&&t(e.props.popOver)})},s.prototype.closePopOver=function(){var e=this;if(this.state.isOpened){var t=this.props.onPopOverClose;this.setState({isOpened:!1},function(){return t&&t(e.props.popOver)})}},s.prototype.buildSchema=function(){{var e,t=this.props,r=t.popOver;t.name,t.label}return r===!0?e={type:"panel",body:"${name}"}:!r||"dialog"!==r.mode&&"drawer"!==r.mode?r&&(e=o.__assign({type:"panel"},r)):e=o.__assign({type:r.mode,actions:[{label:"关闭",type:"button",actionType:"cancel"}]},r),e||"error"},s.prototype.renderPopOver=function(){var e=this,t=this.props,o=t.popOver,s=t.render,l=t.popOverContainer,c=t.classnames,d=t.classPrefix;if(o&&("dialog"===o.mode||"drawer"===o.mode))return s("popover-detail",this.buildSchema(),{show:!0,onClose:this.closePopOver,onConfirm:this.closePopOver});var v=s("popover-detail",this.buildSchema(),{className:c(o.className)});l||(l=function(){return n.findDOMNode(e)});var u=o&&o.position||"",m=/^fixed\-/.test(u);return m?r.createElement(p.RootCloseWrapper,{disabled:!this.state.isOpened,onRootClose:this.closePopOver},r.createElement("div",{className:c("PopOverAble--fixed PopOverAble--"+u)},v)):r.createElement(a.default,{container:l,placement:u||"center",target:function(){return e.target},onHide:this.closePopOver,rootClose:!0,show:!0},r.createElement(i.default,{classPrefix:d,className:c("PopOverAble-popover")},v))},s.prototype.render=function(){{var t=this.props,n=(t.onQuickChange,t.popOver),s=t.popOverEnabled,p=t.className,i=t.noHoc,a=t.classnames;t.render}return!n||s===!1||i?r.createElement(e,o.__assign({},this.props)):r.createElement(e,o.__assign({},this.props,{className:a("Field--popOverAble",p,{"in":this.state.isOpened})}),r.createElement(e,o.__assign({},this.props,{wrapperComponent:"",noHoc:!0,ref:this.targetRef})),r.createElement("i",{key:"popover-btn",className:a("Field-popOverBtn fa fa-search-plus"),onClick:this.openPopOver}),this.state.isOpened?this.renderPopOver():null)},s.ComposedComponent=e,s}(r.Component);return s(t,e),t}},t.default=t.HocPopOver});
;/*!src/renderers/Copyable.tsx*/
define("705a434",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),s=e("node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs"),a=e("6a2dbb7");t.HocCopyable=function(){return function(e){var t=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(s,t),s.prototype.handleClick=function(e){var t=this.props.env;t.copy&&t.copy(e)},s.prototype.render=function(){var t=this.props,s=t.copyable,i=t.name,r=t.className,c=t.data,l=t.noHoc,p=t.classnames;if(s&&!l){var d=a.filter(s.content||"${"+i+" | raw }",c);if(d)return o.createElement(e,n.__assign({},this.props,{className:p("Field--copyable",r)}),o.createElement(e,n.__assign({},this.props,{wrapperComponent:"",noHoc:!0})),o.createElement("i",{key:"edit-btn","data-tooltip":"点击复制",className:p("Field-copyBtn fa fa-clipboard"),onClick:this.handleClick.bind(this,d)}))}return o.createElement(e,n.__assign({},this.props))},s.ComposedComponent=e,s}(o.PureComponent);return s(t,e),t}},t.default=t.HocCopyable});
;/*!src/renderers/Table.tsx*/
define("f6086a9",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),r=e("node_modules/react-dom/index"),l=e("0f9ebdf"),o=e("node_modules/lodash/forEach"),i=e("6a2dbb7"),s=e("node_modules/classnames/index"),d=e("bb5331d"),c=e("0a43d97"),p=e("a67acca"),h=e("4fbfbc8"),u=e("node_modules/mobx-react/index"),m=e("9a80175"),f=e("f2e345e"),b=e("node_modules/lodash/debounce"),g=e("node_modules/lodash/xor"),y=e("b497f17"),v=e("2b3dcdf"),C=e("705a434"),x=e("node_modules/sortablejs/Sortable"),k=e("node_modules/lodash/flatMap"),T=e("67d35e6"),N=e("node_modules/lodash/find"),_=e("997df41"),E=e("bcd7efc"),w=function(e){function t(t){var n=e.call(this,t)||this;return n.lastScrollLeft=-1,n.totalWidth=0,n.totalHeight=0,n.outterWidth=0,n.outterHeight=0,n.widths={},n.heights={},n.renderedToolbars=[],n.handleOutterScroll=n.handleOutterScroll.bind(n),n.affixDetect=n.affixDetect.bind(n),n.updateTableInfoLazy=b(n.updateTableInfo.bind(n),250,{trailing:!0,leading:!1}),n.tableRef=n.tableRef.bind(n),n.affxiedTableRef=n.affxiedTableRef.bind(n),n.handleAction=n.handleAction.bind(n),n.handleCheck=n.handleCheck.bind(n),n.handleCheckAll=n.handleCheckAll.bind(n),n.handleQuickChange=n.handleQuickChange.bind(n),n.handleSave=n.handleSave.bind(n),n.handleSaveOrder=n.handleSaveOrder.bind(n),n.reset=n.reset.bind(n),n.dragTipRef=n.dragTipRef.bind(n),n.getPopOverContainer=n.getPopOverContainer.bind(n),n.renderCell=n.renderCell.bind(n),n.renderToolbar=n.renderToolbar.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleMouseLeave=n.handleMouseLeave.bind(n),n}return n.__extends(t,e),t.syncRows=function(e,t,n){var a=t.source,r=t.value||t.items,l=[],o=!0;if(Array.isArray(r))l=r;else if("string"==typeof a){var i=f.resolveVariable(a,t.data),s=n?f.resolveVariable(a,n.data):null;s&&s===i?o=!1:Array.isArray(i)&&(l=i)}o&&e.initRows(l,t.getEntryId),"undefined"!=typeof t.selected&&e.updateSelected(t.selected,t.valueField)},t.prototype.componentWillMount=function(){var e=this.props,n=e.store,a=e.columns,r=e.selectable,l=e.columnsTogglable,o=e.draggable,i=e.orderBy,s=e.orderDir,d=e.multiple,c=e.footable,p=e.primaryField,h=e.itemCheckableOn,u=e.itemDraggableOn,m=e.hideCheckToggler,f=e.combineNum;n.update({selectable:r,draggable:o,columns:a,columnsTogglable:l,orderBy:i,orderDir:s,multiple:d,footable:c,primaryField:p,itemCheckableOn:h,itemDraggableOn:u,hideCheckToggler:m,combineNum:f}),t.syncRows(n,this.props),this.syncSelected()},t.prototype.componentDidMount=function(){var e=m.getScrollParent(r.findDOMNode(this));e&&e!==document.body||(e=window),this.parentNode=e,this.updateTableInfo(),this.handleOutterScroll();var t=r.findDOMNode(this);t.closest(".modal-body")||(this.affixDetect(),e.addEventListener("scroll",this.affixDetect),window.addEventListener("resize",this.affixDetect))},t.prototype.componentWillReceiveProps=function(e){var n=this.props,a=e.store;m.anyChanged(["selectable","columnsTogglable","draggable","orderBy","orderDir","multiple","footable","primaryField","itemCheckableOn","itemDraggableOn","hideCheckToggler","combineNum"],n,e)&&a.update({selectable:e.selectable,columnsTogglable:e.columnsTogglable,draggable:e.draggable,orderBy:e.orderBy,orderDir:e.orderDir,multiple:e.multiple,primaryField:e.primaryField,footable:e.footable,itemCheckableOn:e.itemCheckableOn,itemDraggableOn:e.itemDraggableOn,hideCheckToggler:e.hideCheckToggler,combineNum:e.combineNum}),n.columns!==e.columns&&a.update({columns:e.columns}),m.anyChanged(["source","value","items"],n,e)||!e.value&&!e.items&&e.data!==n.data?(t.syncRows(a,e,n),this.syncSelected()):n.selected!==e.selected&&(a.updateSelected(e.selected||[],e.valueField),this.syncSelected())},t.prototype.componentDidUpdate=function(){this.updateTableInfo(),this.handleOutterScroll()},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),window.removeEventListener("resize",this.affixDetect),this.updateTableInfoLazy.cancel(),this.unSensor&&this.unSensor()},t.prototype.handleAction=function(e,t,n){var a=this.props.onAction;a(e,t,n)},t.prototype.handleCheck=function(e){e.toggle(),this.syncSelected()},t.prototype.handleCheckAll=function(){var e=this.props.store;e.toggleAll(),this.syncSelected()},t.prototype.handleQuickChange=function(e,t,n,a){var r=this.props.onSave;return e.change(t,a),this.syncSelected(),n&&!a?n&&n.api?void this.props.onAction(null,{actionType:"ajax",api:n.api},t):void(r&&r(e.data,m.difference(e.data,e.pristine),e.index)):void 0},t.prototype.handleSave=function(){var e=this.props,t=e.store,n=e.onSave;if(n&&t.modifiedRows.length){var a=t.modifiedRows.map(function(e){return e.data}),r=t.modifiedRows.map(function(e){return e.index}),l=t.modifiedRows.map(function(e){return m.difference(e.data,e.pristine)}),o=t.rows.filter(function(e){return!e.modified}).map(function(e){return e.data});n(a,l,r,o)}},t.prototype.handleSaveOrder=function(){var e=this.props,t=e.store,n=e.onSaveOrder;n&&t.movedRows.length&&n(t.movedRows.map(function(e){return e.data}),t.rows.map(function(e){return e.data}))},t.prototype.syncSelected=function(){var e=this.props,t=e.store,n=e.onSelect;n&&n(t.selectedRows.map(function(e){return e.data}),t.unSelectedRows.map(function(e){return e.data}))},t.prototype.reset=function(){var e=this.props.store;e.reset()},t.prototype.bulkUpdate=function(e,t){var a=this.props,r=a.store,l=a.primaryField;if(l&&e.ids){var o=e.ids.split(","),i=r.rows.filter(function(e){return N(o,function(t){return t&&t==e.data[l]})}),s=n.__assign({},e,{ids:void 0});i.forEach(function(e){return e.change(s)})}else{var i=r.rows.filter(function(e){return~t.indexOf(e.pristine)});i.forEach(function(t){return t.change(e)})}},t.prototype.getSelected=function(){var e=this.props.store;return e.selectedRows.map(function(e){return e.data})},t.prototype.affixDetect=function(){if(this.props.affixHeader&&this.table){var e=this.props.classPrefix,t=r.findDOMNode(this),n=this.table.getBoundingClientRect(),a=this.props.env.affixOffsetTop||0,l=n.top<a&&n.top+n.height-40>a,o=t.querySelector(":scope>."+e+"Table-fixedTop");o.style.cssText="top: "+a+"px;width: "+this.table.parentNode.offsetWidth+"px",l?o.classList.add("in"):o.classList.remove("in")}},t.prototype.updateTableInfo=function(){var e=this;if(this.table){var t=this.table,n=t.parentNode,a=this.props.affixHeader,l=this.props.classPrefix;this.totalWidth=t.scrollWidth,this.totalHeight=t.scrollHeight,this.outterWidth=n.offsetWidth,this.outterHeight=n.offsetHeight;var i=this.widths={},s=this.heights={};o(t.querySelectorAll("thead>tr:first-child>th"),function(e){s.header||(s.header=e.offsetHeight),i[e.getAttribute("index")]=e.offsetWidth}),o(t.querySelectorAll("tbody>tr>*:first-child"),function(e,t){return s[t]=e.offsetHeight});var d=r.findDOMNode(this);if(o(d.querySelectorAll(":scope>."+l+"Table-fixedLeft, :scope>."+l+"Table-fixedRight"),function(t){return t.style.cssText="height:"+e.totalHeight+"px;"}),a){d.querySelector("."+l+"Table-fixedTop>."+l+"Table-wrapper").style.cssText="width: "+this.outterWidth+"px";var c=d.querySelector("."+l+"Table-wrapper table");c.style.cssText="width: "+this.totalWidth+"px"}o(d.querySelectorAll("."+l+"Table-fixedTop table, ."+l+"Table-fixedLeft table, ."+l+"Table-fixedRight table"),function(t){o(t.querySelectorAll("thead>tr>th"),function(t){t.style.cssText="width: "+e.widths[parseInt(t.getAttribute("index"),10)]+"px"}),o(t.querySelectorAll("tbody>tr"),function(t,n){t.style.cssText="height: "+e.heights[n]+"px"})})}},t.prototype.handleOutterScroll=function(){var e=this.table.parentNode,t=e.scrollLeft;if(t!==this.lastScrollLeft){this.lastScrollLeft=t;var n=0===t,a=t+this.outterWidth===this.totalWidth,l=this.props.classPrefix,o=r.findDOMNode(this),i=o.querySelectorAll("."+l+"Table-fixedLeft");if(i&&i.length)for(var s=0,d=i.length;d>s;s++){var c=i[s];n?c.classList.remove("in"):c.classList.add("in")}var p=o.querySelectorAll("."+l+"Table-fixedRight");if(p&&p.length)for(var s=0,d=p.length;d>s;s++){var c=p[s];a?c.classList.remove("in"):c.classList.add("in")}var h=this.affixedTable;h&&(h.style.cssText+="transform: translateX(-"+t+"px)")}},t.prototype.tableRef=function(e){this.table=e,e?this.unSensor=T.resizeSensor(e.parentNode,this.updateTableInfoLazy):(this.unSensor&&this.unSensor(),delete this.unSensor)},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.affxiedTableRef=function(e){this.affixedTable=e},t.prototype.initDragging=function(){var e=this.props.store,t=this.props.classPrefix;this.sortable=new x(this.table.querySelector("tbody"),{group:"table",handle:"."+t+"Table-dragCell",ghostClass:"is-dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var n=t.to;t.oldIndex<n.childNodes.length-1?n.insertBefore(t.item,n.childNodes[t.oldIndex]):n.appendChild(t.item),e.exchange(t.oldIndex,t.newIndex)}}})},t.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},t.prototype.getPopOverContainer=function(){return r.findDOMNode(this)},t.prototype.handleMouseMove=function(e){var t=e.target.closest("tr[data-index]");if(t){var n=this.props.store,a=parseInt(t.getAttribute("data-index"),10);n.hoverIndex!==a&&n.rows.forEach(function(e,t){return e.setIsHover(a===t)})}},t.prototype.handleMouseLeave=function(){var e=this.props.store;~e.hoverIndex&&e.rows[e.hoverIndex].setIsHover(!1)},t.prototype.renderHeading=function(){var e=this.props,t=e.title,n=e.store,r=e.hideQuickSaveBtn,l=e.data,o=e.classnames;return t||n.modified&&!r||n.moved?a.createElement("div",{className:o("Table-heading"),key:"heading"},n.modified&&!r?a.createElement("span",null,"当前有 "+n.modified+" 条记录修改了内容, 但并没有提交。请选择:",a.createElement("button",{type:"button",className:o("Button Button--xs Button--success m-l-sm"),onClick:this.handleSave},a.createElement("i",{className:"fa fa-check m-r-xs"}),"提交"),a.createElement("button",{type:"button",className:o("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},a.createElement("i",{className:"fa fa-times m-r-xs"}),"放弃")):n.moved?a.createElement("span",null,"当前有 "+n.moved+" 条记录修改了顺序, 但并没有提交。请选择:",a.createElement("button",{type:"button",className:o("Button Button--xs Button--success m-l-sm"),onClick:this.handleSaveOrder},a.createElement("i",{className:"fa fa-check m-r-xs"}),"提交"),a.createElement("button",{type:"button",className:o("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},a.createElement("i",{className:"fa fa-times m-r-xs"}),"放弃")):t?i.filter(t,l):""):null},t.prototype.renderHeadCell=function(e,t){var r=this.props,l=r.store,o=r.query,i=r.onQuery,s=r.multiple,d=r.env,h=r.render,u=r.classPrefix,m=r.classnames;if("__checkme"===e.type)return a.createElement("th",n.__assign({},t,{className:m(e.pristine.className)}),l.rows.length&&s?a.createElement(c.default,{classPrefix:u,partial:!l.allChecked,checked:l.someChecked,onChange:this.handleCheckAll}):null);if("__dragme"===e.type)return a.createElement("th",n.__assign({},t,{className:m(e.pristine.className)}));if("__expandme"===e.type)return a.createElement("th",n.__assign({},t,{className:m(e.pristine.className)}),a.createElement(p.default,{className:m("Table-expandBtn"),classPrefix:u,size:"xs",level:"link",tooltip:"展开/收起全部",tooltipContainer:d&&d.getModalContainer?d.getModalContainer():void 0,onClick:l.toggleExpandAll},a.createElement("i",{className:l.allExpanded?"fa fa-minus":"fa fa-plus"})));var f=null;return e.searchable&&e.name?f=a.createElement(A,n.__assign({},this.props,{onQuery:i,name:e.name,searchable:e.searchable,sortable:e.sortable,type:e.type,data:o,orderBy:l.orderBy,orderDir:l.orderDir,popOverContainer:this.getPopOverContainer})):e.sortable&&e.name?f=a.createElement("span",{className:m("TableCell-sortBtn"),onClick:function(){e.name===l.orderBy?l.setOrderByInfo(e.name,"desc"===l.orderDir?"asc":"desc"):l.setOrderByInfo(e.name,"asc"),i&&i({orderBy:l.orderBy,orderDir:l.orderDir})}},a.createElement("i",{className:m("TableCell-sortBtn--down",l.orderBy===e.name&&"desc"===l.orderDir?"is-active":"")}),a.createElement("i",{className:m("TableCell-sortBtn--up",l.orderBy===e.name&&"asc"===l.orderDir?"is-active":"")}),a.createElement("i",{className:m("TableCell-sortBtn--default",l.orderBy===e.name?"":"is-active")})):e.filterable&&e.name&&(f=a.createElement(D,n.__assign({},this.props,{onQuery:i,name:e.name,type:e.type,data:o,filterable:e.filterable,popOverContainer:this.getPopOverContainer}))),e.pristine.width&&(t.style=t.style||{},t.style.width=e.pristine.width),a.createElement("th",n.__assign({},t,{className:m(t?t.className:"",e.pristine.className,{"TableCell--sortable":e.sortable,"TableCell--searchable":e.searchable,"TableCell--filterable":e.filterable,"Table-operationCell":"operation"===e.type})}),e.label,e.remark?h("remark",{type:"remark",tooltip:e.remark,container:d&&d.getModalContainer?d.getModalContainer():void 0}):null,f)},t.prototype.renderCell=function(e,t,r,l){var o=this.props,i=o.render,s=o.store,d=o.multiple,h=o.env,u=o.classPrefix,b=o.classnames,g=o.checkOnItemClick;if(t.name&&0===r.rowSpans[t.name])return null;if("__checkme"===t.type)return a.createElement("td",{key:l.key,className:b(t.pristine.className)},r.checkable?a.createElement(c.default,{classPrefix:u,type:d?"checkbox":"radio",checked:r.checked,onChange:g?m.noop:this.handleCheck.bind(this,r)}):null);if("__dragme"===t.type)return a.createElement("td",{key:l.key,className:b(t.pristine.className)},r.draggable?a.createElement("i",{className:"glyphicon glyphicon-sort"}):null);if("__expandme"===t.type)return a.createElement("td",{key:l.key,className:b(t.pristine.className)},r.expandable?a.createElement(p.default,{className:b("Table-expandBtn"),classPrefix:u,size:"xs",level:"link",tooltip:"展开/收起",tooltipContainer:h&&h.getModalContainer?h.getModalContainer():void 0,onClick:r.toggleExpanded},a.createElement("i",{className:r.expanded?"fa fa-minus":"fa fa-plus"})):null);var y=t.pristine.$$id?t.pristine.$$id+"-column":"",v=n.__assign({},t.pristine,l,{column:t.pristine,btnDisabled:s.dragging,data:r.locals,value:t.name?f.resolveVariable(t.name,r.data):void 0,popOverContainer:this.getPopOverContainer,rowSpan:r.rowSpans[t.name]});return delete v.$$id,delete v.label,i(e,{type:"cell",$$id:y},v)},t.prototype.renderAffixHeader=function(e){var t=this,n=this.props,r=n.store,l=n.affixHeader,o=n.classnames;return l?a.createElement("div",{className:o("Table-fixedTop")},this.renderHeader(!1),a.createElement("div",{className:o("Table-fixedLeft")},r.leftFixedColumns.length?this.renderFxiedColumns(r.leftFixedColumns,!0,e):null),a.createElement("div",{className:o("Table-fixedRight")},r.rightFixedColumns.length?this.renderFxiedColumns(r.rightFixedColumns,!0,e):null),a.createElement("div",{className:o("Table-wrapper")},a.createElement("table",{ref:this.affxiedTableRef,className:e},a.createElement("thead",null,a.createElement("tr",null,r.filteredColumns.map(function(e){return t.renderHeadCell(e,{key:e.index,index:e.index})})))))):null},t.prototype.renderFxiedColumns=function(e,t,r){var l=this;void 0===t&&(t=!1),void 0===r&&(r="");var o=this.props,i=o.rowClassName,s=o.placeholder,d=o.store,c=o.onAction,p=o.buildItemProps,h=o.classnames,u=o.classPrefix,m=o.checkOnItemClick;return a.createElement("table",{className:h("Table-table",d.combineNum>0?"Table-table--withCombine":"",r)},a.createElement("thead",null,a.createElement("tr",null,e.map(function(e){return l.renderHeadCell(e,{key:e.index,index:e.index})}))),t?null:a.createElement("tbody",null,d.rows.length?d.rows.map(function(t,r){var o=p?p(t,r):null;return a.createElement(O,n.__assign({},o,{classPrefix:u,checkOnItemClick:m,key:t.id,itemIndex:r,item:t,itemClassName:i,columns:e,renderCell:l.renderCell,regionPrefix:"fixed/",onCheck:l.handleCheck,onAction:c,onQuickChange:d.dragging?null:l.handleQuickChange,$$editable:!1}))}):a.createElement("tr",{className:h("Table-placeholder")},a.createElement("td",{colSpan:e.length},s))))},t.prototype.renderToolbar=function(e){var t=e.type||e;return"columns-toggler"===t?(this.renderedToolbars.push(t),this.renderColumnsToggler(e)):"drag-toggler"===t?(this.renderedToolbars.push(t),this.renderDragToggler()):void 0},t.prototype.renderColumnsToggler=function(e){var t=this.props,r=t.store,l=t.classPrefix,o=t.classnames,i=n.__rest(t,["store","classPrefix","classnames"]);return r.columnsTogglable?a.createElement(d.default,n.__assign({},i,{iconOnly:!0,align:e?e.align:"left",classnames:o,classPrefix:l,key:"columns-toggable",size:"sm",label:a.createElement("i",{className:"glyphicon glyphicon-th icon-th"})}),r.toggableColumns.map(function(e){return a.createElement("li",{className:o("DropDown-menuItem"),key:e.index},a.createElement(c.default,{classPrefix:l,checked:e.toggled,onChange:e.toggleToggle},e.label))})):null},t.prototype.renderDragToggler=function(){var e=this.props,t=e.store,n=e.env,r=e.draggable,l=e.classPrefix,o=e.dragIcon;return r?a.createElement(p.default,{disabled:!!t.modified,classPrefix:l,key:"dragging-toggle",tooltip:"点击开始排序",tooltipContainer:n&&n.getModalContainer?n.getModalContainer():void 0,size:"sm",active:t.dragging,onClick:function(e){e.preventDefault(),t.toggleDragging(),t.dragging&&t.clear()},iconOnly:!0},a.createElement("i",{className:o})):null},t.prototype.renderActions=function(e){var t=this,r=this.props,l=r.actions,o=r.render,i=r.store,s=r.classnames,d=r.data;return l=Array.isArray(l)?l.concat():[],i.toggable&&"header"===e&&!~this.renderedToolbars.indexOf("columns-toggler")&&l.push({type:"button",children:this.renderColumnsToggler()}),i.draggable&&"header"===e&&i.rows.length>1&&!~this.renderedToolbars.indexOf("drag-toggler")&&l.push({type:"button",children:this.renderDragToggler()}),Array.isArray(l)&&l.length?a.createElement("div",{className:s("Table-actions")},l.map(function(e,a){return o("action/"+a,n.__assign({type:"button"},e),{onAction:t.handleAction,key:a,btnDisabled:i.dragging,data:i.getData(d)})})):null},t.prototype.renderHeader=function(e){var t=this.props,r=t.header,l=t.headerClassName,o=t.toolbarClassName,i=t.headerToolbarRender,s=t.render,d=t.showHeader,c=t.store,p=t.classnames,h=t.data;if(d===!1)return null;var u={};e===!1&&(u.$$editable=!1);var m=i?i(n.__assign({},this.props,{selectedItems:c.selectedRows.map(function(e){return e.data}),items:c.rows.map(function(e){return e.data}),unSelectedItems:c.unSelectedRows.map(function(e){return e.data})},u),this.renderToolbar):null,f=this.renderActions("header"),b=f||m||c.dragging?a.createElement("div",{className:p("Table-toolbar Table-headToolbar",o),key:"header-toolbar"},f,m,c.dragging?a.createElement("div",{className:p("Table-dragTip"),ref:this.dragTipRef},"请拖动左边的按钮进行排序"):null):null,g=!r||Array.isArray(r)&&!r.length?null:a.createElement("div",{className:p("Table-header",l),key:"header"},s("header",r,n.__assign({},e===!1?u:null,{ata:c.getData(h)})));return g&&b?[g,b]:g||b||null},t.prototype.renderFooter=function(){var e=this.props,t=e.footer,r=e.toolbarClassName,l=e.footerClassName,o=e.footerToolbarRender,i=e.render,s=e.showFooter,d=e.store,c=e.data,p=e.classnames;if(s===!1)return null;var h=o?o(n.__assign({},this.props,{selectedItems:d.selectedRows.map(function(e){return e.data}),items:d.rows.map(function(e){return e.data})}),this.renderToolbar):null,u=this.renderActions("footer"),m=u||h?a.createElement("div",{className:p("Table-toolbar Table-footToolbar",r),key:"footer-toolbar"},u,h):null,f=!t||Array.isArray(t)&&!t.length?null:a.createElement("div",{className:p("Table-footer",l),key:"footer"},i("footer",t,{data:d.getData(c)}));return f&&m?[m,f]:f||m||null},t.prototype.renderRows=function(e){var t=this,r=this.props,l=r.store,o=r.rowClassName,i=r.onAction,s=r.buildItemProps,d=r.checkOnItemClick,c=r.classPrefix;return k(e,function(e,r){var p=s?s(e,r):null,h=[a.createElement(O,n.__assign({},p,{classPrefix:c,checkOnItemClick:d,key:e.depth>1?e.id:e.key,itemIndex:r,item:e,itemClassName:o,columns:l.filteredColumns,renderCell:t.renderCell,onAction:i,onCheck:t.handleCheck,onQuickChange:l.dragging?null:t.handleQuickChange}))];return e.expanded&&!l.dragging&&(l.footable&&l.footableColumns.length?1===e.depth&&h.push(a.createElement(O,n.__assign({},p,{classPrefix:c,checkOnItemClick:d,key:"foot-"+e.index,itemIndex:r,item:e,itemClassName:o,columns:l.footableColumns,renderCell:t.renderCell,onAction:i,onCheck:t.handleCheck,footableMode:!0,footableColSpan:l.filteredColumns.length,onQuickChange:l.dragging?null:t.handleQuickChange}))):Array.isArray(e.data.children)&&h.push.apply(h,t.renderRows(e.children))),h})},t.prototype.renderItemActions=function(){var e=this.props,t=e.itemActions,r=e.render,l=e.store,o=e.classnames,i=l.hoverIndex;if(!~i||!t||!t.length)return null;var s=this.heights,d=40,c=0;if(s&&s[i]){d=s[i],c+=s.header;for(var p=i-1;p>=0;p--)c+=s[p]}return a.createElement("div",{className:o("Table-itemActions-wrap"),style:{top:c,height:d}},a.createElement("div",{className:o("Table-itemActions")},t.map(function(e,t){return e.hiddenOnHover?null:r("itemAction/"+t,n.__assign({},e,{isMenuItem:!0}),{key:t,item:l.rows[i],data:l.rows[i].locals,rowIndex:i})})))},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.store,l=t.placeholder,o=t.classnames;this.renderedToolbars=[];var i=this.renderHeading(),s=this.renderHeader(),d=this.renderFooter(),c=o("Table-table",r.combineNum>0?"Table-table--withCombine":"",this.props.tableClassName);return a.createElement("div",{className:o("Table",n,{"Table--unsaved":!!r.modified||!!r.moved})},this.renderAffixHeader(c),i,s,a.createElement("div",{className:o("Table-contentWrap"),onMouseLeave:this.handleMouseLeave},a.createElement("div",{className:o("Table-fixedLeft")},r.leftFixedColumns.length?this.renderFxiedColumns(r.leftFixedColumns,!1,c):null),a.createElement("div",{className:o("Table-fixedRight")},r.rightFixedColumns.length?this.renderFxiedColumns(r.rightFixedColumns,!1,c):null),a.createElement("div",{onMouseMove:this.handleMouseMove,className:o("Table-content"),onScroll:this.handleOutterScroll},a.createElement("table",{ref:this.tableRef,className:c},a.createElement("thead",null,a.createElement("tr",null,r.filteredColumns.map(function(t){return e.renderHeadCell(t,{index:t.index,key:t.index})}))),a.createElement("tbody",null,r.rows.length?this.renderRows(r.rows):a.createElement("tr",{className:o("Table-placeholder")},a.createElement("td",{colSpan:r.filteredColumns.length},l))))),~r.hoverIndex?this.renderItemActions():null),d)},t.propsList=["header","headerToolbarRender","footer","footerToolbarRender","placeholder","tableClassName","source","selectable","columnsTogglable","affixHeader","headerClassName","footerClassName","selected","multiple","primaryField","hideQuickSaveBtn","itemCheckableOn","itemDraggableOn","checkOnItemClick","hideCheckToggler","itemActions","combineNum","items","valueField"],t.defaultProps={className:"",placeholder:"暂无数据",tableClassName:"",source:"$items",selectable:!1,columnsTogglable:"auto",affixHeader:!0,headerClassName:"",footerClassName:"",toolbarClassName:"",primaryField:"id",itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1,dragIcon:"glyphicon glyphicon-sort"},t}(a.Component);t.default=w;var O=function(e){function t(t){var n=e.call(this,t)||this;return n.handleAction=n.handleAction.bind(n),n.handleQuickChange=n.handleQuickChange.bind(n),n.handleClick=n.handleClick.bind(n),n}return n.__extends(t,e),t.prototype.handleClick=function(e){var t=e.target,n=this.props.classPrefix;!e.currentTarget.contains(t)||~["INPUT","TEXTAREA"].indexOf(t.tagName)||t.closest("button, a, ."+n+"Form-item")||this.props.onCheck(this.props.item)},t.prototype.handleAction=function(e,t,n){var a=this.props,r=a.onAction,l=a.item;r&&r(e,t,n||l.data)},t.prototype.handleQuickChange=function(e,t,n){var a=this.props,r=a.onQuickChange,l=a.item;r&&r(l,e,t,n)},t.prototype.render=function(){var e=this,t=this.props,r=t.itemClassName,l=t.itemIndex,o=t.item,i=t.columns,d=t.renderCell,c=(t.children,t.footableMode),p=t.footableColSpan,h=t.regionPrefix,u=t.checkOnItemClick,m=t.classPrefix,f=n.__rest(t,["itemClassName","itemIndex","item","columns","renderCell","children","footableMode","footableColSpan","regionPrefix","checkOnItemClick","classPrefix"]);return c?a.createElement("tr",{"data-index":o.newIndex,onClick:u?this.handleClick:void 0,className:s(r,(b={"is-hovered":o.isHover,"is-checked":o.checked,"is-modified":o.modified,"is-moved":o.moved},b[m+"Table-tr--odd"]=l%2===0,b[m+"Table-tr--even"]=l%2===1,b))},a.createElement("td",{className:m+"Table-foot",colSpan:p},a.createElement("table",{className:m+"Table-footTable"},a.createElement("tbody",null,i.map(function(t){return a.createElement("tr",{key:t.index},t.label!==!1?a.createElement("th",null,t.label):null,d(""+h+l+"/"+t.index,t,o,n.__assign({},f,{width:null,rowIndex:l,key:t.index,onAction:e.handleAction,onQuickChange:e.handleQuickChange})))}))))):a.createElement("tr",{onClick:u?this.handleClick:void 0,"data-index":1===o.depth?o.newIndex:void 0,className:s(r,(g={"is-hovered":o.isHover,"is-checked":o.checked,"is-modified":o.modified,"is-moved":o.moved},g[m+"Table-tr--odd"]=l%2===0,g[m+"Table-tr--even"]=l%2===1,g),m+"Table-tr--"+o.depth+"th")},i.map(function(t){return d(l+"/"+t.index,t,o,n.__assign({},f,{rowIndex:l,key:t.index,onAction:e.handleAction,onQuickChange:e.handleQuickChange}))}));var b,g},t=n.__decorate([u.observer,n.__metadata("design:paramtypes",[Object])],t)}(a.Component),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.Renderer({test:function(e){return/(^|\/)table$/.test(e)},storeType:h.TableStore.name,name:"table"})],t)}(w);t.TableRenderer=S;var A=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpened:!1},n.open=n.open.bind(n),n.close=n.close.bind(n),n.close=n.close.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n.handleAction=n.handleAction.bind(n),n}return n.__extends(t,e),t.prototype.buildSchema=function(){var e,t=this.props,a=t.searchable,r=t.sortable,l=t.name,o=t.label;return a===!0?e={title:"",controls:[{type:"text",name:l,placeholder:o}]}:a&&(e=a.controls||a.tabs||a.fieldSet?n.__assign({title:""},a):{title:"",className:a.formClassName,controls:[n.__assign({type:a.type||"text",name:a.name||l,placeholder:o},a)]}),e&&e.controls&&r&&e.controls.unshift({type:"hidden",name:"orderBy",value:l},{type:"button-group",name:"orderDir",label:"排序",options:[{label:"正序",value:"asc"},{label:"降序",value:"desc"}]}),e&&(e=n.__assign({},e,{type:"form",wrapperComponent:"div",actions:[{type:"button",label:"取消",actionType:"cancel"},{label:"搜索",type:"submit",primary:!0}]})),e||"error"},t.prototype.handleClickOutside=function(){this.close()},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleAction=function(e,t,n){var a=this.props.onAction;return"cancel"===t.actionType||"close"===t.actionType?void this.close():void(a&&a(e,t,n))},t.prototype.handleSubmit=function(e){var t=this.props,a=t.onQuery,r=t.name;this.close(),e.orderDir&&(e=n.__assign({},e,{orderBy:r})),a(e)},t.prototype.render=function(){var e=this,t=this.props,l=t.render,o=t.name,i=t.data,d=t.searchable,c=t.store,p=t.orderBy,h=t.popOverContainer,u=t.classPrefix;return a.createElement("span",{className:s(u+"TableCell-searchBtn")},a.createElement("i",{className:"fa fa-search",onClick:this.open}),this.state.isOpened?a.createElement(_.default,{container:h||function(){return r.findDOMNode(e)},placement:"left-bottom-left-top right-bottom-right-top",target:h?function(){return r.findDOMNode(e).parentNode}:null,show:!0},a.createElement(v.default,{classPrefix:u,onHide:this.close,className:s(u+"TableCell-searchPopOver",d.className),overlay:!0},l("quick-search-form",this.buildSchema(),{data:n.__assign({},i,{orderBy:p,orderDir:p===o?c.orderDir:""}),onSubmit:this.handleSubmit,onAction:this.handleAction}))):null)},t}(a.Component);t.HeadCellSearchDropDown=A;var D=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpened:!1,filterOptions:[]},n.open=n.open.bind(n),n.close=n.close.bind(n),n.handleClick=n.handleClick.bind(n),n.handleCheck=n.handleCheck.bind(n),n}return n.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.filterable;e.source?this.fetchOptions():e.options.length>0&&this.setState({filterOptions:this.alterOptions(e.options)})},t.prototype.componentWillReceiveProps=function(e){var t=this.props;(t.name!==e.name||t.filterable!==e.filterable||t.data!==e.data)&&(e.filterable.source?this.fetchOptions():e.filterable.options&&this.setState({filterOptions:this.alterOptions(e.filterable.options||[])}))},t.prototype.fetchOptions=function(){var e=this,t=this.props,n=t.env,a=t.filterable;n.fetcher(a.source).then(function(t){var n=t.data&&t.data.options||[];e.setState({filterOptions:t&&t.data&&e.alterOptions(n)})})},t.prototype.alterOptions=function(e){var t=this.props,a=t.data,r=t.filterable,l=t.name,o=a&&a[l]||"";return e=e.map(r.multiple?function(e){return n.__assign({},e,{selected:o.split(",").indexOf(e.value)>-1})}:function(e){return n.__assign({},e,{selected:e.value===o})})},t.prototype.handleClickOutside=function(){this.close()},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleClick=function(e){var t=this.props,n=t.onQuery,a=t.name;n((r={},r[a]=e,r)),this.close();var r},t.prototype.handleCheck=function(e){var t,n=this.props,a=n.data,r=n.name,l=n.onQuery;t=a[r]&&a[r]===e?"":a[r]&&g(a[r].split(","),[e]).join(",")||e,l((o={},o[r]=t,o));var o},t.prototype.render=function(){var e=this,t=this.state,n=t.isOpened,l=t.filterOptions,o=this.props,i=o.filterable,s=o.popOverContainer,d=o.classPrefix,p=o.classnames;return a.createElement("span",{className:p(d+"TableCell-filterBtn")},a.createElement("i",{className:"fa fa-filter",onClick:this.open}),n?a.createElement(_.default,{container:s||function(){return r.findDOMNode(e)},placement:"left-bottom-left-top right-bottom-right-top",target:s?function(){return r.findDOMNode(e).parentNode}:null,show:!0},a.createElement(v.default,{classPrefix:d,onHide:this.close,className:p(d+"TableCell-filterPopOver",i.className),overlay:!0},l&&l.length>0?a.createElement("ul",{className:p("DropDown-menu")},l.map(i.multiple?function(t,n){return a.createElement("li",{key:n,className:p("DropDown-divider")},a.createElement(c.default,{classPrefix:d,onChange:e.handleCheck.bind(e,t.value),checked:t.selected},t.label))}:function(t,n){return a.createElement("li",{key:n,className:p("DropDown-divider",{"is-selected":t.selected}),onClick:e.handleClick.bind(e,t.value)},t.label)})):null)):null)},t}(a.Component);t.HeadCellFilterDropDown=D;var I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,r=e.render,l=e.style,o=e.wrapperComponent,i=e.column,s=e.value,d=e.data,c=e.children,p=e.width,h=e.innerClassName,u=(e.label,e.tabIndex),m=e.onKeyUp,f=e.rowSpan,b=(e.body,e.tpl,e.remark,n.__rest(e,["className","render","style","wrapperComponent","column","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","rowSpan","body","tpl","remark"])),g=n.__assign({},i,{className:h,type:i&&i.type||"plain"}),y=c?c:r("field",g,n.__assign({},b,{value:s,data:d}));return p&&(l=n.__assign({},l,{width:l&&l.width||p}),/%$/.test(String(l.width))||(y=a.createElement("div",{style:{width:l.width}},y))),o?a.createElement(o,{rowSpan:f>1?f:void 0,style:l,className:t,tabIndex:u,onKeyUp:m},y):y},t.defaultProps={wrapperComponent:"td"},t.propsList=["type","label","column","body","tpl","rowSpan","remark"],t}(a.Component);t.TableCell=I;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.propsList=["quickEdit","popOver","copyable","inline"].concat(I.propsList),t=n.__decorate([l.Renderer({test:/(^|\/)table\/(?:.*\/)?cell$/,name:"table-cell"}),y.default(),E.default(),C.default(),u.observer],t)}(I);
t.TableCellRenderer=P});
;/*!src/renderers/Card.tsx*/
define("8ee3b98",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),s=e("node_modules/react/index"),r=e("node_modules/react-dom/index"),n=e("0f9ebdf"),l=e("6a2dbb7"),i=e("0a43d97"),d=e("9a80175"),o=e("f2e345e"),c=e("b497f17"),m=e("bcd7efc"),p=e("f6086a9"),h=e("705a434"),u=function(e){function a(a){var t=e.call(this,a)||this;return t.getPopOverContainer=t.getPopOverContainer.bind(t),t.itemRender=t.itemRender.bind(t),t.handleAction=t.handleAction.bind(t),t.handleQuickChange=t.handleQuickChange.bind(t),t.handleClick=t.handleClick.bind(t),t.handleCheck=t.handleCheck.bind(t),t}return t.__extends(a,e),a.prototype.handleClick=function(e){var a=e.target,t=this.props.classPrefix;if(e.currentTarget.contains(a)&&!~["INPUT","TEXTAREA"].indexOf(a.tagName)&&!a.closest("button, a, ."+t+"Form-item")){var s=this.props.item;this.props.onCheck&&this.props.onCheck(s)}},a.prototype.handleCheck=function(){var e=this.props.item;this.props.onCheck&&this.props.onCheck(e)},a.prototype.handleAction=function(e,a,t){var s=this.props,r=s.onAction,n=s.item;r&&r(e,a,t||n.data)},a.prototype.handleQuickChange=function(e,a,t){var s=this.props,r=s.onQuickChange,n=s.item;r&&r(n,e,a,t)},a.prototype.getPopOverContainer=function(){return r.findDOMNode(this)},a.prototype.renderToolbar=function(){var e=this.props,a=e.dragging,t=e.selectable,r=e.checkable,n=e.selected,l=(e.onSelect,e.checkOnItemClick),o=e.multiple,c=e.hideCheckToggler,m=e.classnames,p=e.classPrefix;return a?s.createElement("div",{className:m("Card-dragBtn")},s.createElement("i",{className:"fa fa-exchange"})):t&&!c?s.createElement("div",{className:m("Card-checkBtn")},s.createElement(i.default,{classPrefix:p,type:o?"checkbox":"radio",disabled:!r,checked:n,onChange:l?d.noop:this.handleCheck})):null},a.prototype.renderActions=function(){var e=this,a=this.props,r=a.actions,n=a.render,l=a.dragging,i=a.actionsCount,o=a.data,c=a.classnames;if(Array.isArray(r)){var m=d.padArr(r.filter(function(e){return d.isVisible(e,o)}),i);return m.map(function(a,r){return s.createElement("div",{key:r,className:c("Card-actions")},a.map(function(a,s){var r=a.size||"sm";return n("action/"+s,t.__assign({level:"link",type:"button"},a,{size:r}),{isMenuItem:!0,key:s,index:s,disabled:l||d.isDisabled(a,o),className:c("Card-action",a.className||""+(r?"Card-action--"+r:"")),componentClass:"a",onAction:e.handleAction})}))})}return null},a.prototype.renderChild=function(e,a,t){void 0===a&&(a="body"),void 0===t&&(t=0);var s=this.props.render;if("string"==typeof e||"number"==typeof e)return s(a,e,{key:t});var r=e;return"hbox"===r.type||"grid"===r.type?s(a,e,{key:t,itemRender:this.itemRender}):this.renderFeild(a,r,t,this.props)},a.prototype.itemRender=function(e,a,t){return this.renderFeild("column/"+a,e,a,t)},a.prototype.renderFeild=function(e,a,r,n){var l=n.render,i=n.classnames,d=this.props.data,c=a.$$id?a.$$id+"-field":"";return s.createElement("div",{className:i("Card-field"),key:r},a&&a.label?s.createElement("label",{className:i("Card-fieldLabel",a.labelClassName)},a.label):null,l(e,t.__assign({},a,{field:a,$$id:c,type:"card-item-field"}),{className:i("Card-fieldValue",a.className),value:a.name?o.resolveVariable(a.name,d):void 0,popOverContainer:this.getPopOverContainer,onAction:this.handleAction,onQuickChange:this.handleQuickChange}))},a.prototype.renderBody=function(){var e=this,a=this.props.body;return a?Array.isArray(a)?a.map(function(a,t){return e.renderChild(a,"body/"+t,t)}):this.renderChild(a,"body"):null},a.prototype.render=function(){var e=this.props,a=e.className,t=e.data,r=e.header,n=e.render,i=e.bodyClassName,d=e.highlightClassName,o=e.titleClassName,c=e.subTitleClassName,m=e.descClassName,p=e.checkOnItemClick,h=e.checkable,u=e.classnames,C=(e.classPrefix,null);if(r){var f=r.highlight,b=r.avatar,N=r.avatarClassName,v=r.imageClassName,g=r.title,y=r.subTitle,k=r.subTitlePlaceholder,_=r.desc,E=r.descPlaceholder,x=!!l.evalExpression(f,t),T=l.filter(b,t),A=l.filter(g,t),P=l.filter(y,t),O=l.filter(_,t);C=s.createElement("div",{className:u("Card-heading",r.className)},T?s.createElement("span",{className:u("Card-avtar",r.avatarClassName||N)},s.createElement("img",{className:u("Card-img",r.imageClassName||v),src:T})):null,s.createElement("div",{className:u("Card-meta")},x?s.createElement("i",{className:u("Card-highlight",r.highlightClassName||d)}):null,A?s.createElement("div",{className:u("Card-title",r.titleClassName||o)},n("title",A)):null,P||k?s.createElement("div",{className:u("Card-subTitle",r.subTitleClassName||c)},n("sub-title",P||k,{className:u(P?void 0:"Card-placeholder")})):null,O||E?s.createElement("div",{className:u("Card-desc",r.descClassName||m)},n("desc",O||E,{className:O?void 0:"text-muted"})):null))}var R=this.renderBody();return s.createElement("div",{onClick:p&&h?this.handleClick:void 0,className:u("Card",a)},this.renderToolbar(),C,R?s.createElement("div",{className:u("Card-body",i)},R):null,this.renderActions())},a.defaultProps={className:"",avatarClassName:"",bodyClassName:"",actionsCount:4,titleClassName:"",highlightClassName:"",subTitleClassName:"",descClassName:""},a.propsList=["multiple","avatarClassName","bodyClassName","actionsCount","titleClassName","highlightClassName","subTitleClassName","descClassName","hideCheckToggler"],a}(s.Component);a.Card=u;var C=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a=t.__decorate([n.Renderer({test:/(^|\/)card$/,name:"card"})],a)}(u);a.CardRenderer=C;var f=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a.prototype.render=function(){var e=this.props,a=e.className,r=e.render,n=e.style,l=e.wrapperComponent,i=(e.labelClassName,e.value),d=e.data,o=e.children,c=e.width,m=e.innerClassName,p=(e.label,e.tabIndex),h=e.onKeyUp,u=e.field,C=t.__rest(e,["className","render","style","wrapperComponent","labelClassName","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","field"]),f=t.__assign({},u,{className:m,type:u&&u.type||"plain"}),b=o?o:r("field",f,t.__assign({},C,{value:i,data:d}));return c&&(n=n||{},n.width=n.width||c,b=s.createElement("div",{style:{width:/%/.test(String(c))?"":c}},b)),l?s.createElement(l,{style:n,className:a,tabIndex:p,onKeyUp:h},b):b},a.defaultProps=t.__assign({},p.TableCell.defaultProps,{wrapperComponent:"div"}),a.propsList=["quickEdit","popOver","copyable"].concat(p.TableCell.propsList),a=t.__decorate([n.Renderer({test:/(^|\/)card-item-field$/,name:"card-item"}),c.default(),m.default(),h.default()],a)}(p.TableCell);a.CardItemFieldRenderer=f});
;/*!src/renderers/Date.tsx*/
define("29e1f6a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),r=e("0f9ebdf"),s=e("node_modules/moment/moment"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,a=e.value,r=e.valueFormat,l=e.format,d=e.placeholder,i=e.classnames,o=n.createElement("span",{className:"text-muted"},d);if(a){var u=s(a,r);o=u.isValid()?u.format(l):n.createElement("span",{className:"text-danger"},"日期无效")}return n.createElement("span",{className:i("DateField",t)},o)},t.defaultProps={placeholder:"-",format:"YYYY-MM-DD",valueFormat:"X"},t}(n.Component);t.DateField=l;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign({},l.defaultProps,{format:"YYYY-MM-DD"}),t=a.__decorate([r.Renderer({test:/(^|\/)date$/,name:"date-field"})],t)}(l);t.DateFieldRenderer=d;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign({},l.defaultProps,{format:"YYYY-MM-DD HH:mm:ss"}),t=a.__decorate([r.Renderer({test:/(^|\/)datetime$/,name:"datetime-field"})],t)}(l);t.DateTimeFieldRenderer=i;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign({},l.defaultProps,{format:"HH:mm"}),t=a.__decorate([r.Renderer({test:/(^|\/)time$/,name:"time-field"})],t)}(l);t.TimeFieldRenderer=o});
;/*!src/renderers/Dialog.tsx*/
define("e299c64",function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),a=e("919cbd9"),r=e("0f9ebdf"),i=e("6a2dbb7"),l=e("628f736"),s=e("node_modules/lodash/findLast"),d=e("9a80175"),p=e("node_modules/mobx/lib/mobx"),c=e("b7bbd16"),h=e("4550477"),u=function(e){function o(o){var t=e.call(this,o)||this;return t.$$id=d.guid(),t.state={entered:!!t.props.show},t.handleSelfClose=t.handleSelfClose.bind(t),t.handleAction=t.handleAction.bind(t),t.handleDialogConfirm=t.handleDialogConfirm.bind(t),t.handleDialogClose=t.handleDialogClose.bind(t),t.handleDrawerConfirm=t.handleDrawerConfirm.bind(t),t.handleDrawerClose=t.handleDrawerClose.bind(t),t.handleEntered=t.handleEntered.bind(t),t.handleExited=t.handleExited.bind(t),t.handleFormInit=t.handleFormInit.bind(t),t.handleFormSaved=t.handleFormSaved.bind(t),t.handleFormChange=t.handleFormChange.bind(t),t.handleChildFinished=t.handleChildFinished.bind(t),t}return t.__extends(o,e),o.prototype.componentWillMount=function(){var e=this,o=this.props.store;this.reaction=p.reaction(function(){return""+o.loading+o.error},function(){return e.forceUpdate()})},o.prototype.componentWillUnmount=function(){this.reaction&&this.reaction()},o.prototype.buildActions=function(){var e=this.props,o=e.actions,t=e.confirm;if("undefined"!=typeof o)return o;var n=[];return n.push({type:"button",actionType:"cancel",label:"取消"}),t&&n.push({type:"button",actionType:"confirm",label:"确认",primary:!0}),n},o.prototype.handleSelfClose=function(){var e=this.props,o=e.onClose,t=e.store;t.updateMessage(),o()},o.prototype.handleAction=function(e,o,t){var n=this.props,a=n.store,r=n.onAction;"reset"===o.type?a.reset():"cancel"===o.actionType?this.handleSelfClose():r&&r(e,o,t)},o.prototype.handleDialogConfirm=function(e,o){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var a=this.props.store;o.mergeData&&1===e.length&&e[0]&&a.updateData(e[0]);var r=a.action.dialog;r&&r.onConfirm&&r.onConfirm.apply(r,[e,o].concat(t))===!1||a.closeDialog()},o.prototype.handleDialogClose=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var t=this.props.store,n=t.action,a=n.dialog;a.onClose&&a.onClose.apply(a,e)===!1||t.closeDialog()},o.prototype.handleDrawerConfirm=function(e,o){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var a=this.props.store;o.mergeData&&1===e.length&&e[0]&&a.updateData(e[0]);var r=a.action.drawer;r&&r.onConfirm&&r.onConfirm.apply(r,[e,o].concat(t))===!1||a.closeDrawer()},o.prototype.handleDrawerClose=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var t=this.props.store,n=t.action,a=n.drawer;a.onClose&&a.onClose.apply(a,e)===!1||t.closeDrawer()},o.prototype.handleEntered=function(){this.state.entered||this.setState({entered:!0})},o.prototype.handleExited=function(){var e=this.props.store;e.reset(),this.state.entered&&this.setState({entered:!1})},o.prototype.handleFormInit=function(e){var o=this.props.store;o.setFormData(e)},o.prototype.handleFormChange=function(e){var o=this.props.store;o.setFormData(e)},o.prototype.handleFormSaved=function(e,o){var n=this.props.store;n.setFormData(t.__assign({},e,o))},o.prototype.handleChildFinished=function(){},o.prototype.renderBody=function(e,o){var n=this,a=this.props,r=a.render,i=a.store;if(Array.isArray(e))return e.map(function(e,o){return n.renderBody(e,o)});var l={key:o,disabled:i.loading,onAction:this.handleAction,onFinished:this.handleChildFinished};if(!e.type)return r("body"+(o?"/"+o:""),e,l);var s=e;return"form"===s.type&&(s=t.__assign({mode:"horizontal",wrapWithPanel:!1,submitText:null},s),l.onChange=this.handleFormChange,l.onInit=this.handleFormInit,l.onSaved=this.handleFormSaved),r("body"+(o?"/"+o:""),s,l)},o.prototype.renderFooter=function(){var e=this,o=this.buildActions();if(!o||!o.length)return null;var t=this.props,a=t.store,r=t.render,i=t.classnames;return n.createElement("div",{className:i("Modal-footer")},a.loading||a.error?n.createElement("div",{className:i("Dialog-info"),key:"info"},a.loading?r("info",{type:"spinner"},{key:"info",size:"sm"}):null,a.error?n.createElement("span",{className:i("Dialog-error")},a.msg):null):null,o.map(function(o,t){return r("action/"+t,o,{data:a.formData,onAction:e.handleAction,key:t,disabled:o.disabled||a.loading})}))},o.prototype.render=function(){var e=this.props,o=e.className,a=e.size,r=e.closeOnEsc,s=e.title,d=e.store,p=e.render,h=e.header,u=e.body,m=e.bodyClassName,f=e.headerClassName,y=e.show,g=e.lazyRender,C=e.wrapperComponent,v=e.showCloseButton,b=e.env,D=e.classnames,w=e.classPrefix,E=C||l.default;return n.createElement(E,{classPrefix:w,className:D(o),size:a,backdrop:"static",dialogClassName:"modal-"+a,onHide:this.handleSelfClose,keyboard:r&&!d.loading,closeOnEsc:r,show:y,onEntered:this.handleEntered,onExited:this.handleExited,container:b&&b.getModalContainer?b.getModalContainer():void 0,enforceFocus:!1,disabled:d.loading},s&&"string"==typeof s?n.createElement("div",{className:D("Modal-header",f)},v===!1||d.loading?null:n.createElement("a",{"data-tooltip":"关闭弹窗",onClick:this.handleSelfClose,className:D("Modal-close")},c.closeIcon),n.createElement("div",{className:D("Modal-title")},i.filter(s,d.formData))):s?n.createElement("div",{className:D("Modal-header",f)},v===!1||d.loading?null:n.createElement("a",{"data-tooltip":"关闭弹窗",onClick:this.handleSelfClose,className:D("Modal-close")},c.closeIcon),p("title",s,{data:d.formData})):v===!1||d.loading?null:n.createElement("a",{"data-tooltip":"关闭弹窗",onClick:this.handleSelfClose,className:D("Modal-close")},c.closeIcon),h?p("header",h,{data:d.formData}):null,!this.state.entered&&g?n.createElement("div",{className:D("Modal-body",m)}):u?n.createElement("div",{className:D("Modal-body",m)},this.renderBody(u,"body")):null,this.renderFooter(),u?p("drawer",t.__assign({},d.action&&d.action.drawer,{type:"drawer"}),{key:"drawer",data:d.drawerData,onConfirm:this.handleDrawerConfirm,onClose:this.handleDrawerClose,show:d.drawerOpen,onAction:this.handleAction}):null,u?p("dialog",t.__assign({},d.action&&d.action.dialog,{type:"dialog"}),{key:"dialog",data:d.dialogData,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,show:d.dialogOpen,onAction:this.handleAction}):null)},o.propsList=["title","size","closeOnEsc","children","bodyClassName","headerClassName","confirm","onClose","onConfirm","show","showCloseButton","actions"],o.defaultProps={title:"弹框",bodyClassName:"",confirm:!0,show:!0,lazyRender:!1,showCloseButton:!0,wrapperComponent:l.default,closeOnEsc:!1},o}(n.Component);o.default=u;var m=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(o,e),o.prototype.componentWillMount=function(){var o=this.context;o.registerComponent(this),e.prototype.componentWillMount.call(this)},o.prototype.componentWillUnmount=function(){var o=this.context;o.unRegisterComponent(this),e.prototype.componentWillUnmount.call(this)},o.prototype.tryChildrenToHandle=function(e,o,n){var a=this,r=this.context;if(e.fromDialog)return!1;var i=r.getComponents(),l=[],d=this.props,p=d.onConfirm,c=d.store;if(e.target&&l.push.apply(l,e.target.split(",").map(function(e){return r.getComponentByName(e)}).filter(function(e){return e&&e.doAction})),!l.length){var h=s(i,function(e){return"form"===e.props.type});h&&l.push(h);var u=s(i,function(e){return"crud"===e.props.type});u&&l.push(u)}return l.length?(c.markBusying(!0),c.updateMessage(),Promise.all(l.map(function(n){return n.doAction(t.__assign({},e,{from:a.$$id}),o,!0)})).then(function(t){"submit"!==e.type&&"submit"!==e.actionType&&"confirm"!==e.actionType||e.close===!1?e.close&&a.handleSelfClose():p&&p(t,n||e,o,l),c.markBusying(!1)}).catch(function(e){c.updateMessage(e.message,!0),c.markBusying(!1)}),!0):!1},o.prototype.handleAction=function(e,o,n,a,r){void 0===a&&(a=!1);var i=this.props,l=i.onAction,s=i.store,d=i.onConfirm;if(o.from===this.$$id)return l?l(e,o,n,a,!0):!1;var p=this.context;if(r||s.setCurrentAction(o),"reset"===o.type)s.reset();else if("close"===o.actionType||"cancel"===o.actionType)this.handleSelfClose();else if("confirm"===o.actionType)this.tryChildrenToHandle(t.__assign({},o,{actionType:"submit"}),n,o)||this.handleSelfClose();else if("next"===o.actionType||"prev"===o.actionType)"submit"===o.type?this.tryChildrenToHandle(t.__assign({},o,{actionType:"submit"}),n,o)||this.handleSelfClose():d([n],o,n,[]);else if("dialog"===o.actionType)s.openDialog(n);else if("drawer"===o.actionType)s.openDrawer(n);else if("reload"===o.actionType)o.target&&p.reload(o.target,n);else if(!this.tryChildrenToHandle(o,n)&&l){var c=l(e,o,n,a,!0);o.close&&(c&&c.then?c.then(this.handleSelfClose):setTimeout(this.handleSelfClose,200))}},o.prototype.handleChildFinished=function(e,o){if(!(o&&o.from===this.$$id||o.close===!1)){var t=this.context,n=t.getComponents().filter(function(e){return!~["drawer","dialog"].indexOf(e.props.type)}),a=this.props.onConfirm,r=this.props.onClose;1!==n.length||"form"!==n[0].props.type&&"wizard"!==n[0].props.type||o.close!==!0&&n[0].props.closeDialogOnSubmit===!1?o.close===!0&&r():a&&a([e],o,{},n)}},o.prototype.handleDialogConfirm=function(o,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];e.prototype.handleDialogConfirm.apply(this,[o,t].concat(n));var r=this.context,i=this.props.store,l=i.action;l.reload?r.reload(l.reload,i.data):t.reload?r.reload(t.reload,i.data):r.getComponents().filter(function(e){return"crud"===e.props.type}).forEach(function(e){return e.reload&&e.reload()})},o.prototype.handleDrawerConfirm=function(o,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];e.prototype.handleDrawerConfirm.call(this,o,t);var r=this.context,i=this.props.store,l=i.action;setTimeout(function(){l.reload?r.reload(l.reload,i.data):t.reload?r.reload(t.reload,i.data):r.getComponents().filter(function(e){return"crud"===e.props.type}).forEach(function(e){return e.reload&&e.reload()})},300)},o.contextType=a.ScopedContext,o=t.__decorate([r.Renderer({test:/(^|\/)dialog$/,storeType:h.ModalStore.name,storeExtendsData:!1,name:"dialog",isolateScope:!0})],o)}(u);o.DialogRenderer=m});
;/*!src/renderers/Divider.tsx*/
define("5cdd617",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),s=e("0f9ebdf"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props.classnames,t=this.props.className;return r.createElement("div",{className:e("Divider",t)})},t.defaultProps={className:""},t}(r.Component);t.default=i;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([s.Renderer({test:/(^|\/)(?:divider|hr)$/,name:"divider"})],t)}(i);t.DividerRenderer=d});
;/*!src/renderers/Each.tsx*/
define("6c4a05a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),a=e("0f9ebdf"),s=e("f2e345e"),u=e("9a80175"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.data,r=e.name,a=e.className,i=e.render,c=e.value,l=e.items,d="undefined"!=typeof c?u.isObject(c)?Object.keys(c).map(function(e){return{key:e,value:c[e]}}):Array.isArray(c)?c:[]:s.resolveVariable(r,t);return n.createElement("div",{className:a},Array.isArray(d)&&l?d.map(function(e,n){return i("item/"+n,l,{data:u.createObject(t,u.isObject(e)?e:(a={},a[r]=e,a.item=e,a)),key:n});var a}):null)},t.defaultProps={className:""},t}(n.Component);t.default=i;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([a.Renderer({test:/(^|\/)(?:repeat|each)$/,name:"each"})],t)}(i);t.EachRenderer=c});
;/*!src/renderers/Form/index.tsx*/
define("635e59b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),i=e("0f9ebdf"),r=e("956950c"),a=e("6a2dbb7"),s=e("node_modules/classnames/index"),d=e("01e2bb4"),l=e("9a80175"),c=e("node_modules/lodash/debounce"),p=e("node_modules/lodash/flatten"),u=e("node_modules/lodash/find"),h=e("919cbd9"),f=e("node_modules/qs/lib/index"),m=e("f2e345e"),v=e("1caead1"),y=function(e){function t(t){var o=e.call(this,t)||this;return o.hooks={},o.shouldLoadInitApi=!1,o.onInit=o.onInit.bind(o),o.handleAction=o.handleAction.bind(o),o.handleDialogConfirm=o.handleDialogConfirm.bind(o),o.handleDialogClose=o.handleDialogClose.bind(o),o.handleDrawerConfirm=o.handleDrawerConfirm.bind(o),o.handleDrawerClose=o.handleDrawerClose.bind(o),o.handleFormSubmit=o.handleFormSubmit.bind(o),o.validate=o.validate.bind(o),o.submit=o.submit.bind(o),o.addHook=o.addHook.bind(o),o.removeHook=o.removeHook.bind(o),o.handleChange=c(o.handleChange.bind(o),250,{trailing:!0,leading:!1}),o.renderFormItems=o.renderFormItems.bind(o),o.reload=o.reload.bind(o),o.silentReload=o.silentReload.bind(o),o.initInterval=o.initInterval.bind(o),o}return o.__extends(t,e),t.prototype.componentWillMount=function(){{var e=this.props,t=e.store,o=e.canAccessSuperData;e.initApi,e.initFetch}if(t.setCanAccessSuperData(o!==!1),t&&t.parentStore&&"ComboStore"===t.parentStore.storeType){var n=t.parentStore;n.addForm(t),n.forms.forEach(function(e){return e.items.forEach(function(e){return e.unique&&e.syncOptions()})})}},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.initApi,i=t.initFetch,r=t.initAsyncApi,s=t.initFinishedField,d=t.store,c=t.messages,p=c.fetchSuccess,u=c.fetchFailed,h=t.onValidate;if(this.mounted=!0,h){var f=l.promisify(h);this.disposeOnValidate=this.addHook(function(){return o.__awaiter(e,void 0,void 0,function(){var e;return o.__generator(this,function(t){switch(t.label){case 0:return[4,f(d.data,d)];case 1:return e=t.sent(),e&&l.isObject(e)&&Object.keys(e).forEach(function(t){var o=e[t],n=d.getItemByName(t);n&&(o?(o=Array.isArray(o)?o:[o],n.addError(o)):n.clearError())}),[2]}})})})}!n||i===!1||n.sendOn&&!a.evalExpression(n.sendOn,d.data)?this.onInit():d.fetchInitData(n,d.data,{successMessage:p,errorMessage:u,onSuccess:function(){return r&&!d.data[s||"finished"]?l.until(function(){return d.checkRemote(r,d.data)},function(e){return e&&e[s||"finished"]},function(t){return e.asyncCancel=t}):void 0}}).then(this.initInterval).then(this.onInit)},t.prototype.componentDidUpdate=function(e){var t=this.props,o=t.store;if(v.isApiOutdated(e.initApi,t.initApi,e.data,t.data)){var n=t.fetchSuccess,i=t.fetchFailed;o.fetchData(t.initApi,o.data,{successMessage:n,errorMessage:i}).then(this.initInterval)}},t.prototype.componentWillUnmount=function(){this.mounted=!1,clearTimeout(this.timer),this.handleChange.cancel(),this.asyncCancel&&this.asyncCancel(),this.disposeOnValidate&&this.disposeOnValidate()},t.prototype.onInit=function(){return o.__awaiter(this,void 0,void 0,function(){var e,t,n,i,r;return o.__generator(this,function(o){switch(o.label){case 0:return e=this.props,t=e.onInit,n=e.store,i=e.submitOnInit,n.setInited(!0),r=this.hooks.init||[],[4,Promise.all(r.map(function(e){return e(n.data)}))];case 1:return o.sent(),t&&t(n.data),i&&this.handleAction(void 0,{type:"submit"},n.data),[2]}})})},t.prototype.reload=function(e,t){var o=this;if(e)return this.receive(e);var n=this.props,i=n.store,r=n.initApi,s=n.initAsyncApi,d=n.initFinishedField,c=n.messages,p=c.fetchSuccess,u=c.fetchFailed;s&&i.updateData((h={},h[d||"finished"]=!1,h)),r&&(!r.sendOn||a.evalExpression(r.sendOn,i.data))&&i.fetchData(r,i.data,{successMessage:p,errorMessage:u,silent:t,onSuccess:function(){return s&&!i.data[d||"finished"]?l.until(function(){return i.checkRemote(s,i.data)},function(e){return e&&e[d||"finished"]},function(e){return o.asyncCancel=e}):void 0}}).then(this.initInterval);var h},t.prototype.receive=function(e){var t=this.props.store;t.updateData(e),this.reload()},t.prototype.silentReload=function(e,t){this.reload(t,!0)},t.prototype.initInterval=function(e){var t=this.props,o=t.interval,n=t.silentPolling,i=t.stopAutoRefreshWhen,r=t.data;return clearTimeout(this.timer),o&&this.mounted&&(!i||!a.evalExpression(i,r))&&(this.timer=setTimeout(n?this.silentReload:this.reload,Math.max(o,3e3))),e},t.prototype.validate=function(e){var t=this.props.store;return t.validate(this.hooks.validate||[],e)},t.prototype.submit=function(e){var t=this.props.store;return t.submit(e,this.hooks.validate)},t.prototype.reset=function(){var e=this.props,t=e.store,o=e.onReset;t.reset(o)},t.prototype.addHook=function(e,t){var o=this;return void 0===t&&(t="validate"),this.hooks[t]=this.hooks[t]||[],this.hooks[t].push(l.promisify(e)),function(){o.removeHook(e,t),e=l.noop}},t.prototype.removeHook=function(e,t){void 0===t&&(t="validate");var o=this.hooks[t];if(o)for(var n=0,i=o.length;i>n;n++){var r=o[n];r.raw===e&&(o.splice(n,1),i--,n--)}},t.prototype.handleChange=function(e,t,o){var n=this.props,i=n.onChange,r=n.store,a=n.submitOnChange;i&&i(r.data,l.difference(r.data,r.pristine)),(o||a)&&this.handleAction(void 0,{type:"submit"},r.data)},t.prototype.handleFormSubmit=function(e){return e.preventDefault(),this.handleAction(e,{type:"submit"},this.props.store.data)},t.prototype.handleAction=function(e,t,n,i,r){var s=this;void 0===i&&(i=!1);var d=this.props,c=d.store,p=d.onSubmit,u=d.api,h=d.asyncApi,f=d.finishedField,m=d.messages,v=m.saveSuccess,y=m.saveFailed,g=d.resetAfterSubmit,b=d.onAction,C=d.onSaved,A=d.onReset,D=d.onFinished,F=d.onFailed,_=d.redirect,w=d.reload,k=d.target,x=d.env,T=d.onChange;if(Array.isArray(t.required)&&t.required.length)return c.validateFields(t.required).then(function(a){a?s.handleAction(e,o.__assign({},t,{required:void 0}),n,i,r):x.notify("error","依赖的部分字段没有通过验证,请注意填写!")});if(r||c.setCurrentAction(t),"submit"===t.type||"submit"===t.actionType||"confirm"===t.actionType)return this.submit(function(e){if(p&&p(e,t)===!1)return Promise.resolve(e);if(k)s.submitToTarget(k,e);else if("reload"===t.actionType)t.target&&s.reloadTarget(t.target,e);else if("dialog"===t.actionType)c.openDialog(n);else if("drawer"===t.actionType)c.openDrawer(n);else if(t.api||u){var i=t.asyncApi||h;return i&&c.updateData((r={},r[f||"finished"]=!1,r)),c.saveRemote(t.api||u,e,{successMessage:v,errorMessage:y,onSuccess:function(){return i&&!c.data[f||"finished"]?l.until(function(){return c.checkRemote(i,c.data)},function(e){return e&&e[f||"finished"]},function(e){return s.asyncCancel=e}):void 0}}).then(function(n){return o.__awaiter(s,void 0,void 0,function(){return o.__generator(this,function(o){switch(o.label){case 0:return C&&C(e,n),t.feedback&&l.isVisible(t.feedback,c.data)?[4,this.openFeedback(t.feedback,c.data)]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2,e]}})})})}return Promise.resolve(e);var r}).then(function(e){return D&&D(e,t)===!1?e:(t.redirect||_?x.updateLocation(a.filter(t.redirect||_,c.data)):(t.reload||w)&&s.reloadTarget(t.reload||w,c.data),g&&c.reset(A),e)}).catch(function(e){if(F&&F(e,c.errors),i)throw e});if("reset"===t.type)c.reset(A);else if("dialog"===t.actionType)c.openDialog(n);else if("drawer"===t.actionType)c.openDrawer(n);else{if("ajax"===t.actionType)return t.api?c.saveRemote(t.api,n,{successMessage:t.messages&&t.messages.success||v,errorMessage:t.messages&&t.messages.failed||y}).then(function(e){return o.__awaiter(s,void 0,void 0,function(){return o.__generator(this,function(o){switch(o.label){case 0:return e&&T&&T(c.data,l.difference(c.data,c.pristine)),c.validated&&this.validate(!0),t.feedback&&l.isVisible(t.feedback,c.data)?[4,this.openFeedback(t.feedback,c.data)]:[3,2];case 1:o.sent(),o.label=2;case 2:return t.reload?this.reloadTarget(t.reload,c.data):t.redirect?x.updateLocation(a.filter(t.redirect,c.data)):null,[2]}})})}).catch(function(){}):x.alert("当 actionType 为 ajax 时,请设置 api 属性");if("reload"===t.actionType)t.target&&this.reloadTarget(t.target,n);else if(b)return b(e,t,n,i)}},t.prototype.handleDialogConfirm=function(e,t,o,n){var i=this.props.store;t.mergeData&&1===e.length&&e[0]&&"form"===n[0].props.type&&i.updateData(e[0]),i.closeDialog(!0)},t.prototype.handleDialogClose=function(){var e=this.props.store;e.closeDialog(!1)},t.prototype.handleDrawerConfirm=function(e,t,o,n){var i=this.props.store;t.mergeData&&1===e.length&&e[0]&&"form"===n[0].props.type&&i.updateData(e[0]),i.closeDrawer(!0)},t.prototype.handleDrawerClose=function(){var e=this.props.store;e.closeDrawer(!1)},t.prototype.submitToTarget=function(){},t.prototype.reloadTarget=function(){},t.prototype.openFeedback=function(e,t){var o=this;return new Promise(function(n){var i=o.props.store;i.setCurrentAction({type:"button",actionType:"dialog",dialog:e}),i.openDialog(t,void 0,function(e){n(e)})})},t.prototype.buildActions=function(){var e=this.props,t=e.actions,o=e.submitText,n=e.controls;return"undefined"!=typeof t||!o||Array.isArray(n)&&n.some(function(e){return!!~["submit","button","reset","button-group"].indexOf(e.type)})?t:[{type:"submit",label:o,primary:!0}]},t.prototype.renderFormItems=function(e,t,o){return void 0===t&&(t=""),void 0===o&&(o={}),this.renderControls(e.controls,t,o)},t.prototype.renderControls=function(e,t,i){var r=this;if(void 0===i&&(i={}),e=e||[],Array.isArray(e)||(e=[e]),"row"===this.props.mode){var a=this.props.classPrefix;return e=p(e).filter(function(e){if(e.hidden||e.visible===!1)return!1;var t=d.default(e,r.props.store.data);return t.hidden||t.visible===!1?!1:!0}),e.length?n.createElement("div",{className:a+"Form-row"},e.map(function(e,t){return~["hidden","formula"].indexOf(e.type)?r.renderControl(e,t,i):n.createElement("div",{key:t,className:s(a+"Form-col",e.columnClassName)},r.renderControl(e,"",o.__assign({},i,{mode:"row"})))})):null}return e.map(function(e,o){return r.renderControl(e,o,i,t)})},t.prototype.renderControl=function(e,t,n,i){if(void 0===t&&(t=""),void 0===n&&(n={}),void 0===i&&(i=""),!e)return null;"string"==typeof e&&(e={type:"tpl",tpl:e});var r=o.__assign({},this.props,n),a=this.props.store,s=r.render,d=r.mode,l=r.horizontal,c=r.store,p=r.disabled,u=r.controlWidth,h={formStore:a,data:c.data,key:t,formInited:a.inited,formMode:d,formHorizontal:l,controlWidth:u,disabled:p||e.disabled||a.loading,btnDisabled:a.loading||a.validating,onAction:this.handleAction,onChange:this.handleChange,addHook:this.addHook,removeHook:this.removeHook,renderFormItems:this.renderFormItems,formPristine:a.pristine},f=e&&"control"===e.type?e:{type:"control",control:e};if(f.control){var m=f.control;m.hiddenOn&&(f.hiddenOn=m.hiddenOn),m.visibleOn&&(f.visibleOn=m.visibleOn)}return s(""+(i?i+"/":"")+t,f,h)},t.prototype.renderBody=function(){var e=this.props,t=e.tabs,o=e.fieldSet,n=e.controls;return this.renderFormItems({tabs:t,fieldSet:o,controls:n})},t.prototype.render=function(){var e=this.props,t=e.className,i=e.wrapWithPanel,r=e.render,a=e.title,s=e.store,d=e.panelClassName,l=e.debug,c=e.headerClassName,p=e.footerClassName,u=e.actionsClassName,h=e.bodyClassName,f=(e.classPrefix,e.classnames),m=e.$path,v=e.affixFooter,y=e.mode,g=this.props.wrapperComponent||(/(?:\/|^)form\//.test(m)?"div":"form"),b=n.createElement(g,{onSubmit:this.handleFormSubmit,className:f("Form","Form--"+(y||"normal"),t),noValidate:!0},l?n.createElement("pre",null,n.createElement("code",null,JSON.stringify(s.data,null,2))):null,this.renderBody(),r("dialog",o.__assign({},s.action&&s.action.dialog,{type:"dialog"}),{key:"dialog",data:s.dialogData,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,show:s.dialogOpen}),r("drawer",o.__assign({},s.action&&s.action.drawer,{type:"drawer"}),{key:"drawer",data:s.drawerData,onConfirm:this.handleDrawerConfirm,onClose:this.handleDrawerClose,show:s.drawerOpen}));return i&&(b=r("body",{type:"panel",title:a},{className:f(d,"Panel--form"),children:b,actions:this.buildActions(),onAction:this.handleAction,disabled:s.loading,headerClassName:c,footerClassName:p,actionsClassName:u,bodyClassName:h,affixFooter:v})),b},t.defaultProps={title:"表单",submitText:"提交",initFetch:!0,wrapWithPanel:!0,mode:"normal",collapsable:!1,controlWidth:"full",horizontal:{left:2,right:10,offset:2},panelClassName:"Panel--default",messages:{fetchFailed:"初始化失败",saveSuccess:"保存成功",saveFailed:"保存失败"},wrapperComponent:"",finishedField:"finished",initFinishedField:"finished"},t.propsList=["title","submitText","initFetch","wrapWithPanel","mode","collapsable","horizontal","panelClassName","messages","wrapperComponent","resetAfterSubmit","submitOnInit","submitOnChange","onInit","onReset","onSubmit","onChange","onFailed","onFinished"],t}(n.Component);t.default=y;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.componentWillMount=function(){var t=this.context;t.registerComponent(this),e.prototype.componentWillMount.call(this)},t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.props.autoFocus){var t=this.context,o=t.getComponents(),n=u(o,function(e){return e.focus});n&&setTimeout(function(){return n.focus()},200)}},t.prototype.componentWillUnmount=function(){var e=this.context;e.unRegisterComponent(this)},t.prototype.doAction=function(e,t,o){return void 0===o&&(o=!1),this.handleAction(void 0,e,t,o)},t.prototype.handleAction=function(t,n,i,r,a){if(void 0===r&&(r=!1),n.target&&"reload"!==n.actionType){var s=this.context;return Promise.all(n.target.split(",").map(function(e){var t=s.getComponentByName(e);return t&&t.doAction&&t.doAction(o.__assign({},n,{target:void 0}),i,r)}))}return e.prototype.handleAction.call(this,t,n,i,r,a)},t.prototype.handleDialogConfirm=function(t,o,n,i){e.prototype.handleDialogConfirm.call(this,t,o,n,i);var r=this.props.store,a=this.context;o.reload?a.reload(o.reload,n):r.action&&r.action.reload&&a.reload(r.action.reload,n)},t.prototype.submitToTarget=function(e,t){var o=this.context;o.send(e,t)},t.prototype.reloadTarget=function(e,t){var o=this.context;o.reload(e,t)},t.prototype.reload=function(t,o,n){if(o)return this.receive(o);var i,r=this.context,a="",s=null;t&&~(i=t.indexOf("."))&&(a=t.substring(i+1),t=t.substring(0,i));var d=t?t.indexOf("?"):-1;~d&&(s=m.dataMapping(f.parse(t.substring(d+1)),n),t=t.substring(0,d));var l;if(t&&(l=r.getComponentByName(t))&&l.reload)l.reload(a,s,n);else if("*"===t){e.prototype.reload.call(this);var c=r.getComponents();c.forEach(function(e){return e.reload&&e.reload("",s,n)})}else e.prototype.reload.call(this)},t.prototype.receive=function(t,o){if(o){var n=this.context,i=o.indexOf("."),r="";~i&&(r=o.substring(1+i),o=o.substring(0,i));var a=n.getComponentByName(o);return void(a&&a.receive&&a&&a.receive(t,r))}return e.prototype.receive.call(this,t)},t.contextType=h.ScopedContext,t=o.__decorate([i.Renderer({test:function(e){return/(^|\/)form$/.test(e)&&!/(^|\/)form(?:\/.+)?\/control\/form$/.test(e)},storeType:r.FormStore.name,name:"form",isolateScope:!0})],t)}(y);t.FormRenderer=g});
;/*!src/renderers/Form/Control.tsx*/
define("610fd77",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),i=e("node_modules/react/index"),n=e("node_modules/lodash/debounce"),r=e("0f9ebdf"),l=e("3fbfd93"),a=e("9a80175"),s=e("919cbd9"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.formStore,o=e.control,i=o.name,r=o.id,a=o.type,s=o.required,d=o.validations,u=o.validationErrors,h=o.unique,p=o.value,c=o.multiple,m=o.delimiter,v=o.valueField,f=o.labelField,g=o.joinValues,y=o.extractValue;if(this.getValue=this.getValue.bind(this),this.setValue=this.setValue.bind(this),this.handleChange=this.handleChange.bind(this),this.handleBulkChange=this.handleBulkChange.bind(this),this.setPrinstineValue=this.setPrinstineValue.bind(this),this.controlRef=this.controlRef.bind(this),this.handleBlur=this.handleBlur.bind(this),this.lazyValidate=n(this.validate.bind(this),250,{trailing:!0,leading:!1}),i&&(this.model=t.registryItem(i,{id:r,type:a,required:s,unique:h,value:p,rules:d,messages:u,multiple:c,delimiter:m,valueField:v,labelField:f,joinValues:g,extractValue:y}),this.model.unique&&t.parentStore&&t.parentStore.storeType===l.ComboStore.name)){var V=t.parentStore;V.bindUniuqueItem(this.model)}},t.prototype.componentDidMount=function(){var e=this.props,t=e.store,o=e.formStore,i=e.control,n=i.name,r=i.validate,l=e.addHook;if(n&&o!==t){var s=a.getVariable(t.data,n);"undefined"!=typeof s&&s!==this.getValue()&&this.handleChange(s)}var d=this.model;if(d&&r){var u=a.promisify(r.bind(d));this.hook2=function(){return d.clearError("control:valdiate"),u(o.data,d.value).then(function(e){("string"==typeof e||Array.isArray(e))&&e&&d.addError(e,"control:valdiate")})},l(this.hook2)}},t.prototype.componentWillReceiveProps=function(e){var t=this.props,o=e.formStore;return e.control.name?(e.control.name===t.control.name&&this.model||(this.model&&this.disposeModel(),this.model=o.registryItem(e.control.name,{id:e.control.id,type:e.control.type,required:e.control.required,unique:e.control.unique,value:e.control.value,rules:e.control.validations,multiple:e.control.multiple,delimiter:e.control.delimiter,valueField:e.control.valueField,labelField:e.control.labelField,joinValues:e.control.joinValues,extractValue:e.control.extractValue,messages:e.control.validationErrors})),void(this.model&&a.anyChanged(["id","validations","validationErrors","value","required","unique","multiple","delimiter","valueField","labelField","joinValues","extractValue"],t.control,e.control)&&this.model.config({required:e.control.required,id:e.control.id,unique:e.control.unique,value:e.control.value,rules:e.control.validations,multiple:e.control.multiple,delimiter:e.control.delimiter,valueField:e.control.valueField,labelField:e.control.labelField,joinValues:e.control.joinValues,extractValue:e.control.extractValue,messages:e.control.validationErrors}))):(this.model&&this.disposeModel(),void(this.model=void 0))},t.prototype.componentDidUpdate=function(e){var t=this.props,o=t.store,i=t.formStore,n=t.data,r=t.control.name;if(r&&i!==o&&n!==e.data){var l=a.getVariable(n,r);"undefined"!=typeof l&&l!==this.getValue()&&this.handleChange(l)}},t.prototype.componentWillUnmount=function(){this.hook&&this.props.removeHook(this.hook),this.hook2&&this.props.removeHook(this.hook2),this.disposeModel()},t.prototype.disposeModel=function(){var e=this.props.formStore;if(this.model&&this.model.unique&&e.parentStore&&e.parentStore.storeType===l.ComboStore.name){var t=e.parentStore;t.unBindUniuqueItem(this.model)}this.model&&e.unRegistryItem(this.model)},t.prototype.controlRef=function(e){for(var t=this.props,o=t.addHook,i=t.removeHook,n=t.formStore;e&&e.getWrappedInstance;)e=e.getWrappedInstance();if(e&&e.validate&&this.model){var r=this.model,l=a.promisify(e.validate.bind(e));this.hook=function(){return r.clearError("component:valdiate"),l(n.data,r.value).then(function(e){("string"==typeof e||Array.isArray(e))&&e&&r.setError(e,"component:valdiate")})},o(this.hook)}else!e&&this.hook&&(i(this.hook),this.hook=void 0);this.control=e},t.prototype.validate=function(){var e=this,t=this.props.formStore;this.model&&(this.model.validate(this.hook),t.getItemsByName(this.model.name).forEach(function(t){return t!==e.model&&t.validate()}))},t.prototype.handleChange=function(e,t){void 0===t&&(t=this.props.control.submitOnChange);var o=this.props,i=o.formStore,n=o.onChange,r=o.control,l=r.validateOnChange,a=r.name,s=r.pipeOut,d=r.onChange,u=r.type;if(!this.model||~["service"].indexOf(u))return void(n&&n.apply(void 0,arguments));var h=this.model.value;s&&(e=s(e,h,i.data)),h!==e&&(this.model.changeValue(e),(l===!0||l!==!1&&(i.submited||this.model.validated))&&this.lazyValidate(),d&&d(e,h,this.model,i),n&&n(e,a,t===!0))},t.prototype.handleBlur=function(e){var t=this.props,o=t.onBlur,i=t.control.validateOnBlur;i&&this.model&&this.validate(),o&&o(e)},t.prototype.handleBulkChange=function(e,t){if(void 0===t&&(t=this.props.control.submitOnChange),a.isObject(e)&&this.model){var o,i=this.props,n=i.formStore,r=i.onChange,l=i.control.validateOnChange,s="";Object.keys(e).forEach(function(t){var i=e[t];s=t,o=i}),s&&(n.setValues(e),l!==!1&&(n.submited||this.model.validated)&&this.lazyValidate(),r&&r(o,s,t===!0))}},t.prototype.setPrinstineValue=function(e){this.model&&this.model.changeValue(e,!0)},t.prototype.getValue=function(){var e=this.props,t=e.control,o=e.formStore,i=this.model,n=i?i.value:t.value;return t.pipeIn&&(n=t.pipeIn(n,o.data)),n},t.prototype.setValue=function(e,t){var o=this.props.control.name;t&&t!==o?this.handleBulkChange((i={},i[t]=e,i)):this.handleChange(e);var i},t.prototype.render=function(){var e=this.props,t=e.render,i=e.control,n=(i.pipeIn,i.pipeOut,o.__rest(i,["pipeIn","pipeOut"])),r=e.formMode,l=e.controlWidth,a=(e.type,e.store),s=e.data,d=e.disabled,u=o.__rest(e,["render","control","formMode","controlWidth","type","store","data","disabled"]),h=this.model,p=this.getValue();return t("",n,o.__assign({},u,{defaultSize:l,disabled:d||n.disabled,formItem:h,formMode:n.mode||r,ref:this.controlRef,defaultValue:n.value,data:a?a.data:s,value:p,formItemValue:p,onChange:this.handleChange,onBlur:this.handleBlur,setValue:this.setValue,getValue:this.getValue,onBulkChange:this.handleBulkChange,prinstine:h?h.prinstine:void 0,setPrinstineValue:this.setPrinstineValue}))},t.defaultProps={},t}(i.Component);t.default=d;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.controlRef=function(t){var o=this.control;e.prototype.controlRef.call(this,t);var i=this.context;this.control&&(t?i.registerComponent(this.control):i.unRegisterComponent(o))},t.displayName="Control",t.contextType=s.ScopedContext,t=o.__decorate([r.Renderer({test:function(e){return/(^|\/)form(?:\/.*)?\/control$/i.test(e)&&!/\/control\/control$/i.test(e)},name:"control"})],t)}(d);t.FormControlRenderer=u});
;/*!src/renderers/Form/Hidden.tsx*/
define("dd5dcd2",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),u=e("567b83c"),d=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){return null},n}(r.Component);n.default=d;var o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([u.FormItem({type:"hidden",wrap:!1,sizeMutable:!1})],n)}(d);n.HiddenControlRenderer=o});
;/*!src/renderers/Form/Text.tsx*/
define("a1e61d2",function(e,t){"use strict";function n(e,t,n){return void 0===n&&(n="value"),e.filter(function(e){return-1===t.indexOf(e[n||"value"])}).reduce(function(e,t,a){return e[t[n||"value"]]=a,e},{})}Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=e("node_modules/react/index"),o=e("b86428a"),i=e("node_modules/classnames/index"),s=e("node_modules/downshift/dist/downshift.cjs"),u=e("node_modules/match-sorter/dist/match-sorter.cjs"),r=e("node_modules/lodash/debounce"),p=e("6a2dbb7"),d=e("node_modules/lodash/find"),c=e("b7bbd16"),h=e("9a80175"),m=function(e){function t(t){{var n=e.call(this,t)||this;t.value}return n.state={isOpen:!1,inputValue:"",isFocused:!1},n.focus=n.focus.bind(n),n.clearValue=n.clearValue.bind(n),n.inputRef=n.inputRef.bind(n),n.handleClick=n.handleClick.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleChange=n.handleChange.bind(n),n.handleStateChange=n.handleStateChange.bind(n),n.loadAutoComplete=r(n.loadAutoComplete.bind(n),250,{trailing:!0,leading:!1}),n}return a.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(t.value!==e.value){{e.value}this.setState({inputValue:""})}},t.prototype.componentDidMount=function(){var e=this.props,t=e.formItem,n=e.autoComplete,l=e.data,o=e.addHook,i=e.formInited;n&&t&&(i?t.loadOptions(n,a.__assign({},l,{term:""})):this.unHook=o(function(){return t.loadOptions(n,a.__assign({},l,{term:""}))},"init"))},t.prototype.componentWillUnmount=function(){this.unHook&&this.unHook()},t.prototype.inputRef=function(e){this.input=e},t.prototype.focus=function(){if(this.input){this.input.focus();var e=this.input.value.length;e&&this.input.setSelectionRange(e,e)}},t.prototype.clearValue=function(){var e=this,t=this.props,n=t.onChange,a=t.resetValue;n(a),this.setState({inputValue:a},function(){e.focus(),e.loadAutoComplete()})},t.prototype.removeItem=function(e){var t=this.props,n=t.selectedOptions,a=t.onChange,l=t.joinValues,o=t.extractValue,i=t.delimiter,s=t.valueField,u=n.concat();u.splice(e,1),a(l?u.map(function(e){return e[s||"value"]}).join(i||","):o?u.map(function(e){return e[s||"value"]}):u)},t.prototype.handleClick=function(){this.focus(),this.setState({isOpen:!0})},t.prototype.handleFocus=function(e){this.setState({isOpen:!0,isFocused:!0}),this.props.onFocus&&this.props.onFocus(e)},t.prototype.handleBlur=function(e){var t=this.props,n=t.onBlur,a=t.trimContents,l=t.value,o=t.onChange;this.setState({isFocused:!1},function(){a&&l&&"string"==typeof l&&o(l.trim())}),n&&n(e)},t.prototype.handleInputChange=function(e){var t=e.currentTarget.value;this.setState({inputValue:t},this.loadAutoComplete)},t.prototype.handleKeyDown=function(e){var t=this.props,n=t.selectedOptions,a=t.onChange,l=t.joinValues,o=t.extractValue,i=t.delimiter,s=t.multiple,u=t.valueField;if(n.length&&!this.state.inputValue&&8===e.keyCode){e.preventDefault();var r=n.concat();r.pop(),a(l?r.map(function(e){return e[u||"value"]}).join(i||","):o?r.map(function(e){return e[u||"value"]}):r),this.setState({inputValue:""},this.loadAutoComplete)}else if(13===e.keyCode&&this.state.inputValue&&"number"!=typeof this.highlightedIndex){e.preventDefault();var p=this.state.inputValue;if(s){if(p&&!d(n,function(e){return e.value==p})){var r=n.concat();r.push({label:p,value:p}),a(l?r.map(function(e){return e[u||"value"]}).join(i||","):o?r.map(function(e){return e[u||"value"]}):r)}}else a(p);this.setState({inputValue:"",isOpen:!1},this.loadAutoComplete)}else 13===e.keyCode&&this.state.isOpen&&"number"!=typeof this.highlightedIndex&&this.setState({isOpen:!1})},t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,a=t.multiple,l=t.joinValues,o=t.extractValue,i=t.delimiter,s=t.selectedOptions,u=t.valueField;if(a){var r=s.concat();r.push({label:e,value:e}),n(l?r.map(function(e){return e[u||"value"]}).join(i||","):o?r.map(function(e){return e[u||"value"]}):r)}else n(e);this.setState({inputValue:""},this.loadAutoComplete)},t.prototype.handleStateChange=function(e){var t=this.props.multiple||this.props.multi;switch(e.type){case s.default.stateChangeTypes.itemMouseEnter:this.setState({isOpen:!0});break;case s.default.stateChangeTypes.changeInput:this.setState({isOpen:!0});break;default:var n={};"undefined"!=typeof e.isOpen&&(n.isOpen=e.isOpen),"undefined"!=typeof e.highlightedIndex&&(this.highlightedIndex=e.highlightedIndex),!t&&this.state.isOpen&&e.isOpen===!1&&(n.inputValue=""),this.setState(n)}},t.prototype.handleNormalInputChange=function(e){var t=this.props.onChange,n=e.currentTarget.value;t(n)},t.prototype.loadAutoComplete=function(){var e=this.props,t=e.formItem,n=e.autoComplete,l=e.data;n&&t&&t.loadOptions(n,a.__assign({},l,{term:this.state.inputValue||t.lastSelectValue}))},t.prototype.renderSugestMode=function(){var e=this,t=this.props,i=t.className,r=t.inputOnly,p=t.value,d=t.type,h=t.placeholder,m=t.classnames,f=t.disabled,v=t.name,C=t.loading,g=t.clearable,y=t.options,b=t.selectedOptions,x=t.autoComplete,_=t.labelField,O=t.valueField,V=t.multiple,N=t.spinnerClassName;return l.createElement(s.default,{isOpen:this.state.isOpen,inputValue:this.state.inputValue,onChange:this.handleChange,onStateChange:this.handleStateChange,selectedItem:b.map(function(e){return e[O||"value"]})},function(t){var s=t.getInputProps,I=t.getItemProps,T=t.isOpen,E=t.inputValue,S=t.selectedItem,k=t.highlightedIndex,F=E&&T&&!x?u(y,E,{keys:[_||"label",O||"value"]}):y,w=T?n(F,S):{};return F=F.filter(function(e){return!~S.indexOf(e.value)}),!F.length&&e.state.inputValue&&F.push((j={},j[_||"label"]=e.state.inputValue,j[O||"value"]=e.state.inputValue,j.isNew=!0,j)),l.createElement("div",{className:m("TextControl-input TextControl-input--withAC",r?i:"",{"is-opened":T,"TextControl-input--multiple":V}),onClick:e.handleClick},l.createElement("div",{className:m("TextControl-valueWrap")},!h||b.length||e.state.inputValue?null:l.createElement("div",{className:m("TextControl-placeholder")},h),b.map(function(t,n){return V?l.createElement("div",{className:m("TextControl-value"),key:n},l.createElement("span",{className:m("TextControl-valueIcon"),onClick:e.removeItem.bind(e,n)},"×"),l.createElement("span",{className:m("TextControl-valueLabel")},t[_||"label"])):E&&T?null:l.createElement("div",{className:m("TextControl-value"),key:n},t.label)}),l.createElement("input",a.__assign({},s({name:v,ref:e.inputRef,disabled:f,type:d,onFocus:e.handleFocus,onBlur:e.handleBlur,onChange:e.handleInputChange,onKeyDown:e.handleKeyDown}),{autoComplete:"off"}))),g&&p?l.createElement("a",{onClick:e.clearValue,className:m("TextControl-clear")},c.closeIcon):null,C?l.createElement("i",{className:m("TextControl-spinner",N)}):null,T&&F.length?l.createElement("div",{className:m("TextControl-sugs")},F.map(function(e){return l.createElement("div",a.__assign({},I({item:e.value,disabled:e.disabled,className:m("TextControl-sugItem",{"is-highlight":k===w[e.value],"is-disabled":e.disabled})}),{key:e.value}),e.isNew?l.createElement("span",null,"新增:",e.label,c.enterIcon):e.disabled?e.label:o.highlight(e.label,E))})):null);var j})},t.prototype.renderNormal=function(){var e=this.props,t=e.classPrefix,n=e.classnames,a=e.className,o=e.inputOnly,i=e.value,s=e.type,u=e.placeholder,r=(e.onChange,e.disabled),p=e.readOnly,d=e.clearable,h=e.name;return l.createElement("div",{className:n("TextControl-input",o?a:"")},l.createElement("input",{name:h,placeholder:u,ref:this.inputRef,disabled:r,readOnly:p,type:s,onFocus:this.handleFocus,onBlur:this.handleBlur,autoComplete:"off",onChange:this.handleNormalInputChange,value:"undefined"==typeof i||null===i?"":"string"==typeof i?i:JSON.stringify(i)}),d&&i?l.createElement("a",{onClick:this.clearValue,className:t+"TextControl-clear"},c.closeIcon):null)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,a=e.options,o=e.source,s=e.autoComplete,u=e.addOn,r=e.render,d=e.data,c=e.disabled,h=e.inputOnly,m="string"==typeof u?{label:u,type:"plain"}:u,f=s!==!1&&(o||a.length||s)?this.renderSugestMode():this.renderNormal(),v=m?m.actionType||~["button","submit","reset","action"].indexOf(m.type)?l.createElement("div",{className:i(n+"TextControl-button",m.className)},r("addOn",m)):l.createElement("div",{className:i(n+"TextControl-addOn",m.className)},m.label?p.filter(m.label,d):null,m.icon&&l.createElement("i",{className:m.icon})):null;return h?f:l.createElement("div",{className:i(t,n+"TextControl",(C={},C[n+"TextControl--withAddOn"]=!!v,C["is-focused"]=this.state.isFocused,C["is-disabled"]=c,C))},m&&"left"===m.position?v:null,f,m&&"left"!==m.position?v:null);var C},t.defaultProps={resetValue:"",labelField:"label",valueField:"value",placeholder:"",allowInputText:!0,spinnerClassName:"fa fa-spinner fa-spin fa-1x fa-fw"},a.__decorate([h.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",["function"==typeof(m=("undefined"!=typeof l&&l).ChangeEvent)&&m||Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleNormalInputChange",null),t;var m}(l.PureComponent);t.default=m,t.mapItemIndex=n;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"text"})],t)}(m);t.TextControlRenderer=f;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"password"})],t)}(m);t.PasswordControlRenderer=v;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"email",validations:"isEmail"})],t)}(m);t.EmailControlRenderer=C;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"url",validations:"isUrl"})],t)}(m);t.UrlControlRenderer=g});
;/*!src/renderers/Form/Tag.tsx*/
define("e1b1eb7",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),l=e("b86428a"),o=e("node_modules/lodash/find"),i=e("b7bbd16"),u=e("node_modules/react-overlays/lib/index"),r=e("node_modules/react-dom/index"),s=function(e){function t(t){var n=e.call(this,t)||this;return n.input=a.createRef(),n.state={inputValue:"",isFocused:!1},n.focus=n.focus.bind(n),n.clearValue=n.clearValue.bind(n),n.handleClick=n.handleClick.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.getParent=n.getParent.bind(n),n}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;t.value!==e.value&&this.setState({inputValue:""})},t.prototype.focus=function(){if(this.input.current){this.input.current.focus();var e=this.input.current.value.length;e&&this.input.current.setSelectionRange(e,e)}},t.prototype.clearValue=function(){var e=this.props,t=e.onChange,n=e.resetValue;t(n),this.setState({inputValue:n},this.focus)},t.prototype.removeItem=function(e){var t=this.props,n=t.selectedOptions,a=t.onChange,l=t.joinValues,o=t.extractValue,i=t.delimiter,u=t.valueField,r=n.concat();r.splice(e,1),a(l?r.map(function(e){return e[u||"value"]}).join(i||","):o?r.map(function(e){return e[u||"value"]}):r)},t.prototype.addItem=function(e){var t=this.props,n=t.selectedOptions,a=t.onChange,l=t.joinValues,i=t.extractValue,u=t.delimiter,r=t.valueField,s=n.concat();o(s,function(t){return t.value==e.value})||(s.push(e),a(l?s.map(function(e){return e[r||"value"]}).join(u||","):i?s.map(function(e){return e[r||"value"]}):s))},t.prototype.handleClick=function(){this.focus()},t.prototype.handleFocus=function(e){this.setState({isFocused:!0}),this.props.onFocus&&this.props.onFocus(e)},t.prototype.handleBlur=function(e){var t=this.props,n=t.selectedOptions,a=t.onChange,l=t.joinValues,i=t.extractValue,u=t.delimiter,r=t.valueField,s=this.state.inputValue.trim();this.props.onBlur&&this.props.onBlur(e),this.setState({isFocused:!1,inputValue:""},s?function(){var e=n.concat();if(!o(e,function(e){return e.value===s})){var t={label:s,value:s};e.push(t),a(l?e.map(function(e){return e[r||"value"]}).join(u||","):i?e.map(function(e){return e[r||"value"]}):e)}}:void 0)},t.prototype.handleInputChange=function(e){var t=e.currentTarget.value;this.setState({inputValue:t})},t.prototype.handleKeyDown=function(e){var t=this.props,n=t.selectedOptions,a=t.onChange,l=t.joinValues,i=t.extractValue,u=t.delimiter,r=t.valueField,s=this.state.inputValue.trim();if(n.length&&!s&&"Backspace"==e.key){var c=n.concat();c.pop(),a(l?c.map(function(e){return e[r||"value"]}).join(u||","):i?c.map(function(e){return e[r||"value"]}):c)}else if(s&&("Enter"===e.key||e.key===u)){e.preventDefault();var c=n.concat();o(c,function(e){return e.value==s})||(c.push({label:s,value:s}),a(l?c.map(function(e){return e[r||"value"]}).join(u||","):i?c.map(function(e){return e[r||"value"]}):c)),this.setState({inputValue:""})}},t.prototype.getParent=function(){return r.findDOMNode(this).parentNode},t.prototype.render=function(){var e=this,t=this.props,n=t.className,l=t.classnames,o=t.disabled,r=t.placeholder,s=t.name,c=t.options,p=t.optionsTip,d=t.clearable,h=t.value,m=t.loading,v=t.spinnerClassName,f=t.selectedOptions,g=t.labelField;return a.createElement("div",{className:l(n,"TagControl",{"is-focused":this.state.isFocused,"is-disabled":o})},a.createElement("div",{onClick:this.handleClick,className:l("TagControl-input")},a.createElement("div",{className:l("TagControl-valueWrap")},!r||f.length||this.state.inputValue?null:a.createElement("div",{className:l("TagControl-placeholder")},r),f.map(function(t,n){return a.createElement("div",{className:l("TagControl-value"),key:n},a.createElement("span",{className:l("TagControl-valueIcon"),onClick:e.removeItem.bind(e,n)},"×"),a.createElement("span",{className:l("TagControl-valueLabel")},t[g||"label"]))}),a.createElement("input",{ref:this.input,name:s,value:this.state.inputValue,onChange:this.handleInputChange,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur})),d&&h?a.createElement("a",{onClick:this.clearValue,className:l("TagControl-clear")},i.closeIcon):null,m?a.createElement("i",{className:l("TagControl-spinner",v)}):null),c.length?a.createElement(u.Portal,{container:this.getParent},a.createElement("div",{className:l("TagControl-sug")},p?a.createElement("div",{className:l("TagControl-sugTip")},p):null,c.map(function(t,n){return a.createElement("div",{className:l("TagControl-sugItem"),key:n,onClick:e.addItem.bind(e,t)},t.label)}))):null)},t.defaultProps={resetValue:"",labelField:"label",valueField:"value",placeholder:"",multiple:!0,optionsTip:"最近您使用的标签"},t}(a.PureComponent);t.default=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.OptionsControl({type:"tag"})],t)}(s);t.TagControlRenderer=c});
;/*!src/renderers/Form/Number.tsx*/
define("85dae7e",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),a=e("567b83c"),s=e("node_modules/classnames/index"),i=e("node_modules/rc-input-number/lib/index"),l=function(e){function n(n){var t=e.call(this,n)||this;return t.handleChange=t.handleChange.bind(t),t}return t.__extends(n,e),n.prototype.handleChange=function(e){var n=this.props,t=(n.classPrefix,n.onChange),r=n.resetValue;t("undefined"==typeof e?r||"":e)},n.prototype.render=function(){var e=this.props,n=e.className,a=e.classPrefix,l=e.value,o=e.step,d=e.precision,u=e.max,c=e.min,p=e.disabled,m=e.placeholder,h={};return"number"==typeof d&&(h.precision=d),r.createElement("div",{className:s(a+"NumberControl",n)},r.createElement(i,t.__assign({prefixCls:a+"Number",value:l,step:o,max:u,min:c,onChange:this.handleChange,disabled:p,placeholder:m},h)))},n.defaultProps={step:1,resetValue:""},n}(r.Component);n.default=l;var o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.defaultProps={validations:"isNumeric"},n=t.__decorate([a.FormItem({type:"number"})],n)}(l);n.NumberControlRenderer=o});
;/*!src/renderers/Form/Textarea.tsx*/
define("eff65fe",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),o=e("567b83c"),i=e("node_modules/classnames/index"),r=e("05807e2"),u=e("node_modules/react-dom/index"),s=e("9a80175"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputRef=function(e){return t.input=u.findDOMNode(e)},t}return n.__extends(t,e),t.prototype.focus=function(){if(this.input){this.input.focus();var e=this.input.value.length;e&&this.input.setSelectionRange(e,e)}},t.prototype.handleChange=function(e){var t=this.props.onChange,n=e.currentTarget.value;t(n)},t.prototype.handleFocus=function(e){var t=this.props.onFocus;t&&t(e)},t.prototype.handleBlur=function(e){var t=this.props,n=t.onBlur,a=t.trimContents,o=t.value,i=t.onChange;a&&o&&"string"==typeof o&&i(o.trim()),n&&n(e)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,o=e.value,u=e.type,s=e.placeholder,d=e.disabled,p=e.minRows,l=e.maxRows,c=e.name;return a.createElement(r.default,{autoComplete:"off",ref:this.inputRef,name:c,disabled:d,type:u,className:i(n+"TextareaControl",t),value:"undefined"==typeof o?"":"string"==typeof o?o:JSON.stringify(o),placeholder:s,minRows:p,maxRows:l,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur})},t.defaultProps={minRows:3,maxRows:20},n.__decorate([s.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(o=("undefined"!=typeof a&&a).ChangeEvent)&&o||Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),n.__decorate([s.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(d=("undefined"!=typeof a&&a).FocusEvent)&&d||Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),n.__decorate([s.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(p=("undefined"!=typeof a&&a).FocusEvent)&&p||Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),t;var o,d,p}(a.Component);t.default=d;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([o.FormItem({type:"textarea"})],t)}(d);t.TextAreaControlRenderer=p});
;/*!src/renderers/Form/Checkboxes.tsx*/
define("2b693f3",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),l=e("node_modules/react/index"),o=e("b86428a"),a=e("node_modules/classnames/index"),r=e("0a43d97"),s=e("node_modules/lodash/chunk"),c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.componentDidMount=function(){var e=this.props,n=e.defaultCheckAll,t=e.onToggleAll;n&&t()},n.prototype.render=function(){var e=this.props,n=e.className,t=e.disabled,o=e.placeholder,c=e.options,i=e.inline,d=e.columnsCount,u=e.selectedOptions,h=e.onToggle,p=e.onToggleAll,m=e.checkAll,f=e.classPrefix,g=[];if(c&&(g=c.map(function(e,n){return l.createElement(r.default,{classPrefix:f,key:n,onChange:function(){return h(e)},checked:!!~u.indexOf(e),disabled:t||e.disabled,inline:i},e.label)})),m&&g.length&&g.unshift(l.createElement(r.default,{key:"checkall",classPrefix:f,onChange:p,checked:!!u.length,partial:!(!u.length||u.length===c.length),disabled:t,inline:i},"全选/不选")),!i&&d>1){var b=12/d,k=f+"Grid-col--sm"+(b===Math.round(b)?b:"");g=s(g,d).map(function(e,n){return l.createElement("div",{className:f+"Grid",key:n},e.map(function(e,n){return l.createElement("div",{key:n,className:k},e)}))})}return l.createElement("div",{className:a(f+"CheckboxesControl",n)},g&&g.length?g:l.createElement("span",{className:f+"Form-placeholder"},o))},n.defaultProps={columnsCount:1,multiple:!0,placeholder:"暂无选项"},n}(l.Component);n.default=c;var i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([o.OptionsControl({type:"checkboxes",sizeMutable:!1})],n)}(c);n.CheckboxesControlRenderer=i});
;/*!src/renderers/Form/Checkbox.tsx*/
define("5ade3b1",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),l=e("node_modules/react/index"),a=e("567b83c"),r=e("node_modules/classnames/index"),u=e("0a43d97"),o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.className,t=e.value,a=e.trueValue,o=e.falseValue,s=e.option,i=e.onChange,d=e.disabled,c=e.render,f=e.classPrefix;return l.createElement("div",{className:r(f+"CheckboxControl",n)},l.createElement(u.default,{inline:!0,value:t||"",trueValue:a,falseValue:o,classPrefix:f,disabled:d,onChange:function(e){return i(e)}},s?c("option",s):null))},n.defaultProps={trueValue:!0,falseValue:!1},n}(l.Component);n.default=o;var s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([a.FormItem({type:"checkbox",sizeMutable:!1})],n)}(o);n.CheckboxControlRenderer=s});
;/*!src/renderers/Form/Rating.tsx*/
define("055a9f9",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),r=e("567b83c"),l=e("1b690d8"),u=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.className,t=e.value,r=e.count,u=e.half,s=e.readOnly,o=e.onChange,i=e.size,c=e.classnames;return a.createElement("div",{className:c("RatingControl",n)},a.createElement(l.default,{classnames:c,value:t,count:r,half:u,readOnly:s,size:i,onChange:function(e){return o(e)}}))},n.defaultProps={value:0,count:5,half:!1,readOnly:!1},n}(a.Component);n.default=u;var s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([r.FormItem({type:"rating",sizeMutable:!1})],n)}(u);n.RatingControlRenderer=s});
;/*!src/renderers/Form/Switch.tsx*/
define("0f75897",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),l=e("567b83c"),s=e("aa2413a"),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,l=e.classnames,r=e.value,u=e.trueValue,o=e.falseValue,i=e.option,c=e.onChange,d=e.disabled,f=e.optionAtLeft;return a.createElement("div",{className:l("SwitchControl",t)},f?a.createElement("span",{className:l("Switch-option")},i):null,a.createElement(s.default,{classPrefix:n,value:r,trueValue:u,falseValue:o,disabled:d,onChange:c}),f?null:a.createElement("span",{className:l("Switch-option")},i))},t.defaultProps={trueValue:!0,falseValue:!1,optionAtLeft:!1},t}(a.Component);t.default=r;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.FormItem({type:"switch",sizeMutable:!1})],t)}(r);t.SwitchControlRenderer=u});
;/*!src/renderers/Form/Button.tsx*/
define("c6f2783",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),o=e("567b83c"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.render,n=e.type,o=(e.children,r.__rest(e,["render","type","children"]));return t("action",r.__assign({},o,{type:n}))},t.defaultProps={},t}(n.Component);t.ButtonControl=u;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([o.FormItem({type:"button",renderLabel:!1,strictMode:!1,sizeMutable:!1})],t)}(u);t.ButtonControlRenderer=s;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([o.FormItem({type:"submit",renderLabel:!1,sizeMutable:!1,strictMode:!1})],t)}(u);t.SubmitControlRenderer=i;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([o.FormItem({type:"reset",renderLabel:!1,strictMode:!1,sizeMutable:!1})],t)}(u);t.ResetControlRenderer=l});
;/*!src/renderers/Form/ButtonToolbar.tsx*/
define("d7f3dfa",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),o=e("567b83c"),s=e("node_modules/classnames/index"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.render,n=e.className,o=e.classPrefix,u=e.buttons;return r.createElement("div",{className:s(o+"ButtonToolbar",n)},Array.isArray(u)?u.map(function(e,n){return t("button/"+n,e,{key:n})}):null)},t.defaultProps={},t}(r.Component);t.ButtonToolbarControl=u;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([o.FormItem({type:"button-toolbar",sizeMutable:!1,strictMode:!1})],t)}(u);t.ButtonToolbarRenderer=a});
;/*!src/renderers/Form/Radios.tsx*/
define("2dfb851",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),l=e("node_modules/classnames/index"),s=e("8e37af0"),a=e("b86428a"),i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.className,t=e.classPrefix,a=e.value,i=e.onChange,r=e.disabled,u=e.joinValues,d=e.extractValue,c=e.delimiter,f=e.placeholder,p=e.options,m=e.inline,_=e.formMode,h=e.columnsCount,x=e.classPrefix;return o.createElement(s.default,{inline:m||"inline"===_,className:l(t+"RadiosControl",n),value:"undefined"==typeof a?"":a,disabled:r,onChange:i,joinValues:u,extractValue:d,delimiter:c,placeholder:f,options:p,columnsCount:h,classPrefix:x})},n.defaultProps={columnsCount:1},n}(o.Component);n.default=i;var r=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.defaultProps={multiple:!1},n=t.__decorate([a.OptionsControl({type:"radios",sizeMutable:!1})],n)}(i);n.RadiosControlRenderer=r});
;/*!src/renderers/Form/List.tsx*/
define("64723a8",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),n=e("b86428a"),i=e("9a80175"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l.__extends(t,e),t.prototype.handleDBClick=function(e,t){this.props.onToggle(e),this.props.onAction(t,{type:"submit"})},t.prototype.handleClick=function(e,t){t.target&&t.target.closest("a,button")||this.props.onToggle(e)},t.prototype.render=function(){var e=this,t=this.props,l=t.render,n=(t.classPrefix,t.classnames),s=t.className,o=t.disabled,r=t.options,c=t.placeholder,d=t.selectedOptions,m=t.imageClassName,u=t.submitOnDBClick,p=t.itemSchema,b=t.data,C=null;return r&&(C=a.createElement("div",{className:n("ListControl-items")},r.map(function(t,s){return a.createElement("div",{key:s,className:n("ListControl-item",{"is-active":~d.indexOf(t),"is-disabled":t.disabled||o}),onClick:e.handleClick.bind(e,t),onDoubleClick:u?e.handleDBClick.bind(e,t):void 0},p?l(s+"/body",p,{data:i.createObject(b,t)}):t.body?l(s+"/body",t.body):[t.image?a.createElement("div",{key:"image",className:n("ListControl-itemImage",m)},a.createElement("img",{src:t.image,alt:t.label})):null,t.label?a.createElement("div",{key:"label",className:n("ListControl-itemLabel")},t.label):null])}))),a.createElement("div",{className:n("ListControl",s)},C?C:a.createElement("span",{className:n("ListControl-placeholder")},c))},t.defaultProps={clearable:!1,imageClassName:"",submitOnDBClick:!1},t}(a.Component);t.default=s;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l.__extends(t,e),t=l.__decorate([n.OptionsControl({type:"list",sizeMutable:!1})],t)}(s);t.ListControlRenderer=o});
;/*!src/renderers/Form/Select.tsx*/
define("86ddd97",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),a=e("node_modules/classnames/index"),i=e("b86428a"),r=e("d57879c"),l=e("node_modules/lodash/find"),s=e("node_modules/lodash/debounce"),u=function(e){function t(t){var n=e.call(this,t)||this;return n.cache={},n.changeValue=n.changeValue.bind(n),n.loadRemote=s(n.loadRemote.bind(n),250,{trailing:!0,leading:!1}),n.inputRef=n.inputRef.bind(n),n.handleNewOptionClick=n.handleNewOptionClick.bind(n),n}return n.__extends(t,e),t.prototype.inputRef=function(e){this.input=e},t.prototype.foucs=function(){this.input&&this.input.focus()},t.prototype.changeValue=function(e){var t=this.props,n=t.joinValues,o=t.extractValue,a=t.delimiter,i=t.multiple,r=(t.type,t.onChange),s=t.setOptions,u=t.options,c=e,p=[];(Array.isArray(e)?e:e?[e]:[]).forEach(function(e){var t=l(u,function(t){return t.value==e.value});t||p.push(e)}),n?c=i?Array.isArray(e)?e.map(function(e){return e.value}).join(a):e?e.value:"":c?c.value:"":o&&(c=i?Array.isArray(e)?e.map(function(e){return e.value}):e?[e.value]:[""]:c?c.value:""),p.length&&s(u.concat(p)),r(c)},t.prototype.loadRemote=function(e){var t=this,o=this.props,a=o.autoComplete,i=o.env,r=o.data,l=o.setOptions,s=o.setLoading;if(!i||!i.fetcher)throw new Error("fetcher is required");if(this.cache[e]||~e.indexOf("'")){var u=this.cache[e]||[],c=this.mergeOptions(u);return l(c),Promise.resolve({options:c})}return s(!0),i.fetcher(a,n.__assign({},r,{term:e,value:e})).then(function(n){var o=n.data&&n.data.options||n.data||[];t.cache[e]=o;var a=t.mergeOptions(o);return l(a),Promise.resolve({options:a})}).finally(function(){return s(!1)})},t.prototype.mergeOptions=function(e){var t=this.props.selectedOptions,n=e.concat();return Array.isArray(t)&&t.length&&t.forEach(function(e){l(n,function(t){return t.value==e.value})||n.push(e)}),n},t.prototype.handleNewOptionClick=function(e){var t=this.props,o=t.setOptions,a=t.options,i=a.concat();i.push(n.__assign({},e)),o(i)},t.prototype.render=function(){var e=this.props,t=e.autoComplete,i=e.searchable,l=e.options,s=e.className,u=e.loading,c=(e.value,e.selectedOptions),p=e.multi,d=e.multiple,h=e.placeholder,f=(e.id,e.classPrefix),m=(e.classnames,e.creatable),v=(e.inline,n.__rest(e,["autoComplete","searchable","options","className","loading","value","selectedOptions","multi","multiple","placeholder","id","classPrefix","classnames","creatable","inline"]));return o.createElement("div",{className:a(f+"SelectControl",s)},o.createElement(r.default,n.__assign({},v,{placeholder:h,multiple:d||p,ref:this.inputRef,value:c,options:l,onNewOptionClick:this.handleNewOptionClick,loadOptions:t?this.loadRemote:null,creatable:m,searchable:t||m?!0:i,onChange:this.changeValue,loading:u,cache:!1,joinValues:!1})))},t.defaultProps={clearable:!1,searchable:!1},t}(o.Component);t.default=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.OptionsControl({type:"select"})],t)}(u);t.SelectControlRenderer=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps={multiple:!0},t=n.__decorate([i.OptionsControl({type:"multi-select"})],t)}(u);t.MultiSelectControlRenderer=p});
;/*!src/renderers/Form/Static.tsx*/
define("d09e479",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),l=e("567b83c"),r=e("f6086a9"),s=e("bcd7efc"),i=e("b497f17"),d=e("0f9ebdf"),o=e("705a434"),c=e("9a80175"),u=function(e){function t(t){var a=e.call(this,t)||this;return a.handleQuickChange=a.handleQuickChange.bind(a),a}return a.__extends(t,e),t.prototype.handleQuickChange=function(e,t){var a=this.props,n=a.onBulkChange,l=a.onAction,r=a.data;n(e,t===!0),t&&t.api&&l(null,{actionType:"ajax",api:t.api},c.extendObject(r,e))},t.prototype.render=function(){var e=this.props,t=e.className,l=e.value,r=e.label,s=e.type,i=e.render,d=(e.children,a.__rest(e,["className","value","label","type","render","children"])),o=s.substring(7)||"tpl",c=a.__assign({label:r,name:name},d,{type:o});return n.createElement("div",{className:"form-control-static"},i("field",a.__assign({},c,{type:"static-field",field:c}),{value:l,className:t,onQuickChange:this.handleQuickChange}))},t.defaultProps={placeholder:"-"},t}(n.Component);t.default=u;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([l.FormItem({test:/(^|\/)form(?:\/.+)?\/control\/static(\-[^\/]+)?$/,strictMode:!1,sizeMutable:!1,name:"static-control"})],t)}(u);t.StaticControlRenderer=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=(e.type,e.className),l=e.render,r=e.style,s=e.wrapperComponent,i=(e.labelClassName,e.value),d=e.data,o=e.children,c=e.width,u=e.inputClassName,p=(e.label,e.tabIndex),f=e.onKeyUp,h=e.field,m=a.__rest(e,["type","className","render","style","wrapperComponent","labelClassName","value","data","children","width","inputClassName","label","tabIndex","onKeyUp","field"]),_=a.__assign({},h,{className:u,type:h&&h.type||"plain"}),b=o?o:l("field",_,a.__assign({},m,{value:i,data:d}));return c&&(r=r||{},r.width=r.width||c),s?n.createElement(s,{style:r,className:t,tabIndex:p,onKeyUp:f},b):b},t.defaultProps=a.__assign({},r.TableCell.defaultProps,{wrapperComponent:"div"}),t=a.__decorate([d.Renderer({test:/(^|\/)static\-field$/}),i.default(),s.default(),o.default()],t)}(r.TableCell);t.StaticFieldRenderer=f});
;/*!src/renderers/Form/Date.tsx*/
define("b0a035c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),n=e("567b83c"),o=e("node_modules/classnames/index"),s=e("f2e345e");e("node_modules/moment/locale/zh-cn");var i=e("dd24912"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.minDate,a=e.maxDate,r=e.value,n=e.defaultValue,o=e.setPrinstineValue,i=e.data,l=e.format;n&&r===n&&o(s.filterDate(n,i).format(l)),this.setState({minDate:t?s.filterDate(t,i):void 0,maxDate:a?s.filterDate(a,i):void 0})},t.prototype.componentWillReceiveProps=function(e){var t=this.props;t.defaultValue!==e.defaultValue&&e.setPrinstineValue(s.filterDate(e.defaultValue,e.data)),(t.minDate!==e.minDate||t.maxDate!==e.maxDate||t.data!==e.data)&&this.setState({minDate:e.minDate?s.filterDate(e.minDate,e.data,this.props.format):void 0,maxDate:e.maxDate?s.filterDate(e.maxDate,e.data,this.props.format):void 0})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,s=(e.defaultValue,e.defaultData,a.__rest(e,["className","classPrefix","defaultValue","defaultData"]));return r.createElement("div",{className:o(n+"DateControl",t)},r.createElement(i.default,a.__assign({},s,this.state,{classPrefix:n})))},t.defaultProps={format:"X",viewMode:"days",inputFormat:"YYYY-MM-DD",timeConstrainst:{minutes:{step:1}},clearable:!0,iconClassName:"fa fa-calendar"},t}(r.PureComponent);t.default=l;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign({},l.defaultProps,{placeholder:"请选择日期",dateFormat:"YYYY-MM-DD",timeFormat:"",strictMode:!1}),t=a.__decorate([n.FormItem({type:"date",weight:-150})],t)}(l);t.DateControlRenderer=m;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign({},l.defaultProps,{placeholder:"请选择日期以及时间",inputFormat:"YYYY-MM-DD HH:mm",dateFormat:"LL",timeFormat:"HH:mm",closeOnSelect:!1,strictMode:!1}),t=a.__decorate([n.FormItem({type:"datetime"})],t)}(l);t.DatetimeControlRenderer=d;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign({},l.defaultProps,{placeholder:"请选择时间",inputFormat:"HH:mm",dateFormat:"",timeFormat:"HH:mm",viewMode:"time",closeOnSelect:!1}),t=a.__decorate([n.FormItem({type:"time"})],t)}(l);t.TimeControlRenderer=u});
;/*!src/renderers/Form/DateRange.tsx*/
define("48cac0f",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),n=e("567b83c"),i=e("node_modules/classnames/index"),o=e("f2e345e");e("node_modules/moment/locale/zh-cn");var l=e("eaae631"),s=function(e){function t(t){var a=e.call(this,t)||this,r=t.minDate,n=t.maxDate,i=t.data;return a.state={minDate:r?o.filterDate(r,i):void 0,maxDate:n?o.filterDate(n,i):void 0},a}return a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.defaultValue,a=e.setPrinstineValue,r=e.delimiter,n=e.format,i=e.data,s=e.value,u=e.joinValues;if(t&&s===t){var d="string"==typeof t?t.split(r):t;a(l.default.formatValue({startDate:o.filterDate(d[0],i),endDate:o.filterDate(d[1],i)},n,u,r))}},t.prototype.componentWillReceiveProps=function(e){var t=e.data,a=e.minDate,r=e.maxDate,n=this.props;(n.minDate!==a||n.maxDate!==r||n.data!==t)&&this.setState({minDate:a?o.filterDate(a,t):void 0,maxDate:r?o.filterDate(r,t):void 0})},t.prototype.componentDidUpdate=function(e){var t=this.props,a=t.defaultValue,r=t.delimiter,n=t.format,i=t.joinValues,s=t.setPrinstineValue,u=t.data;if(e.defaultValue!==a){var d="string"==typeof a?a.split(r):a;s(d?l.default.formatValue({startDate:o.filterDate(d[0],u),endDate:o.filterDate(d[1],u)},n,i,r):void 0)}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,o=(e.defaultValue,e.defaultData,a.__rest(e,["className","classPrefix","defaultValue","defaultData"]));return r.createElement("div",{className:i(n+"DateRangeControl",t)},r.createElement(l.default,a.__assign({},o,this.state,{classPrefix:n})))},t.defaultProps={format:"X",joinValues:!0,delimiter:","},t}(r.Component);t.default=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign({},s.defaultProps,{timeFormat:""}),t=a.__decorate([n.FormItem({type:"date-range"})],t)}(s);t.DateRangeControlRenderer=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.defaultProps=a.__assign({},s.defaultProps,{timeFormat:"HH:mm",inputFormat:"YYYY-MM-DD HH:mm"}),t=a.__decorate([n.FormItem({type:"datetime-range",sizeMutable:!1})],t)}(s);t.DateTimeRangeControlRenderer=d});
;/*!src/renderers/Form/Repeat.tsx*/
define("d7f8ee3",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),t=e("node_modules/react/index"),l=e("node_modules/classnames/index"),s=e("567b83c"),r={secondly:"秒",minutely:"分",hourly:"时",daily:"天",weekdays:"周中",weekly:"周",monthly:"月",yearly:"年"},i=e("d57879c"),d=e("736bbb6"),o=function(e){function n(n){var a=e.call(this,n)||this;return a.handleOptionChange=a.handleOptionChange.bind(a),a.handleChange=a.handleChange.bind(a),a}return a.__extends(n,e),n.prototype.handleOptionChange=function(e){this.props.onChange(e.value)},n.prototype.handleChange=function(e){var n=this.props.value,a=n?n.split(":"):[];this.props.onChange(a[0]+":"+e)},n.prototype.renderInput=function(){var e=this,n=this.props.value,a=n?n.split(":"):[],l=this.props,s=l.options,o=l.placeholder,u=l.disabled,c=l.classPrefix,h=[];h=s.split(",").map(function(e){return{label:r[e]||"不支持",value:e}}),h.unshift({label:o,value:""});var p;switch(a[1]=parseInt(a[1],10)||1,a[0]){case"secondly":p=t.createElement(d.default,{key:"input",classPrefix:c,value:a[1],min:1,step:5,max:60,disabled:u,onChange:function(n){return e.handleChange(n)}});break;case"minutely":p=t.createElement(d.default,{key:"input",classPrefix:c,value:a[1],min:1,step:5,max:60,disabled:u,onChange:function(n){return e.handleChange(n)}});break;case"hourly":p=t.createElement(d.default,{key:"input",classPrefix:c,value:a[1],min:1,step:1,max:24,disabled:u,onChange:function(n){return e.handleChange(n)}});break;case"daily":p=t.createElement(d.default,{key:"input",classPrefix:c,value:a[1],min:1,step:1,max:30,disabled:u,onChange:function(n){return e.handleChange(n)}});break;case"weekly":p=t.createElement(d.default,{key:"input",classPrefix:c,value:a[1],min:1,step:1,max:12,disabled:u,onChange:function(n){return e.handleChange(n)}});break;case"monthly":p=t.createElement(d.default,{key:"input",classPrefix:c,value:a[1],min:1,step:1,max:12,disabled:u,onChange:function(n){return e.handleChange(n)}});break;case"yearly":p=t.createElement(d.default,{classPrefix:c,key:"input",className:"v-middle",value:a[1],min:1,step:1,max:20,disabled:u,onChange:function(n){return e.handleChange(n)}})}return t.createElement("div",{className:"repeat-control hbox"},p?t.createElement("div",{className:"col v-middle",style:{width:30}},t.createElement("span",null,"每")):null,p?t.createElement("div",{className:"col v-middle"},p):null,t.createElement("div",{className:"col v-middle repeat-btn"},t.createElement(i.default,{classPrefix:c,className:p?"pull-right":null,options:h,placeholder:o,onChange:this.handleOptionChange,value:a[0],clearable:!1,searchable:!1,disabled:u,joinValues:!1})))},n.prototype.render=function(){var e=this.props,n=e.className,a=e.classPrefix;return t.createElement("div",{className:l(a+"RepeatControl",n)},this.renderInput())},n.defaultProps={options:"hourly,daily,weekly,monthly",placeholder:"不重复"},n}(t.Component);n.default=o;var u=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(n,e),n=a.__decorate([s.FormItem({type:"repeat",sizeMutable:!1})],n)}(o);n.RepeatControlRenderer=u});
;/*!src/renderers/Form/Tree.tsx*/
define("ee37b69",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),t=e("node_modules/classnames/index"),a=e("d233af4"),i=e("b86428a"),d=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(l,e),l.prototype.render=function(){var e=this.props,l=e.className,o=e.classPrefix,i=e.value,d=e.onChange,r=e.disabled,s=e.joinValues,u=e.extractValue,c=e.delimiter,h=e.placeholder,p=e.options,f=(e.inline,e.multiple),m=e.valueField,b=e.initiallyOpen,v=e.unfoldedLevel,C=e.withChildren,_=e.onlyChildren,y=e.loading,x=e.hideRoot,w=e.rootLabel,V=e.cascade,g=e.rootValue,R=e.showIcon,L=e.showRadio,F=e.render;return n.createElement("div",{className:t(o+"TreeControl",l)},y?F("loading",{type:"spinner"}):n.createElement(a.default,{classPrefix:o,valueField:m,disabled:r,onChange:d,joinValues:s,extractValue:u,delimiter:c,placeholder:h,data:p,multiple:f,initiallyOpen:b,unfoldedLevel:v,withChildren:C,onlyChildren:_,hideRoot:x,rootLabel:w,rootValue:g,showIcon:R,showRadio:L,cascade:V,foldedField:"collapsed",value:i||"",nameField:"label",selfDisabledAffectChildren:!1}))},l.defaultProps={placeholder:"选项加载中...",multiple:!1,hideRoot:!1,rootLabel:"顶级",rootValue:"",showIcon:!0},l}(n.Component);l.default=d;var r=function(e){function l(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(l,e),l=o.__decorate([i.OptionsControl({type:"tree"})],l)}(d);l.TreeControlRenderer=r});
;/*!src/renderers/Form/TreeSelect.tsx*/
define("90765dc",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),l=e("node_modules/react/index"),a=e("997df41"),i=e("2b3dcdf"),s=e("b86428a"),r=e("b7bbd16"),o=e("d233af4"),c=e("node_modules/match-sorter/dist/match-sorter.cjs"),u=e("node_modules/lodash/debounce"),d=e("node_modules/lodash/find"),p=function(e){function t(t){var n=e.call(this,t)||this;return n.input=l.createRef(),n.cache={},n.state={inputValue:"",isOpened:!1,isFocused:!1},n.open=n.open.bind(n),n.close=n.close.bind(n),n.handleChange=n.handleChange.bind(n),n.clearValue=n.clearValue.bind(n),n.target=l.createRef(),n.container=l.createRef(),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleClick=n.handleClick.bind(n),n.handleKeyPress=n.handleKeyPress.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.handleInputKeyDown=n.handleInputKeyDown.bind(n),n.loadRemote=u(n.loadRemote.bind(n),250,{trailing:!0,leading:!1}),n}return n.__extends(t,e),t.prototype.componentDidMount=function(){this.loadRemote("")},t.prototype.open=function(e){this.props.disabled||this.setState({isOpened:!0},e)},t.prototype.close=function(){var e=this;this.setState({isOpened:!1,inputValue:this.props.multiple?this.state.inputValue:""},function(){return e.loadRemote(e.state.inputValue)})},t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!1})},t.prototype.handleClick=function(){var e=this;this.state.isOpened?this.close():this.open(function(){return e.input.current&&e.input.current.focus()})},t.prototype.handleKeyPress=function(e){" "===e.key&&this.handleClick()},t.prototype.removeItem=function(e,t){var n=this.props,l=n.selectedOptions,a=n.joinValues,i=n.extractValue,s=n.delimiter,r=n.valueField,o=n.onChange,c=n.disabled;if(t&&t.stopPropagation(),!c){var u=l.concat();u.splice(e,1);var d=u;a?d=u.map(function(e){return e[r||"value"]}).join(s||","):i&&(d=u.map(function(e){return e[r||"value"]})),o(d)}},t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,l=t.multiple;l||this.close(),l||!this.state.inputValue?n(e):this.setState({inputValue:""},function(){return n(e)})},t.prototype.handleInputChange=function(e){var t=this,n=this.props.autoComplete;this.setState({inputValue:e.currentTarget.value},n?function(){return t.loadRemote(t.state.inputValue)}:void 0)},t.prototype.handleInputKeyDown=function(e){var t=this.state.inputValue,n=this.props,l=n.multiple,a=n.selectedOptions;"Backspace"===e.key&&!t&&a.length&&l&&this.removeItem(a.length-1)},t.prototype.clearValue=function(){var e=this.props,t=e.onChange,n=e.resetValue;t("undefined"==typeof n?"":n)},t.prototype.filterOptions=function(e,t){var l=this,a=this.props,i=a.labelField,s=a.valueField;return e.map(function(e){if(e=n.__assign({},e),e.visible=!!c([e],t,{keys:[i||"label",s||"value"]}).length,!e.visible&&e.children){e.children=l.filterOptions(e.children,t);var a=e.children.filter(function(e){return e.visible}).length;e.visible=!!a}return e.visible&&(e.collapsed=!1),e})},t.prototype.loadRemote=function(e){var t=this,l=this.props,a=l.autoComplete,i=l.env,s=l.data,r=l.setOptions,o=l.setLoading;if(a){if(!i||!i.fetcher)throw new Error("fetcher is required");if(this.cache[e]||~e.indexOf("'")){var c=this.cache[e]||[],u=this.mergeOptions(c);return r(u),Promise.resolve({options:u})}return o(!0),i.fetcher(a,n.__assign({},s,{term:e,value:e})).then(function(n){var l=n.data&&n.data.options||n.data||[];t.cache[e]=l;var a=t.mergeOptions(l);return r(a),Promise.resolve({options:a})}).finally(function(){return o(!1)})}},t.prototype.mergeOptions=function(e){var t=this.props.selectedOptions,l=e.concat();return Array.isArray(t)&&t.length&&t.forEach(function(e){d(l,function(t){return t.value==e.value})||l.push(n.__assign({},e,{visible:!1}))}),l},t.prototype.renderValues=function(){var e=this,t=this.props,n=(t.classPrefix,t.selectedOptions),a=t.multiple,i=t.labelField,s=t.disabled,r=t.placeholder,o=t.classnames;return a&&n.length||!this.state.inputValue?n.length?n.map(function(t,n){return a?l.createElement("div",{key:n,className:o("TreeSelect-value",{disabled:s})},l.createElement("span",{className:o("TreeSelect-valueIcon"),onClick:e.removeItem.bind(e,n)},"×"),l.createElement("span",{className:o("TreeSelect-valueLabel")},t[i||"label"])):l.createElement("div",{className:o("TreeSelect-value"),key:n},t[i||"label"])}):l.createElement("span",{key:"placeholder",className:o("TreeSelect-placeholder")},r):null},t.prototype.renderOuter=function(){var e=this,t=this.props,n=t.value,s=t.disabled,r=t.joinValues,c=t.extractValue,u=t.delimiter,d=(t.placeholder,t.options),p=t.multiple,h=t.valueField,f=t.initiallyOpen,m=t.unfoldedLevel,v=t.withChildren,b=t.rootLabel,y=t.cascade,g=t.rootValue,C=t.showIcon,V=t.showRadio,O=t.popOverContainer,S=t.onlyChildren,T=t.classPrefix,E=t.optionsPlaceholder,_=t.searchable,w=t.autoComplete,F=!w&&_&&this.state.inputValue?this.filterOptions(d,this.state.inputValue):d;return l.createElement(a.default,{container:O||function(){return e.container.current},placement:"left-bottom-left-top right-bottom-right-top",target:function(){return e.target.current},show:!0},l.createElement(i.default,{classPrefix:T,className:T+"TreeSelect-popover",style:{minWidth:this.target.current?this.target.current.offsetWidth:void 0},onHide:this.close,overlay:!0},l.createElement(o.default,{classPrefix:T,onlyChildren:S,valueField:h,disabled:s,onChange:this.handleChange,joinValues:r,extractValue:c,delimiter:u,placeholder:E,data:F,highlightTxt:this.state.inputValue,multiple:p,initiallyOpen:f,unfoldedLevel:m,withChildren:v,rootLabel:b,rootValue:g,showIcon:C,showRadio:V,cascade:y,foldedField:"collapsed",hideRoot:!0,value:n||"",nameField:"label"})))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.disabled,a=e.spinnerClassName,i=e.inline,s=e.loading,o=e.multiple,c=e.value,u=e.clearable,d=e.classPrefix,p=e.classnames,h=e.searchable,f=e.autoComplete;return l.createElement("div",{ref:this.container,className:p("TreeSelectControl",t)},l.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:this.target,className:p("TreeSelect",{"TreeSelect--inline":i,"TreeSelect--single":!o,"TreeSelect--multi":o,"TreeSelect--searchable":h||f,"is-opened":this.state.isOpened,"is-focused":this.state.isFocused,"is-disabled":n})},l.createElement("div",{onClick:this.handleClick,className:p("TreeSelect-input")},l.createElement("div",{className:p("TreeSelect-valueWrap")},this.renderValues(),h||f?l.createElement("input",{onChange:this.handleInputChange,value:this.state.inputValue,ref:this.input,onKeyDown:this.handleInputKeyDown}):null),u&&!n&&c&&c.length?l.createElement("a",{onClick:this.clearValue,className:d+"TreeSelect-clear"},r.closeIcon):null,s?l.createElement("span",{className:p("TreeSelect-spinner")},l.createElement("i",{className:a})):null,l.createElement("span",{className:p("TreeSelect-arrow")})),this.state.isOpened?this.renderOuter():null))},t.defaultProps={placeholder:"请选择",optionsPlaceholder:"暂无数据",multiple:!1,clearable:!0,rootLabel:"顶级",rootValue:"",showIcon:!0,joinValues:!0,extractValue:!1,delimiter:",",resetValue:"",spinnerClassName:"fa fa-spinner fa-spin fa-1x fa-fw"},t}(l.Component);t.default=p;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([s.OptionsControl({type:"tree-select"})],t)}(p);t.TreeSelectControlRenderer=h});
;/*!src/renderers/Form/Image.tsx*/
define("cf6ad73",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),i=e("node_modules/react/index"),n=e("567b83c"),s=e("node_modules/classnames/index"),o=e("node_modules/react-cropper/dist/react-cropper"),l=e("node_modules/react-dropzone/dist/index");e("node_modules/blueimp-canvastoblob/js/canvas-to-blob");var r=e("node_modules/lodash/find"),p=e("node_modules/qs/lib/index"),c=e("6a2dbb7"),d=e("1953fc1"),u=function(e){function t(i){var n=e.call(this,i)||this;n.state={uploading:!1,locked:!1,compress:!1,files:[],compressOptions:{}},n.current=null;var s=i.value,o=i.multiple,l=i.joinValues,r=i.delimiter,p=[];return s&&(p=(Array.isArray(s)?s:l&&"string"==typeof s&&o?s.split(r):[s]).map(function(e){return t.valueToFile(e)}).filter(function(e){return e})),n.state=a.__assign({},n.state,{files:p,crop:n.buildCrop(i),compress:!!i.compress,compressOptions:i.compressOptions}),n.sendFile=n.sendFile.bind(n),n.removeFile=n.removeFile.bind(n),n.handleDrop=n.handleDrop.bind(n),n.handleClick=n.handleClick.bind(n),n.handleClick=n.handleClick.bind(n),n.handleCrop=n.handleCrop.bind(n),n.handleDropRejected=n.handleDropRejected.bind(n),n.cancelCrop=n.cancelCrop.bind(n),n.handleImageLoaded=n.handleImageLoaded.bind(n),n.startUpload=n.startUpload.bind(n),n.stopUpload=n.stopUpload.bind(n),n.toggleUpload=n.toggleUpload.bind(n),n.tick=n.tick.bind(n),n.onChange=n.onChange.bind(n),n.addFiles=n.addFiles.bind(n),n.handleSelect=n.handleSelect.bind(n),n.handlePaste=n.handlePaste.bind(n),n}return a.__extends(t,e),t.formatFileSize=function(e,t){for(void 0===t&&(t=[" B"," KB"," M"," G"]),e=parseInt(e,10)||0;e>1024&&t.length>1;)e/=1024,t.shift();return e.toFixed(2)+t[0]},t.valueToFile=function(e){return e?a.__assign({},"string"==typeof e?{value:e,url:e}:e,{state:"init"}):void 0},t.sizeInfo=function(e,t){return e?t?"尺寸("+e+" x "+t+"":"宽度"+e+"px":"高度"+t+"px"},t.prototype.componentWillReceiveProps=function(e){var i=this,n=this.props;if(n.value!==e.value){var s=e.value,o=(e.multiple,e.joinValues),l=e.delimiter,p=[];s&&(p=(Array.isArray(s)?s:o&&"string"==typeof s?s.split(l):[s]).map(function(n){var s,o=t.valueToFile(n,e);return o&&(s=r(i.state.files,function(e){return e.value===o.value}))&&(o=a.__assign({},s,o)),o}).filter(function(e){return e})),this.setState({files:p})}n.crop!==e.crop&&this.setState({crop:this.buildCrop(e)})},t.prototype.buildCrop=function(e){var t=e.crop;return t&&e.multiple?(e.env&&e.env.alert&&e.env.alert("图片多选配置和裁剪配置冲突,目前不能二者都支持!"),null):(t===!0&&(t={}),t&&(t=a.__assign({aspectRatio:1,guides:!0,dragMode:"move",viewMode:1,rotatable:!1,scalable:!1},t)),t)},t.prototype.handleDropRejected=function(e,t){"change"===t.type&&alert("您选择的文件类型不符已被过滤!")},t.prototype.startUpload=function(){this.state.uploading||this.setState({uploading:!0,locked:!0,files:this.state.files.map(function(e){return"error"===e.state&&(e.state="pending"),e})},this.tick)},t.prototype.toggleUpload=function(){return this.state.uploading?this.stopUpload():this.startUpload()},t.prototype.stopUpload=function(){this.state.uploading&&this.setState({uploading:!1})},t.prototype.tick=function(){var e=this;if(!this.current&&this.state.uploading){var t=r(this.state.files,function(e){return"pending"===e.state});t?(this.current=t,t.state="uploading",this.setState({files:this.state.files.concat()},function(){return e.sendFile(t,function(t,a,i){var n=e.state.files.concat(),s=n.indexOf(a);if(~s){var o=a;if(t){if(o.state="uploading"!==a.state?a.state:"error",o.error=t,!e.props.multiple&&"invalid"===o.state)return n.splice(s,1),e.current=null,e.setState({files:n,error:t},e.tick)}else o=i;n.splice(s,1,o),e.current=null,e.setState({files:n},e.tick)}})})):this.setState({uploading:!1,locked:!1},function(){e.onChange(),e.resolve&&(e.resolve(e.state.files.some(function(e){return"error"===e.state})?"文件上传失败请重试":null),e.resolve=void 0)})}},t.prototype.removeFile=function(e,t){var a=this.state.files.concat();a.splice(t,1),this.setState({files:a},this.onChange)},t.prototype.editImage=function(e){var t=(this.props.multiple,this.state.files);this.setState({cropFile:{preview:t[e].url,state:"init"}})},t.prototype.onChange=function(){var e=this.props,t=e.multiple,a=e.onChange,i=e.joinValues,n=e.extractValue,s=e.delimiter,o=e.valueField,l=this.state.files.filter(function(e){return"uploaded"==e.state||"init"==e.state}),r=l.length?i?l[0].value:l[0]:"";r=t?i?l.map(function(e){return e.value}).join(s):n?l.map(function(e){return e.value}):l:i?r.value||r:n?r[o||"value"]:r,a(r)},t.prototype.handleSelect=function(){this.refs.dropzone&&this.refs.dropzone.open()},t.prototype.handleDrop=function(e){var t=this.props,a=t.multiple,i=t.crop;return i&&!a?this.setState({locked:!0,lockedReason:"请选择放弃或者应用",cropFile:e[0]}):void this.addFiles(e)},t.prototype.handlePaste=function(e){var t=e.nativeEvent,a=[],i=t.clipboardData.items;[].slice.call(i).forEach(function(e){var t;"file"===e.kind&&(t=e.getAsFile())&&/^image/i.test(t.type)&&(t.preview=window.URL.createObjectURL(t),a.push(t))}),this.handleDrop(a)},t.prototype.handleCrop=function(){var e=this;this.refs.cropper.getCroppedCanvas().toBlob(function(t){e.addFiles([t]),e.setState({cropFile:void 0,locked:!1,lockedReason:""})})},t.prototype.cancelCrop=function(){this.setState({cropFile:void 0,locked:!1,lockedReason:""},this.onChange)},t.prototype.addFiles=function(e){var a=this;if(e.length){var i=this.props,n=i.multiple,s=i.maxLength,o=i.maxSize,l=(i.accept,this.state.files);!n&&l.length&&(l=[]);var r=(n?s?s:e.length+l.length:1)-l.length,p=[];[].slice.call(e,0,r).forEach(function(e){return o&&e.size>o?void alert("您选择的文件 "+e.name+" 大小为 "+t.formatFileSize(e.size)+" 超出了最大为 "+t.formatFileSize(o)+" 的限制,请重新选择"):(e.state="pending",e.preview&&e.url||(e.preview=window.URL.createObjectURL(e)),void p.push(e))}),p.length&&this.setState({error:void 0,files:l.concat(p),locked:!0},function(){var e=a.props.autoUpload;e&&a.startUpload()})}},t.prototype.sendFile=function(e,a){var i=this,n=this.props.limit;if(!n)return this._upload(e,a);var s=new Image;s.onload=function(){var o=s.width,l=s.height,r="";n.width&&n.width!=o||n.height&&n.height!=l?r="您选择的图片不符合尺寸要求, 请上传"+t.sizeInfo(n.width,n.height)+"的图片":n.maxWidth&&n.maxWidth<o||n.maxHeight&&n.maxHeight<l?r="您选择的图片不符合尺寸要求, 请上传不要超过"+t.sizeInfo(n.maxWidth,n.maxHeight)+"的图片":n.minWidth&&n.minWidth>o||n.minHeight&&n.minHeight>l?r="您选择的图片不符合尺寸要求, 请上传不要小于"+t.sizeInfo(n.minWidth,n.minHeight)+"的图片":n.aspectRatio&&Math.abs(o/l-n.aspectRatio)>.01&&(r="您选择的图片不符合尺寸要求, 请上传尺寸比率为 "+(n.aspectRatioLabel||n.aspectRatio)+" 的图片"),r?(e.state="invalid",a(r,e)):i._upload(e,a)},s.src=e.preview||e.url},t.prototype._upload=function(e,t){var i=this.state.compressOptions;this.props.showCompressOptions&&(i=a.__assign({maxWidth:800,maxHeight:600},i)),this._send(e,this.props.reciever,{compress:this.state.compress,compressOptions:i}).then(function(i){if(i.status)throw new Error(i.msg||"上传失败, 请重试");var n=a.__assign({},i.data,{state:"uploaded"});n.value=n.value||n.url,t(null,e,n)}).catch(function(a){return t(a.message||"上传失败,请重试",e)})},t.prototype._send=function(e,t,i){var n=new FormData,s=this.props.data;t=c.filter(t,s),n.append("file",e,e.name);var o=t.indexOf("?");~o&&i?(i=a.__assign({},p.parse(t.substring(o+1)),i),t=t.substring(0,o)+"?"+p.stringify(i)):i&&(t+="?"+p.stringify(i));var l=this.props.env;if(!l||!l.fetcher)throw new Error("fetcher is required");return l.fetcher(t,n,{method:"post"})},t.prototype.handleClick=function(){this.refs.dropzone.open()},t.prototype.handleImageLoaded=function(e,t){var i=this,n=t.currentTarget,s=new Image;s.onload=function(){delete s.onload;var t=i.state.files.concat(),n=t[e];n&&(n.info=a.__assign({},n.info,{width:s.width,height:s.height}),t.splice(e,1,n),i.setState({files:t},"uploaded"==n.state||"init"==n.state?i.onChange:void 0))},s.src=n.src},t.prototype.validate=function(){var e=this;return this.state.locked&&this.state.lockedReason?this.state.lockedReason:this.state.uploading||this.state.files.some(function(e){return"pending"===e.state})?new Promise(function(t){e.resolve=t,e.startUpload()}):this.state.files.some(function(e){return"error"===e.state})?"文件上传失败请重试":void 0},t.prototype.renderCompressOptions=function(){var e=this,t=this.props.showCompressOptions,n=(this.props.classnames,this.props.classPrefix);return t?i.createElement("div",{key:"options",className:"m-t"},i.createElement(d.Switch,{classPrefix:n,checked:!!this.state.compress,onChange:function(t){return e.setState({compress:t})},disabled:this.props.disabled}),i.createElement("span",{className:"m-l-xs"},"开启缩放?"),this.state.compress&&i.createElement("div",{className:"inline"},i.createElement("input",{className:"form-control w-xs inline m-l-xs m-r-xs",type:"text",value:"undefined"==typeof this.state.compressOptions.maxWidth?800:this.state.compressOptions.maxWidth,onChange:function(t){return e.setState({compressOptions:a.__assign({},e.state.compressOptions,{maxWidth:parseInt(t.currentTarget.value,10)||0})})},disabled:this.props.disabled}),i.createElement("span",{className:" m-l-xs m-r-xs"},"X"),i.createElement("input",{className:"form-control w-xs inline m-l-xs m-r-xs",type:"text",value:"undefined"==typeof this.state.compressOptions.maxHeight?600:this.state.compressOptions.maxHeight,onChange:function(t){return e.setState({compressOptions:a.__assign({},e.state.compressOptions,{maxHeight:parseInt(t.currentTarget.value,10)||0})})},disabled:this.props.disabled}))):void 0},t.prototype.render=function(){var e=this,n=this.props,r=n.className,p=n.classPrefix,c=n.placeholder,d=n.disabled,u=n.multiple,m=n.accept,h=n.maxLength,f=n.autoUpload,g=n.btnUploadClassName,v=n.btnClassName,b=n.hideUploadButton,x=this.state,y=x.files,C=x.error,_=x.crop,k=x.uploading,E=x.cropFile,w=y.some(function(e){return"pending"==e.state});return i.createElement("div",{className:s(p+"ImageControl",r),tabIndex:-1,onPaste:this.handlePaste},E?i.createElement("div",{className:"cropper-wrapper"},i.createElement(o.default,a.__assign({},_,{ref:"cropper",src:E.preview})),i.createElement("button",{type:"button",className:"btn-sm btn btn-link",onClick:this.handleCrop},i.createElement("i",{className:"fa fa-2x fa-check text-warning"})),i.createElement("button",{type:"button",className:"btn-sm btn btn-link",onClick:this.cancelCrop},i.createElement("i",{className:"fa fa-2x fa-times text-white"}))):i.createElement(l,{key:"drop-zone",className:s("drop-zone",{disabled:d,"has-files":!!y.length}),activeClassName:"drop-zone-active",ref:"dropzone",onDrop:this.handleDrop,onDropRejected:this.handleDropRejected,disableClick:!0,accept:m,multiple:u},y&&y.length?i.createElement("div",{className:s("image-list clearfix",{"image-list-multiple":u})},y.map(function(a,n){return i.createElement("div",{key:n,className:s("image-item pull-left",{uploaded:"uploading"!==a.state,invalid:"error"===a.state||"invalid"==a.state})},i.createElement("div",{className:"img-wrapper"},i.createElement("img",{onLoad:e.handleImageLoaded.bind(e,n),src:a.url||a.preview,alt:a.name,className:"img-rounded"})),a.info?[i.createElement("p",{key:"1"},a.info.width," x ",a.info.height),a.info.len?i.createElement("p",{key:"2"},t.formatFileSize(a.info.len)):null]:i.createElement("p",null,"..."),a.error?i.createElement("p",{className:"text-danger"},a.error):null,i.createElement("div",{className:"image-overlay"},"uploading"===a.state?i.createElement("i",{className:"fa fa-spinner fa-spin fa-2x fa-fw"}):null,d||"uploading"===a.state?null:i.createElement("button",{onClick:e.removeFile.bind(e,a,n),type:"button",className:s("close",{"crop-close":!!_})},i.createElement("span",null,"×")),_&&!d&&"uploading"!==a.state?i.createElement("button",{onClick:e.editImage.bind(e,n),type:"button",className:"edit"},i.createElement("i",{className:"fa fa-pencil"})):null,d||"uploading"===a.state?null:i.createElement("a",{target:"_blank",href:a.url||a.preview,className:"view"},i.createElement("i",{className:"fa fa-search"}))))}),u&&(!h||y.length<h)||!u&&!y.length?i.createElement("label",{className:s("image-add-btn",{disabled:d}),onClick:this.handleSelect},i.createElement("i",{className:"fa fa-plus fa-3x"})):null):i.createElement("div",{className:C?"text-danger":void 0},C||c,i.createElement("button",{type:"button",className:s("btn m-l-sm",v),disabled:d,onClick:this.handleSelect},i.createElement("i",{className:"fa fa-cloud-upload"})," 选择文件"))),this.renderCompressOptions(),f||b||!y.length?null:i.createElement("button",{className:s("btn m-r-xs",g),disabled:!w,onClick:this.toggleUpload},k?"暂停上传":"开始上传"))},t.defaultProps={limit:void 0,accept:"image/jpeg, image/jpg, image/png, image/gif",reciever:"/api/upload",btnUploadClassName:"btn-success",btnClassName:"btn-info btn-sm",hideUploadButton:!1,compressOptions:{},placeholder:"将图片拖入该区域,或者",joinValues:!0,extractValue:!1,delimiter:",",autoUpload:!0,multiple:!1},t}(i.Component);t.default=u;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([n.FormItem({type:"image",sizeMutable:!1})],t)}(u);t.ImageControlRenderer=m});
;/*!src/renderers/Form/File.tsx*/
define("162bd80",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),i=e("567b83c"),l=e("node_modules/classnames/index"),r=e("node_modules/qs/lib/index"),s=e("node_modules/lodash/find"),o=e("node_modules/lodash/isPlainObject"),u=e("node_modules/async/dist/async"),p=e("cf6ad73"),d=e("6a2dbb7"),c=function(e){function t(a){var n=e.call(this,a)||this,i=a.value,l=(a.multiple,a.joinValues),r=a.delimiter,s=[];return i&&(s=(Array.isArray(i)?i:l?(i.value||i).split(r):[i.value||i]).map(function(e){return t.valueToFile(e,a)}).filter(function(e){return e})),n.state={files:s,uploading:!1},n.sendFile=n.sendFile.bind(n),n.removeFile=n.removeFile.bind(n),n.clearError=n.clearError.bind(n),n.handleDrop=n.handleDrop.bind(n),n.startUpload=n.startUpload.bind(n),n.stopUpload=n.stopUpload.bind(n),n.toggleUpload=n.toggleUpload.bind(n),n.tick=n.tick.bind(n),n.onChange=n.onChange.bind(n),n.uploadFile=n.uploadFile.bind(n),n.uploadBigFile=n.uploadBigFile.bind(n),n}return a.__extends(t,e),t.valueToFile=function(e,t,n){var i=n&&"string"==typeof e?s(n,function(t){return t.value===e}):void 0;return e?a.__assign({},"string"==typeof e?{state:i&&i.state?i.state:"init",value:e,name:/^data:/.test(e)?i&&i.name||"base64数据":"",url:"string"==typeof t.downloadUrl&&e&&!/^data:/.test(e)?""+t.downloadUrl+e:void 0}:e):void 0},t.prototype.componentWillReceiveProps=function(e){var n=this,i=this.props;if(i.value!==e.value){var l=e.value,r=(e.multiple,e.joinValues),o=e.delimiter,u=[];l&&(u=(Array.isArray(l)?l:r&&"string"==typeof l?l.split(o):[l]).map(function(i){var l,r=t.valueToFile(i,e,n.state.files);return r&&(l=s(n.state.files,function(e){return e.value===r.value}))&&(r=a.__assign({},l,r)),r}).filter(function(e){return e})),this.setState({files:u})}},t.prototype.handleDrop=function(e){var t=this,a=e.currentTarget.files;if(a.length){var n=this.props,i=n.maxSize,l=n.multiple,r=n.maxLength,s=(l?r?r:a.length+this.state.files.length:1)-this.state.files.length,o=[];[].slice.call(a,0,s).forEach(function(e){return i&&e.size>i?void alert("您选择的文件 "+e.name+" 大小为 "+p.default.formatFileSize(e.size)+" 超出了最大为 "+p.default.formatFileSize(i)+" 的限制,请重新选择"):(e.state="pending",void o.push(e))}),o.length&&this.setState({error:null,files:this.state.files.concat(o)},function(){var e=t.props.autoUpload;e&&t.startUpload()})}},t.prototype.startUpload=function(){this.state.uploading||this.setState({uploading:!0,files:this.state.files.map(function(e){return"error"===e.state&&(e.state="pending"),e})},this.tick)},t.prototype.toggleUpload=function(e){return e.preventDefault(),this.state.uploading?this.stopUpload():this.startUpload()},t.prototype.stopUpload=function(){this.state.uploading&&this.setState({uploading:!1})},t.prototype.tick=function(){var e=this;if(!this.current&&this.state.uploading){var t=s(this.state.files,function(e){return"pending"===e.state});t?(this.current=t,t.state="uploading",this.setState({files:this.state.files.concat()},function(){return e.sendFile(t,function(t,a,n){var i=e.state.files.concat(),l=i.indexOf(a);if(~l){var r=a;t?(r.state="error",r.error=t):r=n,i.splice(l,1,r),e.current=null,e.setState({files:i},e.tick)}})})):this.setState({uploading:!1},function(){e.onChange(),e.resolve&&(e.resolve(e.state.files.some(function(e){return"error"===e.state})?"文件上传失败请重试":null),e.resolve=void 0)})}},t.prototype.sendFile=function(e,t){var n=this.props,i=n.reciever,l=n.fileField,r=n.downloadUrl,s=n.useChunk,u=n.chunkSize,p=n.startChunkApi,d=n.chunkApi,c=n.finishChunkApi,f=n.asBase64;if(f){var h=new FileReader;return h.readAsDataURL(e),h.onload=function(){t(null,e,{value:h.result,name:e.name,url:"",state:"uploaded"})},void(h.onerror=function(e){return t(e.message)})}var m="auto"===s&&u&&e.size>u||s===!0?this.uploadBigFile:this.uploadFile;m(e,i,{},{fieldName:l,chunkSize:u,startChunkApi:p,chunkApi:d,finishChunkApi:c}).then(function(n){if(n.status||!n.data)throw new Error(n.msg||"上传失败, 请重试");var i=n.data.value||n.data;t(null,e,a.__assign({},o(n.data)?n.data:null,{value:i,url:"string"==typeof r&&i?""+r+i:n.data?n.data.url:null,state:"uploaded"}))}).catch(function(a){t(a.message||"上传失败, 请重试",e)})},t.prototype.removeFile=function(e,t){var a=this.state.files.concat();a.splice(t,1),this.setState({files:a},this.onChange)},t.prototype.clearError=function(){this.setState({error:null})},t.prototype.onChange=function(){var e=this.props,t=e.multiple,a=e.onChange,n=e.joinValues,i=e.extractValue,l=e.valueField,r=e.delimiter,s=this.state.files.filter(function(e){return"uploaded"==e.state||"init"==e.state}),o=t?s:s[0];o&&(n?o=Array.isArray(o)?o.map(function(e){return e[l||"value"]}).join(r||","):o[l||"value"]:i&&(o=Array.isArray(o)?o.map(function(e){return e[l||"value"]}):o[l||"value"])),a(o)},t.prototype.uploadFile=function(e,t,n,i){void 0===i&&(i={});var l=new FormData;t=d.filter(t,this.props.data),/^\/api\/(?:page\/)?proxy/.test(t)?(l.append("file",e),l.append("fieldName",i.fieldName)):l.append(i.fieldName||"file",e);var s=t.indexOf("?");return~s&&n?(n=a.__assign({},r.parse(t.substring(s+1)),n),t=t.substring(0,s)+"?"+r.stringify(n)):n&&(t+="?"+r.stringify(n)),this._send(t,l,{withCredentials:!0})},t.prototype.uploadBigFile=function(e,t,n,i){void 0===i&&(i={});var l=i.chunkSize||5242880,r=this;return new Promise(function(s,o){function p(t){var a=f(e);if(!t.data)throw new Error("接口返回错误,请仔细检查");h={key:t.data.key,uploadId:t.data.uploadId,loaded:0,total:a.length},u.mapLimit(a,3,c(h,i),function(e,t){e?o(e):d(t,h)})}function d(t,l){r._send(i.finishChunkApi,a.__assign({},n,{uploadId:l.uploadId,key:l.key,filename:e.name,partList:t})).then(s).catch(o)}function c(a,n){return t=n.chunkApi,function(n,l){var s=new FormData,o=n.file.slice(n.start,n.stop+1);return s.append("key",a.key),s.append("uploadId",a.uploadId),s.append("partNumber",n.partNumber.toString()),s.append("partSize",n.partSize.toString()),/^\/api\/(?:page\/)?proxy/.test(t)?(s.append("file",o,e.name),s.append("fieldName",i.fieldName)):s.append(i.fieldName||"file",o,e.name),r._send(t,s,{withCredentials:!0}).then(function(e){a.loaded++,l(null,{partNumber:n.partNumber,eTag:e.data.eTag})}).catch(l)}}function f(e){for(var t=e.size,a=0,n=1,i=[];t>0;){var r=Math.min(t,l);i.push({file:e,partNumber:n,partSize:r,start:a,stop:a+r-1}),t-=r,a+=r,n+=1}return i}var h;r._send(i.startChunkApi,{filename:e.name}).then(p).catch(o)})},t.prototype._send=function(e,t,n){var i=this.props.env;if(!i||!i.fetcher)throw new Error("fetcher is required");return e=d.filter(e,this.props.data),i.fetcher(e,t,a.__assign({method:"post"},n))},t.prototype.validate=function(){var e=this;return this.state.uploading||this.state.files.some(function(e){return"pending"===e.state})?new Promise(function(t){e.resolve=t,e.startUpload()}):this.state.files.some(function(e){return"error"===e.state})?"文件上传失败请重试":void 0},t.prototype.render=function(){var e=this,t=this.props,a=t.btnLabel,i=t.accept,r=t.disabled,s=t.btnClassName,o=t.btnUploadClassName,u=t.maxLength,p=t.multiple,d=t.autoUpload,c=t.stateTextMap,f=t.hideUploadButton,h=t.className,m=this.state,g=m.files,v=m.uploading,b=m.error,y=g.some(function(e){return"pending"==e.state});return n.createElement("div",{className:l("amis-file-control",h)},b?n.createElement("div",null,n.createElement("p",{className:"help-block text-danger inline"},b),n.createElement("a",{className:"btn btn-link",onClick:this.clearError},n.createElement("i",{className:"fa fa-times"}))):null,g&&g.length?n.createElement("ul",{className:"list-group no-bg m-b-sm"},g.map(function(t,a){return n.createElement("li",{key:a,className:"list-group-item clearfix"},n.createElement("a",{className:"text-danger pull-right",onClick:function(){return e.removeFile(t,a)}},n.createElement("i",{className:"fa fa-times"})),n.createElement("span",{className:"pull-right text-muted text-xs m-r-sm"},c&&c[t.state]||""),n.createElement("i",{className:"fa fa-file fa-fw m-r-xs"}),t.url?n.createElement("a",{href:t.url,target:"_blank"},t.name||t.filename||t.value):n.createElement("span",null,t.name||t.filename))})):null,n.createElement("div",{className:"clear"},p&&(!u||g.length<u)||!p&&!g.length?n.createElement("label",{className:l("btn m-r-xs",s,{disabled:r})},n.createElement("input",{type:"file",accept:i,multiple:p,className:"invisible",onChange:this.handleDrop}),a):null,d||f||!g.length?null:n.createElement("button",{type:"button",className:l("btn m-r-xs",o),disabled:!y,onClick:this.toggleUpload},v?"暂停上传":"开始上传"),this.state.uploading?n.createElement("i",{className:"fa fa-spinner fa-spin fa-2x fa-fw"}):null))},t.defaultProps={btnClassName:"btn-sm btn-info",btnUploadClassName:"btn-sm btn-success",maxSize:0,maxLength:0,placeholder:"",btnLabel:"请选择文件",reciever:"/api/upload/file",fileField:"file",joinValues:!0,extractValue:!1,delimiter:",",downloadUrl:"",useChunk:"auto",chunkSize:5242880,startChunkApi:"/api/upload/startChunk",chunkApi:"/api/upload/chunk",finishChunkApi:"/api/upload/finishChunk",accept:"text/plain",multiple:!1,autoUpload:!0,hideUploadButton:!1,stateTextMap:{init:"",pending:"等待上传",uploading:"上传中",error:"上传出错",uploaded:"已上传"},asBase64:!1},t}(n.Component);t.default=c;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([i.FormItem({type:"file",sizeMutable:!1})],t)}(c);t.FileControlRenderer=f});
;/*!src/renderers/Form/Matrix.tsx*/
define("690a2f4",function(e,t){"use strict";function n(e,t){return Array.isArray(e)||(e=[]),Array.isArray(t)||(t=[]),e.map(function(e){return t.map(function(t){return a.__assign({},t,e,{checked:!1})})})}function r(e,t,n){return e.map(function(e,r){return e.map(function(e,o){return a.__assign({},t[r],n[o],e)})})}Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),s=e("567b83c"),l=e("1caead1"),i=e("1953fc1"),c=function(e){function t(t){var n=e.call(this,t)||this;return n.sourceInvalid=!1,n.state={columns:t.columns||[],rows:t.rows||[],loading:!1},n.toggleItem=n.toggleItem.bind(n),n.reload=n.reload.bind(n),n}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.formInited,n=e.addHook;t?this.reload():n(this.reload,"init")},t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(t.columns!==e.columns||t.rows!==e.rows)this.setState({columns:e.columns||[],rows:e.rows||[]});else if(e.source!==t.source||t.data!==e.data){var n=l.buildApi(t.source,t.data,{ignoreData:!0}),r=l.buildApi(e.source,e.data,{ignoreData:!0});n.url!==r.url&&l.isValidApi(r.url)&&(this.sourceInvalid=!0)}},t.prototype.componentDidUpdate=function(){this.sourceInvalid&&(this.sourceInvalid=!1,this.reload())},t.prototype.reload=function(){var e=this,t=this.props,n=t.source,a=t.data,o=t.env,s=t.onChange;if(n&&!this.state.loading){if(!o||!o.fetcher)throw new Error("fetcher is required");this.setState({loading:!0},function(){o.fetcher(n,a).then(function(t){if(!t.ok)throw new Error(t.msg||"数据请求错误");e.setState({loading:!1,rows:t.data.rows||[],columns:t.data.columns||[]},function(){var n=t.data.value;n&&(n=r(n,e.state.columns,e.state.rows),s(n))})}).catch(function(t){return e.setState({error:t,loading:!1})})})}},t.prototype.toggleItem=function(e,t,r){var o=this.state,s=o.columns,l=o.rows,i=this.props,c=i.multiple,u=i.singleSelectMode,d=this.props.value||n(s,l);if(c)d[t][r]=a.__assign({},d[t][r],{checked:e});else if("row"===u)for(var m=0,p=s.length;p>m;m++)d[m][r]=a.__assign({},d[m][r],{checked:t===m?e:!e});else if("column"===u)for(var h=0,p=l.length;p>h;h++)d[t][h]=a.__assign({},d[t][h],{checked:r===h?e:!e});else for(var h=0,p=l.length;p>h;h++)for(var m=0,f=s.length;f>m;m++)d[m][h]=a.__assign({},d[m][h],{checked:t===m&&r===h?e:!e});this.props.onChange(d.concat())},t.prototype.renderInput=function(){var e=this,t=this.state,r=t.columns,a=t.rows,s=this.props,l=s.rowLabel,c=(s.className,s.classnames),u=s.multiple,d=this.props.value||n(r,a);return o.createElement("div",{className:c("Table m-b-none")},o.createElement("div",{className:c("Table-content")},o.createElement("table",{className:c("Table-table")},o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",null,l),r.map(function(e,t){return o.createElement("th",{key:t,className:"text-center"},e.label)}))),o.createElement("tbody",null,a.map(function(t,n){return o.createElement("tr",{key:n},o.createElement("td",null,t.label,t.description||t.desc?o.createElement("span",{className:"m-l-xs text-muted text-xs"},t.description||t.desc):null),r.map(function(t,r){return o.createElement("td",{key:r,className:"text-center"},o.createElement(i.Checkbox,{type:u?"checkbox":"radio",checked:!!(d[r]&&d[r][n]&&d[r][n].checked),onChange:function(t){return e.toggleItem(t,r,n)}}))}))})))))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.render,r=e.classnames,a=this.state,s=a.error,l=a.loading;return o.createElement("div",{key:"input",className:r("MatrixControl",t||"")},s?o.createElement("div",{className:r("MatrixControl-error Alert Alert--danger")},String(s)):this.renderInput(),l?n("loading",{type:"spinner",overlay:!0,size:"lg"}):null)},t.defaultProps={columns:[],rows:[],multiple:!0,singleSelectMode:"column"},t}(o.Component);t.default=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([s.FormItem({type:"matrix",strictMode:!1,sizeMutable:!1})],t)}(c);t.MatrixRenderer=u});
;/*!src/renderers/Form/Range.tsx*/
define("db77605",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),l=e("567b83c"),s=e("736bbb6"),i=e("b7bbd16"),o=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:parseFloat(t.value)||0},n.handleChange=n.handleChange.bind(n),n.handleEnd=n.handleEnd.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.rangeValue=n.rangeValue.bind(n),n.midLabelRef=n.midLabelRef.bind(n),n}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props.value;t!==e.value&&this.setState({value:parseFloat(e.value)||0})},t.prototype.componentDidMount=function(){this.updateStyle()},t.prototype.componentDidUpdate=function(e){e.showInput!==this.props.showInput&&this.updateStyle()},t.prototype.updateStyle=function(){var e=this.props,t=e.showInput,n=e.classPrefix,a=this.midLabel.offsetWidth,l="calc(50% - "+a/2+"px)";document.querySelector("."+n+"InputRange-label--value").style.left=l,t&&(l="calc(50% - "+(a/2+60)+"px)"),this.midLabel.style.left=l},t.prototype.midLabelRef=function(e){this.midLabel=e},t.prototype.handleChange=function(e){this.setState({value:this.getValue(e)})},t.prototype.handleEnd=function(e){var t=this.props.onChange;this.setState({value:e},function(){return t(e)})},t.prototype.getStepPrecision=function(){var e=this.props.step;return"number"!=typeof e||e>=1||0>e?0:e.toString().split(".")[1].length},t.prototype.getValue=function(e){var t=this.props,n=t.max,a=t.min,l=t.step;return""===e||"-"===e||new RegExp("^[-]?\\d+[.]{1}[0]{0,"+this.getStepPrecision()+"}$").test(e)?e:(e=Math.round(parseFloat(e)/l)*l,e=1>l?parseFloat(e.toFixed(this.getStepPrecision())):~~e,a>e&&a||e>n&&n||e)},t.prototype.handleInputChange=function(e){this.setState({value:this.getValue(e.target.value)})},t.prototype.rangeValue=function(){var e=this.state.value;return parseFloat(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.max,l=t.min,o=t.step,r=t.unit,u=t.clearable,p=t.name,d=t.disabled,h=t.className,c=(t.onChange,t.showInput),m=t.classnames,g=t.classPrefix;return a.createElement("div",{className:m("RangeControl",{"RangeControl--withInput":c,"RangeControl--clearable":u},h)},a.createElement(s.default,{classPrefix:g,value:this.rangeValue(),disabled:d,onChange:this.handleChange,onChangeComplete:this.handleEnd,max:n,min:l,step:o,formatLabel:function(e){return e+r}}),a.createElement("span",{className:m("InputRange-label InputRange-label--mid"),ref:this.midLabelRef},a.createElement("span",{className:m("InputRange-labelContainer")},((n+l)/2).toFixed(this.getStepPrecision())+r)),c?a.createElement("div",{className:m("InputRange-input")},a.createElement("input",{className:this.state.value!==l?"is-active":"",type:"text",name:p,value:this.state.value,disabled:d,onChange:this.handleInputChange})):null,u&&this.rangeValue()!==l&&c?a.createElement("a",{onClick:function(){return e.handleChange(l)},className:m("InputRange-clear",{"is-active":this.state.value!==l})},i.closeIcon):null)},t.defaultProps={max:100,min:0,step:1,unit:"",clearable:!0,disabled:!1,showInput:!1},t}(a.PureComponent);t.default=o;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.FormItem({test:/(^|\/)form(?:\/.+)?\/control\/(?:\d+\/)?(slider|range)$/,name:"range-control"})],t)}(o);t.RangeControlRenderer=r});
;/*!src/renderers/Form/Combo.tsx*/
define("3919ee5",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),a=e("node_modules/react-dom/index"),r=e("567b83c"),i=e("3fbfd93"),s=e("9a80175"),l=e("node_modules/sortablejs/Sortable"),d=e("6a2dbb7"),m=function(e){function t(t){var o=e.call(this,t)||this;return o.subForms=[],o.keys=[],o.handleChange=o.handleChange.bind(o),o.handleSingleFormChange=o.handleSingleFormChange.bind(o),o.handleSingleFormInit=o.handleSingleFormInit.bind(o),o.handleAction=o.handleAction.bind(o),o.addItem=o.addItem.bind(o),o.removeItem=o.removeItem.bind(o),o.dragTipRef=o.dragTipRef.bind(o),o.defaultValue=n.__assign({},t.scaffold),o}return n.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.store,n=(e.value,e.minLength),o=e.maxLength;t.config({minLength:n,maxLength:o,length:this.getValueAsArray().length})},t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(s.anyChanged(["minLength","maxLength","value"],t,e)){var n=e.store,o=e.minLength,a=e.maxLength;n.config({minLength:o,maxLength:a,length:this.getValueAsArray(e).length})}},t.prototype.getValueAsArray=function(e){void 0===e&&(e=this.props);var t=e.flat,n=e.joinValues,o=e.delimiter,a=e.value;return a=n&&t&&"string"==typeof a?a.split(o||","):Array.isArray(a)?a.concat():[]},t.prototype.addItem=function(){var e=this.props,t=e.flat,o=e.joinValues,a=e.delimiter,r=e.scaffold,i=e.disabled;if(!i){var l=this.getValueAsArray();l.push(t?r||"":n.__assign({},r)),this.keys.push(s.guid()),t&&o&&(l=l.join(a||",")),this.props.onChange(l)}},t.prototype.removeItem=function(e){return n.__awaiter(this,void 0,void 0,function(){var t,o,a,r,i,l,m,c,p,u,h,g,f;return n.__generator(this,function(n){switch(n.label){case 0:return t=this.props,o=t.flat,a=t.joinValues,r=t.delimiter,i=t.disabled,l=t.deleteApi,m=t.deleteConfirmText,c=t.data,p=t.env,i?[2]:(u=this.getValueAsArray(),l?(h=s.createObject(c,u[e]),[4,p.confirm(m?d.filter(m,h):"确认要删除?")]):[3,3]);case 1:return g=n.sent(),g?[4,p.fetcher(l,h)]:[2];case 2:if(f=n.sent(),!f.ok)return p.notify("error","删除失败"),[2];n.label=3;case 3:return u.splice(e,1),this.keys.splice(e,1),o&&a&&(u=u.join(r||",")),this.props.onChange(u),[2]}})})},t.prototype.handleChange=function(e,t){var o=this.props,a=o.formItem,r=o.flat,i=o.store,s=o.joinValues,l=o.delimiter,d=o.disabled;if(!d){var m=this.getValueAsArray();m[e]=r?t.flat:n.__assign({},t),r&&s&&(m=m.join(l||",")),this.props.onChange(m),a&&a.validated&&this.subForms.forEach(function(e){return e.validate()}),i.forms.forEach(function(e){return e.items.forEach(function(e){return e.unique&&e.syncOptions()})})}},t.prototype.handleSingleFormChange=function(e){this.props.onChange(n.__assign({},e))},t.prototype.handleSingleFormInit=function(e){this.props.syncDefaultValue!==!1&&this.props.setPrinstineValue&&this.props.setPrinstineValue(n.__assign({},e))},t.prototype.handleAction=function(e){var t=this.props.onAction;return"delete"===e.actionType?void(void 0!==e.index&&this.removeItem(e.index)):void(t&&t.apply(null,arguments))},t.prototype.validate=function(){var e=this.props,t=e.value,n=e.minLength,o=e.maxLength;return n&&(!Array.isArray(t)||t.length<n)?"组合表单成员数量不够,低于最小的设定"+n+"个,请添加更多的成员。":o&&Array.isArray(t)&&t.length>o?"组合表单成员数量超出,超出最大的设定"+o+"个,请删除多余的成员。":this.subForms.length?Promise.all(this.subForms.map(function(e){return e.validate()})).then(function(e){return~e.indexOf(!1)?"子表单验证失败,请仔细检查":void 0}):void 0},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.initDragging=function(){var e=this,t=this.props.classPrefix,n=a.findDOMNode(this);this.sortable=new l(n.querySelector("."+t+"Combo-items"),{group:"combo",handle:"."+t+"Combo-itemDrager",ghostClass:t+"Combo-item--dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var n=t.to;t.oldIndex<n.childNodes.length-1?n.insertBefore(t.item,n.childNodes[t.oldIndex]):n.appendChild(t.item);var o=e.props.value;if(Array.isArray(o)){var a=o.concat();a.splice(t.newIndex,0,a.splice(t.oldIndex,1)[0]),e.keys.splice(t.newIndex,0,e.keys.splice(t.oldIndex,1)[0]),e.props.onChange(a)}}}})},t.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},t.prototype.formRef=function(e,t){if(void 0===t&&(t=0),e){for(;e&&e.getWrappedInstance;)e=e.getWrappedInstance();this.subForms[t]=e}else this.subForms.splice(t,1)},t.prototype.formatValue=function(e){var t=this.props.flat;return t?{flat:e}:e},t.prototype.renderMultipe=function(){var e=this,t=this.props,a=(t.classPrefix,t.classnames),r=t.formClassName,i=t.render,l=t.controls,m=t.multiLine,c=t.addButtonClassName,p=t.disabled,u=t.store,h=t.flat,g=t.subFormMode,f=t.draggable,b=t.draggableTip,v=t.addButtonText,y=t.addable,C=t.removable,A=t.itemRemovableOn,I=t.delimiter,x=t.canAccessSuperData,N=t.addIcon,_=t.dragIcon,E=t.deleteIcon,L=t.noBorder,S=this.props.value;h&&"string"==typeof S&&(S=S.split(I||","));var F=u.removable!==!1&&!p&&C!==!1;return o.createElement("div",{className:a("Combo Combo--multi",m?"Combo--ver":"Combo--hor",L?"Combo--noBorder":"")},o.createElement("div",{className:a("Combo-items")},Array.isArray(S)?S.map(function(t,c,b){var v=[];!p&&f&&b.length>1&&v.push(o.createElement("a",{key:"drag",className:a("Combo-toolbarBtn Combo-itemDrager"),"data-tooltip":"拖拽排序","data-position":"bottom"},o.createElement("i",{className:_}))),!F||A&&d.evalExpression(A,t)===!1||v.push(o.createElement("a",{onClick:e.removeItem.bind(e,c),key:"remove",className:a("Combo-toolbarBtn "+(u.removable?"":"is-disabled")),"data-tooltip":"删除","data-position":"bottom"},o.createElement("i",{className:E})));var y=h?[n.__assign({},l[0],{name:"flat"})]:l;return o.createElement("div",{className:a("Combo-item"),key:e.keys[c]||(e.keys[c]=s.guid())},o.createElement("div",{className:a("Combo-itemInner")},i("multiple",{type:"form",controls:y,wrapperComponent:"div",wrapWithPanel:!1,mode:m?g:"row",className:a("Combo-form",r)},{index:c,disabled:p,data:e.formatValue(t)||e.defaultValue,onChange:e.handleChange.bind(e,c),onAction:e.handleAction,ref:function(t){return e.formRef(t,c)},canAccessSuperData:x})),v.length?o.createElement("div",{className:a("Combo-itemToolbar")},v):null)}):null),p?null:o.createElement("div",{className:a("Combo-toolbar")},u.addable&&y!==!1?o.createElement("button",{type:"button",onClick:this.addItem,className:a("Button Combo-addBtn",c),"data-tooltip":"新增一条数据"},N?o.createElement("i",{className:a("Button-icon",N)}):null,o.createElement("span",null,v||"新增")):null,f?o.createElement("span",{className:a("Combo-dragableTip"),ref:this.dragTipRef},Array.isArray(S)&&S.length>1?b:""):null))},t.prototype.renderSingle=function(){var e=this,t=this.props,n=t.controls,a=t.classnames,r=t.render,i=t.value,l=t.multiLine,d=t.formClassName,m=t.canAccessSuperData,c=t.noBorder,p=t.disabled;return o.createElement("div",{className:a("Combo Combo--single",l?"Combo--ver":"Combo--hor",c?"Combo--noBorder":"")},o.createElement("div",{className:a("Combo-item")},o.createElement("div",{className:a("Combo-itemInner")},r("single",{type:"form",controls:n,wrapperComponent:"div",wrapWithPanel:!1,mode:l?"normal":"row",className:a("Combo-form",d)},{disabled:p,data:s.isObject(i)?i:this.defaultValue,onChange:this.handleSingleFormChange,ref:function(t){return e.formRef(t)},onInit:this.handleSingleFormInit,canAccessSuperData:m}))))},t.prototype.render=function(){var e=this.props,t=e.multiple,n=e.className,a=(e.classPrefix,e.classnames);return o.createElement("div",{className:a("ComboControl",n)},t?this.renderMultipe():this.renderSingle())},t.defaultProps={minLength:0,maxLength:0,multiple:!1,multiLine:!1,addButtonClassName:"",formClassName:"",subFormMode:"normal",draggableTip:"可拖拽排序",addButtonText:"新增",canAccessSuperData:!1,addIcon:"fa fa-plus",dragIcon:"glyphicon glyphicon-sort",deleteIcon:"glyphicon glyphicon-remove"},t.propsList=["minLength","maxLength","multiple","multiLine","addButtonClassName","subFormMode","draggableTip","addButtonText","draggable","scaffold","canAccessSuperData","addIcon","dragIcon","deleteIcon","noBorder"],t}(o.Component);t.default=m;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.FormItem({type:"combo",storeType:i.ComboStore.name})],t)}(m);t.ComboControlRenderer=c});
;/*!src/renderers/Form/Array.tsx*/
define("9b389bb",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),r=e("567b83c"),i=e("3fbfd93"),s=e("3919ee5"),a=function(e){function t(t){var n=e.call(this,t)||this;return n.comboRef=n.comboRef.bind(n),n}return n.__extends(t,e),t.prototype.comboRef=function(e){this.comboInstance=e},t.prototype.validate=function(e){return this.comboInstance?(t=this.comboInstance).validate.apply(t,e):null;var t},t.prototype.render=function(){var e=this.props,t=e.items,r=n.__rest(e,["items"]);return o.createElement(s.default,n.__assign({},r,{controls:[t],flat:!0,multiple:!0,multiLine:!1,ref:this.comboRef}))},t}(o.Component);t.default=a;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([r.FormItem({type:"array",storeType:i.ComboStore.name})],t)}(a);t.ArrayControlRenderer=c});
;/*!src/renderers/Container.tsx*/
define("2390f9f",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),s=e("0f9ebdf"),o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.renderBody=function(){var e=this.props,n=e.children,t=e.body,s=e.render,o=e.classnames;return r.createElement("div",{className:o("Container-body")},n?"function"==typeof n?n(this.props):n:t?s("body",t):null)},n.prototype.render=function(){var e=this.props,n=e.className,t=(e.size,e.classnames);return r.createElement("div",{className:t("Container",n)},this.renderBody())},n.propsList=["body","className"],n.defaultProps={className:""},n}(r.Component);n.default=o;var a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([s.Renderer({test:/(^|\/)container$/,name:"container"})],n)}(o);n.ContainerRenderer=a});
;/*!src/renderers/Form/Container.tsx*/
define("647fc2f",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),n=e("node_modules/classnames/index"),d=e("2390f9f"),s=e("567b83c"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.renderBody=function(){var t=this.props,o=t.renderFormItems,d=t.body,s=t.bodyClassName,a=t.controls,l=t.tabs,i=t.fieldSet,c=t.mode,u=t.formMode,f=t.horizontal,m=t.$path,p=t.classPrefix;if(!d&&(a||l||i)){var b={};return c&&(b.mode=c),f&&(b.horizontal=f),r.createElement("div",{className:n(p+"Form--"+(b.mode||u||"normal"),s)},o({controls:a,tabs:l,fieldSet:i},m.replace(/^.*form\//,""),b))}return e.prototype.renderBody.call(this)},t=o.__decorate([s.default({type:"container",strictMode:!1,sizeMutable:!1})],t)}(d.default);t.ContainerControlRenderer=a});
;/*!src/renderers/Form/SubForm.tsx*/
define("8a88f1c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,n=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),s=e("567b83c"),l=e("node_modules/classnames/index"),i=e("node_modules/lodash/omit"),r=e("node_modules/lodash/pick"),d=e("9a80175"),u=function(e){return e?(a=a||document.createElement("div"),a.innerHTML=e,a.innerText):e},m=function(e){function t(t){var a=e.call(this,t)||this;return a.state={openedIndex:-1,optionIndex:-1},a.addItem=a.addItem.bind(a),a.removeItem=a.removeItem.bind(a),a.open=a.open.bind(a),a.close=a.close.bind(a),a.handleDialogConfirm=a.handleDialogConfirm.bind(a),a}return n.__extends(t,e),t.prototype.addItem=function(){var e=this.props.value;e=Array.isArray(e)?e.concat():[],e.push({}),this.props.onChange(e)},t.prototype.removeItem=function(e,t){t.stopPropagation(),t.preventDefault();var a=this.props.value;Array.isArray(a)&&(a=a.concat(),a.splice(e,1),this.props.onChange(a))},t.prototype.open=function(e){void 0===e&&(e=0),this.setState({openedIndex:e})},t.prototype.close=function(){this.setState({openedIndex:-1})},t.prototype.handleDialogConfirm=function(e){var t=this.props,a=t.multiple,o=t.onChange,s=t.value;if(a){var l=Array.isArray(s)?s.concat():[];l[this.state.openedIndex]=n.__assign({},l[this.state.openedIndex],e[0]),o(l)}else o(n.__assign({},s,e[0]));this.close()},t.prototype.buildDialogSchema=function(){var e=this.props.form,t=["title","actions","name","size","closeOnEsc","showCloseButton","bodyClassName","type"];return n.__assign({},r(e,t),{type:"dialog",body:n.__assign({type:"form"},i(e,t))})},t.prototype.renderMultipe=function(){var e=this,t=this.props,a=t.classPrefix,n=t.addButtonClassName,s=t.editButtonClassName,i=t.disabled,r=t.labelField,d=t.value,m=t.btnLabel;return[o.createElement("div",{className:a+"SubForm-values",key:"values"},Array.isArray(d)?d.map(function(t,n){return o.createElement("div",{className:l(a+"SubForm-value",{"is-disabled":i},s),key:n},o.createElement("span",{"data-tooltip":"删除","data-position":"bottom",className:a+"Select-valueIcon",onClick:e.removeItem.bind(e,n)},"×"),o.createElement("span",{onClick:e.open.bind(e,n),className:a+"SubForm-valueLabel","data-tooltip":"编辑详情","data-position":"bottom"},t&&r&&t[r]&&u(t[r])||m))}):null),o.createElement("button",{key:"add",type:"button",onClick:this.addItem,className:l(a+"Button "+a+"SubForm-addBtn",n),disabled:i,"data-tooltip":"新增一条数据"},o.createElement("i",{className:"fa fa-plus m-r-xs"}),o.createElement("span",null,"新增"))]},t.prototype.renderSingle=function(){var e=this.props,t=e.classPrefix,a=e.btnClassName,n=e.disabled,s=e.value,i=e.labelField,r=e.btnLabel;return o.createElement("div",{className:t+"SubForm-values",key:"values"},o.createElement("div",{className:l(t+"SubForm-value",{"is-disabled":n},a),onClick:this.open.bind(this,0),"data-tooltip":"编辑详情","data-position":"bottom"},o.createElement("span",{className:t+"SubForm-valueLabel"},s&&i&&s[i]&&u(s[i])||r)))},t.prototype.render=function(){var e=this.props,t=e.multiple,a=e.classPrefix,n=e.className,s=e.render,i=e.value,r=e.data,u=this.state.openedIndex;return o.createElement("div",{className:l(a+"SubFormControl",n)},t?this.renderMultipe():this.renderSingle(),-1!==u?s("dalog/"+u,this.buildDialogSchema(),{onClose:this.close,onConfirm:this.handleDialogConfirm,data:d.createObject(r,(t?Array.isArray(i)&&i[u]:i)||{})}):null)},t.defaultProps={minLength:0,maxLength:0,multiple:!1,btnClassName:"",addButtonClassName:"",editButtonClassName:"",labelField:"label",btnLabel:"设置"},t}(o.PureComponent);t.default=m;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([s.FormItem({type:"form",sizeMutable:!1})],t)}(m);t.SubFormControlRenderer=p});
;/*!src/renderers/Form/RichText.tsx*/
define("a57a440",function(e,t){"use strict";function o(){return new Promise(function(t){return e(["1e5b785"],function(e){return t(e.default)})})}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=e("node_modules/react/index"),a=e("567b83c"),r=e("node_modules/classnames/index"),l=e("4783ce8"),s=e("9a80175"),u=function(e){function t(t){var o=e.call(this,t)||this;return o.state={focused:!1},o.config=null,o.handleFocus=o.handleFocus.bind(o),o.handleBlur=o.handleBlur.bind(o),o.config=n.__assign({imageAllowedTypes:["jpeg","jpg","png","gif"],imageDefaultAlign:"left",imageEditButtons:t.imageEditable?["imageReplace","imageAlign","imageRemove","|","imageLink","linkOpen","linkEdit","linkRemove","-","imageDisplay","imageStyle","imageAlt","imageSize"]:[],key:t.env.richTextToken},t.options,{editorClass:t.editorClass,placeholderText:t.placeholder,imageUploadURL:t.reciever,imageUploadParams:{from:"rich-text"},videoUploadURL:t.videoReciever,videoUploadParams:{from:"rich-text"},events:n.__assign({},t.options&&t.options.events,{"froalaEditor.focus":o.handleFocus,"froalaEditor.blur":o.handleBlur})}),t.buttons&&(o.config.toolbarButtonsSM=t.buttons,o.config.toolbarButtonsMD=t.buttons,o.config.toolbarButtonsXS=t.buttons,o.config.toolbarButtons=t.buttons),o}return n.__extends(t,e),t.prototype.handleFocus=function(){this.setState({focused:!0})},t.prototype.handleBlur=function(){this.setState({focused:!1})},t.prototype.render=function(){{var e=this.props,t=e.className,n=e.classPrefix,a=e.value,u=e.onChange,d=e.disabled;e.size}return i.createElement("div",{className:r(n+"RichTextControl",t,{"is-focused":this.state.focused,"is-disabled":d})},i.createElement(l.default,{getComponent:o,model:a,onModelChange:d?s.noop:u,onFocus:this.handleFocus,onBlur:this.handleBlur,config:this.config,disabled:d}))},t.defaultProps={reciever:"/api/upload/image",videoReciever:"/api/upload/video",placeholder:"请输入",options:{language:"zh_cn",toolbarButtonsSM:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertEmotion","insertTable","|","undo","redo","html"],toolbarButtonsMD:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertEmotion","insertTable","|","undo","redo","html"],toolbarButtons:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertEmotion","insertTable","|","undo","redo","html"]}},t}(i.Component);t.default=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([a.FormItem({type:"rich-text",sizeMutable:!1})],t)}(u);t.RichTextControlRenderer=d});
;/*!src/renderers/Form/Editor.tsx*/
define("27eb5b8",function(e,t){"use strict";function n(){return new Promise(function(t){return e(["997c87d"],function(e){return t(e.default)})})}Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),s=e("node_modules/react/index"),i=e("567b83c"),a=e("4783ce8"),r=e("node_modules/lodash/debounce"),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1},n.toDispose=[],n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleEditorMounted=n.handleEditorMounted.bind(n),n.updateContainerSize=r(n.updateContainerSize.bind(n),250,{trailing:!0,leading:!1}),n.toDispose.push(n.updateContainerSize.cancel),n}return o.__extends(t,e),t.prototype.componentWillUnmount=function(){this.toDispose.forEach(function(e){return e()})},t.prototype.handleFocus=function(){this.setState({focused:!0})},t.prototype.handleBlur=function(){this.setState({focused:!1})},t.prototype.handleEditorMounted=function(e,t){this.editor=e,this.toDispose.push(e.onDidFocusEditorWidget(this.updateContainerSize).dispose),this.toDispose.push(e.onDidChangeModelContent(this.updateContainerSize).dispose),this.props.editorDidMount&&this.props.editorDidMount(e,t)},t.prototype.updateContainerSize=function(){var e=this.editor,t=e._domElement.parentNode,n=e.getConfiguration(),o=n.lineHeight,s=e.getModel().getLineCount(),i=o*s,a=n.layoutInfo.horizontalScrollbarHeight,r=i+a;t.style.cssText="height:"+r+"px"},t.prototype.render=function(){var e=this.props,t=e.className,i=e.classPrefix,r=e.classnames,u=e.value,l=e.onChange,d=e.disabled,p=e.options,c=e.language,h=e.theme,f=e.size,g=u;return g&&"string"!=typeof g&&(g=JSON.stringify(g,null,4)),s.createElement("div",{className:r("EditorControl",(m={"is-focused":this.state.focused},m["EditorControl--"+f]=f,m),t)},s.createElement(a.default,{classPrefix:i,getComponent:n,value:g,onChange:l,disabled:d,onFocus:this.handleFocus,onBlur:this.handleBlur,language:c,theme:h,editorDidMount:this.handleEditorMounted,options:o.__assign({},p,{readOnly:d})}));var m},t.defaultProps={language:"javascript",theme:"vs",options:{automaticLayout:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}}},t}(s.Component);t.default=u,t.availableLanguages=["bat","c","coffeescript","cpp","csharp","css","dockerfile","fsharp","go","handlebars","html","ini","java","javascript","json","less","lua","markdown","msdax","objective-c","php","plaintext","postiats","powershell","pug","python","r","razor","ruby","sb","scss","sol","sql","swift","typescript","vb","xml","yaml"],t.EditorControls=t.availableLanguages.map(function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(n,t),n.lang=e,n.displayName=""+e[0].toUpperCase()+e.substring(1)+"EditorControlRenderer",n.defaultProps=o.__assign({},u.defaultProps,{language:e}),n=o.__decorate([i.FormItem({type:e+"-editor",sizeMutable:!1})],n)}(u);return t});var l=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.defaultProps=o.__assign({},u.defaultProps,{language:"javascript"}),t=o.__decorate([i.FormItem({type:"js-editor",sizeMutable:!1})],t)}(u),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.defaultProps=o.__assign({},u.defaultProps,{language:"typescript"}),t=o.__decorate([i.FormItem({type:"ts-editor",sizeMutable:!1})],t)}(u),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.defaultProps=o.__assign({},u.defaultProps,{language:"javascript"}),t=o.__decorate([i.FormItem({type:"editor",sizeMutable:!1})],t)}(u));t.EditorControlRenderer=l});
;/*!src/renderers/Form/DiffEditor.tsx*/
define("138c832",function(e,t){"use strict";function i(){return new Promise(function(t){return e(["997c87d"],function(e){return t(e.default)})})}function o(e){return e&&"string"!=typeof e&&(e=JSON.stringify(e,null,4)),e}Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),d=e("node_modules/react/index"),r=e("0f9ebdf"),a=e("567b83c"),s=e("6a2dbb7"),u=e("4783ce8"),l=e("node_modules/lodash/debounce"),f=function(e){function t(t){var i=e.call(this,t)||this;return i.state={focused:!1},i.toDispose=[],i.handleFocus=i.handleFocus.bind(i),i.handleBlur=i.handleBlur.bind(i),i.editorFactory=i.editorFactory.bind(i),i.handleEditorMounted=i.handleEditorMounted.bind(i),i.handleModifiedEditorChange=i.handleModifiedEditorChange.bind(i),i.updateContainerSize=l(i.updateContainerSize.bind(i),250,{trailing:!0,leading:!1}),i.toDispose.push(i.updateContainerSize.cancel),i}return n.__extends(t,e),t.prototype.componentWillUnmount=function(){this.toDispose.forEach(function(e){return e()})},t.prototype.handleFocus=function(){this.setState({focused:!0})},t.prototype.handleBlur=function(){this.setState({focused:!1})},t.prototype.componentDidUpdate=function(e){var t=this.props,i=t.data,n=t.value,d=t.diffValue;this.originalEditor&&d&&(d!==e.diffValue||i!==e.data)&&this.originalEditor.getModel().setValue(/^\$(?:([a-z0-9_.]+)|{.+})$/.test(d)?s.filter(o(d||""),i):o(d)),this.modifiedEditor&&n&&n!==e.value&&!this.state.focused&&this.modifiedEditor.getModel().setValue(o(n))},t.prototype.editorFactory=function(e,t,i){return t.editor.createDiffEditor(e,i)},t.prototype.handleEditorMounted=function(e,t){var i=this.props,n=i.value,d=i.data,r=i.language,a=i.diffValue;this.monaco=t,this.editor=e,this.modifiedEditor=e.getModifiedEditor(),this.originalEditor=e.getOriginalEditor(),this.toDispose.push(this.modifiedEditor.onDidFocusEditorWidget(this.handleFocus).dispose),this.toDispose.push(this.modifiedEditor.onDidBlurEditorWidget(this.handleBlur).dispose),this.toDispose.push(this.modifiedEditor.onDidChangeModelContent(this.handleModifiedEditorChange).dispose),this.editor.setModel({original:this.monaco.editor.createModel(/^\$(?:([a-z0-9_.]+)|{.+})$/.test(a)?s.filter(o(a||""),d):o(a),r),modified:this.monaco.editor.createModel(o(n),r)}),this.updateContainerSize()},t.prototype.handleModifiedEditorChange=function(){var e=this.props.onChange;e&&e(this.modifiedEditor.getModel().getValue()),this.updateContainerSize()},t.prototype.updateContainerSize=function(){var e=this.modifiedEditor,t=e._domElement.parentNode.parentNode.parentNode,i=e.getConfiguration(),o=i.lineHeight,n=e.getModel().getLineCount(),d=o*n,r=i.layoutInfo.horizontalScrollbarHeight,a=d+r;t.style.cssText="height:"+a+"px"},t.prototype.render=function(){var e=this.props,t=e.className,o=e.value,r=e.onChange,a=e.disabled,s=e.size,l=e.options,f=e.language,h=e.theme,p=e.classnames;return d.createElement("div",{className:p("EditorControl",s?"EditorControl--"+s:"",t,{"is-focused":this.state.focused})},d.createElement(u.default,{getComponent:i,value:o,onChange:r,disabled:a,language:f,theme:h,editorDidMount:this.handleEditorMounted,editorFactory:this.editorFactory,options:n.__assign({},l,{readOnly:a})}))},t.defaultProps={language:"javascript",theme:"vs",options:{automaticLayout:!1,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}},diffValue:""},t}(d.Component);t.DiffEditor=f;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign({},f.defaultProps),t=n.__decorate([a.FormItem({type:"diff-editor",sizeMutable:!1})],t)}(f);t.DiffEditorControlRenderer=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.defaultProps=n.__assign({},f.defaultProps,{disabled:!0}),t=n.__decorate([r.Renderer({test:/(^|\/)diff-editor$/,sizeMutable:!1,name:"diff-editor"})],t)}(f);t.DiffEditorRenderer=p});
;/*!src/renderers/Grid.tsx*/
define("5e68c3c",function(e,r){"use strict";function n(e){return"string"==typeof e&&e?e.replace(/\bcol-(xs|sm|md|lg)-(\d+)\b/g,function(e,r,n){return"Grid-col--"+r+n}):e}function t(e){var n=[],t=r.ColProps;return t.forEach(function(r){return e&&e[r]&&n.push("Grid-col--"+r+e[r])}),n.length||n.push("Grid-col--sm"),n.join(" ")}Object.defineProperty(r,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),i=e("0f9ebdf"),u=e("node_modules/lodash/pick");r.ColProps=["lg","md","sm","xs"];var l=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(i,e),i.prototype.renderChild=function(e,r,n,t){var s=this.props,o=s.render,i=s.itemRender;return i?i(r,n,t,this.props):o(e,r)},i.prototype.renderColumn=function(e,i,l){var d=u(e,r.ColProps);d=s.__assign({},d);var a=this.props.classnames;return o.createElement("div",{key:i,className:a(t(d),n(e.columnClassName))},Array.isArray(e)?this.renderColumns(e):this.renderChild("column/"+i,e,i,l))},i.prototype.renderColumns=function(e){var r=this,n=this.props,t=n.className,s=n.classnames;return o.createElement("div",{className:s("Grid",t)},e.map(function(n,t){return r.renderColumn(n,t,e.length)}))},i.prototype.render=function(){return this.renderColumns(this.props.columns)},i.propsList=["columns"],i.defaultProps={},i}(o.Component);r.default=l;var d=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(r,e),r=s.__decorate([i.Renderer({test:/(^|\/)grid$/,name:"grid"})],r)}(l);r.GridRenderer=d});
;/*!src/renderers/Form/Grid.tsx*/
define("d5c9577",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),o=e("5e68c3c"),s=e("567b83c"),n=e("node_modules/react/index"),d={left:"col-sm-4",right:"col-sm-8",offset:"col-sm-offset-4"},l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.renderChild=function(e,t,r,o){var s=this.props,l=s.render,i=s.renderFormItems,m=s.classnames,a=s.$path,c=s.itemRender;return t&&!t.type&&(t.controls||t.tabs||t.feildSet)?n.createElement("div",{className:m("Grid-form Form--"+(t.mode||"normal"))},i(t,a.replace(/^.*form\//,""),{mode:t.mode||"normal",horizontal:t.horizontal||d})):c?c(t,r,o,this.props):l(e,t)},t.propsList=["columns"],t.defaultProps={},t=r.__decorate([s.FormItem({type:"grid",strictMode:!1,sizeMutable:!1})],t)}(o.default);t.GridRenderer=l});
;/*!src/renderers/Form/HBox.tsx*/
define("4be33a0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),n=e("567b83c"),s=e("node_modules/classnames/index"),i=e("9a80175"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.renderColumn=function(e,t,n){var l=this.props,a=l.itemRender,d=l.data,m=l.classPrefix;if(!i.isVisible(e,d))return null;var u=r.__assign({width:e.width,height:e.height},e.style);return o.createElement("div",{key:t,style:u,className:s(m+"Hbox-col",m+"Form--"+(e.mode||"normal"),e.columnClassName)},a?a(e,t,n,this.props):this.renderChild("column/"+t,e))},t.prototype.renderChild=function(e,t){var r=this.props,o=r.render,n=r.renderFormItems,s=(r.formMode,r.$path);return t&&!t.type&&(t.controls||t.tabs||t.feildSet)?n(t,s.replace(/^.*form\//,""),{mode:t.mode||"normal",horizontal:t.horizontal||{left:4,right:8,offset:4}}):o(e,t.body||t)},t.prototype.render=function(){var e=this,t=this.props,r=t.className,n=t.columns,i=t.gap,l=t.classPrefix;return o.createElement("div",{className:s(l+"FormHbox",i?l+"Hbox--"+i:"",r)},o.createElement("div",{className:l+"Hbox"},n.map(function(t,r){return e.renderColumn(t,r,n.length)})))},t.propsList=["columns"],t.defaultProps={},t=r.__decorate([n.FormItem({type:"hbox",strictMode:!1,sizeMutable:!1})],t)}(o.Component);t.HBoxRenderer=l});
;/*!src/renderers/Panel.tsx*/
define("244f74d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),s=e("node_modules/react/index"),n=e("0f9ebdf"),r=e("9a80175"),o=e("node_modules/react-dom/index"),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affixDom=s.createRef(),t.footerDom=s.createRef(),t}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=o.findDOMNode(this),t=e?r.getScrollParent(e):null;t&&t!==document.body||(t=window),this.parentNode=t,this.affixDetect=this.affixDetect.bind(this),this.affixDetect(),t.addEventListener("scroll",this.affixDetect),window.addEventListener("resize",this.affixDetect)},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),window.removeEventListener("resize",this.affixDetect)},t.prototype.affixDetect=function(){if(this.props.affixFooter&&this.affixDom.current&&this.footerDom.current){var e=this.affixDom.current,t=this.footerDom.current,a=t.getBoundingClientRect(),s=window.innerHeight,n=a.top>s;t.offsetWidth&&(e.style.cssText="width: "+t.offsetWidth+"px;"),n?e.classList.add("in"):e.classList.remove("in")}},t.prototype.renderBody=function(){var e=this.props,t=(e.type,e.className,e.data),n=(e.header,e.body),r=e.render,o=e.bodyClassName,i=(e.headerClassName,e.actionsClassName,e.footerClassName,e.children),l=(e.title,e.actions,e.footer,e.classPrefix),d=a.__rest(e,["type","className","data","header","body","render","bodyClassName","headerClassName","actionsClassName","footerClassName","children","title","actions","footer","classPrefix"]),c=a.__assign({data:t},d);return i?s.createElement("div",{className:o||l+"Panel-body"},"function"==typeof i?i(this.props):i):n?s.createElement("div",{className:o||l+"Panel-body"},r("body",n,c)):null},t.prototype.renderActions=function(){var e=this.props,t=e.actions,a=e.render;return Array.isArray(t)&&t.length?t.map(function(e,t){return a("action",e,{type:e.type||"button",key:t})}):null},t.prototype.render=function(){var e=this.props,t=(e.type,e.className),n=e.data,r=e.header,o=(e.body,e.render),i=(e.bodyClassName,e.headerClassName),l=e.actionsClassName,d=e.footerClassName,c=(e.children,e.title),f=e.footer,m=e.affixFooter,h=(e.classPrefix,e.classnames),u=a.__rest(e,["type","className","data","header","body","render","bodyClassName","headerClassName","actionsClassName","footerClassName","children","title","footer","affixFooter","classPrefix","classnames"]),p=a.__assign({data:n},u),y=[],N=this.renderActions();N&&y.push(s.createElement("div",{key:"actions",className:h("Panel-btnToolbar",l||"Panel-footer")},N)),f&&y.push(s.createElement("div",{key:"footer",className:h(d||"Panel-footer")},o("footer",f,p)));var v=y.length?s.createElement("div",{ref:this.footerDom},y):null;return s.createElement("div",{className:h("Panel",t||"Panel--default")},r?s.createElement("div",{className:h(i||"Panel-heading")},o("header",r,p)):c?s.createElement("div",{className:h(i||"Panel-heading")},s.createElement("h3",{className:h("Panel-title")},o("title",c,p))):null,this.renderBody(),v,m&&y.length?s.createElement("div",{ref:this.affixDom,className:h("Panel-fixedBottom")},y):null)},t.propsList=["headerClassName","footerClassName","actionsClassName","bodyClassName"],t.defaultProps={},t}(s.Component);t.default=i;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([n.Renderer({test:/(^|\/)panel$/,name:"panel"})],t)}(i);t.PanelRenderer=l});
;/*!src/renderers/Form/Panel.tsx*/
define("2406202",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),t=e("node_modules/react/index"),n=e("0f9ebdf"),d=e("244f74d"),l=e("node_modules/classnames/index"),s=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(r,e),r.prototype.renderBody=function(){var r=this.props,o=(r.render,r.renderFormItems),n=r.body,d=r.bodyClassName,s=r.controls,a=r.tabs,i=r.fieldSet,m=r.mode,c=r.formMode,f=r.horizontal,u=r.$path,p=r.classPrefix;if(!n&&(s||a||i)){var _={};return m&&(_.mode=m),f&&(_.horizontal=f),t.createElement("div",{className:l(p+"Form--"+(_.mode||c||"normal"),d)},o({controls:s,tabs:a,fieldSet:i},u.replace(/^.*form\//,""),_))}return e.prototype.renderBody.call(this)},r=o.__decorate([n.Renderer({test:/(^|\/)form(?:\/.+)?\/control\/(?:\d+\/)?panel$/,weight:-100,name:"panel-control"})],r)}(d.default);r.PanelRenderer=s});
;/*!src/renderers/Form/Color.tsx*/
define("5271012",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),s=e("567b83c"),o=e("node_modules/classnames/index"),a=e("f11d26b"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={open:!1},t}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,s=e.classPrefix,l=r.__rest(e,["className","classPrefix"]);return n.createElement("div",{className:o(s+"ColorControl",t)},n.createElement(a.default,r.__assign({classPrefix:s},l)))},t.defaultProps={format:"hex",clearable:!0},t}(n.PureComponent);t.default=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([s.FormItem({type:"color"})],t)}(l);t.ColorControlRenderer=u});
;/*!src/renderers/Form/ChainedSelect.tsx*/
define("d2efb65",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),i=e("node_modules/classnames/index"),o=e("b86428a"),s=e("d57879c"),l=function(e){function t(t){var a=e.call(this,t)||this;return a.state={stack:[]},a.handleChange=a.handleChange.bind(a),a.loadMore=a.loadMore.bind(a),a}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.formInited;e?this.loadMore():this.props.addHook(this.loadMore,"init")},t.prototype.componentWillReceiveProps=function(e){var t=this.props;t.options!==e.options&&this.setState({stack:[]})},t.prototype.componentDidUpdate=function(e){var t=this.props;t.value!==e.value&&this.loadMore()},t.prototype.loadMore=function(){for(var e=this,t=this.props,n=t.value,i=t.delimiter,o=t.onChange,s=t.joinValues,l=t.extractValue,r=t.source,c=t.data,p=t.env,d=Array.isArray(n)?n.concat():n&&"string"==typeof n?n.split(i||","):[],u=0,h=this.state.stack.length;h>u&&d[u]&&this.state.stack[u].parentId==(s||l?d[u]:d[u].value);)u++;if(d[u]&&p&&r){var f=s||l?d[u]:d[u].value,v=this.state.stack.concat();v.splice(u,v.length-u),v.push({parentId:f,loading:!0,options:[]}),this.setState({stack:v},function(){p.fetcher(r,a.__assign({},c,{value:d,level:u+1,parentId:f,parent:d[u]})).then(function(t){var a=e.state.stack.concat(),l=t.data?t.data.value:void 0,r=t.data&&t.data.options||t.data;a.splice(u,a.length-u),"undefined"!=typeof l&&(d.splice(u+1,n.length-u-1),d.push(l),o(s?d.join(i||","):d)),a.push({options:r,parentId:f,loading:!1,visible:!!r}),e.setState({stack:a},e.loadMore)}).catch(function(e){p.notify("error",e.message)})})}},t.prototype.handleChange=function(e,t){var a=this.props,n=a.value,i=a.delimiter,o=a.onChange,s=a.joinValues,l=a.extractValue,r=Array.isArray(n)?n.concat():n&&"string"==typeof n?n.split(i||","):[];r.splice(e,r.length-e),r.push(s?t.value:t),o(s?r.join(i||","):l?r.map(function(e){return e.value||e}):r)},t.prototype.render=function(){var e=this,t=this.props,o=t.options,l=t.classPrefix,r=t.className,c=(t.inline,t.loading),p=t.value,d=t.delimiter,u=(t.joinValues,t.extractValue,t.multiple,a.__rest(t,["options","classPrefix","className","inline","loading","value","delimiter","joinValues","extractValue","multiple"])),h=Array.isArray(p)?p.concat():p&&"string"==typeof p?p.split(d||","):[];return n.createElement("div",{className:i(l+"ChainedSelectControl",r)},n.createElement(s.default,a.__assign({},u,{classPrefix:l,key:"base",options:o,value:h[0],onChange:this.handleChange.bind(this,0),loading:c,inline:!0})),this.state.stack.map(function(t,i){var o=t.options,r=t.loading,c=t.visible;return c===!1?null:n.createElement(s.default,a.__assign({},u,{classPrefix:l,key:"x-"+(i+1),options:o,value:h[i+1],onChange:e.handleChange.bind(e,i+1),loading:r,inline:!0}))}))},t.defaultProps={clearable:!1,searchable:!1,multiple:!0},t}(n.Component);t.default=l;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([o.OptionsControl({type:"chained-select",sizeMutable:!1})],t)}(l);t.ChainedSelectControlRenderer=r});
;/*!src/renderers/Form/NestedSelect.tsx*/
define("9d9f047",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),l=e("node_modules/lodash/xorBy"),r=e("node_modules/lodash/unionBy"),s=e("997df41"),i=e("0a43d97"),o=e("2b3dcdf"),d=e("node_modules/react-overlays/lib/index"),c=e("b7bbd16"),p=e("9a80175"),u=e("b86428a"),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isOpened:!1},t}return n.__extends(t,e),t.prototype.domRef=function(e){this.target=e},t.prototype.open=function(){this.props.disabled||this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.renderValue=function(){var e=this.props,t=e.multiple,n=e.classnames,l=e.selectedOptions,r=e.labelField,s=Array.isArray(l)?l.length:0;return a.createElement("div",{className:n("NestedSelect-valueWrap"),onClick:this.open},s>0?a.createElement("div",{className:n("NestedSelect-value")},t?"已选择 "+s+" 项":l[0][r||"label"]):null)},t.prototype.renderClear=function(){var e=this.props,t=e.clearable,n=e.value,l=e.disabled,r=e.classnames;return t&&!l&&(Array.isArray(n)?n.length:n)?a.createElement("a",{onClick:this.clearValue,className:r("NestedSelect-clear")},c.closeIcon):null},t.prototype.clearValue=function(){var e=this.props,t=e.onChange,n=e.resetValue;t("undefined"==typeof n?"":n)},t.prototype.handleOptionClick=function(e,t){var n=this.props,a=n.multiple,l=n.onChange,r=n.joinValues,s=n.extractValue,i=n.valueField;t.stopPropagation(),l(r?e[i||"value"]:s?e[i||"value"]:e),!a&&this.close()},t.prototype.handleCheck=function(e){var t,n=this.props,a=n.onChange,s=n.selectedOptions,i=n.joinValues,o=n.valueField,d=n.delimiter,c=n.extractValue,u=n.withChildren,h=n.cascade,m=s.concat();if(Array.isArray(e))e=u?p.flattenTree(e):e,t=m.length===e.length?[]:e;else if(Array.isArray(e.children))if(h)t=l(m,[e],o||"value");else if(u){e=p.flattenTree([e]);var f=e.every(function(e){return!!~m.indexOf(e)})?l:r;t=f(m,e,o||"value")}else t=m.filter(function(t){return!~p.flattenTree([e]).indexOf(t)}),!~m.indexOf(e)&&t.push(e);else t=l(m,[e],o||"value");i?t=t.map(function(e){return e[o||"value"]}).join(d||","):c&&(t=t.map(function(e){return e[o||"value"]})),a(t)},t.prototype.allChecked=function(e){var t=this;return e.every(function(e){return e.children?t.allChecked(e.children):t.props.selectedOptions.some(function(t){return t.value==e.value})})},t.prototype.partialChecked=function(e){var t=this;return e.some(function(e){return e.children?t.partialChecked(e.children):t.props.selectedOptions.some(function(t){return t.value==e.value})})},t.prototype.renderOptions=function(e,t,n){var l=this,r=this.props,s=r.multiple,o=r.selectedOptions,d=r.classnames,c=r.value,p=r.options,u=r.disabled,h=r.cascade;if(s){var m=this.partialChecked(p),f=this.allChecked(p);return a.createElement("div",{className:d({"NestedSelect-childrenOuter":t})},t?null:a.createElement("div",{className:d("NestedSelect-option","checkall")},a.createElement(i.default,{onChange:this.handleCheck.bind(this,p),checked:m,partial:m&&!f},"全选")),e.map(function(e,t){var r=o.some(function(t){return t.value==e.value}),c=!!n||r,p=!!n||!!u;return a.createElement("div",{className:d("NestedSelect-option"),key:t},a.createElement(i.default,{onChange:l.handleCheck.bind(l,e),trueValue:e.value,checked:c,disabled:p},e.label),e.children?a.createElement("span",{className:d("NestedSelect-arrowZone")},a.createElement("span",{className:d("NestedSelect-optionArrowRight")})):null,e.children&&e.children.length?l.renderOptions(e.children,!0,h?!1:n||s&&r):null)}))}return a.createElement("div",{className:d({"NestedSelect-childrenOuter":t})},e.map(function(e,t){return a.createElement("div",{key:t,className:d("NestedSelect-option",{"is-active":c&&c===e.value}),onClick:l.handleOptionClick.bind(l,e)},a.createElement("span",null,e.label),e.children?a.createElement("span",{className:d("NestedSelect-arrowZone")},a.createElement("span",{className:d("NestedSelect-optionArrowRight")})):null,e.children&&e.children.length?l.renderOptions(e.children,!0,!1):null)}))},t.prototype.renderOuter=function(){var e=this,t=this.props,n=t.popOverContainer,l=t.options,r=t.classnames,i=a.createElement(d.RootCloseWrapper,{disabled:!this.state.isOpened,onRootClose:this.close},a.createElement("div",{className:r("NestedSelect-menuOuter"),style:{minWidth:this.target.offsetWidth}},this.renderOptions(l,!1,!1)));return n?a.createElement(s.default,{container:n,placement:"left-bottom-left-top right-bottom-right-top",target:function(){return e.target},show:!0},a.createElement(o.default,{className:r("NestedSelect-popover"),style:{minWidth:this.target.offsetWidth}},i)):i},t.prototype.render=function(){var e=this.props,t=e.className,n=e.disabled,l=e.placeholder,r=e.selectedOptions,s=e.classnames;return a.createElement("div",{className:s("NestedSelectControl")},a.createElement("div",{className:s("NestedSelect",{"is-opened":this.state.isOpened,"is-disabled":n},t),onClick:this.open,ref:this.domRef},r&&r.length>0?null:a.createElement("div",{className:s("NestedSelect-placeholder")},l),this.renderValue(),this.renderClear(),a.createElement("span",{className:s("Select-arrow")})),this.state.isOpened?this.renderOuter():null)},t.defaultProps={cascade:!1,withChildren:!1},n.__decorate([p.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"domRef",null),n.__decorate([p.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"open",null),n.__decorate([p.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"close",null),n.__decorate([p.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"clearValue",null),t}(a.Component);t.default=h;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([u.OptionsControl({type:"nested-select"})],t)}(h);t.NestedSelectControlRenderer=m});
;/*!src/renderers/Form/TransferSelect.tsx*/
define("58ea2d5",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),n=e("b86428a"),r=e("node_modules/lodash/lodash"),s=e("0a43d97"),c=e("b7bbd16"),i=function(e){function t(t){var l=e.call(this,t)||this;return l.state={filteredOptions:[],keyword:""},l.handleCheckAll=l.handleCheckAll.bind(l),l.handleClear=l.handleClear.bind(l),l.handleSearch=l.handleSearch.bind(l),l}return l.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.options;e&&Array.isArray(e)&&this.setState({filteredOptions:e})},t.prototype.componentDidUpdate=function(e){var t=this.props.options;t&&e.options!==t&&this.setState({filteredOptions:t,keyword:""})},t.prototype.handleCheck=function(e){var t=this.props,l=t.selectedOptions,a=t.onChange,n=t.joinValues,s=t.extractValue,c=t.delimiter,i=t.valueField,o=0===l.length?[e]:r.xorBy(l.concat(),[e],i||"value");n?o=o.map(function(e){return e[i||"value"]}).join(c||","):s&&(o=o.map(function(e){return e[i||"value"]})),a(o)},t.prototype.handleCheckAll=function(){var e,t=this.state.filteredOptions,l=this.props,a=l.selectedOptions,n=l.onChange,r=l.joinValues,s=l.extractValue,c=l.delimiter,i=l.valueField;e=a.length===t.length?"":r?t.map(function(e){return e[i||"value"]}).join(c||""):s?t.map(function(e){return e[i||"value"]}):t,n(e)},t.prototype.handleClear=function(){this.props.onChange("")},t.prototype.handleSearch=function(e){var t=this.props,l=t.viewMode,a=t.searchField,n=t.options,r=[],s=e.target.value.toLowerCase();r=""===s?n:n.filter(function(e){return e["table"===l?a:"label"].toLowerCase().indexOf(s)>-1}),this.setState({filteredOptions:r,keyword:s})},t.prototype.renderTable=function(){var e=this,t=this.state.filteredOptions,l=this.props,n=l.classnames,c=l.classPrefix,i=l.selectedOptions,o=l.columns,d=l.allTitle,h=l.searchable,m=l.searchPlaceholder,u=l.valueField;return a.createElement("div",{className:n("TransferSelect-allOptions","TransferSelect-allOptions--table")},a.createElement("div",{className:n("TransferSelect-heading")},a.createElement("span",null,d+""+i.length+"/"+t.length+""),h?a.createElement("div",{className:n("TransferSelect-searchWrapper")},a.createElement("div",{className:n("TextControl-input")},a.createElement("input",{placeholder:m,autoComplete:"off",value:this.state.keyword,onChange:this.handleSearch}),a.createElement("i",{className:"fa fa-search"}))):null),a.createElement("div",{className:n("TransferSelect-body")},a.createElement("table",{className:n("Table-table")},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",{className:n("Table-checkCell")},a.createElement(s.default,{classPrefix:c,partial:i.length!==t.length,checked:i.length>0,onChange:this.handleCheckAll})),o.map(function(e,t){return a.createElement("th",{key:t},e.label)}))),a.createElement("tbody",null,t.map(function(t,l){return a.createElement("tr",{className:n((d={},d[c+"Table-tr--odd"]=l%2===0,d[c+"Table-tr--even"]=l%2===1,d)),key:l},a.createElement("td",null,a.createElement(s.default,{classPrefix:c,value:!1,checked:r.find(i,function(e){return e[u||"value"]===t[u||"value"]}),onChange:e.handleCheck.bind(e,t)})),o.map(function(e,l){var n=t[e.name]+"";return a.createElement("td",{key:l},n)}));var d})))))},t.prototype.renderNormal=function(){var e=this,t=this.state.filteredOptions,l=this.props,n=l.classnames,c=l.classPrefix,i=l.selectedOptions,o=l.allTitle,d=l.searchable,h=l.searchPlaceholder,m=l.labelField,u=l.valueField;return a.createElement("div",{className:n("TransferSelect-allOptions","TransferSelect-allOptions--normal")},a.createElement("div",{className:n("TransferSelect-heading")},a.createElement("span",null,o+""+i.length+"/"+t.length+""),i.length<t.length?a.createElement("span",{onClick:this.handleCheckAll,className:n("TransferSelect-selectAll")},"全部选择"):null),a.createElement("div",{className:n("TransferSelect-body")},d?a.createElement("div",{className:n("TransferSelect-searchWrapper")},a.createElement("div",{className:n("TextControl-input")},a.createElement("input",{placeholder:h,autoComplete:"off",onChange:this.handleSearch}),a.createElement("i",{className:"fa fa-search"}))):null,a.createElement("ul",null,t.length>0?t.map(function(t,l){return a.createElement("li",{key:l},a.createElement(s.default,{classPrefix:c,checked:!!r.find(i,function(e){return e[u||"value"]===t[u||"value"]}),onChange:e.handleCheck.bind(e,t)},t[m||"label"]))}):a.createElement("li",null,"暂无数据"))))},t.prototype.renderAction=function(){var e=this.props.classnames;return a.createElement("div",{className:e("TransferSelect-action")},a.createElement("span",{className:e("TransferSelect-actionIcon")}))},t.prototype.renderTableSelectedOptions=function(){var e=this,t=this.props,l=t.classnames,n=t.selectedOptions,s=t.selectedTitle,i=t.labelField,o=t.columns;return a.createElement("div",{className:l("TransferSelect-selectedOptions","TransferSelect-selectedOptions--table")},a.createElement("div",{className:l("TransferSelect-heading")},a.createElement("span",null,s+""+n.length+""),n.length>0?a.createElement("span",{onClick:this.handleClear,className:l("TransferSelect-clearAll")},"全部清除"):null),a.createElement("div",{className:l("TransferSelect-body")},a.createElement("table",{className:l("Table-table")},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",null,r.find(o,function(e){return e.name===i}).label))),a.createElement("tbody",null,n.map(function(t,n){return a.createElement("tr",{className:l("Table-tr--odd"),key:n},a.createElement("td",null,t[i||"label"],a.createElement("a",{onClick:e.handleCheck.bind(e,t),className:l("TransferSelect-option-close")},c.closeIcon)))})))))},t.prototype.renderNormalSelectedOptions=function(){var e=this,t=this.props,l=t.classnames,n=t.selectedOptions,r=t.selectedTitle,s=t.labelField;return a.createElement("div",{className:l("TransferSelect-selectedOptions","TransferSelect-selectedOptions--normal")},a.createElement("div",{className:l("TransferSelect-heading")},a.createElement("span",null,r+""+n.length+""),n.length>0?a.createElement("span",{onClick:this.handleClear,className:l("TransferSelect-clearAll")},"全部清除"):null),a.createElement("div",{className:l("TransferSelect-body")},a.createElement("ul",null,n.map(function(t,n){return a.createElement("li",{key:n},t[s||"label"],a.createElement("a",{onClick:e.handleCheck.bind(e,t),className:l("TransferSelect-option-close")},c.closeIcon))}))))},t.prototype.render=function(){var e=this.props,t=e.className,l=e.classnames,n=e.render,r=e.viewMode,s=e.loading;return a.createElement("div",{className:l("TransferSelectControl",t)},"table"===r?this.renderTable():this.renderNormal(),this.renderAction(),"table"===r?this.renderTableSelectedOptions():this.renderNormalSelectedOptions(),s?n("loading",{type:"spinner",overlay:!0},{size:"lg",key:"info"}):null)},t.defaultProps={viewMode:"normal",multiple:!0,labelField:"label",valueField:"value",searchField:"label",searchPlaceholder:"请输入关键字",allTitle:"全部",selectedTitle:"已选",columns:[],searchable:!0},t}(a.Component);t.TransferSelect=i;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l.__extends(t,e),t=l.__decorate([n.OptionsControl({type:"transfer-select"})],t)}(i);t.TransferSelectControlRenderer=o});
;/*!src/renderers/Service.tsx*/
define("3a449e1",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=e("node_modules/react/index"),a=e("0f9ebdf"),r=e("57d76d7"),o=e("6a2dbb7"),s=e("919cbd9"),d=e("1caead1"),l=function(e){function t(t){var n=e.call(this,t)||this;return n.handleQuery=n.handleQuery.bind(n),n.reload=n.reload.bind(n),n.silentReload=n.silentReload.bind(n),n.initInterval=n.initInterval.bind(n),n}return n.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.schemaApi,n=e.initFetchSchema,i=e.api,a=e.initFetch,r=e.store;this.mounted=!0,!t||n===!1||t.sendOn&&!o.evalExpression(t.sendOn,r.data)||r.fetchSchema(t,r.data).then(this.initInterval),!i||a===!1||i.sendOn&&!o.evalExpression(i.sendOn,r.data)||r.fetchInitData(i,r.data).then(this.initInterval)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.store;d.isApiOutdated(e.api,t.api,e.data,t.data)&&n.fetchData(t.api,n.data).then(this.initInterval),d.isApiOutdated(e.schemaApi,t.schemaApi,e.data,t.data)&&n.fetchSchema(t.schemaApi,n.data).then(this.initInterval)},t.prototype.componentWillUnmount=function(){this.mounted=!1,clearTimeout(this.timer)},t.prototype.initInterval=function(e){var t=this.props,n=t.interval,i=t.silentPolling,a=t.stopAutoRefreshWhen,r=t.data;return n&&this.mounted&&(!a||!o.evalExpression(a,r))&&(this.timer=setTimeout(i?this.silentReload:this.reload,Math.max(n,3e3))),e},t.prototype.reload=function(e,t,n,i){if(t)return this.receive(t);var a=this.props,r=a.schemaApi,s=a.fetchSchema,d=a.api,l=a.fetch,c=a.store;clearTimeout(this.timer),!r||s===!1||r.sendOn&&!o.evalExpression(r.sendOn,c.data)||c.fetchSchema(r,c.data).then(this.initInterval),!d||l===!1||d.sendOn&&!o.evalExpression(d.sendOn,c.data)||c.fetchData(d,c.data,{silent:i}).then(this.initInterval)},t.prototype.silentReload=function(e,t){this.reload(e,t,void 0,!0)},t.prototype.receive=function(e){var t=this.props.store;t.updateData(e),this.reload()},t.prototype.handleQuery=function(e){this.receive(e)},t.prototype.renderBody=function(){var e=this.props,t=e.render,n=e.store,a=e.body,r=e.classnames;return i.createElement("div",{className:r("Service-body")},t("body",n.schema||a,{key:n.schemaKey||"body",onQuery:this.handleQuery}))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.store,a=e.render,r=e.classPrefix,o=e.classnames;return i.createElement("div",{className:o(r+"Service",t)},n.error?i.createElement("div",{className:o("Alert Alert--danger")},i.createElement("button",{className:o("Alert-close"),onClick:function(){return n.updateMessage("")},type:"button"},i.createElement("span",null,"×")),n.msg):null,this.renderBody(),n.loading?a("info",{type:"spinner",overlay:!0},{key:"info",size:"lg"}):null)},t.defaultProps={},t.propsList=[],t}(i.Component);t.default=l;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.context;e.registerComponent(this)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.context;t.unRegisterComponent(this)},t.contextType=s.ScopedContext,t=n.__decorate([a.Renderer({test:/(^|\/)service$/,storeType:r.ServiceStore.name,name:"service"})],t)}(l);t.ServiceRenderer=c});
;/*!src/renderers/Form/Service.tsx*/
define("40fc403",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),n=e("0f9ebdf"),s=e("3a449e1"),d=e("919cbd9"),i=e("57d76d7"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.context;e.registerComponent(this)},t.prototype.componentWillUnmount=function(){var e=this.context;e.unRegisterComponent(this)},t.prototype.renderBody=function(){var t=this.props,o=t.render,n=t.store,s=t.body,d=t.controls,i=t.tabs,c=t.feildSet,a=t.renderFormItems,l=t.formMode,p=(t.$path,t.classnames),m=n.schema||s||{controls:d,tabs:i,feildSet:c};return m&&!m.type&&(m.controls||m.tabs||m.feildSet)&&a?r.createElement("div",{className:p("Form--"+(l||"normal"))},a(m,"controls",{store:n,data:n.data,render:o})):e.prototype.renderBody.call(this)},t.contextType=d.ScopedContext,t=o.__decorate([n.Renderer({test:/(^|\/)form\/(.*)\/service$/,weight:-100,storeType:i.ServiceStore.name,storeExtendsData:!1,name:"service-control"})],t)}(s.default);t.ServiceRenderer=c});
;/*!src/renderers/Form/Table.tsx*/
define("f6d94c0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),i=e("567b83c"),r=e("node_modules/classnames/index"),l=e("a67acca"),o=e("9a80175"),s=e("6a2dbb7"),d=e("node_modules/lodash/omit"),c=function(e){function t(t){var n=e.call(this,t)||this;return n.entries=[],n.state={columns:n.buildColumns(t),editIndex:-1},n.buildItemProps=n.buildItemProps.bind(n),n.confirmEdit=n.confirmEdit.bind(n),n.cancelEdit=n.cancelEdit.bind(n),n.handleSaveTableOrder=n.handleSaveTableOrder.bind(n),n.handleTableSave=n.handleTableSave.bind(n),n.getEntryId=n.getEntryId.bind(n),n}return n.__extends(t,e),t.prototype.doAction=function(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];var i=this.props,r=i.onAction,l=i.value;if("add"===e.actionType){var o=Array.isArray(l)?l.concat():[];return this.addItem(o.length-1)}return r&&r.apply(void 0,[e,t].concat(n))},t.prototype.addItem=function(e){var t=this.props,a=t.value,i=t.onChange,r=t.scaffold,l=Array.isArray(a)?a.concat():[];l.splice(e+1,0,n.__assign({},r)),i(l),e=Math.min(e+1,l.length-1),this.startEdit(e,l[e],!0)},t.prototype.startEdit=function(e,t,n){void 0===n&&(n=!1);var a=this.props.value,i=this.props.scaffold;this.setState({editIndex:e,editting:t||a&&a[e]||i||{},isCreateMode:n,columns:this.state.isCreateMode===n?this.state.columns:this.buildColumns(this.props,n)})},t.prototype.confirmEdit=function(){return n.__awaiter(this,void 0,void 0,function(){var e,t,a,i,r,l,s,d,c,u,p,h,f;return n.__generator(this,function(m){switch(m.label){case 0:return e=this.props,t=e.value,a=e.onChange,i=e.scaffold,r=e.addApi,l=e.updateApi,s=e.data,d=e.env,c=Array.isArray(t)?t.concat():[],u=n.__assign({},this.state.editting),p=c[this.state.editIndex],h=!o.isObjectShallowModified(i,p,!1),f=null,h&&r?[4,d.fetcher(r,o.createObject(s,u))]:[3,2];case 1:return f=m.sent(),[3,4];case 2:return l?[4,d.fetcher(l,o.createObject(s,u))]:[3,4];case 3:f=m.sent(),m.label=4;case 4:return f&&!f.ok?(d.notify("error",f.msg||"保存失败"),[2]):(f&&f.ok&&(u=n.__assign({},u,f.data)),c.splice(this.state.editIndex,1,u),this.setState({editIndex:-1,editting:null}),a(c),[2])}})})},t.prototype.cancelEdit=function(){var e=this.props,t=e.value,n=e.onChange;if(this.state.isCreateMode){var a=Array.isArray(t)?t.concat():[];a.splice(this.state.editIndex,1),n(a)}this.setState({editIndex:-1})},t.prototype.removeItem=function(e){return n.__awaiter(this,void 0,void 0,function(){var t,a,i,r,l,d,c,u,p,h,f,m;return n.__generator(this,function(n){switch(n.label){case 0:return t=this.props,a=t.value,i=t.onChange,r=t.deleteApi,l=t.deleteConfirmText,d=t.env,c=t.data,u=Array.isArray(a)?a.concat():[],p=a[e],r?(h=o.createObject(c,p),[4,d.confirm(l?s.filter(l,h):"确认要删除?")]):[3,3];case 1:return f=n.sent(),f?[4,d.fetcher(r,h)]:[2];case 2:if(m=n.sent(),!m.ok)return d.notify("error","删除失败"),[2];n.label=3;case 3:return this.removeEntry(p),u.splice(e,1),i(u),[2]}})})},t.prototype.buildItemProps=function(e,t){return this.props.editable?{quickEditEnabled:this.state.editIndex===t}:null},t.prototype.buildColumns=function(e,t){var i=this;void 0===t&&(t=!1);var r=this.props.env,o=Array.isArray(e.columns)?e.columns:[],s=this.props.classPrefix,c=[];return e.addable&&e.showAddBtn!==!1&&c.push({children:function(t){var n=t.key,o=t.rowIndex;return~i.state.editIndex?null:a.createElement(l.default,{classPrefix:s,size:"sm",key:n,level:"link",tooltip:"新增一行",tooltipContainer:r&&r.getModalContainer?r.getModalContainer():void 0,onClick:i.addItem.bind(i,o)},e.addBtnLabel?a.createElement("span",null,e.addBtnLabel):null,e.addBtnIcon?a.createElement("i",{className:e.addBtnIcon}):null)}}),e.editable&&(o=o.map(function(e){var a=!t&&e.hasOwnProperty("quickEditOnUpdate")?e.quickEditOnUpdate:e.quickEdit;return a===!1?d(e,["quickEdit"]):n.__assign({},e,{quickEdit:n.__assign({type:"text"},a,{saveImmediately:!0,mode:"inline"})})}),c.push({children:function(t){var n=t.key,o=t.rowIndex,d=t.data;return~i.state.editIndex||d&&d.__isPlaceholder?null:a.createElement(l.default,{classPrefix:s,size:"sm",key:n,level:"link",tooltip:"编辑当前行",tooltipContainer:r&&r.getModalContainer?r.getModalContainer():void 0,onClick:function(){return i.startEdit(o)}},e.updateBtnLabel?a.createElement("span",null,e.updateBtnLabel):null,e.updateBtnIcon?a.createElement("i",{className:e.updateBtnIcon}):null)}}),c.push({children:function(t){var n=t.key,o=t.rowIndex;return i.state.editIndex===o?a.createElement(l.default,{classPrefix:s,size:"sm",key:n,level:"link",tooltip:"保存",tooltipContainer:r&&r.getModalContainer?r.getModalContainer():void 0,onClick:i.confirmEdit},e.confirmBtnLabel?a.createElement("span",null,e.confirmBtnLabel):null,e.confirmBtnIcon?a.createElement("i",{className:e.confirmBtnIcon}):null):null}}),c.push({children:function(t){var n=t.key,o=t.rowIndex;return i.state.editIndex===o?a.createElement(l.default,{classPrefix:s,size:"sm",key:n,level:"link",tooltip:"取消",tooltipContainer:r&&r.getModalContainer?r.getModalContainer():void 0,onClick:i.cancelEdit},e.cancelBtnLabel?a.createElement("span",null,e.cancelBtnLabel):null,e.cancelBtnIcon?a.createElement("i",{className:e.cancelBtnIcon}):null):null}})),e.removable&&c.push({children:function(t){var n=t.key,o=t.rowIndex,d=t.data;return~i.state.editIndex||d&&d.__isPlaceholder?null:a.createElement(l.default,{classPrefix:s,size:"sm",key:n,level:"link",tooltip:"删除当前行",tooltipContainer:r&&r.getModalContainer?r.getModalContainer():void 0,onClick:i.removeItem.bind(i,o)},e.deleteBtnLabel?a.createElement("span",null,e.deleteBtnLabel):null,e.deleteBtnIcon?a.createElement("i",{className:e.deleteBtnIcon}):null)}}),c.length&&o.push({type:"operation",buttons:c,width:100,label:"操作"}),o},t.prototype.handleTableSave=function(e,t,a){var i=this.props,r=i.onChange,l=i.value,o=Array.isArray(l)?l.concat():[];if(~this.state.editIndex)return void this.setState({editting:n.__assign({},e)});if(Array.isArray(e))a.forEach(function(e,a){var i=n.__assign({},o.splice(e,1)[0],t[a]);o.splice(e,0,i)});else{var s=n.__assign({},o.splice(a,1)[0],t);o.splice(a,0,s)}r(o)},t.prototype.handleSaveTableOrder=function(e,t){var a=this.props.onChange;a(t.map(function(e){return n.__assign({},e)}))},t.prototype.removeEntry=function(e){var t=this.entries.indexOf(e);~t&&this.entries.splice(t,1)},t.prototype.getEntryId=function(e){var t=this.entries.indexOf(e);return~t||(t=this.entries.length,this.entries.push(e)),String(t)},t.prototype.render=function(){var e=this,t=this.props,n=t.className,i=t.value,l=(t.type,t.columns,t.disabled),o=t.render,s=(t.children,t.placeholder),d=t.draggable,c=t.addable;return a.createElement("div",{className:r("form-control-table",n)},o("body",{type:"table",placeholder:s,disabled:l,columns:this.state.columns,affixHeader:!1},{value:void 0,draggable:d&&!~this.state.editIndex,items:(Array.isArray(i)&&i.length?i:c?[{__isPlaceholder:!0}]:[]).map(function(t,n){return n===e.state.editIndex?e.state.editting:t}),getEntryId:this.getEntryId,onSave:this.handleTableSave,onSaveOrder:this.handleSaveTableOrder,buildItemProps:this.buildItemProps}))},t.defaultProps={placeholder:"空",scaffold:{},addBtnIcon:"fa fa-plus",updateBtnIcon:"fa fa-pencil",deleteBtnIcon:"fa fa-minus",confirmBtnIcon:"fa fa-check",cancelBtnIcon:"fa fa-times"},t.propsList=["onChange","name","columns","label","scaffold","showAddBtn","addable","removable","editable","addApi","updateApi","deleteApi"],t}(a.Component);t.default=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.FormItem({test:/(^|\/)form(?:\/.+)?\/control\/table$/,name:"table-control"})],t)}(c);t.TableControlRenderer=u});
;/*!src/renderers/Form/Picker.tsx*/
define("06cfa10",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=e("node_modules/react/index"),o=e("b86428a"),l=e("node_modules/classnames/index"),a=e("a67acca"),s=e("node_modules/lodash/find"),r=e("9a80175"),c=e("node_modules/lodash/findIndex"),d=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpened:!1,schema:n.buildSchema(n.props)},n.open=n.open.bind(n),n.close=n.close.bind(n),n.handleModalConfirm=n.handleModalConfirm.bind(n),n.renderBody=n.renderBody.bind(n),n}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;r.anyChanged(["pickerSchema","multiple","source"],t,e)&&this.setState({schema:this.buildSchema(e)})},t.prototype.buildSchema=function(e){return n.__assign({},e.pickerSchema,{type:"crud",pickerMode:!0,syncLocation:!1,api:e.source,keepItemSelectionOnPageChange:!0,valueField:e.valueField,labelField:e.labelField,checkOnItemClick:!0,bulkActions:e.multiple?e.pickerSchema.bulkActions:[]})},t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.handleModalConfirm=function(e,t,n,i){var o=this.props,l=o.joinValues,a=o.extractValue,r=o.valueField,d=o.delimiter,u=o.setOptions,p=o.options,m=o.onChange,h=o.multiple,v=c(i,function(e){return"crud"===e.props.type}),f=e[v].items,b=f;b=l?f.map(function(e){return e[r||"value"]}).join(d||","):a?h?f.map(function(e){return e[r||"value"]}):f[0]&&f[0][r||"value"]||"":h?f:f[0];var k=[];f.forEach(function(e){s(p,function(t){return e[r||"value"]==t[r||"value"]})||k.push(e)}),k.length&&u(p.concat(k)),m(b),this.close()},t.prototype.removeItem=function(e){var t=this.props,n=t.selectedOptions,i=t.joinValues,o=t.extractValue,l=t.delimiter,a=t.valueField,s=t.onChange,r=t.multiple,c=n.concat();c.splice(e,1);var d=c;d=i?c.map(function(e){return e[a||"value"]}).join(l||","):o?r?c.map(function(e){return e[a||"value"]}):c[0]&&c[0][a||"value"]||"":r?c:c[0],s(d)},t.prototype.renderValues=function(){var e=this,t=this.props,n=t.classPrefix,o=t.selectedOptions,a=t.labelField,s=t.disabled;return i.createElement("div",{className:n+"Picker-values"},o.map(function(t,o){return i.createElement("div",{key:o,className:l(n+"Picker-value",{"is-disabled":s})},i.createElement("span",{"data-tooltip":"删除","data-position":"bottom",className:n+"Picker-valueIcon",onClick:e.removeItem.bind(e,o)},"×"),i.createElement("span",{className:n+"Picker-valueLabel"},t[a||"label"]))}))},t.prototype.renderBody=function(){var e=this.props,t=e.render,n=e.selectedOptions,i=e.options,o=e.multiple,l=e.valueField;return t("modal-body",this.state.schema,{value:n,valueField:l,options:i,multiple:o})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,o=e.disabled,s=e.render,r=e.modalMode,c=(e.pickerSchema,e.source),d=e.size,u=e.env;return i.createElement("div",{className:l(n+"PickerControl",t)},i.createElement("div",{className:n+"Picker"},this.renderValues(),i.createElement(a.default,{classPrefix:n,className:n+"Picker-pickBtn",tooltip:"点击选择",tooltipContainer:u&&u.getModalContainer?u.getModalContainer():void 0,level:"link",size:"sm",disabled:o,onClick:this.open,iconOnly:!0},i.createElement("i",{className:"fa fa-crosshairs"})),s("modal",{title:"请选择",size:d,type:r,body:{children:this.renderBody}},{key:"modal",lazyRender:!!c,onConfirm:this.handleModalConfirm,onClose:this.close,show:this.state.isOpened})))},t.propsList=["modalMode","pickerSchema","labelField","onChange","options","value","inline","multiple"],t.defaultProps={modalMode:"dialog",multiple:!1,pickerSchema:{mode:"list",listItem:{title:"${label}"}}},t}(i.PureComponent);t.default=d;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([o.OptionsControl({type:"picker",autoLoadOptionsFromSource:!1,sizeMutable:!1})],t)}(d);t.PickerControlRenderer=u});
;/*!src/renderers/Form/IconPicker.tsx*/
define("3ced9f1",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),o=e("node_modules/classnames/index"),i=e("node_modules/match-sorter/dist/match-sorter.cjs"),s=e("node_modules/keycode/index"),r=e("node_modules/downshift/dist/downshift.cjs"),d=e("9a80175"),u=e("3bc41ff"),p=e("567b83c"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isOpen:!1,inputValue:"",isFocused:!1,vendorIndex:0},t}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;t.value!==e.value&&this.setState({inputValue:""})},t.prototype.changeVendor=function(e){this.setState({vendorIndex:e},this.formatOptions)},t.prototype.formatOptions=function(){var e=this.state.vendorIndex||0,t=u.ICONS[e],n=t.prefix,a=t.icons;return a.map(function(e){return{label:n+e,value:n+e}})},t.prototype.getVendors=function(){return u.ICONS.map(function(e){return e.name})},t.prototype.inputRef=function(e){this.input=e},t.prototype.focus=function(){if(this.input){this.input.focus();var e=this.input.value.length;e&&this.input.setSelectionRange(e,e)}},t.prototype.handleClick=function(){this.focus(),this.setState({isOpen:!0})},t.prototype.handleFocus=function(e){this.setState({isOpen:!0,isFocused:!0}),this.props.onFocus&&this.props.onFocus(e)},t.prototype.handleBlur=function(e){var t=this.props,n=t.onBlur,a=t.trimContents,o=t.value,i=t.onChange;this.setState({isFocused:!1},function(){a&&o&&"string"==typeof o&&i(o.trim())}),n&&n(e)},t.prototype.handleInputChange=function(e){var t=e.currentTarget.value;this.setState({inputValue:t})},t.prototype.handleKeyDown=function(e){var t=s(e.keyCode);if("backspace"===t){var n=this.props.onChange;this.state.inputValue||(n(""),this.setState({inputValue:""}))}},t.prototype.handleChange=function(e){var t=this.props.onChange;t(e),this.setState({isFocused:!1,inputValue:""})},t.prototype.handleStateChange=function(e){switch(e.type){case r.default.stateChangeTypes.itemMouseEnter:case r.default.stateChangeTypes.changeInput:this.setState({isOpen:!0});break;default:var t={};"undefined"!=typeof e.isOpen&&(t.isOpen=e.isOpen),this.state.isOpen&&e.isOpen===!1&&(t.inputValue=""),this.setState(t)}},t.prototype.renderFontIcons=function(){var e=this,t=this.props,o=t.className,s=t.inputOnly,d=t.placeholder,u=t.classnames,p=t.name,l=t.value,c=t.noDataTip,m=t.formItem,_=this.formatOptions(),h=this.getVendors(),y=m&&m.selectedOptions.length?m.selectedOptions:l?[{label:l,value:l}]:[];return a.createElement(r.default,{isOpen:this.state.isOpen,inputValue:this.state.inputValue,onChange:this.handleChange,onOuterClick:this.handleBlur,onStateChange:this.handleStateChange,selectedItem:y.map(function(e){return e.value})},function(t){var r=t.getInputProps,l=t.getItemProps,m=t.isOpen,g=t.inputValue,f=t.selectedItem,v=g&&m?i(_,g,{keys:["label","value"]}):_;return v=v.filter(function(e){return!~f.indexOf(e.value)}),a.createElement("div",{className:u("IconPickerControl-input IconPickerControl-input--withAC",s?o:"",{"is-opened":m}),onClick:e.handleClick},a.createElement("div",{className:u("IconPickerControl-valueWrap")},!d||y.length||e.state.inputValue?null:a.createElement("div",{className:u("IconPickerControl-placeholder")},d),y.map(function(e,t){return g&&m?null:a.createElement("div",{className:u("IconPickerControl-value"),key:t},a.createElement("i",{className:u(""+e.value)}),e.label)}),a.createElement("input",n.__assign({},r({name:p,ref:e.inputRef,onFocus:e.handleFocus,onChange:e.handleInputChange,onKeyDown:e.handleKeyDown}),{autoComplete:"off"}))),m?a.createElement("div",{className:u("IconPickerControl-sugsPanel")},h.length>1?a.createElement("div",{className:u("IconPickerControl-tabs")},h.map(function(t,n){return a.createElement("div",{className:u("IconPickerControl-tab",{active:e.state.vendorIndex===n}),onClick:function(){return e.changeVendor(n)},key:n},t)})):null,v.length?a.createElement("div",{className:u("IconPickerControl-sugs",h.length>1?"IconPickerControl-multiVendor":"IconPickerControl-singleVendor")},v.map(function(e,t){return a.createElement("div",n.__assign({},l({item:e.value,className:u("IconPickerControl-sugItem")}),{key:t}),a.createElement("i",{className:u(""+e.value),title:""+e.value}))})):a.createElement("div",{className:u(h.length>1?"IconPickerControl-multiVendor":"IconPickerControl-singleVendor")},c)):null)})},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,i=e.inputOnly,s=this.renderFontIcons();return i?s:a.createElement("div",{className:o(t,n+"IconPickerControl",{"is-focused":this.state.isFocused})},s)},t.defaultProps={resetValue:"",placeholder:"",noDataTip:"未找到匹配的图标"},n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Number]),n.__metadata("design:returntype",void 0)],t.prototype,"changeVendor",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"formatOptions",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"getVendors",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"inputRef",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"focus",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[]),n.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleFocus",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleBlur",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(p=("undefined"!=typeof a&&a).ChangeEvent)&&p||Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleInputChange",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(l=("undefined"!=typeof a&&a).KeyboardEvent)&&l||Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleKeyDown",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleChange",null),n.__decorate([d.autobind,n.__metadata("design:type",Function),n.__metadata("design:paramtypes",["function"==typeof(c="undefined"!=typeof r.StateChangeOptions&&r.StateChangeOptions)&&c||Object]),n.__metadata("design:returntype",void 0)],t.prototype,"handleStateChange",null),t;var p,l,c}(a.PureComponent);t.default=l;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([p.FormItem({type:"icon-picker"})],t)}(l);t.IconPickerControlRenderer=c});
;/*!src/renderers/Form/Formula.tsx*/
define("33d5c8a",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t("node_modules/tslib/tslib"),o=t("node_modules/react/index"),a=t("567b83c"),i=t("6a2dbb7"),r=t("9a80175"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.formula,n=t.data,o=t.setPrinstineValue,a=t.initSet;if(e&&a!==!1){var r=i.evalJS(e,n);null!==r&&o(r)}},e.prototype.componentWillReceiveProps=function(t){var e=this.props,n=e.formula,o=e.data,a=e.onChange,l=e.autoSet,u=e.value,d=e.condition;if(l!==!1&&n&&t.formula&&r.isObjectShallowModified(o,t.data,!1)&&u===t.value){var s=i.evalJS(t.formula,t.data);if(d&&t.condition)~d.indexOf("$")||~d.indexOf("<%")?i.filter(d,o)!==i.filter(t.condition,t.data)&&a(s):i.evalJS(t.condition,t.data)&&a(s);else{var f=i.evalJS(n,o);JSON.stringify(f)!==JSON.stringify(s)&&a(s||"")}}},e.prototype.doAction=function(){var t=this.props,e=t.formula,n=t.data,o=t.onChange,a=(t.autoSet,t.value,i.evalJS(e,n));o(a)},e.prototype.render=function(){return null},e}(o.Component);e.default=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e=n.__decorate([a.FormItem({type:"formula",wrap:!1,strictMode:!1,sizeMutable:!1})],e)}(l);e.FormulaControlRenderer=u});
;/*!src/renderers/Form/FieldSet.tsx*/
define("760e4be",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),t=e("node_modules/react/index"),o=e("0f9ebdf"),d=e("d221521"),s=function(e){function r(r){var n=e.call(this,r)||this;return n.renderBody=n.renderBody.bind(n),n}return n.__extends(r,e),r.prototype.renderBody=function(){var e=this.props,r=e.renderFormItems,n=e.controls,o=e.body,d=e.collapsable,s=e.horizontal,l=e.render,a=e.mode,i=e.formMode,c=e.$path,m=e.classnames;if(!n)return l("body",o);var u={};return a&&(u.mode=a),"undefined"!=typeof d&&(u.collapsable=d),s&&(u.horizontal=s),t.createElement("div",{className:m("Form--"+(u.mode||i||"normal"))},r({controls:n},c.replace(/^.*form\//,""),u))},r.prototype.render=function(){var e=this.props,r=(e.controls,e.className),o=(e.mode,n.__rest(e,["controls","className","mode"]));return t.createElement(d.default,n.__assign({},o,{className:r,children:this.renderBody,wrapperComponent:"fieldset",headingComponent:"legend"}))},r.defaultProps={headingClassName:"",collapsable:!1},r}(t.Component);r.default=s;var l=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(r,e),r=n.__decorate([o.Renderer({test:/(^|\/)form(?:.+)?\/control\/fieldSet$/i,weight:-100,name:"fieldset"})],r)}(s);r.FieldSetRenderer=l});
;/*!src/renderers/Tabs.tsx*/
define("605b41a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),s=e("0f9ebdf"),i=e("6a2dbb7"),r=e("node_modules/react-bootstrap/lib/index"),o=e("node_modules/lodash/find"),c=e("9a80175"),l=e("node_modules/lodash/findIndex"),h=function(e){function t(t){var a=e.call(this,t)||this;a.id=Date.now()+"";var n=t.location||window.location,s=t.tabs,i=0;if("undefined"!=typeof t.activeKey)i=t.activeKey;else if(n&&Array.isArray(s)){var r=n.hash.substring(1),c=o(s,function(e){return e.hash===r});i=c&&c.hash?c.hash:s[0]&&s[0].hash||0}return a.state={prevKey:void 0,activeKey:i},a.handleSelect=a.handleSelect.bind(a),a.currentIndex=a.currentIndex.bind(a),a.switchTo=a.switchTo.bind(a),a}return a.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(e.location&&e.location.hash!==t.location.hash){var a=e.location.hash.substring(1);if(!a)return;var n=o(e.tabs,function(e){return e.hash===a});n&&n.hash&&n.hash!==this.state.activeKey&&this.setState({activeKey:n.hash,prevKey:this.state.activeKey})}else if(t.tabs!==e.tabs){var s=this.state.activeKey,i=e.location,n=null;if(i&&Array.isArray(e.tabs)){var r=i.hash.substring(1);n=o(e.tabs,function(e){return e.hash===r})}n?s=n.hash:e.tabs&&e.tabs.some(function(e,t){return e.hash?e.hash===s:t===s})||(s=e.tabs&&e.tabs[0]&&e.tabs[0].hash||0),this.setState({prevKey:void 0,activeKey:s})}},t.prototype.handleSelect=function(e){var t=this.props.env;"string"==typeof e&&t?t.updateLocation("#"+e):"string"==typeof this.state.prevKey&&t&&t.updateLocation("#"),this.setState({activeKey:e,prevKey:this.state.activeKey})},t.prototype.switchTo=function(e){var t=this.props.tabs;Array.isArray(t)&&t[e]&&this.setState({activeKey:t[e].hash||e})},t.prototype.currentIndex=function(){var e=this,t=this.props.tabs;return Array.isArray(t)?l(t,function(t,a){return t.hash?t.hash===e.state.activeKey:a===e.state.activeKey}):-1},t.prototype.render=function(){var e=this,t=this.props,a=t.classnames,s=t.contentClassName,o=t.tabs,l=t.tabRender,h=t.className,u=t.mountOnEnter,d=t.unmountOnExit,b=t.render,v=t.data,y=t.mode,p=t.tabsMode;if(!Array.isArray(o))return null;var m=p||y,f=o.filter(function(e){return c.isVisible(e,v)});return n.createElement(r.TabContainer,{id:this.id,className:a("Tabs",(K={},K["Tabs--"+m]=m,K),h),activeKey:this.state.activeKey,onSelect:this.handleSelect},n.createElement("div",null,n.createElement(r.Nav,{className:a("Tabs-links"),role:"tablist"},f.map(function(e,t){return n.createElement(r.NavItem,{className:a("Tabs-link"),key:t,eventKey:e.hash||t,disabled:e.disabled||e.disabledOn&&i.evalExpression(e.disabledOn,v)},e.icon?n.createElement("div",null,n.createElement("i",{className:e.icon})," ",e.title):e.title)})),n.createElement(r.TabContent,{className:a("Tabs-content",s),mountOnEnter:u,unmountOnExit:d},f.map(function(t,a){return n.createElement(r.TabPane,{key:a,eventKey:t.hash||a,mountOnEnter:u,unmountOnExit:"boolean"==typeof t.reload?t.reload:t.unmountOnExit},l?l(t,e.props):b("tab/"+a,t.tab||t.body||""))}))));var K},t.defaultProps={className:"",mode:"",mountOnEnter:!0,unmountOnExit:!1},t}(n.Component);t.default=h;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([s.Renderer({test:/(^|\/)tabs$/,name:"tabs"})],t)}(h);t.TabsRenderer=u});
;/*!src/renderers/Form/Tabs.tsx*/
define("3abf50d",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),o=e("0f9ebdf"),a=e("605b41a"),d=function(e){function r(r){var t=e.call(this,r)||this;return t.renderTab=t.renderTab.bind(t),t}return t.__extends(r,e),r.prototype.renderTab=function(e,r){var t=r.key,o=this.props,a=o.renderFormItems,d=o.formMode,s=o.formHorizontal,i=o.$path,l=o.render,m=o.classnames;return a&&!e.type&&(e.controls||e.fieldSet||e.tabs)?n.createElement("div",{className:m("Form--"+(e.mode||d||"normal"))},a(e,i.replace(/^.*form\//,""),{mode:e.mode||d,horizontal:e.horizontal||s})):l("tab/"+t,e.body||e.tab||e)},r.prototype.render=function(){var e=this.props,r=(e.children,e.type,t.__rest(e,["children","type"]));return n.createElement(a.default,t.__assign({},r,{tabRender:this.renderTab}))},r.defaultProps={mountOnEnter:!1},r=t.__decorate([o.Renderer({test:/(^|\/)form(?:.+)?\/control\/tabs$/i,weight:-100,name:"tabs-control"}),t.__metadata("design:paramtypes",[Object])],r)}(n.Component);r.TabsRenderer=d});
;/*!src/renderers/Form/Group.tsx*/
define("7f271f4",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),t=e("0f9ebdf"),i=e("9a80175"),a=e("567b83c"),l=function(e){function r(r){var o=e.call(this,r)||this;return o.renderInput=o.renderInput.bind(o),o}return o.__extends(r,e),r.prototype.renderControl=function(e,r,n){var t=this.props.render;if(!e)return null;var i=e&&"control"===e.type?e:{type:"control",control:e};if(i.control){var a=i.control;a.hiddenOn&&(i.hiddenOn=a.hiddenOn),a.visibleOn&&(i.visibleOn=a.visibleOn)}return t(""+r,i,o.__assign({},n))},r.prototype.renderVertical=function(e){var r=this;void 0===e&&(e=this.props);var o=e.controls,t=e.className,a=e.classnames,l=e.mode,s=e.formMode,d=e.data;return s=l||s,o=o.filter(function(e){return i.isVisible(e,d)}),n.createElement("div",{className:a("Form-group Form-group--ver Form-group--"+s,t)},o.map(function(e,o){if(!i.isVisible(e,d))return null;var n=e&&e.mode||s;return r.renderControl(e,o,{key:o,formMode:n})}))},r.prototype.renderHorizontal=function(e){var r=this;void 0===e&&(e=this.props);var o=e.controls,t=e.className,a=e.classPrefix,l=e.classnames,s=e.mode,d=e.horizontal,u=e.formMode,m=e.formHorizontal,c=e.data,p=e.gap;return u=s||u,n.createElement("div",{className:l("Form-group Form-group--hor Form-group--"+u,p?"Form-group--"+p:"",t)},o.map(function(e,t){if(!i.isVisible(e,c))return null;var s=e&&e.mode||u;if("inline"===s)return r.renderControl(e,t,{formMode:"inline",key:t,className:l(e.className,e.columnClassName)});var p=e.columnRatio||i.getWidthRate(e&&e.columnClassName),f=d||i.makeHorizontalDeeper(m,o.filter(function(e){return"inline"!==e.mode}).length);return n.createElement("div",{key:t,className:l(a+"Form-groupColumn",p?a+"Form-groupColumn--"+p:"")},r.renderControl(e,t,{formHorizontal:f,formMode:s}))}))},r.prototype.renderInput=function(e){void 0===e&&(e=this.props);var r=e.direction;return"vertical"===r?this.renderVertical(e):this.renderHorizontal(e)},r.prototype.render=function(){var e=this.props,r=e.label,t=o.__rest(e,["label"]);return r?n.createElement(a.FormItemWrap,o.__assign({},t,{sizeMutable:!1,label:r,renderControl:this.renderInput})):this.renderInput()},r=o.__decorate([t.Renderer({test:/(^|\/)form(?:\/.+)?\/control\/(?:\d+\/)?group$/,sizeMutable:!1,name:"group-control"}),o.__metadata("design:paramtypes",[Object])],r)}(n.Component);r.ControlGroupRenderer=l});
;/*!src/renderers/Form/InputGroup.tsx*/
define("fe6117b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),o=e("9a80175"),i=e("01e2bb4"),s=e("567b83c"),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.state={isFocused:!1},n}return n.__extends(t,e),t.prototype.handleFocus=function(){this.setState({isFocused:!0})},t.prototype.handleBlur=function(){this.setState({isFocused:!1})},t.prototype.renderControl=function(e,t,r){var o=this.props.render;if(!e)return null;var i=e&&"control"===e.type?e:{type:"control",control:e};if(i.control){var s=i.control;s.hiddenOn&&(i.hiddenOn=s.hiddenOn),s.visibleOn&&(i.visibleOn=s.visibleOn)}return o(""+t,i,n.__assign({},r))},t.prototype.validate=function(){var e=this.props,t=e.formStore,n=e.controls,r=[];return n.forEach(function(e){var n=e.name,o=n?t.getItemByName(n):null;o&&o.errors.length&&r.push.apply(r,o.errors)}),r.length?r:""},t.prototype.render=function(){var e=this,t=this.props,n=t.controls,s=t.className,u=t.mode,a=t.horizontal,l=t.formMode,d=t.formHorizontal,c=t.data,p=t.classnames;l=u||l,n=n.filter(function(e){if(e&&(e.hidden||e.visible===!1))return!1;var t=i.default(e||{},c);return t.hidden||t.visible===!1?!1:!0});var f=a||o.makeHorizontalDeeper(d,n.length);return r.createElement("div",{className:p("InputGroup",s,{"is-focused":this.state.isFocused})},n.map(function(t,n){var o=~["icon","plain","tpl","button","submit","reset"].indexOf(t&&t.type),i=e.renderControl(t,n,{formHorizontal:f,formMode:"normal",inputOnly:!0,key:n,onFocus:e.handleFocus,onBlur:e.handleBlur});return o?r.createElement("span",{key:n,className:p(t.addOnclassName,~["button","submit","reset"].indexOf(t&&t.type)?"InputGroup-btn":"InputGroup-addOn")},i):i}))},t}(r.Component);t.InputGroup=u;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([s.FormItem({type:"input-group",strictMode:!1})],t)}(u);t.default=a});
;/*!src/renderers/HBox.tsx*/
define("aab7b91",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),s=e("0f9ebdf"),o=e("node_modules/classnames/index"),i=e("9a80175"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.renderChild=function(e,t){var n=this.props.render;return n(e,t)},t.prototype.renderColumn=function(e,t,s){var l=this.props,a=l.itemRender,u=l.data,d=l.classPrefix;if(!i.isVisible(e,u))return null;var c=n.__assign({width:e.width,height:e.height},e.style);return r.createElement("div",{key:t,className:o(d+"Hbox-col",e.columnClassName),style:c},a?a(e,t,s,this.props):this.renderChild("column/"+t,e))},t.prototype.render=function(){var e=this,t=this.props,n=t.className,s=t.columns,i=t.classPrefix;return r.createElement("div",{className:o(i+"Hbox",n)},s.map(function(t,n){return e.renderColumn(t,n,s.length)}))},t.propsList=["columns"],t.defaultProps={},t}(r.Component);t.default=l;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([s.Renderer({test:/(^|\/)hbox$/,name:"hbox"})],t)}(l);t.HBoxRenderer=a});
;/*!src/renderers/VBox.tsx*/
define("ae1a7f3",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),s=e("0f9ebdf"),o=e("node_modules/classnames/index"),a=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r.prototype.renderChild=function(e,r){var t=this.props.render;return t(e,r)},r.prototype.renderCell=function(e,r){var t=this.props.classPrefix;return n.createElement("div",{className:o(t+"Vbox-cell",e.cellClassName)},this.renderChild("row/"+r,e))},r.prototype.render=function(){var e=this,r=this.props,t=r.className,s=r.rows,a=r.classPrefix;return n.createElement("div",{className:o(a+"Vbox",t)},Array.isArray(s)?s.map(function(r,t){return n.createElement("div",{className:o("row-row",r.rowClassName),key:t},e.renderCell(r,t))}):null)},r.propsList=["rows"],r.defaultProps={},r}(n.Component);r.default=a;var l=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r=t.__decorate([s.Renderer({test:/(^|\/)vbox$/,name:"vbox"})],r)}(a);r.VBoxRenderer=l});
;/*!src/renderers/Image.tsx*/
define("fcb3580",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),n=e("0f9ebdf"),s=e("6a2dbb7"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,r=e.defaultImage,n=e.description,l=e.title,i=e.render,d=e.data,m=e.imageClassName,u=e.classnames,c=e.src,o=c?s.filter(c):"",p=this.props.value;return a.createElement("div",{className:u("ImageField",t)},a.createElement("img",{className:m,src:o||p||r}),l||n?a.createElement("div",{key:"caption",className:u("ImageField-caption")},l?a.createElement("div",{className:"text-md"},s.filter(l,d)):null,i("description",n)):null)},t.defaultProps={className:"thumb-lg",imageClassName:"r",defaultImage:"https://fex.bdstatic.com/n/static/amis/renderers/crud/field/placeholder_cfad9b1.png"},t}(a.Component);t.ImageField=l;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([n.Renderer({test:/(^|\/)image$/,name:"image"})],t)}(l);t.ImageFieldRenderer=i;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){return a.createElement("p",null,"Todo")},t.defaultProps=r.__assign({},l.defaultProps,{multiple:!0,delimiter:","}),t=r.__decorate([n.Renderer({test:/(^|\/)images$/})],t)}(l);t.ImagesFieldRenderer=d});
;/*!src/renderers/List.tsx*/
define("20f7ce6",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),r=e("node_modules/react-dom/index"),i=e("0f9ebdf"),s=e("6a2dbb7"),l=e("a67acca"),o=e("0a43d97"),d=e("4e9b495"),c=e("9a80175"),p=e("f2e345e"),m=e("b497f17"),h=e("bcd7efc"),u=e("node_modules/sortablejs/Sortable"),f=e("f6086a9"),g=e("705a434"),y=function(e){function t(t){var n=e.call(this,t)||this;return n.handleAction=n.handleAction.bind(n),n.handleCheck=n.handleCheck.bind(n),n.handleCheckAll=n.handleCheckAll.bind(n),n.handleQuickChange=n.handleQuickChange.bind(n),n.handleSave=n.handleSave.bind(n),n.handleSaveOrder=n.handleSaveOrder.bind(n),n.reset=n.reset.bind(n),n.dragTipRef=n.dragTipRef.bind(n),n.getPopOverContainer=n.getPopOverContainer.bind(n),n.affixDetect=n.affixDetect.bind(n),n.bodyRef=n.bodyRef.bind(n),n}return n.__extends(t,e),t.syncItems=function(e,t,n){var a=t.source,r=t.value||t.items,i=[],s=!0;if(Array.isArray(r))i=r;else if("string"==typeof a){var l=p.resolveVariable(a,t.data),o=n?p.resolveVariable(a,n.data):null;o&&o===l?s=!1:Array.isArray(l)&&(i=l)}s&&e.initItems(i),Array.isArray(t.selected)&&e.updateSelected(t.selected,t.valueField)},t.prototype.componentWillMount=function(){var e=this.props,n=e.store,a=e.selectable,r=e.draggable,i=e.orderBy,s=e.orderDir,l=e.multiple,o=e.hideCheckToggler,d=e.itemCheckableOn,c=e.itemDraggableOn;n.update({multiple:l,selectable:a,draggable:r,orderBy:i,orderDir:s,hideCheckToggler:o,itemCheckableOn:d,itemDraggableOn:c}),t.syncItems(n,this.props),this.syncSelected()},t.prototype.componentDidMount=function(){var e=c.getScrollParent(r.findDOMNode(this));e&&e!==document.body||(e=window),this.parentNode=e,this.affixDetect(),e.addEventListener("scroll",this.affixDetect),window.addEventListener("resize",this.affixDetect)},t.prototype.componentWillReceiveProps=function(e){var n=this.props,a=e.store;c.anyChanged(["selectable","draggable","orderBy","orderDir","multiple","hideCheckToggler","itemCheckableOn","itemDraggableOn"],n,e)&&a.update({multiple:e.multiple,selectable:e.selectable,draggable:e.draggable,orderBy:e.orderBy,orderDir:e.orderDir,hideCheckToggler:e.hideCheckToggler,itemCheckableOn:e.itemCheckableOn,itemDraggableOn:e.itemDraggableOn}),c.anyChanged(["source","value","items"],n,e)||!e.value&&!e.items&&e.data!==n.data?(t.syncItems(a,e,n),this.syncSelected()):n.selected!==e.selected&&a.updateSelected(e.selected||[],e.valueField)},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),window.removeEventListener("resize",this.affixDetect)},t.prototype.bodyRef=function(e){this.body=e},t.prototype.affixDetect=function(){if(this.props.affixHeader&&this.body){var e=this.props.classPrefix,t=r.findDOMNode(this),n=t.querySelector("."+e+"List-fixedTop");if(n){var a=this.body.getBoundingClientRect(),i=this.props.env.affixOffsetTop||0,s=a.top<i&&a.top+a.height-40>i;this.body.offsetWidth&&(n.style.cssText="top: "+i+"px;width: "+this.body.offsetWidth+"px;"),s?n.classList.add("in"):n.classList.remove("in")}}},t.prototype.getPopOverContainer=function(){return r.findDOMNode(this)},t.prototype.handleAction=function(e,t,n){var a=this.props.onAction;a(e,t,n)},t.prototype.handleCheck=function(e){e.toggle(),this.syncSelected()},t.prototype.handleCheckAll=function(){var e=this.props.store;e.toggleAll(),this.syncSelected()},t.prototype.syncSelected=function(){var e=this.props,t=e.store,n=e.onSelect;n&&n(t.selectedItems.map(function(e){return e.data}),t.unSelectedItems.map(function(e){return e.data}))},t.prototype.handleQuickChange=function(e,t,n,a){if(e.change(t,a),n&&!a){if(n&&n.api)return void this.props.onAction(null,{actionType:"ajax",api:n.api},t);var r=this.props.onSave;r&&r(e.data,c.difference(e.data,e.pristine),e.index)}},t.prototype.handleSave=function(){var e=this.props,t=e.store,n=e.onSave;if(n&&t.modifiedItems.length){var a=t.modifiedItems.map(function(e){return e.data}),r=t.modifiedItems.map(function(e){return e.index}),i=t.modifiedItems.map(function(e){return c.difference(e.data,e.pristine)}),s=t.items.filter(function(e){return!e.modified}).map(function(e){return e.data});n(a,i,r,s)}},t.prototype.handleSaveOrder=function(){var e=this.props,t=e.store,n=e.onSaveOrder;n&&t.movedItems.length&&n(t.movedItems.map(function(e){return e.data}),t.items.map(function(e){return e.data}))},t.prototype.reset=function(){var e=this.props.store;e.reset()},t.prototype.bulkUpdate=function(e,t){var n=this.props.store,a=n.items.filter(function(e){return~t.indexOf(e.pristine)});a.forEach(function(t){return t.change(e)})},t.prototype.getSelected=function(){var e=this.props.store;return e.selectedItems.map(function(e){return e.data})},t.prototype.dragTipRef=function(e){!this.dragTip&&e?this.initDragging():this.dragTip&&!e&&this.destroyDragging(),this.dragTip=e},t.prototype.initDragging=function(){var e=this.props.store,t=r.findDOMNode(this),n=this.props.classPrefix;this.sortable=new u(t.querySelector("."+n+"List-items"),{group:"table",handle:"."+n+"ListItem-dragBtn",ghostClass:"is-dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var n=t.to;t.oldIndex<n.childNodes.length-1?n.insertBefore(t.item,n.childNodes[t.oldIndex]):n.appendChild(t.item),e.exchange(t.oldIndex,t.newIndex)}}})},t.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},t.prototype.renderActions=function(e){var t=this,r=this.props,i=r.actions,s=r.render,o=r.store,d=r.multiple,c=r.selectable,p=r.env,m=r.classPrefix,h=r.classnames;return i=Array.isArray(i)?i.concat():[],o.selectable&&d&&c&&!o.dragging&&o.items.length&&i.unshift({type:"button",children:a.createElement(l.default,{className:h("List-checkAllBtn"),classPrefix:m,tooltip:"切换全选",tooltipContainer:p&&p.getModalContainer?p.getModalContainer():void 0,onClick:this.handleCheckAll,size:"sm",active:o.allChecked},"全选")}),o.draggable&&"header"===e&&o.items.length>1&&i.unshift({type:"button",children:a.createElement(l.default,{iconOnly:!0,classPrefix:m,tooltip:"对列表进行排序操作",tooltipContainer:p&&p.getModalContainer?p.getModalContainer():void 0,key:"dragging-toggle",disabled:!!o.modified,active:o.dragging,size:"sm",className:h("List-dragBtn"),onClick:function(e){e.preventDefault(),o.toggleDragging(),o.dragging&&o.clear()}},a.createElement("i",{className:"glyphicon glyphicon-sort"}))}),Array.isArray(i)&&i.length?a.createElement("div",{className:h("List-actions")},i.map(function(e,a){return s("action/"+a,n.__assign({type:"button"},e),{onAction:t.handleAction,key:a,btnDisabled:o.dragging})})):null},t.prototype.renderHeading=function(){var e=this.props,t=e.title,n=e.store,r=e.hideQuickSaveBtn,i=e.classnames,l=e.data;return t||n.modified&&!r||n.moved?a.createElement("div",{className:i("List-heading")},n.modified&&!r?a.createElement("span",null,"当前有 "+n.modified+" 条记录修改了内容, 但并没有提交。请选择:",a.createElement("button",{type:"button",className:i("Button Button--xs Button--success m-l-sm"),onClick:this.handleSave},a.createElement("i",{className:"fa fa-check m-r-xs"}),"提交"),a.createElement("button",{type:"button",className:i("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},a.createElement("i",{className:"fa fa-times m-r-xs"}),"放弃")):n.moved?a.createElement("span",null,"当前有 "+n.moved+" 条记录修改了顺序, 但并没有提交。请选择:",a.createElement("button",{type:"button",className:i("Button Button--xs Button--success m-l-sm"),onClick:this.handleSaveOrder},a.createElement("i",{className:"fa fa-check m-r-xs"}),"提交"),a.createElement("button",{type:"button",className:i("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},a.createElement("i",{className:"fa fa-times m-r-xs"}),"放弃")):t?s.filter(t,l):""):null},t.prototype.renderHeader=function(){var e=this.props,t=e.header,r=e.headerClassName,i=(e.headerToolbar,e.headerToolbarRender),s=e.render,l=e.showHeader,o=e.store,d=e.classnames;if(l===!1)return null;var c=this.renderActions("header"),p=i?i(n.__assign({},this.props,{selectedItems:o.selectedItems.map(function(e){return e.data}),items:o.items.map(function(e){return e.data}),unSelectedItems:o.unSelectedItems.map(function(e){return e.data})})):null,m=c||p||o.dragging?a.createElement("div",{className:d("List-toolbar",r),key:"header-toolbar"},c,p,o.dragging?a.createElement("div",{className:d("List-dragTip"),ref:this.dragTipRef},"请拖动左边的按钮进行排序"):null):null,h=!t||Array.isArray(t)&&!t.length?null:a.createElement("div",{className:d("List-header",r),key:"header"},s("header",t));return h&&m?[h,m]:h||m||null},t.prototype.renderFooter=function(){var e=this.props,t=e.footer,r=e.footerClassName,i=(e.footerToolbar,e.footerToolbarRender),s=e.render,l=e.showFooter,o=e.store,d=e.classnames;if(l===!1)return null;var c=this.renderActions("footer"),p=i?i(n.__assign({},this.props,{selectedItems:o.selectedItems.map(function(e){return e.data}),items:o.items.map(function(e){return e.data}),unSelectedItems:o.unSelectedItems.map(function(e){return e.data})})):null,m=c||p?a.createElement("div",{className:d("List-toolbar",r),key:"footer-toolbar"},c,p):null,h=!t||Array.isArray(t)&&!t.length?null:a.createElement("div",{className:d("List-footer",r),key:"footer"},s("footer",t));return h&&m?[m,h]:h||m||null},t.prototype.render=function(){var e=this,t=this.props,r=t.className,i=t.store,s=t.placeholder,l=t.render,o=t.multiple,d=t.listItem,c=t.onAction,p=t.hideCheckToggler,m=t.checkOnItemClick,h=t.affixHeader,u=t.classnames,f=t.size,g=this.renderHeading(),y=this.renderHeader();return a.createElement("div",{className:u("List",r,(v={},v["List--"+f]=f,v["List--unsaved"]=!!i.modified||!!i.moved,v)),ref:this.bodyRef},h&&g&&y?a.createElement("div",{className:u("List-fixedTop")},g,y):null,g,y,i.items.length?a.createElement("div",{className:u("List-items")},i.items.map(function(t,a){return l(""+a,n.__assign({type:"list-item"},d),{key:t.index,className:u({"is-checked":t.checked,"is-modified":t.modified,"is-moved":t.moved}),selectable:i.selectable,checkable:t.checkable,multiple:o,item:t,hideCheckToggler:p,checkOnItemClick:m,selected:t.checked,onCheck:e.handleCheck,dragging:i.dragging,onAction:c,data:t.locals,onQuickChange:i.dragging?null:e.handleQuickChange,popOverContainer:e.getPopOverContainer})})):a.createElement("div",{className:u("List-placeholder")},s),this.renderFooter());var v},t.propsList=["header","headerToolbarRender","footer","footerToolbarRender","placeholder","source","selectable","headerClassName","footerClassName","hideQuickSaveBtn","hideCheckToggler","itemCheckableOn","itemDraggableOn","actions","items","valueField"],t.defaultProps={className:"",placeholder:"没有数据",source:"$items",selectable:!1,headerClassName:"",footerClassName:"",affixHeader:!0},t}(a.Component);t.default=y;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)(?:list|list-group)$/,storeType:d.ListStore.name,name:"list"})],t)}(y);t.ListRenderer=v;var b=function(e){function t(t){var n=e.call(this,t)||this;return n.itemRender=n.itemRender.bind(n),n.handleAction=n.handleAction.bind(n),n.handleQuickChange=n.handleQuickChange.bind(n),n.handleClick=n.handleClick.bind(n),n.handleCheck=n.handleCheck.bind(n),n}return n.__extends(t,e),t.prototype.handleClick=function(e){var t=e.target,n=this.props.classPrefix;if(e.currentTarget.contains(t)&&!~["INPUT","TEXTAREA"].indexOf(t.tagName)&&!t.closest("button, a, ."+n+"Form-item")){var a=this.props.item;this.props.onCheck&&this.props.onCheck(a)}},t.prototype.handleCheck=function(){var e=this.props.item;this.props.onCheck&&this.props.onCheck(e)},t.prototype.handleAction=function(e,t,n){var a=this.props,r=a.onAction,i=a.item;r&&r(e,t,n||i.data)},t.prototype.handleQuickChange=function(e,t,n){var a=this.props,r=a.onQuickChange,i=a.item;r&&r(i,e,t,n)},t.prototype.renderLeft=function(){var e=this.props,t=e.dragging,n=e.selectable,r=e.selected,i=e.checkable,s=e.multiple,l=e.hideCheckToggler,d=e.checkOnItemClick,p=e.classnames,m=e.classPrefix;return t?a.createElement("div",{className:p("ListItem-dragBtn")},a.createElement("i",{className:"glyphicon glyphicon-sort"})):n&&!l?a.createElement("div",{className:p("ListItem-checkBtn")},a.createElement(o.default,{classPrefix:m,type:s?"checkbox":"radio",disabled:!i,checked:r,onChange:d?c.noop:this.handleCheck,inline:!0})):null},t.prototype.renderRight=function(){var e=this,t=this.props,r=t.actions,i=t.render,s=t.data,l=t.dragging,o=t.classnames;return Array.isArray(r)?a.createElement("div",{className:o("ListItem-actions")},r.map(function(t,a){return c.isVisible(t,s)?i("action/"+a,n.__assign({size:"sm",level:"link",type:"button"},t),{key:a,disabled:l||c.isDisabled(t,s),onAction:e.handleAction}):null})):null},t.prototype.renderChild=function(e,t,n){void 0===t&&(t="body"),void 0===n&&(n=0);var a=this.props.render;if("string"==typeof e||"number"==typeof e)return a(t,e,{key:n});var r=e;return"hbox"===r.type||"grid"===r.type?a(t,e,{key:n,itemRender:this.itemRender}):this.renderFeild(t,r,n,this.props)},t.prototype.itemRender=function(e,t,n){return this.renderFeild("column/"+t,e,t,n)},t.prototype.renderFeild=function(e,t,r,i){var s=i.render||this.props.render,l=this.props.data,o=this.props.classnames,d=t.$$id?t.$$id+"-field":"";return a.createElement("div",{key:r,className:o("ListItem-field")},t&&t.label?a.createElement("label",{className:o("ListItem-fieldLabel",t.labelClassName)},t.label):null,s(e,n.__assign({},t,{field:t,$$id:d,type:"list-item-field"}),{className:o("ListItem-fieldValue",t.className),value:t.name?p.resolveVariable(t.name,l):"-",onAction:this.handleAction,onQuickChange:this.handleQuickChange}))},t.prototype.renderBody=function(){var e=this,t=this.props.body;return t?Array.isArray(t)?t.map(function(t,n){return e.renderChild(t,"body/"+n,n)}):this.renderChild(t,"body"):null},t.prototype.render=function(){var e=this.props,t=e.className,n=e.data,r=e.avatar,i=e.title,l=e.titleClassName,o=e.subTitle,d=e.desc,c=e.avatarClassName,p=e.checkOnItemClick,m=e.render,h=e.checkable,u=e.classnames,f=s.filter(r,n),g=s.filter(i,n),y=s.filter(o,n),v=s.filter(d,n);return a.createElement("div",{onClick:p&&h?this.handleClick:void 0,className:u("ListItem",t)},this.renderLeft(),this.renderRight(),f?a.createElement("span",{className:u("ListItem-avatar",c)},a.createElement("img",{src:f,alt:"..."})):null,a.createElement("div",{className:u("ListItem-content")},g?a.createElement("p",{className:u("ListItem-title",l)},g):null,y?a.createElement("div",null,a.createElement("small",{className:u("ListItem-subtitle")},y)):null,v?m("description",v):null,this.renderBody()))},t.defaultProps={avatarClassName:"thumb-sm avatar m-r",titleClassName:"h5"},t.propsList=["avatarClassName","titleClassName"],t}(a.Component);t.ListItem=b;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([i.Renderer({test:/(^|\/)(?:list|list-group)\/(?:.*\/)?list-item$/,name:"list-item"})],t)}(b);t.ListItemRenderer=C;var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,r=e.render,i=e.style,s=e.wrapperComponent,l=(e.labelClassName,e.value),o=e.data,d=e.children,c=e.width,p=e.innerClassName,m=(e.label,e.tabIndex),h=e.onKeyUp,u=e.field,f=n.__rest(e,["className","render","style","wrapperComponent","labelClassName","value","data","children","width","innerClassName","label","tabIndex","onKeyUp","field"]),g=n.__assign({},u,{className:p,type:u&&u.type||"plain"}),y=d?d:r("field",g,n.__assign({},f,{value:l,data:o}));return c&&(i=i||{},i.width=i.width||c,y=a.createElement("div",{style:{width:/%/.test(String(c))?"":c}},y)),s?a.createElement(s,{style:i,className:t,tabIndex:m,onKeyUp:h},y):y},t.defaultProps=n.__assign({},f.TableCell.defaultProps,{wrapperComponent:"div"}),t.propsList=["quickEdit","popOver","copyable"].concat(f.TableCell.propsList),t=n.__decorate([i.Renderer({test:/(^|\/)list-item-field$/,name:"list-item-field"}),m.default(),h.default(),g.default()],t)}(f.TableCell);t.ListItemFieldRenderer=k});
;/*!src/renderers/Operation.tsx*/
define("0341968",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),s=e("0f9ebdf"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,s=e.buttons,i=e.render,o=e.classnames;return r.createElement("div",{className:o("OperationField",t)},Array.isArray(s)?s.map(function(e,t){return i(""+t,n.__assign({type:"button",size:e.size||"sm",level:e.level||(e.icon&&!e.label?"link":"")},e),{key:t})}):null)},t.propsList=["buttons","label"],t.defaultProps={},t}(r.Component);t.OperationField=i;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([s.Renderer({test:function(e){return/(^|\/)table\/(.*\/)operation$/.test(e)},name:"operation"})],t)}(i);t.OperationFieldRenderer=o});
;/*!src/renderers/Page.tsx*/
define("100b8cb",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),o=e("node_modules/react/index"),n=e("0f9ebdf"),r=e("57d76d7"),i=e("6a2dbb7"),s=e("node_modules/qs/lib/index"),l=e("9a80175"),c=e("919cbd9"),d=e("15e4197"),p=e("1caead1"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.props,t=e.store,o=e.location;if(l.bulkBindFunctions(this,["handleAction","handleDialogConfirm","handleDialogClose","handleDrawerConfirm","handleDrawerClose","handleClick","reload","silentReload","initInterval"]),o&&o.search){var n=o.query||s.parse(o.search.substring(1));t.reInitData(a.__assign({},n,{query:n}))}else if(!o&&window.location.search){var n=s.parse(window.location.search.substring(1));t.reInitData(a.__assign({},n,{query:n}))}},t.prototype.componentDidMount=function(){var e=this.props,t=e.initApi,a=e.initFetch,o=e.store,n=e.messages;this.mounted=!0,t&&a&&(!t.sendOn||i.evalExpression(t.sendOn,o.data))&&o.fetchInitData(t,o.data,{successMessage:n&&n.fetchSuccess,errorMessage:n&&n.fetchFailed}).then(this.initInterval)},t.prototype.componentWillReceiveProps=function(e){var t=this.props,o=t.store;if(e.location&&(!t.location||t.location.search!==e.location.search)){var n=e.location.query||e.location.search&&s.parse(e.location.search.substring(1))||{};o.updateData(a.__assign({},n,{query:n}))}},t.prototype.componentDidUpdate=function(e){var t=this.props,a=t.store,o=t.initApi;if(t.initFetchOn&&t.initFetch&&!e.initFetch||t.initFetch!==!1&&p.isApiOutdated(e.initApi,o,e.data,t.data)){var n=t.messages;(!o.sendOn||i.evalExpression(o.sendOn,a.data))&&a.fetchData(o,a.data,{successMessage:n&&n.fetchSuccess,errorMessage:n&&n.fetchFailed}).then(this.initInterval)}},t.prototype.componentWillUnmount=function(){this.mounted=!1,clearTimeout(this.timer)},t.prototype.reloadTarget=function(){},t.prototype.handleAction=function(e,t,o,n){var r=this,s=this.props,c=s.env,d=s.store,p=s.messages;if(n||d.setCurrentAction(t),"url"===t.actionType||"link"===t.actionType||"jump"===t.actionType){if(!c||!c.jumpTo)throw new Error("env.jumpTo is required!");c.jumpTo(i.filter(t.to||t.url||t.link,o),t,o)}else"dialog"===t.actionType?d.openDialog(o):"drawer"===t.actionType?d.openDrawer(o):"ajax"===t.actionType?d.saveRemote(t.api,o,{successMessage:t.messages&&t.messages.success||p&&p.saveSuccess,errorMessage:t.messages&&t.messages.failed||p&&p.saveSuccess}).then(function(){return a.__awaiter(r,void 0,void 0,function(){return a.__generator(this,function(e){switch(e.label){case 0:return t.feedback&&l.isVisible(t.feedback,d.data)?[4,this.openFeedback(t.feedback,d.data)]:[3,2];case 1:e.sent(),e.label=2;case 2:return t.redirect&&c.jumpTo(i.filter(t.redirect,d.data),t),t.reload&&this.reloadTarget(t.reload,d.data),[2]}})})}).catch(function(){}):"copy"===t.actionType&&(t.content||t.copy)&&c.copy&&c.copy(i.filter(t.content||t.copy,o))},t.prototype.handleDialogConfirm=function(e,t){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var n=this.props.store;t.mergeData&&1===e.length&&e[0]&&n.updateData(e[0]);var r=n.action.dialog;r&&r.onConfirm&&r.onConfirm.apply(r,[e,t].concat(a))===!1||n.closeDialog()},t.prototype.handleDialogClose=function(){var e=this.props.store;e.closeDialog()},t.prototype.handleDrawerConfirm=function(e,t){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var n=this.props.store;t.mergeData&&1===e.length&&e[0]&&n.updateData(e[0]);var r=n.action.dialog;r&&r.onConfirm&&r.onConfirm.apply(r,[e,t].concat(a))===!1||n.closeDrawer()},t.prototype.handleDrawerClose=function(){var e=this.props.store;e.closeDrawer()},t.prototype.handleClick=function(e){var t=e.target,a=this.props.env;a&&"A"===t.tagName&&t.hasAttribute("data-link")&&(a.jumpTo(t.getAttribute("data-link")),e.preventDefault())},t.prototype.openFeedback=function(e,t){var a=this;return new Promise(function(o){var n=a.props.store;n.setCurrentAction({type:"button",actionType:"dialog",dialog:e}),n.openDialog(t,void 0,function(e){o(e)})})},t.prototype.reload=function(e,t,a,o){if(t)return this.receive(t);var n=this.props,r=n.store,i=n.initApi;clearTimeout(this.timer),i&&r.fetchData(i,r.data,{silent:o}).then(this.initInterval)},t.prototype.receive=function(e){var t=this.props.store;t.updateData(e),this.reload()},t.prototype.silentReload=function(e,t){this.reload(t,void 0,void 0,!0)},t.prototype.initInterval=function(e){var t=this.props,a=t.interval,o=t.silentPolling,n=t.stopAutoRefreshWhen,r=t.data;return a&&this.mounted&&(!n||!i.evalExpression(n,r))&&(this.timer=setTimeout(o?this.silentReload:this.reload,Math.max(a,3e3))),e},t.prototype.renderHeader=function(){var e,t,a=this.props,n=a.title,r=a.subTitle,i=a.remark,s=a.headerClassName,l=a.toolbarClassName,c=a.toolbar,d=a.render,p=(a.store,a.env),u=a.classnames,h={onAction:this.handleAction};return(n||r)&&(e=o.createElement("div",{className:u("Page-header",s)},n?o.createElement("h2",{className:u("Page-title")},d("title",n,h),i?d("remark",{type:"remark",tooltip:i,container:p&&p.getModalContainer?p.getModalContainer():void 0}):null):null,r&&o.createElement("small",{className:u("Page-subTitle")},d("subTitle",r,h)))),c&&(t=o.createElement("div",{className:u("Page-toolbar",l)},d("toolbar",c,h))),e&&t?o.createElement("div",{className:u("Page-headerRow")},e,t):e||t},t.prototype.render=function(){var e=this.props,t=e.className,n=e.store,r=e.body,i=e.bodyClassName,s=e.render,l=e.aside,c=e.asideClassName,p=e.classnames,u=e.header,h={onAction:this.handleAction},m=l&&(!Array.isArray(l)||l.length);return o.createElement("div",{className:p("Page",m?"Page--withSidebar":"",t),onClick:this.handleClick},m?o.createElement("div",{className:p("Page-aside",c)},s("aside",l,a.__assign({},h,"string"==typeof l?{inline:!1,className:"Page-asideTplWrapper"}:null))):null,o.createElement("div",{className:p("Page-content")},u?s("header",u,h):null,o.createElement("div",{className:p("Page-main")},this.renderHeader(),o.createElement("div",{className:p("Page-body",i)},n.loading?s("spinner",{type:"spinner",overlay:!0,size:"lg"}):null,n.error?o.createElement(d.default,{level:"danger",showCloseButton:!0,onClose:n.clearMessage},n.msg):null,r?s("body",r,h):null))),s("dialog",a.__assign({},n.action&&n.action.dialog,{type:"dialog"}),{key:"dialog",data:n.dialogData,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,show:n.dialogOpen,onAction:this.handleAction}),s("drawer",a.__assign({},n.action&&n.action.drawer,{type:"drawer"}),{key:"drawer",data:n.drawerData,onConfirm:this.handleDrawerConfirm,onClose:this.handleDrawerClose,show:n.drawerOpen,onAction:this.handleAction}))},t.defaultProps={asideClassName:"",bodyClassName:"",headerClassName:"",initFetch:!0,toolbarClassName:"",messages:{}},t.propsList=["title","subtitle","initApi","initFetchOn","initFetch","headerClassName","bodyClassName","asideClassName","toolbarClassName","toolbar","body","aside","messages","style"],t}(o.Component);t.default=u;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentWillMount=function(){e.prototype.componentWillMount.call(this);var t=this.context;t.registerComponent(this)},t.prototype.componentWillUnmount=function(){var t=this.context;t.unRegisterComponent(this),e.prototype.componentWillUnmount.call(this)},t.prototype.reloadTarget=function(e,t){var a=this.context;a.reload(e,t)},t.prototype.handleAction=function(t,o,n,r,i){void 0===r&&(r=!1);var s=this.context;"reload"===o.actionType?o.target&&s.reload(o.target,n):o.target?o.target.split(",").forEach(function(e){var t=s.getComponentByName(e);t&&t.doAction&&t.doAction(a.__assign({},o,{target:void 0}),n)}):e.prototype.handleAction.call(this,t,o,n,i)},t.prototype.handleDialogConfirm=function(t,a){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];e.prototype.handleDialogConfirm.apply(this,[t,a].concat(o));var r=this.context,i=this.props.store,s=i.action;s.reload?r.reload(s.reload,i.data):a.reload?r.reload(a.reload,i.data):r.getComponents().filter(function(e){return"crud"===e.props.type}).forEach(function(e){return e.reload&&e.reload()})},t.prototype.handleDrawerConfirm=function(t,a){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];e.prototype.handleDrawerConfirm.call(this,t,a);var r=this.context,i=this.props.store,s=i.action;setTimeout(function(){s.reload?r.reload(s.reload,i.data):a.reload?r.reload(a.reload,i.data):r.getComponents().filter(function(e){return"crud"===e.props.type}).forEach(function(e){return e.reload&&e.reload()})},300)},t.contextType=c.ScopedContext,t=a.__decorate([n.Renderer({test:/(?:^|\/)page$/,name:"page",storeType:r.ServiceStore.name,isolateScope:!0})],t)}(u);t.PageRenderer=h});
;/*!src/renderers/Plain.tsx*/
define("9708de1",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),a=e("0f9ebdf"),l=e("6a2dbb7"),i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.className,t=e.wrapperComponent,a=e.value,i=e.text,s=e.data,d=e.tpl,o=e.inline,p=e.placeholder,u=e.classnames,c=t||(o?"span":"div");return r.createElement(c,{className:u("PlainField",n)},d||i?l.filter(d||i,s):"undefined"==typeof a||""===a||null===a?r.createElement("span",{className:"text-muted"},p):String(a))},n.defaultProps={wrapperComponent:"",inline:!0,placeholder:"-"},n}(r.Component);n.Plain=i;var s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([a.Renderer({test:/(^|\/)(?:plain|text)$/,name:"plain"})],n)}(i);n.PlainRenderer=s});
;/*!src/renderers/Spinner.tsx*/
define("66c3054",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=e("acad559"),i=e("0f9ebdf"),s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([i.Renderer({test:/(^|\/)spinner$/,name:"spinner"})],n)}(r.default);n.SpinnerRenderer=s});
;/*!src/renderers/Tpl.tsx*/
define("66d455f",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),l=e("0f9ebdf"),i=e("6a2dbb7"),o=e("9a80175"),s=e("f2e345e"),a=function(e){function t(t){var n=e.call(this,t)||this;return n.htmlRef=n.htmlRef.bind(n),n}return n.__extends(t,e),t.prototype.componentDidUpdate=function(e){o.anyChanged(["data","tpl","html","text","raw","value"],this.props,e)&&this._render()},t.prototype.htmlRef=function(e){this.dom=e,this._render()},t.prototype.getContent=function(){var e=this.props,t=e.tpl,n=e.html,r=e.text,l=e.raw,o=e.value,a=e.data,p=e.placeholder;return l?l:n?i.filter(n,a):t?i.filter(t,a):r?s.escapeHtml(i.filter(r,a)):null==o||""===o?'<span class="text-muted">'+p+"</span>":"string"==typeof o?o:JSON.stringify(o)},t.prototype._render=function(){this.dom&&(this.dom.innerHTML=this.getContent())},t.prototype.render=function(){var e=this.props,t=e.className,n=e.wrapperComponent,l=e.inline,i=e.classnames,o=n||(l?"span":"div");return r.createElement(o,{children:this.getContent(),ref:this.htmlRef,className:i("TplField",t)})},t.defaultProps={inline:!0,placeholder:"",value:""},t}(r.Component);t.Tpl=a;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t=n.__decorate([l.Renderer({test:/(^|\/)(?:tpl|html)$/,name:"tpl"})],t)}(a);t.TplRenderer=p});
;/*!src/renderers/Mapping.tsx*/
define("c2029c1",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),r=e("0f9ebdf"),p=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.className,t=e.value,r=e.placeholder,p=e.map,s=e.render,l=e.classnames,i=a.createElement("span",{className:"text-muted"},r);return"undefined"!=typeof t&&p&&(p[t]||p["*"])&&(i=s("tpl",p[t]||p["*"])),a.createElement("span",{className:l("MappingField",n)},i)},n.defaultProps={placeholder:"-",map:{"*":"通配值"}},n}(a.Component);n.MappingField=p;var s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([r.Renderer({test:/(^|\/)(?:map|mapping)$/,name:"mapping"})],n)}(p);n.MappingFieldRenderer=s});
;/*!src/renderers/Progress.tsx*/
define("f52f675",function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),t=e("node_modules/react/index"),a=e("0f9ebdf"),n=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(s,e),s.prototype.autoClassName=function(e){var s=this.props.map,r=Math.floor(e*s.length/100);return r=Math.max(0,Math.min(s.length-1,r)),s[r]},s.prototype.render=function(){var e=this.props,s=e.className,r=e.placeholder,a=e.progressClassName,n=e.progressBarClassName,o=(e.map,e.showLabel),l=e.classnames,p=this.props.value,i=t.createElement("span",{className:"text-muted"},r);return/^\d*\.?\d+$/.test(p)&&(p=parseFloat(p)),"number"==typeof p&&(i=[t.createElement("div",{key:"progress",className:l("progress",a)},t.createElement("div",{className:l("progress-bar",n||this.autoClassName(p)),title:p+"%",style:{width:p+"%"}})),o?t.createElement("div",{key:"value"},p,"%"):null]),t.createElement("span",{className:l("ProgressField",s)},i)},s.defaultProps={placeholder:"-",progressClassName:"progress-xs progress-striped active m-b-none",progressBarClassName:"",map:["bg-danger","bg-warning","bg-info","bg-success","bg-success"],showLabel:!0},s}(t.Component);s.ProgressField=n;var o=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(s,e),s=r.__decorate([a.Renderer({test:/(^|\/)progress$/,name:"progress"})],s)}(n);s.ProgressFieldRenderer=o});
;/*!src/renderers/Status.tsx*/
define("da6cdad",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),s=e("node_modules/react/index"),n=e("0f9ebdf"),l=e("6a2dbb7"),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,a=e.placeholder,n=e.map,r=e.labelMap,d=e.classnames,u=e.data,i=this.props.value,c=s.createElement("span",{className:"text-muted"},a),o="";return void 0!==i&&""!==i&&n&&("boolean"==typeof i?i=i?1:0:/^\d+$/.test(i)&&(i=parseInt(i,10)||0),o="StatusField--"+i,c=s.createElement("i",{className:d("StatusField-icon",n[i]),key:"icon"}),r&&r[i]&&(c=[c,s.createElement("span",{className:d("StatusField-label"),key:"label"},l.filter(r[i],u))])),s.createElement("span",{className:d("StatusField",o,t)},c)},t.defaultProps={placeholder:"-",map:{0:"fa fa-times text-danger",1:"fa fa-check text-success"},labelMap:{}},t}(s.Component);t.StatusField=r;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([n.Renderer({test:/(^|\/)status$/,name:"status"})],t)}(r);t.StatusFieldRenderer=d});
;/*!src/renderers/Json.tsx*/
define("386af39",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),r=e("0f9ebdf"),s=e("node_modules/react-json-tree/lib/index"),o={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f",tree:{border:0,padding:"0 0.625em 0.425em",marginTop:"-0.25em",marginBottom:"0",marginLeft:"0",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:"rgba(255, 255, 255, 0.4)",whiteSpace:"nowrap",display:"inline-block"}},d=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;return a.shouldExpandNode=function(e,t,n){var r=a.props.levelExpand;return r>n},a}return t.__extends(a,e),a.prototype.valueRenderer=function(e){return"string"==typeof e&&/^\"?https?:\/\//.test(e)?n.createElement("a",{href:e.replace(/^\"(.*)\"$/,"$1"),target:"_blank"},e):e},a.prototype.render=function(){var e=this.props,a=e.className,t=e.value,r=e.classnames,d=t;if("string"==typeof t)try{d=JSON.parse(t)}catch(l){d={error:l.message}}return n.createElement("div",{className:r("JsonField",a)},n.createElement(s.default,{data:d,theme:o,shouldExpandNode:this.shouldExpandNode,valueRenderer:this.valueRenderer}))},a.defaultProps={placeholder:"-",levelExpand:1},a}(n.Component);a.JSONField=d;var l=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(a,e),a=t.__decorate([r.Renderer({test:/(^|\/)json$/,name:"json"})],a)}(d);a.JSONFieldRenderer=l});
;/*!src/renderers/Link.tsx*/
define("8f3f322",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),s=e("0f9ebdf"),a=e("6a2dbb7"),l=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.className,t=e.body,s=e.href,l=e.classnames,i=e.blank,d=e.data,o=e.render,u=this.props.value,f=s?a.filter(s,d):"";return r.createElement("a",{href:f||u,target:i?"_blank":"_self",className:l("Link",n)},t?o("body",t):f||u||"链接")},n.defaultProps={className:"",blank:!1},n}(r.Component);n.LinkField=l;var i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([s.Renderer({test:/(^|\/)link$/,name:"link"})],n)}(l);n.LinkFieldRenderer=i});
;/*!src/renderers/Switch.tsx*/
define("94e9d59",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),t=e("node_modules/react/index"),l=e("0f9ebdf"),s=e("node_modules/classnames/index"),r=e("aa2413a"),d=function(e){function a(a){var n=e.call(this,a)||this;return n.handleChange=n.handleChange.bind(n),n}return n.__extends(a,e),a.prototype.handleChange=function(e){var a=this.props,n=a.onQuickChange,t=a.name,l=a.trueValue,s=a.falseValue,r=a.saveImmediately,d=a.readOnly,i=a.disabled;n&&!d&&!i&&n((u={},u[t]=e?l:s,u),r);var u},a.prototype.render=function(){var e=this.props,a=e.className,n=e.classPrefix,l=e.value,d=e.placeholder,i=e.trueValue,u=e.falseValue,c=e.onQuickChange,o=e.option,h=e.disabled,m=t.createElement("span",{className:"text-muted"},d),f=!1;return(l==i||l==u)&&(f=!!o,m=t.createElement(r.default,{inline:!0,classPrefix:n,checked:l==i,onChange:this.handleChange,disabled:h||!c})),t.createElement("span",{className:s(n+"SwitchField",a)},m,f?o:null)},a.defaultProps={placeholder:"-",trueValue:!0,falseValue:!1,readOnly:!0,saveImmediately:!1},a}(t.Component);a.SwitchField=d;var i=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(a,e),a=n.__decorate([l.Renderer({test:/(^|\/)switch$/,name:"switch"})],a)}(d);a.SwitchFieldRenderer=i});
;/*!src/renderers/Wizard.tsx*/
define("29937cf",function(e,t){"use strict";function n(e,t,n,a){var i=!1;return i=e&&e.hasOwnProperty("jumpable")?e.jumpable:e&&e.jumpableOn?c.evalExpression(e.jumpableOn,p.createObject(a,{currentStep:n})):n>t+1}Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),i=e("node_modules/react/index"),o=e("919cbd9"),r=e("0f9ebdf"),s=e("57d76d7"),c=e("6a2dbb7"),l=e("node_modules/classnames/index"),p=e("9a80175"),d=e("1caead1"),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={currentStep:-1},n.handleAction=n.handleAction.bind(n),n.handleChange=n.handleChange.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n.handleDialogConfirm=n.handleDialogConfirm.bind(n),n.handleDialogClose=n.handleDialogClose.bind(n),n.formRef=n.formRef.bind(n),n.domRef=n.domRef.bind(n),n.getPopOverContainer=n.getPopOverContainer.bind(n),n}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.initApi,a=t.initFetch,i=t.initAsyncApi,o=t.initFinishedField,r=t.store,s=t.data,l=t.messages,d=l.fetchSuccess,u=l.fetchFailed,h=t.onInit;!n||a===!1||n.sendOn&&!c.evalExpression(n.sendOn,s)?this.setState({currentStep:1},function(){return h&&h(r.data)}):r.fetchInitData(n,r.data,{successMessage:d,errorMessage:u,onSuccess:function(){return i&&!r.data[o||"finished"]?p.until(function(){return r.checkRemote(i,r.data)},function(e){return e&&e[o||"finished"]},function(t){return e.asyncCancel=t}):void 0}}).then(function(t){return h&&h(r.data),e.setState(t&&t.data&&"number"==typeof t.data.step?{currentStep:t.data.step}:{currentStep:1}),t})},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.store,a=t.fetchSuccess,i=t.fetchFailed;d.isApiOutdated(e.initApi,t.initApi,e.data,t.data)&&n.fetchData(t.initApi,n.data,{successMessage:a,errorMessage:i})},t.prototype.componentWillUnmount=function(){this.asyncCancel&&this.asyncCancel()},t.prototype.gotoStep=function(e){var t=this.props.steps||[];e=Math.max(Math.min(t.length,e),1),this.setState({currentStep:e})},t.prototype.formRef=function(e){if(e){for(;e&&e.getWrappedInstance;)e=e.getWrappedInstance();this.form=e}else this.form=void 0},t.prototype.submitToTarget=function(){throw new Error("Please implements this!")},t.prototype.reloadTarget=function(){throw new Error("Please implements this!")},t.prototype.domRef=function(e){this.dom=e},t.prototype.getPopOverContainer=function(){return this.dom},t.prototype.handleAction=function(e,t,n){var i=this.props,o=i.onAction,r=i.store;"next"===t.actionType||"submit"===t.type?this.form.doAction(a.__assign({},t,{actionType:"submit"}),n):"prev"===t.actionType?this.gotoStep(this.state.currentStep-1):"reset"===t.type?this.form.reset():"dialog"===t.actionType?r.openDialog(n):o&&o(e,t,n)},t.prototype.handleChange=function(e){var t=this.props.store;t.updateData(e)},t.prototype.handleSubmit=function(e,t){var n=this,i=this.props,o=i.store,r=i.steps,s=i.api,l=i.asyncApi,d=i.finishedField,u=i.target,h=i.redirect,f=i.reload,m=i.env,g=i.onFinished,y=r[this.state.currentStep-1];if(o.updateData(e),this.state.currentStep<r.length){var v=t.asyncApi||l;v&&o.updateData((A={},A[d||"finished"]=!1,A)),y.api||t.api?o.saveRemote(t.api||y.api,o.data,{onSuccess:function(){return v&&!o.data[d||"finished"]?p.until(function(){return o.checkRemote(v,o.data)},function(e){return e&&e[d||"finished"]},function(e){return n.asyncCancel=e}):void 0}}).then(function(){return n.gotoStep(n.state.currentStep+1)}).catch(function(){}):this.gotoStep(this.state.currentStep+1)}else if(u)this.submitToTarget(u,o.data);else if(t.api||y.api||s){var b=t.asyncApi||y.asyncApi||l;b&&o.updateData((C={},C[d||"finished"]=!1,C));var S=this.form?this.form.props.store:o;o.markSaving(!0),S.saveRemote(t.api||y.api||s,o.data,{onSuccess:function(){return b&&!o.data[d||"finished"]?p.until(function(){return o.checkRemote(b,o.data)},function(e){return e&&e[d||"finished"]},function(e){return n.asyncCancel=e}):void 0}}).then(function(e){return o.updateData(a.__assign({},o.data,e)),o.markSaving(!1),g&&g(e,t)===!1?e:(h?m.updateLocation(c.filter(h,o.data)):f&&n.reloadTarget(f,o.data),e)}).catch(function(e){o.markSaving(!1),console.error(e)})}return!1;var A,C},t.prototype.handleDialogConfirm=function(e,t,n,a){var i=this.props.store;t.mergeData&&1===e.length&&e[0]&&"form"===a[0].props.type&&i.updateData(e[0]),i.closeDialog()},t.prototype.handleDialogClose=function(){var e=this.props.store;e.closeDialog()},t.prototype.renderSteps=function(){var e=this,t=this.props,a=t.steps,o=t.store,r=t.mode,s=t.classPrefix,c=this.state.currentStep;return i.createElement("div",{className:s+"Wizard-steps clearfix "+s+"Wizard--"+r,id:"form-wizard"},Array.isArray(a)&&a.length?i.createElement("ul",null,a.map(function(t,a){var r=n(t,a,c,o.data);return i.createElement("li",{key:a,className:l({"is-complete":r,"is-active":c===a+1}),onClick:function(){return r?e.gotoStep(a+1):null}},i.createElement("span",{className:l("Badge",{"Badge--info":c===a+1||r&&c!=a+1})},a+1),t.title||t.label||"第 "+(a+1)+" 步")})):null)},t.prototype.renderActions=function(){var e=this,t=this.props,a=t.steps,o=t.store,r=t.readOnly,s=t.disabled,c=t.actionClassName,l=t.actionPrevLabel,p=t.actionNextLabel,d=t.actionNextSaveLabel,u=t.actionFinishLabel,h=t.render,f=(t.classPrefix,t.classnames);if(!Array.isArray(a))return null;var m=this.state.currentStep,g=a[m],y=a[m-2],v=o.loading,b=a[m-1];if(!b)return null;var S=y?n(y,m-2,m,o.data):!1;return b.actions&&Array.isArray(b.actions)?b.actions.length?i.createElement("div",{className:f("Panel-footer")},b.actions.map(function(t,n){return h("action/"+n,t,{key:n,onAction:e.handleAction,disabled:t.disabled||v||s||"prev"===t.actionType&&!S||"next"===t.actionType&&r&&(!!b.api||!g)})})):null:i.createElement("div",{className:f("Panel-footer")},h("prev-btn",{type:"button",label:l,actionType:"prev",className:c},{disabled:v||!S||s,onAction:this.handleAction}),h("next-btn",{type:"button",label:g?b.api?d:p:u,actionType:"next",primary:!g||!!b.api,className:c},{disabled:v||s||r&&(!!b.api||!g),onAction:this.handleAction}))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.steps,o=e.render,r=e.store,s=(e.mode,e.classPrefix),c=this.state.currentStep,p=Array.isArray(n)?n[c-1]:null;return i.createElement("div",{ref:this.domRef,className:l(s+"Panel "+s+"Panel--default "+s+"Wizard",t)},this.renderSteps(),i.createElement("div",{className:s+"Wizard-stepContent clearfix"},p?o("body",a.__assign({},p,{type:"form",wrapWithPanel:!1,api:null}),{key:this.state.currentStep,ref:this.formRef,onSubmit:this.handleSubmit,onAction:this.handleAction,disabled:r.loading,popOverContainer:this.getPopOverContainer,onChange:this.handleChange}):-1===c?"初始中。。":i.createElement("p",{className:"text-danger"},"配置错误")),o("dialog",a.__assign({},r.action&&r.action.dialog,{type:"dialog"}),{key:"dialog",data:r.dialogData,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,show:r.dialogOpen}),this.renderActions(),r.loading?o("spinner",{type:"spinner",overlay:!0,size:"lg"}):null)},t.defaultProps={mode:"horizontal",readOnly:!1,messages:{},actionClassName:"",actionPrevLabel:"上一步",actionNextLabel:"下一步",actionNextSaveLabel:"保存并下一步",actionFinishLabel:"完成"},t.propsList=["steps","mode","messages","actionClassName","actionPrevLabel","actionNextLabel","actionNextSaveLabel","actionFinishLabel","onFinished"],t}(i.Component);t.default=u;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.context;e.registerComponent(this)},t.prototype.componentWillUnmount=function(){var e=this.context;e.unRegisterComponent(this)},t.prototype.doAction=function(e,t,n){return void 0===n&&(n=!1),this.handleAction(void 0,e,t,n)},t.prototype.submitToTarget=function(e,t){var n=this.context;n.send(e,t)},t.prototype.reloadTarget=function(e,t){var n=this.context;n.reload(e,t)},t.prototype.handleDialogConfirm=function(t,n,a,i){e.prototype.handleDialogConfirm.call(this,t,n,a,i);var o=this.props.store,r=this.context;n.reload?r.reload(n.reload,o.data):o.action&&o.action.reload&&r.reload(o.action.reload,o.data)},t.contextType=o.ScopedContext,t=a.__decorate([r.Renderer({test:/(^|\/)wizard$/,storeType:s.ServiceStore.name,name:"wizard",isolateScope:!0})],t)}(u);t.WizardRenderer=h});
;/*!src/renderers/Chart.tsx*/
define("3cbc777",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),i=e("0f9ebdf"),o=e("57d76d7"),a=e("6a2dbb7"),s=e("node_modules/classnames/index"),c=e("4783ce8"),h=e("67d35e6"),l=e("f2e345e"),d=e("1caead1"),p=e("919cbd9"),u=function(t){function i(e){var n=t.call(this,e)||this;return n.refFn=n.refFn.bind(n),n.reload=n.reload.bind(n),n.handleClick=n.handleClick.bind(n),n}return n.__extends(i,t),i.prototype.componentWillMount=function(){var e=this.props,t=e.config,n=e.api,r=e.data,i=e.initFetch,o=e.source;if(this.mounted=!0,o&&/^\$(?:([a-z0-9_.]+)|{.+})$/.test(o)){var a=l.resolveVariableAndFilter(o,r,"| raw");a&&this.renderChart(a)}else n&&i!==!1&&this.reload();t&&this.renderChart(t)},i.prototype.componentDidUpdate=function(e){{var t=this.props;t.api&&t.api.url||t.api}if(d.isApiOutdated(e.api,t.api,e.data,t.data))this.reload();else if(t.source&&/^\$(?:([a-z0-9_.]+)|{.+})$/.test(t.source)){var n=e.source?l.resolveVariableAndFilter(e.source,e.data,"| raw"):null,r=l.resolveVariableAndFilter(t.source,t.data,"| raw");n!==r&&this.renderChart(r||{})}else t.config!==e.config&&this.renderChart(t.config||{})},i.prototype.componentWillUnmount=function(){this.mounted=!1,clearTimeout(this.timer)},i.prototype.handleClick=function(e){var t=this.props,n=t.onAction,r=t.clickAction;r&&n&&n(null,r,e)},i.prototype.refFn=function(t){var n=this,r=this.props.chartRef;t?e(["node_modules/echarts/index","node_modules/echarts/map/js/china","node_modules/echarts/map/js/world"],function(e){window.echarts=e,n.echarts=e.init(t),n.echarts.on("click",n.handleClick),n.unSensor=h.resizeSensor(t,function(){var e=t.offsetWidth,r=t.offsetHeight;n.echarts.resize({width:e,height:r})}),r&&r(n.echarts),n.renderChart()}):(r&&r(null),this.unSensor&&this.unSensor()),this.ref=t},i.prototype.reload=function(e){var t=this,n=this.props,r=n.api,i=n.env,o=n.store,s=n.interval;return e?this.receive(e):void(i&&i.fetcher&&r&&(r&&r.sendOn&&!a.evalExpression(r.sendOn,o.data)||(clearTimeout(this.timer),this.reloadCancel&&(this.reloadCancel(),delete this.reloadCancel,this.echarts&&this.echarts.hideLoading()),this.echarts&&this.echarts.showLoading(),i.fetcher(r,o.data,{cancelExecutor:function(e){return t.reloadCancel=e}}).then(function(e){delete t.reloadCancel,t.renderChart(e.data||{}),t.echarts&&t.echarts.hideLoading(),s&&t.mounted&&(t.timer=setTimeout(t.reload,Math.max(s,3e3)))}).catch(function(e){i.isCancel(e)||(i.notify("error",e),t.echarts&&t.echarts.hideLoading())}))))},i.prototype.receive=function(e){var t=this.props.store;t.updateData(e),this.reload()},i.prototype.renderChart=function(e){if(e&&(this.pending=e),this.echarts){var t=this.props.onDataFilter;if(e=e||this.pending,"string"==typeof e&&(e=new Function("return "+e)()),t&&(e=t(e)||e),e)try{this.echarts.setOption(e,this.props.replaceChartOption)}catch(n){console.warn(n)}}},i.prototype.render=function(){var e=this,t=this.props,n=t.className,i=t.width,o=t.height,a=t.classPrefix,h=this.props.style||{};return i&&(h.width=i),o&&(h.height=o),r.createElement(c.default,{unMountOnHidden:!0,placeholder:r.createElement("div",{className:s(a+"Chart",n),style:h},r.createElement("div",{className:a+"Chart-placeholder"},r.createElement("i",{key:"loading",className:"fa fa-spinner fa-spin fa-2x fa-fw"}))),component:function(){return r.createElement("div",{className:s(a+"Chart",n),style:h,ref:e.refFn})}})},i.defaultProps={offsetY:50,replaceChartOption:!1},i.propsList=[],i}(r.Component);t.Chart=u;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.componentWillMount=function(){e.prototype.componentWillMount.call(this);var t=this.context;t.registerComponent(this)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.context;t.unRegisterComponent(this)},t.contextType=p.ScopedContext,t=n.__decorate([i.Renderer({test:/(^|\/)chart$/,storeType:o.ServiceStore.name,name:"chart"})],t)}(u);t.ChartRenderer=f});
;/*!src/renderers/Video.tsx*/
define("4de0bd7",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),n=e("node_modules/video-react/dist/index"),o=e("9a80175"),s=e("node_modules/classnames/index"),i=e("0f9ebdf"),l=e("f2e345e"),c=e("6a2dbb7"),u=function(e){return e.split(":").reverse().reduce(function(e,t,r){return e+(parseInt(t,10)||0)*Math.pow(60,r)},0)},p=null,d=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(n,t),n.prototype.componentDidMount=function(){var t=this,r=this.props,a=r.src,n=r.video,o=r.config,s=r.manager,i=r.isLive,l=r.autoPlay,c=r.actions;e(["node_modules/flv.js/dist/flv"],function(e){if(e.isSupported()){n=n||s.video&&s.video.video;var r=e.createPlayer({type:"flv",url:a,isLive:i},o);r.attachMediaElement(n),t.flvPlayer=r;var u,p=!1;s.subscribeToOperationStateChange(function(e){var t=e.operation.action;"play"===t?(clearTimeout(u),p||(p=!0,r.load()),r.play()):"pause"===t&&(r.pause(),i&&(u=setTimeout(function(){c.seek(0),r.unload(),p=!1},3e4)))}),r.on(e.Events.RECOVERED_EARLY_EOF,function(){alert("直播已经结束")}),r.on(e.Events.ERROR,function(){alert("视频加载失败")}),l&&setTimeout(function(){return c.play()},200)}})},n.prototype.componentWillUnmount=function(){this.flvPlayer&&(this.flvPlayer.unload(),this.flvPlayer.detachMediaElement())},n.prototype.render=function(){return a.createElement("source",{src:this.props.src,type:this.props.type||"video/x-flv"})},n}(a.Component);t.FlvSource=d;var m=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(n,t),n.prototype.componentDidMount=function(){var t=this,r=this.props,a=r.src,n=r.video,o=(r.config,r.manager),s=(r.isLive,r.autoPlay),i=r.actions;e(["node_modules/hls.js/dist/hls"],function(e){if(e.isSupported()){n=n||o.video&&o.video.video;var r=t.hls=new e({autoStartLoad:!1});r.attachMedia(n),r.loadSource(a);var l=!1;o.subscribeToOperationStateChange(function(e){var t=e.operation.action;"play"===t?(l||(l=!0,r.startLoad()),n.play()):"pause"===t&&(n.pause(),r.stopLoad(),l=!1)}),s&&setTimeout(i.play,200)}})},n.prototype.componentWillUnmount=function(){this.hls&&(this.hls.stopLoad(),this.hls.detachMedia())},n.prototype.render=function(){return a.createElement("source",{src:this.props.src,type:this.props.type||"application/x-mpegURL"})},n}(a.Component);t.HlsSource=m;var f=function(e){function t(t){var r=e.call(this,t)||this;return r.state={posterInfo:null,videoState:{}},r.frameRef=r.frameRef.bind(r),r.cursorRef=r.cursorRef.bind(r),r.playerRef=r.playerRef.bind(r),r.onImageLoaded=r.onImageLoaded.bind(r),r.onClick=r.onClick.bind(r),r}return r.__extends(t,e),t.prototype.onImageLoaded=function(e){var t=this,r=new Image;r.onload=function(){t.setState({posterInfo:{width:r.width,height:r.height}}),r=r.onload=null},r.src=e.target.getAttribute("src")},t.prototype.frameRef=function(e){this.frameDom=e},t.prototype.cursorRef=function(e){this.cursorDom=e},t.prototype.playerRef=function(e){var t=this;this.player=e,e&&e.subscribeToStateChange(function(r){if(t.setState({videoState:r}),r.paused||(p&&p.video&&p!==e&&p.pause(),p=e),t.frameDom&&t.times){for(var a=0,n=t.times,o=n.length;o>a&&!(n[a-1]&&r.currentTime<=n[a+1]-(n[a+1]-n[a])/2)&&!(r.currentTime<=n[a]);)a++;t.currentIndex!==a&&t.moveCursorToIndex(a)}})},t.prototype.moveCursorToIndex=function(e){var t=this.props.classPrefix;if(this.frameDom&&this.cursorDom){var r=this.frameDom.querySelectorAll("."+t+"Video-frame");if(r&&r.length&&r[e]){this.currentIndex=e;var a=r[e],n=this.frameDom.getBoundingClientRect(),o=a.getBoundingClientRect();this.cursorDom.setAttribute("style","width: "+(o.width-4)+"px; height: "+(o.height-4)+"px; left: "+(o.left+2-n.left)+"px; top: "+(o.top+2-n.top)+"px;")}}},t.prototype.jumpToIndex=function(e){if(this.times&&this.player&&this.props.jumpFrame){var t=this.times,r=this.player;r.seek(t[e]-(t[e]-(t[e-1]||0))/2),r.play()}},t.prototype.onClick=function(e){e.preventDefault()},t.prototype.renderFrames=function(){var e=this,t=this.props,r=t.frames,n=t.framesClassName,i=t.columnsCount,c=t.data,p=t.jumpFrame,d=t.classPrefix;if("string"==typeof r&&"$"===r[0]&&(r=l.resolveVariable(r,c)),!r)return null;var m=[],f=this.times=[];return Object.keys(r).forEach(function(e){r[e]&&(f.push(u(e)),m.push({time:e,src:r[e]}))}),m.length?a.createElement("div",{className:s("pos-rlt "+d+"Video-frameList",n),ref:this.frameRef},o.padArr(m,i).map(function(t,r){for(var n=i-t.length,o=[];n--;)o.push("");return a.createElement("div",{className:"pull-in-xxs",key:r},a.createElement("div",{className:d+"Hbox "+d+"Video-frameItem"},t.map(function(t,n){return a.createElement("div",{className:d+"Hbox-col Wrapper--xxs "+d+"Video-frame",key:n,onClick:function(){return e.jumpToIndex(r*i+n)}},a.createElement("img",{className:"w-full",alt:"poster",src:t.src}),a.createElement("div",{className:d+"Text--center"},t.time))}),n?o.map(function(e,t){return a.createElement("div",{className:d+"Hbox-col Wrapper--xxs",key:"blank_"+t})}):null))}),p?a.createElement("span",{ref:this.cursorRef,className:d+"Video-cursor"}):null):null},t.prototype.renderPlayer=function(){var e,t=this.props,r=t.poster,o=t.autoPlay,s=t.muted,i=t.name,l=t.data,u=t.amisConfig,p=(t.locals,t.isLive),f=t.minVideoDuration,h=t.videoType,v=t.playerClassName,y=t.classPrefix,x=t.aspectRatio,g=this.props.src||i&&l&&l[i]||u&&u.value,E=this.state.videoState,b=E.duration&&f&&E.duration<f,P=c.filter(g,l);return e=P&&/\.flv(?:$|\?)/.test(P)&&p||"video/x-flv"===h?a.createElement(d,{autoPlay:o,order:999,isLive:p,src:P}):P&&/\.m3u8(?:$|\?)/.test(P)||"application/x-mpegURL"===h?a.createElement(m,{autoPlay:o,order:999,src:P}):a.createElement("source",{src:P}),a.createElement("div",{className:v},a.createElement(n.Player,{ref:this.playerRef,poster:c.filter(r,l),src:c.filter(g,l),autoPlay:o,muted:s,aspectRatio:x},a.createElement(n.BigPlayButton,{position:"center"}),e,a.createElement(n.Shortcut,{disabled:!0})),b?a.createElement("p",{className:"m-t-xs "+y+"Text--danger"},"视频时长小于 ",f," 秒"):null)},t.prototype.renderPosterAndPlayer=function(){var e=this.props,t=e.poster,r=e.data,n=(e.locals,e.minPosterDimension),o=e.classPrefix,s=this.state.posterInfo||{},i="";return s&&n&&(n.width||n.height)&&(n.width>s.width||n.height>s.height)&&(i=o+"Text--danger"),a.createElement("div",{className:"pull-in-xs"},a.createElement("div",{className:o+"Hbox"},a.createElement("div",{className:o+"Hbox-col"},a.createElement("div",{className:"Wrapper--xs"},a.createElement("img",{onLoad:this.onImageLoaded,className:"w-full",alt:"poster",src:c.filter(t,r)}),a.createElement("p",{className:"m-t-xs"},"封面"," ",a.createElement("span",{className:i},s.width||"-"," x ",s.height||"-"),i?a.createElement("span",null," ","封面尺寸小于"," ",a.createElement("span",{className:o+"Text--danger"},n.width||"-"," x ",n.height||"-")):null))),a.createElement("div",{className:o+"Hbox-col"},a.createElement("div",{className:"Wrapper--xs"},this.renderPlayer()))))},t.prototype.render=function(){var e=this.props,t=e.splitPoster,r=e.className,n=e.classPrefix;return a.createElement("div",{className:s(n+"Video",r),onClick:this.onClick},this.renderFrames(),t?this.renderPosterAndPlayer():this.renderPlayer())},t.defaultProps={columnsCount:8,isLive:!1,jumpFrame:!0,aspectRatio:"auto"},t}(a.Component);t.default=f;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t=r.__decorate([i.Renderer({test:/(^|\/)video$/,name:"video"})],t)}(f);t.VideoRenderer=h});
;/*!src/renderers/Audio.tsx*/
define("211dcc3",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("node_modules/tslib/tslib"),o=t("node_modules/react/index"),n=t("node_modules/lodash/upperFirst"),i=t("0f9ebdf"),s=t("9a80175"),r=t("b7bbd16"),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={isReady:!1,muted:!1,playing:!1,played:0,seeking:!1,volume:.8,prevVolume:.8,loaded:0,playbackRate:1,showHandlePlaybackRate:!1,showHandleVolume:!1},e}return a.__extends(e,t),e.prototype.componentWillUnmount=function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationTimeout)},e.prototype.componentDidMount=function(){var t=this.props.autoPlay,e=t?!0:!1;this.setState({playing:e},this.progress)},e.prototype.progress=function(){if(clearTimeout(this.progressTimeout),this.props.src&&this.audio){var t=this.audio.currentTime||0,e=this.audio.duration,a=t/e,o=this.state.playing;o=1!=a&&o?!0:!1,this.setState({played:a,playing:o}),this.progressTimeout=setTimeout(this.progress,this.props.progressInterval/this.state.playbackRate)}},e.prototype.audioRef=function(t){this.audio=t},e.prototype.load=function(){this.setState({isReady:!0})},e.prototype.handlePlaybackRate=function(t){this.audio.playbackRate=t,this.setState({playbackRate:t,showHandlePlaybackRate:!1})},e.prototype.handleMute=function(){if(this.props.src){var t=this.state,e=t.muted,a=t.prevVolume,o=e?a:0;this.audio.muted=!e,this.setState({muted:!e,volume:o})}},e.prototype.handlePlaying=function(){if(this.props.src){var t=this.state.playing;t?this.audio.pause():this.audio.play(),this.setState({playing:!t})}},e.prototype.getCurrentTime=function(){if(!this.audio||!this.props.src||!this.state.isReady)return"0:00";var t=this.audio.duration,e=this.state.played;return this.formatTime(t*(e||0))},e.prototype.getDuration=function(){if(!this.audio||!this.props.src)return"0:00";if(!this.state.isReady)return this.onDurationCheck(),"0:00";var t=this.audio,e=t.duration,a=t.seekable;return 1/0===e&&a.length>0?a.end(a.length-1):this.formatTime(e)},e.prototype.onDurationCheck=function(){clearTimeout(this.durationTimeout);var t=this.audio&&this.audio.duration;t||(this.audio.load(),this.durationTimeout=setTimeout(this.onDurationCheck,500))},e.prototype.onSeekChange=function(t){if(this.props.src){var e=t.target.value;this.setState({played:e})}},e.prototype.onSeekMouseDown=function(){this.setState({seeking:!0})},e.prototype.onSeekMouseUp=function(t){if(this.state.seeking){var e=t.target.value,a=this.audio.duration;this.audio.currentTime=a*e;var o=this.props.loop,n=this.state.playing;n=1>e||o?n:!1,this.setState({playing:n,seeking:!1})}},e.prototype.setVolume=function(t){if(this.props.src){var e=t.target.value;this.audio.volume=e,this.setState({volume:e,prevVolume:e})}},e.prototype.formatTime=function(t){var e=new Date(1e3*t),a=e.getUTCHours(),o=e.getUTCMinutes(),n=this.pad(e.getUTCSeconds());return a?a+":"+this.pad(o)+":"+n:o+":"+n},e.prototype.pad=function(t){return("0"+t).slice(-2)},e.prototype.toggleHandlePlaybackRate=function(){this.props.src&&this.setState({showHandlePlaybackRate:!this.state.showHandlePlaybackRate})},e.prototype.toggleHandleVolume=function(t){this.props.src&&this.setState({showHandleVolume:t})},e.prototype.renderRates=function(){var t=this,e=this.props,a=e.rates,n=e.classnames,i=this.state,s=i.showHandlePlaybackRate,r=i.playbackRate;return a&&a.length?s?o.createElement("div",{className:n("Audio-rateControl")},a.map(function(e,a){return o.createElement("div",{key:a,className:n("Audio-rateControlItem"),onClick:function(){return t.handlePlaybackRate(e)}},"x",e.toFixed(1))})):o.createElement("div",{className:n("Audio-rates"),onClick:this.toggleHandlePlaybackRate},"x",r.toFixed(1)):null},e.prototype.renderPlay=function(){var t=this.props.classnames,e=this.state.playing;return o.createElement("div",{className:t("Audio-play"),onClick:this.handlePlaying},e?r.pauseIcon:r.playIcon)},e.prototype.renderTime=function(){var t=this.props.classnames;return o.createElement("div",{className:t("Audio-times")},this.getCurrentTime()," / ",this.getDuration())},e.prototype.renderProcess=function(){var t=this.props.classnames,e=this.state.played;return o.createElement("div",{className:t("Audio-process")},o.createElement("input",{type:"range",min:0,max:1,step:"any",value:e||0,onMouseDown:this.onSeekMouseDown,onChange:this.onSeekChange,onMouseUp:this.onSeekMouseUp}))},e.prototype.renderVolume=function(){var t=this,e=this.props.classnames,a=this.state,n=a.volume,i=a.showHandleVolume;return i?o.createElement("div",{className:e("Audio-volumeControl"),onMouseLeave:function(){return t.toggleHandleVolume(!1)}},o.createElement("div",{className:e("Audio-volumeControlIcon"),onClick:this.handleMute},n>0?r.volumeIcon:r.muteIcon),o.createElement("input",{type:"range",min:0,max:1,step:"any",value:n,onChange:this.setVolume})):o.createElement("div",{className:e("Audio-volume"),onMouseEnter:function(){return t.toggleHandleVolume(!0)}},n>0?r.volumeIcon:r.muteIcon)},e.prototype.render=function(){var t=this,e=this.props,a=e.className,i=e.inline,s=e.src,r=e.autoPlay,d=e.loop,u=e.controls,p=e.classnames,l=this.state.muted;return o.createElement("div",{className:p(i?"Audio--inline":"")},o.createElement("audio",{className:p("Audio-original"),ref:this.audioRef,onCanPlay:this.load,autoPlay:r,controls:!0,muted:l,loop:d},o.createElement("source",{src:s})),o.createElement("div",{className:p("Audio",a)},u&&u.map(function(e,a){e="render"+n(e);var i=e;return o.createElement(o.Fragment,{key:a},t[i]())})))},e.defaultProps={inline:!0,autoPlay:!1,playbackRate:1,loop:!1,rates:[],progressInterval:1e3,controls:["rates","play","time","process","volume"]},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"progress",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],e.prototype,"audioRef",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"load",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number]),a.__metadata("design:returntype",void 0)],e.prototype,"handlePlaybackRate",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"handleMute",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"handlePlaying",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"getCurrentTime",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"getDuration",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"onDurationCheck",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],e.prototype,"onSeekChange",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"onSeekMouseDown",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],e.prototype,"onSeekMouseUp",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],e.prototype,"setVolume",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number]),a.__metadata("design:returntype",void 0)],e.prototype,"formatTime",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number]),a.__metadata("design:returntype",void 0)],e.prototype,"pad",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],e.prototype,"toggleHandlePlaybackRate",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Boolean]),a.__metadata("design:returntype",void 0)],e.prototype,"toggleHandleVolume",null),e}(o.Component);e.Audio=d;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__extends(e,t),e=a.__decorate([i.Renderer({test:/(^|\/)audio/,name:"audio"})],e)}(d);e.AudioRenderer=u});
;/*!src/renderers/Nav.tsx*/
define("e6d92e6",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),s=e("node_modules/react/index"),i=e("0f9ebdf"),r=e("01e2bb4"),a=e("6a2dbb7"),o=e("9a80175"),l=e("f2e345e"),c=e("1caead1"),d=e("919cbd9"),u=function(e){function t(t){var n=e.call(this,t)||this;return n.mounted=!0,n.renderItem=n.renderItem.bind(n),n.state={links:n.syncLinks(t,t.source&&/^\$(?:([a-z0-9_.]+)|{.+})$/.test(t.source)&&l.resolveVariable(t.source,t.data)||t.links)},n}return n.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.source;e&&!/^\$(?:([a-z0-9_.]+)|{.+})$/.test(e)&&this.reload()},t.prototype.componentWillReceiveProps=function(e){var t=this.props;if(e.source&&/^\$(?:([a-z0-9_.]+)|{.+})$/.test(e.source))if(e.source!==t.source)this.setState({links:this.syncLinks(e)});else{var n=l.resolveVariable(e.source,e.data),s=l.resolveVariable(t.source,t.data);n!==s&&this.setState({links:this.syncLinks(e,n)})}else t.links!==e.links?this.setState({links:this.syncLinks(e)}):e.location&&t.location!==e.location&&this.setState({links:this.syncLinks(e,this.state.links,!0)})},t.prototype.componentDidUpdate=function(e){var t=this.props;t.source&&!/^\$(?:([a-z0-9_.]+)|{.+})$/.test(t.source)&&c.isApiOutdated(e.source,t.source,e.data,t.data)&&this.reload()},t.prototype.componentWillUnmount=function(){this.mounted=!1},t.prototype.reload=function(e,t,n){var s=this;if(t)return this.receive(t);var i=this.props,r=i.data,l=i.env,c=i.source,d=n?o.createObject(r,n):r;!c||c.sendOn&&!a.evalExpression(c.sendOn,r)||l.fetcher(c,d).then(function(e){if(s.mounted)if(e.ok){var t=Array.isArray(e.data)?e.data:e.data.links||e.data.options||e.data.items||e.data.rows;if(!Array.isArray(t))throw new Error("\bpayload.data.options is not array.");s.setState({links:s.syncLinks(s.props,t,!0)},function(){e.data&&e.data.value&&!o.someTree(s.state.links,function(e){return e.active})&&l.jumpTo(a.filter(e.data.value,r))})}else s.setState({error:e.msg||"获取链接错误"})}).catch(function(e){return s.mounted&&s.setState({error:e.message})})},t.prototype.receive=function(e){{var t=this.props;t.store,t.initApi}this.reload(void 0,void 0,e)},t.prototype.syncLinks=function(e,t,s){void 0===t&&(t=e.links);var i=e.data,l=e.env;return Array.isArray(t)&&t.length?o.mapTree(t,function(e){return n.__assign({},e,r.default(e,i),{active:!s&&e.active||e.activeOn?a.evalExpression(e.activeOn,i):!!(e.hasOwnProperty("to")&&l&&l.isCurrentUrl(a.filter(e.to,i))),unfolded:e.unfolded||e.children&&e.children.some(function(e){return!!e.active})})},1,!0):[]},t.prototype.handleClick=function(e){if(!e.to)return void(e.children&&e.children.length&&this.toggleLink(e));var t=this.props,n=t.env,s=t.data;n&&n.jumpTo(a.filter(e.to,s),e)},t.prototype.toggleLink=function(e){this.setState({links:o.mapTree(this.state.links,function(t){return e===t?n.__assign({},t,{unfolded:!t.unfolded}):t})})},t.prototype.renderItem=function(e,t){var n=this;if(e.hidden===!0||e.visible===!1)return null;var i=!!e.active,r=this.props,a=r.disabled,o=r.togglerClassName,l=r.classnames;return s.createElement("li",{key:t,className:l("Nav-item",e.className,{"is-disabled":a||e.disabled,"is-active":i,"is-unfolded":e.unfolded})},s.createElement("a",{onClick:this.handleClick.bind(this,e)},e.icon?s.createElement("i",{className:l("Nav-itemIcon",e.icon)}):null,e.label),e.children&&e.children.length?s.createElement("i",{onClick:function(){return n.toggleLink(e)},className:l("Nav-itemToggler",o)}):null,e.children&&e.children.length?s.createElement("ul",{className:l("Nav-subItems")},e.children.map(function(e,t){return n.renderItem(e,t)})):null)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.stacked,i=e.classnames,r=this.state.links;return s.createElement("ul",{className:i("Nav",t,n?"Nav--stacked":"Nav--tabs")},r.map(this.renderItem))},t.defaultProps={togglerClassName:"fa fa-angle-down"},t}(s.Component);t.default=u;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.componentWillMount=function(){var e=this.context;e.registerComponent(this)},t.prototype.componentWillUnmount=function(){var t=this.context;t.unRegisterComponent(this),e.prototype.componentWillUnmount.call(this)},t.contextType=d.ScopedContext,t=n.__decorate([i.Renderer({test:/(^|\/)(?:nav|navigation)$/,name:"nav"})],t)}(u);t.NavigationRenderer=p});
;/*!src/renderers/Tasks.tsx*/
define("59d3d63",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),s=e("node_modules/react/index"),n=e("0f9ebdf"),r=e("node_modules/classnames/index"),i=e("node_modules/react-addons-update/index"),l=function(e){function t(t){var a=e.call(this,t)||this;return a.state={items:t.items?t.items.concat():[]},a.handleLoaded=a.handleLoaded.bind(a),a.tick=a.tick.bind(a),a}return a.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.props;t.items!==e.items&&this.setState({items:e.items?e.items.concat():[]})},t.prototype.componentDidMount=function(){this.tick(!!this.props.checkApi)},t.prototype.componentWillUnmount=function(){clearTimeout(this.timer)},t.prototype.tick=function(e){var t=this;void 0===e&&(e=!1);var a=this.props,s=a.loadingStatusCode,n=a.data,r=a.interval,i=a.checkApi,l=a.env,o=this.state.items;return e||o.some(function(e){return e.status===s})?r&&!i?alert("checkApi 没有设置, 不能及时获取任务状态"):void(l&&l.fetcher(i,n).then(this.handleLoaded).catch(function(e){return t.setState({error:e})})):void 0},t.prototype.handleLoaded=function(e){if(!Array.isArray(e.data))return alert("返回格式不正确, 期望 response.data 为数组, 包含每个 task 的状态信息");this.setState({items:e.data});var t=this.props.interval;clearTimeout(this.timer),this.timer=setTimeout(this.tick,t)},t.prototype.submitTask=function(e,t,s){var n=this;void 0===s&&(s=!1);var r=this.props,l=r.submitApi,o=r.reSubmitApi,u=r.loadingStatusCode,d=r.errorStatusCode,c=r.data,m=r.env;return s||l?s&&!o?alert("reSubmitApi 没有配置"):(this.setState(i(this.state,{items:{$splice:[[t,1,a.__assign({},e,{status:u})]]}})),void(m&&m.fetcher(s?o:l,a.__assign({},c,e)).then(function(e){if(e&&e.data)if(Array.isArray(e.data))n.handleLoaded(e);else{var t=n.state.items.map(function(t){return t.key===e.data.key?a.__assign({},t,e.data):t});n.handleLoaded(a.__assign({},e,{data:t}))}else clearTimeout(n.timer),n.timer=setTimeout(n.tick,4)}).catch(function(s){return n.setState(i(n.state,{items:{$splice:[[t,1,a.__assign({},e,{status:d,remark:s.message||s})]]}}))}))):alert("submitApi 没有配置")},t.prototype.render=function(){var e=this,t=this.props,a=t.className,n=t.tableClassName,i=t.taskNameLabel,l=t.operationLabel,o=t.statusLabel,u=t.remarkLabel,d=t.btnText,c=t.retryBtnText,m=t.btnClassName,p=t.retryBtnClassName,b=t.statusLabelMap,h=t.statusTextMap,f=t.readyStatusCode,k=t.loadingStatusCode,v=t.canRetryStatusCode,y=t.render,_=this.state.items,C=this.state.error;return s.createElement("div",{className:a},s.createElement("table",{className:n},s.createElement("thead",null,s.createElement("tr",null,s.createElement("th",null,i),s.createElement("th",null,l),s.createElement("th",null,o),s.createElement("th",null,u))),s.createElement("tbody",null,C?s.createElement("tr",null,s.createElement("td",{colSpan:4},s.createElement("div",{className:"text-danger"},C))):_.map(function(t,a){return s.createElement("tr",{key:a},s.createElement("td",null,t.label),s.createElement("td",null,t.status==k?s.createElement("i",{className:"fa fa-spinner fa-spin fa-2x fa-fw"}):t.status==v?s.createElement("a",{onClick:function(){return e.submitTask(t,a,!0)},className:r("btn",p||m)},c||d):s.createElement("a",{onClick:function(){return e.submitTask(t,a)},className:r("btn",m,{disabled:t.status!==f})},d)),s.createElement("td",null,s.createElement("span",{className:r("label",b&&b[t.status||0])},h&&h[t.status||0])),s.createElement("td",null,t.remark?y(a+"/remark",t.remark):null))}))))},t.defaultProps={className:"b-a bg-white table-responsive",tableClassName:"table table-striped m-b-none",taskNameLabel:"任务名称",operationLabel:"操作",statusLabel:"状态",remarkLabel:"备注说明",btnText:"上线",retryBtnText:"重试",btnClassName:"btn-sm btn-default",retryBtnClassName:"btn-sm btn-danger",statusLabelMap:["label-warning","label-info","label-info","label-danger","label-success","label-danger"],statusTextMap:["未开始","就绪","进行中","出错","已完成","出错"],initialStatusCode:0,readyStatusCode:1,loadingStatusCode:2,errorStatusCode:3,finishStatusCode:4,canRetryStatusCode:5,interval:3e3},t}(s.Component);t.default=l;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t=a.__decorate([n.Renderer({test:/(^|\/)tasks$/,name:"tasks"})],t)}(l);t.TaskRenderer=o});
;/*!src/renderers/Drawer.tsx*/
define("a1b9b52",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),r=e("919cbd9"),i=e("0f9ebdf"),a=e("01a937e"),s=e("node_modules/lodash/findLast"),l=e("9a80175"),d=e("node_modules/mobx/lib/mobx"),p=e("node_modules/react-dom/index"),h=e("4550477"),c=function(e){function t(t){var o=e.call(this,t)||this;return o.$$id=l.guid(),o.state={resizeCoord:0},o.handleSelfClose=o.handleSelfClose.bind(o),o.handleAction=o.handleAction.bind(o),o.handleDrawerConfirm=o.handleDrawerConfirm.bind(o),o.handleDrawerClose=o.handleDrawerClose.bind(o),o.handleDialogConfirm=o.handleDialogConfirm.bind(o),o.handleDialogClose=o.handleDialogClose.bind(o),o.handleChildFinished=o.handleChildFinished.bind(o),o.resizeMouseDown=o.resizeMouseDown.bind(o),o.bindResize=o.bindResize.bind(o),o.removeResize=o.removeResize.bind(o),o.handleExisted=o.handleExisted.bind(o),o.handleFormInit=o.handleFormInit.bind(o),o.handleFormChange=o.handleFormChange.bind(o),o.handleFormSaved=o.handleFormSaved.bind(o),o}return o.__extends(t,e),t.prototype.componentWillMount=function(){var e=this,t=this.props.store;this.reaction=d.reaction(function(){return""+t.loading+t.error},function(){return e.forceUpdate()})},t.prototype.componentWillUnmount=function(){this.reaction&&this.reaction()},t.prototype.buildActions=function(){var e=this.props,t=e.actions,o=e.confirm;if("undefined"!=typeof t)return t;var n=[];return n.push({type:"button",actionType:"close",label:"取消"}),o&&n.push({type:"button",actionType:"confirm",label:"确认",primary:!0}),n},t.prototype.handleSelfClose=function(){var e=this.props,t=e.onClose,o=e.store;o.updateMessage(),t()},t.prototype.handleAction=function(e,t,o){var n=this.props,r=n.onClose,i=n.onAction;"close"===t.actionType?r():i&&i(e,t,o)},t.prototype.handleDrawerConfirm=function(e,t){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];var r=this.props.store;t.mergeData&&1===e.length&&e[0]&&r.updateData(e[0]);var i=r.action,a=i.drawer;a.onConfirm&&a.onConfirm.apply(a,[e,t].concat(o))===!1||r.closeDrawer()},t.prototype.handleDrawerClose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=this.props.store,n=o.action,r=n.drawer;r.onClose&&r.onClose.apply(r,e)===!1||o.closeDrawer()},t.prototype.handleDialogConfirm=function(e,t){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];var r=this.props.store;t.mergeData&&1===e.length&&e[0]&&r.updateData(e[0]);var i=r.action,a=i.dialog;a.onConfirm&&a.onConfirm.apply(a,[e,t].concat(o))===!1||r.closeDialog()},t.prototype.handleDialogClose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=this.props.store,n=o.action,r=n.dialog;r.onClose&&r.onClose.apply(r,e)===!1||o.closeDialog()},t.prototype.handleChildFinished=function(){},t.prototype.handleFormInit=function(e){var t=this.props.store;t.setFormData(e)},t.prototype.handleFormChange=function(e){var t=this.props.store;t.setFormData(e)},t.prototype.handleFormSaved=function(e,t){var n=this.props.store;n.setFormData(o.__assign({},e,t))},t.prototype.handleExisted=function(){var e=this.props.store;e.reset()},t.prototype.renderBody=function(e,t){var n=this.props,r=n.render,i=n.store,a=e,s={key:t,disabled:i.loading,onAction:this.handleAction,onFinished:this.handleChildFinished};return"form"===a.type&&(a=o.__assign({mode:"horizontal",wrapWithPanel:!1,submitText:null},a),s.onChange=this.handleFormChange,s.onInit=this.handleFormInit,s.onSaved=this.handleFormSaved),r("body"+(t?"/"+t:""),a,s)},t.prototype.renderFooter=function(){var e=this,t=this.buildActions();if(!t||!t.length)return null;var o=this.props,r=o.store,i=o.render,a=o.classnames;return n.createElement("div",{className:a("Drawer-footer")},r.loading||r.error?n.createElement("div",{className:a("Drawer-info")},r.loading?i("info",{type:"spinner"},{key:"info"}):null,r.error?n.createElement("span",{className:a("Drawer-msg")},r.msg):null):null,t.map(function(t,o){return i("action/"+o,t,{onAction:e.handleAction,data:r.formData,key:o,disabled:t.disabled||r.loading})}))},t.prototype.renderResizeCtrl=function(){var e=this.props.classnames;return n.createElement("div",{className:e("Drawer-resizeCtrl"),onMouseDown:this.resizeMouseDown},n.createElement("div",{className:e("Drawer-resizeIcon")},"···"))},t.prototype.resizeMouseDown=function(e){var t=this.props,o=t.position,n=t.classPrefix;this.drawer=p.findDOMNode(this).querySelector("."+n+"Drawer-content");var r=p.findDOMNode(this).querySelector("."+n+"Drawer-content ."+n+"Drawer-resizeCtrl"),i=getComputedStyle(this.drawer).width,a=getComputedStyle(this.drawer).height;this.setState({resizeCoord:"left"===o&&e.clientX-r.offsetWidth-parseInt(i.substring(0,i.length-2))||"right"===o&&document.body.offsetWidth-e.clientX-r.offsetWidth-parseInt(i.substring(0,i.length-2))||"top"===o&&e.clientY-r.offsetHeight-parseInt(a.substring(0,a.length-2))||"bottom"===o&&document.body.offsetHeight-e.clientY-r.offsetHeight-parseInt(a.substring(0,a.length-2))||0}),document.body.addEventListener("mousemove",this.bindResize),document.body.addEventListener("mouseup",this.removeResize)},t.prototype.bindResize=function(e){var t=this.props.position,o="calc(100% - 50px)",n=this.drawer.style,r="left"===t&&e.clientX||"right"===t&&document.body.offsetWidth-e.clientX||"top"===t&&e.clientY||"bottom"===t&&document.body.offsetHeight-e.clientY||0;r=r-this.state.resizeCoord+"px",("left"===t||"right"===t)&&(n.maxWidth=o,n.width=r),("top"===t||"bottom"===t)&&(n.maxHeight=o,n.height=r)},t.prototype.removeResize=function(){document.body.removeEventListener("mousemove",this.bindResize),document.body.removeEventListener("mouseup",this.removeResize)},t.prototype.render=function(){var e=this.props,t=e.className,r=e.size,i=e.closeOnEsc,s=e.position,l=e.title,d=e.store,p=e.render,h=e.header,c=e.body,u=e.bodyClassName,m=e.show,f=e.wrapperComponent,g=e.env,y=e.resizable,C=e.overlay,v=e.closeOnOutside,b=e.classPrefix,D=e.classnames,w=f||a.default;return n.createElement(w,{classPrefix:b,className:t,size:r,onHide:this.handleSelfClose,disabled:d.loading,show:m,position:s,overlay:C,onExisted:this.handleExisted,closeOnEsc:i,closeOnOutside:v,container:g&&g.getModalContainer?g.getModalContainer():void 0},n.createElement("div",{className:D("Drawer-header")},l?n.createElement("div",{className:D("Drawer-title")},p("title",l,{data:d.formData})):null,h?p("header",h,{data:d.formData}):null),n.createElement("div",{className:D("Drawer-body",u)},c?this.renderBody(c,"body"):null),this.renderFooter(),c?p("dialog",o.__assign({},d.action&&d.action.dialog,{type:"dialog"}),{key:"dialog",data:d.dialogData,onConfirm:this.handleDialogConfirm,onClose:this.handleDialogClose,onAction:this.handleAction,show:d.dialogOpen}):null,c?p("drawer",o.__assign({},d.action&&d.action.drawer,{type:"drawer"}),{key:"drawer",data:d.drawerData,onConfirm:this.handleDrawerConfirm,onClose:this.handleDrawerClose,onAction:this.handleAction,show:d.drawerOpen}):null,y?this.renderResizeCtrl():null)},t.propsList=["title","size","closeOnEsc","children","bodyClassName","confirm","position","onClose","onConfirm","show","resizable","overlay"],t.defaultProps={title:"",bodyClassName:"",confirm:!0,position:"right",resizable:!1,overlay:!0,closeOnEsc:!1},t}(n.Component);t.default=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.componentWillMount=function(){var t=this.context;t.registerComponent(this),e.prototype.componentWillMount.call(this)},t.prototype.componentWillUnmount=function(){var t=this.context;t.unRegisterComponent(this),e.prototype.componentWillUnmount.call(this)},t.prototype.tryChildrenToHandle=function(e,t,n){var r=this,i=this.context;if(e.fromDialog)return!1;var a=i.getComponents(),l=[],d=this.props,p=d.onConfirm,h=d.store;if(e.target&&l.push.apply(l,e.target.split(",").map(function(e){return i.getComponentByName(e)}).filter(function(e){return e&&e.doAction})),!l.length){var c=s(a,function(e){return"form"===e.props.type});c&&l.push(c);var u=s(a,function(e){return"crud"===e.props.type});u&&l.push(u)}return l.length?(h.markBusying(!0),h.updateMessage(),Promise.all(l.map(function(n){return n.doAction(o.__assign({},e,{from:r.$$id}),t,!0)})).then(function(o){"submit"!==e.type&&"submit"!==e.actionType&&"confirm"!==e.actionType||e.close===!1?e.close&&r.handleSelfClose():p&&p(o,n||e,t,l),h.markBusying(!1)}).catch(function(e){h.updateMessage(e.message,!0),h.markBusying(!1)}),!0):!1},t.prototype.handleAction=function(e,t,o,n,r){void 0===n&&(n=!1);var i=this.props,a=i.onClose,s=i.onAction,l=i.store;if(t.from===this.$$id)return s?s(e,t,o,n,!0):!1;var d=this.context;if(r||l.setCurrentAction(t),"close"===t.actionType)a();else if("confirm"===t.actionType)this.tryChildrenToHandle(t,o)||a();else if("drawer"===t.actionType)l.openDrawer(o);else if("dialog"===t.actionType)l.openDialog(o);else if("reload"===t.actionType)t.target&&d.reload(t.target,o);else if(!this.tryChildrenToHandle(t,o)&&s){var p=s(e,t,o,n,!0);t.close&&(p&&p.then?p.then(this.handleSelfClose):setTimeout(this.handleSelfClose,200))}},t.prototype.handleChildFinished=function(e,t){if(!(t&&t.from===this.$$id||t.close===!1)){var o=this.context,n=o.getComponents().filter(function(e){return!~["drawer","dialog"].indexOf(e.props.type)}),r=this.props.onConfirm;1!==n.length||"form"!==n[0].props.type&&"wizard"!==n[0].props.type||r([e],t,{},n)}},t.prototype.handleDialogConfirm=function(t,o){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e.prototype.handleDialogConfirm.apply(this,[t,o].concat(n));var i=this.context,a=this.props.store,s=a.action;s.reload?i.reload(s.reload,a.data):o.reload?i.reload(o.reload,a.data):i.getComponents().filter(function(e){return"crud"===e.props.type}).forEach(function(e){return e.reload&&e.reload()})},t.prototype.handleDrawerConfirm=function(t,o){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e.prototype.handleDrawerConfirm.call(this,t,o);var i=this.context,a=this.props.store,s=a.action;setTimeout(function(){s.reload?i.reload(s.reload,a.data):o.reload?i.reload(o.reload,a.data):i.getComponents().filter(function(e){return"crud"===e.props.type}).forEach(function(e){return e.reload&&e.reload()})},300)},t.contextType=r.ScopedContext,t=o.__decorate([i.Renderer({test:/(^|\/)drawer$/,storeType:h.ModalStore.name,storeExtendsData:!1,name:"drawer",isolateScope:!0})],t)}(c);t.DrawerRenderer=u});
;/*!src/renderers/Wrapper.tsx*/
define("6a16931",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),t=e("node_modules/react/index"),s=e("0f9ebdf"),o=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(r,e),r.prototype.renderBody=function(){var e=this.props,r=e.children,n=e.body,t=e.render;return r?"function"==typeof r?r(this.props):r:n?t("body",n):null},r.prototype.render=function(){var e=this.props,r=e.className,n=e.size,s=e.classnames;return t.createElement("div",{className:s("Wrapper",n&&"none"!==n?"Wrapper"+(n?"--"+n:""):"",r)},this.renderBody())},r.propsList=["body","className","children","size"],r.defaultProps={className:"bg-white"},r}(t.Component);r.default=o;var a=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(r,e),r=n.__decorate([s.Renderer({test:/(^|\/)wrapper$/,name:"wrapper"})],r)}(o);r.WrapperRenderer=a});
;/*!src/renderers/IFrame.tsx*/
define("f277389",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),s=e("0f9ebdf"),a=e("6a2dbb7"),i=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r.prototype.render=function(){var e=this.props,r=e.className,s=e.src,i=e.width,d=e.height,o=e.frameBorder,l=e.data,u=e.style;return u=t.__assign({},u),void 0!==i&&(u.width=i),void 0!==d&&(u.height=d),n.createElement("iframe",{className:r,frameBorder:o,style:u,src:s?a.filter(s,l):void 0})},r.propsList=["src","className"],r.defaultProps={className:"",width:"100%",height:"100%",frameBorder:0},r}(n.Component);r.default=i;var d=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r=t.__decorate([s.Renderer({test:/(^|\/)iframe$/,name:"iframe"})],r)}(i);r.IFrameRenderer=d});
;/*!src/renderers/QRCode.tsx*/
define("06e3087",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),n=e("node_modules/react/index"),t=e("node_modules/classnames/index"),l=e("0f9ebdf"),d=e("567b83c"),a=e("6a2dbb7"),s=e("node_modules/qrcode.react/lib/index"),u=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(r,e),r.prototype.render=function(){var e=this.props,r=e.className,o=e.codeSize,l=e.backgroundColor,d=e.foregroundColor,u=e.placeholder,c=e.level,i=e.value,f=e.data,m=e.classPrefix;return n.createElement("div",{className:t(m+"QrCode",r)},i?n.createElement(s,{value:a.filter(i,f),size:o,bgColor:l,fgColor:d,level:c||"L"}):n.createElement("span",{className:m+"QrCode--placeholder"},u))},r.defaultProps={codeSize:128,backgroundColor:"#fff",foregroundColor:"#000",level:"L",placeholder:"-"},r}(n.Component);r.default=u;var c=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(r,e),r=o.__decorate([l.Renderer({test:/(^|\/)qr\-?code$/,name:"qrcode"})],r)}(u);r.QRCodeRenderer=c;var i=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(r,e),r=o.__decorate([d.FormItem({type:"qr-code",sizeMutable:!1})],r)}(u);r.QRCodeControlRenderer=i});
;/*!src/renderers/Icon.tsx*/
define("b81abcd",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),o=e("0f9ebdf"),s=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.icon,t=e.vendor,o=e.classnames,s=e.className;return r.createElement("i",{className:o("iconfont"===t?"iconfont icon-"+n:t+" "+t+"-"+n,s)})},n.defaultProps={icon:"",vendor:"fa"},n}(r.Component);n.Icon=s;var i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(n,e),n=t.__decorate([o.Renderer({test:/(^|\/)icon$/,name:"icon"})],n)}(s);n.TplRenderer=i});
;/*!src/compat.ts*/
define("ae4b35c",function(e,r){"use strict";function t(e){var r={},n=!1;return r.controls=Array.isArray(e.controls)?e.controls.concat():[],r.controls=r.controls.map(function(e){if(Array.isArray(e)){var r=t({type:"group",controls:e});return r!==e&&(n=!0),r}return e}),e.fieldSet&&(Array.isArray(e.fieldSet)?e.fieldSet:[e.fieldSet]).forEach(function(o){n=!0,r.controls.push(a.__assign({},t(o),{type:"fieldSet",collapsable:e.collapsable}))}),e.tabs&&(n=!0)&&r.controls.push({type:"tabs",tabs:e.tabs.map(function(e){return t(e)})}),n&&(e=a.__assign({},e,r),delete e.fieldSet,delete e.tabs),e}function n(e){var r=!1,t=e.map(function(e){return Array.isArray(e)?(r=!0,n(e)):e});return r||(t=e),{type:"hbox",columns:t}}Object.defineProperty(r,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),o=e("0f9ebdf"),s=e("5ade3b1"),i=e("635e59b"),l=e("760e4be"),c=e("3abf50d"),d=e("8ee3b98"),u=e("20f7ce6"),f=e("aa22e57"),b=e("9a80175"),m=e("40fc403");o.addSchemaFilter(function(e,r){return r.component!==s.CheckboxControlRenderer?e:(e.label&&"undefined"==typeof e.option&&(e=a.__assign({},e),e.option=e.label,delete e.label),e)}),o.addSchemaFilter(function(e,r){if(r.component!==i.FormRenderer)return e;if(e.fieldSet||e.tabs)e=t(e);else if(Array.isArray(e.controls)){var n=!1,o=e.controls.map(function(e){if(Array.isArray(e)){var r=t({type:"group",controls:e});return r!==e&&(n=!0),r}return e});n&&(e=a.__assign({},e,{controls:o}))}return e}),o.addSchemaFilter(function(e,r){if(r.component!==l.FieldSetRenderer)return e;if(Array.isArray(e.controls)){var n=!1,o=e.controls.map(function(e){if(Array.isArray(e)){var r=t({type:"group",controls:e});return r!==e&&(n=!0),r}return e});n&&(e=a.__assign({},e,{controls:o}))}return e}),o.addSchemaFilter(function(e,r){if(r.component!==c.TabsRenderer)return e;if(Array.isArray(e.tabs)){var n=!1,o=e.tabs.map(function(e){var r=!1,o=(e.controls||[]).map(function(e){if(Array.isArray(e)){var n=t({type:"group",controls:e});return n!==e&&(r=!0),n}return e});return r&&(n=!0,e=a.__assign({},e,{controls:o})),e});n&&(e=a.__assign({},e,{tabs:o}))}return e}),o.addSchemaFilter(function(e,r){if(r.component!==d.CardRenderer&&r.component!==u.ListItemRenderer)return e;if(Array.isArray(e.body)){var t=!1,o=e.body.map(function(e){return Array.isArray(e)?(t=!0,n(e)):e});t&&(e=a.__assign({},e,{body:o}))}return e}),o.addSchemaFilter(function(e,r){return r.component!==f.ButtonGroupControlRenderer?e:((e.btnClassName||e.btnActiveClassName)&&(e=a.__assign({},e,{btnLevel:b.getLevelFromClassName(e.btnClassName),btnActiveLevel:b.getLevelFromClassName(e.btnActiveClassName)}),delete e.btnClassName,delete e.btnActiveClassName),e)}),o.addSchemaFilter(function(e,r){return r.component!==l.FieldSetRenderer?e:(e.className&&!e.size&&/\bfieldset(?:\-(xs|sm|md|lg))?\b/.test(e.className)&&(e=a.__assign({},e,{size:RegExp.$1||"base",className:e.className.replace(/\bfieldset(?:\-(xs|sm|md|lg))?\b/,"")}),delete e.btnClassName,delete e.btnActiveClassName),e)}),o.addSchemaFilter(function(e,r){return r.component!==m.ServiceRenderer?e:(e.body&&e.body.controls&&(e=a.__assign({},e,{controls:e.body.controls}),delete e.body),e)})});
;/*!src/themes/default.ts*/
define("bbacc46",function(s,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("256b65d");e.classPrefix="a-",e.classnames=a.makeClassnames(e.classPrefix),a.theme("default",{classPrefix:e.classPrefix,classnames:e.classnames})});
;/*!src/themes/cxd.ts*/
define("6149e0d",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=e("256b65d");a.theme("cxd",{classPrefix:"cxd-",renderers:{form:{horizontal:{leftFixed:!0}},pagination:{maxButtons:9,showPageInput:!1},fieldset:{collapsable:!1},remark:{icon:"iconfont icon-warning-mark",placement:"right"},tabs:{mode:"line"},"tabs-control":{mode:"line"},"range-control":{showInput:!0,clearable:!0},status:{map:{success:"Status-icon--success",pending:"Status-icon--rolling",fail:"Status-icon--danger",queue:"Status-icon--warning",schedule:"Status-icon--primary"},labelMap:{success:"成功",pending:"运行中",fail:"失败",queue:"排队中",schedule:"调度中"}}}})});
;/*!src/index.tsx*/
define("d019970",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("0f9ebdf");a.render=r.render,a.Renderer=r.Renderer,a.getRendererByName=r.getRendererByName,a.resolveRenderer=r.resolveRenderer,a.filterSchema=r.filterSchema;var d=e("1caead1");a.wrapFetcher=d.wrapFetcher,a.buildApi=d.buildApi;var t=e("6a2dbb7");a.filter=t.filter,a.reigsterTplEnginer=t.reigsterTplEnginer,e("f2e345e"),e("1267928");var o=e("9a80175");a.utils=o;var c=e("67d35e6");a.resizeSensor=c.resizeSensor;var f=e("3bc41ff");a.setIconVendor=f.setIconVendor;var n=e("1953fc1");a.NotFound=n.NotFound,a.AlertComponent=n.AlertComponent,a.alert=n.alert,a.confirm=n.confirm,a.AsideNav=n.AsideNav,a.Button=n.Button,a.Checkbox=n.Checkbox,a.Checkboxes=n.Checkboxes,a.Collapse=n.Collapse,a.ColorPicker=n.ColorPicker,a.DatePicker=n.DatePicker,a.DateRangePicker=n.DateRangePicker,a.Drawer=n.Drawer,a.DropdownButton=n.DropdownButton,a.Icons=n.Icons,a.Html=n.Html,a.Layout=n.Layout,a.LazyComponent=n.LazyComponent,a.Modal=n.Modal,a.Overlay=n.Overlay,a.PopOver=n.PopOver,a.Radios=n.Radios,a.Range=n.Range,a.Rating=n.Rating,a.Select=n.Select,a.Spinner=n.Spinner,a.Switch=n.Switch,a.Textarea=n.Textarea,a.TitleBar=n.TitleBar,a.ToastComponent=n.ToastComponent,a.toast=n.toast,a.Tooltip=n.Tooltip,a.TooltipWrapper=n.TooltipWrapper,a.Tree=n.Tree,e("7648928"),e("30de479"),e("4b7dfbe"),e("d539455"),e("10294a9"),e("bb5331d"),e("d221521"),e("e5683c7"),e("4fd96cf"),e("0afb30b"),e("8ee3b98"),e("29e1f6a"),e("e299c64"),e("5cdd617"),e("6c4a05a"),e("635e59b"),e("610fd77"),e("dd5dcd2"),e("a1e61d2"),e("e1b1eb7"),e("85dae7e"),e("eff65fe"),e("2b693f3"),e("5ade3b1"),e("055a9f9"),e("0f75897"),e("c6f2783"),e("aa22e57"),e("d7f3dfa"),e("2dfb851"),e("64723a8"),e("86ddd97"),e("d09e479"),e("b0a035c"),e("48cac0f"),e("d7f8ee3"),e("ee37b69"),e("90765dc"),e("cf6ad73"),e("162bd80"),e("690a2f4"),e("db77605"),e("9b389bb"),e("3919ee5"),e("647fc2f"),e("8a88f1c"),e("a57a440"),e("27eb5b8"),e("138c832"),e("d5c9577"),e("4be33a0"),e("2406202"),e("5271012"),e("d2efb65"),e("9d9f047"),e("58ea2d5"),e("40fc403"),e("f6d94c0"),e("06cfa10"),e("3ced9f1"),e("33d5c8a"),e("760e4be"),e("3abf50d"),e("7f271f4"),e("fe6117b"),e("5e68c3c"),e("aab7b91"),e("ae1a7f3"),e("fcb3580"),e("20f7ce6"),e("0341968"),e("100b8cb"),e("244f74d"),e("9708de1"),e("66c3054"),e("f6086a9"),e("605b41a"),e("66d455f"),e("c2029c1"),e("f52f675"),e("da6cdad"),e("386af39"),e("8f3f322"),e("94e9d59"),e("29937cf"),e("3cbc777"),e("2390f9f"),e("3a449e1"),e("4de0bd7"),e("211dcc3"),e("e6d92e6"),e("59d3d63"),e("a1b9b52"),e("6a16931"),e("f277389"),e("06e3087"),e("b81abcd");var l=e("919cbd9");a.Scoped=l.default,a.ScopedContext=l.ScopedContext;var i=e("567b83c");a.FormItem=i.FormItem,e("ae4b35c");var b=e("bbacc46");a.classPrefix=b.classPrefix,a.classnames=b.classnames,e("6149e0d");var s=e("f2e345e");a.registerFilter=s.registerFilter,a.filterDate=s.filterDate,a.relativeValueRe=s.relativeValueRe,a.resolveVariable=s.resolveVariable;var p=e("943464a");a.addRule=p.addRule,a.str2rules=p.str2rules;var v=e("d57879c");a.normalizeOptions=v.normalizeOptions;var m=e("b86428a");a.OptionsControl=m.OptionsControl});
;/*!examples/components/SchemaRender.jsx*/
define("ec59a60",function(e,t){"use strict";function n(){return new Promise(function(t){return e(["997c87d"],function(e){return t(e.default)})})}function o(e){return e.$schema||(e=r.__assign({$schema:"https://houtai.baidu.com/v2/schemas/page.json"},e)),t=function(t){function o(e){var n=t.call(this,e)||this;n.state={open:!1},n.toggleCode=function(){return n.setState({open:!n.state.open})},n.close=function(){return n.setState({open:!1})};var o=e.router,r=function(e){e=e||"";var t=o.getCurrentLocation();e&&"#"===e[0]?e=t.pathname+t.search+e:e&&"?"===e[0]&&(e=t.pathname+e);var n=e.indexOf("?"),r=e.indexOf("#"),a=~n?e.substring(0,n):~r?e.substring(0,r):e,i=~n?e.substring(n,~r?r:void 0):"",s=~r?e.substring(r):"";return a?"/"!=a[0]&&!/^https?:\/\//.test(a):a=t.pathname,a+i+s};return n.env={updateLocation:function(e,t){o[t?"replace":"push"](r(e))},isCurrentUrl:function(e){var t=r(e);return o.isActive(t)},jumpTo:function(e){e=r(e),/^https?:\/\//.test(e)?window.location.replace(e):o.push(e)},fetcher:function(e){var t=e.url,n=e.method,o=e.data,r=e.config;return o&&o instanceof FormData||!o||"string"==typeof o||o instanceof Blob||o instanceof ArrayBuffer||(o=JSON.stringify(o),r=r||{},r.headers=r.headers||{},r.headers["Content-Type"]="application/json"),"post"!==n&&"put"!==n&&"patch"!==n?(o&&("delete"===n?r.data=o:r.params=o),s[n](t,r)):s[n](t,o,r)},notify:function(e,t){return c.toast[e]?c.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)},alert:u.alert,confirm:u.confirm,copy:function(e){return console.log("Copy",e)}},n.handleEditorMount=n.handleEditorMount.bind(n),n}return r.__extends(o,t),o.prototype.handleEditorMount=function(e,t){t.languages.json.jsonDefaults.setDiagnosticsOptions({enableSchemaRequest:!0,validate:!0})},o.prototype.renderCode=function(){return a.createElement(d.default,{getComponent:n,editorDidMount:this.handleEditorMount,language:"json",value:e,placeholder:"加载中,请稍后。。。",disabled:!0})},o.prototype.renderSchema=function(){var t=this.props,n=(t.router,t.location),o=t.theme;return i.render(e,{location:n,theme:o},this.env)},o.prototype.render=function(){var e=this.props.classPrefix;return a.createElement("div",{className:"schema-wrapper"},a.createElement(p.default,{classPrefix:e,size:"lg",onHide:this.close,show:this.state.open,position:"left"},this.state.open?this.renderCode():null),this.renderSchema(),a.createElement(f.Portal,{container:function(){return document.querySelector(".navbar-nav")}},a.createElement(l.default,{classPrefix:e,onClick:this.toggleCode,active:this.state.open,iconOnly:!0,tooltip:"查看源码",level:"link",placement:"bottom",className:"view-code"},a.createElement("i",{className:"fa fa-code"}))))},o}(a.Component),t.displayName="SchemaRenderer",t;var t}Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),i=e("d019970"),s=e("node_modules/axios/index"),c=e("6ae88e0"),u=e("bfe4ee0"),l=e("a67acca"),d=e("4783ce8"),p=e("01a937e"),f=e("node_modules/react-overlays/lib/index");t.default=o});
;/*!examples/components/Page/Simple.jsx*/
define("da274e0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"标题",remark:"提示 Tip",body:"内容部分. 可以使用 \\${var} 获取变量。如: `\\$date`: ${date}",aside:"边栏部分",toolbar:"工具栏",initApi:"https://houtai.baidu.com/api/mock2/page/initData"}});
;/*!examples/components/Page/Error.jsx*/
define("2d1fe26",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"标题",remark:"提示 Tip",body:["\n <p>`initApi` 拉取失败时,页面内容区会显示对应的错误信息。</p>\n\n <p>其他提示示例</p>\n ",{type:"alert",level:"success",body:"温馨提示:对页面功能的提示说明,绿色为正向类的消息提示"},{type:"alert",level:"warning",body:"您的私有网络已达到配额,如需更多私有网络,可以通过<a>工单</a>申请"}],aside:"边栏",toolbar:"工具栏",initApi:"https://houtai.baidu.com/api/mock2/page/initDataError"}});
;/*!examples/components/Page/Form.jsx*/
define("71fbd58",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单页面",body:{type:"form",mode:"horizontal",title:"",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{label:"Name",type:"text",name:"name"},{label:"Email",type:"email",name:"email"}]}}});
;/*!examples/components/Form/Mode.jsx*/
define("0fa6650",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单各种展示模式汇总",remark:"展示各种模式的 Form",body:[{type:"grid",columns:[{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式",mode:"normal",controls:[{type:"email",name:"email",required:!0,placeholder:"请输入邮箱",label:"邮箱",size:"full"},{type:"password",name:"password",label:"密码",required:!0,placeholder:"请输入密码",size:"full"},{type:"checkbox",name:"rememberMe",label:"记住登录"},{type:"submit",btnClassName:"btn-default",label:"登录"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式 input md 尺寸",mode:"normal",controls:[{type:"email",name:"email",required:!0,placeholder:"请输入邮箱",label:"邮箱",size:"md",remark:"xxxx",hint:"bla bla bla"},{type:"password",name:"password",label:"密码",required:!0,placeholder:"请输入密码",size:"md"},{type:"checkbox",name:"rememberMe",label:"记住登录"},{type:"submit",btnClassName:"btn-default",label:"登录"}]}]},{type:"grid",columns:[{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"水平模式,左右摆放 左右比率分配 ",mode:"horizontal",autoFocus:!1,horizontal:{left:"col-sm-2",right:"col-sm-10",offset:"col-sm-offset-2"},controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱",required:!0,desc:"表单描述文字"},{type:"password",name:"password",label:"密码",placeholder:"输入密码"},{type:"checkbox",name:"rememberMe",label:"记住登录"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"水平模式,左右摆放 左侧固定宽度 input md 尺寸",mode:"horizontal",autoFocus:!1,horizontal:{leftFixed:"xs"},controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱",required:!0,desc:"表单描述文字",size:"md",remark:"xxxx",hint:"bla bla bla"},{type:"password",name:"password",label:"密码",placeholder:"输入密码",size:"md"},{type:"checkbox",name:"rememberMe",label:"记住登录"}]}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"内联模式",mode:"inline",autoFocus:!1,controls:[{type:"email",name:"email",placeholder:"Enter Email",label:"邮箱",size:"auto"},{type:"password",name:"password",placeholder:"密码",size:"auto",remark:"Bla bla bla"},{type:"checkbox",name:"rememberMe",label:"记住登录",size:"auto"},{type:"submit",label:"登录"},{type:"button",label:"导出",url:"http://www.baidu.com/",level:"success"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式下用数组包起来还能控制一行显示多个",mode:"normal",autoFocus:!1,controls:[{type:"text",name:"name",placeholder:"请输入...",label:"名字",size:"full"},{type:"divider"},{type:"group",controls:[{type:"email",name:"email",placeholder:"输入邮箱",label:"邮箱",size:"full"},{type:"password",name:"password",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email2",mode:"inline",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password2",label:"密码",mode:"inline",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email3",mode:"inline",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password3",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email4",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password4",label:"密码",placeholder:"请输入密码",mode:"inline",size:"full"}]},{type:"divider"},{type:"checkbox",name:"rememberMe",label:"记住我"},{type:"submit",btnClassName:"btn-default",label:"提交"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"水平模式用数组包起来也能控制一行显示多个",mode:"horizontal",autoFocus:!1,controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"divider"},{type:"group",controls:[{type:"email",name:"email2",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password2",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email3",placeholder:"请输入邮箱地址",label:"邮箱",size:"full"},{type:"password",name:"password3",label:"密码",placeholder:"请输入密码",size:"full"},{type:"password",name:"password3",label:"密码",placeholder:"请输入密码",size:"full"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email4",placeholder:"请输入邮箱地址",label:"邮箱",size:"full",columnClassName:"col-sm-6",horizontal:{left:"col-sm-4",right:"col-sm-8"}},{type:"password",name:"password4",label:"密码",placeholder:"请输入密码",mode:"inline",size:"full"}]},{type:"divider"},{type:"group",label:"邮箱",gap:"xs",controls:[{label:!1,type:"email",name:"email5",placeholder:"请输入邮箱地址",size:"full"},{type:"password",name:"password5",label:"密码",placeholder:"请输入密码",mode:"inline",size:"full"}]},{type:"divider"},{type:"group",label:"邮箱",description:"bla bla",gap:"xs",controls:[{type:"email",name:"email6",placeholder:"请输入邮箱地址",mode:"inline"},{type:"password",name:"password6",placeholder:"请输入密码",labelClassName:"w-auto p-r-none",mode:"inline"}]},{type:"divider"},{type:"group",label:"邮箱",description:"bla bla",direction:"vertical",controls:[{type:"email",name:"email9",mode:"normal",placeholder:"请输入邮箱地址",inline:!0,description:"Bla blamfejkf fdjk"},{type:"password",name:"password9",mode:"normal",placeholder:"请输入密码",labelClassName:"w-auto p-r-none"}]},{type:"divider"},{type:"checkbox",name:"rememberMe",label:"记住我"},{type:"submit",btnClassName:"btn-default",label:"Submit"}]},{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"Inline form 用数组包起来还能控制一行显示多个",mode:"inline",submitText:null,autoFocus:!1,controls:[[{type:"email",name:"email",placeholder:"Enter Email",label:"邮箱",size:"full"},{type:"password",name:"password",placeholder:"Password",size:"full"}],{type:"divider"},[{type:"email",name:"email",placeholder:"Enter Email",label:"邮箱",size:"full"},{type:"checkbox",name:"rememberMe",label:"记住我",size:"full"},{type:"button-toolbar",buttons:[{type:"submit",label:"登录"},{type:"button",label:"导出",url:"http://www.baidu.com/",level:"success"}]}]]}]}});
;/*!examples/components/Form/FieldSet.jsx*/
define("65795e0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"FieldSet 示例",body:[{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],collapsable:!0,title:"fieldSet 可以对表单元素做个分组",controls:[{type:"fieldSet",title:"基本信息",controls:[{type:"group",controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"password",name:"password",label:!1,placeholder:"Password"}]},{type:"divider"},{type:"group",controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"checkbox",name:"rememberMe",label:!1,option:"Remember me"}]}]},{title:"其他信息",type:"fieldSet",controls:[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"divider"},{type:"checkbox",name:"rememberMe",option:"记住我"}]}]},{title:"FieldSet 样式集",type:"form",controls:[{title:"超级小",type:"fieldSet",className:"fieldset-xs",controls:[{type:"plain",text:"文本 ..."}]},{title:"小尺寸",type:"fieldSet",className:"fieldset-sm",controls:[{type:"plain",text:"文本 ..."}]},{title:"正常尺寸",type:"fieldSet",className:"fieldset",controls:[{type:"plain",text:"文本 ..."}]},{title:"中大尺寸",type:"fieldSet",className:"fieldset-md",controls:[{type:"plain",text:"文本 ..."}]},{title:"超大尺寸",type:"fieldSet",className:"fieldset-lg",controls:[{type:"plain",text:"文本 ..."}]}]}]}});
;/*!examples/components/Form/Tabs.jsx*/
define("1e9ff20",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Tabs 示例",body:[{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"",actions:[{type:"button",actionType:"dialog",label:"弹框中的 Tabs",level:"info",dialog:{title:"",body:{type:"form",mode:"horizontal",horizontal:{leftFixed:"xs"},api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:[{type:"tabs",tabs:[{title:"基本信息",controls:[[{type:"email",name:"email1",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"password",name:"password",placeholder:"密码",label:!1}],{type:"divider"},[{type:"email",name:"email2",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"checkbox",name:"rememberMe",label:!1,option:"记住我"}]]},{title:"其他信息",controls:[{type:"email",name:"email3",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"divider"},{type:"checkbox",name:"rememberMe2",option:"记住我"}]}]}]}}},{type:"submit",label:"提交",primary:!0}],controls:[{type:"tabs",tabs:[{title:"基本信息",hash:"tab1",controls:[[{type:"email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"password",name:"password",placeholder:"密码",label:!1}],{type:"divider"},[{type:"email",name:"email2",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"checkbox",name:"rememberMe",label:!1,option:"记住我"}]]},{title:"其他信息",hash:"tab2",controls:[{type:"email",name:"email3",placeholder:"请输入邮箱地址",label:"邮箱"},{type:"divider"},{type:"checkbox",name:"rememberMe4",label:"记住我"}]}]}]}]}});
;/*!examples/components/Form/Remote.jsx*/
define("3d2e3d4",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"动态拉取选项",name:"page-form-remote",body:[{type:"form",title:"动态表单元素示例",name:"demo-form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",mode:"horizontal",actions:[{type:"submit",label:"提交"}],controls:[{name:"select",type:"select",label:"动态选项",source:"https://houtai.baidu.com/api/mock2/form/getOptions?waitSeconds=1",description:"通过接口一口气拉取选项",clearable:!0,searchable:!0},{type:"divider"},{name:"select2",type:"select",label:"选项自动补全",autoComplete:"https://houtai.baidu.com/api/mock2/options/autoComplete?term=$term",placeholder:"请输入",description:"通过接口自动补全"},{type:"divider"},{type:"text",name:"text",label:"文本提示",source:"https://houtai.baidu.com/api/mock2/form/getOptions?waitSeconds=1",placeholder:"请选择"},{type:"divider"},{name:"text2",type:"text",label:"文本自动补全",clearable:!0,autoComplete:"https://houtai.baidu.com/api/mock2/options/autoComplete2?term=$term",description:"通过接口自动补全"},{name:"chained",type:"chained-select",label:"级联选项",source:"https://houtai.baidu.com/api/mock2/options/chainedOptions?waitSeconds=1&parentId=$parentId&level=$level&maxLevel=4&waiSeconds=1",desc:"无限级别, 只要 api 返回数据就能继续往下选择. 当没有下级时请返回 null.",value:"a,b"},{type:"divider"},{name:"tree",type:"tree",label:"动态树",source:"https://houtai.baidu.com/api/mock2/options/tree?waitSeconds=1"},{type:"divider"},{name:"matrix",type:"matrix",label:"动态矩阵开关",source:"https://houtai.baidu.com/api/mock2/options/matrix?waitSeconds=1"}]}]}});
;/*!examples/components/Form/Reaction.jsx*/
define("6f89d30",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"显隐切换示例",body:[{name:"hiddenOn",type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Hide On 和 disabledOn 示例",controls:[{type:"radios",name:"type",label:"类型选择",inline:!0,value:"1",options:[{label:"类型 1",value:"1"},{label:"类型 2",value:"2"},{label:"类型 3",value:"3"}],description:'<span class="text-danger">请切换类型来看效果</span>'},{type:"text",label:"所有可见",name:"text1"},{type:"text",label:"类型2 可见",hiddenOn:"data.type != 2",name:"text2"},{type:"text",label:"类型3 不可点",disabledOn:"data.type == 3",name:"text3"},{type:"text",required:!0,label:"必填字段",name:"test4"},{type:"button-toolbar",buttons:[{type:"submit",disabledOn:"data.type == 1",label:"类型1不可点"},{type:"reset",label:"类型3出现且不可点",visibleOn:"data.type == 3",disabledOn:"data.type == 3"},{type:"button",label:"Baidu",href:"http://www.baidu.com?a=1&b=$test4"},{type:"button",actionType:"ajax",label:"No Submit",action:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=5"},{type:"submit",actionType:"ajax",label:"Submit",action:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=5"}]}]}]}});
;/*!examples/components/Form/Validation.jsx*/
define("ee53c68",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单验证示例",toolbar:"<a target='_blank' href='/docs/renderers#formitem'>文档</a>",body:[{type:"form",autoFocus:!1,title:"表单",actions:[{type:"submit",label:"提交"}],api:"https://houtai.baidu.com/api/mock2/form/saveFormFailed?waitSeconds=2",mode:"horizontal",controls:[{type:"text",name:"test",label:"必填",required:!0},{type:"divider"},{name:"test1",type:"email",label:"Email"},{type:"divider"},{name:"url",type:"url",label:"Url"},{type:"divider"},{name:"num",type:"text",label:"数字",validations:"isNumeric"},{type:"divider"},{name:"alpha",type:"text",label:"字母或数字",validations:"isAlphanumeric"},{type:"divider"},{name:"int",type:"text",label:"整形",validations:"isInt"},{type:"divider"},{name:"minLength",type:"text",label:"长度限制",validations:"minLength:2,maxLength:10"},{type:"divider"},{name:"min",type:"text",label:"数值限制",validations:"maximum:10,minimum:2"},{type:"divider"},{name:"reg",type:"text",label:"正则",validations:"matchRegexp:/^abc/",validationErrors:{matchRegexp:"请输入abc开头的好么?"}},{type:"divider"},{name:"test2",type:"text",label:"服务端验证"}]}]}});
;/*!examples/components/Form/Full.jsx*/
define("c9cebe3",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"所有 Form 元素列举",data:{id:1},body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"表单项",mode:"horizontal",autoFocus:!0,controls:[{type:"html",html:"<p>html 片段, 可以用来添加说明性文字</p>"},{type:"divider"},{type:"text",name:"var1",label:"文本"},{type:"divider"},{type:"text",name:"withHelp",label:"带提示信息",desc:"这是一段描述文字"},{type:"divider"},{type:"password",name:"password",label:"密码",inline:!0},{type:"divider"},{type:"number",name:"number",label:"数字",placeholder:"",inline:!0,value:5,min:1,max:10},{type:"divider"},{type:"text",name:"placeholder",label:"Placeholder",placeholder:"Placeholder"},{type:"divider"},{type:"text",disabled:!0,name:"disabled",label:"禁用状态",placeholder:"这里禁止输入内容"},{type:"divider"},{type:"text",name:"text-sug",label:"文本提示",options:["lixiaolong","zhouxingxing","yipingpei","liyuanfang"],addOn:{type:"text",label:"$"}},{type:"divider"},{type:"text",name:"text-sug-multiple",label:"文本提示多选",multiple:!0,options:["lixiaolong","zhouxingxing","yipingpei","liyuanfang"]},{type:"divider"},{type:"static",name:"static",labelClassName:"text-muted",label:"静态展示",value:"这是静态展示的值"},{type:"divider"},{type:"static",name:"static2",label:"静态展示",value:"这是静态展示的值",copyable:{content:"blabla"}},{type:"divider"},{type:"checkboxes",name:"checkboxes",label:"多选框",options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",disabled:!0,value:3}]},{type:"divider"},{type:"checkboxes",name:"checkboxesInline",label:"多选内联",inline:!0,options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"radios",name:"radios",label:"单选",options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",disabled:!0,value:3}]},{type:"divider"},{type:"radios",name:"radiosInline",label:"单选内联",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3}]},{type:"divider"},{type:"button-group",name:"btn-group",label:"按钮组",description:"类似于单选效果",options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"button-group",name:"btn-group2",label:"按钮组",clearable:!0,description:"可清除",options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"button-group",name:"btn-group3",label:"按钮组",multiple:!0,options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}],desc:"可多选"},{type:"divider"},{type:"list",name:"List",label:"List",desc:"也差不多,只是展示方式不一样",options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"list",name:"list2",label:"List",desc:"可多选",multiple:!0,options:[{label:"选项 A",value:1},{label:"选项 B",value:2},{label:"选项 C",value:3}]},{type:"divider"},{type:"list",name:"list4",label:"List",imageClassName:"thumb-lg",desc:"支持放张图片",options:[{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg",value:1,label:"图片1"},{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg",value:2,label:"图片2"},{image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg",value:3,label:"图片3"}]},{type:"divider"},{type:"list",name:"list5",label:"List",desc:"支持文字排版",options:[{value:1,body:'<div class="m-l-sm m-r-sm m-b-sm m-t-xs">\n <div class="text-md p-b-xs b-b m-b-xs">套餐C01</div>\n <div class="text-sm">CPU22核</div>\n <div class="text-sm">内存10GB</div>\n <div class="text-sm">SSD盘1024GB</div>\n </div>'},{value:2,body:'<div class="m-l-sm m-r-sm m-b-sm m-t-xs">\n <div class="text-md p-b-xs b-b m-b-xs">套餐C02</div>\n <div class="text-sm">CPU23核</div>\n <div class="text-sm">内存11GB</div>\n <div class="text-sm">SSD盘1025GB</div>\n </div>'},{value:3,disabled:!0,body:'<div class="m-l-sm m-r-sm m-b-sm m-t-xs">\n <div class="text-md p-b-xs b-b m-b-xs">套餐C03</div>\n <div class="text-sm">CPU24核</div>\n <div class="text-sm">内存12GB</div>\n <div class="text-sm">SSD盘1026GB</div>\n </div>'}]},{type:"divider"},{type:"rating",count:5,value:3,label:"评分",name:"rating",readOnly:!1,half:!1},{type:"divider"},{type:"switch",name:"switch",label:"开关"},{type:"divider"},{type:"checkbox",name:"checkbox",label:"勾选框",option:""},{type:"divider"},{type:"select",name:"type",label:"单选",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2}]},{type:"divider"},{type:"select",name:"type2",label:"多选",multiple:!0,inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2}]},{type:"divider"},{type:"color",name:"color",inline:!0,label:"Color"},{type:"divider"},{type:"date",name:"date",inline:!0,label:"日期"},{type:"divider"},{type:"datetime",name:"datetime",inline:!0,label:"日期+时间"},{type:"divider"},{type:"time",name:"time",inline:!0,label:"时间"},{type:"divider"},{type:"date-range",name:"daterangee",inline:!0,label:"时间范围"},{type:"divider"},[{type:"datetime",name:"starttime",label:"开始时间",maxDate:"${endtime}"},{type:"datetime",name:"endtime",label:"结束时间",minDate:"${starttime}"}],{type:"divider"},{type:"group",label:"时间范围",required:"",gap:"xs",description:"选择自定义后,可以选择日期范围",controls:[{type:"button-group",name:"range1",value:"today",btnActiveClassName:"btn-info active",mode:"inline",options:[{label:"今天",value:"today"},{label:"昨天",value:"yesterday"},{label:"近三天",value:"3days"},{label:"近一周",value:"week"},{label:"自定义",value:"custom"}]},{type:"date",name:"starttime1",maxDate:"${endtime1}",visibleOn:"data.range1 == 'custom'",mode:"inline"},{type:"date",name:"endtime1",minDate:"${starttime1}",visibleOn:"data.range1 == 'custom'",mode:"inline"}]},{type:"divider"},{type:"input-group",size:"sm",inline:!0,label:"Icon 组合",controls:[{type:"icon",addOnclassName:"no-bg",className:"text-sm",icon:"search"},{type:"text",placeholder:"搜索作业ID/名称",inputClassName:"b-l-none p-l-none",name:"jobName"}]},{type:"divider"},{type:"input-group",label:"各种组合",inline:!0,controls:[{type:"select",name:"memoryUnits",options:[{label:"Gi",value:"Gi"},{label:"Mi",value:"Mi"},{label:"Ki",value:"Ki"}],value:"Gi"},{type:"text",name:"memory"},{type:"select",name:"memoryUnits2",options:[{label:"Gi",value:"Gi"},{label:"Mi",value:"Mi"},{label:"Ki",value:"Ki"}],value:"Gi"},{type:"button",label:"Go"}]},{type:"divider"},{type:"image",name:"image",label:"图片"},{type:"divider"},{type:"image",name:"imageCrop",label:"图片带裁剪",crop:{aspectRatio:1.7777777777777777}},{type:"divider"},{type:"image",name:"imageLimit",label:"图片带限制",limit:{width:200,height:200}},{type:"divider"},{type:"textarea",name:"textarea",label:"多行文本"},{type:"divider"},{type:"json-editor",name:"json",value:'{\n "a": 1,\n "b": [\n 1,\n 2,\n 3\n ]\n}',label:"Json Editor"},{type:"divider"},{type:"rich-text",name:"html",label:"Rich Text",value:"<p>Just do <code>IT</code>!</p>"},{type:"divider"},{type:"repeat",name:"repeat",label:"时间频率"},{type:"divider"},{type:"tree",name:"tree",label:"树",options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"divider"},{type:"tree",name:"trees",label:"树多选",multiple:!0,options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"divider"},{type:"tree-select",name:"selecttree",label:"树选择器",options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"divider"},{type:"tree-select",name:"selecttrees",label:"树多选选择器",multiple:!0,options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"nested-select",name:"nestedSelect",label:"级联选择器",size:"sm",options:[{label:"A",value:"a"},{label:"B",value:"b",children:[{label:"B-1",value:"b-1"},{label:"B-2",value:"b-2"},{label:"B-3",value:"b-3"}]},{label:"C",value:"c"}]},{type:"nested-select",name:"nestedSelectMul",label:"级联选择器多选",size:"sm",multiple:!0,options:[{label:"A",value:"a"},{label:"B",value:"b",children:[{label:"B-1",value:"b-1"},{label:"B-2",value:"b-2"},{label:"B-3",value:"b-3"}]},{label:"C",value:"c"}]},{type:"divider"},{type:"matrix",name:"matrix",label:"矩阵开关",rowLabel:"行标题说明",columns:[{label:"列1"},{label:"列2"}],rows:[{label:"行1"},{label:"行2"}]},{type:"divider"},{type:"combo",name:"combo",label:"组合单条",controls:[{name:"a",type:"text",placeholder:"A"},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"combo",name:"combo2",label:"组合多条",multiple:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"A"},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"form",label:"子表单",name:"subForm",btnLabel:"点击设置",form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}},{type:"divider"},{type:"form",label:"子表单多条",name:"subForm2",btnLabel:"点击设置",labelField:"a",multiple:!0,form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}},{type:"divider"},{type:"file",name:"file",label:"文件上传",joinValues:!1},{type:"divider"},{type:"range",name:"range",label:"范围"},{type:"divider"},{type:"button-toolbar",buttons:[{type:"submit",label:"登录"},{type:"reset",label:"重置"},{type:"button",label:"导出",href:"http://www.baidu.com",level:"success"}]}],actions:[{type:"submit",label:"登录"},{type:"reset",label:"重置"},{type:"button",label:"导出",href:"http://www.baidu.com",level:"success"}]}]}});
;/*!examples/components/Form/Static.jsx*/
define("d2ec869",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"所有 Form 元素列举",data:{id:1,image:"https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3893101144,2877209892&fm=23&gp=0.jpg"},body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"表单项静态展示",mode:"horizontal",controls:[{type:"static",label:"文本",value:"文本"},{type:"divider"},{type:"static-tpl",label:"模板",tpl:"自己拼接 HTML 取变量 \\${id}: ${id}"},{type:"divider"},{type:"static-date",label:"日期",value:Math.round(Date.now()/1e3)},{type:"divider"},{type:"static-datetime",label:"日期时间",value:Math.round(Date.now()/1e3)},{type:"divider"},{type:"static-mapping",label:"映射",value:Math.floor(5*Math.random()),map:{"*":"<span class='label label-default'>-</span>",0:"<span class='label label-info'>一</span>",1:"<span class='label label-success'>二</span>",2:"<span class='label label-danger'>三</span>",3:"<span class='label label-warning'>四</span>",4:"<span class='label label-primary'>五</span>"}},{type:"divider"},{type:"static-progress",label:"进度",value:66.66},{type:"divider"},{type:"static-image",label:"图片",name:"image",popOver:{title:"查看大图",body:'<div class="w-xxl"><img class="w-full" src="${image}"/></div>'}},{type:"divider"},{type:"static-json",label:"JSON",value:{a:1,b:2,c:{d:3}}},{type:"divider"},{type:"static",label:"可复制",value:"文本",copyable:{content:"内容,支持变量 ${id}"}},{type:"divider"},{type:"static",name:"text",label:"可快速编辑",value:"文本",quickEdit:!0}]}]}});
;/*!examples/components/Form/Hint.jsx*/
define("435ef3d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"其他类型演示",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Hint demo",mode:"horizontal",horizontal:{leftFixed:!0},controls:[{name:"button",type:"button",label:"ID",value:"",size:"xs",hint:"比如输入 a-xxxx-xxx"},{type:"input-group",size:"md",label:"Icon 组合",controls:[{type:"icon",addOnclassName:"no-bg",className:"text-sm",icon:"search",vendor:"iconfont"},{type:"text",placeholder:"搜索作业ID/名称",inputClassName:"b-l-none p-l-none",name:"jobName"}]},{name:"a",type:"text",label:"ID",value:"",size:"xs",hint:"比如输入 a-xxxx-xxx"},{name:"b",type:"text",label:"ID",value:"",size:"sm",hint:"比如输入 a-xxxx-xxx"},{name:"c",type:"text",label:"ID",value:"",size:"md",hint:"比如输入 a-xxxx-xxx"},{name:"d",type:"text",label:"ID",value:"",size:"lg",hint:"比如输入 a-xxxx-xxx"},{name:"tag",type:"tag",label:"Tag",size:"md",clearable:!0,placeholder:"多个标签以逗号分隔",options:["周小度","杜小度"]}]}]}});
;/*!examples/components/Form/FieldSetInTabs.jsx*/
define("90d3d67",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"FieldSet In Tabs",remark:"",body:{type:"form",collapsable:!0,tabs:[{title:"Tab A",fieldSet:[{title:"Group A",tabs:[{title:"SubTab A",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]},{title:"SubTab B",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]}]},{title:"Group B",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]}]},{title:"Tab B",fieldSet:[{title:"Group A",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]},{title:"Group B",controls:[{name:"a",type:"text",label:"Text"},{name:"a",type:"text",label:"Text"}]}]}]}}});
;/*!examples/components/Form/Combo.jsx*/
define("4f1646b",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Combo 示例",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",mode:"horizontal",controls:[{type:"text",label:"文本",name:"a"},{type:"divider"},{type:"combo",name:"combo1",label:"组合多条多行",multiple:!0,multiLine:!0,value:[{}],controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:"",size:"full"},{name:"b",label:"选项",type:"select",options:["a","b","c"],size:"full"}]},{type:"button",label:"独立排序",level:"dark",className:"m-t-n-xs",size:"sm",actionType:"dialog",visibleOn:"data.combo1.length > 1",dialog:{title:"对 Combo 进行 拖拽排序",body:{type:"form",controls:[{type:"combo",name:"combo1",label:!1,multiple:!0,draggable:!0,addable:!1,removable:!1,value:[{}],controls:[{name:"a",type:"static",tpl:"${a} - ${b}"}]}]},actions:[{type:"submit",mergeData:!0,label:"确认",level:"primary"},{type:"button",actionType:"close",label:"取消"}]}},{type:"combo",name:"combo2",label:"组合多条单行",multiple:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"文本",value:""},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"combo",name:"combo3",label:"组合单条多行",multiLine:!0,controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:"",size:"full"},{name:"b",label:"选项",type:"select",options:["a","b","c"]}]},{type:"combo",name:"combo4",label:"组合单条单行",controls:[{name:"a",type:"text",placeholder:"文本",value:"",size:"full"},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"combo",name:"combo11",label:"组合多条多行内联",multiple:!0,multiLine:!0,inline:!0,value:[{}],controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:""},{name:"b",label:"选项",type:"select",options:["a","b","c"]}]},{type:"combo",name:"combo22",label:"组合多条单行内联",multiple:!0,inline:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"文本",value:""},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"combo",name:"combo33",label:"组合单条多行内联",multiLine:!0,inline:!0,controls:[{name:"a",label:"文本",type:"text",placeholder:"文本",value:""},{name:"b",label:"选项",type:"select",options:["a","b","c"]}]},{type:"combo",name:"combo44",label:"组合单条单行内联",inline:!0,controls:[{name:"a",type:"text",placeholder:"文本",value:""},{name:"b",type:"select",options:["a","b","c"]}]},{type:"divider"},{type:"combo",name:"combo666",label:"组合多条唯一",multiple:!0,value:[{}],controls:[{name:"a",type:"text",placeholder:"文本",value:"",unique:!0},{name:"b",type:"select",options:["a","b","c"],unique:!0}]},{type:"divider"},{type:"combo",name:"combo777",label:"可拖拽排序",multiple:!0,value:[{a:"1",b:"a"},{a:"2",b:"b"}],draggable:!0,controls:[{name:"a",type:"text",placeholder:"文本",unique:!0},{name:"b",type:"select",options:["a","b","c"],unique:!0}]},{type:"divider"},{type:"combo",name:"combo888",label:"可打平只存储值",multiple:!0,flat:!0,value:["red","pink"],draggable:!0,controls:[{name:"a",type:"color",placeholder:"选取颜色"}]},{type:"static",name:"combo888",label:"当前值",tpl:"<pre>${combo888|json}</pre>"}]}]}});
;/*!examples/components/Form/SubForm.jsx*/
define("c6bae66",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"SubForm 示例",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Form elements",mode:"horizontal",controls:[{type:"form",label:"子表单单条",name:"subForm1",btnLabel:"点击设置",form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}},{type:"form",label:"子表单多条",name:"subForm2",labelField:"a",btnLabel:"点击设置",multiple:!0,form:{title:"子表单",controls:[{name:"a",type:"text",label:"Foo"},{name:"b",type:"switch",label:"Boo"}]}}]}]}});
;/*!examples/components/Form/RichText.jsx*/
define("c938c8b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"富文本编辑器",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"Form elements",controls:[{name:"html",type:"rich-text",label:"富文本",value:"<p>Just do <code>IT</code></p>"}]}]}});
;/*!examples/components/Form/Editor.jsx*/
define("9b0994b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Editor",body:[{type:"form",api:"https://houtai.baidu.com/api/mock2/saveForm?waitSeconds=2",title:"",controls:[{name:"javascript",type:"javascript-editor",label:"Javascript",value:"console.log(1, 2, 3);"},{name:"html",type:"html-editor",label:"Html",value:"<html><head><title>Hello</title></head><body><p>world</p></body></html>"},{name:"css",type:"css-editor",label:"CSS",value:"body {color: red;}"}]}]}});
;/*!examples/components/Form/Test.jsx*/
define("b514b73",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={type:"page",body:{type:"form",title:"详情",name:"scene_detail",mode:"horizontal",submitText:"",submitOnChange:!1,actions:[{type:"button",label:"修改",actionType:"drawer",drawer:{type:"form",position:"left",title:"修改内容",controls:[{type:"text",label:"标题",name:"name",required:!0},{label:"描述",type:"text",name:"typeDesc",required:!0},{label:"内容",type:"textarea",name:"contents",required:!0}]}}],controls:[{type:"tree",name:"tree",label:"树",options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"divider"},{type:"tree",name:"trees",label:"树多选",multiple:!0,options:[{label:"Folder A",value:1,children:[{label:"file A",value:2},{label:"file B",value:3}]},{label:"file C",value:4},{label:"file D",value:5}]},{type:"divider"},{name:"select",type:"tree-select",label:"动态选项",source:"https://houtai.baidu.com/api/mock2/form/getTreeOptions?waitSeconds=1",description:"通过接口一口气拉取选项",clearable:!0,searchable:!0},{type:"divider"},{name:"select2",type:"tree-select",label:"选项自动补全",autoComplete:"https://houtai.baidu.com/api/mock2/tree/autoComplete?term=$term",placeholder:"请输入",description:"通过接口自动补全",multiple:!0}]}}});
;/*!examples/components/Form/Table.jsx*/
define("4d416d7",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表格编辑",body:{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:[{type:"combo",name:"colors",label:"Combo",multiple:!0,draggable:!0,multiLine:!0,value:[{color:"green",name:"颜色"}],controls:[{type:"color",name:"color"},{type:"text",name:"name",placeholder:"说明文字"}]},{type:"static",label:"当前值",tpl:"<pre>${colors|json}</pre>"},{type:"table",name:"colors",label:"Table",draggable:!0,columns:[{label:"Color",name:"color",quickEdit:{type:"color",saveImmediately:!0}},{label:"说明文字",name:"name",quickEdit:{type:"text",mode:"inline",saveImmediately:!0}}]},{type:"button",label:"Table2新增一行",target:"table2",actionType:"add"},{type:"table",name:"table2",label:"Table2",editable:!0,addable:!0,removable:!0,draggable:!0,columns:[{name:"a",label:"A"},{name:"b",label:"B",quickEdit:{type:"select",options:[{label:"A",value:"a"},{label:"B",value:"b"}]}}]},{type:"table",name:"table3",label:"Table3(指定第2列只有update时能编辑)",editable:!0,addable:!0,removable:!0,draggable:!0,columns:[{name:"a",label:"A",quickEdit:!0},{name:"b",label:"B",quickEdit:!1,quickEditOnUpdate:{type:"select",options:[{label:"A",value:"a"},{label:"B",value:"b"}]}}]}]}}});
;/*!examples/components/Form/Picker.jsx*/
define("48c8d88",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表格编辑",body:{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:["<p>常规模式</p>",{type:"divider"},{type:"picker",name:"type",label:"单选",value:1,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3},{label:"选项4",value:4}]},{type:"picker",name:"type2",label:"多选",multiple:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3},{label:"选项4",value:4}]},{type:"divider"},"<p>Table 渲染类型</p>",{type:"divider"},{type:"picker",name:"type3",joinValues:!0,valueField:"id",labelField:"engine",label:"单选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4",pickerSchema:{mode:"table",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},columns:[{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}},{type:"picker",name:"type4",joinValues:!0,valueField:"id",labelField:"engine",label:"多选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4,5",multiple:!0,pickerSchema:{mode:"table",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},columns:[{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}},{type:"divider"},"<p>List 渲染类型</p>",{type:"divider"},{type:"picker",name:"type5",joinValues:!0,valueField:"id",labelField:"engine",label:"单选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4",pickerSchema:{mode:"list",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0,labelClassName:"w-sm"},[{name:"browser",label:"Browser",labelClassName:"w-sm"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm"}],{name:"version",label:"Engine version",labelClassName:"w-sm"}]}}},{type:"picker",name:"type6",joinValues:!0,valueField:"id",labelField:"engine",label:"多选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4,5",multiple:!0,pickerSchema:{mode:"list",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0,labelClassName:"w-sm"},[{name:"browser",label:"Browser",labelClassName:"w-sm"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm"}],{name:"version",label:"Engine version",labelClassName:"w-sm"}]}}},{type:"divider"},"<p>Cards 渲染类型</p>",{type:"divider"},{type:"picker",name:"type7",joinValues:!0,valueField:"id",labelField:"engine",label:"单选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4",pickerSchema:{mode:"cards",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},card:{header:{title:"$engine",subTitle:"$platform",subTitlePlaceholder:"暂无说明",avatar:'<%= data.avatar || "http://bos.nj.bpc.baidu.com/showx/146bc2ce1b30f3824838f4208ad2663c" %>',avatarClassName:"pull-left thumb b-3x m-r"},actions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",label:"编辑",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"engine",sortable:!0,quickEdit:!0},{name:"browser",label:"Browser"},{name:"platform",label:"Platform"},{name:"version",label:"version"}]}}},{type:"picker",name:"type8",joinValues:!0,valueField:"id",labelField:"engine",label:"多选",source:"https://houtai.baidu.com/api/sample",size:"lg",value:"4,5",multiple:!0,pickerSchema:{mode:"cards",name:"thelist",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,headerToolbar:{wrapWithPanel:!1,type:"form",className:"text-right",target:"thelist",mode:"inline",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"primary",icon:"fa fa-search pull-left"}}]},card:{header:{title:"$engine",subTitle:"$platform",subTitlePlaceholder:"暂无说明",avatar:'<%= data.avatar || "http://bos.nj.bpc.baidu.com/showx/146bc2ce1b30f3824838f4208ad2663c" %>',avatarClassName:"pull-left thumb b-3x m-r"},actions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",label:"编辑",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"engine",sortable:!0,quickEdit:!0},{name:"browser",label:"Browser"},{name:"platform",label:"Platform"},{name:"version",label:"version"}]}}}]}}});
;/*!examples/components/Form/Formula.jsx*/
define("b382a0f",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"公式示例",body:["<p>通过公式,可以动态的设置目标值。</p>",{type:"form",title:"自动应用",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{type:"number",name:"a",label:"A"},{type:"number",name:"b",label:"B"},{type:"number",name:"sum",label:"和",disabled:!0,description:"自动计算 A + B"},{type:"formula",name:"sum",value:0,formula:"a + b"}]},{type:"form",title:"手动应用",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{type:"number",name:"a",label:"A"},{type:"number",name:"b",label:"B"},{type:"group",controls:[{type:"number",name:"sum",label:"和",disabled:!0,columnClassName:"col-sm-11"},{type:"button",label:"计算",columnClassName:"col-sm-1 v-bottom",target:"theFormula"}]},{type:"formula",name:"sum",id:"theFormula",value:0,formula:"a + b",initSet:!1,autoSet:!1}]},{type:"form",title:"条件应用",api:"https://houtai.baidu.com/api/mock2/form/saveForm",controls:[{type:"radios",name:"radios",inline:!0,label:"radios",options:[{label:"a",value:"a"},{label:"b",value:"b"}],description:"radios 变化会自动清空 B"},{type:"text",name:"b",label:"B"},{type:"formula",name:"b",value:"some string",formula:"''",condition:"${radios}",initSet:!1}]}]}});
;/*!examples/components/Form/Custom.jsx*/
define("78c2565",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});{var n=e("node_modules/tslib/tslib"),r=e("node_modules/react/index"),o=e("d019970");!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.value,n=e.onChange;return r.createElement("div",null,r.createElement("p",null,"这个是个自定义组件。通过注册渲染器的方式实现。"),r.createElement("p",null,"当前值:",t),r.createElement("a",{className:"btn btn-default",onClick:function(){return n(Math.round(1e4*Math.random()))}},"随机修改"))},t=n.__decorate([o.FormItem({type:"custom"})],t)}(r.Component),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props.tip;return r.createElement("div",null,e||"非 FormItem 类型的渲染器注册, 这种不能修改 form")},t=n.__decorate([o.Renderer({test:/(^|\/)my\-renderer$/})],t)}(r.Component)}t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"自定义组件示例",body:[{type:"form",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",actions:[{type:"submit",label:"提交",primary:!0}],controls:[{name:"a",children:function(e){var t=e.value,n=e.onChange;return r.createElement("div",null,r.createElement("p",null,"这个是个自定义组件。最简单直接的方式,不用注册直接使用。"),r.createElement("p",null,"当前值:",t),r.createElement("a",{className:"btn btn-default",onClick:function(){return n(Math.round(1e4*Math.random()))}},"随机修改"))}},{type:"divider"},{name:"b",type:"custom",label:"自定义FormItem"},{type:"divider"},{type:"my-renderer"}]},{type:"my-renderer",tip:"他能放 controls 里面,也能放外面。"}]}});
;/*!examples/components/Form/layoutTest.jsx*/
define("128d6b4",function(e,a){"use strict";function l(e,a){return{type:"wrapper",className:"b-l b-b b-r bg-white",body:['<h4 class="m-t-none m-b">类型:'+e+"</h4>",{type:"tabs",tabs:[{title:"正常模式",hash:"normal",body:{type:"form",title:"",controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),{type:"divider"},n.__assign({label:"内联模式"},a,{type:e,name:"a2",mode:"inline"}),{type:"divider"},n.__assign({label:"表单项内联"},a,{type:e,name:"a22",inline:!0}),{type:"divider"},{type:"tpl",className:"text-info",tpl:"Group 默认模式"},{type:"divider"},{type:"group",controls:[n.__assign({label:"正常"},a,{type:e,name:"a3"}),n.__assign({label:"正常"},a,{type:e,name:"a4"})]},{type:"divider"},{type:"group",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a5"}),n.__assign({label:"正常"},a,{type:e,name:"a6"})]},{type:"divider"},{type:"group",controls:[n.__assign({label:"正常"},a,{type:e,name:"a7"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a8"})]},{type:"divider"},{type:"group",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a9"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a10"})]},{type:"divider"},{type:"tpl",className:"text-info",tpl:"Group 局部 Inline 模式"},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"正常"},a,{type:e,name:"a11"}),n.__assign({label:"正常"},a,{type:e,name:"a12"})]},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a13"}),n.__assign({label:"正常"},a,{type:e,name:"a14"})]},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"正常"},a,{type:e,name:"a15"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a16"})]},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a17"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a18"})]},{type:"divider"},{type:"tpl",className:"text-info",tpl:"Group 局部水平模式"},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"正常"},a,{type:e,name:"a21"}),n.__assign({label:"正常"},a,{type:e,name:"a22"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a23"}),n.__assign({label:"正常"},a,{type:e,name:"a24"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式+宽度",labelClassName:"col-sm-2"},a,{mode:"inline",type:e,name:"a25"}),n.__assign({label:"正常"},a,{type:e,name:"a26"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"正常"},a,{type:e,name:"a27"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a28"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a29"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a291"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式+宽度",labelClassName:"col-sm-2"},a,{mode:"inline",type:e,name:"a292"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a293"})]},{type:"divider"},{type:"tpl",className:"text-info",tpl:"Combo 单行模式"},{type:"divider"},{type:"combo",name:"combo1",label:"组合类型",controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo2",label:"组合类型多选",multiple:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo3",label:"组合类型多行",multiLine:!0,controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo4",label:"组合类型多行多选",multiLine:!0,multiple:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo5",label:"组合类型内联",inline:!0,controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo6",label:"组合类型多选内联",multiple:!0,inline:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo7",label:"组合类型多行内联",multiLine:!0,inline:!0,controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo8",label:"组合类型多行多选内联",inline:!0,multiLine:!0,multiple:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]}]}},{title:"水平模式",hash:"horizontal",body:{type:"form",title:"",mode:"horizontal",controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),{type:"divider"},n.__assign({label:"内联模式"},a,{type:e,name:"a2",mode:"inline"}),{type:"divider"},{type:"tpl",className:"text-info",tpl:"Group 局部正常模式"},{type:"divider"},{type:"group",mode:"normal",controls:[n.__assign({label:"正常"},a,{type:e,name:"a3"}),n.__assign({label:"正常"},a,{type:e,name:"a4"})]},{type:"divider"},{type:"group",mode:"normal",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a5"}),n.__assign({label:"正常"},a,{type:e,name:"a6"})]},{type:"divider"},{type:"group",mode:"normal",controls:[n.__assign({label:"正常"},a,{type:e,name:"a7"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a8"})]},{type:"divider"},{type:"group",mode:"normal",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a9"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a10"})]},{type:"divider"},{type:"tpl",className:"text-info",tpl:"Group 局部 Inline 模式"},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"正常"},a,{type:e,name:"a11"}),n.__assign({label:"正常"},a,{type:e,name:"a12"})]},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a13"}),n.__assign({label:"正常"},a,{type:e,name:"a14"})]},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"正常"},a,{type:e,name:"a15"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a16"})]},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a17"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a18"})]},{type:"divider"},{type:"tpl",className:"text-info",tpl:"Group 局部水平模式"},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"正常"},a,{type:e,name:"a21"}),n.__assign({label:"正常"},a,{type:e,name:"a22"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a23"}),n.__assign({label:"正常"},a,{type:e,name:"a24"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式+宽度",labelClassName:"col-sm-2"},a,{mode:"inline",type:e,name:"a25"}),n.__assign({label:"正常"},a,{type:e,name:"a26"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"正常"},a,{type:e,name:"a27"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a28"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a29"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a291"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式+宽度",labelClassName:"col-sm-2"},a,{mode:"inline",type:e,name:"a292"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a293"})]},{type:"divider"},{type:"tpl",className:"text-info",tpl:"Combo 单行模式"},{type:"divider"},{type:"combo",name:"combo1",label:"组合类型",controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo2",label:"组合类型多选",multiple:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo3",label:"组合类型多行",multiLine:!0,controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo4",label:"组合类型多行多选",multiLine:!0,multiple:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo5",label:"组合类型内联",inline:!0,controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo6",label:"组合类型多选内联",multiple:!0,inline:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo7",label:"组合类型多行内联",multiLine:!0,inline:!0,controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo8",label:"组合类型多行多选内联",inline:!0,multiLine:!0,multiple:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]}]}},{title:"内联模式",hash:"inline",body:{type:"form",title:"",mode:"inline",controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({label:"正常"},a,{type:e,name:"a11"}),{type:"divider"},n.__assign({label:"内联模式"},a,{type:e,name:"a2",mode:"inline"}),n.__assign({label:"内联模式"},a,{type:e,name:"a22",mode:"inline"}),{type:"divider"},{type:"tpl",className:"text-info",tpl:"Group 局部正常模式"},{type:"divider"},{type:"group",mode:"normal",controls:[n.__assign({label:"正常"},a,{type:e,name:"a3"}),n.__assign({label:"正常"},a,{type:e,name:"a4"})]},{type:"divider"},{type:"group",mode:"normal",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a5"}),n.__assign({label:"正常"},a,{type:e,name:"a6"})]},{type:"divider"},{type:"group",mode:"normal",controls:[n.__assign({label:"正常"},a,{type:e,name:"a7"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a8"})]},{type:"divider"},{type:"group",mode:"normal",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a9"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a10"})]},{type:"divider"},{type:"tpl",className:"text-info",tpl:"Group 局部 Inline 模式"},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"正常"},a,{type:e,name:"a11"}),n.__assign({label:"正常"},a,{type:e,name:"a12"})]},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a13"}),n.__assign({label:"正常"},a,{type:e,name:"a14"})]},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"正常"},a,{type:e,name:"a15"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a16"})]},{type:"divider"},{type:"group",mode:"inline",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a17"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a18"})]},{type:"divider"},{type:"tpl",className:"text-info",tpl:"Group 局部水平模式"},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"正常"},a,{type:e,name:"a21"}),n.__assign({label:"正常"},a,{type:e,name:"a22"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a23"}),n.__assign({label:"正常"},a,{type:e,name:"a24"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式+宽度",labelClassName:"col-sm-2"},a,{mode:"inline",type:e,name:"a25"}),n.__assign({label:"正常"},a,{type:e,name:"a26"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"正常"},a,{type:e,name:"a27"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a28"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a29"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a291"})]},{type:"divider"},{type:"group",mode:"horizontal",controls:[n.__assign({label:"内联模式+宽度",labelClassName:"col-sm-2"},a,{mode:"inline",type:e,name:"a292"}),n.__assign({label:"内联模式"},a,{mode:"inline",type:e,name:"a293"})]},{type:"divider"},{type:"tpl",className:"text-info",tpl:"Combo 单行模式"},{type:"divider"},{type:"combo",name:"combo1",label:"组合类型",controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo2",label:"组合类型多选",multiple:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo3",label:"组合类型多行",multiLine:!0,controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo4",label:"组合类型多行多选",multiLine:!0,multiple:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo5",label:"组合类型内联",inline:!0,controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo6",label:"组合类型多选内联",multiple:!0,inline:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo7",label:"组合类型多行内联",multiLine:!0,inline:!0,controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]},{type:"divider"},{type:"combo",name:"combo8",label:"组合类型多行多选内联",inline:!0,multiLine:!0,multiple:!0,value:[{},{}],controls:[n.__assign({label:"正常"},a,{type:e,name:"a1"}),n.__assign({placeholder:"正常"},a,{type:e,name:"a2"})]}]}}]}]}}Object.defineProperty(a,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),i=e("node_modules/react/index"),t=[{label:"选项A",value:"a"},{label:"选项B",value:"b",children:[{label:"选项1",value:"1"},{label:"选项2",value:"2"},{label:"选项3",value:"3"}]},{label:"选项C",value:"c"},{label:"选项D",value:"d"}];a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"各种表单项的不同模式样式测试,记得切到小屏幕测试",body:[{type:"nav",links:[{label:"Text",to:"?renderer=text",activeOn:'!data.renderer || data.renderer == "text"'},{label:"Textarea",to:"?renderer=textarea"},{label:"Number",to:"?renderer=number"},{label:"Checkbox",to:"?renderer=checkbox"},{label:"Checkboxes",to:"?renderer=checkboxes"},{label:"Radios",to:"?renderer=radios"},{label:"List",to:"?renderer=list"},{label:"Date",to:"?renderer=date"},{label:"Switch",to:"?renderer=switch"},{label:"Select",to:"?renderer=select"},{label:"Tree",to:"?renderer=tree"},{label:"Image",to:"?renderer=image"}],stacked:!1},{children:function(e){var a=e.data,n=e.render,o=a.renderer||"text";return i.createElement("div",null,n("body",l(o,{text:{placeholder:"请输入文本",clearable:!0,description:"这是一段很长的描述文字。。。"},number:{placeholder:"请输入数字"},select:{placeholder:"请选择",options:t},checkbox:{option:"选项"},checkboxes:{options:t},radios:{options:t},tree:{options:t},list:{options:t}}[o])))}}]}});
;/*!examples/components/MdRenderer.jsx*/
define("0c7f915",function(e,t){"use strict";function n(e,t){return!(!e.fullPath||e.fullPath!==t.hash)}function r(e){return t=function(t){function r(e){var n=t.call(this,e)||this;return n.ref=null,n.doms=[],n.divRef=n.divRef.bind(n),n.handleClick=n.handleClick.bind(n),n}return o.__extends(r,t),r.prototype.componentDidMount=function(){if(this.renderSchema(),location.hash&&location.hash.length>1){window.history&&"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=document.querySelector('[name="'+location.hash.substring(1)+'"]');e&&e.scrollIntoView()}},r.prototype.componentDidUpdate=function(){this.renderSchema()},r.prototype.componentWillUnmount=function(){this.doms.forEach(function(e){return i.unmountComponentAtNode(e)})},r.prototype.handleClick=function(e){var t=e.target.getAttribute("href");t&&"#"!==t[0]&&!/^http/.test(t)&&(e.preventDefault(),this.props.push(t))},r.prototype.divRef=function(t){this.ref=t,t&&(t.innerHTML=e.html)},r.prototype.renderSchema=function(){var e=this,t=document.querySelectorAll('script[type="text/schema"]');if(t||t.length)for(var n=function(n){var l=t[n],c={};[].slice.apply(l.attributes).forEach(function(e){c[e.name]=e.value});var d=document.createElement("div"),u=c.height?parseInt(c.height,10):200;d.setAttribute("class","doc-play-ground"),d.setAttribute("style","height: "+u+"px;"),l.parentNode.replaceChild(d,l),r.doms.push(d),i.unstable_renderSubtreeIntoContainer(r,a.createElement(s.default,o.__assign({},r.props,{container:function(){return i.findDOMNode(e)},height:u,component:p,code:l.innerText,scope:c.scope,unMountOnHidden:!0,placeholder:"加载中,请稍后。。。"})),d)},r=this,l=0,c=t.length;c>l;l++)n(l,c)},r.prototype.render=function(){var t=this.props.location;return a.createElement("div",{className:"pos-rlt"},a.createElement(l.default,{title:e.title}),a.createElement("div",{className:"markdown-body",ref:this.divRef},"Doc"),e.toc&&e.toc.children&&e.toc.children.length?a.createElement(h.Portal,{container:function(){return document.querySelector("#asideInner")}},a.createElement(u.default,{navigations:[e.toc],renderLink:function(e){var t=e.link,n=(e.active,e.toggleExpand),r=e.depth,o=e.classnames,i=[];return t.children&&i.push(a.createElement("span",{key:"expand-toggle",className:o("AsideNav-itemArrow")})),t.badge&&i.push(a.createElement("b",{key:"badge",className:o("AsideNav-itemBadge",t.badgeClassName||"bg-info")},t.badge)),1===r&&i.push(a.createElement("i",{key:"icon",className:o("AsideNav-itemIcon fa fa-flag")})),i.push(a.createElement("span",{key:"label",className:o("AsideNav-itemLabel")},t.label)),t.fragment?a.createElement("a",{href:"#"+t.fragment},i):a.createElement("a",{onClick:t.children?function(){return n(t)}:null},i)},isActive:function(e){return n(e,t)}})):null)},r}(a.Component),t.displayName="MarkdownRenderer",t;var t}Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),i=e("node_modules/react-dom/index"),l=e("06d307c"),s=e("4783ce8"),c=e("997df41"),d=e("2b3dcdf"),u=e("4e7c54b"),h=e("node_modules/react-overlays/lib/index"),p=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={PlayGround:null},e}return o.__extends(n,t),n.prototype.componentDidMount=function(){var t=this;e(["9b1667d"],function(e){return t.setState({PlayGround:e.default})})},n.prototype.render=function(){var e=this,t=this.props,n=t.container,r=t.height,i=(t.setAsideFolded,t.setHeaderVisible,o.__rest(t,["container","height","setAsideFolded","setHeaderVisible"])),l=this.state.PlayGround;return a.createElement("div",null,a.createElement("span",{style:{display:"block",height:r},ref:"span"}),l?a.createElement(c.default,{container:n,target:function(){return e.refs.span},placement:"bottom",show:!0},a.createElement(d.default,{offset:{x:0,y:-r},style:{height:r},className:"doc-shcema-preview-popover"},a.createElement("div",{className:"doc-schema-preview"},a.createElement(l,o.__assign({},i,{vertical:!0}))))):null)},n}(a.Component);t.default=r});
;/*!examples/components/Doc.jsx*/
define("6a793db",function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("node_modules/react/index"),t=e("0c7f915");n.default={prefix:function(e){var n=e.classnames;return r.createElement("li",{className:n("AsideNav-divider")})},label:"文档",children:[{label:"快速开始",icon:"fa fa-flash",path:"/docs/getting-started",getComponent:function(n,r){return e(["docs/getting_started.md"],function(e){r(null,t.default(e))})}},{label:"高级用法",icon:"fa fa-rocket",path:"/docs/advanced",getComponent:function(n,r){return e(["docs/advanced.md"],function(e){r(null,t.default(e))})}},{label:"渲染器手册",icon:"fa fa-diamond",path:"/docs/renderers",getComponent:function(n,r){return e(["docs/renderers.md"],function(e){r(null,t.default(e))})},children:[{label:"Page",path:"/docs/renderers/page",getComponent:function(n,r){return e(["docs/renderers/Page.md"],function(e){r(null,t.default(e))})}},{label:"Form",path:"/docs/renderers/form",getComponent:function(n,r){return e(["docs/renderers/Form.md"],function(e){r(null,t.default(e))})},children:[{label:"FormItem",path:"/docs/renderers/FormItem",getComponent:function(n,r){return e(["docs/renderers/FormItem.md"],function(e){r(null,t.default(e))})}},{label:"FormItem-List",path:"/docs/renderers/FormItem-List",getComponent:function(n,r){return e(["docs/renderers/FormItem-List.md"],function(e){r(null,t.default(e))})}},{label:"FormItem-Button-Group",path:"/docs/renderers/FormItem-Button-Group",getComponent:function(n,r){return e(["docs/renderers/FormItem-Button-Group.md"],function(e){r(null,t.default(e))})}},{label:"FormItem-Service",path:"/docs/renderers/FormItem-Service",getComponent:function(n,r){return e(["docs/renderers/FormItem-Service.md"],function(e){r(null,t.default(e))})}},{label:"FormItem-Tabs",path:"/docs/renderers/FormItem-Tabs",getComponent:function(n,r){return e(["docs/renderers/FormItem-Tabs.md"],function(e){r(null,t.default(e))})}},{label:"FormItem-Table",path:"/docs/renderers/FormItem-Table",getComponent:function(n,r){return e(["docs/renderers/FormItem-Table.md"],function(e){r(null,t.default(e))})}},{label:"FormItem-HBox",path:"/docs/renderers/FormItem-HBox",getComponent:function(n,r){return e(["docs/renderers/FormItem-HBox.md"],function(e){r(null,t.default(e))})}},{label:"FormItem-Grid",path:"/docs/renderers/FormItem-Grid",getComponent:function(n,r){return e(["docs/renderers/FormItem-Grid.md"],function(e){r(null,t.default(e))})}},{label:"FormItem-Panel",path:"/docs/renderers/FormItem-Panel",getComponent:function(n,r){return e(["docs/renderers/FormItem-Panel.md"],function(e){r(null,t.default(e))})}},{label:"Hidden",path:"/docs/renderers/Hidden",getComponent:function(n,r){return e(["docs/renderers/Hidden.md"],function(e){r(null,t.default(e))})}},{label:"Text",path:"/docs/renderers/Text",getComponent:function(n,r){return e(["docs/renderers/Text.md"],function(e){r(null,t.default(e))})}},{label:"Textarea",path:"/docs/renderers/Textarea",getComponent:function(n,r){return e(["docs/renderers/Textarea.md"],function(e){r(null,t.default(e))})}},{label:"Url",path:"/docs/renderers/Url",getComponent:function(n,r){return e(["docs/renderers/Url.md"],function(e){r(null,t.default(e))})}},{label:"Email",path:"/docs/renderers/Email",getComponent:function(n,r){return e(["docs/renderers/Email.md"],function(e){r(null,t.default(e))})}},{label:"Password",path:"/docs/renderers/Password",getComponent:function(n,r){return e(["docs/renderers/Password.md"],function(e){r(null,t.default(e))})}},{label:"Number",path:"/docs/renderers/Number",getComponent:function(n,r){return e(["docs/renderers/Number.md"],function(e){r(null,t.default(e))})}},{label:"Divider",path:"/docs/renderers/Divider",getComponent:function(n,r){return e(["docs/renderers/Divider.md"],function(e){r(null,t.default(e))})}},{label:"Select",path:"/docs/renderers/Select",getComponent:function(n,r){return e(["docs/renderers/Select.md"],function(e){r(null,t.default(e))})}},{label:"Chained-Select",path:"/docs/renderers/Chained-Select",getComponent:function(n,r){return e(["docs/renderers/Chained-Select.md"],function(e){r(null,t.default(e))})}},{label:"Checkbox",path:"/docs/renderers/Checkbox",getComponent:function(n,r){return e(["docs/renderers/Checkbox.md"],function(e){r(null,t.default(e))})}},{label:"Checkboxes",path:"/docs/renderers/Checkboxes",getComponent:function(n,r){return e(["docs/renderers/Checkboxes.md"],function(e){r(null,t.default(e))})}},{label:"Radios",path:"/docs/renderers/Radios",getComponent:function(n,r){return e(["docs/renderers/Radios.md"],function(e){r(null,t.default(e))})}},{label:"Switch",path:"/docs/renderers/Switch",getComponent:function(n,r){return e(["docs/renderers/Switch.md"],function(e){r(null,t.default(e))})}},{label:"Date",path:"/docs/renderers/Date",getComponent:function(n,r){return e(["docs/renderers/Date.md"],function(e){r(null,t.default(e))})}},{label:"Datetime",path:"/docs/renderers/Datetime",getComponent:function(n,r){return e(["docs/renderers/Datetime.md"],function(e){r(null,t.default(e))})}},{label:"Time",path:"/docs/renderers/Time",getComponent:function(n,r){return e(["docs/renderers/Time.md"],function(e){r(null,t.default(e))})}},{label:"Date-Range",path:"/docs/renderers/Date-Range",getComponent:function(n,r){return e(["docs/renderers/Date-Range.md"],function(e){r(null,t.default(e))})}},{label:"Color",path:"/docs/renderers/Color",getComponent:function(n,r){return e(["docs/renderers/Color.md"],function(e){r(null,t.default(e))})}},{label:"Range",path:"/docs/renderers/Range",getComponent:function(n,r){return e(["docs/renderers/Range.md"],function(e){r(null,t.default(e))})}},{label:"Image",path:"/docs/renderers/Image",getComponent:function(n,r){return e(["docs/renderers/Image.md"],function(e){r(null,t.default(e))})}},{label:"File",path:"/docs/renderers/File",getComponent:function(n,r){return e(["docs/renderers/File.md"],function(e){r(null,t.default(e))})}},{label:"Matrix",path:"/docs/renderers/Matrix",getComponent:function(n,r){return e(["docs/renderers/Matrix.md"],function(e){r(null,t.default(e))})}},{label:"Tree",path:"/docs/renderers/Tree",getComponent:function(n,r){return e(["docs/renderers/Tree.md"],function(e){r(null,t.default(e))})}},{label:"TreeSelect",path:"/docs/renderers/TreeSelect",getComponent:function(n,r){return e(["docs/renderers/TreeSelect.md"],function(e){r(null,t.default(e))})}},{label:"NestedSelect",path:"/docs/renderers/NestedSelect",getComponent:function(n,r){return e(["docs/renderers/NestedSelect.md"],function(e){r(null,t.default(e))})}},{label:"Button",path:"/docs/renderers/Button",getComponent:function(n,r){return e(["docs/renderers/Button.md"],function(e){r(null,t.default(e))})}},{label:"Button-Toolbar",path:"/docs/renderers/Button-Toolbar",getComponent:function(n,r){return e(["docs/renderers/Button-Toolbar.md"],function(e){r(null,t.default(e))})}},{label:"Combo",path:"/docs/renderers/Combo",getComponent:function(n,r){return e(["docs/renderers/Combo.md"],function(e){r(null,t.default(e))})}},{label:"Array",path:"/docs/renderers/Array",getComponent:function(n,r){return e(["docs/renderers/Array.md"],function(e){r(null,t.default(e))})}},{label:"SubForm",path:"/docs/renderers/SubForm",getComponent:function(n,r){return e(["docs/renderers/SubForm.md"],function(e){r(null,t.default(e))})}},{label:"Picker",path:"/docs/renderers/Picker",getComponent:function(n,r){return e(["docs/renderers/Picker.md"],function(e){r(null,t.default(e))})}},{label:"Formula",path:"/docs/renderers/Formula",getComponent:function(n,r){return e(["docs/renderers/Formula.md"],function(e){r(null,t.default(e))})}},{label:"Group",path:"/docs/renderers/Group",getComponent:function(n,r){return e(["docs/renderers/Group.md"],function(e){r(null,t.default(e))})}},{label:"FieldSet",path:"/docs/renderers/FieldSet",getComponent:function(n,r){return e(["docs/renderers/FieldSet.md"],function(e){r(null,t.default(e))})}},{label:"Repeat",path:"/docs/renderers/Repeat",getComponent:function(n,r){return e(["docs/renderers/Repeat.md"],function(e){r(null,t.default(e))})}},{label:"Rich-Text",path:"/docs/renderers/Rich-Text",getComponent:function(n,r){return e(["docs/renderers/Rich-Text.md"],function(e){r(null,t.default(e))})}},{label:"Editor",path:"/docs/renderers/Editor",getComponent:function(n,r){return e(["docs/renderers/Editor.md"],function(e){r(null,t.default(e))})}},{label:"Static",path:"/docs/renderers/Static",getComponent:function(n,r){return e(["docs/renderers/Static.md"],function(e){r(null,t.default(e))})}}]},{label:"Wizard",path:"/docs/renderers/Wizard",getComponent:function(n,r){return e(["docs/renderers/Wizard.md"],function(e){r(null,t.default(e))})}},{label:"Tpl",path:"/docs/renderers/Tpl",getComponent:function(n,r){return e(["docs/renderers/Tpl.md"],function(e){r(null,t.default(e))})}},{label:"Plain",path:"/docs/renderers/Plain",getComponent:function(n,r){return e(["docs/renderers/Plain.md"],function(e){r(null,t.default(e))})}},{label:"Html",path:"/docs/renderers/Html",getComponent:function(n,r){return e(["docs/renderers/Html.md"],function(e){r(null,t.default(e))})}},{label:"Action",path:"/docs/renderers/Action",getComponent:function(n,r){return e(["docs/renderers/Action.md"],function(e){r(null,t.default(e))})}},{label:"Dialog",path:"/docs/renderers/Dialog",getComponent:function(n,r){return e(["docs/renderers/Dialog.md"],function(e){r(null,t.default(e))})}},{label:"Drawer",path:"/docs/renderers/Drawer",getComponent:function(n,r){return e(["docs/renderers/Drawer.md"],function(e){r(null,t.default(e))})}},{label:"CRUD",path:"/docs/renderers/CRUD",getComponent:function(n,r){return e(["docs/renderers/CRUD.md"],function(e){r(null,t.default(e))})},children:[{label:"CRUD-Table",path:"/docs/renderers/CRUD-Table",getComponent:function(n,r){return e(["docs/renderers/CRUD-Table.md"],function(e){r(null,t.default(e))})}},{label:"CRUD-Cards",path:"/docs/renderers/CRUD-Cards",getComponent:function(n,r){return e(["docs/renderers/CRUD-Cards.md"],function(e){r(null,t.default(e))})}},{label:"CRUD-List",path:"/docs/renderers/CRUD-List",getComponent:function(n,r){return e(["docs/renderers/CRUD-List.md"],function(e){r(null,t.default(e))})}}]},{label:"Panel",path:"/docs/renderers/Panel",getComponent:function(n,r){return e(["docs/renderers/Panel.md"],function(e){r(null,t.default(e))})}},{label:"Wrapper",path:"/docs/renderers/Wrapper",getComponent:function(n,r){return e(["docs/renderers/Wrapper.md"],function(e){r(null,t.default(e))})}},{label:"Service",path:"/docs/renderers/Service",getComponent:function(n,r){return e(["docs/renderers/Service.md"],function(e){r(null,t.default(e))})}},{label:"Chart",path:"/docs/renderers/Chart",getComponent:function(n,r){return e(["docs/renderers/Chart.md"],function(e){r(null,t.default(e))})}},{label:"Collapse",path:"/docs/renderers/Collapse",getComponent:function(n,r){return e(["docs/renderers/Collapse.md"],function(e){r(null,t.default(e))})}},{label:"Audio",path:"/docs/renderers/Audio",getComponent:function(n,r){return e(["docs/renderers/Audio.md"],function(e){r(null,t.default(e))})}},{label:"Video",path:"/docs/renderers/Video",getComponent:function(n,r){return e(["docs/renderers/Video.md"],function(e){r(null,t.default(e))})}},{label:"Table",path:"/docs/renderers/Table",getComponent:function(n,r){return e(["docs/renderers/Table.md"],function(e){r(null,t.default(e))})},children:[{label:"Column",path:"/docs/renderers/Column",getComponent:function(n,r){return e(["docs/renderers/Column.md"],function(e){r(null,t.default(e))})}}]},{label:"List",path:"/docs/renderers/List",getComponent:function(n,r){return e(["docs/renderers/List.md"],function(e){r(null,t.default(e))})}},{label:"Card",path:"/docs/renderers/Card",getComponent:function(n,r){return e(["docs/renderers/Card.md"],function(e){r(null,t.default(e))})}},{label:"Cards",path:"/docs/renderers/Cards",getComponent:function(n,r){return e(["docs/renderers/Cards.md"],function(e){r(null,t.default(e))})}},{label:"Field",path:"/docs/renderers/Field",getComponent:function(n,r){return e(["docs/renderers/Field.md"],function(e){r(null,t.default(e))})}},{label:"Tabs",path:"/docs/renderers/Tabs",getComponent:function(n,r){return e(["docs/renderers/Tabs.md"],function(e){r(null,t.default(e))})}},{label:"Grid",path:"/docs/renderers/Grid",getComponent:function(n,r){return e(["docs/renderers/Grid.md"],function(e){r(null,t.default(e))})}},{label:"HBox",path:"/docs/renderers/HBox",getComponent:function(n,r){return e(["docs/renderers/HBox.md"],function(e){r(null,t.default(e))})}},{label:"Button-Group",path:"/docs/renderers/Button-Group",getComponent:function(n,r){return e(["docs/renderers/Button-Group.md"],function(e){r(null,t.default(e))})}},{label:"iFrame",path:"/docs/renderers/iFrame",getComponent:function(n,r){return e(["docs/renderers/iFrame.md"],function(e){r(null,t.default(e))})}},{label:"Nav",path:"/docs/renderers/Nav",getComponent:function(n,r){return e(["docs/renderers/Nav.md"],function(e){r(null,t.default(e))})}},{label:"Tasks",path:"/docs/renderers/Tasks",getComponent:function(n,r){return e(["docs/renderers/Tasks.md"],function(e){r(null,t.default(e))})}},{label:"QRCode",path:"/docs/renderers/QRCode",getComponent:function(n,r){return e(["docs/renderers/QRCode.md"],function(e){r(null,t.default(e))})}},{label:"类型说明",path:"/docs/renderers/Types",getComponent:function(n,r){return e(["docs/renderers/Types.md"],function(e){r(null,t.default(e))})}}]},{label:"开源渲染器",path:"/docs/sdk",icon:"fa fa-cubes",getComponent:function(n,r){return e(["docs/sdk.md"],function(e){r(null,t.default(e))})}},{label:"自定义组件",path:"/docs/dev",icon:"fa fa-code",getComponent:function(n,r){return e(["docs/dev.md"],function(e){r(null,t.default(e))})}},{label:"样式说明",path:"/docs/style",icon:"fa fa-laptop",getComponent:function(n,r){return e(["docs/style.md"],function(e){r(null,t.default(e))})}}]}});
;/*!examples/components/CRUD/Table.jsx*/
define("6f62c3a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"http://amis.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",toolbar:[{type:"button",actionType:"dialog",label:"新增",icon:"fa fa-plus pull-left",primary:!0,dialog:{title:"新增",body:{type:"form",name:"sample-edit-form",api:"post:https://houtai.baidu.com/api/sample",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}}],body:{type:"crud",draggable:!0,api:"https://houtai.baidu.com/api/sample?waitSeconds=1",keepItemSelectionOnPageChange:!0,labelTpl:"${id} ${engine}",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这里的表单项可以配置多个"}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",filterTogglable:!0,headerToolbar:["filter-toggler","bulkActions",{type:"tpl",tpl:"定制内容示例:当前有 ${count} 条数据。",className:"v-middle"},{type:"columns-toggler",align:"right"},{type:"drag-toggler",align:"right"},{type:"pagination",align:"right"}],footerToolbar:["statistics","switch-per-page","pagination"],columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,remark:"Bla bla Bla"},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!1},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0,filterable:{options:[{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"}]}},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",inputClassName:"w-xs",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",tooltip:"查看",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",icon:"fa fa-pencil",tooltip:"编辑",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",tooltip:"删除",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}});
;/*!examples/components/CRUD/ItemActions.jsx*/
define("3ef3393",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",headerToolbar:["bulkActions",{type:"columns-toggler",className:"pull-right",align:"right"},{type:"drag-toggler",className:"pull-right"},{type:"pagination",className:"pull-right"}],itemActions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",label:"编辑",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?",type:"button"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}},type:"button"}],columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,remark:"Bla bla Bla"},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!1},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",type:"text",toggled:!0},{name:"grade",label:"CSS grade",type:"text",toggled:!0}]}}});
;/*!examples/components/CRUD/Grid.jsx*/
define("638fc16",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",mode:"cards",defaultParams:{perPage:12},masonryLayout:!0,filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这只是个示例, 目前搜索对查询结果无效."}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",draggable:!0,card:{header:{title:"$engine",subTitle:"$platform",subTitlePlaceholder:"暂无说明",avatar:'<%= data.avatar || "http://bos.nj.bpc.baidu.com/showx/146bc2ce1b30f3824838f4208ad2663c" %>',avatarClassName:"pull-left thumb b-3x m-r"},actions:[{type:"button",label:"查看",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",label:"编辑",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",label:"删除",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"engine",sortable:!0,quickEdit:!0},{name:"browser",label:"Browser"},{name:"platform",label:"Platform"},{name:"version",label:"version"}]}}}});
;/*!examples/components/CRUD/List.jsx*/
define("c9850e3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",mode:"list",draggable:!0,saveOrderApi:{url:"https://houtai.baidu.com/api/sample/saveOrder"},orderField:"weight",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这只是个示例, 目前搜索对查询结果无效."}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?",type:"button",level:"danger"},{label:"批量修改",actionType:"dialog",level:"info",type:"button",dialog:{title:"批量编辑",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0},[{name:"browser",label:"Browser"},{name:"platform",label:"Platform(s)"}],{name:"version",label:"Engine version"}]}}}});
;/*!examples/components/CRUD/LoadMore.jsx*/
define("660d1f0",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查示例",remark:"bla bla bla",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",mode:"list",draggable:!0,saveOrderApi:{url:"https://houtai.baidu.com/api/sample/saveOrder"},orderField:"weight",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这只是个示例, 目前搜索对查询结果无效."}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/${ids|raw}",confirmText:"确定要批量删除?",type:"button",level:"danger"},{label:"批量修改",actionType:"dialog",level:"info",type:"button",dialog:{title:"批量编辑",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",headerToolbar:["bulkActions"],footerToolbar:["load-more"],listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0,labelClassName:"w-sm pull-left text-muted"},[{name:"browser",label:"Browser",labelClassName:"w-sm pull-left text-muted"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm pull-left text-muted"}],{name:"version",label:"Engine version",labelClassName:"w-sm pull-left text-muted"}]}}}});
;/*!examples/components/CRUD/test.jsx*/
define("d786dfa",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Test 信息:${page}",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",syncLocation:!1,title:null,columns:[{name:"id",label:"ID",width:20},{name:"engine",label:"Rendering engine",sortable:!0},{name:"grade",type:"map",label:"Rendering engine",map:{A:"<span class='label label-info'>A</span>",B:"<span class='label label-success'>B</span>",C:"<span class='label label-primary'>C</span>",X:"<span class='label label-danger'>X</span>","*":"Unkown"}},{type:"operation",label:"操作",width:200,buttons:[{type:"button-group",buttons:[{type:"button",label:"查看",actionType:"dialog",dialog:{disabled:!0,body:{type:"form",controls:[{name:"engine",label:"Rendering engine",type:"static"}]}}},{type:"button",label:"编辑",actionType:"dialog",dialog:{body:{api:"https://houtai.baidu.com/api/sample/$id",type:"form",controls:[{name:"engine",label:"Rendering engine",type:"text"}]}}},{type:"button",label:"删除",level:"danger",actionType:"ajax",confirmText:"确定?",api:"delete:https://houtai.baidu.com/api/sample/$id"}]}]}]}}});
;/*!examples/components/CRUD/Fix.jsx*/
define("a9122cf",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=e("node_modules/tslib/tslib"),a={type:"table",data:[{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Misc",browser:"PSP browser",platform:"PSP",version:"-",grade:"C",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:55,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"},{engine:"Other browsers",browser:"All others",platform:"-",version:"-",grade:"U",progress:50,status:!0,image:"http://hiphotos.baidu.com/fex/%70%69%63/item/0d338744ebf81a4cff2f4cd6de2a6059252da694.jpg",weight:56,others:null,createdAt:"2017-11-17T08:47:50.000Z",updatedAt:"2017-11-17T08:47:50.000Z"}].map(function(e,t){return r.__assign({},e,{id:t+1})}),columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,fixed:"left"},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0,fixed:"left"},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0,fixed:"right"},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0,fixed:"right"}]};t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"固顶和列固定示例",remark:"bla bla bla",body:[a,"<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>","<div>分割</div>",a]}});
;/*!examples/components/CRUD/Aside.jsx*/
define("97ac54d",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"带边栏联动",aside:{type:"form",wrapWithPanel:!1,target:"window",controls:[{type:"tree",name:"cat",inputClassName:"no-border",submitOnChange:!0,options:[{label:"分类1",value:"cat1"},{label:"分类2",value:"cat2"},{label:"分类3",value:"cat3"},{label:"分类4",value:"cat4"}]}]},toolbar:[{type:"button",actionType:"dialog",label:"新增",primary:!0,dialog:{title:"新增",body:{type:"form",name:"sample-edit-form",api:"post:https://houtai.baidu.com/api/sample",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}}],body:{type:"crud",draggable:!0,api:"https://houtai.baidu.com/api/sample",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这里的表单项可以配置多个"}]},bulkActions:[{label:"批量删除",actionType:"ajax",api:"delete:https://houtai.baidu.com/api/sample/$ids",confirmText:"确定要批量删除?"},{label:"批量修改",actionType:"dialog",dialog:{title:"批量编辑",name:"sample-bulk-edit",body:{type:"form",api:"https://houtai.baidu.com/api/sample/bulkUpdate2",controls:[{type:"hidden",name:"ids"},{type:"text",name:"engine",label:"Engine"}]}}}],quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:130,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}});
;/*!examples/components/CRUD/Fields.jsx*/
define("11455ca",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"增删改查列类型汇总",body:{type:"crud",api:"https://houtai.baidu.com/api/mock2/crud/list",columns:[{name:"id",label:"ID",type:"text"},{name:"text",label:"文本",type:"text"},{type:"image",label:"图片",name:"image",popOver:{title:"查看大图",body:'<div class="w-xxl"><img class="w-full" src="${image}"/></div>'}},{name:"date",type:"date",label:"日期"},{name:"progress",label:"进度",type:"progress"},{name:"boolean",label:"状态",type:"status"},{name:"boolean",label:"开关",type:"switch"},{name:"type",label:"映射",type:"mapping",map:{"*":"其他:${type}",1:"<span class='label label-info'>漂亮</span>",2:"<span class='label label-success'>开心</span>",3:"<span class='label label-danger'>惊吓</span>",4:"<span class='label label-warning'>紧张</span>"}},{name:"list",type:"list",label:"List",placeholder:"-",size:"sm",listItem:{title:"${title}",subTitle:"${description}"}},{name:"json",type:"json",label:"Json"}]}}});
;/*!examples/components/CRUD/JumpNext.jsx*/
define("4e9a795",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"操作并下一个",remark:"当存在下一条时,支持直接打开下一条操作。",body:{type:"crud",title:"",api:"https://houtai.baidu.com/api/sample/list",columnsTogglable:!1,columns:[{name:"id",label:"ID",width:20,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",type:"text",toggled:!0},{name:"browser",label:"Browser",type:"text",toggled:!0},{type:"operation",label:"操作",width:130,buttons:[{type:"button",icon:"fa fa-pencil",actionType:"dialog",nextCondition:"true",_nextCondition:'可以设置条件比如: data.grade == "B"',dialog:{title:"编辑",actions:[{type:"button",actionType:"prev",level:"info",visibleOn:"data.hasPrev",label:"上一个"},{type:"button",actionType:"cancel",label:"关闭"},{type:"submit",actionType:"next",visibleOn:"data.hasNext",label:"保存并下一个",level:"primary"},{type:"submit",visibleOn:"!data.hasNext",label:"保存",level:"primary"},{type:"button",actionType:"next",level:"info",visibleOn:"data.hasNext",label:"下一个"}],body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}}],toggled:!0}]}}});
;/*!examples/components/CRUD/Keyboards.jsx*/
define("ddb86b3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"Table 全键盘操作示例",remark:"bla bla bla",body:[{type:"plain",className:"text-danger",text:"请通过上下左右键切换单元格,按 `Space` 键进入编辑模式,按 `Enter` 提交编辑,并最后点左上角的全部保存完成操作。"},{type:"crud",className:"m-t",api:"https://houtai.baidu.com/api/sample",quickSaveApi:"https://houtai.baidu.com/api/sample/bulkUpdate",quickSaveItemApi:"https://houtai.baidu.com/api/sample/$id",columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",sortable:!0,quickEdit:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,quickEdit:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,quickEdit:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{type:"select",options:["A","B","C","D","X"]},type:"text",toggled:!0}]}]}});
;/*!examples/components/CRUD/Footable.jsx*/
define("cd82b91",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"开启单条底部展示功能",body:{type:"crud",draggable:!0,api:"https://houtai.baidu.com/api/sample",footable:{expand:"first"},columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",breakpoint:"*",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],inputClassName:"w-xs",saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,breakpoint:"*",buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}});
;/*!examples/components/CRUD/Nested.jsx*/
define("77adc0a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"支持多层嵌套,列数据中有 children 字段即可。建议不超过10层",body:{type:"crud",api:"https://houtai.baidu.com/api/mock2/crud/table2",columns:[{name:"id",label:"ID",sortable:!0,type:"text",toggled:!0},{name:"engine",label:"Rendering engine",sortable:!0,searchable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!0},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",quickEdit:!0,type:"text",toggled:!0},{name:"grade",label:"CSS grade",quickEdit:{mode:"inline",type:"select",options:["A","B","C","D","X"],inputClassName:"w-xs",saveImmediately:!0},type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}});
;/*!examples/components/CRUD/MergeCell.jsx*/
define("31055e7",function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"支持自动合并单元格,从左到右,可配置从左侧起多少列内启动自动合并单元格,当前配置 3",body:{type:"table",data:{items:[{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"A"},{engine:"Trident",browser:"Internet Explorer 4.2",platform:"Win 95+",version:"4",grade:"B"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 95+",version:"4",grade:"C"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"3",grade:"A"},{engine:"Trident",browser:"AOL browser (AOL desktop)",platform:"Win 98",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"4",grade:"A"},{engine:"Gecko",browser:"Firefox 1.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"A"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"B"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"C"},{engine:"Gecko",browser:"Firefox 2.0",platform:"Win 98+ / OSX.2+",version:"5",grade:"D"}]},combineNum:3,columns:[{name:"engine",label:"Rendering engine"},{name:"browser",label:"Browser"},{name:"platform",label:"Platform(s)"},{name:"version",label:"Engine version"},{name:"grade",label:"CSS grade"}]}}});
;/*!examples/components/CRUD/LoadOnce.jsx*/
define("8624815",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"一次性加载,前端分页,前端排序",body:{type:"crud",loadDataOnce:!0,api:"https://houtai.baidu.com/api/sample?waitSeconds=1",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",addOn:{label:"搜索",type:"submit"}}]},columns:[{name:"id",label:"ID",width:20,sortable:!0,type:"text",toggled:!0,remark:"Bla bla Bla"},{name:"engine",label:"Rendering engine",sortable:!0,type:"text",toggled:!0},{name:"browser",label:"Browser",sortable:!0,type:"text",toggled:!1},{name:"platform",label:"Platform(s)",sortable:!0,type:"text",toggled:!0},{name:"version",label:"Engine version",type:"text",toggled:!0},{name:"grade",label:"CSS grade",type:"text",toggled:!0},{type:"operation",label:"操作",width:100,buttons:[{type:"button",icon:"fa fa-eye",actionType:"dialog",tooltip:"查看",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"},{type:"divider"},{type:"html",html:"<p>添加其他 <span>Html 片段</span> 需要支持变量替换todo.</p>"}]}}},{type:"button",icon:"fa fa-pencil",tooltip:"编辑",actionType:"drawer",drawer:{position:"left",size:"lg",title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"select",name:"grade",label:"CSS grade",options:["A","B","C","D","X"]}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",tooltip:"删除",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],toggled:!0}]}}});
;/*!examples/components/Sdk/Test.jsx*/
define("6baaf1a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("node_modules/tslib/tslib"),a=e("node_modules/react/index"),l=e("06d307c"),i=e("d019970"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={data:{name:"Amis Renderer",id:1,email:"xxx@xxx.com"}},t.handleClick=function(){t.setState({data:{name:"Amis Renderer",id:Math.round(1e3*Math.random()),email:"xxx@xxx.com"}})},t}return n.__extends(t,e),t.prototype.renderForm=function(){var e=this;return i.render({title:"",type:"form",controls:[{type:"text",name:"name",label:"Name"},{type:"text",name:"id",label:"Id"},{type:"email",name:"email",label:"Email"},{type:"static",label:"最后更新时间",name:"lastModified"}]},{data:this.state.data,onFailed:function(e,t){console.log("Submit Failed",t,"\n",e)},onSubmit:function(e){console.log("Submit",e)},onChange:function(t,a){e.setState({data:n.__assign({},t,{lastModified:new Date})}),console.log("Diff",a)}})},t.prototype.render=function(){return a.createElement("div",null,a.createElement(l.default,{title:"API 调用 集成在你的 React 应用中"}),a.createElement("div",{className:"wrapper"},this.renderForm(),a.createElement("button",{onClick:this.handleClick},"随机修改"),a.createElement("h3",null,"当前值"),a.createElement("pre",null,a.createElement("code",null,JSON.stringify(this.state.data,null,2)))))},t}(a.Component);t.default=o});
;/*!examples/components/Form/Schem.jsx*/
define("324bb13",function(e,t){"use strict";function r(e,t,i){var l=i.required||[],m={},s={},o="text";if("integer"===e.type)o="number","number"==typeof e.minimum&&(m.min=e.minimum);else if("array"===e.type){o="combo";var u=e.items;"object"===u.type?(m.controls=n(u.properties,u),m.multiLine=!0):(o="array",m.inline=!0,m.items=r(u,"item",e))}return"number"==typeof e.minimum&&(s.minimum=e.minimum),a.__assign({name:t,type:o,required:!!~l.indexOf(t),label:e.title||e.description,desc:e.title&&e.description,value:e.default,validations:s},m)}function n(e,t){var n=Object.keys(e);return n.map(function(n){return r(e[n],n,t)})}function i(e){if("object"!==e.type)throw new Error("JSONSchme2AMisSchema 只支持 object 转换");return{title:e.title,type:"form",mode:"horizontal",controls:n(e.properties,e)}}Object.defineProperty(t,"__esModule",{value:!0});var a=e("node_modules/tslib/tslib"),l=e("node_modules/react/index"),m=e("06d307c"),s=e("d019970"),o={title:"Person",type:"object",properties:{firstName:{title:"First Name",type:"string"},lastName:{type:"string"},age:{description:"Age in years",type:"integer",minimum:0},tag:{type:"array",description:"Tags","default":["IT"],items:{type:"text"}},clients:{type:"array",description:"Tags",items:{type:"object",properties:{firstName:{title:"First Name",type:"string"},lastName:{type:"string"}}}}},required:["firstName","lastName"]},u=i(o),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={data:{}},t}return a.__extends(t,e),t.prototype.renderForm=function(){var e=this;return s.render({type:"page",title:"",body:a.__assign({},u,{onChange:function(t){return e.setState({data:a.__assign({},t)})}})})},t.prototype.render=function(){return l.createElement("div",null,l.createElement(m.default,{title:"JSON Schema Form"}),l.createElement("div",{className:"wrapper"},l.createElement("div",null,l.createElement("h3",null,"Schema"),l.createElement("pre",null,l.createElement("code",null,JSON.stringify(o,null,2)))),l.createElement("div",null,l.createElement("h3",null,"Form"),this.renderForm()),l.createElement("div",null,l.createElement("h3",null,"Data"),l.createElement("pre",null,l.createElement("code",null,JSON.stringify(this.state.data,null,2))))))},t}(l.Component);t.default=c});
;/*!examples/components/Dialog/Simple.jsx*/
define("8c8c87b",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"page",title:"Dialog",body:[{type:"button-toolbar",className:"m-b",buttons:[{type:"button",label:"打开弹框",actionType:"dialog",dialog:{title:"提示",closeOnEsc:!0,body:"这是个简单的弹框"}},{type:"button",label:"多级弹框",actionType:"dialog",dialog:{title:"提示",closeOnEsc:!0,body:"这是个简单的弹框",actions:[{type:"button",actionType:"confirm",label:"确认",primary:!0},{type:"button",actionType:"dialog",label:"再弹一个",dialog:{title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"dialog",label:"来吧",level:"info",dialog:{title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"confirm",label:"不弹了",primary:!0}]}}]}}]}},{type:"button",label:"弹个表单",actionType:"dialog",dialog:{title:"在弹框中的表单",closeOnEsc:!0,actions:[{label:"取消",actionType:"close",type:"button"},{label:"确认",actionType:"confirm",type:"button",level:"primary"},{label:"提交不关闭",actionType:"submit",close:!1,type:"button",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",level:"primary"},{label:"保存不关闭",actionType:"ajax",type:"button",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=4",level:"info"},{type:"button",label:"Feedback",close:!0,actionType:"ajax",api:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",tooltip:"点击我后会发送一个请求,请求回来后,弹出一个框。",feedback:{title:"操作成功",body:"xxx 已操作成功"}}],body:{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式",mode:"normal",controls:[{type:"email",name:"email",required:!0,placeholder:"请输入邮箱",label:"邮箱"},{type:"password",name:"password",label:"密码",required:!0,placeholder:"请输入密码"},{type:"checkbox",name:"rememberMe",label:"记住登录"}]}}},{type:"button",label:"再弹个表单",actionType:"dialog",dialog:{title:"在弹框中的表单",actions:[{label:"取消",actionType:"close",type:"button"},{label:"确认",actionType:"confirm",type:"button",level:"primary",disabledOn:"!data.rememberMe"}],body:{type:"form",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",title:"常规模式",mode:"normal",controls:[{type:"checkbox",name:"rememberMe",label:"勾上我才可以确认"}]}}},{type:"button",label:"Feedback",actionType:"ajax",api:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",tooltip:"点击我后会发送一个请求,请求回来后,弹出一个框。",feedback:{title:"操作成功",closeOnEsc:!0,body:"xxx 已操作成功"}},{type:"button",label:"Feedback2",actionType:"ajax",api:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",tooltip:"可以根据条件弹出比如这个栗子看当前时间戳是否可以整除3",feedback:{visibleOn:"!(this.date % 3)",title:"操作成功",body:"当前时间戳: <code>${date}</code>"}}]},{type:"button-toolbar",className:"m-l-none",buttons:[{type:"button",label:"sm 弹框",actionType:"dialog",dialog:{size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"标准 弹框",actionType:"dialog",dialog:{title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"lg 弹框",actionType:"dialog",dialog:{size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"xl 弹框",actionType:"dialog",dialog:{size:"xl",title:"提示",body:"这是个简单的弹框"}}]}]}});
;/*!examples/components/Dialog/Drawer.jsx*/
define("aa693dc",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"Drawer",body:[{type:"button-toolbar",className:"block",buttons:[{type:"button",label:"左侧弹出-极小框",actionType:"drawer",drawer:{position:"left",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-小框",actionType:"drawer",drawer:{position:"left",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-中框",actionType:"drawer",drawer:{position:"left",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-大框",actionType:"drawer",drawer:{position:"left",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"左侧弹出-超大",actionType:"drawer",level:"danger",drawer:{position:"left",size:"xl",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"右侧弹出-极小框",level:"success",actionType:"drawer",drawer:{position:"right",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-小框",level:"success",actionType:"drawer",drawer:{position:"right",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-中框",level:"success",actionType:"drawer",drawer:{position:"right",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-大框",level:"success",actionType:"drawer",drawer:{position:"right",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"右侧弹出-超大",level:"danger",actionType:"drawer",drawer:{size:"xl",position:"right",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"顶部弹出-极小框",actionType:"drawer",level:"info",drawer:{position:"top",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出-小框",level:"info",actionType:"drawer",drawer:{position:"top",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出-中框",actionType:"drawer",level:"info",drawer:{position:"top",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出-大框",actionType:"drawer",level:"info",drawer:{position:"top",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"顶部弹出 - 超大",level:"danger",actionType:"drawer",drawer:{position:"top",size:"xl",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"底部弹出-极小框",actionType:"drawer",level:"primary",drawer:{position:"bottom",size:"xs",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-小框",level:"primary",actionType:"drawer",drawer:{position:"bottom",size:"sm",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-中框",actionType:"drawer",level:"primary",drawer:{position:"bottom",size:"md",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-大框",actionType:"drawer",level:"primary",drawer:{position:"bottom",size:"lg",title:"提示",body:"这是个简单的弹框"}},{type:"button",label:"底部弹出-超大",level:"danger",actionType:"drawer",drawer:{position:"bottom",size:"xl",title:"提示",body:"这是个简单的弹框"}}]},{type:"button-toolbar",className:"block m-t",buttons:[{type:"button",label:"多级弹框",actionType:"drawer",level:"danger",drawer:{title:"提示",body:"这是个简单的弹框",closeOnEsc:!0,actions:[{type:"button",actionType:"confirm",label:"确认",primary:!0},{type:"button",actionType:"drawer",label:"再弹一个",drawer:{position:"left",title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"drawer",label:"来吧",level:"info",drawer:{position:"right",title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"confirm",label:"可以了",primary:!0}]}}]}}]}},{type:"button",label:"交叉测试",actionType:"drawer",className:"m-l-xs",level:"danger",drawer:{title:"提示",closeOnEsc:!0,body:"这是个简单的弹框",actions:[{type:"button",actionType:"confirm",label:"确认",primary:!0},{type:"button",actionType:"dialog",closeOnEsc:!0,label:"再弹一个",dialog:{position:"left",title:"弹框中的弹框",closeOnEsc:!0,body:"如果你想,可以无限弹下去",actions:[{type:"button",actionType:"drawer",label:"来吧",level:"info",drawer:{position:"right",title:"弹框中的弹框",body:"如果你想,可以无限弹下去",closeOnEsc:!0,actions:[{type:"button",actionType:"confirm",label:"可以了",primary:!0}]}}]}}]}}]}]}});
;/*!examples/components/Linkage/Page.jsx*/
define("8744105",function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",type:"page",title:"地址栏变化自动更新",initApi:"https://houtai.baidu.com/api/mock2/form/initData?id=${id}",aside:{type:"wrapper",size:"xs",className:"",body:{type:"nav",stacked:!0,links:[{label:"页面1",to:"?id=1"},{label:"页面2",children:[{label:"页面2-1",to:"?id=2-1"},{label:"页面2-2",to:"?id=2-2"},{label:"页面2-3disabled",disabled:!0,to:"?id=2-3"}]},{label:"页面3",to:"?id=3"}]}},body:['<p><span class="text-danger">注意 page 渲染器的 `initApi` 中有变量跟地址栏中变量关联,只要值发生了变化,就会重新拉取一次 initApi。</sapn></p>','<p>这些数据是通过 initApi 拉取到的数据。 `\\$infoId`: <span class="text-danger">${infoId|default:空}</span></p>']}});
;/*!examples/components/Linkage/Form.jsx*/
define("34cc2e3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单与表单之间的联动",aside:{type:"form",target:"detailForm",className:"wrapper-sm",wrapWithPanel:!1,controls:[{type:"text",placeholder:"关键字",name:"keywords",addOn:{type:"submit",label:"搜索",primary:!0}},'<span class="text-danger">请在此输入内容后点击搜索</sapn>']},body:{name:"detailForm",type:"form",mode:"horizontal",title:"",initApi:"https://houtai.baidu.com/api/mock2/form/initData?keywords=${keywords}",actions:[],controls:["Form 模型除了用来提交数据外,还比较适合用来做详情数据的展示",{type:"divider"},{label:"名称",type:"static",labelClassName:"text-muted",name:"name"},{label:"作者",type:"static",labelClassName:"text-muted",name:"author"},{label:"输入信息",type:"static",labelClassName:"text-muted",name:"info"},{label:"请求时间",type:"static-datetime",labelClassName:"text-muted",format:"YYYY-MM-DD HH:mm:ss",name:"date"}]}}});
;/*!examples/components/Linkage/Form2.jsx*/
define("1697a1b",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单初始数据自动重新拉取",body:[{type:"form",mode:"horizontal",title:"监听表单内部的修改",initApi:"https://houtai.baidu.com/api/mock2/form/initData?tpl=${tpl}",actions:[],controls:['<span class="text-danger">当 <code>initApi</code> 中有变量,且变量的值发生了变化了,则该表单就会重新初始数据。</span>',{type:"divider"},{label:"数据模板",type:"select",labelClassName:"text-muted",name:"tpl",value:"tpl1",inline:!0,options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}],description:'<span class="text-danger">请修改这里看效果</span>'},{label:"名称",type:"static",labelClassName:"text-muted",name:"name"},{label:"作者",type:"static",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"static-datetime",labelClassName:"text-muted",format:"YYYY-MM-DD HH:mm:ss",name:"date"}]},{type:"grid",columns:[{type:"form",mode:"horizontal",title:"自动填充",actions:[],controls:[{label:"数据模板",type:"select",labelClassName:"text-muted",name:"tpl",value:"tpl1",inline:!0,options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}],description:'<span class="text-danger">请修改这里看效果</span>'},'<div class="text-danger m-b">如果 <code>initApi</code> 已经暂用,用 <code>service</code>一样可以拉取值填充,同样以下 api 值发生变化时会自动填充。</div>',{type:"service",api:"https://houtai.baidu.com/api/mock2/form/initData?tpl=${tpl}",body:{controls:[{label:"名称",type:"text",labelClassName:"text-muted",name:"name"},{label:"作者",type:"text",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"datetime",labelClassName:"text-muted",inputFormat:"YYYY-MM-DD HH:mm:ss",name:"date"}]}}]},{type:"form",mode:"horizontal",title:"手动填充",actions:[],controls:[{type:"group",label:"数据模板",labelClassName:"text-muted",controls:[{type:"select",name:"tpl",value:"tpl1",mode:"inline",options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}]},{mode:"inline",type:"button",label:"获取",level:"dark",actionType:"reload",target:"theService"}]},'<div class="text-danger m-b">如果不想自动填充,自动填充,则把参数放在 data 里面,就不会监控变化自动拉取了,同时把 <code>servcie</code> 的初始拉取关掉,然后来个刷新目标组件的按钮。</div>',{type:"service",name:"theService",api:{method:"get",url:"https://houtai.baidu.com/api/mock2/form/initData",data:{tpl:"${tpl}"}},body:{controls:[{label:"名称",type:"text",labelClassName:"text-muted",name:"name"},{label:"作者",type:"text",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"datetime",labelClassName:"text-muted",inputFormat:"YYYY-MM-DD HH:mm:ss",name:"date"}]}}]}]},{type:"divider"},{type:"form",title:"条件表单",target:"detailForm",submitOnInit:!0,mode:"inline",controls:[{label:"数据模板",type:"select",labelClassName:"text-muted",name:"tpl",value:"tpl1",options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}]},{type:"submit",label:"提交",primary:!0}]},{name:"detailForm",type:"form",mode:"horizontal",title:"响应表单",initApi:"https://houtai.baidu.com/api/mock2/form/initData?tpl=${tpl}",initFetchOn:"data.tpl",actions:[],controls:['<span class="text-danger">当 <code>initApi</code> 中有变量,且变量的值发生了变化了,则该表单就会重新初始数据。</span>',{type:"divider"},{label:"名称",type:"static",labelClassName:"text-muted",name:"name"},{label:"作者",type:"static",labelClassName:"text-muted",name:"author"},{label:"请求时间",type:"static-datetime",labelClassName:"text-muted",format:"YYYY-MM-DD HH:mm:ss",name:"date"}]}]}});
;/*!examples/components/Linkage/CRUD.jsx*/
define("84cfdf0",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单与列表之间的联动",body:[{title:"",type:"form",mode:"inline",target:"list",wrapWithPanel:!1,className:"m-b",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",clearable:!0,addOn:{type:"submit",icon:"fa fa-search",level:"primary"}}]},{type:"crud",name:"list",api:"https://houtai.baidu.com/api/sample",mode:"list",listItem:{actions:[{type:"button",icon:"fa fa-eye",actionType:"dialog",dialog:{title:"查看",body:{type:"form",controls:[{type:"static",name:"engine",label:"Engine"},{type:"divider"},{type:"static",name:"browser",label:"Browser"},{type:"divider"},{type:"static",name:"platform",label:"Platform(s)"},{type:"divider"},{type:"static",name:"version",label:"Engine version"},{type:"divider"},{type:"static",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-pencil",actionType:"dialog",dialog:{title:"编辑",body:{type:"form",name:"sample-edit-form",api:"https://houtai.baidu.com/api/sample/$id",controls:[{type:"text",name:"engine",label:"Engine",required:!0},{type:"divider"},{type:"text",name:"browser",label:"Browser",required:!0},{type:"divider"},{type:"text",name:"platform",label:"Platform(s)",required:!0},{type:"divider"},{type:"text",name:"version",label:"Engine version"},{type:"divider"},{type:"text",name:"grade",label:"CSS grade"}]}}},{type:"button",icon:"fa fa-times text-danger",actionType:"ajax",confirmText:"您确认要删除?",api:"delete:https://houtai.baidu.com/api/sample/$id"}],body:[{name:"engine",label:"Rendering engine",labelClassName:"w-sm"},[{name:"browser",label:"Browser",labelClassName:"w-sm"},{name:"platform",label:"Platform(s)",labelClassName:"w-sm"}],{name:"version",label:"Engine version",labelClassName:"w-sm"}]}}]}});
;/*!examples/components/Linkage/Options.jsx*/
define("2b09ee3",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"表单选线之间的远程联动",body:{type:"form",mode:"horizontal",title:"",actions:[],controls:['<p class="text-danger">表单选项可以设置 source 通过 API 远程拉取,同时如果 source 中有变量的话,变量值发生变化就会重新拉取,达到联动效果。</p>',{type:"divider"},{label:"选项1",type:"select",labelClassName:"text-muted",name:"a",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3}]},{label:"选项2",type:"select",labelClassName:"text-muted",name:"b",inline:!0,source:"https://houtai.baidu.com/api/mock2/options/level2?a=${a}",initFetchOn:"data.a"},{label:"选项3",type:"select",labelClassName:"text-muted",name:"c",inline:!0,visibleOn:"data.b",source:"https://houtai.baidu.com/api/mock2/options/level3?b=${b}"}]}}});
;/*!examples/components/Linkage/OptionsLocal.jsx*/
define("9aaa8bb",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"表单选线的联动",body:{type:"form",mode:"horizontal",title:"",actions:[],controls:['<p class="text-danger">表单选项内也能联动,通过配置 visibleOn、hiddenOn或者disabledOn</p>',{type:"divider"},{label:"选项1",type:"list",multiple:!1,labelClassName:"text-muted",name:"a",inline:!0,options:[{label:"选项1",value:1},{label:"选项2",value:2},{label:"选项3",value:3}]},{label:"选项2",type:"radios",labelClassName:"text-muted",name:"b",inline:!0,options:[{label:"选项1",value:1,disabledOn:"data.a == 1"},{label:"选项2",value:2,hiddenOn:"data.a == 2"},{label:"选项3",value:3,visibleOn:"data.a == 3"}]}]}}});
;/*!examples/components/Wizard.jsx*/
define("083a456",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"表单向导",body:[{type:"wizard",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",initApi:"https://houtai.baidu.com/api/mock2/form/initData?waitSeconds=2",steps:[{title:"第一步",controls:[{name:"website",label:"网址",type:"url",required:!0},{name:"name",label:"名称",type:"text",required:!0}]},{title:"Step 2",controls:[{name:"email2",label:"邮箱",type:"email",required:!0}]},{title:"Step 3",controls:["这是最后一步了"]}]},{type:"wizard",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2",mode:"vertical",steps:[{title:"第一步",controls:[{name:"website",label:"网址",type:"url",required:!0},{name:"email",label:"邮箱",type:"email",required:!0}]},{title:"Step 2",controls:[{name:"email2",label:"邮箱",type:"email",required:!0}]},{title:"Step 3",controls:["这是最后一步了"]}]},{type:"wizard",steps:[{title:"第一步",controls:[{name:"website",label:"网址",type:"url",required:!0},{name:"email",label:"邮箱",type:"email",required:!0}],api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2"},{title:"第二步",controls:[{name:"test1",type:"email",label:"Email",value:"test@test.com"},{type:"divider"},{type:"text",name:"test2",label:"必填示例",required:!0},{type:"divider"},{type:"text",name:"test3",placeholder:"可选"}],initApi:"https://houtai.baidu.com/api/mock2/form/initForm",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2"},{title:"确定",controls:["最后一步了,确认要提交吗?"],api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=2"}]}]}});
;/*!examples/components/Chart.jsx*/
define("91e25e6",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"图表示例",body:[{type:"grid",columns:[{type:"panel",title:"本地配置示例 支持交互",name:"chart-local",body:[{type:"chart",config:{title:{text:"极坐标双数值轴"},legend:{data:["line"]},polar:{center:["50%","54%"]},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},angleAxis:{type:"value",startAngle:0},radiusAxis:{min:0},series:[{coordinateSystem:"polar",name:"line",type:"line",showSymbol:!1,data:[[0,0],[.03487823687206265,1],[.06958655048003272,2],[.10395584540887964,3],[.13781867790849958,4],[.17101007166283433,5],[.2033683215379001,6],[.2347357813929454,7],[.26495963211660245,8],[.2938926261462365,9],[.3213938048432697,10]]}],animationDuration:2e3},clickAction:{actionType:"dialog",dialog:{title:"详情",body:[{type:"tpl",tpl:"<span>当前选中值 ${value|json}<span>"},{type:"chart",api:"https://houtai.baidu.com/api/mock2/chart/chart1"}]}}}]},{type:"panel",title:"远程图表示例(返回值带function)",name:"chart-remote",body:[{type:"chart",api:"https://houtai.baidu.com/api/mock2/chart/chart1"}]}]},{type:"panel",title:"Form+chart组合",body:[{type:"form",title:"过滤条件",target:"chart1,chart2",submitOnInit:!0,className:"m-b",wrapWithPanel:!1,mode:"inline",controls:[{type:"date",label:"开始日期",name:"starttime",value:"-8days",maxDate:"${endtime}"},{type:"date",label:"结束日期",name:"endtime",value:"-1days",minDate:"${starttime}"},{type:"text",label:"条件",name:"name",addOn:{type:"submit",label:"搜索",level:"primary"}}],actions:[]},{type:"divider"},{type:"grid",className:"m-t-lg",columns:[{type:"chart",name:"chart1",initFetch:!1,api:"https://houtai.baidu.com/api/mock2/chart/chart?name=$name&starttime=${starttime}&endtime=${endtime}"},{type:"chart",name:"chart2",initFetch:!1,api:"https://houtai.baidu.com/api/mock2/chart/chart2?name=$name"}]}]}]}});
;/*!examples/components/Horizontal.jsx*/
define("07c797d",function(e,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"HBox & Grid",type:"page",body:[{type:"plain",tpl:"Grid 请参考 bootstrap 的 grid 布局",inline:!1,className:"h3 m-b-xs"},{type:"grid",columns:[{type:"tpl",tpl:"sm-2",sm:2,className:"bg-info",inline:!1},{type:"tpl",tpl:"sm-4",sm:4,className:"bg-success",inline:!1},{type:"tpl",tpl:"sm-6",sm:6,className:"bg-primary",inline:!1}]},{type:"plain",tpl:"Hbox",inline:!1,className:"h3 m-t m-b-xs"},{type:"hbox",columns:[{type:"tpl",tpl:"平均分配",className:"bg-info",inline:!1},{type:"tpl",tpl:"平均分配",className:"bg-success",inline:!1},{type:"tpl",tpl:"平均分配",className:"bg-primary",inline:!1}]},{type:"plain",tpl:"Hbox 部分定宽",inline:!1,className:"h3 m-t m-b-xs"},{type:"hbox",columns:[{type:"tpl",tpl:"w-xs",className:"bg-info",inline:!1,columnClassName:"w-xs"},{type:"tpl",tpl:"w-sm",className:"bg-info lter",inline:!1,columnClassName:"w-sm"},{type:"tpl",tpl:"w",className:"bg-info dk",inline:!1,columnClassName:"w"},{type:"tpl",tpl:"平均分配",className:"bg-success",inline:!1},{type:"tpl",tpl:"平均分配",className:"bg-primary",inline:!1}]},{type:"plain",tpl:"示例",inline:!1,className:"h3 m-t m-b-xs"},{type:"grid",columns:[{type:"panel",title:"面板1",className:"Panel--danger",body:"内容",sm:4},{type:"panel",title:"面板2",className:"Panel--primary",body:"内容",sm:8}]}]}});
;/*!examples/components/Video.jsx*/
define("9a6615a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"视频播放器",body:['<p class="text-danger">另外还支持直播流, flv 和 hls 格式</p>',{type:"video",autoPlay:!1,src:"https://media.w3.org/2010/05/sintel/trailer_hd.mp4",poster:"https://video-react.js.org/assets/poster.png"}]}});
;/*!examples/components/Audio.jsx*/
define("62761e6",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"音频播放器",body:[{type:"audio",autoPlay:!1,src:"http://www.ytmp3.cn/down/32791.mp3"}]}});
;/*!examples/components/Tasks.jsx*/
define("1aa7d40",function(a,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"异步任务",body:['<p class="text-danger"></p>',{type:"tasks",name:"tasks",items:[{label:"hive 任务",key:"hive",status:4,remark:'查看详情<a target="_blank" href="http://www.baidu.com">日志</a>。'},{label:"小流量",key:"partial",status:4},{label:"全量",key:"full",status:4}]},{type:"tasks",name:"tasks",className:"b-a bg-white table-responsive m-t",checkApi:"https://houtai.baidu.com/api/mock2/task"}]}});
;/*!examples/components/Services/Data.jsx*/
define("45bc56b",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"动态加载数据",body:['<span class="text-danger">除了用 Page、CRUD、Form 或者 Wizard 能拉取数据外,还可以通过 Service 专门拉取数据,然后丢给其他类型的渲染器渲染。</span>',{type:"form",title:"条件输入",className:"m-t",wrapWithPanel:!1,target:"service1",mode:"inline",controls:[{type:"text",name:"keywords",placeholder:"关键字",addOn:{type:"button",icon:"fa fa-search",actionType:"submit",level:"primary"}}]},{name:"service1",type:"service",className:"m-t",api:"https://houtai.baidu.com/api/mock2/service/data?keywords=${keywords}",body:["当前关键字是 ${keywords},当前时间是: ${date|date:YYYY-MM-DD HH\\:mm}",{type:"table",className:"m-t",source:"${table1}",columns:[{name:"id",label:"ID",type:"text"},{name:"text",label:"文本",type:"text"},{type:"image",label:"图片",name:"image",popOver:{title:"查看大图",body:'<div class="w-xxl"><img class="w-full" src="${image}"/></div>'}},{name:"date",type:"date",label:"日期"}]},{type:"table",source:"${table2}",columns:[{name:"progress",label:"进度",type:"progress"},{name:"boolean",label:"状态",type:"status"},{name:"boolean",label:"开关",type:"switch"},{name:"type",label:"映射",type:"mapping",map:{"*":"其他:${type}",1:"<span class='label label-info'>漂亮</span>",2:"<span class='label label-success'>开心</span>",3:"<span class='label label-danger'>惊吓</span>",4:"<span class='label label-warning'>紧张</span>"}},{name:"list",type:"list",label:"List",placeholder:"-",listItem:{title:"${title}",subTitle:"${description}"}}]}]}]}});
;/*!examples/components/Services/Schema.jsx*/
define("65f0d23",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"动态加载页面",body:['<span class="text-danger">可以通过 <code>service</code>的<code>schemaApi</code> 动态控制内容。</span>',{type:"form",title:"条件输入",panelClassName:"panel-info m-t",target:"service1",mode:"inline",submitOnInit:!0,controls:[{label:"加载页面类型",required:!0,type:"button-group",submitOnChange:!0,value:"crud",name:"type",options:[{label:"Crud",value:"crud"},{label:"Form",value:"form"},{label:"Tabs",value:"tabs"}]}]},{name:"service1",type:"service",className:"m-t",initFetchSchema:!1,schemaApi:"https://houtai.baidu.com/api/mock2/service/schema?type=$type"}]}});
;/*!examples/components/Services/Form.jsx*/
define("2c4132a",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"动态加载表单中的部分",body:['<span class="text-danger">同样通过 <code>service</code>的<code>schemaApi</code> 来加载部分内容,当然也可以全部由它来加载</span>',{type:"form",panelClassName:"Panel--info m-t",target:"service1",mode:"horizontal",api:"https://houtai.baidu.com/api/mock2/form/saveForm?waitSeconds=1",fieldSet:[{title:"基本信息",controls:[{type:"text",label:"字段一",name:"filed1"},{type:"text",label:"字段二",name:"filed2"}]},{title:"其他信息",controls:[{name:"tpl",type:"select",label:"模板",inline:!0,required:!0,value:"tpl1",options:[{label:"模板1",value:"tpl1"},{label:"模板2",value:"tpl2"},{label:"模板3",value:"tpl3"}]},{type:"service",className:"m-t",initFetchSchemaOn:"data.tpl",schemaApi:"https://houtai.baidu.com/api/mock2/service/form?tpl=$tpl"}]}]}]}});
;/*!examples/components/IFrame.jsx*/
define("4c89be2",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={$schema:"https://houtai.baidu.com/v2/schemas/page.json#",title:"IFrame 可以用来嵌入其他网站",body:[{type:"form",mode:"inline",target:"window",title:"",controls:[{type:"text",name:"keywords",addOn:{type:"submit",label:"搜索",level:"info",icon:"fa fa-search pull-left"}}]},{type:"iframe",className:"b-a",src:"https://www.baidu.com/s?wd=${keywords|url_encode}",height:500}]}});
;/*!examples/components/Tabs/Normal.jsx*/
define("524d91c",function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={type:"page",title:"选项卡示例",subTitle:"所有选项卡都在当前页面中包括默认、line、card以及radio模式",body:[{type:"tabs",tabs:[{title:"选项卡1",hash:"tab1",body:"选项卡内容1"},{title:"选项卡2",hash:"tab2",body:{type:"form",panelClassName:"panel-primary",controls:[{type:"text",name:"a",label:"文本"}]}},{title:"选项卡3",body:{type:"crud",api:"https://houtai.baidu.com/api/sample",filter:{title:"条件搜索",submitText:"",controls:[{type:"text",name:"keywords",placeholder:"通过关键字搜索",clearable:!0,addOn:{label:"搜索",type:"submit"}},{type:"plain",text:"这里的表单项可以配置多个"}]},columns:[{name:"id",label:"ID",width:20},{name:"engine",label:"Rendering engine"},{name:"browser",label:"Browser"},{name:"platform",label:"Platform(s)"},{name:"version",label:"Engine version"},{name:"grade",label:"CSS grade"},{type:"operation",label:"操作",width:100,buttons:[]}]}}]},{type:"divider"},{type:"tabs",mode:"line",tabs:[{title:"选项卡1",body:"选项卡内容1"},{title:"选项卡2",body:"选项卡内容2"},{title:"选项卡3",body:"选项卡内容3"}]},{type:"divider"},{type:"tabs",mode:"card",tabs:[{title:"选项卡1",body:"选项卡内容1"},{title:"选项卡2",body:"选项卡内容2"},{title:"选项卡3",body:"选项卡内容3"}]},{type:"divider"},{type:"tabs",mode:"radio",tabs:[{title:"选项卡1",body:"选项卡内容1"},{title:"选项卡2",body:"选项卡内容2"},{title:"选项卡3",body:"选项卡内容3"}]}]}});
;/*!examples/components/Tabs/Form.jsx*/
define("46b14bf",function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={type:"page",title:"表单中选项卡分组",subTitle:"",body:["<p>多个 controls 可以通过 tabs 来分组展示,表单将作为一个整体提交。</p>",{type:"form",title:"",tabs:[{title:"选项卡1",hash:"tab1",controls:[{type:"text",label:"文本1",name:"a"}]},{title:"选项卡2",hash:"tab2",controls:[{type:"text",label:"文本2",name:"b"}]},{title:"选项卡3",hash:"tab3",controls:[{type:"text",label:"文本3",name:"c"}]}]}]}});
;/*!examples/components/Tabs/Tab1.jsx*/
define("a5238eb",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"选项卡1页面",body:["<p>也可以多个页面,利用导航<code>nav</code>渲染期模拟 tabs 的效果。这样可以让 url 更加友好,而不是只能用 hash。</p>",{type:"nav",links:[{label:"选项卡1",icon:"fa fa-cloud",to:"/examples/tabs/tab1"},{label:"选项卡2",to:"/examples/tabs/tab2"},{label:"选项卡3",icon:"fa fa-youtube",to:"/examples/tabs/tab3"}]},{type:"wrapper",className:"wrapper bg-white b-l b-b b-r",body:"选项卡1的内容"}]}});
;/*!examples/components/Tabs/Tab2.jsx*/
define("23a8cd0",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"选项卡2页面",body:["<p>也可以多个页面,利用导航<code>nav</code>渲染期模拟 tabs 的效果。</p>",{type:"nav",links:[{label:"选项卡1",icon:"fa fa-cloud",to:"/examples/tabs/tab1"},{label:"选项卡2",to:"/examples/tabs/tab2"},{label:"选项卡3",icon:"fa fa-youtube",to:"/examples/tabs/tab3"}]},{type:"wrapper",className:"wrapper bg-white b-l b-b b-r",body:"选项卡2的内容"}]}});
;/*!examples/components/Tabs/Tab3.jsx*/
define("a8b725e",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={type:"page",title:"选项卡3页面",body:["<p>也可以多个页面,利用导航<code>nav</code>渲染期模拟 tabs 的效果。</p>",{type:"nav",links:[{label:"选项卡1",icon:"fa fa-cloud",to:"/examples/tabs/tab1"},{label:"选项卡2",to:"/examples/tabs/tab2"},{label:"选项卡3",icon:"fa fa-youtube",to:"/examples/tabs/tab3"}]},{type:"wrapper",className:"wrapper bg-white b-l b-b b-r",body:{type:"chart",config:{title:{text:"极坐标双数值轴"},legend:{data:["line"]},polar:{center:["50%","54%"]},tooltip:{trigger:"axis",axisPointer:{type:"cross"}},angleAxis:{type:"value",startAngle:0},radiusAxis:{min:0},series:[{coordinateSystem:"polar",name:"line",type:"line",showSymbol:!1,data:[[0,0],[.03487823687206265,1],[.06958655048003272,2],[.10395584540887964,3],[.13781867790849958,4],[.17101007166283433,5],[.2033683215379001,6],[.2347357813929454,7],[.26495963211660245,8],[.2938926261462365,9],[.3213938048432697,10]]}],animationDuration:2e3}}}]}});
;/*!examples/components/Test.jsx*/
define("be09c45",function(e,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("node_modules/tslib/tslib"),l=e("node_modules/react/index"),c=e("a67acca"),t=function(e){function a(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(a,e),a.prototype.render=function(){return l.createElement("div",{className:"wrapper"},l.createElement("div",{className:"m-b"},l.createElement(c.default,{className:"m-r-xs",classPrefix:"cxd-"},"按钮"),l.createElement(c.default,{className:"m-r-xs",level:"primary",classPrefix:"cxd-"},"按钮"),l.createElement(c.default,{className:"m-r-xs",level:"secondary",classPrefix:"cxd-"},"按钮"),l.createElement(c.default,{className:"m-r-xs",level:"success",classPrefix:"cxd-"},"按钮"),l.createElement(c.default,{className:"m-r-xs",level:"info",classPrefix:"cxd-"},"按钮"),l.createElement(c.default,{className:"m-r-xs",level:"warning",classPrefix:"cxd-"},"按钮"),l.createElement(c.default,{className:"m-r-xs",level:"danger",classPrefix:"cxd-"},"按钮"),l.createElement(c.default,{className:"m-r-xs",level:"light",classPrefix:"cxd-"},"按钮"),l.createElement(c.default,{className:"m-r-xs",level:"dark",classPrefix:"cxd-"},"按钮")),l.createElement("div",{className:"m-b"},l.createElement(c.default,{className:"m-r-xs",size:"xs",classPrefix:"cxd-"},"按钮"),l.createElement(c.default,{className:"m-r-xs",size:"sm",classPrefix:"cxd-"},"按钮"),l.createElement(c.default,{className:"m-r-xs",size:"md",classPrefix:"cxd-"},"按钮"),l.createElement(c.default,{className:"m-r-xs",size:"lg",classPrefix:"cxd-"},"按钮")),l.createElement("div",{className:"m-b"},l.createElement(c.default,{className:"m-r-xs",classPrefix:"cxd-"},l.createElement("i",{className:"fa fa-cloud"}),l.createElement("span",null,"按钮")),l.createElement(c.default,{className:"m-r-xs",classPrefix:"cxd-"},l.createElement("span",null,"按钮"),l.createElement("i",{className:"fa fa-cloud"})),l.createElement(c.default,{className:"m-r-xs",classPrefix:"cxd-",iconOnly:!0},l.createElement("i",{className:"fa fa-cloud"}))))},a}(l.Component);a.default=t});
;/*!examples/components/App.jsx*/
define("135e0c7",function(e,t){"use strict";function a(e,t){return!(!e||e!==t.pathname)}function l(e){void 0===e&&(e=Ct);var t=[];return Ht.forEach(function(a){a.children&&u.mapTree(a.children,function(a){a.path&&a.component?t.push(d.createElement(r.Route,{key:t.length+1,path:"/"===a.path[0]?a.path:e+"/"+a.path,component:a.component})):a.path&&a.getComponent&&t.push(d.createElement(r.Route,{key:t.length+1,path:"/"===a.path[0]?a.path:e+"/"+a.path,getComponent:a.getComponent}))})}),t}function n(e){var t=e.pathPrefix;Ct=t||Ct;var a=r.browserHistory;return a=r.hashHistory,d.createElement(r.Router,{history:a},d.createElement(r.Route,{component:_t},d.createElement(r.Redirect,{from:"/",to:Ct+"/pages/simple"}),d.createElement(r.Redirect,{from:Ct+"/",to:Ct+"/pages/simple"}),l(Ct),d.createElement(r.Route,{path:"*",component:c.default})))}Object.defineProperty(t,"__esModule",{value:!0});var o=e("node_modules/tslib/tslib"),d=e("node_modules/react/index"),c=e("bb0be5b"),f=e("4c26fd3"),i=e("4e7c54b"),s=e("1953fc1"),u=e("9a80175"),r=e("node_modules/react-router/lib/index"),p=e("ec59a60"),m=e("da274e0"),h=e("2d1fe26"),b=e("71fbd58"),g=e("0fa6650"),v=e("65795e0"),E=e("1e9ff20"),y=e("3d2e3d4"),k=e("6f89d30"),N=e("ee53c68"),A=e("c9cebe3"),S=e("d2ec869"),x=e("435ef3d"),F=e("90d3d67"),C=e("4f1646b"),H=e("c6bae66"),I=e("c938c8b"),_=e("9b0994b"),R=e("b514b73"),V=e("4d416d7"),w=e("48c8d88"),L=e("b382a0f"),T=e("78c2565"),j=e("128d6b4"),q=e("6a793db"),B=e("6f62c3a"),M=e("3ef3393"),O=e("638fc16"),P=e("c9850e3"),D=e("660d1f0"),z=e("d786dfa"),J=e("a9122cf"),K=e("97ac54d"),U=e("11455ca"),G=e("4e9a795"),Q=e("ddb86b3"),W=e("cd82b91"),X=e("77adc0a"),Y=e("31055e7"),Z=e("8624815"),$=e("6baaf1a"),et=e("324bb13"),tt=e("8c8c87b"),at=e("aa693dc"),lt=e("8744105"),nt=e("34cc2e3"),ot=e("1697a1b"),dt=e("84cfdf0"),ct=e("2b09ee3"),ft=e("9aaa8bb"),it=e("083a456"),st=e("91e25e6"),ut=e("07c797d"),rt=e("9a6615a"),pt=e("62761e6"),mt=e("1aa7d40"),ht=e("45bc56b"),bt=e("65f0d23"),gt=e("2c4132a"),vt=e("4c89be2"),Et=e("524d91c"),yt=e("46b14bf"),kt=e("a5238eb"),Nt=e("23a8cd0"),At=e("a8b725e"),St=e("be09c45"),xt=e("d57879c"),Ft=e("a67acca"),Ct="/examples";Ct="";var Ht=[{label:"示例",children:[{label:"页面",icon:"glyphicon glyphicon-th",badge:3,badgeClassName:"bg-info",children:[{label:"简单页面",path:"pages/simple",component:p.default(m.default)},{label:"初始化出错",path:"pages/error",component:p.default(h.default)},{label:"表单页面",path:"pages/form",component:p.default(b.default)}]},{label:"表单",icon:"fa fa-list-alt",children:[{label:"表单展示模式",path:"form/mode",component:p.default(g.default)},{label:"所有类型汇总",path:"form/full",component:p.default(A.default)},{label:"静态展示",path:"form/static",component:p.default(S.default)},{label:"输入提示",path:"form/hint",component:p.default(x.default)},{label:"FieldSet",path:"form/fieldset",component:p.default(v.default)},{label:"Tabs",path:"form/tabs",component:p.default(E.default)},{label:"FieldSet Tabs 组合",path:"form/fields-tabs",component:p.default(F.default)},{label:"动态数据",path:"form/remote",component:p.default(y.default)},{label:"显隐状态联动",path:"form/reaction",component:p.default(k.default)},{label:"表单验证",path:"form/validation",component:p.default(N.default)},{label:"组合类型",path:"form/combo",component:p.default(C.default)},{label:"多功能选择器",path:"form/picker",component:p.default(w.default)},{label:"子表单",path:"form/sub-form",component:p.default(H.default)},{label:"JSon Schema表单",path:"form/json-schema",component:et.default},{label:"富文本",path:"form/rich-text",component:p.default(I.default)},{label:"代码编辑器",path:"form/ide",component:p.default(_.default)},{label:"自定义组件",path:"form/custom",component:p.default(T.default)},{label:"表格编辑",path:"form/table",component:p.default(V.default)},{label:"公式示例",path:"form/formula",component:p.default(L.default)},{label:"布局测试",path:"form/layout-test",component:p.default(j.default)},{label:"测试",path:"form/test",component:p.default(R.default)}]},{label:"增删改查",icon:"fa fa-table",children:[{label:"表格模式",path:"crud/table",component:p.default(B.default)},{label:"卡片模式",path:"crud/grid",component:p.default(O.default)},{label:"列表模式",path:"crud/list",component:p.default(P.default)},{label:"加载更多模式",path:"crud/load-more",component:p.default(D.default)},{label:"操作交互显示",path:"crud/item-actions",component:p.default(M.default)},{label:"列类型汇总",path:"crud/columns",component:p.default(U.default)},{label:"可折叠",path:"crud/footable",component:p.default(W.default)},{label:"嵌套",path:"crud/nested",component:p.default(X.default)},{label:"合并单元格",path:"crud/merge-cell",component:p.default(Y.default)},{label:"带边栏",path:"crud/aside",component:p.default(K.default)},{label:"固定表头/列",path:"crud/fixed",component:p.default(J.default)},{label:"键盘操作编辑",path:"crud/keyboards",component:p.default(Q.default)},{label:"操作并下一个",path:"crud/jump-next",component:p.default(G.default)},{label:"一次性加载",path:"crud/load-once",component:p.default(Z.default)},{label:"测试",path:"crud/test",component:p.default(z.default)}]},{label:"弹框",icon:"fa fa-bomb",children:[{label:"对话框",path:"dialog/simple",component:p.default(tt.default)},{label:"侧边弹出",path:"dialog/drawer",component:p.default(at.default)}]},{label:"选项卡",icon:"fa fa-clone",children:[{label:"常规选项卡",path:"tabs/normal",component:p.default(Et.default)},{label:"表单中选项卡分组",path:"tabs/form",component:p.default(yt.default)},{label:"选项卡页面1",path:"tabs/tab1",component:p.default(kt.default)},{label:"选项卡页面2",path:"tabs/tab2",component:p.default(Nt.default)},{label:"选项卡页面3",path:"tabs/tab3",component:p.default(At.default)}]},{label:"联动",icon:"fa fa-bolt",children:[{label:"地址栏变化自动更新",path:"linkpage/page",component:p.default(lt.default)},{label:"选项联动",path:"linkpage/options-local",component:p.default(ft.default)},{label:"选项远程联动",path:"linkpage/options",component:p.default(ct.default)},{label:"表单和表单联动",path:"linkpage/form",component:p.default(nt.default)},{label:"表单自动更新",path:"linkpage/form2",component:p.default(ot.default)},{label:"表单和列表联动",path:"linkpage/crud",component:p.default(dt.default)}]},{label:"动态加载",icon:"fa fa-magic",children:[{label:"动态加载数据",path:"services/data",component:p.default(ht.default)},{label:"动态加载页面",path:"services/schema",component:p.default(bt.default)},{label:"动态加载部分表单",path:"services/form",component:p.default(gt.default)}]},{label:"向导",icon:"fa fa-desktop",path:"wizard",component:p.default(it.default)},{label:"排版",icon:"fa fa-columns",path:"horizontal",component:p.default(ut.default)},{label:"图表",icon:"fa fa-bar-chart",path:"chart",component:p.default(st.default)},{label:"音频",icon:"fa fa-volume-up",path:"audio",component:p.default(pt.default)},{label:"视频",icon:"fa fa-video-camera",path:"video",component:p.default(rt.default)},{label:"异步任务",icon:"fa fa-tasks",path:"task",component:p.default(mt.default)},{label:"IFrame",icon:"fa fa-cloud",path:"iframe",component:p.default(vt.default)},{label:"SDK",icon:"fa fa-rocket",path:"sdk",component:$.default},{label:"Test",icon:"fa fa-code",path:"test",component:St.default}]},q.default],It=[{label:"默认主题",ns:"a-",value:"default"},{label:"百度云舍",ns:"cxd-",value:"cxd"}],_t=function(e){function t(t){var a=e.call(this,t)||this;return a.state={asideFolded:"true"===localStorage.getItem("asideFolded"),offScreen:!1,headerVisible:!0,themeIndex:0,themes:It,theme:It[localStorage.getItem("themeIndex")||0]},a.toggleAside=a.toggleAside.bind(a),a.setAsideFolded=a.setAsideFolded.bind(a),a.setHeaderVisible=a.setHeaderVisible.bind(a),a}return o.__extends(t,e),t.prototype.componentDidMount=function(){"default"!==this.state.theme.value&&(document.querySelectorAll("link[title]").forEach(function(e){e.disabled=!0}),document.querySelector("link[title="+this.state.theme.value+"]").disabled=!1)},t.prototype.componentDidUpdate=function(e,t){t.theme.value!==this.state.theme.value&&(document.querySelector("link[title="+t.theme.value+"]").disabled=!0,document.querySelector("link[title="+this.state.theme.value+"]").disabled=!1)},t.prototype.toggleAside=function(){this.setAsideFolded(!this.state.asideFolded)},t.prototype.setAsideFolded=function(e){void 0===e&&(e=!1),localStorage.setItem("asideFolded",JSON.stringify(e)),this.setState({asideFolded:e})},t.prototype.setHeaderVisible=function(e){void 0===e&&(e=!1),this.setState({headerVisible:e})},t.prototype.renderAside=function(){var e=this.props.location;if("/edit"===e.pathname)return null;var t=this.state.theme;return d.createElement(i.default,{theme:t.value,navigations:Ht,renderLink:function(e){var t=e.link,a=(e.active,e.toggleExpand),l=e.classnames,n=[];return t.children&&n.push(d.createElement("span",{key:"expand-toggle",className:l("AsideNav-itemArrow")})),t.badge&&n.push(d.createElement("b",{key:"badge",className:l("AsideNav-itemBadge",t.badgeClassName||"bg-info")},t.badge)),t.icon&&n.push(d.createElement("i",{key:"icon",className:l("AsideNav-itemIcon",t.icon)})),n.push(d.createElement("span",{className:l("AsideNav-itemLabel"),key:"label"},t.label)),t.path?d.createElement(r.Link,{to:"/"===t.path[0]?t.path:Ct+"/"+t.path},n):d.createElement("a",{onClick:t.children?function(){return a(t)}:null},n)},isActive:function(t){return a(t.path&&"/"===t.path[0]?t.path:Ct+"/"+t.path,e)}})},t.prototype.renderHeader=function(){var e=this,t=this.props.location,a=this.state.theme;return"/edit"===t.pathname?d.createElement("div",{id:"headerBar",className:"box-shadow bg-dark"},d.createElement("div",{className:a.ns+"Layout-brand"},"AMis 可视化编辑器")):d.createElement("div",null,d.createElement("div",{className:a.ns+"Layout-brandBar"},d.createElement("button",{onClick:function(){return e.setState({offScreen:!e.state.offScreen})},className:"pull-right visible-xs"},d.createElement("i",{className:"glyphicon glyphicon-align-justify"})),d.createElement("div",{className:a.ns+"Layout-brand"},d.createElement("i",{className:"fa fa-paw"}),d.createElement("span",{className:"hidden-folded m-l-sm"},"AMis Renderer"))),d.createElement("div",{className:a.ns+"Layout-headerBar"},d.createElement("div",{className:"nav navbar-nav hidden-xs"},d.createElement(Ft.default,{theme:this.state.theme.value,level:"link",className:"no-shadow navbar-btn",onClick:this.toggleAside,tooltip:"展开或收起侧边栏",placement:"bottom",iconOnly:!0},d.createElement("i",{className:this.state.asideFolded?"fa fa-indent":"fa fa-dedent"}))),d.createElement("div",{className:"hidden-xs p-t-sm pull-right"},"主题:",d.createElement(xt.default,{theme:this.state.theme.value,value:this.state.theme,options:this.state.themes,onChange:function(t){e.setState({theme:t}),localStorage.setItem("themeIndex",e.state.themes.indexOf(t))}}))))},t.prototype.render=function(){var e=this.state.theme;return d.createElement(f.default,{theme:e.value,offScreen:this.state.offScreen,header:this.state.headerVisible?this.renderHeader():null,folded:this.state.asideFolded,aside:this.renderAside()},d.createElement(s.ToastComponent,{theme:e.value}),d.createElement(s.AlertComponent,{theme:e.value}),d.cloneElement(this.props.children,o.__assign({},this.props.children.props,{setAsideFolded:this.setAsideFolded,setHeaderVisible:this.setHeaderVisible,theme:e.value,classPrefix:e.ns})))},t}(d.PureComponent);t.App=_t,t.default=n});