(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-Amis"],{"0046":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionGroup=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d77e"),i=(0,a.__importDefault)(n("f602")),l=(0,a.__importDefault)(n("ccf5")),s=n("d369"),u=n("32e1"),d=(0,a.__importDefault)(n("79ae")),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.getValue=function(){return(0,a.__assign)({id:(0,s.guid)(),conjunction:"and"},this.props.value)},t.prototype.handleNotClick=function(){var e=this.props.onChange,t=this.getValue();t.not=!t.not,e(t)},t.prototype.handleConjunctionChange=function(e){var t=this.props.onChange,n=this.getValue();n.conjunction=e.value,t(n)},t.prototype.handleAdd=function(){var e=this.props.onChange,t=this.getValue();t.children=Array.isArray(t.children)?t.children.concat():[],t.children.push({id:(0,s.guid)()}),e(t)},t.prototype.handleAddGroup=function(){var e=this.props.onChange,t=this.getValue();t.children=Array.isArray(t.children)?t.children.concat():[],t.children.push({id:(0,s.guid)(),conjunction:"and",children:[{id:(0,s.guid)()}]}),e(t)},t.prototype.handleItemChange=function(e,t){var n=this.props.onChange,a=this.getValue();a.children=Array.isArray(a.children)?a.children.concat():[],a.children.splice(t,1,e),n(a)},t.prototype.handleItemRemove=function(e){var t=this.props.onChange,n=this.getValue();n.children=Array.isArray(n.children)?n.children.concat():[],n.children.splice(e,1),t(n)},t.prototype.render=function(){var e=this,t=this.props,n=t.builderMode,a=t.classnames,o=t.fieldClassName,s=t.value,u=t.data,c=t.fields,p=t.funcs,f=t.config,m=t.removeable,h=t.onRemove,v=t.onDragStart,g=t.showNot,y=t.showANDOR,b=void 0!==y&&y,_=t.disabled,C=t.searchable,E=t.translate,x=t.formula,w=t.popOverContainer,S=t.renderEtrValue;return r.default.createElement("div",{className:a("CBGroup"),"data-group-id":null===s||void 0===s?void 0:s.id},"simple"===n&&!1===b?null:r.default.createElement("div",{className:a("CBGroup-toolbarCondition")},g?r.default.createElement(i.default,{onClick:this.handleNotClick,className:"m-r-xs",size:"xs",active:null===s||void 0===s?void 0:s.not,disabled:_},E("Condition.not")):null,r.default.createElement(d.default,{options:[{label:E("Condition.and"),value:"and"},{label:E("Condition.or"),value:"or"}],value:(null===s||void 0===s?void 0:s.conjunction)||"and",disabled:_,onChange:this.handleConjunctionChange,clearable:!1})),r.default.createElement("div",{className:a("CBGroup-body")},Array.isArray(null===s||void 0===s?void 0:s.children)&&s.children.length?s.children.map((function(t,a){return r.default.createElement(l.default,{draggable:s.children.length>1,onDragStart:v,config:f,key:t.id,fields:c,fieldClassName:o,value:t,index:a,onChange:e.handleItemChange,funcs:p,onRemove:e.handleItemRemove,data:u,disabled:_,searchable:C,builderMode:n,formula:x,popOverContainer:w,renderEtrValue:S})})):r.default.createElement("div",{className:a("CBGroup-placeholder ".concat("simple"===n?"simple":""))},E("Condition.blank"))),r.default.createElement("div",{className:a("CBGroup-toolbar")},r.default.createElement("div",{className:a("CBGroup-toolbarConditionAdd".concat("simple"===n?"-simple":""))},r.default.createElement("div",{className:a("ButtonGroup")},r.default.createElement(i.default,{level:"link",onClick:this.handleAdd,size:"xs",disabled:_},E("Condition.add_cond")),"simple"===n?null:r.default.createElement(i.default,{onClick:this.handleAddGroup,size:"xs",disabled:_,level:"link"},E("Condition.add_cond_group")))),m?r.default.createElement("a",{className:a("CBDelete"),onClick:h},E("Condition.delete_cond_group")):null))},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleNotClick",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleConjunctionChange",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleAdd",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleAddGroup",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Number]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleItemChange",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleItemRemove",null),t}(r.default.Component);t.ConditionGroup=c,t.default=(0,o.themeable)((0,u.localeable)(c))},"0053":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContinueAction=void 0;var a=n("9ab4"),r=n("0d19"),o=function(){function e(){}return e.prototype.run=function(e,t,n){return(0,a.__awaiter)(this,void 0,void 0,(function(){return(0,a.__generator)(this,(function(e){return t.loopStatus=r.LoopStatus.CONTINUE,[2]}))}))},e}();t.ContinueAction=o,(0,r.registerAction)("continue",new o)},"0069":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerError=void 0;var a=n("9ab4"),r=function(e){function t(t,n){var a=e.call(this,t)||this;return a.type="ServerError",a.response=n,a}return(0,a.__extends)(t,e),t}(Error);t.ServerError=r},"00b6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 42 31",className:"icon"},e),r.default.createElement("defs",null,r.default.createElement("filter",{id:"filter-1"},r.default.createElement("feColorMatrix",{in:"SourceGraphic",type:"matrix",values:"0 0 0 0 0.831373 0 0 0 0 0.839216 0 0 0 0 0.850980 0 0 0 1.000000 0"}))),r.default.createElement("g",{id:"\\u6570\\u636E\\u8F93\\u5165",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("g",{id:"13-\\u4E0A\\u4F20-Upload",transform:"translate(-279.000000, -4033.000000)"},r.default.createElement("g",{id:"3.\\u6570\\u636E\\u8F93\\u5165/4.\\u4E0A\\u4F20/2.\\u62D6\\u62FD\\u4E0A\\u4F20/1.\\u672A\\u4E0A\\u4F20",transform:"translate(120.000000, 3986.000000)"},r.default.createElement("g",{id:"\\u7F16\\u7EC4-2",transform:"translate(101.000000, 40.000000)"},r.default.createElement("g",{id:"\\u56FE\\u6807-2",transform:"translate(55.000000, 0.000000)",filter:"url(#filter-1)"},r.default.createElement("g",{id:"\\u56FE\\u6807"},r.default.createElement("rect",{id:"\\u77E9\\u5F62",stroke:"#979797",strokeWidth:3,fill:"#D8D8D8",opacity:0,x:1.5,y:1.5,width:45,height:45}),r.default.createElement("path",{d:"M23.8719,22.49754 L28.3839,28.50054 L25.3719,28.50054 L25.3719,37.50054 L22.3719,37.50054 L22.3719,28.50054 L19.3809,28.50054 L23.8719,22.49754 Z M23.8716,7.49904 C30.3426,7.49904 35.8176,11.64204 37.9176,17.39604 C41.8746,18.34104 44.8356,21.88704 44.8356,26.12904 C44.8356,31.09104 40.7976,35.12904 35.8356,35.12904 C34.7916,35.12904 33.8016,34.91604 32.8716,34.58304 L32.8716,34.58304 L32.8716,31.26804 C33.6096,31.69404 34.4226,32.00004 35.3166,32.07804 C35.4906,32.09004 35.6586,32.12904 35.8356,32.12904 C39.1446,32.12904 41.8356,29.43804 41.8356,26.12904 C41.8356,23.86704 40.5636,21.91704 38.7096,20.89404 C37.8516,20.42304 36.8826,20.12904 35.8356,20.12904 C35.7666,20.12904 35.7036,20.14704 35.6346,20.15004 C35.4276,19.12404 35.0586,18.16704 34.6116,17.25204 C32.6586,13.27104 28.5996,10.49904 23.8716,10.49904 C19.1466,10.49904 15.0936,13.26804 13.1346,17.24304 C12.6846,18.15804 12.3156,19.11504 12.1086,20.14104 L12.1086,20.14104 L12.0006,20.12904 C10.9146,20.12904 9.9066,20.44404 9.0276,20.95104 C7.2276,21.98604 6.0006,23.90904 6.0006,26.12904 C6.0006,29.43804 8.6916,32.12904 12.0006,32.12904 C12.1476,32.12904 12.2856,32.09604 12.4326,32.08404 C13.3206,32.02104 14.1306,31.72704 14.8716,31.32504 L14.8716,31.32504 L14.8716,34.61004 C13.9656,34.92504 13.0116,35.12904 12.0006,35.12904 C7.0386,35.12904 3.0006,31.09104 3.0006,26.12904 C3.0006,21.92604 5.9106,18.41304 9.8136,17.42904 C11.9046,11.66004 17.3886,7.49904 23.8716,7.49904 Z",id:"\\u5F62\\u72B6\\u7ED3\\u5408",fill:"#151B26"}))))))))};t.default=o},"00f2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadCellSort=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d77e"),i=n("32e1"),l=n("c264"),s=function(e){function t(t){var n=e.call(this,t)||this;return n.state={order:"",orderBy:""},n}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.column,o=t.onSort,i=t.classnames;return r.default.createElement("span",{className:i("TableCell-sortBtn"),onClick:function(){return(0,a.__awaiter)(e,void 0,void 0,(function(){var e,t;return(0,a.__generator)(this,(function(a){return e={},e=n.key===this.state.orderBy?"descend"===this.state.order?{orderBy:"",order:"ascend"}:{order:"descend"}:{orderBy:n.key,order:"ascend"},o&&(t=o({orderBy:this.state.orderBy,order:this.state.order}),t)||this.setState(e),[2]}))}))}},r.default.createElement("i",{className:i("TableCell-sortBtn--down",this.state.orderBy===n.key&&"descend"===this.state.order?"is-active":"")},r.default.createElement(l.Icon,{icon:"sort-desc",className:"icon"})),r.default.createElement("i",{className:i("TableCell-sortBtn--up",this.state.orderBy===n.key&&"ascend"===this.state.order?"is-active":"")},r.default.createElement(l.Icon,{icon:"sort-asc",className:"icon"})),r.default.createElement("i",{className:i("TableCell-sortBtn--default",this.state.orderBy===n.key?"":"is-active")},r.default.createElement(l.Icon,{icon:"sort-default",className:"icon"})))},t}(r.default.Component);t.HeadCellSort=s,t.default=(0,o.themeable)((0,i.localeable)(s))},"01af":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadCellSearchDropDown=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("c264"),i=(0,a.__importDefault)(n("35b7")),l=n("8bc8"),s=(0,a.__importDefault)(n("dbb0")),u=n("d369"),d=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpened:!1},n.formItems=[],n.open=n.open.bind(n),n.close=n.close.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n.handleAction=n.handleAction.bind(n),n}return(0,a.__extends)(t,e),t.prototype.buildSchema=function(){var e,t,n=this.props,r=n.searchable,o=n.sortable,i=n.name,l=n.label,s=n.translate;if(!0===r?t={title:"",controls:[{type:"text",name:i,placeholder:l,clearable:!0}]}:r&&(t=r.controls||r.tabs||r.fieldSet?(0,a.__assign)((0,a.__assign)({title:""},r),{controls:Array.isArray(r.controls)?r.controls.concat():void 0}):{title:"",className:r.formClassName,controls:[(0,a.__assign)({type:r.type||"text",name:r.name||i,placeholder:l},r)]}),t&&t.controls&&o&&t.controls.unshift({type:"hidden",name:"orderBy",value:i},{type:"button-group",name:"orderDir",label:s("sort"),options:[{label:s("asc"),value:"asc"},{label:s("desc"),value:"desc"}]}),t){var u=[];null===(e=t.controls)||void 0===e||e.forEach((function(e){return e.name&&"orderBy"!==e.name&&"orderDir"!==e.name&&u.push(e.name)})),this.formItems=u,t=(0,a.__assign)((0,a.__assign)({},t),{type:"form",wrapperComponent:"div",actions:[{type:"button",label:s("reset"),actionType:"clear-and-submit"},{type:"button",label:s("cancel"),actionType:"cancel"},{label:s("search"),type:"submit",primary:!0}]})}return t||"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;if("cancel"!==t.actionType&&"close"!==t.actionType)return"reset"===t.actionType?(this.close(),void this.handleReset()):void(a&&a(e,t,n));this.close()},t.prototype.handleReset=function(){var e=this.props,t=e.onQuery,n=e.data,r=e.name,o=(0,a.__assign)({},n);this.formItems.forEach((function(e){return(0,u.setVariable)(o,e,void 0)})),o.orderBy===r&&(o.orderBy="",o.orderDir="asc"),t(o)},t.prototype.handleSubmit=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,i,l;return(0,a.__generator)(this,(function(s){switch(s.label){case 0:return t=this.props,n=t.onQuery,r=t.name,o=t.data,i=t.dispatchEvent,e.orderDir&&(e=(0,a.__assign)((0,a.__assign)({},e),{orderBy:r})),[4,i("columnSearch",(0,u.createObject)(o,{searchName:r,searchValue:e}))];case 1:return l=s.sent(),(null===l||void 0===l?void 0:l.prevented)?[2]:(this.close(),n(e),[2])}}))}))},t.prototype.isActive=function(){var e=this.props,t=e.data,n=e.name,a=e.orderBy;return a===n||this.formItems.some((function(e){return null===t||void 0===t?void 0:t[e]}))},t.prototype.render=function(){var e=this,t=this.props,n=t.render,u=t.name,d=t.data,c=t.searchable,p=t.store,f=t.orderBy,m=t.popOverContainer,h=t.classPrefix,v=t.classnames,g=this.buildSchema(),y=this.isActive();return r.default.createElement("span",{className:v("".concat(h,"TableCell-searchBtn"),y?"is-active":"")},r.default.createElement("span",{onClick:this.open},r.default.createElement(o.Icon,{icon:"search",className:"icon"})),this.state.isOpened?r.default.createElement(i.default,{container:m||function(){return(0,l.findDOMNode)(e)},placement:"left-bottom-left-top right-bottom-right-top",target:m?function(){return(0,l.findDOMNode)(e).parentNode}:null,show:!0},r.default.createElement(s.default,{classPrefix:h,onHide:this.close,className:v("".concat(h,"TableCell-searchPopOver"),c.className),overlay:!0},n("quick-search-form",g,{data:(0,a.__assign)((0,a.__assign)({},d),{orderBy:f,orderDir:f===u?p.orderDir:""}),onSubmit:this.handleSubmit,onAction:this.handleAction}))):null)},t}(r.default.Component);t.HeadCellSearchDropDown=d},"01c4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 1024 1024",fill:"currentColor",className:"icon"},e),r.default.createElement("path",{d:"M512 64A448 448 0 1 1 512 960 448 448 0 0 1 512 64z m0 627.2A38.4 38.4 0 1 0 512 768a38.4 38.4 0 0 0 0-76.8zM544 256h-64v349.12h64V256z",fill:"#FFB200"}))};t.default=o},"0224":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegisterStore=t.IIRendererStore=t.iRendererStore=t.RendererStore=void 0;var a=n("9ab4"),r=n("f7d3"),o=n("9007");Object.defineProperty(t,"iRendererStore",{enumerable:!0,get:function(){return o.iRendererStore}}),Object.defineProperty(t,"IIRendererStore",{enumerable:!0,get:function(){return o.IIRendererStore}});var i=n("1727"),l=n("7f9f"),s=n("689c"),u=n("51cd"),d=n("e8da"),c=n("2b5b"),p=n("2602"),f=n("62c6"),m=(0,a.__importDefault)(n("2769")),h=n("dce3"),v=n("bd60"),g=n("628b"),y=n("73d5"),b=n("df0b");(0,r.setLivelynessChecking)("ignore");var _=[i.ServiceStore,s.FormStore,l.ComboStore,u.CRUDStore,d.TableStore,c.TableStoreV2,p.ListStore,f.ModalStore,h.FormItemStore,g.PaginationStore,y.AppStore];t.RendererStore=r.types.model("RendererStore",{storeType:"RendererStore"}).props({visibleState:r.types.optional(r.types.frozen(),{}),disableState:r.types.optional(r.types.frozen(),{})}).views((function(e){return{get fetcher(){return(0,r.getEnv)(e).fetcher},get notify(){return(0,r.getEnv)(e).notify},get isCancel(){return(0,r.getEnv)(e).isCancel},get __(){return(0,r.getEnv)(e).translate},getStoreById:function(e){return(0,v.getStoreById)(e)},get stores(){return(0,v.getStores)()}}})).actions((function(e){return{addStore:function(t){if(t.storeType===b.RootStore.name)return(0,v.addStore)(b.RootStore.create(t,(0,r.getEnv)(e)));var n=(0,m.default)(_,(function(e){return e.name===t.storeType}));return(0,v.addStore)(n.create(t,(0,r.getEnv)(e)))},removeStore:function(e){(0,v.removeStore)(e)},setVisible:function(t,n){var r,o=(0,a.__assign)((0,a.__assign)({},e.visibleState),(r={},r[t]=n,r));e.visibleState=o},setDisable:function(t,n){var r,o=(0,a.__assign)((0,a.__assign)({},e.disableState),(r={},r[t]=n,r));e.disableState=o}}}));var C=function(e){_.push(e)};t.RegisterStore=C},"02245":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Radios=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("cbc0"),i=(0,a.__importDefault)(n("3473")),l=(0,a.__importDefault)(n("f602")),s=n("79ae"),u=n("d77e"),d=n("27d6"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.toggleOption=function(e){var t=this.props,n=t.value,a=t.onChange,r=t.valueField,o=t.clearable,i=t.delimiter,l=t.options,u=(0,s.value2array)(n,{multiple:!1,delimiter:i,valueField:r,options:l}),d=u.indexOf(e);~d?o&&u.splice(d,1):u=[e];var c=u[0];a&&a(c)},t.prototype.renderGroup=function(e,t,n){var a=this,o=this.props,i=o.classnames;o.optionType,o.classPrefix;return r.default.createElement("div",{key:t,className:i("RadiosControl-group",e.className)},r.default.createElement("label",{className:i("RadiosControl-groupLabel",e.labelClassName)},e.label),e.children&&e.children.length?e.children.map((function(e,t){return a.renderItem(e,t,n)})):null)},t.prototype.renderItem=function(e,t,n){var a=this;if(e.children)return this.renderGroup(e,t,n);var o=this.props,s=o.disabled,u=o.inline,d=o.itemClassName,c=o.classnames,p=o.labelClassName,f=o.labelField,m=o.optionType,h=o.level,v=o.btnActiveLevel;o.classPrefix;if("button"===m){var g=!!~n.indexOf(e);return r.default.createElement(l.default,{key:t,active:g,onClick:function(){return a.toggleOption(e)},className:c(d,e.className),disabled:s||e.disabled,level:(g?v:"")||h},r.default.createElement("span",null,"".concat(e[f||"label"])))}return r.default.createElement(i.default,{type:"radio",key:t,onChange:function(){return a.toggleOption(e)},checked:!!~n.indexOf(e),className:c(d,e.className),disabled:s||e.disabled,description:e.description,inline:u,labelClassName:p},"".concat(e[f||"label"]))},t.prototype.render=function(){var e=this,t=this.props,n=t.value,a=t.options,o=t.className,i=t.classnames,l=t.placeholder,u=t.columnsCount,c=(t.joinValues,t.extractValue,t.disabled,t.inline),p=t.delimiter,f=t.valueField,m=(0,s.value2array)(n,{multiple:!1,delimiter:p,valueField:f,options:a}),h=[];return a&&(h=a.map((function(t,n){return e.renderItem(t,n,m)}))),c||(h=(0,d.columnsSplit)(h,i,u)),r.default.createElement("div",{className:o},h&&h.length?h:l)},t.defaultProps={type:"radio",optionType:"default",btnActiveLevel:"primary",resetValue:"",inline:!0,joinValues:!0,clearable:!1,columnsCount:1},t}(r.default.Component);t.Radios=c,t.default=(0,u.themeable)((0,o.uncontrollable)(c,{value:"onChange"}))},"0271":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 12 2",className:"icon"},e),r.default.createElement("g",{id:"minus",fill:"currentColor",fillRule:"nonzero"},r.default.createElement("polygon",{id:"path-1",points:"0 1.6 0 0.4 12 0.4 12 1.6"})))};t.default=o},"0458":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=n("1727"),l=n("a97c"),s=n("d369"),u=n("2b46"),d=(0,a.__importDefault)(n("454d")),c=n("7f82"),p=n("4afe"),f=n("c6ba"),m=(0,a.__importDefault)(n("3206")),h=n("d813"),v=function(e){function t(t){var n=e.call(this,t)||this;return n.asideInner=r.default.createRef(),(0,s.bulkBindFunctions)(n,["handleAction","handleChange","handleQuery","handleDialogConfirm","handleDialogClose","handleDrawerConfirm","handleDrawerClose","handleClick","reload","silentReload","initInterval"]),n.style=document.createElement("style"),n.style.setAttribute("data-page",""),document.getElementsByTagName("head")[0].appendChild(n.style),n.updateStyle(),n.varStyle=document.createElement("style"),n.style.setAttribute("data-vars",""),document.getElementsByTagName("head")[0].appendChild(n.varStyle),n.updateVarStyle(),n}var n,o;return(0,a.__extends)(t,e),t.prototype.updateStyle=function(){this.props.css||this.props.mobileCSS?this.style.innerHTML="\n ".concat(this.buildCSS(this.props.css),"\n\n @media (max-width: 768px) {\n ").concat(this.buildCSS(this.props.mobileCSS),"\n }\n "):this.style.innerHTML=""},t.prototype.buildCSS=function(e){if(!e)return"";var t="";for(var n in e){var a=e[n],r="";for(var o in a)r+=" ".concat(o,": ").concat(a[o],";\n");t+="\n ".concat(n," {\n ").concat(r,"\n }\n ")}return t},t.prototype.updateVarStyle=function(){var e=this.props.cssVars,t="";if(e){for(var n in e)if(n.startsWith("--")){if(-1!==n.indexOf(":"))continue;var a=e[n];if("string"===typeof a&&(-1!==a.indexOf("expression(")||-1!==a.indexOf(";")))continue;t+="".concat(n,": ").concat(a,"; \n")}this.varStyle.innerHTML="\n :root {\n ".concat(t,"\n }\n ")}},t.prototype.componentDidMount=function(){var e=this.props,t=e.initApi,n=e.initFetch,a=e.initFetchOn,r=e.store,o=e.messages,i=e.asideSticky;if(this.mounted=!0,(0,c.isEffectiveApi)(t,r.data,n,a)&&r.fetchInitData(t,r.data,{successMessage:o&&o.fetchSuccess,errorMessage:o&&o.fetchFailed}).then(this.initInterval),i&&this.asideInner.current){var l=this.asideInner.current;l.style.cssText+="position: sticky; top: ".concat((0,h.scrollPosition)(l).top,"px;")}},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.store,a=t.initApi;if(t.initFetchOn&&t.initFetch&&!e.initFetch||!1!==t.initFetch&&(0,c.isApiOutdated)(e.initApi,a,e.data,t.data)){var r=t.messages;(0,c.isEffectiveApi)(a,n.data)&&n.fetchData(a,n.data,{successMessage:r&&r.fetchSuccess,errorMessage:r&&r.fetchFailed}).then(this.initInterval)}else JSON.stringify(t.css)!==JSON.stringify(e.css)||JSON.stringify(t.mobileCSS)!==JSON.stringify(e.mobileCSS)?this.updateStyle():JSON.stringify(t.cssVars)!==JSON.stringify(e.cssVars)?this.updateVarStyle():(0,s.isObjectShallowModified)(e.defaultData,t.defaultData)&&n.reInitData(t.defaultData)},t.prototype.componentWillUnmount=function(){var e,t;this.mounted=!1,clearTimeout(this.timer),this.style&&(null===(e=this.style.parentNode)||void 0===e||e.removeChild(this.style)),this.varStyle&&(null===(t=this.varStyle.parentNode)||void 0===t||t.removeChild(this.varStyle))},t.prototype.reloadTarget=function(e,t){},t.prototype.handleAction=function(e,t,n,r,o){var i=this;void 0===r&&(r=!1);var u=this.props,d=u.env,p=u.store,f=u.messages,m=u.onAction;if("dialog"===t.actionType)p.setCurrentAction(t),p.openDialog(n);else{if("drawer"!==t.actionType){if("ajax"===t.actionType){if(p.setCurrentAction(t),!(0,c.isEffectiveApi)(t.api,n))return;return p.saveRemote(t.api,n,{successMessage:t.messages&&t.messages.success||f&&f.saveSuccess,errorMessage:t.messages&&t.messages.failed||f&&f.saveSuccess}).then((function(){return(0,a.__awaiter)(i,void 0,void 0,(function(){var e;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return t.feedback&&(0,s.isVisible)(t.feedback,p.data)?[4,this.openFeedback(t.feedback,p.data)]:[3,2];case 1:n.sent(),n.label=2;case 2:return e=t.redirect&&(0,l.filter)(t.redirect,p.data),e&&d.jumpTo(e,t),t.reload&&this.reloadTarget(t.reload,p.data),[2]}}))}))})).catch((function(e){if(r||t.countDown)throw e}))}return m(e,t,n,r,o||this.context)}p.setCurrentAction(t),p.openDrawer(n)}},t.prototype.handleQuery=function(e){this.receive(e)},t.prototype.handleDialogConfirm=function(e,t){for(var n=[],r=2;r1?r.default.createElement(r.default.Fragment,null,r.default.createElement("a",{className:a("ImageGallery-prevBtn",u<=0?"is-disabled":""),onClick:this.prev},r.default.createElement(s.Icon,{icon:"prev",className:"icon"})),r.default.createElement("a",{className:a("ImageGallery-nextBtn",u>=d.length-1?"is-disabled":""),onClick:this.next},r.default.createElement(s.Icon,{icon:"next",className:"icon"}))):null)):null,d.length>1?r.default.createElement("div",{className:a("ImageGallery-footer")},r.default.createElement("a",{className:a("ImageGallery-prevList is-disabled")},r.default.createElement(s.Icon,{icon:"prev",className:"icon"})),r.default.createElement("div",{className:a("ImageGallery-itemsWrap")},r.default.createElement("div",{className:a("ImageGallery-items")},d.map((function(t,n){return r.default.createElement("div",{key:n,"data-index":n,onClick:e.handleItemClick,className:a("ImageGallery-item",n===u?"is-active":"")},r.default.createElement("img",{src:t.src}))})))),r.default.createElement("a",{className:a("ImageGallery-nextList is-disabled")},r.default.createElement(s.Icon,{icon:"next",className:"icon"}))):null))},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleImageEnlarge",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"close",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"prev",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"next",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.MouseEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleItemClick",null),t}(r.default.Component);t.ImageGallery=d,t.default=(0,o.themeable)((0,u.localeable)(d))},"065a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 18 18",className:"icon"},e),r.default.createElement("path",{d:"M2,8 C2,4.691 4.691,2 8,2 C11.309,2 14,4.691 14,8 C14,11.309 11.309,14 8,14 C4.691,14 2,11.309 2,8 L2,8 Z M18,16.586 L14.314,12.9 C15.367,11.545 16,9.849 16,8 C16,3.582 12.418,0 8,0 C3.582,0 0,3.582 0,8 C0,12.418 3.582,16 8,16 C9.849,16 11.545,15.367 12.9,14.314 L16.586,18 L18,16.586 Z"}))};t.default=o},"071c":function(e,t,n){"use strict";function a(e){t.ICONS=e}Object.defineProperty(t,"__esModule",{value:!0}),t.setIconVendor=t.ICONS=void 0,t.ICONS=[{name:"Font Awesome 4.7",prefix:"fa fa-",icons:["slideshare","snapchat","snapchat-ghost","snapchat-square","soundcloud","spotify","stack-exchange","stack-overflow"]}],t.setIconVendor=a},"0723":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserTabSelect=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d77e"),i=n("32e1"),l=n("4afe"),s=(0,a.__importDefault)(n("4066")),u=(0,a.__importDefault)(n("1f88")),d=n("c264"),c=n("d369"),p=a.__importStar(n("cd0c")),f=n("7e49"),m=function(e){function t(t){var n=e.call(this,t)||this;return n.unmounted=!1,n.state={isOpened:!1,isSelectOpened:!1,inputValue:"",options:[],breadList:[],searchList:[],tempSelection:[],selection:t.selection?t.selection:[],isSearch:!1,searchLoading:!1,isEdit:!1,activeKey:0},n}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){},t.prototype.componentDidUpdate=function(e){},t.prototype.componentWillUnmount=function(){this.unmounted=!0},t.prototype.onClose=function(){this.setState({isOpened:!1,isSearch:!1,inputValue:"",searchList:[],searchLoading:!1,activeKey:0})},t.prototype.onOpen=function(){var e=this.state.selection;this.setState({isOpened:!0,tempSelection:e.slice()})},t.prototype.handleBack=function(){this.onClose();var e=this.props.onChange;e(this.state.selection)},t.prototype.handleSelectChange=function(e,t){var n=this.props,a=n.multiple,r=n.valueField,o=void 0===r?"value":r,i=this.state.selection.slice(),l=i.map((function(e){return e[o]}));if(t&&Array.isArray(e))i=e.slice();else if(!Array.isArray(e)){var s=l.indexOf(e[o]);-1!==s?i.splice(i.indexOf(e),1):a?i.push(e):i=[e]}return this.setState({selection:i}),!1},t.prototype.handleTabChange=function(e){this.setState({activeKey:e})},t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,o=(t.translate,t.onChange,t.placeholder),i=void 0===o?"请选择":o,c=t.tabOptions,m=t.onSearch,h=t.deferLoad,v=t.data,g=this.state,y=g.activeKey,b=g.isOpened,_=g.selection;return r.default.createElement("div",{className:n("UserTabSelect")},r.default.createElement(l.ResultBox,{className:n("UserTabSelect-input",b?"is-active":""),allowInput:!1,result:_,onResultChange:function(t){return e.handleSelectChange(t,!0)},onResultClick:this.onOpen,placeholder:i,useMobileUI:!0}),r.default.createElement(u.default,{isShow:b,className:n("UserTabSelect-popup"),onHide:this.onClose,showClose:!1},r.default.createElement("div",{className:n("UserTabSelect-wrap")},r.default.createElement("div",{className:n("UserSelect-navbar")},r.default.createElement("span",{className:"left-arrow-box",onClick:this.handleBack},r.default.createElement(d.Icon,{icon:"left-arrow",className:"icon"})),r.default.createElement("div",{className:n("UserSelect-navbar-title")},"人员选择")),r.default.createElement(p.default,{mode:"tiled",className:n("UserTabSelect-tabs"),onSelect:this.handleTabChange,activeKey:y},null===c||void 0===c?void 0:c.map((function(t,n){return r.default.createElement(p.Tab,(0,a.__assign)({},e.props,{eventKey:n,key:n,title:t.title,className:"TabsTransfer-tab"}),r.default.createElement(s.default,(0,a.__assign)({selection:_,showResultBox:!1},t,{options:"string"===typeof t.options&&v?(0,f.resolveVariableAndFilter)(t.options,v,"| raw"):t.options,multiple:!0,controlled:!0,onChange:e.handleSelectChange,onSearch:function(e,n){return t.searchable&&m?m(e,n,{searchApi:t.searchApi,searchParam:t.searchParam,searchTerm:t.searchTerm}):void 0},deferLoad:function(e,n,r){return h(e,n,(0,a.__assign)({deferApi:t.deferApi},r||{}))}})))}))))))},t.defaultProps={},(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onClose",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onOpen",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleBack",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Boolean]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleSelectChange",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleTabChange",null),t}(r.default.Component);t.UserTabSelect=m,t.default=(0,o.themeable)((0,i.localeable)(m))},"073c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 100 100",className:"icon"},e),r.default.createElement("defs",null,r.default.createElement("linearGradient",{x1:"16.4979754%",y1:"38.5280437%",x2:"56.2620383%",y2:"63.1848064%",id:"linearGradient-1"},r.default.createElement("stop",{stopColor:"#DCE0EF",offset:"0%"}),r.default.createElement("stop",{stopColor:"#DCDFEA",offset:"100%"})),r.default.createElement("linearGradient",{x1:"28.8931882%",y1:"55.7070718%",x2:"93.8984841%",y2:"48.875884%",id:"linearGradient-2"},r.default.createElement("stop",{stopColor:"#F1F3FA",offset:"0%"}),r.default.createElement("stop",{stopColor:"#E8EAF0",offset:"100%"}))),r.default.createElement("g",{id:"\\u7EC4\\u7EC7\\u53F0\\u4F18\\u5316",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("g",{id:"\\u5207\\u56FE\\u753B\\u677F",transform:"translate(-78.000000, -416.000000)"},r.default.createElement("g",{id:"\\u6682\\u65E0\\u6570\\u636E/\\u7ED3\\u679C\\u5907\\u4EFD-2",transform:"translate(78.000000, 416.000000)"},r.default.createElement("rect",{id:"\\u77E9\\u5F62",x:0,y:0,width:100,height:100}),r.default.createElement("ellipse",{id:"\\u692D\\u5706\\u5F62",fill:"url(#linearGradient-1)",fillRule:"nonzero",cx:50,cy:60.8,rx:44.4,ry:22.8}),r.default.createElement("ellipse",{id:"path-3",fill:"url(#linearGradient-2)",fillRule:"nonzero",cx:50,cy:58.4,rx:44.4,ry:22.8}),r.default.createElement("path",{d:"M69.3433052,42.0175272 C76.247385,46.0034899 79.4224575,53.2531227 79.4002852,61.1800089 C79.3886692,65.143452 77.9808226,67.9246181 75.7170053,69.2307527 C73.4419251,70.5143678 70.3108743,70.3116918 66.8644658,68.3299702 L34.8566948,50.8677155 C27.952615,46.8817529 22.3775425,37.2208603 22.399666,29.293974 C22.4225936,21.3670878 28.0427172,18.1805696 34.946797,22.1665323 C35.836556,22.6732225 36.6925268,23.2699909 37.5259719,23.9568376 C38.2918405,15.8610546 44.5764677,12.8209136 52.201365,17.2122284 C59.8149994,21.6035432 66.0658383,31.8837238 66.775393,40.8352501 C67.5975754,41.1054849 68.4648089,41.510837 69.3433052,42.0175272 Z",id:"\\u8DEF\\u5F84",fill:"#E0E3EF",fillRule:"nonzero"}),r.default.createElement("path",{d:"M42.92,29.6824613 C42.92,29.2351107 43.2826494,28.8724613 43.73,28.8724613 C43.8912677,28.8724613 44.0488647,28.9206 44.1826072,29.0107123 L49.0426072,32.2852555 C49.2660417,32.4357999 49.4,32.6875855 49.4,32.9570045 L49.4,41.12 L48.271,40.4049536 L49.4,41.1660576 L49.4,48.288706 C49.4,48.7360567 49.0373506,49.098706 48.59,49.098706 C48.4366236,49.098706 48.2863993,49.0551595 48.1568008,48.9731317 L43.2968008,45.8970518 C43.0622016,45.748565 42.92,45.4902682 42.92,45.2126262 L42.92,29.6824613 Z",id:"\\u5F62\\u72B6\\u7ED3\\u5408",fill:"#FFFFFF",fillRule:"nonzero"}),r.default.createElement("path",{d:"M53.9026072,44.1307123 L58.7626072,47.4052555 C58.9860417,47.5557999 59.12,47.8075855 59.12,48.0770045 L59.12,54.768706 C59.12,55.2160567 58.7573506,55.578706 58.31,55.578706 C58.1566236,55.578706 58.0063993,55.5351595 57.8768008,55.4531317 L53.0168008,52.3770518 C52.7822016,52.228565 52.64,51.9702682 52.64,51.6926262 L52.64,44.8024613 C52.64,44.3551107 53.0026494,43.9924613 53.45,43.9924613 C53.6112677,43.9924613 53.7688647,44.0406 53.9026072,44.1307123 Z",id:"\\u77E9\\u5F62",fill:"#F7F8FB",fillRule:"nonzero"})))))};t.default=o},"0911":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldRenderer=t.TableCellRenderer=t.TableCell=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=(0,a.__importDefault)(n("b8e3")),l=(0,a.__importDefault)(n("dd59")),s=(0,a.__importDefault)(n("ea9c")),u=n("4f20"),d=n("3eea"),c=n("a97c"),p=n("4864"),f=(0,a.__importDefault)(n("656e")),m=n("7e49"),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.classnames,n=e.className,o=(e.classNameExpr,e.render),i=e.style,l=void 0===i?{}:i,s=e.wrapperComponent,u=e.column,h=e.value,v=e.data,g=e.children,y=e.width,b=e.align,_=e.innerClassName,C=(e.label,e.tabIndex),E=e.onKeyUp,x=e.rowSpan,w=(e.body,e.tpl,e.remark,e.prefix),S=e.affix,O=e.isHead,k=(e.colIndex,e.row),D=e.showBadge,N=e.itemBadge,T=(0,a.__rest)(e,["classnames","className","classNameExpr","render","style","wrapperComponent","column","value","data","children","width","align","innerClassName","label","tabIndex","onKeyUp","rowSpan","body","tpl","remark","prefix","affix","isHead","colIndex","row","showBadge","itemBadge"]),P=(0,a.__assign)((0,a.__assign)({},u),{className:_,type:u&&u.type||"plain"});"button"!==P.type&&"dropdown-button"!==P.type&&delete P.label;var A=g||o("field",P,(0,a.__assign)((0,a.__assign)({},d(T,Object.keys(P))),{inputOnly:!0,value:h,data:v}));if(y&&(l=(0,a.__assign)((0,a.__assign)({},l),{width:l&&l.width||y}),/%$/.test(String(l.width))||(A=r.default.createElement("div",{style:{width:l.width}},w,A,S),w=null,S=null)),b&&(l=(0,a.__assign)((0,a.__assign)({},l),{textAlign:b})),u.backgroundScale){var I=u.backgroundScale,R=I.min,F=I.max;(0,m.isPureVariable)(R)&&(R=(0,m.resolveVariableAndFilter)(R,v,"| raw")),(0,m.isPureVariable)(F)&&(F=(0,m.resolveVariableAndFilter)(F,v,"| raw")),"undefined"===typeof R&&(R=Math.min.apply(Math,v.rows.map((function(e){return e[u.name]})))),"undefined"===typeof F&&(F=Math.max.apply(Math,v.rows.map((function(e){return e[u.name]}))));var M=new f.default(R,F,I.colors||["#FFEF9C","#FF7127"]),j=v[u.name];(0,m.isPureVariable)(I.source)&&(j=(0,m.resolveVariableAndFilter)(I.source,v,"| raw"));var L=M.getColor(Number(j)).toHexString();l.background=L}return s?(O&&(s="th"),r.default.createElement(s,{rowSpan:x>1?x:void 0,style:l,className:t(n,u.classNameExpr?(0,c.filter)(u.classNameExpr,v):null),tabIndex:C,onKeyUp:E},D?r.default.createElement(p.Badge,{classnames:t,badge:(0,a.__assign)((0,a.__assign)({},N),{className:t("Table-badge",null===N||void 0===N?void 0:N.className)}),data:k.data}):null,w,A,S)):A},t.defaultProps={wrapperComponent:"td"},t.propsList=["type","label","column","body","tpl","rowSpan","remark"],t}(r.default.Component);t.TableCell=h;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.propsList=(0,a.__spreadArray)(["quickEdit","quickEditEnabledOn","popOver","copyable","inline"],h.propsList,!0),t=(0,a.__decorate)([(0,o.Renderer)({test:/(^|\/)table\/(?:.*\/)?cell$/,name:"table-cell"}),(0,i.default)(),(0,s.default)({targetOutter:!0}),(0,l.default)(),u.observer],t),t}(h);t.TableCellRenderer=v;var g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.defaultProps=(0,a.__assign)((0,a.__assign)({},h.defaultProps),{wrapperComponent:"div"}),t=(0,a.__decorate)([(0,o.Renderer)({type:"field",name:"field"}),(0,s.default)(),(0,l.default)()],t),t}(h);t.FieldRenderer=g},"094a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Range=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("5a3a")),o=(0,a.__importDefault)(n("ec69")),i=(0,a.__importDefault)(n("e2a0")),l=(0,a.__importDefault)(n("ceac")),s=(0,a.__importDefault)(n("ab5b")),u=n("cbc0"),d=(0,a.__importDefault)(n("35b7")),c=n("d77e"),p=n("d369"),f=n("7e49"),m=n("8bc8"),h=n("c264"),v=function(e,t,n){return 100*(e-t)/(n-t)+"%"},g=function(e){function t(t){var n=e.call(this,t)||this;return n.handleRef=s.default.createRef(),n.state={isDrag:!1,labelActive:!1},n}var n;return(0,a.__extends)(t,e),t.prototype.onMouseDown=function(){this.setState({isDrag:!0,labelActive:!0}),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp)},t.prototype.onMouseMove=function(e){var t=this.state.isDrag,n=this.props.type,a=void 0===n?"min":n;t&&this.props.onChange(e.pageX,a)},t.prototype.onMouseUp=function(){this.setState({isDrag:!1}),this.props.onAfterChange(),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp)},t.prototype.onMouseEnter=function(){this.setState({labelActive:!0})},t.prototype.onMouseLeave=function(){var e=this.state.isDrag;e||this.setState({labelActive:!1})},t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,a=t.disabled,r=t.value,o=t.min,i=t.max,l=t.tooltipVisible,u=t.tipFormatter,c=t.unit,p=t.tooltipPlacement,f=void 0===p?"auto":p,g=this.state,b=g.isDrag,_=g.labelActive,C={left:v(r,o,i),zIndex:b?2:1};return a?s.default.createElement("div",{className:n("InputRange-handle"),style:C},s.default.createElement("div",{className:n("InputRange-handle-icon")},s.default.createElement(h.Icon,{icon:"slider-handle",className:"icon"}))):s.default.createElement("div",{className:n("InputRange-handle"),style:C,ref:this.handleRef},s.default.createElement("div",{className:n(b?"InputRange-handle-drage":"InputRange-handle-icon"),onMouseDown:this.onMouseDown,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},s.default.createElement(h.Icon,{icon:"slider-handle",className:"icon"})),s.default.createElement(d.default,{placement:f,target:function(){return(0,m.findDOMNode)(e)},container:function(){return(0,m.findDOMNode)(e)},rootClose:!1,show:!0},s.default.createElement(y,{show:_,classPrefix:this.props.classPrefix,classnames:n,value:r,tooltipVisible:l,tipFormatter:u,unit:c,placement:f})))},(0,a.__decorate)([p.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onMouseDown",null),(0,a.__decorate)([p.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof MouseEvent&&MouseEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onMouseMove",null),(0,a.__decorate)([p.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onMouseUp",null),(0,a.__decorate)([p.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onMouseEnter",null),(0,a.__decorate)([p.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onMouseLeave",null),t}(s.default.Component),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.classnames,n=e.value,a=e.show,r=e.tooltipVisible,o=e.tipFormatter,i=e.unit,l=void 0===i?"":i,u=e.positionLeft,d=void 0===u?0:u,c=e.positionTop,f=void 0===c?0:c,m=this.props.placement;"auto"===m&&(d>=0&&f>=0&&(m="top"),d>=0&&f<0&&(m="bottom"),d<0&&f>=0&&(m="left"),d<0&&f<0&&(m="right"));var h=void 0!==r?r&&o?o(n):r:a;return s.default.createElement("div",{className:t("InputRange-label","pos-".concat((0,p.camel)(m)),{"InputRange-label-visible":h})},s.default.createElement("span",null,n+l))},t}(s.default.Component),b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.multipleValue={min:t.props.value.min,max:t.props.value.max},t.trackRef=s.default.createRef(),t}var n;return(0,a.__extends)(t,e),t.prototype.updateValue=function(e){this.props.updateValue(e)},t.prototype.getBoundingClient=function(e){var t=null===e||void 0===e?void 0:e.getBoundingClientRect(),n=t.x,a=t.y,r=t.width,o=t.height;return{x:n,y:a,width:r,height:o}},t.prototype.pageXToValue=function(e){var t=this.getBoundingClient(this.trackRef.current),n=t.x,a=t.width,r=this.props,o=r.max,i=r.min;return(e-n)*(o-i)/a+i},t.prototype.onChange=function(e,t){var n;void 0===t&&(t="min");var r=this.props,o=r.max,i=r.min,l=r.step,s=r.multiple,u=r.value,d=this.pageXToValue(e);if(!(d>o||d=t/2?e:e-t;while(a<=r)a+=t;return a},t.prototype.onClickTrack=function(e){if(!this.props.disabled){var t=this.props.value,n=this.pageXToValue(e.pageX),a=Math.abs(n-t.min)>Math.abs(n-t.max)?"max":"min";this.onChange(e.pageX,a)}},t.prototype.renderSteps=function(){var e=this.props,t=e.max,n=e.min,a=e.step,o=e.showSteps,i=e.classnames,l=e.parts,u=o;(l>1||Array.isArray(l))&&(u=!0);var d=t-n,c=l>1?l:Math.floor(d/a),p=d/c,f=Array.isArray(l)?l.map((function(e){return e-n})):(0,r.default)(c-1).map((function(e){return(e+1)*p}));return u&&s.default.createElement("div",null,f.map((function(e){return s.default.createElement("span",{key:e,className:i("InputRange-track-dot"),style:{left:100*e/(t-n)+"%"}})})))},t.prototype.onGetChangeValue=function(e,t){var n=this.props,a=n.max,r=n.min,o=this.pageXToValue(e);if(!(o>a||ol;this.body.offsetWidth&&(r.style.cssText="top: ".concat(l,"px;width: ").concat(this.body.offsetWidth,"px;")),s?r.classList.add("in"):r.classList.remove("in")}}},t.prototype.getPopOverContainer=function(){return(0,o.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,r){if(e.change(t,a),n&&!a)if(n&&n.api)this.props.onAction(null,{actionType:"ajax",api:n.api},t);else{var o=this.props,i=o.onSave,l=o.primaryField;i&&i(e.data,(0,p.difference)(e.data,e.pristine,["id",l]),e.index,void 0,e.pristine,r)}},t.prototype.handleSave=function(){var e=this.props,t=e.store,n=e.onSave,a=e.primaryField;if(n&&t.modifiedItems.length){var r=t.modifiedItems.map((function(e){return e.data})),o=t.modifiedItems.map((function(e){return e.index})),i=t.modifiedItems.map((function(e){return(0,p.difference)(e.data,e.pristine,["id",a])})),l=t.items.filter((function(e){return!e.modified})).map((function(e){return e.data}));n(r,i,o,l,t.modifiedItems.map((function(e){return e.pristine})))}},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=(0,o.findDOMNode)(this),n=this.props.classPrefix;this.sortable=new v.default(t.querySelector(".".concat(n,"List-items")),{group:"table",animation:150,handle:".".concat(n,"ListItem-dragBtn"),ghostClass:"is-dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var n=t.to;t.oldIndex0||document.body.scrollHeight>document.body.clientHeight){var e=(0,p.getScrollbarWidth)();document.body.style.width="calc(100% - ".concat(e,"px)")}},t.handleEntered=function(){var e=t.props.onEntered;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"),document.body.style.width="")}),200)},t.modalRef=function(e){t.modalDom=e;var n=t.props.classPrefix;e?((0,s.addModal)(t),e.classList.add("".concat(n,"Modal--").concat((0,s.current)(),"th"))):(0,s.removeModal)(t)},t}var n,a;return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.show&&(this.handleEnter(),this.handleEntered()),document.body.addEventListener("click",this.handleRootClickCapture,!0),document.body.addEventListener("click",this.handleRootClick)},t.prototype.componentWillUnmount=function(){this.props.show&&this.handleExited(),document.body.removeEventListener("click",this.handleRootClick),document.body.removeEventListener("click",this.handleRootClickCapture,!0)},t.prototype.handleRootClickCapture=function(e){var t=e.target,n=this.props,a=n.closeOnOutside,r=n.classPrefix,o=1===e.button&&null!==window.event||0===e.button;this.isRootClosed=!!(o&&a&&t&&this.modalDom&&(!this.modalDom.contains(t)&&!t.closest("[role=dialog]")||t.matches(".".concat(r,"Modal"))&&t===this.modalDom))},t.prototype.handleRootClick=function(e){var t=this.props.onHide;this.isRootClosed&&!e.defaultPrevented&&t(e)},t.prototype.render=function(){var e=this,t=this.props,n=t.className,a=t.contentClassName,r=t.children,s=t.container,u=t.show,d=t.size,c=t.overlay,p=t.classnames;return o.default.createElement(i.default,{mountOnEnter:!0,unmountOnExit:!0,appear:!0,in:u,timeout:500,onEnter:this.handleEnter,onExited:this.handleExited,onEntered:this.handleEntered},(function(t){var u;return o.default.createElement(l.default,{container:s},o.default.createElement("div",{ref:e.modalRef,role:"dialog",className:p("amis-dialog-widget Modal",(u={},u["Modal--".concat(d)]=d,u),n)},c?o.default.createElement("div",{className:p("Modal-overlay",f[t])}):null,o.default.createElement("div",{className:p("Modal-content",a,f[t])},t===i.EXITED?null:r)))}))},t.defaultProps={container:document.body,size:"",overlay:!0},t.Header=(0,u.themeable)((0,c.localeable)((function(e){var t=e.classnames,n=e.className,a=e.showCloseButton,i=e.onClose,l=e.children,s=(e.classPrefix,e.translate),u=(e.forwardedRef,(0,r.__rest)(e,["classnames","className","showCloseButton","onClose","children","classPrefix","translate","forwardedRef"]));return o.default.createElement("div",(0,r.__assign)({},u,{className:t("Modal-header",n)}),!1!==a?o.default.createElement("a",{"data-tooltip":s("Dialog.close"),"data-position":"left",onClick:i,className:t("Modal-close")},o.default.createElement(d.Icon,{icon:"close",className:"icon"})):null,l)}))),t.Title=(0,u.themeable)((function(e){var t=e.classnames,n=e.className,a=e.children,i=(e.classPrefix,e.forwardedRef,(0,r.__rest)(e,["classnames","className","children","classPrefix","forwardedRef"]));return o.default.createElement("div",(0,r.__assign)({},i,{className:t("Modal-title",n)}),a)})),t.Body=(0,u.themeable)((function(e){var t=e.classnames,n=e.className,a=e.children,i=(e.classPrefix,e.forwardedRef,(0,r.__rest)(e,["classnames","className","children","classPrefix","forwardedRef"]));return o.default.createElement("div",(0,r.__assign)({},i,{className:t("Modal-body",n)}),a)})),t.Footer=(0,u.themeable)((function(e){var t=e.classnames,n=e.className,a=e.children,i=(e.classPrefix,e.forwardedRef,(0,r.__rest)(e,["classnames","className","children","classPrefix","forwardedRef"]));return o.default.createElement("div",(0,r.__assign)({},i,{className:t("Modal-footer",n)}),a)})),(0,r.__decorate)([p.autobind,(0,r.__metadata)("design:type",Function),(0,r.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof MouseEvent&&MouseEvent)?n:Object]),(0,r.__metadata)("design:returntype",void 0)],t.prototype,"handleRootClickCapture",null),(0,r.__decorate)([p.autobind,(0,r.__metadata)("design:type",Function),(0,r.__metadata)("design:paramtypes",["function"===typeof(a="undefined"!==typeof MouseEvent&&MouseEvent)?a:Object]),(0,r.__metadata)("design:returntype",void 0)],t.prototype,"handleRootClick",null),t}(o.default.Component);t.Modal=m;var h=(0,u.themeable)((0,c.localeable)(m));t.default=h},"0b66":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressFieldRenderer=t.ProgressField=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=n("d369"),l=(0,a.__importDefault)(n("2407")),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.format=function(e){var t=this.props,n=t.valueTpl,a=t.render,r=t.data;return a("progress-value",n||"${value}%",{data:(0,i.createObject)(r,{value:e})})},t.prototype.render=function(){var e=this.props,t=e.mode,n=e.className,a=e.placeholder,o=e.progressClassName,s=e.map,u=e.stripe,d=e.animate,c=e.showLabel,p=e.strokeWidth,f=e.gapDegree,m=e.gapPosition,h=(e.classnames,(0,i.getPropValue)(this.props));return/^\d*\.?\d+$/.test(h)&&(h=parseFloat(h)),r.default.createElement(l.default,{value:h,type:t,map:s,stripe:u,animate:d,showLabel:c,placeholder:a,format:this.format,strokeWidth:p,gapDegree:f,gapPosition:m,className:n,progressClassName:o})},t.defaultProps={placeholder:"-",progressClassName:"",progressBarClassName:"",map:["bg-danger","bg-warning","bg-info","bg-success","bg-success"],valueTpl:"${value}%",showLabel:!0,stripe:!1,animate:!1},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"format",null),t}(r.default.Component);t.ProgressField=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"progress"})],t),t}(s);t.ProgressFieldRenderer=u},"0bc8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PanelRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=n("d369"),l=n("8bc8"),s=n("2a98"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.affixDom=r.default.createRef(),t.footerDom=r.default.createRef(),t}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e=(0,l.findDOMNode)(this),t=e?(0,i.getScrollParent)(e):null;t&&t!==document.body||(t=window),this.parentNode=t,t.addEventListener("scroll",this.affixDetect),this.unSensor=(0,s.resizeSensor)(e,this.affixDetect),this.affixDetect()},t.prototype.componentWillUnmount=function(){var e=this.parentNode;e&&e.removeEventListener("scroll",this.affixDetect),this.unSensor&&this.unSensor(),clearTimeout(this.timer)},t.prototype.affixDetect=function(){var e,t;if(this.props.affixFooter&&this.affixDom.current&&this.footerDom.current){var n=this.affixDom.current,a=this.footerDom.current,r=null!==(t=null!==(e=this.props.affixOffsetBottom)&&void 0!==e?e:this.props.env.affixOffsetBottom)&&void 0!==t?t:0,o=!1;if(a.offsetWidth){if(n.style.cssText="bottom: ".concat(r,"px;width: ").concat(a.offsetWidth,"px"),"always"===this.props.affixFooter)o=!0,a.classList.add("invisible2");else{var i=a.getBoundingClientRect(),l=window.innerHeight;o=i.bottom>l-r}o?n.classList.add("in"):n.classList.remove("in")}else this.timer=setTimeout(this.affixDetect,250)}},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,e.headerClassName,e.actionsClassName,e.footerClassName,e.children),i=(e.title,e.actions,e.footer,e.classPrefix,e.formMode),l=e.formHorizontal,s=e.subFormMode,u=e.subFormHorizontal,d=(0,a.__rest)(e,["type","className","data","header","body","render","bodyClassName","headerClassName","actionsClassName","footerClassName","children","title","actions","footer","classPrefix","formMode","formHorizontal","subFormMode","subFormHorizontal"]),c=(0,a.__assign)((0,a.__assign)({data:t},d),{formMode:s||i,formHorizontal:u||l});return o?"function"===typeof o?o(this.props):o:n?r("body",n,c):null},t.prototype.renderActions=function(){var e=this.props,t=e.actions,n=e.render;return Array.isArray(t)&&t.length?t.map((function(e,t){return n("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,o=e.header,i=(e.body,e.render),l=e.bodyClassName,s=e.headerClassName,u=e.actionsClassName,d=e.footerClassName,c=e.footerWrapClassName,p=(e.children,e.title),f=e.footer,m=e.affixFooter,h=e.classPrefix,v=e.classnames,g=(0,a.__rest)(e,["type","className","data","header","body","render","bodyClassName","headerClassName","actionsClassName","footerClassName","footerWrapClassName","children","title","footer","affixFooter","classPrefix","classnames"]),y=(0,a.__assign)({data:n},g),b=[],_=this.renderActions();_&&b.push(r.default.createElement("div",{key:"actions",className:v("Panel-btnToolbar",u||"Panel-footer")},_)),f&&b.push(r.default.createElement("div",{key:"footer",className:v(d||"Panel-footer")},i("footer",f,y)));var C=b.length?r.default.createElement("div",{className:v("Panel-footerWrap",c),ref:this.footerDom},b):null;return r.default.createElement("div",{className:v("Panel",t||"Panel--default")},o?r.default.createElement("div",{className:v(s||"Panel-heading")},i("header",o,y)):p?r.default.createElement("div",{className:v(s||"Panel-heading")},r.default.createElement("h3",{className:v("Panel-title")},i("title",p,y))):null,r.default.createElement("div",{className:l||"".concat(h,"Panel-body")},this.renderBody()),C,m&&b.length?r.default.createElement("div",{ref:this.affixDom,className:v("Panel-fixedBottom Panel-footerWrap",c)},b):null)},t.propsList=["header","actions","children","headerClassName","footerClassName","footerWrapClassName","actionsClassName","bodyClassName"],t.defaultProps={},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"affixDetect",null),t}(r.default.Component);t.default=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"panel"})],t),t}(u);t.PanelRenderer=d},"0bdf":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useValidationResolver=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("2593")),o=(0,a.__importDefault)(n("ab5b")),i=n("6662");function l(e){var t={};return Object.keys(e).forEach((function(n){var a=e[n][0];a&&(t[n]={type:a.rule,message:a.msg})})),t}function s(e){var t=this;return void 0===e&&(e=function(e){return e}),o.default.useCallback((function(n,o,s){return(0,a.__awaiter)(t,void 0,void 0,(function(){var t,o,u,d,c,p,f;return(0,a.__generator)(this,(function(a){for(t={},o=Object.keys(i.validations),u=0,d=Object.keys(s.fields);ut&&(r=e.clientWidth,o++),o>i||l[o].push(e)})),l.forEach((function(e,t){0===t?(e.forEach((function(n,a){n.style.borderRadius="0",0!==a&&(n.style.borderLeftWidth="0"),e.length>l[t+1].length&&(e[e.length-1].style.borderBottomRightRadius="4px")})),e[0].style.borderTopLeftRadius="4px",e[e.length-1].style.borderTopRightRadius="4px"):t===i?e.forEach((function(t,n){t.style.borderRadius="0",0!==n&&(t.style.borderLeftWidth="0"),t.style.borderTopWidth="0",e[0].style.borderBottomLeftRadius="4px",e[e.length-1].style.borderBottomRightRadius="4px"})):e.forEach((function(n,a){n.style.borderRadius="0",0!==a&&(n.style.borderLeftWidth="0"),n.style.borderTopWidth="0",e.length>l[t+1].length&&(e[e.length-1].style.borderBottomRightRadius="4px")}))}))}}},t.prototype.renderGroup=function(e,t){var n,a=this,o=this.props,i=o.classnames,l=o.labelField;return(null===(n=e.children)||void 0===n?void 0:n.length)?r.default.createElement("div",{key:t,className:i("CheckboxesControl-group",e.className)},r.default.createElement("label",{className:i("CheckboxesControl-groupLabel",e.labelClassName)},e[l||"label"]),e.children.map((function(e,t){return a.renderItem(e,t)}))):null},t.prototype.renderItem=function(e,t){var n=this;if(e.children)return this.renderGroup(e,t);var a=this.props,o=a.itemClassName,u=a.onToggle,d=a.selectedOptions,c=a.disabled,p=a.inline,f=a.labelClassName,m=a.labelField,h=a.removable,v=a.editable,g=a.translate,y=a.optionType;return r.default.createElement(i.default,{className:o,key:t,onChange:function(){return u(e)},checked:!!~d.indexOf(e),disabled:c||e.disabled,inline:p,labelClassName:f,description:e.description,optionType:y},String(e[m||"label"]),h&&(0,s.hasAbility)(e,"removable")?r.default.createElement("a",{"data-tooltip":g("Select.clear"),"data-position":"left"},r.default.createElement(l.Icon,{icon:"minus",className:"icon",onClick:function(t){return n.handleDeleteClick(t,e)}})):null,v&&(0,s.hasAbility)(e,"editable")?r.default.createElement("a",{"data-tooltip":"编辑","data-position":"left"},r.default.createElement(l.Icon,{icon:"pencil",className:"icon",onClick:function(t){return n.handleEditClick(t,e)}})):null)},t.prototype.render=function(){var e=this,t=this.props,n=t.className,a=t.disabled,o=t.placeholder,s=t.options,d=t.inline,c=t.columnsCount,p=t.selectedOptions,f=(t.onToggle,t.onToggleAll),m=t.checkAll,h=t.classnames,v=t.itemClassName,g=t.labelClassName,y=t.creatable,b=t.addApi,_=t.createBtnLabel,C=t.translate,E=t.optionType,x=[];return s&&s.length&&(x=s.map((function(t,n){return e.renderItem(t,n)}))),m&&x.length&&"default"===E&&x.unshift(r.default.createElement(i.default,{key:"checkall",className:v,onChange:f,checked:!!p.length,partial:!(!p.length||p.length===s.length),disabled:a,inline:d,labelClassName:g},C("Checkboxes.selectAll"))),x=(0,u.columnsSplit)(x,h,c),r.default.createElement("div",{className:h("CheckboxesControl",n),ref:"checkboxRef"},x&&x.length?x:r.default.createElement("span",{className:"Form-placeholder"},C(o)),!y&&!b||a?null:r.default.createElement("a",{className:h("Checkboxes-addBtn"),onClick:this.handleAddClick},r.default.createElement(l.Icon,{icon:"plus",className:"icon"}),C(_)))},t.defaultProps={columnsCount:1,multiple:!0,placeholder:"placeholder.noOption",creatable:!1,inline:!0,createBtnLabel:"Select.createLabel",optionType:"default"},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleAddClick",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof Event&&Event)?n:Object,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleEditClick",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(o="undefined"!==typeof Event&&Event)?o:Object,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDeleteClick",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"updateBorderStyle",null),t}(r.default.Component);t.default=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.OptionsControl)({type:"checkboxes",sizeMutable:!1})],t),t}(d);t.CheckboxesControlRenderer=c},"0e9f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CascaderSelectControlRenderer=t.NestedSelectControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("35b7")),i=(0,a.__importDefault)(n("3473")),l=(0,a.__importDefault)(n("dbb0")),s=(0,a.__importDefault)(n("1f88")),u=n("c264"),d=n("d369"),c=n("d55b"),p=n("79ae"),f=n("8bc8"),m=n("4afe"),h=(0,a.__importDefault)(n("41c6")),v=(0,a.__importDefault)(n("bfc7")),g=(0,a.__importDefault)(n("c228")),y=n("ed20"),b=(0,a.__importDefault)(n("bb41")),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isOpened:!1,isFocused:!1,inputValue:"",stack:[t.props.options]},t}var n,c,_,C,E,x;return(0,a.__extends)(t,e),t.prototype.domRef=function(e){this.target=e},t.prototype.componentDidUpdate=function(e){e.options!==this.props.options&&this.setState({stack:[this.props.options]})},t.prototype.doAction=function(e,t,n){var a=this.props,r=a.resetValue,o=a.onChange,i=null===e||void 0===e?void 0:e.actionType;"clear"===i?null===o||void 0===o||o(""):"reset"===i&&(null===o||void 0===o||o(null!==r&&void 0!==r?r:""))},t.prototype.dispatchEvent=function(e,t){return void 0===t&&(t={}),(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o,i;return(0,a.__generator)(this,(function(l){switch(l.label){case 0:return n=this.props,r=n.dispatchEvent,o=n.data,[4,r(e,(0,d.createObject)(o,(0,a.__assign)({},t)))];case 1:return i=l.sent(),[2,!!(null===i||void 0===i?void 0:i.prevented)]}}))}))},t.prototype.handleOutClick=function(e){this.props.options;e.defaultPrevented||this.setState({isOpened:!0})},t.prototype.handleResultClear=function(){this.setState({inputValue:void 0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.removeItem=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o,i,l,s,u,d,c;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return n=this.props,r=n.onChange,o=n.selectedOptions,i=n.joinValues,l=n.valueField,s=n.extractValue,u=n.delimiter,d=n.value,t&&t.stopPropagation(),o.splice(e,1),i?d=o.map((function(e){return e[l||"value"]})).join(u||","):s&&(d=o.map((function(e){return e[l||"value"]}))),[4,this.dispatchEvent("change",{value:d})];case 1:return c=a.sent(),c||r(d),[2]}}))}))},t.prototype.renderValue=function(e,t){var n=this.props,a=n.classnames,o=n.labelField,i=n.valueField,l=n.options,s=n.hideNodePathLabel,u=this.state.inputValue,c=(0,d.string2regExp)(u||"");if(s)return e[o||"label"];var p=(0,d.getTreeAncestors)(l,e,!0);return r.default.createElement("span",{className:a("Select-valueLabel"),key:t||e[i||"value"]},p?p.map((function(e,t){var n=e[o||"label"],i=t===p.length-1,l=n.split(c||""),s=0;return r.default.createElement("span",{key:t},c.test(n)?l.map((function(e,t){var o=s;return s+=e.length||(null===u||void 0===u?void 0:u.length)||0,r.default.createElement("span",{key:t,className:a({"NestedSelect-optionLabel-highlight":!e})},e||n.slice(o,s))})):n,!i&&">")})):e[o||"label"])},t.prototype.handleOptionClick=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,i,l,s,u,d;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.multiple,r=t.onChange,o=t.joinValues,i=t.extractValue,l=t.valueField,s=t.onlyLeaf,n?[2]:(u=o||i?e[l||"value"]:e,void 0===u||s&&e.children?[2]:[4,this.dispatchEvent("change",{value:u})]);case 1:return d=a.sent(),d||r(u),d||this.handleResultClear(),!n&&this.close(),[2]}}))}))},t.prototype.handleCheck=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o,i,l,s,u,c,p,f,m,y,b,_,C,E,x,w,S,O,k;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(n=this.props,r=n.onChange,o=n.selectedOptions,i=n.joinValues,l=n.delimiter,s=n.extractValue,u=n.withChildren,c=n.onlyChildren,p=n.cascade,f=n.options,m=n.onlyLeaf,y=this.state.stack,b=this.props.valueField||"value",m&&!Array.isArray(e)&&e.children)return[2];if(!Array.isArray(e)&&e.children&&e.children.length&&"number"===typeof t&&(y[t]?y.splice(t+1,1,e.children):y.push(e.children)),_=o,E=function(e){return(0,g.default)((0,d.flattenTree)(Array.isArray(e)?e:[e],(function(e){return e.children&&e.children.length?null:e})))},Array.isArray(e)?(u?e=(0,d.flattenTree)(e):c&&(e=E(e)),C=_.length===e.length?[]:e):Array.isArray(e.children)?p?C=(0,h.default)(_,[e]):u?(e=(0,d.flattenTree)([e]),x=e.every((function(e){return!!~_.indexOf(e)})),C=(x?h.default:v.default)(_,e)):c?(e=E(e),x=e.every((function(e){return!!~_.indexOf(e)})),C=(x?h.default:v.default)(_,e)):(C=_.filter((function(t){return!~(0,d.flattenTree)([e]).indexOf(t)})),!~_.indexOf(e)&&C.push(e)):C=(0,h.default)(_,[e]),!p){w=e;while(1){if(S=(0,d.getTreeParent)(f,w),!(null===S||void 0===S?void 0:S.value)||!S.children.every((function(e){return~C.indexOf(e)})))break;S.children.forEach((function(e){var t=C.indexOf(e);!~t||u||c||C.splice(t,1)})),c||C.push(S),w=S}}return O=i?C.map((function(e){return e[b]})).join(l):s?C.map((function(e){return e[b]})):C,[4,this.dispatchEvent("change",{value:O})];case 1:return k=a.sent(),k||r(O),k||this.handleResultClear(),[2]}}))}))},t.prototype.allChecked=function(e){var t=this,n=this.props,a=n.selectedOptions,r=n.withChildren,o=n.onlyChildren;return e.every((function(e){return(r||o)&&e.children?t.allChecked(e.children):a.some((function(t){return t===e}))}))},t.prototype.partialChecked=function(e){var t=this;return e.some((function(e){var n=e.children&&t.partialChecked(e.children);return n||t.props.selectedOptions.some((function(t){return t===e}))}))},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.getValue=function(){var e=this.props,t=e.selectedOptions,n=e.joinValues,a=e.valueField,r=e.extractValue,o=e.delimiter,i=e.value;return n?i=t.map((function(e){return e[a||"value"]})).join(o||","):r&&(i=t.map((function(e){return e[a||"value"]}))),i},t.prototype.onFocus=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,i;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.onFocus,r=t.disabled,o=this.getValue(),r||this.state.isOpened?[3,2]:(this.setState({isFocused:!0}),[4,this.dispatchEvent("focus",{value:o})]);case 1:i=a.sent(),i||n&&n(e),a.label=2;case 2:return[2]}}))}))},t.prototype.onBlur=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props.onBlur,n=this.getValue(),this.setState({isFocused:!1}),[4,this.dispatchEvent("blur",{value:n})];case 1:return r=a.sent(),r||t&&t(e),[2]}}))}))},t.prototype.getTarget=function(){return this.target||(this.target=(0,f.findDOMNode)(this)),this.target},t.prototype.handleKeyPress=function(e){" "===e.key&&(this.handleOutClick(e),e.preventDefault())},t.prototype.handleInputKeyDown=function(e){var t=this.state.inputValue,n=this.props,a=n.multiple,r=n.selectedOptions;"Backspace"===e.key&&!t&&r.length&&a&&this.removeItem(r.length-1)},t.prototype.handleInputChange=function(e){var t=this.props,n=t.options,a=t.labelField,r=t.valueField,o=(0,d.string2regExp)(e),i=e&&this.state.isOpened?(0,d.filterTree)(n,(function(e){return o.test(e[a||"label"])||o.test(e[r||"value"])||!(!e.children||!e.children.length)}),1,!0):n.concat();this.setState({inputValue:e,stack:[i]})},t.prototype.handleResultChange=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,i,l,s,u,d,c;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.joinValues,r=t.extractValue,o=t.delimiter,i=t.valueField,l=t.onChange,s=t.multiple,u=Array.isArray(e)?e.concat():[],s||u.length?[3,2]:[4,this.dispatchEvent("change",{value:""})];case 1:return d=a.sent(),d||l(""),[2];case 2:return(n||r)&&(u=e.map((function(e){return e[i||"value"]}))),n&&(u=u.join(o||",")),[4,this.dispatchEvent("change",{value:u})];case 3:return c=a.sent(),c||l(u),[2]}}))}))},t.prototype.renderOptions=function(){var e=this,t=this.props,n=t.multiple,a=t.selectedOptions,o=t.classnames,l=t.options,s=t.disabled,c=t.checkAll,p=t.checkAllLabel,f=t.translate,m=t.labelField,h=t.menuClassName,v=t.cascade,g=t.onlyChildren,y=this.props.valueField||"value",b=this.state.stack,_=this.partialChecked(l),C=this.allChecked(l);return r.default.createElement(r.default.Fragment,null,b.map((function(t,b){return r.default.createElement("div",{key:b,className:o("NestedSelect-menu",h)},n&&c&&0===b?r.default.createElement("div",{className:o("NestedSelect-option","checkall")},r.default.createElement(i.default,{size:"sm",onChange:e.handleCheck.bind(e,t),checked:_,partial:_&&!C}),r.default.createElement("span",{onClick:e.handleCheck.bind(e,t)},f(p))):null,t.map((function(t,c){var p=(0,d.getTreeAncestors)(l,t),f=null===p||void 0===p?void 0:p.some((function(e){return!!~a.indexOf(e)})),h=!v&&(n&&f),_=null===p||void 0===p?void 0:p.some((function(e){return!!e.disabled})),C=h||t.disabled||_||!!s,E=!(!t.children||!e.partialChecked(t.children)),x=h||!!~a.indexOf(t);return!x&&g&&t.children&&e.allChecked(t.children)&&(x=!0),r.default.createElement("div",{key:c,className:o("NestedSelect-option",{"is-active":!C&&(x||!v&&E)}),onMouseEnter:e.onMouseEnter.bind(e,t,b)},n?r.default.createElement(i.default,{size:"sm",onChange:e.handleCheck.bind(e,t,b),trueValue:t[y],checked:x||!v&&E,partial:!x,disabled:C}):null,r.default.createElement("div",{className:o("NestedSelect-optionLabel",{"is-disabled":C}),onClick:function(){return!C&&(n?e.handleCheck(t,b):e.handleOptionClick(t))}},t[m||"label"]),t.children&&t.children.length?r.default.createElement("div",{className:o("NestedSelect-optionArrowRight")},r.default.createElement(u.Icon,{icon:"right-arrow-bold",className:"icon"})):null)})))})))},t.prototype.renderSearchResult=function(){var e=this,t=this.state,n=t.stack,a=t.inputValue,o=this.props,i=o.classnames,l=o.translate,s=o.options,u=o.labelField,c=o.cascade,p=o.selectedOptions,f=o.multiple,m=o.disabled,h=o.onlyChildren,v=o.render,g=this.props.noResultsText;g&&(g=v("noResultText",l(g)));var y=(0,d.string2regExp)(a||""),b=(0,d.flattenTree)(n[0]).filter((function(e){return y.test(e[u||"label"])})),_=r.default.createElement("div",{className:i("NestedSelect-menu")},b.length?b.map((function(t,n){var a=(0,d.getTreeAncestors)(s,t),o=!c&&(f&&(null===a||void 0===a?void 0:a.some((function(e){return!!~p.indexOf(e)})))),l=o||t.disabled||!!m||(null===a||void 0===a?void 0:a.some((function(e){return!!e.disabled}))),u=!(!t.children||!e.partialChecked(t.children)),v=o||!!~p.indexOf(t);return!v&&h&&t.children&&e.allChecked(t.children)&&(v=!0),r.default.createElement("div",{className:i("NestedSelect-option",{"is-active":!l&&(v||!c&&u)}),key:n},r.default.createElement("div",{className:i("NestedSelect-optionLabel",{"is-disabled":l}),onClick:function(){!l&&(f?e.handleCheck(t,t.value):e.handleOptionClick(t))}},e.renderValue(t,t.value)))})):r.default.createElement("div",{className:i("NestedSelect-option",{"no-result":!0})},g));return _},t.prototype.onMouseEnter=function(e,t,n){var a=this.state.stack;t+=1;var r=e.children;r&&r.length?a[t]?a.splice(t,1,r):a.push(r):a[t]&&a.splice(t,1),this.setState({stack:a.slice(0,t+1)})},t.prototype.renderOuter=function(){var e=this,t=this.props,n=t.popOverContainer,a=t.translate,i=t.classnames,s=t.options,u=t.render,d=!!this.state.inputValue,c=this.props.noResultsText;c&&(c=u("noResultText",a(c)));var p=r.default.createElement(y.RootClose,{disabled:!this.state.isOpened,onRootClose:this.close},(function(t){return r.default.createElement("div",{className:i("NestedSelect-menuOuter"),ref:t},d?e.renderSearchResult():s.length?e.renderOptions():r.default.createElement("div",{className:i("NestedSelect-noResult")},c))}));return r.default.createElement(o.default,{target:this.getTarget,container:n||function(){return(0,f.findDOMNode)(e)},placement:"auto",show:!0},r.default.createElement(l.default,{className:i("NestedSelect-popover")},p))},t.prototype.render=function(){var e,t=this.props,n=t.className,o=t.disabled,i=t.classnames,l=t.multiple,u=t.placeholder,c=t.translate,p=t.inline,f=t.searchable,h=(t.autoComplete,t.selectedOptions),v=t.clearable,g=t.loading,y=t.borderMode,_=t.useMobileUI,C=t.env,E=_&&(0,d.isMobile)();return r.default.createElement("div",{className:i("NestedSelectControl",n)},r.default.createElement(m.ResultBox,{useMobileUI:_,disabled:o,ref:this.domRef,placeholder:c(null!==u&&void 0!==u?u:"placeholder.empty"),className:i("NestedSelect",(e={"NestedSelect--inline":p,"NestedSelect--single":!l,"NestedSelect--multi":l,"NestedSelect--searchable":f,"is-opened":this.state.isOpened,"is-focused":this.state.isFocused},e["NestedSelect--border".concat((0,d.ucFirst)(y))]=y,e)),result:l?h:h.length?h[0]:"",onResultClick:this.handleOutClick,value:this.state.inputValue,onChange:this.handleInputChange,onResultChange:this.handleResultChange,onClear:this.handleResultClear,itemRender:this.renderValue,onKeyPress:this.handleKeyPress,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.handleInputKeyDown,clearable:v,hasDropDownArrow:!0,allowInput:f,inputPlaceholder:""},g?r.default.createElement(m.Spinner,{size:"sm"}):void 0),E?r.default.createElement(s.default,{className:i("NestedSelect-popup"),container:C&&C.getModalContainer?C.getModalContainer:void 0,isShow:this.state.isOpened,onHide:this.close,showConfirm:!1,showClose:!1},r.default.createElement(b.default,(0,a.__assign)({onClose:this.close},this.props,{onChange:this.handleResultChange,options:this.props.options.slice(),value:h}))):this.state.isOpened?this.renderOuter():null)},t.defaultProps={cascade:!1,withChildren:!1,onlyChildren:!1,onlyLeaf:!1,searchPromptText:"Select.searchPromptText",noResultsText:"noResult",checkAll:!0,checkAllLabel:"Select.checkAll",hideNodePathLabel:!1},(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"domRef",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String,Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"dispatchEvent",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.MouseEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleOutClick",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleResultClear",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"close",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(c="undefined"!==typeof p.Option&&p.Option)?c:Object,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"renderValue",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(_="undefined"!==typeof p.Option&&p.Option)?_:Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleOptionClick",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Number]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleCheck",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getValue",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"onFocus",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"onBlur",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getTarget",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(C="undefined"!==typeof r.default&&r.default.KeyboardEvent)?C:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleKeyPress",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(E="undefined"!==typeof r.default&&r.default.KeyboardEvent)?E:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleInputKeyDown",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleInputChange",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(x="undefined"!==typeof Array&&Array)?x:Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleResultChange",null),t}(r.default.Component);t.default=_;var C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,c.OptionsControl)({type:"nested-select"})],t),t}(_);t.NestedSelectControlRenderer=C;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,c.OptionsControl)({type:"cascader-select"})],t),t}(_);t.CascaderSelectControlRenderer=E},"0f72":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckableTag=t.Tag=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d77e"),i=n("c264"),l=n("721d"),s=n("d369"),u=["inactive","active","success","processing","error","warning"],d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return(0,a.__extends)(t,e),t.prototype.renderCloseIcon=function(){var e=this.props,t=e.closeIcon,n=e.classnames,a=e.closable;if(!a)return null;var o="string"===typeof t?(0,i.getIcon)(t)?r.default.createElement(i.Icon,{icon:t,className:"icon"}):(0,l.generateIcon)(n,t,"Icon"):r.default.isValidElement(t)?t:r.default.createElement(i.Icon,{icon:"close",className:"icon"});return r.default.createElement("span",{className:n("Tag--close"),onClick:this.handleClose},o)},t.prototype.handleClose=function(e){var t=this.props.onClose;e.stopPropagation(),null===t||void 0===t||t(e)},t.prototype.render=function(){var e,t=this.props,n=t.children,o=t.classnames,s=t.className,d=t.displayMode,c=t.disabled,p=t.color,f=t.icon,m=t.style,h=t.label,v=p&&-1!==u.indexOf(p),g=p&&!v?p:void 0,y=(0,a.__assign)({backgroundColor:"normal"===d?g:void 0,borderColor:"rounded"===d?g:void 0,color:"rounded"===d?g:void 0},m),b="status"===d&&r.default.createElement("span",{className:o("Tag--prev")},"string"===typeof f?(0,i.getIcon)(f)?r.default.createElement(i.Icon,{icon:f,className:"icon"}):(0,l.generateIcon)(o,f,"Icon"):r.default.isValidElement(f)?f:r.default.createElement(i.Icon,{icon:"dot",className:"icon"}));return r.default.createElement("span",{className:o("Tag","Tag--".concat(d),s,(e={},e["Tag--".concat(d,"--").concat(p)]=v,e["Tag--".concat(d,"--hasColor")]=p,e["Tag--disabled"]=c,e)),style:y},b,h||n,this.renderCloseIcon())},t.defaultProps={displayMode:"normal"},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.MouseEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClose",null),t}(r.default.Component);t.Tag=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return(0,a.__extends)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.onChange,a=t.onClick,r=t.checked;null===n||void 0===n||n(!r),null===a||void 0===a||a(e)},t.prototype.render=function(){var e=this.props,t=e.classnames,n=e.className,a=e.disabled,o=e.label,i=e.children,l=e.checked,u=e.style,d=void 0===u?{}:u;return r.default.createElement("span",{className:t(n,"Tag","Tag--checkable",{"Tag--checkable--checked":l,"Tag--checkable--disabled":a}),onClick:a?s.noop:this.handleClick,style:d},o||i)},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.MouseEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),t}(r.default.Component);t.CheckableTag=(0,o.themeable)(c),t.default=(0,o.themeable)(d)},"0f8d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.register=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ef03")),o=n("7e49"),i=(0,a.__importDefault)(n("c1df")),l={default:void 0,moment:i.default,countDown:function(e){if(!e)return"--";var t=new Date(1e3*parseInt(e,10)),n=Date.now();return t.getTime()/g}));return u.call(t,t)}catch(d){return''.concat(d.message,"")}}function d(){return{name:"lodash",test:function(e){return!!~e.indexOf("<%")},compile:function(e,t){return u(e,t)}}}t.register=d},"113a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableRow=void 0;var a=n("9ab4"),r=n("4f20"),o=(0,a.__importDefault)(n("ab5b")),i=n("d369"),l=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.handleChange=n.handleChange.bind(n),n.handleItemClick=n.handleItemClick.bind(n),n}return(0,a.__extends)(t,e),t.prototype.handleItemClick=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,l,s,u;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return(0,i.isClickOnInput)(e)?[2]:(t=this.props,n=t.itemAction,r=t.onAction,o=t.item,l=t.data,s=t.dispatchEvent,[4,s("rowClick",(0,i.createObject)(l,{rowItem:null===o||void 0===o?void 0:o.data}))]);case 1:return u=a.sent(),(null===u||void 0===u?void 0:u.prevented)?[2]:(n?(r&&r(e,n,null===o||void 0===o?void 0:o.data),o.toggle()):this.props.onCheck(this.props.item),[2])}}))}))},t.prototype.handleAction=function(e,t,n){var a=this.props,r=a.onAction,o=a.item;r&&r(e,t,n||o.data)},t.prototype.handleQuickChange=function(e,t,n,a){var r=this.props,o=r.onQuickChange,i=r.item;o&&o(i,e,t,n,a)},t.prototype.handleChange=function(e,t,n,a){var r;if(t&&"string"===typeof t){var o=this.props,i=o.item,l=o.onQuickChange;null===l||void 0===l||l(i,(r={},r[t]=e,r),n,a)}},t.prototype.render=function(){var e,t,n=this,r=this.props,i=r.itemClassName,l=r.itemIndex,s=r.item,u=r.columns,d=r.renderCell,c=(r.children,r.footableMode),p=r.ignoreFootableContent,f=r.footableColSpan,m=r.regionPrefix,h=r.checkOnItemClick,v=(r.classPrefix,r.render),g=r.classnames,y=r.parent,b=r.itemAction,_=r.onEvent,C=(0,a.__rest)(r,["itemClassName","itemIndex","item","columns","renderCell","children","footableMode","ignoreFootableContent","footableColSpan","regionPrefix","checkOnItemClick","classPrefix","render","classnames","parent","itemAction","onEvent"]);return c?s.expanded?o.default.createElement("tr",{"data-id":s.id,"data-index":s.newIndex,onClick:h||b||(null===_||void 0===_?void 0:_.rowClick)?this.handleItemClick:void 0,className:g(i,(e={"is-hovered":s.isHover,"is-checked":s.checked,"is-modified":s.modified,"is-moved":s.moved},e["Table-tr--hasItemAction"]=b,e["Table-tr--odd"]=l%2===0,e["Table-tr--even"]=l%2===1,e))},o.default.createElement("td",{className:g("Table-foot"),colSpan:f},o.default.createElement("table",{className:g("Table-footTable")},o.default.createElement("tbody",null,p?u.map((function(e){return o.default.createElement("tr",{key:e.index},!1!==e.label?o.default.createElement("th",null):null,o.default.createElement("td",null))})):u.map((function(e){return o.default.createElement("tr",{key:e.index},!1!==e.label?o.default.createElement("th",null,v("".concat(m).concat(l,"/").concat(e.index,"/tpl"),e.label)):null,d("".concat(m).concat(l,"/").concat(e.index),e,s,(0,a.__assign)((0,a.__assign)({},C),{width:null,rowIndex:l,colIndex:e.index,key:e.index,onAction:n.handleAction,onQuickChange:n.handleQuickChange,onChange:n.handleChange})))})))))):null:y&&!y.expanded?null:o.default.createElement("tr",{onClick:h||b||(null===_||void 0===_?void 0:_.rowClick)?this.handleItemClick:void 0,"data-index":1===s.depth?s.newIndex:void 0,"data-id":s.id,className:g(i,(t={"is-hovered":s.isHover,"is-checked":s.checked,"is-modified":s.modified,"is-moved":s.moved,"is-expanded":s.expanded&&s.expandable,"is-expandable":s.expandable},t["Table-tr--hasItemAction"]=b,t["Table-tr--odd"]=l%2===0,t["Table-tr--even"]=l%2===1,t),"Table-tr--".concat(s.depth,"th"))},u.map((function(e){return d("".concat(l,"/").concat(e.index),e,s,(0,a.__assign)((0,a.__assign)({},C),{rowIndex:l,colIndex:e.index,key:e.index,onAction:n.handleAction,onQuickChange:n.handleQuickChange,onChange:n.handleChange}))})))},t=(0,a.__decorate)([r.observer,(0,a.__metadata)("design:paramtypes",[Object])],t),t}(o.default.Component);t.TableRow=l},"11ef":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 16 16",className:"icon"},e),r.default.createElement("title",null,"4.图标元件/3.操作/删除"),r.default.createElement("g",{id:"4.\\u56FE\\u6807\\u5143\\u4EF6/3.\\u64CD\\u4F5C/\\u5220\\u9664",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("rect",{id:"\\u77E9\\u5F62",stroke:"#979797",fill:"#D8D8D8",opacity:0,x:.5,y:.5,width:15,height:15}),r.default.createElement("path",{d:"M14,3.499 L14,4.5 L12.497,4.5 L12.498,14.5 L3.498,14.5 L3.497,4.5 L2,4.5 L2,3.499 L14,3.499 Z M11.498,4.5 L4.497,4.5 L4.497,13.5 L11.498,13.5 L11.498,4.5 Z M6.998,7.499 L6.998,11.499 L5.998,11.499 L5.998,7.499 L6.998,7.499 Z M9.998,7.499 L9.998,11.499 L8.998,11.499 L8.998,7.499 L9.998,7.499 Z M9.999,1.5 L9.999,2.499 L5.998,2.499 L5.998,1.5 L9.999,1.5 Z",id:"\\u5F62\\u72B6\\u7ED3\\u5408",fill:"#151B26"})))};t.default=o},1216:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 16 16",className:"icon"},e),r.default.createElement("title",null,"ic_时间"),r.default.createElement("g",{id:"ic_\\u65F6\\u95F4",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("circle",{id:"1-FL",stroke:"#84868C",cx:8,cy:8,r:6.5,strokeWidth:"1px",fill:"none",strokeLinecap:"butt",strokeLinejoin:"round"}),r.default.createElement("polyline",{id:"2-FLW",stroke:"#84868C",points:"7.87443646 5.5 7.87443646 8.53778873 5.5 9.28133409",strokeWidth:"1px",fill:"none",strokeLinecap:"butt",strokeLinejoin:"round"})))};t.default=o},1278:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsideNav=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d369"),i=n("d77e"),l=function(e){function t(t){var n=e.call(this,t)||this,r=t.isOpen,i=1;return n.state={navigations:(0,o.mapTree)(t.navigations,(function(e){var n="undefined"===typeof e.active?t.isActive(e):e.active;return(0,a.__assign)((0,a.__assign)({},e),{id:i++,active:n,open:n||r(e)})}),1,!0)},n.renderLink=n.renderLink.bind(n),n.toggleExpand=n.toggleExpand.bind(n),n}return(0,a.__extends)(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props,n=e.isOpen;if(e.navigations!==t.navigations||e.isActive!==t.isActive){var r=1;this.setState({navigations:(0,o.mapTree)(t.navigations,(function(e){var o="undefined"===typeof e.active?t.isActive(e):e.active;return(0,a.__assign)((0,a.__assign)({},e),{id:r++,active:o,open:o||n(e)})}),1,!0)})}},t.prototype.toggleExpand=function(e,t){t&&(t.stopPropagation(),t.preventDefault()),this.setState({navigations:(0,o.mapTree)(this.state.navigations,(function(t){return(0,a.__assign)((0,a.__assign)({},t),{open:e.id===t.id?!t.open:t.open})}),1,!0)})},t.prototype.renderLink=function(e,t,n,o){var i;void 0===n&&(n={}),void 0===o&&(o=1);var l=this.props,s=l.renderLink,u=(l.isActive,l.renderSubLinks),d=l.classnames,c=(0,a.__rest)(l,["renderLink","isActive","renderSubLinks","classnames"]),p=s((0,a.__assign)({link:e,active:e.active,open:e.open,toggleExpand:this.toggleExpand,depth:o,classnames:d,subHeader:"subHeader"===t},c));if(p)return"subHeader"===t?r.default.cloneElement(p,{key:t}):r.default.createElement("li",(0,a.__assign)({},n,{key:t,className:d("AsideNav-item",e.className,(i={},i["is-open"]=e.open,i["is-active"]=e.active,i))}),p,u(e,this.renderLink,o,this.props))},t.prototype.render=function(){var e=this,t=this.state.navigations,n=[],o=this.props,i=o.className,l=o.classnames;return t.forEach((function(t,o){if(Array.isArray(t.children)){if(t.prefix){var i="function"===typeof t.prefix?t.prefix(e.props):t.prefix;n.push(r.default.cloneElement(i,(0,a.__assign)((0,a.__assign)({},i.props),{key:"".concat(o,"-prefix")})))}if(t.label&&n.push(r.default.createElement("li",{key:"".concat(o,"-label"),className:l("AsideNav-label",t.className)},r.default.createElement("span",null,t.label))),t.children.forEach((function(t,a){var r=e.renderLink(t,"".concat(o,"-").concat(a));r&&n.push(r)})),t.affix){var s="function"===typeof t.affix?t.affix(e.props):t.affix;n.push(r.default.cloneElement(s,(0,a.__assign)((0,a.__assign)({},s.props),{key:"".concat(o,"-affix")})))}}})),r.default.createElement("nav",{className:l("AsideNav",i)},r.default.createElement("ul",{className:l("AsideNav-list")},n))},t.defaultProps={renderLink:function(e){return r.default.createElement("a",null,e.label)},renderSubLinks:function(e,t,n,o){var i=o.classnames;return e.children&&e.children.length?r.default.createElement("ul",{className:i("AsideNav-subList")},e.label?r.default.createElement("li",{key:"subHeader",className:i("AsideNav-subHeader")},t((0,a.__assign)((0,a.__assign)({},e),{children:void 0}),"subHeader",{},n)):null,e.children.map((function(e,a){return t(e,a,{},n+1)}))):e.label&&1===n?r.default.createElement("div",{className:i("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}))}},t}(r.default.Component);t.AsideNav=l,t.default=(0,i.themeable)(l)},"128b":function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.openContextMenus=t.ThemedContextMenu=t.ContextMenu=void 0;var r=n("9ab4"),o=n("d77e"),i=(0,r.__importDefault)(n("ab5b")),l=n("8bc8"),s=n("d369"),u=r.__importStar(n("751b")),d=n("5de9"),c=(a={},a[u.ENTERING]="in",a[u.ENTERED]="in",a[u.EXITING]="out",a),p=function(e){function n(t){var a=e.call(this,t)||this;return a.state={isOpened:!1,menus:[],x:-99999,y:-99999},a.menuRef=i.default.createRef(),a.originInstance=n.instance,n.instance=a,a}var a,o,p,f,m;return(0,r.__extends)(n,e),n.getInstance=function(){if(!n.instance){var e=document.body,a=document.createElement("div");e.appendChild(a),(0,l.render)(i.default.createElement(t.ThemedContextMenu,null),a)}return n.instance},n.prototype.componentDidMount=function(){document.body.addEventListener("click",this.handleOutClick,!0),document.addEventListener("keydown",this.handleKeyDown)},n.prototype.componentWillUnmount=function(){n.instance=this.originInstance,document.body.removeEventListener("click",this.handleOutClick,!0),document.removeEventListener("keydown",this.handleKeyDown),delete this.originInstance},n.prototype.openContextMenus=function(e,t,n){var a=this;if(this.state.isOpened){var r=this.state,o=r.x,i=r.y;this.setState({x:o+(e.x-(this.prevInfo&&this.prevInfo.x?this.prevInfo.x:0)),y:i+(e.y-(this.prevInfo&&this.prevInfo.y?this.prevInfo.y:0)),menus:t,onClose:n},(function(){a.handleEnter(a.menuRef.current)}))}else this.setState({isOpened:!0,x:e.x,y:e.y,menus:t,onClose:n});this.prevInfo=e},n.prototype.close=function(){var e=this.state.onClose;this.setState({isOpened:!1,x:-99999,y:-99999,menus:[]},e)},n.prototype.handleOutClick=function(e){e.target&&this.menuRef.current&&!this.menuRef.current.contains(e.target)&&this.state.isOpened&&(e.preventDefault(),this.close())},n.prototype.handleClick=function(e){var t=this.state.onClose;e.disabled||Array.isArray(e.children)&&e.children.length||this.setState({isOpened:!1,x:-99999,y:-99999,menus:[]},(function(){var n;null===(n=e.onSelect)||void 0===n||n.call(e,e.data),null===t||void 0===t||t()}))},n.prototype.handleKeyDown=function(e){27===e.keyCode&&this.state.isOpened&&(e.preventDefault(),this.close())},n.prototype.handleMouseEnter=function(e){e.disabled||!e.onHighlight||e.onHighlight(!0,e.data)},n.prototype.handleMouseLeave=function(e){e.disabled||!e.onHighlight||e.onHighlight(!1,e.data)},n.prototype.handleEnter=function(e){var t=(0,d.calculatePosition)("auto",e.lastChild,e.children[1],document.body),n=t.positionLeft+300=0;r--){if(n[r].isChecked)break;n[r].isChecked=!0}}else e.children&&Array.isArray(e.children)&&e.children.forEach((function(e){n.push(e),p(e,t,n,a),n.pop()}))}function f(e){for(var t=[],n=0;n0||void 0!==i[n])&&a.push(i))}return a}var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={searching:!1,treeOptions:[],searchTreeOptions:[]},t}var n;return(0,a.__extends)(t,e),t.itemRender=function(e){return r.default.createElement("span",null,"".concat(e.scopeLabel||"").concat(e.label))},t.getDerivedStateFromProps=function(e){var t=m(e.value,e.options,e.valueField);return{treeOptions:(0,o.cloneDeep)(t)}},t.prototype.deleteTreeChecked=function(e){var t=this.props,n=t.value,a=void 0===n?[]:n,r=t.onChange,i=t.valueField,l=this.state,s=l.searching,u=l.treeOptions,d=[],c=function(t){(0,o.isEqual)(t,e)&&(d=[t])};h(u||[],c);var p=[],f=function(e){e.isChecked&&e[i]&&p.push(e)};h(d,f),r&&r(a.filter((function(e){return!p.find((function(t){return(0,o.isEqual)((0,o.omit)(t,["isChecked","childrens"]),e)}))}))),s&&this.deleteResultTreeNode(e)},t.prototype.deleteResultTreeNode=function(e){var t=v((0,o.cloneDeep)(this.state.searchTreeOptions)||[],e,this.props.valueField);this.setState({searchTreeOptions:t})},t.prototype.search=function(e){if(e){var t=this.props,n=t.valueField,a=t.onSearch,r=this.state.treeOptions||[],o=function(e){return e.isChecked=!1,!0};h(r,o);var i=function(t){return null===a||void 0===a?void 0:a(e,t)};r&&r.forEach((function(e){p(e,i,[e],n)})),this.setState({searching:!0,searchTreeOptions:f(r)})}else this.clearSearch()},t.prototype.clearSearch=function(){this.setState({searching:!1,searchTreeOptions:[]})},t.prototype.renderTree=function(){var e=this,t=this.props,n=t.className,a=t.classnames,o=t.value,i=t.placeholder,l=t.valueField,u=t.itemRender,c=t.translate,p=this.state,f=p.treeOptions,m=p.searching,h=p.searchTreeOptions;return r.default.createElement("div",{className:a("ResultTreeList",n)},Array.isArray(o)&&o.length?r.default.createElement(d.default,{className:a("Transfer-tree"),options:m?h:f,valueField:l,value:[],onChange:s.noop,showIcon:!1,itemRender:u,removable:!0,onDelete:function(t){return e.deleteTreeChecked(t)}}):r.default.createElement("div",{className:a("Selections-placeholder")},c(i)))},t.prototype.render=function(){var e=this.props,t=e.classnames,n=e.className,a=e.title,o=e.searchable,i=e.translate,l=e.placeholder,s=void 0===l?i("Transfer.searchKeyword"):l;return r.default.createElement("div",{className:t("Selections",n)},a?r.default.createElement("div",{className:t("Selections-title")},a):null,o?r.default.createElement(c.default,{placeholder:s,onSearch:this.search,onCancelSearch:this.clearSearch}):null,this.renderTree())},t.defaultProps={placeholder:"placeholder.selectData",itemRender:t.itemRender},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof i.Option&&i.Option)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"deleteTreeChecked",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"search",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"clearSearch",null),t}(r.default.Component);t.BaseResultTreeList=g,t.default=(0,l.themeable)((0,u.localeable)(g))},"18a8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=n("f83d"),o=n("d369");(0,r.addSchemaFilter)((function(e,t,n){var r,i,l;return e&&"input-kv"===e.type?(0,a.__assign)((0,a.__assign)({draggable:!0},e),{multiple:!0,pipeIn:function(e){if(!(0,o.isObject)(e))return[];var t=[];return Object.keys(e).forEach((function(n){var a=typeof e[n];t.push({key:n||"",value:"string"===a||"number"===a||"boolean"===a?e[n]:JSON.stringify(e[n])})})),t},pipeOut:function(t){if(!Array.isArray(t))return t;var n={};return t.forEach((function(t){var a,r,o,i=null!==(a=t.key)&&void 0!==a?a:"",l=null!==(o=null!==(r=t.value)&&void 0!==r?r:e.defaultValue)&&void 0!==o?o:"";if("string"===typeof l&&l.startsWith("{"))try{l=JSON.parse(l)}catch(s){}n[i]=l})),n},items:[{placeholder:null!==(r=e.keyPlaceholder)&&void 0!==r?r:"Key",type:"input-text",unique:!0,name:"key",required:!0,validateOnChange:!0},e.valueComponent?{placeholder:null!==(i=e.valuePlaceholder)&&void 0!==i?i:"Value",component:e.valueComponent,asFormItem:!0,name:"value"}:{placeholder:null!==(l=e.valuePlaceholder)&&void 0!==l?l:"Value",type:e.valueType||"input-text",name:"value"}]}):e}))},1930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withRemoteConfig=t.Store=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("da6a")),i=(0,a.__importDefault)(n("b047")),l=n("dfe4"),s=n("c4e2"),u=n("f7d3"),d=n("7f82"),c=n("7e49"),p=n("daf9"),f=n("d369");function m(e){return void 0===e&&(e={}),function(n){var u,m=(0,o.default)((0,l.withStore)((function(){return t.Store.create()}))((u=function(t){function o(e){var n,a=t.call(this,e)||this;return a.toDispose=[],a.loadOptions=(0,i.default)(a.loadAutoComplete.bind(a),250,{trailing:!0,leading:!1}),a.setConfig=a.setConfig.bind(a),e.store.setComponent(a),a.deferLoadConfig=a.deferLoadConfig.bind(a),null===(n=e.remoteConfigRef)||void 0===n||n.call(e,a),e.store.setData(e.data),a.syncConfig(),a}return(0,a.__extends)(o,t),o.prototype.componentDidMount=function(){var t=this,n=this.props.env||this.context,a=this.props,r=a.store,o=a.data,i=this.props[e.sourceField||"source"];(0,c.isPureVariable)(i)?this.toDispose.push((0,p.reaction)((function(){return(0,c.resolveVariableAndFilter)(i,r.data,"| raw")}),(function(){return t.syncConfig()}))):n&&(0,d.isEffectiveApi)(i,o)&&(this.loadConfig(),!1!==i.autoRefresh&&this.toDispose.push((0,p.reaction)((function(){var e=(0,d.normalizeApi)(i);return e.trackExpression?(0,c.tokenize)(e.trackExpression,r.data):(0,d.buildApi)(e,r.data,{ignoreData:!0}).url}),(function(){return t.loadConfig()}))))},o.prototype.componentDidUpdate=function(e){var t=this.props;t.data!==e.data&&t.store.setData(t.data)},o.prototype.componentWillUnmount=function(){var e,t;this.toDispose.forEach((function(e){return e()})),this.toDispose=[],null===(t=(e=this.props).remoteConfigRef)||void 0===t||t.call(e,void 0),this.loadOptions.cancel()},o.prototype.loadConfig=function(t){return void 0===t&&(t=this.props.data),(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return n=this.props.env||this.context,r=this.props.store,o=this.props[e.sourceField||"source"],n&&(0,d.isEffectiveApi)(o,t)?[4,r.load(n,o,t,e)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}}))}))},o.prototype.loadAutoComplete=function(t){var n=this.props.env||this.context,a=this.props,r=a.autoComplete,o=a.data,i=a.store;if(!n||!n.fetcher)throw new Error("fetcher is required");var l=(0,f.createObject)(o,{term:t,value:t});return(0,d.isEffectiveApi)(r,l)?i.load(n,r,l,e):Promise.resolve({options:[]})},o.prototype.setConfig=function(t,n){var a=this.props.store;a.setConfig(t,e,n)},o.prototype.syncConfig=function(){var t=this.props,n=t.store,a=t.data,r=this.props[e.sourceField||"source"];(0,c.isPureVariable)(r)?n.setConfig((0,c.resolveVariableAndFilter)(r,a,"| raw")||[],e,"syncConfig"):(0,f.isObject)(r)&&!(0,d.isEffectiveApi)(r,a)&&n.setConfig(r,e,"syncConfig")},o.prototype.deferLoadConfig=function(t){var n,r;return(0,a.__awaiter)(this,void 0,void 0,(function(){var o,i,l,s,u,c,p,m,h,v,g;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:o=this.props,i=o.store,l=o.data,s=o.deferApi,u=this.props[e.sourceField||"source"],c=this.props.env||this.context,p=(0,f.findTreeIndex)(i.config,(function(e){return e===t})),m=null===(n=e.beforeDeferLoad)||void 0===n?void 0:n.call(e,t,p,i.config,this.props),m&&i.setConfig(m,e,"before-defer-load"),a.label=1;case 1:if(a.trys.push([1,3,,4]),!(0,d.isEffectiveApi)(t.deferApi||s||u))throw new Error("deferApi is required");return[4,c.fetcher(t.deferApi||s||u,(0,f.createObject)(l,t))];case 2:return h=a.sent(),[3,4];case 3:return v=a.sent(),h={ok:!1,msg:v.message,status:500,data:void 0},[3,4];case 4:return g=null===(r=e.afterDeferLoad)||void 0===r?void 0:r.call(e,t,p,h,i.config,this.props),g&&i.setConfig(g,e,"after-defer-load"),[2]}}))}))},o.prototype.render=function(){var t=this.props.store,o=this.props.env||this.context,i={config:t.config,loading:t.fetching,deferLoad:this.deferLoadConfig,updateConfig:this.setConfig},l=this.props,s=(l.remoteConfigRef,l.autoComplete),u=(0,a.__rest)(l,["remoteConfigRef","autoComplete"]);return r.default.createElement(n,(0,a.__assign)({},u,o&&(0,d.isEffectiveApi)(s)&&this.loadOptions?{loadOptions:this.loadOptions}:{},e.injectedPropsFilter?e.injectedPropsFilter(i,this.props):i))},o}(r.default.Component),u.displayName="WithRemoteConfig(".concat(n.displayName||n.name,")"),u.ComposedComponent=n,u.contextType=s.EnvContext,u)),n);return m}}t.Store=u.types.model("RemoteConfigStore").props({fetching:!1,errorMsg:"",config:u.types.frozen(),data:u.types.frozen({})}).actions((function(e){var t=void 0,n=(0,u.flow)((function(n,r,o,i){var l,s,c,p,f;return void 0===i&&(i={}),(0,a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),e.fetching=!0,[4,n.fetcher(r,o)];case 1:if(l=a.sent(),!(0,u.isAlive)(e))return[2];if(l.ok)return s=(0,d.normalizeApiResponseData)(l.data),c=i.adaptor?i.adaptor(s,t.props):s,e.setConfig(c,i,"remote"),null===(f=i.afterLoad)||void 0===f||f.call(i,s,e.config,t.props),[2,l];throw new Error(l.msg||"fetch error");case 2:return p=a.sent(),(0,u.isAlive)(e)&&(e.errorMsg=p.message),[3,4];case 3:return(0,u.isAlive)(e)&&(e.fetching=!1),[7];case 4:return[2]}}))}));return{setComponent:function(e){t=e},load:n,setData:function(t){e.data=t||{}},setConfig:function(n,a,r){a.normalizeConfig&&(n=a.normalizeConfig(n,e.config,t.props,r)||n),e.config=n}}})),t.withRemoteConfig=m},1945:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rating=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d77e"),i=n("d369"),l=n("6662"),s=n("c264"),u=function(e){function t(t){var n=e.call(this,t)||this;return n.starsNode={},n.state={value:t.value||0,stars:[],isClear:!1,halfStar:{at:Math.floor(t.value),hidden:t.half&&t.value%1<.5},showColor:"",showText:null,hoverValue:null},n.getRate=n.getRate.bind(n),n.getStars=n.getStars.bind(n),n.moreThanHalf=n.moreThanHalf.bind(n),n.mouseOver=n.mouseOver.bind(n),n.mouseLeave=n.mouseLeave.bind(n),n.handleClick=n.handleClick.bind(n),n.saveRef=n.saveRef.bind(n),n.handleStarMouseLeave=n.handleStarMouseLeave.bind(n),n}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.state.value;this.setState({stars:this.getStars(e)}),this.getShowColorAndText(e)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props;n.value!==e.value&&this.setState({stars:this.getStars(n.value),value:n.value,halfStar:{at:Math.floor(n.value),hidden:n.half&&n.value%1<.5}},(function(){t.getShowColorAndText(n.value)}))},t.prototype.sortKeys=function(e){return Object.keys(e).filter((function(e){return l.validations.isNumeric({},e)})).sort((function(e,t){return Number(e)-Number(t)}))},t.prototype.getShowColorAndText=function(e){var t=this.props,n=t.colors,a=t.texts,r=t.half;if(!e)return this.setState({showText:null});if(e=r?Math.floor(2*Number(e))/2:Math.floor(e),n&&"string"!==typeof n){var o=this.sortKeys(n),l=o.filter((function(t){return Number(t)n.clientWidth/2},t.prototype.mouseLeave=function(){var e=this.state,t=e.value,n=e.isClear,a=this.props,r=a.half,o=a.readOnly;if(!o){if(n)return this.setState({isClear:!1,hoverValue:null});r&&this.setState({halfStar:{at:Math.floor(t),hidden:t%1===0}}),this.setState({stars:this.getStars(),hoverValue:null}),this.getShowColorAndText(t)}},t.prototype.handleStarMouseLeave=function(e,t){var n=this.starsNode[t],a=n.getBoundingClientRect().left,r=this.state.isClear;if(r)return this.setState({isClear:!1});e.clientX<=a&&(this.getShowColorAndText(t),this.setState({stars:this.getStars(t),halfStar:{at:t,hidden:!0}}))},t.prototype.handleClick=function(e,t){var n=this.props,a=n.half,r=n.readOnly,o=n.onChange,i=n.allowClear;if(!r){var l;if(a){var s=this.moreThanHalf(e,t);s&&(t+=1),l=s?t:t+.5,this.setState({halfStar:{at:t,hidden:s}})}else l=t+=1;var u=i&&l===this.state.value;u&&(l=t=0),this.setState({value:l,stars:this.getStars(t),isClear:u}),this.getShowColorAndText(l),o&&o(l)}},t.prototype.renderStars=function(){var e=this,t=this.state,n=t.halfStar,a=t.stars,o=t.showColor,i=this.props,l=i.inactiveColor,s=i.char,u=i.half,d=i.disabled,c=i.readOnly,p=i.charClassName,f=i.classnames;return r.default.createElement("ul",{onMouseLeave:this.mouseLeave},a.map((function(t,a){var i=u&&!n.hidden&&n.at===a;return r.default.createElement("li",{ref:e.saveRef(a),className:f("Rating-star",p,{"is-half":i,"is-active":t.active,"is-disabled":c||d}),key:a,style:{color:t.active?o:l},onMouseOver:function(t){return e.mouseOver(t,a)},onMouseMove:function(t){return e.mouseOver(t,a)},onClick:function(t){return e.handleClick(t,a)},onMouseLeave:function(t){return e.handleStarMouseLeave(t,a)}},i&&r.default.createElement("div",{className:f("Rating-star-half"),style:{color:o}},s),s)})))},t.prototype.renderText=function(){var e,t=this.state.showText,n=this.props,a=n.textClassName,o=n.textPosition,i=n.classnames;return t?r.default.createElement("span",{className:i("Rating-text",a,(e={},e["Rating-text--".concat("left"===o?"left":"right")]=o,e))},t):null},t.prototype.render=function(){var e=this.props,t=e.className,n=e.textPosition,a=e.classnames;return r.default.createElement("div",{className:a("Rating",t)},"left"===n?r.default.createElement(r.default.Fragment,null,this.renderText(),this.renderStars()):r.default.createElement(r.default.Fragment,null,this.renderStars(),this.renderText()))},t.defaultProps={containerClass:"rating",readOnly:!1,half:!0,allowClear:!0,value:0,count:5,char:r.default.createElement(s.Icon,{icon:"star",className:"icon"}),colors:{2:"#abadb1",3:"#787b81",5:"#ffa900"},textPosition:"right"},t}(r.default.Component);t.Rating=u,t.default=(0,o.themeable)(u)},"1a4f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Grid2DRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=n("d369"),l={left:"start",right:"end",center:"center",auto:"stretch"},s={top:"start",bottom:"end",middle:"center",auto:"stretch"},u=function(e){function t(t){return e.call(this,t)||this}return(0,a.__extends)(t,e),t.prototype.renderChild=function(e,t){var n=this.props,a=n.render,r=n.disabled;return a(e,t,{disabled:r})},t.prototype.renderGrid=function(e,t,n){var a=this.props,o=a.itemRender,u=a.data;if(!(0,i.isVisible)(e,u))return null;var d={gridColumnStart:e.x,gridColumnEnd:e.x+e.w,gridRowStart:e.y,gridRowEnd:e.y+e.h,justifySelf:e.align?l[e.align]:"stretch",alignSelf:e.valign?s[e.valign]:"stretch"};return r.default.createElement("div",{key:t,style:d,className:e.gridClassName},o?o(e,t,n,this.props):this.renderChild("grid2d/".concat(t),e))},t.prototype.renderGrids=function(){var e=this,t=this.props.grids;return t.map((function(n,a){return e.renderGrid(n,a,t.length)}))},t.prototype.render=function(){var e=this.props,t=e.grids,n=e.cols,a=e.gap,o=e.gapRow,i=e.width,l=e.rowHeight,s=new Array(n);s.fill("1fr");var u=0;t.forEach((function(e,t){var n=e.y+e.h-1;n>u&&(u=n)}));var d=new Array(u);d.fill(l),t.forEach((function(e){e.width&&(s[e.x-1]=Number.isInteger(e.width)?e.width+"px":e.width),e.height&&(d[e.y-1]=Number.isInteger(e.height)?e.height+"px":e.height)}));var c={display:"grid",columnGap:a,rowGap:"undefined"===typeof o?a:o,width:i,gridTemplateColumns:s.join(" "),gridTemplateRows:d.join(" ")};return r.default.createElement("div",{style:c},this.renderGrids())},t.propsList=["grids"],t.defaultProps={cols:12,width:"auto",gap:0,rowHeight:"3.125rem"},t}(r.default.Component);t.default=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"grid-2d"})],t),t}(u);t.Grid2DRenderer=d},"1a65":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseResultTableSelection=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("739d"),i=n("d77e"),l=n("79ae"),s=n("7e49"),u=n("32e1"),d=n("d369"),c=(0,a.__importDefault)(n("985f")),p=n("c264"),f=(0,a.__importDefault)(n("ca59")),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={tableOptions:[],searching:!1,searchTableOptions:[]},t}var n;return(0,a.__extends)(t,e),t.getDerivedStateFromProps=function(e){var t=e.options,n=e.value,a=e.option2value,r=o.BaseSelection.value2array(n,t,a);return{tableOptions:r}},t.prototype.handleCloseItem=function(e){var t=this.props,n=t.value,a=t.onChange,r=t.option2value,i=t.options,l=t.disabled,s=this.state,u=s.searching,d=s.searchTableOptions;if(!l&&!e.disabled){var c=o.BaseSelection.value2array(n,i,r),p=c.indexOf(e);c.splice(p,1);var f=r?c.map((function(e){return r(e)})):c;if(a&&a(f),u){var m=o.BaseSelection.value2array(d,i,r),h=m.indexOf(e);d.splice(h,1),this.setState({searchTableOptions:d})}}},t.prototype.search=function(e){if(e){var t=this.props,n=t.value,a=t.onSearch,r=(n||[]).filter((function(t){return null===a||void 0===a?void 0:a(e,t)}));this.setState({searching:!0,searchTableOptions:r})}else this.clearSearch()},t.prototype.clearSearch=function(){this.setState({searching:!1,searchTableOptions:[]})},t.prototype.renderTable=function(){var e=this,t=this.props,n=t.classnames,a=t.className,o=t.columns,i=t.cellRender,l=t.value,s=t.disabled,u=t.option2value,d=t.onChange,c=t.translate,m=t.placeholder,h=this.state,v=h.searching,g=h.tableOptions,y=h.searchTableOptions;return r.default.createElement("div",{className:n("ResultTableList",a)},Array.isArray(l)&&l.length?r.default.createElement(f.default,{columns:o,options:v?y:g,value:l,disabled:s,option2value:u,onChange:d,multiple:!1,cellRender:function(t,a,l,s){var u=i(t,a,l,s);return l===o.length-1?r.default.createElement(r.default.Fragment,null,u,r.default.createElement("span",{className:n("ResultTableList-close-btn"),onClick:function(t){t.stopPropagation(),e.handleCloseItem(a)}},r.default.createElement(p.CloseIcon,null))):u}}):r.default.createElement("div",{className:n("Selections-placeholder")},c(m)))},t.prototype.render=function(){var e=this.props,t=e.classnames,n=e.className,a=e.title,o=e.searchable,i=e.translate,l=e.placeholder,s=void 0===l?i("Transfer.searchKeyword"):l;return r.default.createElement("div",{className:t("Selections",n)},a?r.default.createElement("div",{className:t("Selections-title")},a):null,o?r.default.createElement(c.default,{placeholder:s,onSearch:this.search,onCancelSearch:this.clearSearch}):null,this.renderTable())},t.defaultProps=(0,a.__assign)((0,a.__assign)({},o.BaseSelection.defaultProps),{cellRender:function(e,t,n,a){return r.default.createElement("span",null,(0,s.resolveVariable)(e.name,t))}}),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof l.Option&&l.Option)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleCloseItem",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"search",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"clearSearch",null),t}(o.BaseSelection);t.BaseResultTableSelection=m,t.default=(0,i.themeable)((0,u.localeable)(m))},"1a7b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableViewRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i="var(--TableCell-paddingY) var(--TableCell-paddingX)",l=function(e){function t(t){return e.call(this,t)||this}return(0,a.__extends)(t,e),t.prototype.renderTd=function(e,t,n){var o,l=this.props,s=l.border,u=l.borderColor,d=(l.render,l.style),c="td-".concat(t);return s&&(o="1px solid ".concat(u)),r.default.createElement("td",{style:(0,a.__assign)({border:o,color:e.color,fontWeight:e.bold?"bold":"normal",background:e.background,padding:e.padding||i,width:e.width||"auto",textAlign:e.align||"left",verticalAlign:e.valign||"center"},d),align:e.align,valign:e.valign,rowSpan:e.rowspan,colSpan:e.colspan,key:c},this.renderTdBody(e.body))},t.prototype.renderTdBody=function(e){var t=this.props.render;return t("td",e||"")},t.prototype.renderTds=function(e,t){var n=this;return e.map((function(e,a){return n.renderTd(e,a,t)}))},t.prototype.renderTr=function(e,t){var n="tr-".concat(t);return r.default.createElement("tr",{style:(0,a.__assign)({height:e.height,background:e.background},e.style),key:n},this.renderTds(e.tds||[],t))},t.prototype.renderTrs=function(e){var t=this,n=e.map((function(e,n){return t.renderTr(e,n)}));return n},t.prototype.renderCols=function(){var e=this.props.cols;if(e){var t=e.map((function(e){return r.default.createElement("col",{span:e.span,style:e.style})}));return r.default.createElement("colgroup",null,t)}return null},t.prototype.renderCaption=function(){return this.props.caption?r.default.createElement("caption",{style:{captionSide:"bottom"===this.props.captionSide?"bottom":"top"}},this.props.caption):null},t.prototype.render=function(){var e,t=this.props,n=t.width,a=t.border,o=t.borderColor,i=t.trs,l=t.classnames,s=t.className;return a&&(e="1px solid ".concat(o)),r.default.createElement("table",{className:l("TableView",s),style:{width:n,border:e,borderCollapse:"collapse"}},this.renderCaption(),this.renderCols(),r.default.createElement("tbody",null,this.renderTrs(i)))},t.defaultProps={padding:i,width:"100%",border:!0,borderColor:"var(--borderColor)"},t}(r.default.Component);t.default=l;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"table-view"})],t),t}(l);t.TableViewRenderer=s},"1a93":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},"1b0d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MatrixRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("2ab5"),i=n("7f82"),l=n("4afe"),s=n("d369"),u=function(e){function t(t){var n=e.call(this,t)||this;return n.mounted=!1,n.state={columns:t.columns||[],rows:t.rows||[],loading:!1},n.toggleItem=n.toggleItem.bind(n),n.reload=n.reload.bind(n),n.initOptions=n.initOptions.bind(n),n.mounted=!0,n}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.formInited,n=e.addHook;t||!n?this.reload():n(this.initOptions,"init")},t.prototype.componentDidUpdate=function(e){var t=this.props;if(e.columns!==t.columns||e.rows!==t.rows)this.setState({columns:t.columns||[],rows:t.rows||[]});else if(t.formInited&&(t.source!==e.source||e.data!==t.data)){var n=(0,i.buildApi)(e.source,e.data,{ignoreData:!0}),a=(0,i.buildApi)(t.source,t.data,{ignoreData:!0});n.url!==a.url&&(0,i.isValidApi)(a.url)&&this.reload()}},t.prototype.componentWillUnmount=function(){this.mounted=!1;var e=this.props.removeHook;null===e||void 0===e||e(this.initOptions,"init")},t.prototype.doAction=function(e,t,n){var a=this.props,r=a.resetValue,o=a.onChange,i=null===e||void 0===e?void 0:e.actionType;"clear"===i?null===o||void 0===o||o(""):"reset"===i&&(null===o||void 0===o||o(null!==r&&void 0!==r?r:""))},t.prototype.initOptions=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return[4,this.reload()];case 1:return a.sent(),t=this.props,n=t.formItem,r=t.name,n?(n.value&&(0,s.setVariable)(e,r,n.value),[2]):[2]}}))}))},t.prototype.reload=function(){return(0,a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,o,l,s=this;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(e=this.props,t=e.source,n=e.data,r=e.env,o=e.onChange,l=e.translate,!(0,i.isEffectiveApi)(t,n)||this.state.loading)return[2];if(!r||!r.fetcher)throw new Error("fetcher is required");return[4,new Promise((function(e,a){if(!s.mounted)return e();s.setState({loading:!0},(function(){if(!s.mounted)return e();r.fetcher(t,n).then((function(n){if(!n.ok)throw new Error(n.msg||l("fetchFailed"));if(!s.mounted)return e();s.setState({loading:!1,rows:n.data.rows||[],columns:n.data.columns||[]},(function(){t&&t.replaceData;var a=n.data.value;a&&(a=t.replaceData?a:c(a,s.state.columns,s.state.rows),o(a)),e()}))})).catch((function(t){return s.setState({error:t,loading:!1},(function(){return e()}))}))}))}))];case 1:return[2,a.sent()]}}))}))},t.prototype.toggleItem=function(e,t,n){return(0,a.__awaiter)(this,void 0,void 0,(function(){var r,o,i,l,u,c,p,f,m,h,v,g,y,b;return(0,a.__generator)(this,(function(_){switch(_.label){case 0:if(r=this.state,o=r.columns,i=r.rows,l=this.props,u=l.multiple,c=l.singleSelectMode,p=l.dispatchEvent,f=l.data,m=this.props.value||d(o,i),u)m[t][n]=(0,a.__assign)((0,a.__assign)({},m[t][n]),{checked:e});else if("row"===c)for(g=0,v=o.length;g=this.itemCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this.itemCount));if(e>this.lastMeasuredIndex){for(var t=this.getSizeAndPositionOfLastMeasuredItem(),n=t.offset+t.size,a=this.lastMeasuredIndex+1;a<=e;a++){var r=this.itemSizeGetter(a);if(null==r||isNaN(r))throw Error("Invalid size returned for index ".concat(a," of value ").concat(r));this.itemSizeAndPositionData[a]={offset:n,size:r},n+=r}this.lastMeasuredIndex=e}return this.itemSizeAndPositionData[e]},e.prototype.getSizeAndPositionOfLastMeasuredItem=function(){return this.lastMeasuredIndex>=0?this.itemSizeAndPositionData[this.lastMeasuredIndex]:{offset:0,size:0}},e.prototype.getTotalSize=function(){var e=this.getSizeAndPositionOfLastMeasuredItem();return e.offset+e.size+(this.itemCount-this.lastMeasuredIndex-1)*this.estimatedItemSize},e.prototype.getUpdatedOffsetForIndex=function(e){var t=e.align,n=void 0===t?a.ALIGNMENT.START:t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var l,s=this.getSizeAndPositionForIndex(i),u=s.offset,d=u-r+s.size;switch(n){case a.ALIGNMENT.END:l=d;break;case a.ALIGNMENT.CENTER:l=u-(r-s.size)/2;break;case a.ALIGNMENT.START:l=u;break;default:l=Math.max(d,Math.min(u,o))}var c=this.getTotalSize();return Math.max(0,Math.min(c-r,l))},e.prototype.getVisibleRange=function(e){var t=e.containerSize,n=e.offset,a=e.overscanCount,r=this.getTotalSize();if(0===r)return{};var o=n+t,i=this.findNearestItem(n);if("undefined"===typeof i)throw Error("Invalid offset ".concat(n," specified"));var l=this.getSizeAndPositionForIndex(i);n=l.offset+l.size;var s=i;while(n=e?this.binarySearch({high:n,low:0,offset:e}):this.exponentialSearch({index:n,offset:e})},e.prototype.binarySearch=function(e){var t=e.low,n=e.high,a=e.offset,r=0,o=0;while(t<=n){if(r=t+Math.floor((n-t)/2),o=this.getSizeAndPositionForIndex(r).offset,o===a)return r;oa&&(n=r-1)}return t>0?t-1:0},e.prototype.exponentialSearch=function(e){var t=e.index,n=e.offset,a=1;while(t=t)return n[a].color;return n[n.length-1].color},t.prototype.getColorArray=function(e){var t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,value:(n+1)*t}:e}))},t.prototype.getLabel=function(e){var t=this.props,n=t.value,a=t.format,o=t.showLabel,i=t.classnames;if(!o)return null;var l=a||function(e){return"".concat(e,"%")},s=l(n);return r.default.createElement("span",{className:i("".concat(e,"-text")),key:"value"},s)},t.prototype.render=function(){var e,t,n,a,i,l=this.props,s=l.className,u=l.progressClassName,d=l.type,c=l.value,p=l.placeholder,f=l.stripe,m=l.animate,h=l.gapDegree,v=l.gapPosition,g=l.strokeWidth,y=l.classnames,b="line"===d,_=b?"Progress-line":"Progress-circle",C=this.getCurrentColor(),E=/bg-/.test(C);if("number"!==typeof c)i=r.default.createElement("span",{className:"text-muted"},p);else if("line"===d){var x={width:"".concat(c,"%")};g&&(x.height=g),!E&&(x.backgroundColor=C),i=[r.default.createElement("div",{key:"progress",className:y(_,u)},r.default.createElement("div",{className:y("".concat(_,"-inter"))},r.default.createElement("div",{className:y("".concat(_,"-bar"),(e={},e[C]=E,e),(t={},t["".concat(_,"-bar--stripe")]=f,t),(n={},n["".concat(_,"-bar--animate")]=m&&!f,n),(a={},a["".concat(_,"-bar--stripe-animate")]=m&&f,a)),title:"".concat(c,"%"),style:x}))),this.getLabel(_)]}else if("circle"===d||"dashboard"===d){var w=g||6,S=v||"dashboard"===d&&"bottom"||"top",O=function(){return h||0===h?h:"dashboard"===d?75:void 0};i=[r.default.createElement("div",{className:y(_,u||"w-ssm"),key:"circle"},r.default.createElement(o.Circle,{percent:c,strokeColor:E?"":C,strokeWidth:w,trailWidth:w,prefixCls:E?C:"",gapDegree:O(),gapPosition:S}),this.getLabel(_))]}return r.default.createElement("div",{className:y("Progress",s)},i)},t.defaultProps={type:"line",placeholder:"-",progressClassName:"",map:["bg-danger","bg-warning","bg-info","bg-success","bg-success"],showLabel:!0},t}(r.default.Component);t.Progress=l,t.default=(0,i.themeable)(l)},"24a0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 16 16",className:"icon"},e),r.default.createElement("title",null,"不可见"),r.default.createElement("g",{id:"\\u4E0D\\u53EF\\u89C1",stroke:"none",strokeWidth:1,fill:"currentColor",fillRule:"evenodd"},r.default.createElement("g",{id:"\\u7F16\\u7EC4"},r.default.createElement("rect",{id:"\\u77E9\\u5F62",stroke:"none",fill:"currentColor",opacity:0,x:.5,y:.5,width:15,height:15}),r.default.createElement("path",{d:"M2.91972703,5.00035128 C3.15932221,5.56062137 3.48954828,6.0784548 3.89678565,6.53485922 C4.96673844,7.73914737 6.49518581,8.43995 8.14,8.43995 C9.76664693,8.43995 11.2813058,7.75315198 12.3523764,6.57033395 C12.6920742,6.19520277 12.9803798,5.7761243 13.209327,5.32420638 L13.3395085,5.04920376 L14.2544915,5.45269624 C13.9653387,6.10839593 13.572991,6.71219666 13.0936273,7.24156203 C12.7623988,7.60734835 12.3948705,7.93285848 11.9982387,8.21395897 L12.9566,9.87395 L12.0906,10.37395 L11.1412434,8.72942071 C10.3784723,9.11337429 9.54082663,9.35086388 8.66757967,9.41933209 L8.668,10.97185 L7.668,10.97185 L7.66735222,9.42343888 C6.75745885,9.35969244 5.88560233,9.11282413 5.09602954,8.70830726 L4.1485,10.34855 L3.2825,9.84855 L4.2424457,8.18636156 C3.84593988,7.9008387 3.4793171,7.57058753 3.14992355,7.19983732 C2.73988365,6.74029373 2.39560013,6.22662333 2.12776836,5.67339306 L2.00027297,5.39354872 L2.91972703,5.00035128 Z",id:"\\u5F62\\u72B6\\u7ED3\\u5408"}))))};t.default=o},"2593e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 16 16",className:"icon"},e),r.default.createElement("g",{fill:"currentColor",fillRule:"nonzero"},r.default.createElement("path",{d:"M8.05031447,14.0555556 C5.93710692,14.0555556 4.02515723,12.9861111 2.91823899,11.2361111 L5.03144654,9.19444444 L0,9.19444444 L0,14.0555556 L1.40880503,12.6944444 C2.91823899,14.7361111 5.33333333,16 8.05031447,16 C12.0754717,16 15.4968553,13.1805556 16,9.29166667 L13.9874214,9 C13.5849057,11.9166667 11.0691824,14.0555556 8.05031447,14.0555556 Z M14.591195,3.30555556 C13.081761,1.26388889 10.6666667,0 7.94968553,0 C3.9245283,0 0.503144654,2.81944444 0,6.70833333 L2.01257862,7 C2.41509434,4.08333333 4.93081761,1.94444444 7.94968553,1.94444444 C10.0628931,1.94444444 11.9748428,3.01388889 13.081761,4.76388889 L10.9685535,6.80555556 L16,6.80555556 L16,1.94444444 L14.591195,3.30555556 Z",id:"Shape"})))};t.default=o},"25be":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeMirrorEditor=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d369"),i=n("2a98"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dom=r.default.createRef(),t.toDispose=[],t.unmounted=!1,t}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e,t,r,o,l;return(0,a.__awaiter)(this,void 0,void 0,(function(){var s,u=this;return(0,a.__generator)(this,(function(d){switch(d.label){case 0:return[4,Promise.resolve().then((function(){return new Promise((function(e){n.e("chunk-2d0c8f68").then((function(){var t=[n("56b3")];(function(t){e(a.__importStar(t))}).apply(null,t)})).catch(n.oe)}))}))];case 1:return s=d.sent().default,[4,Promise.resolve().then((function(){return new Promise((function(e){Promise.all([n.e("chunk-2d0c8f68"),n.e("chunk-2d22e119")]).then((function(){var t=[n("f9d4")];(function(t){e(a.__importStar(t))}).apply(null,t)})).catch(n.oe)}))}))];case 2:return d.sent(),[4,Promise.resolve().then((function(){return new Promise((function(e){Promise.all([n.e("chunk-2d0c8f68"),n.e("chunk-2d22e119"),n.e("chunk-57705984")]).then((function(){var t=[n("d69f")];(function(t){e(a.__importStar(t))}).apply(null,t)})).catch(n.oe)}))}))];case 3:return d.sent(),[4,Promise.resolve().then((function(){return new Promise((function(e){Promise.all([n.e("chunk-2d0c8f68"),n.e("chunk-2d0d7839")]).then((function(){var t=[n("76ae")];(function(t){e(a.__importStar(t))}).apply(null,t)})).catch(n.oe)}))}))];case 4:return d.sent(),[4,Promise.resolve().then((function(){return new Promise((function(e){Promise.all([n.e("chunk-2d0c8f68"),n.e("chunk-2d230086")]).then((function(){var t=[n("eb0c")];(function(t){e(a.__importStar(t))}).apply(null,t)})).catch(n.oe)}))}))];case 5:return d.sent(),this.unmounted?[2]:(this.editor=null!==(r=null===(t=(e=this.props).editorFactory)||void 0===t?void 0:t.call(e,this.dom.current,s,this.props))&&void 0!==r?r:s(this.dom.current,{value:this.props.value||""}),null===(l=(o=this.props).editorDidMount)||void 0===l||l.call(o,s,this.editor),this.editor.on("change",this.handleChange),this.toDispose.push((0,i.resizeSensor)(this.dom.current,(function(){var e;return null===(e=u.editor)||void 0===e?void 0:e.refresh()}))),setTimeout((function(){var e;return null===(e=u.editor)||void 0===e?void 0:e.refresh()}),350),this.toDispose.push((function(){var e,t;null===(t=(e=u.props).editorWillUnMount)||void 0===t||t.call(e,s,u.editor)})),[2])}}))}))},t.prototype.componentDidUpdate=function(e){var t=this.props;t.value!==e.value&&this.editor&&this.setValue(t.value)},t.prototype.componentWillUnmount=function(){var e;this.unmounted=!0,null===(e=this.editor)||void 0===e||e.off("change",this.handleChange),this.toDispose.forEach((function(e){return e()})),this.toDispose=[]},t.prototype.handleChange=function(e){var t,n;null===(n=(t=this.props).onChange)||void 0===n||n.call(t,e.getValue())},t.prototype.setValue=function(e){var t=this.editor.getDoc();if(e&&e!==t.getValue()){var n=t.getCursor();t.setValue(e),t.setCursor(n)}},t.prototype.render=function(){var e=this.props.className;return r.default.createElement("div",{className:e,ref:this.dom})},(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleChange",null),t}(r.default.Component);t.CodeMirrorEditor=l,t.default=l},"25eb":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputJSONSchemaArray=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d369"),i=(0,a.__importDefault)(n("f602")),l=n("c264"),s=n("b1f4");function u(e){var t,n,u,d=e.classnames,c=e.value,p=e.onChange,f=e.disabled,m=e.translate,h=e.collapsable,v=e.renderValue,g=r.default.useCallback((function(e,t){var n=[],a=Array.isArray(t)?t.length:1;"number"===typeof e.minContains&&(a=Math.max(a,e.minContains));var r="number"===typeof e.maxContains?e.maxContains:0;while(a--)n.push({key:(0,o.guid)(),index:n.length,schema:e.items,invalid:!!r&&ra?r.pop():r.push({key:(0,o.guid)(),index:r.length,schema:n.items});_(r)}}),[JSON.stringify(e.value)]);var D=r.default.useCallback((function(){var t=b.concat();t.push({key:(0,o.guid)(),index:b.length,schema:e.schema.items,invalid:!1}),_(t)}),[b]),N="number"===typeof(null===(t=e.schema)||void 0===t?void 0:t.maxContains)?e.schema.maxContains:0,T="number"===typeof(null===(n=e.schema)||void 0===n?void 0:n.minContains)?e.schema.minContains:0,P=!N||N>b.length,A=!T||T1){var u=12/n,d="Grid-col--sm".concat(u===Math.round(u)?u:"");e=(0,o.default)(e,n).map((function(e,a){return r.default.createElement("div",{className:t("Grid"),key:a},Array.from({length:n}).map((function(n,a){return r.default.createElement("div",{key:a,className:t(d)},e[a])})))}))}return e}t.columnsSplit=i},"293b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlGroupRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=n("d369"),l=n("2ab5"),s=function(e){function t(t){var n=e.call(this,t)||this;return n.renderInput=n.renderInput.bind(n),n}return(0,a.__extends)(t,e),t.prototype.renderControl=function(e,t,n){var r=this.props,o=r.render,i=r.disabled,l=(r.data,r.mode),s=r.horizontal,u=r.formMode,d=r.formHorizontal,c=r.subFormMode,p=r.subFormHorizontal;if(!e)return null;var f=e;return o("".concat(t),f,(0,a.__assign)({disabled:i,formMode:c||l||u,formHorizontal:p||s||d},n))},t.prototype.renderVertical=function(e){var t=this;void 0===e&&(e=this.props);var n=e.body,a=e.className,o=e.classnames,l=e.mode,s=e.formMode,u=e.data;return s=l||s,Array.isArray(n)?r.default.createElement("div",{className:o("Form-group Form-group--ver Form-group--".concat(s),a)},n.map((function(e,n){return(0,i.isVisible)(e,u)?t.renderControl(e,n,{key:n}):null}))):null},t.prototype.renderHorizontal=function(e){var t=this;void 0===e&&(e=this.props);var n=e.body,a=e.className,o=e.classPrefix,l=e.classnames,s=e.mode,u=e.horizontal,d=e.formMode,c=e.formHorizontal,p=e.subFormMode,f=e.subFormHorizontal,m=e.data,h=e.gap;if(!Array.isArray(n))return null;d=p||s||d;var v=f||u||(c?(0,i.makeHorizontalDeeper)(c,n.filter((function(e){var t;return"inline"!==(null===(t=e)||void 0===t?void 0:t.mode)&&(0,i.isVisible)(e,m)})).length):void 0);return r.default.createElement("div",{className:l("Form-group Form-group--hor Form-group--".concat(d),h?"Form-group--".concat(h):"",a)},n.map((function(e,n){var a;if(!(0,i.isVisible)(e,m))return null;var s=(null===(a=e)||void 0===a?void 0:a.mode)||d;if("inline"===s||e&&"formula"===e.type)return t.renderControl(e,n,{key:n,className:l(e.className,e.columnClassName)});var u=e.columnRatio||(0,i.getWidthRate)(e&&e.columnClassName,!0);return r.default.createElement("div",{key:n,className:l("".concat(o,"Form-groupColumn"),u?"".concat(o,"Form-groupColumn--").concat(u):"",e&&e.columnClassName)},t.renderControl(e,n,{formHorizontal:v,formMode:s}))})))},t.prototype.renderInput=function(e){void 0===e&&(e=this.props);var t=e.direction;return"vertical"===t?this.renderVertical(e):this.renderHorizontal(e)},t.prototype.render=function(){var e=this.props,t=e.label,n=(0,a.__rest)(e,["label"]);return"undefined"!==typeof t?r.default.createElement(l.FormItemWrap,(0,a.__assign)({},n,{sizeMutable:!1,label:t,renderControl:this.renderInput})):this.renderInput()},t=(0,a.__decorate)([(0,o.Renderer)({type:"group"}),(0,a.__metadata)("design:paramtypes",[Object])],t),t}(r.default.Component);t.ControlGroupRenderer=s},"2a98":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resizeSensor=t.getComputedStyle=void 0;var a=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\n
\n \n
\n
\n
\n
'),e.appendChild(n),e.hasInlineStyle=e.hasAttribute("style");var l=e.originPosition=r(e,"position");~["fixed","absolute"].indexOf(l)||(e.style.position="relative");var s,u,d=n.children[0],c=d.children[0],p=n.children[1],f=n.children[2],m=function(){c.style.width=d.offsetWidth+10+"px",c.style.height=d.offsetHeight+10+"px",d.scrollLeft=d.scrollWidth,d.scrollTop=d.scrollHeight,p.scrollLeft=p.scrollWidth,p.scrollTop=p.scrollHeight,s=e.offsetWidth,u=e.offsetHeight},h=function(){m(),_&&(v(),_=!1)};m();var v=function(){e.resizedAttached&&e.resizedAttached.call()},g=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n)},y=function(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener(t,n)},b=function(t){e.offsetWidth==s&&e.offsetHeight==u||v(),m()};g(d,"scroll",b),g(p,"scroll",b),g(f,"animationstart",h);var _=!d.offsetWidth;return function(){y(d,"scroll",b),y(p,"scroll",b),y(f,"animationstart",h)}}}function i(e){if(e.resizeSensor){e.hasInlineStyle?e.style.position=e.originPosition:e.removeAttribute("style");try{e.removeChild(e.resizeSensor)}catch(t){}delete e.resizeSensor,delete e.resizedAttached,delete e.hasInlineStyle,delete e.originPosition}}function l(e,t,n){if(void 0===n&&(n=!1),!e)return function(){};var a=void 0;if(!n){a=o(e,t);var r=!1;return function(){r||(r=!0,null===a||void 0===a||a(),i(e))}}a=o(e,(function(){t.apply(this,arguments),null===a||void 0===a||a(),i(e)}))}t.getComputedStyle=r,t.resizeSensor=l},"2ab4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridNavItem=void 0;var a=n("9ab4"),r=a.__importStar(n("ab5b")),o=n("4864");function i(e){if(void 0!==e&&null!==e)return e=String(e),/^\d+(\.\d+)?$/.test(e)?"".concat(e,"px"):e}var l=function(e){var t,n=e.children,l=e.classnames,s=e.className,u=e.style,d=(0,a.__rest)(e,["children","classnames","className","style"]),c=d.index,p=void 0===c?0:c,f=d.parent;if(!f)return null;var m=(0,r.useMemo)((function(){var e=f.square,t=f.gutter,n=f.columnNum,r=void 0===n?4:n,o="".concat(100/+r,"%"),l=(0,a.__assign)((0,a.__assign)({},u),{flexBasis:o});if(e)l.paddingTop=o;else if(t){var s=i(t);l.paddingRight=s,p>=r&&(l.marginTop=s)}return l}),[f.style,f.gutter,f.columnNum]),h=(0,r.useMemo)((function(){var e=f.square,t=f.gutter;if(e&&t){var n=i(t);return(0,a.__assign)((0,a.__assign)({},d.contentStyle),{right:n,bottom:n,height:"auto"})}return d.contentStyle}),[f.gutter,f.columnNum,d.contentStyle]),v=function(){var e=f.iconRatio||60;return"string"===typeof d.icon?d.badge?r.default.createElement(o.Badge,(0,a.__assign)({},d.badge),r.default.createElement("div",{className:l("GridNavItem-image")},r.default.createElement("img",{src:d.icon,style:{width:e+"%"}}))):r.default.createElement("div",{className:l("GridNavItem-image")},r.default.createElement("img",{src:d.icon,style:{width:e+"%"}})):r.default.isValidElement(d.icon)?r.default.createElement(o.Badge,(0,a.__assign)({},d.badge),d.icon):null},g=function(){return r.default.isValidElement(d.text)?d.text:d.text?r.default.createElement("span",{className:l("GridNavItem-text")},d.text):null},y=function(){return n||r.default.createElement(r.default.Fragment,null,v(),g())},b=f.center,_=f.border,C=f.square,E=f.gutter,x=f.reverse,w=f.direction,S="GridNavItem-content",O=l("".concat(S," ").concat(d.contentClassName||""),(t={},t["".concat(S,"--").concat(w)]=!!w,t["".concat(S,"--center")]=b,t["".concat(S,"--square")]=C,t["".concat(S,"--reverse")]=x,t["".concat(S,"--clickable")]=!!d.onClick,t["".concat(S,"--surround")]=_&&E,t["".concat(S,"--border u-hairline")]=_,t));return r.default.createElement("div",{className:l(s,{"GridNavItem--square":C}),style:m},r.default.createElement("div",{role:d.onClick?"button":void 0,className:O,style:h,onClick:d.onClick},y()))};t.GridNavItem=l;var s=function(e){var t=e.children,n=e.className,o=e.classnames,l=e.itemClassName,s=e.style,u=(0,a.__rest)(e,["children","className","classnames","itemClassName","style"]);return r.default.createElement("div",{style:(0,a.__assign)({paddingLeft:i(u.gutter)},s),className:o("GridNav ".concat(n||""),{"GridNav-top u-hairline":u.border&&!u.gutter})},r.default.Children.toArray(t).filter(Boolean).map((function(e,t){return r.default.cloneElement(e,{index:t,parent:u,className:l,classnames:o})})))};s.defaultProps={direction:"vertical",center:!0,border:!0,columnNum:4},t.default=s},"2ab5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormItem=t.registerFormItem=t.asFormItem=t.detectProps=t.FormItemWrap=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("da6a")),i=n("daf9"),l=n("f83d"),s=n("d369"),u=n("4f20"),d=n("2029"),c=n("a97c"),p=n("904e"),f=n("ed3b"),m=(0,a.__importDefault)(n("b047")),h=n("7f82"),v=function(e){function t(t){var n=e.call(this,t)||this;n.reaction=[],n.syncAutoFill=(0,m.default)((function(e){(function(e){return(0,a.__awaiter)(n,void 0,void 0,(function(){var t,n,r,o,i,l,u,d,c,p,f;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.autoFillApi,r=t.onBulkChange,o=t.formItem,i=t.data,n?(l=null===o||void 0===o?void 0:o.name,u=(0,s.createObject)(i,(c={},c[l||""]=e,c)),r&&(0,h.isEffectiveApi)(n,u)&&this.lastSearchTerm!==e?[4,null===o||void 0===o?void 0:o.loadAutoUpdateData(n,u,!!(null===(p=n)||void 0===p?void 0:p.silent))]:[3,2]):[2];case 1:if(d=a.sent(),!d)return[2];this.lastSearchTerm=null!==(f=(0,s.getVariable)(d,l))&&void 0!==f?f:e,r(d),a.label=2;case 2:return[2]}}))}))})(e).catch((function(e){return console.error(e)}))}),250,{trailing:!0,leading:!1});var r=t.formItem;return r&&(n.reaction.push((0,i.reaction)((function(){return"".concat(r.errors.join("")).concat(r.isFocused).concat(r.dialogOpen)}),(function(){return n.forceUpdate()}))),n.reaction.push((0,i.reaction)((function(){return JSON.stringify(r.tmpValue)}),(function(){return n.syncAutoFill(r.tmpValue)})))),n}var n,o;return(0,a.__extends)(t,e),t.prototype.componentWillUnmount=function(){this.reaction.forEach((function(e){return e()})),this.reaction=[],this.syncAutoFill.cancel()},t.prototype.handleFocus=function(e){var t=this.props.formItem;t&&t.focus(),this.props.onFocus&&this.props.onFocus(e)},t.prototype.handleBlur=function(e){var t=this.props.formItem;t&&t.blur(),this.props.onBlur&&this.props.onBlur(e)},t.prototype.handleOpenDialog=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n;return(0,a.__generator)(this,(function(a){return n=this.props.formItem,n?[2,new Promise((function(a){return n.openDialog(e,t,(function(e){return a(e)}))}))]:[2]}))}))},t.prototype.handleDialogConfirm=function(e){var t=e[0],n=this.props.formItem;n&&n.closeDialog(t)},t.prototype.handleDialogClose=function(e){void 0===e&&(e=!1);var t=this.props.formItem;t&&t.closeDialog(e)},t.prototype.renderControl=function(){var e,t=this.props,n=t.inputClassName,r=t.formItem,o=t.classnames,i=(t.children,t.type),l=t.renderControl,u=(t.formItemConfig,t.sizeMutable),d=t.size,c=t.defaultSize,p=t.useMobileUI,f=(0,a.__rest)(t,["inputClassName","formItem","classnames","children","type","renderControl","formItemConfig","sizeMutable","size","defaultSize","useMobileUI"]),m=p&&(0,s.isMobile)();if(l){var h=d||c;return l((0,a.__assign)((0,a.__assign)({},f),{onOpenDialog:this.handleOpenDialog,type:i,classnames:o,formItem:r,className:o("Form-control",(e={"is-inline":!!f.inline&&!m,"is-error":r&&!r.valid},e["Form-control--withSize Form-control--size".concat((0,s.ucFirst)(h))]=!1!==u&&"string"===typeof h&&!!h&&"full"!==h,e),null===r||void 0===r?void 0:r.errClassNames,n)}))}return null},t.prototype.render=function(){var e=this.props,n=e.formMode,o=e.inputOnly,i=e.wrap,l=e.render,s=e.formItem,u=this.props.mode||n;if(!1===i||o)return this.renderControl();var d=t.layoutRenderers[u]||t.layoutRenderers["normal"];return r.default.createElement(r.default.Fragment,null,d(this.props,this.renderControl.bind(this)),s?l("modal",(0,a.__assign)({type:"dialog"},s.dialogSchema),{show:s.dialogOpen,onClose:this.handleDialogClose,onConfirm:this.handleDialogConfirm,data:s.dialogData,formStore:void 0}):null)},t.layoutRenderers={horizontal:function(e,t){var n,a,o,i=e.className,l=e.classnames,u=e.description,d=e.descriptionClassName,p=e.captionClassName,f=e.desc,m=e.label,h=e.labelClassName,v=e.render,g=e.required,y=e.caption,b=e.remark,_=e.labelRemark,C=e.env,E=e.formItem,x=e.renderLabel,w=e.renderDescription,S=e.hint,O=e.data,k=e.showErrorMsg,D=e.useMobileUI;!1===x&&(m=!1!==m&&""),u=u||f;var N=e.horizontal||e.formHorizontal||{},T=(0,s.getWidthRate)(N.left),P=(0,s.getWidthRate)(N.right),A=e.labelAlign||e.formLabelAlign;return r.default.createElement("div",{"data-role":"form-item",className:l("Form-item Form-item--horizontal",i,(n={"Form-item--horizontal-justify":N.justify},n["is-error"]=E&&!E.valid,n["is-required"]=g,n),null===E||void 0===E?void 0:E.errClassNames)},!1!==m?r.default.createElement("label",{className:l("Form-label",(a={},a["Form-itemColumn--".concat("string"===typeof N.leftFixed?N.leftFixed:"normal")]=N.leftFixed,a["Form-itemColumn--".concat(T)]=!N.leftFixed,a["Form-label--left"]="left"===A,a),h)},r.default.createElement("span",null,m?v("label","string"===typeof m?(0,c.filter)(m,O):m):null,g&&(m||_)?r.default.createElement("span",{className:l("Form-star")},"*"):null,_?v("label-remark",{type:"remark",icon:_.icon||"warning-mark",tooltip:_,useMobileUI:D,className:l("Form-labelRemark"),container:e.popOverContainer?e.popOverContainer:C&&C.getModalContainer?C.getModalContainer:void 0}):null)):null,r.default.createElement("div",{className:l("Form-value",(o={},o["Form-itemColumn--".concat(P)]=!N.leftFixed&&!!P&&P!==12-T,o))},t(),y?v("caption",y,{className:l("Form-caption",p)}):null,b?v("remark",{type:"remark",icon:b.icon||"warning-mark",tooltip:b,className:l("Form-remark"),useMobileUI:D,container:e.popOverContainer?e.popOverContainer:C&&C.getModalContainer?C.getModalContainer:void 0}):null,S&&E&&E.isFocused?v("hint",S,{className:l("Form-hint")}):null,E&&!E.valid&&!1!==k&&Array.isArray(E.errors)?r.default.createElement("ul",{className:l("Form-feedback")},E.errors.map((function(e,t){return r.default.createElement("li",{key:t},e)}))):null,!1!==w&&u?v("description",u,{className:l("Form-description",d)}):null))},normal:function(e,t){var n,a=e.className,o=e.classnames,i=e.desc,l=e.description,s=e.label,u=e.labelClassName,d=e.render,p=e.required,f=e.caption,m=e.remark,h=e.labelRemark,v=e.env,g=e.descriptionClassName,y=e.captionClassName,b=e.formItem,_=e.renderLabel,C=e.renderDescription,E=e.hint,x=e.data,w=e.showErrorMsg,S=e.useMobileUI;return l=l||i,r.default.createElement("div",{"data-role":"form-item",className:o("Form-item Form-item--normal",a,(n={"is-error":b&&!b.valid},n["is-required"]=p,n),null===b||void 0===b?void 0:b.errClassNames)},s&&!1!==_?r.default.createElement("label",{className:o("Form-label",u)},r.default.createElement("span",null,s?d("label","string"===typeof s?(0,c.filter)(s,x):s):null,p&&(s||h)?r.default.createElement("span",{className:o("Form-star")},"*"):null,h?d("label-remark",{type:"remark",icon:h.icon||"warning-mark",tooltip:h,className:o("Form-lableRemark"),useMobileUI:S,container:e.popOverContainer?e.popOverContainer:v&&v.getModalContainer?v.getModalContainer:void 0}):null)):null,t(),f?d("caption",f,{className:o("Form-caption",y)}):null,m?d("remark",{type:"remark",icon:m.icon||"warning-mark",className:o("Form-remark"),tooltip:m,useMobileUI:S,container:v&&v.getModalContainer?v.getModalContainer:void 0}):null,E&&b&&b.isFocused?d("hint",E,{className:o("Form-hint")}):null,b&&!b.valid&&!1!==w&&Array.isArray(b.errors)?r.default.createElement("ul",{className:o("Form-feedback")},b.errors.map((function(e,t){return r.default.createElement("li",{key:t},e)}))):null,!1!==C&&l?d("description",l,{className:o("Form-description",g)}):null)},inline:function(e,t){var n,a=e.className,o=e.classnames,i=e.desc,l=e.description,s=e.label,u=e.labelClassName,d=e.render,p=e.required,f=e.caption,m=e.descriptionClassName,h=e.captionClassName,v=e.formItem,g=e.remark,y=e.labelRemark,b=e.env,_=e.hint,C=e.renderLabel,E=e.renderDescription,x=e.data,w=e.showErrorMsg,S=e.useMobileUI;return l=l||i,r.default.createElement("div",{"data-role":"form-item",className:o("Form-item Form-item--inline",a,(n={"is-error":v&&!v.valid},n["is-required"]=p,n),null===v||void 0===v?void 0:v.errClassNames)},s&&!1!==C?r.default.createElement("label",{className:o("Form-label",u)},r.default.createElement("span",null,s?d("label","string"===typeof s?(0,c.filter)(s,x):s):s,p&&(s||y)?r.default.createElement("span",{className:o("Form-star")},"*"):null,y?d("label-remark",{type:"remark",icon:y.icon||"warning-mark",tooltip:y,className:o("Form-lableRemark"),useMobileUI:S,container:e.popOverContainer?e.popOverContainer:b&&b.getModalContainer?b.getModalContainer:void 0}):null)):null,r.default.createElement("div",{className:o("Form-value")},t(),f?d("caption",f,{className:o("Form-caption",h)}):null,g?d("remark",{type:"remark",icon:g.icon||"warning-mark",className:o("Form-remark"),tooltip:g,useMobileUI:S,container:e.popOverContainer?e.popOverContainer:b&&b.getModalContainer?b.getModalContainer:void 0}):null,_&&v&&v.isFocused?d("hint",_,{className:o("Form-hint")}):null,v&&!v.valid&&!1!==w&&Array.isArray(v.errors)?r.default.createElement("ul",{className:o("Form-feedback")},v.errors.map((function(e,t){return r.default.createElement("li",{key:t},e)}))):null,!1!==E&&l?d("description",l,{className:o("Form-description",m)}):null))},row:function(e,t){var n,a=e.className,o=e.classnames,i=e.desc,l=e.description,s=e.label,u=e.labelClassName,d=e.render,p=e.required,f=e.caption,m=e.remark,h=e.labelRemark,v=e.env,g=e.descriptionClassName,y=e.captionClassName,b=e.formItem,_=e.renderLabel,C=e.renderDescription,E=e.hint,x=e.data,w=e.showErrorMsg,S=e.useMobileUI;return l=l||i,r.default.createElement("div",{"data-role":"form-item",className:o("Form-item Form-item--row",a,(n={"is-error":b&&!b.valid},n["is-required"]=p,n),null===b||void 0===b?void 0:b.errClassNames)},r.default.createElement("div",{className:o("Form-rowInner")},s&&!1!==_?r.default.createElement("label",{className:o("Form-label",u)},r.default.createElement("span",null,d("label","string"===typeof s?(0,c.filter)(s,x):s),p&&(s||h)?r.default.createElement("span",{className:o("Form-star")},"*"):null,h?d("label-remark",{type:"remark",icon:h.icon||"warning-mark",tooltip:h,className:o("Form-lableRemark"),useMobileUI:S,container:e.popOverContainer?e.popOverContainer:v&&v.getModalContainer?v.getModalContainer:void 0}):null)):null,t(),f?d("caption",f,{className:o("Form-caption",y)}):null,m?d("remark",{type:"remark",icon:m.icon||"warning-mark",className:o("Form-remark"),tooltip:m,container:v&&v.getModalContainer?v.getModalContainer:void 0}):null),E&&b&&b.isFocused?d("hint",E,{className:o("Form-hint")}):null,b&&!b.valid&&!1!==w&&Array.isArray(b.errors)?r.default.createElement("ul",{className:o("Form-feedback")},b.errors.map((function(e,t){return r.default.createElement("li",{key:t},e)}))):null,l&&!1!==C?d("description",l,{className:o("Form-description",g)}):null)}},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleFocus",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleBlur",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof d.Schema&&d.Schema)?n:Object,Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleOpenDialog",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(o="undefined"!==typeof Array&&Array)?o:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDialogConfirm",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDialogClose",null),t}(r.default.Component);function g(e){return function(n){var i,l=!(n.prototype instanceof r.default.Component);if(e.validate&&!n.prototype.validate){var d=e.validate;n.prototype.validate=function(){var e={input:this};return d.apply(e,arguments)}}else e.validate&&console.error("FormItem配置中的 validate 将不起作用,因为类的成员函数中已经定义了 validate 方法,将优先使用类里面的实现。");return e.storeType&&(n=(0,p.HocStoreFactory)({storeType:e.storeType,extendsData:e.extendsData})((0,u.observer)(n)),delete e.storeType),(0,f.wrapControl)((0,o.default)((i=function(o){function i(t){var n=o.call(this,t)||this;n.refFn=n.refFn.bind(n);var a=t.validations,r=t.formItem;return r&&!a&&e.validations&&r.config({rules:e.validations}),n}return(0,a.__extends)(i,o),i.prototype.shouldComponentUpdate=function(n){var a;return!(!(null===(a=e.shouldComponentUpdate)||void 0===a?void 0:a.call(e,this.props,n))&&!1!==n.strictMode&&!1!==e.strictMode)||!!(0,s.anyChanged)(t.detectProps,this.props,n)},i.prototype.getWrappedInstance=function(){return this.ref},i.prototype.refFn=function(e){this.ref=e},i.prototype.renderControl=function(){var t,o=this.props,i=o.inputClassName,u=o.formItem,d=o.classnames,c=(o.children,o.type),p=o.size,f=o.defaultSize,m=o.useMobileUI,h=(0,a.__rest)(o,["inputClassName","formItem","classnames","children","type","size","defaultSize","useMobileUI"]),v=p||f,g=m&&(0,s.isMobile)();return r.default.createElement(n,(0,a.__assign)({},h,{useMobileUI:m,onOpenDialog:this.handleOpenDialog,size:!1!==e.sizeMutable?void 0:p,onFocus:this.handleFocus,onBlur:this.handleBlur,type:c,classnames:d,ref:l?void 0:this.refFn,forwardedRef:l?this.refFn:void 0,formItem:u,className:d("Form-control",(t={"is-inline":!!h.inline&&!g,"is-error":u&&!u.valid},t["Form-control--withSize Form-control--size".concat((0,s.ucFirst)(v))]=!1!==e.sizeMutable&&"string"===typeof v&&!!v&&"full"!==v,t),null===u||void 0===u?void 0:u.errClassNames,i)}))},i}(v),i.defaultProps=(0,a.__assign)({className:"",renderLabel:e.renderLabel,renderDescription:e.renderDescription,sizeMutable:e.sizeMutable,wrap:e.wrap,showErrorMsg:e.showErrorMsg},n.defaultProps),i.propsList=(0,a.__spreadArray)(["value","defaultValue","onChange","setPrinstineValue","readOnly","strictMode"],n.propsList||[],!0),i.displayName="FormItem".concat(e.type?"(".concat(e.type,")"):""),i.ComposedComponent=n,i),n))}}function y(e){var t=g(e)(e.component);return(0,l.registerRenderer)((0,a.__assign)((0,a.__assign)({},e),{weight:"undefined"!==typeof e.weight?e.weight:-100,component:t,isFormItem:!0}))}function b(e){return function(t){var n=y((0,a.__assign)((0,a.__assign)({},e),{component:t}));return n.component}}t.FormItemWrap=v,t.detectProps=["formPristine","formInited","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","borderMode","items","showCounter","minLength","maxLength","embed","displayMode"],t.asFormItem=g,t.registerFormItem=y,t.FormItem=b,t.default=b},"2ade":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 32 32",className:"icon"},e),r.default.createElement("g",{id:"Group-5"},r.default.createElement("circle",{stroke:"currentColor",fill:"none",cx:16,cy:16,r:15.5}),r.default.createElement("g",{transform:"translate(5.647059, 7.529412)",fill:"currentColor",fillRule:"nonzero"},r.default.createElement("polygon",{id:"Shape",points:"21.1764706 2.76408669 18.7058824 0.26749226 7.41176471 11.6804954 2.47058824 6.50897833 0 9.18390093 4.94117647 14.1770898 4.94117647 14.1770898 7.41176471 16.6736842 9.88235294 14.1770898 9.88235294 14.1770898"}))))};t.default=o},"2b0e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaEditorItemArray=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d369"),i=n("c264"),l=n("eb4c"),s=n("9e80"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={collapsed:!1},t}return(0,a.__extends)(t,e),t.prototype.toggleCollapsed=function(){this.setState({collapsed:!this.state.collapsed})},t.prototype.handleItemsChange=function(e){var t,n,r=(0,a.__assign)((0,a.__assign)({},this.props.value),{type:"array",items:e});null===(n=(t=this.props).onChange)||void 0===n||n.call(t,r)},t.prototype.renderItems=function(){var e,t=this.props,n=t.classnames,a=t.value,o=t.renderExtraProps,i=t.renderModalProps,l=t.locale,u=t.translate,d=t.classPrefix,c=t.disabled,p=t.showInfo,f=t.types,m=t.onTypeChange,h=t.enableAdvancedSetting,v=(null===a||void 0===a?void 0:a.items)||{type:"string"};return r.default.createElement("div",{className:n("SchemaEditorProps SchemaEditorArrayProps",{"SchemaEditorProps--depth":!1!==p})},r.default.createElement(s.SchemaEditorItem,{types:f,onTypeChange:m,prefix:r.default.createElement("div",{className:n("SchemaEditor-itemsLabel")},u("JSONSchema.array_items")),value:v,onChange:this.handleItemsChange,renderExtraProps:o,renderModalProps:i,locale:l,translate:u,classnames:n,classPrefix:d,disabled:c||!!(null===(e=v)||void 0===e?void 0:e.$ref),enableAdvancedSetting:h}))},t.prototype.render=function(){var e=this.props,t=e.classnames,n=e.showInfo;e.disabled;return r.default.createElement("div",{className:t("SchemaEditorItem SchemaEditorArray")},!1!==n?r.default.createElement(r.default.Fragment,null,r.default.createElement("a",{className:t("SchemaEditor-caret",{"is-collapsed":this.state.collapsed}),onClick:this.toggleCollapsed},r.default.createElement(i.Icon,{icon:"caret",className:"icon"})),this.renderCommon()):null,this.state.collapsed?null:this.renderItems())},(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"toggleCollapsed",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleItemsChange",null),t}(l.SchemaEditorItemCommon);t.SchemaEditorItemArray=u},"2b46":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HocScoped=t.ScopedContext=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("2769")),i=(0,a.__importDefault)(n("da6a")),l=n("7e49"),s=n("d369");function u(e,t,n){var r=[],i={parent:t,registerComponent:function(n){if(n.props.$path===e&&t)return t.registerComponent(n);~r.indexOf(n)||r.push(n)},unRegisterComponent:function(n){if(n.props.$path===e&&t)return t.unRegisterComponent(n);var a=r.indexOf(n);~a&&r.splice(a,1)},getComponentByName:function(e){if(~e.indexOf(".")){var n=e.split("."),a=n.length;return n.reduce((function(e,t,n){if(e&&e.getComponentByName){var r=e.getComponentByName(t);return r&&nr.length&&e.children.splice(r.length,e.children.length-r.length);var i=0,l=e.children.length;while(o.length){var s=(0,a.__assign)((0,a.__assign)({},o.shift()),{parentId:e.id});if(i10:e.columnsTogglable}function n(){return-1!==e.columns.findIndex((function(e){return!e.toggled}))}function r(){return e.columns.filter((function(t){return(0,l.isVisible)(t.pristine,e.data)&&!1!==t.toggable}))}function o(){return r().filter((function(e){return e.toggled}))}function i(t){return t?t.filter((function(t){return t&&(0,l.isVisible)(t.pristine,(0,l.hasVisibleExpression)(t.pristine)?e.data:{})&&(t.toggled||!t.toggable)})).map((function(e){return(0,a.__assign)((0,a.__assign)({},e.pristine),{type:e.type,children:e.children?i(e.children):void 0})})):[]}function s(){return i(e.columns)}function u(){return(0,l.flattenTree)(e.rows).filter((function(e){return!e.checked}))}function d(t){return(0,l.createObject)(t,{items:e.rows.map((function(e){return e.data})),selectedItems:e.selectedRows.map((function(e){return e.data})),unSelectedItems:u().map((function(e){return e.data}))})}function c(t){return!!~e.selectedRows.indexOf(t)}return{get toggable(){return t()},get columnsData(){return e.columns},get toggableColumns(){return r()},get filteredColumns(){return s()},get activeToggaleColumns(){return o()},get dataSource(){return e.rows.map((function(e){return e.data}))},get currentSelectedRowKeys(){return e.selectedRowKeys.map((function(e){return e}))},get currentExpandedKeys(){return e.expandedRowKeys.map((function(e){return e}))},hasColumnHidden:function(){return n()},getData:d,isSelected:c}})).actions((function(e){function n(e){if(e&&Array.isArray(e)){var t=e.filter((function(e){return e})).concat();return t=t.map((function(e,t){return(0,a.__assign)((0,a.__assign)({},e),{index:t,type:e.type||"plain",pristine:e,toggled:!1!==e.toggled,breakpoint:e.breakpoint,children:e.children?n(e.children):[]})})),t}}function i(t){void 0!==t.columnsTogglable&&(e.columnsTogglable=t.columnsTogglable),"string"===typeof t.orderBy&&c(t.orderBy,"desc"===t.order?"desc":"asc"),t.columns&&Array.isArray(t.columns)&&e.columns.replace(n(t.columns))}function u(){var t=location.pathname+e.path+e.toggableColumns.map((function(e){return e.key||e.index})).join("-");localStorage.setItem(t,JSON.stringify(e.activeToggaleColumns.map((function(e){return e.index}))))}function c(t,n){e.orderBy=t,e.order=n}function p(t,n,r,o,i){void 0===r&&(r="pageNo"),void 0===o&&(o="pageSize"),void 0===i&&(i=!1);var s=e.query;e.query=i?(0,a.__assign)({},t):(0,a.__assign)((0,a.__assign)({},e.query),t),e.query[r||"pageNo"]&&(e.pageNo=parseInt(e.query[r||"pageNo"],10)),e.query[o||"pageSize"]&&(e.pageSize=parseInt(e.query[o||"pageSize"],10)),n&&(0,l.isObjectShallowModified)(s,e.query,!1)&&setTimeout(n.bind(null,"?".concat((0,l.qsstringify)(e.query))),4)}function f(t,n,a){(0,l.eachTree)(t,(function(t){~n.indexOf(t.pristine[a||"key"])||(0,o.default)(n,(function(e){return e&&e==t.pristine[a||"key"]}))?(e.selectedRows.push(t.id),e.selectedRowKeys.push(t.pristine[a||"key"])):t.children&&f(t.children,n,a)}))}function m(t,n){e.selectedRows.clear(),e.selectedRowKeys.clear(),f(e.rows,t,n)}function h(t){var n=[];(0,l.eachTree)(e.rows,(function(e){return n.push(e.pristine[t||"key"])})),f(e.rows,n,t)}function v(t,n){e.expandedRowKeys.clear(),(0,l.eachTree)(e.rows,(function(a){(~t.indexOf(a.pristine[n||"key"])||(0,o.default)(t,(function(e){return e&&e==a.pristine[n||"key"]})))&&e.expandedRowKeys.push(a.pristine[n||"key"])}))}function g(n,a){if(!1!==a){var r=n.concat();e.rows.length>n.length&&e.rows.splice(n.length,e.rows.length-n.length);var o=0,i=e.rows.length;while(r.length){var l=r.shift();if(o1)for(var f=0,v=0,g=d;vt&&(e=e<2*t?t+(e-t)/2:1.5*t+(e-2*t)/4),Math.round(e)},b=function(e,t){var n=d,a="normal";a=t?"loading":0===e?"normal":e0&&b(y(f.deltaY))),!1},x=function(t){t.stopPropagation(),g()&&h.offsetY>0&&("loosing"===h.status?(c?b(d,!0):b(0),e.onRefresh&&e.onRefresh()):b(0))},w={transform:"translate3d(0, ".concat(h.offsetY,"px, 0)"),touchAction:"none"},S=function(t){return"normal"===t?"":e["".concat(t,"Text")]||p["".concat(t,"Text")]};return r.default.createElement("div",{className:n("PullRefresh"),onTouchStart:C,onTouchMove:E,onTouchEnd:x,onTouchCancel:x},r.default.createElement("div",{className:n("PullRefresh-wrap"),style:w},r.default.createElement("div",{className:n("PullRefresh-header")},"loading"===h.status&&r.default.createElement(s.Icon,{icon:"loading-outline",className:"icon loading-icon"}),S(h.status)),o))}));c.defaultProps=u,t.default=(0,o.themeable)(c)},3265:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 513 1021",className:"icon"},e),r.default.createElement("g",{id:"right-arrow",fill:"currentColor",fillRule:"nonzero"},r.default.createElement("path",{d:"M56.559054,1013.77369 L512.908116,512.684524 L56.559054,12.234501 C49.4114678,2.93455912 37.6664238,-1.59188176 26.1262324,0.505948246 C14.586041,2.60377825 5.18544409,10.9741727 1.76815516,22.1946471 C-1.64913377,33.4151214 1.48980228,45.6045351 9.901516,53.778884 L424.706197,512.684524 L12.458094,969.672731 C2.45820596,982.551498 4.01297737,1000.9483 16.0324422,1011.96615 C28.0519071,1022.98399 46.5142346,1022.93619 58.476487,1011.85626 L56.559054,1013.77369 Z",id:"\\u8DEF\\u5F84"})))};t.default=o},"32e1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localeable=t.LocaleContext=t.setDefaultLocale=t.getDefaultLocale=t.makeTranslator=t.register=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("da6a")),i=n("7e49"),l="zh-CN",s={};function u(e,t){s[e]=t}t.register=u;var d={};function c(e,t){return e.replace(/(\\)?\{\{([\s\S]+?)\}\}/g,(function(e,n,a){return n?e.substring(1):(0,i.resolveVariable)(a,t||{})}))}function p(e){if(e&&d[e])return d[e];var t=function(t){for(var n=[],r=1;r=o.offsetTop?this.fireSelect(o.key):a.forEach((function(e,n){i>=e.offsetTop&&i0&&(null===o||void 0===o||o(u)),null===a||void 0===a||a(u)},t.prototype.selectAll=function(){var e=this.props,t=e.options,n=e.option2value,a=e.onChange,r=(0,c.flattenTree)(t).filter((function(e,t,n){return!e.disabled&&void 0!==e.value&&n.indexOf(e)===t})),o=n?r.map((function(e){return n(e)})):r;null===a||void 0===a||a(o)},t.prototype.clearAll=function(){var e=this.props.onChange;e&&e([])},t.prototype.handleSearchKeyDown=function(e){"Enter"===e.key&&e.preventDefault()},t.prototype.handleSearch=function(e){var t=this;this.setState({inputValue:e},(function(){e?(t.cancelSearch&&t.cancelSearch(),t.lazySearch()):t.handleSeachCancel()}))},t.prototype.handleSeachCancel=function(){this.setState({inputValue:"",searchResult:null})},t.prototype.getFlattenArr=function(e){return(0,c.flattenTree)(e).filter((function(e,t,n){return!e.disabled&&void 0!==e.value&&n.indexOf(e)===t}))},t.prototype.handleSearchTreeChange=function(e,t){var n=this.props,a=n.onChange,r=n.value,i=this.getFlattenArr(t),l=(0,o.intersectionWith)(i,e,(function(e,t){return e.value===t.value})),s=(0,o.differenceWith)(i,e,(function(e,t){return e.value===t.value})),u=[];Array.isArray(r)&&r.forEach((function(e){s.find((function(t){return t.value===e.value}))||u.push(e)})),l.forEach((function(e){u.find((function(t){return t.value===e.value}))||u.push(e)})),a&&a(u)},t.prototype.renderSelect=function(e){var t=this,n=e.selectRender,i=e.selectMode,l=e.classnames,s=e.selectTitle,u=e.onSearch,d=e.disabled,c=e.options,m=e.statistics,v=e.translate,g=e.searchPlaceholder,y=void 0===g?v("Transfer.searchKeyword"):g;if(n)return n((0,a.__assign)((0,a.__assign)({},e),{onSearch:this.handleSearch,onSearchCancel:this.handleSeachCancel,searchResult:this.state.searchResult}));var b=!1,_=!1;return _=this.availableOptions.every((function(e){return t.valueArray.indexOf(e)>-1})),b=this.availableOptions.some((function(e){return t.valueArray.indexOf(e)>-1})),r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:l("Transfer-title","table"===i?"Transfer-title--light":"")},r.default.createElement("span",null,(0,o.includes)(["list","tree"],i)?r.default.createElement(f.default,{checked:b,partial:b&&!_,onChange:e.onToggleAll||this.toggleAll,size:"sm"}):null,v(s||"Transfer.available"),!1!==m?r.default.createElement("span",null,"(",this.availableOptions.length-this.valueArray.length,"/",this.availableOptions.length,")"):null),(0,o.includes)(["chained","associated"],i)?r.default.createElement("a",{onClick:e.onToggleAll||this.toggleAll,className:l("Transfer-checkAll",d||!c.length?"is-disabled":"")},v("Select.checkAll")):null),u?r.default.createElement("div",{className:l("Transfer-search")},r.default.createElement(p.default,{value:this.state.inputValue,onChange:this.handleSearch,clearable:!1,onKeyDown:this.handleSearchKeyDown,placeholder:y},null!==this.state.searchResult?r.default.createElement("a",{onClick:this.handleSeachCancel},r.default.createElement(h.Icon,{icon:"close",className:"icon"})):r.default.createElement(h.Icon,{icon:"search",className:"icon"}))):null,null!==this.state.searchResult?this.renderSearchResult(e):this.renderOptions(e))},t.prototype.renderSearchResult=function(e){var t=this,n=e.searchResultMode,a=e.selectMode,o=e.noResultsText,i=e.searchResultColumns,l=e.columns,s=e.classnames,u=e.value,c=e.disabled,p=e.onChange,f=e.option2value,h=e.optionItemRender,v=e.cellRender,g=e.multiple,_=this.state,C=_.isTreeDeferLoad,E=_.searchResult,x=null!==E&&void 0!==E?E:[],w=n||a,S=i||l;return"table"===w?r.default.createElement(d.default,{placeholder:o,className:s("Transfer-selection"),columns:S,options:x,value:u,disabled:c,onChange:p,option2value:f,cellRender:v,itemRender:h,multiple:g}):"tree"===w?r.default.createElement(m.default,{onRef:this.domRef,placeholder:o,className:s("Transfer-selection"),options:x,value:u,disabled:c,onChange:function(e){return t.handleSearchTreeChange(e,x)},joinValues:!1,showIcon:!1,multiple:!0,cascade:!0,onlyChildren:!C,itemRender:h}):"chained"===w?r.default.createElement(b.default,{placeholder:o,className:s("Transfer-selection"),options:x,value:u,disabled:c,onChange:p,option2value:f,itemRender:h,multiple:g}):r.default.createElement(y.default,{placeholder:o,className:s("Transfer-selection"),options:x,value:u,disabled:c,onChange:p,option2value:f,itemRender:h,multiple:g})},t.prototype.renderOptions=function(e){var t=e.selectMode,n=e.columns,a=e.options,o=e.value,i=e.disabled,l=e.onChange,s=e.option2value,u=e.classnames,c=e.onDeferLoad,p=e.leftOptions,f=e.leftMode,h=e.rightMode,g=e.cellRender,_=e.leftDefaultValue,C=e.optionItemRender,E=e.multiple,x=e.noResultsText;return"table"===t?r.default.createElement(d.default,{className:u("Transfer-selection"),columns:n,options:a||[],value:o,disabled:i,onChange:l,option2value:s,onDeferLoad:c,cellRender:g,multiple:E}):"tree"===t?r.default.createElement(m.default,{onRef:this.domRef,placeholder:x,className:u("Transfer-selection"),options:a,value:o,onChange:l,onlyChildren:!this.state.isTreeDeferLoad,itemRender:C,onDeferLoad:c,joinValues:!1,showIcon:!1,multiple:!0,cascade:!0}):"chained"===t?r.default.createElement(b.default,{className:u("Transfer-selection"),options:a||[],value:o,disabled:i,onChange:l,option2value:s,onDeferLoad:c,itemRender:C,multiple:E}):"associated"===t?r.default.createElement(v.default,{className:u("Transfer-selection"),options:a||[],value:o,disabled:i,onChange:l,option2value:s,onDeferLoad:c,columns:n,leftOptions:p||[],leftMode:f,rightMode:h,leftDefaultValue:_,itemRender:C,multiple:E}):r.default.createElement(y.default,{className:u("Transfer-selection"),options:a||[],value:o,disabled:i,onChange:l,option2value:s,onDeferLoad:c,itemRender:C,multiple:E})},t.prototype.renderResult=function(){var e=this.props,t=e.columns,n=e.options,a=e.disabled,o=e.option2value,i=e.classnames,l=e.cellRender,s=e.onChange,d=e.value,c=e.resultItemRender,p=e.resultSearchable,f=e.resultSearchPlaceholder,m=e.onResultSearch,h=e.sortable,v=e.translate,g=this.state,y=g.resultSelectMode,b=g.isTreeDeferLoad,E=!b&&p,x=f||v("Transfer.selectFromLeft");return"table"===y?r.default.createElement(_.default,{classnames:i,columns:t,options:n||[],value:d,disabled:a,option2value:o,cellRender:l,onChange:s,multiple:!1,searchable:E,placeholder:x,onSearch:m}):"tree"===y?r.default.createElement(C.default,{classnames:i,options:n,valueField:"value",value:d||[],onChange:s,itemRender:c,searchable:E,placeholder:x,onSearch:m}):r.default.createElement(u.default,{className:i("Transfer-value"),sortable:h,disabled:a,value:d,onChange:s,placeholder:x,itemRender:c,columns:t,options:n||[],option2value:o,cellRender:l,searchable:E,onSearch:m})},t.prototype.render=function(){var e=this.props,t=e.inline,n=e.classnames,a=e.className,o=e.value,i=e.resultTitle,s=e.options,u=e.option2value,d=e.disabled,p=e.statistics,f=e.showArrow,m=e.resultListModeFollowSelect,v=e.selectMode,g=void 0===v?"list":v,y=e.translate;this.valueArray=l.BaseSelection.value2array(o,s,u),this.availableOptions=(0,c.flattenTree)(s).filter((function(e,t,n){return!e.disabled&&void 0!==e.value&&n.indexOf(e)===t}));var b=m&&"table"===g;return r.default.createElement("div",{className:n("Transfer",a,t?"Transfer--inline":"")},r.default.createElement("div",{className:n("Transfer-select")},this.renderSelect(this.props)),r.default.createElement("div",{className:n("Transfer-mid")},f?r.default.createElement("div",{className:n("Transfer-arrow")},r.default.createElement(h.Icon,{icon:"right-arrow",className:"icon"})):null),r.default.createElement("div",{className:n("Transfer-result")},r.default.createElement("div",{className:n("Transfer-title",b?"Transfer-table-title":"","table"===g?"Transfer-title--light":"")},r.default.createElement("span",null,y(i||"Transfer.selectd"),!1!==p?r.default.createElement("span",null,"(",this.valueArray.length,")"):null),r.default.createElement("a",{onClick:this.clearAll,className:n("Transfer-clearAll",d||!this.valueArray.length?"is-disabled":"")},y("clear"))),this.renderResult()))},t.defaultProps={multiple:!0,resultListModeFollowSelect:!1,selectMode:"list"},(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"domRef",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"toggleAll",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"clearAll",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.KeyboardEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleSearchKeyDown",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleSearch",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleSeachCancel",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(i="undefined"!==typeof Array&&Array)?i:Object,"function"===typeof(s="undefined"!==typeof Array&&Array)?s:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleSearchTreeChange",null),t}(r.default.Component);t.Transfer=E,t.default=(0,i.themeable)((0,g.localeable)((0,s.uncontrollable)(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t}(E),{value:"onChange"})))},"37d4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoopAction=void 0;var a=n("9ab4"),r=n("d369"),o=n("0d19"),i=n("7e49"),l=function(){function e(){}return e.prototype.run=function(e,t,n,l){var s,u;return(0,a.__awaiter)(this,void 0,void 0,(function(){var d,c,p,f,m,h,v,g,y;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return d=null===(s=e.args)||void 0===s?void 0:s.loopName,"string"!==typeof d?(console.error("loopName 必须是字符串类型"),[2]):(c=(0,i.resolveVariable)(d,l)||[],c?[3,1]:(console.error("没有找到数据 ".concat(d)),[3,10]));case 1:return Array.isArray(c)?[3,2]:(console.error("".concat(d," 数据不是数组")),[3,10]);case 2:if(!(null===(u=e.children)||void 0===u?void 0:u.length))return[3,10];p=n.data,f=0,m=c,a.label=3;case 3:if(!(f1?o:null,colSpan:i&&i>1?i:null,className:v("Table-cell",d,(e={},e[v("Table-cell-fix-".concat(n))]=n,e["text-".concat(null===c||void 0===c?void 0:c.align)]=null===c||void 0===c?void 0:c.align,e)),style:n?(0,a.__assign)({position:"sticky",zIndex:l},p):(0,a.__assign)({},p),"data-group-id":f||null,"data-depth":m||null},u)},t.defaultProps={fixed:"",wrapperComponent:"td",rowSpan:null,colSpan:null},t}(r.default.Component);t.BodyCell=s,t.default=(0,o.themeable)((0,i.localeable)(s))},"3a3e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeRangeControlRenderer=t.DateTimeRangeControlRenderer=t.DateRangeControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("2ab5"),i=(0,a.__importDefault)(n("4d26")),l=n("7e49");n("5c3a");var s=a.__importStar(n("a64a")),u=n("d369"),d=function(e){function t(t){var n=e.call(this,t)||this,a=t.defaultValue,r=t.setPrinstineValue,o=t.delimiter,i=t.format,u=t.data,d=t.value,c=t.joinValues,p=t.utc;if(a&&d===a){var f="string"===typeof a?a.split(o):a;r(s.DateRangePicker.formatValue({startDate:(0,l.filterDate)(f[0],u,i),endDate:(0,l.filterDate)(f[1],u,i)},i,c,o,p))}return n}var n;return(0,a.__extends)(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.defaultValue,a=t.delimiter,r=t.joinValues,o=t.setPrinstineValue,i=t.data,u=t.utc,d=t.format;if(e.defaultValue!==n){var c="string"===typeof n?n.split(a):n;o(c?s.DateRangePicker.formatValue({startDate:(0,l.filterDate)(c[0],i,d),endDate:(0,l.filterDate)(c[1],i,d)},d,r,a,u):void 0)}},t.prototype.getRef=function(e){this.dateRef=e},t.prototype.dispatchEvent=function(e){var t=this.props,n=t.dispatchEvent,a=t.data,r=t.value;n(e,(0,u.createObject)(a,{value:r}))},t.prototype.doAction=function(e,t,n){var a,r,o=this.props.resetValue;"clear"!==e.actionType?"reset"===e.actionType&&o&&(null===(r=this.dateRef)||void 0===r||r.reset()):null===(a=this.dateRef)||void 0===a||a.clear()},t.prototype.handleChange=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o;return(0,a.__generator)(this,(function(a){return t=this.props,n=t.dispatchEvent,r=t.data,o=n("change",(0,u.createObject)(r,{value:e})),(null===o||void 0===o?void 0:o.prevented)||this.props.onChange(e),[2]}))}))},t.prototype.render=function(){var e,t=this,n=this.props,o=n.className,d=n.classPrefix,c=(n.defaultValue,n.defaultData,n.minDate),p=n.maxDate,f=n.minDuration,m=n.maxDuration,h=n.data,v=n.format,g=n.env,y=n.useMobileUI,b=(0,a.__rest)(n,["className","classPrefix","defaultValue","defaultData","minDate","maxDate","minDuration","maxDuration","data","format","env","useMobileUI"]),_=y&&(0,u.isMobile)(),C=null===(e=this.props)||void 0===e?void 0:e.type;return r.default.createElement("div",{className:(0,i.default)("".concat(d,"DateRangeControl"),{"is-date":/date-/.test(C),"is-datetime":/datetime-/.test(C)},o)},r.default.createElement(s.default,(0,a.__assign)({},b,{useMobileUI:y,classPrefix:d,popOverContainer:_&&g&&g.getModalContainer?g.getModalContainer:_?void 0:b.popOverContainer,onRef:this.getRef,data:h,format:v,minDate:c?(0,l.filterDate)(c,h,v):void 0,maxDate:p?(0,l.filterDate)(p,h,v):void 0,minDuration:f?(0,l.parseDuration)(f):void 0,maxDuration:m?(0,l.parseDuration)(m):void 0,onChange:this.handleChange,onFocus:function(){return t.dispatchEvent("focus")},onBlur:function(){return t.dispatchEvent("blur")}})))},t.defaultProps={format:"X",joinValues:!0,delimiter:","},(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof s.DateRangePicker&&s.DateRangePicker)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getRef",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"dispatchEvent",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleChange",null),t}(r.default.Component);t.default=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.defaultProps=(0,a.__assign)((0,a.__assign)({},d.defaultProps),{timeFormat:""}),t=(0,a.__decorate)([(0,o.FormItem)({type:"input-date-range"})],t),t}(d);t.DateRangeControlRenderer=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.defaultProps=(0,a.__assign)((0,a.__assign)({},d.defaultProps),{timeFormat:"HH:mm",inputFormat:"YYYY-MM-DD HH:mm"}),t=(0,a.__decorate)([(0,o.FormItem)({type:"input-datetime-range",sizeMutable:!1})],t),t}(d);t.DateTimeRangeControlRenderer=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.defaultProps=(0,a.__assign)((0,a.__assign)({},d.defaultProps),{format:"HH:mm",timeFormat:"HH:mm",inputFormat:"HH:mm",viewMode:"time",ranges:""}),t=(0,a.__decorate)([(0,o.FormItem)({type:"input-time-range",sizeMutable:!1})],t),t}(d);t.TimeRangeControlRenderer=f},"3ad8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatusFieldRenderer=t.StatusField=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=n("a97c"),l=n("c264"),s=n("d369"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.placeholder,a=e.map,o=e.labelMap,u=e.classnames,d=e.data,c=(0,s.getPropValue)(this.props),p=r.default.createElement("span",{className:"text-muted",key:"status-value"},n),f="";if(void 0!==c&&""!==c&&a){"boolean"===typeof c?c=c?1:0:/^\d+$/.test(c)&&(c=parseInt(c,10)||0),f="StatusField--".concat(c);var m=a[c]||"",h="";m=m.replace(/\bsvg-([^\s|$]+)\b/g,(function(e,t){return h=t,"icon"})),h?p=r.default.createElement(l.Icon,{icon:h,className:u("Status-icon icon",m),key:"icon"}):m&&(p=r.default.createElement("i",{className:u("Status-icon",m),key:"icon"})),o&&o[c]&&(p=[p,r.default.createElement("span",{className:u("StatusField-label"),key:"label"},(0,i.filter)(o[c],d))])}return r.default.createElement("span",{className:u("StatusField",f,t)},p)},t.defaultProps={placeholder:"-",map:{0:"svg-fail",1:"svg-success",success:"svg-success",pending:"rolling",fail:"svg-fail",queue:"svg-warning",schedule:"svg-schedule"},labelMap:{success:"成功",pending:"运行中",fail:"失败",queue:"排队中",schedule:"调度中"}},t}(r.default.Component);t.StatusField=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"status"})],t),t}(u);t.StatusFieldRenderer=d},"3b34":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("2ab5"),i=(0,a.__importDefault)(n("4d26")),l=n("a97c"),s=(0,a.__importDefault)(n("f7cf")),u=n("d369"),d=a.__importStar(n("79ae")),c=function(e){function t(t){var n=e.call(this,t)||this;n.handleChange=n.handleChange.bind(n),n.handleChangeUnit=n.handleChangeUnit.bind(n);var a=n.getUnit(),r=(0,d.normalizeOptions)(t.unitOptions);return n.state={unit:a,unitOptions:r},n}return(0,a.__extends)(t,e),t.prototype.doAction=function(e,t){var n=null===e||void 0===e?void 0:e.actionType,a=this.props,r=a.resetValue,o=a.onChange;if("clear"===n)null===o||void 0===o||o("");else if("reset"===n){var i=this.getValue(null!==r&&void 0!==r?r:"");null===o||void 0===o||o(i)}},t.prototype.getUnit=function(){var e=this.props;if(e.unitOptions&&e.unitOptions.length){var t=(0,d.normalizeOptions)(e.unitOptions).map((function(e){return e.value}));if(e.value&&"string"===typeof e.value){var n=t[0];t.sort((function(e,t){return t.length-e.length}));for(var a=0,r=t;a-1;if(A){var K=void 0;if(M&&Array.isArray(M)){var Y=0;K=M.map((function(e){var t=e.className;return!t&&L&&(t=L[Y],Y++,Y>=L.length&&(Y=0)),(0,a.__assign)((0,a.__assign)({},e),{className:t})}))}return r.default.createElement("div",{className:o("DateCalendar",{"is-disabled":b,ScheduleCalendar:K,"ScheduleCalendar-large":j},d)},r.default.createElement(c.default,{value:H,onChange:this.handleChange,requiredConfirm:!1,dateFormat:C,timeFormat:E,isValidDate:this.checkIsValidDate,viewMode:x,timeConstraints:w,input:!1,onClose:this.close,locale:N,minDate:I,maxDate:F,schedules:K,largeMode:j,onScheduleClick:B,embed:A,useMobileUI:R}))}return r.default.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:o("DatePicker",(e={"is-disabled":b,"is-focused":!b&&this.state.isFocused},e["DatePicker--border".concat((0,f.ucFirst)(P))]=P,e["is-mobile"]=R&&(0,f.isMobile)(),e),d),ref:this.domRef,onClick:this.handleClick},r.default.createElement(h.default,{className:o("DatePicker-input"),onChange:this.inputChange,ref:this.inputRef,placeholder:z(g),autoComplete:"off",value:this.state.inputValue,disabled:b}),O&&!b&&y(v,T)?r.default.createElement("a",{className:o("DatePicker-clear"),onClick:this.clearValue},r.default.createElement(i.Icon,{icon:"input-clear",className:"icon"})):null,r.default.createElement("a",{className:o("DatePicker-toggler")},r.default.createElement(i.Icon,{icon:"time"===x?"clock":"date",className:"icon"})),R&&(0,f.isMobile)()||!U?null:r.default.createElement(u.default,{target:this.getTarget,container:S||this.getParent,rootClose:!1,placement:D,show:!0},r.default.createElement(l.default,{classPrefix:n,className:o("DatePicker-popover",p),onHide:this.close,overlay:!0,onClick:this.handlePopOverClick},this.renderShortCuts(k),r.default.createElement(c.default,{value:H,onChange:this.handleChange,requiredConfirm:"time"===x,dateFormat:C,inputFormat:_,timeFormat:E,isValidDate:this.checkIsValidDate,viewMode:x,timeConstraints:w,input:!1,onClose:this.close,locale:N,minDate:I,maxDate:F,useMobileUI:R}))),R&&(0,f.isMobile)()?"calendar"===V&&q?r.default.createElement(s.default,{isShow:U,className:o("".concat(n,"CalendarMobile-pop")),onHide:this.close,header:$},W):r.default.createElement(s.default,{className:o("".concat(n,"DatePicker-popup DatePicker-mobile")),container:S,isShow:U,showClose:!1,onHide:this.handleClick},r.default.createElement(c.default,{value:H,onChange:this.handleChange,requiredConfirm:!1,dateFormat:C,inputFormat:_,timeFormat:E,isValidDate:this.checkIsValidDate,viewMode:x,timeConstraints:w,input:!1,onClose:this.close,locale:N,minDate:I,maxDate:F,useMobileUI:R})):null)},t.defaultProps={viewMode:"days",shortcuts:"",closeOnSelect:!0,overlayPlacement:"auto",scheduleClassNames:["bg-warning","bg-danger","bg-success","bg-info","bg-secondary"]},t}(r.default.Component);t.DatePicker=b,t.default=(0,d.themeable)((0,p.localeable)(b))},"3e35":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroupControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d55b"),i=n("d369"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return(0,a.__extends)(t,e),t.prototype.doAction=function(e,t,n){var a=this.props,r=a.resetValue,o=a.onChange,i=null===e||void 0===e?void 0:e.actionType;"clear"===i?o(""):"reset"===i&&o(null!==r&&void 0!==r?r:"")},t.prototype.handleToggle=function(e){var t=this.props,n=t.onToggle;t.multiple,t.autoFill,t.onBulkChange;n(e)},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(e){var t,n=this;void 0===e&&(e=this.props);var o=e.render,l=e.classPrefix,s=e.classnames,u=e.className,d=e.disabled,c=e.options,p=(e.value,e.labelField),f=e.placeholder,m=e.btnClassName,h=e.btnActiveClassName,v=e.selectedOptions,g=e.buttons,y=e.size,b=e.block,_=e.vertical,C=e.tiled,E=e.translate,x=[],w=e.btnLevel,S=e.btnActiveLevel;return m&&(w=(0,i.getLevelFromClassName)(m)),h&&(S=(0,i.getLevelFromClassName)(h)),c&&c.length?x=c.map((function(e,t){var a=!!~v.indexOf(e);return o("option/".concat(t),{label:e[p||"label"],icon:e.icon,size:e.size||y,type:"button",block:b},{key:t,active:a,level:(a?S:"")||e.level||w,className:s(e.className,m),disabled:e.disabled||d,onClick:function(t){d||(n.handleToggle(e),t.preventDefault())}})})):Array.isArray(g)&&(x=g.map((function(e,t){return o("button/".concat(t),(0,a.__assign)({size:y,block:b,activeLevel:S},e),{key:t,className:s(e.className,m)})}))),r.default.createElement("div",{className:s("ButtonGroup",(t={"ButtonGroup--block":b,"ButtonGroup--vertical":_,"ButtonGroup--tiled":C},t["ButtonGroup--".concat(y)]=y,t),u)},x.length?x:r.default.createElement("span",{className:"".concat(l,"ButtonGroup-placeholder")},E(f)))},t.defaultProps={btnLevel:"default",btnActiveLevel:"primary",clearable:!1,vertical:!1},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof o.Option&&o.Option)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleToggle",null),t}(r.default.Component);t.default=l;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.OptionsControl)({type:"button-group-select",sizeMutable:!1,strictMode:!1})],t),t}(l);t.ButtonGroupControlRenderer=s},"3e73":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("32e1"),i=n("d77e"),l=n("b1f4");function s(e){var t=e.schema||{type:"object",properties:{}};return r.default.createElement(l.InputJSONSchemaItem,(0,a.__assign)({},e,{schema:t}))}t.default=(0,i.themeable)((0,o.localeable)(s))},"3ee9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormulaPlugin=t.editorFactory=void 0;var a=n("d369");function r(e,t,n){return l(t),t(e,{value:n.value||"",autofocus:!0,mode:n.evalMode?"text/formula":"text/formula-template"})}t.editorFactory=r;var o=function(){function e(e,t,n){this.editor=e,this.cm=t,this.getProps=n,this.autoMarkText()}return e.prototype.autoMarkText=function(){var e=this.getProps(),t=(e.functions,e.variables),n=e.value;n&&this.autoMark(t)},e.prototype.computedBracesPosition=function(e){var t=[];return null===e||void 0===e||e.replace(/\$\{/g,(function(n,a){if(n)for(var r=e.slice(a+n.length).split(""),o=["${"],i=0;ii.begin&&a<=i.end){r=!0;break}}return r},e.prototype.insertBraces=function(e,t){var n=this.editor.getValue(),a=this.computedBracesPosition(n);this.checkStrIsInBraces([e.ch,t.ch],a)||(this.editor.setCursor({line:e.line,ch:e.ch}),this.editor.replaceSelection("${"),this.editor.setCursor({line:t.line,ch:t.ch+2}),this.editor.replaceSelection("}"))},e.prototype.insertContent=function(e,t){var n=this.editor.getCursor(),a=this.getProps().evalMode;if("variable"===t){this.editor.replaceSelection(e.key);var r=this.editor.getCursor();this.markText(n,r,e.name,"cm-field"),!a&&this.insertBraces(n,r)}else if("func"===t){this.editor.replaceSelection("".concat(e,"()"));r=this.editor.getCursor();this.markText(n,{line:r.line,ch:r.ch-2},e,"cm-func"),this.editor.setCursor({line:r.line,ch:r.ch-1}),a||(this.insertBraces(n,r),this.editor.setCursor({line:r.line,ch:r.ch+1}))}else"string"===typeof e&&this.editor.replaceSelection(e);this.editor.focus()},e.prototype.markText=function(e,t,n,a){void 0===a&&(a="cm-func");var r=document.createElement("span");r.className=a,r.innerText=n,this.editor.markText(e,t,{atomic:!0,replacedWith:r})},e.prototype.autoMark=function(e){var t=this;if(Array.isArray(e)&&e.length){var n={};(0,a.eachTree)(e,(function(e){if(e.value){var t=e.value;n[t]=e.label}}));for(var r=Object.keys(n).sort((function(e,t){return t.length-e.length})),o=this.editor,i=o.lineCount(),l=function(e){var a=o.getLine(e);a.replace(/([A-Z]+)\s*\(/g,(function(n,a,r){return t.markText({line:e,ch:r},{line:e,ch:r+a.length},a,"cm-func"),n})),r.forEach((function(r){var o=0,i=-1;while(~(i=a.indexOf(r,o)))t.markText({line:e,ch:i},{line:e,ch:i+r.length},n[r],"cm-field"),o=i+r.length}))},s=0;s0,prevIndex:g-1,index:g})}else{if("ajax"===t.actionType){d.setCurrentAction(t);var b=n,_=t.redirect&&(0,m.filter)(t.redirect,b);return _&&t.blank&&f.jumpTo(_,t),d.saveRemote(t.api,b,{successMessage:t.messages&&t.messages.success||c&&c.saveSuccess,errorMessage:t.messages&&t.messages.failed||c&&c.saveFailed}).then((function(e){return(0,a.__awaiter)(i,void 0,void 0,(function(){var r,o;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return r=(0,l.createObject)(n,e),t.feedback&&(0,l.isVisible)(t.feedback,r)?[4,this.openFeedback(t.feedback,r)]:[3,2];case 1:a.sent(),v&&clearTimeout(this.timer),a.label=2;case 2:return o=t.redirect&&(0,m.filter)(t.redirect,r),o&&!t.blank&&f.jumpTo(o,t),t.reload?this.reloadTarget(t.reload,r):!o&&this.search(void 0,void 0,!0,!0),t.close&&this.closeTarget(t.close),[2]}}))}))})).catch((function(e){if(r||t.countDown)throw e}))}if(p&&("confirm"===t.actionType||"submit"===t.actionType))return d.setCurrentAction(t),Promise.resolve({items:d.selectedItems.concat()});if(t.onClick){d.setCurrentAction(t);var C=t.onClick;"string"===typeof C&&(C=(0,h.str2function)(C,"event","props","data")),C&&C(e,this.props,n)}else u(e,t,n,r,o||this.context)}},t.prototype.handleBulkAction=function(e,t,n,r){var o=this,i=this.props,s=i.store,u=i.primaryField,d=i.onAction,c=i.messages,p=i.pageField,f=i.stopAutoRefreshWhenModalIsOpen,v=i.env;if(e.length||!1===r.requireSelected){var g=e.map((function(e){return e.hasOwnProperty(u)?e[u]:null})).filter((function(e){return e})).join(","),y=(0,l.createObject)(s.mergedData,(0,a.__assign)((0,a.__assign)({},e[0]),{rows:e,items:e,unSelectedItems:t,ids:g})),b=function(){if("dialog"===r.actionType)return o.handleAction(n,(0,a.__assign)((0,a.__assign)({},r),{__from:"bulkAction"}),y);"ajax"===r.actionType?(0,h.isEffectiveApi)(r.api,y)&&s.saveRemote(r.api,y,{successMessage:r.messages&&r.messages.success||c&&c.saveSuccess,errorMessage:r.messages&&r.messages.failed||c&&c.saveFailed}).then((function(e){return(0,a.__awaiter)(o,void 0,void 0,(function(){var t,n,o;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=(0,l.createObject)(y,e),r.feedback&&(0,l.isVisible)(r.feedback,t)?[4,this.openFeedback(r.feedback,t)]:[3,2];case 1:a.sent(),f&&clearTimeout(this.timer),a.label=2;case 2:return r.reload?this.reloadTarget(r.reload,t):this.search((o={},o[p||"page"]=1,o),void 0,!0,!0),r.close&&this.closeTarget(r.close),n=r.redirect&&(0,m.filter)(r.redirect,t),n&&v.jumpTo(n,r),[2]}}))}))})).catch((function(){return null})):d&&d(n,r,y,!1,o.context)};r.confirmText&&v.confirm?v.confirm((0,m.filter)(r.confirmText,y)).then((function(e){return e&&b()})):b()}},t.prototype.handleItemAction=function(e,t){this.doAction(e,t)},t.prototype.handleFilterInit=function(e){var t=this.props,n=t.defaultParams,r=(t.data,t.store),o=t.orderBy,i=t.orderDir,l=(0,a.__assign)({},n);o&&(l["orderBy"]=o,l["orderDir"]=i||"asc"),this.handleFilterSubmit((0,a.__assign)((0,a.__assign)((0,a.__assign)({},l),e),r.query),!1,!0,!1!==this.props.initFetch),r.setPristineQuery();var s=this.props,u=s.pickerMode,d=s.options;u&&r.updateData({items:d||[]})},t.prototype.handleFilterReset=function(e){var t=this.props,n=t.store,a=t.syncLocation,r=t.env,o=t.pageField,i=t.perPageField;n.updateQuery(n.pristineQuery,a&&r&&r.updateLocation?function(e){return r.updateLocation(e)}:void 0,o,i,!0),this.lastQuery=n.query,this.search()},t.prototype.handleFilterSubmit=function(e,t,n,r){var o;void 0===t&&(t=!0),void 0===n&&(n=!1),void 0===r&&(r=!0);var i=this.props,s=i.store,u=i.syncLocation,d=i.env,c=i.pageField,p=i.perPageField,f=i.loadDataOnceFetchOnFilter;e=u?(0,l.qsparse)((0,l.qsstringify)(e,void 0,!0)):e,s.updateQuery((0,a.__assign)((0,a.__assign)({},e),(o={},o[c||"page"]=t?1:s.page,o)),u&&d&&d.updateLocation?function(e){return d.updateLocation(e,n)}:void 0,c,p),this.lastQuery=s.query,r&&this.search(void 0,void 0,void 0,f)},t.prototype.handleBulkGo=function(e,t,n){var a=this,r=this.props.store.selectedAction,o=this.props.env;return r.confirmText?o.confirm(r.confirmText).then((function(o){return o&&a.handleBulkAction(e,t,n,r)})):this.handleBulkAction(e,t,n,r)},t.prototype.handleDialogConfirm=function(e,t,n,r){var o,i,s,u,d=this.props,c=d.store,p=d.pageField,f=d.stopAutoRefreshWhenModalIsOpen,h=d.interval,v=d.silentPolling,g=d.env;c.closeDialog(!0);var y=c.action;if(f&&h&&(this.timer=setTimeout(v?this.silentSearch:this.search,Math.max(h,1e3))),"next"===t.actionType&&"number"===typeof n.nextIndex&&c.data.items[n.nextIndex])return this.handleAction(void 0,(0,a.__assign)({},y),(0,l.createObject)((0,l.createObject)(c.data,{index:n.nextIndex}),c.data.items[n.nextIndex]));if("prev"===t.actionType&&"number"===typeof n.prevIndex&&c.data.items[n.prevIndex])return this.handleAction(void 0,(0,a.__assign)({},y),(0,l.createObject)((0,l.createObject)(c.data,{index:n.prevIndex}),c.data.items[n.prevIndex]));if(e.length){var b=e[0];n=(0,l.createObject)(n,b);var _=r[0];if(_&&"form"===_.props.type)if(b&&b.__saved){var C=null!==(i=t.reload)&&void 0!==i?i:y.reload;C||this.search(y.__from?(o={},o[p||"page"]=1,o):void 0,void 0,!0,!0)}else b&&(b.hasOwnProperty("items")&&b.items||b.hasOwnProperty("ids"))&&this.control.bulkUpdate&&this.control.bulkUpdate(b,b.items)}var E=null!==(s=t.reload)&&void 0!==s?s:y.reload;E&&this.reloadTarget(E,n);var x=null!==(u=t.redirect)&&void 0!==u?u:y.redirect;x=x&&(0,m.filter)(x,n),x&&g.jumpTo(x,y)},t.prototype.handleDialogClose=function(e){void 0===e&&(e=!1);var t=this.props,n=t.store,a=t.stopAutoRefreshWhenModalIsOpen,r=t.silentPolling,o=t.interval;n.closeDialog(e),a&&o&&(this.timer=setTimeout(r?this.silentSearch:this.search,Math.max(o,1e3)))},t.prototype.openFeedback=function(e,t){var n=this;return new Promise((function(a){var r=n.props.store;r.setCurrentAction({type:"button",actionType:"dialog",dialog:e}),r.openDialog(t,void 0,(function(e){a(e)}))}))},t.prototype.search=function(e,t,n,a){var r,o=this;void 0===a&&(a=!1);var i=this.props,s=i.store,u=i.api,d=i.messages,c=i.pageField,p=i.perPageField,f=i.interval,v=i.stopAutoRefreshWhen,g=i.stopAutoRefreshWhenModalIsOpen,y=i.silentPolling,b=i.syncLocation,_=i.syncResponse2Query,C=i.keepItemSelectionOnPageChange,E=i.pickerMode,x=i.env,w=i.loadDataOnce,S=i.loadDataOnceFetchOnFilter,O=i.source,k=i.columns;C&&n&&!E&&(s.setSelectedItems([]),s.setUnSelectedItems([]));var D="";e&&"string"===typeof e.loadDataMode&&(D="load-more",delete e.loadDataMode),clearTimeout(this.timer),e&&s.updateQuery(e,!D&&b&&x&&x.updateLocation?x.updateLocation:void 0,c,p),this.lastQuery=s.query;var N=(0,l.createObject)(s.data,s.query);(0,h.isEffectiveApi)(u,N)?s.fetchInitData(u,N,{successMessage:d&&d.fetchSuccess,errorMessage:d&&d.fetchFailed,autoAppend:!0,forceReload:a,loadDataOnce:w,loadDataOnceFetchOnFilter:S,source:O,silent:t,pageField:c,perPageField:p,loadDataMode:D,syncResponse2Query:_,columns:null!==(r=s.columns)&&void 0!==r?r:k}).then((function(e){return f&&o.mounted&&(!v||!(g&&s.hasModalOpened||(0,m.evalExpression)(v,(0,l.createObject)(s.data,s.query))))&&(o.timer=setTimeout(y?o.silentSearch.bind(o,void 0,void 0,!0):o.search.bind(o,void 0,void 0,void 0,!0),Math.max(f,1e3))),e})):O&&s.initFromScope(N,O)},t.prototype.silentSearch=function(e,t,n){return void 0===n&&(n=!1),this.search(e,!0,t,n)},t.prototype.handleChangePage=function(e,t){var n,a,r=this.props,o=r.store,i=r.syncLocation,l=r.env,s=r.pageField,u=r.perPageField,d=r.autoJumpToTopOnPagerChange,c=r.affixOffsetTop,p=(n={},n[s||"page"]=e,n);if(t&&(p[u||"perPage"]=t),o.updateQuery(p,i&&(null===l||void 0===l?void 0:l.updateLocation)?l.updateLocation:void 0,s,u),this.search(void 0,void 0,void 0),d&&this.control){(0,f.findDOMNode)(this.control).scrollIntoView();var m=window.scrollY,h=null!==(a=null!==c&&void 0!==c?c:null===l||void 0===l?void 0:l.affixOffsetTop)&&void 0!==a?a:0;m&&window.scroll(0,m-h)}},t.prototype.handleSave=function(e,t,n,a,r,o){var i=this,s=this.props,u=s.store,d=s.quickSaveApi,c=s.quickSaveItemApi,p=s.primaryField,f=s.env,m=s.messages,v=s.reload;if(Array.isArray(e)){if(!(0,h.isEffectiveApi)(d))return void(f&&f.alert("CRUD quickSaveApi is required"));var g=(0,l.createObject)(u.data,{rows:e,rowsDiff:t,indexes:n,rowsOrigin:r});e.length&&e[0].hasOwnProperty(p||"id")&&(g.ids=e.map((function(e){return e[p||"id"]})).join(",")),a&&(g.unModifiedItems=a),u.saveRemote(d,g,{successMessage:m&&m.saveFailed,errorMessage:m&&m.saveSuccess}).then((function(){v&&i.reloadTarget(v,g),i.search(void 0,void 0,!0,!0)})).catch((function(){}))}else{if(!(0,h.isEffectiveApi)(c))return void(f&&f.alert("CRUD quickSaveItemApi is required!"));var y=(0,l.createObject)(u.data,{item:e,modified:t,origin:r}),b=(0,l.createObject)(y,e);u.saveRemote(c,b).then((function(){v&&i.reloadTarget(v,y),i.search(void 0,void 0,!0,!0)})).catch((function(){o&&i.control.reset()}))}},t.prototype.handleSaveOrder=function(e,t){var n=this,a=this.props,r=a.store,o=a.saveOrderApi,i=a.orderField,s=a.primaryField,u=a.env,d=a.reload;if(o){var c,f,m=(0,l.createObject)(r.data),v=[],g=s&&t[0]&&t[0].hasOwnProperty(s);if(g||(m.idMap={}),m.insertAfter={},t.forEach((function(n){if(~e.indexOf(n))if(c){var a=g?c[s]:t.indexOf(c);m.insertAfter[a]=m.insertAfter[a]||[],g||(m.idMap[a]=c),m.insertAfter[a].push(g?n[s]:n)}else v.push(n);else c=n,f=f||n})),f&&v.length){var y=g?f[s]:t.indexOf(f);g||(m.idMap[y]=f),m.insertBefore={},m.insertBefore[y]=v.map((function(e){return g?e[s]:e}))}else if(v.length){var b=v[0],_=g?b[s]:t.indexOf(b);g||(m.idMap[_]=b),m.insertAfter[_]=v.slice(1).map((function(e){return g?e[s]:e}))}if(i){var C=(r.page-1)*r.perPage||0;t=t.map((function(e,t){var n;return(0,l.extendObject)(e,(n={},n[i]=C+t+1,n))}))}m.rows=t.concat(),g&&(m.ids=t.map((function(e){return e[s]})).join(",")),g&&i&&(m.order=t.map((function(e){return(0,p.default)(e,[s,i])}))),(0,h.isEffectiveApi)(o,m)&&r.saveRemote(o,m).then((function(){d&&n.reloadTarget(d,m),n.search(void 0,void 0,!0,!0)})).catch((function(){}))}else u&&u.alert("CRUD saveOrderApi is required!")},t.prototype.handleSelect=function(e,t){var n=this.props,a=n.store,r=n.keepItemSelectionOnPageChange,o=n.primaryField,i=n.multiple,l=n.pickerMode,s=n.onSelect,u=e,d=t;if(r&&a.selectedItems.length){var c=a.selectedItems.concat(),p=a.unSelectedItems.concat();e.forEach((function(e){var t=(0,y.default)(c,(function(t){return t===e||t[o||"id"]&&t[o||"id"]==e[o||"id"]}));~t?c[t]=e:c.push(e);var n=(0,y.default)(p,(function(t){return t===e||t[o||"id"]&&t[o||"id"]==e[o||"id"]}));~n&&p.splice(n,1)})),t.forEach((function(e){var t=(0,y.default)(p,(function(t){return t===e||t[o||"id"]&&t[o||"id"]==e[o||"id"]})),n=(0,y.default)(c,(function(t){return t===e||t[o||"id"]&&t[o||"id"]==e[o||"id"]}));~t?p[t]=e:p.push(e),~n&&c.splice(n,1)})),u=c,d=p}l&&!1===i&&u.length>1&&d.push.apply(d,u.splice(0,u.length-1)),a.setSelectedItems(u),a.setUnSelectedItems(d),s&&s(u)},t.prototype.handleChildPopOverOpen=function(e){this.props.interval&&e&&~["dialog","drawer"].indexOf(e.mode)&&(this.props.stopAutoRefreshWhenModalIsOpen&&clearTimeout(this.timer),this.props.store.setInnerModalOpened(!0))},t.prototype.handleChildPopOverClose=function(e){var t=this.props,n=t.stopAutoRefreshWhenModalIsOpen,a=t.silentPolling,r=t.interval;e&&~["dialog","drawer"].indexOf(e.mode)&&(this.props.store.setInnerModalOpened(!1),n&&r&&(this.timer=setTimeout(a?this.silentSearch:this.search,Math.max(r,1e3))))},t.prototype.handleQuery=function(e,t){var n;void 0===t&&(t=!1);var r=this.props,o=r.store,i=r.syncLocation,l=r.env,s=r.pageField,u=r.perPageField;o.updateQuery((0,a.__assign)((0,a.__assign)({},e),(n={},n[s||"page"]=1,n)),i&&l&&l.updateLocation?l.updateLocation:void 0,s,u),this.search(void 0,void 0,void 0,t)},t.prototype.reload=function(e,t){if(t)return this.receive(t);this.search(void 0,void 0,!0,!0)},t.prototype.receive=function(e){this.handleQuery(e,!0)},t.prototype.reloadTarget=function(e,t){},t.prototype.closeTarget=function(e){},t.prototype.doAction=function(e,t,n){return void 0===n&&(n=!1),this.handleAction(void 0,e,t,n)},t.prototype.unSelectItem=function(e,t){var n=this.props.store,a=n.selectedItems.concat(),r=n.unSelectedItems.concat(),o=a.indexOf(e);~o&&r.push.apply(r,a.splice(o,1)),n.setSelectedItems(a),n.setUnSelectedItems(r)},t.prototype.clearSelection=function(){var e=this.props.store,t=e.selectedItems.concat(),n=e.unSelectedItems.concat();e.setSelectedItems([]),e.setUnSelectedItems(n.concat(t))},t.prototype.hasBulkActionsToolbar=function(){var e=this.props,t=e.headerToolbar,n=e.footerToolbar,a=function(e){return~["bulkActions","bulk-actions"].indexOf(e.type||e)};return Array.isArray(t)&&(0,g.default)(t,a)||Array.isArray(n)&&(0,g.default)(n,a)},t.prototype.hasBulkActions=function(){var e=this.props,t=e.bulkActions,n=(e.itemActions,e.store);if(!t||!t.length)return!1;var r=[],o=n.mergedData;return t&&t.length&&(r=t.map((function(e){return(0,a.__assign)((0,a.__assign)({},e),(0,c.default)(e,o))})).filter((function(e){return!e.hidden&&!1!==e.visible}))),r.length},t.prototype.renderBulkActions=function(e){var t=this,n=this.props,o=n.bulkActions,i=n.itemActions,s=n.store,u=n.render,d=n.classnames;if(!o||!o.length)return null;var p=s.selectedItems,f=s.unSelectedItems,m=[],h=[],g=s.mergedData;o&&o.length&&(!i||!i.length||p.length>1)&&(m=o.map((function(e){return(0,a.__assign)((0,a.__assign)({},e),(0,c.default)(e,g))})).filter((function(e){return!e.hidden&&!1!==e.visible})));var y=(0,l.createObject)(s.data,p.length?p[0]:{});return i&&p.length<=1&&(h=i.map((function(e){return(0,a.__assign)((0,a.__assign)({},e),(0,c.default)(e,y))})).filter((function(e){return!e.hidden&&!1!==e.visible}))),m.length||h.length?r.default.createElement("div",{className:d("Crud-actions")},m.map((function(e,n){return u("bulk-action/".concat(n),(0,a.__assign)((0,a.__assign)({},(0,v.default)(e,["visibleOn","hiddenOn","disabledOn"])),{type:e.type||"button",ignoreConfirm:!0}),{key:"bulk-".concat(n),data:g,disabled:e.disabled||!1!==e.requireSelected&&!p.length,onAction:t.handleBulkAction.bind(t,p.concat(),f.concat())})})),h.map((function(e,n){return u("bulk-action/".concat(n),(0,a.__assign)((0,a.__assign)({},(0,v.default)(e,["visibleOn","hiddenOn","disabledOn"])),{type:"button"}),{key:"item-".concat(n),data:y,disabled:e.disabled||1!==p.length,onAction:t.handleItemAction.bind(t,e,y)})}))):null},t.prototype.renderPagination=function(e){var t=this.props,n=t.store,o=t.render,i=t.classnames,l=t.alwaysShowPagination,s=n.page,u=n.lastPage;if("simple"!==n.mode&&n.lastPage<2&&!l)return null;var d={};if("string"!==typeof e){var c=e.showPageInput;d.showPageInput=!0===c||u>9&&null==c,d.maxButtons=e.maxButtons,d.layout=e.layout}else d.showPageInput=u>9;return r.default.createElement("div",{className:i("Crud-pager")},o("pagination",{type:"pagination"},(0,a.__assign)((0,a.__assign)({},d),{activePage:s,lastPage:u,hasNext:n.hasNext,mode:n.mode,perPage:n.perPage,onPageChange:this.handleChangePage})))},t.prototype.renderStatistics=function(){var e=this.props,t=e.store,n=e.classnames,a=e.translate,o=e.alwaysShowPagination;return t.lastPage<=1&&!o?null:r.default.createElement("div",{className:n("Crud-statistics")},a("CRUD.stat",{page:t.page,lastPage:t.lastPage,total:t.total}))},t.prototype.renderSwitchPerPage=function(e){var t=this,n=this.props,a=n.store,o=n.perPageAvailable,i=n.classnames,l=n.classPrefix,s=n.translate,u=e.items;if(!u.length)return null;var c=(o||[5,10,20,50,100]).map((function(e){return{label:e,value:e+""}}));return r.default.createElement("div",{className:i("Crud-pageSwitch")},r.default.createElement("span",null,s("CRUD.perPage")),r.default.createElement(d.default,{classPrefix:l,searchable:!1,placeholder:s("Select.placeholder"),options:c,value:a.perPage+"",onChange:function(e){return t.handleChangePage(1,e.value)},clearable:!1}))},t.prototype.renderLoadMore=function(){var e=this,t=this.props,n=t.store,a=t.classPrefix,o=t.classnames,i=t.translate,l=n.page,s=n.lastPage;return l0):p,selected:c||y?s.selectedItemsAsArray:void 0,keepItemSelectionOnPageChange:y,maxKeepItemSelectionLength:b,valueField:f||m,primaryField:m,hideQuickSaveBtn:h,items:s.data.items,query:s.query,orderBy:s.query.orderBy,orderDir:s.query.orderDir,popOverContainer:C,onAction:this.handleAction,onSave:this.handleSave,onSaveOrder:this.handleSaveOrder,onQuery:this.handleQuery,onSelect:this.handleSelect,onPopOverOpened:this.handleChildPopOverOpen,onPopOverClosed:this.handleChildPopOverClose,onSearchableFromReset:this.handleFilterReset,onSearchableFromSubmit:this.handleFilterSubmit,onSearchableFromInit:this.handleFilterInit,headerToolbarRender:this.renderHeaderToolbar,footerToolbarRender:this.renderFooterToolbar,data:s.mergedData}),r.default.createElement(_.Spinner,{overlay:!0,size:"lg",key:"info",show:s.loading}),l("dialog",(0,a.__assign)((0,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","headerToolbar","footerToolbar","filterTogglable","filterDefaultVisible","autoGenerateFilter","syncResponse2Query","keepItemSelectionOnPageChange","labelTpl","labelField","loadDataOnce","loadDataOnceFetchOnFilter","source","header","columns","size","onChange","onInit","onSaved","onQuery","formStore","autoFillHeight"],t.defaultProps={toolbarInline:!0,headerToolbar:["bulkActions"],footerToolbar:["statistics","pagination"],primaryField:"id",syncLocation:!0,pageField:"page",perPageField:"perPage",hideQuickSaveBtn:!1,autoJumpToTopOnPagerChange:!0,silentPolling:!1,filterTogglable:!1,filterDefaultVisible:!0,loadDataOnce:!1,loadDataOnceFetchOnFilter:!0,autoFillHeight:!1},t}(r.default.Component);t.default=x;var w=function(e){function t(t,n){var a=e.call(this,t)||this,r=n;return r.registerComponent(a),a}var n;return(0,a.__extends)(t,e),t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.context;t.unRegisterComponent(this)},t.prototype.reload=function(t,n,a){var r=this.context;return t?r.reload(n?"".concat(t,"?").concat((0,l.qsstringify)(n)):t,a):e.prototype.reload.call(this,t,n)},t.prototype.receive=function(t,n){var a=this.context;return n?a.send(n,t):e.prototype.receive.call(this,t)},t.prototype.reloadTarget=function(e,t){var n=this.context;n.reload(e,t)},t.prototype.closeTarget=function(e){var t=this.context;t.close(e)},t.contextType=s.ScopedContext,t=(0,a.__decorate)([(0,o.Renderer)({type:"crud",storeType:i.CRUDStore.name,isolateScope:!0}),(0,a.__metadata)("design:paramtypes",[Object,"function"===typeof(n="undefined"!==typeof s.IScopedContext&&s.IScopedContext)?n:Object])],t),t}(x);t.CRUDRenderer=w},4303:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubFormControlRenderer=void 0;var a,r=n("9ab4"),o=(0,r.__importDefault)(n("ab5b")),i=n("2ab5"),l=(0,r.__importDefault)(n("4d26")),s=(0,r.__importDefault)(n("3eea")),u=(0,r.__importDefault)(n("2593")),d=n("d369"),c=n("c264"),p=(0,r.__importDefault)(n("aa47")),f=n("8bc8"),m=function(e){return e?(a=a||document.createElement("div"),a.innerHTML=e,a.innerText):e},h=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.id=(0,d.guid)(),n.addItem=n.addItem.bind(n),n.removeItem=n.removeItem.bind(n),n.editSingle=n.editSingle.bind(n),n.open=n.open.bind(n),n.close=n.close.bind(n),n.dragTipRef=n.dragTipRef.bind(n),n.handleDialogConfirm=n.handleDialogConfirm.bind(n),n}return(0,r.__extends)(t,e),t.prototype.addItem=function(){this.setState({dialogData:(0,d.createObject)(this.props.data,this.props.scaffold||{}),dialogCtx:{mode:"add"}})},t.prototype.removeItem=function(e){e.stopPropagation(),e.preventDefault();var t=parseInt(e.currentTarget.getAttribute("data-index"),10),n=this.props.value;Array.isArray(n)&&(n=n.concat(),n.splice(t,1),this.props.onChange(n))},t.prototype.editSingle=function(){var e=this.props.value;e?this.setState({dialogData:(0,d.createObject)(this.props.data,this.props.value),dialogCtx:{mode:"edit"}}):this.addItem()},t.prototype.open=function(e){var t=parseInt(e.currentTarget.getAttribute("data-index"),10),n=this.props.value;Array.isArray(n)&&n[t]&&this.setState({dialogData:(0,d.createObject)(this.props.data,n[t]),dialogCtx:{mode:"edit",index:t}})},t.prototype.close=function(){this.setState({dialogData:void 0,dialogCtx:void 0})},t.prototype.handleDialogConfirm=function(e){var t=this.props,n=t.multiple,a=t.onChange,o=t.value,i=this.state.dialogCtx;if(n){var l=Array.isArray(o)?o.concat():[];"add"===(null===i||void 0===i?void 0:i.mode)?l.push((0,r.__assign)({},e[0])):l[i.index]=(0,r.__assign)((0,r.__assign)({},l[i.index]),e[0]),a(l)}else a((0,r.__assign)((0,r.__assign)({},o),e[0]));this.close()},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=this.props.submitOnChange,a=(0,f.findDOMNode)(this);this.sortable=new p.default(a.querySelector(".".concat(t,"SubForm-values")),{group:"SubForm-".concat(this.id),animation:150,handle:".".concat(t,"SubForm-valueDragBar"),ghostClass:"".concat(t,"SubForm-value--dragging"),onEnd:function(t){if(t.newIndex!==t.oldIndex){var a=t.to;t.oldIndex1?o.default.createElement("a",{className:g("SubForm-valueDragBar")},o.default.createElement(c.Icon,{icon:"drag-bar",className:g("icon")})):null,o.default.createElement("span",{className:g("SubForm-valueLabel")},t&&s&&t[s]&&m(t[s])||f("label",{type:"tpl",tpl:v(p)},{data:(0,d.createObject)(h,t)})),o.default.createElement("a",{"data-index":n,onClick:e.open,className:g("SubForm-valueEdit")},o.default.createElement(c.Icon,{icon:"pencil",className:"icon"})),i||!1===E||x&&!(u.length>x)?null:o.default.createElement("a",{"data-index":n,className:g("SubForm-valueDel"),onClick:e.removeItem},o.default.createElement(c.Icon,{icon:"close",className:"icon"})))}))):o.default.createElement("div",{className:g("SubForm-placeholder"),key:"placeholder"},v(y||"placeholder.empty")),o.default.createElement("div",{key:"toolbar",className:g("SubForm-toolbar")},!1!==C?o.default.createElement("button",{type:"button",onClick:this.addItem,className:g("Button SubForm-addBtn",n),disabled:i||!!(l&&Array.isArray(u)&&u.length>=l)},o.default.createElement(c.Icon,{icon:"plus",className:"icon"}),o.default.createElement("span",null,v(w||"SubForm.add"))):null,b&&Array.isArray(u)&&u.length>1?o.default.createElement("span",{className:g("Combo-dragableTip"),ref:this.dragTipRef},Array.isArray(u)&&u.length>1?v(_):""):null))},t.prototype.renderSingle=function(){var e=this.props,t=e.classnames,n=e.itemsClassName,a=e.itemClassName,r=e.disabled,i=e.value,l=e.labelField,s=e.btnLabel,u=e.render,p=e.data,f=e.translate;return o.default.createElement("div",{className:t("SubForm-values",n),key:"values"},o.default.createElement("div",{className:t("SubForm-value",{"is-disabled":r},a),onClick:this.editSingle,"data-tooltip":f("SubForm.editDetail"),"data-position":"bottom"},o.default.createElement("span",{className:t("SubForm-valueLabel")},i&&l&&i[l]&&m(i[l])||u("label",{type:"tpl",tpl:f(s)},{data:(0,d.createObject)(p,i)})),o.default.createElement("a",{className:t("SubForm-valueEdit")},o.default.createElement(c.Icon,{icon:"pencil",className:"icon"}))))},t.prototype.render=function(){var e=this.props,t=e.multiple,n=e.classPrefix,a=e.className,r=e.render,i=this.state.dialogData,s=this.state.dialogCtx;return o.default.createElement("div",{className:(0,l.default)("".concat(n,"SubFormControl"),a)},t?this.renderMultipe():this.renderSingle(),r("modal",this.buildDialogSchema(),{show:!!s,onClose:this.close,onConfirm:this.handleDialogConfirm,data:i,formStore:void 0}))},t.defaultProps={minLength:0,maxLength:0,multiple:!1,btnClassName:"",addButtonClassName:"",itemClassName:"",labelField:"label",btnLabel:"SubForm.button",placeholder:"placeholder.empty"},t.propsList=["form","formStore"],t}(o.default.PureComponent);t.default=h;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t=(0,r.__decorate)([(0,i.FormItem)({type:"input-sub-form",sizeMutable:!1,strictMode:!1})],t),t}(h);t.SubFormControlRenderer=v},"454d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alert=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d77e"),i=n("721d"),l=n("c264"),s=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=n.handleClick.bind(n),n.state={show:!0},n}return(0,a.__extends)(t,e),t.prototype.handleClick=function(){this.setState({show:!1},this.props.onClose)},t.prototype.render=function(){var e,t=this.props,n=t.classnames,a=t.className,o=t.level,s=t.children,u=t.showCloseButton,d=t.title,c=t.icon,p=t.showIcon,f=t.iconClassName,m=t.closeButtonClassName,h=c?"string"===typeof c?(0,l.getIcon)(c)?r.default.createElement(l.Icon,{icon:c,className:n("icon")}):(0,i.generateIcon)(n,c,"icon"):r.default.isValidElement(c)?r.default.cloneElement(c,{className:n("Alert-icon",null===(e=c.props)||void 0===e?void 0:e.className)}):null:p?r.default.createElement(l.Icon,{icon:"alert-".concat(o),className:n("icon")}):null;return this.state.show?r.default.createElement("div",{className:n("Alert",o?"Alert--".concat(o):"",a)},p&&h?r.default.createElement("div",{className:n("Alert-icon",f)},h):null,r.default.createElement("div",{className:n("Alert-content")},d?r.default.createElement("div",{className:n("Alert-title")},d):null,r.default.createElement("div",{className:n("Alert-desc")},s)),u?r.default.createElement("button",{className:n("Alert-close",m),onClick:this.handleClick,type:"button"},r.default.createElement(l.Icon,{icon:"close",className:"icon"})):null):null},t.defaultProps={level:"info",className:"",showCloseButton:!1},t.propsList=["level","className","showCloseButton","onClose"],t}(r.default.Component);t.Alert=s,t.default=(0,o.themeable)(s)},"47c6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataScope=void 0;var a=n("9ab4"),r=n("d369"),o=function(){function e(e,t){this.children=[],this.schemas=[],this.setSchemas(Array.isArray(e)?e:[e]),this.id=t}return e.prototype.addChild=function(t,n){var a=new e(n||{type:"object",properties:{}},t);return this.children.push(a),a.parent=this,a},e.prototype.removeChild=function(e){var t=this.children.findIndex((function(t){return"string"===typeof e?e===t.id:t===e}));if(~t){var n=this.children[t];delete n.parent,this.children.splice(t,1)}},e.prototype.setSchemas=function(e){this.schemas.splice(0,this.schemas.length);for(var t=0,n=e;ty?"".concat(y,"+"):c),c||(s=!1)),"dot"===d&&(E={width:p,height:p}),"ribbon"===d&&(E={height:p,lineHeight:p+"px",fontSize:p});var x={};if(m&&m.length){v="top-right";var w="calc(50% + ".concat(parseInt(m[0],10),"px)"),S="calc(-50% + ".concat(parseInt(m[1],10),"px)");x={transform:"translate(".concat(w,", ").concat(S,")")}}var O="var(--danger)";f&&f.background&&(O=f.background);var k=C?r.default.createElement("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",border:"1px solid ".concat(O),borderRadius:"50%",animation:"badgeDotAnimation 1.2s infinite ease-in-out"}}):null;return r.default.createElement("div",{className:a("Badge",_)},n,s?this.renderBadge(c,p,v,x,E,k):null)},t.propsList=["body","className","children"],t}(r.default.Component);function d(e){var t;return(0,o.default)((t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(n,t),n.prototype.render=function(){var t=this.props.badge;return t?r.default.createElement(u,(0,a.__assign)({},this.props),r.default.createElement(e,(0,a.__assign)({},this.props))):r.default.createElement(e,(0,a.__assign)({},this.props))},n}(r.default.Component),t.displayName="WithBadge(".concat(e.displayName||e.name,")"),t),e)}t.Badge=u,t.withBadge=d},"48e1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserSelectControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("4d26")),i=n("d55b"),l=(0,a.__importDefault)(n("4066")),s=(0,a.__importDefault)(n("0723")),u=n("7f82"),d=(0,a.__importDefault)(n("2769")),c=n("d369"),p=n("2029"),f=function(e){function t(t){return e.call(this,t)||this}var n,i,f,m;return(0,a.__extends)(t,e),t.prototype.componentWillUnmount=function(){this.unHook&&this.unHook()},t.prototype.onSearch=function(e,t,n){return(0,a.__awaiter)(this,void 0,void 0,(function(){var r,o,i,l,s,d,c,p,f,m;return(0,a.__generator)(this,(function(h){switch(h.label){case 0:if(r=this.props,o=r.searchApi,i=r.setLoading,l=r.env,o=(null===n||void 0===n?void 0:n.searchApi)||o,s=(null===n||void 0===n?void 0:n.searchTerm)||this.props.searchTerm||"term",d=(null===n||void 0===n?void 0:n.searchParam)||this.props.searchParam||{},c=(0,a.__assign)((m={},m[s]=e,m),d),!(0,u.isEffectiveApi)(o,c))return[2,Promise.resolve([])];i(!0),h.label=1;case 1:return h.trys.push([1,,3,4]),[4,l.fetcher(o,c,{cancelExecutor:t,autoAppend:!0})];case 2:return p=h.sent(),f=p.data&&p.data.options||p.data||[],[2,f];case 3:return i(!1),[7];case 4:return[2]}}))}))},t.prototype.deferLoad=function(e,t,n){return(0,a.__awaiter)(this,void 0,void 0,(function(){var r,o,i,l,s,d,p;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(r=this.props,o=r.env,i=r.deferApi,l=r.setLoading,r.formInited,r.addHook,i=(null===n||void 0===n?void 0:n.deferApi)||i,!o||!o.fetcher)throw new Error("fetcher is required");if(s=(0,c.createObject)(e,{}),!(0,u.isEffectiveApi)(i,s))return[2,Promise.resolve([])];a.label=1;case 1:return a.trys.push([1,,3,4]),[4,o.fetcher(i,s)];case 2:return d=a.sent(),p=d.data&&d.data.options||d.data||[],t&&p.forEach((function(e){e.isRef=!0})),[2,p];case 3:return l(!1),[7];case 4:return[2]}}))}))},t.prototype.changeValue=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,i,l,s,u,p,f,m,h,v;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.joinValues,r=t.extractValue,o=t.delimiter,i=t.multiple,l=t.valueField,s=t.onChange,u=t.options,t.setOptions,p=t.data,f=t.dispatchEvent,m=e,h=[],(Array.isArray(e)?e:e?[e]:[]).forEach((function(e){var t=(0,d.default)(u,(function(t){return t[l||"value"]==e[l||"value"]}));t||h.push(e)})),n?m=i?Array.isArray(e)?e.map((function(e){return e[l||"value"]})).join(o):e?e[l||"value"]:"":m?m[l||"value"]:"":r&&(m=i?Array.isArray(e)?e.map((function(e){return e[l||"value"]})):e?[e[l||"value"]]:[]:m?m[l||"value"]:""),[4,f("change",(0,c.createObject)(p,{value:m,options:u}))];case 1:return v=a.sent(),(null===v||void 0===v?void 0:v.prevented)?[2]:(s(m),[2])}}))}))},t.prototype.render=function(){var e=this,t=this.props,n=t.showNav,a=t.navTitle,i=t.searchable,u=t.options,d=t.className,c=t.selectedOptions,p=t.tabOptions,f=t.multi,m=t.multiple,h=t.isDep,v=t.isRef,g=t.placeholder,y=t.searchPlaceholder,b=t.tabMode,_=t.data;return null===p||void 0===p||p.forEach((function(t){t.deferLoad=e.deferLoad,t.onChange=e.changeValue,t.onSearch=e.onSearch})),r.default.createElement("div",{className:(0,o.default)("UserSelectControl",d)},b?r.default.createElement(s.default,{selection:c,tabOptions:p,multiple:m,onChange:this.changeValue,onSearch:this.onSearch,deferLoad:this.deferLoad,data:_}):r.default.createElement(l.default,{showNav:n,navTitle:a,selection:c,options:u,multi:f,multiple:m,searchable:i,placeholder:g,searchPlaceholder:y,deferLoad:this.deferLoad,onChange:this.changeValue,onSearch:this.onSearch,isDep:h,isRef:v}))},t.defaultProps={showNav:!0},(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String,"function"===typeof(n="undefined"!==typeof Function&&Function)?n:Object,"function"===typeof(i="undefined"!==typeof p.PlainObject&&p.PlainObject)?i:Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"onSearch",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(f="undefined"!==typeof Object&&Object)?f:Object,Boolean,"function"===typeof(m="undefined"!==typeof p.PlainObject&&p.PlainObject)?m:Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"deferLoad",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"changeValue",null),t}(r.default.Component);t.default=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,i.OptionsControl)({type:"users-select"})],t),t}(f);t.UserSelectControlRenderer=m},4915:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageControlRenderer=void 0;var a=n("9ab4"),r=a.__importStar(n("ab5b")),o=n("2ab5"),i=r.default.lazy((function(){return Promise.resolve().then((function(){return new Promise((function(e){n.e("chunk-5ae4ba27").then((function(){var t=[n("d773")];(function(t){e(a.__importStar(t))}).apply(null,t)})).catch(n.oe)}))}))})),l=(0,a.__importDefault)(n("cb36"));n("2a0b");var s=(0,a.__importDefault)(n("2769")),u=n("7f82"),d=n("d369"),c=n("c264"),p=(0,a.__importDefault)(n("f602")),f=(0,a.__importDefault)(n("5f50")),m=n("bd9c"),h=(0,a.__importDefault)(n("14aa")),v=n("7e49"),g=n("a97c"),y=(0,a.__importDefault)(n("60ed")),b=(0,a.__importDefault)(n("4245")),_=(0,a.__importDefault)(n("3eea")),C=function(e){return e.stopPropagation()},E=function(e){function t(n){var o=e.call(this,n)||this;o.state={uploading:!1,locked:!1,files:[]},o.files=[],o.fileUploadCancelExecutors=[],o.dropzone=r.default.createRef(),o.frameImageRef=r.default.createRef(),o.current=null,o.unmounted=!1;var i=n.value,l=n.multiple,s=n.joinValues,u=n.delimiter,d=[];return o.initAutoFill=!!n.initAutoFill,i&&(d=(Array.isArray(i)?i:s&&"string"===typeof i&&l?i.split(u):[i]).map((function(e){return t.valueToFile(e)})).filter((function(e){return e}))),o.state=(0,a.__assign)((0,a.__assign)({},o.state),{files:o.files=d,crop:o.buildCrop(n),frameImageWidth:0}),o.sendFile=o.sendFile.bind(o),o.removeFile=o.removeFile.bind(o),o.handleDrop=o.handleDrop.bind(o),o.handleClick=o.handleClick.bind(o),o.handleClick=o.handleClick.bind(o),o.handleCrop=o.handleCrop.bind(o),o.handleDropRejected=o.handleDropRejected.bind(o),o.cancelCrop=o.cancelCrop.bind(o),o.rotatableCrop=o.rotatableCrop.bind(o),o.handleImageLoaded=o.handleImageLoaded.bind(o),o.handleFrameImageLoaded=o.handleFrameImageLoaded.bind(o),o.startUpload=o.startUpload.bind(o),o.stopUpload=o.stopUpload.bind(o),o.toggleUpload=o.toggleUpload.bind(o),o.tick=o.tick.bind(o),o.onChange=o.onChange.bind(o),o.addFiles=o.addFiles.bind(o),o.handleSelect=o.handleSelect.bind(o),o.handlePaste=o.handlePaste.bind(o),o.syncAutoFill=o.syncAutoFill.bind(o),o}return(0,a.__extends)(t,e),t.formatFileSize=function(e,t){void 0===t&&(t=[" B"," KB"," M"," G"]),e=parseInt(e,10)||0;while(e>1024&&t.length>1)e/=1024,t.shift();return e.toFixed(2)+t[0]},t.valueToFile=function(e,t){return e?(0,a.__assign)((0,a.__assign)({},"string"===typeof e?{value:e,url:e,id:(0,d.guid)()}:e),{state:"init"}):void 0},t.sizeInfo=function(e,t,n){return e?t?n("Image.size",{width:e,height:t}):n("Image.width",{width:e}):n("Image.height",{height:t})},t.prototype.componentDidMount=function(){this.syncAutoFill()},t.prototype.componentDidUpdate=function(e){var n=this,r=this.props;if(e.value!==r.value&&this.emitValue!==r.value){var o=r.value,i=r.multiple,l=r.joinValues,u=r.delimiter,d=[];o&&(d=(Array.isArray(o)?o:l&&"string"===typeof o&&i?o.split(u):[o]).map((function(e){var o,i=t.valueToFile(e,r);return i&&(o=(0,s.default)(n.files,(function(e){return e.value===i.value})))&&(i=(0,a.__assign)((0,a.__assign)((0,a.__assign)({},o),i),{id:o.id||i.id})),i})).filter((function(e){return e}))),this.setState({files:this.files=d},this.syncAutoFill)}else e.value===r.value||this.initAutoFill||(this.initAutoFill=!0,this.syncAutoFill());e.crop!==r.crop&&this.setState({crop:this.buildCrop(r)})},t.prototype.componentWillUnmount=function(){this.unmounted=!0},t.prototype.buildCrop=function(e){var t=e.crop,n=this.props.translate;return t&&e.multiple?(e.env&&e.env.alert&&e.env.alert(n("Image.configError")),null):(!0===t&&(t={}),t&&(t=(0,a.__assign)({aspectRatio:void 0,guides:!0,dragMode:"move",viewMode:1,rotatable:!0,scalable:!0},t)),t)},t.prototype.handleDropRejected=function(e,t){if("change"===t.type||"drop"===t.type){var n=this.props,r=(n.multiple,n.env),o=n.accept,i=n.translate,l=e.map((function(e){return(0,a.__assign)((0,a.__assign)({},e.file),{state:"invalid",id:(0,d.guid)(),name:e.file.name})}));r.alert(i("File.invalidType",{files:l.map((function(e){return"「".concat(e.name,"」")})).join(" "),accept:o}))}},t.prototype.startUpload=function(e){void 0===e&&(e=!1),this.state.uploading||this.setState({uploading:!0,locked:!0,files:this.files=this.files.map((function(t){return e&&"error"===t.state&&(t.state="pending",t.progress=0),t}))},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=this.props.env,n=this.props.translate,r=(0,s.default)(this.files,(function(e){return"pending"===e.state}));r?(this.current=r,r.state="uploading",this.setState({files:this.files=this.files.concat()},(function(){return e.sendFile(r,(function(r,o,i){var l=e.files.concat(),s=l.indexOf(o);if(~s){var u=o;if(r){if(u.state="uploading"!==o.state?o.state:"error",u.error=r,!e.props.multiple&&"invalid"===u.state)return l.splice(s,1),e.current=null,e.setState({files:e.files=l,error:r},e.tick);t.notify("error",r||n("File.errorRetry"))}else u=(0,a.__assign)((0,a.__assign)({name:o.name||e.state.cropFileName},i),{preview:o.preview});l.splice(s,1,u),e.current=null,e.setState({files:e.files=l},e.tick)}}),(function(t){var n=e.files.concat(),a=n.indexOf(r);~a&&(r.progress=t,e.setState({files:e.files=n}))}))}))):this.setState({uploading:!1,locked:!1},(function(){e.onChange(!!e.resolve),e.resolve&&(e.resolve(e.files.some((function(e){return"error"===e.state}))?n("File.errorRetry"):null),e.resolve=void 0)}))}},t.prototype.removeFile=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return n=this.files.concat(),[4,this.dispatchEvent("remove",e)];case 1:return r=a.sent(),(null===r||void 0===r?void 0:r.prevented)?[2]:(this.removeFileCanelExecutor(e,!0),n.splice(t,1),o=this.current===e,o&&(this.current=null),this.setState({files:this.files=n},o?this.tick:this.onChange),[2])}}))}))},t.prototype.previewImage=function(e,t,n){var a=this.props.onImageEnlarge;if(a){var r=this.files;n.preventDefault(),a({src:e.preview||e.url,originalSrc:e.preview||e.url,index:t,list:r.map((function(e){return{src:e.preview||e.url,originalSrc:e.preview||e.url,title:e.name||(0,m.getNameFromUrl)(e.value||e.url)}}))})}},t.prototype.editImage=function(e){var t=this.files;this.setState({cropFile:{preview:t[e].preview||t[e].url,name:t[e].name,state:"init"},cropFileName:t[e].name})},t.prototype.onChange=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,i,l,s,u,d,c;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.multiple,r=t.onChange,o=t.joinValues,i=t.extractValue,l=t.delimiter,s=t.valueField,u=this.files.filter((function(e){return"uploaded"==e.state||"init"==e.state})),d=u.length?o?u[0].value:u[0]:"",d=n?o?u.map((function(e){return e.value})).join(l):i?u.map((function(e){return e.value})):u:o?d.value||d:i?d[s||"value"]:d,[4,this.dispatchEvent("change")];case 1:return c=a.sent(),(null===c||void 0===c?void 0:c.prevented)?[2]:(r(this.emitValue=d||"",void 0,e),this.syncAutoFill(),[2])}}))}))},t.prototype.syncAutoFill=function(){var e=this.props,t=e.autoFill,n=e.multiple,a=e.onBulkChange,r=e.data,o=e.name,i=(0,_.default)(t,o||"");if(!(0,d.isEmpty)(i)&&a&&this.initAutoFill){var l=this.state.files.filter((function(e){return~["uploaded","init","ready"].indexOf(e.state)})),s=(0,v.dataMapping)(i,n?{items:l}:l[0]);Object.keys(s).forEach((function(e){(0,y.default)(s[e])&&(0,y.default)(r[e])&&(s[e]=(0,b.default)({},r[e],s[e]))})),a(s)}},t.prototype.handleSelect=function(){this.dropzone.current&&this.dropzone.current.open()},t.prototype.handleRetry=function(e){var t=this.files.concat(),n=t[e];"invalid"!==n.state&&"error"!==n.state||(n.state="pending",n.progress=0,this.setState({files:t},this.startUpload))},t.prototype.handleDrop=function(e){var t=this.props,n=t.multiple,a=t.crop;if(a&&!n){var r=e[0];return r.preview&&r.url||(r.preview=window.URL.createObjectURL(r)),this.setState({cropFile:r,cropFileName:r.name})}this.addFiles(e)},t.prototype.handlePaste=function(e){var t=e.nativeEvent,n=[],a=t.clipboardData.items,r=this.props.accept||"*";[].slice.call(a).forEach((function(e){var t;"file"===e.kind&&(t=e.getAsFile())&&(0,f.default)(t,r)&&(t.id=(0,d.guid)(),n.push(t))})),this.handleDrop(n)},t.prototype.handleCrop=function(){var e=this,t=this.props,n=t.cropFormat,a=t.cropQuality;this.cropper.getCroppedCanvas().toBlob((function(t){e.addFiles([t]),e.setState({cropFile:void 0,locked:!1,lockedReason:""})}),n||"image/png",a||1)},t.prototype.cancelCrop=function(){this.setState({cropFile:void 0,cropFileName:void 0,locked:!1,lockedReason:""},this.onChange)},t.prototype.rotatableCrop=function(){this.cropper.rotate(45)},t.prototype.addFiles=function(e){var n=this;if(e.length){var a=this.props,r=a.multiple,o=a.maxLength,i=a.maxSize,l=(a.accept,a.translate),s=this.files;!r&&s.length&&(s=[]);var u=(r?o||e.length+s.length:1)-s.length,c=[];[].slice.call(e,0,u).forEach((function(e){i&&e.size>i?n.props.env.alert(l("File.maxSize",{filename:e.name,actualSize:t.formatFileSize(e.size),maxSize:t.formatFileSize(i)})):(e.state="pending",e.id=(0,d.guid)(),e.preview&&e.url||(e.preview=URL.createObjectURL(e)),c.push(e))})),c.length&&this.setState({error:void 0,files:this.files=s.concat(c),locked:!0},(function(){var e=n.props.autoUpload;e&&n.startUpload()}))}},t.prototype.sendFile=function(e,n,r){var o=this,i=this.props,l=i.limit,s=i.translate;if(!l)return this._upload(e,n,r);var u=new Image;u.onload=function(){return(0,a.__awaiter)(o,void 0,void 0,(function(){var o,i,d,c;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return o=u.width,i=u.height,d="",l.width&&l.width!=o||l.height&&l.height!=i?d=s("Image.sizeNotEqual",{info:t.sizeInfo(l.width,l.height,s)}):l.maxWidth&&l.maxWidtho||l.minHeight&&l.minHeight>i?d=s("Image.limitMin",{info:t.sizeInfo(l.minWidth,l.minHeight,s)}):l.aspectRatio&&Math.abs(o/i-l.aspectRatio)>.01&&(d=s(l.aspectRatioLabel||"Image.limitRatio",{ratio:(+l.aspectRatio).toFixed(2)})),d?(e.state="invalid",[4,this.dispatchEvent("fail",{file:e,error:d})]):[3,2];case 1:return c=a.sent(),(null===c||void 0===c?void 0:c.prevented)?[2]:(n(d,e),[3,3]);case 2:this._upload(e,n,r),a.label=3;case 3:return[2]}}))}))},u.src=e.preview||e.url},t.prototype._upload=function(e,t,n){var r=this,o=this.props.translate;this._send(e,this.props.receiver,{},n).then((function(n){return(0,a.__awaiter)(r,void 0,void 0,(function(){var r,i;return(0,a.__generator)(this,(function(l){switch(l.label){case 0:if(n.status&&"0"!==n.status)throw new Error(n.msg||o("File.errorRetry"));return r=(0,a.__assign)((0,a.__assign)({},n.data),{state:"uploaded"}),r.value=r.value||r.url,[4,this.dispatchEvent("success",(0,a.__assign)((0,a.__assign)({},e),{value:r.value,state:"uploaded"}))];case 1:return i=l.sent(),(null===i||void 0===i?void 0:i.prevented)?[2]:(t(null,e,r),[2])}}))}))})).catch((function(n){return(0,a.__awaiter)(r,void 0,void 0,(function(){var r;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return[4,this.dispatchEvent("fail",{file:e,error:n})];case 1:return r=a.sent(),(null===r||void 0===r?void 0:r.prevented)?[2]:(t(n.message||o("File.errorRetry"),e),[2])}}))}))}))},t.prototype._send=function(e,t,n,r){return(0,a.__awaiter)(this,void 0,Promise,(function(){var o,i,l,s,c,p,f=this;return(0,a.__generator)(this,(function(m){switch(m.label){case 0:if(o=new FormData,i=this.props.data,l=(0,u.buildApi)(t,(0,d.createObject)(i,n),{method:"post"}),s=this.props.fileField||"file",c=l.url.indexOf("?"),~c&&n?(n=(0,a.__assign)((0,a.__assign)({},(0,d.qsparse)(l.url.substring(c+1))),n),l.url=l.url.substring(0,c)+"?"+(0,d.qsstringify)(n)):n&&(l.url+="?"+(0,d.qsstringify)(n)),l.data&&(0,d.qsstringify)(l.data).split("&").filter((function(e){return""!==e})).forEach((function(e){var t=e.split("=");o.append(t[0],decodeURIComponent(t[1]))})),o.append(s,e,e.name||this.state.cropFileName),p=this.props.env,!p||!p.fetcher)throw new Error("fetcher is required");m.label=1;case 1:return m.trys.push([1,,3,4]),[4,p.fetcher(l,o,{method:"post",cancelExecutor:function(t){f.fileUploadCancelExecutors.push({file:e,executor:t})},onUploadProgress:function(e){return r(e.loaded/e.total)}})];case 2:return[2,m.sent()];case 3:return this.removeFileCanelExecutor(e),[7];case 4:return[2]}}))}))},t.prototype.removeFileCanelExecutor=function(e,t){void 0===t&&(t=!1),this.fileUploadCancelExecutors=this.fileUploadCancelExecutors.filter((function(n){return t&&n.file===e&&n.executor(),n.file!==e}))},t.prototype.handleClick=function(){this.refs.dropzone.open()},t.prototype.handleImageLoaded=function(e,t){var n=this,r=t.currentTarget,o=new Image;o.onload=function(){delete o.onload;var t=n.files.concat(),r=t[e];if(r){r.info=(0,a.__assign)((0,a.__assign)({},r.info),{width:o.width,height:o.height}),t.splice(e,1,r);var i=!(!n.current&&!(0,s.default)(t,(function(e){return"pending"===e.state})));n.unmounted||n.setState({files:n.files=t},i?void 0:n.onChange)}},o.src=r.src},t.prototype.handleFrameImageLoaded=function(e){var t=e.currentTarget,n=new Image,a=this.frameImageRef.current.clientHeight,r=this;n.onload=function(){var e=this.width/this.height,t=(e*(a-2)).toFixed(2);r.setState({frameImageWidth:+t})},n.src=t.src},t.prototype.validate=function(){var e=this,t=this.props.translate;return this.state.locked&&this.state.lockedReason?this.state.lockedReason:this.state.cropFile?new Promise((function(t){e.resolve=t,e.handleCrop()})):this.state.uploading||this.files.some((function(e){return"pending"===e.state}))?new Promise((function(t){e.resolve=t,e.startUpload()})):this.files.some((function(e){return"error"===e.state}))?t("File.errorRetry"):void 0},t.prototype.dispatchEvent=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o;return(0,a.__generator)(this,(function(a){return n=this.props.dispatchEvent,r=function(e){return{name:e.path||e.name,value:e.value,state:e.state,error:e.error}},o=t?r(t):this.files.map((function(e){return r(e)})),[2,n(e,(0,d.createObject)(this.props.data,{file:o}))]}))}))},t.prototype.doAction=function(e,t,n){var a=this.props.onChange;"clear"===e.actionType&&(this.files=[],a(""))},t.prototype.render=function(){var e=this,t=this.props,n=t.className,o=t.classnames,s=t.placeholder,u=t.disabled,d=t.multiple,f=t.accept,v=t.maxLength,y=t.autoUpload,b=t.hideUploadButton,_=t.thumbMode,E=t.thumbRatio,x=t.reCropable,w=t.frameImage,S=t.fixedSize,O=t.fixedSizeClassName,k=t.translate,D=this.state,N=D.files,T=D.error,P=D.crop,A=D.uploading,I=D.cropFile,R=D.frameImageWidth,F={};O&&R&&S&&(F.width=R);var M=(0,g.filter)(w,this.props.data,"| raw"),j=N.some((function(e){return"pending"==e.state}));return r.default.createElement("div",{className:o("ImageControl",n)},I?r.default.createElement("div",{className:o("ImageControl-cropperWrapper")},r.default.createElement(r.Suspense,{fallback:r.default.createElement("div",null,"...")},r.default.createElement(i,(0,a.__assign)({},P,{onInitialized:function(t){e.cropper=t},src:I.preview}))),r.default.createElement("div",{className:o("ImageControl-croperToolbar")},P.rotatable&&r.default.createElement("a",{className:o("ImageControl-cropRotatable"),onClick:this.rotatableCrop,"data-tooltip":k("rotate"),"data-position":"left"},r.default.createElement(c.Icon,{icon:"retry",className:"icon"})),r.default.createElement("a",{className:o("ImageControl-cropCancel"),onClick:this.cancelCrop,"data-tooltip":k("cancel"),"data-position":"left"},r.default.createElement(c.Icon,{icon:"close",className:"icon"})),r.default.createElement("a",{className:o("ImageControl-cropConfirm"),onClick:this.handleCrop,"data-tooltip":k("confirm"),"data-position":"left"},r.default.createElement(c.Icon,{icon:"check",className:"icon"})))):r.default.createElement(l.default,{key:"drop-zone",ref:this.dropzone,onDrop:this.handleDrop,onDropRejected:this.handleDropRejected,accept:f,multiple:d,disabled:u},(function(t){var n=t.getRootProps,i=t.getInputProps,l=t.isDragActive,f=t.isDragAccept,g=t.isDragReject,w=t.isFocused;return r.default.createElement("div",(0,a.__assign)({},n({onClick:C,onPaste:e.handlePaste,className:o("ImageControl-dropzone",{"is-disabled":u,"is-empty":!N.length,"is-active":l})})),r.default.createElement("input",(0,a.__assign)({},i())),l||f||g?r.default.createElement("div",{className:o("ImageControl-acceptTip",{"is-accept":f,"is-reject":g})},k("Image.dragDrop")):r.default.createElement(r.default.Fragment,null,N&&N.length?N.map((function(t,n){return r.default.createElement("div",{key:t.id||n,className:o("ImageControl-item",{"is-uploaded":"uploading"!==t.state,"is-invalid":"error"===t.state||"invalid"===t.state},S?"ImageControl-fixed-size":"",S?O:""),style:F},"invalid"===t.state||"error"===t.state?r.default.createElement("div",{className:o("Image--thumb")},r.default.createElement("div",{className:o("Image-thumbWrap")},r.default.createElement("div",{className:o("Image-thumb","ImageControl-filename")},r.default.createElement(c.Icon,{icon:"image",className:"icon"}),r.default.createElement("span",{title:t.name||(0,m.getNameFromUrl)(t.value||t.url)},t.name||(0,m.getNameFromUrl)(t.value||t.url))),r.default.createElement("div",{className:o("Image-overlay")},r.default.createElement("a",{"data-tooltip":k("File.repick"),"data-position":"bottom",onClick:e.handleRetry.bind(e,n)},r.default.createElement(c.Icon,{icon:"upload",className:"icon"})),u?null:r.default.createElement("a",{"data-tooltip":k("Select.clear"),"data-position":"bottom",onClick:e.removeFile.bind(e,t,n)},r.default.createElement(c.Icon,{icon:"remove",className:"icon"}))))):"uploading"===t.state?r.default.createElement(r.default.Fragment,null,r.default.createElement("a",{onClick:e.removeFile.bind(e,t,n),key:"clear",className:o("ImageControl-itemClear"),"data-tooltip":k("Select.clear")},r.default.createElement(c.Icon,{icon:"close",className:"icon"})),r.default.createElement("div",{key:"info",className:o("ImageControl-itemInfo",S?"ImageControl-fixed-size":"",S?O:"")},r.default.createElement("div",{className:o("ImageControl-progress")},r.default.createElement("span",{style:{width:"".concat(Math.round(100*t.progress),"%")},className:o("ImageControl-progressValue")})),r.default.createElement("p",null,k("File.uploading")))):r.default.createElement(r.default.Fragment,null,r.default.createElement(h.default,{key:"image",className:o("ImageControl-image",S?"Image-thumb--fixed-size":""),onLoad:e.handleImageLoaded.bind(e,n),src:t.preview||t.url,alt:t.name,thumbMode:_,thumbRatio:E,overlays:r.default.createElement(r.default.Fragment,null,r.default.createElement("a",{"data-tooltip":k("Image.zoomIn"),"data-position":"bottom",target:"_blank",rel:"noopener",href:t.url||t.preview,onClick:e.previewImage.bind(e,t,n)},r.default.createElement(c.Icon,{icon:"view",className:"icon"})),P&&!1!==x&&!u?r.default.createElement("a",{"data-tooltip":k("Image.crop"),"data-position":"bottom",onClick:e.editImage.bind(e,n)},r.default.createElement(c.Icon,{icon:"pencil",className:"icon"})):null,u?null:r.default.createElement("a",{"data-tooltip":k("Select.upload"),"data-position":"bottom",onClick:e.handleSelect},r.default.createElement(c.Icon,{icon:"upload",className:"icon"})),u?null:r.default.createElement("a",{"data-tooltip":k("Select.clear"),"data-position":"bottom",onClick:e.removeFile.bind(e,t,n)},r.default.createElement(c.Icon,{icon:"remove",className:"icon"})))})))})):null,d&&(!v||N.length1?r.default.createElement(u.Icon,{className:a("Selections-dragbar icon"),icon:"drag-bar"}):null,r.default.createElement("label",null,i(n,{index:o,disabled:l,onChange:t.handleValueChange.bind(t,o)})),l?null:r.default.createElement("a",{className:a("Selections-delBtn"),"data-index":o,onClick:function(e){return t.handleCloseItem(n)}},r.default.createElement(u.Icon,{icon:"close",className:"icon"})))}))):r.default.createElement("div",{className:a("Selections-placeholder")},c(o)))},t.prototype.render=function(){var e=this.props,t=e.classnames,n=e.className,a=e.title,o=e.searchable,i=e.value,l=e.translate,s=e.placeholder,u=void 0===s?l("Transfer.searchKeyword"):s,d=this.state.searchResult;return r.default.createElement("div",{className:t("Selections",n)},a?r.default.createElement("div",{className:t("Selections-title")},a):null,o?r.default.createElement(f.default,{placeholder:u,onSearch:this.search,onCancelSearch:this.clearSearch}):null,this.renderNormalList(null!==d?d:i))},t.defaultProps={placeholder:"placeholder.selectData",itemRender:t.itemRender},(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"search",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"clearSearch",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof l.Option&&l.Option)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleCloseItem",null),t}(r.default.Component);t.ResultList=m,t.default=(0,s.themeable)((0,c.localeable)(m))},"4c64":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("63ea")),i=n("f83d"),l=n("d369"),s=n("7e49"),u=function(e){function t(t){var n=e.call(this,t)||this;return n.toDispose=[],n.codeRef=r.default.createRef(),n}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this;Promise.resolve().then((function(){return new Promise((function(e){n.e("chunk-db50a624").then((function(){var t=[n("c2c6")];(function(t){e(a.__importStar(t))}).apply(null,t)})).catch(n.oe)}))})).then((function(t){return e.handleMonaco(t)}))},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props,a=(0,l.getPropValue)(this.props),r=(0,l.getPropValue)(this.props);if(a!==r||n.customLang&&!(0,o.default)(n.customLang,e.customLang)){var i=this.codeRef.current;i.innerHTML=a;var s=this.registTheme()||this.props.editorTheme||"vs";setTimeout((function(){t.monaco.editor.colorizeElement(i,{tabSize:t.props.tabSize,theme:s})}),16)}},t.prototype.handleMonaco=function(e){var t=this;if(this.monaco=e,this.codeRef.current){var n=this.codeRef.current,a=this.registTheme()||this.props.editorTheme||"vs";setTimeout((function(){e.editor.colorizeElement(n,{tabSize:t.props.tabSize,theme:a})}),16)}},t.prototype.registTheme=function(){var e=this.monaco;if(!e)return null;if(this.customLang&&this.customLang.name&&this.customLang.tokens&&this.customLang.tokens.length){var t=this.customLang.name;e.languages.register({id:t});for(var n=[],a=[],r=0,o=this.customLang.tokens;r=0;t-=1)if(!v(O[t]))return t;return null}},U=(0,s.useSetState)({index:z(B)||0,offset:0,duration:0,options:(0,i.default)(O)}),H=U[0],W=U[1],$=function(t,n,a){t=z(t)||0;var r=-t*g,o=function(){W({index:t}),n&&e.onChange&&requestAnimationFrame((function(){var n;null===(n=e.onChange)||void 0===n||n.call(e,L(O[t]),t,a)}))};T.current&&r!==H.offset?A.current=o:o(),W({offset:r})},q=function(e){if(JSON.stringify(e)!==JSON.stringify(H.options)){W({options:e});var t=e.findIndex((function(e){return L(e)===y}))||0;$(t,!0,!0)}},K=function(t){T.current||e.readonly||(A.current=null,W({duration:p}),$(t,!0,!0))},Y=function(e){return(0,u.range)(Math.round(-e/g),0,M-1)},G=function(e,t){var n=Math.abs(e/t);e=H.offset+n/.003*(e<0?-1:1);var a=Y(e);W({duration:+E}),$(a,!0)},J=function(){T.current=!1,W({duration:0}),A.current&&(A.current(),A.current=null)},Q=function(t){if(!e.readonly){F.start(t);var n=H.offset;if(T.current){var a=h(N.current);n=Math.min(0,a-V),P.current=n}else P.current=n;W({duration:0,offset:n}),I.current=Date.now(),R.current=P.current,A.current=null}},Z=function(t){if(!e.readonly){F.move(t),F.isVertical()&&(T.current=!0);var n=(0,u.range)(P.current+F.deltaY,-M*g,g);W({offset:n});var a=Date.now();a-I.current>f&&(I.current=a,R.current=n)}},X=function(){if(!e.readonly){var t=H.offset-R.current,n=Date.now()-I.current,a=nm;if(a)G(t,n);else{var r=Y(H.offset);W({duration:p}),$(r,!0),setTimeout((function(){T.current=!1}),0)}}},ee=function(){var t={height:"".concat(g,"px"),lineHeight:"".concat(g,"px")};return H.options.map((function(n,o){var i=j(n),l=v(n),s={role:"button",key:o,style:t,tabIndex:l?-1:0,className:e.classnames("PickerColumns-columnItem",{"is-disabled":l,"is-selected":o===H.index}),onClick:function(){K(o)}},u={className:"text-ellipsis",children:i};return r.default.createElement("li",(0,a.__assign)({},s,{ref:D}),e.optionRender?e.optionRender(n):r.default.createElement("div",(0,a.__assign)({},u)))}))},te=function(e){for(var t=H.options,n=0;n","placeholder.enter":"请输入","placeholder.noData":"暂无数据","placeholder.noOption":"暂无选项","placeholder.selectData":"请先选择数据","Quarter.placeholder":"请选择季度","Repeat.pre":"每",reset:"重置",saveFailed:"保存失败",saveSuccess:"保存成功",search:"搜索",searchResult:"搜索结果",stop:"停止","Checkboxes.selectAll":"全选/不选","Select.checkAll":"全选","Select.clear":"移除","Select.upload":"重新上传","Select.clearAll":"移除所有","Select.createLabel":"新增选项","Select.placeholder":"请选择","Select.searchPromptText":"输入内容进行检索",sort:"排序","SubForm.button":"设置","SubForm.editDetail":"编辑详情","System.error":"系统错误","System.notify":"系统消息","System.copy":"内容已复制到粘贴板","System.requestError":"接口报错:","System.requestErrorStatus":"接口出错,状态码是:","Table.addRow":"新增一行","Table.copyRow":"复制一行","Table.columnsVisibility":"点击选择显示列","Table.deleteRow":"删除当前行","Table.discard":"放弃","Table.dragTip":"请拖动左边的按钮进行排序","Table.editing":"请先处理表格编辑项","Table.editRow":"编辑当前行","Table.modified":"当前有 {{modified}} 条记录修改但没有提交,你可以:","Table.moved":"当前有 {{moved}} 条记录修改了顺序但没有提交,你可以:","Table.operation":"操作","Table.playload":"action 上请配置 payload, 否则不清楚要删除哪个","Table.startSort":"点击开始排序","Table.valueField":"请配置 valueField","Table.index":"序号","Table.toggleColumn":"显示列","Table.searchFields":"设置查询字段","Tag.placeholder":"暂无标签","Tag.tip":"最近使用的标签","Text.add":"新增:{{label}}","Time.placeholder":"请选择时间","Transfer.configError":"配置错误,选项无法与左侧选项对应","Transfer.refreshIcon":"点击刷新重新加载","Transfer.searchKeyword":"请输入关键字","Transfer.available":"可选项","Transfer.selectd":"已选项","Transfer.selectFromLeft":"请选择左侧数据","Tree.addChild":"添加子节点","Tree.addRoot":"添加一级节点","Tree.editNode":"编辑该节点","Tree.removeNode":"移除该节点","Tree.root":"顶级","validate.equals":"输入的数据与 $1 不一致","validate.equalsField":"输入的数据与 $1 值不一致","validate.gt":"请输入大于 $1 的值","validate.isAlpha":"请输入字母","validate.isAlphanumeric":"请输入字母或者数字","validate.isEmail":"Email 格式不正确","validate.isFloat":"请输入浮点型数值","validate.isId":"请输入合法的身份证号","validate.isInt":"请输入整型数字","validate.isJson":"JSON 格式不正确","validate.isLength":"请输入长度为 $1 的内容","validate.isNumeric":"请输入数字","validate.isPhoneNumber":"请输入合法的手机号码","validate.isRequired":"这是必填项","validate.isTelNumber":"请输入合法的电话号码","validate.isUrl":"URL 格式不正确","validate.isUrlPath":"只能输入字母、数字、`-` 和 `_`.","validate.isWords":"请输入单词","validate.isZipcode":"请输入合法的邮编地址","validate.lt":"请输入小于 $1 的值","validate.matchRegexp":"格式不正确, 请输入符合规则为 `${1|raw}` 的内容。","validate.maximum":"当前输入值超出最大值 $1","validate.maxLength":"请控制内容长度, 不要输入 $1 个以上字符","validate.minimum":"当前输入值低于最小值 $1","validate.minLength":"请输入更多的内容,至少输入 $1 个字符。","validate.notEmptyString":"请不要全输入空白字符",validateFailed:"表单验证失败","Wizard.configError":"配置错误","Wizard.finish":"完成","Wizard.next":"下一步","Wizard.prev":"上一步","Wizard.saveAndNext":"保存并下一步","year-to-year":"{{from}} 年 - {{to}} 年","Year.placeholder":"请选择年",reload:"刷新",rotate:"旋转","Editor.fullscreen":"全屏","Editor.exitFullscreen":"退出全屏","Condition.not":"非","Condition.and":"并且","Condition.or":"或者","Condition.add_cond":"添加条件","Condition.add_cond_group":"添加条件组","Condition.delete_cond_group":"删除组","Condition.equal":"等于","Condition.not_equal":"不等于","Condition.less":"小于","Condition.less_or_equal":"小于或等于","Condition.greater":"大于","Condition.greater_or_equal":"大于或等于","Condition.between":"属于范围","Condition.not_between":"不属于范围","Condition.is_empty":"为空","Condition.is_not_empty":"不为空","Condition.like":"模糊匹配","Condition.not_like":"不匹配","Condition.starts_with":"匹配开头","Condition.ends_with":"匹配结尾","Condition.select_equals":"等于","Condition.select_not_equals":"不等于","Condition.select_any_in":"包含","Condition.select_not_any_in":"不包含","Condition.placeholder":"请输入文本","Condition.cond_placeholder":"请选择操作","Condition.field_placeholder":"请选择字段","Condition.blank":"空","Condition.expression":"表达式","Condition.formula_placeholder":"请输入公式","Condition.fun_error":"方法未定义","InputTable.uniqueError":"列`{{label}}`没有通过唯一验证",collapse:"展开",expand:"折叠","FormulaEditor.btnLabel":"公式编辑","FormulaEditor.title":"公式编辑器","FormulaEditor.variable":"变量","FormulaEditor.function":"函数","FormulaEditor.invalidData":"公式值校验错误,错误的位置/原因是 {{err}}","pullRefresh.pullingText":"下拉即可刷新...","pullRefresh.loosingText":"释放即可刷新...","pullRefresh.loadingText":"加载中...","pullRefresh.successText":"加载成功","Picker.placeholder":"请点击右侧的图标","UserSelect.edit":"编辑","UserSelect.save":"保存","UserSelect.resultSort":"选择结果排序","UserSelect.selected":"已选","UserSelect.clear":"清空","SchemaType.string":"文本","SchemaType.number":"数字","SchemaType.integer":"整数","SchemaType.object":"对象","SchemaType.array":"数组","SchemaType.boolean":"布尔","SchemaType.null":"Null","SchemaType.any":"任意","JSONSchema.title":"名称","JSONSchema.default":"默认值","JSONSchema.key":"字段名","JSONSchema.description":"描述","JSONSchema.add_prop":"添加属性","JSONSchema.array_items":"成员类型",Required:"必填",TimeNow:"此刻"})},"53d6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmailAction=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("2593")),o=(0,a.__importDefault)(n("4328")),i=n("0d19"),l=function(){function e(){}return e.prototype.run=function(e,t,n){var i,l;return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,s,u;return(0,a.__generator)(this,(function(a){return t=null===(i=e.args)||void 0===i?void 0:i.to,n=(0,r.default)(null!==(l=e.args)&&void 0!==l?l:{},"cc","bcc","subject","body"),s=o.default.stringify(n),u="mailto:".concat(t,"?").concat(s),window.open(u),[2]}))}))},e}();t.EmailAction=l,(0,i.registerAction)("email",new l)},5478:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("4d26")),i=(0,a.__importDefault)(n("faf7")),l=n("d55b"),s=n("4afe"),u=n("d369"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.doAction=function(e,t,n){var a,r=null===e||void 0===e?void 0:e.actionType,o=this.props,i=o.resetValue,l=o.onChange;"clear"===r?null===l||void 0===l||l(""):"reset"===r?null===l||void 0===l||l(null!==i&&void 0!==i?i:""):"expand"===e.actionType?this.treeRef.syncUnFolded(this.props,null===(a=e.args)||void 0===a?void 0:a.openLevel):"collapse"===e.actionType&&this.treeRef.syncUnFolded(this.props,1)},t.prototype.handleChange=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,i;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.onChange,r=t.dispatchEvent,o=t.data,[4,r("change",(0,u.createObject)(o,{value:e}))];case 1:return i=a.sent(),(null===i||void 0===i?void 0:i.prevented)?[2]:(n&&n(e),[2])}}))}))},t.prototype.domRef=function(e){this.treeRef=e},t.prototype.render=function(){var e=this.props,t=e.className,n=e.treeContainerClassName,a=e.classPrefix,l=e.value,u=e.enableNodePath,d=e.pathSeparator,c=void 0===d?"/":d,p=e.disabled,f=e.joinValues,m=e.extractValue,h=e.delimiter,v=e.placeholder,g=e.options,y=e.multiple,b=e.valueField,_=e.initiallyOpen,C=e.unfoldedLevel,E=e.withChildren,x=e.onlyChildren,w=e.loading,S=e.hideRoot,O=e.rootLabel,k=e.autoCheckChildren,D=e.cascade,N=e.rootValue,T=e.showIcon,P=e.showRadio,A=e.showOutline,I=e.onAdd,R=e.creatable,F=e.createTip,M=e.addControls,j=e.onEdit,L=e.editable,B=e.editTip,V=e.editControls,z=e.removable,U=e.removeTip,H=e.onDelete,W=e.rootCreatable,$=e.rootCreateTip,q=e.labelField,K=e.iconField,Y=e.nodePath,G=e.deferLoad,J=e.expandTreeOptions,Q=e.translate;return r.default.createElement("div",{className:(0,o.default)("".concat(a,"TreeControl"),t,n)},r.default.createElement(s.Spinner,{size:"sm",key:"info",show:w}),w?null:r.default.createElement(i.default,{classPrefix:a,onRef:this.domRef,labelField:q,valueField:b,iconField:K,disabled:p,onChange:this.handleChange,joinValues:f,extractValue:m,delimiter:h,placeholder:Q(v),options:g,multiple:y,initiallyOpen:_,unfoldedLevel:C,withChildren:E,onlyChildren:x,hideRoot:S,rootLabel:Q(O),rootValue:N,showIcon:T,showRadio:P,showOutline:A,autoCheckChildren:k,cascade:D,foldedField:"collapsed",value:l||"",nodePath:Y,enableNodePath:u,pathSeparator:c,selfDisabledAffectChildren:!1,onAdd:I,creatable:R,createTip:F,rootCreatable:W,rootCreateTip:$,onEdit:j,editable:L,editTip:B,removable:z,removeTip:U,onDelete:H,bultinCUD:!M&&!V,onDeferLoad:G,onExpandTree:J}))},t.defaultProps={placeholder:"loading",multiple:!1,rootLabel:"Tree.root",rootValue:"",showIcon:!0,enableNodePath:!1,pathSeparator:"/"},(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleChange",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"domRef",null),t}(r.default.Component);t.default=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,l.OptionsControl)({type:"input-tree"})],t),t}(d);t.TreeControlRenderer=c},5660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 14 14",className:"icon"},e),r.default.createElement("g",{id:"pencil",fill:"currentColor",fillRule:"nonzero"},r.default.createElement("path",{d:"M10.496,0.834 L13.168,3.506 C13.48,3.818 13.48,4.322 13.168,4.634 L10.904,6.898 L4.4,13.402 L0.6,13.402 L0.6,9.602 L7.848,2.354 L7.848,2.354 L9.368,0.834 C9.68,0.522 10.184,0.522 10.496,0.834 Z M7.67,3.663 L1.4,9.9333708 L1.4,12.602 L4.06862915,12.602 L10.338,6.331 L7.67,3.663 Z M9.932,1.40137085 L8.23537085,3.098 L10.904,5.76662915 L12.6006292,4.07 L9.932,1.40137085 Z M7,12.6 L11.8,12.6 L11.8,13.4 L7,13.4 L7,12.6 Z",id:"\\u5F62\\u72B6"})))};t.default=o},5709:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaVariableListPicker=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("32e1"),i=n("d77e"),l=(0,a.__importDefault)(n("7119")),s=(0,a.__importDefault)(n("1d67")),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.translate,n=e.schemas,a=e.value,o=e.onConfirm,i=e.onCancel,u=e.children,d=e.title,c=e.selectMode,p=e.beforeBuildVariables,f=e.onPickerOpen;return r.default.createElement(l.default,{onPickerOpen:f,title:null!==d&&void 0!==d?d:t("Select.placeholder"),bodyRender:function(e){var t,a=e.value,o=e.onChange,i=e.schemas,l=e.isOpened;return l?r.default.createElement(s.default,{value:null!==(t=null===a||void 0===a?void 0:a.value)&&void 0!==t?t:a,onSelect:function(e,t){return o({value:e,schema:t})},schemas:null!==i&&void 0!==i?i:n,selectMode:c,beforeBuildVariables:p}):r.default.createElement(r.default.Fragment,null)},value:a,onConfirm:o,onCancel:i},u)},t}(r.default.Component);t.SchemaVariableListPicker=u,t.default=(0,o.localeable)((0,i.themeable)(u))},5778:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AjaxAction=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("3eea")),o=n("7f82"),i=n("0069"),l=n("d369"),s=n("0d19"),u=function(){function e(){}return e.prototype.run=function(e,t,n){var s,u,d,c,p,f,m,h,v,g,y;return(0,a.__awaiter)(this,void 0,void 0,(function(){var b,_,C,E,x,w;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(!(null===(s=t.props.env)||void 0===s?void 0:s.fetcher))throw new Error("env.fetcher is required!");b=n.context.env,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,b.fetcher(null===(u=e.args)||void 0===u?void 0:u.api,(0,r.default)(null!==(d=e.args)&&void 0!==d?d:{},["api","options","messages"]),null!==(p=null===(c=e.args)||void 0===c?void 0:c.options)&&void 0!==p?p:{})];case 2:if(x=a.sent(),(0,l.isEmpty)(x.data)&&!x.ok||(_=(0,o.normalizeApiResponseData)(x.data),n.setData((0,l.createObject)(n.data,e.outputVar?(w={},w["".concat(e.outputVar)]=_,w):_))),!x.ok)throw new i.ServerError(null!==(h=null===(m=null===(f=e.args)||void 0===f?void 0:f.messages)||void 0===m?void 0:m.failed)&&void 0!==h?h:x.msg,x);return C=null!==(y=null===(g=null===(v=e.args)||void 0===v?void 0:v.messages)||void 0===g?void 0:g.success)&&void 0!==y?y:x.msg,C&&b.notify("success",C,void 0!==x.msgTimeout?{closeButton:!0,timeout:x.msgTimeout}:void 0),[2,x.data];case 3:return E=a.sent(),"ServerError"===E.type?(x=E.response,b.notify("error",E.message,void 0!==x.msgTimeout?{closeButton:!0,timeout:x.msgTimeout}:void 0)):b.notify("error",E.message),[3,4];case 4:return[2]}}))}))},e}();t.AjaxAction=u,(0,s.registerAction)("ajax",new u)},"58d2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=n("d369"),l=n("7e49"),s=a.__importStar(n("2ab4")),u=(0,a.__importDefault)(n("bc50")),d=n("6662"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.handleClick=function(e){var t=this;return function(n){var a;a=e.link?d.validations.isUrl({},e.link)?{type:"button",actionType:"url",url:e.link,blank:e.blank}:{type:"button",actionType:"link",link:e.link}:e.clickAction,(0,u.default)(n,a,t.props)}},t.prototype.render=function(){var e=this,t=this.props,n=t.itemClassName,o=t.source,u=t.data,d=t.options,c=t.classnames,p=(0,i.getPropValue)(this.props),f=[];return"string"===typeof o&&(0,l.isPureVariable)(o)?f=(0,l.resolveVariableAndFilter)(o,u,"| raw")||void 0:Array.isArray(p)?f=p:Array.isArray(d)&&(f=d),f&&!Array.isArray(f)&&(f=[f]),(null===f||void 0===f?void 0:f.length)?r.default.createElement(s.default,(0,a.__assign)({},this.props),f.map((function(t,a){return r.default.createElement(s.GridNavItem,{key:a,onClick:t.clickAction||t.link?e.handleClick(t):void 0,className:n,text:t.text,icon:t.icon,classnames:c,badge:t.badge?{badge:t.badge,data:u,classnames:c}:void 0})}))):null},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),t=(0,a.__decorate)([(0,o.Renderer)({type:"grid-nav"})],t),t}(r.default.Component);t.default=c},5956:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListMenu=void 0;var a=n("9ab4"),r=n("d77e"),o=(0,a.__importDefault)(n("ab5b")),i=n("32e1"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.renderItem=function(e,t,n){var r=this,i=this.props,l=i.classnames,s=i.itemRender,u=i.disabled,d=i.getItemProps,c=i.highlightIndex,p=i.selectedOptions,f=i.onSelect;if(Array.isArray(t.children)&&t.children.length){var m={items:[],index:e.index};return e.items.push(o.default.createElement("div",{className:l("ListMenu-group"),key:n},o.default.createElement("div",{className:l("ListMenu-groupLabel")},s(t)),t.children.reduce((function(e,t,n){return r.renderItem(e,t,n)}),m).items)),e.index=m.index,e}var h=e.index++;return e.items.push(o.default.createElement("div",(0,a.__assign)({className:l("ListMenu-item",t.className,u||t.disabled?"is-disabled":"",h===c?"is-highlight":"",~(p||[]).indexOf(t)?"is-active":""),key:h,onClick:f?function(e){return f(e,t)}:void 0},d({item:t,index:h})),o.default.createElement("div",{className:l("ListMenu-itemLabel")},s(t)))),e},t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,a=t.options,r=t.placeholder,i=t.prefix,l=t.children,s=this.props.translate;return o.default.createElement("div",{className:n("ListMenu")},i,Array.isArray(a)&&a.length?a.reduce((function(t,n,a){return e.renderItem(t,n,a)}),{items:[],index:0}).items:o.default.createElement("span",{className:n("ListMenu-placeholder")},s(r)),l)},t.defaultProps={placeholder:"placeholder.noOption",itemRender:function(e){return o.default.createElement(o.default.Fragment,null,e.label)},getItemProps:function(e){return null}},t}(o.default.Component);t.ListMenu=l,t.default=(0,r.themeable)((0,i.localeable)(l))},"5b07":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AudioRenderer=t.Audio=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("8103")),i=n("f83d"),l=n("d369"),s=n("c264"),u=n("a97c"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={src:(0,l.getPropValue)(t.props,(function(e){return e.src?(0,u.filter)(e.src,e.data,"| raw"):void 0}))||"",isReady:!1,muted:!1,playing:!1,played:0,seeking:!1,volume:.8,prevVolume:.8,loaded:0,playbackRate:1,showHandlePlaybackRate:!1,showHandleVolume:!1},t}var n;return(0,a.__extends)(t,e),t.prototype.componentWillUnmount=function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationTimeout)},t.prototype.componentDidMount=function(){var e=this.props.autoPlay,t=!!e;this.setState({playing:t},this.progress)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props;(0,l.detectPropValueChanged)(n,e,(function(e){return t.setState({src:e,playing:!1},(function(){t.audio.load(),t.progress()}))}),(function(e){return e.src?(0,u.filter)(e.src,e.data,"| raw"):void 0}))},t.prototype.progress=function(){if(clearTimeout(this.progressTimeout),this.state.src&&this.audio){var e=this.audio.currentTime||0,t=this.audio.duration,n=e/t,a=this.state.playing;a=!(1==n||!a),this.setState({played:n,playing:a}),this.progressTimeout=setTimeout(this.progress,this.props.progressInterval/this.state.playbackRate)}},t.prototype.audioRef=function(e){this.audio=e},t.prototype.load=function(){this.setState({isReady:!0})},t.prototype.handlePlaybackRate=function(e){this.audio.playbackRate=e,this.setState({playbackRate:e,showHandlePlaybackRate:!1})},t.prototype.handleMute=function(){if(this.state.src){var e=this.state,t=e.muted,n=e.prevVolume,a=t?n:0;this.audio.muted=!t,this.setState({muted:!t,volume:a})}},t.prototype.handlePlaying=function(){if(this.state.src){var e=this.state.playing;e?this.audio.pause():this.audio.play(),this.setState({playing:!e})}},t.prototype.getCurrentTime=function(){if(!this.audio||!this.state.src||!this.state.isReady)return"0:00";var e=this.audio.duration,t=this.state.played;return this.formatTime(e*(t||0))},t.prototype.getDuration=function(){if(!this.audio||!this.state.src)return"0:00";if(!this.state.isReady)return this.onDurationCheck(),"0:00";var e=this.audio,t=e.duration,n=e.seekable;return t===1/0&&n.length>0?n.end(n.length-1):this.formatTime(t)},t.prototype.onDurationCheck=function(){clearTimeout(this.durationTimeout);var e=this.audio&&this.audio.duration;e||(this.durationTimeout=setTimeout(this.onDurationCheck,500))},t.prototype.onSeekChange=function(e){if(this.state.src){var t=e.target.value;this.setState({played:t})}},t.prototype.onSeekMouseDown=function(){this.setState({seeking:!0})},t.prototype.onSeekMouseUp=function(e){if(this.state.seeking){var t=e.target.value,n=this.audio.duration;this.audio.currentTime=n*t;var a=this.props.loop,r=this.state.playing;r=!!(t<1||a)&&r,this.setState({playing:r,seeking:!1})}},t.prototype.setVolume=function(e){if(this.state.src){var t=e.target.value;this.audio.volume=t,this.setState({volume:t,prevVolume:t})}},t.prototype.formatTime=function(e){var t=new Date(1e3*e),n=t.getUTCHours(),a=t.getUTCMinutes(),r=this.pad(t.getUTCSeconds());return n?"".concat(n,":").concat(this.pad(a),":").concat(r):"".concat(a,":").concat(r)},t.prototype.pad=function(e){return("0"+e).slice(-2)},t.prototype.toggleHandlePlaybackRate=function(){this.state.src&&this.setState({showHandlePlaybackRate:!this.state.showHandlePlaybackRate})},t.prototype.toggleHandleVolume=function(e){this.state.src&&this.setState({showHandleVolume:e})},t.prototype.renderRates=function(){var e=this,t=this.props,n=t.rates,a=t.classnames,o=this.state,i=o.showHandlePlaybackRate,l=o.playbackRate;return n&&n.length?i?r.default.createElement("div",{className:a("Audio-rateControl")},n.map((function(t,n){return r.default.createElement("div",{key:n,className:a("Audio-rateControlItem"),onClick:function(){return e.handlePlaybackRate(t)}},"x",t.toFixed(1))}))):r.default.createElement("div",{className:a("Audio-rates"),onClick:this.toggleHandlePlaybackRate},"x",l.toFixed(1)):null},t.prototype.renderPlay=function(){var e=this.props.classnames,t=this.state.playing;return r.default.createElement("div",{className:e("Audio-play"),onClick:this.handlePlaying},t?r.default.createElement(s.Icon,{icon:"pause",className:"icon"}):r.default.createElement(s.Icon,{icon:"play",className:"icon"}))},t.prototype.renderTime=function(){var e=this.props.classnames;return r.default.createElement("div",{className:e("Audio-times")},this.getCurrentTime()," / ",this.getDuration())},t.prototype.renderProcess=function(){var e=this.props.classnames,t=this.state.played;return r.default.createElement("div",{className:e("Audio-process")},r.default.createElement("input",{type:"range",min:0,max:1,step:"any",value:t||0,onMouseDown:this.onSeekMouseDown,onChange:this.onSeekChange,onMouseUp:this.onSeekMouseUp}))},t.prototype.renderVolume=function(){var e=this,t=this.props.classnames,n=this.state,a=n.volume,o=n.showHandleVolume;return o?r.default.createElement("div",{className:t("Audio-volumeControl"),onMouseLeave:function(){return e.toggleHandleVolume(!1)}},r.default.createElement("div",{className:t("Audio-volumeControlIcon"),onClick:this.handleMute},a>0?r.default.createElement(s.Icon,{icon:"volume",className:"icon"}):r.default.createElement(s.Icon,{icon:"mute",className:"icon"})),r.default.createElement("input",{type:"range",min:0,max:1,step:"any",value:a,onChange:this.setVolume})):r.default.createElement("div",{className:t("Audio-volume"),onMouseEnter:function(){return e.toggleHandleVolume(!0)}},a>0?r.default.createElement(s.Icon,{icon:"volume",className:"icon"}):r.default.createElement(s.Icon,{icon:"mute",className:"icon"}))},t.prototype.render=function(){var e=this,t=this.props,n=t.className,a=t.inline,i=t.autoPlay,l=t.loop,s=t.controls,u=t.classnames,d=this.state,c=d.muted,p=d.src;return r.default.createElement("div",{className:u("Audio",n,a?"Audio--inline":"")},r.default.createElement("audio",{className:u("Audio-original"),ref:this.audioRef,onCanPlay:this.load,autoPlay:i,controls:!0,muted:c,loop:l},r.default.createElement("source",{src:p})),r.default.createElement("div",{className:u("Audio-controls")},s&&s.map((function(t,n){t="render"+(0,o.default)(t);var a=t;return r.default.createElement(r.default.Fragment,{key:n},e[a]())}))))},t.defaultProps={inline:!0,autoPlay:!1,playbackRate:1,loop:!1,rates:[],progressInterval:1e3,controls:["rates","play","time","process","volume"]},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"progress",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof HTMLMediaElement&&HTMLMediaElement)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"audioRef",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"load",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handlePlaybackRate",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleMute",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handlePlaying",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getCurrentTime",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getDuration",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onDurationCheck",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onSeekChange",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onSeekMouseDown",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onSeekMouseUp",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"setVolume",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"formatTime",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"pad",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"toggleHandlePlaybackRate",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Boolean]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"toggleHandleVolume",null),t}(r.default.Component);t.Audio=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,i.Renderer)({type:"audio"})],t),t}(d);t.AudioRenderer=c},"5b6b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d369"),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isOnComposition=!1,t.state={value:t.props.value},t}var n,i;return(0,a.__extends)(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;e.value!==t.value&&this.setState({value:t.value})},t.prototype.handleComposition=function(e){this.isOnComposition="compositionend"!==e.type,this.isOnComposition||this.handleChange(e)},t.prototype.handleChange=function(e){var t=this.props.onChange,n=e.currentTarget.value;this.isOnComposition||t&&t(e),this.setState({value:n})},t.prototype.render=function(){var e=this.props,t=e.forwardedRef,n=(0,a.__rest)(e,["forwardedRef"]);return r.default.createElement("input",(0,a.__assign)({type:"text"},n,{value:this.state.value,ref:t,onChange:this.handleChange,onCompositionStart:this.handleComposition,onCompositionUpdate:this.handleComposition,onCompositionEnd:this.handleComposition}))},(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.CompositionEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleComposition",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(i="undefined"!==typeof r.default&&r.default.ChangeEvent)?i:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleChange",null),t}(r.default.Component);t.default=r.default.forwardRef((function(e,t){return r.default.createElement(i,(0,a.__assign)({},e,{forwardedRef:t}))}))},"5c0d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Textarea=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("8bc8"),i=(0,a.__importDefault)(n("cf8d")),l=n("32e1"),s=n("d77e"),u=n("d369"),d=n("c264"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={focused:!1},t.inputRef=function(e){return t.input=(0,o.findDOMNode)(e)},t}var n,l,s;return(0,a.__extends)(t,e),t.prototype.valueToString=function(e){return"undefined"===typeof e||null===e?"":"string"===typeof e?e:JSON.stringify(e)},t.prototype.focus=function(){var e=this;this.input&&this.setState({focused:!0},(function(){if(e.input){e.input.focus();var t=e.input.value.length;t&&e.input.setSelectionRange(t,t)}}))},t.prototype.handleChange=function(e){var t=this.props.onChange,n=e.currentTarget.value;null===t||void 0===t||t(n)},t.prototype.handleFocus=function(e){var t=this.props.onFocus;this.setState({focused:!0},(function(){null===t||void 0===t||t(e)}))},t.prototype.handleBlur=function(e){var t=this.props,n=t.onBlur,a=t.trimContents,r=t.value,o=t.onChange;this.setState({focused:!1},(function(){a&&r&&"string"===typeof r&&(null===o||void 0===o||o(r.trim())),n&&n(e)}))},t.prototype.handleClear=function(){return(0,a.__awaiter)(this,void 0,void 0,(function(){var e,t,n;return(0,a.__generator)(this,(function(a){return e=this.props,t=e.onChange,n=e.resetValue,null===t||void 0===t||t(n),this.focus(),[2]}))}))},t.prototype.render=function(){var e,t=this.props,n=t.className,a=(t.classPrefix,t.value),o=t.placeholder,l=t.disabled,s=t.minRows,c=t.maxRows,p=t.readOnly,f=t.name,m=t.borderMode,h=t.classnames,v=t.maxLength,g=t.showCounter,y=t.clearable,b=g?this.valueToString(a).length:0;return r.default.createElement("div",{className:h("TextareaControl",(e={},e["TextareaControl--border".concat((0,u.ucFirst)(m))]=m,e["is-focused"]=this.state.focused,e["is-disabled"]=l,e),n)},r.default.createElement(i.default,{className:h("TextareaControl-input"),autoComplete:"off",ref:this.inputRef,name:f,disabled:l,value:this.valueToString(a),placeholder:o,autoCorrect:"off",spellCheck:"false",readOnly:p,minRows:s||void 0,maxRows:c||void 0,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur}),y&&!l&&a?r.default.createElement("a",{onClick:this.handleClear,className:h("TextareaControl-clear")},r.default.createElement(d.Icon,{icon:"input-clear",className:"icon"})):null,g?r.default.createElement("span",{className:h("TextareaControl-counter",{"is-empty":0===b,"is-clearable":y&&!l&&a})},"".concat(b).concat("number"===typeof v&&v?"/".concat(v):"")):null)},t.defaultProps={minRows:3,maxRows:20,trimContents:!0,resetValue:"",clearable:!1},(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.ChangeEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleChange",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(l="undefined"!==typeof r.default&&r.default.FocusEvent)?l:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleFocus",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(s="undefined"!==typeof r.default&&r.default.FocusEvent)?s:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleBlur",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleClear",null),t}(r.default.Component);t.Textarea=c,t.default=(0,s.themeable)((0,l.localeable)(c))},"5c45":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToastAction=void 0;var a=n("9ab4"),r=n("0d19"),o=function(){function e(){}return e.prototype.run=function(e,t,n){var r,o,i,l,s;return(0,a.__awaiter)(this,void 0,void 0,(function(){return(0,a.__generator)(this,(function(a){if(!(null===(r=t.props.env)||void 0===r?void 0:r.notify))throw new Error("env.notify is required!");return null===(i=(o=n.context.env).notify)||void 0===i||i.call(o,(null===(l=e.args)||void 0===l?void 0:l.msgType)||"info",String(null===(s=e.args)||void 0===s?void 0:s.msg),e.args),[2]}))}))},e}();t.ToastAction=o,(0,r.registerAction)("toast",new o)},"5d32":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 16 16",className:"icon"},e),r.default.createElement("title",null,"拖拽"),r.default.createElement("g",{id:"\\u62D6\\u62FD",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("rect",{id:"\\u77E9\\u5F62",stroke:"#979797",fill:"#D8D8D8",opacity:0,x:.5,y:.5,width:15,height:15}),r.default.createElement("path",{d:"M6,12 C5.44771525,12 5,12.4477152 5,13 C5,13.5522848 5.44771525,14 6,14 C6.55228475,14 7,13.5522848 7,13 C7,12.4477152 6.55228475,12 6,12 Z M6,7 C5.44771525,7 5,7.44771525 5,8 C5,8.55228475 5.44771525,9 6,9 C6.55228475,9 7,8.55228475 7,8 C7,7.44771525 6.55228475,7 6,7 Z M6,2 C5.44771525,2 5,2.4477153 5,3 C5,3.5522847 5.44771525,4 6,4 C6.55228475,4 7,3.5522847 7,3 C7,2.4477153 6.55228475,2 6,2 Z M10,12 C9.44771525,12 9,12.4477152 9,13 C9,13.5522848 9.44771525,14 10,14 C10.5522847,14 11,13.5522848 11,13 C11,12.4477152 10.5522847,12 10,12 Z M10,7 C9.44771525,7 9,7.44771525 9,8 C9,8.55228475 9.44771525,9 10,9 C10.5522847,9 11,8.55228475 11,8 C11,7.44771525 10.5522847,7 10,7 Z M10,2 C9.44771525,2 9,2.4477153 9,3 C9,3.5522847 9.44771525,4 10,4 C10.5522847,4 11,3.5522847 11,3 C11,2.4477153 10.5522847,2 10,2 Z",id:"\\u5F62\\u72B6",fill:"#151B26"})))};t.default=o},"5d73":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferRender=t.BaseTransferRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("2769")),i=n("d55b"),l=a.__importStar(n("369e")),s=n("d369"),u=(0,a.__importDefault)(n("c6e8")),d=n("79ae"),c=n("7e49"),p=n("739d"),f=n("4bb3"),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n,i,m,h;return(0,a.__extends)(t,e),t.prototype.handleChange=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o,i,l,u,c,p,f,m,h,v;return(0,a.__generator)(this,(function(g){switch(g.label){case 0:return n=this.props,r=n.onChange,o=n.joinValues,i=n.delimiter,l=n.valueField,u=n.extractValue,c=n.options,p=n.dispatchEvent,f=n.setOptions,m=e,h=c.concat(),Array.isArray(e)?(m=e.map((function(e){var n=(0,s.findTreeIndex)(c,(0,d.optionValueCompare)(e[l||"value"],l||"value"));if(n){if(t){var r=(0,s.getTree)(h,n);h=(0,s.spliceTree)(h,n,1,(0,a.__assign)((0,a.__assign)({},r),e))}}else h.push(e);return o||u?e[l||"value"]:e})),o&&(m=m.join(i||","))):e&&(m=o||u?e[l||"value"]:e),(h.length>c.length||t)&&f(h,!0),[4,p("change",{value:m,options:c})];case 1:return v=g.sent(),(null===v||void 0===v?void 0:v.prevented)?[2]:(r(m),[2])}}))}))},t.prototype.option2value=function(e){return e},t.prototype.handleSearch=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,l,u,c,p,f,m,h,v,g;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(n=this.props,r=n.searchApi,i=n.options,l=n.labelField,u=n.valueField,c=n.env,p=n.data,f=n.translate,!r)return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,c.fetcher(r,(0,s.createObject)(p,{term:e}),{cancelExecutor:t})];case 2:if(m=a.sent(),!m.ok)throw new Error(f(m.msg||"networkError"));if(h=m.data.options||m.data.items||m.data,!Array.isArray(h))throw new Error("CRUD.invalidArray");return[2,h.map((function(e){var t=null,n=e[u||"value"];return Array.isArray(i)&&null!==n&&void 0!==n&&(t=(0,o.default)(i,(0,d.optionValueCompare)(n,u))),t||e}))];case 3:return v=a.sent(),c.isCancel(v)||c.notify("error",v.message),[2,[]];case 4:return[3,6];case 5:return e?(g=(0,s.string2regExp)(e),[2,(0,s.filterTree)(i,(function(e){return!!(Array.isArray(e.children)&&e.children.length||e[u||"value"]&&(g.test(e[l||"label"])||g.test(e[u||"value"])))}),0,!0)]):[2,i];case 6:return[2]}}))}))},t.prototype.handleResultSearch=function(e,t){var n=this.props.valueField,a=(0,s.string2regExp)(e);return a.test(t[n||"value"])},t.prototype.optionItemRender=function(e,t){var n=this.props,a=n.menuTpl,r=n.render,o=n.data;return a?r("item/".concat(t.index),a,{data:(0,s.createObject)((0,s.createObject)(o,t),e)}):p.BaseSelection.itemRender(e,t)},t.prototype.resultItemRender=function(e,t){var n=this.props,a=n.valueTpl,r=n.render,o=n.data;return a?r("value/".concat(t.index),a,{onChange:t.onChange,data:(0,s.createObject)((0,s.createObject)(o,t),e)}):f.ResultList.itemRender(e)},t.prototype.renderCell=function(e,t,n,r){var o=this.props,i=o.render,l=o.data;return i("cell/".concat(n,"/").concat(r),(0,a.__assign)({type:"text"},e),{value:(0,c.resolveVariable)(e.name,t),data:(0,s.createObject)(l,t)})},t.prototype.getRef=function(e){this.tranferRef=e},t.prototype.onSelectAll=function(e){var t=this.props.dispatchEvent;t("selectAll",e)},t.prototype.doAction=function(e,t,n){var a,r=this.props,o=r.resetValue,i=r.onChange;switch(e.actionType){case"clear":null===i||void 0===i||i("");break;case"reset":null===i||void 0===i||i(null!==o&&void 0!==o?o:"");break;case"selectAll":null===(a=this.tranferRef)||void 0===a||a.selectAll();break}},t.prototype.render=function(){var e,t=this.props,n=t.className,a=t.classnames,o=t.selectedOptions,i=t.showArrow,s=t.sortable,d=t.selectMode,c=t.columns,p=t.loading,f=t.searchable,m=t.searchResultMode,h=t.searchResultColumns,v=t.deferLoad,g=t.leftMode,y=t.rightMode,b=t.disabled,_=t.selectTitle,C=t.resultTitle,E=(t.menuTpl,t.searchPlaceholder),x=t.resultListModeFollowSelect,w=void 0!==x&&x,S=t.resultSearchPlaceholder,O=t.resultSearchable,k=void 0!==O&&O,D=this.props,N=D.options,T=D.leftOptions,P=D.leftDefaultValue;return"associated"===d&&N&&N.length&&N[0].leftOptions&&Array.isArray(N[0].children)&&(T=N[0].leftOptions,P=null!==(e=N[0].leftDefaultValue)&&void 0!==e?e:P,N=N[0].children),r.default.createElement("div",{className:a("TransferControl",n)},r.default.createElement(l.default,{value:o,options:N,disabled:b,onChange:this.handleChange,option2value:this.option2value,sortable:s,showArrow:i,selectMode:d,searchResultMode:m,searchResultColumns:h,columns:c,onSearch:f?this.handleSearch:void 0,onDeferLoad:v,leftOptions:T,leftMode:g,rightMode:y,cellRender:this.renderCell,selectTitle:_,resultTitle:C,resultListModeFollowSelect:w,onResultSearch:this.handleResultSearch,searchPlaceholder:E,resultSearchable:k,resultSearchPlaceholder:S,optionItemRender:this.optionItemRender,resultItemRender:this.resultItemRender,onSelectAll:this.onSelectAll,onRef:this.getRef}),r.default.createElement(u.default,{overlay:!0,key:"info",show:p}))},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Boolean]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleChange",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"option2value",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String,"function"===typeof(n="undefined"!==typeof Function&&Function)?n:Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleSearch",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleResultSearch",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,"function"===typeof(i="undefined"!==typeof p.ItemRenderStates&&p.ItemRenderStates)?i:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"optionItemRender",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,"function"===typeof(m="undefined"!==typeof f.ItemRenderStates&&f.ItemRenderStates)?m:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"resultItemRender",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Object,Number,Number]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"renderCell",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(h="undefined"!==typeof l.Transfer&&l.Transfer)?h:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getRef",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Array]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onSelectAll",null),t}(r.default.Component);t.BaseTransferRenderer=m;var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t}(m);t.TransferRender=h,t.default=(0,i.OptionsControl)({type:"transfer"})(h)},"5de9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStyleNumber=t.calculatePosition=t.ownerDocument=t.getContainer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("8bc8")),o=(0,a.__importDefault)(n("4b9c")),i=(0,a.__importDefault)(n("ec33"));function l(e,t){return e="function"===typeof e?e():e,r.default.findDOMNode(e)||t}function s(e){var t;return(null===(t=r.default.findDOMNode(e))||void 0===t?void 0:t.ownerDocument)||document}function u(e){var t,n,a,r;return"BODY"===e.tagName?(n=window.innerWidth,a=window.innerHeight,r=s(e).documentElement.scrollTop||(null===e||void 0===e?void 0:e.scrollTop)):(t=(0,o.default)(e),n=t.width,a=t.height,r=e.scrollTop),{width:n,height:a,scroll:r}}function d(e,t,n,a){var r=u(n),o=r.scroll,i=r.height,l=e-a-o,s=e+a-o+t;return l<0?-l:s>i?i-s:0}function c(e,t,n,a){var r=u(n),o=r.width,i=e-a,l=e+a+t;return i<0?-i:l>o?o-l:0}function p(e,t,n,a,r,l){void 0===r&&(r=0),void 0===l&&(l=[0,0]);var s="BODY"===a.tagName?(0,o.default)(n):(0,i.default)(n,a),u=(0,o.default)(t),p=u.height,f=u.width,m=a.getBoundingClientRect(),h=t.getBoundingClientRect(),v=t.offsetWidth?h.width/t.offsetWidth:1,g=t.offsetHeight?h.height/t.offsetHeight:1;e="auto"===e?"left-bottom-left-top right-bottom-right-top left-top-left-bottom right-top-right-bottom left-bottom-left-top":e;var y=0,b=0,_="",C="",E=e;if(~e.indexOf("-")){var x=e.split(/\s+/);while(x.length){var w=E=x.shift(),S=w.split("-"),O=S[0],k=S[1],D=S[2],N=S[3];if(D=D||O,N=N||k,y="left"===O?s.left:"right"===O?s.left+s.width:s.left+s.width/2,b="top"===k?s.top:"bottom"===k?s.top+s.height:s.top+s.height/2,y-="left"===D?0:"right"===D?f:f/2,b-="top"===N?0:"bottom"===N?p:p/2,x.length){var T={x:m.x+y/v,y:m.y+b/g,width:f,height:p};if(T.x>0&&T.x+T.width0&&T.y+T.height80, 数学成绩>80)\n\n语文成绩和数学成绩都大于 80,则返回 true,否则返回 false\n\n也可以直接用表达式如:语文成绩>80 && 数学成绩>80",example:"AND(expression1, expression2, ...expressionN)",params:[{type:"...expression",name:"conditions",description:"条件表达式."}],returns:{type:"boolean",description:null},namespace:"逻辑函数"},{name:"OR",description:"条件任意一个满足条件,返回 true,否则返回 false\n\n示例:OR(语文成绩>80, 数学成绩>80)\n\n语文成绩和数学成绩任意一个大于 80,则返回 true,否则返回 false\n\n也可以直接用表达式如:语文成绩>80 || 数学成绩>80",example:"OR(expression1, expression2, ...expressionN)",params:[{type:"...expression",name:"conditions",description:"条件表达式."}],returns:{type:"boolean",description:null},namespace:"逻辑函数"},{name:"XOR",description:"异或处理,两个表达式同时为「真」,或者同时为「假」,则结果返回为「真」",example:"XOR(condition1, condition2)",params:[{type:"expression",name:"condition1",description:"条件表达式1"},{type:"expression",name:"condition2",description:"条件表达式2"}],returns:{type:"boolean",description:null},namespace:"逻辑函数"},{name:"IFS",description:'判断函数集合,相当于多个 else if 合并成一个。\n\n示例:IFS(语文成绩 > 80, "优秀", 语文成绩 > 60, "良", "继续努力")\n\n如果语文成绩大于 80,则返回优秀,否则判断大于 60 分,则返回良,否则返回继续努力。',example:"IFS(condition1, result1, condition2, result2,...conditionN, resultN)",params:[{type:"...any",name:"args",description:"条件,返回值集合"}],returns:{type:"any",description:"第一个满足条件的结果,没有命中的返回 false。"},namespace:"逻辑函数"},{name:"ABS",description:"返回传入数字的绝对值",example:"ABS(num)",params:[{type:"number",name:"num",description:"数值"}],returns:{type:"number",description:"传入数值的绝对值"},namespace:"数学函数"},{name:"MAX",description:"获取最大值,如果只有一个参数且是数组,则计算这个数组内的值",example:"MAX(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"数值"}],returns:{type:"number",description:"所有传入值中最大的那个"},namespace:"数学函数"},{name:"MIN",description:"获取最小值,如果只有一个参数且是数组,则计算这个数组内的值",example:"MIN(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"数值"}],returns:{type:"number",description:"所有传入值中最小的那个"},namespace:"数学函数"},{name:"SUM",description:"求和,如果只有一个参数且是数组,则计算这个数组内的值",example:"SUM(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"数值"}],returns:{type:"number",description:"所有传入数值的总和"},namespace:"数学函数"},{name:"INT",description:"将数值向下取整为最接近的整数",example:"INT(num)",params:[{type:"number",name:"num",description:"数值"}],returns:{type:"number",description:"数值对应的整形"},namespace:"数学函数"},{name:"MOD",description:"返回两数相除的余数,参数 number 是被除数,divisor 是除数",example:"MOD(num, divisor)",params:[{type:"number",name:"num",description:"被除数"},{type:"number",name:"divisor",description:"除数"}],returns:{type:"number",description:"两数相除的余数"},namespace:"数学函数"},{name:"PI",description:"圆周率 3.1415...",example:"PI()",params:[],returns:{type:"number",description:"圆周率数值"},namespace:"数学函数"},{name:"ROUND",description:"将数字四舍五入到指定的位数,可以设置小数位。",example:"ROUND(num[, numDigits = 2])",params:[{type:"number",name:"num",description:"要处理的数字"},{type:"number",name:"numDigits",description:"小数位数"}],returns:{type:"number",description:"传入数值四舍五入后的结果"},namespace:"数学函数"},{name:"FLOOR",description:"将数字向下取整到指定的位数,可以设置小数位。",example:"FLOOR(num[, numDigits=2])",params:[{type:"number",name:"num",description:"要处理的数字"},{type:"number",name:"numDigits",description:"小数位数"}],returns:{type:"number",description:"传入数值向下取整后的结果"},namespace:"数学函数"},{name:"CEIL",description:"将数字向上取整到指定的位数,可以设置小数位。",example:"CEIL(num[, numDigits=2])",params:[{type:"number",name:"num",description:"要处理的数字"},{type:"number",name:"numDigits",description:"小数位数"}],returns:{type:"number",description:"传入数值向上取整后的结果"},namespace:"数学函数"},{name:"SQRT",description:"开平方,参数 number 为非负数",example:"SQRT(num)",params:[{type:"number",name:"num",description:"要处理的数字"}],returns:{type:"number",description:"开平方的结果"},namespace:"数学函数"},{name:"AVG",description:"返回所有参数的平均值,如果只有一个参数且是数组,则计算这个数组内的值",example:"AVG(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"要处理的数字"}],returns:{type:"number",description:"所有数值的平均值"},namespace:"数学函数"},{name:"DEVSQ",description:"返回数据点与数据均值点之差(数据偏差)的平方和,如果只有一个参数且是数组,则计算这个数组内的值",example:"DEVSQ(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"要处理的数字"}],returns:{type:"number",description:"所有数值的平均值"},namespace:"数学函数"},{name:"AVEDEV",description:"数据点到其算术平均值的绝对偏差的平均值",example:"AVEDEV(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"要处理的数字"}],returns:{type:"number",description:"所有数值的平均值"},namespace:"数学函数"},{name:"HARMEAN",description:"数据点的调和平均值,如果只有一个参数且是数组,则计算这个数组内的值",example:"HARMEAN(num1, num2, ...numN)",params:[{type:"...number",name:"num",description:"要处理的数字"}],returns:{type:"number",description:"所有数值的平均值"},namespace:"数学函数"},{name:"LARGE",description:"数据集中第 k 个最大值",example:"LARGE(array, k)",params:[{type:"array",name:"nums",description:"要处理的数字"},{type:"number",name:"k",description:"第几大"}],returns:{type:"number",description:"所有数值的平均值"},namespace:"数学函数"},{name:"UPPERMONEY",description:"将数值转为中文大写金额",example:"UPPERMONEY(num)",params:[{type:"number",name:"num",description:"要处理的数字"}],returns:{type:"string",description:"数值中文大写字符"},namespace:"数学函数"},{name:"RAND",description:"返回大于等于 0 且小于 1 的均匀分布随机实数。每一次触发计算都会变化。\n\n示例:`RAND()*100`\n\n返回 0-100 之间的随机数",example:"RAND()",params:[],returns:{type:"number",description:"随机数"},namespace:"数学函数"},{name:"LAST",description:"取数据最后一个",example:"LAST(array)",params:[{type:"...number",name:"arr",description:"要处理的数组"}],returns:{type:"any",description:"最后一个值"},namespace:"数学函数"},{name:"LEFT",description:"返回传入文本左侧的指定长度字符串。",example:"LEFT(text, len)",params:[{type:"string",name:"text",description:"要处理的文本"},{type:"number",name:"len",description:"要处理的长度"}],returns:{type:"string",description:"对应字符串"},namespace:"文本函数"},{name:"RIGHT",description:"返回传入文本右侧的指定长度字符串。",example:"RIGHT(text, len)",params:[{type:"string",name:"text",description:"要处理的文本"},{type:"number",name:"len",description:"要处理的长度"}],returns:{type:"string",description:"对应字符串"},namespace:"文本函数"},{name:"LEN",description:"计算文本的长度",example:"LEN(text)",params:[{type:"string",name:"text",description:"要处理的文本"}],returns:{type:"number",description:"长度"},namespace:"文本函数"},{name:"LENGTH",description:"计算文本集合中所有文本的长度",example:"LENGTH(textArr)",params:[{type:"Array",name:"textArr",description:"要处理的文本集合"}],returns:{type:"Array",description:"长度集合"},namespace:"文本函数"},{name:"ISEMPTY",description:"判断文本是否为空",example:"ISEMPTY(text)",params:[{type:"string",name:"text",description:"要处理的文本"}],returns:{type:"boolean",description:"判断结果"},namespace:"文本函数"},{name:"CONCATENATE",description:"将多个传入值连接成文本",example:"CONCATENATE(text1, text2, ...textN)",params:[{type:"...string",name:"text",description:"文本集合"}],returns:{type:"string",description:"连接后的文本"},namespace:"文本函数"},{name:"CHAR",description:'返回计算机字符集的数字代码所对应的字符。\n\n`CHAR(97)` 等价于 "a"',example:"CHAR(code)",params:[{type:"number",name:"code",description:"编码值"}],returns:{type:"string",description:"指定位置的字符"},namespace:"文本函数"},{name:"LOWER",description:"将传入文本转成小写",example:"LOWER(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"UPPER",description:"将传入文本转成大写",example:"UPPER(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"UPPERFIRST",description:"将传入文本首字母转成大写",example:"UPPERFIRST(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"PADSTART",description:'向前补齐文本长度\n\n示例 `PADSTART("6", 2, "0")`\n\n返回 `06`',example:"PADSTART(text)",params:[{type:"string",name:"text",description:"文本"},{type:"number",name:"num",description:"目标长度"},{type:"string",name:"pad",description:"用于补齐的文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"CAPITALIZE",description:'将文本转成标题\n\n示例 `CAPITALIZE("star")`\n\n返回 `Star`',example:"CAPITALIZE(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"ESCAPE",description:'对文本进行 HTML 转义\n\n示例 `ESCAPE("star")`\n\n返回 `Star`',example:"ESCAPE(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"TRUNCATE",description:'对文本长度进行截断\n\n示例 `TRUNCATE("amis.baidu.com", 6)`\n\n返回 `amis...`',example:"TRUNCATE(text, 6)",params:[{type:"string",name:"text",description:"文本"},{type:"number",name:"text",description:"最长长度"}],returns:{type:"string",description:"结果文本"},namespace:"文本函数"},{name:"BEFORELAST",description:"取在某个分隔符之前的所有字符串",example:"BEFORELAST(text, '.')",params:[{type:"string",name:"text",description:"文本"},{type:"string",name:"delimiter",description:"结束文本"}],returns:{type:"string",description:"判断结果"},namespace:"文本函数"},{name:"SPLIT",description:'将文本根据指定片段分割成数组\n\n示例:`SPLIT("a,b,c", ",")`\n\n返回 `["a", "b", "c"]`',example:"SPLIT(text, ',')",params:[{type:"string",name:"text",description:"文本"},{type:"string",name:"delimiter",description:"文本片段"}],returns:{type:"Array",description:"文本集"},namespace:"文本函数"},{name:"TRIM",description:"将文本去除前后空格",example:"TRIM(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"处理后的文本"},namespace:"文本函数"},{name:"STRIPTAG",description:'去除文本中的 HTML 标签\n\n示例:`STRIPTAG("amis")`\n\n返回:`amis`',example:"STRIPTAG(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"处理后的文本"},namespace:"文本函数"},{name:"LINEBREAK",description:'将字符串中的换行转成 HTML `
`,用于简单换行的场景\n\n示例:`LINEBREAK("\\n")`\n\n返回:`
`',example:"LINEBREAK(text)",params:[{type:"string",name:"text",description:"文本"}],returns:{type:"string",description:"处理后的文本"},namespace:"文本函数"},{name:"STARTSWITH",description:"判断字符串(text)是否以特定字符串(startString)开始,是则返回 True,否则返回 False",example:"STARTSWITH(text, '片段')",params:[{type:"string",name:"text",description:"文本"},{type:"string",name:"startString",description:"起始文本"}],returns:{type:"string",description:"判断结果"},namespace:"文本函数"},{name:"ENDSWITH",description:"判断字符串(text)是否以特定字符串(endString)结束,是则返回 True,否则返回 False",example:"ENDSWITH(text, '片段')",params:[{type:"string",name:"text",description:"文本"},{type:"string",name:"endString",description:"结束文本"}],returns:{type:"string",description:"判断结果"},namespace:"文本函数"},{name:"CONTAINS",description:"判断参数 1 中的文本是否包含参数 2 中的文本。",example:"CONTAINS(text, searchText)",params:[{type:"string",name:"text",description:"文本"},{type:"string",name:"searchText",description:"搜索文本"}],returns:{type:"string",description:"判断结果"},namespace:"文本函数"},{name:"REPLACE",description:"对文本进行全量替换。",example:"REPLACE(text, search, replace)",params:[{type:"string",name:"text",description:"要处理的文本"},{type:"string",name:"search",description:"要被替换的文本"},{type:"string",name:"replace",description:"要替换的文本"}],returns:{type:"string",description:"处理结果"},namespace:"文本函数"},{name:"SEARCH",description:"对文本进行搜索,返回命中的位置",example:"SEARCH(text, search, 0)",params:[{type:"string",name:"text",description:"要处理的文本"},{type:"string",name:"search",description:"用来搜索的文本"},{type:"number",name:"start",description:"起始位置"}],returns:{type:"number",description:"命中的位置"},namespace:"文本函数"},{name:"MID",description:"返回文本字符串中从指定位置开始的特定数目的字符",example:"MID(text, from, len)",params:[{type:"string",name:"text",description:"要处理的文本"},{type:"number",name:"from",description:"起始位置"},{type:"number",name:"len",description:"处理长度"}],returns:{type:"number",description:"命中的位置"},namespace:"文本函数"},{name:"BASENAME",description:"返回路径中的文件名\n\n示例:`/home/amis/a.json`\n\n返回:a.json`",example:"BASENAME(text)",params:[{type:"string",name:"text",description:"要处理的文本"}],returns:{type:"string",description:"文件名"},namespace:"文本函数"},{name:"DATE",description:"创建日期对象,可以通过特定格式的字符串,或者数值。\n\n需要注意的是,其中月份的数值是从0开始的,也就是说,\n如果是12月份,你应该传入数值11。",example:"DATE('2021-12-06 08:20:00')",params:[],returns:{type:"Date",description:"日期对象"},namespace:"日期函数"},{name:"TIMESTAMP",description:"返回时间的时间戳",example:'TIMESTAMP(date[, format = "X"])',params:[{type:"date",name:"date",description:"日期对象"},{type:"string",name:"format",description:"时间戳格式,带毫秒传入 'x'。默认为 'X' 不带毫秒的。"}],returns:{type:"number",description:"时间戳"},namespace:"日期函数"},{name:"TODAY",description:"返回今天的日期",example:"TODAY()",params:[],returns:{type:"number",description:"日期"},namespace:"日期函数"},{name:"NOW",description:"返回现在的日期",example:"NOW()",params:[],returns:{type:"number",description:"日期"},namespace:"日期函数"},{name:"DATETOSTR",description:"将日期转成日期字符串",example:'DATETOSTR(date[, format="YYYY-MM-DD HH:mm:ss"])',params:[{type:"date",name:"date",description:"日期对象"},{type:"string",name:"format",description:'日期格式,默认为 "YYYY-MM-DD HH:mm:ss"'}],returns:{type:"number",description:"日期字符串"},namespace:"日期函数"},{name:"STARTOF",description:"返回日期的指定范围的开端",example:'STARTOF(date[unit = "day"])',params:[{type:"date",name:"date",description:"日期对象"},{type:"string",name:"unit",description:"比如可以传入 'day'、'month'、'year' 或者 `week` 等等"}],returns:{type:"date",description:"新的日期对象"},namespace:"日期函数"},{name:"ENDOF",description:"返回日期的指定范围的末尾",example:'ENDOF(date[unit = "day"])',params:[{type:"date",name:"date",description:"日期对象"},{type:"string",name:"unit",description:"比如可以传入 'day'、'month'、'year' 或者 `week` 等等"}],returns:{type:"date",description:"新的日期对象"},namespace:"日期函数"},{name:"YEAR",description:"返回日期的年份",example:"YEAR(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"MONTH",description:"返回日期的月份,这里就是自然月份。",example:"MONTH(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"DAY",description:"返回日期的天",example:"DAY(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"HOUR",description:"返回日期的小时",example:"HOUR(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"MINUTE",description:"返回日期的分",example:"MINUTE(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"SECOND",description:"返回日期的秒",example:"SECOND(date)",params:[{type:"date",name:"date",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"YEARS",description:"返回两个日期相差多少年",example:"YEARS(endDate, startDate)",params:[{type:"date",name:"endDate",description:"日期对象"},{type:"date",name:"startDate",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"MINUTES",description:"返回两个日期相差多少分钟",example:"MINUTES(endDate, startDate)",params:[{type:"date",name:"endDate",description:"日期对象"},{type:"date",name:"startDate",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"DAYS",description:"返回两个日期相差多少天",example:"DAYS(endDate, startDate)",params:[{type:"date",name:"endDate",description:"日期对象"},{type:"date",name:"startDate",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"HOURS",description:"返回两个日期相差多少小时",example:"HOURS(endDate, startDate)",params:[{type:"date",name:"endDate",description:"日期对象"},{type:"date",name:"startDate",description:"日期对象"}],returns:{type:"number",description:"数值"},namespace:"日期函数"},{name:"DATEMODIFY",description:"修改日期,对日期进行加减天、月份、年等操作\n\n示例:\n\nDATEMODIFY(A, -2, 'month')\n\n对日期 A 进行往前减2月的操作。",example:"DATEMODIFY(date, 2, 'days')",params:[{type:"date",name:"date",description:"日期对象"},{type:"number",name:"num",description:"数值"},{type:"string",name:"unit",description:"单位:支持年、月、天等等"}],returns:{type:"date",description:"日期对象"},namespace:"日期函数"},{name:"STRTODATE",description:"将字符日期转成日期对象,可以指定日期格式。\n\n示例:STRTODATE('2021/12/6', 'YYYY/MM/DD')",example:'STRTODATE(value[, format=""])',params:[{type:"string",name:"value",description:"日期字符"},{type:"string",name:"format",description:"日期格式"}],returns:{type:"date",description:"日期对象"},namespace:"日期函数"},{name:"ISBEFORE",description:"判断两个日期,是否第一个日期在第二个日期的前面",example:"ISBEFORE(a, b)",params:[{type:"date",name:"a",description:"第一个日期"},{type:"date",name:"b",description:"第二个日期"},{type:"string",name:"unit",description:"单位,默认是 'day', 即之比较到天"}],returns:{type:"boolean",description:"判断结果"},namespace:"日期函数"},{name:"ISAFTER",description:"判断两个日期,是否第一个日期在第二个日期的后面",example:"ISAFTER(a, b)",params:[{type:"date",name:"a",description:"第一个日期"},{type:"date",name:"b",description:"第二个日期"},{type:"string",name:"unit",description:"单位,默认是 'day', 即之比较到天"}],returns:{type:"boolean",description:"判断结果"},namespace:"日期函数"},{name:"ISSAMEORBEFORE",description:"判断两个日期,是否第一个日期在第二个日期的前面或者相等",example:"ISSAMEORBEFORE(a, b)",params:[{type:"date",name:"a",description:"第一个日期"},{type:"date",name:"b",description:"第二个日期"},{type:"string",name:"unit",description:"单位,默认是 'day', 即之比较到天"}],returns:{type:"boolean",description:"判断结果"},namespace:"日期函数"},{name:"ISSAMEORAFTER",description:"判断两个日期,是否第一个日期在第二个日期的后面或者相等",example:"ISSAMEORAFTER(a, b)",params:[{type:"date",name:"a",description:"第一个日期"},{type:"date",name:"b",description:"第二个日期"},{type:"string",name:"unit",description:"单位,默认是 'day', 即之比较到天"}],returns:{type:"boolean",description:"判断结果"},namespace:"日期函数"},{name:"COUNT",description:"返回数组的长度",example:"COUNT(arr)",params:[{type:"Array",name:"arr",description:"数组"}],returns:{type:"boolean",description:"结果"},namespace:"数组"},{name:"ARRAYMAP",description:"数组做数据转换,需要搭配箭头函数一起使用,注意箭头函数只支持单表达式用法。",example:"ARRAYMAP(arr, item => item)",params:[{type:"Array",name:"arr",description:"数组"},{type:"Array",name:"iterator",description:"箭头函数"}],returns:{type:"boolean",description:"结果"},namespace:"数组"},{name:"COMPACT",description:"数组过滤掉 false、null、0 和 \"\"\n\n示例:\n\nCOMPACT([0, 1, false, 2, '', 3]) 得到 [1, 2, 3]",example:"COMPACT(arr)",params:[{type:"Array",name:"arr",description:"数组"}],returns:{type:"Array",description:"结果"},namespace:"数组"},{name:"JOIN",description:"数组转成字符串\n\n示例:\n\nJOIN(['a', 'b', 'c'], '~') 得到 'a~b~c'",example:"JOIN(arr, string)",params:[{type:"Array",name:"arr",description:"数组"},{type:"String",name:"separator",description:"分隔符"}],returns:{type:"String",description:"结果"},namespace:"数组"}]},"628b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PaginationStore=void 0;var a=n("d369"),r=n("7e49"),o=n("9007");t.PaginationStore=o.iRendererStore.named("PaginationStore").props({page:1,perPage:10,inputName:"",outputName:"",mode:"normal"}).views((function(e){return{get inputItems(){var t=(0,r.resolveVariable)(e.inputName||"items",e.data);return Array.isArray(t)?t:[]},get locals(){var t,n=(e.page-1)*e.perPage;return(0,a.createObject)(e.data,(t={currentPage:e.page,lastPage:this.lastPage},t[e.outputName||"items"]=this.inputItems.slice(n,n+e.perPage),t))},get lastPage(){return Math.ceil(this.inputItems.length/e.perPage)}}})).actions((function(e){return{switchTo:function(t,n){e.page=t,"number"===typeof n&&(e.perPage=n)}}}))},"62c6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModalStore=void 0;var a=n("1727"),r=n("f7d3"),o=n("d369");t.ModalStore=a.ServiceStore.named("ModalStore").props({form:r.types.frozen(),entered:!1,resizeCoord:0,schema:r.types.frozen()}).views((function(e){return{get formData(){return(0,o.createObject)(e.data,e.form)}}})).actions((function(e){return{setEntered:function(t){e.entered=t},setFormData:function(t){e.form=t},reset:function(){e.form={},e.reInitData({},!0)},setResizeCoord:function(t){e.resizeCoord=t},setSchema:function(t){t&&t.then?t.then((function(t){return(0,r.isAlive)(e)&&e.setSchema(t)})):e.schema=t}}}))},6345:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormulaControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("2ab5"),i=n("a97c"),l=n("d369"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inited=!1,t}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.formInited,n=e.initSet,a=e.addHook;this.unHook=a?a(this.handleFormInit,"init"):void 0,!1!==t&&(this.inited=!0,!1===n||this.initSet())},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.formInited,a=t.initSet,r=t.autoSet;this.inited?!1===r||this.autoSet(e):"undefined"===typeof n&&(this.inited=!0,!1===a||this.initSet())},t.prototype.componentWillUnmount=function(){var e;null===(e=this.unHook)||void 0===e||e.call(this)},t.prototype.handleFormInit=function(e){this.inited=!0;var t=this.props,n=t.name,a=t.initSet;if(!1!==a){var r=this.initSet();"string"===typeof n&&"undefined"!==typeof r&&(0,l.setVariable)(e,n,r)}},t.prototype.initSet=function(){var e=this.props,t=e.formula,n=e.data,a=e.setPrinstineValue,r=(e.initSet,e.condition);if(t&&(!r||~r.indexOf("$")||~r.indexOf("<%")||(0,i.evalJS)(r,n))){var o=(0,i.evalJS)(t,n);return null!==o&&(null===a||void 0===a||a(o)),o}},t.prototype.autoSet=function(e){var t=this.props,n=e.formula,a=e.data,r=e.onChange,o=e.value,s=e.condition;if(n&&t.formula&&(0,l.isObjectShallowModified)(a,t.data,!1)&&o===t.value){var u=(0,i.evalJS)(t.formula,t.data);if(s&&t.condition)~s.indexOf("$")||~s.indexOf("<%")?(0,i.filter)(s,a)!==(0,i.filter)(t.condition,t.data)&&r(u):(0,i.evalJS)(t.condition,t.data)&&r(u);else{var d=(0,i.evalJS)(n,a);JSON.stringify(d)!==JSON.stringify(u)&&r(null!==u&&void 0!==u?u:"")}}},t.prototype.doAction=function(){var e=this.props,t=e.formula,n=e.data,a=e.onChange,r=(e.autoSet,e.value,(0,i.evalJS)(t,n));a(r)},t.prototype.render=function(){return null},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleFormInit",null),t}(r.default.Component);t.default=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.FormItem)({type:"formula",wrap:!1,strictMode:!1,sizeMutable:!1})],t),t}(s);t.FormulaControlRenderer=u},"64a6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 16 16",className:"icon"},e),r.default.createElement("title",null,"编辑"),r.default.createElement("g",{id:"\\u7F16\\u8F91",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("rect",{id:"\\u77E9\\u5F62",stroke:"#979797",fill:"#D8D8D8",opacity:0,x:.5,y:.5,width:15,height:15}),r.default.createElement("path",{d:"M8.491,1.5004 L8.491,2.5004 L2.5,2.5004 L2.5,13.5004 L13.5,13.5004 L13.5,7.5324 L14.5,7.5324 L14.5,14.5004 L1.5,14.5004 L1.5,1.5004 L8.491,1.5004 Z M13.7455,1.6217 L14.4525,2.3297 L8.0885,8.6937 L7.3815,7.9867 L13.7455,1.6217 Z",id:"\\u5F62\\u72B6\\u7ED3\\u5408",fill:"#151B26"})))};t.default=o},"64e3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classnames=t.classPrefix=void 0;var a=n("d77e");t.classPrefix="dark-",t.classnames=(0,a.makeClassnames)(t.classPrefix),(0,a.theme)("dark",{classPrefix:t.classPrefix,classnames:t.classnames,renderers:{json:{jsonTheme:"eighties"},"editor-control":{editorTheme:"vs-dark"}}})},"656e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t,n,a){void 0===a&&(a=1),this.r=e,this.g=t,this.b=n,this.a=a}return e.prototype.toRGBString=function(){return"rgb(".concat(Math.floor(this.r*this.a),",").concat(Math.floor(this.g*this.a),",").concat(Math.floor(this.b*this.a),")")},e.prototype.toRGBAString=function(){return"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.a,")")},e.prototype.toHexString=function(){return s(this)},e}();function r(e,t){o(e)&&(e=i(e));var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(n)return new a(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),t);throw new Error("".concat(e," is not a valid hex color."))}function o(e){var t=/^#(?:[0-9a-fA-F]{3})$/;return e.match(t)}function i(e){return e.substring(1).split("").map((function(e){return e+e})).join("")}function l(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function s(e){var t=Math.floor(e.r*e.a),n=Math.floor(e.g*e.a),a=Math.floor(e.b*e.a);return"#".concat(l(t)).concat(l(n)).concat(l(a))}var u=function(){function e(e,t,n,a){var o;void 0===a&&(a=1),this.min=isNaN(e)?0:e,this.max=isNaN(t)?0:t,this.min===this.max&&(this.max=this.min+1),this.maxthis.max)return this.colorStops[t-1];var n=this.max-this.min,r=(e-this.min)/n,o=Math.max(Math.ceil(r*(t-1)),1),i=this.colorStops[o-1],l=this.colorStops[o];r=r*(t-1)-(o-1);var s=Math.floor(r*l.r+(1-r)*i.r),u=Math.floor(r*l.g+(1-r)*i.g),d=Math.floor(r*l.b+(1-r)*i.b);return new a(s,u,d,this.alpha)},e}();t.default=u},"65bd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 6 4",className:"icon"},e),r.default.createElement("g",{id:"\\u63A7\\u4EF6",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("path",{d:"M1.5,2.28847549e-17 L1.5,4 L0.5,4 L0.5,-2.22044605e-16 L1.5,2.28847549e-17 Z M3.5,2.28847549e-17 L3.5,4 L2.5,4 L2.5,-2.22044605e-16 L3.5,2.28847549e-17 Z M5.5,2.28847549e-17 L5.5,4 L4.5,4 L4.5,-2.22044605e-16 L5.5,2.28847549e-17 Z",id:"\\u5F62\\u72B6\\u7ED3\\u5408",fill:"#D4E5FF"})))};t.default=o},6604:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Value=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d77e"),i=(0,a.__importDefault)(n("2356")),l=(0,a.__importDefault)(n("f7cf")),s=(0,a.__importDefault)(n("3dff")),u=n("79ae"),d=(0,a.__importDefault)(n("b4c5")),c=n("32e1"),p=n("edf0"),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.classnames,o=t.field,c=t.value,f=t.onChange,m=t.op,h=t.translate,v=t.data,g=t.disabled,y=t.formula,b=t.popOverContainer,_=t.renderEtrValue,C=void 0;if(y)y=Object.assign(y,{translate:h,classnames:n,data:v,value:null!==c&&void 0!==c?c:o.defaultValue,onChange:f,disabled:g}),C=r.default.createElement(p.FormulaPicker,(0,a.__assign)({},y));else if("text"===o.type)C=r.default.createElement(i.default,{value:null!==c&&void 0!==c?c:o.defaultValue,onChange:f,placeholder:h(o.placeholder),disabled:g});else if("number"===o.type)C=r.default.createElement(l.default,{placeholder:h(o.placeholder)||h("NumberInput.placeholder"),step:o.step,min:o.minimum,max:o.maximum,precision:o.precision,value:null!==c&&void 0!==c?c:o.defaultValue,onChange:f,disabled:g});else if("date"===o.type)C=r.default.createElement(s.default,{placeholder:h(o.placeholder)||h("Date.placeholder"),format:o.format||"YYYY-MM-DD",inputFormat:o.inputFormat||"YYYY-MM-DD",value:null!==c&&void 0!==c?c:o.defaultValue,onChange:f,timeFormat:"",disabled:g,popOverContainer:b});else if("time"===o.type)C=r.default.createElement(s.default,{viewMode:"time",placeholder:h(o.placeholder)||h("Time.placeholder"),format:o.format||"HH:mm",inputFormat:o.inputFormat||"HH:mm",value:null!==c&&void 0!==c?c:o.defaultValue,onChange:f,dateFormat:"",timeFormat:o.format||"HH:mm",disabled:g,popOverContainer:b});else if("datetime"===o.type)C=r.default.createElement(s.default,{placeholder:h(o.placeholder)||"Time.placeholder",format:o.format||"",inputFormat:o.inputFormat||"YYYY-MM-DD HH:mm",value:null!==c&&void 0!==c?c:o.defaultValue,onChange:f,timeFormat:o.timeFormat||"HH:mm",disabled:g,popOverContainer:b});else if("select"===o.type){var E=o.autoComplete;C=r.default.createElement(u.SelectWithRemoteOptions,{simpleValue:!0,options:o.options,source:o.source,autoComplete:E,searchable:o.searchable,value:null!==(e=null!==c&&void 0!==c?c:o.defaultValue)&&void 0!==e?e:"",data:v,onChange:f,multiple:"select_any_in"===m||"select_not_any_in"===m,disabled:g,popOverContainer:b})}else if("boolean"===o.type)C=r.default.createElement(d.default,{value:null!==c&&void 0!==c?c:o.defaultValue,onChange:f,disabled:g});else if("custom"===o.type)C=_?_(o.value,{data:v,onChange:f,value:null!==c&&void 0!==c?c:o.defaultValue}):null;else{var x=null!==c&&void 0!==c?c:o.defaultValue;C=_?_(o,{data:v,onChange:f,value:x?x[o.name]:x}):null}return r.default.createElement("div",{className:n("CBValue")},C)},t}(r.default.Component);t.Value=f,t.default=(0,o.themeable)((0,c.localeable)(f))},"661a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 7 12",className:"icon"},e),r.default.createElement("g",{fill:"currentColor"},r.default.createElement("polygon",{points:"3.5354 0.0004 2.8284 0.7064 0.0004 3.5344 0.7074 4.2424 3.0354 1.9134 3.0354 5.0354 4.0354 5.0354 4.0354 1.9134 6.3634 4.2424 7.0704 3.5344 4.2424 0.7064"}),r.default.createElement("polygon",{points:"3.035 7.0348 3.035 10.1558 0.708 7.8278 0 8.5348 2.828 11.3628 3.535 12.0708 4.243 11.3628 7.071 8.5348 6.363 7.8278 4.036 10.1558 4.036 7.0348"})))};t.default=o},6662:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.str2rules=t.validateObject=t.validate=t.validateMessages=t.addRule=t.validations=void 0;var a=n("9ab4"),r=n("a97c"),o=n("7e49"),i=function(e){return null!==e&&void 0!==e},l=function(e){return""===e},s=function(e){return e instanceof RegExp?e:/^(?:matchRegexp\:)?\/(.+)\/([gimuy]*)$/.test(e)?new RegExp(RegExp.$1,RegExp.$2||""):"string"===typeof e?new RegExp(e):/^$/},u=(0,a.__importDefault)(n("e380")),d=(0,a.__importDefault)(n("60ed")),c=(0,u.default)((function(e){e=(0,a.__assign)({schemes:["http","https","ftp","sftp"],allowLocal:!0,allowDataUrl:!1},(0,d.default)(e)?e:{});var t=e.schemes,n=e.allowLocal,r=e.allowDataUrl;Array.isArray(t)||(t=["http","https","ftp","sftp"]);var o="^(?:(?:"+t.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",i="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";if(n?i+="?":o+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",o+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+i+")(?::\\d{2,5})?(?:[/?#]\\S*)?$",r){var l="\\w+\\/[-+.\\w]+(?:;[\\w=]+)*",s="[A-Za-z0-9-_.!~\\*'();\\/?:@&=+$,%]*",u="data:(?:"+l+")?(?:;base64)?,"+s;o="(?:"+o+")|(?:^"+u+"$)"}return new RegExp(o,"i")}));function p(e,n,a){void 0===a&&(a=""),t.validations[e]=n,t.validateMessages[e]=a}function f(e,n,i,l,s){void 0===s&&(s=function(e){return e});var u=[];return i&&Object.keys(i).forEach((function(d){if(i[d]||0===i[d]){if("function"!==typeof t.validations[d])throw new Error("Validation `"+d+"` not exists!");var c=t.validations[d],p=(Array.isArray(i[d])?i[d]:[i[d]]).map((function(e){return"string"===typeof e&&(0,o.isPureVariable)(e)?(0,o.resolveVariableAndFilter)(e,n,"|raw"):e}));c.apply(void 0,(0,a.__spreadArray)([n,e],p,!1))||u.push({rule:d,msg:(0,r.filter)(s(l&&l[d]||t.validateMessages[d]),(0,a.__assign)({},[""].concat(p)))})}})),u}function m(e,t,n,a){void 0===a&&(a=function(e){return e});var r={};return Object.keys(t).forEach((function(o){var i=f(e[o],e,!0===t[o]?{isRequired:!0}:t[o],n,a);i.length&&(r[o]=i)})),r}t.validations={isRequired:function(e,t){return void 0!==t&&""!==t&&null!==t&&(!Array.isArray(t)||!!t.length)},isExisty:function(e,t){return i(t)},matchRegexp:function(e,t,n){return!i(t)||l(t)||s(n).test(t)},isUndefined:function(e,t){return void 0===t},isEmptyString:function(e,t){return l(t)},isEmail:function(e,n){return t.validations.matchRegexp(e,n,/^((([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(e,n,a){return t.validations.matchRegexp(e,n,c(a))},isTrue:function(e,t){return!0===t},isFalse:function(e,t){return!1===t},isNumeric:function(e,n){return"number"===typeof n||t.validations.matchRegexp(e,n,/^[-+]?(?:\d*[.])?\d+$/)},isAlpha:function(e,n){return t.validations.matchRegexp(e,n,/^[A-Z]+$/i)},isAlphanumeric:function(e,n){return t.validations.matchRegexp(e,n,/^[0-9A-Z]+$/i)},isInt:function(e,n){return t.validations.matchRegexp(e,n,/^(?:[-+]?(?:0|[1-9]\d*))$/)},isFloat:function(e,n){return t.validations.matchRegexp(e,n,/^(?:[-+]?(?:\d+))?(?:\.\d*)?(?:[eE][\+\-]?(?:\d+))?$/)},isWords:function(e,n){return t.validations.matchRegexp(e,n,/^[A-Z\s]+$/i)},isSpecialWords:function(e,n){return t.validations.matchRegexp(e,n,/^[A-Z\s\u00C0-\u017F]+$/i)},isLength:function(e,t,n){return!i(t)||l(t)||t.length===n},equals:function(e,t,n){return!i(t)||l(t)||t==n},equalsField:function(e,t,n){return t==e[n]},maxLength:function(e,t,n){return"number"===typeof t&&(t=String(t)),!i(t)||t.length<=n},minLength:function(e,t,n){return!i(t)||l(t)||t.length>=n},isUrlPath:function(e,t,n){return!i(t)||l(t)||/^[a-z0-9_\\-]+$/i.test(t)},maximum:function(e,t,n){return!i(t)||l(t)||(parseFloat(t)||0)<=(parseFloat(n)||0)},lt:function(e,t,n){return!i(t)||l(t)||(parseFloat(t)||0)<(parseFloat(n)||0)},minimum:function(e,t,n){return!i(t)||l(t)||(parseFloat(t)||0)>=(parseFloat(n)||0)},gt:function(e,t,n){return!i(t)||l(t)||(parseFloat(t)||0)>(parseFloat(n)||0)},isJson:function(e,t,n){if(i(t)&&!l(t)&&"string"===typeof t)try{var a=JSON.parse(t);return!("object"!==typeof a||!a)}catch(r){return!1}return!0},isPhoneNumber:function(e,t){return!i(t)||l(t)||/^[1]([3-9])[0-9]{9}$/.test(t)},isTelNumber:function(e,t){return!i(t)||l(t)||/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(t)},isZipcode:function(e,t){return!i(t)||l(t)||/^\d{6}$/.test(t)},isId:function(e,t){return!i(t)||l(t)||/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}$)/.test(t)},notEmptyString:function(e,t){return!i(t)||!(String(t)&&""===String(t).trim())},matchRegexp1:function(e,n,a){return t.validations.matchRegexp(e,n,a)},matchRegexp2:function(e,n,a){return t.validations.matchRegexp(e,n,a)},matchRegexp3:function(e,n,a){return t.validations.matchRegexp(e,n,a)},matchRegexp4:function(e,n,a){return t.validations.matchRegexp(e,n,a)},matchRegexp5:function(e,n,a){return t.validations.matchRegexp(e,n,a)},matchRegexp6:function(e,n,a){return t.validations.matchRegexp(e,n,a)},matchRegexp7:function(e,n,a){return t.validations.matchRegexp(e,n,a)},matchRegexp8:function(e,n,a){return t.validations.matchRegexp(e,n,a)},matchRegexp9:function(e,n,a){return t.validations.matchRegexp(e,n,a)}},t.addRule=p,t.validateMessages={isEmail:"validate.isEmail",isRequired:"validate.isRequired",isUrl:"validate.isUrl",isInt:"validate.isInt",isAlpha:"validate.isAlpha",isNumeric:"validate.isNumeric",isAlphanumeric:"validate.isAlphanumeric",isFloat:"validate.isFloat",isWords:"validate.isWords",isUrlPath:"validate.isUrlPath",matchRegexp:"validate.matchRegexp",minLength:"validate.minLength",maxLength:"validate.maxLength",maximum:"validate.maximum",lt:"validate.lt",minimum:"validate.minimum",gt:"validate.gt",isJson:"validate.isJson",isLength:"validate.isLength",notEmptyString:"validate.notEmptyString",equalsField:"validate.equalsField",equals:"validate.equals",isPhoneNumber:"validate.isPhoneNumber",isTelNumber:"validate.isTelNumber",isZipcode:"validate.isZipcode",isId:"validate.isId"},t.validate=f,t.validateObject=m;var h=function(e){var t=0,n={};return e.replace(/matchRegexp\d*\s*\:\s*\/.*?\/[igm]*/g,(function(e){return n["__".concat(t)]=e,"__".concat(t++)})).split(/,(?![^{\[]*[}\]])/g).map((function(e){return/^__\d+$/.test(e)?n[e]:e.trim()}))};function v(e){return"string"===typeof e?e?h(e).reduce((function(e,t){var n=t.indexOf(":"),a=t,r=[];return~n&&(a=t.substring(0,n),r=/^matchRegexp/.test(a)?[t.substring(n+1).trim()]:t.substring(n+1).split(",").map((function(e){try{return JSON.parse(e)}catch(t){return e}}))),e[a]=!r.length||r,e}),{}):{}:e||{}}t.str2rules=v},6693:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UUIDControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d369"),i=n("2ab5"),l=function(e){function t(t){var n=e.call(this,t)||this;return t.value||n.setValue(),n}return(0,a.__extends)(t,e),t.prototype.componentDidUpdate=function(e){e.value||this.setValue()},t.prototype.setValue=function(){var e=this.props,t=(0,o.uuidv4)();e.length&&(t=t.substring(0,e.length)),e.onChange(t)},t.prototype.render=function(){return null},t}(r.default.Component);t.default=l;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,i.FormItem)({type:"uuid",wrap:!1,sizeMutable:!1})],t),t}(l);t.UUIDControlRenderer=s},"679d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkFieldRenderer=t.LinkCmpt=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=n("d369"),l=n("a97c"),s=n("4864"),u=(0,a.__importDefault)(n("7fed")),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return(0,a.__extends)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.env,a=t.href,r=t.blank,o=t.body;null===n||void 0===n||n.tracker({eventType:"url",eventData:{url:a,blank:r,label:o}},this.props)},t.prototype.getHref=function(){},t.prototype.render=function(){var e=this.props,t=e.className,n=e.body,a=e.href,o=(e.classnames,e.blank),s=e.disabled,d=e.htmlTarget,c=e.data,p=e.render,f=e.translate,m=e.title,h=e.icon,v=e.rightIcon,g=("string"===typeof a&&a?(0,l.filter)(a,c,"| raw"):void 0)||(0,i.getPropValue)(this.props);return r.default.createElement(u.default,{className:t,href:g,disabled:s,title:m,htmlTarget:d||(o?"_blank":"_self"),icon:h,rightIcon:v,onClick:this.handleClick},n?p("body",n):g||f("link"))},t.defaultProps={blank:!0,disabled:!1,htmlTarget:""},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.MouseEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),t}(r.default.Component);t.LinkCmpt=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"link"}),s.withBadge],t),t}(d);t.LinkFieldRenderer=c},6832:function(e,t,n){(()=>{"use strict";var e={7528:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>u});var a,r,o,i,l=n(6689);function s(){return s=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>l});var a,r,o=n(6689);function i(){return i=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>l});var a,r,o=n(6689);function i(){return i=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>l});var a,r,o=n(6689);function i(){return i=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>l});var a,r,o=n(6689);function i(){return i=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>l});var a,r,o=n(6689);function i(){return i=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{n.r(t),n.d(t,{default:()=>i});var a,r=n(6689);function o(){return o=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicEditor=t.RendererEditor=void 0;var a=n(752),r=n(9756),o=n(9933);t.RendererEditor=function(e,t){return function(n){(0,r.registerEditorPlugin)(function(n){function r(a){var r=n.call(this,a)||this;return r.rendererName=e,r.name=r.tipName||t.name,r.description=t.description,r.scaffold=t.scaffold||{type:t.type},r.previewSchema=t.previewSchema||r.scaffold,r.settingsSchema&&(r.panelTitle=r.settingsSchema.title,r.panelControls=r.settingsSchema.body),r}return a.__extends(r,n),r}(n))}};var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t}(o.BasePlugin);t.BasicEditor=i},3164:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importDefault(n(6689)),o=n(6211),i=n(1502),l=n(2062),s=n(3570),u=function(e){function t(t){var n=e.call(this,t)||this;return n.breadcrumbRef=r.default.createRef(),n.bcnContentRef=r.default.createRef(),n.state={showLeftScrollBtn:!1,showRightScrollBtn:!1},n.unReaction=(0,o.reaction)((function(){return n.props.store.bcn}),(function(){n.refreshHandleScroll(!0)})),n}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.getCurBreadcrumb(),n=this.getBreadcrumbContainer();t&&n&&(this.unSensor=(0,i.resizeSensor)(n,(function(){e.refreshHandleScroll()})))},t.prototype.componentWillUnmount=function(){this.unReaction(),this.unSensor&&(this.unSensor(),delete this.unSensor)},t.prototype.refreshHandleScroll=function(e){var t=this;setTimeout((function(){t.HandleScroll(e)}),0)},t.prototype.getCurBreadcrumb=function(){return this.bcnContentRef.current},t.prototype.getBreadcrumbContainer=function(){return this.breadcrumbRef.current},t.prototype.getScrollLeft=function(){var e=this.getCurBreadcrumb();return e?e.style.left:"0"},t.prototype.toNumber=function(e){return e?Number.parseInt(e):0},t.prototype.HandleScroll=function(e){var t=this.getCurBreadcrumb(),n=this.getBreadcrumbContainer();if(t&&n){var a=this.toNumber(this.getScrollLeft()),r=t.offsetWidth-n.offsetWidth;e&&(t.style.left="0"),this.setState({showLeftScrollBtn:a<0,showRightScrollBtn:a>-r})}},t.prototype.handleScrollToLeft=function(){var e=this.getCurBreadcrumb();if(e){var t=this.toNumber(this.getScrollLeft());t>=-50&&t<0?(e.style.left="0",this.refreshHandleScroll()):t<-50&&(e.style.left="".concat(t+50,"px"),this.refreshHandleScroll())}},t.prototype.handleScrollToRight=function(){var e=this.getCurBreadcrumb(),t=this.getBreadcrumbContainer();if(e&&t){var n=this.toNumber(this.getScrollLeft()),a=e.offsetWidth-t.offsetWidth;e.style.left=n-50>-a?"".concat(n-50,"px"):"-".concat(a,"px"),this.refreshHandleScroll()}},t.prototype.handleClick=function(e){var t,n=e.currentTarget,a=n.getAttribute("data-node-id"),r=n.getAttribute("data-node-region"),o=this.props.store,i=(this.props.manager,o.getNodeById(a));!1!==(null===(t=null==i?void 0:i.info)||void 0===t?void 0:t.editable)&&(r?o.setActiveId(a,r):o.setActiveId(a))},t.prototype.handleMouseEnter=function(e){var t=e.currentTarget,n=t.getAttribute("data-node-id"),a=t.getAttribute("data-node-region");this.props.store.setHoverId(n,a)},t.prototype.render=function(){var e=this,t=this.props.store,n=this.state,a=n.showLeftScrollBtn,o=n.showRightScrollBtn,l=t.bcn;return r.default.createElement("div",{className:"ae-Breadcrumb",ref:this.breadcrumbRef},a&&r.default.createElement("div",{className:"ae-Breadcrumb-scrollLeft-btn",onClick:this.handleScrollToLeft},r.default.createElement(i.Icon,{icon:"editor-double-arrow",className:"icon"})),r.default.createElement("div",{className:"ae-Breadcrumb-content",ref:this.bcnContentRef},l.length?r.default.createElement("ul",null,l.map((function(t,n){var a,o=null===(a=t.parent)||void 0===a?void 0:a.uniqueChildren;return r.default.createElement("li",{key:n},r.default.createElement("span",{"data-node-id":t.id,"data-node-region":t.region,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter},t.label),(null==o?void 0:o.length)>1?r.default.createElement("ul",null,o.map((function(n){return r.default.createElement("li",{key:"".concat(n.id,"-").concat(n.region)},r.default.createElement("span",{"data-node-id":n.id,"data-node-region":n.region,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,className:n.id===t.id&&n.region===t.region?"is-active":""},n.label))}))):null)}))):null),o&&r.default.createElement("div",{className:"ae-Breadcrumb-scrollRight-btn",onClick:this.handleScrollToRight},r.default.createElement(i.Icon,{icon:"editor-double-arrow",className:"icon"})))},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Boolean]),a.__metadata("design:returntype",void 0)],t.prototype,"refreshHandleScroll",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getCurBreadcrumb",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getBreadcrumbContainer",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",String)],t.prototype,"getScrollLeft",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",Number)],t.prototype,"toNumber",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Boolean]),a.__metadata("design:returntype",void 0)],t.prototype,"HandleScroll",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleScrollToLeft",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleScrollToRight",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleMouseEnter",null),a.__decorate([l.observer,a.__metadata("design:paramtypes",[Object])],t)}(r.default.Component);t.default=u},425:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ClassNameControl=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(6405),l=[{label:"外边距",children:[{label:"整体",children:[{label:"极小",value:"m-xs"},{label:"小",value:"m-sm"},{label:"正常",value:"m"},{label:"中",value:"m-md"},{label:"大",value:"m-lg"}]},{label:"上边距",children:[{label:"极小",value:"m-t-xs"},{label:"小",value:"m-t-sm"},{label:"正常",value:"m-t"},{label:"中",value:"m-t-md"},{label:"大",value:"m-t-lg"}]},{label:"右边距",children:[{label:"极小",value:"m-r-xs"},{label:"小",value:"m-r-sm"},{label:"正常",value:"m-r"},{label:"中",value:"m-r-md"},{label:"大",value:"m-r-lg"}]},{label:"下边距",children:[{label:"极小",value:"m-b-xs"},{label:"小",value:"m-b-sm"},{label:"正常",value:"m-b"},{label:"中",value:"m-b-md"},{label:"大",value:"m-b-lg"}]},{label:"左边距",children:[{label:"极小",value:"m-l-xs"},{label:"小",value:"m-l-sm"},{label:"正常",value:"m-l"},{label:"中",value:"m-l-md"},{label:"大",value:"m-l-lg"}]},{label:"置无",children:[{label:"全部",value:"m-none"},"|",{label:"上",value:"m-t-none"},{label:"右",value:"m-r-none"},{label:"下",value:"m-b-none"},{label:"左",value:"m-l-none"}]}]},{label:"内边距",children:[{label:"整体",children:[{label:"极小",value:"p-xs"},{label:"小",value:"p-sm"},{label:"正常",value:"p"},{label:"中",value:"p-md"},{label:"大",value:"p-lg"}]},{label:"上边距",children:[{label:"极小",value:"p-t-xs"},{label:"小",value:"p-t-sm"},{label:"正常",value:"p-t"},{label:"中",value:"p-t-md"},{label:"大",value:"p-t-lg"}]},{label:"右边距",children:[{label:"极小",value:"p-r-xs"},{label:"小",value:"p-r-sm"},{label:"正常",value:"p-r"},{label:"中",value:"p-r-md"},{label:"大",value:"p-r-lg"}]},{label:"下边距",children:[{label:"极小",value:"p-b-xs"},{label:"小",value:"p-b-sm"},{label:"正常",value:"p-b"},{label:"中",value:"p-b-md"},{label:"大",value:"p-b-lg"}]},{label:"左边距",children:[{label:"极小",value:"p-l-xs"},{label:"小",value:"p-l-sm"},{label:"正常",value:"p-l"},{label:"中",value:"p-l-md"},{label:"大",value:"p-l-lg"}]},{label:"置无",children:[{label:"全部",value:"p-none"},"|",{label:"上",value:"p-t-none"},{label:"右",value:"p-r-none"},{label:"下",value:"p-b-none"},{label:"左",value:"p-l-none"}]}]},{label:"边框",className:"w2x",children:[{label:"位置",children:[{label:"全部",value:"b-a"},"|",{label:"上",value:"b-t"},{label:"右",value:"b-r"},{label:"下",value:"b-b"},{label:"左",value:"b-l"},"|",{label:"置无",value:"no-border"}]},{label:"大小",children:[{label:"2x",value:"b-2x"},{label:"3x",value:"b-3x"},{label:"4x",value:"b-4x"},{label:"5x",value:"b-5x"}]},{label:"颜色",children:[{label:"主色",value:"b-primary",className:"bg-primary"},{label:"信息",value:"b-info",className:"bg-info"},{label:"警告",value:"b-warning",className:"bg-warning"},{label:"危险",value:"b-danger",className:"bg-danger"},{label:"成功",value:"b-success",className:"bg-success"},{label:"白色",value:"b-white",className:"bg-white"},{label:"暗色",value:"b-dark",className:"bg-dark"},{label:"浅色",value:"b-light",className:"bg-light"}]}]},{label:"其他",className:"w2x",children:[{label:"圆角",children:[{label:"全部",value:"r"},"|",{label:"上",value:"r-t"},{label:"右",value:"r-r"},{label:"下",value:"r-b"},{label:"左",value:"r-l"},"|",{label:"2x",value:"r-2x"},{label:"3x",value:"r-3x"}]},{label:"字体",children:[{label:"正常",value:"font-normal"},{label:"细",value:"font-thin"},{label:"粗",value:"font-bold"},"|",{label:"极小",value:"text-xs"},{label:"小",value:"text-sm"},{label:"正常",value:"text-base"},{label:"中",value:"text-md"},{label:"大",value:"text-lg"}]},{label:"颜色",children:[{label:"主色",value:"text-primary",className:"text-primary"},{label:"信息",value:"text-info",className:"text-info"},{label:"警告",value:"text-warning",className:"text-warning"},{label:"危险",value:"text-danger",className:"text-danger"},{label:"成功",value:"text-success",className:"text-success"},{label:"白色",value:"text-white",className:"text-white bg-dark"},{label:"暗色",value:"text-dark",className:"text-dark"},{label:"淡色",value:"text-muted",className:"text-muted"}]},{label:"背景",children:[{label:"主色",value:"bg-primary",className:"bg-primary"},{label:"信息",value:"bg-info",className:"bg-info"},{label:"警告",value:"bg-warning",className:"bg-warning"},{label:"危险",value:"bg-danger",className:"bg-danger"},{label:"成功",value:"bg-success",className:"bg-success"},{label:"白色",value:"bg-white",className:"bg-white"},{label:"暗色",value:"bg-dark",className:"bg-dark"},{label:"浅色",value:"bg-light",className:"bg-light"},"|",{label:"置无",value:"no-bg"}]},{label:"宽度",children:[{label:"特小",value:"w-xxs"},{label:"极小",value:"w-xs"},{label:"小",value:"w-sm"},{label:"正常",value:"w"},{label:"中",value:"w-md"},{label:"大",value:"w-lg"},{label:"加大",value:"w-xl"},{label:"特大",value:"w-xxl"},{label:"占满",value:"w-full"}]}]}],s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isFocused:!1,isOpened:!1},t.values=[],t}return a.__extends(t,e),t.prototype.open=function(){this.setState({isOpened:!0})},t.prototype.close=function(){this.setState({isOpened:!1})},t.prototype.toggle=function(){this.setState({isOpened:!this.state.isOpened})},t.prototype.handleFocus=function(e){this.setState({isFocused:!0}),this.props.onFocus&&this.props.onFocus(e)},t.prototype.handleBlur=function(e){this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur(e)},t.prototype.handleChange=function(e){(0,this.props.onChange)(e.currentTarget.value)},t.prototype.getParent=function(){return(0,i.findDOMNode)(this)},t.prototype.getTarget=function(){return(0,i.findDOMNode)(this)},t.prototype.handlePopOverChange=function(e){var t=this.props.value||"",n=t.replace(/\s+/g," ").split(/\s+/),a=n.indexOf(e.value),r=this.props.onChange;if(~a)n.splice(a,1),t=n.join(" ");else{if(/(?:^|\s)(m|p)\-(t|r|b|l)(?:\-(?:xs|sm|md|lg))?(?:$|\s)/.test(e.value)){var o=new RegExp("(?:^|\\s)".concat(RegExp.$1,"\\-").concat(RegExp.$2,"(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))"),"ig");t=t.replace(o,"")}else/(?:^|\s)(m|p)(?:\-(xs|sm|md|lg))?(?:$|\s)/.test(e.value)?(o=new RegExp("(?:^|\\s)".concat(RegExp.$1,"(?:\\-(?:xs|sm|md|lg))?(?=(\\s|$))"),"ig"),t=t.replace(o,"")):/(?:^|\s)(m|p)(?:\-(t|r|b|l))?\-none(?:$|\s)/.test(e.value)?(o=new RegExp(RegExp.$2?"(?:^|\\s)".concat(RegExp.$1,"(?:(?:\\-").concat(RegExp.$2,"(?:\\-(?:xs|sm|md|lg)))|\\-none)?(?=(\\s|$))"):"(?:^|\\s)".concat(RegExp.$1,"(?:[^\\s$]+)?(?=(\\s|$))"),"ig"),t=t.replace(o,"$1")):/(?:^|\s)w(?:\-\w+)?(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)w(?:\-\w+)?(?=(\s|$))/g,""):"b-a"===e.value?t=(t=t.replace(/(?:^|\s)b\-(?:t|r|b|l)(?=(\s|$))/g,"")).replace(/(?:^|\s)no\-border(?=(\s|$))/g,""):/(?:^|\s)b\-(?:t|r|b|l)?(?:$|\s)/.test(e.value)?t=(t=t.replace(/(?:^|\s)b\-a(?=(\s|$))/g,"")).replace(/(?:^|\s)no\-border(?=(\s|$))/g,""):/(?:^|\s)b\-\dx(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)b\-\dx(?=(\s|$))/g,""):"no-border"===e.value?t=t.replace(/(?:^|\s)b\-(?:\dx|\w+)(?=(\s|$))/g,""):/(?:^|\s)b\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)b\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,""):"r"===e.value?t=t.replace(/(?:^|\s)r\-(?:t|r|b|l)(?=(\s|$))/g,""):/(?:^|\s)r\-(?:t|r|b|l)?(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)r(?=(\s|$))/g,""):/(?:^|\s)r\-\dx(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)r\-\dx(?=(\s|$))/g,""):/(?:^|\s)text\-(?:xs|sm|base|md|lg)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)text\-(?:xs|sm|base|md|lg)(?=(\s|$))/g,""):/(?:^|\s)font\-(?:normal|thin|bold)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)font\-(?:normal|thin|bold)(?=(\s|$))/g,""):/(?:^|\s)text\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=t.replace(/(?:^|\s)text\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,""):/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?:$|\s)/.test(e.value)?t=(t=t.replace(/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,"")).replace(/(?:^|\s)no\-bg(?=(\s|$))/g,""):"no-bg"===e.value&&(t=t.replace(/(?:^|\s)bg\-(?:primary|info|warning|danger|success|white|dark|light)(?=(\s|$))/g,""));t=t.replace(/\s+/g," ").trim(),t+=(t?" ":"")+e.value}r(t)},t.prototype.renderGroup=function(e,t){var n=this,a=this.props.classnames;return o.default.createElement("div",{key:t,className:a("ae-ClassNameControl-group",e.className)},o.default.createElement("label",{className:a("ae-ClassNameControl-groupLabel",e.labelClassName)},e.label),e.children&&e.children.length?e.children[0].value?this.renderOptions(e.children,t):e.children.map((function(e,t){return n.renderGroup(e,t)})):null)},t.prototype.renderOptions=function(e,t){var n=this,a=this.props.classnames;return function(e){for(var t=[],n=t[0]=[],a=0,r=e.length;a{Object.defineProperty(t,"__esModule",{value:!0}),t.CommonConfigWrapper=void 0;var a=n(752),r=n(6405),o=n(3570),i=a.__importDefault(n(6689)),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentWillUnmount=function(){var e=(0,r.findDOMNode)(this);if(e){var t=this.props.$$editor,n=t.wrapperResolve?t.wrapperResolve(e):e;(Array.isArray(n)?n:n?[n]:[]).forEach((function(e){e.classList.remove("ae-Editor-common-config")}))}},t.prototype.markDom=function(e){var t=(0,r.findDOMNode)(this);if(t&&e){var n=this.props.$$editor,a=n.wrapperResolve?n.wrapperResolve(t):t;this.props.$$commonSchema&&(Array.isArray(a)?a:a?[a]:[]).forEach((function(t){t.setAttribute("data-editor-id",e),t.classList.add("ae-Editor-common-config")}))}},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,r=e.$schema,l=e.store,s=a.__rest(e,["$$editor","$$node","$schema","store"]),u=t.renderer;return s=(0,o.JSONPipeOut)(s),t.filterProps&&(s=t.filterProps.call(t.plugin,s,n)),t.renderRenderer?t.renderRenderer.call(t.plugin,a.__assign(a.__assign(a.__assign(a.__assign({},s),{store:l,$schema:r,$$editor:t}),t.wrapperProps),{ref:this.refFn}),t):i.default.createElement(u.component,a.__assign({},s,{store:l,$schema:r,$$editor:t},t.wrapperProps,{ref:this.refFn}))},t}(n(1160).NodeWrapper);t.CommonConfigWrapper=l},9305:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerWrapper=void 0;var a=n(752),r=n(1160),o=a.__importDefault(n(6689)),i=n(2062),l=n(3570),s=a.__importDefault(n(6918)),u=n(1548),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.getWrappedInstance=function(){return this.ref},t.prototype.refFn=function(e){this.ref=e},t.prototype.renderChild=function(e,t,n){var a=this.props,r=a.render,i=a.$$editor,l=a.$$node,d=r(e,t,n),c=(0,s.default)(i.regions,(function(t){return t.key===e&&!t.matchRegion&&!t.renderMethod}));if(c){var p=c.wrapper||u.RegionWrapper;return o.default.createElement(p,{key:null==n?void 0:n.key,preferTag:c.preferTag,name:c.key,label:c.label,placeholder:c.placeholder,regionConfig:c,editorStore:i.plugin.manager.store,wrapperResolve:c.wrapperResolve,manager:i.plugin.manager,children:d,rendererName:i.renderer.name,$$editor:i,node:l})}return d},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,i=a.__rest(e,["$$editor","$$node"]),l={},s=t.plugin.manager.store;return t.id&&(s.isActive(t.id)||s.dropId===t.id)&&Array.isArray(t.regions)&&t.regions.forEach((function(e){var t=e.key;if(!e.optional&&!(null==n?void 0:n.memberImmutable(t))){var a=[];"actions"!==t||void 0!==i.submitText&&!i.submitText||(a=[{type:"submit",label:i.submitText||"提交",primary:!0}]);var r=Array.isArray(i[t])?i[t].concat():i[t]?[i[t]]:a;r.length||r.push({children:function(){return null}}),l[t]=r}})),o.default.createElement(r.NodeWrapper,a.__assign({},i,l,{$$editor:t,$$node:n,render:this.renderChild,ref:this.refFn}))},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"refFn",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String,Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"renderChild",null),a.__decorate([i.observer],t)}(o.default.Component);t.ContainerWrapper=d},8457:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.APIControlRenderer=t.APIControl=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=a.__importDefault(n(1831)),i=n(1502),l=a.__importDefault(n(9003)),s=n(8663),u=n(3570),d=function(e){function t(t){var n=e.call(this,t)||this;return n.state={apiStr:n.transformApi2Str(t.value)},n}return a.__extends(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;e.value!==t.value&&this.setState({apiStr:this.transformApi2Str(t.value)})},t.prototype.transformApi2Str=function(e){var t=(0,s.normalizeApi)(e);return t.url?"".concat(t.method?"".concat(t.method,":"):"").concat(t.url):""},t.prototype.handleSubmit=function(e,t){var n=this.props,a=n.onChange,r=n.value,i=e;"string"==typeof r&&"string"==typeof e||(i=(0,o.default)({},(0,s.normalizeApi)(r),(0,s.normalizeApi)(e))),a&&a(i)},t.prototype.buildActionsSchema=function(){var e=this.props.messageDesc;return{type:"flex",justify:"flex-end",alignItems:"center",className:"ae-ApiControl-actions mt-1.5",items:[{label:"API中心选择",type:"action",acitonType:"dialog",level:"link",size:"sm",disabled:!0},{label:"高级设置",type:"action",acitonType:"dialog",level:"link",size:"sm",actionType:"dialog",dialog:{title:"高级设置",size:"md",className:"ae-ApiControl-dialog",headerClassName:"font-bold",bodyClassName:"ae-ApiControl-dialog-body",closeOnEsc:!0,closeOnOutside:!1,showCloseButton:!0,body:[{type:"form",mode:"normal",onSubmit:this.handleSubmit,body:[{type:"tabs",tabs:[{title:"接口设置",tab:[{type:"grid",gap:"lg",align:"between",valign:"top",columns:[{md:6,body:[{label:"发送方式",name:"method",value:"get",type:"select",mode:"normal",options:[{value:"get",label:"GET"},{value:"post",label:"POST"},{value:"put",label:"PUT"},{value:"patch",label:"PATCH"},{value:"delete",label:"DELETE"}]},{label:"接口地址",type:"input-text",name:"url",placeholder:"http://",required:!0},{label:"发送条件",type:"input-text",name:"sendOn",placeholder:'如:this.type == "123"',description:"用表达式来设置该请求的发送条件"},{label:"数据格式",type:"button-group-select",name:"dataType",description:'发送体格式为:<%= data.dataType === "json" ? "application/json" : data.dataType === "form-data" ? "multipart/form-data" : data.dataType === "form" ? "application/x-www-form-urlencoded" : "" %>,当发送内容中存在文件时会自动使用 form-data 格式。',size:"sm",mode:"normal",options:[{label:"JSON",value:"json"},{label:"FormData",value:"form-data"},{label:"Form",value:"form"}],disabled:!1}]},{md:6,body:[{label:"是否设置缓存",type:"switch",name:"cache",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse",pipeIn:function(e){return!!e},pipeOut:function(e){return e?3e3:void 0}},{label:"",type:"input-number",name:"cache",mode:"row",min:0,step:500,visibleOn:"this.cache",description:"设置该请求缓存有效时间,单位 ms",className:"m-t-n-sm",pipeIn:function(e){return"number"==typeof e?e:0}},{label:"文件下载",type:"switch",name:"responseType",mode:"row",description:"当接口为二进制文件下载时请勾选,否则会文件乱码。",inputClassName:"inline-flex justify-between flex-row-reverse",pipeIn:function(e){return"blob"===e},pipeOut:function(e){return e?"blob":void 0}},{type:"switch",label:"数据替换",name:"replaceData",mode:"row",description:"默认数据都是追加方式,开启这个后是完全替换",inputClassName:"inline-flex justify-between flex-row-reverse"},{label:"初始加载",type:"group",visibleOn:"this.initApi",direction:"vertical",labelRemark:{trigger:"hover",rootClose:!0,content:"当配置初始化接口后,组件初始就会拉取接口数据,可以通过以下配置修改",placement:"top"},body:[{name:"initFetch",type:"radios",inline:!0,onChange:function(){document.getElementsByClassName("ae-Settings-content")[0].scrollTop=0},options:[{label:"是",value:!0},{label:"否",value:!1},{label:"表达式",value:""}]},{name:"initFetchOn",autoComplete:!1,visibleOn:'typeof this.initFetch !== "boolean"',type:"input-text",placeholder:"如:this.id 表示有 id 值时初始加载",className:"m-t-n-sm"}]},{label:"定时刷新",type:"switch",name:"interval",mode:"row",visibleOn:"data.initApi",inputClassName:"inline-flex justify-between flex-row-reverse",pipeIn:function(e){return!!e},pipeOut:function(e){return e?3e3:void 0}},{label:"",name:"interval",type:"input-number",mode:"row",visibleOn:'typeof this.interval === "number"',step:500,className:"m-t-n-sm",description:"定时刷新间隔,单位 ms"},{label:"静默刷新",name:"silentPolling",type:"switch",mode:"row",visibleOn:"!!data.interval",description:"设置自动定时刷新时是否显示loading",inputClassName:"inline-flex justify-between flex-row-reverse"},{label:"定时刷新停止",name:"stopAutoRefreshWhen",type:"input-text",mode:"normal",visibleOn:"!!data.interval",placeholder:"停止定时刷新检测表达式",labelRemark:{trigger:"hover",rootClose:!0,content:"定时刷新一旦设置会一直刷新,除非给出表达式,条件满足后则停止刷新",placement:"top"}}]}]}]},{title:"HTTP配置",tab:[{type:"fieldSet",title:"数据映射",body:[{type:"grid",gap:"lg",align:"between",valign:"top",columns:[{md:6,body:[{type:"switch",label:"发送数据映射",name:"data",mode:"row",className:"m-b-xs",inputClassName:"inline-flex justify-between flex-row-reverse",labelRemark:{trigger:"hover",rootClose:!0,content:"当没开启数据映射时,发送 API 的时候会发送尽可能多的数据,如果你想自己控制发送的数据,或者需要额外的数据处理,请开启此选项",placement:"top"},pipeIn:function(e){return!!e},pipeOut:function(e){return e?{"&":"$$"}:null}},{type:"input-kv",syncDefaultValue:!1,name:"data",visibleOn:"this.data",descriptionClassName:"help-block text-xs m-b-none",description:'

当没开启数据映射时,发送数据自动切成白名单模式,配置啥发送啥,请绑定数据。如:{"a": "\\${a}", "b": 2}

如果希望在默认的基础上定制,请先添加一个 Key 为 `&` Value 为 `\\$$` 作为第一行。

当值为 __undefined时,表示删除对应的字段,可以结合{"&": "\\$$"}来达到黑名单效果。
'}]},{md:6,body:[{type:"switch",label:"返回结果映射",name:"responseData",mode:"row",className:"m-b-xs",inputClassName:"inline-flex justify-between flex-row-reverse",labelRemark:{trigger:"hover",rootClose:!0,content:"如果需要对返回结果做额外的数据处理,请开启此选项",placement:"top"},pipeIn:function(e){return!!e},pipeOut:function(e){return e?{"&":"$$"}:null}},{type:"input-kv",syncDefaultValue:!1,name:"responseData",visibleOn:"this.responseData",descriptionClassName:"help-block text-xs m-b-none"}]}]}]},{type:"fieldSet",title:"自定义请求头",body:[{type:"switch",label:"请求头",name:"headers",mode:"row",className:"m-b-xs",inputClassName:"inline-flex justify-between flex-row-reverse",labelRemark:{trigger:"hover",rootClose:!0,content:"可以配置headers对象,添加自定义请求头",placement:"right"},pipeIn:function(e){return!!e},pipeOut:function(e){return e?{}:null}},{type:"combo",name:"headers",mode:"row",syncDefaultValue:!1,multiple:!0,visibleOn:"this.headers",items:[{type:"input-text",name:"key",placeholder:"Key",unique:!0,required:!0,options:[{label:"Accept",value:"Accept"},{label:"Accept-Charset",value:"Accept-Charset"},{label:"Accept-Encoding",value:"Accept-Encoding"},{label:"Authorization",value:"Authorization"},{label:"Cache-Control",value:"Cache-Control"},{label:"Content-Encoding",value:"Content-Encoding"},{label:"Content-Type",value:"Content-Type"}]},{type:"input-text",name:"value",placeholder:"Value",disabled:!1}],pipeIn:function(e){if(!(0,u.isObject)(e))return e;var t=[];return Object.keys(e).forEach((function(n){t.push({key:n||"",value:"string"==typeof e[n]?e[n]:JSON.stringify(e[n])})})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e){var n=e.key||"",a=e.value;try{a=JSON.parse(a)}catch(e){}t[n]=a})),t}}]},{title:"自定义适配器",type:"fieldSet",collapsable:!0,collapsed:!0,body:[{type:"grid",columns:[{body:[{label:"发送适配器",name:"requestAdaptor",type:"js-editor",allowFullscreen:!0,description:"函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。"}],md:6},{body:[{label:"接收适配器",name:"adaptor",type:"js-editor",allowFullscreen:!0,description:"函数签名: (payload, response, api) => payload"}],md:6}]}]}]},{title:"其他",tab:[{label:"默认消息提示",type:"combo",name:"messages",multiLine:!0,description:e||"设置 ajax 默认提示信息,当 ajax 没有返回 msg 信息时有用,如果 ajax 返回携带了 msg 值,则还是以 ajax 返回为主",items:[{label:"获取成功提示",type:"input-text",name:"fetchSuccess"},{label:"获取失败提示",type:"input-text",name:"fetchFailed"},{label:"保存顺序成功提示",type:"input-text",name:"saveOrderSuccess"},{label:"保存顺序失败提示",type:"input-text",name:"saveOrderFailed"},{label:"快速保存成功提示",type:"input-text",name:"quickSaveSuccess"},{label:"快速保存失败提示",type:"input-text",name:"quickSaveFailed"}]}]}]}]}]}}]}},t.prototype.render=function(){var e=this,t=this.props,n=t.render,a=t.className,o=t.value;return r.default.createElement("div",{className:(0,l.default)("ae-ApiControl",a)},r.default.createElement(i.InputBox,{className:"ae-ApiControl-input m-b-none",value:this.state.apiStr,clearable:!1,placeholder:"http://",onChange:function(t){return e.handleSubmit(t,"input")}}),n("api-control-actions",this.buildActionsSchema(),{data:(0,s.normalizeApi)(o)}))},a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSubmit",null),t}(r.default.Component);t.APIControl=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),a.__decorate([(0,i.FormItem)({type:"ae-apiControl"})],t)}(d);t.APIControlRenderer=c},8595:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionControlRenderer=t.OptionControl=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(6405),i=a.__importDefault(n(9003)),l=a.__importDefault(n(9309)),s=a.__importDefault(n(3901)),u=a.__importDefault(n(35)),d=n(1502),c=n(4122),p=n(3570),f=function(e){function t(t){var n=e.call(this,t)||this;return n.internalProps=["checked"],n.state={options:n.transformOptions(t),popOverData:void 0,popOverCtx:void 0,source:"custom",sourceOptions:[{label:"自定义选项",value:"custom"},{label:"接口获取",value:"api"},{label:"表单实体",value:"form"}]},n}return a.__extends(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;(e.value!==t.value||(0,p.isObjectShallowModified)(e.data,t.data))&&this.setState({options:this.transformOptions(t)})},t.prototype.getOptionValueType=function(e){return"string"==typeof e?"text":"boolean"==typeof e?"boolean":"number"==typeof e?"number":"text"},t.prototype.normalizeOptionValue=function(e,t){if("text"===t)return String(e);if("number"===t){var n=Number(e);return isNaN(n)?0:n}return"boolean"===t?!(!e||"false"===e):""},t.prototype.transformOptionValue=function(e){return null==e?"":"string"==typeof e?e:JSON.stringify(e)},t.prototype.transformOptions=function(e){var t=e.data,n=e.value,r=t.value,o=(0,c.value2array)(r,t).map((function(e){var n;return e[null!==(n=null==t?void 0:t.valueField)&&void 0!==n?n:"value"]}));return Array.isArray(n)?n.map((function(e){var n;return a.__assign(a.__assign({},e),{checked:!!~o.indexOf(e[null!==(n=null==t?void 0:t.valueField)&&void 0!==n?n:"value"])})})):[]},t.prototype.normalizeValue=function(){var e,t=this,n=this.props.data,a=void 0===n?{}:n,r=a.joinValues,o=void 0===r||r,i=a.extractValue,l=a.multiple,u=a.delimiter,d=a.valueField,c=this.state.options.filter((function(e){return e.checked})).map((function(e){return(0,s.default)(e,t.internalProps)}));return c.length?(l?(e=c,o?e=c.map((function(e){return e[d||"value"]})).join(u||","):i&&(e=c.map((function(e){return e[d||"value"]})))):(e=c[0],(o||i)&&(e=e[d||"value"])),e):""},t.prototype.onChangeOptions=function(){var e=this,t=this.state.options.concat(),n=this.props,a=n.onBulkChange,r=(n.onChange,this.normalizeValue());a&&a({options:t.map((function(t){return(0,s.default)(t,e.internalProps)})),value:r||void 0})},t.prototype.targetRef=function(e){this.target=e?(0,o.findDOMNode)(e):null},t.prototype.dragRef=function(e){!this.drag&&e?this.initDragging():this.drag&&!e&&this.destroyDragging(),this.drag=e},t.prototype.initDragging=function(){var e=this,t=(0,o.findDOMNode)(this);this.sortable=new u.default(t.querySelector(".ae-OptionControl-content"),{group:"OptionControlGroup",animation:150,handle:".ae-OptionControlItem-dragBar",ghostClass:"ae-OptionControlItem--dragging",onEnd:function(t){if(t.newIndex!==t.oldIndex){var n=t.to;t.newIndex1?r.default.createElement("a",{className:"ae-OptionControlItem-dragBar"},r.default.createElement(d.Icon,{icon:"drag-bar",className:"icon"})):null,r.default.createElement(d.Checkbox,{className:"ae-OptionControlItem-checkbox",checked:n,type:s?"checkbox":"radio",onChange:function(e,n){return t.handleToggleDefaultValue(o,e,n)}}),r.default.createElement(d.InputBox,{className:"ae-OptionControlItem-input",value:this.transformOptionValue(a),clearable:!1,onBlur:function(e){return t.handleEditLabel(o,e)}}),r.default.createElement(d.Button,{className:"ae-OptionControlItem-action",level:"link",size:"md",onClick:function(e){return t.handleEdit(o,e)}},r.default.createElement(d.Icon,{icon:"pencil",className:"icon"})),r.default.createElement(d.Button,{className:"ae-OptionControlItem-action",level:"link",size:"md",onClick:function(e){return t.handleDelete(o,e)}},r.default.createElement(d.Icon,{icon:"delete-btn",className:"icon"})))},t.prototype.renderPopover=function(){var e,t,n,a=this,o=this.props.render,i=this.state,l=i.popOverCtx,s=i.popOverData,u=null!==(e=null==l?void 0:l.mode)&&void 0!==e?e:"add",c=null!==(t=null==l?void 0:l.index)&&void 0!==t?t:0;return r.default.createElement(d.Overlay,{placement:"left",rootClose:!1,show:!!l,target:function(){var e;return"add"===u?a.target:null===(e=a.drag)||void 0===e?void 0:e.childNodes[c]},container:function(){return document.body}},r.default.createElement(d.PopOver,{className:"ae-OptionControl-PopoverEdit",placement:"left",overlay:!0,offset:function(){return"add"===u?{}:{x:225,y:65}}},r.default.createElement("header",null,r.default.createElement("p",{className:"ae-OptionControl-PopoverEdit-title"},"add"===u?"添加选项":"编辑选项"),r.default.createElement("a",{onClick:this.closePopoverEdit,className:"ae-OptionControl-PopoverEdit-close"},r.default.createElement(d.Icon,{icon:"close",className:"icon"}))),o("option-control-popover-form",{type:"form",title:"",panelClassName:"border-none shadow-none mb-0",className:"ae-OptionControl-PopoverEdit-form",bodyClassName:"p-none",actionsClassName:"border-none mt-2.5",mode:"normal",wrapperComponent:"div",autoFocus:!0,formLazyChange:!0,preventEnterSubmit:!0,messages:{validateFailed:"选项文本不能为空"},horizontal:{leftFixed:"xs",left:2,right:10},body:[{type:"input-text",name:"optionLabel",label:"文本",mode:"horizontal",value:this.transformOptionValue(null==s?void 0:s.optionLabel),required:!0},{type:"input-group",name:"input-group",label:"值",body:[{type:"select",name:"optionValueType",value:null!==(n=null==s?void 0:s.optionValueType)&&void 0!==n?n:"text",options:[{label:"文本",value:"text"},{label:"数字",value:"number"},{label:"布尔",value:"boolean"}],checkAll:!1},{type:"input-text",placeholder:"请输入选项值",name:"optionValue",value:this.transformOptionValue(null==s?void 0:s.optionValue),visibleOn:"this.optionValueType !== 'boolean'"},{type:"input-text",placeholder:"请输入选项值",name:"optionValue",value:this.transformOptionValue(null==s?void 0:s.optionValue),visibleOn:"this.optionValueType === 'boolean'",options:[{label:"true",value:!0},{label:"false",value:!1}]}],mode:"horizontal"}],actions:[{type:"action",actionType:"close",label:"关闭",size:"sm"},{type:"action",actionType:"submit",level:"primary",size:"sm",label:"确定"}]},{onAction:this.closePopoverEdit,onSubmit:this.handlePopoverSubmit})))},t.prototype.buildBatchAddSchema=function(){return{type:"action",actionType:"dialog",level:"link",size:"sm",label:"批量添加",dialog:{title:"批量添加选项",headerClassName:"font-bold",closeOnEsc:!0,closeOnOutside:!1,showCloseButton:!0,body:[{type:"alert",level:"warning",body:"每个选项单列一行,将所有不重复项加为新的选项",showIcon:!0,className:"mb-2.5"},{type:"form",wrapWithPanel:!1,mode:"normal",wrapperComponent:"div",resetAfterSubmit:!0,autoFocus:!0,preventEnterSubmit:!0,horizontal:{left:0,right:12},body:[{name:"batchOption",type:"textarea",label:"",placeholder:"请输入选项内容",trimContents:!0,minRows:10,maxRows:50,required:!0}]}]}}},t.prototype.render=function(){var e=this,t=this.state,n=t.options,o=t.source,l=this.props,s=l.render,u=l.className;return r.default.createElement("div",{className:(0,i.default)("ae-OptionControl",u)},this.renderHeader(),"custom"===o?r.default.createElement("div",{className:"ae-OptionControl-wrapper"},Array.isArray(n)&&n.length?r.default.createElement("ul",{className:"ae-OptionControl-content",ref:this.dragRef},n.map((function(t,n){return e.renderOption(a.__assign(a.__assign({},t),{index:n}))}))):r.default.createElement("div",{className:"ae-OptionControl-placeholder"},"无选项"),r.default.createElement("div",{className:"ae-OptionControl-footer"},r.default.createElement(d.Button,{level:"link",size:"sm",onClick:this.handleAdd,ref:this.targetRef},"添加选项"),s("option-control-batchAdd",this.buildBatchAddSchema(),{onSubmit:this.handleBatchAdd})),this.renderPopover()):null)},a.__decorate([p.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"targetRef",null),a.__decorate([p.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"dragRef",null),a.__decorate([p.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSourceChange",null),a.__decorate([p.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Number,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleEditLabel",null),a.__decorate([p.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleAdd",null),a.__decorate([p.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handlePopoverSubmit",null),a.__decorate([p.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"closePopoverEdit",null),a.__decorate([p.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleBatchAdd",null),t}(r.default.Component);t.OptionControl=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),a.__decorate([(0,d.FormItem)({type:"ae-optionControl",renderLabel:!1})],t)}(f);t.OptionControlRenderer=m},3388:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverEditRenderer=t.PopoverEdit=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(6405),i=a.__importDefault(n(9003)),l=n(1502),s=n(3570),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={show:!1,checked:!!t.value},n}return a.__extends(t,e),t.prototype.overlayRef=function(e){this.overlay=e?(0,o.findDOMNode)(e):null},t.prototype.openPopover=function(){this.setState({show:!0})},t.prototype.closePopover=function(){this.setState({show:!1})},t.prototype.handleDelete=function(e){var t=this.props.onDelete;t&&t(e)},t.prototype.handleSwitchChange=function(e){var t=this.props,n=t.onChange,a=t.enableEdit;this.setState({checked:e}),a?!e&&n&&n(void 0):n&&n(e)},t.prototype.handleSubmit=function(e,t){var n=this.props.onChange;n&&n(e)},t.prototype.handleAction=function(e,t,n,a,r){void 0===a&&(a=!1);var o=this.props.onClose;"close"===t.actionType&&(this.setState({show:!1}),o&&o(e))},t.prototype.renderPopover=function(){var e=this.props,t=e.render,n=e.popOverclassName,o=e.overlay,u=e.offset,d=e.target,c=e.container,p=e.placement,f=e.rootClose,m=e.style,h=e.title,v=e.label,g=e.form,y=e.name,b=e.data;return r.default.createElement(l.Overlay,{show:!0,rootClose:f,placement:p,target:d||this.overlay,container:c},r.default.createElement(l.PopOver,{className:(0,i.default)("ae-PopoverEdit-popover",n),placement:p,overlay:o,offset:u,style:m},r.default.createElement("header",null,r.default.createElement("p",{className:"ae-PopoverEdit-title"},h||v),r.default.createElement("a",{onClick:this.closePopover,className:"ae-PopoverEdit-close"},r.default.createElement(l.Icon,{icon:"close",className:"icon"}))),(0,s.isObject)(g)?t("popover-edit-form",a.__assign({type:"form",wrapWithPanel:!1,panelClassName:"border-none shadow-none mb-0",bodyClassName:"p-none",actionsClassName:"border-none mt-2.5",wrapperComponent:"div",mode:"horizontal",autoFocus:!0,formLazyChange:!0,preventEnterSubmit:!0,submitOnChange:!0,data:b&&y?null==b?void 0:b[y]:{}},g),{onSubmit:this.handleSubmit}):null))},t.prototype.render=function(){var e=this.props,t=(e.render,e.removable),n=e.btnIcon,a=e.btnLabel,o=e.iconPosition,s=e.disabled,u=e.enableEdit,d=e.className,c=this.state,p=c.show,f=c.checked,m=a?r.default.createElement("span",null,a):null;return r.default.createElement("div",{className:(0,i.default)("ae-PopoverEditControl",d)},u&&f&&!s?r.default.createElement(l.Button,{level:"link",size:"sm",ref:this.overlayRef,onClick:this.openPopover},"right"===o?r.default.createElement(r.default.Fragment,null,m,r.default.createElement(l.Icon,{icon:n,className:"icon"})):r.default.createElement(r.default.Fragment,null,r.default.createElement(l.Icon,{icon:n,className:"icon"}),m)):null,t?r.default.createElement(l.Button,{level:"link",size:"sm",onClick:this.handleDelete},r.default.createElement(l.Icon,{icon:"delete-btn",className:"icon"})):null,r.default.createElement(l.Switch,{value:f,onChange:this.handleSwitchChange,disabled:s}),p?this.renderPopover():null)},t.defaultProps={btnIcon:"pencil",iconPosition:"right",container:document.body,placement:"left",overlay:!0,rootClose:!1,mode:"popover",trueValue:!0,falseValue:!1,enableEdit:!0},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"overlayRef",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"openPopover",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"closePopover",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDelete",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Boolean]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSwitchChange",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSubmit",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object,Object,Boolean,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleAction",null),t}(r.default.Component);t.PopoverEdit=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),a.__decorate([(0,l.FormItem)({type:"popover-edit"})],t)}(u);t.PopoverEditRenderer=d},247:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationControlRenderer=t.ValidationControl=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=a.__importDefault(n(2258)),i=a.__importDefault(n(808)),l=a.__importDefault(n(9003)),s=n(1502),u=n(3570),d=function(e){function t(t){var n=e.call(this,t)||this;return n.validationRules={required:"必填",isEmail:"邮箱格式",isUrl:"Url格式",isNumeric:"数字",isAlpha:"字母",isAlphanumeric:"字母和数字",isInt:"整型数字",isFloat:"浮点型数字",isLength:"固定长度",maxLength:"最大长度",minLength:"最小长度",maximum:"最大值",minimum:"最小值",isJson:"JSON格式",isPhoneNumber:"手机号码",isTelNumber:"电话号码",isZipcode:"邮编号码",isId:"身份证号码",equals:"与指定值相同",equalsField:"与指定字段值相同",matchRegexp:"自定义正则",matchRegexp1:"自定义正则2",matchRegexp2:"自定义正则3",matchRegexp3:"自定义正则4",matchRegexp4:"自定义正则5"},n.state={rules:n.transformRules()},n}return a.__extends(t,e),t.prototype.transformRules=function(){var e=this.props.data,t=void 0===e?{}:e,n=this.validationRules,a=[];return"boolean"==typeof t.required&&a.push({label:n.required,key:"required",value:t.required,checked:t.required}),(0,u.isObject)(t.validations)&&(0,o.default)(t.validations,(function(e,r){var o;r in n&&a.push({label:n[r],key:r,value:e,checked:!0,message:(null!==(o=null==t?void 0:t.validationErrors)&&void 0!==o?o:{})[r]})})),a},t.prototype.normalizeRules=function(){var e=this.state.rules,t={};return e.filter((function(e){return e.checked})).map((function(e){"required"===e.key?t[e.key]=e.checked:((t.validations||(t.validations={}))[e.key]=e.value,e.message&&((t.validationErrors||(t.validationErrors={}))[e.key]=e.message))})),(0,i.default)(t,(function(e,t){return e||!(0,u.isEmpty)(e)}))},t.prototype.handleAddRule=function(){},t.prototype.handleSubmit=function(e,t){var n=this.props.onBulkChange;n&&n(e)},t.prototype.render=function(){var e=this.props,t=e.render,n=e.className,a=e.label,o=(e.data,this.state.rules);return r.default.createElement("div",{className:(0,l.default)("ae-ValidationControl",n)},r.default.createElement("header",null,r.default.createElement("label",null,a||""),r.default.createElement("div",null,r.default.createElement(s.Button,{className:"ae-ValidationControl-addBtn",level:"link",size:"md",onClick:this.handleAddRule},r.default.createElement(s.Icon,{icon:"plus",className:"icon"})))),t("validation-control-form",{type:"form",wrapWithPanel:!1,panelClassName:"border-none shadow-none mb-0",bodyClassName:"p-none",actionsClassName:"border-none mt-2.5",wrapperComponent:"div",mode:"horizontal",preventEnterSubmit:!0,submitOnChange:!0,body:o.map((function(e,t){return{type:"popover-edit",enableEdit:0!==t,label:e.label,name:e.key,value:e.value,mode:"row"}}))},{onSubmit:this.handleSubmit}))},a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleAddRule",null),a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSubmit",null),t}(r.default.Component);t.ValidationControl=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),a.__decorate([(0,s.FormItem)({type:"ae-validationControl",renderLabel:!1})],t)}(d);t.ValidationControlRenderer=c},2296:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importStar(n(6689)),o=a.__importDefault(n(9003)),i=n(1502),l=a.__importDefault(n(6751)),s=n(3570),u=n(7172),d=n(9756),c=n(6211),p=n(1952),f=a.__importDefault(n(3164)),m=n(2717),h=n(8024),v=n(7649),g=n(1489),y=n(7823),b=n(2004),_=function(e){function t(t){var n=e.call(this,t)||this;n.mainRef=r.default.createRef(),n.isInternalChange=!1;var o=t.value,i=t.isSubEditor,l=void 0!==i&&i,s=(t.onChange,t.showCustomRenderersPanel),p=a.__rest(t,["value","isSubEditor","onChange","showCustomRenderersPanel"]),f=a.__assign({},p);return n.store=u.EditorStore.create({isMobile:t.isMobile,theme:t.theme,isSubEditor:l,amisDocHost:t.amisDocHost,ctx:t.ctx},f),n.store.setSchema(o),void 0!==s&&n.store.setShowCustomRenderersPanel(s),n.manager=new d.EditorManager(f,n.store),window.editorStore=n.store,document.addEventListener("keydown",n.handleKeyDown),window.addEventListener("message",(function(e){e.data&&"amis-widget-register-event"===e.data.type&&e.data.editorPluginName&&(console.info("[amis-editor]响应动态添加插件事件:",e.data.editorPluginName),n.manager.dynamicAddPlugin(e.data.editorPluginName))}),!1),n.unReaction=(0,c.reaction)((function(){return n.store.schemaRaw}),(function(e){n.lastResult=e,n.isInternalChange||t.onChange(e)})),n}return a.__extends(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;t.value!==e.value&&t.value!==this.lastResult&&(this.isInternalChange=!0,this.store.setSchema(t.value),this.isInternalChange=!1),t.isMobile!==e.isMobile&&this.store.setIsMobile(t.isMobile),t.ctx!==e.ctx&&this.store.setCtx(t.ctx)},t.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this.handleKeyDown),this.unReaction(),this.manager.dispose(),(0,m.destroy)(this.store)},t.prototype.handleKeyDown=function(e){if(!e.defaultPrevented&&!this.props.isSubEditor){var t=this.manager.store;if("BODY"===e.target.tagName&&"z"===e.key&&(e.metaKey||e.ctrlKey)&&e.shiftKey)return e.preventDefault(),void this.redo();if("BODY"===e.target.tagName&&"z"===e.key&&(e.metaKey||e.ctrlKey))return e.preventDefault(),void this.undo();if("BODY"===e.target.tagName&&"s"===e.key&&(e.metaKey||e.ctrlKey))return e.preventDefault(),void this.save();if("BODY"===e.target.tagName&&"c"===e.key&&(e.metaKey||e.ctrlKey))return e.preventDefault(),void this.copy();if("BODY"===e.target.tagName&&"v"===e.key&&(e.metaKey||e.ctrlKey))return e.preventDefault(),void(this.curCopySchemaData&&this.paste());if("BODY"===e.target.tagName&&"x"===e.key&&(e.metaKey||e.ctrlKey))e.preventDefault(),this.store.activeId&&((n=t.getNodeById(this.store.activeId))&&t.activeRegion?i.toast.warning("容器节点不允许剪切。"):t.isRootSchema(this.store.activeId)?i.toast.warning("根节点不允许剪切。"):n&&n.moveable?(this.copy(),this.manager.del(this.store.activeId)):i.toast.warning("当前元素不允许剪切。"));else if("BODY"===e.target.tagName&&"p"===e.key&&(e.metaKey||e.ctrlKey))e.preventDefault(),this.preview();else if("BODY"===e.target.tagName&&"ArrowUp"===e.key&&(e.metaKey||e.ctrlKey))e.preventDefault(),this.store.activeId&&((n=t.getNodeById(this.store.activeId))&&n.canMoveUp?this.manager.moveUp():i.toast.warning("当前元素不能向上移动"));else if("BODY"===e.target.tagName&&"ArrowDown"===e.key&&(e.metaKey||e.ctrlKey))e.preventDefault(),this.store.activeId&&((n=t.getNodeById(this.store.activeId))&&n.canMoveDown?this.manager.moveDown():i.toast.warning("当前元素不能向下移动"));else if("BODY"===e.target.tagName&&("Backspace"===e.key||"Delete"===e.key)){var n;return e.preventDefault(),void(this.store.activeId&&((n=t.getNodeById(this.store.activeId))&&t.activeRegion?i.toast.warning("容器节点不可以直接删除。"):t.isRootSchema(this.store.activeId)?i.toast.warning("根节点不允许删除。"):n&&n.moveable?this.manager.del(this.store.activeId):i.toast.warning("当前元素不允许删除。")))}}},t.prototype.handleContextMenu=function(e){var t,n,a,r="",o="";if(this.store.activeId?r=null===(t=e.target.closest('[data-editor-id="'.concat(this.store.activeId,'"]')))||void 0===t?void 0:t.getAttribute("data-editor-id"):this.store.selections.length&&(r=null===(n=e.target.closest(this.store.selections.map((function(e){return'[data-editor-id="'.concat(e,'"]')})).join(",")))||void 0===n?void 0:n.getAttribute("data-editor-id")),r||(r=null===(a=e.target.closest("[data-editor-id]"))||void 0===a?void 0:a.getAttribute("data-editor-id")),!r){var i=e.target.closest("[data-node-id]");if(!(r=null==i?void 0:i.getAttribute("data-node-id")))return;o=i.getAttribute("data-node-region")}e.preventDefault(),e.stopPropagation(),this.manager.openContextMenu(r,o,{x:window.scrollX+e.clientX,y:window.scrollY+e.clientY})},t.prototype.canUndo=function(){return this.store.canUndo},t.prototype.canRedo=function(){return this.store.canRedo},t.prototype.undo=function(){this.props.onUndo?this.props.onUndo():this.store.undo()},t.prototype.redo=function(){this.props.onRedo?this.props.onRedo():this.store.redo()},t.prototype.save=function(){this.props.onSave&&this.props.onSave()},t.prototype.preview=function(){this.props.onPreview&&this.props.onPreview(!0)},t.prototype.copy=function(){this.store.activeId&&(this.curCopySchemaData=this.store.getSchema(this.store.activeId))},t.prototype.paste=function(){if(this.store.activeId&&this.curCopySchemaData){if(!this.curCopySchemaData)return;var e=this.store.getSimpleSchema(this.curCopySchemaData);this.store.activeId===this.curCopySchemaData.$$id?this.manager.appendSiblingSchema(e):this.manager.addElem(e)}},t.prototype.getToolbarContainer=function(){return this.mainRef.current},t.prototype.render=function(){var e=this.props,t=e.preview,n=e.isMobile,i=e.className,s=e.theme,u=e.data,d=e.iframeUrl,c=e.previewProps,m=e.autoFocus;return r.default.createElement("div",{ref:this.mainRef,className:(0,o.default)("ae-Editor",{preview:t},i)},r.default.createElement("div",{className:"ae-Editor-inner",onContextMenu:this.handleContextMenu},!t&&r.default.createElement(y.LeftPanels,{store:this.store,manager:this.manager,theme:s}),r.default.createElement("div",{className:"ae-Main"},!t&&r.default.createElement(f.default,{store:this.store,manager:this.manager}),r.default.createElement(l.default,a.__assign({},c,{iframeUrl:d,editable:!t,isMobile:n,store:this.store,manager:this.manager,theme:s,data:u,autoFocus:m,toolbarContainer:this.getToolbarContainer}))),!t&&r.default.createElement(b.RightPanels,{store:this.store,manager:this.manager,theme:s}),!t&&r.default.createElement(g.ContextMenuPanel,{store:this.store})),r.default.createElement(p.SubEditor,{store:this.store,manager:this.manager,theme:s}),r.default.createElement(h.ScaffoldModal,{store:this.store,manager:this.manager,theme:s}),r.default.createElement(v.PopOverForm,{store:this.store,manager:this.manager,theme:s}))},t.defaultProps={autoFocus:!0},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[KeyboardEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleKeyDown",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleContextMenu",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getToolbarContainer",null),t}(r.Component);t.default=_},6089:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importDefault(n(6689)),o=a.__importDefault(n(9003)),i=n(2062),l=n(1502),s=n(3570),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mainRef=r.default.createRef(),t}return a.__extends(t,e),t.prototype.handleWResizerMouseDown=function(e){return this.startResize(e,"horizontal")},t.prototype.handleHResizerMouseDown=function(e){return this.startResize(e,"vertical")},t.prototype.handleResizerMouseDown=function(e){return this.startResize(e,"both")},t.prototype.startResize=function(e,t){var n,a,r,o=this;if(void 0===t&&(t="horizontal"),(1===e.button&&null!==window.event||0===e.button)&&!e.defaultPrevented){e.preventDefault();var i=this.props,l=i.manager,s=i.id,u=i.node;if(u){var d=document.querySelector('[data-editor-id="'.concat(s,'"]'));if(d){l.disableHover=!0;var c=l["both"===t?"onSizeChangeStart":"vertical"===t?"onHeightChangeStart":"onWidthChangeStart"](e,{dom:d,node:u,resizer:"both"===t?this.resizerDom:"vertical"===t?this.hResizerDom:this.wResizerDom}),p=null===(n=c.data)||void 0===n?void 0:n.onMove,f=null===(a=c.data)||void 0===a?void 0:a.onEnd;if(p||f){null===(r=this.mainRef.current)||void 0===r||r.setAttribute("data-resizing","");var m=function(e){e.preventDefault(),null==p||p(e)},h=function(e){var t;e.preventDefault(),l.disableHover=!1,null===(t=o.mainRef.current)||void 0===t||t.removeAttribute("data-resizing"),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",h),document.body.style.cursor="default";var n=function(e){window.removeEventListener("click",n,!0),e.preventDefault(),e.stopPropagation()};window.addEventListener("click",n,!0),setTimeout((function(){return window.removeEventListener("click",n,!0)}),350),null==f||f(e)};window.addEventListener("mousemove",m),window.addEventListener("mouseup",h),document.body.style.cursor="both"===t?"nwse-resize":"vertical"===t?"ns-resize":"ew-resize"}}}}},t.prototype.wResizerRef=function(e){e?e.addEventListener("mousedown",this.handleWResizerMouseDown):this.wResizerDom.addEventListener("mousedown",this.handleWResizerMouseDown),this.wResizerDom=e},t.prototype.hResizerRef=function(e){e?e.addEventListener("mousedown",this.handleHResizerMouseDown):this.hResizerDom.addEventListener("mousedown",this.handleHResizerMouseDown),this.hResizerDom=e},t.prototype.resizerRef=function(e){e?e.addEventListener("mousedown",this.handleResizerMouseDown):this.resizerDom.addEventListener("mousedown",this.handleResizerMouseDown),this.resizerDom=e},t.prototype.handleMouseEnter=function(){this.props.manager.disableHover||this.props.store.setHoverId(this.props.id)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.store,a=e.id,i=e.title,s=e.children,u=e.node,d=(e.toolbarContainer,e.onSwitch),c=n.sortedToolbars,p=n.sortedSecondaryToolbars,f=n.sortedSpecialToolbars,m=n.isActive(a),h=n.isHoved(a)||n.dropId===a||n.insertOrigId===a,v=document.getElementById("aePreviewHighlightBox").offsetWidth-u.x<176;return r.default.createElement("div",{className:(0,o.default)("ae-Editor-hlbox",{shake:a===n.insertOrigId,selected:m||~n.selections.indexOf(a),hover:h,regionOn:u.childRegions.some((function(e){return n.isRegionHighlighted(e.id,e.region)}))},t),style:{display:u.w&&u.h?"block":"none",top:u.y,left:u.x,width:u.w,height:u.h},ref:this.mainRef,onMouseEnter:this.handleMouseEnter},m?r.default.createElement("div",{className:"ae-Editor-toolbarPopover ".concat(v?"is-right-elem":"")},r.default.createElement("div",{className:"ae-Editor-nav"},u.host?r.default.createElement("div",{className:"ae-Editor-tip parent",onClick:function(){return null==d?void 0:d(u.host.id)}},u.host.label):null,r.default.createElement("div",{key:"tip",className:"ae-Editor-tip current"},i),u.firstChild?r.default.createElement("div",{className:"ae-Editor-tip child",onClick:function(){return null==d?void 0:d(u.firstChild.id)}},u.firstChild.label):null),r.default.createElement("div",{className:"ae-Editor-toolbar",key:"toolbar"},c.map((function(e){return r.default.createElement("button",{key:e.id,type:"button",draggable:e.draggable,onDragStart:e.onDragStart,"data-id":e.id,"data-tooltip":e.tooltip||void 0,"data-position":e.placement||"top",onClick:e.onClick},e.iconSvg?r.default.createElement(l.Icon,{className:"icon",icon:e.iconSvg}):~e.icon.indexOf("<")?r.default.createElement("span",{dangerouslySetInnerHTML:{__html:e.icon}}):r.default.createElement("i",{className:e.icon}))})))):null,m&&p.length?r.default.createElement("div",{className:"ae-Editor-toolbar sencondary",key:"sencondary-toolbar"},p.map((function(e){return r.default.createElement("button",{key:e.id,type:"button",className:e.className,"data-id":e.id,"data-tooltip":e.tooltip||void 0,"data-position":e.placement||"top",onClick:e.onClick},e.iconSvg?r.default.createElement(l.Icon,{className:"icon",icon:e.iconSvg}):~e.icon.indexOf("<")?r.default.createElement("span",{dangerouslySetInnerHTML:{__html:e.icon}}):r.default.createElement("i",{className:e.icon}))}))):null,m&&f.length?r.default.createElement("div",{className:"ae-Editor-toolbar special",key:"special-toolbar"},f.map((function(e){return r.default.createElement("button",{key:e.id,type:"button",className:e.className,"data-id":e.id,"data-tooltip":e.tooltip||void 0,"data-position":e.placement||"top",onClick:e.onClick},e.iconSvg?r.default.createElement(l.Icon,{className:"icon",icon:e.iconSvg}):~e.icon.indexOf("<")?r.default.createElement("span",{dangerouslySetInnerHTML:{__html:e.icon}}):r.default.createElement("i",{className:e.icon}))}))):null,s,u.widthMutable?r.default.createElement("span",{className:"ae-WResizer",ref:this.wResizerRef}):null,u.heightMutable?r.default.createElement("span",{className:"ae-HResizer",ref:this.hResizerRef}):null,u.widthMutable&&u.heightMutable?r.default.createElement("span",{className:"ae-Resizer",ref:this.resizerRef}):null)},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleWResizerMouseDown",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleHResizerMouseDown",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleResizerMouseDown",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"wResizerRef",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"hResizerRef",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"resizerRef",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleMouseEnter",null),a.__decorate([i.observer],t)}(r.default.Component);t.default=u},1325:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mountInIframe=void 0;var a=n(752),r=n(2062),o=n(2717),i=a.__importDefault(n(6689)),l=n(6405),s=n(9756),u=n(3570),d=a.__importDefault(n(1454)),c=function(e){function t(t){var n=e.call(this,t)||this,a="__amis_editor_bridge_fn_".concat((0,u.guid)());return window[a]=function(e){return delete window[a],n.bridge=e,n.update(t),t.manager},n.bridgeFnName=a,n}return a.__extends(t,e),t.prototype.componentDidUpdate=function(){this.update()},t.prototype.componentWillUnmount=function(){var e=this.props.store;(0,o.isAlive)(e)&&e.setDoc(document)},t.prototype.iframeRef=function(e){var t=this.props.store;(0,o.isAlive)(t)&&t.setIframe(e)},t.prototype.update=function(e){var t;void 0===e&&(e=this.props);var n=e.editable,r=e.store;null===(t=this.bridge)||void 0===t||t.update(a.__assign(a.__assign({},e),{schema:n?r.filteredSchema:r.filteredSchemaForPreview}))},t.prototype.render=function(){var e=this.props,t=e.url,n=e.manager,a=e.className,r=e.editable,o=e.store;return this.schema=r?o.filteredSchema:o.filteredSchemaForPreview,i.default.createElement("iframe",{ref:this.iframeRef,className:a,id:n.id,src:"".concat(t,"#").concat(this.bridgeFnName)})},a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"iframeRef",null),a.__decorate([r.observer,a.__metadata("design:paramtypes",[Object])],t)}(i.default.PureComponent);t.default=c;var p=function(e){function t(t){var n=e.call(this,t)||this;n.state={},n.inited=!1;var r=t.bridgeName,o=parent[r];if("function"!=typeof o)throw new Error("调用错误,或者存在跨域。");var i=o({update:function(e){return n.inited?n.setState(a.__assign({},e)):n.state=a.__assign({},e)}});if(!i)throw new Error("调用错误");i.store.setDoc(document);var l=new s.EditorManager(i.config,i.store,i);return n.manager=l,n.inited=!0,n}return a.__extends(t,e),t.prototype.componentWillUnmount=function(){var e=this.manager;e.toDispose.forEach((function(e){return e()})),e.toDispose=[],e.listeners.splice(0,e.listeners.length),e.lazyPatchSchema.cancel()},t.prototype.render=function(){return i.default.createElement(d.default,a.__assign({},this.state,{manager:this.manager,store:this.manager.store,envCreator:this.props.envCreator}))},t}(i.default.Component);t.mountInIframe=function(e,t,n){if(!location.hash||parent===window)throw new Error("只能在 Iframe 里面调用");var a=location.hash.substring(1);t.render(i.default.createElement(p,{bridgeName:a,envCreator:n}),e),window.onunload=function(){(0,l.unmountComponentAtNode)(e)}}},1454:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=n(3570),l=n(3131),s=a.__importDefault(n(9003)),u=n(6405),d=n(2717),c=n(3893),p=function(e){function t(){var t,n,r=this;return(r=e.apply(this,arguments)||this).env=a.__assign(a.__assign(a.__assign(a.__assign({},r.props.manager.env),{notify:function(e,t){r.props.editable?console.warn("[Notify]",e,t):o.toast[e]?o.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)},theme:r.props.theme,session:"preview-".concat(r.props.manager.id),rendererResolver:r.rendererResolver}),r.props.manager.env),null===(n=(t=r.props).envCreator)||void 0===n?void 0:n.call(t,r.props)),r}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=(0,u.findDOMNode)(this);if(e.addEventListener("mouseleave",this.handleMouseLeave),e.addEventListener("mousemove",this.handleMouseMove),e.addEventListener("click",this.handleClick),e.addEventListener("mouseover",this.handeMouseOver),this.props.autoFocus){var t=this.props.manager.store;setTimeout((function(){if((0,d.isAlive)(t)){var e=(0,c.findTree)(t.outline,(function(e){return!e.isRegion&&e.clickable}));e&&t.setActiveId(e.id)}}),350)}},t.prototype.componentWillUnmount=function(){var e=(0,u.findDOMNode)(this);e.removeEventListener("mouseleave",this.handleMouseLeave),e.removeEventListener("mousemove",this.handleMouseMove),e.removeEventListener("click",this.handleClick),e.removeEventListener("mouseover",this.handeMouseOver)},t.prototype.contentsRef=function(e){var t,n=this;this.dom=e,e?(this.syncIframeHeight(),this.unSensor=(0,o.resizeSensor)(e,(function(){n.syncIframeHeight()}))):(null===(t=this.unSensor)||void 0===t||t.call(this),delete this.unSensor)},t.prototype.syncIframeHeight=function(){var e=this.props.manager;this.dom&&(e.store.getIframe().style.cssText+="height: ".concat(this.dom.offsetHeight,"px"))},t.prototype.handleClick=function(e){var t=this.props.store,n=e.target.closest("[data-editor-id]");if(!e.defaultPrevented&&(n&&t.setActiveId(n.getAttribute("data-editor-id")),this.props.editable)){var a=this.props.manager.trigger("prevent-click",{data:e});a.prevented||a.stoped||(e.preventDefault(),e.stopPropagation())}},t.prototype.handleMouseMove=function(e){var t=this.props.store,n=e.target.closest("[data-editor-id]");n&&t.setHoverId(n.getAttribute("data-editor-id"))},t.prototype.handleMouseLeave=function(){this.props.store.setHoverId("")},t.prototype.handeMouseOver=function(e){this.props.editable&&(e.preventDefault(),e.stopPropagation())},t.prototype.handleDragEnter=function(e){this.props.manager.dnd.dragEnter(e.nativeEvent)},t.prototype.handleDragLeave=function(e){this.props.manager.dnd.dragLeave(e.nativeEvent)},t.prototype.handleDragOver=function(e){this.props.manager.dnd.dragOver(e.nativeEvent)},t.prototype.handleDrop=function(e){this.props.manager.dnd.drop(e.nativeEvent)},t.prototype.handleContextMenu=function(e){var t,n=null===(t=e.target.closest("[data-editor-id]"))||void 0===t?void 0:t.getAttribute("data-editor-id"),a="";if(!n){var r=e.target.closest("[data-node-id]");if(!(n=null==r?void 0:r.getAttribute("data-node-id")))return;a=r.getAttribute("data-node-region")}e.preventDefault(),e.stopPropagation();var o=this.props.manager,i=o.store.getIframe().getBoundingClientRect();o.parent.openContextMenu(n,a,{x:window.scrollX+e.clientX+i.left,y:window.scrollY+e.clientY+i.top})},t.prototype.rendererResolver=function(e,t,n){var r=this.props,i=r.editable,s=r.manager,u=(0,o.resolveRenderer)(e,t);if(!1===i)return u;u=u||{name:"error",test:function(){return!0},component:l.ErrorRenderer};var d=s.getEditorInfo(u,e,t);return d&&(u=a.__assign(a.__assign({},u),{component:s.makeWrapper(d,u)})),u},t.prototype.render=function(){var e=this.props,t=e.store,n=e.editable,i=(e.manager,e.className),l=e.schema,u=e.data,d=a.__rest(e,["store","editable","manager","className","schema","data"]);return r.default.createElement("div",{ref:this.contentsRef,onContextMenu:this.handleContextMenu,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,className:(0,s.default)("ae-IFramePreview",i,n?"is-edting":"")},(0,o.render)(l||{type:"tpl",tpl:"渲染中..."},a.__assign(a.__assign({},d),{key:n?"edit-mode":"preview-mode",theme:this.env.theme,data:null!=u?u:t.ctx}),this.env))},a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"contentsRef",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleMouseMove",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleMouseLeave",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handeMouseOver",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragEnter",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragLeave",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragOver",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDrop",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleContextMenu",null),a.__decorate([i.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String,Object,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"rendererResolver",null),t}(r.default.Component);t.default=p},7279:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importDefault(n(6689)),o=a.__importDefault(n(2296)),i=a.__importDefault(n(9003)),l=a.__importDefault(n(6751)),s=n(1952),u=n(8024),d=n(3570),c=function(e){function t(t){var n=e.call(this,t)||this;return n.manager.on("build-panels",n.buildPanels),n}return a.__extends(t,e),t.prototype.componentWillUnmount=function(){this.manager.off("build-panels",this.buildPanels)},t.prototype.buildPanels=function(e){var t=e.context.data;Array.isArray(t)&&t.splice(0,t.length)},t.prototype.render=function(){var e=this.props,t=e.preview,n=e.className,a=e.theme,o=e.data;return r.default.createElement("div",{className:(0,i.default)("ae-Editor",{preview:t},n)},r.default.createElement("div",{className:"ae-Editor-inner",onContextMenu:this.handleContextMenu},r.default.createElement("div",{className:"ae-Main"},r.default.createElement(l.default,{editable:!t,store:this.store,manager:this.manager,theme:a,data:o}))),r.default.createElement(s.SubEditor,{store:this.store,manager:this.manager,theme:a}),r.default.createElement(u.ScaffoldModal,{store:this.store,manager:this.manager,theme:a}))},a.__decorate([d.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"buildPanels",null),t}(o.default);t.default=c},1160:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeWrapper=void 0;var a=n(752),r=n(2062),o=(n(2717),a.__importDefault(n(6689))),i=n(6405),l=n(3570),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentDidMount=function(){this.markDom(this.props.$$editor.id),this.props.$$node&&requestAnimationFrame((function(){}))},t.prototype.componentDidUpdate=function(e){this.markDom(this.props.$$editor.id)},t.prototype.getWrappedInstance=function(){return this.ref},t.prototype.refFn=function(e){this.ref=e},t.prototype.markDom=function(e){var t,n,a=(0,i.findDOMNode)(this);if(a&&e){var r=this.props.$$editor,o=!1!==this.props.$$visible&&!0!==this.props.$$hidden,l=r.wrapperResolve?r.wrapperResolve(a):a;(Array.isArray(l)?l:l?[l]:[]).forEach((function(t){t.setAttribute("data-editor-id",e),t.setAttribute("data-visible",o?"":"false")})),null===(n=null===(t=r.plugin)||void 0===t?void 0:t.markDom)||void 0===n||n.call(t,l,this.props)}},t.prototype.render=function(){var e=this.props,t=e.$$editor,n=e.$$node,r=e.store,i=a.__rest(e,["$$editor","$$node","store"]),l=t.renderer;return t.filterProps&&(i=t.filterProps.call(t.plugin,i,n)),t.renderRenderer?t.renderRenderer.call(t.plugin,a.__assign(a.__assign(a.__assign(a.__assign(a.__assign(a.__assign({},i),{store:r}),null==n?void 0:n.state),{$$editor:t}),t.wrapperProps),{ref:this.refFn}),t):o.default.createElement(l.component,a.__assign({},i,{store:r},null==n?void 0:n.state,{$$editor:t},t.wrapperProps,{ref:this.refFn}))},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"refFn",null),a.__decorate([r.observer],t)}(o.default.Component);t.NodeWrapper=s},3017:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importDefault(n(6689)),o=a.__importDefault(n(3541)),i=n(3570),l=a.__importDefault(n(9003)),s=n(1502),u=n(3908),d=n(8425),c=n(5720),p=a.__importDefault(n(5452)),f=/^\/schemas\/(.*).json$/,m=u((function(e){s.toast.warning("代码有误,错误的地方是\n ".concat(e.toString().split("\n")[1]))}),3e3),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={wrongSchema:"",value:t.props.value,contents:t.obj2str(t.props.value,t.props)},t.toDispose=[],t.uri="isuda://schema/".concat((0,i.guid)(),".json"),t.emitChange=u((function(){var e=t.props,n=e.onChange,a=e.value,r=t.str2obj(t.state.contents);if(r&&(0,p.default)(r)){t.setState({wrongSchema:""}),delete r.$schema,r=(0,i.filterSchemaForConfig)(r,t.props.value);var o=(0,i.diff)(t.lastResult||a,r);t.lastResult=r,n(r,o)}else t.setState({wrongSchema:t.state.contents})}),250,{trailing:!0,leading:!1}),t.editorFactory=function(e,n,r){var o=n.Uri.parse(t.uri);return t.model=n.editor.createModel(t.state.contents,"json",o),n.editor.create(e,a.__assign(a.__assign({autoIndent:!0,formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,scrollbar:{alwaysConsumeMouseWheel:!1},minimap:{enabled:!1}},r),{model:t.model}))},t.editorDidMount=function(e,n){t.editor=e,t.monaco=n,t.changeJsonOptions(t.props),t.props.onPaste&&t.toDispose.push(t.editor.onDidPaste(t.props.onPaste).dispose)},t.editorWillUnmount=function(e,n){t.toDispose.forEach((function(e){return e()})),t.toDispose=[]},t.handleChange=function(e){t.setState({contents:e},t.emitChange)},t.handleBlur=function(){return a.__awaiter(t,void 0,void 0,(function(){var e,t,n;return a.__generator(this,(function(a){switch(a.label){case 0:return e=this.state,t=e.wrongSchema,n=e.value,t?[4,(0,s.prompt)([{className:"w-full",type:"tpl",label:!1,tpl:"当前有部分已更改数据因为格式不正确尚未保存,您确认要丢弃这部分更改吗?"},{type:"switch",label:!1,option:"查看更改",name:"diff",value:!1},{visibleOn:"this.diff",label:!1,type:"diff-editor",allowFullscreen:!0,disabled:!0,name:"newValue",size:"xxl",language:"json",diffValue:"${oldValue}"}],{oldValue:n,newValue:t},"请确认")]:[2];case 1:return a.sent()?this.setState({wrongSchema:"",contents:(0,c.stringify)(n)}):this.editor.focus(),[2]}}))}))},t}return a.__extends(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;e.$schema!==t.$schema&&this.monaco&&this.changeJsonOptions(t),(0,i.isObjectShallowModified)(t.value,e.value)&&(0,i.isObjectShallowModified)(t.value,this.lastResult)&&(this.lastResult=null,this.setState({value:t.value,contents:this.obj2str(t.value,t)}))},t.prototype.obj2str=function(e,t){var n;return e=(0,i.filterSchemaForConfig)(e),!(e=a.__assign({type:null==e?void 0:e.type},e)).type&&(null===(n=t.$schema)||void 0===n?void 0:n.match(/PageSchema/i))?e.type="page":e.type||delete e.type,delete e.$schema,(0,c.stringify)(e)},t.prototype.str2obj=function(e){try{if(""===e)return{};var t=(0,c.parse)(e);return m&&m.cancel(),t}catch(e){return m(e),null}},t.prototype.changeJsonOptions=function(e){var t;void 0===e&&(e=this.props);var n=this.monaco,a=e.$schemaUrl||"".concat(window.location.protocol,"//").concat(window.location.host,"/schema.json");0===a.indexOf("/")&&(a="".concat(window.location.protocol,"//").concat(window.location.host).concat(a));var r=function(e,t,n,a){var r=Array.isArray(a)?a.concat():[];if(f.test(t)){var o=RegExp.$1,i="".concat(e.replace(/^(\w+\:\/\/[^\/]+)\/.*$/,"$1"),"/schemas/").concat(o,".json"),l=d(r,(function(e){var t;return(null===(t=e.fileMatch)||void 0===t?void 0:t[0])===n}));~l&&r.splice(l,1),r.push({uri:i,fileMatch:[n],schema:{$schema:"http://json-schema.org/draft-07/schema#",$ref:"".concat(e,"#/definitions/").concat(o)}})}return r}(a,e.$schema,n.Uri.parse(this.uri).toString(),null===(t=n.languages.json)||void 0===t?void 0:t.jsonDefaults.diagnosticsOptions.schemas);n.languages.json.jsonDefaults.setDiagnosticsOptions({schemas:r,validate:!0,enableSchemaRequest:!0,allowComments:!0})},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.className,a=e.theme;return r.default.createElement(o.default,{className:(0,l.default)("amis-code-editor",n),value:this.state.contents,onChange:this.handleChange,onBlur:this.handleBlur,language:"json",theme:a,editorFactory:this.editorFactory,editorDidMount:this.editorDidMount,editorWillUnmount:this.editorWillUnmount,options:{automaticLayout:!0,lineNumbers:"off",glyphMargin:!1,tabSize:2,wordWrap:"on",lineDecorationsWidth:0,lineNumbersMinChars:0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1},readOnly:t}})},t}(r.default.Component);t.default=h},6151:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AvailableRenderersPanel=void 0;var a=n(752),r=n(2062),o=a.__importDefault(n(6689)),i=n(1502),l=a.__importDefault(n(4913)),s=n(3570),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.handleSelect=function(e){e&&this.props.store.changeRenderersTabsKey(e)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.manager,a=t.renderersTabsKey||"base-renderers",r=t.theme,s=t.customRenderersByOrder||[],u=t.groupedSubRenderers||{},d=t.groupedCustomRenderers||{};return o.default.createElement("div",{className:"ae-RendererPanel"},o.default.createElement("div",{className:"panel-header"},"组件"),o.default.createElement("div",{className:"ae-RendererPanel-content"},t.showCustomRenderersPanel&&s.length>0&&o.default.createElement(i.Tabs,{theme:r,tabsMode:"line",className:"ae-RendererList-tabs",linksClassName:"ae-RendererList-tabs-header",contentClassName:"ae-RendererList-tabs-content",activeKey:a,onSelect:this.handleSelect},o.default.createElement(i.Tab,{key:"base-renderers",eventKey:"base-renderers",title:"系统组件",className:"ae-RendererList-tabs-panel base-renderers",mountOnEnter:!0,unmountOnExit:!1},o.default.createElement(l.default,{groupedRenderers:u,store:t,manager:n,searchRendererType:"renderer"})),o.default.createElement(i.Tab,{key:"custom-renderers",eventKey:"custom-renderers",title:"自定义组件",className:"ae-RendererList-tabs-panel custom-renderers",mountOnEnter:!0,unmountOnExit:!1},o.default.createElement(l.default,{groupedRenderers:d,store:t,manager:n,searchRendererType:"custom-renderer"}))),(!t.showCustomRenderersPanel||Object.keys(d).length<1)&&o.default.createElement(l.default,{className:"only-base-component",groupedRenderers:u,store:t,manager:n,searchRendererType:"renderer"})))},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSelect",null),a.__decorate([r.observer],t)}(o.default.Component);t.AvailableRenderersPanel=u},4212:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importDefault(n(6689)),o=n(3570),i=a.__importDefault(n(3017)),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.handleCodePaste=function(){var e=this;setTimeout((function(){e.props.manager.patchSchema(!0)}),500)},t.prototype.render=function(){var e=this.props,t=e.onChange,n=e.manager,a=e.store;return r.default.createElement("div",{className:"ae-CodePanel"},r.default.createElement("div",{className:"panel-header"},"代码"),r.default.createElement("div",{className:"ae-CodePanel-content"},r.default.createElement(i.default,{value:a.valueWithoutHiddenProps,onChange:t,$schema:a.jsonSchemaUri,$schemaUrl:n.config.$schemaUrl,onPaste:this.handleCodePaste})))},a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCodePaste",null),t}(r.default.Component);t.default=l},1489:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextMenuPanel=void 0;var a=n(752),r=n(2062),o=a.__importDefault(n(6689)),i=n(1502),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.store.contextMenuPanel,t=e&&e.menus?e.menus:[];return t&&t.length>0?o.default.createElement("div",{className:"context-menu-setting"},o.default.createElement("div",{className:"setting-header"},"批量操作"),o.default.createElement("div",{className:"setting-body"},t.map((function(e){return e.label&&o.default.createElement("div",{key:e.label,className:"setting-item ".concat(e.disabled?"disabled":""),onClick:e.disabled?null:e.onSelect},o.default.createElement("div",{className:"icon-box"},o.default.createElement(i.Icon,{icon:e.icon,className:"menu-icon"})),o.default.createElement("div",{className:"setting-info"},e.label))})))):null},a.__decorate([r.observer],t)}(o.default.Component);t.ContextMenuPanel=l},4214:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerPanel=void 0;var a=n(752),r=n(2062),o=a.__importDefault(n(6689)),i=n(1502),l=n(3570),s=n(6405),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.getPopOverContainer=function(){return(0,s.findDOMNode)(this)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.manager,a=e.node,r=e.panelItem,l=e.theme,s=t.activeId;return o.default.createElement(i.Drawer,{position:"left",size:"md",theme:l,show:!!r,onHide:t.closeInsertPanel,className:"ae-InsertPanel-drawer"},r&&r.component?o.default.createElement(r.component,{key:r.key,id:s,info:null==a?void 0:a.info,path:null==a?void 0:a.path,value:t.value,onChange:n.panelChangeValue,store:t,manager:n,popOverContainer:this.getPopOverContainer}):null)},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getPopOverContainer",null),a.__decorate([r.observer],t)}(o.default.Component);t.DrawerPanel=u},3823:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerRendererPanel=void 0;var a=n(752),r=n(2062),o=a.__importDefault(n(6689)),i=n(1502),l=n(3570),s=n(6405),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.getPopOverContainer=function(){return(0,s.findDOMNode)(this)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.manager,a=e.node,r=e.panelItem,l=e.theme,s=t.activeId,u=t.showInsertRenderer;return o.default.createElement(i.Drawer,{position:"left",size:"md",theme:l,show:u,onHide:t.closeInsertRendererPanel,className:"ae-InsertRendererPanel-drawer",bodyClassName:"ae-drawer-renderers"},r.title&&o.default.createElement("div",{className:"ae-drawer-title"},r.title),r&&r.component?o.default.createElement(r.component,{key:r.key,id:s,info:null==a?void 0:a.info,path:null==a?void 0:a.path,value:t.value,onChange:n.panelChangeValue,store:t,manager:n,popOverContainer:this.getPopOverContainer}):null)},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getPopOverContainer",null),a.__decorate([r.observer],t)}(o.default.Component);t.DrawerRendererPanel=u},1169:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InsertSubRendererPanel=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6918)),i=n(2062),l=a.__importDefault(n(6689)),s=n(3570),u=n(3879),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.handleLeftClick=function(e){var t=e.currentTarget.getAttribute("data-value");this.props.store.setInsertTag(t)},t.prototype.handleClick=function(e){var t=e.currentTarget.getAttribute("data-value");this.props.store.setInsertSelected(t)},t.prototype.hadnlDBClick=function(e){var t=e.currentTarget.getAttribute("data-value"),n=this.props.store;n.setInsertSelected(t);var a=this.props.manager;"replace"===n.insertMode?a.replace():a.insert()},t.prototype.handleInsert=function(){this.props.manager.insert()},t.prototype.handleReplace=function(){this.props.manager.replace()},t.prototype.handleCancel=function(){this.props.store.closeInsertPanel()},t.prototype.render=function(){var e,t,n=this,a=this.props.store,i=this.props.manager,s=null===(e=a.getNodeById(a.insertId))||void 0===e?void 0:e.info,d=null===(t=(0,o.default)(s.regions,(function(e){return e.key===a.insertRegion})))||void 0===t?void 0:t.label,c=a.groupedInsertRenderers,p=Object.keys(c),f=a.insertTag||"全部",m=c[f];return l.default.createElement("div",{className:"ae-InsertPanel"},"replace"===a.insertMode?l.default.createElement("div",{className:"ae-InsertPanel-title"},"更改组件类型"):l.default.createElement("div",{className:"ae-InsertPanel-title"},"选中组件插入到 ",l.default.createElement("code",null,s.name," > ",d)),l.default.createElement("div",{className:"m-b-xs"},l.default.createElement(r.InputBox,{className:"editor-InputSearch",value:a.insertRenderersKeywords,onChange:a.changeInsertRenderersKeywords,placeholder:"输入关键字可过滤组件",clearable:!1},a.insertRenderersKeywords?l.default.createElement("a",{onClick:a.resetInsertRenderersKeywords},l.default.createElement(r.Icon,{icon:"close",className:"icon"})):l.default.createElement(r.Icon,{icon:"search",className:"icon"}))),l.default.createElement("div",{className:"ae-RenderersPicker-list"},l.default.createElement("ul",null,p.map((function(e){return l.default.createElement("li",{key:e,className:f===e?"is-active":""},l.default.createElement("a",{"data-value":e,onClick:n.handleLeftClick},e))}))),l.default.createElement("div",{className:"ae-RenderersPicker-content"},Array.isArray(m)&&m.length?l.default.createElement("ul",null,m.map((function(e){return l.default.createElement("li",{key:e.id,className:a.insertSelected===e.id?"is-active":"","data-value":e.id,onClick:n.handleClick,onDoubleClick:n.hadnlDBClick},l.default.createElement(u.RendererThumb,{theme:i.env.theme,env:i.env,schema:e.previewSchema||{type:"tpl",tpl:"无法预览"}}),l.default.createElement("div",{className:"ae-RenderersPicker-info"},l.default.createElement("h4",null,e.name),l.default.createElement("div",null,l.default.createElement(r.Html,{html:e.description}),e.docLink?l.default.createElement("a",{target:"_blank",href:a.amisDocHost+e.docLink}," 详情 "):null)))}))):l.default.createElement("div",null,"没有可用组件,也许你该切换容器试试。"))),l.default.createElement("div",{className:"ae-InsertPanel-footer"},"replace"===a.insertMode?l.default.createElement(r.Button,{className:"action-btn action-btn-primary",onClick:this.handleReplace,disabled:!a.insertSelected,level:"primary"},"替换"):l.default.createElement(r.Button,{className:"action-btn action-btn-primary",onClick:this.handleInsert,disabled:!a.insertSelected,level:"primary"},"插入"),l.default.createElement(r.Button,{className:"action-btn",onClick:this.handleCancel},"取消")))},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleLeftClick",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"hadnlDBClick",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleInsert",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleReplace",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCancel",null),a.__decorate([i.observer],t)}(l.default.Component);t.InsertSubRendererPanel=d},7823:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeftPanels=void 0;var a=n(752),r=n(2062),o=a.__importDefault(n(6689)),i=n(1502),l=a.__importDefault(n(9003)),s=n(1502),u=n(3570),d=n(6405),c=a.__importDefault(n(6918)),p=n(4214),f=n(3823),m=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isFixedStatus:!1},n}return a.__extends(t,e),t.prototype.handleHidden=function(){var e=this.props.store,t=e.changeLeftPanelOpenStatus,n=e.leftPanelOpenStatus,a=e.changeLeftPanelKey,r=!n;t(r),a(r?"outline":"none")},t.prototype.handleFixed=function(){this.setState({isFixedStatus:!this.state.isFixedStatus})},t.prototype.handleSelect=function(e){var t=this.props.store,n=t.changeLeftPanelOpenStatus,a=t.changeLeftPanelKey;e&&(n(!0),a(e))},t.prototype.getPopOverContainer=function(){return(0,d.findDOMNode)(this)},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.manager,r=t.theme,u=this.state.isFixedStatus,d=n.leftPanelOpenStatus,m=n.getLeftPanels(),h=n.activeId,v=n.getNodeById(h),g=n.getLeftPanelKey(),y=n.insertId&&n.insertRegion&&(0,c.default)(m,(function(e){return"insert"===e.key})),b=(0,c.default)(m,(function(e){return"insertRenderer"===e.key}));return o.default.createElement(o.default.Fragment,null,m.length>0&&o.default.createElement("div",{className:(0,l.default)("editor-left-panel width-draggable",d?"":"hidden-status",u?"fixed-status":"")},o.default.createElement("div",{className:"editor-panel-btn","editor-tooltip":u?"关闭悬浮模式":"开启悬浮模式","tooltip-position":"right"},o.default.createElement(i.Icon,{icon:u?"editor-fixed":"editor-no-fixed",className:"panel-btn",onClick:this.handleFixed})),o.default.createElement(s.Tabs,{className:"editorPanel-tabs",linksClassName:"editorPanel-tabs-header",contentClassName:"editorPanel-tabs-content",theme:r,activeKey:g,onSelect:this.handleSelect,tabsMode:"sidebar",sidePosition:"left"},m.map((function(t){return"insert"!==t.key&&"insertRenderer"!==t.key?o.default.createElement(s.Tab,{key:t.key,eventKey:t.key,title:t.title,className:"editorPanel-tabs-pane ae-Editor-".concat(t.key,"Pane"),mountOnEnter:!0,unmountOnExit:!1},function(t){return t.render?t.render({id:h,info:null==v?void 0:v.info,path:null==v?void 0:v.path,node:v,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):t.component?o.default.createElement(t.component,{node:v,key:t.key,id:h,info:null==v?void 0:v.info,path:null==v?void 0:v.path,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):null}(t)):null}))),o.default.createElement("div",{className:(0,l.default)("left-panel-arrow",d?"":"hidden-status"),onClick:this.handleHidden})),u&&o.default.createElement("div",{className:"editor-left-panel-fixed-placeholder"}),o.default.createElement(p.DrawerPanel,{store:n,manager:a,node:v,panelItem:y,theme:r}),o.default.createElement(f.DrawerRendererPanel,{store:n,manager:a,node:v,panelItem:b,theme:r}))},a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleHidden",null),a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleFixed",null),a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSelect",null),a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getPopOverContainer",null),a.__decorate([r.observer,a.__metadata("design:paramtypes",[Object])],t)}(o.default.Component);t.LeftPanels=m},411:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OutlinePanel=void 0;var a=n(752),r=n(2062),o=a.__importDefault(n(6689)),i=a.__importDefault(n(9003)),l=n(3570),s=n(1502),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={curSearchElemKey:""},t}return a.__extends(t,e),t.prototype.handleClick=function(e){var t=this.props.store,n=e.currentTarget,a=n.getAttribute("data-node-id"),r=n.getAttribute("data-node-region");this.props.manager,r?t.activeId===a&&t.activeRegion===r?t.setActiveId(a):t.setActiveId(a,r):t.setActiveId(a)},t.prototype.handleEnter=function(e){var t=e.currentTarget,n=t.getAttribute("data-node-id"),a=t.getAttribute("data-node-region");this.props.store.setHoverId(n,a)},t.prototype.handleDragStart=function(e){var t=e.currentTarget.getAttribute("data-node-id");t&&this.props.manager.startDrag(t,e)},t.prototype.handleDragOver=function(e){var t=e.target.closest("[data-node-id][data-node-region]");if(t){var n=this.props.manager,a=t.getAttribute("data-node-id"),r=t.getAttribute("data-node-region");e.preventDefault(),a&&r&&n.dnd.switchToRegion(e.nativeEvent,a,r)}},t.prototype.handleDrop=function(e){this.props.manager.dnd.drop(e.nativeEvent)},t.prototype.handleSearchElemKeyChange=function(e){this.setState({curSearchElemKey:e})},t.prototype.clearSearchElemKey=function(){this.setState({curSearchElemKey:""})},t.prototype.renderTitleByKeyword=function(e,t){if(t&&~e.indexOf(t)){var n=e.indexOf(t),a=n+t.length;return o.default.createElement("span",null,e.substring(0,n),o.default.createElement("span",{className:"has-keywords"},t),e.substring(a))}return e},t.prototype.renderItem=function(e,t){var n,a=this,r=this.props.store,l=this.state.curSearchElemKey,u=!r.dragging&&e.singleRegion?e.uniqueChildren[0].uniqueChildren:e.uniqueChildren,d=u.length;return!r.dragging||e.isRegion||e.children.length?o.default.createElement("li",{className:(0,i.default)("ae-Outline-node",{"is-folded":e.folded,"is-active":r.activeId===e.id&&!e.region||e.isRegion&&r.dropId===e.id&&r.dropRegion===e.region||e.isRegion&&r.activeId===e.id&&r.activeRegion===e.region,"is-region":e.isRegion,"is-hover":!e.isRegion&&(r.isHoved(e.id)||r.isContextOn(e.id)),"has-children":d,"is-dragging":r.dragId===e.id&&"schema"===r.dragType}),key:t},o.default.createElement("a",{onClick:this.handleClick,onMouseEnter:this.handleEnter,"data-node-id":e.id,"data-node-region":e.region,"data-node-common-config":null===(n=e.schema)||void 0===n?void 0:n.$$commonSchema,draggable:e.draggable,onDragStart:this.handleDragStart},d?o.default.createElement("span",{onClick:e.toggleFold,className:(0,i.default)("ae-Outline-expander ae-Outline-node-icon",{"is-folded":e.folded}),"data-node-id":e.id,"data-node-region":e.region},o.default.createElement(s.Icon,{icon:"down-arrow"})):null,o.default.createElement("span",{className:"ae-Outline-node-text"},e.isCommonConfig?"".concat(e.label,"-[公共配置]"):this.renderTitleByKeyword(e.label,l))),d?o.default.createElement("ul",{className:"ae-Outline-sublist"},u.map((function(e,t){return a.renderItem(e,t)}))):null):null},t.prototype.render=function(){var e=this,t=this.state.curSearchElemKey,n=this.props.store,a=n.outline;return o.default.createElement("div",{className:"ae-Outline-panel"},o.default.createElement("div",{className:"panel-header"},"大纲"),o.default.createElement(s.InputBox,{className:"editor-InputSearch",value:t,onChange:this.handleSearchElemKeyChange,placeholder:"查询页面元素",clearable:!1},t?o.default.createElement("a",{onClick:this.clearSearchElemKey},o.default.createElement(s.Icon,{icon:"close",className:"icon"})):o.default.createElement(s.Icon,{icon:"editor-search",className:"icon"})),o.default.createElement("hr",{className:"margin-top"}),o.default.createElement("div",{className:(0,i.default)("ae-Outline","hoverShowScrollBar",{"ae-Outline--draging":n.dragging}),onDragOver:this.handleDragOver,onDrop:this.handleDrop},n.dragging?o.default.createElement("div",{className:"ae-Outline-tip"},"将目标拖入导航中的节点可以切换容器"):null,a.length?o.default.createElement("ul",{className:"ae-Outline-list"},a.map((function(t,n){return e.renderItem(t,n)}))):o.default.createElement("div",null,"加载中,请稍等...")))},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleEnter",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragStart",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragOver",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDrop",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSearchElemKeyChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"clearSearchElemKey",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String,String]),a.__metadata("design:returntype",void 0)],t.prototype,"renderTitleByKeyword",null),a.__decorate([r.observer],t)}(o.default.Component);t.OutlinePanel=u},4913:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=n(1502),o=n(2062),i=a.__importDefault(n(6689)),l=a.__importDefault(n(9003)),s=a.__importDefault(n(4859)),u=a.__importDefault(n(94)),d=n(3570),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={toggleCollapseFolderStatus:!1},t.curCollapseFolded={},t}return a.__extends(t,e),t.prototype.handleRegionFilterClick=function(e){var t=e.currentTarget.getAttribute("data-value"),n=this.props,a=n.store,r=n.manager;t=t===a.subRendererRegion?"":t,r.switchToRegion(t)},t.prototype.handleDragStart=function(e){var t=e.currentTarget.getAttribute("data-id");e.dataTransfer.setData('dnd-dom/[data-id="'.concat(t,'"]'),"")},t.prototype.handleClick=function(e){var t=e.currentTarget.getAttribute("data-dnd-id");this.props.manager.addElem(t)},t.prototype.changeCollapseFoldStatus=function(e,t){this.curCollapseFolded[e]=!this.curCollapseFolded[e],this.setState({toggleCollapseFolderStatus:!this.state.toggleCollapseFolderStatus}),t.preventDefault(),t.stopPropagation()},t.prototype.renderThumb=function(e){var t=this.props.manager;return e?(0,r.render)(e,{onAction:d.noop},t.env):i.default.createElement("p",null,"没有预览图")},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.searchRendererType,o=t.className,d=this.props.groupedRenderers||{},c=Object.keys(d);return i.default.createElement("div",{className:(0,l.default)("ae-RendererList",o)},"renderer"===a&&i.default.createElement(s.default,{store:n}),"custom-renderer"===a&&i.default.createElement(u.default,{store:n}),i.default.createElement("hr",{className:"margin-top"}),i.default.createElement("div",{className:"ae-RendererList-groupWrap hoverShowScrollBar"},c.length?c.map((function(t,a){var o=d[t];return o&&o.length?i.default.createElement(i.default.Fragment,{key:t},i.default.createElement("div",{key:"".concat(t,"-head"),className:"ae-RendererList-head collapse-header",onClick:function(n){e.changeCollapseFoldStatus(t,n)}},t,i.default.createElement("div",{className:(0,l.default)("expander-icon",{"is-folded":!!e.curCollapseFolded[t]}),title:e.curCollapseFolded[t]?"点击展开":"点击折叠"},i.default.createElement(r.Icon,{icon:"right-arrow-bold"}))),i.default.createElement("div",{key:"".concat(t,"-content"),className:(0,l.default)("ae-RendererList-group collapse-content",{"is-folded":!!e.curCollapseFolded[t]})},o.map((function(t){var o="".concat(a,"_").concat(t.id);return i.default.createElement("div",{key:o,className:"ae-RendererList-item",draggable:!0,"data-id":o,"data-dnd-type":"subrenderer","data-dnd-id":t.id,"data-dnd-data":JSON.stringify(t.scaffold||{type:t.type}),onDragStart:e.handleDragStart},i.default.createElement("div",{className:"icon-box","data-dnd-id":t.id,title:"点击添加「".concat(t.name,"」"),onClick:e.handleClick},i.default.createElement("i",{className:(0,l.default)("fa-fw",t.icon||"fa fa-circle-thin")})),i.default.createElement("div",{className:"ae-RendererInfo","data-dnd-id":t.id,onClick:e.handleClick},t.name),i.default.createElement(r.TooltipWrapper,{tooltipClassName:"ae-RendererThumb",trigger:"hover",rootClose:!0,placement:"right",tooltip:{offset:[10,0],children:function(){return i.default.createElement("div",null,i.default.createElement("div",{className:"ae-Renderer-title"},t.name),t.description||t.docLink?i.default.createElement("div",{className:"ae-Renderer-info"},i.default.createElement("span",{dangerouslySetInnerHTML:{__html:t.description?t.description:""}}),t.docLink&&i.default.createElement("a",{target:"_blank",href:n.amisDocHost+t.docLink}," 详情 ")):null,i.default.createElement("div",{className:"ae-Renderer-preview"},e.renderThumb(t.previewSchema)))}}},i.default.createElement("div",{className:"ae-RendererIcon"},i.default.createElement(r.Icon,{icon:"editor-help",className:"icon"}))))})))):null})):i.default.createElement("span",null,"没有找到可用组件,您可以换个关键字继续查找。")))},a.__decorate([d.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleRegionFilterClick",null),a.__decorate([d.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),a.__decorate([d.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"changeCollapseFoldStatus",null),a.__decorate([o.observer],t)}(i.default.Component);t.default=c},2004:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RightPanels=void 0;var a=n(752),r=n(2062),o=a.__importDefault(n(6689)),i=n(1502),l=a.__importDefault(n(9003)),s=n(1502),u=n(3570),d=n(6405),c=n(4979),p=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isOpenStatus:!0,isFixedStatus:!1},n}return a.__extends(t,e),t.prototype.handleFixed=function(){this.setState({isFixedStatus:!this.state.isFixedStatus})},t.prototype.handleSelect=function(e){this.props.store.changePanelKey(e)},t.prototype.handleHidden=function(){this.setState({isOpenStatus:!this.state.isOpenStatus})},t.prototype.getPopOverContainer=function(){return(0,d.findDOMNode)(this)},t.prototype.render=function(){var e=this,t=this.props,n=t.store,a=t.manager,r=t.theme,u=this.state,d=u.isOpenStatus,p=u.isFixedStatus,f=n.getPanels(),m=n.activeId,h=n.getNodeById(m),v=n.getPanelKey(),g=function(t){return t.render?t.render({id:m,info:null==h?void 0:h.info,path:null==h?void 0:h.path,node:h,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):t.component?o.default.createElement(t.component,{node:h,key:t.key,id:m,info:null==h?void 0:h.info,path:null==h?void 0:h.path,value:n.value,onChange:a.panelChangeValue,store:n,manager:a,popOverContainer:e.getPopOverContainer}):null};return f.length>0?o.default.createElement("div",{className:(0,l.default)("editor-right-panel width-draggable",f.length>1?"mul-tabs-panel":"",d?"":"hidden-status",p?"fixed-status":"")},o.default.createElement("div",{className:"editor-panel-btn","editor-tooltip":p?"关闭悬浮模式":"开启悬浮模式","tooltip-position":"left"},o.default.createElement(i.Icon,{icon:p?"editor-fixed":"editor-no-fixed",className:"panel-btn",onClick:this.handleFixed})),o.default.createElement("div",{className:"editorPanel-inner"},1===f.length?g(f[0]):o.default.createElement(s.Tabs,{theme:r,className:"editorPanel-tabs",linksClassName:"editorPanel-tabs-header",contentClassName:"editorPanel-tabs-content",activeKey:v,onSelect:this.handleSelect,tabsMode:"sidebar",sidePosition:"right"},f.map((function(e){return o.default.createElement(s.Tab,{key:e.key,eventKey:e.key,title:o.default.createElement("span",{className:"editor-tab-icon","editor-tooltip":e.title,"tooltip-position":"left"},o.default.createElement("i",{className:"fa ".concat(e.icon)})),className:"editorPanel-tabs-pane ae-Editor-".concat(e.key,"Pane"),mountOnEnter:!0,unmountOnExit:!1},g(e))})))),o.default.createElement(c.WidthDraggableBtn,{isLeftDragIcon:!0}),o.default.createElement("div",{className:(0,l.default)("right-panel-arrow",d?"":"hidden-status"),onClick:this.handleHidden})):null},a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleFixed",null),a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],t.prototype,"handleSelect",null),a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleHidden",null),a.__decorate([u.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getPopOverContainer",null),a.__decorate([r.observer,a.__metadata("design:paramtypes",[Object])],t)}(o.default.Component);t.RightPanels=p},7649:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PopOverForm=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=n(2062),l=n(3570),s=n(3893),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.overlay=r.default.createRef(),t}return a.__extends(t,e),t.prototype.buildSchema=function(){var e=this,t=this.props.store.popOverForm;return{type:"form",wrapWithPanel:!1,mode:"normal",wrapperComponent:"div",body:t.body,submitOnChange:!0,autoFocus:!0,onFinished:function(n){var a;null===(a=t.callback)||void 0===a||a.call(t,n,(0,l.diff)(t.value,n)),setTimeout((function(){var t;return null===(t=e.overlay.current)||void 0===t?void 0:t.updatePosition()}),200)}}},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,i=e.manager,l=t.popOverForm;return r.default.createElement(o.Overlay,{target:null==l?void 0:l.target,placement:"left-bottom-left-top left-top-left-bottom right-bottom-right-top right-top-right-bottom center",show:!!l,ref:this.overlay},r.default.createElement(o.PopOver,{overlay:!0,className:"ae-Editor-popOverForm",onHide:t.closePopOverForm},l?(0,o.render)(this.buildSchema(),{data:(0,s.createObject)(t.ctx,null==l?void 0:l.value)},a.__assign(a.__assign({},i.env),{seesion:"popover-form",theme:n})):r.default.createElement("p",null,"Loading...")))},a.__decorate([i.observer],t)}(r.default.Component);t.PopOverForm=u},6751:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=n(1502),o=a.__importStar(n(6689)),i=a.__importDefault(n(9003)),l=n(3570),s=n(361),u=n(2062),d=n(6405),c=a.__importDefault(n(6089)),p=a.__importDefault(n(248)),f=n(3131),m=a.__importDefault(n(1325)),h=n(2717),v=n(3893),g=a.__importDefault(n(2959)),y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.env=a.__assign(a.__assign(a.__assign({},t.props.manager.env),{notify:function(e,n){t.props.editable?console.warn("[Notify]",e,n):r.toast[e]?r.toast[e](n,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,n)},theme:t.props.theme,session:"preview-".concat(t.props.manager.id),rendererResolver:t.rendererResolver.bind(t)}),t.props.amisEnv),t.doingSelection=!1,t.unReaction=(0,l.reactionWithOldValue)((function(){return[t.getHighlightNodes(),t.props.store.activeId]}),(function(e,n){var a=e[0],r=t.props.store;setTimeout((function(){t.calculateHighlightBox(a)}),50);var o=null==n?void 0:n[0];Array.isArray(o)&&(o=o.filter((function(e){return!~a.indexOf(e)})),r.resetHighlightBox(o))})),t}return a.__extends(t,e),t.prototype.componentDidMount=function(){this.currentDom=(0,d.findDOMNode)(this),this.currentDom.addEventListener("mouseleave",this.handleMouseLeave),this.currentDom.addEventListener("mousemove",this.handleMouseMove),this.currentDom.addEventListener("click",this.handleClick),this.currentDom.addEventListener("mouseover",this.handeMouseOver),this.currentDom.addEventListener("mousedown",this.handeMouseDown),this.props.manager.on("after-update",this.handlePanelChange)},t.prototype.componentWillUnmount=function(){var e=this;this.currentDom.removeEventListener("mouseleave",this.handleMouseLeave),this.currentDom.removeEventListener("mousemove",this.handleMouseMove),this.currentDom.removeEventListener("click",this.handleClick),this.currentDom.removeEventListener("mouseover",this.handeMouseOver),this.currentDom.removeEventListener("mousedown",this.handeMouseDown),this.props.manager.off("after-update",this.handlePanelChange),setTimeout((function(){return(0,s.clearStoresCache)([e.env.session])}),500)},t.prototype.contentsRef=function(e){var t,n=this;e?(this.layer=e.querySelector(".ae-Preview-widgets"),this.props.store.setLayer(this.layer),this.unSensor=(0,r.resizeSensor)(e,(function(){return n.calculateHighlightBox(n.getHighlightNodes())}))):(delete this.layer,null===(t=this.unSensor)||void 0===t||t.call(this),delete this.unSensor)},t.prototype.handlePanelChange=function(){var e=this;setTimeout((function(){return e.calculateHighlightBox(e.getHighlightNodes())}),50)},t.prototype.getHighlightNodes=function(){return this.props.store.highlightNodes.map((function(e){return e.id}))},t.prototype.calculateHighlightBox=function(e){var t=this.props.store;this.layer&&t.calculateHighlightBox(e)},t.prototype.handeMouseDown=function(e){var t,n=this,a=1===e.button&&null!==window.event||0===e.button;if(this.props.editable&&a&&!e.defaultPrevented&&!e.defaultPrevented&&!(null===(t=e.target)||void 0===t?void 0:t.closest("[draggable]"))){var r=this.layer;if(r){var o=null,i=r.getBoundingClientRect(),l=e.pageX,s=e.pageY,u=l-i.left,d=s-i.top,c=function(e){o||((o=document.createElement("div")).classList.add("ae-Editor-selectionCursor"),r.appendChild(o)),n.doingSelection=!0;var t=e.pageX-l,a=e.pageY-s;o.style.cssText="left: ".concat(u+Math.min(t,0),"px; top: ").concat(d+Math.min(a,0),"px; width: ").concat(Math.abs(t),"px; height: ").concat(Math.abs(a),"px;")},p=function(e){n.doingSelection=!1,window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",p),o&&r.removeChild(o);var t=e.pageX-l,a=e.pageY-s,i={x:u+Math.min(t,0),y:d+Math.min(a,0),w:Math.abs(t),h:Math.abs(a)};if(!(i.w<10&&i.h<10)){var f=function(e){window.removeEventListener("click",f,!0),e.preventDefault(),e.stopPropagation()};window.addEventListener("click",f,!0),setTimeout((function(){return window.removeEventListener("click",f,!0)}),350),n.doSelection(i)}};window.addEventListener("mousemove",c),window.addEventListener("mouseup",p)}}},t.prototype.doSelection=function(e){var t=this.layer,n=(0,d.findDOMNode)(this);if(t&&n){var a=[],r=t.getBoundingClientRect(),o=e.x+r.left,i=e.y+r.top,l=(e.w,e.h,e.x+r.left+e.w),s=e.y+r.top+e.h,u=n.querySelectorAll("[data-editor-id]");[].slice.apply(u).forEach((function(e){if(!a.some((function(t){return t.contains(e)}))){var t=e.getBoundingClientRect();o<=t.left&&i<=t.top&&l>=t.right&&s>=t.bottom&&(~a.indexOf(e)||a.push(e))}}));var c=a.map((function(e){return e.getAttribute("data-editor-id")})).filter((function(e,t,n){return n.indexOf(e)===t}));c.length&&this.props.manager.setSelection(c)}},t.prototype.handleClick=function(e){var t,n=this.props.store,a=e.target.closest("[data-editor-id]");if(!e.target.closest(".ae-editor-action-btn"))if(e.defaultPrevented)e.stopPropagation();else{if(a){var r=a.getAttribute("data-editor-id"),o="",i=e.target.closest("[data-region-host]");if(i){var l=i.getAttribute("data-region-host");l&&l===r&&i.getAttribute("data-region")&&(o=i.getAttribute("data-region"))}e.metaKey?this.props.manager.toggleSelection(r):n.setActiveId(r,o)}if(!(null===(t=this.layer)||void 0===t?void 0:t.contains(e.target))&&this.props.editable){var s=this.props.manager.trigger("prevent-click",{data:e});s.prevented||s.stoped||(e.preventDefault(),e.stopPropagation())}}},t.prototype.handleNavSwitch=function(e){this.props.store.setActiveId(e)},t.prototype.handleMouseMove=function(e){var t;if(!this.doingSelection&&!this.props.manager.disableHover){var n=this.props.store,a=e.target;if(!(null===(t=this.layer)||void 0===t?void 0:t.contains(a))&&!e.target.closest(".ignore-hover-elem")){var r=a.closest("[data-editor-id]");if(r){var o=r.getAttribute("data-editor-id"),i="",l=e.target.closest("[data-region-host]");if(l){var s=l.getAttribute("data-region-host");s&&s===o&&l.getAttribute("data-region")&&(i=l.getAttribute("data-region"))}n.setMouseMoveRegion(i),n.setHoverId(o)}}}},t.prototype.handleMouseLeave=function(){var e=this.props.store;e.setMouseMoveRegion(""),e.setHoverId("")},t.prototype.handeMouseOver=function(e){this.props.editable&&(e.preventDefault(),e.stopPropagation())},t.prototype.handleDragEnter=function(e){this.props.manager.dnd.dragEnter(e.nativeEvent)},t.prototype.handleDragLeave=function(e){this.props.manager.dnd.dragLeave(e.nativeEvent)},t.prototype.handleDragOver=function(e){this.props.manager.dnd.dragOver(e.nativeEvent)},t.prototype.handleDrop=function(e){this.props.manager.dnd.drop(e.nativeEvent)},t.prototype.getCurrentTarget=function(){return this.props.isMobile?this.currentDom.querySelector(".ae-Preview-inner"):this.currentDom.querySelector(".ae-Preview-body")},t.prototype.rendererResolver=function(e,t,n){var o=this.props,i=o.editable,l=o.manager,s=(0,r.resolveRenderer)(e,t);if(!1===i)return s;s=s||{name:"error",test:function(){return!0},component:f.ErrorRenderer};var u=l.getEditorInfo(s,e,t);return u&&(s=a.__assign(a.__assign({},s),{component:l.makeWrapper(u,s)})),s},t.prototype.render=function(){var e=this,t=this.props,n=t.className,l=t.editable,s=t.store,u=t.manager,d=(t.amisEnv,t.theme),f=t.isMobile,h=t.iframeUrl,v=t.autoFocus,y=t.toolbarContainer,_=a.__rest(t,["className","editable","store","manager","amisEnv","theme","isMobile","iframeUrl","autoFocus","toolbarContainer"]);return o.default.createElement("div",{id:"editor-preview-body",onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDragOver:this.handleDragOver,onDrop:this.handleDrop,className:(0,i.default)("ae-Preview",n,f?"is-mobile-body hoverShowScrollBar":"is-pc-body")},o.default.createElement("div",{className:(0,i.default)("ae-Preview-body",n,l?"is-edting":"",f?"is-mobile":"is-pc hoverShowScrollBar")},h&&f&&o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"mobile-sound"}),o.default.createElement("div",{className:"mobile-receiver"}),o.default.createElement("div",{className:"mobile-left-btn"}),o.default.createElement("div",{className:"mobile-right-btn"}),o.default.createElement("div",{className:"mobile-open-btn"})),o.default.createElement("div",{className:"ae-Preview-inner",ref:this.contentsRef},h&&f?o.default.createElement(m.default,a.__assign({},_,{key:"mobile",className:"ae-PreviewFrame",editable:l,isMobile:f,store:s,env:this.env,manager:u,url:h,theme:d,autoFocus:v})):o.default.createElement(b,a.__assign({},_,{editable:l,autoFocus:v,store:s,env:this.env,key:"pc"})),h&&f&&s.contextId?o.default.createElement("span",{className:"ae-IframeMask"}):null,o.default.createElement("div",{className:"ae-Preview-widgets",id:"aePreviewHighlightBox"},s.highlightNodes.map((function(t){return o.default.createElement(c.default,{node:t,key:t.id,store:s,id:t.id,title:t.label,toolbarContainer:y,onSwitch:e.handleNavSwitch,manager:u},t.childRegions.map((function(e){return!t.memberImmutable(e.region)&&s.isRegionActive(e.id,e.region)?o.default.createElement(p.default,{manager:u,key:e.region,store:s,node:e,id:e.id,name:e.region,title:e.label,preferTag:e.preferTag,isOnlyChildRegion:1===t.childRegions.length}):null})))})))),this.currentDom&&o.default.createElement(g.default,{key:f?"mobile-back-up":"pc-back-up",className:"ae-editor-action-btn",target:this.getCurrentTarget.bind(this),onClick:function(e){console.log(e)}},o.default.createElement(r.Icon,{icon:"back-up",className:"back-top-icon"}))))},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"contentsRef",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handlePanelChange",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Array]),a.__metadata("design:returntype",void 0)],t.prototype,"calculateHighlightBox",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handeMouseDown",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],t.prototype,"handleNavSwitch",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleMouseMove",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleMouseLeave",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handeMouseOver",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragEnter",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragLeave",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDragOver",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleDrop",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getCurrentTarget",null),a.__decorate([u.observer],t)}(o.Component);t.default=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props.store;this.props.autoFocus&&setTimeout((function(){if((0,h.isAlive)(e)){var t=(0,v.findTree)(e.outline,(function(e){return!e.isRegion&&e.clickable}));t&&(0,h.isAlive)(e)&&e.setActiveId(t.id)}}),350)},t.prototype.render=function(){var e=this.props,t=e.editable,n=e.store,o=(e.autoFocus,e.env),i=e.data,l=a.__rest(e,["editable","store","autoFocus","env","data"]);return(0,r.render)(t?n.filteredSchema:n.filteredSchemaForPreview,a.__assign(a.__assign({},l),{key:t?"edit-mode":"preview-mode",theme:o.theme,data:null!=i?i:n.ctx}),o)},a.__decorate([u.observer],t)}(o.default.Component)},248:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddBTNSvg=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=a.__importDefault(n(9003)),i=n(1502),l=n(2062),s=n(3570);t.AddBTNSvg='\n\n \n \n \n\n';var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.handleClick=function(){var e=this.props,t=e.manager,n=e.id,a=e.name;t.emptyRegion(n,a)},t.prototype.render=function(){var e=this.props,t=e.store,n=e.id,a=e.name,l=e.title,s=e.node,u=e.isOnlyChildRegion,d=t.isRegionHighlighted(n,a),c=t.isRegionHighlightHover(n,a),p=t.isRegionDragEnter(n,a),f=t.getNodeById(n),m=s.x-f.x,h=s.y-f.y;return r.default.createElement("div",{"data-renderer":s.host.info.renderer.name,"data-region":a,className:(0,o.default)("ae-Editor-rhlbox",p?"is-dragenter":"",!u&&c?"region-hover":"",d?"is-highlight":"",m<87&&h<21&&s.x<190?"region-label-within":""),style:{width:s.w,height:s.h,borderWidth:"".concat(Math.max(0,h),"px ").concat(Math.max(0,f.w-m-s.w),"px ").concat(Math.max(0,f.h-h-s.h),"px ").concat(Math.max(0,m),"px")}},r.default.createElement("div",{"data-node-id":n,"data-node-region":a,className:"region-tip ".concat(u?"is-only-child-region":""," ignore-hover-elem")},l,r.default.createElement("span",{className:"margin-space"},"|"),r.default.createElement("button",{type:"button",className:"clear-icon-btn","data-tooltip":"点击清空当前区域","data-position":"bottom",onClick:this.handleClick},r.default.createElement(i.Icon,{icon:"clear-btn"}))))},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleClick",null),a.__decorate([l.observer],t)}(r.default.Component);t.default=u},1548:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RegionWrapper=void 0;var a=n(752),r=n(2717),o=a.__importDefault(n(6689)),i=n(6405),l=n(2406),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.UNSAFE_componentWillMount=function(){this.parentNode=this.context;var e=this.props,t=e.$$editor,n=e.manager;if(!this.parentNode&&t&&t.id){var a=n.store.getNodeById(t.id);a&&(this.parentNode=a)}this.parentNode&&(this.editorNode=this.parentNode.addChild({id:this.parentNode.id,label:this.props.label,path:"".concat(this.parentNode.path,"/").concat(this.props.name),region:this.props.name,regionInfo:this.props.regionConfig,preferTag:this.props.preferTag}))},t.prototype.componentDidMount=function(){this.editorNode&&this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)},t.prototype.componentDidUpdate=function(e){this.editorNode&&this.markDom(this.editorNode.id,this.props.name,this.props.rendererName)},t.prototype.componentWillUnmount=function(){this.editorNode&&(0,r.isAlive)(this.editorNode)&&this.parentNode.removeChild(this.editorNode)},t.prototype.markDom=function(e,t,n){var a=(0,i.findDOMNode)(this);if(a){var r=this.props.wrapperResolve,o=r?r(a):a.parentElement;o.setAttribute("data-region",t),o.setAttribute("data-region-host",e),o.setAttribute("data-region-placeholder",this.props.placeholder||this.props.label),n&&o.setAttribute("data-renderer",n)}},t.prototype.render=function(){return o.default.createElement(l.EditorNodeContext.Provider,{value:this.editorNode},this.props.children,o.default.createElement("span",{className:"ae-Region-placeholder"}))},t.contextType=l.EditorNodeContext,t}(o.default.Component);t.RegionWrapper=s},3879:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RendererThumb=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(1502),l=function(e){function t(t){var n=e.call(this,t)||this;return n.env=a.__assign({session:"preview"},n.props.env),n.state={scale:!0},n.rootRef=n.rootRef.bind(n),n.syncHeight=n.syncHeight.bind(n),n.handleClick=n.handleClick.bind(n),n}return a.__extends(t,e),t.prototype.componentWillUnmount=function(){this.unSensor&&this.unSensor()},t.prototype.rootRef=function(e){var t;this.ref=e,e&&(this.syncHeight(),this.unSensor=(0,i.resizeSensor)(null===(t=e.firstChild)||void 0===t?void 0:t.firstChild,this.syncHeight))},t.prototype.syncHeight=function(){if(this.ref){var e=this.state.scale,t=this.ref.firstChild;this.ref.style.cssText="height: ".concat(t.scrollHeight/(e?2:1),"px;")}},t.prototype.handleClick=function(e){e.preventDefault(),this.setState({scale:!this.state.scale})},t.prototype.render=function(){var e=this,t=this.props,n=t.schema,l=t.theme;return o.default.createElement(r.LazyComponent,{unMountOnHidden:!1,schema:n,component:function(t){var n=t.schema;return o.default.createElement("div",{className:"ae-RenderersPicker-thumb ".concat(e.state.scale?"is-scaled":"")},o.default.createElement("div",{className:"ae-Editor-rendererThumbWrap"},o.default.createElement("div",{className:"ae-Editor-rendererThumbIcon",onClick:e.handleClick},o.default.createElement(r.Icon,{icon:e.state.scale?"zoom-in":"zoom-out"})),o.default.createElement("div",{ref:e.rootRef,className:"ae-Editor-rendererThumb"},o.default.createElement("div",{className:"ae-Editor-rendererThumbInner"},(0,i.render)(a.__assign(a.__assign({},n),{mode:"horizontal"===n.mode?"normal":n.mode}),{theme:l},e.env)))))}})},t}(o.default.Component);t.RendererThumb=l},8024:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScaffoldModal=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=n(2062),l=n(3570),s=n(3893),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.handleConfirm=function(e){var t,n,r,o=e[0],i=this.props.store;if(o=a.__assign(a.__assign({},null===(t=i.scaffoldForm)||void 0===t?void 0:t.value),o),null===(n=i.scaffoldForm)||void 0===n?void 0:n.pipeOut){var l=i.scaffoldForm.pipeOut(o);o=a.__assign({},l)}null===(r=i.scaffoldForm)||void 0===r||r.callback(o),i.closeScaffoldForm()},t.prototype.buildSchema=function(){var e,t,n=this.props.store.scaffoldForm;return(e={type:"form",wrapWithPanel:!1,initApi:n.initApi,api:n.api,mode:n.mode||"normal",wrapperComponent:"div"})[n.controls?"controls":"body"]=null!==(t=n.controls)&&void 0!==t?t:n.body,e},t.prototype.scopeRef=function(e){this.amisScope=e},t.prototype.handleConfirmClick=function(){var e;return a.__awaiter(this,void 0,void 0,(function(){var t,n,r,o;return a.__generator(this,(function(a){switch(a.label){case 0:if(!(t=null===(e=this.amisScope)||void 0===e?void 0:e.getComponents()[0]))return[2];n=this.props.store,a.label=1;case 1:return a.trys.push([1,3,4,5]),n.setScaffoldBuzy(!0),[4,t.doAction({type:"submit"},t.props.data,!0)];case 2:return r=a.sent(),this.handleConfirm([r]),[3,5];case 3:return o=a.sent(),console.log(o.stack),n.setScaffoldError(o.message),[3,5];case 4:return n.setScaffoldBuzy(!1),[7];case 5:return[2]}}))}))},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,i=e.manager,l=t.scaffoldForm,u=(0,o.getTheme)(n||"cxd").classnames;return r.default.createElement(o.Modal,{size:(null==l?void 0:l.size)||"md",show:!!l,onHide:t.closeScaffoldForm,closeOnEsc:!t.scaffoldFormBuzy},r.default.createElement("div",{className:u("Modal-header")},t.scaffoldFormBuzy?null:r.default.createElement("a",{"data-position":"left",onClick:t.closeScaffoldForm,className:u("Modal-close")},r.default.createElement(o.Icon,{icon:"close",className:"icon"})),r.default.createElement("div",{className:u("Modal-title")},null==l?void 0:l.title)),r.default.createElement("div",{className:u("Modal-body")},l?(0,o.render)(this.buildSchema(),{data:(0,s.createObject)(t.ctx,null==l?void 0:l.value),onValidate:l.validate,scopeRef:this.scopeRef},a.__assign(a.__assign({},i.env),{seesion:"scaffold-dialog",theme:n})):r.default.createElement("p",null,"Loading...")),r.default.createElement("div",{className:u("Modal-footer")},t.scaffoldFormBuzy||t.scaffoldError?r.default.createElement("div",{className:u("Dialog-info"),key:"info"},r.default.createElement(o.Spinner,{size:"sm",key:"info",show:t.scaffoldFormBuzy}),t.scaffoldError?r.default.createElement("span",{className:u("Dialog-error")},t.scaffoldError):null):null,r.default.createElement(o.Button,{level:"primary",onClick:this.handleConfirmClick,disabled:t.scaffoldFormBuzy},"确认"),r.default.createElement(o.Button,{onClick:t.closeScaffoldForm},"取消")))},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleConfirm",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"scopeRef",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",Promise)],t.prototype,"handleConfirmClick",null),a.__decorate([i.observer],t)}(r.default.Component);t.ScaffoldModal=u},1952:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubEditor=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=n(2062),l=a.__importDefault(n(2296)),s=n(3570),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.afterResolveEditorInfo=function(e){var t,n,a,r,o,i,l=this.props.store,s=e.context;if(null===(t=l.subEditorContext)||void 0===t?void 0:t.slot){var u=l.subEditorSlotPath;!~s.schemaPath.indexOf(u)&&s.data?(s.data.editable=!1,s.data.memberImmutable=!Array.isArray(null===(r=l.subEditorContext)||void 0===r?void 0:r.value),s.data.memberImmutable||(s.data.name="容器")):s.schemaPath===u&&s.data&&(Array.isArray(null===(o=l.subEditorContext)||void 0===o?void 0:o.value)||(s.data.movable=!1,s.data.removable=!1),s.data.typeMutable=null===(i=l.subEditorContext)||void 0===i?void 0:i.typeMutable)}else s.data&&!s.schemaPath&&(null===(n=l.subEditorContext)||void 0===n?void 0:n.memberImmutable)&&(s.data.memberImmutable=null===(a=l.subEditorContext)||void 0===a?void 0:a.memberImmutable)},t.prototype.handleBuildPanels=function(e){var t,n=this.props.store;if(null===(t=n.subEditorContext)||void 0===t?void 0:t.slot){var a=n.subEditorSlotPath,r=e.context;if(!~r.schemaPath.indexOf(a)){var o=r.data.concat();if(r.data.splice(0,r.data.length),!r.info.memberImmutable){var i=o.find((function(e){return"renderers"===e.key}));i&&r.data.push(i)}}}},t.prototype.buildSchema=function(){var e,t=this,n=this.props,o=n.store,i=n.manager,s=o.subEditorContext,u=i.config;return{size:"full",title:null===(e=o.subEditorContext)||void 0===e?void 0:e.title,onClose:o.closeSubEditor,onConfirm:o.confirmSubEditor,body:o.subEditorContext?{type:"form",mode:"normal",wrapperComponent:"div",onValidate:function(e){return a.__awaiter(t,void 0,void 0,(function(){var t,n,r;return a.__generator(this,(function(a){switch(a.label){case 0:return[4,null===(r=null===(n=o.subEditorContext)||void 0===n?void 0:n.validate)||void 0===r?void 0:r.call(n,e)];case 1:return(t=a.sent())?[2,{schema:t}]:[2]}}))}))},onChange:o.subEditorOnChange,body:[{name:"schema",asFormItem:!0,children:function(e){var n,a=e.value,s=e.onChange;return r.default.createElement(l.default,{autoFocus:!0,value:a,ref:o.subEditorRef,onChange:s,data:null===(n=o.subEditorContext)||void 0===n?void 0:n.data,schemaFilter:i.config.schemaFilter,theme:i.env.theme,afterResolveEditorInfo:t.afterResolveEditorInfo,onBuildPanels:t.handleBuildPanels,isMobile:o.isMobile,isSubEditor:!0,iframeUrl:u.iframeUrl,ctx:o.ctx,amisEnv:u.amisEnv,plugins:u.plugins,isHiddenProps:u.isHiddenProps,$schemaUrl:u.$schemaUrl})}}]}:{type:"tpl",tpl:"Loading..."},actions:[[{children:s?r.default.createElement("div",{className:"ae-DialogToolbar"},r.default.createElement("button",{type:"button","data-tooltip":"撤销",disabled:!s.canUndo,onClick:o.undoSubEditor},r.default.createElement("i",{className:"fa fa-undo"})),r.default.createElement("button",{type:"button","data-tooltip":"重做",disabled:!s.canRedo,onClick:o.redoSubEditor},r.default.createElement("i",{className:"fa fa-rotate-right"}))):null},{type:"submit",label:"确认",level:"primary"},{type:"button",label:"取消",actionType:"close"}]],closeOnEsc:!1,bodyClassName:"ae-dialog subEditor-dialog"}},t.prototype.render=function(){var e=this.props,t=e.store,n=e.theme,r=e.manager;return(0,o.render)(a.__assign({type:"dialog"},this.buildSchema()),{show:!!t.subEditorContext,data:{schema:t.subEditorValue}},a.__assign(a.__assign({},r.env),{seesion:"editor-dialog",theme:n}))},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"afterResolveEditorInfo",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleBuildPanels",null),a.__decorate([i.observer],t)}(r.default.Component);t.SubEditor=u},1578:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableViewEditor=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=a.__importDefault(n(113)),i=n(1502),l=n(3570);function s(e){for(var t=0,n=0,a=0;at&&(n=a,t=r)}return n}var u=function(e){function t(t){var n=e.call(this,t)||this;n.preventTableClick=!1,n.tableViewWrapperRef=r.default.createRef(),n.store=n.props.manager.store;var a=n.props.schema.trs||[];if(a.length){var o=a.map((function(e){return e.$$id})),i=s(a);n.maxChildTrIndex=i;var l=(a[i].tds||[]).map((function(e){return e.$$id}));n.state={trIds:o,tdIds:l,displayMergeCell:!1}}else n.state={trIds:[],tdIds:[],displayMergeCell:!1};return n.listenTdSelection(),n}return a.__extends(t,e),t.prototype.componentDidMount=function(){this.syncLinePos(),this.listenTdSelection()},t.prototype.componentWillUnmount=function(){this.removeListenTdSelection()},t.prototype.syncLineState=function(){var e=this,t=this.props.schema.trs||[];if(t.length){var n=t.map((function(e){return e.$$id})),a=s(t);this.maxChildTrIndex=a;var r=(t[a].tds||[]).map((function(e){return e.$$id}));this.setState({trIds:n,tdIds:r},(function(){e.syncLinePos()}))}},t.prototype.removeListenTdSelection=function(){var e=this.tableViewWrapperRef.current;if(e){var t=e.querySelector("tbody");t.removeEventListener("mousedown",this.handleCellMouseDown),t.removeEventListener("mousemove",this.handleCellMouseMove),t.removeEventListener("mouseup",this.handleCellMouseUp),t.removeEventListener("click",this.handleCellMouseClick)}},t.prototype.listenTdSelection=function(){var e=this.tableViewWrapperRef.current;if(e){var t=e.querySelector("tbody");t.addEventListener("mousedown",this.handleCellMouseDown),t.addEventListener("mousemove",this.handleCellMouseMove),t.addEventListener("mouseup",this.handleCellMouseUp),t.addEventListener("click",this.handleCellMouseClick)}},t.prototype.handleCellMouseDown=function(e){var t,n=e.target;if(!n||"TD"===n.tagName){this.removeAllSelectionMark(),this.setState({displayMergeCell:!1});var a=n.getAttribute("data-editor-id");this.isSelectionCell=!0,this.selectedCell=((t={})[a]=(0,l.JSONGetById)(this.props.schema,a),t)}},t.prototype.handleCellMouseMove=function(e){if(this.isSelectionCell){this.preventTableClick=!0;var t=e.target;if(t&&"TD"!==t.tagName)return;var n=t.getAttribute("data-editor-id");n in this.selectedCell||(this.selectedCell[n]=(0,l.JSONGetById)(this.props.schema,n),this.markSelectingCell(),this.setState({displayMergeCell:!0}))}},t.prototype.findFirstAndLastCell=function(){var e=[];for(var t in this.selectedCell)e.push(this.selectedCell[t]);e.length||console.warn("必须有 td");for(var n=e[0].$$col,a=e[0].$$row,r=0,o=0,i=null,l=0,s=e;l=r&&(r=d),c>=o&&(o=c),u.$$col<=n&&(n=u.$$col),u.$$row<=a&&(a=u.$$row),u.$$col===n&&u.$$row===a&&(i=u)}return{minRow:a,minCol:n,maxRow:o,maxCol:r,firstCell:i,lastCell:null}},t.prototype.markSelectingCell=function(){for(var e=this,t=this.findFirstAndLastCell(),n=t.minRow,a=t.minCol,r=t.maxRow,o=t.maxCol,i=0,l=this.props.schema.trs;i=a&&c.$$col<=o&&c.$$row>=n&&c.$$row<=r&&(c.$$id in this.selectedCell||(this.selectedCell[c.$$id]=d))}var p=this.tableViewWrapperRef.current;p&&p.querySelectorAll("td").forEach((function(t){t.getAttribute("data-editor-id")in e.selectedCell&&t.setAttribute("data-selected","1")}))},t.prototype.removeAllSelectionMark=function(){var e=this.tableViewWrapperRef.current;e&&e.querySelectorAll("td").forEach((function(e){e.removeAttribute("data-selected")}))},t.prototype.handleCellMouseUp=function(e){this.isSelectionCell=!1},t.prototype.handleCellMouseClick=function(e){this.preventTableClick&&(e.stopPropagation(),e.preventDefault(),this.preventTableClick=!1)},t.prototype.handleMergeCell=function(){var e=this.findFirstAndLastCell(),t=e.firstCell,n=e.minRow,a=e.minCol,r=e.maxRow,o=e.maxCol;if(t){var i=t.$$id,l=o-a+1,s=r-n+1;t.colspan=l,t.rowspan=s;var u=[];for(var d in this.selectedCell)u.push(this.selectedCell[d]);for(var c=u.filter((function(e){return e.$$id!==i})).map((function(e){return e.$$id})),p=this.props.schema.trs,f=p.length;f--;){var m=p[f];m.tds=m.tds.filter((function(e){return!c.includes(e.$$id)})),m.tds.length||p.splice(f,1)}var h=this.props.schema.$$id;this.store.changeValueById(h,this.props.schema),this.setState({displayMergeCell:!1})}else console.warn("找不到第一个 cell")},t.prototype.syncLinePos=function(){var e=this.tableViewWrapperRef.current;if(e){var t=e.querySelector("table").getBoundingClientRect(),n=e.querySelectorAll("tr");if(!n.length||void 0===this.maxChildTrIndex)return;for(var a=Array.from(e.querySelectorAll(".ae-TableViewEditor-rowLine")),r=0;r20&&i.toast.warning("由于内边距限制,太小的高度设置会不生效,可以调小默认内边距")}else console.warn("找不到对应的 id",r)},t.prototype.handleColMouseDown=function(e){this.lineMouseDownCommon(e),document.addEventListener("mousemove",this.handleColMouseMove),document.addEventListener("mouseup",this.handleColMouseUp)},t.prototype.handleColMouseMove=function(e){var t=e.clientX-this.startX;this.draggingElement.style.left=this.draggingElementLeft+t+"px"},t.prototype.handleColMouseUp=function(e){document.removeEventListener("mousemove",this.handleColMouseMove),document.removeEventListener("mouseup",this.handleColMouseUp);var t=e.clientX-this.startX,n=this.store,r=this.draggingId,o=n.getValueOf(r),i=this.tableViewWrapperRef.current.querySelector('td[data-editor-id="'.concat(r,'"]'));if(this.draggingElement.style.background="none",o&&i){var l=i.getBoundingClientRect().width+t;n.changeValueById(r,a.__assign(a.__assign({},o),{width:l}))}else console.warn("找不到对应的 id",r)},t.prototype.handleLineClick=function(e){e.stopPropagation(),e.preventDefault()},t.prototype.renderMergeIcon=function(){return this.state.displayMergeCell?r.default.createElement("div",{className:"ae-TableViewEditor-mergeIcon",onMouseDown:this.handleMergeCell},"合并单元格"):null},t.prototype.render=function(){var e=this,t=this.state.trIds.map((function(t){return r.default.createElement("div",{className:"ae-TableViewEditor-rowLine",key:"row-".concat(t),"data-id":t,onMouseDown:e.handleRowMouseDown})})),n=this.state.tdIds.map((function(t){return r.default.createElement("div",{className:"ae-TableViewEditor-colLine",key:"row-".concat(t),"data-id":t,onMouseDown:e.handleColMouseDown})}));return r.default.createElement("div",{className:"ae-TableViewEditor",ref:this.tableViewWrapperRef},this.props.children,this.renderMergeIcon(),t,n)},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"removeListenTdSelection",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"listenTdSelection",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCellMouseDown",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCellMouseMove",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCellMouseUp",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleCellMouseClick",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"handleMergeCell",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleRowMouseDown",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleRowMouseMove",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleRowMouseUp",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleColMouseDown",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleColMouseMove",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleColMouseUp",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[MouseEvent]),a.__metadata("design:returntype",void 0)],t.prototype,"handleLineClick",null),t}(r.default.Component);t.TableViewEditor=u},5863:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VRenderer=void 0;var a=n(752),r=n(2717),o=a.__importDefault(n(6689)),i=n(6405),l=n(2406),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.UNSAFE_componentWillMount=function(){var e=this,t=this.props,n=(t.data,t.path,t.widthMutable),r=a.__rest(t,["data","path","widthMutable"]),o=this.context;this.editorNode=o.addChild({id:r.id,label:r.name,path:this.props.path,schemaPath:r.schemaPath,info:r,getData:function(){return e.props.data},widthMutable:n,memberIndex:r.memberIndex})},t.prototype.componentDidMount=function(){this.markDom(this.editorNode.id)},t.prototype.componentDidUpdate=function(){this.markDom(this.editorNode.id)},t.prototype.componentWillUnmount=function(){(0,r.isAlive)(this.editorNode)&&this.context.removeChild(this.editorNode)},t.prototype.markDom=function(e){var t=(0,i.findDOMNode)(this);if(t){var n=this.editorNode.info,a=n.wrapperResolve?n.wrapperResolve(t):t;(Array.isArray(a)?a:a?[a]:[]).forEach((function(t){return t.setAttribute("data-editor-id",e)}))}},t.prototype.render=function(){return o.default.createElement(l.EditorNodeContext.Provider,{value:this.editorNode},this.props.children)},t.contextType=l.EditorNodeContext,t}(o.default.Component);t.VRenderer=s},2959:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importDefault(n(6689)),o=a.__importDefault(n(9003)),i=n(3901),l=n(3570),s=function(e){function t(t){var n=e.call(this,t)||this;return n.ref=r.default.createRef(),n.scrollElem=null,n.state={visible:void 0!==t.visible&&t.visible},n}return a.__extends(t,e),t.prototype.componentDidMount=function(){this.bindScrollEvent()},t.prototype.componentWillUnmount=function(){this.scrollElem&&this.scrollElem.removeEventListener("scroll",this.handleScroll)},t.prototype.getDefaultTarget=function(){return this.ref.current&&this.ref.current.ownerDocument?this.ref.current.ownerDocument:window},t.prototype.handleScroll=function(e){var t=this.props.visibilityHeight||400,n=function(e,t){var n;if("undefined"==typeof window)return 0;var a,r="scrollTop",o=0,i=null!=(a=e)&&a===a.window;return i?o=e.pageYOffset:e instanceof Document?o=e.documentElement[r]:e&&(o=e[r]),e&&!i&&"number"!=typeof o&&(o=null===(n=(e.ownerDocument||e).documentElement)||void 0===n?void 0:n[r]),o}(e.target);this.setState({visible:n>t})},t.prototype.bindScrollEvent=function(){var e=this.props.target;this.scrollElem=e()||this.getDefaultTarget(),this.scrollElem&&(this.scrollElem.addEventListener("scroll",this.handleScroll),this.handleScroll({target:this.scrollElem}))},t.prototype.scrollToTop=function(e){var t=this.props.onClick;this.scrollElem&&(this.scrollElem.scrollTo({top:0,behavior:"smooth"}),"function"==typeof t&&t(e))},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,l=void 0===n?"":n,s=(0,o.default)("editor-backTop",l,this.state.visible?"":"hidden"),u=i(this.props,["className","children","visibilityHeight","target","visible"]),d=r.default.createElement("div",{className:"backTop-content"},r.default.createElement("div",{className:"backTop-icon"},"UP"));return r.default.createElement("div",a.__assign({},u,{className:s,onClick:this.scrollToTop,ref:this.ref}),t||d)},a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getDefaultTarget",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"handleScroll",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"bindScrollEvent",null),a.__decorate([l.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"scrollToTop",null),t}(r.default.Component);t.default=s},3131:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorRenderer=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.render=function(){return r.default.createElement("div",{className:"ae-ErrorRenderer"},"类型错误,无法渲染")},t}(r.default.Component);t.ErrorRenderer=o},5992:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InputComponentName=void 0;var a=n(6689);t.InputComponentName=function(e){var t=e.value,n=e.onChange,r=e.render,o=e.name,i=e.node,l=(0,a.useState)([]),s=l[0],u=l[1];return(0,a.useEffect)((function(){for(var e=null==i?void 0:i.getComponent(),t=null==e?void 0:e.context,n=[];null==t?void 0:t.getComponents;)t.getComponents().forEach((function(t){t.props.name&&t!==e&&n.push(t.props.name)})),t=t.parent;u(n)}),[i]),r("inner",{type:"input-text",name:o},{value:t,onChange:function(e){return n(e),!1},options:s})}},94:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importDefault(n(6689)),o=n(2062),i=a.__importDefault(n(512)),l=function(e){function t(t){var n=e.call(this,t)||this;n.localStorageKey="amis-editor-custom-renderer-search-history";var a=t.store.customRenderersByOrder;return a=a.filter((function(e){return!e.disabledRendererPlugin})),n.state={customRenderersByOrder:a},n}return a.__extends(t,e),t.prototype.render=function(){var e=this.state.customRenderersByOrder,t=this.props.store,n=t.changeCustomRenderersKeywords,a=t.changeCustomRenderersTag;return e&&e.length>0?r.default.createElement(i.default,{allResult:e,searchPanelUUID:this.localStorageKey,onChange:n,onTagChange:a}):null},a.__decorate([o.observer,a.__metadata("design:paramtypes",[Object])],t)}(r.default.Component);t.default=l},512:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importDefault(n(6689)),o=n(2062),i=n(1502),l=a.__importDefault(n(9003)),s=n(3570),u=n(6517),d=function(e){function t(t){var n=e.call(this,t)||this;n.ref=r.default.createRef(),n.localStorageKey="amis-editor-search-panel",n.curTagFolded={},t.searchPanelUUID&&(n.localStorageKey=t.searchPanelUUID);var a=[],o={};if(t.allResult&&t.allResult.length>0){var i=n.getResultTags(t.allResult);a=i.curResultTags,o=i.curResultByTag}return n.state={resultTags:a,resultByTag:o,curKeyword:t.externalKeyword||"",searchResult:[],searchResultByTag:{},visible:!1,curKeywordSearchHistory:n.getSearchHistory(),toggleTagFolderStatus:!0},n}return a.__extends(t,e),t.prototype.componentDidMount=function(){var e,t;(null===(t=null===(e=this.ref.current)||void 0===e?void 0:e.childNodes[0])||void 0===t?void 0:t.childNodes[0])&&(this.curInputBox=this.ref.current.childNodes[0].childNodes[0],this.curInputBox.addEventListener("keyup",this.bindEnterEvent))},t.prototype.componentWillUnmount=function(){this.curInputBox&&this.curInputBox.removeEventListener("keyup",this.bindEnterEvent)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this,n=e.externalKeyword;n!==this.state.curKeyword&&this.setState({curKeyword:n},(function(){t.groupedResultByKeyword(n)}))},t.prototype.getSearchHistory=function(){var e=[];if(window.localStorage){var t=window.localStorage.getItem(this.localStorageKey);if(t){var n=JSON.parse(t);n&&Array.isArray(n)&&(e=n)}}return e},t.prototype.getResultTags=function(e){var t=[],n={},a=this.props.tagKey||"tags";return e.forEach((function(e){!(0,u.isString)(e)&&e[a]&&(Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:["其他"]).forEach((function(a){t.indexOf(a)<0&&t.push(a),n[a]||(n[a]=[]),n[a].push(e)}))})),{curResultTags:t,curResultByTag:n}},t.prototype.groupedResultByKeyword=function(e){var t=this.props.allResult,n=[],a={},r=e||this.state.curKeyword,o={},i=r?new RegExp(r,"i"):null;t.forEach((function(t){(0,u.isString)(t)&&i&&i.test(t)?n.push(t):e&&!["name","description","scaffold.type"].some((function(e){return t[e]&&i&&i.test(t[e])}))||(t.tags?(Array.isArray(t.tags)?t.tags.concat():t.tags?[t.tags]:["其他"]).forEach((function(e){a[e]=o[e]||[],a[e].push(t)})):n.push(t))})),this.setState({searchResult:n,searchResultByTag:a})},t.prototype.bindFocusEvent=function(){this.setState({visible:!0})},t.prototype.bindBlurEvent=function(){var e=this,t=this.state.curKeyword;this.setState({visible:!1},(function(){t&&e.addSearchHistory(t),e.props.onChange(t)}))},t.prototype.updateCurKeyword=function(e){var t=this;this.setState({curKeyword:e},(function(){t.groupedResultByKeyword(e),t.props.immediateChange&&t.props.onChange(e)}))},t.prototype.changeTagFoldStatus=function(e,t){t.preventDefault(),t.stopPropagation(),this.curInputBox.focus(),this.curTagFolded[e]=!this.curTagFolded[e],this.setState({toggleTagFolderStatus:!this.state.toggleTagFolderStatus})},t.prototype.bindEnterEvent=function(e){var t=this;e.preventDefault();var n=this.state.curKeyword;13===(null==e?void 0:e.keyCode)&&this.setState({visible:!1},(function(){t.addSearchHistory(n),t.props.onChange(n)}))},t.prototype.bindClearActionEvent=function(){var e=this;this.setState({curKeyword:"",searchResult:[],searchResultByTag:{}},(function(){e.props.onChange("")}))},t.prototype.bindTagClickEvent=function(e){var t,n=this,a=this.state.resultByTag[e];this.setState({visible:!1,curKeyword:e,searchResult:a,searchResultByTag:(t={},t[e]=a,t)},(function(){n.props.onTagChange&&n.props.onTagChange(e)}))},t.prototype.addSearchHistory=function(e){var t=this.state.curKeywordSearchHistory;t.indexOf(e)>-1||(10===t.length?(t.shift(),t.push(e)):t.push(e),this.updateSearchHistory())},t.prototype.clickKeywordEvent=function(e){var t=this;this.setState({visible:!1,curKeyword:e},(function(){t.groupedResultByKeyword(e),t.props.onChange(e)}))},t.prototype.deleteSearchHistory=function(e,t){e.preventDefault(),e.stopPropagation(),this.curInputBox.focus();var n=this.state.curKeywordSearchHistory,a=n.indexOf(t);n.splice(a,1),this.updateSearchHistory()},t.prototype.clearSearchHistory=function(e){var t=this;e.preventDefault(),e.stopPropagation(),this.curInputBox.focus();var n=this.state.curKeywordSearchHistory;n&&n.length>0&&this.setState({curKeywordSearchHistory:[]},(function(){t.updateSearchHistory()}))},t.prototype.updateSearchHistory=function(){if(window.localStorage){var e=this.state.curKeywordSearchHistory;window.localStorage.setItem(this.localStorageKey,JSON.stringify(e))}},t.prototype.renderNameByKeyword=function(e,t){if(t&&~e.indexOf(t)){var n=e.indexOf(t),a=n+t.length;return r.default.createElement("span",null,e.substring(0,n),r.default.createElement("span",{className:"is-keyword"},t),e.substring(a))}return e},t.prototype.resultIsHasScroll=function(e,t){var n=this,a=0;return(e?Object.keys(e):[]).map((function(t){n.curTagFolded[t]?a+=1:a+=e[t].length+1})),a>t},t.prototype.render=function(){var e=this,t=this.props,n=t.allResult,o=t.closeAutoComplete,s=t.immediateChange,u=this.state,d=u.resultTags,c=u.curKeyword,p=u.searchResult,f=u.searchResultByTag,m=u.visible,h=f?Object.keys(f):[],v=a.__spreadArray([],this.state.curKeywordSearchHistory,!0).reverse(),g=!1;return m&&n&&n.length>0&&(g=!0),o&&c&&(g=!1),o&&(!d||d&&0===d.length)&&(!v||v&&0===v.length)&&(g=!1),r.default.createElement("div",{className:"editor-InputSearch-panel",ref:this.ref},r.default.createElement(i.InputBox,{className:"editor-InputSearch",value:c,onChange:this.updateCurKeyword,placeholder:"输入关键字查询组件",clearable:!1,onFocus:this.bindFocusEvent,onBlur:this.bindBlurEvent},r.default.createElement(r.default.Fragment,null,s&&(c?r.default.createElement(i.Icon,{icon:"search-clear",className:"icon delete-btn-icon",onClick:this.bindClearActionEvent}):r.default.createElement(i.Icon,{icon:"editor-search",className:"icon",onClick:this.bindBlurEvent})),!s&&r.default.createElement(r.default.Fragment,null,c&&r.default.createElement(i.Icon,{icon:"search-clear",className:"icon delete-btn-icon margin-right",onClick:this.bindClearActionEvent}),r.default.createElement(i.Icon,{icon:"editor-search",className:"icon",onClick:this.bindBlurEvent})))),r.default.createElement("div",{className:"editor-InputSearch-content ".concat(g?"":"hidden-status")},!c&&v&&v.length>0&&r.default.createElement("div",{className:"search-history ".concat(d&&d.length>0?"has-border-bottom":"")},r.default.createElement("div",{className:"header"},r.default.createElement("div",{className:"header-title"},"搜索历史"),r.default.createElement("div",{className:"header-clear-icon",onClick:function(t){return e.clearSearchHistory(t)}},"清空")),r.default.createElement("div",{className:"history-cont ".concat(v.length>6?"hasScrollBtn":"")},v.map((function(t,n){return r.default.createElement("div",{className:"history-item",key:"".concat(t,"-").concat(n),onClick:function(){return e.clickKeywordEvent(t)}},r.default.createElement("div",{className:"history-keyword"},t),r.default.createElement("div",{className:"delete-icon",title:"点击删除这条搜索记录"},r.default.createElement(i.Icon,{icon:"close",onClick:function(n){return e.deleteSearchHistory(n,t)}})))})))),c&&0===p.length&&0===h.length&&r.default.createElement("div",{className:"search-result-list"},r.default.createElement("div",{className:"search-result-placeholder"},"搜索结果为空,您可以换个关键字继续查找。")),c&&p.length>0&&r.default.createElement("div",{className:"search-result-list ".concat(p.length>6?"hasScrollBtn":"")},p.length>1&&r.default.createElement("div",{className:"subRenderers-list only-one-tag"},p.map((function(t,n){return r.default.createElement("div",{className:"subRenderers-item",key:"subRenderers-only-one-tag-".concat(n),onClick:function(){return e.clickKeywordEvent(t.name)}},t.name||t.type)})))),c&&h.length>0&&r.default.createElement("div",{className:"search-result-list ".concat(this.resultIsHasScroll(f,6)?"hasScrollBtn":"")},h.length>1&&h.map((function(t,n){return r.default.createElement("div",{className:"multiple-subRenderers-list",key:"".concat(t,"-subRenderers-list")},r.default.createElement("div",{className:(0,l.default)("subRenderers-header",{"is-folded":!!e.curTagFolded[t]}),title:e.curTagFolded[t]?"点击展开":"点击折叠",onClick:function(n){e.changeTagFoldStatus(t,n)}},t,r.default.createElement(i.Icon,{icon:"right-arrow-bold"})),r.default.createElement("div",{className:(0,l.default)("subRenderers-list",{"is-folded":!!e.curTagFolded[t]})},f[t]&&f[t].map((function(t,n){return r.default.createElement("div",{className:"subRenderers-item",key:n,onClick:function(){return e.clickKeywordEvent(t.name)}},e.renderNameByKeyword(t.name,c))}))))})),1===h.length&&h.map((function(t,n){return r.default.createElement("div",{className:"subRenderers-list only-one-tag",key:"subRenderers-tag-".concat(t)},f[t]&&f[t].map((function(t,n){return r.default.createElement("div",{className:"subRenderers-item",key:"subRenderers-only-one-tag-".concat(n),onClick:function(){return e.clickKeywordEvent(t.name)}},t.name||t.type)})))}))),!c&&d&&d.length>0&&r.default.createElement("div",{className:"tag-list"},r.default.createElement("div",{className:"header"},"组件分类"),r.default.createElement("div",{className:"tag-list-cont"},d.length?d.map((function(t,n){return r.default.createElement("div",{className:"tag-item",key:"".concat(t,"-").concat(n),onClick:function(){return e.bindTagClickEvent(t)}},t)})):null))))},a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"getSearchHistory",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"bindFocusEvent",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"bindBlurEvent",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],t.prototype,"updateCurKeyword",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String,Object]),a.__metadata("design:returntype",void 0)],t.prototype,"changeTagFoldStatus",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"bindEnterEvent",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"bindClearActionEvent",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],t.prototype,"bindTagClickEvent",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],t.prototype,"addSearchHistory",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],t.prototype,"clickKeywordEvent",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,String]),a.__metadata("design:returntype",void 0)],t.prototype,"deleteSearchHistory",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],t.prototype,"clearSearchHistory",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[]),a.__metadata("design:returntype",void 0)],t.prototype,"updateSearchHistory",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String,String]),a.__metadata("design:returntype",void 0)],t.prototype,"renderNameByKeyword",null),a.__decorate([s.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Number]),a.__metadata("design:returntype",void 0)],t.prototype,"resultIsHasScroll",null),a.__decorate([o.observer,a.__metadata("design:paramtypes",[Object])],t)}(r.default.Component);t.default=d},4859:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importDefault(n(6689)),o=n(2062),i=a.__importDefault(n(512)),l=function(e){function t(t){var n=e.call(this,t)||this;n.localStorageKey="amis-editor-renderer-search-history";var a=t.store.subRenderersByOrder;return a=a.filter((function(e){return!e.disabledRendererPlugin})),n.state={subRenderersByOrder:a,defaultKeyword:""},n.lastSubRenderersTag=t.store.subRenderersTag,n.changeSubRenderersTag=n.changeSubRenderersTag.bind(n),n}return a.__extends(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.store.subRenderersTag,n=e.store.subRenderersKeywords;t===this.lastSubRenderersTag||n||(this.lastSubRenderersTag=t,this.setState({defaultKeyword:t}))},t.prototype.changeSubRenderersTag=function(e){this.lastSubRenderersTag=e,this.props.store.changeSubRenderersTag(e)},t.prototype.render=function(){var e=this.state,t=e.subRenderersByOrder,n=e.defaultKeyword,a=this.props.store.changeSubRenderersKeywords;return r.default.createElement(i.default,{allResult:t,externalKeyword:n,searchPanelUUID:this.localStorageKey,onChange:a,onTagChange:this.changeSubRenderersTag,immediateChange:!0,closeAutoComplete:!0})},a.__decorate([o.observer,a.__metadata("design:paramtypes",[Object])],t)}(r.default.Component);t.default=l},4979:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WidthDraggableBtn=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=a.__importDefault(n(9003)),i=function(e){function t(t){var n=e.call(this,t)||this;return n.handleResizeMouseDown=n.handleResizeMouseDown.bind(n),n.handleResizeMouseMove=n.handleResizeMouseMove.bind(n),n.handleResizeMouseUp=n.handleResizeMouseUp.bind(n),n}return a.__extends(t,e),t.prototype.handleResizeMouseDown=function(e){3==e.nativeEvent.which||(this.dragWrap=e.currentTarget.parentElement,document.addEventListener("mousemove",this.handleResizeMouseMove),document.addEventListener("mouseup",this.handleResizeMouseUp),this.startX=e.clientX,this.startWidth=this.dragWrap.offsetWidth)},t.prototype.handleResizeMouseMove=function(e){var t=this.props.isLeftDragIcon,n=e.clientX-this.startX;this.dragWrap.style.cssText+="width: ".concat(Math.max(t?this.startWidth-n:this.startWidth+n,260),"px")},t.prototype.handleResizeMouseUp=function(){document.removeEventListener("mousemove",this.handleResizeMouseMove),document.removeEventListener("mouseup",this.handleResizeMouseUp)},t.prototype.render=function(){var e=this.props,t=e.isLeftDragIcon,n=e.className;return r.default.createElement("div",{onMouseDown:this.handleResizeMouseDown,className:(0,o.default)("width-draggable-icon",n,t?"leftBtn":"")})},t}(r.default.Component);t.WidthDraggableBtn=i},2128:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(752),r=a.__importDefault(n(6689)),o=n(4979);t.default=function(e,t){return function(n){function i(){return null!==n&&n.apply(this,arguments)||this}return a.__extends(i,n),i.prototype.render=function(){return r.default.createElement(r.default.Fragment,null,r.default.createElement(e,a.__assign({},this.props)),r.default.createElement(o.WidthDraggableBtn,{isLeftDragIcon:t}))},i}(r.default.Component)}},9703:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderThumbToGhost=t.mapReactElement=t.hackIn=t.makeSchemaFormRender=t.makeWrapper=void 0;var a=n(752),r=n(361),o=n(2717),i=a.__importDefault(n(6689)),l=n(1160),s=a.__importDefault(n(9003)),u=a.__importDefault(n(8492)),d=n(1548),c=a.__importDefault(n(6918)),p=n(9305),f=n(2062),m=n(2406),h=a.__importDefault(n(8579)),v=n(6405),g=n(3570),y=n(3893),b=n(3190);function _(e){var t,n=e.body,o=e.definitions,i=e.controls,l=e.onChange,u=e.value,d=e.env,c=e.api,p=e.popOverContainer,f=e.submitOnChange,m=e.node,h="body";Array.isArray(i)&&(n=i,h="controls"),n=Array.isArray(n)?n.concat():[],!1===f&&n.push({type:"submit",label:"保存",level:"primary",block:!0,className:"ae-Settings-actions"});var v=((t={definitions:o})[h]=n,t.className=(0,s.default)("config-form-content","ae-Settings-content","hoverShowScrollBar",!1===f?"with-actions":""),t.wrapperComponent="div",t.type="form",t.title="",t.mode="normal",t.api=c,t.wrapWithPanel=!1,t.submitOnChange=!1!==f,t.messages={validateFailed:""},t);return(0,r.render)(v,{onFinished:function(e){return l(e,(0,g.diff)(u,e))},data:u,node:m,popOverContainer:p},a.__assign({},d))}function C(e,t,n,a,r){var o=(0,c.default)(n,(function(e){return!e.matchRegion}));if(o){var l=o.wrapper||d.RegionWrapper;return"inner"===o.insertPosition&&i.default.isValidElement(t)?i.default.cloneElement(t,{children:i.default.createElement(l,{key:o.key,preferTag:o.preferTag,name:o.key,label:o.label,placeholder:o.placeholder,regionConfig:o,editorStore:r.store,manager:r,children:t.props.children,wrapperResolve:o.wrapperResolve,rendererName:a.renderer.name})}):i.default.createElement(l,{key:o.key,preferTag:o.preferTag,name:o.key,label:o.label,placeholder:o.placeholder,regionConfig:o,editorStore:r.store,manager:r,children:t,wrapperResolve:o.wrapperResolve,rendererName:a.renderer.name})}if(n.length){var s=function(e,t,n){var a=-1,r=void 0;return n.some((function(n,o){return!!n.matchRegion(t,e)&&(a=o,r=n,!0)})),[r,a]}(e,t,n),u=s[0],p=s[1];if(u){if(l=u.wrapper||d.RegionWrapper,n.splice(p,1),"outter"===u.insertPosition)return i.default.createElement(l,{key:u.key,preferTag:u.preferTag,name:u.key,label:u.label,placeholder:u.placeholder,regionConfig:u,editorStore:r.store,manager:r,children:t,wrapperResolve:u.wrapperResolve});if(i.default.isValidElement(t)){var f=t.props.children;return i.default.cloneElement(t,{children:i.default.createElement(l,{key:u.key,preferTag:u.preferTag,name:u.key,label:u.label,placeholder:u.placeholder,regionConfig:u,editorStore:r.store,manager:r,children:f,wrapperResolve:u.wrapperResolve})})}}else if(i.default.isValidElement(t)&&t.props.children)return f=t.props.children,f=Array.isArray(f)?f.map((function(t){return C(e,t,n,a,r)})):C(e,f,n,a,r),i.default.cloneElement(t,{children:f})}return t}t.makeWrapper=function(e,t,n){var r=e.store,s=n.component;return function(e){function n(t){var n=e.call(this,t)||this;return n.state={hasError:!1},n}return a.__extends(n,e),n.prototype.UNSAFE_componentWillMount=function(){var e=this,n=this.context||r.root;this.editorNode=t.id?n.addChild({id:t.id,label:t.name,isCommonConfig:!!this.props.$$commonSchema,path:this.props.$path,schemaPath:t.schemaPath,info:t,getData:function(){return e.props.data}}):void 0},n.prototype.componentDidUpdate=function(e){var t=this.props;this.editorNode&&t.$$commonSchema!==e.$$commonSchema&&this.editorNode.updateIsCommonConfig(!!this.props.$$commonSchema)},n.prototype.componentDidCatch=function(e,n){console.warn("".concat(t.name,"(").concat(t.id,")渲染发生错误:")),console.warn("当前渲染器信息:",t),console.warn("错误对象:",e),console.warn("错误信息:",n),this.setState({hasError:!0})},n.prototype.componentWillUnmount=function(){this.editorNode&&(0,o.isAlive)(this.editorNode)&&(this.context||r.root).removeChild(this.editorNode)},n.prototype.wrapperRef=function(e){for(;null==e?void 0:e.getWrappedInstance;)e=e.getWrappedInstance();this.editorNode&&(0,o.isAlive)(this.editorNode)&&this.editorNode.setComponent(e)},n.prototype.renderChild=function(e,n,r){return(0,this.props.render)(e,n,a.__assign(a.__assign({},r),{$$editor:t}))},n.prototype.render=function(){var e=this.props,n=(e.$$id,a.__rest(e,["$$id"]));if(this.state.hasError)return i.default.createElement("div",{className:"ae-Editor-renderer-error"},t.name,"(",t.id,")渲染发生错误,详细错误信息请查看控制台输出。");var r=this.props.$$commonSchema?b.CommonConfigWrapper:t.regions?p.ContainerWrapper:l.NodeWrapper;return i.default.createElement(m.EditorNodeContext.Provider,{value:this.editorNode||this.context},i.default.createElement(r,a.__assign({},n,{render:this.renderChild,$$editor:t,$$node:this.editorNode,ref:this.wrapperRef})))},n.displayName=s.displayName,n.propsList=(s&&s.propsList||[]).concat(["$$id"]),n.contextType=m.EditorNodeContext,a.__decorate([g.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object]),a.__metadata("design:returntype",void 0)],n.prototype,"wrapperRef",null),a.__decorate([g.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String,Object,Object]),a.__metadata("design:returntype",void 0)],n.prototype,"renderChild",null),a.__decorate([f.observer,a.__metadata("design:paramtypes",[Object])],n)}(i.default.Component)},t.makeSchemaFormRender=function(e,t){var n=a.__assign(a.__assign({},e.env),{session:"schema-form"});return function(r){var o=r.value,l=r.onChange,s=r.popOverContainer,u=r.id,d=r.store,c=r.node,p=a.__assign({},e.store.ctx);return u&&Object.defineProperty(p,"__props__",{get:function(){var e,t=d.getNodeById(u);return(null===(e=null==t?void 0:t.getComponent())||void 0===e?void 0:e.props)||{}}}),i.default.createElement(_,{key:"".concat(u),api:t.api,definitions:t.definitions,body:t.body?(0,h.default)(Array.isArray(t.body)?t.body:[t.body]):void 0,controls:t.controls?(0,h.default)(Array.isArray(t.controls)?t.controls:[t.controls]):void 0,value:(0,y.createObject)(p,o),submitOnChange:t.submitOnChange,onChange:l,env:n,popOverContainer:s,node:c})}},t.hackIn=function(e,t,n){for(var r=e.Renderer;r.ComposedComponent;)r=r.ComposedComponent;var o=r.prototype;if(Array.isArray(t)){var i=(0,u.default)(t,(function(e){return e.renderMethod}));Object.keys(i).forEach((function(e){var t;if(!o["__".concat(e)]&&o[e]){var n,r,l=i[e],s=null===(t=l[0])||void 0===t?void 0:t.renderMethodOverride;o["__".concat(e)]=o[e],o[e]=(n=o["__".concat(e)],r=(null==s?void 0:s(l.concat(),C))||function(){for(var e=[],t=0;t拖入占位';e.innerHTML=s,(0,v.unmountComponentAtNode)(E),E.innerHTML=""}},7137:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{type:"control",label:e.label,mode:"horizontal",className:"w-full flex items-center",labelRemark:{icon:"fa fa-question-circle",trigger:["hover","focus"],setting:!0,title:"",content:"在输入控件旁边展示一个 icon,当鼠标放上去时展示详细描述,注意启动后请将控件宽度设置成非占满,否则 icon 显示位置会换行",placement:"bottom"},body:[{type:"container",className:"flex justify-end",body:[{type:"input-sub-form",name:e.name,label:"",btnLabel:"",visibleOn:"this.".concat(e.name),className:"inline-block m-0 h-6 mr-2.5",itemClassName:"bg-white",icon:"fa fa-cog",form:{title:"设置提示信息",mode:"normal",size:"md",body:{type:"grid",columns:[{md:"6",body:[{name:"title",type:"input-text",label:"提示标题",placeholder:"请输入提示标题"},{name:"content",type:"textarea",label:"内容"}]},{md:"6",body:[{name:"placement",type:"button-group-select",size:"md",label:"弹出位置",options:[{label:"上",value:"top"},{label:"下",value:"bottom"},{label:"左",value:"left"},{label:"右",value:"right"}]},{name:"icon",label:"图标",type:"icon-picker"},{name:"className",label:"CSS 类名",type:"input-text",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:'有哪些辅助类 CSS 类名?请前往 样式说明,除此之外你可以添加自定义类名,然后在系统配置中添加自定义样式。',placement:"left"}},{name:"trigger",type:"select",label:"触发方式",multiple:!0,pipeIn:function(e){return Array.isArray(e)?e.join(","):[]},pipeOut:function(e){return e&&e.length?e.split(","):void 0},options:[{label:"鼠标悬停",value:"hover"},{label:"点击",value:"click"}]},{name:"rootClose",visibleOn:'~this.trigger.indexOf("click")',label:"点击空白关闭",type:"switch"}]}]}}},{type:"switch",name:e.name,mode:"inline",pipeIn:function(e){return!!e},pipeOut:function(e){return e?{icon:"fa fa-question-circle",trigger:["hover","focus"],className:"Remark--warning",setting:!0,placement:"top"}:null}}]}]}}},9547:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultValue=t.valuePipeOut=t.setSchemaTpl=t.getSchemaTpl=t.styleTpl=void 0;var a,r,o=n(752),i=n(3570),l=n(6918),s=n(1502),u=o.__importDefault(n(8579)),d=n(6689),c=n(5992),p=o.__importDefault(n(7137)),f={formItemName:{label:"字段名",name:"name",type:"input-text"},formItemMode:{label:"表单项展示模式",name:"mode",type:"button-group-select",size:"sm",option:"继承",pipeIn:h(""),options:[{label:"继承",value:""},{label:"正常",value:"normal"},{label:"内联",value:"inline"},{label:"水平",value:"horizontal"}]},formItemInline:{label:"表单项内联",name:"inline",type:"switch",visibleOn:'data.mode != "inline"',mode:"inline",className:"w-full",pipeIn:h(!1)},formItemSize:{name:"size",label:"控件尺寸",type:"button-group-select",size:"sm",pipeIn:h("full"),options:[{label:"极小",value:"xs"},{label:"小",value:"sm"},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"默认",value:""}]},minLength:{name:"minLength",type:"input-number",label:"限制最小数量"},maxLength:{name:"maxLength",type:"input-number",label:"限制最大数量"},label:[{label:"Label",name:"label",type:"input-text",hiddenOn:"data.label === false"},{name:"label",label:"隐藏 Label",type:"switch",mode:"inline",className:"w-full",pipeIn:function(e){return!1===e},pipeOut:function(e){return!0!==e&&""},visibleOn:'__props__.formMode === "horizontal" || data.mode === "horizontal" || data.label ===false',description:"当 form 为水平布局时有用,可以用来去掉间隔。"}],placeholder:{label:"占位符",name:"placeholder",type:"input-text",placeholder:"占位符"},tabs:function(e){return{type:"tabs",tabsMode:"line",className:"editor-prop-config-tabs",contentClassName:"no-border editor-prop-config-tabs-cont hoverShowScrollBar",tabs:e.filter((function(e){return e})).map((function(e){return o.__assign(o.__assign({},e),{body:(0,u.default)(e.body)})}))}},collapse:function(e){return{type:"wrapper",className:"editor-prop-config-collapse",body:e.filter((function(e){return e})).map((function(e){return o.__assign(o.__assign({type:"collapse",headingClassName:"editor-prop-config-head",bodyClassName:"editor-prop-config-body"},e),{body:(0,u.default)(e.body)})}))}},fieldSet:function(e){return o.__assign(o.__assign({collapsable:!0,collapsed:!1},e),{type:"fieldset",title:e.title,body:(0,u.default)(e.body.filter((function(e){return e})))})},clearable:{type:"switch",name:"clearable",mode:"inline",className:"w-full",label:"启用清除按钮"},hint:{label:"输入提示",type:"input-text",name:"hint",description:"当输入框获得焦点的时候显示,用来提示用户输入内容。"},remark:(0,p.default)({name:"remark",label:"控件提示"}),labelRemark:(0,p.default)({name:"labelRemark",label:"标题提示"}),expression:{type:"input-text",description:"支持 JS 表达式,如:`this.xxx == 1`"},icon:{label:"图标",type:"icon-picker",name:"icon",placeholder:"点击选择图标",clearable:!0,description:""},size:{label:"控件尺寸",type:"button-group-select",name:"size",size:"sm",clearable:!0,options:[{label:"极小",value:"xs"},{label:"小",value:"sm"},{label:"中",value:"md"},{label:"大",value:"lg"}]},name:{label:"名字",name:"name",type:"input-text",description:"需要联动时才需要,其他组件可以通过这个名字跟当前组件联动",placeholder:"请输入字母或者数字"},reload:{label:"刷新目标组件",name:"reload",asFormItem:!0,component:c.InputComponentName,description:"可以指定操作完成后刷新目标组件,请填写目标组件的 name 属性,多个组件请用,隔开,如果目标组件为表单项,请先填写表单的名字,再用.连接表单项的名字如:xxForm.xxControl。另外如果刷新目标对象设置为 window,则会刷新整个页面。",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"设置名字后,当前组件操作完成会触发目标组件(根据设置的名字)的刷新。",placement:"left"}},className:{label:"CSS 类名",type:"ae-classname",name:"className",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:'有哪些辅助类 CSS 类名?请前往 样式说明,除此之外你可以添加自定义类名,然后在系统配置中添加自定义样式。',placement:"left"}},apiControl:function(e){void 0===e&&(e={});var t=e.name,n=e.label,a=(e.value,e.description),r=e.sampleBuilder,i=o.__rest(e,["name","label","value","description","sampleBuilder"]);return o.__assign({type:"ae-apiControl",label:n,name:t,description:a,labelRemark:r?{icon:"",label:"示例",title:"接口返回示例",tooltipClassName:"ae-ApiSample-tooltip",render:function(e){return d.createElement(s.Html,{className:"ae-ApiSample",inline:!1,html:"\n
".concat(r(e),"
\n ")})},trigger:"click",className:"m-l-xs",rootClose:!0,placement:"left"}:void 0},i)},api:function(e){void 0===e&&(e={});var t=e.name,n=e.label,a=e.value,r=e.description,i=e.sampleBuilder,l=o.__rest(e,["name","label","value","description","sampleBuilder"]);return o.__assign({type:"container",body:[{type:"checkbox",label:n||"API",labelRemark:i?{icon:"",label:"示例",title:"接口返回示例",tooltipClassName:"ae-ApiSample-tooltip",render:function(e){return d.createElement(s.Html,{className:"ae-ApiSample",inline:!1,html:"\n
".concat(i(e),"
\n ")})},trigger:"click",className:"m-l-xs",rootClose:!0,placement:"left"}:void 0,option:"高级配置",name:t||"api",mode:"inline",className:"w-full m-b-sm",inputClassName:"pull-right text-sm m-t-sm p-t-none",onChange:function(){},pipeIn:function(e){return e&&"string"!=typeof e},pipeOut:function(e,t){var n=(0,s.buildApi)(t);return e?{method:n.method,url:n.url}:n.url?"".concat(n.method?"".concat(n.method,":"):"").concat(n.url):""}},{name:t||"api",type:"input-text",value:a,placeholder:"http://",description:r,visibleOn:"!this.".concat(t||"api"," || typeof this.").concat(t||"api"," === 'string'"),className:"m-b-none",labelRemark:{}},{type:"combo",name:t||"api",description:r,syncDefaultValue:!1,multiLine:!0,visibleOn:"this.".concat(t||"api"," && typeof this.").concat(t||"api"," !== 'string'"),className:"m-b-none",messages:{validateFailed:"接口配置中存在错误,请仔细检查"},pipeIn:function(e){if("string"==typeof e){var t=e,n="get",a=/^(raw:|external:)?(get|post|put|patch|delete):(.*)$/.exec(t);return a&&(t=a[1]+a[3],n=a[2]),{method:n,url:t}}return e},items:[{label:"发送方式",name:"method",value:"get",type:"select",mode:"horizontal",horizontal:{leftFixed:"sm"},options:[{value:"get",label:"GET"},{value:"post",label:"POST"},{value:"put",label:"PUT"},{value:"patch",label:"PATCH"},{value:"delete",label:"DELETE"}]},{label:"接口地址",type:"input-text",name:"url",placeholder:"http://",required:!0},{type:"switch",label:"数据映射",name:"data",mode:"inline",className:"w-full m-b-xs",pipeIn:function(e){return!!e},pipeOut:function(e){return e?{"&":"$$"}:null}},{type:"tpl",visibleOn:"!this.data",inline:!1,className:"text-sm text-muted m-b",tpl:"当没开启数据映射时,发送 API 的时候会发送尽可能多的数据,如果你想自己控制发送的数据,或者需要额外的数据处理,请开启此选项"},{type:"input-kv",syncDefaultValue:!1,name:"data",visibleOn:"this.data",descriptionClassName:"help-block text-xs m-b-none",description:'

当没开启数据映射时,发送数据自动切成白名单模式,配置啥发送啥,请绑定数据。如:{"a": "\\${a}", "b": 2}

如果希望在默认的基础上定制,请先添加一个 Key 为 `&` Value 为 `\\$$` 作为第一行。

当值为 __undefined时,表示删除对应的字段,可以结合{"&": "\\$$"}来达到黑名单效果。
'},{label:"发送条件",type:"input-text",name:"sendOn",placeholder:'如:this.type == "123"',description:"用表达式来设置该请求的发送条件"},{type:"switch",label:"是否设置缓存",name:"cache",mode:"inline",className:"w-full m-b-xs",description:"设置该请求缓存的有效时间",pipeIn:function(e){return!!e},pipeOut:function(e){return e?3e3:void 0}},{type:"input-number",name:"cache",mode:"inline",min:0,step:500,visibleOn:"this.cache",pipeIn:function(e){return"number"==typeof e?e:0}},{label:"文件下载",type:"switch",name:"responseType",mode:"inline",className:"block",pipeIn:function(e){return"blob"===e},pipeOut:function(e){return e?"blob":void 0},description:"当接口为二进制文件下载时请勾选,并设置 Content-Disposition"},{label:"数据格式",type:"button-group-select",name:"dataType",description:'发送体格式为:<%= data.dataType === "json" ? "application/json" : data.dataType === "form-data" ? "multipart/form-data" : data.dataType === "form" ? "application/x-www-form-urlencoded" : "" %>,当发送内容中存在文件时会自动使用 form-data 格式。',size:"sm",className:"block",mode:"inline",options:[{label:"JSON",value:"json"},{label:"FormData",value:"form-data"},{label:"Form",value:"form"}]},{type:"switch",label:"数据替换",name:"replaceData",mode:"inline",className:"w-full",description:"默认数据都是追加方式,开启这个后是完全替换"},{type:"switch",label:"返回结果映射",name:"responseData",mode:"inline",className:"w-full m-b-xs",pipeIn:function(e){return!!e},pipeOut:function(e){return e?{"&":"$$"}:null}},{type:"tpl",visibleOn:"!this.responseData",inline:!1,className:"text-sm text-muted m-b",tpl:"如果需要对返回结果做额外的数据处理,请开启此选项"},{type:"input-kv",syncDefaultValue:!1,name:"responseData",visibleOn:"this.responseData",descriptionClassName:"help-block text-xs m-b-none"},{title:"自定义适配器",type:"fieldSet",className:"m-b-none",size:"sm",collapsable:!1,collapsedOn:"!this.requestAdaptor && !this.adaptor",body:[{name:"requestAdaptor",type:"js-editor",allowFullscreen:!0,label:"发送适配器",description:"函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。"},{name:"adaptor",type:"js-editor",allowFullscreen:!0,label:"接收适配器",description:"函数签名: (payload, response, api) => payload"}]}]}]},l)},source:function(e){return void 0===e&&(e={}),m("api",o.__assign({name:"source",label:"获取选项接口",description:"可以通过接口获取动态选项,一次拉取全部。",sampleBuilder:function(e){return JSON.stringify({status:0,msg:"",data:{options:[{label:"选项A",value:"a"},{label:"选项B",value:"b"}]}},null,2)}},e))},autoFill:{type:"input-kv",name:"autoFill",label:"自动填充",descriptionClassName:"help-block text-xs m-b-none",description:"将当前已选中的选项的某个字段的值,自动填充到表单中某个表单项中,支持数据映射"},autoFillApi:{},apiString:{name:"api",type:"input-text",placeholder:"http://"},required:{name:"required",type:"switch",mode:"inline",className:"w-full",label:"是否必填"},description:{name:"description",type:"textarea",label:"描述",pipeIn:function(e,t){return e||t.desc||""}},options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"select",name:"value",pipeIn:function(e){return"string"==typeof e?"text":"boolean"==typeof e?"boolean":"number"==typeof e?"number":"text"},pipeOut:function(e,t){if("text"===e)return String(t);if("number"===e){var n=Number(t);return isNaN(n)?0:n}return"boolean"===e?Boolean(t):""},options:[{label:"文本",value:"text"},{label:"数字",value:"number"},{label:"布尔",value:"boolean"}]},{type:"input-number",name:"value",placeholder:"值",visibleOn:'typeof data.value === "number"',unique:!0},{type:"switch",name:"value",placeholder:"值",visibleOn:'typeof data.value === "boolean"',unique:!0},{type:"input-text",name:"value",placeholder:"值",visibleOn:'typeof data.value === "undefined" || typeof data.value === "string"',unique:!0}]},tree:{label:"选项 Options",name:"options",type:"combo",multiple:!0,draggable:!0,addButtonText:"新增选项",description:"静态数据暂不支持多级,请切换到代码模式,或者采用 source 接口获取。",scaffold:{label:"",value:""},items:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},horizontalMode:{label:"表单项左右占比设置",name:"horizontal",type:"switch",onText:"继承",offText:"自定义",mode:"inline",className:"w-full",inputClassName:"text-sm",visibleOn:'this.mode == "horizontal" && this.label !== false',pipeIn:function(e){return!e},pipeOut:function(e,t,n){return e?null:n.formHorizontal||{leftFixed:"normal"}}},horizontal:{type:"combo",syncDefaultValue:!1,name:"horizontal",multiLine:!0,visibleOn:'data.mode == "horizontal" && data.label !== false && data.horizontal',pipeIn:function(e){return{leftRate:e&&"number"==typeof e.left?e.left:e&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(e.left)?parseInt(RegExp.$1,10):2,leftFixed:e&&e.leftFixed||""}},pipeOut:function(e){var t=Math.min(11,Math.max(1,e.leftRate||2));return{leftFixed:e.leftFixed||"",left:t,right:12-t}},inputClassName:"no-padder",items:[{name:"leftFixed",type:"button-group-select",label:"左侧宽度",size:"xs",options:[{label:"比率",value:""},{label:"小宽度",value:"sm",visibleOn:"this.leftFixed"},{label:"固定宽度",value:"normal"},{label:"大宽度",value:"lg",visibleOn:"this.leftFixed"}]},{name:"leftRate",type:"input-range",visibleOn:"!this.leftFixed",min:1,max:11,step:1,label:"左右分布调整(n/12)",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"一共 12 等份,这里可以设置左侧宽度占比 n/12。",placement:"left"}}]},subFormItemMode:{label:"子表单展示模式",name:"subFormMode",type:"button-group-select",size:"sm",option:"继承",pipeIn:h(""),options:[{label:"继承",value:""},{label:"正常",value:"normal"},{label:"内联",value:"inline"},{label:"水平",value:"horizontal"}]},subFormHorizontalMode:{label:"子表单水平占比设置",name:"subFormHorizontal",type:"switch",onText:"继承",offText:"自定义",mode:"inline",className:"w-full",inputClassName:"text-sm",visibleOn:'this.subFormMode == "horizontal"',pipeIn:function(e){return!e},pipeOut:function(e,t,n){return e?null:n.formHorizontal||{leftFixed:"normal"}}},subFormHorizontal:{type:"combo",syncDefaultValue:!1,visibleOn:'data.subFormMode == "horizontal" && data.subFormHorizontal',name:"subFormHorizontal",multiLine:!0,pipeIn:function(e){return{leftRate:e&&"number"==typeof e.left?e.left:e&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(e.left)?parseInt(RegExp.$1,10):2,leftFixed:e&&e.leftFixed||""}},pipeOut:function(e){var t=Math.min(11,Math.max(1,e.leftRate||2));return{leftFixed:e.leftFixed||"",left:t,right:12-t}},inputClassName:"no-padder",items:[{name:"leftFixed",type:"button-group-select",label:"左侧宽度",size:"xs",options:[{label:"比率",value:""},{label:"小宽度",value:"sm",visibleOn:"this.leftFixed"},{label:"固定宽度",value:"normal"},{label:"大宽度",value:"lg",visibleOn:"this.leftFixed"}]},{name:"leftRate",type:"input-range",visibleOn:"!this.leftFixed",min:1,max:11,step:1,label:"左右分布调整(n/12)",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"一共 12 等份,这里可以设置左侧宽度占比 n/12。",placement:"left"}}]},validations:(a=[{label:"邮箱格式",value:"isEmail"},{label:"Url格式",value:"isUrl"},{label:"数字",value:"isNumeric"},{label:"字母",value:"isAlpha"},{label:"字母和数字",value:"isAlphanumeric"},{label:"整型数字",value:"isInt"},{label:"浮点型数字",value:"isFloat"},{label:"固定长度",value:"isLength"},{label:"最大长度",value:"maxLength"},{label:"最小长度",value:"minLength"},{label:"最大值",value:"maximum"},{label:"最小值",value:"minimum"},{label:"手机号码",value:"isPhoneNumber"},{label:"电话号码",value:"isTelNumber"},{label:"邮编号码",value:"isZipcode"},{label:"身份证号码",value:"isId"},{label:"JSON格式",value:"isJson"},{label:"与指定值相同",value:"equals"},{label:"与指定字段值相同",value:"equalsField"},{label:"自定义正则",value:"matchRegexp"},{label:"自定义正则2",value:"matchRegexp1"},{label:"自定义正则3",value:"matchRegexp2"},{label:"自定义正则4",value:"matchRegexp3"},{label:"自定义正则5",value:"matchRegexp4"}],r=["isEmail","isUrl","isNumeric","isAlpha","isAlphanumeric","isInt","isFloat","isJson","isPhoneNumber","isTelNumber","isZipcode","isId"],{type:"combo",syncDefaultValue:!1,name:"validations",label:"验证规则",addButtonText:"新增规则",multiple:!0,pipeIn:function(e){if("string"==typeof e&&e&&(e=(0,s.str2rules)(e)),!(0,i.isObject)(e))return e;var t=[];return Object.keys(e).forEach((function(n){var a;/^\$\$/.test(n)||t.push(((a={type:n})[n]=Array.isArray(e[n])?e[n][0]:e[n],a))})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e){var n,o,i=e.type||(n=function(e){return!t[e.value]},(o=l(a,n))?o.value:"")||a[0].value;t[i]=e[i]||!!~r.indexOf(i)||""})),t},items:[{type:"select",unique:!0,name:"type",options:a,columnClassName:"w-sm"},{type:"input-number",name:"isLength",visibleOn:'data.type == "isLength"',placeholder:"设置长度",value:"1"},{type:"input-number",name:"maximum",visibleOn:'data.type == "maximum"',placeholder:"设置最大值"},{type:"input-number",name:"minimum",visibleOn:'data.type == "minimum"',placeholder:"设置最小值"},{type:"input-number",name:"maxLength",visibleOn:'data.type == "maxLength"',placeholder:"设置最大长度值"},{type:"input-number",name:"minLength",visibleOn:'data.type == "minLength"',placeholder:"设置最小长度值"},{type:"input-text",name:"equals",visibleOn:'data.type == "equals"',placeholder:"设置值",value:""},{type:"input-text",name:"equalsField",visibleOn:'data.type == "equalsField"',placeholder:"设置字段名",value:""},{type:"input-text",name:"matchRegexp",visibleOn:'data.type == "matchRegexp"',placeholder:"设置正则规则"},{type:"input-text",name:"matchRegexp1",visibleOn:'data.type == "matchRegexp1"',placeholder:"设置正则规则"},{type:"input-text",name:"matchRegexp2",visibleOn:'data.type == "matchRegexp2"',placeholder:"设置正则规则"},{type:"input-text",name:"matchRegexp3",visibleOn:'data.type == "matchRegexp3"',placeholder:"设置正则规则"},{type:"input-text",name:"matchRegexp4",visibleOn:'data.type == "matchRegexp4"',placeholder:"设置正则规则"}]}),validationErrors:function(){var e=[{label:"邮箱格式",value:"isEmail"},{label:"Url格式",value:"isUrl"},{label:"数字",value:"isNumeric"},{label:"字母",value:"isAlpha"},{label:"字母和数字",value:"isAlphanumeric"},{label:"整型数字",value:"isInt"},{label:"浮点型数字",value:"isFloat"},{label:"固定长度",value:"isLength"},{label:"最大长度",value:"maxLength"},{label:"最小长度",value:"minLength"},{label:"最大值",value:"maximum"},{label:"最小值",value:"minimum"},{label:"JSON格式",value:"isJson"},{label:"手机号码",value:"isPhoneNumber"},{label:"电话号码",value:"isTelNumber"},{label:"邮编号码",value:"isZipcode"},{label:"身份证号码",value:"isId"},{label:"与指定值相同",value:"equals"},{label:"与指定字段值相同",value:"equalsField"},{label:"自定义正则",value:"matchRegexp"},{label:"自定义正则2",value:"matchRegexp1"},{label:"自定义正则3",value:"matchRegexp2"},{label:"自定义正则4",value:"matchRegexp3"},{label:"自定义正则5",value:"matchRegexp4"}],t={isEmail:"Email 格式不正确",isRequired:"这是必填项",isUrl:"Url 格式不正确",isInt:"请输入整形数字",isAlpha:"请输入字母",isNumeric:"请输入数字",isAlphanumeric:"请输入字母或者数字",isFloat:"请输入浮点型数值",isWords:"请输入字母",isUrlPath:"只能输入字母、数字、`-` 和 `_`.",matchRegexp:"格式不正确, 请输入符合规则为 `$1` 的内容。",minLength:"请输入更多的内容,至少输入 $1 个字符。",maxLength:"请控制内容长度, 请不要输入 $1 个字符以上",maximum:"当前输入值超出最大值 $1,请检查",minimum:"当前输入值低于最小值 $1,请检查",isJson:"请检查 Json 格式。",isPhoneNumber:"请输入合法的手机号码",isTelNumber:"请输入合法的电话号码",isZipcode:"请输入合法的邮编地址",isId:"请输入合法的身份证号",isLength:"请输入长度为 $1 的内容",notEmptyString:"请不要全输入空白字符",equalsField:"输入的数据与 $1 值不一致",equals:"输入的数据与 $1 不一致"};return{type:"combo",syncDefaultValue:!1,name:"validationErrors",label:"自定义验证提示",description:"自带提示不满足时,可以自定义。",addButtonText:"新增提示",multiple:!0,pipeIn:function(e){if(!(0,i.isObject)(e))return e;var t=[];return Object.keys(e).forEach((function(n){/^\$\$/.test(n)||t.push({type:n,msg:e[n]})})),t},pipeOut:function(n){if(!Array.isArray(n))return n;var a={};return n.forEach((function(n){var r,o,i=n.type||(r=function(e){return!a[e.value]},(o=l(e,r))?o.value:"")||e[0].value;a[i]=n.msg||t[i]||""})),a},items:[{type:"select",unique:!0,name:"type",options:e,columnClassName:"w-sm"},{type:"input-text",name:"msg",placeholder:"提示信息"},{type:"formula",name:"msg",initSet:!1,formula:"({\n isEmail: 'Email 格式不正确',\n isRequired: '这是必填项',\n isUrl: 'Url 格式不正确',\n isInt: '请输入整形数字',\n isAlpha: '请输入字母',\n isNumeric: '请输入数字',\n isAlphanumeric: '请输入字母或者数字',\n isFloat: '请输入浮点型数值',\n isWords: '请输入字母',\n isUrlPath: '只能输入字母、数字、`-` 和 `_`.',\n matchRegexp: '格式不正确, 请输入符合规则为 `$1` 的内容。',\n minLength: '请输入更多的内容,至少输入 $1 个字符。',\n maxLength: '请控制内容长度, 请不要输入 $1 个字符以上',\n maximum: '当前输入值超出最大值 $1,请检查',\n minimum: '当前输入值低于最小值 $1,请检查',\n isJson: '请检查 Json 格式。',\n isLength: '请输入长度为 $1 的内容',\n notEmptyString: '请不要全输入空白字符',\n equalsField: '输入的数据与 $1 值不一致',\n equals: '输入的数据与 $1 不一致',\n isPhoneNumber: '请输入合法的手机号码',\n isTelNumber: '请输入合法的电话号码',\n isZipcode: '请输入合法的邮编地址',\n isId: '请输入合法的身份证号',\n })[data.type] || ''"}]}}(),submitOnChange:{label:"修改即提交",type:"switch",name:"submitOnChange",mode:"inline",className:"w-full",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"设置后,表单中每次有修改都会触发提交",placement:"left"}},validateOnChange:{type:"button-group-select",name:"validateOnChange",label:"修改即触发表单验证",description:"默认为当表单提交过则每次修改都触发验证。",size:"xs",mode:"inline",className:"w-full",options:[{label:"默认",value:""},{label:"开启",value:!0},{label:"关闭",value:!1}],pipeIn:h(""),pipeOut:function(e){return""===e?void 0:!!e}},validationControl:{type:"ae-validationControl",label:"校验",mode:"normal"},visible:{type:"fieldSet",title:"显隐配置",collapsable:!1,body:[{label:"设置方式",name:"visible",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",options:[{label:"静态设置",value:1},{label:"表达式",value:2}],pipeIn:function(e){return"boolean"==typeof e?1:2},pipeOut:function(e){return 1===e||""},onChange:function(e,t,n,a){e?a.setValues({__visibleOn:a.data.visibleOn,visibleOn:"",clearValueOnHidden:!1}):a.setValueByName("visibleOn",a.data.__visibleOn)}},{type:"switch",label:"可见(visible)",name:"visible",visibleOn:'typeof this.visible === "boolean"',pipeIn:function(e,t){return!1!==e&&!t.hidden},mode:"inline",className:"w-full m-b-none",onChange:function(e,t,n,a){return a.setValueByName("visibleOn","")}},{name:"visibleOn",label:"可见表达式(visibleOn)",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:'纯粹的 JS 语法,this 指向当前数据层。文档:表达式语法',placement:"left"},placeholder:"如:this.type === 1",type:"input-text",visibleOn:'typeof this.visible !== "boolean"',autoComplete:!1,pipeIn:function(e,t){return e||t.hiddenOn&&"!(".concat(t.hiddenOn,")")||""},className:"m-b-none"}]},initFetch:{type:"group",label:"是否初始加载",visibleOn:"this.initApi",direction:"vertical",className:"m-b-none",labelRemark:{trigger:"click",rootClose:!0,className:"m-l-xs",content:"当配置初始化接口后,组件初始就会拉取接口数据,可以通过以下配置修改。",placement:"left"},body:[{name:"initFetch",type:"radios",inline:!0,onChange:function(){},options:[{label:"是",value:!0},{label:"否",value:!1},{label:"表达式",value:""}]},{name:"initFetchOn",autoComplete:!1,visibleOn:'typeof this.initFetch !== "boolean"',type:"input-text",placeholder:"如:this.id 表示有 id 值时初始加载",className:"m-t-n-sm"}]},disabled:function(e){return void 0===e&&(e=[]),{type:"fieldSet",title:"禁用配置",collapsable:!1,body:o.__spreadArray(o.__spreadArray([],e,!0),[{label:"设置方式",name:"disabled",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",options:[{label:"静态设置",value:1},{label:"表达式",value:2}],pipeIn:function(e){return"boolean"==typeof e?1:2},pipeOut:function(e){return 1!==e&&""}},{type:"switch",label:"禁用(disabled)",name:"disabled",visibleOn:'typeof this.disabled === "boolean"',pipeIn:function(e,t){return!1!==e&&!t.hidden},mode:"inline",className:"w-full m-b-none",onChange:function(e,t,n,a){return a.setValueByName("disabledOn","")}},{name:"disabledOn",label:"禁用表达式(disabledOn)",placeholder:"如:this.type === 1",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:'纯粹的 JS 语法,this 指向当前数据层。文档:表达式语法',placement:"left"},type:"input-text",visibleOn:'typeof this.disabled !== "boolean"',className:"m-b-none"}],!1)}},switchDefaultValue:{type:"switch",name:"value",label:"设置默认值",mode:"inline",className:"w-full",pipeIn:function(e){return void 0!==e},pipeOut:function(e,t,n){return e?"":void 0},remark:"不设置时根据 name 获取"},multiple:{label:"多选模式",name:"multiple",type:"switch",mode:"inline",className:"w-full"},joinValues:{type:"switch",name:"joinValues",mode:"inline",className:"w-full",visibleOn:"data.multiple",label:"是否拼接值",value:!0,description:"开启后将选中的选项 value 的值用连接符拼接起来,作为当前表单项的值。"},delimiter:{type:"input-text",name:"delimiter",label:"连接符",visibleOn:"data.multiple && data.joinValues",pipeIn:h(",")},extractValue:{type:"switch",name:"extractValue",mode:"inline",className:"w-full",label:"是否抽取value值",visibleOn:"data.joinValues === false",pipeIn:h(!1),description:"开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。"},creatable:{label:"可创建选项",name:"creatable",type:"switch",mode:"inline",className:"w-full"},createBtnLabel:{label:"创建按钮文字",name:"createBtnLabel",type:"input-text",mode:"inline",placeholder:"新增选项",className:"w-full"},editable:{label:"可编辑选项",name:"editable",type:"switch",mode:"inline",className:"w-full"},removable:{label:"可删除选项",name:"removable",type:"switch",mode:"inline",className:"w-full"},ref:function(){return null},imageUrl:{type:"input-text",label:"图片"},fileUrl:{type:"input-text",label:"文件"},markdownBody:{name:"value",type:"editor",language:"markdown",size:"xxl",label:"Markdown 内容",options:{lineNumbers:"off"}},richText:{label:"富文本",type:"input-rich-text",buttons:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertTable","|","undo","redo","fullscreen"],name:"html",description:'支持使用 \\${xxx} 来获取变量,或者用 lodash.template 语法来写模板逻辑。详情',size:"lg"},showCounter:{label:"是否显示计数器",name:"showCounter",type:"switch",mode:"inline",className:"w-full"},borderMode:{type:"select",name:"borderMode",label:"边框模式",options:[{label:"全边框",value:"full"},{label:"半边框",value:"half"},{label:"无边框",value:"none"}]},data:{type:"input-kv",name:"data",label:"初始静态数据"}};function m(e,t){var n=f[e];return"function"==typeof n?n(t):n?t?o.__assign(o.__assign({},n),t):n:null}function h(e,t){return void 0===t&&(t=!0),t?function(t){return void 0===t?e:t}:function(t){return t||e}}t.styleTpl={name:"style",type:"combo",label:"",noBorder:!0,multiLine:!0,items:[{type:"fieldSet",title:"文字",body:[{type:"group",body:[{label:"文字大小",type:"input-text",name:"fontSize"},{label:"文字粗细",name:"fontWeight",type:"select",options:["normal","bold","lighter","bolder"]}]},{type:"group",body:[{label:"文字颜色",type:"input-color",name:"color"},{label:"对齐方式",name:"textAlign",type:"select",options:["left","right","center","justify","justify-all","start","end","match-parent"]}]}]},{type:"fieldSet",title:"背景",body:[{label:"颜色",name:"backgroundColor",type:"input-color"},m("imageUrl",{name:"backgroundImage"})]},{type:"fieldSet",title:"边距",body:[{type:"group",label:"外边距",body:[{label:"上",name:"marginTop",type:"input-text"},{label:"右",name:"marginRight",type:"input-text"},{label:"下",name:"marginBottom",type:"input-text"},{label:"左",name:"marginLeft",type:"input-text"}]},{type:"group",label:"内边距",body:[{label:"上",name:"paddingTop",type:"input-text"},{label:"右",name:"paddingRight",type:"input-text"},{label:"下",name:"paddingBottom",type:"input-text"},{label:"左",name:"paddingLeft",type:"input-text"}]}]},{type:"fieldSet",title:"边框",body:[{type:"group",body:[{label:"样式",name:"borderStyle",type:"select",options:["none","solid","dotted","dashed"]},{label:"颜色",name:"borderColor",type:"input-color"}]},{type:"group",body:[{label:"宽度",name:"borderWidth",type:"input-text"},{label:"圆角宽度",name:"borderRadius",type:"input-text"}]}]},{type:"fieldSet",title:"特效",body:[{label:"透明度",name:"opacity",min:0,max:1,step:.05,type:"input-range",pipeIn:h(1)},{label:"阴影",name:"boxShadow",type:"input-text"}]}]},f.style=t.styleTpl,t.getSchemaTpl=m,t.setSchemaTpl=function(e,t){f[e]=t},t.valuePipeOut=function(e){try{if("undefined"===e)return;return JSON.parse(e)}catch(t){return e}},t.defaultValue=h},5610:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultDNDMode=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(8425)),i=n(9703),l=function(){function e(e,t){this.dnd=e,this.region=t,this.exchangeX=0,this.exchangeY=0,this.dndContainer=this.dnd.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]'))}return e.prototype.enter=function(e,t){var n=this.dnd.dragElement,a=Array.isArray(this.region.schema)?this.region.schema:[];if(n&&n.closest("[data-region]")===this.dndContainer){var r=this.getChild(this.dndContainer,n),l=n.getAttribute("data-editor-id"),s=(0,o.default)(a,(function(e){return e.$$id===l}));~s&&a[s+1]&&(this.dropBeforeId=a[s+1].$$id),this.dndContainer.insertBefore(t,r);var u=n.outerHTML.replace("ae-is-draging","").replace(/\bdata\-editor\-id=(?:'.+?'|".+?")/g,"");t.innerHTML=u}else{var d=this.dnd.manager,c=d.store;(0,i.renderThumbToGhost)(t,this.region,c.dragSchema,d),this.dndContainer.appendChild(t)}},e.prototype.leave=function(e,t){this.dndContainer.removeChild(t)},e.prototype.over=function(e,t){var n,a,i=this.getTarget(e),l=this.dndContainer,s=Array.isArray(this.region.schema)?this.region.schema:[],u=e.clientX-this.exchangeX,d=e.clientY-this.exchangeY;if(Math.abs(d),Math.abs(u),i&&!r.animation.animating){var c=i.getAttribute("data-editor-id"),p=this.getChild(l,i),f=(0,o.default)(s,(function(e){return e.$$id===c})),m=Array.prototype.indexOf.call(l.children,t),h=Array.prototype.indexOf.call(l.children,p);~m&&m>h&&(!this.exchangeY||d<0||u<0)?(this.exchangeX=e.clientX,this.exchangeY=e.clientY,this.dropBeforeId=null===(n=s[f])||void 0===n?void 0:n.$$id,m!==h-1&&(r.animation.capture(l),l.insertBefore(t,p),r.animation.animateAll())):~m&&m0||u>0)&&(this.exchangeX=e.clientX,this.exchangeY=e.clientY,s[f+1]?this.dropBeforeId=null===(a=s[f+1])||void 0===a?void 0:a.$$id:delete this.dropBeforeId,m!==h+1&&(r.animation.capture(l),l.insertBefore(t,p.nextSibling),r.animation.animateAll()))}t.parentNode!==l&&(delete this.dropBeforeId,r.animation.capture(l),l.appendChild(t),r.animation.animateAll())},e.prototype.getDropBeforeId=function(){return this.dropBeforeId},e.prototype.getTarget=function(e){for(var t,n,a=e.target.closest("[data-editor-id]");a;){if((null===(t=a.parentElement)||void 0===t?void 0:t.closest("[data-region]"))===this.dndContainer)return"grid"===a.getAttribute("data-renderer")?a.parentElement:a;a=(null===(n=a.parentElement)||void 0===n?void 0:n.closest("[data-editor-id]"))||null}return null},e.prototype.getChild=function(e,t){for(var n=t;n&&n.parentElement!==e;)n=n.parentElement;return n},e.prototype.dispose=function(){},e}();t.DefaultDNDMode=l},6162:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDNDManager=void 0;var a=n(752),r=a.__importDefault(n(6918)),o=n(3570),i=n(5610),l=n(8772),s=function(){function e(e,t){this.manager=e,this.store=t,this.toDispose=[],this.dragEnterCount=0,this.lastX=0,this.lastY=0,this.lastMoveAt=0,this.toDispose.push((0,o.reactionWithOldValue)((function(){return"schema"===t.dragType?t.dragId:""}),this.updateDragElements),(0,o.reactionWithOldValue)((function(){return{id:t.dropId,region:t.dropRegion}}),this.updateDropRegion),(0,o.reactionWithOldValue)((function(){return{id:t.planDropId,region:t.planDropRegion}}),this.updatePlanDropRegion)),this.dragGhost=document.createElement("div"),this.dragGhost.classList.add("ae-DragGhost"),this.dragGhost.classList.add("is-ghost")}return e.prototype.createDragImage=function(e,t){var n=document.createElement("div");return n.classList.add("ae-DragImage"),n.innerHTML="".concat(t.label,""),document.body.appendChild(n),this.dragImage=n,n},e.prototype.disposeDragImage=function(){var e,t=this.dragImage;null===(e=null==t?void 0:t.parentElement)||void 0===e||e.removeChild(t),delete this.dragImage},e.prototype.switchToRegion=function(e,t,n){var a,r,o,i=this.store;if(!t||!n||i.dropId===t&&i.dropRegion===n)return!1;var l=i.getNodeById(t,n),s=l.regionInfo,u=i.dragSchema;if(!1===(null===(a=null==s?void 0:s.accept)||void 0===a?void 0:a.call(s,u)))return!1;var d={mode:i.dragMode,sourceType:i.dragType,sourceId:i.dragId,data:i.dragSchema,targetId:t,targetRegion:n};return!this.manager.trigger("dnd-accept",d).prevented&&(null===(r=this.dndMode)||void 0===r||r.leave(e,this.dragGhost),null===(o=this.dndMode)||void 0===o||o.dispose(),i.setDropId(t,n),this.makeDNDModeInstance(l),this.dndMode.enter(e,this.dragGhost),!0)},e.prototype.makeDNDModeInstance=function(e){var t,n=null===(t=e.regionInfo)||void 0===t?void 0:t.dndMode,a=i.DefaultDNDMode;"position-h"===n&&(a=l.PositionHDNDMode),this.dndMode=new a(this,e)},e.prototype.startDrag=function(e,t){var n,a=this,r=this.store.getNodeById(e),o=this.store.getDoc().querySelector('[data-editor-id="'.concat(e,'"]'));r&&o?(this.dragElement=o,t.dataTransfer.effectAllowed="move",t.dataTransfer.setDragImage(this.createDragImage(e,r),0,0),t.dataTransfer.setData("dnd/ae-node-".concat(e).toLowerCase(),""),null===(n=t.target)||void 0===n||n.addEventListener("dragend",this.dragEnd),setTimeout((function(){a.store.setDragId(e);var n=r.parent;a.switchToRegion(t,n.id,n.region)}),4)):t.preventDefault()},e.prototype.dragEnter=function(e){var t=this.store;if(this.dragEnterCount++,!t.dragId&&1===this.dragEnterCount)for(var n=e.dataTransfer.types,a=n.length-1;a>=0;a--)if(/^dnd-dom\/(.*)$/.test(n[a])){var r=RegExp.$1,o=document.querySelector(r);if(o){o.addEventListener("dragend",this.dragEnd);var i=o.getAttribute("data-dnd-id"),l=o.getAttribute("data-dnd-type"),s=o.getAttribute("data-dnd-data"),u=s?JSON.parse(s):{type:"tpl",tpl:"Unknown"};t.setDragId(i,"copy",l,u);var d=t.activeContainerId;if(d){var c=t.getNodeById(d);(null==c?void 0:c.childRegions.length)&&this.switchToRegion(e,c.id,c.childRegions[0].region)}break}}},e.prototype.dragOver=function(e){var t=this.store,n=e.target;if(t.dropId&&n){e.preventDefault();var a=e.clientX-this.lastX,r=e.clientY-this.lastY,o=Math.max(Math.abs(a),Math.abs(r)),i=Date.now();if(o<5){var l=n.closest("[data-region][data-region-host]"),s=null==l?void 0:l.getAttribute("data-region-host"),u=null==l?void 0:l.getAttribute("data-region");if(!l||s===t.dropId)return;i-this.lastMoveAt>200&&u&&s&&this.switchToRegion(e,s,u)}else{t.setPlanDropId("",""),this.lastMoveAt=i,this.lastX=e.clientX,this.lastY=e.clientY;var d=n.closest('[data-region][data-region-host="'.concat(t.dropId,'"]')),c=null==d?void 0:d.getAttribute("data-region");c&&c!==t.dropRegion&&this.switchToRegion(e,t.dropId,c),this.dndMode.over(e,this.dragGhost)}}},e.prototype.drop=function(e){return a.__awaiter(this,void 0,void 0,(function(){var e,t,n,o,i,l;return a.__generator(this,(function(a){switch(a.label){case 0:return e=this.store,t=this.dndMode.getDropBeforeId(),"move"!==e.dragMode?[3,1]:(this.manager.move(e.dropId,e.dropRegion,e.dragId,t),[3,4]);case 1:return"copy"!==e.dragMode?[3,4]:(n=e.dragSchema,o=e.dropId,i=e.dropRegion,l=void 0,"subrenderer"!==e.dragType?[3,3]:(null==(l=(0,r.default)(e.subRenderers,(function(t){return t.id===e.dragId})))?void 0:l.scaffoldForm)?[4,this.manager.scaffold(l.scaffoldForm,n)]:[3,3]);case 2:n=a.sent(),a.label=3;case 3:this.manager.addChild(o,i,n,t,l,{id:e.dragId,type:e.dragType,data:e.dragSchema}),a.label=4;case 4:return[2]}}))}))},e.prototype.dragLeave=function(e){this.dragEnterCount--},e.prototype.dragEnd=function(e){var t,n;null===(t=e.target)||void 0===t||t.removeEventListener("dragend",this.dragEnd),null===(n=this.dndMode)||void 0===n||n.leave(e,this.dragGhost),delete this.dndMode,this.dragGhost.innerHTML="",this.store.setDragId(""),this.store.setDropId(""),this.disposeDragImage(),this.dragEnterCount=0},e.prototype.updateDragElements=function(e){e?[].slice.call(this.store.getDoc().querySelectorAll('[data-editor-id="'.concat(e,'"]'))).forEach((function(e){return e.classList.add("ae-is-draging")})):[].slice.call(this.store.getDoc().querySelectorAll(".ae-is-draging")).forEach((function(e){return e.classList.remove("ae-is-draging")}))},e.prototype.updateDropRegion=function(e,t){var n,a;(null==t?void 0:t.id)&&t.region&&(null===(n=this.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]')))||void 0===n||n.classList.remove("is-dragenter")),e.id&&e.region&&(null===(a=this.store.getDoc().querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===a||a.classList.add("is-dragenter"))},e.prototype.updatePlanDropRegion=function(e,t){var n,a;(null==t?void 0:t.id)&&t.region&&(null===(n=this.store.getDoc().querySelector('[data-region="'.concat(t.region,'"][data-region-host="').concat(t.id,'"]')))||void 0===n||n.classList.remove("is-entering")),e.id&&e.region&&(null===(a=this.store.getDoc().querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===a||a.classList.add("is-entering"))},e.prototype.dispose=function(){this.disposeDragImage(),this.toDispose.forEach((function(e){return e()})),this.toDispose=[]},a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[DragEvent]),a.__metadata("design:returntype",void 0)],e.prototype,"dragEnter",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[DragEvent]),a.__metadata("design:returntype",void 0)],e.prototype,"dragOver",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[DragEvent]),a.__metadata("design:returntype",Promise)],e.prototype,"drop",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[DragEvent]),a.__metadata("design:returntype",void 0)],e.prototype,"dragLeave",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[DragEvent]),a.__metadata("design:returntype",void 0)],e.prototype,"dragEnd",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[String]),a.__metadata("design:returntype",void 0)],e.prototype,"updateDragElements",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],e.prototype,"updateDropRegion",null),a.__decorate([o.autobind,a.__metadata("design:type",Function),a.__metadata("design:paramtypes",[Object,Object]),a.__metadata("design:returntype",void 0)],e.prototype,"updatePlanDropRegion",null),e}();t.EditorDNDManager=s},8772:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PositionHDNDMode=void 0;var a=n(752),r=a.__importDefault(n(8425)),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.enter=function(e,t){t.innerHTML="",t.classList.add("use-position"),t.classList.add("is-horizontal");var n=this.dnd.dragElement,a=this.dndContainer.getBoundingClientRect(),o=Array.isArray(this.region.schema)?this.region.schema:[];if(n&&n.closest("[data-region]")===this.dndContainer){var i=n.getAttribute("data-editor-id"),l=(0,r.default)(o,(function(e){return e.$$id===i}));if(~l&&o[l+1]&&(this.dropBeforeId=o[l+1].$$id),n.nextElementSibling){var s=n.nextElementSibling.getBoundingClientRect();t.style.cssText+="top: 0; left: ".concat(s.x-a.x,"px;")}else t.style.cssText+="top: 0; left: 100%;"}else t.style.cssText+="top: 0; left: -999999%;";this.dndContainer.appendChild(t)},t.prototype.leave=function(e,t){t.classList.remove("use-position"),t.classList.remove("is-horizontal")},t.prototype.over=function(e,t){var n,a,r=this.getTarget(e);if(r){if("table"===(null===(n=this.dndContainer)||void 0===n?void 0:n.getAttribute("data-renderer"))){var o=null===(a=r.parentElement)||void 0===a?void 0:a.closest("th[data-editor-id], td[data-editor-id]");o&&this.dndContainer.contains(o)&&(r=o)}var i=this.dndContainer.getBoundingClientRect(),l=(Array.isArray(this.region.schema)&&this.region.schema,r.getBoundingClientRect());r.nextElementSibling&&r.nextElementSibling.hasAttribute("data-editor-id")?(t.style.cssText+="left: ".concat(l.x-i.x,"px;"),this.dropBeforeId=r.getAttribute("data-editor-id")):e.clientX>l.x+l.width/2?(t.style.cssText+="top: 0; left: ".concat(l.right-i.x,"px;"),delete this.dropBeforeId):(t.style.cssText+="left: ".concat(l.x-i.x,"px;"),this.dropBeforeId=r.getAttribute("data-editor-id"))}},t}(n(5610).DefaultDNDMode);t.PositionHDNDMode=o},5951:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.env=void 0;var a=n(752).__importDefault(n(2167)),r=n(1502);t.env={updateLocation:function(){},jumpTo:function(){r.toast.info("温馨提示:预览模式下禁止跳转")},fetcher:function(e){var t=e.url,n=e.method,r=e.data,o=e.config;return(o=o||{}).withCredentials=!0,o.cancelExecutor&&(o.cancelToken=new a.default.CancelToken(o.cancelExecutor)),"post"!==n&&"put"!==n&&"patch"!==n?(r&&(o.params=r),a.default[n](t,o)):(r&&r instanceof FormData||!r||"string"==typeof r||r instanceof Blob||r instanceof ArrayBuffer||(r=JSON.stringify(r),o.headers=o.headers||{},o.headers["Content-Type"]="application/json"),a.default[n](t,r,o))},isCancel:function(e){return a.default.isCancel(e)},alert:r.alert,confirm:r.confirm,notify:function(e,t){r.toast[e]?r.toast[e](t,"error"===e?"系统错误":"系统消息"):console.warn("[Notify]",e,t)}}},9942:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Icon=void 0;var a=n(752),r=n(1502);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return r.Icon}});var o=a.__importDefault(n(3248)),i=a.__importDefault(n(2078)),l=a.__importDefault(n(8983)),s=a.__importDefault(n(7528)),u=a.__importDefault(n(329)),d=a.__importDefault(n(3896)),c=a.__importDefault(n(2356));(0,r.registerIcon)("arrow-to-right",o.default),(0,r.registerIcon)("left-arrow-to-left",i.default),(0,r.registerIcon)("top-arrow-to-top",l.default),(0,r.registerIcon)("arrow-to-bottom",s.default),(0,r.registerIcon)("collapse-open",u.default),(0,r.registerIcon)("harmmer",d.default),(0,r.registerIcon)("dialog",c.default);var p=a.__importDefault(n(1957)),f=a.__importDefault(n(145)),m=a.__importDefault(n(5554)),h=a.__importDefault(n(2179)),v=a.__importDefault(n(4201)),g=a.__importDefault(n(3535)),y=a.__importDefault(n(5519)),b=a.__importDefault(n(8978)),_=a.__importDefault(n(1476)),C=a.__importDefault(n(8351)),E=a.__importDefault(n(813)),x=a.__importDefault(n(4028)),w=a.__importDefault(n(4841)),S=a.__importDefault(n(2479)),O=a.__importDefault(n(3508)),k=a.__importDefault(n(6777)),D=a.__importDefault(n(9872)),N=a.__importDefault(n(5093)),T=a.__importDefault(n(7221)),P=a.__importDefault(n(1651)),A=a.__importDefault(n(4740)),I=a.__importDefault(n(8636)),R=a.__importDefault(n(9119)),F=a.__importDefault(n(3909));(0,r.registerIcon)("drag-btn",h.default),(0,r.registerIcon)("more-btn",f.default),(0,r.registerIcon)("copy-btn",p.default),(0,r.registerIcon)("delete-btn",m.default),(0,r.registerIcon)("up-btn",v.default),(0,r.registerIcon)("clear-btn",g.default),(0,r.registerIcon)("merge-icon",y.default),(0,r.registerIcon)("cancel-icon",b.default),(0,r.registerIcon)("copy-icon",_.default),(0,r.registerIcon)("delete-icon",C.default),(0,r.registerIcon)("fixed-icon",E.default),(0,r.registerIcon)("no-fixed-icon",x.default),(0,r.registerIcon)("back-up",w.default),(0,r.registerIcon)("down-arrow",S.default),(0,r.registerIcon)("editor-search",O.default),(0,r.registerIcon)("editor-help",k.default),(0,r.registerIcon)("editor-fixed",D.default),(0,r.registerIcon)("editor-no-fixed",N.default),(0,r.registerIcon)("editor-renderer",T.default),(0,r.registerIcon)("editor-outline",P.default),(0,r.registerIcon)("editor-code",A.default),(0,r.registerIcon)("editor-common-config",I.default),(0,r.registerIcon)("editor-double-arrow",R.default),(0,r.registerIcon)("search-clear",F.default)},9756:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EditorManager=t.unRegisterEditorPlugin=t.getEditorPlugins=t.registerEditorPlugin=void 0;var a=n(752),r=n(361),o=n(9933),i=n(3570),l=n(6211),s=n(9703),u=n(5951),d=a.__importDefault(n(3908)),c=n(1502),p=n(5720),f=a.__importDefault(n(8425)),m=n(6162),h=[];t.registerEditorPlugin=function(e){(e.prototype&&e.prototype.isNpmCustomWidget?h.find((function(t){return t.prototype.name===e.prototype.name})):h.find((function(t){return t===e})))?console.warn("注册插件异常,已存在同名插件:",e):h.push(e)},t.getEditorPlugins=function(){return h.concat()},t.unRegisterEditorPlugin=function(e){var t=(0,f.default)(h,(function(t){return t.id===e}));~t&&h.splice(t,1)};var v=function(){function e(e,t,n){var r=this;this.config=e,this.store=t,this.parent=n,this.toDispose=[],this.id=(0,i.guid)(),this.disableHover=!1,this.listeners=[],this.lazyPatchSchema=(0,d.default)(this.patchSchema.bind(this),250,{leading:!1,trailing:!0}),this.patching=!1;var o=!!n;this.env=a.__assign(a.__assign(a.__assign({},u.env),e.amisEnv),{theme:e.theme}),this.hackIn=(null==n?void 0:n.hackIn)||s.hackIn,this.plugins=(null==n?void 0:n.plugins)||(e.disableBultinPlugin?[]:h).concat(e.plugins||[]).map((function(e){var t,n=new e(r);return n.order=null!==(t=n.order)&&void 0!==t?t:0,n})).sort((function(e,t){return e.order-t.order})),this.hackRenderers(),this.dnd=(null==n?void 0:n.dnd)||new m.EditorDNDManager(this,t),o||this.toDispose.push((0,i.reactionWithOldValue)((function(){return t.activeId}),(function(e,t){return a.__awaiter(r,void 0,void 0,(function(){return a.__generator(this,(function(n){switch(n.label){case 0:return this.store.insertId&&this.store.closeInsertPanel(),this.buildJSONSchemaUri(),this.buildToolbars(),[4,this.buildRenderers()];case 1:return n.sent(),this.buildPanels(),this.trigger("active",e?a.__assign(a.__assign({},this.buildEventContext(e)),{active:!0}):{id:t,active:!1}),[2]}}))}))})),(0,l.reaction)((function(){return t.selections.join(",")}),(function(){r.buildPanels()})),(0,l.reaction)((function(){return t.needPatch}),(function(e){e&&r.lazyPatchSchema()})),(0,i.reactionWithOldValue)((function(){return{id:t.hoverId,region:t.hoverRegion}}),(function(e,n){var a,r,o=t.getDoc();e.id&&e.region?null===(a=o.querySelector('[data-region="'.concat(e.region,'"][data-region-host="').concat(e.id,'"]')))||void 0===a||a.classList.add("is-region-active"):(null==n?void 0:n.id)&&(null==n?void 0:n.region)&&(null===(r=o.querySelector('[data-region="'.concat(n.region,'"][data-region-host="').concat(n.id,'"]')))||void 0===r||r.classList.remove("is-region-active"))})))}return e.prototype.dynamicAddPlugin=function(e){var t;if(e)if(this.plugins.some((function(t){return t&&t.name===e})))console.warn("[amis-editor]当前已有".concat(e,"插件"));else{var n=h.find((function(t){return t.prototype&&t.prototype.name===e}));if(n){var a=new n(this);a.order=null!==(t=a.order)&&void 0!==t?t:0,this.plugins.push(a),this.plugins.sort((function(e,t){return e.order-t.order})),this.buildRenderers()}}},e.prototype.buildEventContext=function(e){var t="string"==typeof e?this.store.getNodeById(e):e,n=this.store.getSchema(t.id);return{node:t,id:t.id,info:t.info,path:t.path,schemaPath:t.schemaPath,schema:n,data:""}},e.prototype.buildJSONSchemaUri=function(){var e=this.store.activeId,t="";if(e){var n=this.buildEventContext(e),a=this.trigger("before-resolve-json-schema",n);if(t=a.context.data,!a.prevented){this.plugins.forEach((function(e){var a;if(!t){var r=null===(a=e.buildJSONSchema)||void 0===a?void 0:a.call(e,n);r&&(t=r)}})),n.data=t;var r=this.trigger("after-resolve-json-schema",n);t=r.data}}this.store.setJSONSchemaUri(t)},e.prototype.buildToolbars=function(){var e=this.store.activeId,t=[];if(e){var n=this.buildEventContext(e);this.plugins.forEach((function(e){var r,o=a.__assign({},n);null===(r=e.buildEditorToolbar)||void 0===r||r.call(e,o,t)})),this.trigger("build-toolbars",a.__assign(a.__assign({},n),{data:t}))}this.store.setActiveToolbars(t.map((function(e){return a.__assign(a.__assign({},e),{order:e.order||0,id:(0,i.guid)()})})))},e.prototype.collectPanels=function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var o=[];if(e){var i=a.__assign(a.__assign({},this.buildEventContext(e)),{secondFactor:n,data:o,selections:this.store.selections.map((function(e){return r.buildEventContext(e)}))});this.plugins.forEach((function(e){var t;null===(t=e.buildEditorPanel)||void 0===t||t.call(e,i,o)})),t&&this.trigger("build-panels",i),o=i.data||o}return o},e.prototype.buildPanels=function(){var e=this.store.activeId,t=[];if(e||this.store.selections.length){e=e||this.store.selections[0];var n=this.store.getNodeById(e);t=n?this.collectPanels(n,!0):t}this.store.setPanels(t.map((function(e){return a.__assign(a.__assign({},e),{order:e.order||0})})))},e.prototype.collectRenderers=function(e,t){var n;return void 0===t&&(t=this.store.activeContainerId),a.__awaiter(this,void 0,void 0,(function(){var o,l,s,u,d,c,p,f,m;return a.__generator(this,(function(h){switch(h.label){case 0:if(o=[],!t)return[2,o];if(!(l=this.store.getNodeById(t)))return[2,o];for(s=this.store.getSchema(t),u={node:l,id:l.id,info:l.info,path:l.path,schemaPath:l.schemaPath,schema:s,region:e},c=function(e,t){var s=p.plugins[e],c=null===(n=s.buildSubRenderers)||void 0===n?void 0:n.call(s,u,o,(0,r.getRenderers)());c&&(Array.isArray(c)?c:[c]).forEach((function(e){return o.push(a.__assign(a.__assign({},e),{id:(0,i.guid)(),plugin:s,parent:l.info,order:e.order||0}))})),s.asyncUpdateCustomSubRenderersInfo&&(d=s)},p=this,f=0,m=this.plugins.length;f{Object.defineProperty(t,"__esModule",{value:!0}),t.mockValue=void 0;var a=n(752).__importDefault(n(2245));t.mockValue=function(e){var t="data:image/svg+xml,%3C%3Fxml version='1.0' standalone='no'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg t='1631083237695' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='2420' xmlns:xlink='http://www.w3.org/1999/xlink' width='1024' height='1024'%3E%3Cdefs%3E%3Cstyle type='text/css'%3E%3C/style%3E%3C/defs%3E%3Cpath d='M959.872 128c0.032 0.032 0.096 0.064 0.128 0.128v767.776c-0.032 0.032-0.064 0.096-0.128 0.128H64.096c-0.032-0.032-0.096-0.064-0.128-0.128V128.128c0.032-0.032 0.064-0.096 0.128-0.128h895.776zM960 64H64C28.8 64 0 92.8 0 128v768c0 35.2 28.8 64 64 64h896c35.2 0 64-28.8 64-64V128c0-35.2-28.8-64-64-64z' p-id='2421' fill='%23bfbfbf'%3E%3C/path%3E%3Cpath d='M832 288c0 53.024-42.976 96-96 96s-96-42.976-96-96 42.976-96 96-96 96 42.976 96 96zM896 832H128V704l224-384 256 320h64l224-192z' p-id='2422' fill='%23bfbfbf'%3E%3C/path%3E%3C/svg%3E";return"date"===e.type||"datetime"===e.type||"time"===e.type||"month"===e.type||"static-date"===e.type||"static-datetime"===e.type||"static-time"===e.type||"static-month"===e.type?(0,a.default)().format("X"):"image"===e.type||"static-image"===e.type?t:"images"===e.type||"static-images"===e.type?[t]:"假数据"}},9933:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasePlugin=t.createEvent=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=a.__importDefault(n(6918));t.createEvent=function(e,t){var n={context:t,type:e,prevented:!1,stoped:!1,preventDefault:function(){n.prevented=!0},stopPropagation:function(){n.stoped=!0},get data(){return n.context.data},setData:function(e){n.context.data=e}};return n};var i=function(){function e(e){this.manager=e}return e.prototype.getRendererInfo=function(e){var t=e.renderer,n=this;if(e.schema.$$id&&n.name&&n.rendererName&&n.rendererName===t.name)return{name:n.name,regions:n.regions,patchContainers:n.patchContainers,vRendererConfig:n.vRendererConfig,wrapperProps:n.wrapperProps,wrapperResolve:n.wrapperResolve,filterProps:n.filterProps,$schema:n.$schema,renderRenderer:n.renderRenderer,multifactor:n.multifactor,scaffoldForm:n.scaffoldForm,disabledRendererPlugin:n.disabledRendererPlugin,isBaseComponent:n.isBaseComponent,rendererName:n.rendererName}},e.prototype.buildEditorPanel=function(e,t){var n,r,o,i,l=this;if(!e.selections.length&&(!e.info.hostId&&(l.panelControls||l.panelControlsCreator||l.panelBody||l.panelBodyCreator)&&e.info.plugin===this?t.push({key:"config",icon:l.panelIcon||l.icon||"fa fa-cog",title:l.panelTitle||"设置",render:this.manager.makeSchemaFormRender({definitions:l.panelDefinitions,submitOnChange:l.panelSubmitOnChange,api:l.panelApi,body:l.panelBodyCreator?l.panelBodyCreator(e):l.panelBody,controls:l.panelControlsCreator?l.panelControlsCreator(e):l.panelControls})}):e.info.plugin===this&&e.info.hostId&&((null===(n=l.vRendererConfig)||void 0===n?void 0:n.panelControls)||(null===(r=l.vRendererConfig)||void 0===r?void 0:r.panelControlsCreator)||(null===(o=l.vRendererConfig)||void 0===o?void 0:o.panelBody)||(null===(i=l.vRendererConfig)||void 0===i?void 0:i.panelBodyCreator))&&t.push({key:e.info.multifactor?"vconfig":"config",icon:l.vRendererConfig.panelIcon||"fa fa-cog",title:l.vRendererConfig.panelTitle||"设置",render:this.manager.makeSchemaFormRender({submitOnChange:l.panelSubmitOnChange,api:l.panelApi,definitions:l.vRendererConfig.panelDefinitions,controls:l.vRendererConfig.panelControlsCreator?l.vRendererConfig.panelControlsCreator(e):l.vRendererConfig.panelControls,body:l.vRendererConfig.panelBodyCreator?l.vRendererConfig.panelBodyCreator(e):l.vRendererConfig.panelBody})}),e.info.plugin===this&&e.info.multifactor)){var s=e.node.sameIdChild;s&&this.manager.collectPanels(s,!1,!0).forEach((function(e){var n,r;if("code"===e.key){var o=t.some((function(e){return"code"===e.key}));o||t.push(e)}else"renderers"===e.key?(o=t.some((function(e){return"renderers"===e.key})),o||t.push(e)):"outline"===e.key||"commonConfig"===e.key||"name-list"===e.key||t.push(a.__assign(a.__assign({},e),{key:"sub-".concat(e.key),icon:(null===(r=null===(n=s.info)||void 0===n?void 0:n.plugin)||void 0===r?void 0:r.icon)||e.icon}))}))}},e.prototype.buildSubRenderers=function(e,t,n){var a=this;return Array.isArray(a.scaffolds)?a.scaffolds.map((function(e){var t,n,r,o,i,l,s,u;return{name:null!==(t=e.name)&&void 0!==t?t:a.name,icon:null!==(n=e.icon)&&void 0!==n?n:a.icon,description:null!==(r=e.description)&&void 0!==r?r:a.description,previewSchema:null!==(o=e.previewSchema)&&void 0!==o?o:a.previewSchema,tags:null!==(i=e.tags)&&void 0!==i?i:a.tags,docLink:null!==(l=e.docLink)&&void 0!==l?l:a.docLink,type:null!==(s=e.type)&&void 0!==s?s:a.type,scaffold:null!==(u=e.scaffold)&&void 0!==u?u:a.scaffold,scaffoldForm:a.scaffoldForm,disabledRendererPlugin:a.disabledRendererPlugin,isBaseComponent:a.isBaseComponent,rendererName:a.rendererName}})):a.name&&a.description?{name:a.name,icon:a.icon,description:a.description,previewSchema:a.previewSchema,tags:a.tags,docLink:a.docLink,type:a.type,scaffold:a.scaffold,scaffoldForm:a.scaffoldForm,disabledRendererPlugin:a.disabledRendererPlugin,isBaseComponent:a.isBaseComponent,rendererName:a.rendererName}:void 0},e.prototype.buildEditorContextMenu=function(e,t){var n,a,r=this,o=e.id,i=e.schema,l=(e.region,e.info),s=e.selections,u=this;l.plugin!==u||s.length||!(null===(n=u.scaffoldForm)||void 0===n?void 0:n.canRebuild)&&!(null===(a=l.scaffoldForm)||void 0===a?void 0:a.canRebuild)||t.push({label:"快速构建「".concat(l.plugin.name,"」"),disabled:i.$$commonSchema,onSelect:function(){return r.manager.reScaffold(o,l.scaffoldForm||u.scaffoldForm,i)}})},e.prototype.buildEditorToolbar=function(e,t){var n,a,r=this,o=e.id,i=e.schema,l=e.info,s=this;l.plugin===s&&((null===(n=s.scaffoldForm)||void 0===n?void 0:n.canRebuild)||(null===(a=l.scaffoldForm)||void 0===a?void 0:a.canRebuild))&&t.push({iconSvg:"harmmer",tooltip:"快速构建「".concat(l.plugin.name,"」"),placement:"bottom",onClick:function(){return r.manager.reScaffold(o,l.scaffoldForm||s.scaffoldForm,i)}})},e.prototype.renderPlaceholder=function(e,t){return r.default.createElement("div",{key:t,className:"wrapper-sm b-a b-light m-b-sm",children:r.default.createElement("span",{className:"text-muted",children:e})})},e.prototype.getPlugin=function(e){return(0,o.default)(this.manager.plugins,(function(t){return"string"==typeof e?t.rendererName===e:t instanceof e}))},e}();t.BasePlugin=i},2821:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlertPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="alert",t.$schema="/schemas/AlertSchema.json",t.name="提示",t.isBaseComponent=!0,t.description="用来做文字特殊提示,分为四类:提示类、成功类、警告类和危险类。可结合 visibleOn 用来做错误信息提示。",t.docLink="/amis/zh-CN/components/alert",t.icon="fa fa-exclamation-circle",t.scaffold={type:"alert",body:{type:"tpl",tpl:"提示内容",inline:!1},level:"info"},t.previewSchema=a.__assign(a.__assign({},t.scaffold),{className:"text-left",showCloseButton:!0}),t.regions=[{key:"body",label:"内容区",placeholder:"提示内容"}],t.panelTitle="提示",t.panelBody=(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"switch",name:"showCloseButton",mode:"inline",className:"w-full",label:"显示关闭按钮"}]},{title:"外观",body:[{label:"样式",name:"level",type:"select",options:[{label:"提示",value:"info"},{label:"成功",value:"success"},{label:"警告",value:"warning"},{label:"严重",value:"danger"}]},(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}]),t}return a.__extends(t,e),t}(o.BasePlugin);t.AlertPlugin=l,(0,r.registerEditorPlugin)(l)},1509:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnchorNavPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(9756),i=n(9547),l=n(9933),s=n(5863),u=n(9703),d=a.__importDefault(n(8425)),c=n(1548),p=n(3437),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="anchor-nav",t.$schema="/schemas/AnchorNavSchema.json",t.name="锚点导航",t.isBaseComponent=!0,t.description="锚点导航,在多行内容展示时,可以将内容用锚点导航分组的形式展示,点击导航菜单可以定位到对应内容区域。",t.docLink="/amis/zh-CN/components/anchor-nav",t.tags=["容器"],t.icon="fa fa-link",t.scaffold={type:"anchor-nav",links:[{title:"用户信息",body:"用户信息"},{title:"系统配置信息",body:[{type:"form",body:[{type:"fieldSet",title:"系统配置信息",body:[{type:"input-email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"}]}]}]},{title:"权限管理",body:[{type:"form",body:[{type:"fieldSet",title:"权限管理",body:[{type:"input-email",name:"email",placeholder:"请输入邮箱地址",label:"邮箱"}]}]}]},{title:"角色管理",body:"角色管理"},{title:"网络配置信息",body:"网络配置信息"}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="锚点导航",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"links",type:"combo",label:"锚点管理",multiple:!0,draggable:!0,minLength:1,items:[{type:"input-text",name:"title",required:!0}],scaffold:{title:"锚点内容",body:{type:"tpl",tpl:"内容",inline:!1}},addButtonText:"新增锚点",draggableTip:""}]},{title:"外观",body:[(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("className",{name:"linkClassName",label:"导航 CSS 类名"}),(0,i.getSchemaTpl)("className",{name:"sectionClassName",label:"区域内容 CSS 类名"})]}])],t.patchContainers=["anchor-nav.body"],t.vRendererConfig={regions:{body:{key:"body",label:"内容区"}},panelTitle:"内容区域",panelBody:[(0,i.getSchemaTpl)("fieldSet",{title:"常规",body:[{name:"title",label:"标题",type:"input-text",required:!0}]}),(0,i.getSchemaTpl)("fieldSet",{title:"外观",body:[(0,i.getSchemaTpl)("className")]})]},t.wrapperProps={unmountOnExit:!0,mountOnEnter:!0},t.sectionWrapperResolve=function(e){return e.parentElement},t.overrides={render:function(){var e=this,t=this.super();if(!this.renderSection&&this.props.$$editor&&t){var n=this.props.links;return(0,u.mapReactElement)(t,(function(t){var a,o;if(t.type===p.AnchorNavSection&&t.props.$$id){var i=t.props.$$id,l=(0,d.default)(n,(function(e){return e.$$id===i})),u=e.props.$$editor,f=u.plugin;if(~l){var m=null===(o=null===(a=f.vRendererConfig)||void 0===a?void 0:a.regions)||void 0===o?void 0:o.body;return m?r.default.cloneElement(t,{children:r.default.createElement(s.VRenderer,{key:i,plugin:u.plugin,renderer:u.renderer,$schema:"/schemas/SectionSchema.json",hostId:u.id,memberIndex:l,name:"".concat(t.props.title||"锚点内容".concat(l+1)),id:i,draggable:!1,wrapperResolve:f.sectionWrapperResolve,schemaPath:"".concat(u.schemaPath,"/anchor-nav/").concat(l),path:"".concat(e.props.$path,"/").concat(l),data:e.props.data},r.default.createElement(c.RegionWrapper,{key:m.key,preferTag:m.preferTag,name:m.key,label:m.label,regionConfig:m,placeholder:m.placeholder,editorStore:f.manager.store,manager:f.manager,children:t.props.children,wrapperResolve:m.wrapperResolve,rendererName:u.renderer.name}))}):t}}return t}))}return t}},t}return a.__extends(t,e),t}(l.BasePlugin);t.AnchorNavPlugin=f,(0,o.registerEditorPlugin)(f)},1596:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AudioPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="audio",t.$schema="/schemas/AudioSchema.json",t.name="音频",t.isBaseComponent=!0,t.description="音频控件,可以用来播放各种音频文件。",t.tags=["功能"],t.icon="fa fa-music",t.scaffold={type:"audio",autoPlay:!1,src:""},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="音频",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[t?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"

当前为字段内容节点配置,选择上层还有更多的配置。

"}:null,{name:"src",type:"input-text",label:"音频地址",description:"支持获取变量如:\\${audioSrc}"},{type:"select",name:"rates",label:"音频倍速",description:"加速范围在0.1到16之间",multiple:!0,pipeIn:function(e){return Array.isArray(e)?e.join(","):[]},pipeOut:function(e){if(e&&e.length){var t=e.split(",");return t=t.filter((function(e){return Number(e)&&Number(e)>0&&Number(e)<=16})).map((function(e){return Number(Number(e).toFixed(1))})),Array.from(new Set(t))}return[]},options:["0.5","1","1.5","2","2.5","3","3.5","4"]},{name:"controls",type:"select",label:"内部控件",multiple:!0,extractValue:!0,joinValues:!1,options:[{label:"倍速",value:"rates"},{label:"播放",value:"play"},{label:"时间",value:"time"},{label:"进度",value:"process"},{label:"音量",value:"volume"}],pipeIn:(0,i.defaultValue)(["rates","play","time","process","volume"]),labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"选择倍速后,还需要在常规选择栏中配置倍速",placement:"left"}},{name:"autoPlay",type:"switch",mode:"inline",className:"w-full",label:"自动播放"},{name:"loop",type:"switch",mode:"inline",className:"w-full",label:"循环播放"}]},{title:"外观",body:[(0,i.getSchemaTpl)("className"),{name:"inline",type:"switch",mode:"inline",className:"w-full",label:"内联模式",pipeIn:(0,i.defaultValue)(!0)}]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t}(o.BasePlugin);t.AudioPlugin=l,(0,r.registerEditorPlugin)(l)},7717:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AvatarPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="avatar",t.$schema="/schemas/AvatarSchema.json",t.name="头像",t.isBaseComponent=!0,t.icon="fa fa-user",t.description="用户头像",t.docLink="/amis/zh-CN/components/avatar",t.tags=["其他"],t.scaffold={type:"avatar",icon:"fa fa-user"},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="面包屑",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"input-text",label:"文字",name:"text"},{type:"select",label:"图片拉伸方式",options:["cover","fill","contain","none","scale-down"]},{type:"radios",name:"shape",inline:!0,value:"circle",label:"形状",options:["circle","square"]},{name:"icon",label:"图标",type:"icon-picker"},{name:"size",label:"大小",value:40,type:"input-number"}]},{title:"外观",body:[(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("style")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t}(o.BasePlugin);t.AvatarPlugin=l,(0,r.registerEditorPlugin)(l)},2029:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BreadcrumbPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="breadcrumb",t.$schema="/schemas/BreadcrumbSchema.json",t.disabledRendererPlugin=!0,t.name="面包屑",t.isBaseComponent=!0,t.icon="fa fa-list",t.description="面包屑导航",t.docLink="/amis/zh-CN/components/breadcrumb",t.tags=["其他"],t.scaffold={type:"breadcrumb",items:[{label:"首页",href:"/",icon:"fa fa-home"},{label:"上级页面"},{label:"当前页面"}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="面包屑",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{label:"分隔符",type:"input-text",name:"separator"},(0,i.getSchemaTpl)("api",{label:"动态数据",name:"source"}),{label:"面包屑",name:"items",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增",items:[{type:"input-text",placeholder:"文本",name:"label"},{type:"input-text",name:"href",placeholder:"链接"},{name:"icon",label:"图标",type:"icon-picker"}]}]},{title:"外观",body:[(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("className",{name:"itemClassName",label:"面包屑的 CSS 类名"}),,(0,i.getSchemaTpl)("className",{name:"separatorClassName",label:"分隔符的 CSS 类名"})]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t}(o.BasePlugin);t.BreadcrumbPlugin=l,(0,r.registerEditorPlugin)(l)},6460:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="button",t.$schema="/schemas/ActionSchema.json",t.name="按钮",t.isBaseComponent=!0,t.description="用来展示一个按钮,你可以配置不同的展示样式,配置不同的点击行为。",t.docLink="/amis/zh-CN/components/button",t.tags=["按钮"],t.icon="fa fa-square",t.scaffold={type:"button",label:"按钮",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}},t.previewSchema={type:"button",label:"按钮"},t.panelTitle="按钮",t.panelBodyCreator=function(e){/(?:\/|^)dialog\/.+$/.test(e.path);var t=/(?:\/|^)dropdown-button\/.+$/.test(e.path);return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{label:"名称",type:"input-text",name:"label"},{label:"类型",type:"button-group-select",name:"type",size:"sm",options:[{label:"按钮",value:"button"},{label:"提交",value:"submit"},{label:"重置",value:"reset"}]},{type:"input-text",name:"tooltip",hidden:t,label:"提示文案",description:"鼠标停留时弹出该内容"},{type:"button-group-select",name:"tooltipPlacement",visibleOn:"data.tooltip || data.disabledTip",label:"提示信息位置",size:"sm",mode:"inline",className:"w-full",value:"bottom",options:[{label:"上",value:"top"},{label:"右",value:"right"},{label:"下",value:"bottom"},{label:"左",value:"left"}]},(0,i.getSchemaTpl)("icon"),{type:"button-group-select",label:"图标位置",clearable:!0,visibleOn:"this.icon",name:"iconClassName",size:"sm",pipeIn:function(e){return"string"==typeof e&&/\bpull\-(left|right)\b/.test(e)?RegExp.$1:""},pipeOut:function(e,t){return(t||"").replace(/\bpull\-(left|right)\b/,"").trim()+e?"pull-".concat(e):""},options:[{label:"居左",value:"left"},{label:"居右",value:"right"}]},(0,i.getSchemaTpl)("size",{label:"尺寸"}),{label:"样式",type:"select",name:"level",hidden:t,clearable:!1,btnActiveLevel:"",options:[{label:"默认",value:"default",level:"default"},{label:"链接",value:"link",level:"link"},{label:"主色",value:"primary",level:"primary"},{label:"淡色",value:"light",level:"light"},{label:"深色",value:"dark",level:"dark"},{label:"提示",value:"info",level:"info"},{label:"成功",value:"success",level:"success"},{label:"警告",value:"warning",level:"warning"},{label:"严重",value:"danger",level:"danger"}]},{name:"block",type:"switch",label:"块状显示",mode:"inline"},(0,i.getSchemaTpl)("className",{label:"按钮 CSS 类名"}),(0,i.getSchemaTpl)("className",{name:"iconClassName",label:"图标 CSS 类名",visibleOn:"this.icon"})]},{title:"显隐",body:[(0,i.getSchemaTpl)("disabled",[{type:"input-text",name:"disabledTip",label:"禁用提示信息",hidden:t,description:"按钮被禁用时,鼠标停留弹出该段文字"}]),(0,i.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t.prototype.filterProps=function(e){return e.disabled=!1,e},t.prototype.getRendererInfo=function(e){var t=e.renderer,n=e.schema,a=this;if(n.$$id&&a.name&&a.rendererName&&a.rendererName===t.name)return{name:n.label?n.label:a.name,regions:a.regions,patchContainers:a.patchContainers,vRendererConfig:a.vRendererConfig,wrapperProps:a.wrapperProps,wrapperResolve:a.wrapperResolve,filterProps:a.filterProps,$schema:a.$schema,renderRenderer:a.renderRenderer}},t}(o.BasePlugin);t.ButtonPlugin=l,(0,r.registerEditorPlugin)(l)},4930:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroupPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="button-group",t.$schema="/schemas/ButtonGroupSchema.json",t.name="按钮组",t.isBaseComponent=!0,t.description="用来展示多个按钮,视觉上会作为一个整体呈现。",t.tags=["按钮"],t.icon="fa fa-object-group",t.docLink="/amis/zh-CN/components/button-group",t.scaffold={type:"button-group",buttons:[{type:"button",label:"按钮1",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}},{type:"button",label:"按钮2",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="按钮组",t.panelBody=[{name:"buttons",type:"combo",label:"按钮管理",multiple:!0,addable:!0,minLength:1,draggable:!0,draggableTip:"",editable:!1,visibleOn:"this.buttons && this.buttons.length",items:[{type:"tpl",inline:!1,className:"p-t-xs",tpl:'<% if (data.type === "button-group") { %> 按钮组 <% } else { %><%= data.label %><% if (data.icon) { %><% }%><% } %>'}],addButtonText:"新增按钮",scaffold:{type:"button",label:"按钮"}}],t.regions=[{key:"buttons",label:"子按钮",renderMethod:"render",preferTag:"按钮",insertPosition:"inner"}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.ButtonGroupPlugin=o,(0,r.registerEditorPlugin)(o)},1838:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonToolbarPlugin=void 0;var a=n(752),r=n(9933),o=n(9547),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="button-toolbar",t.$schema="/schemas/ButtonToolbarSchema.json",t.name="按钮工具栏",t.isBaseComponent=!0,t.description="可以用来放置多个按钮或者按钮组,按钮之间会存在一定的间隔",t.tags=["按钮"],t.icon="fa fa-ellipsis-h",t.scaffold={type:"button-toolbar",buttons:[{type:"button",label:"按钮1",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}},{type:"button",label:"按钮2",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="按钮工具栏",t.panelBody=[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"buttons",type:"combo",label:"按钮管理",multiple:!0,addable:!0,draggable:!0,draggableTip:"可排序、可移除、如要编辑请在预览区选中编辑",editable:!1,visibleOn:"this.buttons && this.buttons.length",items:[{type:"tpl",inline:!1,className:"p-t-xs",tpl:'<% if (data.type === "button-group") { %> 按钮组 <% } else { %><%= data.label %><% if (data.icon) { %><% }%><% } %>'}],addButtonText:"新增按钮",scaffold:{type:"button",label:"按钮"}}]},{title:"外观",body:[(0,o.getSchemaTpl)("className")]},{title:"显隐",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t}(r.BasePlugin);t.ButtonToolbarPlugin=i},6062:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CRUDPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(1712)),i=a.__importDefault(n(9591)),l=a.__importDefault(n(6689)),s=n(9756),u=n(9933),d=n(9547),c=n(3570),p=n(3893),f=n(2717),m=n(8663),h=function(e){return"tpl"===e?"input-text":"status"===e||"mapping"===e?"select":"input-".concat(e)},v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="crud",t.$schema="/schemas/CRUDSchema.json",t.order=-1e3,t.name="增删改查",t.isBaseComponent=!0,t.description="用来实现对数据的增删改查,支持三种模式展示:table、cards和list. 负责数据的拉取,分页,单条操作,批量操作,排序,快速编辑等等功能。集成查询条件。",t.docLink="/amis/zh-CN/components/crud",t.tags=["功能"],t.icon="fa fa-table",t.scaffold={type:"crud",syncLocation:!1,api:"",columns:[{name:"id",label:"ID",type:"text"},{name:"engine",label:"渲染引擎",type:"text"}],bulkActions:[],itemActions:[]},t.sampleBuilder=function(e){var t={items:[],total:0};if(Array.isArray(e.columns)){var n={};e.columns.forEach((function(e){e.name&&(0,p.setVariable)(n,e.name,"sample")})),t.items.push(n)}return JSON.stringify({status:0,msg:"",data:t},null,2)},t.btnSchemas={create:{label:"新增",type:"button",actionType:"dialog",level:"primary",dialog:{title:"新增",body:{type:"form",api:"xxx/create",body:[]}}},update:{label:"编辑",type:"button",actionType:"dialog",level:"link",dialog:{title:"编辑",body:{type:"form",api:"xxx/update",body:[]}}},view:{label:"查看",type:"button",actionType:"dialog",level:"link",dialog:{title:"查看详情",body:{type:"form",api:"xxx/update",body:[]}}},delete:{type:"button",label:"删除",actionType:"ajax",level:"link",className:"text-danger",confirmText:"确定要删除?",api:"delete:/xxx/delete"},bulkDelete:{type:"button",level:"danger",label:"批量删除",actionType:"ajax",confirmText:"确定要删除?",api:"/xxx/batch-delete"},bulkUpdate:{type:"button",label:"批量编辑",actionType:"dialog",dialog:{title:"批量编辑",size:"md",body:{type:"form",api:"/xxx/bacth-edit",body:[{label:"字段1",text:"字段1",type:"input-text"}]}}},filter:{title:"查询条件",body:[{type:"input-text",name:"keywords",label:"关键字"}]}},t.scaffoldForm={title:"增删改查快速开始-CRUD",body:[(0,d.getSchemaTpl)("api",{label:"接口地址",sampleBuilder:function(e){var t={items:[],total:0};if(Array.isArray(e.columns)){var n={};e.columns.forEach((function(e){e.name&&(0,p.setVariable)(n,e.name,"sample")})),t.items.push(n)}return JSON.stringify({status:0,msg:"",data:t},null,2)}}),{type:"button",label:"格式校验并自动生成列配置",className:"m-t-xs m-b-xs",onClick:function(e,n){return a.__awaiter(t,void 0,void 0,(function(){var e,t,o,i,l,s,u,d;return a.__generator(this,(function(a){switch(a.label){case 0:return e=n.data,t=(0,f.getEnv)(window.editorStore).schemaFilter,o=e.api,t&&(o=t({api:e.api}).api),[4,n.env.fetcher(o,e)];case 1:return i=a.sent(),l=[],(null==(s=(null===(u=i.data)||void 0===u?void 0:u.rows)||(null===(d=i.data)||void 0===d?void 0:d.items))?void 0:s.length)?(Object.keys(s[0]).forEach((function(e){s[0][e],l.push({label:e,type:"text",name:e})})),n.formStore.setValues({columns:l}),n.formStore.setValues({filterSettingSource:l.map((function(e){return e.name}))})):r.toast.warning("API返回格式不正确,请点击接口地址右侧示例的问号查看示例"),[2]}}))}))}},{name:"features",label:"启用功能",type:"checkboxes",joinValues:!1,extractValue:!0,itemClassName:"max-w-lg",options:[{label:"新增",value:"create"},{label:"查询",value:"filter"},{label:"批量删除",value:"bulkDelete"},{label:"批量修改",value:"bulkUpdate"},{label:"操作栏-编辑",value:"update"},{label:"操作栏-查看详情",value:"view"},{label:"操作栏-删除",value:"delete"}]},{type:"group",body:[{columnRatio:10,type:"checkboxes",label:"启用的查询字段",name:"filterEnabledList",joinValues:!1,source:"${filterSettingSource}"},{columnRatio:2,type:"input-number",label:"每列显示几个字段",value:3,name:"filterColumnCount"}],visibleOn:'data.features && data.features.includes("filter")'},{name:"columns",type:"input-table",label:!1,addable:!0,removable:!0,needConfirm:!1,columns:[{type:"input-text",name:"label",label:"标题"},{type:"input-text",name:"name",label:"绑定字段名"},{type:"select",name:"type",label:"类型",value:"text",options:[{value:"text",label:"纯文本"},{value:"tpl",label:"模板"},{value:"image",label:"图片"},{value:"date",label:"日期"},{value:"progress",label:"进度"},{value:"status",label:"状态"},{value:"mapping",label:"映射"},{value:"operation",label:"操作栏"}]}]}],pipeOut:function(e){var n=(0,i.default)(e),r=n.features,l={type:"operation",label:"操作",buttons:[]},s=["update","view","delete"],u=(0,o.default)(r,"length");n.bulkActions=[],n.api=(0,m.normalizeApi)(n.api),u&&r.forEach((function(r){var o,u;if(s.includes(r)){var d=void 0;"update"===r?(d=(0,i.default)(t.btnSchemas.update)).dialog.body.body=e.columns.filter((function(e){var t=e.type;return"progress"!==t&&"operation"!==t})).map((function(e){var t=e.type,n=a.__rest(e,["type"]);return a.__assign(a.__assign({},n),{type:h(t)})})):"view"===r?(d=(0,i.default)(t.btnSchemas.view)).dialog.body.body=e.columns.map((function(e){e.type;var t=a.__rest(e,["type"]);return a.__assign(a.__assign({},t),{type:"static"})})):"delete"===r&&((d=(0,i.default)(t.btnSchemas.delete)).api=(null===(o=n.api)||void 0===o?void 0:o.method.match(/^(post|delete)$/i))?n.api:a.__assign(a.__assign({},n.api),{method:"post"})),t.addItem(l.buttons,d)}else{if("bulkUpdate"===r&&t.addItem(n.bulkActions,(0,i.default)(t.btnSchemas.bulkUpdate)),"bulkDelete"===r&&t.addItem(n.bulkActions,(0,i.default)(t.btnSchemas.bulkDelete)),"create"===r){var c=t.btnSchemas.create;c.dialog.body={type:"form",api:(null===(u=n.api)||void 0===u?void 0:u.method.match(/^(post|put)$/i))?n.api:a.__assign(a.__assign({},n.api),{method:"post"}),body:n.columns.map((function(e){var t=e.type;return{type:h(t),name:e.name,label:e.label}}))},n.headerToolbar=[c,"bulkActions"]}var p=Object.keys(n.filter||{});"filter"!==r||p.length||n.filterEnabledList&&(n.filter={title:"查询条件"},n.filter.columnCount=e.filterColumnCount,n.filter.mode="horizontal",n.filter.body=n.filterEnabledList.map((function(e){return{type:"input-text",label:e.label,name:e.value}})))}}));var d=n.columns.find((function(e){return"operation"===e.type}));return u&&!d&&n.columns.push(l),n},canRebuild:!0},t.multifactor=!0,t.previewSchema={syncLocation:!1,type:"crud",className:"text-left",bodyClassName:"m-b-none",affixHeader:!1,data:{items:[{a:1,b:2},{a:3,b:4},{a:5,b:6}]},source:"${items}",columns:[{label:"A",name:"a"},{label:"B",name:"b"},{type:"operation",label:"操作",buttons:[{icon:"fa fa-eye",type:"button"},{icon:"fa fa-edit",type:"button"}]}]},t.panelTitle="增删改查",t.panelBodyCreator=function(e){t.manager.store;var n=e.id;return(0,d.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"filter",type:"switch",mode:"inline",className:"block",label:"启用查询条件",pipeIn:function(e){return!!e},pipeOut:function(e,n){return e?t.oldFilter||(0,c.JSONPipeIn)({title:"查询条件",body:[{type:"input-text",name:"keywords",label:"关键字"}]}):(t.oldFilter=n,null)}},{type:"divider"},{label:"批量操作",name:"bulkActions",type:"combo",hiddenOn:"data.pickerMode && data.multiple",inputClassName:"ae-BulkActions-control",multiple:!0,draggable:!0,draggableTip:"",scaffold:{label:"按钮",type:"button"},labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"通过此可以管理批量操作按钮,只有设置了批量操作按钮才会出现选择框,可在外观中配置批量操作按钮位置。",placement:"left"},items:[{type:"tpl",tpl:'${label}',columnClassName:"p-t-xs"},{columnClassName:"p-t-xs col-edit",children:function(e){var a=e.index;return l.default.createElement("button",{onClick:t.handleBulkActionEdit.bind(t,n,a),"data-tooltip":"修改","data-position":"bottom",className:"text-muted"},l.default.createElement("i",{className:"fa fa-pencil"}))}}]},{type:"divider"},{label:"单条操作",name:"itemActions",type:"combo",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"设置后,当鼠标悬停行数据上,会出现该操作按钮,同时顶部操作栏也会显示该按钮,勾选成员时与批量按钮智能切换。",placement:"left"},hiddenOn:'this.mode && this.mode !== "table" || this.pickerMode',inputClassName:"ae-BulkActions-control",multiple:!0,draggable:!0,scaffold:{label:"按钮",type:"button"},items:[{type:"tpl",tpl:'${label}',columnClassName:"p-t-xs"},{type:"checkbox",className:"text-xs",option:"悬停隐藏",name:"hiddenOnHover"},{columnClassName:"p-t-xs col-edit",children:function(e){var a=e.index;return l.default.createElement("button",{onClick:t.handleItemActionEdit.bind(t,n,a),"data-tooltip":"修改","data-position":"bottom",className:"text-muted"},l.default.createElement("i",{className:"fa fa-pencil"}))}}]},{type:"divider",hiddenOn:'this.mode && this.mode !== "table" || this.pickerMode'},{name:"syncLocation",label:"同步地址栏",type:"switch",mode:"inline",className:"block",pipeIn:(0,d.defaultValue)(!0),labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启后会把查询条件数据和分页信息同步到地址栏中,页面中出现多个时,建议只保留一个同步地址栏,否则会相互影响。",placement:"left"}},{label:"默认参数",type:"input-kv",name:"defaultParams",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"可以用来设置默认参数,比如 perPage:20",placement:"left"}},{type:"divider"},{name:"keepItemSelectionOnPageChange",label:"保留条目选择",type:"switch",mode:"inline",className:"block",visbileOn:"this.bulkActions && this.bulkActions.length || this.itemActions && this.itemActions.length",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"默认分页、搜索后,用户选择条目会被清空,开启此选项后会保留用户选择,可以实现跨页面批量操作。",placement:"left"}},{name:"labelTpl",type:"input-text",label:"单条描述模板",visibleOn:"this.keepItemSelectionOnPageChange",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启【保留条目选择】后会把所有已选择条目列出来,此选项可以用来定制条目展示文案。",placement:"left"}},{name:"primaryField",label:"指定主键",type:"input-text",pipeIn:(0,d.defaultValue)("id"),description:"默认id,用于批量操作获取行级数据"}]},{title:"接口",body:[(0,d.getSchemaTpl)("api",{label:"数据拉取接口",sampleBuilder:function(e){var t={items:[],total:0};if(Array.isArray(e.columns)){var n={};e.columns.forEach((function(e){e.name&&(0,p.setVariable)(n,e.name,"sample")})),t.items.push(n)}return JSON.stringify({status:0,msg:"",data:t},null,2)}}),{name:"initFetch",type:"radios",label:"是否初始拉取",pipeIn:function(e){return"boolean"==typeof e&&e||"boolean"!=typeof e&&""},inline:!0,onChange:function(){},options:[{label:"是",value:!0},{label:"否",value:!1},{label:"表达式",value:""}]},{name:"initFetch",autoComplete:!1,visibleOn:'typeof this.initFetch !== "boolean"',type:"input-text",placeholder:"用 JS 表达式来决定",className:"m-t-n-sm"},{name:"loadDataOnce",label:"一次性拉取",type:"switch",mode:"inline",className:"block",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启后,数据只会在初始的时候拉取,后续分页、排序不再请求接口,都由前端直接完成。",placement:"left"}},{label:"开启定时刷新",type:"switch",name:"interval",visibleOn:"data.api",pipeIn:function(e){return!!e},pipeOut:function(e){return e?3e3:void 0},mode:"inline",className:"block"},{name:"interval",type:"input-number",visibleOn:'typeof data.interval === "number"',step:500,className:"m-t-n-sm",description:"设置后将自动定时刷新,单位 ms"},{name:"silentPolling",label:"静默刷新",type:"switch",mode:"inline",visibleOn:"!!data.interval",description:"设置自动定时刷新时是否显示loading"},{name:"stopAutoRefreshWhen",label:"停止定时刷新检测表达式",type:"input-text",visibleOn:"!!data.interval",description:"定时刷新一旦设置会一直刷新,除非给出表达式,条件满足后则不刷新了。"},{name:"stopAutoRefreshWhenModalIsOpen",label:"当有弹框时关闭自动刷新",type:"switch",visibleOn:"!!data.interval",mode:"inline",className:"block",description:"弹框打开关闭自动刷新,关闭弹框又恢复"},{type:"divider"},{name:"draggable",label:"是否可拖拽排序",type:"switch",mode:"inline",className:"block"},(0,d.getSchemaTpl)("api",{label:"顺序保存接口",name:"saveOrderApi",visibleOn:"data.draggable"}),{type:"divider"},(0,d.getSchemaTpl)("api",{label:"快速保存接口",name:"quickSaveApi",description:"当 column 中设置了快速编辑后将使用此接口批量保存数据。"}),{type:"divider"},(0,d.getSchemaTpl)("api",{label:"快速保存单条接口",name:"quickSaveItemApi",description:"当 column 中设置了快速编辑且设置了立即保存,将使用此接口保存数据。"}),{type:"divider"},{label:"默认消息提示",type:"combo",name:"messages",multiLine:!0,description:"覆盖默认消息提示,但如果 api 返回 msg 则会优先使用这个 msg",items:[{label:"获取成功提示",type:"input-text",name:"fetchSuccess"},{label:"获取失败提示",type:"input-text",name:"fetchFailed"},{label:"保存顺序成功提示",type:"input-text",name:"saveOrderSuccess"},{label:"保存顺序失败提示",type:"input-text",name:"saveOrderFailed"},{label:"快速保存成功提示",type:"input-text",name:"quickSaveSuccess"},{label:"快速保存失败提示",type:"input-text",name:"quickSaveFailed"}]}]},{title:"外观",body:[{label:"内容展示模式",name:"mode",type:"button-group-select",size:"xs",pipeIn:function(e,t){var n;return null!==(n="grid"===e?"cards":e)&&void 0!==n?n:"table"},onChange:function(e,t,n,a){var r,o,l,s,u,d,c=null===(o=null===(r=null==a?void 0:a.data)||void 0===r?void 0:r.headerToolbar)||void 0===o?void 0:o.some((function(e){return"columns-toggler"===e.type})),p=(0,i.default)(null===(l=null==a?void 0:a.data)||void 0===l?void 0:l.headerToolbar);"table"!==e&&"table"===t&&(d=(null==p?void 0:p.find((function(e){return"columns-toggler"===e.type})))||{type:"columns-toggler",align:"right"},a.setValues({__headerHasColumnsToggler:c})),p="table"===e?p:null==p?void 0:p.filter((function(e){return"columns-toggler"!==e.type})),"table"===e?((null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.__headerHasColumnsToggler)&&!c&&(null==p||p.push((null===(u=null==a?void 0:a.data)||void 0===u?void 0:u.__cacheColumnsToggler)||{type:"columns-toggler",align:"right"})),a.setValues({headerToolbar:p,columns:a.data.__columns||[{label:"ID",name:"id"},{label:"列信息",name:"name"}],__headerHasColumnsToggler:c,__card:a.data.card||a.data.__card,__listItem:a.data.listItem||a.data.__listItem}),a.deleteValueByName("card"),a.deleteValueByName("listItem")):"cards"===e?("table"===t&&a.setValues({__cacheColumnsToggler:d}),a.setValues({headerToolbar:p,card:a.data.__card||{type:"card",header:{title:"标题",subTitle:"副标题"},body:[{name:"a",label:"A"},{name:"b",label:"B"}],actions:[{label:"详情",type:"button"}]},__columns:a.data.columns||a.data.__columns,__listItem:a.data.listItem||a.data.__listItem}),a.deleteValueByName("columns"),a.deleteValueByName("listItem")):("table"===t&&a.setValues({__cacheColumnsToggler:d}),a.setValues({headerToolbar:p,listItem:a.data.__listItem||{body:[{type:"tpl",tpl:"简单的展示数据:$a $b"}],actions:[{icon:"fa fa-eye",type:"button"}]},__columns:a.data.columns||a.data.__columns,__card:a.data.card||a.data.__card}),a.deleteValueByName("columns"),a.deleteValueByName("card"))},options:[{value:"table",label:"表格"},{value:"cards",label:"卡片"},{value:"list",label:"列表"}]},{name:"headerToolbar",type:"combo",draggable:!0,draggableTip:"",descrition:"非内建内容请在预览区选中后编辑",label:"顶部工具栏配置",pipeIn:function(e){return Array.isArray(e)||(e=e?[e]:["bulkActions"]),e.map((function(e){var t=e.type;return"string"==typeof e&&~["bulkActions","bulk-actions","pagination","statistics","switch-per-page","filter-toggler","load-more","export-csv","export-excel"].indexOf(e)?e={type:t="bulkActions"===e?"bulk-actions":e}:"string"==typeof e&&(t="tpl",e="string"==typeof e?{type:"tpl",tpl:e}:e),a.__assign({type:t},e)}))},pipeOut:function(e){return Array.isArray(e)?e.map((function(e){return"button"===e.type?(0,c.JSONPipeIn)(a.__assign({label:"按钮",type:"button"},e)):"tpl"===e.type?(0,c.JSONPipeIn)(a.__assign({type:"tpl",tpl:"内容"},e)):e})):[]},scaffold:{type:"tpl",tpl:"内容"},multiple:!0,items:[{type:"select",name:"type",columnClassName:"w-ssm",options:[{value:"bulk-actions",label:"操作栏"},{value:"pagination",label:"分页"},{value:"statistics",label:"统计数据"},{value:"switch-per-page",label:"切换页码"},{value:"load-more",label:"加载更多"},{value:"export-csv",label:"导出 CSV"},{value:"export-excel",label:"导出 Excel"},{value:"columns-toggler",label:"列选择器",visibleOn:'!this.mode || this.mode === "table"'},{value:"filter-toggler",label:"查询条件切换"},{value:"drag-toggler",label:"拖拽切换"},{value:"check-all",label:"全选",hiddenOn:'!this.mode || this.mode === "table"'},{value:"tpl",label:"文本"},{value:"button",label:"按钮"}]},{name:"align",placeholder:"对齐方式",type:"select",size:"xs",options:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]}]},{name:"footerToolbar",type:"combo",draggable:!0,draggableTip:"",descrition:"非内建内容请在预览区选中后编辑",label:"底部工具栏配置",pipeIn:function(e){return Array.isArray(e)||(e=e?[e]:["statistics","pagination"]),e.map((function(e){var t=e.type;return"string"==typeof e&&~["bulkActions","bulk-actions","pagination","statistics","switch-per-page","filter-toggler","load-more","export-csv","export-excel"].indexOf(e)?e={type:t="bulkActions"===e?"bulk-actions":e}:"string"==typeof e&&(t="tpl",e="string"==typeof e?{type:"tpl",tpl:e}:e),a.__assign({type:t},e)}))},pipeOut:function(e){return Array.isArray(e)?e.map((function(e){return"button"===e.type?(0,c.JSONPipeIn)(a.__assign({label:"按钮",type:"button"},e)):"tpl"===e.type?(0,c.JSONPipeIn)(a.__assign({type:"tpl",tpl:"内容"},e)):e})):[]},scaffold:{type:"tpl",tpl:"内容"},multiple:!0,items:[{type:"select",name:"type",columnClassName:"w-ssm",options:[{value:"bulk-actions",label:"操作栏"},{value:"pagination",label:"分页"},{value:"statistics",label:"统计数据"},{value:"switch-per-page",label:"切换页码"},{value:"load-more",label:"加载更多"},{value:"export-csv",label:"导出 CSV"},{value:"export-excel",label:"导出 Excel"},{value:"columns-toggler",label:"列选择器",hiddenOn:'["grid", "cards", "list"].indexOf(this.mode)'},{value:"filter-toggler",label:"查询条件切换"},{value:"drag-toggler",label:"拖拽切换"},{value:"check-all",label:"全选",hiddenOn:'!this.mode || this.mode === "table"'},{value:"tpl",label:"文本"},{value:"button",label:"按钮"}]},{name:"align",placeholder:"对齐方式",size:"xs",type:"select",options:[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"}]},{type:"remark",content:"详情请在预览区域选中后进行编辑。",trigger:["click"],rootClose:!0,placement:"left",visibleOn:'!~["bulkActions", "drag-toggler", "check-all", "bulk-actions", "pagination", "statistics", "switch-per-page", "filter-toggler", "load-more", "export-csv", "export-excel"].indexOf(this.type)',columnClassName:"no-grow w-3x p-t-xs",className:"m-l-none"}]},{name:"filterTogglable",type:"switch",label:"是否可显隐查询条件",mode:"inline",className:"block",visibleOn:"data.filter"},{name:"filterDefaultVisible",type:"switch",label:"查询条件默认是否可见",pipeIn:(0,d.defaultValue)(!0),mode:"inline",className:"block",visibleOn:"data.filter && data.filterTogglable"},{name:"hideQuickSaveBtn",label:"隐藏顶部快速保存提示",type:"switch",mode:"inline",className:"block"},{name:"alwaysShowPagination",label:"是否总是显示分页",type:"switch",mode:"inline",className:"block"},{name:"hideCheckToggler",type:"switch",label:"隐藏选择按钮",mode:"inline",className:"block",visibleOn:"data.checkOnItemClick"},(0,d.getSchemaTpl)("className"),(0,d.getSchemaTpl)("className",{name:"bodyClassName",label:"内容 CSS 类名"})]},{title:"其他",body:[(0,d.getSchemaTpl)("ref"),{name:"source",label:"数据源",type:"input-text",description:"不填写,默认读取接口返回的 items 或者 rows 属性,如果是别的,请在此设置,如: \\${xxxx}"},{name:"perPage",label:"每页数量",type:"input-number"},{name:"keepItemSelectionOnPageChange",label:"翻页时保留选择",type:"switch",mode:"inline",className:"block"},{name:"maxKeepItemSelectionLength",label:"最大选择数量",type:"input-number",mode:"inline",className:"block"},{name:"pageField",label:"页码字段名",type:"input-text",pipeIn:(0,d.defaultValue)("page")},{name:"perPageField",label:"分页步长字段名",type:"input-text",pipeIn:(0,d.defaultValue)("perPage")},{name:"orderField",label:"排序权重字段",type:"input-text",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"设置用来确定位置的字段名,设置后新的顺序将被赋值到该字段中。",placement:"left"}},{name:"perPageAvailable",label:"切换每页数",type:"input-array",hiddenOn:"data.loadDataOnce",items:{type:"input-number",required:!0},value:[10]},(0,d.getSchemaTpl)("name"),{name:"itemCheckableOn",type:"input-text",label:"配置单条可选中的表达式",description:"请使用 js 表达式,不设置的话每条都可选中。",visibleOn:"data.bulkActions && data.bulkActions.length || data.pickerMode"},{name:"checkOnItemClick",type:"switch",label:"开启单条点击整个区域选中",mode:"inline",className:"block",visibleOn:"data.bulkActions && data.bulkActions.length || data.pickerMode"},{name:"autoJumpToTopOnPagerChange",type:"switch",label:"自动跳顶部",mode:"inline",className:"block",description:"当切分页的时候,是否自动跳顶部"},{name:"syncResponse2Query",type:"switch",label:"同步查询条件",mode:"inline",className:"block",description:"查询后将返回的数据同步到查询条件上"}]}])},t.wrapperProps={affixHeader:!1},t}return a.__extends(t,e),t.prototype.addItem=function(e,t){e.find((function(e){return e.label===t.label}))||e.push(t)},t.prototype.handleBulkActionEdit=function(e,t){var n=this.manager.store,a=n.getSchema(e),r=null==a?void 0:a.bulkActions[t];r&&r.$$id&&n.setActiveId(r.$$id)},t.prototype.handleItemActionEdit=function(e,t){var n=this.manager.store,a=n.getSchema(e),r=null==a?void 0:a.itemActions[t];r&&r.$$id&&n.setActiveId(r.$$id)},t.prototype.buildSubRenderers=function(e,t){var n=this;if(n.name&&n.description)return{name:n.name,icon:n.icon,description:n.description,previewSchema:n.previewSchema,tags:n.tags,docLink:n.docLink,type:n.type,scaffold:n.scaffold,disabledRendererPlugin:n.disabledRendererPlugin,isBaseComponent:n.isBaseComponent,scaffoldForm:this.scaffoldForm,rendererName:n.rendererName}},t.prototype.getRendererInfo=function(t){var n=e.prototype.getRendererInfo.call(this,t);return n&&(n.scaffoldForm=this.scaffoldForm),n},t.prototype.renderEditableComponents=function(e){var t=e.render,n=e.bulkActions,r=e.itemActions,o=[];return Array.isArray(n)&&n.length&&o.push(l.default.createElement("div",{key:"bulkActions",className:"ae-EditableRender"},l.default.createElement("div",{className:"ae-EditableRender-title"},"批量操作"),l.default.createElement("div",{className:"ae-EditableRender-body"},n.map((function(e){return t("bulk-action",a.__assign({type:"button",size:"sm"},e),{key:e.$$id})}))))),Array.isArray(r)&&r.length&&o.push(l.default.createElement("div",{key:"itemActions",className:"ae-EditableRender"},l.default.createElement("div",{className:"ae-EditableRender-title"},"单条操作"),l.default.createElement("div",{className:"ae-EditableRender-body"},r.map((function(e){return t("bulk-action",a.__assign({type:"button",size:"sm"},e),{key:e.$$id})}))))),o.length?l.default.createElement("div",{className:"ae-EditableRenderers"},l.default.createElement("div",{className:"ae-EditableRenderers-tip"},"「增删改查」编辑辅助区"),o):null},t.prototype.renderRenderer=function(e){var t=e.$$editor.renderer;return l.default.createElement("div",{className:"ae-CRUDEditor"},this.renderEditableComponents(e),l.default.createElement(t.component,a.__assign({},e)))},t.prototype.filterProps=function(e){return e.pickerMode&&(e.options=e.data.options),e},t.prototype.afterUpdate=function(e){var t,n=this,a=e.context;a.info.plugin===this&&(null===(t=a.diff)||void 0===t?void 0:t.some((function(e){var t;return"mode"===(null===(t=e.path)||void 0===t?void 0:t.join("."))})))&&setTimeout((function(){n.manager.buildPanels(),n.manager.buildToolbars()}),20)},t}(u.BasePlugin);t.CRUDPlugin=v,(0,s.registerEditorPlugin)(v)},1663:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=a.__importDefault(n(8579)),d=n(5863),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="card",t.$schema="/schemas/CardSchema.json",t.name="卡片",t.isBaseComponent=!0,t.description="展示单个卡片。",t.docLink="/amis/zh-CN/components/card",t.tags=["展示"],t.icon="",t.scaffold={type:"card",header:{title:"标题",subTitle:"副标题"},body:"内容",actions:[{type:"button",label:"按钮",actionType:"dialog",dialog:{title:"标题",body:"内容"}}]},t.previewSchema=a.__assign({},t.scaffold),t.regions=[{key:"body",label:"内容区",renderMethod:"renderBody",preferTag:"展示"},{key:"actions",label:"按钮组",renderMethod:"renderActions",wrapperResolve:function(e){return e},preferTag:"按钮"}],t.panelTitle="卡片",t.panelBodyCreator=function(e){return[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:(0,u.default)([{children:o.default.createElement(r.Button,{size:"sm",className:"m-b-sm",level:"info",block:!0,onClick:function(){return t.manager.showRendererPanel("按钮","请从左侧组件面板中点击添加按钮元素")}},"新增按钮")},{children:o.default.createElement("div",null,o.default.createElement(r.Button,{block:!0,level:"primary",size:"sm",onClick:function(){return t.manager.showRendererPanel("展示","请从左侧组件面板中点击添加内容元素")}},"新增内容"))},{type:"divider"},{name:"header.title",type:"input-text",label:"标题",description:"支持模板语法如: \\${xxx}"},{name:"header.subTitle",type:"input-text",label:"副标题",description:"支持模板语法如: \\${xxx}"},{name:"header.avatar",type:"input-text",label:"图片地址",description:"支持模板语法如: \\${xxx}"},{name:"header.desc",type:"textarea",label:"描述",description:"支持模板语法如: \\${xxx}"},{name:"header.highlight",type:"input-text",label:"是否高亮表达式",description:"如: this.isOwner"}])},{title:"外观",body:[{type:"input-range",name:"actionsCount",pipeIn:(0,s.defaultValue)(4),min:1,max:10,step:1,label:"卡片一行最多能放按钮个数"},(0,s.getSchemaTpl)("className",{name:"titleClassName",label:"标题 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"highlightClassName",label:"高亮 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"subTitleClassName",label:"副标题 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"descClassName",label:"描述 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"avatarClassName",label:"图片外层 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"imageClassName",label:"图片 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"bodyClassName",label:"内容区 CSS 类名"}),(0,s.getSchemaTpl)("className")]},{title:"显隐",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("visible")]}])]},t.fieldWrapperResolve=function(e){return e},t.overrides={renderFeild:function(e,t,n,a){var r=this.super(e,t,n,a),i=this.props.$$editor;if(!i||!t.$$id)return r;var l=i.plugin,s=t.$$id;return o.default.createElement(d.VRenderer,{plugin:i.plugin,renderer:i.renderer,multifactor:!0,key:s,$schema:"/schemas/CardBodyField.json",hostId:i.id,memberIndex:n,name:"".concat("字段".concat(n+1)),id:s,draggable:!1,wrapperResolve:l.fieldWrapperResolve,schemaPath:"".concat(i.schemaPath,"/body/").concat(n),path:"".concat(this.props.$path,"/").concat(n),data:this.props.data},r)}},t.vRendererConfig={panelTitle:"字段",panelBodyCreator:function(e){return[(0,s.getSchemaTpl)("label"),(0,s.getSchemaTpl)("className",{name:"labelClassName",label:"Label CSS 类名",visibleOn:"this.label"})]}},t}return a.__extends(t,e),t.prototype.beforeInsert=function(e){var t,n,r,o,i=e.context;i.info.plugin!==this&&(null===(t=i.node.sameIdChild)||void 0===t?void 0:t.info.plugin)!==this||"body"!==i.region||(i.data=a.__assign(a.__assign({},i.data),{label:null!==(o=null!==(n=i.data.label)&&void 0!==n?n:null===(r=i.subRenderer)||void 0===r?void 0:r.name)&&void 0!==o?o:"列名称"}))},t}(l.BasePlugin);t.CardPlugin=c,(0,i.registerEditorPlugin)(c)},8863:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CardsPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=n(3570),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="cards",t.$schema="/schemas/CardsSchema.json",t.name="卡片列表",t.isBaseComponent=!0,t.description="功能类似于表格,但是用一个个小卡片来展示数据。当前组件需要配置数据源,不自带数据拉取,请优先使用 「CRUD」 组件。",t.docLink="/amis/zh-CN/components/cards",t.tags=["展示"],t.icon="fa fa-window-maximize",t.scaffold={type:"cards",data:{items:[{a:1,b:2},{a:3,b:4}]},columnsCount:2,card:{type:"card",className:"m-b-none",header:{title:"标题",subTitle:"副标题"},body:[{name:"a",label:"A"},{name:"b",label:"B"}],actions:[{label:"详情",type:"button"}]}},t.previewSchema=a.__assign(a.__assign({},t.scaffold),{className:"text-left "}),t.panelTitle="卡片集",t.panelBodyCreator=function(e){var n="crud"===e.schema.type;return[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{children:o.default.createElement("div",{className:"m-b"},o.default.createElement(r.Button,{level:"success",size:"sm",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置单项信息"))},{type:"divider"},{name:"title",type:"input-text",label:"标题"},{name:"href",type:"input-text",label:"打开外部链接"},n?null:{name:"source",type:"input-text",label:"数据源",pipeIn:(0,s.defaultValue)("${items}"),description:"绑定当前环境变量",test:!n},{name:"placeholder",value:"暂无数据",type:"input-text",label:"无数据提示"}]},{title:"外观",body:[{name:"showHeader",type:"switch",mode:"inline",className:"block",label:"是否显示头部",pipeIn:(0,s.defaultValue)(!0)},{name:"showFooter",type:"switch",mode:"inline",className:"block",label:"是否显示底部",pipeIn:(0,s.defaultValue)(!0)},(0,s.getSchemaTpl)("className",{label:"CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"headerClassName",label:"头部 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"footerClassName",label:"底部 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"itemsClassName",label:"内容 CSS 类名"}),(0,s.getSchemaTpl)("className",{pipeIn:(0,s.defaultValue)("Grid-col--sm6 Grid-col--md4 Grid-col--lg3"),name:"itemClassName",label:"卡片 CSS 类名"}),{name:"columnsCount",type:"input-range",visibleOn:"!this.leftFixed",min:0,max:12,step:1,label:"每行显示个数",description:"不设置时,由卡片 CSS 类名决定"},{name:"masonryLayout",type:"switch",mode:"inline",label:"启用瀑布流"}]},{title:"显隐",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),o=n.getValueOf(e);r&&o&&this.manager.openSubEditor({title:"配置成员渲染器",value:a.__assign({type:"card"},o.card),slot:{type:"container",body:"$$"},typeMutable:!1,onChange:function(e){e=a.__assign(a.__assign({},o),{card:e}),t.panelChangeValue(e,(0,u.diff)(o,e))},data:{item:"mocked data",index:0}})},t.prototype.buildEditorToolbar=function(e,t){var n=e.id,a=e.info,r=e.schema;("cards"===a.renderer.name||"crud"===a.renderer.name&&"cards"===r.mode)&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置成员渲染器",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id,a=e.schema,r=(e.region,e.info);e.selections.length||(null==r?void 0:r.plugin)!==this||("cards"===r.renderer.name||"crud"===r.renderer.name&&"cards"===a.mode)&&t.push("|",{label:"配置成员渲染器",onSelect:this.editDetail.bind(this,n)})},t.prototype.filterProps=function(e){var t=a.__assign(a.__assign({},e.defaultData),e.data),n=Array.isArray(e.value)?e.value:"string"==typeof e.source?(0,r.resolveVariable)(e.source,t):(0,r.resolveVariable)("items",t);Array.isArray(n)&&n.length||(e.value=(0,u.repeatArray)({id:666,title:"假数据",description:"假数据",a:"假数据",b:"假数据"},1).map((function(e,t){return a.__assign(a.__assign({},e),{id:t+1})})));var o=e.$schema,i=a.__rest(e,["$schema"]);return a.__assign(a.__assign({},(0,u.JSONPipeOut)(i)),{$schema:o})},t.prototype.getRendererInfo=function(t){var n,r=this,o=t.renderer,i=t.schema;return i.$$id||"crud"!==(null===(n=i.$$editor)||void 0===n?void 0:n.renderer.name)||"cards"!==o.name?e.prototype.getRendererInfo.call(this,t):a.__assign(a.__assign({},{id:i.$$editor.id}),{name:r.name,regions:r.regions,patchContainers:r.patchContainers,vRendererConfig:r.vRendererConfig,wrapperProps:r.wrapperProps,wrapperResolve:r.wrapperResolve,filterProps:r.filterProps,$schema:r.$schema,renderRenderer:r.renderRenderer})},t}(l.BasePlugin);t.CardsPlugin=d,(0,i.registerEditorPlugin)(d)},8395:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CarouselPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=n(6374),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="carousel",t.$schema="/schemas/CarouselSchema.json",t.name="轮播图",t.isBaseComponent=!0,t.description="用来渲染轮播图,可以配置每一页的内容(不只是图片),可以配置过渡动画。",t.docLink="/amis/zh-CN/components/carousel",t.tags=["展示"],t.icon="fa fa-images",t.scaffold={type:"carousel",options:[{image:(0,l.mockValue)({type:"image"})},{html:'
carousel data
'},{image:(0,l.mockValue)({type:"image"})}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="轮播图",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[t?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"

当前为字段内容节点配置,选择上层还有更多的配置。

"}:null,{type:"formula",name:"__mode",autoSet:!1,formula:"!this.name && !this.source && Array.isArray(this.options) ? 2 : 1"},{label:"数据源",name:"__mode",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",options:[{label:"关联字段",value:1},{label:"静态设置",value:2}]},{label:"字段名",name:"name",type:"input-text",description:"设置字段名,关联当前数据作用域中的数据。",visibleOn:"this.__mode == 1"},{type:"combo",name:"options",visibleOn:"this.__mode == 2",label:"轮播选项内容",multiple:!0,multiLine:!0,addable:!0,removable:!0,typeSwitchable:!1,conditions:[{label:"图片",test:'this.type === "image"',items:[(0,i.getSchemaTpl)("imageUrl",{name:"content"}),{type:"input-text",label:"图片标题",name:"title",visibleOn:'this.type == "image"'},(0,i.getSchemaTpl)("className",{label:"图片标题类名",name:"titleClassName",visibleOn:'this.type == "image"'}),{type:"textarea",label:"图片描述",name:"description",visibleOn:'this.type == "image"'},(0,i.getSchemaTpl)("className",{label:"图片描述类名",name:"descriptionClassName",visibleOn:'this.type == "image"'}),{type:"input-text",label:"打开外部链接",name:"href",visibleOn:'this.type == "image"'}],scaffold:{type:"input-image",image:""}},{label:"HTML",test:'this.type === "html"',items:[(0,i.getSchemaTpl)("richText",{label:"内容",name:"content"})],scaffold:{type:"html",content:"

html 片段

"}}],pipeIn:function(e){return Array.isArray(e)&&e.length?e.map((function(e){return e&&e.hasOwnProperty("html")?{type:"html",content:e.html}:{type:"image",content:e.image,title:e.title,titleClassName:e.titleClassName,description:e.description,descriptionClassName:e.descriptionClassName}})):[]},pipeOut:function(e,t,n){return Array.isArray(e)&&e.length?e.map((function(e){return"html"===e.type?{html:e.content}:{image:e.content,title:e.title,titleClassName:e.titleClassName,description:e.description,descriptionClassName:e.descriptionClassName}})):[]}}]},{title:"外观",body:[{name:"auto",type:"switch",mode:"inline",className:"w-full",label:"自动轮播",pipeIn:(0,i.defaultValue)(!0)},{name:"interval",type:"input-range",label:"动画间隔",min:1,max:100,step:1,unit:"s",pipeIn:function(e){return(null!=e?e:3e3)/1e3},pipeOut:function(e,t,n){return 1e3*e}},{name:"duration",type:"input-range",label:"动画时长",min:100,max:2e3,step:10,pipeIn:(0,i.defaultValue)(500),unit:"ms"},{name:"animation",label:"动画效果",type:"button-group-select",mode:"inline",className:"w-full",size:"sm",pipeIn:(0,i.defaultValue)("fade"),options:[{label:"fade",value:"fade"},{label:"slide",value:"slide"}]},{name:"controlsTheme",label:"控制按钮主题",type:"button-group-select",size:"sm",pipeIn:(0,i.defaultValue)("light"),mode:"inline",className:"w-full",options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]},{name:"controls",label:"控制显示",type:"button-group-select",size:"sm",mode:"inline",className:"w-full",pipeIn:(0,i.defaultValue)("dots,arrows"),multiple:!0,options:[{label:"底部圆点",value:"dots"},{label:"左右箭头",value:"arrows"}]},{name:"width",type:"input-text",label:"宽度",validations:"isNumeric",addOn:{type:"button",label:"px"}},{name:"height",type:"input-text",label:"高度",validations:"isNumeric",addOn:{type:"button",label:"px"}},(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t.prototype.filterProps=function(e){return e.auto=!1,e},t.prototype.buildEditorToolbar=function(e,t){if(e.info.plugin===this&&"carousel"===e.info.renderer.name&&!e.info.hostId){var n=e.node;t.push({level:"secondary",icon:"fa fa-chevron-left",tooltip:"上个卡片",onClick:function(){var e,t=n.getComponent();null===(e=null==t?void 0:t.prev)||void 0===e||e.call(t)}}),t.push({level:"secondary",icon:"fa fa-chevron-right",tooltip:"下个卡片",onClick:function(){var e,t=n.getComponent();null===(e=null==t?void 0:t.next)||void 0===e||e.call(t)}})}},t}(o.BasePlugin);t.CarouselPlugin=s,(0,r.registerEditorPlugin)(s)},9065:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChartPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=n(3570),d=a.__importDefault(n(3017)),c=function(e){var t=e.value,n=e.onChange;return o.default.createElement("div",{className:"ae-JsonEditor"},o.default.createElement(d.default,{value:t,onChange:n}))},p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="chart",t.$schema="/schemas/ChartSchema.json",t.name="图表",t.isBaseComponent=!0,t.description="用来渲染图表,基于 echarts 图表库,理论上 echarts 所有图表类型都支持。",t.docLink="/amis/zh-CN/components/chart",t.tags=["展示"],t.icon="fa fa-pie-chart",t.scaffold={type:"chart",config:{xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[820,932,901,934,1290,1330,1320],type:"line"}]},replaceChartOption:!0},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="图表",t.panelBodyCreator=function(e){return[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[(0,s.getSchemaTpl)("api",{label:"接口拉取",description:"接口可以返回配置,或者数据,建议返回数据可映射到 Echarts 配置中"}),{label:"初始是否拉取",type:"switch",name:"initFetch",visibleOn:"data.api",pipeIn:(0,s.defaultValue)(!0),mode:"inline",className:"block"},{name:"interval",label:"定时刷新间隔",type:"input-number",step:500,visibleOn:"data.api",description:"设置后将自动定时刷新,最小3000, 单位 ms"},{name:"config",asFormItem:!0,component:c,label:"Echarts 配置",description:"支持数据映射,可将接口返回的数据填充进来"},{name:"clickAction",asFormItem:!0,children:function(n){var a=n.onChange,i=n.value;return o.default.createElement("div",{className:"m-b"},o.default.createElement(r.Button,{size:"sm",level:i?"danger":"info",onClick:t.editDrillDown.bind(t,e.id)},"配置 DrillDown"),i?o.default.createElement(r.Button,{size:"sm",level:"link",className:"m-l",onClick:function(){return a("")}},"删除 DrillDown"):null)}},{name:"dataFilter",type:"js-editor",allowFullscreen:!0,label:"数据加工",size:"lg",description:"\n 如果后端没有直接返回 Echart 配置,可以自己写一段函数来包装。\n

签名:(config, echarts, data) => config

\n

参数说明

\n
    \n
  • config 原始数据
  • \n
  • echarts echarts 对象
  • \n
  • data 如果配置了数据接口,接口返回的数据通过此变量传入
  • \n
\n

示例

\n
debugger; // 可以浏览器中断点调试\n\n// 查看原始数据\nconsole.log(config)\n\n// 返回新的结果 \nreturn {}
\n "},{label:"Chart 配置完全替换?",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"默认为追加模式,新的配置会跟旧的配置合并,如果勾选将直接完全覆盖。",placement:"left"},name:"replaceChartOption",type:"switch",mode:"inline",className:"block"}]},{title:"外观",body:[(0,s.getSchemaTpl)("className")]},{title:"显隐",body:[(0,s.getSchemaTpl)("visible")]},{title:"其他",body:[(0,s.getSchemaTpl)("name")]}])]},t}return a.__extends(t,e),t.prototype.editDrillDown=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),o=n.getValueOf(e),i=o.clickAction&&o.clickAction.dialog||{title:"标题",body:["

内容 ${value|json}

"]};r&&o&&this.manager.openSubEditor({title:"配置 DrillDown 详情",value:a.__assign({type:"container"},i),slot:{type:"container",body:"$$"},typeMutable:!1,onChange:function(e){e=a.__assign(a.__assign({},o),{clickAction:{actionType:"dialog",dialog:e}}),t.panelChangeValue(e,(0,u.diff)(o,e))}})},t}(l.BasePlugin);t.ChartPlugin=p,(0,i.registerEditorPlugin)(p)},7991:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CodeViewPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="code",t.$schema="/schemas/CodeSchema.json",t.name="代码高亮",t.isBaseComponent=!0,t.icon="fa fa-code",t.description="代码高亮",t.docLink="/amis/zh-CN/components/code",t.tags=["展示"],t.scaffold={type:"code",language:"html",value:"
html
"},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="代码高亮",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"input-text",label:"名称",name:"name"},{type:"editor",label:"固定值",allowFullscreen:!0,name:"value"}]},{title:"外观",body:[(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t}(o.BasePlugin);t.CodeViewPlugin=l,(0,r.registerEditorPlugin)(l)},6469:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CollapsePlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="collapse",t.$schema="/schemas/CollapseSchema.json",t.name="折叠器",t.isBaseComponent=!0,t.description="折叠器,可以将内容区展开或隐藏,保持页面的整洁",t.docLink="/amis/zh-CN/components/collapse",t.tags=["展示"],t.icon="fa fa-window-minimize",t.scaffold={type:"collapse",header:"标题",body:[{type:"tpl",tpl:"内容",inline:!1}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="折叠器",t.panelBodyCreator=function(e){var t,n;return(0,i.getSchemaTpl)("tabs",[{title:"属性",body:[{name:"header",label:"标题",type:"input-text",pipeIn:(0,i.defaultValue)((null===(t=null==e?void 0:e.schema)||void 0===t?void 0:t.title)||(null===(n=null==e?void 0:e.schema)||void 0===n?void 0:n.header)||""),onChange:function(e,t,n,a){a.setValueByName("header",e),a.setValueByName("title",void 0)}},{name:"collapseHeader",label:"展开标题",type:"input-text",description:"折叠器处于展开状态时的标题"},{name:"headerPosition",label:"标题展示位置",type:"button-group-select",size:"sm",pipeIn:(0,i.defaultValue)("top"),options:[{label:"顶部",value:"top",icon:"fa fa-arrow-up"},{label:"底部",value:"bottom",icon:"fa fa-arrow-down"}]},{name:"key",label:"标识符",type:"input-text",description:"折叠器key,主要用于设置默认展开状态"},{name:"showArrow",label:"显示箭头",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse",type:"switch",pipeIn:(0,i.defaultValue)(!0)},{name:"collapsable",type:"switch",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse",label:"可折叠",pipeIn:(0,i.defaultValue)(!0)},{name:"collapsed",type:"switch",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse",label:"默认折叠"}]},{title:"外观",body:[(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("className",{name:"headingClassName",label:"标题 CSS 类名"}),(0,i.getSchemaTpl)("className",{name:"bodyClassName",label:"内容 CSS 类名"})]},{title:"状态",body:[(0,i.getSchemaTpl)("disabled"),(0,i.getSchemaTpl)("visible")]}])},t.regions=[{key:"body",label:"内容区"}],t}return a.__extends(t,e),t}(o.BasePlugin);t.CollapsePlugin=l,(0,r.registerEditorPlugin)(l)},9544:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CollapseGroupPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="collapse-group",t.$schema="/schemas/CollapseGroupSchema.json",t.name="折叠面板",t.isBaseComponent=!0,t.description="折叠面板,当信息量较大且分类较多时,可使用折叠面板进行分类收纳。",t.tags=["展示","容器"],t.icon="fa fa-align-justify",t.scaffold={type:"collapse-group",activeKey:["1"],body:[{type:"collapse",key:"1",header:"标题1",body:[{type:"tpl",tpl:"这里是内容1",inline:!1}]},{type:"collapse",key:"2",header:"标题2",body:[{type:"tpl",tpl:"这里是内容1",inline:!1}]}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="折叠面板",t.panelBodyCreator=function(e){var t,n,a=Array.isArray(null===(t=null==e?void 0:e.schema)||void 0===t?void 0:t.body)?null===(n=null==e?void 0:e.schema)||void 0===n?void 0:n.body.filter((function(e){return"collapse"===e.type&&null!=e.key})):[];return[(0,i.getSchemaTpl)("tabs",[{title:"属性",body:[{name:"activeKey",label:"默认展开面板",type:"input-tag",clearable:!0,joinValues:!1,extractValue:!0,options:a.map((function(e){return e.key}))},{name:"expandIconPosition",label:"图标位置",type:"button-group-select",pipeIn:(0,i.defaultValue)("left"),options:[{label:"左边",value:"left",icon:"fa fa-align-left"},{label:"右边",value:"right",icon:"fa fa-align-right"}]},{name:"accordion",label:"手风琴模式",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse",type:"switch",description:"手风琴模式,只允许单个面板展开",pipeIn:(0,i.defaultValue)(!1)},{name:"body",type:"combo",label:"面板管理",multiple:!0,addable:!0,addButtonText:"新增折叠器",minLength:1,draggable:!0,draggableTip:"",placeholder:"请添加折叠器",items:[{name:"header",placeholder:"标题",type:"input-text"},{name:"key",placeholder:"标识符",type:"input-text",size:"xs",unique:!0}],scaffold:{type:"collapse",header:"标题",body:[{type:"tpl",tpl:"内容",inline:!1}],key:""}}]},{title:"外观",body:[(0,i.getSchemaTpl)("className")]}])]},t.regions=[{key:"body",label:"内容区",renderMethod:"render",insertPosition:"inner"}],t}return a.__extends(t,e),t}(o.BasePlugin);t.CollapseGroupPlugin=l,(0,r.registerEditorPlugin)(l)},9344:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="container",t.$schema="/schemas/ContainerSchema.json",t.name="容器",t.isBaseComponent=!0,t.description="一个简单的容器,可以将多个渲染器放置在一起。",t.tags=["容器"],t.icon="fa fa-square-o",t.scaffold={type:"container",body:"内容"},t.previewSchema=a.__assign({},t.scaffold),t.regions=[{key:"body",label:"内容区"}],t.panelTitle="容器",t.panelBodyCreator=function(e){return[(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("style")]},t}return a.__extends(t,e),t}(o.BasePlugin);t.ContainerPlugin=l,(0,r.registerEditorPlugin)(l)},6760:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="custom",t.$schema="/schemas/CustomSchema.json",t.name="自定义代码",t.isBaseComponent=!0,t.description="通过内嵌代码来实现功能",t.tags=["功能"],t.icon="fa fa-gears",t.docLink="/amis/zh-CN/components/custom",t.scaffold={type:"custom",html:"

hello, world!

",onMount:"\n const button = document.createElement('button');\n button.innerText = '点击修改姓名';\n button.onclick = event => {\n event.preventDefault();\n };\n dom.appendChild(button);"},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="自定义代码",t.panelBody=[(0,i.getSchemaTpl)("fieldSet",{title:"HTML 内容",body:[{label:"HTML 内容",name:"html",type:"editor",allowFullscreen:!0}]}),(0,i.getSchemaTpl)("fieldSet",{title:"onMount",body:[{name:"onMount",type:"editor",allowFullscreen:!0,size:"xxl",label:"onMount 代码",options:{lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}}]}),(0,i.getSchemaTpl)("fieldSet",{title:"onUpdate",body:[{name:"onUpdate",type:"editor",allowFullscreen:!0,size:"xxl",label:"onUpdate 代码"}]}),(0,i.getSchemaTpl)("fieldSet",{title:"onUnmount",body:[{name:"onUnmount",type:"editor",allowFullscreen:!0,size:"xxl",label:"onUnmount 代码"}]})],t}return a.__extends(t,e),t.prototype.buildSubRenderers=function(t,n){var a=e.prototype.buildSubRenderers.apply(this,arguments);return a.scaffold.onMount="\n const button = document.createElement('button');\n button.innerText = '点击修改姓名ddd';\n button.onclick = event => {\n onChange('new name');\n event.preventDefault();\n };\n dom.appendChild(button);",a},t}(o.BasePlugin);t.CustomPlugin=l,(0,r.registerEditorPlugin)(l)},8134:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=n(6517),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="custom",t.$schema="/schemas/CustomSchema.json",t.name="自定义容器",t.isBaseComponent=!0,t.disabledRendererPlugin=!0,t.description="通过自定义代码来实现容器组件",t.docLink="/amis/zh-CN/components/custom",t.tags=["功能","容器"],t.icon="fa fa-gears",t.scaffold={type:"custom",html:'
\n

hello, world!

\n
自定义容器区域
\n
',onMount:"this.renderChild('body', props.body, document.getElementById('customBox'));",body:[{type:"tpl",tpl:"

自定义容器区域

"}]},t.previewSchema=a.__assign({},t.scaffold),t.regions=[{key:"body",label:"内容区"}],t.panelTitle="自定义代码",t.panelBody=[(0,i.getSchemaTpl)("fieldSet",{title:"HTML 内容",body:[{label:"HTML 内容",name:"html",type:"editor",allowFullscreen:!0}]}),(0,i.getSchemaTpl)("fieldSet",{title:"onMount",body:[{name:"onMount",type:"editor",allowFullscreen:!0,size:"xxl",label:"onMount 代码",options:{lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,lineNumbersMinChars:0}}]}),(0,i.getSchemaTpl)("fieldSet",{title:"onUpdate",body:[{name:"onUpdate",type:"editor",allowFullscreen:!0,size:"xxl",label:"onUpdate 代码"}]}),(0,i.getSchemaTpl)("fieldSet",{title:"onUnmount",body:[{name:"onUnmount",type:"editor",allowFullscreen:!0,size:"xxl",label:"onUnmount 代码"}]})],t}return a.__extends(t,e),t.prototype.getRendererInfo=function(e){var t=this,n=e.renderer,a=e.schema;if(a.$$id&&t.name&&t.rendererName&&t.rendererName===n.name){var r=t.regions;return!r&&a&&a.body&&(0,l.isArray)(a.body)&&(r=[{key:"body",label:"自定义容器区"}]),{name:t.name,regions:r,patchContainers:t.patchContainers,vRendererConfig:t.vRendererConfig,wrapperProps:t.wrapperProps,wrapperResolve:t.wrapperResolve,filterProps:t.filterProps,$schema:t.$schema,renderRenderer:t.renderRenderer,multifactor:t.multifactor,scaffoldForm:t.scaffoldForm,disabledRendererPlugin:t.disabledRendererPlugin,isBaseComponent:t.isBaseComponent,rendererName:t.rendererName}}},t}(o.BasePlugin);t.CustomPlugin=s,(0,r.registerEditorPlugin)(s)},2585:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatePlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="date",t.$schema="/schemas/DateSchema.json",t.name="日期展示",t.isBaseComponent=!0,t.description="主要用来关联字段名做日期展示,支持各种格式如:X(时间戳),YYYY-MM-DD HH:mm:ss。",t.tags=["展示"],t.icon="fa fa-calendar",t.scaffold={type:"date",value:Math.round(Date.now()/1e3)},t.previewSchema=a.__assign(a.__assign({},t.scaffold),{format:"YYYY-MM-DD",value:Math.round(Date.now()/1e3)}),t.panelTitle="日期展示",t.panelBodyCreator=function(e){return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"input-date",name:"value",label:"日期数值"},{type:"input-text",name:"format",label:"显示日期格式",description:"请参考 moment 中的格式用法。",pipeIn:(0,i.defaultValue)("YYYY-MM-DD")},{type:"input-text",name:"valueFormat",label:"数据日期格式",description:"请参考 moment 中的格式用法。",pipeIn:(0,i.defaultValue)("X")},{name:"placeholder",type:"input-text",pipeIn:(0,i.defaultValue)("-"),label:"占位符"}]},{title:"外观",body:[(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t}(o.BasePlugin);t.DatePlugin=l,(0,r.registerEditorPlugin)(l)},6721:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatetimePlugin=void 0;var a=n(752),r=n(9756),o=n(9547),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="datetime",t.scaffold={type:"datetime",value:Math.round(Date.now()/1e3)},t.name="日期时间展示",t.isBaseComponent=!0,t.previewSchema=a.__assign(a.__assign({},t.scaffold),{format:"YYYY-MM-DD HH:mm:ss",value:Math.round(Date.now()/1e3)}),t.panelBodyCreator=function(e){return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"input-datetime",name:"value",label:"日期时间数值"},{type:"input-text",name:"format",label:"显示日期时间格式",description:"请参考 moment 中的格式用法。",pipeIn:(0,o.defaultValue)("YYYY-MM-DD HH:mm:ss")},{type:"input-text",name:"valueFormat",label:"数据日期格式",description:"请参考 moment 中的格式用法。",pipeIn:(0,o.defaultValue)("X")},{name:"placeholder",type:"input-text",pipeIn:(0,o.defaultValue)("-"),label:"占位符"}]},{title:"外观",body:[(0,o.getSchemaTpl)("className")]},{title:"显隐",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t}(n(2585).DatePlugin);t.DatetimePlugin=i,(0,r.registerEditorPlugin)(i)},9475:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InlineModal=t.DialogPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(9756),i=n(9933),l=n(9547),s=n(3570),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="dialog",t.$schema="/schemas/DialogSchema.json",t.name="弹框",t.isBaseComponent=!0,t.wrapperProps={wrapperComponent:d,onClose:s.noop,show:!0},t.regions=[{key:"body",label:"内容区",renderMethod:"renderBody",renderMethodOverride:function(e,t){return function(){for(var n=[],a=0;a当没开启数据映射时,弹框中默认会拥有触发打开弹框按钮所在环境的所有数据。

'},{type:"input-kv",syncDefaultValue:!1,name:"data",visibleOn:"this.data",descriptionClassName:"help-block text-xs m-b-none",description:'

当开启数据映射时,弹框中的数据只会包含设置的部分,请绑定数据。如:{"a": "\\${a}", "b": 2}

如果希望在默认的基础上定制,请先添加一个 Key 为 `&` Value 为 `\\$$` 作为第一行。

当值为 __undefined时,表示删除对应的字段,可以结合{"&": "\\$$"}来达到黑名单效果。
',messages:{validateFailed:"数据映射中存在错误,请仔细检查"}},{label:"按 Esc 关闭弹框",type:"switch",name:"closeOnEsc",mode:"inline",className:"block",value:!1},{label:"点击弹框外区域关闭弹框",type:"switch",name:"closeOnOutside",mode:"inline",className:"block",value:!1}]},{title:"外观",body:[{label:"尺寸",type:"button-group-select",name:"size",size:"sm",className:"block",pipeIn:(0,l.defaultValue)(""),options:[{label:"小",value:"sm"},{label:"默认",value:""},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"超大",value:"xl"}]},{label:"是否显示关闭按钮",type:"switch",name:"showCloseButton",mode:"inline",className:"block",value:!0},(0,l.getSchemaTpl)("className",{name:"headerClassName",label:"顶部 CSS 类名"}),(0,l.getSchemaTpl)("className",{name:"bodyClassName",label:"内容 CSS 类名"})]}])],t}return a.__extends(t,e),t.prototype.buildSubRenderers=function(){},t}(i.BasePlugin);t.DialogPlugin=u,(0,o.registerEditorPlugin)(u);var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.componentDidMount=function(){},t.prototype.render=function(){var e=this.props.children;return r.default.createElement("div",{className:"ae-InlineModel"},e)},t}(r.default.Component);t.InlineModal=d},8835:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DividerPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="divider",t.$schema="/schemas/DividerSchema.json",t.name="分隔线",t.isBaseComponent=!0,t.icon="fa fa-minus",t.description="用来展示一个分割线,可用来做视觉上的隔离。",t.scaffold={type:"divider"},t.previewSchema={type:"divider",className:"m-t-none m-b-none"},t.panelTitle="分隔线",t.panelBody=(0,i.getSchemaTpl)("tabs",[{title:"外观",body:[(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}]),t}return a.__extends(t,e),t}(o.BasePlugin);t.DividerPlugin=l,(0,r.registerEditorPlugin)(l)},4093:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=n(3570),s=n(9475),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="drawer",t.$schema="/schemas/DrawerSchema.json",t.name="抽屉式弹框",t.isBaseComponent=!0,t.wrapperProps={wrapperComponent:s.InlineModal,onClose:l.noop,resizable:!1,show:!0},t.regions=[{key:"body",label:"内容区",renderMethod:"renderBody",renderMethodOverride:function(e,t){return function(){for(var n=[],a=0;a当没开启数据映射时,弹框中默认会拥有触发打开弹框按钮所在环境的所有数据。

'},{type:"input-kv",syncDefaultValue:!1,name:"data",visibleOn:"this.data",descriptionClassName:"help-block text-xs m-b-none",description:'

当开启数据映射时,弹框中的数据只会包含设置的部分,请绑定数据。如:{"a": "\\${a}", "b": 2}

如果希望在默认的基础上定制,请先添加一个 Key 为 `&` Value 为 `\\$$` 作为第一行。

当值为 __undefined时,表示删除对应的字段,可以结合{"&": "\\$$"}来达到黑名单效果。
'},{type:"switch",name:"closeOnOutside",label:"点击外部关闭弹框",mode:"inline",className:"block"},{label:"按 Esc 可关闭?",type:"switch",name:"closeOnEsc",mode:"inline",className:"block"}]},{title:"外观",body:[{label:"尺寸",type:"button-group-select",name:"size",size:"sm",mode:"inline",className:"block",options:[{label:"超小",value:"xs"},{label:"小",value:"sm"},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"超大",value:"xl"}]},{type:"switch",name:"overlay",label:"是否显示蒙层",mode:"inline",className:"block",pipeIn:(0,i.defaultValue)(!0)},{type:"switch",name:"resizable",label:"可拉拽",mode:"inline",className:"block",pipeIn:(0,i.defaultValue)(!1),description:"定义弹框是否可拉拽调整大小"},(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("className",{label:"bodyClassName 类名",name:"bodyClassName"})]}])],t}return a.__extends(t,e),t.prototype.buildSubRenderers=function(){},t}(o.BasePlugin);t.DrawerPlugin=u,(0,r.registerEditorPlugin)(u)},9691:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DropDownButtonPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=n(3570),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="dropdown-button",t.$schema="/schemas/DropdownButtonSchema.json",t.name="下拉按钮",t.isBaseComponent=!0,t.description="下拉按钮,更多的按钮通过点击后展示开来。",t.tags=["按钮"],t.icon="fa fa-chevron-down",t.docLink="/amis/zh-CN/components/dropdown-button",t.scaffold={type:"dropdown-button",label:"下拉按钮",buttons:[{type:"button",label:"按钮1",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}},{type:"button",label:"按钮2",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="下拉按钮",t.panelBodyCreator=function(e){return(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{children:o.default.createElement(r.Button,{level:"info",size:"sm",className:"m-b-sm",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置下拉按钮集合")},{label:"名称",type:"input-text",name:"label"},{name:"trigger",label:"触发方式",type:"button-group-select",pipeIn:(0,s.defaultValue)("click"),options:[{label:"点击",value:"click"},{label:"鼠标经过",value:"hover"}]},{name:"closeOnOutside",label:"点击外部关闭",type:"switch",mode:"inline",className:"block",pipeIn:(0,s.defaultValue)(!0)},{name:"closeOnClick",label:"点击内容关闭",type:"switch",mode:"inline",className:"block"},(0,s.getSchemaTpl)("icon"),(0,s.getSchemaTpl)("icon",{name:"rightIcon",label:"右侧图标"})]},{title:"外观",body:[(0,s.getSchemaTpl)("size"),{label:"展示样式",type:"button-group-select",size:"xs",name:"level",btnActiveClassName:"active",clearable:!1,options:[{label:"默认",value:"default",level:"default"},{label:"无",value:"link",level:"link"},{label:"主色",value:"primary",level:"primary"},{label:"提示",value:"info",level:"info"},{label:"成功",value:"success",level:"success"},{label:"警告",value:"warning",level:"warning"},{label:"严重",value:"danger",level:"danger"}]},(0,s.getSchemaTpl)("className")]},{title:"显隐",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("disabled"),(0,s.getSchemaTpl)("visible")]}])},t}return a.__extends(t,e),t.prototype.buildEditorToolbar=function(e,t){var n=e.id;"dropdown-button"===e.info.renderer.name&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置下拉按钮集合",onClick:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),o=n.getValueOf(e);r&&o&&this.manager.openSubEditor({title:"配置下拉按钮集合",value:o.buttons,slot:{type:"button-group",buttons:"$$",block:!0},onChange:function(e){e=a.__assign(a.__assign({},o),{buttons:e}),t.panelChangeValue(e,(0,u.diff)(o,e))}})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id,a=(e.schema,e.region,e.info);e.selections.length||(null==a?void 0:a.plugin)!==this||"dropdown-button"===a.renderer.name&&t.push("|",{label:"配置下拉按钮集合",onSelect:this.editDetail.bind(this,n)})},t.prototype.filterProps=function(e){return e.trigger="click",e},t}(l.BasePlugin);t.DropDownButtonPlugin=d,(0,i.registerEditorPlugin)(d)},9596:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EachPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=n(3570),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="each",t.$schema="/schemas/EachSchema.json",t.name="循环 Each",t.isBaseComponent=!0,t.description="功能渲染器,可以基于现有变量循环输出渲染器。",t.tags=["功能"],t.icon="fa fa-repeat",t.scaffold={type:"each",name:"arr",items:{type:"tpl",tpl:"<%= data.index + 1 %>. 内容:<%= data.item %>",inline:!1}},t.previewSchema=a.__assign(a.__assign({},t.scaffold),{value:["a","b","c"]}),t.panelTitle="循环",t.panelBodyCreator=function(e){return[{type:"input-text",name:"name",label:"关联字段",placeholder:"varname",description:"如果所在容器有下发 value 则不需要配置,如果没有请配置变量名,支持多层级如:a.b,表示关联a对象下的b属性。目标变量可以是数组,也可以是对象。"},{children:o.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置成员渲染器")},{name:"placeholder",type:"input-text",label:"占位符",pipeIn:(0,s.defaultValue)("暂无内容"),description:"当没有关联变量,或者目标变量不是数组或者对象时显示此占位信息"},(0,s.getSchemaTpl)("className")]},t}return a.__extends(t,e),t.prototype.filterProps=function(e){return(e=(0,u.JSONPipeOut)(e)).value||(e.value=[{item:"mocked data"}]),e},t.prototype.buildEditorToolbar=function(e,t){var n=e.id;"each"===e.info.renderer.name&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置成员渲染器",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id,a=(e.schema,e.region,e.info);e.selections.length||(null==a?void 0:a.plugin)!==this||"each"===a.renderer.name&&t.push("|",{label:"配置成员渲染器",onSelect:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),o=n.getValueOf(e);r&&o&&this.manager.openSubEditor({title:"配置成员渲染器",value:o.items,slot:{type:"container",body:"$$"},typeMutable:!0,onChange:function(e){e=a.__assign(a.__assign({},o),{items:e}),t.panelChangeValue(e,(0,u.diff)(o,e))},data:{item:"mocked data",index:0}})},t}(l.BasePlugin);t.EachPlugin=d,(0,i.registerEditorPlugin)(d)},5707:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorRendererPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t.rendererName="error",t.name="Error",t.isBaseComponent=!0,t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.ErrorRendererPlugin=o,(0,r.registerEditorPlugin)(o)},6397:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FlexPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="flex",t.$schema="/schemas/FlexSchema.json",t.disabledRendererPlugin=!0,t.name="Flex 布局",t.isBaseComponent=!0,t.icon="fa fa-columns",t.description="flex 布局",t.docLink="/amis/zh-CN/components/flex",t.tags=["容器"],t.scaffold={type:"flex",items:[{type:"wrapper",body:"第一列"},{type:"wrapper",body:"第二列"},{type:"wrapper",body:"第三列"}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="Flex",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"items",label:"内容集合",type:"combo",scaffold:{type:"wrapper",body:"子节点内容"},minLength:2,multiple:!0,draggableTip:"",items:[{type:"tpl",tpl:'子节点${index | plus}'}]},{name:"justify",type:"select",value:"center",label:"子节点水平分布方式",options:["start","flex-start","center","end","flex-end","space-around","space-between","space-evenly"]},{name:"alignItems",type:"select",value:"center",label:"子节点垂直方向位置",options:["stretch","start","flex-start","flex-end","end","center","baseline"]},{name:"direction",type:"radios",label:"布局方向",value:"column",inline:!0,options:[{label:"水平",value:"row"},{label:"垂直",value:"column"}]}]},{title:"外观",body:[(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("style")]},{title:"显隐",body:[(0,i.getSchemaTpl)("visible")]}])],t.regions=[{key:"items",label:"子节点集合",renderMethod:"render",dndMode:"position-h"}],t}return a.__extends(t,e),t.prototype.afterResolveJsonSchema=function(e){var t,n,a=null===(t=e.context.node.parent)||void 0===t?void 0:t.host;(null===(n=null==a?void 0:a.info)||void 0===n?void 0:n.plugin)===this&&e.setData("/schemas/FlexColumn.json")},t}(o.BasePlugin);t.FlexPlugin=l,(0,r.registerEditorPlugin)(l)},4891:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroupControlPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="button-group-select",t.$schema="/schemas/ButtonGroupControlSchema.json",t.name="按钮点选",t.isBaseComponent=!0,t.icon="fa fa-object-group",t.description="用来展示多个按钮,视觉上会作为一个整体呈现,同时可以作为表单项选项选择器来用。",t.docLink="/amis/zh-CN/components/button-group",t.tags=["按钮"],t.scaffold={type:"button-group-select",name:"a",options:[{label:"选项1",value:"a"},{label:"选项2",value:"b"}]},t.previewSchema={type:"form",wrapWithPanel:!1,mode:"horizontal",body:a.__assign(a.__assign({},t.scaffold),{value:"a",label:"按钮组",description:"按钮组可以当选项用。"})},t.panelTitle="按钮组",t.panelBody=[(0,i.getSchemaTpl)("switchDefaultValue",{visibleOn:"!this.defaultCheckAll"}),{type:"button-group-select",name:"value",label:"默认值",source:"${options}",visibleOn:'typeof this.value !== "undefined"',multiple:!0},(0,i.getSchemaTpl)("options"),(0,i.getSchemaTpl)("source"),(0,i.getSchemaTpl)("multiple"),(0,i.getSchemaTpl)("joinValues",{visibleOn:!0}),(0,i.getSchemaTpl)("delimiter",{hiddenOn:"this.joinValues === false"}),(0,i.getSchemaTpl)("extractValue"),(0,i.getSchemaTpl)("autoFill")],t}return a.__extends(t,e),t}(o.BasePlugin);t.ButtonGroupControlPlugin=l,(0,r.registerEditorPlugin)(l)},2165:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonToolbarControlPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="button-toolbar",t.$schema="/schemas/ButtonToolbarControlSchema.json",t.name="按钮工具栏",t.isBaseComponent=!0,t.icon="fa fa-ellipsis-h",t.description="可以用来放置多个按钮或者按钮组,按钮之间会存在一定的间隔",t.docLink="/amis/zh-CN/components/form/button-toolbar",t.tags=["表单项","按钮"],t.scaffold={type:"button-toolbar",buttons:[{type:"button",label:"按钮1",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}},{type:"button",label:"按钮2",actionType:"dialog",dialog:{title:"系统提示",body:"对你点击了"}}]},t.previewSchema={type:"form",wrapWithPanel:!1,mode:"horizontal",body:a.__assign(a.__assign({},t.scaffold),{label:"按钮工具栏"})},t.regions=[{key:"buttons",label:"按钮集合",preferTag:"按钮",renderMethod:"renderButtons"}],t.panelTitle="工具栏",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[(0,i.getSchemaTpl)("label"),(0,i.getSchemaTpl)("description"),(0,i.getSchemaTpl)("remark"),(0,i.getSchemaTpl)("labelRemark")]},{title:"外观",body:[(0,i.getSchemaTpl)("formItemMode"),(0,i.getSchemaTpl)("horizontalMode"),(0,i.getSchemaTpl)("horizontal",{label:"",visibleOn:'(data.$$formMode == "horizontal" || data.mode == "horizontal") && data.label !== false && data.horizontal'}),(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("className",{label:"Label CSS 类名",name:"labelClassName"}),(0,i.getSchemaTpl)("className",{label:"Input CSS 类名",name:"inputClassName"}),(0,i.getSchemaTpl)("className",{label:"描述 CSS 类名",name:"descriptionClassName",visibleOn:"data.description"})]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t}(o.BasePlugin);t.ButtonToolbarControlPlugin=l,(0,r.registerEditorPlugin)(l)},6982:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChainedSelectControlPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="chained-select",t.$schema="/schemas/ChainedSelectControlSchema.json",t.name="级联下拉框",t.isBaseComponent=!0,t.icon="fa fa-th-list",t.description="通过source拉取选项,只要有返回结果,就可以无限级别增加",t.docLink="/amis/zh-CN/components/form/chain-select",t.tags=["表单项"],t.scaffold={type:"chained-select",label:"级联选择",name:"chained-select"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:a.__assign({},t.scaffold)},t.panelTitle="级联选择",t.panelBody=[(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',description:"请填入选项 Options 中 value 值"},(0,i.getSchemaTpl)("api",{name:"source",label:"获取选项接口",description:"
可用变量说明
    \n
  • value当前值
  • \n
  • level拉取级别,从 1开始。
  • \n
  • parentId上一层选中的 value
  • \n
  • parent上一层选中选项,包含 labelvalue 的值。
  • \n
"}),(0,i.getSchemaTpl)("joinValues",{visibleOn:!0}),(0,i.getSchemaTpl)("delimiter",{visibleOn:"data.joinValues"}),(0,i.getSchemaTpl)("extractValue")],t}return a.__extends(t,e),t}(o.BasePlugin);t.ChainedSelectControlPlugin=l,(0,r.registerEditorPlugin)(l)},7131:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="checkbox",t.$schema="/schemas/CheckboxControlSchema.json",t.name="勾选框",t.isBaseComponent=!0,t.icon="fa fa-check-square-o",t.description="勾选框",t.docLink="/amis/zh-CN/components/form/checkbox",t.tags=["表单项"],t.scaffold={type:"checkbox",option:"勾选框",name:"checkbox"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[a.__assign(a.__assign({value:!0},t.scaffold),{label:"勾选表单"})]},t.panelTitle="勾选框",t.panelBody=[{name:"option",type:"input-text",label:"选项说明"},(0,r.getSchemaTpl)("switchDefaultValue",{name:"value",pipeOut:function(e,t,n){var a;return e?null===(a=n.trueValue)||void 0===a||a:void 0}}),{type:"switch",name:"value",label:"默认勾选",mode:"inline",className:"w-full",visibleOn:'typeof this.value !== "undefined"',pipeOut:function(e,t,n){var a,r;return e?null===(a=n.trueValue)||void 0===a||a:null!==(r=n.falseValue)&&void 0!==r&&r}},{type:"input-text",label:"勾选后的值",name:"trueValue",pipeIn:(0,r.defaultValue)(!0),pipeOut:r.valuePipeOut},{type:"input-text",label:"未勾选的值",name:"falseValue",pipeIn:(0,r.defaultValue)(!1),pipeOut:r.valuePipeOut}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.CheckboxControlPlugin=i,(0,o.registerEditorPlugin)(i)},4894:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxesControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="checkboxes",t.$schema="/schemas/CheckboxesControlSchema.json",t.order=-470,t.name="复选框",t.isBaseComponent=!0,t.icon="fa fa-check-square",t.description="通过options配置多个勾选框,也可以通过source拉取选项",t.docLink="/amis/zh-CN/components/form/checkboxes",t.tags=["表单项"],t.scaffold={type:"checkboxes",label:"复选框",name:"checkboxes",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({value:"A"},t.scaffold)]},t.panelTitle="复选框",t.panelBody=[(0,r.getSchemaTpl)("tabs",[{title:"常规",body:[(0,r.getSchemaTpl)("switchDefaultValue",{visibleOn:"!this.defaultCheckAll"}),{type:"checkboxes",name:"value",label:"默认值",source:"${options}",visibleOn:'typeof this.value !== "undefined"',multiple:!0},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,r.getSchemaTpl)("options"),(0,r.getSchemaTpl)("source"),{name:"checkAll",label:"是否开启全选功能",type:"switch",mode:"inline",className:"w-full"},{name:"defaultCheckAll",label:"是否默认全选",type:"switch",mode:"inline",className:"w-full",description:"勾选后,默认值的配置将无效。",onChange:function(e,t,n,a){return e&&a.setValueByName("value",void 0)}},(0,r.getSchemaTpl)("joinValues",{visibleOn:!0}),(0,r.getSchemaTpl)("delimiter",{hiddenOn:"data.joinValues === false"}),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill"),(0,r.getSchemaTpl)("creatable"),(0,r.getSchemaTpl)("createBtnLabel"),(0,r.getSchemaTpl)("api",{label:"新增选项接口",name:"addApi"}),(0,r.getSchemaTpl)("editable"),(0,r.getSchemaTpl)("api",{label:"编辑选项接口",name:"editApi"}),(0,r.getSchemaTpl)("removable"),(0,r.getSchemaTpl)("api",{label:"删除选项接口",name:"deleteApi"})]})]},{title:"外观",body:[{label:"选项在一行显示",name:"inline",type:"switch",visibleOn:'data.mode != "inline"',mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{label:"每行显示多少列",name:"columnsCount",hiddenOn:'typeof data.inline === "undefined" || data.inline === true',type:"input-range",min:1,max:6,pipeIn:(0,r.defaultValue)(1)},(0,r.getSchemaTpl)("className",{label:"单个 Checkbox 的 CSS 类名",name:"itemClassName"})]}])],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.CheckboxesControlPlugin=i,(0,o.registerEditorPlugin)(i)},4635:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CodeEditorControlPlugin=void 0;var a=n(752),r=n(5322),o=n(9547),i=n(9756),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="editor",t.$schema="/schemas/EditorControlSchema.json",t.name="代码编辑器",t.isBaseComponent=!0,t.icon="fa fa-code",t.description="代码编辑器,采用 monaco-editor 支持:".concat(r.availableLanguages.slice(0,10).join(","),"等等"),t.docLink="/amis/zh-CN/components/form/editor",t.tags=["表单项"],t.scaffold={type:"editor",label:"代码编辑器",name:"editor"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign(a.__assign({},t.scaffold),{value:'console.log("Hello world.");'})]},t.panelTitle="Editor",t.panelBody=[{label:"语言",name:"language",type:"select",value:"javascript",searchable:!0,options:r.availableLanguages.concat()},{name:"size",type:"button-group-select",size:"xs",pipeIn:(0,o.defaultValue)(""),label:"控件大小",options:[{label:"默认",value:""},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"加大",value:"xl"},{label:"加加大",value:"xxl"}]}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.CodeEditorControlPlugin=l,(0,i.registerEditorPlugin)(l)},7452:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ComboControlPlugin=void 0;var a=n(752),r=n(1502),o=n(9756),i=n(9933),l=n(9547),s=a.__importDefault(n(6689)),u=n(3570),d=n(3570),c=n(6374),p=n(3893),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="combo",t.$schema="/schemas/ComboControlSchema.json",t.name="组合输入",t.isBaseComponent=!0,t.icon="fa fa-group",t.description="多个表单项的组合,可配置是否增加和删除初始设定的模板",t.docLink="/amis/zh-CN/components/form/combo",t.tags=["表单项"],t.scaffold={type:"combo",label:"组合输入",name:"combo",multiple:!0,items:[{type:"input-text",name:"input-text",placeholder:"文本"},{type:"select",name:"select",placeholder:"选项",options:[{label:"A",value:"a"},{label:"B",value:"b"}]}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign(a.__assign({},t.scaffold),{value:[{text:"Row 1",select:"a"},{}]})]},t.panelTitle="组合输入",t.panelBodyCreator=function(e){return[{name:"conditions",type:"button-group-select",size:"sm",mode:"inline",className:"block",options:[{label:"固定成员类型",value:"1"},{label:"多分支",value:"2"}],pipeIn:function(e){return e?"2":"1"},pipeOut:function(e){return 2==e?[{label:"类型名称",test:"",items:[{type:"input-text",label:"文本",name:"text"}],scaffold:{}}]:void 0}},{name:"conditions",visibleOn:"this.conditions",type:"combo",label:"分支管理",multiple:!0,multiLine:!0,minLength:1,items:[{label:"名称",name:"label",type:"input-text",required:!0},{label:"命中条件",name:"test",required:!0,type:"input-text",placeholder:'比如: this.type === "text"',description:"根据成员数据判断是否使用此分支"},{name:"items",asFormItem:!0,children:function(e){var n=e.value,a=e.onChange;return s.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",block:!0,onClick:function(){return t.manager.openSubEditor({title:"配置子表单项",value:n,slot:{type:"form",mode:"normal",body:"$$",wrapWithPanel:!1,className:"wrapper"},onChange:a})}},"配置子表单集合")}},{type:"textarea",name:"scaffold",required:!0,label:"新增初始值",pipeOut:l.valuePipeOut}],scaffold:{label:"类型名称",test:"",items:[{type:"input-text",label:"文本",name:"text"}],scaffold:{}}},{name:"typeSwitchable",visibleOn:"this.conditions",label:"是否可切换类型",type:"switch",mode:"inline",className:"block",pipeIn:(0,l.defaultValue)(!0)},{name:"items",visibleOn:"!this.conditions",asFormItem:!0,children:function(e){var n=e.value,a=e.onChange;return s.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",block:!0,onClick:function(){t.manager.openSubEditor({title:"配置子表单集合",value:n,slot:{type:"form",mode:"normal",body:"$$",wrapWithPanel:!1,className:"wrapper"},onChange:function(e){return a(e)}})}},"配置子表单集合")}},(0,l.getSchemaTpl)("switchDefaultValue",{visibleOn:"!this.defaultCheckAll"}),{type:"textarea",name:"value",label:"默认值",pipeOut:l.valuePipeOut,visibleOn:'typeof this.value !== "undefined"'},{label:"多行模式",name:"multiLine",type:"switch",mode:"inline",className:"w-full",value:!1,option:"即是否要换行"},(0,l.getSchemaTpl)("multiple"),(0,l.getSchemaTpl)("joinValues"),(0,l.getSchemaTpl)("delimiter"),{type:"switch",name:"flat",mode:"inline",className:"w-full",label:"是否将值打平",visibleOn:"Array.isArray(data.items) && data.items.length === 1 && data.multiple",description:"默认数组内的数据结构为对象,如果只有一个表单项,可以配置将值打平,那么数组内放置的就是那个表单项的值"},{label:"是否可新增",type:"switch",name:"addable",mode:"inline",className:"w-full",visibleOn:"this.multiple",pipeIn:(0,l.defaultValue)(!0)},{type:"textarea",name:"scaffold",label:"新增初始值",visibleOn:"this.multiple && this.addable !== false",pipeOut:l.valuePipeOut,pipeIn:(0,l.defaultValue)({})},{label:"新增按钮文字",name:"addButtonText",type:"input-text",visibleOn:"data.addable",pipeIn:(0,l.defaultValue)("新增")},{label:"是否可删除",type:"switch",name:"removable",mode:"inline",className:"w-full",visibleOn:"this.multiple",pipeIn:(0,l.defaultValue)(!0)},(0,l.getSchemaTpl)("api",{name:"deleteApi",label:"删除前的请求",hiddenOn:"!data.removable"}),{label:"删除确认提示",name:"deleteConfirmText",type:"input-text",visibleOn:"data.deleteApi",pipeIn:(0,l.defaultValue)("确认要删除")},{name:"draggable",label:"是否可拖拽排序",type:"switch",visibleOn:"this.multiple",mode:"inline",className:"w-full"},{label:"拖拽排序的提示文字",name:"draggableTip",type:"input-text",visibleOn:"data.draggable",pipeIn:(0,l.defaultValue)("可通过拖动每行中的【交换】按钮进行顺序调整")},{name:"noBorder",label:"去掉边框",type:"switch",visibleOn:"this.multiLine",mode:"inline",className:"w-full"},{name:"minLength",type:"input-number",label:"限制最小数量"},{name:"maxLength",type:"input-number",label:"限制最大数量"},{label:"默认消息提示",type:"combo",name:"messages",multiLine:!0,description:"",items:[{label:"有子表单项限制失败时提示",type:"input-text",name:"validateFailed"},{label:"最小长度验证失败时提示",type:"input-text",name:"minLengthValidateFailed"},{label:"最大长度验证失败时提示",type:"input-text",name:"maxLengthValidateFailed"}]},{name:"canAccessSuperData",label:"是否自动填充父级同名变量",type:"switch",pipeIn:(0,l.defaultValue)(!1),mode:"inline",className:"w-full"},{name:"tabsMode",label:"采用 Tabs 展示方式",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!1)},{name:"tabsStyle",label:"Tabs 的展示模式",visibleOn:"data.tabsMode",type:"list-select",options:[{label:"正常",value:"normal"},{label:"水平",value:"horizontal"},{label:"内联",value:"inline"}],mode:"inline",className:"w-full"},{name:"tabsLabelTpl",label:"选项卡标题的生成模板",visibleOn:"data.tabsMode",type:"input-text",mode:"inline",className:"w-full"},{name:"lazyLoad",label:"懒加载",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!1),description:"如果数据比较多,比较卡顿时,可开启此配置项"},{name:"strictMode",label:"严格模式",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!0),description:"如果你希望环境变量的值实时透传到 Combo 中,请关闭此选项。"},{name:"syncFields",visibleOn:"!data.strictMode",label:"配置同步字段",type:"input-text",multiple:!0,joinValues:!1,extractValue:!0,description:"如果 Combo 层级比较深,底层的获取外层的数据可能不同步。但是给 combo 配置这个属性就能同步下来。"},{name:"nullable",label:"允许为空",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!1),description:"如果子表单项里面配置验证器,且又是单条模式。可以允许用户选择清空(不填)。"},{name:"items",label:"各列 CSS 配置",hiddenOn:"this.multiLine",type:"combo",addable:!1,removable:!1,multiple:!0,items:[{name:"columnClassName",placeholder:"CSS 类名",type:"input-text"}]},(0,l.getSchemaTpl)("subFormItemMode",{visibleOn:"this.multiLine"}),(0,l.getSchemaTpl)("subFormHorizontalMode"),(0,l.getSchemaTpl)("subFormHorizontal")]},t}return a.__extends(t,e),t.prototype.filterProps=function(e){if((e=(0,d.JSONPipeOut)(e)).multiple&&!e.value&&!e.$ref){var t={};Array.isArray(e.items)&&e.items.forEach((function(e){e.name&&(0,p.setVariable)(t,e.name,(0,c.mockValue)(e))})),e.value=[t]}return e},t.prototype.buildEditorToolbar=function(e,t){var n=e.id,a=e.info,r=e.schema;"combo"!==a.renderer.name||Array.isArray(r.conditions)||t.push({icon:"fa fa-expand",order:100,tooltip:"配置子表单项",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id,a=e.schema;e.region,"combo"!==e.info.renderer.name||Array.isArray(a.conditions)||t.push("|",{label:"配置成员渲染器",onSelect:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),o=n.getValueOf(e);r&&o&&this.manager.openSubEditor({title:"配置子表单项",value:o.items,slot:{type:"form",mode:"normal",body:"$$",wrapWithPanel:!1,className:"wrapper"},onChange:function(e){e=a.__assign(a.__assign({},o),{items:e}),t.panelChangeValue(e,(0,u.diff)(o,e))}})},t}(i.BasePlugin);t.ComboControlPlugin=f,(0,o.registerEditorPlugin)(f)},2888:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionBilderPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=a.__importStar(n(6372)),s=n(6517),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="condition-builder",t.$schema="/schemas/ConditionBuilderControlSchema.json",t.name="条件组件",t.isBaseComponent=!0,t.icon="fa fa-group",t.description="用于设置复杂组合条件,支持添加条件,添加分组,设置组合方式,拖拽排序等功能。",t.docLink="/amis/zh-CN/components/form/condition-builder",t.tags=["表单项"],t.scaffold={type:"condition-builder",label:"条件组件",name:"conditions",description:"适合让用户自己拼查询条件,然后后端根据数据生成 query where",fields:[{label:"文本",type:"text",name:"text"},{label:"数字",type:"number",name:"number"},{label:"布尔",type:"boolean",name:"boolean"},{label:"选项",type:"select",name:"select",options:[{label:"A",value:"a"},{label:"B",value:"b"},{label:"C",value:"c"},{label:"D",value:"d"},{label:"E",value:"e"}]},{label:"日期",type:"date",name:"date"},{label:"时间",type:"time",name:"time"},{label:"日期时间",type:"datetime",name:"datetime"}]},t.scaffoldForm={title:"快速开始-条件组合",body:[{type:"combo",name:"fields",multiple:!0,draggable:!0,multiLine:!0,items:[{type:"group",body:[{type:"select",name:"type",placeholder:"条件类型",options:[{label:"文本",value:"text"},{label:"数字",value:"number"},{label:"布尔",value:"boolean"},{label:"日期",value:"date"},{label:"日期时间",value:"datetime"},{label:"时间",value:"time"},{label:"选项",value:"select"}]},{type:"input-text",name:"name",placeholder:"字段名"},{type:"input-text",placeholder:"字段名称",name:"label"}]},{type:"group",visibleOn:'data.type === "number"',body:[{type:"input-number",name:"minimum",placeholder:"最小值"},{type:"input-number",name:"maximum",placeholder:"最大值"},{type:"input-number",name:"step",min:0,placeholder:"步长"}]},{type:"group",visibleOn:'!!~["date", "datetime", "time"].indexOf(data.type)',body:[{type:"input-text",name:"format",placeholder:"值格式"},{type:"input-text",name:"inputFormat",placeholder:"日期显示格式"},{type:"input-text",name:"timeFormat",placeholder:"时间显示格式",visibleOn:'data.type === "datetime"'}]},{type:"group",visibleOn:'data.type === "select"',body:[{type:"input-text",name:"source",placeholder:"字段选项远程拉取,支持接口或数据映射"}]},{type:"group",body:[{type:"input-text",placeholder:"占位符",name:"placeholder"},{name:"operators",placeholder:"操作符",asFormItem:!0,children:function(e){var t,n,a=e.data,r=e.render,o=e.onChange;return r("operations",{type:"select",name:"operators",multiple:!0,value:a.value||(null===(t=l.default.types[a.type])||void 0===t?void 0:t.operators)||[],joinValues:!1,extractValue:!0,options:null===(n=l.default.types[a.type])||void 0===n?void 0:n.operators.map((function(e){return(0,s.isObject)(e)&&e.label&&e.value?{label:e.label,value:e.value}||[]:(0,s.isString)(e)&&{label:l.OperationMap[e],value:e}||[]}))},{onChange:function(e){return o(e)}})}}]}]}],canRebuild:!0},t.previewSchema={type:"form",mode:"horizontal",wrapWithPanel:!1,body:[t.scaffold]},t.panelTitle="条件组件",t.panelBodyCreator=function(e){return[(0,i.getSchemaTpl)("source")]},t}return a.__extends(t,e),t.prototype.buildSubRenderers=function(e,t){var n=this;if(n.name&&n.description)return{name:n.name,icon:n.icon,description:n.description,previewSchema:n.previewSchema,tags:n.tags,docLink:n.docLink,type:n.type,scaffold:n.scaffold,scaffoldForm:this.scaffoldForm,disabledRendererPlugin:n.disabledRendererPlugin,isBaseComponent:n.isBaseComponent,rendererName:n.rendererName}},t}(o.BasePlugin);t.ConditionBilderPlugin=u,(0,r.registerEditorPlugin)(u)},8322:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ControlPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=n(9547),l=n(9756),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="control",t.$schema="/schemas/FormControlSchema.json",t.name="表单项容器",t.isBaseComponent=!0,t.icon="fa fa-object-group",t.description="表单项容器",t.docLink="/amis/zh-CN/components/form/group",t.tags=["容器"],t.scaffold={type:"control",label:"表单项容器",body:[{type:"tpl",tpl:"a"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.regions=[{key:"body",label:"元素集合",preferTag:"展示"}],t.panelTitle="表单项容器",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{children:r.default.createElement(o.Button,{className:"m-b",onClick:function(){return t.manager.showRendererPanel("表单项")},level:"danger",tooltip:"插入一个新的元素",size:"sm",block:!0},"新增元素")},(0,i.getSchemaTpl)("description"),(0,i.getSchemaTpl)("placeholder"),(0,i.getSchemaTpl)("remark"),(0,i.getSchemaTpl)("labelRemark")]},{title:"外观",body:[(0,i.getSchemaTpl)("formItemMode"),(0,i.getSchemaTpl)("horizontalMode"),(0,i.getSchemaTpl)("horizontal",{label:"",visibleOn:'data.mode == "horizontal" && data.label !== false && data.horizontal'}),(0,i.getSchemaTpl)("formItemInline"),(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("className",{label:"Label CSS 类名",name:"labelClassName"}),(0,i.getSchemaTpl)("className",{label:"控件 CSS 类名",name:"inputClassName"}),(0,i.getSchemaTpl)("className",{label:"描述 CSS 类名",name:"descriptionClassName",visibleOn:"this.description"})]},{title:"显隐",body:[(0,i.getSchemaTpl)("disabled"),(0,i.getSchemaTpl)("visible"),{type:"switch",name:"clearValueOnHidden",label:"隐藏时删除表单项值",mode:"inline",className:"w-full"}]},{title:"验证",body:[(0,i.getSchemaTpl)("validations"),(0,i.getSchemaTpl)("validationErrors"),(0,i.getSchemaTpl)("validateOnChange"),(0,i.getSchemaTpl)("submitOnChange")]}])],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.ControlPlugin=s,(0,l.registerEditorPlugin)(s)},5561:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiffEditorControlPlugin=void 0;var a=n(752),r=n(5322),o=n(9547),i=n(9756),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="diff-editor",t.$schema="/schemas/DiffEditorControlSchema.json",t.name="Diff编辑器",t.isBaseComponent=!0,t.icon="fa fa-columns",t.description="左右两边的代码做对比,支持的语言包括:".concat(r.availableLanguages.slice(0,10).join(","),"等等"),t.docLink="/amis/zh-CN/components/form/diff-editor",t.tags=["表单项"],t.scaffold={type:"diff-editor",label:"diff编辑器",name:"diff"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign(a.__assign({},t.scaffold),{value:"Hello World\nLine 1\nNew line\nBla Bla",diffValue:"Hello World\nLine 2"})]},t.panelTitle="Diff编辑器",t.panelBody=[{type:"textarea",name:"diffValue",label:"左侧值",pipeOut:o.valuePipeOut,description:"支持使用 \\${xxx} 来获取变量"},(0,o.getSchemaTpl)("switchDefaultValue",{label:"设置右侧默认值"}),{type:"textarea",name:"value",label:"右侧默认值",pipeOut:o.valuePipeOut,visibleOn:'typeof this.value !== "undefined"'},{label:"语言",name:"language",type:"select",value:"javascript",searchable:!0,options:r.availableLanguages.concat()},{name:"size",type:"button-group-select",size:"sm",pipeIn:(0,o.defaultValue)(""),className:"w-full",label:"控件尺寸",options:[{label:"默认",value:""},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"加大",value:"xl"},{label:"再加大",value:"xxl"}]}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.DiffEditorControlPlugin=l,(0,i.registerEditorPlugin)(l)},4624:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSetControlPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9547),l=n(9756),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="fieldset",t.$schema="/schemas/FieldSetControlSchema.json",t.disabledRendererPlugin=!0,t.name="字段集",t.isBaseComponent=!0,t.icon="fa fa-toggle-down",t.description="多个表单项的组合,可配置是否折叠",t.docLink="/amis/zh-CN/components/form/fieldset",t.tags=["表单项"],t.scaffold={type:"fieldset",title:"标题",collapsable:!0,body:[{type:"input-text",label:"文本1",name:"text"},{type:"input-text",label:"文本2",name:"text"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.regions=[{key:"body",label:"子表单项",renderMethod:"renderBody",insertPosition:"inner",preferTag:"表单项"}],t.panelTitle="字段集",t.panelBodyCreator=function(e){return[{label:"标题",name:"title",type:"input-text"},{name:"collapsable",label:"是否可折叠",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,i.defaultValue)(!1)},{name:"collapsed",label:"默认是否折叠",type:"switch",mode:"inline",visibleOn:"this.collapsable",className:"w-full"},{name:"className",type:"button-group-select",clearable:!0,size:"sm",label:"控件样式",className:"w-full",pipeIn:(0,i.defaultValue)(""),options:[{label:"默认",value:""},{value:"Collapse--xs",label:"极小"},{value:"Collapse--sm",label:"小"},{value:"Collapse--base",label:"正常"},{value:"Collapse--md",label:"大"},{value:"Collapse--lg",label:"超大"}]},(0,i.getSchemaTpl)("className",{name:"headingClassName",label:"标题 CSS 类名"}),(0,i.getSchemaTpl)("className",{name:"bodyClassName",label:"内容区域 CSS 类名"}),{children:o.default.createElement(r.Button,{level:"info",size:"sm",className:"m-b-sm",block:!0,onClick:function(){t.manager.showRendererPanel("表单项","请从左侧组件面板中点击添加子表单项")}},"添加子表单项")},(0,i.getSchemaTpl)("subFormItemMode"),(0,i.getSchemaTpl)("subFormHorizontalMode"),(0,i.getSchemaTpl)("subFormHorizontal")]},t}return a.__extends(t,e),t.prototype.filterProps=function(e){return e.collapsed=!1,e},t}(n(9933).BasePlugin);t.FieldSetControlPlugin=s,(0,l.registerEditorPlugin)(s)},1506:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FormPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=n(3893),s=[{name:"type",label:"控件类型",type:"select",required:!0,options:[{label:"单行文本框",value:"input-text"},{label:"多行文本",value:"textarea"},{label:"分组",value:"group"},{label:"数字输入",value:"input-number"},{label:"单选框",value:"radios"},{label:"勾选框",value:"checkbox"},{label:"复选框",value:"checkboxes"},{label:"下拉框",value:"select"},{label:"开关",value:"switch"},{label:"日期",value:"input-date"},{label:"表格",value:"input-table"},{label:"文件上传",value:"input-file"},{label:"图片上传",value:"input-image"},{label:"富文本编辑器",value:"input-rich-text"}]},{name:"label",label:"显示名称",type:"input-text",hiddenOn:'data.type === "group"'},{name:"name",label:"提交字段名",required:!0,type:"input-text",hiddenOn:'data.type === "group"'}],u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="form",t.$schema="/schemas/FormSchema.json",t.order=-999,t.name="表单",t.isBaseComponent=!0,t.description="可用于新建、编辑或者展示数据,配置初始化接口可从远端加载数据,配置提交接口可将数据发送远端。另外也可以将数据提交给其他组件,与其他组件通信。",t.docLink="/amis/zh-CN/components/form/index",t.tags=["功能"],t.icon="fa fa-list-alt",t.scaffold={type:"form",title:"表单",body:[{label:"文本框",type:"input-text",name:"text"}]},t.previewSchema={type:"form",panelClassName:"Panel--default text-left m-b-none",mode:"horizontal",body:[{label:"文本",name:"a",type:"input-text"}]},t.scaffoldForm={title:"快速创建表单",body:[(0,i.getSchemaTpl)("api",{label:"提交地址"}),{name:"mode",label:"文字与输入框展示模式",type:"button-group-select",pipeIn:(0,i.defaultValue)("normal",!1),options:[{label:"上下",value:"normal"},{label:"左右摆放",value:"horizontal"},{label:"内联",value:"inline"}]},{label:"表单控件",type:"combo",name:"body",multiple:!0,draggable:!0,multiLine:!1,items:a.__spreadArray(a.__spreadArray([],s,!0),[{visibleOn:'data.type === "group"',type:"combo",name:"body",label:"分组内的控件",multiple:!0,draggable:!0,multiLine:!0,items:a.__spreadArray([],s,!0)}],!1)}]},t.regions=[{key:"body",label:"表单集合",matchRegion:function(e){return!!(null==e?void 0:e.props.noValidate)},renderMethod:"renderBody",preferTag:"表单项"},{label:"按钮组",key:"actions",preferTag:"按钮"}],t.panelTitle="表单",t.panelBodyCreator=function(e){var t=/\/crud\/filter\/form$/.test(e.path),n=/(?:\/|^)dialog\/.+$/.test(e.path);return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"title",type:"input-text",label:"标题",visibleOn:"this.wrapWithPanel !== false"},{name:"submitText",type:"input-text",label:"提交按钮名称",pipeIn:(0,i.defaultValue)("提交"),visibleOn:"this.wrapWithPanel !== false && !this.actions && (!Array.isArray(this.body) || !this.body.some(function(item) {return !!~['submit','button','reset','button-group'].indexOf(item.type);}))",description:"当没有自定义按钮时有效。"},{name:"autoFocus",type:"switch",label:"自动聚焦",mode:"inline",className:"block",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"设置后将让表单的第一个可输入的表单项获得焦点",placement:"left"}},(0,i.getSchemaTpl)("submitOnChange"),{label:"提交完后重置表单",type:"switch",name:"resetAfterSubmit",mode:"inline",className:"block",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"即表单提交完后,让所有表单项的值还原成初始值",placement:"left"}},t?null:{label:"初始化后提交一次",type:"switch",name:"submitOnInit",mode:"inline",className:"block",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启后,表单初始完成便会触发一次提交。",placement:"left"}},n?{label:"提交后是否关闭对话框",type:"switch",name:"closeDialogOnSubmit",mode:"inline",className:"block",pipeIn:function(e){return!1!==e}}:null,t?null:{label:"提交给其他组件",name:"target",type:"input-text",description:"可以通过设置此属性,把当前表单的值提交给目标组件,而不是自己来通过接口保存,请填写目标组件的 name 属性,多个组件请用逗号隔开。当 targetwindow 时,则把表单数据附属到地址栏。"},(0,i.getSchemaTpl)("reload",{test:!t}),t?null:{label:"跳转",name:"redirect",type:"input-text",description:"当设置此值后,表单提交完后跳转到目标地址。"},{name:"canAccessSuperData",label:"是否自动填充父级同名变量",type:"switch",pipeIn:(0,i.defaultValue)(!0),mode:"inline",className:"block"},{name:"persistData",label:"是否开启本地缓存",type:"switch",pipeIn:(0,i.defaultValue)(!1),mode:"inline",className:"block",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启后,表单的数据会缓存在浏览器中,切换页面或关闭弹框不会清空当前表单内的数据",placement:"left"}},{name:"clearPersistDataAfterSubmit",label:"提交成功后清空本地缓存",type:"switch",pipeIn:(0,i.defaultValue)(!1),mode:"inline",className:"block",visibleOn:"data.persistData",labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"开启本地缓存并开启本配置项后,表单提交成功后,会自动清除浏览器中当前表单的缓存数据",placement:"left"}},{name:"rules",label:"表单组合校验",type:"combo",multiple:!0,multiLine:!0,items:[{name:"rule",label:"校验规则",type:"input-text"},{name:"message",label:"报错提示",type:"input-text"}]}]},t?null:{title:"接口",body:[(0,i.getSchemaTpl)("api",{label:"保存接口",description:"用来保存表单数据",sampleBuilder:function(e){return'{\n "status": 0,\n "msg": "",\n\n // 可以不返回,如果返回了数据将被 merge 进来。\n data: {}\n }'}}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"asyncApi",visibleOn:"data.api",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline",className:"block"},(0,i.getSchemaTpl)("api",{name:"asyncApi",label:"异步检测接口",visibleOn:"data.asyncApi != null",description:"设置此属性后,表单提交发送保存接口后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),{type:"divider"},(0,i.getSchemaTpl)("api",{name:"initApi",label:"初始化接口",description:"用来初始化表单数据",sampleBuilder:function(e){var t={};return Array.isArray(e.body)&&e.body.forEach((function(e){e.name&&!~["combo","input-array","form"].indexOf(e.type)&&(0,l.setVariable)(t,e.name,"sample")})),JSON.stringify({status:0,msg:"",data:t},null,2)}}),{label:"开启定时刷新",type:"switch",name:"interval",visibleOn:"data.initApi",pipeIn:function(e){return!!e},pipeOut:function(e){return e?3e3:void 0},mode:"inline"},{name:"interval",type:"input-number",visibleOn:"data.interval",step:500,className:"m-t-n-sm",description:"设置后将自动定时刷新,单位 ms"},{name:"silentPolling",label:"静默刷新",type:"switch",mode:"inline",visibleOn:"!!data.interval",description:"设置自动定时刷新时是否显示loading"},{name:"stopAutoRefreshWhen",label:"停止定时刷新检测表达式",type:"input-text",visibleOn:"!!data.interval",description:"定时刷新一旦设置会一直刷新,除非给出表达式,条件满足后则不刷新了。"},{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"initAsyncApi",visibleOn:"data.initApi",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline"},(0,i.getSchemaTpl)("api",{name:"initAsyncApi",label:"异步检测接口",visibleOn:"data.initAsyncApi != null",description:"设置此属性后,表单请求 initApi 后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),{type:"divider"},t?{name:"messages",pipeIn:(0,i.defaultValue)({fetchFailed:"初始化失败"}),label:"默认消息信息",type:"combo",multiLine:!0,description:"可以不设置,接口返回的 msg 字段,优先级更高",items:[{label:"获取成功提示",name:"fetchSuccess",type:"input-text"},{label:"获取失败提示",name:"fetchFailed",type:"input-text"}]}:{name:"messages",pipeIn:(0,i.defaultValue)({fetchFailed:"初始化失败",saveSuccess:"保存成功",saveFailed:"保存失败"}),label:"默认消息提示",type:"combo",multiLine:!0,description:"可以不设置,接口返回的 msg 字段,优先级更高",items:[{label:"获取成功提示",name:"fetchSuccess",type:"input-text"},{label:"获取失败提示",name:"fetchFailed",type:"input-text"},{label:"保存成功提示",name:"saveSuccess",type:"input-text"},{label:"保存失败提示",name:"saveFailed",type:"input-text"},{label:"验证失败提示",name:"validateFailed",type:"input-text"}]}]},{title:"外观",body:[{name:"wrapWithPanel",type:"switch",mode:"inline",className:"block",label:"用 Panel 包裹",pipeIn:(0,i.defaultValue)(!0),labelRemark:{className:"m-l-xs",trigger:"click",rootClose:!0,content:"关闭后,表单只会展示表单项,标题和操作栏将不会显示。",placement:"left"}},{name:"mode",label:"展示模式",type:"button-group-select",size:"sm",pipeIn:(0,i.defaultValue)("normal",!1),options:[{label:"默认",value:"normal"},{label:"左右摆放",value:"horizontal"},{label:"内联",value:"inline"}]},(0,i.getSchemaTpl)("horizontal",{visibleOn:'this.mode == "horizontal"'}),(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("className",{name:"panelClassName",visibleOn:"this.wrapWithPanel !== false",label:"Panel 的 CSS 类名",description:"可以设置 Panel--info 之类的"})]},{title:"其他",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("name",{test:!t}),{name:"debug",label:"开启调试",type:"switch",mode:"inline",labelRemark:"显示当前表单的数据在表单顶部"},(0,i.getSchemaTpl)("disabled"),(0,i.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t.prototype.afterUpdate=function(e){var t,n=e.context;"form"===n.info.renderer.name&&(null===(t=n.diff)||void 0===t?void 0:t.some((function(e){var t;return"wrapWithPanel"===(null===(t=e.path)||void 0===t?void 0:t.join("."))})))&&this.manager.buildPanels()},t}(o.BasePlugin);t.FormPlugin=u,(0,r.registerEditorPlugin)(u)},1808:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FormulaControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="formula",t.$schema="/schemas/FormulaControlSchema.json",t.name="公式",t.isBaseComponent=!0,t.icon="fa fa-calculator",t.description="通过公式计算指定的变量值,并将其结果作用到指定的变量中",t.docLink="/amis/zh-CN/components/form/formula",t.tags=["表单项"],t.scaffold={type:"formula",name:"formula"},t.previewSchema={type:"tpl",tpl:"计算公式"},t.panelTitle="公式",t.panelBody=[{label:"字段名",name:"name",type:"input-text",description:"公式计算结果会作用到此字段名对应的变量中。"},{type:"input-text",name:"value",label:"默认值"},{type:"input-text",name:"formula",label:"公式",description:"支持 JS 表达式,如: data.var_a + 2,即当表单项 var_a 变化的时候,会自动给当前表单项设置为 var_a + 2 的值。若设置为字符串,则需要加引号"},{type:"input-text",name:"condition",label:"作用条件",description:'支持如:\\${xxx}或者data.xxx == "a" 表达式来配置作用条件,当满足该作用条件时,会将计算结果设置到目标变量上。'},{name:"initSet",type:"switch",label:"是否初始应用",pipeIn:(0,r.defaultValue)(!0),description:"是否初始化的时候运行公式结果,并设置到目标变量上。",mode:"inline",className:"block"},{name:"autoSet",type:"switch",label:"是否自动应用",pipeIn:(0,r.defaultValue)(!0),mode:"inline",className:"block",description:"是否自动计算公式结果,有变化时自动设置到目标变量上。
关闭后,通过按钮也能触发运算。"}],t}return a.__extends(t,e),t.prototype.renderRenderer=function(e){return this.renderPlaceholder("功能组件(公式)",e.key)},t}(n(9933).BasePlugin);t.FormulaControlPlugin=i,(0,o.registerEditorPlugin)(i)},6239:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GroupControlPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=n(3570),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="group",t.$schema="/schemas/GroupControlSchema.json",t.disabledRendererPlugin=!0,t.name="表单组",t.isBaseComponent=!0,t.icon="fa fa-id-card-o",t.description="水平展示多个表单项",t.docLink="/amis/zh-CN/components/form/group",t.tags=["表单项"],t.scaffold={type:"group",body:[{type:"input-text",label:"文本",name:"var1"},{type:"input-text",label:"文本",name:"var2"}],label:!1},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[a.__assign(a.__assign({},t.scaffold),{mode:"normal"})]},t.regions=[{key:"body",label:"子表单",renderMethod:"renderInput",preferTag:"表单项",wrapperResolve:function(e){return e}}],t.panelTitle="表单组",t.panelBody=[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[(0,s.getSchemaTpl)("label"),(0,s.getSchemaTpl)("description",{visible:"this.label"}),{children:o.default.createElement(r.Button,{className:"m-b",onClick:function(){t.manager.showRendererPanel("表单项","请从左侧组件面板中点击添加表单项")},level:"danger",tooltip:"插入一个新的元素",size:"sm",block:!0},"新增元素")},(0,s.getSchemaTpl)("remark"),(0,s.getSchemaTpl)("labelRemark")]},{title:"外观",body:[(0,s.getSchemaTpl)("formItemMode"),(0,s.getSchemaTpl)("horizontalMode"),(0,s.getSchemaTpl)("horizontal",{visibleOn:'(data.$$formMode == "horizontal" || data.mode == "horizontal") && data.label !== false && data.horizontal',pipeIn:function(e,t){return{leftRate:(e=e||t.formHorizontal&&(0,u.makeHorizontalDeeper)(t.formHorizontal,t.body.length))&&"number"==typeof e.left?e.left:e&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(e.left)?parseInt(RegExp.$1,10):2,leftFixed:e&&e.leftFixed||""}}}),(0,s.getSchemaTpl)("subFormItemMode"),(0,s.getSchemaTpl)("subFormHorizontalMode"),(0,s.getSchemaTpl)("subFormHorizontal"),{name:"body",type:"combo",label:"列宽度配置",multiple:!0,removable:!1,addable:!1,multiLine:!0,visibleOn:'data.$$formMode != "inline"',items:[{type:"button-group-select",name:"columnRatio",label:"宽度设置",tiled:!0,pipeIn:function(e,t){return"number"==typeof e||t.columnClassName&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(t.columnClassName)?"custom":e||""},pipeOut:function(e){return"custom"===e?2:e},options:[{value:"",label:"适配宽度"},{value:"auto",label:"适配内容"},{value:"custom",label:"自定义"}]},{label:"宽度占比",type:"input-range",name:"columnRatio",visibleOn:'typeof this.columnRatio === "number" || this.columnClassName && /\\bcol\\-(?:xs|sm|md|lg)\\-(\\d+)\\b/.test(this.columnClassName)',pipeIn:function(e,t){return"number"==typeof e?e:t.columnClassName&&/\bcol\-(?:xs|sm|md|lg)\-(\d+)\b/.test(t.columnClassName)&&parseInt(RegExp.$1,10)||2},min:1,max:12,step:1}]},{type:"button-group-select",name:"gap",label:"间隔大小",pipeIn:(0,s.defaultValue)(""),size:"sm",tiled:!0,clearable:!0,options:[{value:"xs",label:"极小"},{value:"sm",label:"小"},{value:"md",label:"中"},{value:"lg",label:"大"}]},(0,s.getSchemaTpl)("className"),{name:"body",type:"combo",label:"列 CSS 类名配置",multiple:!0,removable:!1,addable:!1,items:[{type:"input-text",name:"columnClassName"}]}]},{title:"显隐",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t.prototype.buildEditorContextMenu=function(e,t){var n=this,a=e.id,r=e.schema,o=(e.region,e.selections),i=e.info;o.length||i.plugin!==this||!Array.isArray(r.body)||r.body.length<2||t.push({label:"变成多行",onSelect:function(){var e=n.manager.store,t=e.schema;t=(0,u.JSONUpdate)(t,a,(0,u.JSONPipeIn)(r.body),!0),e.traceableSetSchema(t)}})},t}(l.BasePlugin);t.GroupControlPlugin=d,(0,i.registerEditorPlugin)(d)},3274:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenControlPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="hidden",t.$schema="/schemas/HiddenControlSchema.json",t.name="隐藏域",t.isBaseComponent=!0,t.icon="fa fa-eye-slash",t.description="隐藏表单项",t.docLink="/amis/zh-CN/components/form/hidden",t.tags=["表单项"],t.scaffold={type:"hidden",name:"var1"},t.previewSchema={type:"tpl",tpl:"隐藏域"},t.panelTitle="隐藏域",t.panelBody=[{type:"input-text",name:"value",label:"默认值"}],t}return a.__extends(t,e),t.prototype.renderRenderer=function(e){return r.default.createElement("div",{key:e.key,className:"wrapper-sm b-a b-light m-b-sm"},r.default.createElement("span",{className:"text-muted"},"功能组件(隐藏字段)"))},t}(n(9933).BasePlugin);t.HiddenControlPlugin=i,(0,o.registerEditorPlugin)(i)},7589:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayControlPlugin=void 0;var a=n(752),r=n(1502),o=n(9756),i=n(9933),l=n(9547),s=a.__importDefault(n(6689)),u=n(3570),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-array",t.$schema="/schemas/ArrayControlSchema.json",t.disabledRendererPlugin=!0,t.name="数组输入框",t.isBaseComponent=!0,t.icon="fa fa-bars",t.description="Array 数组输入框,可自定义成员输入形式。其实是 Combo 的 flat 值打平的一种用法,可直接用 combo 代替。",t.docLink="/amis/zh-CN/components/form/input-array",t.tags=["表单项"],t.scaffold={type:"input-array",label:"数组输入框",name:"array",items:{type:"input-text",placeholder:"请输入"}},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[a.__assign(a.__assign({},t.scaffold),{value:["row1",""],draggable:!0})]},t.panelTitle="数组框",t.panelBodyCreator=function(e){return[(0,l.getSchemaTpl)("switchDefaultValue"),{type:"textarea",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',pipeOut:l.valuePipeOut},{children:s.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置子表单项")},{label:"是否可新增",type:"switch",name:"addable",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!0)},{label:"新增按钮文字",name:"addButtonText",type:"input-text",visibleOn:"data.addable",pipeIn:(0,l.defaultValue)("新增")},{type:"textarea",name:"scaffold",label:"新增初始值",visibleOn:"this.addable !== false",pipeOut:l.valuePipeOut,pipeIn:(0,l.defaultValue)("")},{label:"是否可删除",type:"switch",name:"removable",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!0)},(0,l.getSchemaTpl)("api",{name:"deleteApi",label:"删除前的请求",visibleOn:"data.removable"}),{label:"删除确认提示",name:"deleteConfirmText",type:"input-text",visibleOn:"data.deleteApi",pipeIn:(0,l.defaultValue)("确认要删除")},{name:"draggable",label:"启用拖拽排序",type:"switch",mode:"inline",className:"w-full"},{name:"draggableTip",visibleOn:"data.draggable",type:"input-text",label:"可拖拽排序提示文字",pipeIn:(0,l.defaultValue)("可通过拖动每行中的【交换】按钮进行顺序调整")},{name:"addButtonText",type:"input-text",label:"新增按钮文字",pipeIn:(0,l.defaultValue)("新增")},(0,l.getSchemaTpl)("minLength"),(0,l.getSchemaTpl)("maxLength")]},t}return a.__extends(t,e),t.prototype.filterProps=function(e){return(e=(0,u.JSONPipeOut)(e)).value||(e.value=[""]),e},t.prototype.buildEditorToolbar=function(e,t){var n=e.id;"input-array"===e.info.renderer.name&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置子表单项",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id;e.schema,e.region,"input-array"===e.info.renderer.name&&t.push("|",{label:"配置成员渲染器",onSelect:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),o=n.getValueOf(e);r&&o&&this.manager.openSubEditor({title:"配置子表单项",value:o.items,slot:{type:"form",mode:"normal",body:"$$",wrapWithPanel:!1,className:"wrapper"},onChange:function(e){e=a.__assign(a.__assign({},o),{items:e}),t.panelChangeValue(e,(0,u.diff)(o,e))}})},t}(i.BasePlugin);t.ArrayControlPlugin=d,(0,o.registerEditorPlugin)(d)},7706:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CityControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-city",t.$schema="/schemas/CityControlSchema.json",t.name="城市选择",t.isBaseComponent=!0,t.icon="fa fa-building-o",t.description="可配置是否选择区域或者城市",t.docLink="/amis/zh-CN/components/form/input-city",t.tags=["表单项"],t.scaffold={type:"input-city",label:"城市选择",name:"city"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[a.__assign({},t.scaffold)]},t.panelTitle="城市选择",t.panelBody=[{type:"switch",name:"allowDistrict",label:"允许选择区域",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{type:"switch",name:"allowCity",label:"允许选择城市",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},(0,r.getSchemaTpl)("switchDefaultValue"),{name:"value",type:"input-city",label:"默认值",visibleOn:'typeof data.value !== "undefined"',validations:"isNumeric",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"城市编码",placement:"left"}},{type:"switch",name:"searchable",label:"是否出搜索框",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!1)},(0,r.getSchemaTpl)("extractValue")],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.CityControlPlugin=i,(0,o.registerEditorPlugin)(i)},6956:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-color",t.$schema="/schemas/ColorControlSchema.json",t.name="颜色框",t.isBaseComponent=!0,t.icon="fa fa-eyedropper",t.description="支持hex、hls、rgb、rgba格式,默认为hex格式",t.docLink="/amis/zh-CN/components/form/input-color",t.tags=["表单项"],t.scaffold={type:"input-color",label:"颜色",name:"color"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="颜色框",t.panelBody=[{label:"格式",name:"format",type:"button-group-select",size:"sm",value:"hex",options:["hex","hsl","rgb","rgba"],onChange:function(e,t,n,a){a.setValueByName("value",""),a.setValueByName("presetColors","")}},(0,r.getSchemaTpl)("switchDefaultValue"),t.getConditionalColorPanel("hex"),t.getConditionalColorPanel("hsl"),t.getConditionalColorPanel("rgb"),t.getConditionalColorPanel("rgba"),(0,r.getSchemaTpl)("switchDefaultValue",{name:"presetColors",label:"设置选择器中颜色默认值",description:"为空时不显示选择器中的默认值"}),t.getConditionalColorArray("hex"),t.getConditionalColorArray("hsl"),t.getConditionalColorArray("rgb"),t.getConditionalColorArray("rgba"),(0,r.getSchemaTpl)("clearable",{label:"显示清除按钮",pipeIn:(0,r.defaultValue)(!0)})],t}return a.__extends(t,e),t.prototype.getConditionalColorPanel=function(e){return{type:"input-color",name:"value",format:e,visibleOn:'typeof this.value !== "undefined" && this.format==="'.concat(e,'"'),label:"默认值"}},t.prototype.getConditionalColorArray=function(e){return{type:"input-array",name:"presetColors",label:"选择器中颜色默认值",addable:!0,removable:!0,visibleOn:'typeof this.presetColors !== "undefined" && this.format === "'.concat(e,'"'),items:{type:"input-color",format:e},value:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]}},t}(n(9933).BasePlugin);t.ColorControlPlugin=i,(0,o.registerEditorPlugin)(i)},4189:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateControlPlugin=void 0;var a=n(752),r=n(1502),o=n(9547),i=n(9756),l=n(9933),s=a.__importDefault(n(2245)),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-date",t.$schema="/schemas/DateControlSchema.json",t.order=-450,t.icon="fa fa-calendar",t.name="日期框",t.isBaseComponent=!0,t.description="年月日选择,支持相对值设定,如+2days两天后",t.docLink="/amis/zh-CN/components/form/input-date",t.tags=["表单项"],t.scaffold={type:"input-date",label:"日期",name:"date"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="日期配置",t.panelBody=[(0,o.getSchemaTpl)("placeholder",{pipeIn:(0,o.defaultValue)("请选择日期")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 moment 中的格式用法。',pipeIn:(0,o.defaultValue)("X"),onChange:function(e,t,n,a){a.setValueByName("value",""),a.setValueByName("minDate",""),a.setValueByName("maxDate","")}},(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",visibleOn:'typeof this.value !== "undefined"',body:[{type:"input-date",name:"value",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},(0,o.getSchemaTpl)("clearable",{pipeIn:(0,o.defaultValue)(!0)}),{type:"input-text",name:"minDate",label:"最小日期",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"minDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"maxDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]}],t}return a.__extends(t,e),t}(l.BasePlugin);t.DateControlPlugin=u,(0,i.registerEditorPlugin)(u)},3751:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateRangeControlPlugin=void 0;var a=n(752),r=n(1502),o=n(9547),i=n(9756),l=n(9933),s=a.__importDefault(n(2245)),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-date-range",t.$schema="/schemas/DateRangeControlSchema.json",t.order=-440,t.icon="fa fa-calendar",t.name="日期范围",t.isBaseComponent=!0,t.description="日期范围选择,可通过minDatemaxDate设定最小、最大日期",t.docLink="/amis/zh-CN/components/form/input-date-range",t.tags=["表单项"],t.scaffold={type:"input-date-range",label:"日期范围",name:"date-range"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="日期范围",t.panelBody=[(0,o.getSchemaTpl)("placeholder",{pipeIn:(0,o.defaultValue)("请选择日期范围")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 moment 中的格式用法。',pipeIn:(0,o.defaultValue)("X"),onChange:function(e,t,n,a){a.setValueByName("value",""),a.setValueByName("minDate",""),a.setValueByName("maxDate","")}},(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,由于包含开始和结束时间,请用逗号隔开。"},{type:"fieldSet",title:"使用固定值",visibleOn:'typeof this.value !== "undefined"',collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date-range",name:"value",pipeIn:function(e){return e?e.split(",").map((function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")})):""},pipeOut:function(e,t,n){var a=n.format;if(a){var r=e.split(",");e=r.map((function(e){return(0,s.default)(parseInt(e,10),"X").format(a)})).join(",")}return e}}]},(0,o.getSchemaTpl)("clearable",{pipeIn:(0,o.defaultValue)(!0)}),{type:"input-text",name:"minDate",label:"最小日期",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"minDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"maxDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"input-text",name:"minDuration",label:"限制最小跨度",description:"比如 2days"},{type:"input-text",name:"ranges",label:"日期范围快捷键",description:"比如 today, yesterday, 1dayago, 7daysago, 90daysago, prevweek, thismonth, prevmonth, prevquarter, thisquarter"},{type:"input-text",name:"maxDuration",label:"限制最大跨度",description:"比如 1year"},{name:"utc",label:"是否使用 UTC 时间",type:"switch",mode:"inline",className:"block"},{name:"embed",label:"是否内嵌模式",type:"switch",mode:"inline",className:"block"}],t}return a.__extends(t,e),t}(l.BasePlugin);t.DateRangeControlPlugin=u,(0,i.registerEditorPlugin)(u)},8107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeControlPlugin=void 0;var a=n(752),r=n(1502),o=n(9547),i=n(9756),l=n(9933),s=a.__importDefault(n(2245)),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-datetime",t.$schema="/schemas/DateTimeControlSchema.json",t.icon="fa fa-calendar",t.name="日期时间",t.isBaseComponent=!0,t.description="年月日时分选择",t.docLink="/amis/zh-CN/components/form/input-datetime",t.tags=["表单项"],t.scaffold={type:"input-datetime",label:"日期时间",name:"datetime"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[a.__assign({},t.scaffold)]},t.panelTitle="日期时间",t.panelBody=[(0,o.getSchemaTpl)("placeholder",{pipeIn:(0,o.defaultValue)("请选择日期时间")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 moment 中的格式用法。',pipeIn:(0,o.defaultValue)("X"),onChange:function(e,t,n,a){a.setValueByName("value",""),a.setValueByName("minDate",""),a.setValueByName("maxDate","")}},(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",visibleOn:'typeof this.value !== "undefined"',body:[{type:"input-datetime",name:"value",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},(0,o.getSchemaTpl)("clearable",{pipeIn:(0,o.defaultValue)(!0)}),{type:"input-text",name:"inputFormat",label:"显示格式",description:'请参考 moment 中的格式用法。',pipeIn:(0,o.defaultValue)("YYYY-MM-DD HH:mm")},{type:"input-text",name:"minDate",label:"最小日期",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"minDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"maxDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]}],t}return a.__extends(t,e),t}(l.BasePlugin);t.DateTimeControlPlugin=u,(0,i.registerEditorPlugin)(u)},6083:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeRangeControlPlugin=void 0;var a=n(752),r=n(1502),o=n(9547),i=n(9756),l=n(9933),s=a.__importDefault(n(2245)),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-datetime-range",t.$schema="/schemas/DateTimeRangeControlSchema.json",t.order=-440,t.icon="fa fa-calendar",t.name="日期时间范围",t.isBaseComponent=!0,t.description="日期时间范围选择,可通过minDatemaxDate设定最小、最大日期",t.docLink="/amis/zh-CN/components/form/input-datetime-range",t.tags=["表单项"],t.scaffold={type:"input-datetime-range",label:"日期时间范围",name:"input-datetime-range"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="日期时间范围",t.panelBody=[(0,o.getSchemaTpl)("placeholder",{pipeIn:(0,o.defaultValue)("请选择日期时间范围")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 moment 中的格式用法。',pipeIn:(0,o.defaultValue)("X"),onChange:function(e,t,n,a){a.setValueByName("value",""),a.setValueByName("minDate",""),a.setValueByName("maxDate","")}},(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,由于包含开始和结束时间,请用逗号隔开。"},{type:"fieldSet",title:"使用固定值",visibleOn:'typeof this.value !== "undefined"',collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-datetime-range",name:"value",pipeIn:function(e){return e?e.split(",").map((function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")})):""},pipeOut:function(e,t,n){var a=n.format;if(a){var r=e.split(",");e=r.map((function(e){return(0,s.default)(parseInt(e,10),"X").format(a)})).join(",")}return e}}]},(0,o.getSchemaTpl)("clearable",{pipeIn:(0,o.defaultValue)(!0)}),{type:"input-text",name:"minDate",label:"最小日期时间",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-datetime",name:"minDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期时间",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-datetime",name:"maxDate",pipeIn:function(e){return(0,s.default)(r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e).format("X")},pipeOut:function(e,t,n){return(0,s.default)(parseInt(e,10),"X").format(n.format)}}]},{type:"input-text",name:"minDuration",label:"限制最小跨度",description:"比如 2days"},{type:"input-text",name:"ranges",label:"日期范围快捷键",description:"比如 today, yesterday, 1dayago, 7daysago, 90daysago, prevweek, thismonth, prevmonth, prevquarter, thisquarter"},{type:"input-text",name:"maxDuration",label:"限制最大跨度",description:"比如 1year"},{name:"utc",label:"是否使用 UTC 时间",type:"switch",mode:"inline",className:"block"},{name:"embed",label:"是否内嵌模式",type:"switch",mode:"inline",className:"block"}],t}return a.__extends(t,e),t}(l.BasePlugin);t.DateTimeRangeControlPlugin=u,(0,i.registerEditorPlugin)(u)},5225:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EmailControlPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-email",t.$schema="/schemas/TextControlSchema.json",t.name="邮箱框",t.isBaseComponent=!0,t.icon="fa fa-envelope-o",t.description="验证输入是否符合邮箱的格式",t.scaffold={type:"input-email",label:"邮箱",name:"email"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:a.__assign({},t.scaffold)},t.panelTitle=t.name,t}return a.__extends(t,e),t}(n(9890).TextControlPlugin);t.EmailControlPlugin=o,(0,r.registerEditorPlugin)(o)},377:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-excel",t.$schema="/schemas/ExcelControlSchema.json",t.name="上传 Excel",t.isBaseComponent=!0,t.icon="fa fa-eyedropper",t.description="自动解析 Excel",t.docLink="/amis/zh-CN/components/form/input-excel",t.tags=["表单项"],t.scaffold={type:"input-excel",label:"Excel",name:"excel"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="上传 Excel",t.panelBody=[{label:"解析模式",name:"parseMode",type:"select",options:[{label:"对象",value:"object"},{label:"数组",value:"array"}]},{type:"switch",name:"allSheets",label:"是否解析所有 Sheet",mode:"inline",className:"w-full"},{type:"switch",name:"plainText",label:"是否解析为纯文本",pipeIn:(0,r.defaultValue)(!0),mode:"inline",className:"w-full"},{type:"switch",name:"includeEmpty",label:"是否包含空内容",mode:"inline",visibleOn:'data.parseMode === "array"',className:"w-full"}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.ExcelControlPlugin=i,(0,o.registerEditorPlugin)(i)},6253:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-file",t.$schema="/schemas/FileControlSchema.json",t.name="文件上传",t.isBaseComponent=!0,t.icon="fa fa-upload",t.description="可上传多个文件,可配置是否自动上传以及大文件分片上传",t.docLink="/amis/zh-CN/components/form/input-file",t.tags=["表单项"],t.scaffold={type:"input-file",label:"文件上传",name:"file"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[a.__assign({},t.scaffold)]},t.panelTitle="文件域",t.panelBody=[(0,r.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"input-text",name:"btnLabel",label:"上传按钮名称",value:"请选择文件"},(0,r.getSchemaTpl)("api",{label:"文件接收器",name:"receiver",description:"默认不填写将上传到 bos,可以在系统配置中设置为自己的 bos 地址。",value:"/api/upload/file",__isUpload:!0}),(0,r.getSchemaTpl)("autoFill"),{type:"fieldSet",title:"分块上传相关",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"button-group-select",name:"useChunk",label:"启用分块",size:"xs",pipeOut:r.valuePipeOut,value:"auto",options:[{label:"自动",value:"auto"},{label:"启用",value:!0},{label:"关闭",value:!1}]},{name:"chunkSize",type:"input-number",label:"分块大小",visibleOn:"data.useChunk != false",value:5242880},(0,r.getSchemaTpl)("api",{name:"startChunkApi",label:"startChunkApi",value:"/api/upload/startChunk"}),(0,r.getSchemaTpl)("api",{name:"chunkApi",label:"chunkApi",value:"/api/upload/chunk"}),(0,r.getSchemaTpl)("api",{name:"finishChunkApi",label:"finishChunkApi",value:"/api/upload/finishChunk"})]},{type:"input-text",name:"accept",label:"文件类型",value:"",description:"请填写文件的 mime-types,参考 input[type=file]accept 说明"},(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("multiple",{pipeIn:(0,r.defaultValue)(!1)}),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue")]},{title:"外观",body:[(0,r.getSchemaTpl)("className",{name:"btnClassName",label:"按钮 CSS 类名",pipeIn:(0,r.defaultValue)("btn-sm btn-info")}),(0,r.getSchemaTpl)("className",{name:"btnUploadClassName",label:"上传按钮 CSS 类名",pipeIn:(0,r.defaultValue)("btn-sm btn-success")})]},{title:"其他",body:[{name:"maxSize",type:"input-number",label:"文件最大体积",description:"超出大小不允许上传,单位字节"},{name:"maxLength",type:"input-number",label:"文件最大数量",description:"超出数量不允许上传",visibleOn:"data.multiple != false"},{name:"fileField",type:"input-text",label:"文件域名称",value:"file"},{name:"asBase64",type:"switch",mode:"inline",className:"block",label:"作为 Base64 提交",hiddenOn:"data.asBlob",description:"小文件时可以使用,默认给 Form 提交的是文件下载地址,设置后给 Form 提交文件内容的 base64 格式字符串。"},{name:"asBlob",type:"switch",mode:"inline",className:"block",label:"作为二进制提交",hiddenOn:"data.asBase64",description:"File 控件不接管文件上传,直接由表单的保存接口完成。和 Base64 选项二选一。"},{name:"autoUpload",type:"switch",mode:"inline",className:"block",label:"是否自动上传",value:!0},{name:"hideUploadButton",type:"switch",mode:"inline",className:"block",label:"是否隐藏上传按钮",value:!1},(0,r.getSchemaTpl)("fileUrl",{name:"templateUrl",label:"模板地址"})]}])],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.FileControlPlugin=i,(0,o.registerEditorPlugin)(i)},2053:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InputGroupControlPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=n(9547),l=n(9756),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-group",t.$schema="/schemas/InputGroupControlSchema.json",t.name="输入组合",t.isBaseComponent=!0,t.icon="fa fa-object-group",t.description="输入组合,支持多种类型的控件组合",t.docLink="/amis/zh-CN/components/form/input-group",t.tags=["表单项"],t.scaffold={type:"input-group",name:"input-group",label:"input 组合",body:[{type:"input-text",inputClassName:"b-r-none p-r-none",name:"input-group"},{type:"submit",label:"提交",level:"primary"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="Input 组合",t.panelBody=[[{name:"body",type:"combo",multiple:!0,addable:!1,draggable:!0,draggableTip:"可排序、可移除、如要编辑请在预览区选中编辑",editable:!1,visibleOn:"this.body && this.body.length",items:[{type:"tpl",inline:!1,className:"p-t-xs",tpl:'<%= data.label %><% if (data.icon) { %><% }%>'}]},{children:r.default.createElement(o.Button,{className:"m-b",onClick:function(){t.manager.showRendererPanel("表单项")},level:"danger",tooltip:"插入一个新的元素",size:"sm",block:!0},"新增元素")},(0,i.getSchemaTpl)("formItemName",{required:!0})]],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.InputGroupControlPlugin=s,(0,l.registerEditorPlugin)(s)},200:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImageControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-image",t.$schema="/schemas/ImageControlSchema.json",t.name="图片上传",t.isBaseComponent=!0,t.description="可以对图片实现裁剪,限制图片的宽高以及大小,支持自动上传及上传多张图片",t.docLink="/amis/zh-CN/components/form/input-image",t.tags=["表单项"],t.icon="fa fa-crop",t.scaffold={type:"input-image",label:"图片上传",name:"image",imageClassName:"r w-full"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="图片上传",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("multiple",{value:!1,visibleOn:"!data.crop",description:"开启后,不能同时开启裁剪功能"}),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),{name:"maxSize",type:"input-number",label:"图片最大体积",description:"超出大小不允许上传,单位字节"},{name:"maxLength",type:"input-number",label:"图片最大数量",visibleOn:"data.multiple",description:"超出数量不允许上传"},(0,r.getSchemaTpl)("api",{label:"文件接收接口",name:"receiver",description:"文件接收接口,默认不填则上传到 hiphoto",value:"/api/upload",__isUpload:!0}),(0,r.getSchemaTpl)("autoFill"),{type:"input-text",value:".jpeg, .jpg, .png, .gif",name:"accept",label:"图片类型",description:"请填入图片的后缀或 MimeType,多个类型用,隔开"},{type:"input-text",name:"defaultImage",label:"占位图片地址"},{type:"switch",name:"fixedSize",value:!1,label:"是否开启固定尺寸",mode:"inline",className:"w-full"},{type:"switch",name:"hideUploadButton",value:!1,label:"隐藏上传按钮",mode:"inline",className:"w-full"},{type:"switch",name:"autoUpload",value:!1,label:"自动上传",mode:"inline",className:"w-full"},{name:"compress",type:"switch",label:"开启压缩",value:!0,mode:"inline",className:"w-full",description:"由 hiphoto 实现,自定义接口将无效"},{type:"combo",name:"compressOptions",multiLine:!0,label:"压缩配置",visibleOn:"data.compress",items:[{type:"input-number",label:"最大宽度",name:"maxWidth"},{type:"input-number",label:"最大高度",name:"maxHeight"}]},{name:"showCompressOptions",type:"switch",label:"是否显示压缩选项",mode:"inline",className:"w-full"},{name:"crop",type:"switch",label:"是否开启裁剪",mode:"inline",visibleOn:"!data.multiple",className:"w-full",description:"开启后,不能同时开启多选模式",pipeIn:function(e){return!!e}},{name:"crop.aspectRatio",type:"input-text",label:"裁剪比率",visibleOn:"data.crop",pipeOut:r.valuePipeOut},{name:"crop.rotatable",type:"switch",label:"裁剪时是否可旋转",visibleOn:"data.crop",pipeOut:r.valuePipeOut},{name:"crop.scalable",type:"switch",label:"裁剪时否可缩放",visibleOn:"data.crop",pipeOut:r.valuePipeOut},{name:"crop.viewMode",type:"select",label:"裁剪区域限制",value:1,options:[{label:"无限制",value:0},{label:"绘图区域",value:1}],visibleOn:"data.crop",pipeOut:r.valuePipeOut},{type:"fieldSet",title:"图片限制",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-number",name:"limit.width",label:"限制宽度"},{type:"input-number",name:"limit.height",label:"限制高度"},{type:"input-number",name:"limit.maxWidth",label:"限制最大宽度"},{type:"input-number",name:"limit.maxHeight",label:"限制最大高度"},{type:"input-number",name:"limit.minWidth",label:"限制最小宽度"},{type:"input-number",name:"limit.minHeight",label:"限制最小高度"},{type:"input-number",name:"limit.aspectRatio",label:"限制宽高比率"},{type:"input-text",name:"limit.限制最小高度",label:"宽高比描述",description:"当宽高比没有满足条件时,此描述将作为提示信息显示"}]}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.ImageControlPlugin=i,(0,o.registerEditorPlugin)(i)},4659:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KVControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-kv",t.$schema="/schemas/KVControlSchema.json",t.name="KV 键值对",t.isBaseComponent=!0,t.icon="fa fa-eyedropper",t.description="用于编辑键值对类型的数据",t.docLink="/amis/zh-CN/components/form/input-kv",t.tags=["表单项"],t.scaffold={type:"input-kv",label:"KV",name:"kv"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="KV 键值对",t.panelBody=[{type:"input-text",name:"valueType",label:"值类型",pipeIn:(0,r.defaultValue)("input-text")},{type:"input-text",name:"keyPlaceholder",label:"key 的提示信息"},{type:"input-text",name:"valuePlaceholder",label:"value 的提示信息"},{type:"switch",name:"draggable",label:"是否可排序",pipeIn:(0,r.defaultValue)(!0)}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.KVControlPlugin=i,(0,o.registerEditorPlugin)(i)},8803:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MonthControlPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-month",t.$schema="/schemas/MonthControlSchema.json",t.name="Month",t.isBaseComponent=!0,t.icon="fa fa-calendar",t.description="月份选择",t.docLink="/amis/zh-CN/components/form/input-month",t.tags=["表单项"],t.scaffold={type:"input-month",name:"month"},t.previewSchema={type:"form",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="Month",t}return a.__extends(t,e),t}(n(4189).DateControlPlugin);t.MonthControlPlugin=o,(0,r.registerEditorPlugin)(o)},3428:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MonthRangeControlPlugin=void 0;var a=n(752),r=n(1502),o=n(9547),i=n(9756),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-month-range",t.$schema="/schemas/MonthRangeControlSchema.json",t.order=-440,t.icon="fa fa-calendar",t.name="月份范围",t.isBaseComponent=!0,t.description="月份范围选择,可通过minDatemaxDate设定最小、最大日期",t.docLink="/amis/zh-CN/components/form/input-month-range",t.tags=["表单项"],t.scaffold={type:"input-month-range",label:"月份范围",name:"month-range"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="月份范围",t.panelBody=[(0,o.getSchemaTpl)("placeholder",{pipeIn:(0,o.defaultValue)("请选择月份范围")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 moment 中的格式用法。',pipeIn:(0,o.defaultValue)("X")},(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,由于包含开始和结束时间,请用逗号隔开。"},{type:"fieldSet",title:"使用固定值",visibleOn:'typeof this.value !== "undefined"',collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-month-range",name:"value",pipeIn:function(e){return e?e.split(",").map((function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e})):""}}]},(0,o.getSchemaTpl)("clearable",{pipeIn:(0,o.defaultValue)(!0)}),{type:"input-text",name:"minDate",label:"最小日期",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"minDate",pipeIn:function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"maxDate",pipeIn:function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e}}]},{type:"input-text",name:"minDuration",label:"限制最小跨度",description:"比如 2days"},{type:"input-text",name:"maxDuration",label:"限制最大跨度",description:"比如 1year"},{name:"utc",label:"是否使用 UTC 时间",type:"switch",mode:"inline",className:"block"},{name:"clearable",label:"是否可清除",type:"switch",mode:"inline",className:"block"},{name:"embed",label:"是否内嵌模式",type:"switch",mode:"inline",className:"block"}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.MonthRangeControlPlugin=l,(0,i.registerEditorPlugin)(l)},1143:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberControlPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-number",t.$schema="/schemas/NumberControlSchema.json",t.order=-410,t.name="数字框",t.isBaseComponent=!0,t.icon="fa fa-sort-numeric-asc",t.description="支持设定最大值和最小值,以及步长与精度",t.docLink="/amis/zh-CN/components/form/input-number",t.tags=["表单项"],t.scaffold={type:"input-number",label:"数字",name:"number-text"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign(a.__assign({},t.scaffold),{value:88})]},t.panelTitle="数字框",t.panelBody=[(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-number",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},{type:"input-text",name:"min",label:"最小值",description:"请输入数字或使用 \\${xxx} 来获取变量,否则该配置不生效"},{type:"input-text",name:"max",label:"最大值",description:"请输入数字或使用 \\${xxx} 来获取变量,否则该配置不生效"},{type:"input-number",name:"step",label:"步长"},{type:"input-number",name:"precision",label:"小数点精度",min:0,max:100},{type:"input-array",name:"unitOptions",label:"单位选项",items:{type:"input-text"}}],t}return a.__extends(t,e),t}(o.BasePlugin);t.NumberControlPlugin=l,(0,r.registerEditorPlugin)(l)},812:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PasswordControlPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-password",t.$schema="/schemas/TextControlSchema.json",t.name="密码框",t.isBaseComponent=!0,t.icon="fa fa-asterisk",t.description="验证输入是否符合邮箱的格式",t.scaffold={type:"input-password",label:"密码",name:"password"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:a.__assign({},t.scaffold)},t.panelTitle=t.name,t}return a.__extends(t,e),t}(n(9890).TextControlPlugin);t.PasswordControlPlugin=o,(0,r.registerEditorPlugin)(o)},5922:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InputQuarterPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-quarter",t.$schema="/schemas/QuarterControlSchema.json",t.name="Quarter",t.isBaseComponent=!0,t.icon="fa fa-calendar",t.description="季度选择",t.docLink="/amis/zh-CN/components/form/input-quarter",t.tags=["表单项"],t.scaffold={type:"input-quarter",name:"month"},t.previewSchema={type:"form",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="Quarter",t}return a.__extends(t,e),t}(n(4189).DateControlPlugin);t.InputQuarterPlugin=o,(0,r.registerEditorPlugin)(o)},8859:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QuarterRangePlugin=void 0;var a=n(752),r=n(1502),o=n(9547),i=n(9756),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-quarter-range",t.$schema="/schemas/MonthRangeControlSchema.json",t.order=-440,t.icon="fa fa-calendar",t.name="季度范围",t.isBaseComponent=!0,t.description="月份范围选择,可通过minDatemaxDate设定最小、最大日期",t.docLink="/amis/zh-CN/components/form/input-quarter-range",t.tags=["表单项"],t.scaffold={type:"input-quarter-range",label:"季度范围",name:"quarter-range"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="季度范围",t.panelBody=[(0,o.getSchemaTpl)("placeholder",{pipeIn:(0,o.defaultValue)("请选择月份范围")}),{type:"input-text",name:"format",label:"值格式",description:'请参考 moment 中的格式用法。',pipeIn:(0,o.defaultValue)("X")},(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,由于包含开始和结束时间,请用逗号隔开。"},{type:"fieldSet",title:"使用固定值",visibleOn:'typeof this.value !== "undefined"',collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-quarter-range",name:"value",pipeIn:function(e){return e?e.split(",").map((function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e})):""}}]},(0,o.getSchemaTpl)("clearable",{pipeIn:(0,o.defaultValue)(!0)}),{type:"input-text",name:"minDate",label:"最小日期",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"minDate",pipeIn:function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e}}]},{type:"divider"},{type:"input-text",name:"maxDate",label:"最大日期",placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法,同时支持变量如\\${start_date}"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",body:[{type:"input-date",name:"maxDate",pipeIn:function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e}}]},{type:"input-text",name:"minDuration",label:"限制最小跨度",description:"比如 2days"},{type:"input-text",name:"maxDuration",label:"限制最大跨度",description:"比如 1year"},{name:"utc",label:"是否使用 UTC 时间",type:"switch",mode:"inline",className:"block"},{name:"clearable",label:"是否可清除",type:"switch",mode:"inline",className:"block"},{name:"embed",label:"是否内嵌模式",type:"switch",mode:"inline",className:"block"}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.QuarterRangePlugin=l,(0,i.registerEditorPlugin)(l)},6772:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RangeControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-range",t.$schema="/schemas/RangeControlSchema.json",t.name="滑块",t.isBaseComponent=!0,t.icon="fa fa-sliders",t.description="选择某个值或者某个范围",t.docLink="/amis/zh-CN/components/form/input-range",t.tags=["表单项"],t.scaffold={type:"input-range",label:"滑块",name:"range"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="滑块",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-number",name:"value",label:"默认值",validations:"isNumeric",visibleOn:'typeof data.value !== "undefined" && !data.multiple',pipeIn:function(e){return"number"==typeof e?e:0},pipeOut:function(e,t,n){return en.max&&n.max||e}},{type:"combo",name:"value",visibleOn:'typeof data.value !== "undefined" && this.multiple',items:[{type:"input-number",validations:"isNumeric",name:"min",label:"小值"},{type:"input-number",validations:"isNumeric",name:"max",label:"大值"}]},{label:"最小值",name:"min",type:"input-number",value:0},{label:"最大值",name:"max",type:"input-number",value:100},{label:"步长",name:"step",type:"input-number",value:1},{type:"input-text",name:"unit",label:"单位",value:""},{type:"switch",name:"showInput",mode:"inline",label:"是否显示输入框",value:!1},(0,r.getSchemaTpl)("clearable"),(0,r.getSchemaTpl)("multiple",{pipeIn:(0,r.defaultValue)(!1)}),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter")],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.RangeControlPlugin=i,(0,o.registerEditorPlugin)(i)},5489:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RatingControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-rating",t.$schema="/schemas/RatingControlSchema.json",t.name="评分",t.isBaseComponent=!0,t.icon="fa fa-star-o",t.description="支持只读、半星选择",t.docLink="/amis/zh-CN/components/form/input-rating",t.tags=["表单项"],t.scaffold={type:"input-rating",label:"评分",name:"rating"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign(a.__assign({},t.scaffold),{value:3})]},t.panelTitle="评分",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-number",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},{label:"最大值",name:"count",type:"input-number",value:5},{type:"switch",name:"half",mode:"inline",className:"w-full",label:"允许半星",value:!1},{type:"switch",name:"allowClear",mode:"inline",className:"w-full",label:"可清除",description:"是否允许再次点击后清除",value:!1},(0,r.getSchemaTpl)("className",{label:"描述 CSS 类名",name:"descriptionClassName",visibleOn:"data.description"})],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.RatingControlPlugin=i,(0,o.registerEditorPlugin)(i)},8087:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-repeat",t.$schema="/schemas/RepeatControlSchema.json",t.name="重复周期选择",t.isBaseComponent=!0,t.icon="fa fa-repeat",t.description="选择重复的频率,如每时、每天、每周等",t.docLink="/amis/zh-CN/components/form/input-repeat",t.tags=["表单项"],t.scaffold={type:"input-repeat",label:"周期",name:"repeat"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="周期",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},{name:"options",type:"select",label:"启用单位",options:"secondly,minutely,hourly,daily,weekdays,weekly,monthly,yearly".split(","),value:"hourly,daily,weekly,monthly",multiple:!0}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.RepeatControlPlugin=i,(0,o.registerEditorPlugin)(i)},8987:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-rich-text",t.$schema="/schemas/RichTextControlSchema.json",t.name="富文本编辑器",t.isBaseComponent=!0,t.icon="fa fa-newspaper-o",t.description="可自定义富文本的配置栏",t.docLink="/amis/zh-CN/components/form/input-rich-text",t.tags=["表单项"],t.scaffold={type:"input-rich-text",label:"富文本",name:"rich-text"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="富文本",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"textarea",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("api",{name:"receiver",label:"文件接收接口",value:"/api/upload/image",__isUpload:!0}),{type:"select",name:"vendor",label:"编辑器类型",value:"tinymce",options:["tinymce","froala"]},(0,r.getSchemaTpl)("fieldSet",{title:"froala 设置项",visibleOn:'data.vendor === "froala"',body:[{type:"combo",name:"options",noBorder:!0,multiLine:!0,items:[{type:"select",name:"language",label:"语言",labelRemark:"鼠标覆盖配置栏中配置时显示的提示语言",defaultValue:"zh_cn",options:[{label:"中文",value:"zh_cn"},{label:"英文",value:"en_us"}]},{type:"textarea",name:"toolbarButtons",label:"大屏时展示的配置项",labelRemark:"屏幕宽度 ≥ 1200px",description:'使用空格分开配置,使用|可将配置栏分组,参考文档',minRows:5,value:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertEmotion","insertTable","|","undo","redo","html"],pipeIn:function(e){return Array.isArray(e)?e.join(" "):""},pipeOut:function(e){return e.replace(/\s+/g," ").split(" ")}},{type:"textarea",name:"toolbarButtonsMD",label:"中屏时展示的配置项",labelRemark:"屏幕宽度 ≥ 992px",description:'使用空格分开配置,使用|可将配置栏分组,参考文档',minRows:5,pipeIn:function(e){return Array.isArray(e)?e.join(" "):""},pipeOut:function(e){return e.replace(/\s+/g," ").split(" ")}},{type:"textarea",name:"toolbarButtonsSM",label:"小屏时展示的配置项",labelRemark:"屏幕宽度 ≥ 768px",description:'使用空格分开配置,使用|可将配置栏分组,参考文档',minRows:5,pipeIn:function(e){return Array.isArray(e)?e.join(" "):""},pipeOut:function(e){return e.replace(/\s+/g," ").split(" ")}}]}]}),(0,r.getSchemaTpl)("fieldSet",{title:"tinymce 设置项",visibleOn:'data.vendor === "tinymce"',body:[{type:"combo",name:"options",noBorder:!0,multiLine:!0,items:[{type:"switch",label:"是否显示菜单栏",value:"true",name:"menubar"},{type:"input-number",label:"高度",min:0,value:400,name:"height"},{type:"textarea",name:"plugins",label:"启用的插件",description:'使用空格分开配置,参考文档',value:"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking table emoticons template paste help"},{type:"textarea",name:"toolbar",label:"工具栏",value:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | help"}]}]})],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.RichTextControlPlugin=i,(0,o.registerEditorPlugin)(i)},4560:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubFormControlPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(3570),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-sub-form",t.$schema="/schemas/SubFormControlSchema.json",t.name="子表单项",t.isBaseComponent=!0,t.icon="fa fa-window-restore",t.description="SubForm, 配置一个子form作为当前的表单项",t.docLink="/amis/zh-CN/components/form/input-sub-form",t.tags=["表单项"],t.scaffold={type:"input-sub-form",name:"subform",label:"子表单",form:{title:"标题",body:[{type:"input-text",label:"文本",name:"text"}]}},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="子表单项",t.panelBodyCreator=function(e){return[{children:function(n){return n.value,n.onChange,o.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置成员渲染器")}},{name:"labelField",type:"input-text",value:"label",label:"名称字段名",description:"当值中存在这个字段,则按钮名称将使用此字段的值来展示。"},{name:"btnLabel",label:"按钮标签名",value:"设置",type:"input-text"},{name:"minLength",visibleOn:"data.multiple",label:"允许最少个数",type:"input-number"},{name:"maxLength",visibleOn:"data.multiple",label:"允许最多个数",type:"input-number"}]},t}return a.__extends(t,e),t.prototype.filterProps=function(e){return(e=(0,s.JSONPipeOut)(e)).value||(e.value=[""]),e},t.prototype.buildEditorToolbar=function(e,t){var n=e.id;"input-sub-form"===e.info.renderer.name&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置成员渲染器",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id;e.schema,e.region,"input-sub-form"===e.info.renderer.name&&t.push("|",{label:"配置成员渲染器",onSelect:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),o=n.getValueOf(e);if(r&&o){var i=o.form,l=i.title,u=i.actions,d=i.name,c=i.size,p=i.closeOnEsc,f=i.showCloseButton,m=i.bodyClassName,h=(i.type,a.__rest(i,["title","actions","name","size","closeOnEsc","showCloseButton","bodyClassName","type"])),v={title:l,actions:u,name:d,size:c,closeOnEsc:p,showCloseButton:f,bodyClassName:m,type:"dialog",body:a.__assign({type:"form"},h)};this.manager.openSubEditor({title:"配置子表单项",value:v,memberImmutable:["body"],onChange:function(e){var n=e.body[0];delete(e=a.__assign(a.__assign({},o),{form:n})).form.type,t.panelChangeValue(e,(0,s.diff)(o,e))}})}},t}(l.BasePlugin);t.SubFormControlPlugin=u,(0,i.registerEditorPlugin)(u)},8332:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableControlPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(8579)),i=n(9547),l=n(9756),s=n(9933),u=n(3893),d=n(3570),c=n(6374),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-table",t.$schema="/schemas/TableControlSchema.json",t.name="表格编辑框",t.isBaseComponent=!0,t.icon="fa fa-table",t.description="可以用来展现数据的,可以用来展示数组类型的数据,比如 multiple 的子 form",t.docLink="/amis/zh-CN/components/form/input-table",t.tags=["表单项"],t.scaffold={type:"input-table",name:"table",label:"表格表单",columns:[{label:"color",name:"color",quickEdit:{type:"input-color"}},{label:"说明文字",name:"name",quickEdit:{type:"input-text",mode:"inline"}}],strictMode:!0},t.regions=[{key:"columns",label:"列集合",renderMethod:"renderTableContent",preferTag:"展示",dndMode:"position-h"}],t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:a.__assign(a.__assign({},t.scaffold),{value:[{color:"green",name:"绿色"}]})},t.scaffoldForm={title:"快速构建表格",body:[{name:"columns",type:"combo",multiple:!0,label:!1,addButtonText:"新增一列",draggable:!0,items:[{type:"input-text",name:"label",placeholder:"标题"},{type:"input-text",name:"name",placeholder:"绑定字段名"},{type:"select",name:"type",placeholder:"类型",value:"input-text",options:[{value:"text",label:"纯文本"},{value:"tpl",label:"模板"},{value:"image",label:"图片"},{value:"date",label:"日期"},{value:"progress",label:"进度"},{value:"status",label:"状态"},{value:"mapping",label:"映射"},{value:"operation",label:"操作栏"}]}]}],canRebuild:!0},t.panelTitle="表格编辑",t.panelBodyCreator=function(e){return e.schema.type,(0,i.getSchemaTpl)("tabs",[{title:"常规",body:(0,o.default)([(0,i.getSchemaTpl)("formItemName",{required:!0}),(0,i.getSchemaTpl)("label"),(0,i.getSchemaTpl)("description"),{label:"是否可新增",type:"switch",name:"addable",mode:"inline",className:"w-full"},{type:"input-text",name:"addBtnLabel",label:"增加按钮名称",visibleOn:"data.addable",pipeIn:(0,i.defaultValue)("")},{name:"addBtnIcon",label:"增加按钮图标",type:"icon-picker",visibleOn:"data.addable"},(0,i.getSchemaTpl)("api",{name:"addApi",label:"新增时提交的 API",visibleOn:"data.addable"}),{label:"是否可删除",type:"switch",name:"removable",mode:"inline",className:"w-full"},{type:"input-text",name:"deleteBtnLabel",label:"删除按钮名称",visibleOn:"data.removable",pipeIn:(0,i.defaultValue)("")},{name:"deleteBtnIcon",label:"删除按钮图标",type:"icon-picker",visibleOn:"data.removable"},(0,i.getSchemaTpl)("api",{name:"deleteApi",label:"删除时提交的 API",visibleOn:"data.removable"}),{label:"是否可编辑",type:"switch",name:"editable",mode:"inline",className:"w-full"},{type:"input-text",name:"editBtnLabel",label:"编辑按钮名称",visibleOn:"data.editable",pipeIn:(0,i.defaultValue)("")},{name:"editBtnIcon",label:"编辑按钮图标",type:"icon-picker",visibleOn:"data.editable"},{label:"是否可复制",type:"switch",name:"copyable",mode:"inline",className:"w-full"},{type:"input-text",name:"copyBtnLabel",label:"复制按钮名称",visibleOn:"data.copyable",pipeIn:(0,i.defaultValue)("")},{name:"copyBtnIcon",label:"复制按钮图标",type:"icon-picker",visibleOn:"data.copyable"},(0,i.getSchemaTpl)("api",{name:"updateApi",label:"修改时提交的 API",visibleOn:"data.editable"}),{type:"input-text",name:"confirmBtnLabel",label:"确认编辑按钮名称",visibleOn:"data.editable",pipeIn:(0,i.defaultValue)("")},{name:"confirmBtnIcon",label:"确认编辑按钮图标",type:"icon-picker",visibleOn:"data.editable"},{type:"input-text",name:"cancelBtnLabel",label:"取消编辑按钮名称",visibleOn:"data.editable",pipeIn:(0,i.defaultValue)("")},{name:"cancelBtnIcon",label:"取消编辑按钮图标",type:"icon-picker",visibleOn:"data.editable"},{label:"是否可拖拽排序",type:"switch",name:"draggable",mode:"inline",className:"w-full"},{label:"确认模式",type:"switch",name:"needConfirm",mode:"inline",className:"w-full"},{label:"严格模式",type:"switch",name:"strictMode",value:!0,mode:"inline",className:"w-full"},{label:"获取父级数据",labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:'配置"canAccessSuperData": true 同时配置 "strictMode": false 开启此特性,初始会自动映射父级数据域的同名变量。需要注意的是,这里只会初始会映射,一旦修改过就是当前行数据为主了。也就是说,表单项类型的,只会起到初始值的作用',placement:"left"},type:"switch",onChange:function(e,t,n,a){e&&!t?a.setValues({strictMode:!1}):a.setValues({strictMode:!0})},name:"canAccessSuperData",mode:"inline",className:"w-full"}])},{title:"外观",body:[(0,i.getSchemaTpl)("formItemMode"),(0,i.getSchemaTpl)("horizontalMode"),(0,i.getSchemaTpl)("horizontal",{label:"",visibleOn:'(data.$$formMode == "horizontal" || data.mode == "horizontal") && data.label !== false && data.horizontal'}),(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("className",{label:"Label CSS 类名",name:"labelClassName"}),(0,i.getSchemaTpl)("className",{label:"Input CSS 类名",name:"inputClassName"}),(0,i.getSchemaTpl)("className",{label:"描述 CSS 类名",name:"descriptionClassName",visibleOn:"data.description"})]},{title:"显隐",body:[(0,i.getSchemaTpl)("disabled"),(0,i.getSchemaTpl)("visible")]},{title:"其他",body:[(0,i.getSchemaTpl)("required"),(0,i.getSchemaTpl)("validateOnChange"),(0,i.getSchemaTpl)("submitOnChange")]}])},t}return a.__extends(t,e),t.prototype.filterProps=function(e){var t=Array.isArray(e.value)?e.value:"string"==typeof e.source?(0,r.resolveVariable)(e.source,e.data):(0,r.resolveVariable)("items",e.data);if(Array.isArray(t)&&t.length)e.value=t.slice(0,10);else{var n={};Array.isArray(e.columns)&&e.columns.forEach((function(e){e.name&&(0,u.setVariable)(n,e.name,(0,c.mockValue)(e))})),e.value=(0,d.repeatArray)(n,1).map((function(e,t){return a.__assign(a.__assign({},e),{id:t+1})}))}return e},t.prototype.beforeInsert=function(e){var t,n,r,o,i=e.context;i.info.plugin!==this&&(null===(t=i.node.sameIdChild)||void 0===t?void 0:t.info.plugin)!==this||"columns"!==i.region||(i.data=a.__assign(a.__assign({},i.data),{label:null!==(o=null!==(n=i.data.label)&&void 0!==n?n:null===(r=i.subRenderer)||void 0===r?void 0:r.name)&&void 0!==o?o:"列名称"}))},t}(s.BasePlugin);t.TableControlPlugin=p,(0,l.registerEditorPlugin)(p)},9114:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TagControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-tag",t.$schema="/schemas/TagControlSchema.json",t.order=-420,t.name="标签",t.isBaseComponent=!0,t.icon="fa fa-tag",t.description="配置options可以实现选择选项",t.docLink="/amis/zh-CN/components/form/input-tag",t.tags=["表单项"],t.scaffold={type:"input-tag",label:"标签",name:"tag",options:["红色","绿色","蓝色"]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:a.__assign(a.__assign({},t.scaffold),{value:"红色"})},t.panelTitle="标签",t.panelBody=[{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("clearable"),(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,r.getSchemaTpl)("options",{visibleOn:"data.autoComplete !== false",description:"设置选项后,输入时会下拉这些选项供用户参考。"}),(0,r.getSchemaTpl)("source",{visibleOn:"data.autoComplete !== false"}),{type:"input-text",name:"optionsTip",label:"选项提示",value:"最近您使用的标签"},(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]})],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.TagControlPlugin=i,(0,o.registerEditorPlugin)(i)},9890:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextControlPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-text",t.$schema="/schemas/TextControlSchema.json",t.order=-500,t.name="文本框",t.isBaseComponent=!0,t.icon="fa fa-terminal",t.description="配置options可以实现选择选项,效果同select",t.docLink="/amis/zh-CN/components/form/input-text",t.tags=["表单项"],t.scaffold={type:"input-text",label:"文本",name:"text"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:[a.__assign({},t.scaffold)]},t.panelTitle="文本框",t.panelBody=[(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,i.getSchemaTpl)("hint"),(0,i.getSchemaTpl)("showCounter"),{name:"addOn",label:"启用 addOn",type:"switch",mode:"inline",className:"w-full",pipeIn:function(e){return!!e},pipeOut:function(e){return e?{label:"按钮",type:"button"}:null}},{type:"combo",multiLine:!0,name:"addOn",visibleOn:"data.addOn",items:[{name:"type",label:"类型",type:"button-group-select",size:"xs",options:[{label:"文本",value:"text"},{label:"按钮",value:"button"},{label:"提交",value:"submit"}]},{name:"label",label:"文字",type:"input-text",visibleOn:'this.type === "text"'},{name:"icon",label:"Icon",type:"icon-picker",visibleOn:'this.type === "text"'},(0,i.getSchemaTpl)("className",{visibleOn:'this.type === "text"'}),{name:"position",label:"位置",type:"button-group-select",size:"xs",pipeIn:(0,i.defaultValue)("right"),options:[{label:"左边",value:"left"},{label:"右边",value:"right"}]}]},{name:"autoComplete",label:"自动补全",mode:"inline",className:"w-full",type:"switch",pipeIn:function(e){return!1!==e},pipeOut:function(e){return!!e&&""},onChange:function(e,t,n,a){""===t||t?a.setValues({__options:a.data.options,options:[]}):a.setValues({options:a.data.__options})}},(0,i.getSchemaTpl)("options",{visibleOn:"data.autoComplete !== false",description:"设置选项后,输入时会下拉这些选项供用户参考。"}),(0,i.getSchemaTpl)("source",{visibleOn:"data.autoComplete !== false"}),(0,i.getSchemaTpl)("api",{name:"autoComplete",label:"自动补全接口",description:"每次输入新内容后,将调用接口,根据接口返回更新选项。当前用户输入值在 `\\${term}` 中。",visibleOn:"data.autoComplete !== false"}),(0,i.getSchemaTpl)("multiple",{visibleOn:"data.options || data.source || data.autoComplete"}),(0,i.getSchemaTpl)("joinValues"),(0,i.getSchemaTpl)("delimiter"),(0,i.getSchemaTpl)("extractValue"),(0,i.getSchemaTpl)("autoFill")],t}return a.__extends(t,e),t}(o.BasePlugin);t.TextControlPlugin=l,(0,r.registerEditorPlugin)(l)},1533:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeControlPlugin=void 0;var a=n(752),r=n(1502),o=n(9547),i=n(9756),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-time",t.$schema="/schemas/TimeControlSchema.json",t.name="时间框",t.isBaseComponent=!0,t.icon="fa fa-clock-o",t.description="时分秒输入",t.docLink="/amis/zh-CN/components/form/input-time",t.tags=["表单项"],t.scaffold={type:"input-time",label:"时间",name:"time"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:a.__assign({},t.scaffold)},t.panelTitle="时间框",t.panelBody=[(0,o.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"',placeholder:"请输入相对值",description:"支持 now、+1day、-2weeks这种相对值用法"},{type:"fieldSet",title:"使用固定值",collapsed:!0,collapsable:!0,className:"fieldset",visibleOn:'typeof this.value !== "undefined"',body:[{type:"input-time",name:"value",pipeIn:function(e){return r.relativeValueRe.test(e)||~["now","today"].indexOf(e)?"":e}}]},{type:"input-text",name:"timeFormat",label:"值格式",description:'请参考 moment 中的格式用法。',pipeIn:(0,o.defaultValue)("HH:mm")},(0,o.getSchemaTpl)("clearable",{pipeIn:(0,o.defaultValue)(!0)}),{type:"input-text",name:"inputFormat",label:"显示格式",description:'请参考 moment 中的格式用法。',pipeIn:(0,o.defaultValue)("HH:mm")}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.TimeControlPlugin=l,(0,i.registerEditorPlugin)(l)},8936:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TreeControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-tree",t.$schema="/schemas/TreeControlSchema.json",t.name="树选择框",t.isBaseComponent=!0,t.icon="fa fa-list-alt",t.description="树型结构来选择,可通过options来配置选项,也可通过source拉取选项",t.docLink="/amis/zh-CN/components/form/input-tree",t.tags=["表单项"],t.scaffold={type:"input-tree",label:"树选择框",name:"tree",options:[{label:"选项A",value:"A",children:[{label:"选项C",value:"C"},{label:"选项D",value:"D"}]},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:a.__assign({},t.scaffold)},t.panelTitle="树选择",t.panelDefinitions={options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"group",body:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]}},t.panelBody=[(0,r.getSchemaTpl)("tabs",[{title:"常规",body:[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[{$ref:"options",name:"options"},(0,r.getSchemaTpl)("source",{sampleBuilder:function(e){return JSON.stringify({status:0,msg:"",data:{options:[{label:"选项A",value:"a",children:[{label:"子选项",value:"c"}]},{label:"选项B",value:"b"}]}},null,2)}}),{label:"隐藏顶级",name:"hideRoot",type:"switch",mode:"inline",className:"w-full"},{name:"showIcon",label:"是否显示图标",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},(0,r.getSchemaTpl)("multiple"),{name:"cascade",visibleOn:"data.multiple",label:"不自动选中子节点?",type:"switch",description:"选中父级时,孩子节点是否自动选中",mode:"inline",className:"w-full"},{name:"withChildren",visibleOn:"data.cascade !== true && data.multiple",label:"数值是否携带子节点",type:"switch",disabledOn:"data.onlyChildren",mode:"inline",className:"w-full"},{name:"onlyChildren",visibleOn:"data.cascade !== true && data.multiple",label:"数值是否只包含子节点",disabledOn:"data.withChildren",type:"switch",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]})]},{title:"外观",body:[{label:"顶级文字",name:"rootLabel",type:"input-text",pipeIn:(0,r.defaultValue)("顶级"),visibleOn:"data.hideRoot !== true"},{name:"showIcon",label:"是否显示图标",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{label:"是否显示单选按钮",name:"showRadio",type:"switch",mode:"inline",className:"w-full",visibleOn:"!data.multiple"}]}])],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.TreeControlPlugin=i,(0,o.registerEditorPlugin)(i)},3581:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.URLControlPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-url",t.$schema="/schemas/TextControlSchema.json",t.name="URL输入框",t.isBaseComponent=!0,t.icon="fa fa-link",t.description="验证输入是否为合法的 URL",t.docLink="/amis/zh-CN/components/form/input-url",t.scaffold={type:"input-url",label:"链接",name:"url"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:a.__assign({},t.scaffold)},t.panelTitle="URL",t}return a.__extends(t,e),t}(n(9890).TextControlPlugin);t.URLControlPlugin=o,(0,r.registerEditorPlugin)(o)},4950:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.YearControlPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="input-year",t.$schema="/schemas/YearControlSchema.json",t.name="Year",t.isBaseComponent=!0,t.icon="fa fa-calendar",t.description="年选择",t.docLink="/amis/zh-CN/components/form/input-year",t.tags=["表单项"],t.scaffold={type:"input-year",name:"year"},t.previewSchema={type:"form",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="Year",t}return a.__extends(t,e),t}(n(4189).DateControlPlugin);t.YearControlPlugin=o,(0,r.registerEditorPlugin)(o)},3482:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ItemPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=a.__importDefault(n(6918)),s=n(3570),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.panelTitle="表单项",t.panelBodyCreator=function(e){var t=~["button","submit","reset"].indexOf(e.schema.type),n=~["button-toobar","container","fieldSet","group","grid","hbox","input-group","panel","service","tabs","table","elevator","static"].indexOf(e.schema.type),a=~["switch","wizard","diff-editor","editor","input-rating","input-text","textarea"].indexOf(e.schema.type),r=!!~["input-group"].indexOf(e.schema.type),o=e.schema.autoFillApi,l=e.info.renderer;return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[t?null:(0,i.getSchemaTpl)("formItemName",{required:!n}),!1!==l.renderLabel?(0,i.getSchemaTpl)("label"):null,a?{type:"switch",name:"readOnly",label:"只读模式",mode:"inline",className:"w-full"}:null,{type:"switch",name:"disabled",label:"禁用",mode:"inline",className:"w-full"},r?null:(0,i.getSchemaTpl)("required"),(0,i.getSchemaTpl)("description"),(0,i.getSchemaTpl)("placeholder"),(0,i.getSchemaTpl)("remark"),!1!==l.renderLabel?(0,i.getSchemaTpl)("labelRemark"):null,o?(0,i.getSchemaTpl)("autoFillApi"):null]},{title:"外观",body:[(0,i.getSchemaTpl)("formItemMode"),(0,i.getSchemaTpl)("horizontalMode"),(0,i.getSchemaTpl)("horizontal",{label:"",visibleOn:'data.mode == "horizontal" && data.label !== false && data.horizontal'}),!1!==l.sizeMutable?(0,i.getSchemaTpl)("formItemSize"):null,(0,i.getSchemaTpl)("formItemInline"),(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("className",{label:"Label CSS 类名",name:"labelClassName"}),(0,i.getSchemaTpl)("className",{label:"控件 CSS 类名",name:"inputClassName"}),(0,i.getSchemaTpl)("className",{label:"描述 CSS 类名",name:"descriptionClassName",visibleOn:"this.description"})]},{title:"显隐",body:[(0,i.getSchemaTpl)("disabled"),(0,i.getSchemaTpl)("visible"),{type:"switch",name:"clearValueOnHidden",label:"隐藏时删除表单项值",mode:"inline",className:"w-full",disabledOn:'typeof this.visible === "boolean"'}]},r?null:{title:"验证",body:[(0,i.getSchemaTpl)("validations"),(0,i.getSchemaTpl)("validationErrors"),(0,i.getSchemaTpl)("validateOnChange"),(0,i.getSchemaTpl)("submitOnChange"),(0,i.getSchemaTpl)("api",{name:"validateApi",label:"校验接口",description:"单独校验这个表单项的接口"})]}])]},t}return a.__extends(t,e),t.prototype.buildEditorPanel=function(e,t){var n=e.info.renderer;e.selections.length||!e.info.hostId&&(null==n?void 0:n.isFormItem)&&t.push({key:"form-item",icon:"fa fa-desktop",title:this.panelTitle,render:this.manager.makeSchemaFormRender({body:this.panelBodyCreator(e)}),order:-200})},t.prototype.onDndAccept=function(e){var t=e.context,n=this.manager.store;if("schema"===t.sourceType){var a=n.getNodeById(t.sourceId);"body"!==(null==a?void 0:a.parentRegion)||"body"===t.targetRegion||~["button","reset","submit"].indexOf(t.data.type)||e.preventDefault()}},t.prototype.afterUpdate=function(e){var t,n,a=e.context;if(/\$/.test(a.info.renderer.name)&&(null===(t=a.diff)||void 0===t?void 0:t.some((function(e){var t;return"value"===(null===(t=e.path)||void 0===t?void 0:t.join("."))})))){var r=(0,l.default)(a.diff,(function(e){var t;return"value"===(null===(t=e.path)||void 0===t?void 0:t.join("."))})),o=null===(n=this.manager.store.getNodeById(a.id))||void 0===n?void 0:n.getComponent();null==o||o.props.onChange(null==r?void 0:r.rhs)}},t.prototype.beforeReplace=function(e){var t=e.context;t.info.renderer.isFormItem&&t.data&&t.subRenderer&&!~t.subRenderer.tags.indexOf("表单项")&&~t.subRenderer.tags.indexOf("展示")&&(t.data=a.__assign(a.__assign({},t.data),{type:"static-".concat(t.data.type),label:t.data.label||t.schema.label,name:t.data.name||t.schema.name})),t.schema&&(t.data.name=t.schema.name||t.data.name)},t.prototype.buildEditorContextMenu=function(e,t){var n=this,r=(e.id,e.schema,e.region,e.selections);if(r.length&&!(r.length>3)){var o=r.concat(),i=o.shift().node.parent;o.some((function(e){var t;return e.node.parent!==i||!(null===(t=e.info.renderer)||void 0===t?void 0:t.isFormItem)}))||t.unshift({label:"合成一行",icon:"merge-icon",onSelect:function(){var e=n.manager.store,t=r.concat(),o=t.shift(),i=e.schema,l=[a.__assign({},o.schema)];delete l[0].$$id,t.forEach((function(e){l.push(e.node.schema),i=(0,s.JSONDelete)(i,e.id)}));var u=(0,s.JSONPipeIn)({type:"group",body:l});i=(0,s.JSONUpdate)(i,o.id,u,!0),e.traceableSetSchema(i),setTimeout((function(){e.setActiveId(o.id)}),40)}},"|")}},t}(o.BasePlugin);t.ItemPlugin=u,(0,r.registerEditorPlugin)(u)},8952:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="list-select",t.$schema="/schemas/ListControlSchema.json",t.order=-430,t.name="列表选择",t.isBaseComponent=!0,t.icon="fa fa-ellipsis-h",t.description="单选或者多选,支持source拉取选项,选项可配置图片,也可以自定义HTML配置",t.docLink="/amis/zh-CN/components/form/list-select",t.tags=["表单项"],t.scaffold={type:"list-select",label:"列表",name:"list",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign(a.__assign({},t.scaffold),{value:"A"})]},t.panelTitle="列表选择",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"list-select",name:"value",label:"默认值",description:"请填入选项 Options 中 value 值",source:"${options}",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,r.getSchemaTpl)("multiple"),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("options"),(0,r.getSchemaTpl)("source")]})],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.ListControlPlugin=i,(0,o.registerEditorPlugin)(i)},1803:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocationControlPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="location-picker",t.$schema="/schemas/LocationControlSchema.json",t.name="地理位置选择",t.isBaseComponent=!0,t.icon="fa fa-location-arrow",t.description="地理位置选择",t.docLink="/amis/zh-CN/components/form/location-picker",t.tags=["表单项"],t.scaffold={type:"location-picker",name:"location"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="地理位置选择",t.panelBody=[{name:"clearable",label:"是否可清除",type:"switch",mode:"inline",className:"block"},{type:"input-text",name:"ak",label:"百度地图的 AK",description:'请从百度地图开放平台获取'},{type:"select",name:"coordinatesType",label:"坐标格式",value:"bd09",options:[{label:"百度坐标",value:"bd09"},{label:"国测局坐标",value:"gcj02"}]}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.LocationControlPlugin=o,(0,r.registerEditorPlugin)(o)},6489:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MatrixControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="matrix-checkboxes",t.$schema="/schemas/MatrixControlSchema.json",t.name="矩阵开关",t.isBaseComponent=!0,t.icon="fa fa-th-large",t.description="可配置行单选,列单选,以及全部选项只能单选或者全部选项多选",t.docLink="/amis/zh-CN/components/form/matrix-checkboxes",t.tags=["表单项"],t.scaffold={type:"matrix-checkboxes",name:"matrix",label:"矩阵开关",rowLabel:"行标题说明",columns:[{label:"列1"},{label:"列2"}],rows:[{label:"行1"},{label:"行2"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="矩阵开关",t.panelBody=[(0,r.getSchemaTpl)("api",{name:"source",label:"获取矩阵数据接口"}),(0,r.getSchemaTpl)("multiple",{value:!0}),{type:"button-group-select",name:"singleSelectMode",label:"单选模式",description:"行级、列级或者单个单元单选",size:"xs",mode:"inline",className:"w-full",visibleOn:"!this.multiple",options:[{label:"行级",value:"row"},{label:"列级",value:"column"},{label:"单个单元",value:"cell"}],pipeIn:(0,r.defaultValue)("column")},(0,r.getSchemaTpl)("fieldSet",{title:"矩阵配置",body:[{label:"列配置",name:"columns",type:"combo",multiple:!0,addButtonText:"添加一列",scaffold:{label:"列说明"},items:[{type:"input-text",name:"label",placeholder:"列说明"}]},{name:"rowLabel",label:"行标题文字",type:"input-text"},{label:"行配置",name:"rows",type:"combo",multiple:!0,scaffold:{label:"行说明"},addButtonText:"添加一行",items:[{type:"input-text",name:"label",placeholder:"行说明"}]}]})],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.MatrixControlPlugin=i,(0,o.registerEditorPlugin)(i)},7798:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NestedSelectControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="nested-select",t.$schema="/schemas/NestedSelectControlSchema.json",t.name="嵌套下拉框",t.isBaseComponent=!0,t.icon="fa fa-indent",t.description="适用于选项中含有子项,可通过source拉取选项,支持多选",t.docLink="/amis/zh-CN/components/form/nestedselect",t.tags=["表单项"],t.scaffold={type:"nested-select",label:"嵌套下拉框",name:"nestedSelect",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B",children:[{label:"选项C",value:"C"},{label:"选项D",value:"D"}]}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="嵌套下拉",t.panelDefinitions={options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"group",body:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]}},t.panelBody=[(0,r.getSchemaTpl)("tabs",[{title:"常规",body:[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("clearable"),{type:"switch",name:"searchable",label:"可否检索",mode:"inline",className:"w-full"},{type:"input-text",name:"searchPromptText",label:"搜索框占位文本"},{type:"input-text",name:"noResultsText",label:"无结果时的文本"},{type:"switch",name:"hideNodePathLabel",label:"隐藏选中节点的祖先节点文本信息",mode:"inline",className:"w-full"},{type:"switch",name:"enableNodePath",label:"节点路径模式",mode:"inline",className:"w-full"},{type:"switch",name:"onlyChildren",label:"选中父节点时只使用子节点的值",mode:"inline",className:"w-full"},{type:"input-text",name:"pathSeparator",visibleOn:"this.enableNodePath",label:"节点路径的分隔符"},(0,r.getSchemaTpl)("borderMode"),(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[{$ref:"options",name:"options"},(0,r.getSchemaTpl)("api",{name:"source",label:"获取选项接口"}),(0,r.getSchemaTpl)("multiple"),{name:"cascade",visibleOn:"data.multiple",label:"不自动选中子节点?",description:"选中父级时,孩子节点是否自动选中",type:"switch",mode:"inline",className:"w-full"},{name:"withChildren",visibleOn:"data.cascade !== true && data.multiple",label:"数值是否携带子节点",type:"switch",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]})]},{title:"外观",body:[(0,r.getSchemaTpl)("className",{label:"菜单类名",name:"menuClassName"})]}])],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.NestedSelectControlPlugin=i,(0,o.registerEditorPlugin)(i)},2125:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PickerControlPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=n(9547),l=n(9756),s=n(9933),u=n(3570),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="picker",t.$schema="/schemas/PickerControlSchema.json",t.name="列表选取",t.isBaseComponent=!0,t.icon="fa fa-window-restore",t.description="通过pickerSchema配置可供选取的数据源进行选择需要的数据,支持多选",t.docLink="/amis/zh-CN/components/form/picker",t.tags=["表单项"],t.scaffold={type:"picker",label:"列表选取",name:"picker",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="列表选取",t.panelBodyCreator=function(e){return[{type:"switch",name:"embed",mode:"inline",className:"w-full",label:"开启内嵌模式"},(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,i.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,i.getSchemaTpl)("options"),(0,i.getSchemaTpl)("api",{name:"source",label:"获取选项接口"}),{children:r.default.createElement(o.Button,{size:"sm",level:"danger",className:"m-b",onClick:t.editDetail.bind(t,e.id),block:!0},"配置选框详情")},{label:"labelTpl",type:"textarea",name:"labelTpl",labelRemark:"已选定数据的展示样式",description:'支持使用 \\${xxx} 来获取变量,或者用 lodash.template 语法来写模板逻辑。详情'},{type:"button-group-select",name:"modalMode",label:"选框类型",value:"dialog",size:"xs",options:[{label:"弹框",value:"dialog"},{label:"抽出式弹框",value:"drawer"}]},(0,i.getSchemaTpl)("multiple"),(0,i.getSchemaTpl)("joinValues"),(0,i.getSchemaTpl)("delimiter"),(0,i.getSchemaTpl)("extractValue"),(0,i.getSchemaTpl)("autoFill")]})]},t}return a.__extends(t,e),t.prototype.buildEditorToolbar=function(e,t){var n=e.id;e.info.renderer.name===this.rendererName&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置选框详情",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id;e.schema,e.region,e.info.renderer.name===this.rendererName&&t.push("|",{label:"配置选框详情",onSelect:this.editDetail.bind(this,n)})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),o=n.getValueOf(e);if(r&&o){var i=r.getComponent(),l=a.__assign(a.__assign({type:"crud",mode:"list"},o.pickerSchema||{listItem:{title:"${label}"}}),{api:o.source,pickerMode:!0,multiple:o.multiple});this.manager.openSubEditor({title:"配置选框详情",value:l,data:{options:i.props.options},onChange:function(e){delete(e=a.__assign(a.__assign({},o),{pickerSchema:a.__assign({},e),source:e.api})).pickerSchema.api,delete e.pickerSchema.type,delete e.pickerSchema.pickerMode,delete e.pickerSchema.multiple,t.panelChangeValue(e,(0,u.diff)(o,e))}})}},t}(s.BasePlugin);t.PickerControlPlugin=d,(0,l.registerEditorPlugin)(d)},4715:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RadiosControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="radios",t.$schema="/schemas/RadiosControlSchema.json",t.order=-460,t.name="单选框",t.isBaseComponent=!0,t.icon="fa fa-dot-circle-o",t.description="通过options配置选项,可通过source拉取选项",t.docLink="/amis/zh-CN/components/form/radios",t.tags=["表单项"],t.scaffold={type:"radios",label:"单选框",name:"radios",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign(a.__assign({},t.scaffold),{value:"A"})]},t.panelTitle="单选框",t.panelBody=[(0,r.getSchemaTpl)("tabs",[{title:"常规",body:[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"radios",name:"value",label:"默认值",source:"${options}",visibleOn:'typeof this.value !== "undefined"',multiple:!0},{label:"是否默认选择第一个",name:"selectFirst",type:"switch",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,r.getSchemaTpl)("options"),(0,r.getSchemaTpl)("source"),(0,r.getSchemaTpl)("joinValues",{visibleOn:!0}),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]})]},{title:"外观",body:[{label:"选项在一行显示",name:"inline",type:"switch",visibleOn:'data.mode != "inline"',mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{label:"每行显示多少列",name:"columnsCount",hiddenOn:'typeof data.inline === "undefined" || data.inline === true',type:"input-range",min:1,max:6,pipeIn:(0,r.defaultValue)(1)},(0,r.getSchemaTpl)("className",{label:"单个 Radio 的 CSS 类名",name:"itemClassName"})]}])],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.RadiosControlPlugin=i,(0,o.registerEditorPlugin)(i)},6311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectControlPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=n(9547),l=n(9756),s=n(9933),u=a.__importDefault(n(5599)),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="select",t.$schema="/schemas/SelectControlSchema.json",t.order=-480,t.name="下拉框",t.isBaseComponent=!0,t.icon="fa fa-th-list",t.description="支持多选,输入提示,可使用source获取选项",t.docLink="/amis/zh-CN/components/form/select",t.tags=["表单项"],t.scaffold={type:"select",label:"选项",name:"select",options:[{label:"选项A",value:"A"},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="下拉框",t.panelBody=[(0,i.getSchemaTpl)("switchDefaultValue"),{type:"select",name:"value",label:"默认值",source:"${options}",visibleOn:'!data.multiple && typeof this.value !== "undefined"'},{type:"select",name:"value",label:"默认值",source:"${options}",multiple:!0,visibleOn:' data.multiple && typeof this.value !== "undefined"'},(0,i.getSchemaTpl)("clearable"),{label:"可检索",name:"searchable",type:"switch",mode:"inline",className:"w-full"},{label:"是否默认选择第一个",name:"selectFirst",type:"switch",mode:"inline",className:"w-full"},(0,i.getSchemaTpl)("fieldSet",{title:"选项",body:[(0,i.getSchemaTpl)("multiple"),{label:"选中内容以单行模式显示",name:"valuesNoWrap",type:"switch",mode:"inline",className:"w-full",visibleOn:"this.multiple"},{label:"可全选",name:"checkAll",type:"switch",mode:"inline",value:!1,className:"w-full",onChange:function(e,t,n,a){e&&a.setValueByName("multiple",!0)}},{label:"自定义菜单模板",name:"menuTpl",type:"input-text"},{label:"默认全选",name:"defaultCheckAll",type:"switch",value:!1,visibleOn:"this.checkAll",mode:"inline",className:"w-full"},{type:"input-text",name:"checkAllLabel",label:'默认为 "全选" 的文字',visibleOn:"this.checkAll",value:"全选"},(0,i.getSchemaTpl)("options"),(0,i.getSchemaTpl)("source"),(0,i.getSchemaTpl)("api",{name:"autoComplete",label:"自动完成接口",description:"每次输入新内容后,将调用接口,根据接口返回更新选项。当前用户输入值在 \\${term} 中。"}),(0,i.getSchemaTpl)("joinValues"),(0,i.getSchemaTpl)("delimiter"),(0,i.getSchemaTpl)("extractValue"),(0,i.getSchemaTpl)("autoFill"),(0,i.getSchemaTpl)("creatable"),(0,i.getSchemaTpl)("createBtnLabel",{visibleOn:"data.creatable"}),(0,i.getSchemaTpl)("api",{label:"新增选项接口",name:"addApi",visibleOn:"data.creatable"}),{name:"addControls",visibleOn:"data.creatable",pipeIn:(0,i.defaultValue)([{type:"input-text",name:"label",label:!1,placeholder:"请输入名称"}]),asFormItem:!0,children:function(e){return r.default.createElement(o.Button,{size:"sm",level:"danger",className:"m-b",onClick:function(){var n={type:"dialog",body:[{type:"input-text",name:"label",label:!1,placeholder:"请输入名称"}]};e.value&&e.value.body&&(0,u.default)(e.value.body)?n.body=e.value.body:e.value&&(0,u.default)(e.value)&&(n.body=e.value),t.manager.openSubEditor({title:"配置新建选项表单项",value:n,onChange:function(t){return t&&t.body&&(0,u.default)(t.body)?e.onChange(t.body,"addControls"):e.onChange([],"addControls")}})},block:!0},"配置新建选项表单项")}},(0,i.getSchemaTpl)("editable"),(0,i.getSchemaTpl)("api",{label:"编辑选项接口",name:"editApi"}),(0,i.getSchemaTpl)("removable"),(0,i.getSchemaTpl)("api",{label:"删除选项接口",name:"deleteApi"})]})],t}return a.__extends(t,e),t}(s.BasePlugin);t.SelectControlPlugin=d,(0,l.registerEditorPlugin)(d)},7681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StaticControlPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=n(9547),l=n(9756),s=n(9933),u=n(6374),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="static",t.$schema="/schemas/StaticControlSchema.json",t.order=-390,t.name="静态展示框",t.isBaseComponent=!0,t.icon="fa fa-info",t.description="纯用来展示数据,可用来展示json、date、image、progress等数据",t.docLink="/amis/zh-CN/components/form/static",t.tags=["表单项"],t.scaffold={type:"static",label:"描述"},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign(a.__assign({},t.scaffold),{value:"静态值"})]},t.multifactor=!0,t.panelTitle="静态展示",t.panelBodyCreator=function(e){return[(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},{name:"quickEdit",label:"启用快速编辑",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{visibleOn:"data.quickEdit",name:"quickEdit.mode",type:"button-group-select",value:"popOver",label:"快速编辑模式",size:"xs",mode:"inline",className:"w-full",options:[{label:"下拉",value:"popOver"},{label:"内嵌",value:"inline"}]},{visibleOn:"data.quickEdit",name:"quickEdit.saveImmediately",label:"是否立即保存",type:"switch",mode:"inline",className:"w-full",description:"开启后修改即提交,而不是标记修改批量提交。",descriptionClassName:"help-block m-b-none",pipeIn:function(e){return!!e}},(0,i.getSchemaTpl)("api",{label:"立即保存接口",description:"是否单独给立即保存配置接口,如果不配置,则默认使用quickSaveItemApi。",name:"quickEdit.saveImmediately.api",visibleOn:"this.quickEdit && this.quickEdit.saveImmediately"}),{visibleOn:"data.quickEdit",name:"quickEdit",asFormItem:!0,children:function(e){var n=e.value,i=e.onChange,l=e.data;!0===n&&(n={});var s=n.mode;return delete(n=a.__assign({type:"input-text",name:l.name},n)).mode,r.default.createElement(o.Button,{level:"info",className:"m-b",size:"sm",block:!0,onClick:function(){t.manager.openSubEditor({title:"配置快速编辑类型",value:n,slot:{type:"form",mode:"normal",body:["$$"],wrapWithPanel:!1},onChange:function(e){return i(a.__assign(a.__assign({},e),{mode:s}),"quickEdit")}})}},"配置快速编辑")}},{name:"popOver",label:"启用查看更多展示",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{name:"popOver.mode",label:"查看更多弹出模式",type:"select",visibleOn:"data.popOver",pipeIn:(0,i.defaultValue)("popOver"),options:[{label:"默认",value:"popOver"},{label:"弹框",value:"dialog"},{label:"抽出式弹框",value:"drawer"}]},{name:"popOver.position",label:"查看更多弹出模式",type:"select",visibleOn:'data.popOver && data.popOver.mode === "popOver"',pipeIn:(0,i.defaultValue)("center"),options:[{label:"目标中部",value:"center"},{label:"目标左上角",value:"left-top"},{label:"目标右上角",value:"right-top"},{label:"目标左下角",value:"left-bottom"},{label:"目标右下角",value:"right-bottom"},{label:"页面左上角",value:"fixed-left-top"},{label:"页面右上角",value:"fixed-right-top"},{label:"页面左下角",value:"fixed-left-bottom"},{label:"页面右下角",value:"fixed-right-bottom"}]},{visibleOn:"data.popOver",name:"popOver",asFormItem:!0,children:function(e){var n=e.value,i=e.onChange;return n=a.__assign({type:"panel",title:"查看详情",body:"内容详情"},n),r.default.createElement(o.Button,{level:"info",className:"m-b",size:"sm",block:!0,onClick:function(){t.manager.openSubEditor({title:"配置查看更多展示内容",value:n,onChange:function(e){return i(e,"quickEdit")}})}},"查看更多内容配置")}},(0,i.getSchemaTpl)("borderMode"),{name:"copyable",label:"启用内容复制功能",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{visibleOn:"data.copyable",name:"copyable.content",type:"textarea",label:"复制内容模板",description:"默认为当前字段值,可定制。"}]},t}return a.__extends(t,e),t.prototype.filterProps=function(e,t){return e.$$id=t.id,void 0===e.value&&(e.value=(0,u.mockValue)(e)),e},t}(s.BasePlugin);t.StaticControlPlugin=d,(0,l.registerEditorPlugin)(d)},9940:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SwitchControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="switch",t.$schema="/schemas/SwitchControlSchema.json",t.order=-400,t.name="开关",t.isBaseComponent=!0,t.icon="fa fa-toggle-on",t.description="开关控件",t.docLink="/amis/zh-CN/components/form/switch",t.tags=["表单项"],t.scaffold={type:"switch",option:"开关",name:"switch",falseValue:!1,trueValue:!0},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign(a.__assign({},t.scaffold),{label:"开关表单"})]},t.panelTitle="开关",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue",{pipeOut:function(e,t,n){return e?n.trueValue:void 0}}),{type:"switch",name:"value",label:"默认勾选",mode:"inline",className:"w-full",visibleOn:'typeof this.value !== "undefined"',pipeOut:function(e,t,n){return e?n.trueValue:n.falseValue}},{name:"option",type:"input-text",label:"选项说明"},{label:"选项位置",name:"optionAtLeft",type:"button-group-select",size:"sm",value:!1,options:[{label:"左",value:!0},{label:"右",value:!1}]},{type:"input-text",label:"勾选后的值",name:"trueValue",value:!0,pipeOut:r.valuePipeOut},{type:"input-text",label:"未勾选的值",name:"falseValue",value:!1,pipeOut:r.valuePipeOut},{name:"onText",type:"input-text",label:"开启时的文本"},{name:"offText",type:"input-text",label:"关闭时的文本"}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.SwitchControlPlugin=i,(0,o.registerEditorPlugin)(i)},9352:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TabsTransferPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="tabs-transfer",t.$schema="/schemas/TransferControlSchema.json",t.name="组合穿梭器",t.isBaseComponent=!0,t.icon="fa fa-th-list",t.description="组合穿梭器组件",t.docLink="/amis/zh-CN/components/form/transfer",t.tags=["表单项"],t.scaffold={label:"组合穿梭器",type:"tabs-transfer",name:"a",sortable:!0,searchable:!0,options:[{label:"成员",selectMode:"tree",children:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},{label:"用户",selectMode:"chained",children:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang2"}]},{label:"战士",children:[{label:"曹操",value:"caocao2"},{label:"钟无艳",value:"zhongwuyan2"}]},{label:"打野",children:[{label:"李白",value:"libai2"},{label:"韩信",value:"hanxin2"},{label:"云中君",value:"yunzhongjun2"}]}]}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="组合穿梭器",t.panelDefinitions={options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"group",body:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]}},t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"select",name:"value",label:"默认值",source:"${options}",multiple:!0,visibleOn:'typeof this.value !== "undefined"'},{label:"可检索",name:"searchable",type:"switch",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("api",{label:"检索接口",name:"searchApi"}),{label:"查询时勾选展示模式",name:"searchResultMode",type:"select",mode:"inline",className:"w-full",options:[{label:"列表形式",value:"list"},{label:"表格形式",value:"table"},{label:"树形选择形式",value:"tree"},{label:"级联选择形式",value:"chained"}]},{label:"可排序",name:"sortable",type:"switch",mode:"inline",className:"w-full"},{label:"左侧的标题文字",name:"selectTitle",type:"input-text"},{label:"右侧结果的标题文字",name:"resultTitle",type:"input-text"},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[{$ref:"options",name:"options"},(0,r.getSchemaTpl)("source"),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]})],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.TabsTransferPlugin=i,(0,o.registerEditorPlugin)(i)},9351:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextareaControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="textarea",t.$schema="/schemas/TextareaControlSchema.json",t.order=-490,t.name="多行文本框",t.isBaseComponent=!0,t.icon="fa fa-paragraph",t.description="支持换行输入",t.docLink="/amis/zh-CN/components/form/textarea",t.tags=["表单项"],t.scaffold={type:"textarea",label:"多行文本",name:"textarea"},t.previewSchema={type:"form",className:"text-left",wrapWithPanel:!1,mode:"horizontal",body:a.__assign({},t.scaffold)},t.panelTitle="多行文本",t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"textarea",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},{type:"input-number",name:"minRows",value:3,label:"最小行数"},{type:"input-number",name:"maxRows",value:20,label:"最大行数"},{type:"input-number",name:"minLength",value:5,label:"最小字数限制"},{type:"input-number",name:"maxLength",value:120,label:"最大字数限制"},(0,r.getSchemaTpl)("showCounter"),{type:"switch",name:"readOnly",label:"是否只读"},{type:"switch",name:"trimContents",label:"去除首尾空白",mode:"inline",className:"w-full",description:"开启后,将不允许用户输入前后空格"}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.TextareaControlPlugin=i,(0,o.registerEditorPlugin)(i)},6682:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransferPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="transfer",t.$schema="/schemas/TransferControlSchema.json",t.name="穿梭器",t.isBaseComponent=!0,t.icon="fa fa-th-list",t.description="穿梭器组件",t.docLink="/amis/zh-CN/components/form/transfer",t.tags=["表单项"],t.scaffold={label:"分组",type:"transfer",name:"transfer",options:[{label:"法师",children:[{label:"诸葛亮",value:"zhugeliang"}]},{label:"战士",children:[{label:"曹操",value:"caocao"},{label:"钟无艳",value:"zhongwuyan"}]},{label:"打野",children:[{label:"李白",value:"libai"},{label:"韩信",value:"hanxin"},{label:"云中君",value:"yunzhongjun"}]}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="穿梭器",t.panelDefinitions={options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"group",body:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]}},t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"select",name:"value",label:"默认值",source:"${options}",visibleOn:'!data.multiple && typeof this.value !== "undefined"'},{type:"select",name:"value",label:"默认值",source:"${options}",multiple:!0,visibleOn:' data.multiple && typeof this.value !== "undefined"'},{label:"勾选展示模式",name:"selectMode",type:"select",mode:"inline",className:"w-full",options:[{label:"列表形式",value:"list"},{label:"表格形式",value:"table"},{label:"树形选择形式",value:"tree"},{label:"级联选择形式",value:"chained"},{label:"关联选择形式",value:"associated"}]},{name:"columns",type:"combo",multiple:!0,label:!1,strictMode:!1,addButtonText:"新增一列",draggable:!1,visibleOn:'data.selectMode === "table"',items:[{type:"input-text",name:"label",placeholder:"标题"},{type:"input-text",name:"name",placeholder:"绑定字段名"},{type:"select",name:"type",placeholder:"类型",value:"input-text",options:[{value:"text",label:"纯文本"},{value:"tpl",label:"模板"},{value:"image",label:"图片"},{value:"date",label:"日期"},{value:"progress",label:"进度"},{value:"status",label:"状态"},{value:"mapping",label:"映射"},{value:"operation",label:"操作栏"}]}]},{$ref:"options",label:"左边的选项集",name:"leftOptions",visibleOn:'data.selectMode === "associated"'},{label:"左侧选择形式",name:"leftMode",type:"select",mode:"inline",className:"w-full",visibleOn:'data.selectMode === "associated"',options:[{label:"列表形式",value:"list"},{label:"树形选择形式",value:"tree"}]},{label:"右侧选择形式",name:"rightMode",type:"select",mode:"inline",className:"w-full",visibleOn:'data.selectMode === "associated"',options:[{label:"列表形式",value:"list"},{label:"树形选择形式",value:"tree"}]},{label:"可检索",name:"searchable",type:"switch",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("api",{label:"检索接口",name:"searchApi"}),{label:"查询时勾选展示模式",name:"searchResultMode",type:"select",mode:"inline",className:"w-full",options:[{label:"列表形式",value:"list"},{label:"表格形式",value:"table"},{label:"树形选择形式",value:"tree"},{label:"级联选择形式",value:"chained"}]},{label:"可排序",name:"sortable",type:"switch",mode:"inline",className:"w-full"},{label:"是否默认选择第一个",name:"selectFirst",type:"switch",mode:"inline",className:"w-full"},{label:"是否显示统计数据",name:"statistics",type:"switch",mode:"inline",className:"w-full"},{label:"左侧的标题文字",name:"selectTitle",type:"input-text"},{label:"右侧结果的标题文字",name:"resultTitle",type:"input-text"},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[{$ref:"options",name:"options"},(0,r.getSchemaTpl)("source"),(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill")]})],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.TransferPlugin=i,(0,o.registerEditorPlugin)(i)},3914:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TreeSelectControlPlugin=void 0;var a=n(752),r=n(9547),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="tree-select",t.$schema="/schemas/TreeSelectControlSchema.json",t.name="树下拉框",t.isBaseComponent=!0,t.icon="fa fa-chevron-down",t.description="点击输入框,弹出树型选择框进行选择",t.docLink="/amis/zh-CN/components/form/treeselect",t.tags=["表单项"],t.scaffold={type:"tree-select",label:"树下拉框",name:"tree-select",options:[{label:"选项A",value:"A",children:[{label:"选项C",value:"C"},{label:"选项D",value:"D"}]},{label:"选项B",value:"B"}]},t.previewSchema={type:"form",className:"text-left",mode:"horizontal",wrapWithPanel:!1,body:a.__assign({},t.scaffold)},t.panelTitle="树下拉",t.panelDefinitions={options:{label:"选项 Options",name:"options",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增选项",scaffold:{label:"",value:""},items:[{type:"group",body:[{type:"input-text",name:"label",placeholder:"名称",required:!0},{type:"input-text",name:"value",placeholder:"值",unique:!0}]},{$ref:"options",label:"子选项",name:"children",addButtonText:"新增子选项"}]}},t.panelBody=[(0,r.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",visibleOn:'typeof this.value !== "undefined"'},(0,r.getSchemaTpl)("clearable"),{type:"switch",name:"hideNodePathLabel",label:"隐藏选中节点的祖先节点文本信息",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("fieldSet",{title:"选项",body:[{$ref:"options",name:"options"},(0,r.getSchemaTpl)("source",{sampleBuilder:function(e){return JSON.stringify({status:0,msg:"",data:{options:[{label:"选项A",value:"a",children:[{label:"子选项",value:"c"}]},{label:"选项B",value:"b"}]}},null,2)}}),(0,r.getSchemaTpl)("api",{name:"autoComplete",label:"自动完成接口",description:"每次输入新内容后,将调用接口,根据接口返回更新选项。当前用户输入值在 `\\${term}` 中。请不要与获取选项接口同时设置。"}),{name:"initiallyOpen",label:"是否默认展开子选项",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{type:"input-text",name:"unfoldedLevel",label:"选项默认展开级数",visibleOn:'typeof this.initiallyOpen !== "undefined" || !this.initiallyOpen'},{name:"showIcon",label:"是否显示图标",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,r.defaultValue)(!0)},{label:"可搜索?",name:"searchable",type:"switch",mode:"inline",className:"w-full"},{label:"是否显示单选按钮",name:"showRadio",type:"switch",mode:"inline",className:"w-full",visibleOn:"!data.multiple"},(0,r.getSchemaTpl)("multiple"),{name:"cascade",visibleOn:"data.multiple",label:"不自动选中子节点?",description:"选中父级时,孩子节点是否自动选中",type:"switch",mode:"inline",className:"w-full"},{name:"withChildren",visibleOn:"data.cascade !== true && data.multiple",label:"数值是否携带子节点",type:"switch",mode:"inline",className:"w-full"},{name:"onlyChildren",visibleOn:"data.cascade !== true && data.multiple",label:"数值是否只包含子节点",disabledOn:"data.withChildren",type:"switch",mode:"inline",className:"w-full"},(0,r.getSchemaTpl)("joinValues"),(0,r.getSchemaTpl)("delimiter"),(0,r.getSchemaTpl)("extractValue"),(0,r.getSchemaTpl)("autoFill"),(0,r.getSchemaTpl)("creatable"),(0,r.getSchemaTpl)("api",{label:"新增选项接口",name:"addApi"}),(0,r.getSchemaTpl)("editable"),(0,r.getSchemaTpl)("api",{label:"编辑选项接口",name:"editApi"}),(0,r.getSchemaTpl)("removable"),(0,r.getSchemaTpl)("api",{label:"删除选项接口",name:"deleteApi"})]})],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.TreeSelectControlPlugin=i,(0,o.registerEditorPlugin)(i)},8746:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UUIDControlPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="uuid",t.$schema="/schemas/UUIDControlSchema.json",t.name="UUID",t.isBaseComponent=!0,t.icon="fa fa-eye-slash",t.description="自动生成的 UUID",t.docLink="/amis/zh-CN/components/form/uuid",t.tags=["表单项"],t.scaffold={type:"uuid",name:"uuid"},t.previewSchema={type:"form",wrapWithPanel:!1,body:[a.__assign({},t.scaffold)]},t.panelTitle="UUID",t.panelBody=[{type:"static",value:"自动按 UUID v4 格式生成,无需配置"}],t}return a.__extends(t,e),t.prototype.renderRenderer=function(e){return r.default.createElement("div",{key:e.key,className:"wrapper-sm b-a b-light m-b-sm"},r.default.createElement("span",{className:"text-muted"},"UUID(展现将隐藏)"))},t}(n(9933).BasePlugin);t.UUIDControlPlugin=i,(0,o.registerEditorPlugin)(i)},4887:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=n(5863),d=n(1548),c=n(9942),p=n(3570),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="grid",t.$schema="/schemas/GridSchema.json",t.name="分栏",t.isBaseComponent=!0,t.description="分栏布局",t.docLink="/amis/zh-CN/components/grid",t.tags=["容器"],t.icon="fa fa-th",t.scaffold={type:"grid",columns:[{body:[]},{body:[]}]},t.previewSchema={type:"grid",columns:[{body:[{type:"tpl",tpl:"栏",inline:!1,className:"bg-light wrapper"}]},{body:[{type:"tpl",tpl:"栏",className:"bg-light wrapper",inline:!1}]}]},t.panelTitle="分栏布局",t.panelWithOutOthers=!1,t.vRendererConfig={regions:{body:{key:"body",label:"内容区",placeholder:"栏",wrapperResolve:function(e){return e}}},panelTitle:"栏",panelBodyCreator:function(e){var n=e.node.host;return[(0,s.getSchemaTpl)("fieldSet",{title:"插入",collapsable:!1,body:[{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4",body:[n.isSecondFactor?null:{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowAfter(e.node.host)}},o.default.createElement(c.Icon,{className:"icon",icon:"arrow-to-bottom"}),o.default.createElement("span",null,"下方插入新行"))},n.isSecondFactor?null:{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowBefore(e.node.host)}},o.default.createElement(c.Icon,{className:"icon",icon:"top-arrow-to-top"}),o.default.createElement("span",null,"上方插入新行"))},{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertColumnBefore(e)}},o.default.createElement(c.Icon,{className:"icon",icon:"left-arrow-to-left"}),o.default.createElement("span",null,"左侧插入新列"))},{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertColumnAfter(e)}},o.default.createElement(c.Icon,{className:"icon",icon:"arrow-to-right"}),o.default.createElement("span",null,"右侧插入新列"))}].filter((function(e){return e}))}]}),(0,s.getSchemaTpl)("fieldSet",{title:"宽度设置",collapsable:!1,body:[{type:"button-group-select",name:"md",size:"sm",label:!1,pipeIn:function(e){return"number"==typeof e?"manual":e||""},pipeOut:function(e){return"manual"===e?1:e},tiled:!0,options:[{value:"",label:"适配宽度"},{value:"auto",label:"适配内容"},{value:"manual",label:"手动"}]},{visibleOn:'typeof this.md === "number"',label:"宽度占比",type:"input-range",name:"md",min:1,max:12,step:1}]}),(0,s.getSchemaTpl)("fieldSet",{title:"垂直对齐",collapsable:!1,body:[{type:"button-group-select",name:"valign",size:"sm",label:!1,tiled:!0,clearable:!0,options:[{value:"top",label:"顶部对齐"},{value:"middle",label:"中间对齐"},{value:"bottom",label:"底部对齐"},{value:"between",label:"两端对齐"}]}]}),t.panelWithOutOthers?null:(0,s.getSchemaTpl)("fieldSet",{title:"CSS 设置",body:[(0,s.getSchemaTpl)("className",{label:"栏 CSS 类名",name:"columnClassName"})]})].filter((function(e){return e}))}},t.vWrapperResolve=function(e){return e},t.overrides={renderColumn:function(e,t,n){var a,r,i=this.super(e,t,n),l=this.props.$$editor;if(l&&e.$$id){var s=l.plugin,c=null===(r=null===(a=s.vRendererConfig)||void 0===a?void 0:a.regions)||void 0===r?void 0:r.body;return c?o.default.createElement(u.VRenderer,{key:"".concat(e.$$id,"-").concat(t),plugin:l.plugin,renderer:l.renderer,$schema:"/schemas/GridColumn.json",hostId:l.id,memberIndex:t,name:"第".concat(t+1,"栏"),id:e.$$id,draggable:!1,schemaPath:"".concat(l.schemaPath,"/grid/").concat(t),wrapperResolve:s.vWrapperResolve,path:"".concat(this.props.$path,"/").concat(t),data:this.props.data,widthMutable:!0},c?o.default.createElement(d.RegionWrapper,{key:c.key,preferTag:c.preferTag,name:c.key,label:c.label,regionConfig:c,placeholder:c.placeholder,editorStore:s.manager.store,manager:s.manager,children:i,wrapperResolve:c.wrapperResolve,rendererName:l.renderer.name}):i):i}return i}},t}return a.__extends(t,e),t.prototype.panelBodyCreator=function(e){var t=this,n=e.secondFactor;return[(0,s.getSchemaTpl)("fieldSet",{title:"插入",collapsable:!1,body:[n?null:{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4 mb-4",body:[{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowAfter(e.node)}},o.default.createElement(c.Icon,{className:"icon",icon:"arrow-to-bottom"}),o.default.createElement("span",null,"下方插入新行"))},{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowBefore(e.node)}},o.default.createElement(c.Icon,{className:"icon",icon:"top-arrow-to-top"}),o.default.createElement("span",null,"上方插入新行"))}]},{label:"列数",name:"columns",type:"select",pipeIn:function(e){return Array.isArray(e)?e.length:void 0},pipeOut:function(e,t){return Array.isArray(t)&&(t.length>e?(t=t.concat()).splice(e-1,t.length-e):t=t.concat((0,p.repeatArray)({body:[]},e-t.length))),t},options:(0,p.repeatArray)(null,12).map((function(e,t){return{label:"".concat(t+1),value:t+1}}))},{type:"button-group-select",name:"gap",label:"列间距",size:"sm",clearable:!0,tiled:!0,options:[{label:"无",value:"none"},{label:"极小",value:"xs"},{label:"小",value:"sm"},{label:"正常",value:"base"},{label:"中",value:"md"},{label:"大",value:"lg"}]}].filter((function(e){return e}))}),(0,s.getSchemaTpl)("fieldSet",{title:"对齐",collapsable:!1,body:[{type:"button-group-select",name:"align",size:"sm",label:"水平对齐",tiled:!0,pipeIn:(0,s.defaultValue)("left"),options:[{value:"left",label:"左对齐"},{value:"center",label:"中间对齐"},{value:"right",label:"右对齐"},{value:"between",label:"两端对齐"}]},{type:"button-group-select",name:"valign",size:"sm",label:"垂直对齐",tiled:!0,pipeIn:(0,s.defaultValue)("top"),options:[{value:"top",label:"顶部对齐"},{value:"middle",label:"中间对齐"},{value:"bottom",label:"底部对齐"},{value:"between",label:"两端对齐"}]}]}),this.panelWithOutOthers?null:(0,s.getSchemaTpl)("fieldSet",{title:"其他",collapsable:!0,body:[(0,s.getSchemaTpl)("className"),(0,s.getSchemaTpl)("subFormItemMode"),(0,s.getSchemaTpl)("subFormHorizontalMode"),(0,s.getSchemaTpl)("subFormHorizontal")]})].filter((function(e){return e}))},t.prototype.afterResolveJsonSchema=function(e){var t,n,a=null===(t=e.context.node.parent)||void 0===t?void 0:t.host;(null===(n=null==a?void 0:a.info)||void 0===n?void 0:n.plugin)===this&&e.setData("/schemas/GridColumn.json")},t.prototype.buildEditorContextMenu=function(e,t){var n,a=this;e.selections.length||(null===(n=e.info)||void 0===n?void 0:n.plugin)!==this||(e.node.isVitualRenderer?(t.push("|"),t.push({label:"左侧插入一栏",onSelect:function(){return a.insertColumnBefore(e)}}),t.push({label:"右侧插入一栏",onSelect:function(){return a.insertColumnAfter(e)}}),t.push("|"),t.push({label:"上方插入一行",onSelect:function(){return a.insertRowBefore(e.node.host)}}),t.push({label:"下方插入一行",onSelect:function(){return a.insertRowAfter(e.node.host)}})):(t.push("|"),t.push({label:"上方插入一行",onSelect:function(){return a.insertRowBefore(e.node)}}),t.push({label:"下方插入一行",onSelect:function(){return a.insertRowAfter(e.node)}})))},t.prototype.onWidthChangeStart=function(e){var t,n,r=e.context,o=r.node;if((null===(t=o.info)||void 0===t?void 0:t.plugin)===this){var i=o.host;if(i&&(null===(n=i.info)||void 0===n?void 0:n.plugin)===this){var l=r.dom,s=l.parentElement;if(s){var u=r.resizer,d=s.getBoundingClientRect(),c=i.schema.columns,p=o.index,f=c[p].md,m=l.getBoundingClientRect();e.setData({onMove:function(e){var t=e.pageX-m.left,n=f=Math.max(1,Math.min(12,Math.round(12*t/d.width)));(c=c.concat())[p]=a.__assign(a.__assign({},c[p]),{md:n}),u.setAttribute("data-value","".concat(n)),i.updateState({columns:c}),requestAnimationFrame((function(){o.calculateHighlightBox()}))},onEnd:function(){i.updateState({},!0),u.removeAttribute("data-value"),o.updateSchema({md:f}),requestAnimationFrame((function(){o.calculateHighlightBox()}))}})}}}},t.prototype.insertRowAfter=function(e){var t,n=this;if((null===(t=e.info)||void 0===t?void 0:t.plugin)===this){var a=this.manager.store,r=a.schema,o=e.id;a.traceableSetSchema((0,p.JSONChangeInArray)(r,o,(function(e,t,a){e.splice(a+1,0,(0,p.JSONPipeIn)({type:n.rendererName||"grid",align:t.align,valign:t.valign,columns:t.columns.map((function(e){return{body:[],md:null==e?void 0:e.md}}))}))})))}},t.prototype.insertRowBefore=function(e){var t,n=this;if((null===(t=e.info)||void 0===t?void 0:t.plugin)===this){var a=this.manager.store,r=a.schema,o=e.id;a.traceableSetSchema((0,p.JSONChangeInArray)(r,o,(function(e,t,a){e.splice(a,0,(0,p.JSONPipeIn)({type:n.rendererName||"grid",align:t.align,valign:t.valign,columns:t.columns.map((function(e){return{body:[],md:null==e?void 0:e.md}}))}))})))}},t.prototype.insertColumnBefore=function(e){var t;if((null===(t=e.node.info)||void 0===t?void 0:t.plugin)===this){var n=this.manager.store,a=e.id,r=n.schema;n.traceableSetSchema((0,p.JSONChangeInArray)(r,a,(function(e,t,n){e.splice(n,0,(0,p.JSONPipeIn)({body:[]}))})))}},t.prototype.insertColumnAfter=function(e){var t;if((null===(t=e.node.info)||void 0===t?void 0:t.plugin)===this){var n=this.manager.store,a=n.schema,r=e.id;n.traceableSetSchema((0,p.JSONChangeInArray)(a,r,(function(e,t,n){e.splice(n+1,0,(0,p.JSONPipeIn)({body:[]}))})))}},t}(l.BasePlugin);t.GridPlugin=f,(0,i.registerEditorPlugin)(f)},2629:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HBoxPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=n(5863),d=n(1548),c=n(3570),p=n(9942),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="hbox",t.$schema="/schemas/HBoxSchema.json",t.disabledRendererPlugin=!0,t.name="HBox",t.isBaseComponent=!0,t.icon="fa fa-columns",t.description="用来实现左右排版布局,默认平均分配,可以通过 columnClassName 配置某列的宽度。",t.docLink="/amis/zh-CN/components/hbox",t.tags=["容器"],t.scaffold={type:"hbox",gap:"base",columns:[{body:[]},{body:[]}]},t.previewSchema={type:"hbox",columns:[{type:"tpl",tpl:"固定宽度
w-xs",columnClassName:"bg-primary w-xs"},{type:"tpl",tpl:"自动填满",columnClassName:"bg-success"}]},t.panelTitle="HBox",t.panelBodyCreator=function(e){return[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[(0,s.getSchemaTpl)("fieldSet",{title:"插入",collapsable:!1,body:[{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4 mb-4",body:[{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowAfter(e.node)}},o.default.createElement(p.Icon,{className:"icon",icon:"arrow-to-bottom"}),o.default.createElement("span",null,"下方插入新行"))},{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowBefore(e.node)}},o.default.createElement(p.Icon,{className:"icon",icon:"top-arrow-to-top"}),o.default.createElement("span",null,"上方插入新行"))}]},{label:"列数",name:"columns",type:"select",pipeIn:function(e){return Array.isArray(e)?e.length:void 0},pipeOut:function(e,t){return Array.isArray(t)&&(t.length>e?(t=t.concat()).splice(e-1,t.length-e):t=t.concat((0,c.repeatArray)({body:[]},e-t.length))),t},options:(0,c.repeatArray)(null,12).map((function(e,t){return{label:"".concat(t+1),value:t+1}}))}]}),{type:"list-select",name:"gap",label:"列间距",size:"sm",clearable:!0,tiled:!0,options:[{label:"极小",value:"xs"},{label:"小",value:"sm"},{label:"正常",value:"base"},{label:"中",value:"md"},{label:"大",value:"lg"}]},{name:"columns",label:"列集合",type:"combo",scaffold:{body:[]},minLength:1,multiple:!0,draggableTip:"",items:[{type:"tpl",tpl:'列${index | plus}',columnClassName:"no-grow v-middle"},(0,s.getSchemaTpl)("className",{name:"columnClassName",labelRemark:"",label:""})]},(0,s.getSchemaTpl)("fieldSet",{title:"水平对齐",collapsable:!1,body:[{type:"button-group-select",name:"align",size:"sm",label:!1,tiled:!0,pipeIn:(0,s.defaultValue)("left"),options:[{value:"left",label:"左对齐"},{value:"center",label:"中间对齐"},{value:"right",label:"右对齐"},{value:"between",label:"两端对齐"}]}]}),(0,s.getSchemaTpl)("fieldSet",{title:"垂直对齐",collapsable:!1,body:[{type:"button-group-select",name:"valign",size:"sm",label:!1,tiled:!0,pipeIn:(0,s.defaultValue)("top"),options:[{value:"top",label:"顶部对齐"},{value:"middle",label:"中间对齐"},{value:"bottom",label:"底部对齐"},{value:"between",label:"两端对齐"}]}]})]},{title:"外观",body:[(0,s.getSchemaTpl)("className"),(0,s.getSchemaTpl)("subFormItemMode"),(0,s.getSchemaTpl)("subFormHorizontalMode"),(0,s.getSchemaTpl)("subFormHorizontal")]},{title:"显隐",body:[(0,s.getSchemaTpl)("visible")]}])]},t.vRendererConfig={regions:{body:{key:"body",label:"内容区",placeholder:"列",wrapperResolve:function(e){return e}}},panelTitle:"列",panelBodyCreator:function(e){return[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[(0,s.getSchemaTpl)("fieldSet",{title:"插入",collapsable:!1,body:[{type:"wrapper",size:"none",className:"grid grid-cols-2 gap-4",body:[{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowAfter(e.node.host)}},o.default.createElement(p.Icon,{className:"icon",icon:"arrow-to-bottom"}),o.default.createElement("span",null,"下方插入新行"))},{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertRowBefore(e.node.host)}},o.default.createElement(p.Icon,{className:"icon",icon:"top-arrow-to-top"}),o.default.createElement("span",null,"上方插入新行"))},{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertColumnBefore(e)}},o.default.createElement(p.Icon,{className:"icon",icon:"left-arrow-to-left"}),o.default.createElement("span",null,"左侧插入新列"))},{children:o.default.createElement(r.Button,{size:"sm",onClick:function(){return t.insertColumnAfter(e)}},o.default.createElement(p.Icon,{className:"icon",icon:"arrow-to-right"}),o.default.createElement("span",null,"右侧插入新列"))}]}]}),(0,s.getSchemaTpl)("fieldSet",{title:"宽度设置",collapsable:!1,body:[{type:"button-group-select",name:"width",size:"sm",label:!1,pipeIn:function(e){return e&&"auto"!==e?"manual":e||""},pipeOut:function(e){return"manual"===e?"20%":e},options:[{value:"",label:"适配宽度"},{value:"auto",label:"适配内容"},{value:"manual",label:"手动"}],description:'<% if (this.width && this.width !== "auto") {%>请按住高亮框右侧方块拖动调整宽度<%}%>'}]}),(0,s.getSchemaTpl)("fieldSet",{title:"垂直对齐",collapsable:!1,body:[{type:"button-group-select",name:"valign",size:"sm",label:!1,tiled:!0,clearable:!0,options:[{value:"top",label:"顶部对齐"},{value:"middle",label:"中间对齐"},{value:"bottom",label:"底部对齐"},{value:"between",label:"两端对齐"}]}]})]},{title:"外观",body:[(0,s.getSchemaTpl)("className",{name:"columnClassName",label:"列 CSS 类名",description:"可以添加宽度类样式调整宽度,默认宽度为平均分配。"})]}])]}},t.vWrapperResolve=function(e){return e},t.overrides={renderColumn:function(e,t){var n,a,r=this.super(e,t),i=this.props.$$editor;if(i&&e.$$id){var l=i.plugin,s=null===(a=null===(n=l.vRendererConfig)||void 0===n?void 0:n.regions)||void 0===a?void 0:a.body;return s?o.default.createElement(u.VRenderer,{key:e.$$id,plugin:i.plugin,renderer:i.renderer,$schema:"",hostId:i.id,memberIndex:t,name:"第".concat(t+1,"列"),id:e.$$id,draggable:!1,schemaPath:"".concat(i.schemaPath,"/hbox/").concat(t),wrapperResolve:l.vWrapperResolve,path:"".concat(this.props.$path,"/").concat(t),data:this.props.data,widthMutable:!0},s?o.default.createElement(d.RegionWrapper,{key:s.key,preferTag:s.preferTag,name:s.key,label:s.label,regionConfig:s,placeholder:s.placeholder,editorStore:l.manager.store,manager:l.manager,children:r,wrapperResolve:s.wrapperResolve,rendererName:i.renderer.name}):r):r}return r}},t}return a.__extends(t,e),t.prototype.afterResolveJsonSchema=function(e){var t,n,a=null===(t=e.context.node.parent)||void 0===t?void 0:t.host;(null===(n=null==a?void 0:a.info)||void 0===n?void 0:n.plugin)===this&&e.setData("/schemas/HBoxColumn.json")},t.prototype.buildEditorContextMenu=function(e,t){var n,a=this;e.selections.length||(null===(n=e.info)||void 0===n?void 0:n.plugin)!==this||(e.node.isVitualRenderer?(t.push("|"),t.push({label:"左侧插入一列",onSelect:function(){return a.insertColumnBefore(e)}}),t.push({label:"右侧插入一列",onSelect:function(){return a.insertColumnAfter(e)}}),t.push("|"),t.push({label:"上方插入一行",onSelect:function(){return a.insertRowBefore(e.node.host)}}),t.push({label:"下方插入一行",onSelect:function(){return a.insertRowAfter(e.node.host)}})):(t.push("|"),t.push({label:"上方插入一行",onSelect:function(){return a.insertRowBefore(e.node)}}),t.push({label:"下方插入一行",onSelect:function(){return a.insertRowAfter(e.node)}})))},t.prototype.onWidthChangeStart=function(e){var t,n,r=e.context,o=r.node;if((null===(t=o.info)||void 0===t?void 0:t.plugin)===this){var i=o.host;if(i&&(null===(n=i.info)||void 0===n?void 0:n.plugin)===this){var l=r.dom,s=l.parentElement;if(s){var u=r.resizer,d=s.getBoundingClientRect(),c=i.schema.columns,p=o.index,f=c[p].width,m=l.getBoundingClientRect();e.setData({onMove:function(e){var t=e.pageX-m.left,n=f="".concat(Math.max(1,Math.min(99,Math.round(100*t/d.width))),"%");(c=c.concat())[p]=a.__assign(a.__assign({},c[p]),{width:n}),u.setAttribute("data-value",n),i.updateState({columns:c}),requestAnimationFrame((function(){o.calculateHighlightBox()}))},onEnd:function(){i.updateState({},!0),u.removeAttribute("data-value"),o.updateSchema({width:f}),requestAnimationFrame((function(){o.calculateHighlightBox()}))}})}}}},t.prototype.insertRowAfter=function(e){var t;if((null===(t=e.info)||void 0===t?void 0:t.plugin)===this){var n=this.manager.store,a=n.schema,r=e.id;n.traceableSetSchema((0,c.JSONChangeInArray)(a,r,(function(e,t,n){e.splice(n+1,0,(0,c.JSONPipeIn)({type:"hbox",align:t.align,valign:t.valign,columns:t.columns.map((function(e){return{body:[],width:null==e?void 0:e.width}}))}))})))}},t.prototype.insertRowBefore=function(e){var t;if((null===(t=e.info)||void 0===t?void 0:t.plugin)===this){var n=this.manager.store,a=e.id,r=n.schema;n.traceableSetSchema((0,c.JSONChangeInArray)(r,a,(function(e,t,n){e.splice(n,0,(0,c.JSONPipeIn)({type:"hbox",align:t.align,valign:t.valign,columns:t.columns.map((function(e){return{body:[],width:null==e?void 0:e.width}}))}))})))}},t.prototype.insertColumnBefore=function(e){var t;if((null===(t=e.node.info)||void 0===t?void 0:t.plugin)===this){var n=this.manager.store,a=n.schema,r=e.id;n.traceableSetSchema((0,c.JSONChangeInArray)(a,r,(function(e,t,n){e.splice(n,0,(0,c.JSONPipeIn)({body:[]}))})))}},t.prototype.insertColumnAfter=function(e){var t;if((null===(t=e.node.info)||void 0===t?void 0:t.plugin)===this){var n=e.id,a=this.manager.store,r=a.schema;a.traceableSetSchema((0,c.JSONChangeInArray)(r,n,(function(e,t,n){e.splice(n+1,0,(0,c.JSONPipeIn)({body:[]}))})))}},t}(l.BasePlugin);t.HBoxPlugin=f,(0,i.registerEditorPlugin)(f)},7863:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IFramePlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="iframe",t.$schema="/schemas/IFrameSchema.json",t.name="iFrame",t.isBaseComponent=!0,t.description="可以用来嵌入现有页面。",t.tags=["容器"],t.icon="fa fa-window-maximize",t.scaffold={type:"iframe",src:"//www.baidu.com"},t.previewSchema={type:"tpl",tpl:"iFrame"},t.panelTitle="iFrame",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"src",label:"页面地址",type:"input-text",description:""}]},{title:"外观",body:[{name:"width",label:"iFrame 宽度",type:"input-text",pipeIn:(0,i.defaultValue)("100%"),pipeOut:i.valuePipeOut},{name:"height",label:"iFrame 高度",type:"input-text",pipeOut:i.valuePipeOut},(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t.prototype.renderRenderer=function(e){return this.renderPlaceholder("IFrame 页面(".concat(e.src,")"))},t}(o.BasePlugin);t.IFramePlugin=l,(0,r.registerEditorPlugin)(l)},8969:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImagePlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=n(6374),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="image",t.$schema="/schemas/ImageSchema.json",t.name="图片展示",t.isBaseComponent=!0,t.description="可以用来展示一张图片,支持静态设置图片地址,也可以配置 name 与变量关联。",t.tags=["展示"],t.icon="fa fa-photo",t.scaffold={type:"image"},t.previewSchema=a.__assign(a.__assign({},t.scaffold),{thumbMode:"cover",value:(0,l.mockValue)({type:"image"})}),t.panelTitle="图片",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"imageMode",label:"展示模式",type:"select",pipeIn:(0,i.defaultValue)("thumb"),options:[{label:"缩率图",value:"thumb"},{label:"原图",value:"original"}]},{name:"title",type:"input-text",label:"图片标题"},{name:"imageCaption",type:"input-text",label:"图片描述"},{name:"width",label:"宽度",type:"input-number"},{name:"height",label:"高度",type:"input-number"},t?null:(0,i.getSchemaTpl)("imageUrl",{name:"src",type:"input-text",label:"缩略图地址",description:"如果已绑定字段名,可以不用设置,支持用变量。"}),{type:"input-text",label:"打开外部链接",name:"href"},(0,i.getSchemaTpl)("imageUrl",{name:"defaultImage",label:"无数据时显示的图片"})]},{title:"外观",body:[{type:"switch",name:"enlargeAble",label:"开启图片放大功能",mode:"inline",className:"w-full"},(0,i.getSchemaTpl)("imageUrl",{name:"originalSrc",visibleOn:"this.enlargeAble",label:"原图地址",description:"如果不配置将默认使用缩略图地址。"}),{type:"switch",name:"showDimensions",label:"是否显示图片尺寸",mode:"inline",className:"w-full"},{name:"thumbMode",type:"button-group-select",label:"缩略图展示模式",size:"sm",pipeIn:(0,i.defaultValue)("contain"),options:[{label:"宽度占满",value:"w-full"},{label:"高度占满",value:"h-full"},{label:"包含",value:"contain"},{label:"铺满",value:"cover"}]},{name:"thumbRatio",type:"button-group-select",label:"缩略图比率",size:"sm",pipeIn:(0,i.defaultValue)("1:1"),options:[{label:"1:1",value:"1:1"},{label:"4:3",value:"4:3"},{label:"16:9",value:"16:9"}]},(0,i.getSchemaTpl)("className",{autoComplete:!1}),(0,i.getSchemaTpl)("className",{name:"imageClassName",label:"图片 CSS 类名"}),(0,i.getSchemaTpl)("className",{name:"thumbClassName",label:"缩略图 CSS 类名"})]},{title:"显隐",body:[(0,i.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t.prototype.onActive=function(e){var t,n=e.context;if((null===(t=n.info)||void 0===t?void 0:t.plugin)===this&&n.node){var a=n.node;a.setHeightMutable(!0),a.setWidthMutable(!0)}},t.prototype.onWidthChangeStart=function(e){return this.onSizeChangeStart(e,"horizontal")},t.prototype.onHeightChangeStart=function(e){return this.onSizeChangeStart(e,"vertical")},t.prototype.onSizeChangeStart=function(e,t){var n;void 0===t&&(t="both");var a=e.context,r=a.node;if((null===(n=r.info)||void 0===n?void 0:n.plugin)===this){var o=a.resizer,i=a.dom,l=i.parentElement.getBoundingClientRect(),s=i.getBoundingClientRect(),u=a.nativeEvent.pageX,d=a.nativeEvent.pageY;e.setData({onMove:function(e){var n=e.pageY-d,a=e.pageX-u,i=Math.max(50,s.height+n),c=Math.max(100,Math.min(s.width+a,l.width)),p={width:c,height:i};"both"===t?o.setAttribute("data-value","".concat(c,"px x ").concat(i,"px")):"vertical"===t?(o.setAttribute("data-value","".concat(i,"px")),delete p.width):(o.setAttribute("data-value","".concat(c,"px")),delete p.height),r.updateState(p),requestAnimationFrame((function(){r.calculateHighlightBox()}))},onEnd:function(e){var n=e.pageY-d,a=e.pageX-u,i=Math.max(50,s.height+n),c={width:Math.max(100,Math.min(s.width+a,l.width)),height:i};"vertical"===t?delete c.width:"horizontal"===t&&delete c.height,o.removeAttribute("data-value"),r.updateSchema(c),requestAnimationFrame((function(){r.calculateHighlightBox()}))}})}},t}(o.BasePlugin);t.ImagePlugin=s,(0,r.registerEditorPlugin)(s)},4610:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImagesPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=n(6374),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="images",t.$schema="/schemas/ImagesSchema.json",t.name="图片集",t.isBaseComponent=!0,t.description="展示多张图片",t.tags=["展示"],t.icon="fa fa-clone",t.scaffold={type:"images"},t.previewSchema=a.__assign(a.__assign({},t.scaffold),{listClassName:"nowrap",thumbMode:"cover",value:[{title:"图片1",image:(0,l.mockValue)({type:"image"}),src:(0,l.mockValue)({type:"image"})},{title:"图片2",image:(0,l.mockValue)({type:"image"}),src:(0,l.mockValue)({type:"image"})}]}),t.panelTitle="图片集",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:(t?[]:[{type:"formula",name:"__mode",autoSet:!1,formula:"!this.name && !this.source && Array.isArray(this.options) ? 2 : 1"},{label:"数据源",name:"__mode",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",options:[{label:"关联字段",value:1},{label:"静态设置",value:2}],onChange:function(e,t,n,a){e!==t&&1==e&&a.deleteValueByName("options")}},{name:"source",type:"input-text",label:"关联数据",description:"比如:\\${listVar},用来关联作用域中的已有数据。",visibleOn:"this.__mode == 1"},{type:"combo",name:"options",visibleOn:"this.__mode == 2",minLength:1,label:"图片集数据",multiple:!0,multiLine:!0,addable:!0,removable:!0,items:[(0,i.getSchemaTpl)("imageUrl",{name:"image",label:"缩略图"}),(0,i.getSchemaTpl)("imageUrl",{name:"src",label:"原图"}),{type:"input-text",label:"图片标题",name:"title"},{type:"textarea",label:"图片描述",name:"caption"}]}]).concat([(0,i.getSchemaTpl)("imageUrl",{name:"defaultImage",label:"无数据时显示的图片"})])},{title:"外观",body:[{type:"switch",name:"enlargeAble",label:"开启图片放大功能",mode:"inline",className:"w-full"},{name:"originalSrc",visibleOn:"this.enlargeAble",type:"input-text",label:"原图地址",description:"如果不配置将默认使用缩略图地址。"},{type:"switch",name:"showDimensions",label:"是否显示图片尺寸",mode:"inline",className:"w-full"},{name:"thumbMode",type:"button-group-select",label:"缩略图展示模式",size:"sm",pipeIn:(0,i.defaultValue)("contain"),options:[{label:"宽度占满",value:"w-full"},{label:"高度占满",value:"h-full"},{label:"包含",value:"contain"},{label:"铺满",value:"cover"}]},{name:"thumbRatio",type:"button-group-select",label:"缩略图比率",size:"sm",pipeIn:(0,i.defaultValue)("1:1"),options:[{label:"1:1",value:"1:1"},{label:"4:3",value:"4:3"},{label:"16:9",value:"16:9"}]},(0,i.getSchemaTpl)("className",{autoComplete:!1}),(0,i.getSchemaTpl)("className",{name:"listClassName",label:"图片列表 CSS 类名"})]},{title:"显隐",body:[(0,i.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t}(o.BasePlugin);t.ImagesPlugin=s,(0,r.registerEditorPlugin)(s)},7197:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JsonPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=n(8579),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="json",t.$schema="/schemas/JsonSchema.json",t.name="JSON展示",t.isBaseComponent=!0,t.description="用来展示 JSON 数据。",t.docLink="/amis/zh-CN/components/json",t.tags=["展示"],t.icon="fa fa-code",t.scaffold={type:"json"},t.previewSchema=a.__assign(a.__assign({},t.scaffold),{name:"json",value:{a:1,b:{c:2}}}),t.panelTitle="JSON",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:l([t?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"

当前为字段内容节点配置,选择上层还有更多的配置。

"}:null,{name:"levelExpand",type:"input-number",label:"默认展开级别",pipeIn:(0,i.defaultValue)(1)}])},{title:"外观",body:l([(0,i.getSchemaTpl)("className")])},{title:"显隐",body:l([(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")])}])]},t}return a.__extends(t,e),t}(o.BasePlugin);t.JsonPlugin=s,(0,r.registerEditorPlugin)(s)},419:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="link",t.$schema="/schemas/LinkSchema.json",t.name="链接",t.isBaseComponent=!0,t.description="用来展示文字链接",t.tags=["展示"],t.icon="fa fa-link",t.scaffold={type:"link",value:"http://www.baidu.com/"},t.previewSchema=a.__assign(a.__assign({},t.scaffold),{label:t.name}),t.panelTitle="链接",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"href",type:"input-text",label:"目标地址, 支持取变量。",description:"如果已绑定字段名,可以不用设置"},{name:"body",type:"input-text",label:"内容",description:"不填写时,自动使用目标地址值"},{name:"blank",type:"switch",label:"是否新窗口打开",mode:"inline",className:"w-full"},{name:"disabled",type:"switch",label:"是否禁用",mode:"inline",className:"w-full"},{name:"htmlTarget",type:"input-text",label:"HTML Target"},(0,i.getSchemaTpl)("icon",{label:"左侧图标"}),(0,i.getSchemaTpl)("icon",{label:"右侧图标",name:"rightIcon"})]},{title:"外观",body:[(0,i.getSchemaTpl)("className",{autoComplete:!1})]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t}(o.BasePlugin);t.LinkPlugin=l,(0,r.registerEditorPlugin)(l)},1897:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=n(3570),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="list",t.$schema="/schemas/ListSchema.json",t.name="列表",t.isBaseComponent=!0,t.description="展示一个列表,可以自定标题、副标题,内容及按钮组部分。当前组件需要配置数据源,不自带数据拉取,请优先使用 「CRUD」 组件。",t.docLink="/amis/zh-CN/components/list",t.tags=["展示"],t.icon="fa fa-list",t.scaffold={type:"list",listItem:{body:[{type:"tpl",tpl:"简单的展示数据:$a $b"}],actions:[{icon:"fa fa-eye",type:"button"}]}},t.previewSchema=a.__assign(a.__assign({},t.scaffold),{items:[{a:1,b:2},{a:3,b:4},{a:5,b:6}]}),t.panelTitle="列表",t.panelBodyCreator=function(e){var n="crud"===e.schema.type;return(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{children:o.default.createElement(r.Button,{level:"danger",size:"sm",block:!0,onClick:t.editDetail.bind(t,e.id)},"配置成员详情")},{type:"divider"},{name:"title",type:"input-text",label:"标题"},n?null:{name:"source",type:"input-text",label:"数据源",pipeIn:(0,s.defaultValue)("${items}"),description:"绑定当前环境变量"},{name:"placeholder",pipeIn:(0,s.defaultValue)("没有数据"),type:"input-text",label:"无数据提示"}]},{title:"外观",body:[{name:"showHeader",type:"switch",mode:"inline",className:"block",label:"是否显示头部",pipeIn:(0,s.defaultValue)(!0)},{name:"showFooter",type:"switch",mode:"inline",className:"block",label:"是否显示底部",pipeIn:(0,s.defaultValue)(!0)},(0,s.getSchemaTpl)("className",{label:"CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"listClassName",label:"List div CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"headerClassName",label:"头部 CSS 类名"}),(0,s.getSchemaTpl)("className",{name:"footerClassName",label:"底部 CSS 类名"})]},{title:"显隐",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("visible")]}])},t}return a.__extends(t,e),t.prototype.filterProps=function(e){if(e.isSlot)return e.value=[e.data],e;var t=a.__assign(a.__assign({},e.defaultData),e.data),n=Array.isArray(e.value)?e.value:"string"==typeof e.source?(0,r.resolveVariable)(e.source,t):(0,r.resolveVariable)("items",t);if(!Array.isArray(n)||!n.length){var o=this.buildMockData();e.value=(0,u.repeatArray)(o,1).map((function(e,t){return a.__assign(a.__assign({},e),{id:t+1})}))}var i=e.$schema,l=a.__rest(e,["$schema"]);return a.__assign(a.__assign({},(0,u.JSONPipeOut)(l)),{$schema:i})},t.prototype.buildMockData=function(){return{id:666,title:"假数据",description:"假数据",a:"假数据",b:"假数据"}},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),o=n.getValueOf(e);r&&o&&this.manager.openSubEditor({title:"配置成员详情",value:a.__assign({},o.listItem),slot:{type:"list",listItem:"$$"},onChange:function(e){e=a.__assign(a.__assign({},o),{listItem:e}),t.panelChangeValue(e,(0,u.diff)(o,e))},data:{items:[this.buildMockData()]}})},t.prototype.buildEditorToolbar=function(e,t){var n=e.id,a=e.info,r=e.schema;("list"===a.renderer.name||"crud"===a.renderer.name&&"list"===r.mode)&&t.push({icon:"fa fa-expand",order:100,tooltip:"配置成员渲染器",onClick:this.editDetail.bind(this,n)})},t.prototype.buildEditorContextMenu=function(e,t){var n=e.id,a=e.schema,r=(e.region,e.info);e.selections.length||(null==r?void 0:r.plugin)!==this||("list"===r.renderer.name||"crud"===r.renderer.name&&"list"===a.mode)&&t.push("|",{label:"配置成员详情",onSelect:this.editDetail.bind(this,n)})},t.prototype.getRendererInfo=function(t){var n,r=this,o=t.renderer,i=t.schema;return i.$$id||"crud"!==(null===(n=i.$$editor)||void 0===n?void 0:n.renderer.name)||"list"!==o.name?e.prototype.getRendererInfo.call(this,t):a.__assign(a.__assign({},{id:i.$$editor.id}),{name:r.name,regions:r.regions,patchContainers:r.patchContainers,vRendererConfig:r.vRendererConfig,wrapperProps:r.wrapperProps,wrapperResolve:r.wrapperResolve,filterProps:r.filterProps,$schema:r.$schema,renderRenderer:r.renderRenderer})},t}(l.BasePlugin);t.ListPlugin=d,(0,i.registerEditorPlugin)(d)},821:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListItemPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(9756),i=n(9933),l=n(9547),s=n(5863),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="list-item",t.isBaseComponent=!0,t.$schema="/schemas/ListItemSchema.json",t.regions=[{key:"body",label:"内容区",renderMethod:"renderBody",preferTag:"展示"},{key:"actions",label:"按钮集合",preferTag:"按钮",renderMethod:"renderRight",insertPosition:"inner"}],t.panelTitle="列表项",t.panelBody=(0,l.getSchemaTpl)("tabs",[{title:"基本",body:[{name:"title",type:"input-text",label:"标题",descrition:"支持模板语法如: ${xxx}"},{name:"subTitle",type:"input-text",label:"副标题",descrition:"支持模板语法如: ${xxx}"},{name:"avatar",type:"input-text",label:"图片地址",descrition:"支持模板语法如: ${xxx}"},{name:"desc",type:"textarea",label:"描述",descrition:"支持模板语法如: ${xxx}"}]},{title:"外观",body:[(0,l.getSchemaTpl)("className",{name:"avatarClassName",label:"图片 CSS 类名",pipeIn:(0,l.defaultValue)("thumb-sm avatar m-r")}),(0,l.getSchemaTpl)("className",{name:"titleClassName",label:"标题 CSS 类名"})]}]),t.fieldWrapperResolve=function(e){return e},t.overrides={renderFeild:function(e,t,n,a){var o=this.super(e,t,n,a),i=this.props.$$editor;if(!i||!t.$$id)return o;var l=i.plugin,u=t.$$id;return r.default.createElement(s.VRenderer,{plugin:i.plugin,renderer:i.renderer,multifactor:!0,key:u,$schema:"/schemas/ListBodyField.json",hostId:i.id,memberIndex:n,name:"".concat("字段".concat(n+1)),id:u,draggable:!1,wrapperResolve:l.fieldWrapperResolve,schemaPath:"".concat(i.schemaPath,"/body/").concat(n),path:"".concat(this.props.$path,"/").concat(n),data:this.props.data},o)}},t.vRendererConfig={panelTitle:"字段",panelBodyCreator:function(e){return[(0,l.getSchemaTpl)("label"),(0,l.getSchemaTpl)("className",{name:"labelClassName",label:"Label CSS 类名",visibleOn:"this.label"})]}},t}return a.__extends(t,e),t.prototype.getRendererInfo=function(e){var t=e.renderer;if(e.schema.$$id&&this.rendererName===t.name)return{name:this.panelTitle,regions:this.regions,$schema:this.$schema}},t.prototype.beforeInsert=function(e){var t,n,r,o,i=e.context;i.info.plugin!==this&&(null===(t=i.node.sameIdChild)||void 0===t?void 0:t.info.plugin)!==this||"body"!==i.region||(i.data=a.__assign(a.__assign({},i.data),{label:null!==(o=null!==(n=i.data.label)&&void 0!==n?n:null===(r=i.subRenderer)||void 0===r?void 0:r.name)&&void 0!==o?o:"列名称"}))},t}(i.BasePlugin);t.ListItemPlugin=u,(0,o.registerEditorPlugin)(u)},135:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LogPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="log",t.$schema="/schemas/LogSchema.json",t.name="日志",t.isBaseComponent=!0,t.icon="fa fa-file-text-o",t.description="用来实时显示日志",t.docLink="/amis/zh-CN/components/log",t.tags=["展示"],t.previewSchema={type:"log",height:120},t.scaffold={type:"log"},t.panelTitle="日志",t.panelBodyCreator=function(e){return(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[(0,i.getSchemaTpl)("api",{label:"日志数据源",name:"source"})]},{title:"外观",body:[(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])},t}return a.__extends(t,e),t}(o.BasePlugin);t.LogPlugin=l,(0,r.registerEditorPlugin)(l)},5218:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MappingPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=n(3570),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="mapping",t.$schema="/schemas/MappingSchema.json",t.name="映射",t.isBaseComponent=!0,t.description="对现有值做映射展示,比如原始值是:1、2、3...,需要展示成:下线、上线、过期等等。",t.docLink="/amis/zh-CN/components/mapping",t.tags=["展示"],t.icon="fa fa-exchange",t.scaffold={type:"mapping",value:2,map:{0:'',1:'',2:'',3:'',4:'',"*":'-'}},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="映射",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[t?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"

当前为字段内容节点配置,选择上层还有更多的配置。

"}:null,{label:"映射表",type:"combo",scaffold:{key:"key-{index}",value:"value-{index}"},required:!0,name:"map",descriptionClassName:"help-block text-xs m-b-none",description:"

当值命中左侧 Key 时,展示右侧内容,当没有命中时,默认实现 Key 为 *的内容(请确保key值唯一)",multiple:!0,pipeIn:function(e){if(!(0,l.isObject)(e))return[{key:"*",value:"通配值"}];var t=[];return Object.keys(e).forEach((function(n){t.push({key:n||"",value:"string"==typeof e[n]?e[n]:JSON.stringify(e[n])})})),t},pipeOut:function(e){if(!Array.isArray(e))return e;var t={};return e.forEach((function(e,n){var a=e.key||"",r=e.value;"key-{index}"===a&&"value-{index}"===r&&(a=a.replace("-{index}","".concat(n)),r=r.replace("-{index}","".concat(n)));try{r=JSON.parse(r)}catch(e){}t[a]=r})),t},items:[{placeholder:"Key",type:"input-text",unique:!0,name:"key",required:!0,columnClassName:"w-xs"},{placeholder:"内容",type:"input-text",name:"value"}]},{name:"placeholder",type:"input-text",pipeIn:(0,i.defaultValue)("-"),label:"占位符"}]},{title:"外观",body:[(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t}(o.BasePlugin);t.MappingPlugin=s,(0,r.registerEditorPlugin)(s)},2460:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MarkdownPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="markdown",t.$schema="/schemas/MarkdownSchema.json",t.name="Markdown",t.isBaseComponent=!0,t.description="展示 markdown 内容",t.docLink="/amis/zh-CN/components/markdown",t.tags=["展示"],t.icon="fa fa-file-text",t.scaffold={type:"markdown",value:"## 这是标题"},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="MD",t.panelBodyCreator=function(e){return/\/field\/\w+$/.test(e.path),[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[(0,i.getSchemaTpl)("markdownBody")]},{title:"外观",body:[(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t}(o.BasePlugin);t.MarkdownPlugin=l,(0,r.registerEditorPlugin)(l)},5678:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NavPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="nav",t.$schema="/schemas/NavSchema.json",t.name="导航",t.isBaseComponent=!0,t.description="用来渲染导航菜单,支持横排和竖排。",t.docLink="/amis/zh-CN/components/nav",t.tags=["功能"],t.icon="fa fa-map-signs",t.scaffold={type:"nav",stacked:!0,links:[{label:"页面1",to:"?id=1"},{label:"页面2",to:"?id=2"}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="导航",t.panelDefinitions={links:{label:"菜单管理",name:"links",type:"combo",multiple:!0,draggable:!0,addButtonText:"新增菜单",multiLine:!0,messages:{validateFailed:"菜单中存在配置错误,请仔细检查"},scaffold:{label:"",to:""},items:[{type:"input-text",name:"label",label:"名称",required:!0},{type:"input-text",name:"to",label:"跳转地址",required:!0},{type:"icon-picker",name:"icon",label:"图标"},{type:"group",label:"是否高亮",direction:"vertical",className:"m-b-none",labelRemark:{trigger:"click",rootClose:!0,className:"m-l-xs",content:"可以配置该菜单是否要高亮",placement:"left"},body:[{name:"active",type:"radios",inline:!0,options:[{label:"是",value:!0},{label:"否",value:!1},{label:"表达式",value:""}]},{name:"activeOn",autoComplete:!1,visibleOn:'typeof this.active !== "boolean"',type:"input-text",placeholder:"留空将自动分析菜单地址",className:"m-t-n-sm"}]},{type:"switch",label:"包含子菜单",name:"children",mode:"inline",className:"block",pipeIn:function(e){return!!e},pipeOut:function(e){return e?[{label:"",to:""}]:void 0},messages:{validateFailed:"子菜单中存在配置错误,请仔细检查"}},{name:"children",$ref:"links",visibleOn:'this.hasOwnProperty("children") && this.children',label:"子菜单管理",addButtonText:"新增子菜单"}]}},t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{$ref:"links",name:"links"},{type:"divider"},(0,i.getSchemaTpl)("api",{name:"source",label:"获取菜单接口",description:"如果菜单地址希望可以动态设置,请在此填入接口地址"})]},{title:"外观",body:[{name:"stacked",type:"switch",mode:"inline",className:"block",label:"是否竖着摆放"},(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t}(o.BasePlugin);t.NavPlugin=l,(0,r.registerEditorPlugin)(l)},3345:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OperationPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="operation",t.$schema="/schemas/OperationSchema.json",t.name="操作栏",t.isBaseComponent=!0,t.description="操作栏,用于表格。",t.tags=["展示"],t.icon="",t.scaffold={type:"operation",label:"操作",buttons:[{label:"按钮",type:"button"}]},t.previewSchema={type:"tpl",tpl:"操作栏"},t.regions=[{key:"buttons",label:"按钮集",renderMethod:"render",insertPosition:"inner",preferTag:"按钮"}],t.panelTitle="操作栏",t.panelBodyCreator=function(e){return[(0,s.getSchemaTpl)("className",{name:"innerClassName"}),{children:o.default.createElement(r.Button,{level:"info",size:"sm",className:"m-b-sm",block:!0,onClick:function(){t.manager.showRendererPanel("按钮","请从左侧组件面板中点击添加新的按钮")}},"添加按钮")}]},t}return a.__extends(t,e),t.prototype.buildSubRenderers=function(t,n){if(t&&t.info&&t.info.renderer&&("table"===t.info.renderer.name||"crud"===t.info.renderer.name))return e.prototype.buildSubRenderers.apply(this,arguments)},t}(l.BasePlugin);t.OperationPlugin=u,(0,i.registerEditorPlugin)(u)},9662:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ActionPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=n(3570),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.panelTitle="按钮",t.panelBodyCreator=function(e){var n=/(?:\/|^)dialog\/.+$/.test(e.path);return/(?:\/|^)dropdown-button\/.+$/.test(e.path),[{label:"按钮行为",type:"select",name:"actionType",pipeIn:(0,s.defaultValue)(""),options:[{label:"默认",value:""},{label:"弹框",value:"dialog"},{label:"抽出式弹框(Drawer)",value:"drawer"},{label:"发送请求",value:"ajax"},{label:"下载文件",value:"download"},{label:"页面跳转(单页模式)",value:"link"},{label:"页面跳转",value:"url"},{label:"刷新目标",value:"reload"},{label:"复制内容",value:"copy"},{label:"提交",value:"submit"},{label:"重置",value:"reset"},{label:"重置表单并提交",value:"reset-and-submit"},{label:"清空表单并提交",value:"clear-and-submit"},{label:"确认",value:"confirm"},{label:"取消",value:"cancel"},{label:"跳转下一条",value:"next"},{label:"跳转上一条",value:"prev"}]},{type:"input-text",name:"content",visibleOn:'data.actionType == "copy"',label:"复制内容模板"},{type:"select",name:"copyFormat",options:[{label:"纯文本",value:"text/plain"},{label:"富文本",value:"text/html"}],visibleOn:'data.actionType == "copy"',label:"复制格式"},{type:"input-text",name:"target",visibleOn:'data.actionType == "reload"',label:"指定刷新目标",required:!0},{name:"dialog",pipeIn:(0,s.defaultValue)({title:"弹框标题",body:"

对,你刚刚点击了

"}),asFormItem:!0,children:function(e){var n=e.value,i=e.onChange;return"dialog"===e.data.actionType?o.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",onClick:function(){return t.manager.openSubEditor({title:"配置弹框内容",value:a.__assign({type:"dialog"},n),onChange:function(e){return i(e)}})},block:!0},"配置弹框内容"):null}},{visibleOn:'data.actionType == "drawer"',name:"drawer",pipeIn:(0,s.defaultValue)({title:"弹框标题",body:"

对,你刚刚点击了

"}),asFormItem:!0,children:function(e){var n=e.value,i=e.onChange;return"drawer"==e.data.actionType?o.default.createElement(r.Button,{size:"sm",level:"danger",className:"m-b",onClick:function(){return t.manager.openSubEditor({title:"配置抽出式弹框内容",value:a.__assign({type:"drawer"},n),onChange:function(e){return i(e)}})},block:!0},"配置抽出式弹框内容"):null}},(0,s.getSchemaTpl)("api",{label:"目标API",visibleOn:'data.actionType == "ajax" || data.actionType == "download"'}),{name:"feedback",pipeIn:(0,s.defaultValue)({title:"弹框标题",body:"

内容

"}),asFormItem:!0,children:function(e){var n=e.onChange,i=e.value;return"ajax"==e.data.actionType?o.default.createElement("div",{className:"m-b"},o.default.createElement(r.Button,{size:"sm",level:i?"danger":"info",onClick:function(){return t.manager.openSubEditor({title:"配置反馈弹框详情",value:a.__assign({type:"dialog"},i),onChange:function(e){return n(e)}})}},"配置反馈弹框内容"),i?o.default.createElement(r.Button,{size:"sm",level:"link",className:"m-l",onClick:function(){return n("")}},"清空设置"):null):null}},{name:"feedback.visibleOn",label:"是否弹出表达式",type:"input-text",visibleOn:"this.feedback",autoComplete:!1,description:"请使用 JS 表达式如:`this.xxx == 1`"},{name:"feedback.skipRestOnCancel",label:"弹框取消是否中断后续操作",type:"switch",mode:"inline",className:"block",visibleOn:"this.feedback"},{name:"feedback.skipRestOnConfirm",label:"弹框确认是否中断后续操作",type:"switch",mode:"inline",className:"block",visibleOn:"this.feedback"},{type:"input-text",label:"目标地址",name:"link",visibleOn:'data.actionType == "link"'},{type:"input-text",label:"目标地址",name:"url",visibleOn:'data.actionType == "url"',placeholder:"http://"},{type:"switch",name:"blank",visibleOn:'data.actionType == "url"',mode:"inline",className:"w-full",label:"是否用新窗口打开",pipeIn:(0,s.defaultValue)(!0)},n?{visibleOn:'data.actionType == "submit" || data.type == "submit"',name:"close",type:"switch",mode:"inline",className:"w-full",pipeIn:(0,s.defaultValue)(!0),label:"是否关闭当前弹框"}:null,{name:"confirmText",type:"textarea",label:"确认文案",description:"点击后会弹出此内容,等用户确认后才进行相应的操作。"},{type:"input-text",name:"reload",label:"刷新目标组件",visibleOn:'data.actionType != "link" && data.actionType != "url"',description:"当前动作完成后,指定目标组件刷新。支持传递数据如:xxx?a=\\${a}&b=\\${b},多个目标请用英文逗号隔开。"},{type:"input-text",name:"target",visibleOn:'data.actionType != "reload"',label:"指定响应组件",description:"指定动作执行者,默认为当前组件所在的功能性性组件,如果指定则转交给目标组件来处理。"},{type:"js-editor",allowFullscreen:!0,name:"onClick",label:"自定义点击事件",description:"将会传递 event 和 props 两个参数"},{type:"input-text",name:"hotKey",label:"键盘快捷键"}]},t}return a.__extends(t,e),t.prototype.buildEditorPanel=function(t,n){if(!t.selections.length)if(~["action","button","submit","reset","sparkline"].indexOf(t.info.renderer.name)){var a=this.panelBodyCreator(t);"sparkline"===t.info.renderer.name&&(a={name:"clickAction",type:"combo",label:"",noBorder:!0,multiLine:!0,items:a}),n.push({key:"action",icon:"fa fa-gavel",title:"动作",render:this.manager.makeSchemaFormRender({body:a}),order:100})}else e.prototype.buildEditorPanel.call(this,t,n)},t.prototype.buildEditorToolbar=function(e,t){var n=this,a=e.id,r=e.schema,o=e.info;~["action","button","submit","reset"].indexOf(o.renderer.name)&&"dialog"===r.actionType&&t.push({iconSvg:"dialog",tooltip:"配置弹框内容",placement:"bottom",onClick:function(){return n.editDetail(a)}})},t.prototype.editDetail=function(e){var t=this.manager,n=t.store,r=n.getNodeById(e),o=n.getValueOf(e);r&&o&&this.manager.openSubEditor({title:"配置弹框内容",value:a.__assign({type:"dialog"},o.dialog),onChange:function(e){e=a.__assign(a.__assign({},o),{dialog:e}),t.panelChangeValue(e,(0,u.diff)(o,e))}})},t}(l.BasePlugin);t.ActionPlugin=d,(0,i.registerEditorPlugin)(d)},5503:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicToolbarPlugin=void 0;var a=n(752),r=n(9933),o=n(9756),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return a.__extends(t,e),t.prototype.buildEditorToolbar=function(e,t){var n,a=this,r=e.id,o=e.schema,i=this.manager.store,l=i.getNodeById(r),s=i.getSchemaParentById(r),u=l.parent;if(Array.isArray(s)&&(null==u?void 0:u.isRegion)){var d=l.host;l.draggable&&t.push({iconSvg:"drag-btn",icon:"fa fa-arrows",tooltip:"按住拖动调整位置",placement:"bottom",draggable:!0,order:-1e3,onDragStart:this.manager.startDrag.bind(this.manager,r)});var c=s.indexOf(o);if(!(null==d?void 0:d.memberImmutable(u.region))&&i.panels.some((function(e){return"renderers"===e.key}))){var p=null===(n=s[c+1])||void 0===n?void 0:n.$$id;t.push({iconSvg:"left-arrow-to-left",tooltip:"向前插入组件",placement:"bottom",onClick:function(){return a.manager.showInsertPanel(u.region,u.id,u.preferTag,"insert",void 0,r)}},{iconSvg:"arrow-to-right",tooltip:"向后插入组件",placement:"bottom",onClick:function(){return a.manager.showInsertPanel(u.region,u.id,u.preferTag,"insert",void 0,p)}})}}l.isVitualRenderer||!l.info.plugin.popOverBody&&!l.info.plugin.popOverBodyCreator||t.push({icon:"fa fa-pencil",tooltip:"编辑",placement:"bottom",onClick:function(e){return a.manager.openNodePopOverForm(l.id)}}),(l.removable||void 0===l.removable)&&t.push({iconSvg:"delete-btn",icon:"fa",tooltip:"删除",placement:"bottom",order:999,onClick:this.manager.del.bind(this.manager,r)}),t.push({iconSvg:"more-btn",icon:"fa fa-cog",tooltip:"更多",placement:"bottom",order:1e3,onClick:function(e){if(!e.defaultPrevented){var t=e.target.parentElement.getBoundingClientRect();a.manager.openContextMenu(r,"",{x:window.scrollX+t.left+t.width-155,y:window.scrollY+t.top+t.height+8})}}})},t.prototype.buildEditorContextMenu=function(e,t){var n,a=e.id,r=e.schema,o=e.region,i=e.selections,l=this.manager,s=l.store,u=s.getSchemaParentById(a),d=s.getNodeById(a),c=s.getNodePathById(a),p=c.pop();if(d.host,d.parent,i.length)t.push({label:"重复一份",icon:"copy-icon",disabled:i.some((function(e){return!e.node.duplicatable})),onSelect:function(){return l.duplicate(i.map((function(e){return e.id})))}}),t.push({label:"取消多选",icon:"cancel-icon",onSelect:function(){return s.setActiveId(a)}}),t.push({label:"删除",icon:"delete-icon",disabled:i.some((function(e){return!e.node.removable})),className:"text-danger",onSelect:function(){return l.del(i.map((function(e){return e.id})))}});else if(o)(h=s.panels.find((function(e){return"renderers"===e.key})))&&(t.push({label:"插入组件",onHighlight:function(e){return e&&s.setHoverId(a,o)},onSelect:function(){return s.showInsertRendererPanel()}}),t.push({label:"清空",onSelect:function(){return l.emptyRegion(a,o)}}),t.push({label:"粘贴",onSelect:function(){return l.paste(a,o)}}));else{if(t.push({label:"选中".concat(p.label),disabled:s.activeId===p.id,data:a,onSelect:function(e){return s.setActiveId(e)},onHighlight:function(e,t){return e&&s.setHoverId(t)}}),c.length){var f=c.filter((function(e){var t;return!e.isRegion&&!1!==(null===(t=e.info)||void 0===t?void 0:t.editable)})).reverse().map((function(e){return{label:e.label,data:e.id,onSelect:function(e){return s.setActiveId(e)},onHighlight:function(e,t){return e&&s.setHoverId(t)}}}));f.length&&t.push({label:"选中层级",children:f})}t.push({label:"取消选中",disabled:!s.activeId||s.activeId!==a,onSelect:function(){return s.setActiveId("")}}),t.push("|"),t.push({label:"重复一份",disabled:!d.duplicatable,onSelect:function(){return l.duplicate(a)}}),t.push({label:"复制配置",onSelect:function(){return l.copy(a)}}),t.push({label:"剪切配置",disabled:!d.removable,onSelect:function(){return l.cut(a)}}),t.push({label:"粘贴配置",disabled:!Array.isArray(u)||!d.parent||!1===(null===(n=d.info)||void 0===n?void 0:n.typeMutable)||!d.replaceable,onSelect:function(){return l.paste(a)}}),t.push({label:"删除",disabled:!d.removable,className:"text-danger",onSelect:function(){return l.del(a)}}),t.push("|");var m=Array.isArray(u)?u.indexOf(r):-1;t.push({label:"向前移动",disabled:!(Array.isArray(u)&&m>0&&d.moveable&&d.prevSibling),onSelect:function(){return l.moveUp()}}),t.push({label:"向后移动",disabled:!(Array.isArray(u)&&m1?t.push({label:"插入组件",children:p.childRegions.map((function(e){return{label:"".concat(e.label),data:e.region,onHighlight:function(e,t){return e?s.setHoverId(a,t):s.setHoverId("")},onSelect:function(){return s.showInsertRendererPanel()}}}))}):t.push({label:"插入组件",data:p.childRegions[0].region,onHighlight:function(e,t){return e?s.setHoverId(a,t):s.setHoverId("")},onSelect:function(){return s.showInsertRendererPanel()}}))}},t.prototype.buildEditorPanel=function(e,t){if(e.selections.length){var n=[],r=a.__assign(a.__assign({},e),{data:n,region:""});(n=this.manager.buildContextMenus(r)).length&&t.push({key:"contextmenu",icon:"fa fa-cog",title:"操作",menus:n,render:this.manager.makeSchemaFormRender({body:[{type:"button-group",block:!0,buttons:n.filter((function(e){return"|"!==e})).map((function(e){return a.__assign(a.__assign({},e),{type:"button",onClick:e.onSelect})}))}]})})}},t.prototype.afterInsert=function(e){var t,n,a=this,r=e.context;if(r.node&&(null===(n=null===(t=r.subRenderer)||void 0===t?void 0:t.plugin)||void 0===n?void 0:n.popOverBody)){var o=r.data.$$id;o&&setTimeout((function(){a.manager.setActiveId(o),requestAnimationFrame((function(){a.manager.openNodePopOverForm(o)}))}),200)}},t}(r.BasePlugin);t.BasicToolbarPlugin=i,(0,o.registerEditorPlugin)(i)},8878:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataDebugPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=a.__importDefault(n(6689)),l=a.__importDefault(n(3001)),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dataViewer={type:"json",name:"ctx",asFormItem:!0,className:"m-b-none",component:function(e){for(var t=e.value,n=e.onChange,a=e.readOnly,r=i.default.useState(0),o=r[0],s=r[1],u=t||{},d=[u];Object.getPrototypeOf(u)!==Object.prototype;){var c=Object.getPrototypeOf(u);if("[object Object]"!==Object.prototype.toString.call(c))break;d.push(c),u=c}function p(e){var t=Object.create(d[1]||Object.prototype);Object.keys(e.updated_src).forEach((function(n){return t[n]=e.updated_src[n]})),n(t)}return i.default.createElement("div",{className:"aeDataChain"},i.default.createElement("div",{className:"aeDataChain-aside"},i.default.createElement("ul",null,d.map((function(e,t){return i.default.createElement("li",{className:t===o?"is-active":"",key:t,onClick:function(){return s(t)}},0===t?"当前":1===t?"上层":"上".concat(t,"层"))})))),i.default.createElement("div",{className:"aeDataChain-main"},i.default.createElement(l.default,{name:!1,src:d[o],enableClipboard:!1,iconStyle:"square",onAdd:0===o&&!a&&p,onEdit:0===o&&!a&&p,onDelete:0===o&&!a&&p,collapsed:2})))}},t}return a.__extends(t,e),t.prototype.buildEditorToolbar=function(e,t){var n=this,a=(e.id,e.schema,e.node.getComponent());if(a&&a.props.data&&a.props.store){var r=a.props.store;t.push({icon:"fa fa-bug",order:-1e3,placement:"bottom",tooltip:"上下文数据",onClick:function(){return n.openDebugForm(a.props.data,r.updateData&&r.data===a.props.data?function(e){return r.updateData(e)}:void 0)}})}},t.prototype.openDebugForm=function(e,t){return a.__awaiter(this,void 0,void 0,(function(){var n;return a.__generator(this,(function(r){switch(r.label){case 0:return[4,this.manager.scaffold({title:"上下文数据",body:[a.__assign(a.__assign({},this.dataViewer),{readOnly:!t})]},{ctx:e})];case 1:return n=r.sent(),null==t||t(n.ctx),[2]}}))}))},t}(o.BasePlugin);t.DataDebugPlugin=s,(0,r.registerEditorPlugin)(s)},9251:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableCellPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=n(3893),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.panelTitle="列配置",t.panelIcon="fa fa-columns",t.panelBodyCreator=function(e){return[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"label",label:"列名称",type:"input-text"},{name:"name",type:"input-text",label:"绑定字段名"},{name:"remark",label:"提示",type:"input-text",description:"显示一个提示图标,鼠标放上去会提示该内容。"},{name:"placeholder",type:"input-text",label:"占位符",value:"-",description:"当没有值时用这个来替代展示"},{name:"sortable",type:"switch",label:"是否可排序",mode:"inline",className:"w-full",description:"开启后可以根据当前列排序(后端排序)。"}]},{title:"高级",body:[{name:"groupName",label:"列分组名称",type:"input-text",description:'当多列的分组名称设置一致时,表格会在显示表头的上层显示超级表头,示例'},{name:"quickEdit",label:"启用快速编辑",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{visibleOn:"data.quickEdit",name:"quickEdit.mode",type:"button-group-select",value:"popOver",label:"快速编辑模式",size:"xs",mode:"inline",className:"w-full",options:[{label:"下拉",value:"popOver"},{label:"内嵌",value:"inline"}]},{visibleOn:"data.quickEdit",name:"quickEdit.saveImmediately",label:"是否立即保存",type:"switch",mode:"inline",className:"w-full",description:"开启后修改即提交,而不是标记修改批量提交。",descriptionClassName:"help-block m-b-none",pipeIn:function(e){return!!e}},(0,s.getSchemaTpl)("api",{label:"立即保存接口",description:"是否单独给立即保存配置接口,如果不配置,则默认使用quickSaveItemApi。",name:"quickEdit.saveImmediately.api",visibleOn:"this.quickEdit && this.quickEdit.saveImmediately"}),{visibleOn:"data.quickEdit",name:"quickEdit",asFormItem:!0,children:function(e){var n=e.value,i=e.onChange,l=e.data;!0===n?n={}:void 0===n&&(n=(0,u.getVariable)(l,"quickEdit"));var s=n.mode;return delete(n=a.__assign({type:"input-text",name:l.name},n)).mode,o.default.createElement(r.Button,{level:"info",className:"m-b",size:"sm",block:!0,onClick:function(){t.manager.openSubEditor({title:"配置快速编辑类型",value:n,slot:{type:"form",mode:"normal",body:["$$"],wrapWithPanel:!1},onChange:function(e){return i(a.__assign(a.__assign({},e),{mode:s}),"quickEdit")}})}},"配置快速编辑")}},{name:"popOver",label:"启用查看更多展示",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{name:"popOver.mode",label:"查看更多弹出模式",type:"select",visibleOn:"data.popOver",pipeIn:(0,s.defaultValue)("popOver"),options:[{label:"默认",value:"popOver"},{label:"弹框",value:"dialog"},{label:"抽出式弹框",value:"drawer"}]},{name:"popOver.position",label:"查看更多弹出模式",type:"select",visibleOn:'data.popOver && data.popOver.mode === "popOver"',pipeIn:(0,s.defaultValue)("center"),options:[{label:"目标中部",value:"center"},{label:"目标左上角",value:"left-top"},{label:"目标右上角",value:"right-top"},{label:"目标左下角",value:"left-bottom"},{label:"目标右下角",value:"right-bottom"},{label:"页面左上角",value:"fixed-left-top"},{label:"页面右上角",value:"fixed-right-top"},{label:"页面左下角",value:"fixed-left-bottom"},{label:"页面右下角",value:"fixed-right-bottom"}]},{visibleOn:"data.popOver",name:"popOver",asFormItem:!0,children:function(e){var n=e.value,i=e.onChange;return n=a.__assign({type:"panel",title:"查看详情",body:"内容详情"},n),o.default.createElement(r.Button,{level:"info",className:"m-b",size:"sm",block:!0,onClick:function(){t.manager.openSubEditor({title:"配置查看更多展示内容",value:n,onChange:function(e){return i(e,"popOver")}})}},"查看更多内容配置")}},{name:"copyable",label:"启用内容复制功能",type:"switch",pipeIn:function(e){return!!e},mode:"inline",className:"w-full"},{visibleOn:"data.copyable",name:"copyable.content",type:"textarea",label:"复制内容模板",description:"默认为当前字段值,可定制。"}]},{title:"外观",body:[{name:"fixed",type:"button-group-select",label:"固定位置",pipeIn:(0,s.defaultValue)(""),size:"xs",mode:"inline",className:"w-full",options:[{value:"",label:"不固定"},{value:"left",label:"左侧"},{value:"right",label:"右侧"}]},{name:"toggled",type:"switch",label:"默认展示",mode:"inline",className:"w-full",pipeIn:(0,s.defaultValue)(!0)},{name:"breakpoint",type:"button-group-select",label:"触发底部显示条件",visibleOn:"data.tableFootableEnabled",size:"xs",multiple:!0,options:[{label:"总是",value:"*"},{label:"手机端",value:"xs"},{label:"平板",value:"sm"},{label:"PC小屏",value:"md"},{label:"PC大屏",value:"lg"}],pipeIn:function(e){return e?"string"==typeof e?e:"*":""},pipeOut:function(e){return"string"==typeof e&&~e.indexOf("*")&&/xs|sm|md|lg/.test(e)?e.replace(/\*\s*,\s*|\s*,\s*\*/g,""):e}},{type:"switch",name:"className",label:"内容强制换行",mode:"inline",className:"w-full",pipeIn:function(e){return"string"==typeof e&&/\word\-break\b/.test(e)},pipeOut:function(e,t){return(e?"word-break ":"")+(t||"").replace(/\bword\-break\b/g,"").trim()}},(0,s.getSchemaTpl)("className"),(0,s.getSchemaTpl)("className",{name:"innerClassName",label:"内部 CSS 类名"}),{name:"width",type:"input-number",label:"列宽",description:"固定列的宽度,不推荐设置。"}]}])]},t}return a.__extends(t,e),t.prototype.getRendererInfo=function(e){var t=e.renderer,n=e.schema;if("table-cell"===t.name)return{name:n.label?"<".concat(n.label,">列"):"匿名列",$schema:"/schemas/TableColumn.json",multifactor:!0,wrapperResolve:function(e){var t=[].slice.call(e.parentElement.children).indexOf(e)+1,a=e.closest("table");return[].slice.call(a.querySelectorAll("th:nth-child(".concat(t,'):not([data-editor-id="').concat(n.id,'"]),\n td:nth-child(').concat(t,'):not([data-editor-id="').concat(n.id,'"])')))}}},t.prototype.beforeReplace=function(e){var t=e.context;t.info.plugin===this&&t.data&&(t.data.label=t.data.label||t.schema.label,t.data.name=t.data.name||t.schema.name)},t}(l.BasePlugin);t.TableCellPlugin=d,(0,i.registerEditorPlugin)(d)},770:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnkownRendererPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=9999,t}return a.__extends(t,e),t.prototype.getRendererInfo=function(e){var t=e.renderer,n=e.schema,a=e.path;if(n.$$id&&t){if(/(^|\/)static\-field/.test(a))return;if("card-item"===t.name||"list-item-field"===t.name)return;return{name:"Unkown",$schema:"/schemas/UnkownSchema.json"}}},t}(n(9933).BasePlugin);t.UnkownRendererPlugin=o,(0,r.registerEditorPlugin)(o)},410:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PagePlugin=void 0;var a=n(752),r=n(9305),o=n(9756),i=n(9933),l=n(9547),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="page",t.$schema="/schemas/PageSchema.json",t.name="页面",t.isBaseComponent=!0,t.docLink="/amis/zh-CN/components/page",t.tags="容器",t.icon="fa fa-desktop",t.scaffold={type:"page",body:[{type:"tpl",tpl:"内容"}]},t.previewSchema={type:"page",className:"text-left b-a",asideClassName:"w-xs",title:"标题",subTitle:"副标题",aside:"边栏",body:"内容"},t.regions=[{key:"toolbar",label:"工具栏",preferTag:"工具栏内容"},{key:"aside",label:"边栏",placeholder:"边栏内容"},{key:"body",label:"内容区",placeholder:"页面内容"}],t.wrapper=r.ContainerWrapper,t.panelTitle="页面",t.panelBody=[(0,l.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"checkboxes",name:"regions",label:"区域展示",pipeIn:function(e){return Array.isArray(e)?e:["auto","body","toolbar","aside","header"]},pipeOut:function(e){return Array.isArray(e)&&~e.indexOf("auto")?void 0:e.length?e:["auto","body","toolbar","aside","header"]},joinValues:!1,extractValue:!0,inline:!1,options:[{label:"自动",value:"auto"},{label:"内容区",value:"body",disabledOn:'!Array.isArray(this.regions) || ~this.regions.indexOf("auto")'},{label:"边栏",value:"aside",disabledOn:'!Array.isArray(this.regions) ||~this.regions.indexOf("auto")'},{label:"工具栏",value:"toolbar",disabledOn:'!Array.isArray(this.regions) ||~this.regions.indexOf("auto")'},{label:"顶部",value:"header",disabledOn:'!Array.isArray(this.regions) ||~this.regions.indexOf("auto")'}]},{label:"标题",name:"title",type:"input-text"},{label:"副标题",name:"subTitle",type:"input-text"},{label:"提示",name:"remark",type:"textarea",visibleOn:"this.title",description:"标题附近会出现一个提示图标,鼠标放上去会提示该内容。"},(0,l.getSchemaTpl)("data")]},{title:"接口",body:[(0,l.getSchemaTpl)("api",{label:"数据初始化接口",name:"initApi",sampleBuilder:function(e){return'{\n "status": 0,\n "msg": "",\n\n data: {\n // 示例数据\n "id": 1,\n "a": "sample"\n }\n}'}}),(0,l.getSchemaTpl)("initFetch"),{label:"开启定时刷新",type:"switch",name:"interval",visibleOn:"data.initApi",pipeIn:function(e){return!!e},pipeOut:function(e){return e?3e3:void 0},mode:"inline"},{name:"interval",type:"input-number",visibleOn:'typeof this.interval === "number"',step:500},{name:"silentPolling",label:"静默刷新",type:"switch",mode:"inline",visibleOn:"!!data.interval",description:"设置自动定时刷新时是否显示loading"},{name:"stopAutoRefreshWhen",label:"停止定时刷新检测表达式",type:"input-text",visibleOn:"!!data.interval",description:"定时刷新一旦设置会一直刷新,除非给出表达式,条件满足后则不刷新了。"},{label:"默认消息提示",type:"combo",name:"messages",multiLine:!0,description:"设置 ajax 默认提示信息,当 ajax 没有返回 msg 信息时有用,如果 ajax 返回携带了 msg 值,则还是以 ajax 返回为主",items:[{label:"获取成功提示",type:"input-text",name:"fetchSuccess"},{label:"获取失败提示",type:"input-text",name:"fetchFailed"},{label:"保存成功提示",type:"input-text",name:"saveSuccess"},{label:"保存失败提示",type:"input-text",name:"saveFailed"}]}]},{title:"外观",body:[(0,l.getSchemaTpl)("className"),(0,l.getSchemaTpl)("className",{name:"headerClassName",label:"头部CSS类名"}),(0,l.getSchemaTpl)("className",{name:"bodyClassName",label:"内容CSS类名"}),(0,l.getSchemaTpl)("className",{name:"asideClassName",label:"边栏CSS类名"}),(0,l.getSchemaTpl)("className",{name:"toolbarClassName",label:"工具栏CSS类名"}),(0,l.getSchemaTpl)("style")]},{title:"其他",body:[(0,l.getSchemaTpl)("name")]}])],t}return a.__extends(t,e),t}(i.BasePlugin);t.PagePlugin=s,(0,o.registerEditorPlugin)(s)},2398:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PanelPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="panel",t.$schema="/schemas/panelSchema.json",t.name="面板",t.isBaseComponent=!0,t.icon="fa fa-window-maximize",t.description="展示一个面板,可以配置标题,内容区。",t.docLink="/amis/zh-CN/components/panel",t.tags="容器",t.scaffold={type:"panel",title:"标题",body:"内容"},t.previewSchema={type:"panel",title:"这是一个面板",body:"这是内容区",className:"Panel--default text-left m-b-none",actions:[{label:"按钮1",type:"button"},{label:"按钮2",type:"button"}]},t.regions=[{key:"body",label:"内容区",renderMethod:"renderBody",renderMethodOverride:function(e,t){return function(){for(var n=[],a=0;a{Object.defineProperty(t,"__esModule",{value:!0}),t.AvailableRenderersPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=n(6151),l=n(9756),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return a.__extends(t,e),t.prototype.buildEditorPanel=function(e,t){var n=this.manager.store;e.selections.length||n.activeContainerId&&n.subRenderers.length&&t.push({key:"renderers",icon:"png-icon renderers-png",title:r.default.createElement("span",{className:"editor-tab-icon","editor-tooltip":"组件"},r.default.createElement(o.Icon,{icon:"editor-renderer"})),component:i.AvailableRenderersPanel,position:"left",order:-9999})},t}(n(9933).BasePlugin);t.AvailableRenderersPlugin=s,(0,l.registerEditorPlugin)(s)},8540:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CodePlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=a.__importDefault(n(4212)),l=n(9756),s=n(9933),u=a.__importDefault(n(2128)),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return a.__extends(t,e),t.prototype.buildJSONSchema=function(e){return e.info.$schema},t.prototype.buildEditorPanel=function(e,t){e.info;var n=e.selections;this.manager.store.jsonSchemaUri&&!n.length&&t.push({key:"code",icon:"png-icon code-png",title:r.default.createElement("span",{className:"editor-tab-icon","editor-tooltip":"代码"},r.default.createElement(o.Icon,{icon:"editor-code"})),position:"left",component:(0,u.default)(i.default),order:5e3})},t}(s.BasePlugin);t.CodePlugin=d,(0,l.registerEditorPlugin)(d)},282:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamePlugin=void 0;var a=n(752),r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return a.__extends(t,e),t.prototype.buildEditorPanel=function(e,t){e.info,e.selections},t}(n(9933).BasePlugin);t.NamePlugin=r},8474:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OutlinePlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(1502),i=n(411),l=n(9756),s=n(9933),u=a.__importDefault(n(2128)),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.order=-9999,t}return a.__extends(t,e),t.prototype.buildEditorPanel=function(e,t){var n=this.manager.store;if(n&&e.selections.length){var a=n.changeLeftPanelOpenStatus,l=n.changeLeftPanelKey;a(!0),l("outline")}t.push({key:"outline",icon:"png-icon outline-png",title:r.default.createElement("span",{className:"editor-tab-icon","editor-tooltip":"大纲"},r.default.createElement(o.Icon,{icon:"editor-outline"})),component:(0,u.default)(i.OutlinePanel),position:"left",order:4e3})},t}(s.BasePlugin);t.OutlinePlugin=d,(0,l.registerEditorPlugin)(d)},9227:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PlainPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="plain",t.$schema="/schemas/PlainSchema.json",t.disabledRendererPlugin=!0,t.name="纯文本",t.isBaseComponent=!0,t.icon="fa fa-file-text-o",t.description="用来展示纯文字,html 标签会被转义。",t.docLink="/amis/zh-CN/components/plain",t.tags=["展示"],t.previewSchema={type:"plain",text:"这是纯文本",className:"text-center",inline:!1},t.scaffold={type:"plain",tpl:"内容",inline:!1},t.panelTitle="纯文本",t.panelBodyCreator=function(e){var t="table-cell"===e.info.renderer.name;return(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{label:"内容",type:"textarea",pipeIn:function(e,t){return e||t&&t.text},name:"tpl",description:'如果当前字段有值,请不要设置,否则覆盖。支持使用 \\${xxx} 来获取变量,或者用 lodash.template 语法来写模板逻辑。详情'},{name:"placeholder",label:"占位符",type:"input-text",pipeIn:(0,i.defaultValue)("-")}]},t?null:{title:"外观",body:[{label:"内联模式",type:"switch",name:"inline",mode:"inline",className:"w-full",value:!0},(0,i.getSchemaTpl)("className")]},t?null:{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])},t}return a.__extends(t,e),t}(o.BasePlugin);t.PlainPlugin=l,(0,r.registerEditorPlugin)(l)},6218:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="progress",t.$schema="/schemas/ProgressSchema.json",t.name="进度展示",t.isBaseComponent=!0,t.description="用来展示进度。可配置各个进度段用不同的颜色展示。",t.docLink="/amis/zh-CN/components/progress",t.tags=["展示"],t.icon="fa fa-angle-double-right",t.scaffold={type:"progress",value:66.66},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="进度",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[t?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"

当前为字段内容节点配置,选择上层还有更多的配置。

"}:null,{name:"showLabel",type:"switch",mode:"inline",pipeIn:(0,i.defaultValue)(!0),label:"是否显示文字"},{name:"stripe",type:"switch",mode:"inline",label:"是否显示条纹"},{name:"animate",type:"switch",mode:"inline",label:"是否显示动画"},{name:"map",label:"等级配置",type:"input-array",items:{type:"input-text"},descrition:"配置不通的值段,用不通的样式提示用户",pipeIn:(0,i.defaultValue)(["bg-danger","bg-warning","bg-info","bg-success","bg-success"])},(0,i.getSchemaTpl)("switchDefaultValue"),{type:"input-text",name:"value",label:"默认值",validations:"isNumeric",visibleOn:'typeof this.value !== "undefined"'},{name:"placeholder",type:"input-text",pipeIn:(0,i.defaultValue)("-"),label:"占位符"}]},{title:"外观",body:[(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("className",{name:"progressClassName",label:"进度外层 CSS 类名",pipeIn:(0,i.defaultValue)("progress-xs progress-striped active m-t-xs m-b-none")}),(0,i.getSchemaTpl)("className",{name:"progressBarClassName",label:"进度条 CSS 类名"})]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t}(o.BasePlugin);t.ProgressPlugin=l,(0,r.registerEditorPlugin)(l)},3470:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="property",t.$schema="/schemas/PropertySchema.json",t.name="属性表",t.isBaseComponent=!0,t.icon="fa fa-list",t.description="属性表",t.docLink="/amis/zh-CN/components/property",t.tags=["其他"],t.scaffold={type:"property",title:"机器配置",items:[{label:"cpu",content:"1 core"},{label:"memory",content:"4G"},{label:"disk",content:"80G"},{label:"network",content:"4M",span:2},{label:"IDC",content:"beijing"},{label:"Note",content:"其它说明",span:3}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="属性表",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{label:"标题",type:"input-text",name:"title"},{label:"每行显示几列",type:"input-number",value:3,name:"column"},{type:"radios",name:"mode",inline:!0,value:"table",label:"显示模式",options:["table","simple"]},{label:"分隔符",type:"input-text",name:"separator",visibleOn:'data.mode === "simple"'},{label:"属性取自变量",type:"input-text",name:"source"},{label:"属性列表",name:"items",type:"combo",multiple:!0,multiLine:!0,draggable:!0,addButtonText:"新增",items:[{type:"input-text",mode:"inline",size:"sm",label:"属性名",name:"label"},{type:"input-text",mode:"inline",size:"sm",label:"属性值",name:"content"},{type:"input-number",mode:"inline",size:"sm",label:"跨几列",value:1,name:"span"}]}]},{title:"外观",body:[(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t}(o.BasePlugin);t.PropertyPlugin=l,(0,r.registerEditorPlugin)(l)},2500:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QRCodePlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="qrcode",t.$schema="/schemas/QRCodeSchema.json",t.name="二维码",t.isBaseComponent=!0,t.description="可以用来生成二维码",t.docLink="/amis/zh-CN/components/qrcode",t.tags=["功能"],t.icon="fa fa-qrcode",t.scaffold={type:"qrcode",value:"https://amis.baidu.com"},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="二维码",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"value",type:"input-text",label:"二维码值",pipeIn:(0,i.defaultValue)("https://www.baidu.com"),description:"支持使用 \\${xxx} 来获取变量"},{name:"level",type:"select",label:"复杂度",pipeIn:(0,i.defaultValue)("L"),options:[{label:"L",value:"L"},{label:"M",value:"M"},{label:"Q",value:"Q"},{label:"H",value:"H"}]}]},{title:"外观",body:[{name:"codeSize",type:"input-number",label:"宽高值",pipeIn:(0,i.defaultValue)(128)},{name:"backgroundColor",type:"input-color",label:"背景色",pipeIn:(0,i.defaultValue)("#fff")},{name:"foregroundColor",type:"input-color",label:"前景色",pipeIn:(0,i.defaultValue)("#000")},(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t}(o.BasePlugin);t.QRCodePlugin=l,(0,r.registerEditorPlugin)(l)},7328:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResetPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="reset",t.disabledRendererPlugin=!0,t.name="重置",t.isBaseComponent=!0,t.icon="fa fa-eraser",t.description="一般用来重置表单数据到初始值。",t.panelTitle="按钮",t.scaffold={type:"reset",label:"重置"},t.previewSchema=a.__assign({},t.scaffold),t}return a.__extends(t,e),t}(n(6460).ButtonPlugin);t.ResetPlugin=o,(0,r.registerEditorPlugin)(o)},946:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ServicePlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="service",t.$schema="/schemas/ServiceSchema.json",t.name="服务 Service",t.isBaseComponent=!0,t.description="功能性容器,可以用来加载数据或者加载渲染器配置。加载到的数据在容器可以使用。",t.docLink="/amis/zh-CN/components/service",t.tags=["功能"],t.icon="fa fa-server",t.scaffold={type:"service",body:[{type:"tpl",tpl:"内容",inline:!1}]},t.previewSchema={type:"tpl",tpl:"功能性组件,用于数据拉取。"},t.regions=[{key:"body",label:"内容区"}],t.panelTitle="服务",t.panelBodyCreator=function(e){return(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{children:o.default.createElement(r.Button,{level:"info",size:"sm",className:"m-b-sm",block:!0,onClick:function(){t.manager.showRendererPanel("")}},"添加内容")},{type:"divider"},(0,s.getSchemaTpl)("api",{label:"数据接口"}),(0,s.getSchemaTpl)("data"),{name:"ws",type:"input-text",label:"WebSocket 实时更新接口"},(0,s.getSchemaTpl)("initFetch"),{name:"interval",label:"定时刷新间隔",visibleOn:"this.api",type:"input-number",step:500,description:"设置后将自动定时刷新,单位 ms"},{name:"silentPolling",label:"静默加载",mode:"inline",className:"block",type:"switch",visibleOn:"!!data.interval",description:"设置自动定时刷新是否显示加载动画"},{name:"stopAutoRefreshWhen",label:"停止定时刷新检测",type:"input-text",visibleOn:"!!data.interval",description:"定时刷新一旦设置会一直刷新,除非给出表达式,条件满足后则不刷新了。"},{type:"divider"},(0,s.getSchemaTpl)("api",{name:"schemaApi",label:"内容 Schema 接口"}),{type:"divider"},(0,s.getSchemaTpl)("initFetch",{name:"initFetchSchema",visibleOn:"data.schemaApi",label:"初始是否拉取内容 Schema 接口"}),{type:"js-editor",allowFullscreen:!0,name:"dataProvider",label:"自定义函数获取数据",description:"将会传递 data 和 setData 两个参数"},{label:"默认消息信息",type:"combo",name:"messages",multiLine:!0,description:"设置 service 默认提示信息,当 service 没有返回 msg 信息时有用,如果 service 返回携带了 msg 值,则还是以 service 返回为主",items:[{label:"获取成功",type:"input-text",name:"fetchSuccess"},{label:"获取失败",type:"input-text",name:"fetchFailed"}]}]},{title:"外观",body:[(0,s.getSchemaTpl)("className")]},{title:"其他",body:[(0,s.getSchemaTpl)("ref"),(0,s.getSchemaTpl)("name"),(0,s.getSchemaTpl)("visible")]}])},t}return a.__extends(t,e),t}(l.BasePlugin);t.ServicePlugin=u,(0,i.registerEditorPlugin)(u)},1886:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SparklinePlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="sparkline",t.$schema="/schemas/SparklineSchema.json",t.name="走势图",t.isBaseComponent=!0,t.description="用于内嵌展示简单图表",t.docLink="/amis/zh-CN/components/sparkline",t.tags=["展示"],t.icon="fa fa-area-chart",t.scaffold={type:"sparkline",height:30,value:[3,5,2,4,1,8,3,7]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="走势图",t.panelBody=[{name:"height",type:"input-number",label:"高度"}],t}return a.__extends(t,e),t}(n(9933).BasePlugin);t.SparklinePlugin=o,(0,r.registerEditorPlugin)(o)},8979:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StatusPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="status",t.$schema="/schemas/StatusSchema.json",t.name="状态显示",t.isBaseComponent=!0,t.description="用图标更具关联字段来展示状态,比如 1 展示 √、0 展示 x。这块可以自定义配置",t.docLink="/amis/zh-CN/components/status",t.tags=["展示"],t.icon="fa fa-check-square-o",t.scaffold={type:"status",value:1},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="状态",t.panelBodyCreator=function(e){var t=/\/field\/\w+$/.test(e.path);return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[t?{type:"tpl",inline:!1,className:"text-info text-sm",tpl:"

当前为字段内容节点配置,选择上层还有更多的配置。

"}:null,{name:"map",label:"图标配置",type:"input-array",items:{type:"input-text"},descrition:"配置不通的值段,用不通的样式提示用户",pipeIn:(0,i.defaultValue)(["fa fa-times text-danger","fa fa-check text-success"])},{name:"placeholder",type:"input-text",pipeIn:(0,i.defaultValue)("-"),label:"占位符"}]},{title:"外观",body:[(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t}(o.BasePlugin);t.StatusPlugin=l,(0,r.registerEditorPlugin)(l)},46:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StepsPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="steps",t.$schema="/schemas/StepsSchema.json",t.name="Steps 步骤条",t.isBaseComponent=!0,t.icon="fa fa-forward",t.description="Steps 步骤条",t.docLink="/amis/zh-CN/components/steps",t.tags=["展示"],t.scaffold={type:"steps",value:1,steps:[{title:"第一步",subTitle:"副标题",description:"描述"},{title:"第二步"},{title:"第三步"}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="Steps",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"steps",label:"步骤列表",type:"combo",scaffold:{type:"wrapper",body:"子节点内容"},minLength:2,multiple:!0,draggable:!0,items:[{type:"input-text",name:"title",label:!1,placeholder:"标题"},{type:"input-text",name:"subTitle",label:!1,placeholder:"副标题"},{type:"input-text",name:"description",label:!1,placeholder:"描述"}]},{name:"value",type:"input-text",label:"当前步骤",description:"以零为起点"},{name:"status",type:"select",label:"当前状态",creatable:!0,value:"finish",options:[{label:"进行中",value:"process"},{label:"等待",value:"wait"},{label:"完成",value:"finish"},{label:"出错",value:"error"}]},(0,i.getSchemaTpl)("api",{name:"source",label:"获取步骤接口"})]},{title:"外观",body:[(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t}(o.BasePlugin);t.StepsPlugin=l,(0,r.registerEditorPlugin)(l)},9268:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitPlugin=void 0;var a=n(752),r=n(9756),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="submit",t.disabledRendererPlugin=!0,t.name="提交",t.isBaseComponent=!0,t.description="用来提交表单,要求表单验证,如果在弹窗中会自动关闭弹窗。",t.panelTitle="按钮",t.scaffold={type:"submit",label:"提交",level:"primary"},t.previewSchema=a.__assign({},t.scaffold),t}return a.__extends(t,e),t}(n(6460).ButtonPlugin);t.SubmitPlugin=o,(0,r.registerEditorPlugin)(o)},7599:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TablePlugin=void 0;var a=n(752),r=n(1502),o=n(9756),i=n(9933),l=n(9547),s=n(3570),u=n(3893),d=n(6374),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="table",t.$schema="/schemas/TableSchema.json",t.name="表格",t.isBaseComponent=!0,t.description="用来展示表格数据,可以配置列信息,然后关联数据便能完成展示。支持嵌套、超级表头、列固定、表头固顶、合并单元格等等。当前组件需要配置数据源,不自带数据拉取,请优先使用 「CRUD」 组件。",t.docLink="/amis/zh-CN/components/table",t.icon="fa fa-table",t.scaffold={type:"table",columns:[{label:"列信息",name:"a"}]},t.regions=[{key:"columns",label:"列集合",renderMethod:"renderTableContent",preferTag:"展示",dndMode:"position-h"}],t.previewSchema={type:"table",className:"text-left m-b-none",affixHeader:!1,items:[{a:1,b:2},{a:3,b:4},{a:5,b:6}],columns:[{label:"A",name:"a"},{label:"B",name:"b"}]},t.scaffoldForm={title:"快速构建表格",body:[{name:"columns",type:"combo",multiple:!0,label:!1,addButtonText:"新增一列",draggable:!0,items:[{type:"input-text",name:"label",placeholder:"标题"},{type:"input-text",name:"name",placeholder:"绑定字段名"},{type:"select",name:"type",placeholder:"类型",value:"text",options:[{value:"text",label:"纯文本"},{value:"tpl",label:"模板"},{value:"image",label:"图片"},{value:"date",label:"日期"},{value:"progress",label:"进度"},{value:"status",label:"状态"},{value:"mapping",label:"映射"},{value:"operation",label:"操作栏"}]}]}],canRebuild:!0},t.panelTitle="表格",t.panelBodyCreator=function(e){var t="crud"===e.schema.type;return(0,l.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"title",type:"input-text",label:"标题"},t?null:{name:"source",type:"input-text",label:"数据源",pipeIn:(0,l.defaultValue)("${items}"),description:"绑定当前环境变量"},{name:"combineNum",label:"自动合并单元格",type:"input-number",placeholder:"设置列数",description:"设置从左到右多少列内启用自动合并单元格,根据字段值是否相同来决定是否合并。"}]},{title:"外观",body:[{name:"columnsTogglable",label:"展示列显示开关",type:"button-group-select",pipeIn:(0,l.defaultValue)("auto"),mode:"inline",className:"w-full",size:"xs",options:[{label:"自动",value:"auto"},{label:"开启",value:!0},{label:"关闭",value:!1}],description:"自动即列数量大于5个时自动开启"},{name:"affixHeader",type:"switch",label:"是否固顶表头",mode:"inline",className:"w-full",pipeIn:(0,l.defaultValue)(!0)},{name:"showHeader",type:"switch",mode:"inline",className:"w-full",label:"是否显示头部",pipeIn:(0,l.defaultValue)(!0)},{name:"showFooter",type:"switch",mode:"inline",className:"w-full",label:"是否显示底部",pipeIn:(0,l.defaultValue)(!0)},{name:"footable",type:"switch",mode:"inline",className:"w-full",label:"是否开启单条底部展示",description:"如果列太多显示会很臃肿,可以考虑把部分列放在当前行的底部展示",pipeIn:function(e){return!!e}},{name:"footable.expand",type:"button-group-select",size:"xs",visibleOn:"data.footable",label:"底部默认展开",pipeIn:(0,l.defaultValue)("none"),mode:"inline",className:"w-full",options:[{label:"第一条",value:"first"},{label:"所有",value:"all"},{label:"不展开",value:"none"}]},{name:"placeholder",pipeIn:(0,l.defaultValue)("暂无数据"),type:"input-text",label:"无数据提示"},{name:"rowClassNameExpr",type:"input-text",label:"行高亮规则",placeholder:"支持模板语法,如 <%= data.id % 2 ? 'bg-success' : '' %>"},(0,l.getSchemaTpl)("className",{label:"外层 CSS 类名"}),(0,l.getSchemaTpl)("className",{name:"tableClassName",label:"表格 CSS 类名"}),(0,l.getSchemaTpl)("className",{name:"headerClassName",label:"顶部外层 CSS 类名"}),(0,l.getSchemaTpl)("className",{name:"footerClassName",label:"底部外层 CSS 类名"}),(0,l.getSchemaTpl)("className",{name:"toolbarClassName",label:"工具栏 CSS 类名"})]},{title:"显隐",body:[(0,l.getSchemaTpl)("ref"),(0,l.getSchemaTpl)("visible")]}])},t}return a.__extends(t,e),t.prototype.filterProps=function(e){var t=Array.isArray(e.value)?e.value:"string"==typeof e.source?(0,r.resolveVariable)(e.source,e.data):(0,r.resolveVariable)("items",e.data);if(Array.isArray(t)&&t.length)e.value=t.slice(0,10);else{var n={};Array.isArray(e.columns)&&e.columns.forEach((function(e){e.name&&(0,u.setVariable)(n,e.name,(0,d.mockValue)(e))})),e.value=(0,s.repeatArray)(n,1).map((function(e,t){return a.__assign(a.__assign({},e),{id:t+1})}))}return e},t.prototype.getRendererInfo=function(t){var n,r=this,o=t.schema,i=t.renderer;return o.$$id||"crud"!==(null===(n=o.$$editor)||void 0===n?void 0:n.renderer.name)||"table"!==i.name?e.prototype.getRendererInfo.call(this,t):a.__assign(a.__assign({},{id:o.$$editor.id}),{name:r.name,regions:r.regions,patchContainers:r.patchContainers,vRendererConfig:r.vRendererConfig,wrapperProps:r.wrapperProps,wrapperResolve:r.wrapperResolve,filterProps:r.filterProps,$schema:r.$schema,renderRenderer:r.renderRenderer})},t.prototype.beforeInsert=function(e){var t,n,r,o,i=e.context;i.info.plugin!==this&&(null===(t=i.node.sameIdChild)||void 0===t?void 0:t.info.plugin)!==this||"columns"!==i.region||(i.data=a.__assign(a.__assign({},i.data),{label:null!==(o=null!==(n=i.data.label)&&void 0!==n?n:null===(r=i.subRenderer)||void 0===r?void 0:r.name)&&void 0!==o?o:"列名称"}))},t}(i.BasePlugin);t.TablePlugin=c,(0,o.registerEditorPlugin)(c)},2156:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableViewPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(9756),i=n(9933),l=n(9547),s=n(5863),u=n(1578),d=n(3570),c={body:{type:"tpl",tpl:"---"}};function p(e){if(!e)return{trs:[]};for(var t=[],n=0,a=0,r=e.trs||[];a1||d>1)for(var c=0;c1&&b+_>l&&(y.rowspan=_+1,f-=C),b===l){m=h;break}}for(var E=[],x=0;x1&&y+g>l){v.colspan=g+1,m=!0;break}if(l<=y){f.splice(h,0,c),m=!0;break}}m||f.push(c)}this.manager.store.changeValueById(r,o)}else console.warn("找不到对应的 td id")},t.prototype.splitCell=function(e){var t=this.manager.store,n=t.getNodePathById(e),a=n[n.length-3].id,r=t.getSchema(a);p(r);var o=(0,d.JSONGetById)(r,e);if(o){var i=o.rowspan||1,l=o.colspan||1;o.colspan=1,o.rowspan=1;for(var s=o.$$row,u=o.$$col,f=[],m=0;m1||i>1)&&t.push({icon:"fa fa-columns",order:100,tooltip:"拆分单元格",onClick:function(){n.splitCell(r)}})}},t}(i.BasePlugin);t.TableViewPlugin=f,(0,o.registerEditorPlugin)(f)},4300:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TabsPlugin=void 0;var a=n(752),r=a.__importDefault(n(6689)),o=n(9756),i=n(9933),l=n(9547),s=n(9703),u=n(5863),d=a.__importDefault(n(8425)),c=n(1548),p=n(1502),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="tabs",t.$schema="/schemas/TabsSchema.json",t.name="选项卡",t.isBaseComponent=!0,t.description="选项卡,可以将内容分组用选项卡的形式展示,降低用户使用成本。",t.docLink="/amis/zh-CN/components/tabs",t.tags=["容器"],t.icon="fa fa-folder-o",t.scaffold={type:"tabs",tabs:[{title:"选项卡1",body:"内容1"},{title:"选项卡2",body:"内容2"}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="选项卡",t.panelBody=[(0,l.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"tabs",type:"combo",label:"选项卡管理",multiple:!0,draggable:!0,minLength:1,items:[{type:"input-text",name:"title",required:!0}],scaffold:{title:"选项卡",body:{type:"tpl",tpl:"内容",inline:!1}},addButtonText:"新增选项卡",draggableTip:""}]},{title:"外观",body:[{name:"tabsMode",label:"样式",type:"select",className:"block",pipeIn:(0,l.defaultValue)(""),options:[{label:"默认",value:""},{label:"线型",value:"line"},{label:"卡片",value:"card"},{label:"仿 Chrome",value:"chrome"},{label:"水平铺满",value:"tiled"},{label:"选择器",value:"radio"},{label:"垂直",value:"vertical"}]},(0,l.getSchemaTpl)("className"),(0,l.getSchemaTpl)("className",{name:"contentClassName",label:"选项卡成员 CSS 类名"}),(0,l.getSchemaTpl)("subFormItemMode"),(0,l.getSchemaTpl)("subFormHorizontalMode"),(0,l.getSchemaTpl)("subFormHorizontal")]},{title:"显隐",body:[{type:"switch",name:"mountOnEnter",label:"激活时才渲染",mode:"inline",className:"block",description:"设置后选项卡的内容只有点开才会渲染,如果有选项卡放的可拉取接口的组件,那么这个接口只有在点开的时候才会拉取。"},{type:"switch",name:"unmountOnExit",label:"隐藏即销毁",mode:"inline",className:"block",description:"设置后,如果选项卡内容关闭则销毁,配置「激活时才渲染」选项可以做到卡片内容每次点开都重新加载的效果。"},(0,l.getSchemaTpl)("visible")]}])],t.patchContainers=["tabs.body"],t.vRendererConfig={regions:{body:{key:"body",label:"内容区"}},panelTitle:"卡片",panelBody:[(0,l.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"title",label:"标题",type:"input-text",required:!0},(0,l.getSchemaTpl)("icon"),{label:"Hash",name:"hash",type:"input-text",description:"设置后,会同步更新地址栏的 Hash。"}]},{title:"外观",body:[(0,l.getSchemaTpl)("className")]},{title:"显隐",body:[(0,l.getSchemaTpl)("visible"),(0,l.getSchemaTpl)("disabled")]},{title:"其他",body:[{type:"switch",name:"reload",label:"内容刷新",mode:"inline",className:"block",description:"配置后,每次点开内容都会重新刷新,如果配置了,下面两个选项就不用配置了。"},{type:"switch",name:"mountOnEnter",visibleOn:"!this.reload",label:"激活时才渲染",mode:"inline",className:"block",description:"设置后选项卡的内容只有点开才会渲染,如果有选项卡放的可拉取接口的组件,那么这个接口只有在点开的时候才会拉取。"},{visibleOn:"!this.reload",type:"switch",name:"unmountOnExit",label:"隐藏即销毁",mode:"inline",className:"block",description:"设置后,如果选项卡内容关闭则销毁,配置「激活时才渲染」选项可以做到卡片内容每次点开都重新加载的效果。"}]}])]},t.wrapperProps={unmountOnExit:!0,mountOnEnter:!0},t.tabWrapperResolve=function(e){return e.parentElement},t.overrides={renderTabs:function(){var e=this,t=this.super();if(!this.renderTab&&this.props.$$editor&&t){var n=this.props.tabs;return(0,s.mapReactElement)(t,(function(t){var a,o;if(t.type===p.Tab&&t.props.$$id){var i=t.props.$$id,l=(0,d.default)(n,(function(e){return e.$$id===i})),s=e.props.$$editor,f=s.plugin;if(~l){var m=null===(o=null===(a=f.vRendererConfig)||void 0===a?void 0:a.regions)||void 0===o?void 0:o.body;return m?r.default.cloneElement(t,{children:r.default.createElement(u.VRenderer,{key:i,plugin:s.plugin,renderer:s.renderer,$schema:"/schemas/TabSchema.json",hostId:s.id,memberIndex:l,name:"".concat(t.props.title||"卡片".concat(l+1)),id:i,draggable:!1,wrapperResolve:f.tabWrapperResolve,schemaPath:"".concat(s.schemaPath,"/tabs/").concat(l),path:"".concat(e.props.$path,"/").concat(l),data:e.props.data},r.default.createElement(c.RegionWrapper,{key:m.key,preferTag:m.preferTag,name:m.key,label:m.label,regionConfig:m,placeholder:m.placeholder,editorStore:f.manager.store,manager:f.manager,children:t.props.children,wrapperResolve:m.wrapperResolve,rendererName:s.renderer.name}))}):t}}return t}))}return t}},t}return a.__extends(t,e),t.prototype.buildEditorToolbar=function(e,t){if(e.info.plugin===this&&"tabs"===e.info.renderer.name&&!e.info.hostId){var n=e.node;t.push({level:"secondary",icon:"fa fa-chevron-left",tooltip:"上个卡片",onClick:function(){var e=n.getComponent();if(null==e?void 0:e.switchTo){var t=e.currentIndex();e.switchTo(t-1)}}}),t.push({level:"secondary",icon:"fa fa-chevron-right",tooltip:"下个卡片",onClick:function(){var e=n.getComponent();if(null==e?void 0:e.switchTo){var t=e.currentIndex();e.switchTo(t+1)}}})}},t.prototype.onPreventClick=function(e){var t=e.context.data;return!t.defaultPrevented&&!t.target.closest("[role=tablist]>li")&&void 0},t}(i.BasePlugin);t.TabsPlugin=f,(0,o.registerEditorPlugin)(f)},2022:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TasksPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="tasks",t.$schema="/schemas/TasksSchema.json",t.name="异步任务",t.isBaseComponent=!0,t.description="用来做异步任务呈现或者操作。",t.docLink="/amis/zh-CN/components/tasks",t.tags=["功能"],t.icon="",t.scaffold={type:"tasks",name:"tasks",items:[{label:"hive 任务",key:"hive",status:4,remark:'查看详情日志。'},{label:"小流量",key:"partial",status:4},{label:"全量",key:"full",status:4}]},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="异步任务",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"items",label:"初始任务信息",type:"combo",multiple:!0,multiLine:!0,items:[{name:"label",type:"input-text",label:"任务名称"},{name:"key",type:"input-text",label:"任务ID"},{name:"status",type:"input-number",label:"任务状态"},{name:"remark",type:"textarea",label:"任务说明"}],addButtonText:"新增任务信息",scaffold:{label:"名称",key:"key",status:0,remark:"说明"},description:"可以不设置,如果检测接口返回这些信息的话。"},(0,i.getSchemaTpl)("api",{name:"checkApi",label:"状态检测接口"}),{name:"interval",type:"input-number",min:3e3,step:500,visibleOn:"data.checkApi",pipeIn:(0,i.defaultValue)(3e3),label:"定时检测间隔"},(0,i.getSchemaTpl)("api",{name:"submitApi",label:"提交接口"}),(0,i.getSchemaTpl)("api",{name:"reSubmitApi",label:"重试接口"}),{name:"taskNameLabel",type:"input-text",pipeIn:(0,i.defaultValue)("任务名称"),label:"任务名称栏标题"},{name:"operationLabel",type:"input-text",pipeIn:(0,i.defaultValue)("操作"),label:"操作栏标题"},{name:"statusLabel",type:"input-text",pipeIn:(0,i.defaultValue)("状态"),label:"状态栏标题"},{name:"remarkLabel",type:"input-text",pipeIn:(0,i.defaultValue)("备注说明"),label:"备注栏标题"},{name:"btnText",label:"按钮名称",type:"input-text",pipeIn:(0,i.defaultValue)("上线")},{name:"retryBtnText",label:"重试按钮名称",type:"input-text",pipeIn:(0,i.defaultValue)("重试")},{name:"statusTextMap",pipeIn:(0,i.defaultValue)(["未开始","就绪","进行中","出错","已完成","出错"]),type:"input-array",label:"状态标签文字配置",multiple:!0,addable:!1,removable:!1,items:{type:"input-text",placeholder:"名称"}},{name:"initialStatusCode",label:"初始状态码",pipeIn:(0,i.defaultValue)(0),type:"input-number"},{name:"readyStatusCode",label:"就绪状态码",pipeIn:(0,i.defaultValue)(1),type:"input-number"},{name:"loadingStatusCode",label:"进行中状态码",pipeIn:(0,i.defaultValue)(2),type:"input-number"},{name:"errorStatusCode",label:"错误状态码",pipeIn:(0,i.defaultValue)(3),type:"input-number"},{name:"finishStatusCode",label:"完成状态码",pipeIn:(0,i.defaultValue)(4),type:"input-number"},{name:"canRetryStatusCode",label:"出错但可重试状态码",pipeIn:(0,i.defaultValue)(5),type:"input-number"}]},{title:"外观",body:[(0,i.getSchemaTpl)("className",{pipeIn:(0,i.defaultValue)("b-a bg-white table-responsive")}),(0,i.getSchemaTpl)("className",{name:"tableClassName",label:"表格 CSS 类名",pipeIn:(0,i.defaultValue)("table table-striped m-b-none")}),(0,i.getSchemaTpl)("className",{name:"btnClassName",label:"按钮 CSS 类名",pipeIn:(0,i.defaultValue)("btn-sm btn-default")}),(0,i.getSchemaTpl)("className",{name:"retryBtnClassName",label:"重试按钮 CSS 类名",pipeIn:(0,i.defaultValue)("btn-sm btn-danger")}),{name:"statusLabelMap",pipeIn:(0,i.defaultValue)(["label-warning","label-info","label-info","label-danger","label-success","label-danger"]),type:"input-array",label:"状态标签 CSS 类名配置",multiple:!0,addable:!1,removable:!1,items:{type:"input-text",placeholder:"CSS 类名"}}]},{title:"显隐",body:[(0,i.getSchemaTpl)("visible")]}])],t}return a.__extends(t,e),t}(o.BasePlugin);t.TasksPlugin=l,(0,r.registerEditorPlugin)(l)},4799:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TimePlugin=void 0;var a=n(752),r=n(9756),o=n(9547),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="time",t.name="时间展示",t.isBaseComponent=!0,t.scaffold={type:"time",value:Math.round(Date.now()/1e3)},t.previewSchema=a.__assign(a.__assign({},t.scaffold),{format:"HH:mm:ss",value:Math.round(Date.now()/1e3)}),t.panelBodyCreator=function(e){return[(0,o.getSchemaTpl)("tabs",[{title:"常规",body:[{type:"input-time",name:"value",label:"时间数值"},{type:"input-text",name:"format",label:"显示时间格式",description:"请参考 moment 中的格式用法。",pipeIn:(0,o.defaultValue)("HH:mm:ss")},{type:"input-text",name:"valueFormat",label:"数据日期格式",description:"请参考 moment 中的格式用法。",pipeIn:(0,o.defaultValue)("X")},{name:"placeholder",type:"input-text",pipeIn:(0,o.defaultValue)("-"),label:"占位符"}]},{title:"外观",body:[(0,o.getSchemaTpl)("className")]},{title:"显隐",body:[(0,o.getSchemaTpl)("ref"),(0,o.getSchemaTpl)("visible")]}])]},t}return a.__extends(t,e),t}(n(2585).DatePlugin);t.TimePlugin=i,(0,r.registerEditorPlugin)(i)},4268:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipWrapperPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="tooltip-wrapper",t.$schema="/schemas/TooltipWrapperSchema.json",t.isBaseComponent=!0,t.name="文字提示容器",t.description="类似容器,可以将多个渲染器放置在一起,当用户鼠标悬停或者点击容器时,显示文字提示浮层",t.docLink="/amis/zh-CN/components/tooltip",t.tags=["容器"],t.icon="fa fa-comment-alt",t.scaffold={type:"tooltip-wrapper",tooltip:"提示文字",body:[{type:"tpl",tpl:"内容"}]},t.previewSchema=a.__assign(a.__assign({},t.scaffold),{className:"p-1 mr-3 border-2 border-solid border-indigo-400"}),t.regions=[{key:"body",label:"内容区"}],t.panelTitle=t.name,t.panelBodyCreator=function(e){return[(0,i.getSchemaTpl)("tabs",[{title:"属性",body:[{type:"input-text",name:"title",label:"提示标题"},{type:"textarea",name:"tooltip",label:"提示内容"},{name:"wrapperComponent",label:"容器标签",type:"input-text",options:["article","aside","code","div","footer","header","p","section"],validations:{isAlphanumeric:!0,matchRegexp:"/^(?!.*script).*$/"},validationErrors:{isAlpha:"HTML标签不合法,请重新输入",matchRegexp:"HTML标签不合法,请重新输入"},validateOnChange:!1},{name:"trigger",type:"select",label:"触发方式",multiple:!0,value:["hover"],pipeIn:function(e){return Array.isArray(e)?e.join(","):[]},pipeOut:function(e){return e&&e.length?e.split(","):void 0},options:[{label:"鼠标悬停",value:"hover"},{label:"点击",value:"click"}]},{type:"button-group-select",name:"placement",label:"提示位置",options:[{label:"上",value:"top",icon:"fa fa-arrow-up"},{label:"下",value:"bottom",icon:"fa fa-arrow-down"},{label:"左",value:"left",icon:"fa fa-arrow-left"},{label:"右",value:"right",icon:"fa fa-arrow-right"}],pipeIn:(0,i.defaultValue)("top")},{type:"button-group-select",name:"tooltipTheme",label:"主题色",options:[{label:"亮色",value:"light",icon:"fa fa-sun"},{label:"暗色",value:"dark",icon:"fas fa-moon"}],pipeIn:(0,i.defaultValue)("light")},{name:"inline",label:"容器内联",type:"switch",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse"},{name:"rootClose",visibleOn:'~this.trigger.indexOf("click")',label:"点击容器外部关闭提示",type:"switch",mode:"row",inputClassName:"inline-flex justify-between flex-row-reverse"},{label:"延迟关闭时间",type:"input-number",min:0,step:100,name:"delay",suffix:"ms",pipeIn:(0,i.defaultValue)(0)}]},{title:"外观",body:[(0,i.getSchemaTpl)("className",{label:"内容区CSS类名"}),(0,i.getSchemaTpl)("className",{label:"浮层CSS类名",name:"tooltipClassName"}),(0,i.getSchemaTpl)("style")]}])]},t}return a.__extends(t,e),t}(o.BasePlugin);t.TooltipWrapperPlugin=l,(0,r.registerEditorPlugin)(l)},4870:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TplPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547);(0,i.setSchemaTpl)("tpl:content",{label:"内容",type:"input-rich-text",buttons:["paragraphFormat","quote","color","|","bold","italic","underline","strikeThrough","|","formatOL","formatUL","align","|","insertLink","insertImage","insertTable","|","undo","redo","fullscreen"],minRows:5,language:"html",pipeIn:function(e,t){return e||t&&t.html},name:"tpl",description:'支持使用 \\${xxx} 来获取变量,或者用 lodash.template 语法来写模板逻辑。详情'}),(0,i.setSchemaTpl)("tpl:wrapperComponent",{name:"wrapperComponent",type:"select",pipeIn:(0,i.defaultValue)("div"),label:"格式",options:[{label:"普通文字",value:"div"},{label:"段落",value:"p"},{label:"一级标题",value:"h1"},{label:"二级标题",value:"h2"},{label:"三级标题",value:"h3"},{label:"四级标题",value:"h4"},{label:"五级标题",value:"h5"},{label:"六级标题",value:"h6"}]}),(0,i.setSchemaTpl)("tpl:inline",{label:"内联模式",type:"switch",name:"inline",mode:"inline",className:"w-full",pipeIn:(0,i.defaultValue)(!0),labelRemark:{trigger:"click",className:"m-l-xs",rootClose:!0,content:"内联模式采用 span 标签、非内联将采用 div 标签作为容器。",placement:"left"}});var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="tpl",t.$schema="/schemas/TplSchema.json",t.name="文字",t.isBaseComponent=!0,t.icon="fa fa-file-o",t.description="用来展示文字或者段落,支持模板语法可用来关联动态数据。",t.docLink="/amis/zh-CN/components/tpl",t.tags=["展示"],t.previewSchema={type:"tpl",tpl:"这是模板内容当前时间<%- new Date() %>"},t.scaffold={type:"tpl",tpl:"请编辑内容",inline:!1},t.panelTitle="文字",t.panelBodyCreator=function(e){var t=/\/cell\/field\/tpl$/.test(e.path);return[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[(0,i.getSchemaTpl)("tpl:content"),t?null:(0,i.getSchemaTpl)("tpl:wrapperComponent")]},{title:"外观",body:[(0,i.getSchemaTpl)("tpl:inline"),(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("style")]},{title:"显隐",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("visible")]}])]},t.popOverBody=[(0,i.getSchemaTpl)("tpl:content"),(0,i.getSchemaTpl)("tpl:wrapperComponent")],t}return a.__extends(t,e),t}(o.BasePlugin);t.TplPlugin=l,(0,r.registerEditorPlugin)(l)},2766:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VideoPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=n(3570),s=n(6374),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="video",t.$schema="/schemas/VideoSchema.json",t.name="视频",t.isBaseComponent=!0,t.description="视频控件,可以用来播放各种视频文件,包括 flv 和 hls 格式。",t.docLink="/amis/zh-CN/components/video",t.tags=["功能"],t.icon="fa fa-video-camera",t.scaffold={type:"video",autoPlay:!1,src:"https://media.w3.org/2010/05/sintel/trailer_hd.mp4",poster:(0,s.mockValue)({type:"image"})},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="视频",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"src",type:"input-text",label:"视频地址",description:"可以写静态值,也可以用变量取比如:\\${videoSrc}"},{name:"poster",type:"input-text",label:"视频封面图片地址",description:"可以写静态值,也可以用变量取比如:\\${videoPoster}"},{name:"autoPlay",type:"switch",mode:"inline",className:"block",label:"自动播放"},{name:"muted",type:"switch",mode:"inline",className:"block",label:"静音"},{name:"isLive",type:"switch",mode:"inline",className:"block",label:"直播流",description:"如果是直播流,请勾选,否则有可能不能正常播放。"}]},{title:"外观",body:[{name:"aspectRatio",label:"视频比例",type:"button-group-select",size:"sm",mode:"inline",className:"block",value:"auto",options:[{label:"自动",value:"auto"},{label:"4:3",value:"4:3"},{label:"16:9",value:"16:9"}]},{name:"splitPoster",type:"switch",mode:"inline",className:"block",label:"分开显示封面"},(0,i.getSchemaTpl)("className")]},{title:"显隐",body:[(0,i.getSchemaTpl)("visible")]},{title:"其他",body:[(0,i.getSchemaTpl)("ref"),{type:"input-text",name:"rates",label:"视频速率",multiple:!0,joinValues:!1,extractValue:!0,options:[.5,1,1.25,1.5,2,2.5,3,3.5,4,4.5,5].map((function(e){return{label:e,value:e}}))},{name:"frames",type:"input-text",label:"视频帧信息",description:"比如填写:\\${videoFrames}会在当前作用域中查找 videoFrames 变量,如果是对象,将生成视频截图列表,点击后可跳转到对应的帧。"}]}])],t}return a.__extends(t,e),t.prototype.filterProps=function(e){return e.frames=(0,l.JSONPipeOut)(e.frames),e},t}(o.BasePlugin);t.VideoPlugin=u,(0,r.registerEditorPlugin)(u)},9963:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebComponentPlugin=void 0;var a=n(752),r=n(9756),o=n(9933);n(1779);var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a.__extends(t,e),t.prototype.connectedCallback=function(){this.attachShadow({mode:"open"}).textContent="web-component-demo"},t}(HTMLElement);try{customElements.define("web-component-demo",i)}catch(e){console.log("[amis-editor]",e)}var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="web-component",t.$schema="/schemas/WebComponentSchema.json",t.name="Web Component",t.isBaseComponent=!0,t.description="用于渲染 Web Component 组件",t.docLink="/amis/zh-CN/components/web-component",t.tags=["容器"],t.icon="fa fa-square-o",t.scaffold={type:"web-component",tag:"web-component-demo"},t.previewSchema=a.__assign({},t.scaffold),t.panelTitle="包裹",t.panelBody=[{type:"input-text",label:"标签",name:"tag"},{type:"input-kv",label:"属性",name:"props"}],t}return a.__extends(t,e),t}(o.BasePlugin);t.WebComponentPlugin=l,(0,r.registerEditorPlugin)(l)},3306:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPlugin=void 0;var a=n(752),r=n(9756),o=n(9933),i=n(9547),l=a.__importDefault(n(6689)),s=n(5863),u=n(9703),d=n(1548),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="wizard",t.$schema="/schemas/WizardSchema.json",t.name="向导",t.isBaseComponent=!0,t.description="表单向导,可以将复杂的多个表单项拆分成多个步骤,一步一步指引用户完成填写。",t.docLink="/amis/zh-CN/components/wizard",t.tags=["功能"],t.icon="fa fa-list-ol",t.scaffold={type:"wizard",steps:[{title:"第一步",body:[{type:"input-text",label:"文本",name:"var1"}]},{title:"第二步",body:[{type:"input-text",label:"文本2",name:"var2"}]}]},t.previewSchema={type:"wizard",className:"text-left m-b-none",steps:[{title:"第一步",body:[{type:"input-text",label:"文本",name:"var1"}]},{title:"第二步",body:[]}]},t.panelTitle="向导",t.panelBody=[(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"steps",label:"步骤设置",type:"combo",multiple:!0,multiLine:!0,addButtonText:"新增一步",scaffold:{title:"标题",items:[{type:"input-text",name:"var1",label:"文本"}]},items:[{name:"title",type:"input-text",label:"标题",pipeIn:function(e,t){return e||t.label}},{type:"fieldSet",title:"其他设置",collapsed:!0,collapsable:!0,className:"fieldset m-b-none",body:[{name:"mode",label:"展示模式",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",value:"normal",options:[{label:"默认",value:"normal"},{label:"左右摆放",value:"horizontal"},{label:"内联",value:"inline"}]},(0,i.getSchemaTpl)("horizontal",{visibleOn:'data.mode == "horizontal"'}),(0,i.getSchemaTpl)("api",{label:"保存接口",description:"如果接口返回了 step 变量,且数值是数字类型,比如 3,提交完后回跳到第 3 步"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"asyncApi",visibleOn:"data.api",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline",className:"block"},(0,i.getSchemaTpl)("api",{name:"asyncApi",label:"异步检测接口",visibleOn:"data.asyncApi != null",description:"设置此属性后,表单提交发送保存接口后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),{type:"divider"},(0,i.getSchemaTpl)("api",{name:"initApi",label:"初始化接口",description:"用来初始化表单数据"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"initAsyncApi",visibleOn:"data.initApi",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline",className:"block"},(0,i.getSchemaTpl)("api",{name:"initAsyncApi",label:"异步检测接口",visibleOn:"data.initAsyncApi != null",description:"设置此属性后,表单请求 initApi 后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),(0,i.getSchemaTpl)("initFetch"),{label:"是否可被点开",type:"input-text",name:"jumpableOn",description:"用表达式来决定,当前步骤是否可被点开。额外可用变量:currentStep 表示当前步骤。"}]}]},{type:"input-text",name:"startStep",label:"起始默认值",description:"从第几步开始。可支持模版,但是只有在组件创建时渲染模版并设置当前步数,在之后组件被刷新时,当前step不会根据startStep改变"}]},{title:"接口",body:[(0,i.getSchemaTpl)("api",{name:"initApi",label:"初始化接口",description:"用来初始化向导数据,当接口中返回 step 字段时,可以控制默认跳转到第几步,注意数值一定得是数字类型。当返回 submiting 并且当前步骤中存在异步保存接口时,可以让 wizard 初始进入异步提交状态。"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"initAsyncApi",visibleOn:"data.initApi",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline"},(0,i.getSchemaTpl)("api",{name:"initAsyncApi",label:"异步检测接口",visibleOn:"data.initAsyncApi != null",description:"设置此属性后,表单请求 initApi 后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),{name:"initFetch",type:"radios",label:"是否初始拉取",inline:!0,onChange:function(){},options:[{label:"是",value:!0},{label:"否",value:!1},{label:"表达式",value:""}]},{name:"initFetch",autoComplete:!1,visibleOn:'typeof this.initFetch !== "boolean"',type:"input-text",placeholder:"",className:"m-t-n-sm"},{type:"divider"},(0,i.getSchemaTpl)("api",{label:"保存接口",description:"用来保存表单数据, 最后一步点击完成触发,如果最后一步中已经设置保存接口,则此处设置无效。"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"asyncApi",visibleOn:"data.api",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline"},(0,i.getSchemaTpl)("api",{name:"asyncApi",label:"异步检测接口",visibleOn:"data.asyncApi != null",description:"设置此属性后,表单提交发送保存接口后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"})]},{title:"外观",body:[{name:"mode",label:"展示模式",type:"button-group-select",size:"sm",mode:"inline",className:"w-full",value:"horizontal",options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]},{name:"actionPrevLabel",label:"上一步按钮名称",type:"input-text",pipeIn:(0,i.defaultValue)("上一步")},{name:"actionNextLabel",label:"下一步按钮名称",type:"input-text",pipeIn:(0,i.defaultValue)("下一步")},{name:"actionNextSaveLabel",label:"保存并下一步按钮名称",type:"input-text",pipeIn:(0,i.defaultValue)("保存并下一步")},{name:"actionFinishLabel",label:"完成按钮名称",type:"input-text",pipeIn:(0,i.defaultValue)("完成")},(0,i.getSchemaTpl)("className"),(0,i.getSchemaTpl)("className",{name:"actionClassName",label:"按钮 CSS 类名"})]},{title:"其他",body:[(0,i.getSchemaTpl)("ref"),(0,i.getSchemaTpl)("name"),(0,i.getSchemaTpl)("reload"),{label:"跳转",name:"redirect",type:"input-text",description:"当设置此值后,表单提交完后跳转到目标地址。"},(0,i.getSchemaTpl)("visible")]}])],t.patchContainers=["steps.body"],t.vRendererConfig={regions:{body:{key:"body",label:"表单集合",wrapperResolve:function(e){return e}},actions:{label:"按钮组",key:"actions",preferTag:"按钮",wrapperResolve:function(e){return e}}},panelTitle:"步骤",panelBodyCreator:function(e){return(0,i.getSchemaTpl)("tabs",[{title:"常规",body:[{name:"title",type:"input-text",label:"标题",pipeIn:function(e,t){return e||t.label}},(0,i.getSchemaTpl)("api",{label:"保存接口",description:"如果接口返回了 step 变量,且数值是数字类型,比如 3,提交完后回跳到第 3 步"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"asyncApi",visibleOn:"data.api",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline",className:"block"},(0,i.getSchemaTpl)("api",{name:"asyncApi",label:"异步检测接口",visibleOn:"data.asyncApi != null",description:"设置此属性后,表单提交发送保存接口后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),{type:"divider"},(0,i.getSchemaTpl)("api",{name:"initApi",label:"初始化接口",description:"用来初始化表单数据"}),{label:"采用异步方式?",remark:{trigger:"click",rootClose:!0,title:"什么是异步方式?",content:"异步方式主要用来解决请求超时问题,启用异步方式后,程序会在请求完后,定时轮询请求额外的接口用来咨询操作是否完成。所以接口可以快速的返回,而不需要等待流程真正完成。",placement:"left"},type:"switch",name:"initAsyncApi",visibleOn:"data.initApi",pipeIn:function(e){return null!=e},pipeOut:function(e){return e?"":void 0},mode:"inline",className:"block"},(0,i.getSchemaTpl)("api",{name:"initAsyncApi",label:"异步检测接口",visibleOn:"data.initAsyncApi != null",description:"设置此属性后,表单请求 initApi 后,还会继续轮训请求该接口,直到返回 finished 属性为 true 才 结束"}),(0,i.getSchemaTpl)("initFetch")]},{title:"外观",body:[{name:"mode",label:"展示模式",type:"button-group-select",size:"xs",mode:"inline",className:"w-full",value:"normal",options:[{label:"默认",value:"normal"},{label:"左右摆放",value:"horizontal"},{label:"内联",value:"inline"}]},(0,i.getSchemaTpl)("horizontal",{visibleOn:'data.mode == "horizontal"'})]},{title:"其他",body:[{label:"是否可被点开",type:"input-text",name:"jumpableOn",description:"用表达式来决定,当前步骤是否可被点开。额外可用变量:currentStep 表示当前步骤。"}]}])}},t.wizardWrapperResolve=function(e){return[].slice.call(e.querySelectorAll('[role="wizard-body"],[role="wizard-footer"]'))},t.overrides={renderWizard:function(){var e=this,t=this.props.$$editor,n=this.props.steps,r=this.state.currentStep,o=this.super();if(!t||!(null==n?void 0:n[r-1]))return o;var i=r-1,c=n[i],p=c.$$id,f=t.plugin;return(0,u.mapReactElement)(o,(function(n){return/Wizard-step\b/.test(n.props.className)?l.default.createElement(s.VRenderer,{key:p,plugin:t.plugin,renderer:t.renderer,$schema:"/schemas/WizardStepSchema.json",hostId:t.id,memberIndex:i,name:c.title||"步骤".concat(i+1),id:p,draggable:!1,wrapperResolve:f.wizardWrapperResolve,schemaPath:"".concat(t.schemaPath,"/steps/").concat(i),path:"".concat(e.props.$path,"/").concat(i),data:e.props.data},(0,u.mapReactElement)(n,(function(e,n){var r,o,i;if((null===(r=e.props.schema)||void 0===r?void 0:r.body)&&e.props.schema.$$id){var s=null===(i=null===(o=f.vRendererConfig)||void 0===o?void 0:o.regions)||void 0===i?void 0:i.body;if(!s)return e;var u=a.__assign({},e.props.schema);return delete u.$$id,l.default.createElement(d.RegionWrapper,{key:s.key,preferTag:s.preferTag,name:s.key,label:s.label,regionConfig:s,placeholder:s.placeholder,editorStore:f.manager.store,manager:f.manager,children:l.default.cloneElement(e,{schema:u}),wrapperResolve:s.wrapperResolve,rendererName:t.renderer.name})}return e}))):n}))},renderFooter:function(){var e,t,n=this.props.$$editor,a=this.props.steps,r=this.state.currentStep,o=this.super();if(!n||!(null==a?void 0:a[r-1]))return o;var i=n.plugin,s=null===(t=null===(e=i.vRendererConfig)||void 0===e?void 0:e.regions)||void 0===t?void 0:t.actions;return s?l.default.createElement(d.RegionWrapper,{key:s.key,preferTag:s.preferTag,name:s.key,label:s.label,regionConfig:s,placeholder:s.placeholder,editorStore:i.manager.store,manager:i.manager,children:o,wrapperResolve:s.wrapperResolve,rendererName:n.renderer.name}):o}},t}return a.__extends(t,e),t.prototype.buildEditorToolbar=function(e,t){if(e.info.plugin===this&&e.info.renderer.name===this.rendererName&&!e.info.hostId){var n=e.node;t.push({level:"secondary",icon:"fa fa-chevron-left",tooltip:"上个步骤",onClick:function(){var e=n.getComponent();if(null==e?void 0:e.gotoStep){var t=e.state.currentStep;e.gotoStep(t-1)}}}),t.push({level:"secondary",icon:"fa fa-chevron-right",tooltip:"下个步骤",onClick:function(){var e=n.getComponent();if(null==e?void 0:e.gotoStep){var t=e.state.currentStep;e.gotoStep(t+1)}}})}},t.prototype.filterProps=function(e){return e.affixFooter=!1,e},t}(o.BasePlugin);t.WizardPlugin=c,(0,r.registerEditorPlugin)(c)},1800:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WrapperPlugin=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(6689)),i=n(9756),l=n(9933),s=n(9547),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rendererName="wrapper",t.$schema="/schemas/WrapperSchema.json",t.disabledRendererPlugin=!0,t.name="包裹",t.isBaseComponent=!0,t.description="类似于容器,唯一的区别在于会默认会有一层内边距。",t.docLink="/amis/zh-CN/components/wrapper",t.tags=["容器"],t.icon="fa fa-square-o",t.scaffold={type:"wrapper",body:"内容"},t.previewSchema=a.__assign({},t.scaffold),t.regions=[{key:"body",label:"内容区"}],t.panelTitle="包裹",t.panelBody=[(0,s.getSchemaTpl)("tabs",[{title:"常规",body:[{children:o.default.createElement(r.Button,{size:"sm",className:"m-b-sm",level:"info",block:!0,onClick:function(){t.manager.showRendererPanel("","请从左侧组件面板中点击添加内容元素")}},"新增内容")},(0,s.getSchemaTpl)("size",{label:"内间距大小",options:[{label:"极小",value:"xs"},{label:"小",value:"sm"},{label:"默认",value:""},{label:"中",value:"md"},{label:"大",value:"lg"},{label:"无",value:"none"}],pipeIn:(0,s.defaultValue)("")})]},{title:"样式",body:[(0,s.getSchemaTpl)("className",{description:"设置样式后,大小设置将无效。",pipeIn:(0,s.defaultValue)("bg-white")}),(0,s.getSchemaTpl)("style")]}])],t}return a.__extends(t,e),t}(l.BasePlugin);t.WrapperPlugin=u,(0,i.registerEditorPlugin)(u)},7172:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EditorStore=void 0;var a=n(752),r=n(3893),o=n(2717),i=n(3570),l=n(3570),s=n(1502),u=a.__importDefault(n(6918)),d=n(1169),c=n(6151),p=a.__importDefault(n(5452)),f=n(2406),m=a.__importDefault(n(8425));t.EditorStore=o.types.model("EditorRoot",{isMobile:!1,isSubEditor:!1,amisDocHost:o.types.optional(o.types.string,"https://baidu.gitee.io"),root:o.types.optional(f.EditorNode,{id:"root",label:"Root"}),theme:"cxd",hoverId:"",hoverRegion:"",activeId:"",activeRegion:"",mouseMoveRegion:"",selections:o.types.optional(o.types.frozen(),[]),contextId:"",dragMode:"move",dragId:"",dragType:"",dragSchema:o.types.frozen(),dropId:"",dropRegion:"",planDropId:"",planDropRegion:"",insertId:"",insertRegion:"",insertRenderers:o.types.optional(o.types.frozen(),[]),insertRenderersKeywords:"",insertTag:"全部",insertSelected:"",insertMode:"insert",insertOrigId:"",insertBeforeId:"",showInsertRenderer:!1,schema:o.types.frozen(),versionId:0,schemaHistory:o.types.optional(o.types.array(o.types.frozen()),[]),toolbars:o.types.optional(o.types.frozen(),[]),panels:o.types.optional(o.types.frozen(),[]),showCustomRenderersPanel:!1,renderersTabsKey:"base-renderers",subRenderers:o.types.optional(o.types.frozen(),[]),subRenderersKeywords:"",subRenderersTag:"",subRendererRegion:"",customRenderersKeywords:"",customRenderersTag:"",panelKey:"",leftPanelKey:"",leftPanelOpenStatus:!0,jsonSchemaUri:"",scaffoldForm:o.types.maybe(o.types.frozen()),scaffoldFormBuzy:!1,scaffoldError:"",popOverForm:o.types.maybe(o.types.frozen()),subEditorContext:o.types.maybe(o.types.frozen()),calculateStarted:!1,targetNames:o.types.optional(o.types.array(o.types.frozen()),[]),ctx:o.types.frozen()}).views((function(e){return{get filteredSchema(){var t,n,a;return(0,i.filterSchemaForEditor)(null!==(a=null===(n=(t=(0,o.getEnv)(e)).schemaFilter)||void 0===n?void 0:n.call(t,e.schema))&&void 0!==a?a:e.schema)},get filteredSchemaForPreview(){var t,n,a,r=(0,l.JSONPipeOut)(e.schema);return null!==(a=null===(n=(t=(0,o.getEnv)(e)).schemaFilter)||void 0===n?void 0:n.call(t,r))&&void 0!==a?a:r},isRootSchema:function(e){var t=this.getSchema();return!(!t||t.$$id!==e)},isHoved:function(t){return t&&e.hoverId===t},isActive:function(t){return t&&!this.dragging&&!e.insertOrigId&&e.insertBeforeId!==t&&e.activeId===t},isContextOn:function(t){return t&&e.contextId===t},get activeContainerId(){var t;if(!e.activeId)return"";for(var n=this.getNodeById(e.activeId);n;){if(n.childRegions.length||(null===(t=n.info)||void 0===t?void 0:t.regions))return n.id;n=n.host}return""},isRegionHighlighted:function(t,n){return!e.insertOrigId&&t===e.hoverId&&n===e.hoverRegion||t===e.activeId&&e.activeRegion===n||t===e.dropId&&e.dropRegion===n||!e.insertOrigId&&t===e.insertId&&e.insertRegion===n},isRegionHighlightHover:function(t,n){return t===e.hoverId&&n===e.mouseMoveRegion},isRegionActive:function(t,n){return this.isActive(t)||t===e.dropId||this.isRegionHighlighted(t,n)||this.isRegionHighlightHover(t,n)},isRegionDragEnter:function(t,n){return this.isRegionActive(t,n)&&n===e.dropRegion},get highlightNodes(){var t=this,n=[];return!e.hoverId||e.dragId||e.contextId||e.activeId===e.hoverId&&!e.hoverRegion||e.selections.includes(e.hoverId)||n.push(e.hoverId),e.contextId&&n.push(e.contextId),!e.activeId&&!e.selections.length||e.dragId||e.insertOrigId||e.insertId||e.hoverId&&e.hoverRegion||(e.activeId?n.push(e.activeId):n.push.apply(n,e.selections)),"insert"===e.insertMode&&e.insertId&&n.push(e.insertId),e.insertOrigId&&n.push(e.insertOrigId),e.dropId&&n.push(e.dropId),e.insertBeforeId&&n.push(e.insertBeforeId),n.filter((function(e,t,n){return e&&t===n.indexOf(e)})).map((function(e){return t.getNodeById(e)})).filter((function(e){return e}))},getNodeById:function(t,n){for(var a=e.root.children.concat();a.length;){var r=a.shift();if(r.id===t&&(!n||r.region===n))return r;r.children.length&&a.push.apply(a,r.children)}},get activeNodeInfo(){var t;return null===(t=this.getNodeById(e.activeId))||void 0===t?void 0:t.info},getSchema:function(t){return t?(0,i.JSONGetById)(e.schema,t):e.schema},getSchemaParentById:function(t){return(0,l.JSONGetParentById)(e.schema,t)},getSchemaPath:function(t){var n=(0,l.JSONGetPathById)(e.schema,t);return Array.isArray(n)?n.join("/"):""},getSimpleSchema:function(t){var n,a,r,i=(0,l.JSONPipeOut)(t);return null!==(r=null===(a=(n=(0,o.getEnv)(e)).schemaFilter)||void 0===a?void 0:a.call(n,i))&&void 0!==r?r:i},getPanelKey:function(){var t,n=e.panelKey;if("none"===n)return n;var a=this.getPanels();return(0,u.default)(a,(function(e){return n&&e.key===n}))?n:(null===(t=a[0])||void 0===t?void 0:t.key)||"none"},getLeftPanelKey:function(){var t=e.leftPanelKey;if(this.dragging)return"outline";if("none"===t)return t;var n=this.getLeftPanels();return(0,u.default)(n,(function(e){return t&&e.key===t}))?t:"renderers"},get leftPanels(){return e.panels.filter((function(e){return"left"===e.position}))},get rightPanels(){return e.panels.filter((function(e){return"left"!==e.position&&"contextmenu"!==e.key}))},get contextMenuPanel(){return e.panels.find((function(e){return"contextmenu"===e.key}))},getPanels:function(){return[].concat(this.rightPanels||[]).sort((function(e,t){return e.order-t.order}))},getLeftPanels:function(){var t=[].concat(this.leftPanels||[]);return e.insertId&&e.insertRegion&&t.push({key:"insert",icon:"fa fa-bolt",position:"left",title:"replace"===e.insertMode?"变更":"插入",component:d.InsertSubRendererPanel,order:9999}),t.push({key:"insertRenderer",icon:"fa fa-bolt",position:"left",title:"插入组件面板",component:c.AvailableRenderersPanel,order:9999}),t.sort((function(e,t){return e.order-t.order}))},get sortedToolbars(){return e.toolbars.filter((function(e){return"secondary"!==e.level&&"special"!==e.level})).sort((function(e,t){return e.order-t.order}))},get sortedSecondaryToolbars(){return e.toolbars.filter((function(e){return"secondary"===e.level})).sort((function(e,t){return e.order-t.order}))},get sortedSpecialToolbars(){return e.toolbars.filter((function(e){return"special"===e.level})).sort((function(e,t){return e.order-t.order}))},get value(){if(e.activeId)return this.getValueOf(e.activeId)},getValueOf:function(t){return(0,l.JSONPipeOut)((0,i.JSONGetById)(e.schema,t))},get valueWithoutHiddenProps(){if(e.activeId)return(0,l.JSONPipeOut)((0,i.JSONGetById)(e.schema,e.activeId),(0,o.getEnv)(e).isHiddenProps||function(e){return"$$"===e.substring(0,2)&&"$$comments"!==e&&"$$commonSchema"!==e||"__"===e.substring(0,2)})},get outline(){return e.root.children},get bcn(){var t=[];return e.activeId&&(0,r.findTree)(e.root.children,(function(n,a,r,o){return n.id===e.activeId&&(t=o.concat(n),!0)})),t},get activePath(){return this.getNodePathById(e.activeId)},getNodePathById:function(t){var n=[];if(!t)return n;var a=function(e,r){return void 0===r&&(r=[]),e.every((function(e){return e.id===t?(n=r.concat(e),!1):!e.children||!e.children.length||a(e.children,r.concat(e))}))};return a(e.root.children),n},get dragging(){return!(!e.dragId&&!e.dropId)},get needPatch(){var t=function(e){return e.some((function(e){return!e.patched&&!e.isRegion||!!e.children.length&&t(e.children)}))};return t(e.root.children)},get schemaRaw(){return(0,l.JSONPipeOut)(e.schema)},get subRenderersByOrder(){return e.subRenderers.filter((function(t){return!(!t.disabledRendererPlugin&&e.showCustomRenderersPanel)||t.isBaseComponent})).sort((function(e,t){return e.order-t.order}))},get customRenderersByOrder(){return e.subRenderers.filter((function(e){return!e.disabledRendererPlugin&&!e.isBaseComponent})).sort((function(e,t){return e.order-t.order}))},groupedRenderersByKeyword:function(e,t){var n=e,a={},r=t?new RegExp(t,"i"):null;return n.forEach((function(e){t&&!["name","description","scaffold.type"].some((function(t){return(0,s.resolveVariable)(t,e)&&r&&r.test((0,s.resolveVariable)(t,e))}))||(Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:["其他"]).forEach((function(t){a[t]=a[t]||[],a[t].push(e)}))})),a},groupedSubRenderersByKeyword:function(e,t){var n=e||this.subRenderersByOrder;return this.groupedRenderersByKeyword(n,t)},get groupedSubRenderers(){if(e.subRenderersTag){var t={},n=this.groupedSubRenderersByKeyword()[e.subRenderersTag];return n&&(t[e.subRenderersTag]=n),t}return this.groupedSubRenderersByKeyword(this.subRenderersByOrder,e.subRenderersKeywords)},groupedCustomRenderersByKeyword:function(e,t){var n=e||this.customRenderersByOrder;return this.groupedRenderersByKeyword(n,t)},get groupedCustomRenderers(){if(e.customRenderersTag){var t={},n=this.groupedCustomRenderersByKeyword()[e.customRenderersTag];return n&&(t[e.customRenderersTag]=n),t}return this.groupedCustomRenderersByKeyword(this.customRenderersByOrder,e.customRenderersKeywords)},getSubRendererById:function(t){return(0,u.default)(e.subRenderers||[],(function(e){return e.id===t}))},get groupedInsertRenderers(){var t={"全部":[]},n=e.insertRenderersKeywords,a=new RegExp(n,"i");return e.insertRenderers.concat().sort((function(e,t){return e.order-t.order})).forEach((function(e){n&&!["name","description","scaffold.type"].some((function(t){return(0,s.resolveVariable)(t,e)&&a.test((0,s.resolveVariable)(t,e))}))||((Array.isArray(e.tags)?e.tags.concat():e.tags?[e.tags]:["其他"]).forEach((function(n){t[n]=t[n]||[],t[n].push(e)})),t["全部"].push(e))})),t},get selectedInsertRendererInfo(){return(0,u.default)(e.insertRenderers,(function(t){return t.id===e.insertSelected}))},get subEditorSlotPath(){var t,n=null===(t=e.subEditorContext)||void 0===t?void 0:t.slot;if(!n)return"";var a=[],r=function(e,t){return void 0===t&&(t=[]),!(!Array.isArray(e)||!e.some((function(e,n){return r(e,t.concat("".concat(n)))})))||((0,p.default)(e)?Object.keys(e).some((function(n){return r(e[n],t.concat(n))})):"$$"===e&&(a=t.concat(),!0))};return r(n),a.length?a.join("/"):""},get subEditorValue(){if(e.subEditorContext)return e.subEditorContext.slot?a.__assign(a.__assign({},(0,r.mapObject)(e.subEditorContext.slot,(function(t){return"$$"===t?e.subEditorContext.value:t}))),{isSlot:!0}):e.subEditorContext.value},get canUndo(){return 0!==e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}))},get canRedo(){return e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}))1?(0,i.diff)(d,u):void 0),e.subEditorContext=void 0},closeSubEditor:function(){e.subEditorContext=void 0},subEditorOnChange:function(){n&&(e.subEditorContext=a.__assign(a.__assign({},e.subEditorContext),{canUndo:n.canUndo(),canRedo:n.canRedo()}))},undoSubEditor:function(){n&&n.undo()},redoSubEditor:function(){n&&n.redo()},subEditorRef:function(e){n=e},openScaffoldForm:function(t){e.scaffoldForm=t},closeScaffoldForm:function(){e.scaffoldForm=void 0},setScaffoldBuzy:function(t){e.scaffoldFormBuzy=!!t},setScaffoldError:function(t){void 0===t&&(t=""),e.scaffoldError=t},openPopOverForm:function(t){e.popOverForm=t},closePopOverForm:function(){e.popOverForm=void 0},calculateHighlightBox:function(t){e.calculateStarted=!0,t.forEach((function(t){var n=e.getNodeById(t);null==n||n.calculateHighlightBox(e)}))},resetHighlightBox:function(t){t.forEach((function(t){var n=e.getNodeById(t);null==n||n.resetHighlightBox(e)}))},updateTargetName:function(){var t=[];(0,i.JSONTraverse)(e.schema,(function(e,n,a){return"name"===n&&e&&a&&("crud"===a.type||"form"===a.type||"page"===a.type||"service"===a.type||"chart"===a.type||"wizard"===a.type)&&t.push({type:a.type,name:e,editorId:a.$$id}),e})),e.targetNames=(0,o.cast)(t)},traceableSetSchema:function(n,a){var r=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));~r&&e.schemaHistory.splice(r+1,e.schemaHistory.length-r-1),a&&e.schemaHistory.pop(),e.schemaHistory.push({versionId:e.versionId=t++,schema:n}),e.schema=n,this.updateTargetName()},undo:function(){var t=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));if(t>0){var n=e.schemaHistory[t-1];e.versionId=n.versionId,e.schema=n.schema,this.updateTargetName()}},redo:function(){var t=e.schemaHistory.findIndex((function(t){return t.versionId===e.versionId}));if(t{Object.defineProperty(t,"__esModule",{value:!0}),t.EditorNodeContext=t.EditorNode=void 0;var a=n(752),r=n(2717),o=n(3570),i=n(1502),l=a.__importDefault(n(6689)),s=n(8425);t.EditorNode=r.types.model("EditorNode",{parentId:"",parentRegion:"",isCommonConfig:!1,id:"",label:"",regionInfo:r.types.maybe(r.types.frozen()),path:"",schemaPath:"",region:"",preferTag:"",state:r.types.optional(r.types.frozen(),{}),widthMutable:!1,heightMutable:!1,memberIndex:-1,folded:!1,patched:!1,x:0,y:0,w:0,h:0,children:r.types.optional(r.types.array(r.types.late((function(){return t.EditorNode}))),[])}).volatile((function(){return{getData:r.types.frozen()}})).views((function(e){var t;return{get info(){return t},setInfo:function(e){t=e},get isVitualRenderer(){return!!~e.memberIndex},get clickable(){var e,t;return!1!==(null===(e=this.info)||void 0===e?void 0:e.editable)||!(null===(t=this.info)||void 0===t?void 0:t.hostId)},get draggable(){var e;return!(!this.moveable||!1===(null===(e=this.info)||void 0===e?void 0:e.draggable))},get moveable(){var e,t;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.movable)||!Array.isArray(this.schemaParent)||(null===(t=this.host)||void 0===t?void 0:t.memberImmutable(this.parent.region)))},get canMoveUp(){return!(this.isRegion||!this.moveable||!Array.isArray(this.schemaParent)||!this.prevSibling)},get canMoveDown(){return!(this.isRegion||!this.moveable||!Array.isArray(this.schemaParent)||!this.nextSibling)},get removable(){var e;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.removable)||!Array.isArray(this.schemaParent)||!this.host||this.host.memberImmutable(this.parent.region))},get duplicatable(){var e;return!(this.isRegion||!1===(null===(e=this.info)||void 0===e?void 0:e.duplicatable)||!Array.isArray(this.schemaParent)||this.host.memberImmutable(this.parent.region))},get replaceable(){var e;return!this.isRegion&&!1!==(null===(e=this.info)||void 0===e?void 0:e.replaceable)},memberImmutable:function(e){var t,n;return!!(!0===(null===(t=this.info)||void 0===t?void 0:t.memberImmutable)||Array.isArray(null===(n=this.info)||void 0===n?void 0:n.memberImmutable)&&~this.info.memberImmutable.indexOf(e))},get isRegion(){return!!e.region},get childRegions(){var e,t,n=this.uniqueChildren.filter((function(e,t,n){return e.isRegion}));if(null===(e=this.info)||void 0===e?void 0:e.multifactor){var a=this.sameIdChild;null===(t=null==a?void 0:a.childRegions)||void 0===t||t.forEach((function(e){return n.push(e)}))}return n},get uniqueChildren(){var t=e.children.filter((function(e,t,n){return n.findIndex((function(t){return e.isRegion?t.id===e.id&&t.region===e.region:t.id===e.id}))===t}));if(Array.isArray(this.schema)){var n=this.schema;t=t.sort((function(e,t){return s(n,(function(t){return(null==t?void 0:t.$$id)===e.id}))-s(n,(function(e){return(null==e?void 0:e.$$id)===t.id}))}))}return t},get sameIdChild(){var t;return null===(t=this.uniqueChildren)||void 0===t?void 0:t.find((function(t){return!t.isRegion&&t.id===e.id}))},get singleRegion(){return!(1!==this.uniqueChildren.length||!this.uniqueChildren[0].isRegion)},isExists:function(t){return e.children.some((function(e){return e.id===t}))},getChildById:function(t){return e.children.find((function(e){return e.id===t}))},get parent(){var t=(0,r.getParent)(e,2);return"root"!==(null==t?void 0:t.id)?t:null},get host(){var t=e.parent;return(null==t?void 0:t.isRegion)&&(t=t.parent),t},get firstChild(){var t=e;if(!t.children.length)return null;for(var n=t.children[0];n;){if(!n.isRegion&&n.id!==t.id)return n;n=n.children.length?n.children[0]:null}return null},get index(){return this.parent.uniqueChildren.indexOf(e)},get prevSibling(){for(var t=this.parent.uniqueChildren,n=t.indexOf(e)-1;n>=0&&t[n];){if(t[n].id!==e.id)return t[n];n--}return null},get nextSibling(){for(var t=this.parent.uniqueChildren,n=t.length,a=t.indexOf(e)+1;a{Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=t.isString=t.JSONTraverse=t.patchDiff=t.diff=t.repeatArray=t.reactionWithOldValue=t.camelize=t.removeDragingClass=t.addDragingClass=t.autobind=t.normalizeId=t.persistSet=t.persistGet=t.sortByList=t.blackList=t.filterSchemaForEditor=t.filterSchemaForConfig=t.deepFind=t.createElementFromHTML=t.reGenerateID=t.JSONDuplicate=t.JSONMoveDownById=t.JSONCanMoveDown=t.JSONMoveUpById=t.JSONCanMoveUp=t.JSONChangeInArray=t.JSONMerge=t.JSONDelete=t.JSONUpdate=t.JSONGetParentById=t.JSONGetById=t.JSONGetPathById=t.JSONGetByPath=t.JSONPipeOut=t.JSONPipeIn=t.cleanUndefined=t.__uri=t.isEmpty=t.omitControls=t.makeHorizontalDeeper=t.noop=t.anyChanged=t.isObjectShallowModified=t.guid=void 0;var a=n(752),r=n(1502),o=a.__importDefault(n(113)),i=n(6211),l=a.__importDefault(n(6410)),s=a.__importDefault(n(5452)),u=r.utils.guid,d=r.utils.omitControls,c=r.utils.isObjectShallowModified,p=r.utils.anyChanged,f=r.utils.noop,m=r.utils.makeHorizontalDeeper,h=r.utils.findIndex,v=r.utils.isEmpty;function g(e){return k(e)?(Object.keys(e).forEach((function(t){void 0===e[t]&&delete e[t]})),e):e}function y(e){if(!k(e)||e.$$typeof)return e;if(Array.isArray(e))return e.map(y);var t={},n=!1;return e.$$id||(n=!0,t.$$id=u()),Object.keys(e).forEach((function(a){var r=e[a];if(Array.isArray(r)){var o=!1,i=r.map((function(e){var t=y(e);return t!==e&&(o=!0),t}));o&&(n=!0,t[a]=i)}else(i=y(r))!==r&&(n=!0,t[a]=i)})),n&&(e=g(a.__assign(a.__assign({},e),t))),e}function b(e,t){if(Array.isArray(e)){var n=!1,r=e.map((function(e){var a=b(e,t);return a!==e&&(n=!0),a}));return n?r:e}if(!k(e)||(0,i.isObservable)(e))return e;var o=!1,l={};return e.$$id&&(o=!0,l.$$id=void 0),Object.keys(e).forEach((function(n){var a=e[n];if("function"==typeof t?t(n,a):t&&"__"===n.substring(0,2))return l[n]=void 0,void(o=!0);var r=b(a,t);r!==a&&(o=!0,l[n]=r)})),o&&(e=g(a.__assign(a.__assign({},e),l))),e}function _(e,t,n){var a=e;return n&&n.push(e),t.forEach((function(e){a=a[e],n&&n.push(a)})),a}function C(e,t){for(var n=[],a=!1,r=[{path:".",data:e}],o=function(){var e=r.shift(),o=e.data,i=e.path;if(o.$$id===t)return a=!0,n=i.split(".").filter((function(e){return e})),"break";Object.keys(o).forEach((function(e){var t=o[e];Array.isArray(t)?t.forEach((function(t,n){k(t)&&r.push({data:t,path:"".concat(i,".").concat(e,".").concat(n)})})):k(t)&&r.push({data:t,path:"".concat(i,".").concat(e)})}))};r.length&&"break"!==o(););return a?n:null}function E(e,t,n){void 0===n&&(n=!1);var a=C(e,t);if(null===a||!a.length)return null;var r=e,o=[r];for(a.pop(),a.forEach((function(e){r=r[e],o.unshift(r)}));n&&Array.isArray(o[0]);)o.shift();return o[0]}function x(e,t,n){var r=C(e,t);if(null===r)return e;var o=parseInt(r.pop(),10),i=[],l=_(e,r,i);if(!Array.isArray(l))return e;for(i[i.length-1]=l=l.concat(),n(l,l[o],o);i.length>1;){var s=i.pop();Array.isArray(i[i.length-1])?i[i.length-1]=i[i.length-1].concat():i[i.length-1]=a.__assign({},i[i.length-1]),i[i.length-1][r[i.length-1]]=s}return i[0]}function w(e){return O(e,(function(e,t,n){return"id"===t&&"string"==typeof e&&0===e.indexOf("u:")&&n&&(n.id="u:"+u()),e})),e}function S(e,t,n){return void 0===n&&(n={}),(null==e?void 0:e.$$commonSchema)===t?n[t]=e:(0,s.default)(e)?Object.keys(e).forEach((function(a){S(e[a],t,n)})):Array.isArray(e)&&e.map((function(e){return S(e,t,n)})),n}function O(e,t){Object.keys(e).forEach((function(n){var a=e[n];(0,s.default)(a)||Array.isArray(a)?O(a,t):t(a,n,e)}))}function k(e){var t=!1;return"Object"===Object.prototype.toString.call(e).slice(8,-1)&&(t=!0),t}t.guid=u,t.omitControls=d,t.isObjectShallowModified=c,t.anyChanged=p,t.noop=f,t.makeHorizontalDeeper=m,t.isEmpty=v,t.__uri=function(e){return e},t.cleanUndefined=g,t.JSONPipeIn=y,t.JSONPipeOut=b,t.JSONGetByPath=_,t.JSONGetPathById=C,t.JSONGetById=function(e,t){var n=C(e,t);return null===n?null:_(e,n)},t.JSONGetParentById=E,t.JSONUpdate=function(e,t,n,r){void 0===r&&(r=!1);var o=C(e,t);if(null===o)return e;var i=[],l=_(e,o,i);if(Array.isArray(n)&&i[i.length-2]&&Array.isArray(i[i.length-2])){var s=i[i.length-2].indexOf(i[i.length-1]);i[i.length-2]=i[i.length-2].concat(),i[i.length-2].splice.apply(i[i.length-2],[s,1].concat(n)),i.pop()}else i[i.length-1]=l=a.__assign(a.__assign(a.__assign({},r?null:l),n),{$$id:t});for(;i.length>1;){var u=i.pop();Array.isArray(i[i.length-1])?i[i.length-1]=i[i.length-1].concat():i[i.length-1]=a.__assign({},i[i.length-1]),i[i.length-1][o[i.length-1]]=u}return i[0]},t.JSONDelete=function(e,t,n,r){var o=C(e,t);if(null===o)return e;Array.isArray(n)&&n.push.apply(n,o);var i=o.pop(),l=[],s=_(e,o,l);for(Array.isArray(s)?(l[l.length-1]=s=s.concat(),s.splice(i,1),r&&!s.length&&(l[l.length-1]=void 0)):(l[l.length-1]=s=a.__assign({},s),delete s[i]);l.length>1;){var u=l.pop();Array.isArray(l[l.length-1])?l[l.length-1]=l[l.length-1].concat():l[l.length-1]=a.__assign({},l[l.length-1]),void 0===u?delete l[l.length-1][o[l.length-1]]:l[l.length-1][o[l.length-1]]=u}return l[0]},t.JSONMerge=function e(t,n){if(!k(t)||!k(n))return n;if(!c(t,n))return t;var a={};return t.$$id&&(a.$$id=t.$$id),Object.keys(n).forEach((function(r){Array.isArray(n[r])&&Array.isArray(t[r])&&n[r]!==t[r]?a[r]=n[r].map((function(n,a){return t[r][a]?e(t[r][a],n):n})):void 0===t[r]?a[r]=n[r]:a[r]=e(t[r],n[r])})),a},t.JSONChangeInArray=x,t.JSONCanMoveUp=function(e,t){var n=E(e,t);return!(!n||!Array.isArray(n))&&h(n,(function(e){return e.$$id===t}))>0},t.JSONMoveUpById=function(e,t){return x(e,t,(function(e,t,n){0!==n&&(e.splice(n,1),e.splice(n-1,0,t))}))},t.JSONCanMoveDown=function(e,t){var n=E(e,t);if(!n||!Array.isArray(n))return!1;var a=h(n,(function(e){return e.$$id===t}));return~a&&a(o=~o?o:999999)?1:r===o?0:-1}},t.persistGet=function(e,t){var n=localStorage.getItem("amis-editor-".concat(e));return n&&(n=JSON.parse(n)),n||t},t.persistSet=function(e,t){t=JSON.stringify(t),localStorage.setItem("amis-editor-".concat(e),t)},t.normalizeId=function(e){return e.replace(/\-[a-z0-9]+$/g,"")},t.autobind=r.utils.autobind,t.addDragingClass=function(e){for(;e&&(e.classList.add("ae-is-draging"),!(null==(e=e.parentElement)?void 0:e.hasAttribute("data-region"))););},t.removeDragingClass=function(e){for(;e&&(e.classList.remove("ae-is-draging"),!(null==(e=e.parentElement)?void 0:e.hasAttribute("data-region"))););},t.camelize=function(e){return e.replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}))},t.reactionWithOldValue=function(e,t){var n;return(0,i.reaction)(e,(function(e){(0,o.default)(e,n)||(t(e,n),n=e)}))},t.repeatArray=function(e,t){void 0===t&&(t=1);for(var n=[];t-- >0;)n.push(e);return n},t.diff=function(e,t,n){return l.default.diff(e,t,n)},t.patchDiff=function(e,t){return t?t.reduce((function(t,n){return function(e,t,n){if(e&&Array.isArray(null==n?void 0:n.path)){e=e===t?a.__assign({},e):e;var r=n.path.concat();"A"!==n.kind&&r.pop(),r.reduce((function(e,t){var n=e.target,r=e.source[t],o=n[t];return r===o&&(o=Array.isArray(o)?o.concat():a.__assign({},o),n[t]=o),{source:r,target:o}}),{target:e,source:t}),l.default.applyChange(e,t,n)}return e}(t,e,n)}),e):e},t.JSONTraverse=O,t.isString=function(e){return"String"===Object.prototype.toString.call(e).slice(8,-1)},t.isObject=k},1779:e=>{e.exports=n("bd4f")},1502:e=>{e.exports=n("cf40")},3437:e=>{e.exports=n("35a3")},3541:e=>{e.exports=n("f0e2")},4122:e=>{e.exports=n("79ae")},6372:e=>{e.exports=n("5272")},361:e=>{e.exports=n("f83d")},5322:e=>{e.exports=n("764b")},8663:e=>{e.exports=n("7f82")},3893:e=>{e.exports=n("d369")},2167:e=>{e.exports=n("bc3a")},9003:e=>{e.exports=n("4d26")},6410:e=>{e.exports=n("6e8d")},5720:e=>{e.exports=n("a1b7")},6517:e=>{e.exports=n("2ef0")},9591:e=>{e.exports=n("0644")},3908:e=>{e.exports=n("b047")},2258:e=>{e.exports=n("c641")},6918:e=>{e.exports=n("2769")},8425:e=>{e.exports=n("51f5")},8579:e=>{e.exports=n("4d8c")},1712:e=>{e.exports=n("9b02")},8492:e=>{e.exports=n("6edf")},5599:e=>{e.exports=n("6747")},113:e=>{e.exports=n("63ea")},5452:e=>{e.exports=n("60ed")},1831:e=>{e.exports=n("4245")},3901:e=>{e.exports=n("3eea")},808:e=>{e.exports=n("77c1")},9309:e=>{e.exports=n("a8fc")},6211:e=>{e.exports=n("daf9")},2062:e=>{e.exports=n("4f20")},2717:e=>{e.exports=n("f7d3")},2245:e=>{e.exports=n("c1df")},6689:e=>{e.exports=n("ab5b")},6405:e=>{e.exports=n("8bc8")},3001:e=>{e.exports=n("a2f3")},35:e=>{e.exports=n("aa47")},752:e=>{e.exports=n("9ab4")}},a={};function r(t){var n=a[t];if(void 0!==n)return n.exports;var o=a[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.SearchPanel=e.GridPlugin=e.BasicToolbarPlugin=e.AvailableRenderersPlugin=e.IFrameEditor=e.mountInIframe=e.RegionWrapper=e.VRenderer=e.CodeEditor=e.BasicEditor=e.RendererEditor=e.mapReactElement=e.getEditorPlugins=e.unRegisterEditorPlugin=e.registerEditorPlugin=e.defaultValue=e.setSchemaTpl=e.getSchemaTpl=e.BasePlugin=e.utils=e.MiniEditor=e.Editor=void 0;var t=r(752),n=t.__importDefault(r(2296));e.Editor=n.default,r(425),r(8595),r(8457),r(247),r(3388),r(5503),r(770),r(9662),r(9251),r(8878),r(4450),r(8540),r(8474),r(282),r(5707),r(7589),r(4891),r(2165),r(6982),r(7131),r(4894),r(7706),r(6956),r(7452),r(2888),r(8322),r(4189),r(3751),r(8107),r(6083),r(5561),r(4635),r(5225),r(4624),r(6253),r(1506),r(1808),r(6239),r(3274),r(200),r(2053),r(3482),r(8952),r(1803),r(8746),r(6489),r(8803),r(3428),r(7798),r(1143),r(812),r(5922),r(8859),r(2125),r(4715),r(6772),r(5489),r(8087),r(8987),r(6311),r(7681),r(4560),r(9940),r(8332),r(9114),r(9890),r(9352),r(9351),r(6682),r(1533),r(8936),r(3914),r(3581),r(4950),r(377),r(4659),r(2821),r(1596),r(7717),r(6460),r(4930),r(1838),r(2029),r(1663),r(8863),r(8395),r(9065),r(6469),r(9544),r(9344),r(6062),r(6760),r(8134),r(2585),r(6721),r(9475),r(8835),r(4093),r(9691),r(9596),r(6397),r(4887),r(2629),r(7863),r(8969),r(4610),r(7197),r(419),r(1897),r(821),r(135),r(5218),r(2460),r(5678),r(3345),r(410),r(2398),r(9227),r(6218),r(3470),r(2500),r(7328),r(946),r(8979),r(46),r(1886),r(9268),r(7599),r(4300),r(2022),r(4799),r(4870),r(1509),r(2766),r(3306),r(1800),r(4268),r(2156),r(7991),r(9963);var a=t.__importStar(r(3570));e.utils=a;var i=r(9547);Object.defineProperty(e,"getSchemaTpl",{enumerable:!0,get:function(){return i.getSchemaTpl}}),Object.defineProperty(e,"defaultValue",{enumerable:!0,get:function(){return i.defaultValue}}),Object.defineProperty(e,"setSchemaTpl",{enumerable:!0,get:function(){return i.setSchemaTpl}});var l=r(9756);Object.defineProperty(e,"registerEditorPlugin",{enumerable:!0,get:function(){return l.registerEditorPlugin}}),Object.defineProperty(e,"unRegisterEditorPlugin",{enumerable:!0,get:function(){return l.unRegisterEditorPlugin}}),Object.defineProperty(e,"getEditorPlugins",{enumerable:!0,get:function(){return l.getEditorPlugins}});var s=r(9933);Object.defineProperty(e,"BasePlugin",{enumerable:!0,get:function(){return s.BasePlugin}});var u=r(9672);Object.defineProperty(e,"BasicEditor",{enumerable:!0,get:function(){return u.BasicEditor}}),Object.defineProperty(e,"RendererEditor",{enumerable:!0,get:function(){return u.RendererEditor}});var d=t.__importDefault(r(7279));e.MiniEditor=d.default;var c=t.__importDefault(r(3017));e.CodeEditor=c.default;var p=t.__importDefault(r(1454));e.IFrameEditor=p.default;var f=r(1325);Object.defineProperty(e,"mountInIframe",{enumerable:!0,get:function(){return f.mountInIframe}});var m=r(4450);Object.defineProperty(e,"AvailableRenderersPlugin",{enumerable:!0,get:function(){return m.AvailableRenderersPlugin}});var h=t.__importDefault(r(512));e.SearchPanel=h.default;var v=r(5503);Object.defineProperty(e,"BasicToolbarPlugin",{enumerable:!0,get:function(){return v.BasicToolbarPlugin}});var g=r(5863);Object.defineProperty(e,"VRenderer",{enumerable:!0,get:function(){return g.VRenderer}});var y=r(1548);Object.defineProperty(e,"RegionWrapper",{enumerable:!0,get:function(){return y.RegionWrapper}});var b=r(4887);Object.defineProperty(e,"GridPlugin",{enumerable:!0,get:function(){return b.GridPlugin}});var _=r(9703);Object.defineProperty(e,"mapReactElement",{enumerable:!0,get:function(){return _.mapReactElement}})})();var i=t;for(var l in o)i[l]=o[l];o.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})()},"689c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IFormItemStore=t.FormStore=void 0;var a=n("9ab4"),r=n("f7d3"),o=(0,a.__importDefault)(n("b047")),i=n("1727"),l=n("dce3");Object.defineProperty(t,"IFormItemStore",{enumerable:!0,get:function(){return l.IFormItemStore}});var s=n("0069"),u=n("d369"),d=(0,a.__importDefault)(n("63ea")),c=(0,a.__importDefault)(n("4d8c")),p=n("a97c"),f=n("7f82");t.FormStore=i.ServiceStore.named("FormStore").props({inited:!1,validated:!1,submited:!1,submiting:!1,savedData:r.types.frozen(),canAccessSuperData:!0,persistData:r.types.optional(r.types.union(r.types.string,r.types.boolean),""),restError:r.types.optional(r.types.array(r.types.string),[])}).views((function(e){function t(){var t=[],n=e.children.concat();while(n.length){var a=n.shift();a.storeType===l.FormItemStore.name?t.push(a):n.push.apply(n,a.children)}return t}return{get loading(){return e.saving||e.fetching},get items(){return t()},get errors(){var e={};return t().forEach((function(t){t.valid||(e[t.name]=Array.isArray(e[t.name])?e[t.name].concat(t.errors):t.errors.concat())})),e},getValueByName:function(t,n){return void 0===n&&(n=e.canAccessSuperData),(0,u.getVariable)(e.data,t,n)},getPristineValueByName:function(t){return(0,u.getVariable)(e.pristine,t)},getItemById:function(e){return t().find((function(t){return t.itemId===e}))},getItemByName:function(e){return t().find((function(t){return t.name===e}))},getItemsByName:function(e){return t().filter((function(t){return t.name===e}))},get valid(){return t().every((function(e){return e.valid}))&&(!e.restError||!e.restError.length)},get validating(){return t().some((function(e){return e.validating}))},get isPristine(){return(0,d.default)(e.pristine,e.data)},get modified(){return e.savedData?e.savedData!==e.data:!this.isPristine},get persistKey(){return"".concat(location.pathname,"/").concat(e.path,"/").concat("string"===typeof e.persistData?(0,p.filter)(e.persistData,e.data):e.persistData)}}})).actions((function(e){function t(t,n,a){e.updateData(t,n,a),e.items.forEach((function(e){return e.reset()})),d()}function n(t,n,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1);var i=(0,u.getVariable)(e.data,t,!1),l=e.data,s=(0,u.cloneObject)(e.data);if(n!==i)if(l.__prev){var c=(0,u.cloneObject)(l.__prev);(0,u.setVariable)(c,t,i),Object.defineProperty(s,"__prev",{value:c,enumerable:!1,configurable:!1,writable:!1})}else Object.defineProperty(s,"__prev",{value:(0,a.__assign)({},l),enumerable:!1,configurable:!1,writable:!1});else if(!o)return;if((0,u.setVariable)(s,t,n),r){var p=(0,u.cloneObject)(e.pristine);(0,u.setVariable)(p,t,n),e.pristine=p}s.__pristine||Object.defineProperty(s,"__pristine",{value:e.pristine,enumerable:!1,configurable:!1,writable:!1}),e.data=s,d()}function i(t){var n=e.data,r=(0,u.cloneObject)(e.data);if(n.__prev){var o=(0,u.cloneObject)(n.__prev);(0,u.setVariable)(o,t,(0,u.getVariable)(n,t)),Object.defineProperty(r,"__prev",{value:o,enumerable:!1,configurable:!1,writable:!1})}else Object.defineProperty(r,"__prev",{value:(0,a.__assign)({},n),enumerable:!1,configurable:!1,writable:!1});(0,u.deleteVariable)(r,t),e.data=r}function l(){var t=(0,u.mapObject)(e.data,(function(e){return"string"===typeof e?e.trim():e}));e.updateData(t)}var d=(0,o.default)((function(){return e.items.forEach((function(t){return t.syncOptions(void 0,e.data)}))}),250,{trailing:!0,leading:!1});function p(t){e.restError.replace(t)}function m(t,n){var a=n?Array.isArray(n)?n.concat():[n]:null;if(Array.isArray(a)){var r={};a.forEach((function(e){return r[e]=t})),g(r,"rules")}else e.restError.push(t)}function h(){p([])}var v=(0,r.flow)((function(n,o,i){var l,d,c,p,m,v,y,b,_,C,E;return void 0===i&&(i={}),(0,a.__generator)(this,(function(x){switch(x.label){case 0:h(),x.label=1;case 1:return x.trys.push([1,12,,15]),i=(0,a.__assign)({method:"post"},i),i&&i.beforeSend?(c=i.beforeSend(o),c&&c.then?[4,c]:[3,3]):[3,4];case 2:c=x.sent(),x.label=3;case 3:if(!1===c)return[2];x.label=4;case 4:return e.markSaving(!0),[4,(0,r.getEnv)(e).fetcher(n,o,i)];case 5:if(l=x.sent(),(0,u.isEmpty)(l.data)&&!l.ok||(e.updatedAt=Date.now(),t((0,f.normalizeApiResponseData)(l.data),l.ok?{__saved:Date.now()}:void 0,!!n.replaceData)),l.ok)return[3,6];throw 422===l.status&&l.errors?(g(l.errors),e.updateMessage(null!==(v=null!==(m=l.msg)&&void 0!==m?m:e.__(i&&i.errorMessage))&&void 0!==v?v:e.__("Form.validateFailed"),!0)):e.updateMessage(null!==(y=l.msg)&&void 0!==y?y:e.__(i&&i.errorMessage),!0),new s.ServerError(e.msg,l);case 6:return P(),c=i&&i.onSuccess&&i.onSuccess(l),(null===c||void 0===c?void 0:c.then)?[4,c]:[3,8];case 7:c=x.sent(),x.label=8;case 8:return(null===(b=null===c||void 0===c?void 0:c.cbResult)||void 0===b?void 0:b.then)?[4,c.cbResult]:[3,10];case 9:x.sent(),x.label=10;case 10:return e.markSaving(!1),e.updateMessage(null!==(_=l.msg)&&void 0!==_?_:e.__(i&&i.successMessage)),(null===(C=null===c||void 0===c?void 0:c.dispatcher)||void 0===C?void 0:C.prevented)||e.msg&&(0,r.getEnv)(e).notify("success",e.msg,void 0!==l.msgTimeout?{closeButton:!0,timeout:l.msgTimeout}:void 0),[2,l.data];case 11:return[3,15];case 12:return d=x.sent(),e.markSaving(!1),c=i&&i.onFailed&&i.onFailed(d.response||{}),(null===c||void 0===c?void 0:c.then)?[4,c]:[3,14];case 13:c=x.sent(),x.label=14;case 14:if(!(0,r.isAlive)(e)||e.disposed)return[2];if(null===(E=null===c||void 0===c?void 0:c.dispatcher)||void 0===E?void 0:E.prevented)return[2];throw"ServerError"===d.type?(p=d.response,(0,r.getEnv)(e).notify("error",d.message,void 0!==p.msgTimeout?{closeButton:!0,timeout:p.msgTimeout}:void 0)):(0,r.getEnv)(e).notify("error",d.message),d;case 15:return[2]}}))}));function g(t,n){void 0===n&&(n="remote"),Object.keys(t).forEach((function(a){var r=e.getItemById(a),o=e.getItemsByName(a);if(r)r.setError(t[a],n),delete t[a];else if(o.length)o.forEach((function(e){return e.setError(t[a],n)})),delete t[a];else{var i=y(a);Array.isArray(i)&&i.length&&(i.forEach((function(e){return e.setError("".concat(t[a]),n)})),delete t[a])}})),!(0,u.isEmpty)(t)&&p(Object.keys(t).map((function(e){return String(t[e])})))}var y=function(t){var n=(0,u.keyToPath)(t),a=n.length;return n.reduce((function(e,t,n){if(Array.isArray(e)&&e.every((function(e){return e.getItemsByName}))){var r=(0,c.default)(e.map((function(e){return e.getItemsByName(t)}))).filter((function(e){return e})),o=r.map((function(e){var t;return null===(t=null===e||void 0===e?void 0:e.getSubStore)||void 0===t?void 0:t.call(e)})).filter((function(e){return e}));return o.length&&n'}],n}return(0,a.__extends)(t,e),t.prototype.render=function(){return r.default.createElement(l,{config:this.props.config,model:this.props.model,onModelChange:this.props.onModelChange})},t}(r.default.Component);t.default=s},"6f58":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 12 12",className:"icon"},e),r.default.createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("polyline",{id:"Stroke-1",stroke:"currentColor",points:"2.5 9.5 0.5 9.5 0.5 0.5 9.5 0.5 9.5 2.5"}),r.default.createElement("polygon",{id:"Stroke-3",stroke:"currentColor",points:"2.5 11.5 11.5 11.5 11.5 2.5 2.5 2.5"})))};t.default=o},"6ffd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldSetRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=(0,a.__importDefault)(n("3029")),l=function(e){function t(t){var n=e.call(this,t)||this;return n.renderBody=n.renderBody.bind(n),n}return(0,a.__extends)(t,e),t.prototype.renderBody=function(){var e=this.props,t=e.body,n=e.collapsable,a=e.horizontal,o=e.render,i=e.mode,l=e.formMode,s=e.classnames,u=e.store,d=e.formClassName,c=e.disabled,p=e.formHorizontal,f=e.subFormMode,m=e.subFormHorizontal,h={store:u,data:u.data,render:o,disabled:c,formMode:f||l,formHorizontal:m||p};return i&&(h.mode=i),"undefined"!==typeof n&&(h.collapsable=n),a&&(h.horizontal=a),r.default.createElement("div",{className:s("Form--".concat(h.mode||l||"normal"),d)},t?o("body",t,h):null)},t.prototype.render=function(){var e=this.props,t=(e.controls,e.className),n=(e.mode,e.body),o=(0,a.__rest)(e,["controls","className","mode","body"]);return r.default.createElement(i.default,(0,a.__assign)({},o,{body:n,className:t,children:this.renderBody,wrapperComponent:"fieldset",headingComponent:"bottom"===o.titlePosition?"div":"legend"}))},t.defaultProps={titlePosition:"top",headingClassName:"",collapsable:!1},t}(r.default.Component);t.default=l;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"fieldset",weight:-100,name:"fieldset"})],t),t}(l);t.FieldSetRenderer=s},"709b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabsRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=(0,a.__importDefault)(n("2769")),l=n("d369"),s=(0,a.__importDefault)(n("51f5")),u=n("cd0c"),d=n("a97c"),c=n("7e49"),p=n("7f82"),f=n("2b46"),m=function(e){function t(t){var n=e.call(this,t)||this;n.newTabDefaultId=3;var a=t.location||window.location,r=t.tabs,o=t.source,l=t.data,s=0;if("undefined"!==typeof t.activeKey)s=t.activeKey;else if(a&&Array.isArray(r)){var u=a.hash.substring(1),d=(0,i.default)(r,(function(e){return e.hash===u}));d?s=d.hash:t.defaultActiveKey&&(s=(0,c.tokenize)(t.defaultActiveKey,t.data)),s=s||r[0]&&r[0].hash||0}var p=n.initTabArray(r,o,l),f=p[0],m=p[1];return n.state={prevKey:void 0,activeKey:n.activeKey=s,localTabs:f,isFromSource:m},n}var n;return(0,a.__extends)(t,e),t.prototype.initTabArray=function(e,t,n){if(!e)return[[],!1];var r=(0,c.resolveVariableAndFilter)(t,n,"| raw");if(!Array.isArray(r))return[e,!1];e=Array.isArray(e)?e:[e];var o=[];return r.forEach((function(t,r){var i=(0,l.createObject)(n,(0,l.isObject)(t)?(0,a.__assign)({index:r},t):{item:t,index:r});o.push.apply(o,e.map((function(e){return(0,a.__assign)((0,a.__assign)({},e),{ctx:i})})))})),[o,!0]},t.prototype.componentDidMount=function(){var e,t;this.autoJumpToNeighbour(this.activeKey);var n=this.props,a=n.name,r=n.value,o=n.onChange,i=n.source,s=(n.tabs,n.data),u=this.state.localTabs;if(a&&"function"===typeof o&&!i)if(r=null!==r&&void 0!==r?r:(0,l.getVariable)(s,a),r&&Array.isArray(u)){var d=this.resolveKeyByValue(r);void 0!==d&&this.handleSelect(d)}else{var c=this.resolveTabByKey(this.activeKey);c&&r!==(null!==(e=c.value)&&void 0!==e?e:c.title)&&o(null!==(t=c.value)&&void 0!==t?t:c.title,a)}},t.prototype.componentDidUpdate=function(e,t){var n,a,r,o=this.props,s=this.state.localTabs,u=(0,l.isObjectShallowModified)({tabs:o.tabs,source:(0,c.resolveVariableAndFilter)(o.source,o.data,"| raw")},{tabs:e.tabs,source:(0,c.resolveVariableAndFilter)(e.source,e.data,"| raw")},!1);if(u){var d=this.initTabArray(o.tabs,o.source,o.data),p=d[0],f=d[1];this.setState({localTabs:p,isFromSource:f}),s=p}if(o.location&&e.location&&o.location.hash!==e.location.hash){var m=o.location.hash.substring(1);if(!m)return;var h=(0,i.default)(s,(function(e){return e.hash===m}));h&&h.hash&&h.hash!==this.state.activeKey&&this.setState({activeKey:this.activeKey=h.hash,prevKey:this.state.activeKey})}else if(Array.isArray(s)&&Array.isArray(t.localTabs)&&JSON.stringify(s.map((function(e){return e.hash})))!==JSON.stringify(t.localTabs.map((function(e){return e.hash})))){var v=this.state.activeKey,g=o.location;h=null;if(g&&Array.isArray(s)){var y=g.hash.substring(1);h=(0,i.default)(s,(function(e){return e.hash===y}))}h?v=h.hash:s&&s.some((function(e,t){return e.hash?e.hash===v:t===v}))||(v=s&&s[0]&&s[0].hash||0),this.setState({prevKey:void 0,activeKey:this.activeKey=v})}this.autoJumpToNeighbour(this.activeKey);var b=this.props,_=b.name,C=b.value,E=b.onChange,x=b.source,w=b.data;if(_&&"function"===typeof E&&!x){var S;C=null!==C&&void 0!==C?C:(0,l.getVariable)(w,_);var O=null!==(n=e.value)&&void 0!==n?n:(0,l.getVariable)(e.data,e.name);if(C!==O&&void 0!==(S=this.resolveKeyByValue(C))&&S!==this.activeKey)this.handleSelect(S);else if(this.activeKey!==t.activeKey){h=this.resolveTabByKey(this.activeKey);h&&C!==(null!==(a=h.value)&&void 0!==a?a:h.title)&&E(null!==(r=h.value)&&void 0!==r?r:h.title,_)}}},t.prototype.resolveTabByKey=function(e){var t=this.state.localTabs;if(Array.isArray(t))return(0,i.default)(t,(function(t,n){return t.hash?t.hash===e:n===e}))},t.prototype.resolveKeyByValue=function(e){var t=this.state.localTabs;if(Array.isArray(t)){var n=(0,i.default)(t,(function(t){var n;return(null!==(n=t.value)&&void 0!==n?n:t.title)===e}));return n&&n.hash?n.hash:t.indexOf(n)}},t.prototype.autoJumpToNeighbour=function(e){var t=this.props,n=(t.tabs,t.data),a=this.state.localTabs;if(Array.isArray(a)){var r=(0,s.default)(a,(function(t,n){return t.hash?t.hash===e:n===e}));if(a[r]&&!(0,l.isVisible)(a[r],this.props.data)){var o=a.length,i=r-1+o,u=o-1;while(u--){var d=i--%o;if((0,l.isVisible)(a[d],n)){var c=a[d].hash||d;this.setState({activeKey:this.activeKey=c});break}}}}},t.prototype.handleAdd=function(){var e=this,t=this.state.localTabs.concat();t.push({title:"tab".concat(this.newTabDefaultId++),body:"tab"}),this.setState({localTabs:t},(function(){e.switchTo(e.state.localTabs.length-1)}))},t.prototype.handleClose=function(e,t){var n=this.state.localTabs.concat();n.splice(e,1),this.setState({localTabs:n})},t.prototype.handleEdit=function(e,t){var n=this.state.localTabs.concat();n[e].title=t,this.setState({localTabs:n})},t.prototype.handleDragChange=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r=this;return(0,a.__generator)(this,(function(a){return t=this.resolveTabByKey(this.activeKey),n=this.state.localTabs.concat(),n.splice(e.newIndex,0,n.splice(e.oldIndex,1)[0]),this.setState({localTabs:n},(function(){if(t){var e=n.indexOf(t);r.switchTo(e)}})),[2]}))}))},t.prototype.handleSelect=function(e){var t;return(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o,i,s,u,d,c,f,m;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return n=this.props,r=n.dispatchEvent,o=n.data,i=n.env,s=n.onSelect,u=n.id,d=this.state.localTabs,null===(t=i.tracker)||void 0===t||t.call(i,{eventType:"tabChange",eventData:{id:u,key:e}}),c=null===d||void 0===d?void 0:d.find((function(t,n){return e===(t.hash?t.hash:n)})),[4,r("change",(0,l.createObject)(o,{value:(null===c||void 0===c?void 0:c.hash)?null===c||void 0===c?void 0:c.hash:e+1}))];case 1:return f=a.sent(),(null===f||void 0===f?void 0:f.prevented)?[2]:("string"===typeof e&&i?i.updateLocation("#".concat(e)):"string"===typeof this.state.activeKey&&i&&i.updateLocation("#"),this.setState({activeKey:this.activeKey=e,prevKey:this.state.activeKey}),"string"===typeof s?(m=(0,p.str2AsyncFunction)(s,"key","props"),m&&m(e,this.props)):"function"===typeof s&&s(e,this.props),[2])}}))}))},t.prototype.doAction=function(e,t){var n=null===e||void 0===e?void 0:e.actionType,a=null===t||void 0===t?void 0:t.activeKey;"string"!==typeof(null===t||void 0===t?void 0:t.activeKey)&&a--,"changeActiveKey"===n&&this.handleSelect(a)},t.prototype.switchTo=function(e){var t=this.state.localTabs;Array.isArray(t)&&t[e]&&this.setState({activeKey:this.activeKey=t[e].hash||e})},t.prototype.currentIndex=function(){var e=this,t=this.state.localTabs;return Array.isArray(t)?(0,s.default)(t,(function(t,n){return t.hash?t.hash===e.state.activeKey:n===e.state.activeKey})):-1},t.prototype.renderToolbar=function(){var e=this.props,t=e.toolbar,n=e.render,a=e.classnames,o=e.toolbarClassName;return t?r.default.createElement("div",{className:a("Tabs-toolbar",o)},n("toolbar",t)):null},t.prototype.renderTabs=function(){var e=this,t=this.props,n=t.classnames,o=t.classPrefix,i=t.contentClassName,s=t.linksClassName,c=t.tabRender,p=t.className,f=t.render,m=t.data,h=t.mode,v=t.tabsMode,g=t.unmountOnExit,y=(t.source,t.formStore),b=t.formMode,_=t.formHorizontal,C=t.subFormMode,E=t.subFormHorizontal,x=t.addable,w=t.closable,S=t.draggable,O=t.showTip,k=t.showTipClassName,D=t.editable,N=t.sidePosition,T=t.translate,P=t.addBtnText,A=v||h,I=this.props.mountOnEnter;y&&(I=!1);var R=this.state,F=R.localTabs,M=R.isFromSource,j=[];return j=M?F.map((function(e,t){var n;return(0,l.isVisible)(e,e.ctx)?r.default.createElement(u.Tab,(0,a.__assign)({},e,{title:(0,d.filter)(e.title,e.ctx),disabled:(0,l.isDisabled)(e,e.ctx),key:t,eventKey:t,mountOnEnter:I,unmountOnExit:"boolean"===typeof e.reload?e.reload:"boolean"===typeof e.unmountOnExit?e.unmountOnExit:g}),f("item/".concat(t),(null===(n=e)||void 0===n?void 0:n.type)?e:e.tab||e.body,{data:e.ctx,formMode:e.mode||C||b,formHorizontal:e.horizontal||E||_})):null})):F.map((function(t,n){var o;return(0,l.isVisible)(t,m)?r.default.createElement(u.Tab,(0,a.__assign)({},t,{title:(0,d.filter)(t.title,m),disabled:(0,l.isDisabled)(t,m),key:n,eventKey:t.hash||n,mountOnEnter:I,unmountOnExit:"boolean"===typeof t.reload?t.reload:"boolean"===typeof t.unmountOnExit?t.unmountOnExit:g}),e.renderTab?e.renderTab(t,e.props,n):c?c(t,e.props,n):f("tab/".concat(n),(null===(o=t)||void 0===o?void 0:o.type)?t:t.tab||t.body,{formMode:t.mode||C||b,formHorizontal:t.horizontal||E||_})):null})),r.default.createElement(u.Tabs,{addBtnText:T(P||"add"),classPrefix:o,classnames:n,mode:A,closable:w,className:p,contentClassName:i,linksClassName:s,onSelect:this.handleSelect,activeKey:this.state.activeKey,toolbar:this.renderToolbar(),addable:x,onAdd:this.handleAdd,onClose:this.handleClose,draggable:S,onDragChange:this.handleDragChange,showTip:O,showTipClassName:k,editable:D,onEdit:this.handleEdit,sidePosition:N},j)},t.prototype.render=function(){return this.renderTabs()},t.defaultProps={className:"",mode:"",mountOnEnter:!0,unmountOnExit:!1},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof Array&&Array)?n:Object,String,Object]),(0,a.__metadata)("design:returntype",Array)],t.prototype,"initTabArray",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"autoJumpToNeighbour",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleAdd",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClose",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number,String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleEdit",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleDragChange",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleSelect",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"switchTo",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",Number)],t.prototype,"currentIndex",null),t}(r.default.Component);t.default=m;var h=function(e){function t(t,n){var a=e.call(this,t)||this,r=n;return r.registerComponent(a),a}var n;return(0,a.__extends)(t,e),t.prototype.componentWillUnmount=function(){var t;null===(t=e.prototype.componentWillUnmount)||void 0===t||t.call(this);var n=this.context;n.unRegisterComponent(this)},t.contextType=f.ScopedContext,t=(0,a.__decorate)([(0,o.Renderer)({type:"tabs"}),(0,a.__metadata)("design:paramtypes",[Object,"function"===typeof(n="undefined"!==typeof f.IScopedContext&&f.IScopedContext)?n:Object])],t),t}(m);t.TabsRenderer=h},7119:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PickerContainer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d369"),i=(0,a.__importDefault)(n("0b1a")),l=n("d77e"),s=n("32e1"),u=(0,a.__importDefault)(n("f602")),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isOpened:!1,value:t.props.value},t.bodyRef=r.default.createRef(),t}return(0,a.__extends)(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;t.value!==e.value&&this.setState({value:t.value})},t.prototype.handleClick=function(){var e,t;return(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o=this;return(0,a.__generator)(this,(function(i){switch(i.label){case 0:return r=[{}],[4,null===(t=(e=this.props).onPickerOpen)||void 0===t?void 0:t.call(e,this.props)];case 1:return n=a.__assign.apply(void 0,[a.__assign.apply(void 0,r.concat([i.sent()])),{isOpened:!0}]),this.setState(n,(function(){var e,t;return null===(t=(e=o.props).onFocus)||void 0===t?void 0:t.call(e)})),[2]}}))}))},t.prototype.close=function(e,t){var n=this;this.setState({isOpened:!1},(function(){var e,a,r,o;null===(a=(e=n.props).onClose)||void 0===a||a.call(e),t?t():null===(o=(r=n.props).onCancel)||void 0===o||o.call(r)}))},t.prototype.handleChange=function(e){this.setState({value:e})},t.prototype.confirm=function(){return(0,a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,i,l=this;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=this.props,t=e.onConfirm,n=e.beforeConfirm,[4,null===n||void 0===n?void 0:n(this.bodyRef.current)];case 1:return r=a.sent(),i={isOpened:!1},!1===r?[2]:((0,o.isObject)(r)&&(i.value=r),this.setState(i,(function(){return null===t||void 0===t?void 0:t(l.state.value)})),[2])}}))}))},t.prototype.updateState=function(e){void 0===e&&(e={});e.isOpened;var t=(0,a.__rest)(e,["isOpened"]);this.setState((0,a.__assign)((0,a.__assign)({},this.state),t))},t.prototype.render=function(){var e=this.props,t=e.children,n=e.bodyRender,o=e.title,l=e.showTitle,s=e.headerClassName,d=e.translate,c=e.size;return r.default.createElement(r.default.Fragment,null,t({isOpened:this.state.isOpened,onClick:this.handleClick,setState:this.updateState}),r.default.createElement(i.default,{size:c,closeOnEsc:!0,show:this.state.isOpened,onHide:this.close},!1!==l?r.default.createElement(i.default.Header,{onClose:this.close,className:s},d(o||"Select.placeholder")):null,r.default.createElement(i.default.Body,null,n((0,a.__assign)((0,a.__assign)({},this.state),{ref:this.bodyRef,setState:this.updateState,onClose:this.close,onChange:this.handleChange}))),r.default.createElement(i.default.Footer,null,r.default.createElement(u.default,{onClick:this.close},d("cancel")),r.default.createElement(u.default,{onClick:this.confirm,level:"primary"},d("confirm")))))},(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleClick",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Function]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"close",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleChange",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"confirm",null),(0,a.__decorate)([o.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"updateState",null),t}(r.default.Component);t.PickerContainer=d,t.default=(0,l.themeable)((0,s.localeable)(d))},"721d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateIcon=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e,t,n,a){if(r.default.isValidElement(t))return t;var o=-1!==(null===t||void 0===t?void 0:t.indexOf("."));return t?o?r.default.createElement("img",{className:e(n,a),src:t,key:t}):r.default.createElement("i",{className:e(n,t,a),key:t}):null};t.generateIcon=o},"739d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Selection=t.BaseSelection=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("cbc0"),i=(0,a.__importDefault)(n("3473")),l=n("d77e"),s=n("d369"),u=(0,a.__importDefault)(n("63ea")),d=n("32e1"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.itemRender=function(e,t){return r.default.createElement("span",null,e.label)},t.value2array=function(e,t,n){return void 0===n&&(n=function(e){return e}),void 0===e?[]:(Array.isArray(e)||(e=[e]),e.map((function(e){var a=(0,s.findTree)(t,(function(t){return(0,u.default)(n(t),e)}));return a||e})))},t.resolveSelected=function(e,t,n){return void 0===n&&(n=function(e){return e}),e=Array.isArray(e)?e[0]:e,(0,s.findTree)(t,(function(t){return(0,u.default)(n(t),e)}))},t.prototype.intersectArray=function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return[];var n=e.length,a=t.length;return n0){var u=r[s-1];if(null===u||void 0===u?void 0:u.path){l=u.path+"/";break}s--}i=l+i}return(0,a.__assign)((0,a.__assign)({},e),{index:t,id:e.id||(0,o.guid)(),label:e.label,icon:e.icon,path:i})})),e.pages=t},rewrite:function(t,n){var a=(0,o.findTree)(e.pages,(function(e){return e.path===t}));a&&this.setActivePage(a,n)},setActivePage:function(t,n,r){var i;if((null===(i=e.activePage)||void 0===i?void 0:i.id)!==t.id){var l=[];if((0,o.findTree)(e.pages,(function(n,r,o,i){return n.id===t.id&&(l=i.filter((function(e){return e.path&&e.label})),l.push((0,a.__assign)((0,a.__assign)({},n),{path:""})),e.__,"/"!==l[0].path&&l.unshift({label:e.__("App.home"),path:"/"}),!0)})),e.activePage=(0,a.__assign)((0,a.__assign)({},t),{params:r||{},bcn:l}),t.label&&(document.title=t.label),t.schema)e.schema=t.schema,e.schemaKey=""+Date.now();else if(t.schemaApi)e.schema=null,e.fetchSchema(t.schemaApi,e.activePage,{method:"get"});else{if(t.redirect)return void n.jumpTo(t.redirect);t.rewrite?this.rewrite(t.rewrite,n):(e.schema=null,e.schemaKey="")}}},updateActivePage:function(t){if(Array.isArray(e.pages)){var n,a=(0,o.findTree)(e.pages,(function(e){return!(!e.path||(n=t.isCurrentUrl(e.path,e),!n))}));if(a)this.setActivePage(a,t,"object"===typeof n?n.params:void 0);else{var r=(0,o.findTree)(e.pages,(function(e){return e.isDefaultPage}));r?this.setActivePage(r,t):e.activePage=null}}}}}))},"746f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=n("a97c"),o=n("d369"),i=(0,a.__importDefault)(n("60ed")),l=(0,a.__importDefault)(n("4d26"));function s(e,t,n,a){void 0===t&&(t={}),void 0===n&&(n=["addOn"]);var s={},u=null;return Object.getOwnPropertyNames(e).forEach((function(d){if(!n||!~n.indexOf(d)){var c=/^(.*)(On|Expr|(?:c|C)lassName)(Raw)?$/.exec(d),p=e[d];p&&"string"===typeof p&&(null===c||void 0===c?void 0:c[1])&&("On"===c[2]||"Expr"===c[2])?(d=c[1],"On"!==c[2]&&"Expr"!==c[2]||(!u&&a&&"string"===typeof p&&~p.indexOf("__props")&&(u=(0,o.injectPropsToObject)(t,{__props:a})),p="On"===c[2]?(0,r.evalExpression)(p,u||t):(0,r.filter)(p,u||t)),s[d]=p):p&&(0,i.default)(p)&&("className"===(null===c||void 0===c?void 0:c[2])||"ClassName"===(null===c||void 0===c?void 0:c[2]))&&(d=c[1]+c[2],s["".concat(d,"Raw")]=p,s[d]=(0,l.default)((0,o.mapObject)(p,(function(e){return"string"===typeof e?(0,r.evalExpression)(e,t):e}))))}})),s}t.default=s},"74e6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StepsRenderer=t.StepsCmpt=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=a.__importStar(n("5ed3")),l=n("1930"),s=n("7e49"),u=n("a97c"),d=n("d369");function c(e){var t,n=e.className,o=e.steps,l=e.status,c=e.mode,p=e.labelPlacement,f=e.progressDot,m=e.data,h=e.source,v=e.config,g=e.render,y=e.useMobileUI,b=(0,s.resolveVariable)(h,m)||v||o||[],_=function(e){return"string"===typeof e?(0,u.filter)(e,m):e&&g("inner",e)},C=null!==(t=(0,d.getPropValue)(e))&&void 0!==t?t:0,E="string"===typeof C&&isNaN(+C)&&+(0,s.resolveVariable)(C,m)||+C,x=b.findIndex((function(e){return e.value&&e.value===E})),w=-1!==x?x:E,S=b.map((function(e,t){var n=O(e,t);return(0,a.__assign)((0,a.__assign)({},e),{status:n,title:_(e.title),subTitle:_(e.subTitle),description:_(e.description)})}));function O(e,t){var n;if("string"===typeof l){if(t===w){var a=(0,s.resolveVariable)(l,m);n=a||l||i.StepStatus.process}}else if("object"===typeof l){var r=e.value;r&&l[r]&&(n=l[r])}return n}return r.default.createElement(i.default,{current:w,steps:S,className:n,status:l,mode:c,progressDot:f,labelPlacement:p,useMobileUI:y})}t.StepsCmpt=c;var p=(0,l.withRemoteConfig)({adaptor:function(e){return e.steps||e}})(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.config,n=(e.deferLoad,e.loading,e.updateConfig,(0,a.__rest)(e,["config","deferLoad","loading","updateConfig"]));return r.default.createElement(c,(0,a.__assign)({config:t},n))},t}(r.default.Component)),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){return r.default.createElement(p,(0,a.__assign)({},this.props))},t=(0,a.__decorate)([(0,o.Renderer)({type:"steps"})],t),t}(r.default.Component);t.StepsRenderer=f},"75d9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParallelAction=void 0;var a=n("9ab4"),r=n("0d19"),o=function(){function e(){}return e.prototype.run=function(e,t,n){return(0,a.__awaiter)(this,void 0,void 0,(function(){var o;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e.children&&e.children.length?(o=e.children.map((function(e){return(0,r.runActions)(e,t,n)})),[4,Promise.all(o)]):[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}}))}))},e}();t.ParallelAction=o,(0,r.registerAction)("parallel",new o)},"75ef":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListGroup=void 0;var a=n("9ab4"),r=n("d77e"),o=(0,a.__importDefault)(n("ab5b")),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.classnames,n=e.className,r=e.expand,i=e.placeholder,l=e.items,s=e.children,u=e.itemClassName,d=e.itemRender,c=e.getItemProps,p=(e.classPrefix,(0,a.__rest)(e,["classnames","className","expand","placeholder","items","children","itemClassName","itemRender","getItemProps","classPrefix"]));return o.default.createElement("div",(0,a.__assign)({},p,{className:t("ListGroup",n,r?"ListGroup--expanded":"")}),Array.isArray(l)&&l.length?l.map((function(e,n){var r=(null===c||void 0===c?void 0:c({item:e,index:n}))||{};return o.default.createElement("div",(0,a.__assign)({key:n},r,{className:t("ListGroup-item",u,r.className)}),d(e,n))})):i?o.default.createElement("div",{className:t("Placeholder ListGroup-placeholder")}):null,s)},t.defaultProps={itemRender:function(e){return o.default.createElement(o.default.Fragment,null,"".concat(e))}},t}(o.default.Component);t.ListGroup=i,t.default=(0,r.themeable)(i)},"764b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorControlRenderer=t.EditorControls=t.availableLanguages=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("2ab5"),i=(0,a.__importDefault)(n("a987")),l=(0,a.__importDefault)(n("f0e2")),s=n("d369"),u=n("7e49"),d=n("4178"),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1},n.toDispose=[],n.divRef=r.default.createRef(),n.prevHeight=0,n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleEditorMounted=n.handleEditorMounted.bind(n),n}return(0,a.__extends)(t,e),t.prototype.componentWillUnmount=function(){this.toDispose.forEach((function(e){return e()}))},t.prototype.doAction=function(e,t){var n=null===e||void 0===e?void 0:e.actionType,a=this.props,r=a.onChange,o=a.resetValue;"clear"===n?r(""):"reset"===n?r(null!==o&&void 0!==o?o:""):"focus"===n&&this.focus()},t.prototype.focus=function(){var e,t;this.editor.focus(),this.setState({focused:!0});var n=null===(e=this.editor)||void 0===e?void 0:e.getPosition();null===(t=this.editor)||void 0===t||t.setPosition(n)},t.prototype.handleFocus=function(){this.setState({focused:!0})},t.prototype.handleBlur=function(){this.setState({focused:!1})},t.prototype.handleEditorMounted=function(e,t){var n=this;if(this.editor=e,this.toDispose.push(e.onDidChangeModelDecorations((function(){n.updateContainerSize(e,t),requestAnimationFrame(n.updateContainerSize.bind(n,e,t))})).dispose),this.props.editorDidMount){var a=this.props.editorDidMount;"string"===typeof a&&(a=new Function("editor","monaco"));var r=a(e,t);"function"===typeof r&&this.toDispose.push(r)}},t.prototype.updateContainerSize=function(e,t){var n;if(this.divRef.current){var a=e.getOption(t.editor.EditorOption.lineHeight),r=(null===(n=e.getModel())||void 0===n?void 0:n.getLineCount())||1,o=e.getTopForLineNumber(r+1)+a;this.prevHeight!==o&&(this.prevHeight=o,this.divRef.current.style.height="".concat(o,"px"),e.layout())}},t.prototype.render=function(){var e,t=this.props,n=t.className,o=t.classPrefix,s=t.classnames,d=t.value,c=t.onChange,p=t.disabled,f=t.options,m=t.editorTheme,h=t.size,v=t.data,g=t.allowFullscreen,y=this.props.language,b=d;return b&&"string"!==typeof b&&(b=JSON.stringify(b,null,2)),(0,u.isPureVariable)(y)&&(y=(0,u.resolveVariableAndFilter)(y,v)),r.default.createElement("div",{ref:this.divRef,className:s("EditorControl",(e={"is-focused":this.state.focused},e["EditorControl--".concat(h)]=h,e),n)},r.default.createElement(i.default,{classPrefix:o,component:l.default,allowFullscreen:g,value:b,onChange:c,disabled:p,onFocus:this.handleFocus,onBlur:this.handleBlur,language:y,editorTheme:m,editorDidMount:this.handleEditorMounted,options:(0,a.__assign)((0,a.__assign)({},f),{readOnly:p})}))},t.defaultProps={language:"javascript",editorTheme:"vs",allowFullscreen:!0,options:{automaticLayout:!0,selectOnLineNumbers:!0,scrollBeyondLastLine:!1,folding:!0,minimap:{enabled:!1}}},(0,a.__decorate)([(0,d.bindRendererEvent)("focus"),(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleFocus",null),(0,a.__decorate)([(0,d.bindRendererEvent)("blur"),(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleBlur",null),(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"updateContainerSize",null),t}(r.default.Component);t.default=c,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","shell","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(0,a.__extends)(n,t),n.lang=e,n.displayName="".concat(e[0].toUpperCase()).concat(e.substring(1),"EditorControlRenderer"),n.defaultProps=(0,a.__assign)((0,a.__assign)({},c.defaultProps),{language:e}),n=(0,a.__decorate)([(0,o.FormItem)({type:"".concat(e,"-editor"),sizeMutable:!1})],n),n}(c);return t}));(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(0,a.__extends)(t,e),t.defaultProps=(0,a.__assign)((0,a.__assign)({},c.defaultProps),{language:"javascript"}),t=(0,a.__decorate)([(0,o.FormItem)({type:"js-editor",sizeMutable:!1})],t)})(c),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(0,a.__extends)(t,e),t.defaultProps=(0,a.__assign)((0,a.__assign)({},c.defaultProps),{language:"typescript"}),t=(0,a.__decorate)([(0,o.FormItem)({type:"ts-editor",sizeMutable:!1})],t)}(c);var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.defaultProps=(0,a.__assign)((0,a.__assign)({},c.defaultProps),{language:"javascript"}),t=(0,a.__decorate)([(0,o.FormItem)({type:"editor",sizeMutable:!1})],t),t}(c);t.EditorControlRenderer=p},"76a1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationRenderer=t.Navigation=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("8bc8"),i=(0,a.__importDefault)(n("f33d")),l=n("f83d"),s=(0,a.__importDefault)(n("746f")),u=n("a97c"),d=n("d369"),c=n("721d"),p=n("7f82"),f=n("d77e"),m=n("c264"),h=n("4864"),v=n("1930"),g=(0,a.__importDefault)(n("c6e8")),y=(0,a.__importDefault)(n("ba2b")),b=n("2b46"),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startPoint={y:0,x:0},t.state={},t}var n,l,s,u;return(0,a.__extends)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.env,a=t.onSelect;e&&e.to&&(null===n||void 0===n||n.tracker({eventType:"link",eventData:{label:e.label,link:e.to}})),null===a||void 0===a||a(e)},t.prototype.toggleLink=function(e,t){var n,a;null===(a=(n=this.props).onToggle)||void 0===a||a.call(n,e,t)},t.prototype.getDropInfo=function(e,t,n){var a,r,o,i=this.props,l=i.dragOnSameLevel,s=i.indentSize,u=e.target.getBoundingClientRect(),d=null===(a=this.dragNode)||void 0===a?void 0:a.link,c=u.top,p=u.height,f=u.width,m=e.clientY,h=e.clientX,v=n*(null!==(r=parseInt(s,10))&&void 0!==r?r:24),g=v+.2*f;return o=m>=c+p/2?"bottom":"top",!l&&"bottom"===o&&h>=this.startPoint.x+g&&(o="self"),{nodeId:t,dragLink:d,position:o,rect:u,height:p,left:v}},t.prototype.updateDropIndicator=function(e){var t,n,a=this.props.dragOnSameLevel,r=e.target,i=r.getAttribute("data-id"),l=Number(r.getAttribute("data-depth"));if(a&&(null===(t=this.dragNode)||void 0===t?void 0:t.node.parentElement)!==(null===(n=r.parentElement)||void 0===n?void 0:n.parentElement))return this.setState({dropIndicator:void 0}),void(this.dropInfo=null);this.dropInfo=this.getDropInfo(e,i,l);var s=this.dropInfo,u=s.position,d=s.rect,c=s.dragLink,p=s.height,f=s.left;if(i===(null===c||void 0===c?void 0:c.__id))return this.setState({dropIndicator:void 0}),void(this.dropInfo=null);var m=(0,o.findDOMNode)(this).firstChild;"self"===u?this.setState({dropIndicator:{top:d.top-m.getBoundingClientRect().top,left:f,width:m.getBoundingClientRect().width-f,height:p,opacity:.2}}):this.setState({dropIndicator:{top:("bottom"===u?d.top+d.height:d.top)-m.getBoundingClientRect().top,left:f,width:m.getBoundingClientRect().width-f}})},t.prototype.handleDragStart=function(e){var t=this;return function(n){n.stopPropagation();var a=n.currentTarget;n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage(a,0,0),t.dragNode={node:a,link:e},t.dropInfo=null,t.startPoint={x:n.clientX,y:n.clientY},a.addEventListener("dragend",t.handleDragEnd),document.body.addEventListener("dragover",t.handleDragOver)}},t.prototype.handleDragOver=function(e){if(e.preventDefault(),e.stopPropagation(),this.dragNode){var t=e.target,n=t.getAttribute("data-id");n&&this.updateDropIndicator(e)}},t.prototype.handleDragEnd=function(e){var t,n,a;e.preventDefault(),e.stopPropagation(),this.setState({dropIndicator:void 0});var r=e.currentTarget,o=r.getAttribute("data-id"),i=null===(t=this.dropInfo)||void 0===t?void 0:t.nodeId;this.dropInfo&&i&&o!==i&&(r.removeEventListener("dragend",this.handleDragEnd),document.body.removeEventListener("dragover",this.handleDragOver),null===(a=(n=this.props).onDragUpdate)||void 0===a||a.call(n,this.dropInfo),this.dragNode=null,this.dropInfo=null)},t.prototype.renderItem=function(e,t,n){var a,o,i=this;if(void 0===n&&(n=1),!0===e.hidden||!1===e.visible)return null;var l=!!e.active,s=this.props,u=s.disabled,p=s.togglerClassName,f=s.classnames,v=s.indentSize,y=s.render,b=s.itemActions,_=s.draggable,C=(s.links,s.itemBadge),E=s.data,x=e.defer&&!e.loaded||e.children&&e.children.length;return r.default.createElement("li",{key:null!==(a=e.__id)&&void 0!==a?a:t,"data-id":e.__id,className:f("Nav-item",e.className,{"is-disabled":u||e.disabled||e.loading,"is-active":l,"is-unfolded":e.unfolded,"has-sub":x}),onDragStart:this.handleDragStart(e)},r.default.createElement(h.Badge,{classnames:f,badge:C,data:(0,d.createObject)(E,e)},r.default.createElement("a",{"data-id":e.__id,"data-depth":n,title:"string"===typeof(null===e||void 0===e?void 0:e.label)?null===e||void 0===e?void 0:e.label:void 0,onClick:this.handleClick.bind(this,e),style:{paddingLeft:n*(null!==(o=parseInt(v,10))&&void 0!==o?o:24)}},!u&&_?r.default.createElement("div",{className:f("Nav-itemDrager"),draggable:!0,onMouseDown:function(t){i.toggleLink(e,!0),t.stopPropagation()}},r.default.createElement(m.Icon,{icon:"drag-bar",className:"icon"})):null,e.loading?r.default.createElement(g.default,{size:"sm",show:!0,icon:"reload",spinnerClassName:f("Nav-spinner")}):x?r.default.createElement("span",{onClick:function(t){i.toggleLink(e),t.stopPropagation()},className:f("Nav-itemToggler",p)},r.default.createElement(m.Icon,{icon:"caret",className:"icon"})):null,(0,c.generateIcon)(f,e.icon,"Nav-itemIcon"),e.label&&("string"===typeof e.label?e.label:y("inline",e.label))),b?r.default.createElement("div",{className:f("Nav-item-atcions")},y("inline",b,{data:(0,d.createObject)(E,e)})):null,Array.isArray(e.children)&&e.children.length?r.default.createElement("ul",{className:f("Nav-subItems")},e.children.map((function(e,t){return i.renderItem(e,t,n+1)}))):null))},t.prototype.renderOverflowNavs=function(e){var t=this,n=this.props,a=n.render,o=n.classnames,l=n.className,s=n.loading,u=n.links,p=void 0===u?[]:u,f=e.overflowClassName,h=e.overflowPopoverClassName,v=e.overflowListClassName,b=e.overflowLabel,_=e.overflowIndicator,C=e.itemWidth,E=void 0===C?160:C,x=e.overflowSuffix,w=e.popOverContainer,S=e.style,O=e.maxVisibleCount,k=e.wrapperComponent,D=void 0===k?"ul":k;return r.default.createElement(r.default.Fragment,null,r.default.createElement(g.default,{show:!!s,overlay:!0,icon:"reload"}),r.default.createElement(i.default,{className:o("Nav-list--tabs",l),prefixCls:o("Nav-list"),itemWidth:E,style:S,component:D,data:p,suffix:x?a("nav-overflow-suffix",x):null,renderRawItem:function(e,n){return t.renderItem(e,n)},renderRawRest:function(e){return r.default.createElement(y.default,{popOverContainer:w,popOverClassName:o("Nav-item-overflow-popover",h),popOverRender:function(n){var a=n.onClose;return r.default.createElement("div",{className:o("Nav-list","Nav-list--stacked","Nav-list-overflow",v)},e.map((function(e,n){return r.default.cloneElement(t.renderItem(e,n),{onClick:a})})))}},(function(e){var t=e.onClick,n=e.ref,i=e.isOpened;return r.default.createElement("li",{ref:n,className:o("Nav-item","Nav-item-overflow",{"is-overflow-opened":i},f),onClick:t},r.default.createElement("a",{"data-id":(0,d.guid)(),"data-depth":1},(0,m.getIcon)(_)?r.default.createElement(m.Icon,{icon:_,className:"icon"}):(0,c.generateIcon)(o,_,"Nav-itemIcon"),b&&d.isObject?a("nav-overflow-label",b):b))}))},maxCount:O&&Number.isInteger(O)?O:"responsive"}))},t.prototype.render=function(){var e=this,t=this.props,n=t.className,o=t.stacked,i=t.classnames,l=t.links,s=t.loading,u=t.overflow,c=this.state.dropIndicator;return r.default.createElement("div",{className:i("Nav")},u&&(0,d.isObject)(u)&&u.enable?this.renderOverflowNavs((0,a.__assign)({overflowIndicator:"fa fa-ellipsis",wrapperComponent:"ul",itemWidth:160},u)):r.default.createElement(r.default.Fragment,null,r.default.createElement("ul",{className:i("Nav-list",n,o?"Nav-list--stacked":"Nav-list--tabs")},Array.isArray(l)?l.map((function(t,n){return e.renderItem(t,n)})):null,r.default.createElement(g.default,{show:!!s,overlay:!0,icon:"reload"})),c?r.default.createElement("div",{className:i("Nav-dropIndicator"),style:c}):null))},t.defaultProps={indentSize:24},(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Boolean]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"toggleLink",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof DragEvent&&DragEvent)?n:Object,String,Number]),(0,a.__metadata)("design:returntype",Object)],t.prototype,"getDropInfo",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(l="undefined"!==typeof DragEvent&&DragEvent)?l:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"updateDropIndicator",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragStart",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(s="undefined"!==typeof DragEvent&&DragEvent)?s:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragOver",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(u="undefined"!==typeof DragEvent&&DragEvent)?u:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragEnd",null),t}(r.default.Component);t.Navigation=_;var C=(0,f.themeable)(_),E=(0,v.withRemoteConfig)({adaptor:function(e,t){var n=Array.isArray(e)?e:e.links||e.options||e.items||e.rows;if(!Array.isArray(n))throw new Error("payload.data.options is not array.");return n},afterLoad:function(e,t,n){if(e.value&&!(0,d.someTree)(t,(function(e){return e.active}))){var a=n.env;a.jumpTo((0,u.filter)(e.value,n.data))}},normalizeConfig:function(e,t,n,r){if(Array.isArray(e)&&"toggle"!==r){var o=n.data,i=n.env,l=n.unfoldedField,c=n.foldedField;e=(0,d.mapTree)(e,(function(e){var t,n=(0,a.__assign)((0,a.__assign)((0,a.__assign)({},e),(0,s.default)(e,o)),{active:"location-change"!==r&&e.active||(e.activeOn?(0,u.evalExpression)(e.activeOn,o):!!(e.hasOwnProperty("to")&&i&&i.isCurrentUrl((0,u.filter)(e.to,o)))),__id:null!==(t=e.__id)&&void 0!==t?t:(0,d.guid)()});return n.unfolded=(0,d.isUnfolded)(n,{unfoldedField:l,foldedField:c})||e.children&&e.children.some((function(e){return!!e.active})),n}),1,!0)}return e},beforeDeferLoad:function(e,t,n){return(0,d.spliceTree)(n,t,1,(0,a.__assign)((0,a.__assign)({},e),{loading:!0}))},afterDeferLoad:function(e,t,n,r){var o=(0,a.__assign)((0,a.__assign)({},e),{loading:!1,loaded:!0,error:n.ok?void 0:n.msg}),i=Array.isArray(n.data)?n.data:n.data.links||n.data.options||n.data.items||n.data.rows;return Array.isArray(i)&&(o.children=i.concat(),o.unfolded=!0),(0,d.spliceTree)(r,t,1,o)}})(function(e){function t(t){var n=e.call(this,t)||this;return n.toggleLink=n.toggleLink.bind(n),n.handleSelect=n.handleSelect.bind(n),n.dragUpdate=n.dragUpdate.bind(n),n}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){Array.isArray(this.props.links)&&this.props.updateConfig(this.props.links,"mount")},t.prototype.componentDidUpdate=function(e){this.props.location!==e.location?this.props.updateConfig(this.props.config,"location-change"):this.props.links!==e.links&&this.props.updateConfig(this.props.links,"update")},t.prototype.toggleLink=function(e,t){var n=this.props,r=n.config,o=n.updateConfig,i=n.deferLoad;e.defer&&!e.loaded?i(e):o((0,d.mapTree)(r,(function(n){return e===n?(0,a.__assign)((0,a.__assign)({},n),{unfolded:!t&&!n.unfolded}):n})),"toggle")},t.prototype.dragUpdate=function(e){var t,n;return(0,a.__awaiter)(this,void 0,void 0,(function(){var r,o,i,l,s,u;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return r=this.props.config,o=e.nodeId,i=e.dragLink,l=e.position,i&&(s=(0,d.findTreeIndex)(r,(function(e){return e.__id===i.__id})),r=(0,d.spliceTree)(r,s,1),"self"===l?(0,d.mapTree)(r,(function(e){return e.__id===o&&(e.children||(e.children=[]),e.children.push(i)),e})):(u=(0,d.findTreeIndex)(r,(function(e){return e.__id===o})),"bottom"===l&&u.push(u.pop()+1),r=(0,d.spliceTree)(r,u,0,i))),this.props.updateConfig(r,"update"),null===(n=(t=this.props).onOrderChange)||void 0===n||n.call(t,r),[4,this.saveOrder((0,d.mapTree)(r,(function(e){for(var t in e)/^__.*$/.test(t)&&delete e[t];return e})))];case 1:return a.sent(),[2]}}))}))},t.prototype.saveOrder=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,i;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.saveOrderApi,r=t.env,o=t.data,i=t.reload,n&&(0,p.isEffectiveApi)(n)?[4,r.fetcher(n,(0,d.createObject)(o,{data:e}),{method:"post"})]:[3,2];case 1:return a.sent(),i(),[3,3];case 2:this.props.onOrderChange||r.alert("NAV saveOrderApi is required!"),a.label=3;case 3:return[2]}}))}))},t.prototype.handleSelect=function(e){var t=this.props,n=t.onSelect,a=t.env,r=t.data;n&&!1===n(e)||(e.to||!(e.children&&e.children.length||e.defer&&!e.loaded)?null===a||void 0===a||a.jumpTo((0,u.filter)(e.to,r),e):this.toggleLink(e))},t.prototype.render=function(){var e=this.props,t=e.loading,n=e.config,o=(e.deferLoad,e.updateConfig,(0,a.__rest)(e,["loading","config","deferLoad","updateConfig"]));return r.default.createElement(C,(0,a.__assign)({},o,{loading:t,links:n||[],disabled:t,onSelect:this.handleSelect,onToggle:this.toggleLink,onDragUpdate:this.dragUpdate}))},t}(r.default.Component));t.default=C;var x=function(e){function t(t,n){var a=e.call(this,t)||this;a.remoteRef=void 0;var r=n;return r.registerComponent(a),a}var n,o;return(0,a.__extends)(t,e),t.prototype.remoteConfigRef=function(e){this.remoteRef=e},t.prototype.componentWillUnmount=function(){var e=this.context;e.unRegisterComponent(this)},t.prototype.reload=function(e,t,n){var a;if(t)return this.receive(t);var r=this.props,o=r.data,i=(r.env,r.source,r.translate,n?(0,d.createObject)(o,n):o);null===(a=this.remoteRef)||void 0===a||a.loadConfig(i)},t.prototype.receive=function(e){this.reload(void 0,void 0,e)},t.prototype.render=function(){var e=(0,a.__rest)(this.props,[]);return r.default.createElement(E,(0,a.__assign)({},e,{reload:this.reload,remoteConfigRef:this.remoteConfigRef}))},t.contextType=b.ScopedContext,(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"remoteConfigRef",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String,Object,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"reload",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"receive",null),t=(0,a.__decorate)([(0,l.Renderer)({test:/(^|\/)(?:nav|navigation)$/,name:"nav"}),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof l.RendererProps&&l.RendererProps)?n:Object,"function"===typeof(o="undefined"!==typeof b.IScopedContext&&b.IScopedContext)?o:Object])],t),t}(r.default.Component);t.NavigationRenderer=x},"76e6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonthRangeControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("2ab5"),i=(0,a.__importDefault)(n("4d26")),l=n("7e49"),s=(0,a.__importDefault)(n("3a3e")),u=(0,a.__importDefault)(n("a64a")),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,o=e.minDate,s=e.maxDate,d=e.minDuration,c=e.maxDuration,p=e.data,f=e.format,m=(e.env,(0,a.__rest)(e,["className","classPrefix","minDate","maxDate","minDuration","maxDuration","data","format","env"]));return r.default.createElement("div",{className:(0,i.default)("".concat(n,"DateRangeControl"),t)},r.default.createElement(u.default,(0,a.__assign)({viewMode:"months",format:f,classPrefix:n,data:p},m,{minDate:o?(0,l.filterDate)(o,p,f):void 0,maxDate:s?(0,l.filterDate)(s,p,f):void 0,minDuration:d?(0,l.parseDuration)(d):void 0,maxDuration:c?(0,l.parseDuration)(c):void 0,onChange:this.handleChange,onFocus:this.dispatchEvent,onBlur:this.dispatchEvent})))},t}(s.default);t.default=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.defaultProps={format:"X",inputFormat:"YYYY-MM",joinValues:!0,delimiter:",",timeFormat:"",ranges:"thismonth,prevmonth"},t=(0,a.__decorate)([(0,o.FormItem)({type:"input-month-range"})],t),t}(d);t.MonthRangeControlRenderer=c},"76fc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 99 176",className:"icon"},e),r.default.createElement("g",{transform:"translate(-0.132812, 0.304688)",fill:"currentColor",fillRule:"nonzero"},r.default.createElement("path",{d:"M95.6353697,79.4031346 C95.3433678,79.1111326 95.037575,78.8417152 94.7219891,78.5906854 L19.819373,3.29993262 C15.6492004,-0.870040234 8.88818437,-0.870040234 4.71821172,3.29993262 C0.548238867,7.47010527 0.548238867,14.2309215 4.71821172,18.4010939 L72.9329621,87.0041811 L3.25320488,156.617783 C-0.916767969,160.787956 -0.916767969,167.548772 3.25320488,171.719144 C7.42317773,175.889117 14.1841937,175.889117 18.3543662,171.719144 L94.7211895,95.4180764 C95.0369754,95.1668467 95.342968,94.8976293 95.6351697,94.6054273 C97.7329475,92.5076496 98.7744412,89.7539166 98.7615739,87.0043809 C98.7746414,84.2544453 97.7331475,81.5009123 95.6353697,79.4031346 Z",id:"\\u8DEF\\u5F84"})))};t.default=o},"782a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=n("ab5b"),o=(0,a.__importDefault)(n("9520")),i=function(e){void 0===e&&(e={});var t=(0,r.useState)(e),n=t[0],i=t[1],l=(0,r.useCallback)((function(e){i((function(t){return(0,a.__assign)((0,a.__assign)({},t),(0,o.default)(e)?e(t):e)}))}),[]);return[n,l]};t.default=i},"795b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("2ab5"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){return null},t}(r.default.Component);t.default=i;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.FormItem)({type:"hidden",wrap:!1,sizeMutable:!1})],t),t}(i);t.HiddenControlRenderer=l},"799c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Expression=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("e050")),i=n("d369"),l=(0,a.__importDefault)(n("6604")),s=(0,a.__importDefault)(n("520b")),u=(0,a.__importDefault)(n("c845")),d=n("d77e"),c=(0,a.__importDefault)(n("1dd2")),p=n("32e1"),f={value:"值",field:"字段",func:"函数",formula:"公式"},m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.handleInputTypeChange=function(e){var t,n=this.props.value,a=this.props.onChange;"value"===e?n="":"func"===e?n={type:"func",func:null===(t=(0,i.findTree)(this.props.funcs,(function(e){return e.type})))||void 0===t?void 0:t.type,args:[]}:"field"===e?n={type:"field",field:""}:"formula"===e&&(n={type:"formula",value:""}),a(n,this.props.index)},t.prototype.handleValueChange=function(e){this.props.onChange(e,this.props.index)},t.prototype.handleFieldChange=function(e){var t=this.props.value,n=this.props.onChange;t={type:"field",field:e},n(t,this.props.index)},t.prototype.handleFuncChange=function(e){var t=this.props.value,n=this.props.onChange;t=(0,a.__assign)((0,a.__assign)({},e),{type:"func"}),n(t,this.props.index)},t.prototype.handleFormulaChange=function(e){var t=this.props.value,n=this.props.onChange;t={type:"formula",value:e},n(t,this.props.index)},t.prototype.render=function(){var e,t,n,a,d,p=this.props,m=p.value,h=p.valueField,v=p.allowedTypes,g=p.funcs,y=p.fields,b=p.op,_=(p.classnames,p.fieldClassName),C=p.config,E=p.data,x=p.disabled,w=p.searchable,S=p.formula,O=p.popOverContainer,k=p.renderEtrValue,D=("field"===(null===(e=m)||void 0===e?void 0:e.type)?"field":"func"===(null===(t=m)||void 0===t?void 0:t.type)?"func":"formula"===(null===(n=m)||void 0===n?void 0:n.type)?"formula":void 0!==m?"value":void 0)||(null===v||void 0===v?void 0:v[0])||"value",N=v||["value","field","func"];return Array.isArray(g)&&g.length||!~N.indexOf("func")||N.splice(N.indexOf("func"),1),r.default.createElement(r.default.Fragment,null,"value"===D?r.default.createElement(l.default,{field:h,value:m,onChange:this.handleValueChange,op:b,data:E,disabled:x,formula:S,popOverContainer:O,renderEtrValue:k}):null,"field"===D?r.default.createElement(o.default,{value:null===(a=m)||void 0===a?void 0:a.field,onChange:this.handleFieldChange,fieldClassName:_,disabled:x,searchable:w,popOverContainer:O,options:h?(0,i.filterTree)(y,(function(e){return e.children||e.type===h.type})):y}):null,"func"===D?r.default.createElement(u.default,{config:C,value:m,onChange:this.handleFuncChange,fieldClassName:_,funcs:g,fields:y,allowedTypes:v,disabled:x}):null,"formula"===D?r.default.createElement(c.default,{value:null===(d=m)||void 0===d?void 0:d.value,onChange:this.handleFormulaChange,disabled:x}):null,N.length>1?r.default.createElement(s.default,{disabled:x,value:D,popOverContainer:O,onChange:this.handleInputTypeChange,options:N.map((function(e){return{label:f[e],value:e}}))}):null)},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleInputTypeChange",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleValueChange",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleFieldChange",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleFuncChange",null),(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleFormulaChange",null),t}(r.default.Component);t.Expression=m,t.default=(0,d.themeable)((0,p.localeable)(m))},"79ae":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectWithRemoteOptions=t.Select=t.normalizeOptions=t.optionValueCompare=t.matchOptionValue=t.expandValue=t.value2array=t.Options=t.Option=void 0;var a=n("9ab4"),r=n("cbc0"),o=(0,a.__importDefault)(n("ab5b")),i=(0,a.__importDefault)(n("e990")),l=(0,a.__importDefault)(n("35b7")),s=(0,a.__importDefault)(n("dbb0")),u=(0,a.__importDefault)(n("d3f2")),d=(0,a.__importDefault)(n("33ce")),c=n("c264"),p=n("8a53"),f=n("d369"),m=(0,a.__importDefault)(n("60ed")),h=n("d55b"),v=n("8bc8"),g=n("d77e"),y=(0,a.__importDefault)(n("3473")),b=(0,a.__importDefault)(n("5b6b")),_=n("32e1"),C=(0,a.__importDefault)(n("c6e8")),E=n("1a93");Object.defineProperty(t,"Option",{enumerable:!0,get:function(){return E.Option}}),Object.defineProperty(t,"Options",{enumerable:!0,get:function(){return E.Options}});var x=n("1930"),w=(0,a.__importDefault)(n("1f88"));function S(e,t,n){if(void 0===n&&(n=!1),n&&(e=(0,f.normalizeNodePath)(e,n,t.labelField,t.valueField,t.pathSeparator,t.delimiter).nodeValueArray),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 O(e,t.options,t.valueField)||((0,f.isObject)(e)&&e.hasOwnProperty(t.valueField||"value")?e:void 0)})).filter((function(e){return e}))}Array.isArray(e)&&(e=e[0]);var a=O(e,t.options,t.valueField);return a?[a]:(0,f.isObject)(e)&&e.hasOwnProperty(t.valueField||"value")?[e]:[]}function O(e,t,n){var a;void 0===n&&(n="value");var r=typeof e;return"string"!==r&&"number"!==r&&"boolean"!==r&&"object"!==r?e:t?("object"===r&&e&&e.hasOwnProperty(n||"value")&&(e=null!==(a=e[n||"value"])&&void 0!==a?a:""),(0,f.findTree)(t,D(e,n||"value"))):null}function k(e,t,n){return void 0===n&&(n="value"),(0,f.isObject)(e)?e===t[n||"value"]:String(t[n||"value"])===String(e)}function D(e,t){return void 0===t&&(t="value"),function(n){return k(e,n,t)}}function N(e,t,n){return void 0===t&&(t={values:[],options:[]}),void 0===n&&(n="value"),"string"===typeof e?e.split(",").map((function(e){var n=t.values.indexOf(e);if(~n)return t.options[n];var a={label:e,value:e};return t.values.push(a.value),t.options.push(a),a})):Array.isArray(e)&&"string"===typeof e[0]?e.map((function(e){var n=t.values.indexOf(e);if(~n)return t.options[n];var a={label:e,value:e};return t.values.push(a.value),t.options.push(a),a})):Array.isArray(e)?e.map((function(e){var r=e&&e[n],o=void 0===r||e.children?-1:t.values.indexOf(r);if(~o)return t.options[o];var i=(0,a.__assign)((0,a.__assign)({},e),{value:r});return"undefined"!==typeof i.children?i.children=N(i.children,t,n):void 0!==r&&(t.values.push(r),t.options.push(i)),i})):(0,m.default)(e)?Object.keys(e).map((function(n){var a=t.values.indexOf(n);if(~a)return t.options[a];var r={label:e[n],value:n};return t.values.push(r.value),t.options.push(r),r})):[]}t.value2array=S,t.expandValue=O,t.matchOptionValue=k,t.optionValueCompare=D,t.normalizeOptions=N;var T=d.default.stateChangeTypes,P=function(e){function t(t){var n=e.call(this,t)||this;return n.menu=o.default.createRef(),n.state={isOpen:t.defaultOpen||!1,isFocused:!1,inputValue:"",highlightedIndex:-1,selection:S(t.value,t),itemHeight:35,pickerSelectItem:""},n}var n,r,m,g,_,E,x;return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props.loadOptions;e&&e("")},t.prototype.componentDidUpdate=function(e){var t=this.props,n=f.noop;if(JSON.stringify(t.value)!==JSON.stringify(e.value)||JSON.stringify(t.options)!==JSON.stringify(e.options)){var a=S(t.value,t);this.setState({selection:a},n)}},t.prototype.open=function(){var e=this;this.props.disabled||this.setState({isOpen:!0,highlightedIndex:-1},(function(){return setTimeout(e.focus,500)}))},t.prototype.close=function(){this.setState({isOpen:!1})},t.prototype.confirm=function(){this.handleChange(this.state.pickerSelectItem),this.setState({isOpen:!1})},t.prototype.toggle=function(e){var t=this;e&&this.menu.current&&this.menu.current.contains(e.target)||this.props.disabled||this.setState({isOpen:!this.state.isOpen,highlightedIndex:-1},this.state.isOpen?void 0:function(){return setTimeout(t.focus,500)})},t.prototype.onFocus=function(e){var t=this.props.simpleValue,n=this.state.selection,r=t?n.map((function(e){return e.value})):n;this.props.disabled||this.state.isOpen||this.setState({isFocused:!0},this.focus),this.props.onFocus&&this.props.onFocus((0,a.__assign)((0,a.__assign)({},e),{value:r}))},t.prototype.onBlur=function(e){var t=this.props.simpleValue,n=this.state.selection,r=t?n.map((function(e){return e.value})):n;this.setState({isFocused:!1}),this.props.onBlur&&this.props.onBlur((0,a.__assign)((0,a.__assign)({},e),{value:r}))},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=(0,v.findDOMNode)(this)),this.target},t.prototype.inputRef=function(e){this.input=e},t.prototype.toggleCheckAll=function(){var e=this.props,t=e.options,n=e.onChange,a=e.simpleValue,r=e.checkAllBySearch,o=e.labelField,i=e.valueField,l=this.state.inputValue,s=this.state.selection,u=l&&r?(0,p.matchSorter)(t,l,{keys:[o||"label",i||"value"]}):t.concat(),d=u.map((function(e){return e.value})),c=s.map((function(e){return e.value})),f=d.every((function(e){return c.indexOf(e)>-1}));s=f?[]:u,n(a?s.map((function(e){return e.value})):s)},t.prototype.removeItem=function(e,t){var n=this.props,a=n.onChange,r=n.simpleValue,o=n.disabled;if(!o){var i=this.state.selection;t&&t.stopPropagation(),i=Array.isArray(i)?i.concat():[i],i.splice(e,1),a(r?i.map((function(e){return e.value})):i)}},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.handlePickerChange=function(e,t,n){this.props.multiple||(e=e[0]),this.setState({pickerSelectItem:e}),n&&this.handleChange(e)},t.prototype.handleChange=function(e){var t=this.props,n=t.onChange,a=t.multiple,r=t.simpleValue,o=t.valueField,i=this.state.selection;if(a){var l=i.map((function(e){return e[o]}));i=i.concat();var s=l.indexOf(e[o]);~s?i.splice(s,1):i.push(e),n(r?i.map((function(e){return e[o]})):i)}else n(r?e[o]:e)},t.prototype.handleStateChange=function(e){var t=this.props,n=t.multiple,r=t.checkAll,o={};switch(e.type){case T.keyDownEnter:case T.clickItem:o=(0,a.__assign)((0,a.__assign)({},o),{isOpen:!!n,isFocused:!(!n||!r)});break;case T.controlledPropUpdatedSelectedItem:break;case T.changeInput:o.highlightedIndex=0;break;case T.keyDownArrowDown:case T.keyDownArrowUp:case T.itemMouseEnter:o=(0,a.__assign)((0,a.__assign)({},o),e);break}Object.keys(o).length&&this.setState(o)},t.prototype.handleKeyPress=function(e){this.props.multiple&&" "===e.key&&(this.toggle(),e.preventDefault())},t.prototype.clearValue=function(e){var t=this.props.onChange;e.preventDefault(),e.stopPropagation(),t(this.props.resetValue)},t.prototype.clearSearchValue=function(){var e=this.props.loadOptions;this.setState({inputValue:""},(function(){return null===e||void 0===e?void 0:e("")}))},t.prototype.handleAddClick=function(){var e=this.props.onAdd;e&&e()},t.prototype.handleEditClick=function(e,t){var n=this.props.onEdit;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.handleDeleteClick=function(e,t){var n=this.props.onDelete;e.preventDefault(),e.stopPropagation(),n&&n(t)},t.prototype.menuItemRef=function(e){e&&this.setState({itemHeight:e.offsetHeight})},t.prototype.renderValue=function(e){var t=this,n=(e.inputValue,e.isOpen,this.props),a=n.classnames,r=n.multiple,i=n.valuesNoWrap,l=n.placeholder,s=n.labelField,d=n.disabled,p=n.translate,f=this.state.selection;return f.length?f.map((function(e,n){return r?i?"".concat(e[s||"label"]).concat(n===f.length-1?"":" + "):o.default.createElement(u.default,{placement:"top",tooltip:e[s||"label"],trigger:"hover",key:n},o.default.createElement("div",{className:a("Select-value",{"is-disabled":d,"is-invalid":e.__unmatched})},o.default.createElement("span",{className:a("Select-valueLabel")},e[s||"label"]),o.default.createElement("span",{className:a("Select-valueIcon",{"is-disabled":d||e.disabled}),onClick:t.removeItem.bind(t,n)},o.default.createElement(c.Icon,{icon:"close",className:"icon"})))):o.default.createElement("div",{className:a("Select-value",{"is-disabled":d,"is-invalid":e.__unmatched}),key:n},e[s||"label"])})):o.default.createElement("div",{key:"placeholder",className:a("Select-placeholder")},p(l))},t.prototype.renderOuter=function(e){var t=this,n=e.selectedItem,r=e.getItemProps,u=e.highlightedIndex,d=e.inputValue,m=e.isOpen,v=(e.getToggleButtonProps,e.getInputProps),g=this.props,_=g.popOverContainer,C=g.options,E=(g.value,g.valueField),x=g.labelField,S=g.noResultsText,O=g.loadOptions,k=g.creatable,D=g.multiple,N=g.valuesNoWrap,T=g.classnames,P=(g.popoverClassName,g.checkAll),A=g.checkAllLabel,I=g.checkAllBySearch,R=g.searchable,F=g.createBtnLabel,M=g.disabled,j=g.searchPromptText,L=g.editable,B=g.removable,V=g.overlayPlacement,z=g.translate,U=g.hideSelected,H=g.renderMenu,W=(g.mobileClassName,g.useMobileUI),$=void 0!==W&&W,q=this.state.selection,K=!1,Y=!1,G=(d&&m&&!O?(0,p.matchSorter)(C,d,{keys:[x||"label",E||"value"]}):C.concat()).filter((function(e){return!e.hidden&&!1!==e.visible})),J=q.map((function(e){return e[E]}));if(D&&P){var Q=(I?G:C).map((function(e){return e[E]}));K=Q.every((function(e){return J.indexOf(e)>-1})),Y=Q.some((function(e){return J.indexOf(e)>-1}))}var Z=this.state.itemHeight,X=function(e){var i=e.index,l=e.style,s=G[i];if(!s)return null;var p=n===s||!!~J.indexOf(s[E]);return U&&p?null:o.default.createElement("div",(0,a.__assign)({},r({key:"string"===typeof s.value?"".concat(s.label,"-").concat(s.value):i,index:i,item:s,disabled:s.disabled}),{style:l,className:T("Select-option",{"is-disabled":s.disabled,"is-highlight":u===i,"is-active":p})}),B?o.default.createElement("a",{"data-tooltip":z("Select.clear"),"data-position":"left"},o.default.createElement(c.Icon,{icon:"close",className:"icon",onClick:function(e){return t.handleDeleteClick(e,s)}})):null,L?o.default.createElement("a",{"data-tooltip":"编辑","data-position":"left"},o.default.createElement(c.Icon,{icon:"pencil",className:"icon",onClick:function(e){return t.handleEditClick(e,s)}})):null,H?D?o.default.createElement(y.default,{checked:p,trueValue:s.value,onChange:function(){t.handleChange(s)},disabled:s.disabled},H(s,{multiple:D,checkAll:P,checked:p,onChange:function(){return t.handleChange(s)},inputValue:d||"",searchable:R,index:i})):H(s,{multiple:D,checkAll:P,checked:p,onChange:function(){return t.handleChange(s)},inputValue:d||"",searchable:R,index:i}):D?o.default.createElement(y.default,{checked:p,trueValue:s.value,onChange:function(){t.handleChange(s)},disabled:s.disabled,size:"sm"},s.disabled?s[x]:(0,h.highlight)(s[x],d,T("Select-option-hl")),s.tip):o.default.createElement("span",null,s.disabled?s[x]:(0,h.highlight)(s[x],d,T("Select-option-hl")),s.tip))},ee=(0,f.isMobile)()&&$,te=o.default.createElement("div",{ref:this.menu,className:T("Select-menu",{"Select--longlist":G.length&&G.length>100,"is-mobile":ee})},R?o.default.createElement("div",{className:T("Select-input",{"is-focused":this.state.isFocused})},o.default.createElement(c.Icon,{icon:"search",className:"icon"}),o.default.createElement(b.default,(0,a.__assign)({},v({onFocus:this.onFocus,onBlur:this.onBlur,disabled:M,placeholder:z(j),onChange:this.handleInputChange,ref:this.inputRef}))),(null===d||void 0===d?void 0:d.length)?o.default.createElement("a",{onClick:this.clearSearchValue,className:T("Select-clear")},o.default.createElement(c.Icon,{icon:"close",className:"icon"})):null):null,D&&N?o.default.createElement("div",{className:T("Select-option")},"已选择(",J.length,")"):null,D&&P&&G.length?o.default.createElement("div",{className:T("Select-option")},o.default.createElement(y.default,{checked:Y,partial:Y&&!K,onChange:this.toggleCheckAll,size:"sm"},z(A))):null,o.default.createElement("div",{ref:this.menuItemRef,className:T("Select-option invisible")},D?o.default.createElement(y.default,{size:"sm"},"Placeholder"):o.default.createElement("span",null,"Placeholder")),k&&!M?o.default.createElement("a",{className:T("Select-addBtn"),onClick:this.handleAddClick},o.default.createElement(c.Icon,{icon:"plus",className:"icon"}),z(F)):null,G.length?G.length>100?o.default.createElement(i.default,{height:G.length>8?266:G.length*Z,itemCount:G.length,itemSize:Z,renderItem:X}):G.map((function(e,t){return X({index:t})})):o.default.createElement("div",{className:T("Select-noResult")},z(S)));return ee?o.default.createElement(w.default,{className:T("Select-popup"),container:_,isShow:this.state.isOpen,onHide:this.close},te):o.default.createElement(l.default,{container:_||this.getTarget,target:this.getTarget,placement:V,show:!0},o.default.createElement(s.default,{overlay:!0,className:T("Select-popover"),style:{minWidth:this.target?this.target.offsetWidth:"auto"},onHide:this.close},te))},t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,a=t.multiple,r=t.valuesNoWrap,i=t.searchable,l=t.inline,s=t.block,u=t.className,p=t.value,m=t.loading,h=t.clearable,v=t.labelField,g=t.disabled,y=t.checkAll,b=t.borderMode,_=t.useMobileUI,E=t.hasError,x=this.state.selection,w=this.state.inputValue,S=this.props.resetValue,O=_&&(0,f.isMobile)();return o.default.createElement(d.default,{selectedItem:x,highlightedIndex:this.state.highlightedIndex,isOpen:this.state.isOpen,inputValue:w,onChange:a||y?f.noop:this.handleChange,onStateChange:this.handleStateChange,itemToString:function(e){return e?"".concat(e[v]):""}},(function(t){var d,v=t.isOpen;return o.default.createElement("div",{tabIndex:g?-1:0,onKeyPress:e.handleKeyPress,onClick:e.toggle,onFocus:e.onFocus,onBlur:e.onBlur,className:n("Select",(d={},d["Select--multi"]=a,d["Select--inline"]=l,d["Select--block"]=s,d["Select--searchable"]=i,d["is-opened"]=v,d["is-focused"]=e.state.isFocused,d["is-disabled"]=g,d["is-mobile"]=O,d["is-error"]=E,d["Select--border".concat((0,f.ucFirst)(b))]=b,d),u)},o.default.createElement("div",{className:n("Select-valueWrap",{"Select-valuesNoWrap":r})},e.renderValue(t)),h&&!g&&(Array.isArray(p)?p.length:null!=p&&p!==S)?o.default.createElement("a",{onClick:e.clearValue,className:n("Select-clear")},o.default.createElement(c.Icon,{icon:"close-small",className:"icon"})):null,m?o.default.createElement(C.default,{show:!0,icon:"reload",size:"sm",spinnerClassName:n("Select-spinner")}):null,o.default.createElement("span",{className:n("Select-arrow")},o.default.createElement(c.Icon,{icon:"right-arrow-bold",className:"icon"})),v?e.renderOuter(t):null)}))},t.defaultProps={multiple:!1,clearable:!0,creatable:!1,createBtnLabel:"Select.createLabel",searchPromptText:"Select.searchPromptText",loadingPlaceholder:"loading",noResultsText:"noResult",clearAllText:"Select.clearAll",clearValueText:"Select.clear",placeholder:"Select.placeholder",valueField:"value",labelField:"label",resetValue:"",inline:!1,disabled:!1,checkAll:!1,checkAllLabel:"Select.checkAll",defaultCheckAll:!1,overlayPlacement:"auto"},(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"open",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"close",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"confirm",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof o.default&&o.default.MouseEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"toggle",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onFocus",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"onBlur",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"focus",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getTarget",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(r="undefined"!==typeof HTMLInputElement&&HTMLInputElement)?r:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"inputRef",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"toggleCheckAll",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(m="undefined"!==typeof o.default&&o.default.ChangeEvent)?m:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleInputChange",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Number,Boolean]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handlePickerChange",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleChange",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleStateChange",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(g="undefined"!==typeof o.default&&o.default.KeyboardEvent)?g:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleKeyPress",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(_="undefined"!==typeof o.default&&o.default.MouseEvent)?_:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"clearValue",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"clearSearchValue",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleAddClick",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(E="undefined"!==typeof Event&&Event)?E:Object,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleEditClick",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(x="undefined"!==typeof Event&&Event)?x:Object,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDeleteClick",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"menuItemRef",null),t}(o.default.Component);t.Select=P;var A=(0,g.themeable)((0,_.localeable)((0,r.uncontrollable)(P,{value:"onChange"})));t.default=A,t.SelectWithRemoteOptions=(0,x.withRemoteConfig)({adaptor:function(e){return e.options||e.items||e.rows||e},normalizeConfig:function(e,t){return e=N(e),Array.isArray(e)?e.concat():t}})(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.loading,n=e.config,r=(e.deferLoad,e.updateConfig,(0,a.__rest)(e,["loading","config","deferLoad","updateConfig"]));return o.default.createElement(A,(0,a.__assign)({},r,{options:n||r.options||[],loading:t}))},t}(o.default.Component))},"7ae2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomRenderer=t.Custom=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("8bc8")),i=(0,a.__importDefault)(n("e380")),l=(0,a.__importDefault)(n("e2a0")),s=n("f83d"),u=(0,a.__importDefault)(n("63ea")),d=(0,i.default)((function(){for(var e=[],t=0;t0&&this.childElemArr.forEach((function(e){return o.default.unmountComponentAtNode(e)}))},t.prototype.renderChild=function(e,t,n){var a=this,r=this.props.render,i=null,s=null;if((0,l.default)(n)){var u=document.getElementById(n);u&&(s=u)}else s=n;if(t&&s){var d=r(e,t);i=o.default.render(d,s,(function(){a.recordChildElem(s)}))}return i},t.prototype.render=function(){var e=this.props,t=e.className,n=e.html,a=e.id,o=e.wrapperComponent,i=e.inline,l=(e.translate,e.classnames),s=o||i?"span":"div";return r.default.createElement(s,{ref:this.dom,className:l(t),id:a,dangerouslySetInnerHTML:{__html:n||""}})},t.defaultProps={inline:!1},t}(r.default.Component);t.Custom=c;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,s.Renderer)({type:"custom"})],t),t}(c);t.CustomRenderer=p},"7af2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VBoxRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=(0,a.__importDefault)(n("4d26")),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.renderChild=function(e,t){var n=this.props.render;return n(e,t)},t.prototype.renderCell=function(e,t){var n=this.props.classPrefix;return r.default.createElement("div",{className:(0,i.default)("".concat(n,"Vbox-cell"),e.cellClassName)},this.renderChild("row/".concat(t),e))},t.prototype.render=function(){var e=this,t=this.props,n=t.className,a=t.rows,o=t.classPrefix;return r.default.createElement("div",{className:(0,i.default)("".concat(o,"Vbox"),n)},Array.isArray(a)?a.map((function(t,n){return r.default.createElement("div",{className:(0,i.default)("row-row",t.rowClassName),key:n},e.renderCell(t,n))})):null)},t.propsList=["rows"],t.defaultProps={},t}(r.default.Component);t.default=l;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"vbox"})],t),t}(l);t.VBoxRenderer=s},"7d40":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({t:1649759681558,className:"icon",viewBox:"0 0 1024 1024","p-id":1191},e),r.default.createElement("defs",null,r.default.createElement("style",{type:"text/css"},'@font-face { font-family: feedback-iconfont; src: url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff2?t=1630033759944") format("woff2"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.woff?t=1630033759944") format("woff"), url("//at.alicdn.com/t/font_1031158_u69w8yhxdu.ttf?t=1630033759944") format("truetype"); }\n')),r.default.createElement("path",{d:"M549.624242 214.626263H113.648485c-18.10101 0-32.840404-14.739394-32.840404-32.840404 0-18.10101 14.739394-32.840404 32.840404-32.840404h436.10505c18.10101 0 32.840404 14.739394 32.840404 32.840404-0.129293 18.10101-14.868687 32.840404-32.969697 32.840404z m0 0M549.624242 545.616162H113.648485c-18.10101 0-32.840404-14.739394-32.840404-32.840404 0-18.10101 14.739394-32.840404 32.840404-32.840404h436.10505c18.10101 0 32.840404 14.739394 32.840404 32.840404-0.129293 18.10101-14.868687 32.840404-32.969697 32.840404z m0 0M549.624242 876.088889H113.648485c-18.10101 0-32.840404-14.739394-32.840404-32.840404s14.739394-32.840404 32.840404-32.840404h436.10505c18.10101 0 32.840404 14.739394 32.840404 32.840404s-14.868687 32.840404-32.969697 32.840404z m0 0M932.589899 659.006061c-12.8-12.8-33.616162-12.8-46.416162 0l-104.727272 104.727272V182.044444c0-18.10101-14.739394-32.840404-32.840404-32.840404-18.10101 0-32.840404 14.739394-32.840404 32.840404v661.462627c0 18.10101 14.739394 32.840404 32.840404 32.840404 8.016162 0 15.385859-2.844444 21.074747-7.628283 0.905051-0.775758 162.779798-163.167677 162.779798-163.167677 12.929293-12.8 12.929293-33.745455 0.129293-46.545454z m0 0",fill:"","p-id":1192}))};t.default=o},"7d4c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONFieldRenderer=t.JSONField=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=a.__importStar(n("a2f3")),l=n("d369"),s=n("7e49"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return(0,a.__extends)(t,e),t.prototype.emitChange=function(e){var t=this.props,n=t.onChange,a=t.name;return!(!a||!n)&&(n(e.updated_src,a),!0)},t.prototype.shouldExpandNode=function(e){var t=e.namespace,n=this.props.levelExpand;return"number"===typeof n&&t.length>n},t.prototype.render=function(){var e,t,n=this.props,a=n.className,o=n.jsonTheme,u=n.classnames,d=n.placeholder,c=n.source,p=(n.levelExpand,n.mutable),f=n.displayDataTypes,m=n.enableClipboard,h=n.iconStyle,v=n.quotesOnKeys,g=n.sortKeys,y=n.name,b=(0,l.getPropValue)(this.props),_=b;if(void 0!==c&&(0,s.isPureVariable)(c))_=(0,s.resolveVariableAndFilter)(c,this.props.data,"| raw");else if("string"===typeof b)try{_=JSON.parse(b)}catch(E){}var C=o;return(0,s.isPureVariable)(o)&&(C=(0,s.resolveVariableAndFilter)(o,this.props.data,"| raw")),_&&~["string","number"].indexOf(typeof _)&&(e={},e[typeof _]=_,_=e),r.default.createElement("div",{className:u("JsonField",a)},"undefined"===typeof _||null===_?d:r.default.createElement(i.default,{name:!1,src:_,theme:null!==(t=C)&&void 0!==t?t:"rjv-default",shouldCollapse:this.shouldExpandNode,enableClipboard:m,displayDataTypes:f,iconStyle:h,quotesOnKeys:v,sortKeys:g,onEdit:!(!y||!p)&&this.emitChange,onDelete:!(!y||!p)&&this.emitChange,onAdd:!(!y||!p)&&this.emitChange}))},t.defaultProps={placeholder:"-",levelExpand:1,source:"",displayDataTypes:!1,enableClipboard:!1,iconStyle:"square",quotesOnKeys:!0,sortKeys:!1},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof i.InteractionProps&&i.InteractionProps)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"emitChange",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"shouldExpandNode",null),t}(r.default.Component);t.JSONField=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"json"})],t),t}(u);t.JSONFieldRenderer=d},"7d54":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssociatedSelection=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("739d"),i=n("79ae"),l=n("d369"),s=n("d77e"),u=n("cbc0"),d=(0,a.__importDefault)(n("865e")),c=(0,a.__importDefault)(n("ca59")),p=(0,a.__importDefault)(n("865e")),f=(0,a.__importDefault)(n("5054")),m=n("c264"),h=n("32e1"),v=(0,a.__importDefault)(n("faf7")),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={leftValue:t.props.leftDefaultValue},t}var n,s,u;return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.state.leftValue,t=this.props,n=t.options,a=t.onDeferLoad;if(e){var r=o.BaseSelection.resolveSelected(e,n,(function(e){return e.ref}));r&&a&&r.defer&&a(r)}},t.prototype.leftOption2Value=function(e){return e.value},t.prototype.handleLeftSelect=function(e){var t=this.props,n=t.options,a=t.onDeferLoad;this.setState({leftValue:e});var r=o.BaseSelection.resolveSelected(e,n,(function(e){return e.ref}));r&&a&&r.defer&&a(r)},t.prototype.handleLeftDeferLoad=function(e){var t=this.props,n=t.leftOptions,a=t.onLeftDeferLoad,r=t.onDeferLoad;return"function"===typeof a?null===a||void 0===a?void 0:a(e,n):"function"===typeof r?null===r||void 0===r?void 0:r(e):void 0},t.prototype.handleRetry=function(e){var t=this.props.onDeferLoad;null===t||void 0===t||t(e)},t.prototype.render=function(){var e=this.props,t=e.classnames,n=e.className,a=e.leftOptions,i=e.options,l=e.option2value,s=e.rightMode,u=e.onChange,h=e.columns,g=e.value,y=e.disabled,b=e.leftMode,_=e.cellRender,C=e.multiple,E=e.itemRender,x=o.BaseSelection.resolveSelected(this.state.leftValue,i,(function(e){return e.ref})),w=this.props.translate;return r.default.createElement("div",{className:t("AssociatedSelection",n)},r.default.createElement("div",{className:t("AssociatedSelection-left")},"tree"===b?r.default.createElement(v.default,{multiple:!1,disabled:y,value:this.state.leftValue,options:a,onChange:this.handleLeftSelect,onDeferLoad:this.handleLeftDeferLoad}):r.default.createElement(p.default,{option2value:this.leftOption2Value,options:a,value:this.state.leftValue,disabled:y,onChange:this.handleLeftSelect,multiple:!1,clearable:!1})),r.default.createElement("div",{className:t("AssociatedSelection-right")},this.state.leftValue?x?x.defer&&!x.loaded?r.default.createElement("div",{className:t("AssociatedSelection-box")},r.default.createElement("div",{className:t("AssociatedSelection-reload",x.loading?"is-spin":"is-clickable"),onClick:x.loading?void 0:this.handleRetry.bind(this,x)},r.default.createElement(m.Icon,{icon:"reload",className:"icon"})),x.loading?r.default.createElement("p",null,w("loading")):r.default.createElement("p",null,w("Transfer.refreshIcon"))):"table"===s?r.default.createElement(c.default,{columns:h,value:g,disabled:y,options:x.children||[],onChange:u,option2value:l,cellRender:_,multiple:C}):"tree"===s?r.default.createElement(v.default,{value:g,disabled:y,options:x.children||[],onChange:u,multiple:C}):"chained"===s?r.default.createElement(f.default,{value:g,disabled:y,options:x.children||[],onChange:u,option2value:l,multiple:C,itemRender:E}):r.default.createElement(d.default,{value:g,disabled:y,options:x.children||[],onChange:u,option2value:l,multiple:C,itemRender:E}):r.default.createElement("div",{className:t("AssociatedSelection-box")},w("Transfer.configError")):r.default.createElement("div",{className:t("AssociatedSelection-box")},w("Transfer.selectFromLeft"))))},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof i.Option&&i.Option)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"leftOption2Value",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(s="undefined"!==typeof i.Option&&i.Option)?s:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleLeftSelect",null),(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(u="undefined"!==typeof i.Option&&i.Option)?u:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleLeftDeferLoad",null),t}(o.BaseSelection);t.AssociatedSelection=g,t.default=(0,s.themeable)((0,h.localeable)((0,u.uncontrollable)(g,{value:"onChange"})))},"7d95":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastAction=void 0;var a=n("9ab4"),r=n("d369"),o=n("9d47"),i=n("0d19"),l=function(){function e(){}return e.prototype.run=function(e,t,n){return(0,a.__awaiter)(this,void 0,void 0,(function(){return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e.eventName?(n.setData((0,r.createObject)(n.data,e.args)),[4,(0,o.dispatchEvent)(e.eventName,t,n.context.scoped,e.args,n)]):(console.error("eventName 未定义,请定义事件名称"),[2]);case 1:return[2,a.sent()]}}))}))},e}();t.BroadcastAction=l,(0,i.registerAction)("broadcast",new l)},"7e49":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.register=t.dataMapping=t.resolveMapping=t.stripNumber=t.tokenize=t.resolveVariableAndFilter=t.isPureVariable=t.resolveVariable=t.pickValues=t.registerFilter=t.getFilters=t.parseDuration=t.relativeValueRe=t.filterDate=t.formatDuration=t.escapeHtml=t.prettyBytes=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("60ed")),o=n("d369"),i=n("c593");function l(e,t,n){return void 0===n&&(n="| raw"),"string"===typeof e&&(0,i.isPureVariable)(e)?(0,i.resolveVariableAndFilter)(e,t,n,(function(){return""})):"string"===typeof e&&~e.indexOf("$")?(0,i.tokenize)(e,t,n):e}function s(e,t,n,i){if(void 0===t&&(t={}),void 0===n&&(n=!1),Array.isArray(e))return e.map((function(e){return s(e,t,n,i)}));if("string"===typeof e)return l(e,t);if(!(0,r.default)(e))return e;var u={};return Object.keys(e).forEach((function(d){var c,p=e[d];if("function"===typeof n&&n(d,p))(0,o.setVariable)(u,d,p,i);else if("&"===d&&"$$"===p)u=(0,a.__assign)((0,a.__assign)({},u),t);else if("&"===d){var f=(0,r.default)(p)&&(c=Object.keys(p))&&1===c.length&&t[c[0].substring(1)]&&Array.isArray(t[c[0].substring(1)])?t[c[0].substring(1)].map((function(e){return s(p[c[0]],(0,o.createObject)(t,e),n,i)})):l(p,t);u=Array.isArray(f)||"string"===typeof f?f:"function"===typeof f?(0,a.__assign)((0,a.__assign)({},u),f(t)):(0,a.__assign)((0,a.__assign)({},u),f)}else if("$$"===p)(0,o.setVariable)(u,d,t,i);else if(p&&"$"===p[0]){f=l(p,t);(0,o.setVariable)(u,d,f,i),"__undefined"===f&&(0,o.deleteVariable)(u,d)}else if((0,r.default)(p)&&(c=Object.keys(p))&&1===c.length&&"$"===c[0][0]&&(0,r.default)(p[c[0]])){var m=Array.isArray(t[c[0].substring(1)])?t[c[0].substring(1)]:[],h=p[c[0]];u[d]=m.map((function(e){return s(h,(0,o.createObject)(t,e),n,i)}))}else(0,r.default)(p)?(0,o.setVariable)(u,d,s(p,t,n,i),i):Array.isArray(p)?(0,o.setVariable)(u,d,p.map((function(e){return(0,r.default)(e)?s(e,t,n,i):l(e,t)})),i):"string"==typeof p&&~p.indexOf("$")?(0,o.setVariable)(u,d,l(p,t),i):"function"===typeof p&&!0!==n?(0,o.setVariable)(u,d,p(t),i):((0,o.setVariable)(u,d,p,i),"__undefined"===p&&(0,o.deleteVariable)(u,d))})),u}function u(e){var t=0;while(1){var n=e.indexOf("$",t);if(~n){var a=e[n+1];if(!a||~['"',"'"," "].indexOf(a)){t=n+1;continue}var r=e[n-1];if(r&&"\\"===r){t=n+1;continue}return!0}break}return!1}function d(){return{name:"builtin",test:function(e){return"string"===typeof e&&u(e)},removeEscapeToken:function(e){return"string"===typeof e?e.replace(/\\\$/g,"$"):e},compile:function(e,t,n){void 0===n&&(n="| html");try{return(0,i.tokenize)(e,t,n)}catch(a){return"error: ".concat(a.message)}}}}Object.defineProperty(t,"prettyBytes",{enumerable:!0,get:function(){return i.prettyBytes}}),Object.defineProperty(t,"escapeHtml",{enumerable:!0,get:function(){return i.escapeHtml}}),Object.defineProperty(t,"formatDuration",{enumerable:!0,get:function(){return i.formatDuration}}),Object.defineProperty(t,"filterDate",{enumerable:!0,get:function(){return i.filterDate}}),Object.defineProperty(t,"relativeValueRe",{enumerable:!0,get:function(){return i.relativeValueRe}}),Object.defineProperty(t,"parseDuration",{enumerable:!0,get:function(){return i.parseDuration}}),Object.defineProperty(t,"getFilters",{enumerable:!0,get:function(){return i.getFilters}}),Object.defineProperty(t,"registerFilter",{enumerable:!0,get:function(){return i.registerFilter}}),Object.defineProperty(t,"pickValues",{enumerable:!0,get:function(){return i.pickValues}}),Object.defineProperty(t,"resolveVariable",{enumerable:!0,get:function(){return i.resolveVariable}}),Object.defineProperty(t,"isPureVariable",{enumerable:!0,get:function(){return i.isPureVariable}}),Object.defineProperty(t,"resolveVariableAndFilter",{enumerable:!0,get:function(){return i.resolveVariableAndFilter}}),Object.defineProperty(t,"tokenize",{enumerable:!0,get:function(){return i.tokenize}}),Object.defineProperty(t,"stripNumber",{enumerable:!0,get:function(){return i.stripNumber}}),t.resolveMapping=l,t.dataMapping=s,t.register=d},"7e92":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({t:1642652418667,className:"icon",viewBox:"0 0 1024 1024","p-id":3606},e),r.default.createElement("path",{d:"M512 39.384615C250.092308 39.384615 39.384615 250.092308 39.384615 512s210.707692 472.615385 472.615385 472.615385 472.615385-210.707692 472.615385-472.615385S773.907692 39.384615 512 39.384615z m96.492308 488.369231l153.6 153.6c7.876923 7.876923 7.876923 19.692308 0 27.569231l-55.138462 55.138461c-7.876923 7.876923-19.692308 7.876923-27.569231 0L525.784615 610.461538c-7.876923-7.876923-19.692308-7.876923-27.56923 0l-153.6 153.6c-7.876923 7.876923-19.692308 7.876923-27.569231 0L261.907692 708.923077c-7.876923-7.876923-7.876923-19.692308 0-27.569231l153.6-153.6c7.876923-7.876923 7.876923-19.692308 0-27.569231l-155.56923-155.56923c-7.876923-7.876923-7.876923-19.692308 0-27.569231l55.138461-55.138462c7.876923-7.876923 19.692308-7.876923 27.569231 0l155.569231 155.569231c7.876923 7.876923 19.692308 7.876923 27.56923 0l153.6-153.6c7.876923-7.876923 19.692308-7.876923 27.569231 0l55.138462 55.138462c7.876923 7.876923 7.876923 19.692308 0 27.56923l-153.6 153.6c-5.907692 7.876923-5.907692 19.692308 0 27.569231z","p-id":3607}))};t.default=o},"7f1f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 1024 1024","p-id":1463,className:"icon"},e),r.default.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}))};t.default=o},"7f30":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IconPickerControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("4d26")),i=n("8a53"),l=(0,a.__importDefault)(n("df33")),s=a.__importStar(n("33ce")),u=n("d369"),d=n("071c"),c=n("2ab5"),p=n("c264"),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={isOpen:!1,inputValue:"",isFocused:!1,vendorIndex:0},t}var n,c,f;return(0,a.__extends)(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;e.value!==t.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=d.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 d.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.props.disabled||(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,r=t.value,o=t.onChange;this.setState({isFocused:!1},(function(){a&&r&&"string"===typeof r&&o(r.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=(0,l.default)(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,n=t.onChange,a=t.disabled;a||(n(e),this.setState({isFocused:!1,inputValue:""}))},t.prototype.handleStateChange=function(e){switch(e.type){case s.default.stateChangeTypes.itemMouseEnter:case s.default.stateChangeTypes.changeInput:this.setState({isOpen:!0});break;default:var t={};"undefined"!==typeof e.isOpen&&(t.isOpen=e.isOpen),this.state.isOpen&&!1===e.isOpen&&(t.inputValue=""),this.setState(t);break}},t.prototype.handleClear=function(){var e=this,t=this.props,n=t.onChange,a=t.resetValue;null===n||void 0===n||n(a),this.setState({inputValue:a,isFocused:!0},(function(){e.focus()}))},t.prototype.renderFontIcons=function(){var e=this,t=this.props,n=t.className,o=t.inputOnly,l=t.placeholder,u=t.classnames,d=t.name,c=t.value,f=t.noDataTip,m=t.disabled,h=t.clearable,v=t.translate,g=this.formatOptions(),y=this.getVendors();return r.default.createElement(s.default,{isOpen:this.state.isOpen,inputValue:this.state.inputValue,onChange:this.handleChange,onOuterClick:this.handleBlur,onStateChange:this.handleStateChange,selectedItem:[c]},(function(t){var s=t.getInputProps,b=t.getItemProps,_=t.isOpen,C=t.inputValue,E=C&&_?(0,i.matchSorter)(g,C,{keys:["label","value"]}):g;return r.default.createElement("div",{className:u("IconPickerControl-input IconPickerControl-input--withAC",o?n:"",{"is-opened":_}),onClick:e.handleClick},r.default.createElement("div",{className:u("IconPickerControl-valueWrap")},!l||c||e.state.inputValue?null:r.default.createElement("div",{className:u("IconPickerControl-placeholder")},l),!c||C&&_?null:r.default.createElement("div",{className:u("IconPickerControl-value")},r.default.createElement("i",{className:u(c)}),c),r.default.createElement("input",(0,a.__assign)({},s({name:d,ref:e.inputRef,onFocus:e.handleFocus,onChange:e.handleInputChange,onKeyDown:e.handleKeyDown,value:e.state.inputValue}),{autoComplete:"off",disabled:m,size:10})),h&&!m&&c?r.default.createElement("a",{onClick:e.handleClear,className:u("IconPickerControl-clear")},r.default.createElement(p.Icon,{icon:"input-clear",className:"icon"})):null),_?r.default.createElement("div",{className:u("IconPickerControl-sugsPanel")},y.length>1?r.default.createElement("div",{className:u("IconPickerControl-tabs")},y.map((function(t,n){return r.default.createElement("div",{className:u("IconPickerControl-tab",{active:e.state.vendorIndex===n}),onClick:function(){return e.changeVendor(n)},key:n},t)}))):null,E.length?r.default.createElement("div",{className:u("IconPickerControl-sugs",y.length>1?"IconPickerControl-multiVendor":"IconPickerControl-singleVendor")},E.map((function(e,t){return r.default.createElement("div",(0,a.__assign)({},b({item:e.value,className:u("IconPickerControl-sugItem",{"is-active":c===e.value})}),{key:t}),r.default.createElement("i",{className:u("".concat(e.value)),title:"".concat(e.value)}))}))):r.default.createElement("div",{className:u(y.length>1?"IconPickerControl-multiVendor":"IconPickerControl-singleVendor")},v(f))):null)}))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,a=e.inputOnly,i=e.disabled,l=this.renderFontIcons();return a?l:r.default.createElement("div",{className:(0,o.default)(t,"".concat(n,"IconPickerControl"),{"is-focused":this.state.isFocused,"is-disabled":i})},l)},t.defaultProps={resetValue:"",placeholder:"",noDataTip:"placeholder.noData"},(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"changeVendor",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"formatOptions",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"getVendors",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"inputRef",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"focus",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleFocus",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleBlur",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.ChangeEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleInputChange",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(c="undefined"!==typeof r.default&&r.default.KeyboardEvent)?c:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleKeyDown",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleChange",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(f="undefined"!==typeof s.StateChangeOptions&&s.StateChangeOptions)?f:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleStateChange",null),(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClear",null),t}(r.default.PureComponent);t.default=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,c.FormItem)({type:"icon-picker"})],t),t}(f);t.IconPickerControlRenderer=m},"7f82":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeApiResponseData=t.clearApiCache=t.setApiCache=t.getApiCache=t.isSameApi=t.isEffectiveApi=t.isValidApi=t.isApiOutdated=t.jsonpFetcher=t.wrapAdaptor=t.wrapFetcher=t.responseAdaptor=t.str2AsyncFunction=t.str2function=t.buildApi=t.normalizeApi=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("3eea")),o=n("7e49"),i=n("a97c"),l=n("d369"),s=(0,a.__importDefault)(n("60ed")),u=n("2eff"),d=n("c593"),c=/(?:^|raw\:)(get|post|put|delete|patch|options|head|jsonp):/i,p=[],f=!!document.documentMode;function m(e,t){if(void 0===t&&(t="get"),"string"===typeof e){var n=c.test(e)?RegExp.$1:"";n&&(e=e.replace(n+":","")),e={method:n||t,url:e}}else e=(0,a.__assign)({},e);return e.url="string"===typeof e.url?e.url.trim():e.url,e}function h(e,t,n){void 0===n&&(n={}),e=m(e,n.method);var r=n.autoAppend,i=n.ignoreData,s=(0,a.__rest)(n,["autoAppend","ignoreData"]);if(e.config=(0,a.__assign)({},s),e.method=(e.method||n.method||"get").toLowerCase(),e.headers&&(e.headers=(0,o.dataMapping)(e.headers,t,void 0,!1)),e.requestAdaptor&&"string"===typeof e.requestAdaptor&&(e.requestAdaptor=v(e.requestAdaptor,"api")),e.adaptor&&"string"===typeof e.adaptor&&(e.adaptor=v(e.adaptor,"payload","response","api")),!t)return e;if(t instanceof FormData||t instanceof Blob||t instanceof ArrayBuffer)return e.data=t,e;var u=e.url=e.url||"",c=void 0;try{c=(0,d.parse)(e.url)}catch(E){return console.warn("api 配置语法出错:".concat(E)),e}var p=c.body.map((function(e,t){return"raw"===e.type?e.value:"__expression__".concat(t,"__")})).join(""),f=p.indexOf("?"),h=function(e,n,a){return void 0===n&&(n="url_encode"),void 0===a&&(a=void 0),e.replace(/__expression__(\d+)__/g,(function(e,r){var o;return null!==(o=(0,d.evaluate)(c.body[r],t,{defaultFilter:n}))&&void 0!==o?o:a}))};if(~f){var g=p.indexOf("#"),y=(0,l.qsparse)(p.substring(f+1,~g&&g>f?g:void 0));(0,l.JSONTraverse)(y,(function(e,n,a){var r;"string"===typeof e&&/^__expression__(\d+)__$/.test(e)?a[n]=null!==(r=(0,d.evaluate)(c.body[RegExp.$1].body,t))&&void 0!==r?r:"":"string"===typeof e&&(a[n]=h(a[n],"raw",""))}));var b=h(p.substring(0,f),"raw","");e.url=b+(~b.indexOf("?")?"&":"?")+(0,l.qsstringify)(e.query=(0,o.dataMapping)(y,t,void 0,e.convertKeyToPath))+(~g&&g>f?h(p.substring(g)):"")}else e.url=h(p,"raw","");if(i)return e;if(e.data?e.body=e.data=(0,o.dataMapping)(e.data,t,void 0,e.convertKeyToPath):"post"!==e.method&&"put"!==e.method&&"patch"!==e.method||(e.body=e.data=(0,l.cloneObject)(t)),"get"===e.method||"jsonp"===e.method){if(!e.data&&(!~u.indexOf("$")&&r||e.forceAppendDataToQuery))e.query=e.data=t;else if(!1===e.attachDataToQuery&&e.data&&(!~u.indexOf("$")&&r||e.forceAppendDataToQuery)){var _=e.url.indexOf("?");if(~_){y=e.query=(0,a.__assign)((0,a.__assign)({},(0,l.qsparse)(e.url.substring(_+1))),t);e.url=e.url.substring(0,_)+"?"+(0,l.qsstringify)(y)}else e.query=t,e.url+="?"+(0,l.qsstringify)(t)}if(e.data&&!1!==e.attachDataToQuery){var C=e.url.indexOf("?");if(~C){y=e.query=(0,a.__assign)((0,a.__assign)({},(0,l.qsparse)(e.url.substring(C+1))),e.data);e.url=e.url.substring(0,C)+"?"+(0,l.qsstringify)(y)}else e.query=e.data,e.url+="?"+(0,l.qsstringify)(e.data);delete e.data}}return e.graphql&&("get"===e.method?e.query=e.data=(0,a.__assign)((0,a.__assign)({},e.query),{query:e.graphql}):"post"!==e.method&&"put"!==e.method&&"patch"!==e.method||(e.body=e.data={query:e.graphql,operationName:e.operationName,variables:(0,l.cloneObject)(e.data)})),e}function v(e){for(var t=[],n=1;n0){var d=k(n);return C(d?d.cachedPromise:D(n,e(n)),n)}if(f&&n&&"get"===(null===(s=n.method)||void 0===s?void 0:s.toLocaleLowerCase())){var c="_t=".concat(Date.now());-1===n.url.indexOf("?")?n.url=n.url+"?".concat(c):n.url=n.url+"&".concat(c)}return C(e(n),n)}}function C(e,t){var n=this,r=t.adaptor;return r?e.then((function(e){return(0,a.__awaiter)(n,void 0,void 0,(function(){var n;return(0,a.__generator)(this,(function(o){switch(o.label){case 0:return(0,u.debug)("api","before adaptor data",e.data),n=r(e.data,e,t),(null===n||void 0===n?void 0:n.then)?[4,n]:[3,2];case 1:n=o.sent(),o.label=2;case 2:return(0,u.debug)("api","after adaptor data",n),[2,(0,a.__assign)((0,a.__assign)({},e),{data:n})]}}))}))})).then((function(e){return b(e,t)})):e.then((function(e){return b(e,t)}))}function E(e){return new Promise((function(t,n){var a,r=document.createElement("script"),o=e.url;function i(){r&&(r.onload=r.onreadystatechange=r.onerror=null,r.parentNode&&r.parentNode.removeChild(r),r=null)}r.async=!0;var s=(null===(a=e.query)||void 0===a?void 0:a.callback)||"axiosJsonpCallback"+(0,l.uuid)(),u=window[s];window[s]=function(e){window[s]=u;var n={data:e,status:200,headers:{}};t(n)};var d={_:(new Date).getTime(),_callback:s};o+=(o.indexOf("?")>=0?"&":"?")+(0,l.qsstringify)(d),r.onload=r.onreadystatechange=function(){r.readyState&&!/loaded|complete/.test(r.readyState)||i()},r.onerror=function(){i();var e={status:0,headers:{}};n(e)},r.src=o,document.head.appendChild(r)}))}function x(e,t,n,a){var r;if(!t)return!1;if(!e)return!0;if(t=m(t),!1===t.autoRefresh)return!1;var l=null!==(r=t.trackExpression)&&void 0!==r?r:t.url;if("string"!==typeof l||!~l.indexOf("$"))return!1;e=m(e);var s=!1;return t.trackExpression||e.trackExpression?s=(0,o.tokenize)(e.trackExpression||"",n)!==(0,o.tokenize)(t.trackExpression||"",a):(e=h(e,n,{ignoreData:!0}),t=h(t,a,{ignoreData:!0}),s=e.url!==t.url),!(!s||!w(t.url)||t.sendOn&&!(0,i.evalExpression)(t.sendOn,a))}function w(e){return e&&/^(?:(https?|wss?|taf):\/\/[^\/]+)?(\/?[^\s\/\?]*){1,}(\?.*)?$/.test(e)}function S(e,t,n,a){return!!e&&(!1!==n&&(!(a&&t&&!(0,i.evalExpression)(a,t))&&(!("string"!==typeof e||!e.length)||!(!(0,l.isObject)(e)||!e.url)&&!(e.sendOn&&t&&!(0,i.evalExpression)(e.sendOn,t)))))}function O(e,t){return e.method===t.method&&e.url===t.url&&!(0,l.isObjectShallowModified)(e.data,t.data,!1)}function k(e){for(var t,n=Date.now(),a=0,r=p.length;ao.cache)p.splice(a,1),r--,a--;else if(O(e,o)){t=o;break}}return t}function D(e,t){return p.push((0,a.__assign)((0,a.__assign)({},e),{cachedPromise:t,requestTime:Date.now()})),t}function N(){p.splice(0,p.length)}function T(e){var t;return"undefined"===typeof e?e={}:(0,s.default)(e)||(t={},t[Array.isArray(e)?"items":"result"]=e,e=t),e}t.str2AsyncFunction=y,t.responseAdaptor=b,t.wrapFetcher=_,t.wrapAdaptor=C,t.jsonpFetcher=E,t.isApiOutdated=x,t.isValidApi=w,t.isEffectiveApi=S,t.isSameApi=O,t.getApiCache=k,t.setApiCache=D,t.clearApiCache=N,t.normalizeApiResponseData=T},"7f94":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 577 1024",className:"icon"},e),r.default.createElement("g",{id:"left-arrow",transform:"translate(-1.000000, 0.000000)",fill:"currentColor",fillRule:"nonzero"},r.default.createElement("path",{d:"M101.211517,511.805631 L564.889594,73.082583 C581.083814,56.452218 581.083814,29.107879 564.889594,12.477515 C548.695374,-4.15285 522.393987,-4.15285 506.275618,12.477515 L12.750113,479.360302 C4.103082,488.3297 0.405338,500.295219 1.03111,511.805631 C0.386375,523.714261 4.103082,535.67978 12.750113,544.630216 L506.256655,1011.513 C522.375024,1028.16233 548.695373,1028.16233 564.870631,1011.513 C581.064851,994.427533 581.064851,967.5383 564.870631,950.907936 L101.211517,511.805631",id:"\\u8DEF\\u5F84"})))};t.default=o},"7f9f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComboStore=t.UniqueGroup=void 0;var a=n("f7d3"),r=n("9007"),o=n("689c"),i=n("bd60");t.UniqueGroup=a.types.model("UniqueGroup",{name:a.types.identifier,itemsRef:a.types.array(a.types.string)}).views((function(e){return{get items(){return e.itemsRef.map((function(e){return(0,i.getStoreById)(e)}))}}})).actions((function(e){return{removeItem:function(t){e.itemsRef.replace(e.itemsRef.filter((function(e){return e!==t.id})))},addItem:function(t){e.itemsRef.push(t.id)}}})),t.ComboStore=r.iRendererStore.named("ComboStore").props({uniques:a.types.map(t.UniqueGroup),multiple:!1,formsRef:a.types.optional(a.types.array(a.types.string),[]),minLength:0,maxLength:0,length:0,activeKey:0}).views((function(e){function t(){return e.formsRef.map((function(e){return(0,i.getStoreById)(e)}))}return{get forms(){return t()},get addable(){if(e.maxLength&&e.length>=e.maxLength)return!1;if(e.uniques.size){var t=!1;if(e.uniques.forEach((function(e){if(!t&&e.items.length){var n=e.items[0].options.length,a=e.items.reduce((function(e,t){return e+t.selectedOptions.length}),0);t=!!(n&&a>=n)}})),t)return!1}return!0},get removable(){return!(e.minLength&&e.minLength>=e.length)},getItemsByName:function(n){var a=t();return e.multiple?[a[parseInt(n,10)]]:a[0].getItemsByName(n)}}})).actions((function(e){function t(t){"undefined"!==typeof t.multiple&&(e.multiple=t.multiple),"undefined"!==typeof t.minLength&&(e.minLength=parseInt(t.minLength,10)),"undefined"!==typeof t.maxLength&&(e.maxLength=parseInt(t.maxLength,10)),"undefined"!==typeof t.length&&(e.length=t.length)}function n(t){e.uniques.has(t.name)||e.uniques.put({name:t.name});var n=e.uniques.get(t.name);n.addItem(t)}function a(t){var n=e.uniques.get(t.name);n.removeItem(t),n.items.length||e.uniques.delete(t.name)}function r(t){e.formsRef.push(t.id)}function i(t){if(t.storeType===o.FormStore.name){var n=e.formsRef.indexOf(t.id);~n&&(e.formsRef.splice(n,1),t.items.forEach((function(e){e.unique&&a(e)})),e.forms.forEach((function(e){return e.items.forEach((function(t){return t.unique&&t.syncOptions(void 0,e.data)}))})))}e.removeChildId(t.id)}function l(t){e.activeKey=t}return{config:t,setActiveKey:l,bindUniuqueItem:n,unBindUniuqueItem:a,addForm:r,onChildStoreDispose:i}}))},"7fed":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Link=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d77e"),i=n("d369"),l=n("721d"),s=function(e){function t(t){return e.call(this,t)||this}var n;return(0,a.__extends)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.disabled,a=t.onClick;if(n)return e.preventDefault(),void e.stopPropagation();null===a||void 0===a||a(e)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.href,o=e.classnames,i=e.disabled,s=e.htmlTarget,u=e.title,d=e.icon,c=e.rightIcon,p=e.children,f=(e.classPrefix,e.theme,(0,a.__rest)(e,["className","href","classnames","disabled","htmlTarget","title","icon","rightIcon","children","classPrefix","theme"]));return r.default.createElement("a",(0,a.__assign)({},f,{href:n,target:s,className:o("Link",{"is-disabled":i},t),title:u,onClick:this.handleClick}),d?(0,l.generateIcon)(o,d,"Link-icon"):null,p,c?(0,l.generateIcon)(o,c,"Link-icon"):null)},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.MouseEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleClick",null),t}(r.default.Component);t.Link=s,t.default=(0,o.themeable)(s)},8086:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadiosControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d55b"),i=n("d369"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.highlightIndex=-1,t.prevIndex=-1,t}return(0,a.__extends)(t,e),t.prototype.chartRef=function(e){var t,n=this;this.chart=e,null===(t=this.chart)||void 0===t||t.on("click","series",(function(e){n.props.onToggle(n.props.options[e.dataIndex])})),setTimeout((function(){return n.highlight()}))},t.prototype.highlight=function(e){void 0===e&&(e=this.highlightIndex),this.highlightIndex=e,this.chart&&this.prevIndex!==e&&(~this.prevIndex&&this.chart.dispatchAction({type:"downplay",seriesIndex:0,dataIndex:this.prevIndex}),~e&&(this.chart.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:e}),this.props.showTooltipOnHighlight&&this.chart.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:e})),this.prevIndex=e)},t.prototype.compoonentDidMount=function(){this.props.selectedOptions.length&&this.highlight(this.props.options.indexOf(this.props.selectedOptions[0]))},t.prototype.componentDidUpdate=function(){this.props.selectedOptions.length&&this.highlight(this.props.options.indexOf(this.props.selectedOptions[0]))},t.prototype.render=function(){var e=this.props,t=e.options,n=e.labelField,r=e.chartValueField,o=e.valueField,i=e.render,l=(0,a.__assign)((0,a.__assign)({legend:{top:10},tooltip:{formatter:function(e){return"".concat(e.name,":").concat(e.value[r||o||"value"],"(").concat(e.percent,"%)")}},series:[{type:"pie",top:30,bottom:0}]},this.props.config),{dataset:{dimensions:[n||"label",r||o||"value"],source:t}});return i("chart",{type:"chart"},{config:l,chartRef:this.chartRef})},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"chartRef",null),t}(r.default.Component);t.default=l;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.defaultProps={multiple:!1},t=(0,a.__decorate)([(0,o.OptionsControl)({type:"chart-radios",sizeMutable:!1})],t),t}(l);t.RadiosControlRenderer=s},"80e2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 150 100",className:"icon"},e),r.default.createElement("g",{fill:"currentColor",fillRule:"nonzero"},r.default.createElement("path",{d:"M58.3333334,100 L91.6666666,100 L91.6666666,83.3333334 L58.3333334,83.3333334 L58.3333334,100 L58.3333334,100 Z M0,0 L0,16.6666666 L150,16.6666666 L150,0 L0,0 Z M25,58.3333334 L125,58.3333334 L125,41.6666666 L25,41.6666666 L25,58.3333334 Z",id:"\\u5F62\\u72B6"})))};t.default=o},"80fd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 16 16",className:"icon"},e),r.default.createElement("title",null,"部门"),r.default.createElement("g",{id:"PC-\\u6D41\\u7A0B\\u5C5E\\u6027\\u3001\\u627E\\u4EBA\\u627E\\u90E8\\u95E8+\\u516C\\u5F0F\\u5316\\u7F16\\u8F91\\u5668+\\u5B57\\u6BB5\\u6743\\u9650",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("g",{transform:"translate(-3271.000000, -1246.000000)",id:"\\u90E8\\u95E8"},r.default.createElement("g",{transform:"translate(3271.000000, 1246.000000)"},r.default.createElement("rect",{id:"\\u77E9\\u5F62",fillOpacity:.01,fill:"#FFFFFF",fillRule:"nonzero",x:0,y:0,width:16,height:16}),r.default.createElement("circle",{id:"\\u692D\\u5706\\u5F62",stroke:"#FFFFFF",strokeLinecap:"round",strokeLinejoin:"round",cx:4.66666667,cy:9.66666667,r:1.66666667}),r.default.createElement("circle",{id:"\\u692D\\u5706\\u5F62",stroke:"#FFFFFF",strokeLinecap:"round",strokeLinejoin:"round",cx:11.3333333,cy:9.66666667,r:1.66666667}),r.default.createElement("circle",{id:"\\u692D\\u5706\\u5F62",stroke:"#FFFFFF",strokeLinecap:"round",strokeLinejoin:"round",cx:8,cy:3,r:1.66666667}),r.default.createElement("path",{d:"M8,14.6666667 C8,12.8257333 6.5076,11.3333333 4.66666667,11.3333333 C2.82571667,11.3333333 1.33333333,12.8257333 1.33333333,14.6666667",id:"\\u8DEF\\u5F84",stroke:"#FFFFFF",strokeLinecap:"round",strokeLinejoin:"round"}),r.default.createElement("path",{d:"M14.6666667,14.6666667 C14.6666667,12.8257333 13.1742667,11.3333333 11.3333333,11.3333333 C9.4924,11.3333333 8,12.8257333 8,14.6666667",id:"\\u8DEF\\u5F84",stroke:"#FFFFFF",strokeLinecap:"round",strokeLinejoin:"round"}),r.default.createElement("path",{d:"M11.3333333,8 C11.3333333,6.15906667 9.84093333,4.66666667 8,4.66666667 C6.15906667,4.66666667 4.66666667,6.15906667 4.66666667,8",id:"\\u8DEF\\u5F84",stroke:"#FFFFFF",strokeLinecap:"round",strokeLinejoin:"round"})))))};t.default=o},8118:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useUpdateEffect=t.useSetState=void 0;var r=n("782a");Object.defineProperty(t,"useSetState",{enumerable:!0,get:function(){return a(r).default}});var o=n("4ffd");Object.defineProperty(t,"useUpdateEffect",{enumerable:!0,get:function(){return a(o).default}})},"818f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFormulaRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("2ab5")),i=(0,a.__importDefault)(n("edf0")),l=n("d369"),s=n("7e49"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.formulaRef=function(e){if(e){while(e&&e.getWrappedInstance)e=e.getWrappedInstance();this.ref=e}else this.ref=void 0},t.prototype.validate=function(){var e,t=this.props,n=t.translate,a=t.value;if(null===(e=this.ref)||void 0===e?void 0:e.validate){var r=this.ref.validate(a);if(!0!==r)return n("FormulaEditor.invalidData",{err:r})}},t.prototype.render=function(){var e=this.props,t=(e.selectedOptions,e.disabled),n=e.onChange,a=e.evalMode,o=e.variableMode,l=e.header,u=e.label,d=e.value,c=e.clearable,p=e.className,f=(e.classPrefix,e.classnames,e.allowInput),m=void 0===f||f,h=e.borderMode,v=e.placeholder,g=e.inputMode,y=e.btnLabel,b=e.level,_=e.btnSize,C=e.icon,E=e.title,x=e.variableClassName,w=e.functionClassName,S=e.data,O=e.onPickerOpen,k=this.props,D=k.variables,N=k.functions;return(0,s.isPureVariable)(D)&&(D=(0,s.resolveVariableAndFilter)(D,this.props.data,"| raw")),(0,s.isPureVariable)(N)&&(N=(0,s.resolveVariableAndFilter)(N,this.props.data,"| raw")),r.default.createElement(i.default,{ref:this.formulaRef,className:p,value:d,disabled:t,allowInput:m,onChange:n,evalMode:a,variables:D,variableMode:o,functions:N,header:l||u||"",borderMode:h,placeholder:v,mode:g,btnLabel:y,level:b,btnSize:_,icon:C,title:E,clearable:c,variableClassName:x,functionClassName:w,data:S,onPickerOpen:O})},t.defaultProps={inputMode:"input-button",borderMode:"full",evalMode:!0},(0,a.__decorate)([l.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"formulaRef",null),t=(0,a.__decorate)([(0,o.default)({type:"input-formula"})],t),t}(r.default.Component);t.InputFormulaRenderer=u},"825f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BreadcrumbItem=t.Breadcrumb=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("d3f2")),i=n("d77e"),l=n("ed20"),s=n("d369"),u=n("c264"),d=n("721d"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props.classnames,t=this.props,n=t.className,o=t.separatorClassName,i=t.items,l=t.separator,s=(0,a.__rest)(t,["className","separatorClassName","items","separator"]),u=null===i||void 0===i?void 0:i.length;if(!u)return r.default.createElement("div",{className:e("Breadcrumb",n)});var d=i.map((function(e,t){var n="middle";return 0===t&&(n="start"),t===u-1&&(n="end"),r.default.createElement(p,(0,a.__assign)({},s,{item:e,itemPlace:n,key:t}))})).reduce((function(t,n,a){return[t,r.default.createElement("span",{className:e("Breadcrumb-separator",o),key:"separator-".concat(a)},l),n]}));return r.default.createElement("div",{className:e("Breadcrumb",n)},d)},t.defaultProps={separator:">",labelMaxLength:16,tooltipPosition:"top"},t}(r.default.Component);t.Breadcrumb=c;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={tooltipTrigger:["hover","focus"],tooltipRootClose:!1,isOpened:!1},t.domRef=function(e){t.target=e},t.toogle=function(e){e.preventDefault(),t.setState({isOpened:!t.state.isOpened})},t.close=function(){t.setState({isOpened:!1})},t}return(0,a.__extends)(t,e),t.prototype.renderBreadcrumbBaseItem=function(e,t,n,a){var o=this.props,i=o.itemClassName,l=o.dropdownItemClassName,s=o.classnames,u="default"===t?i:l;return e?r.default.createElement("a",{href:n.href,className:s("Breadcrumb-item-"+t,u)},n.icon?(0,d.generateIcon)(s,n.icon,"Icon","Breadcrumb-icon"):null,r.default.createElement("span",{className:s("TplField")},a)):r.default.createElement("span",{className:s("Breadcrumb-item-"+t,u)},n.icon?(0,d.generateIcon)(s,n.icon,"Icon","Breadcrumb-icon"):null,r.default.createElement("span",{className:s("TplField")},a))},t.prototype.renderBreadcrumbNode=function(e,t,n,a){void 0===t&&(t="top");var i=this.props,l=i.labelMaxLength,u=i.tooltipContainer,d=this.state,c=d.tooltipTrigger,p=d.tooltipRootClose,f=e.label?(0,s.removeHTMLTag)(e.label):"",m=l&&+l>1?+l:1;if(f.length>m&&"middle"===n)return r.default.createElement(o.default,{tooltip:f,placement:t,container:u,trigger:c,rootClose:p},this.renderBreadcrumbBaseItem(!0,a,e,f.substring(0,m)+"..."));var h=!e.href||"end"===n;return this.renderBreadcrumbBaseItem(!h,a,e,f)},t.prototype.renderDropdownNode=function(e){var t=this,n=this.props,a=n.dropdownClassName,o=n.classnames;return r.default.createElement(l.RootClose,{disabled:!this.state.isOpened,onRootClose:this.close},(function(n){return r.default.createElement("ul",{className:o("Breadcrumb-dropdown",a),onClick:t.close,ref:n},Array.isArray(e)&&e.map((function(e,n){return r.default.createElement("li",{key:"dropdown-item"+n},t.renderBreadcrumbNode(e,"right","middle","dropdown"))})))}))},t.prototype.render=function(){var e=this.props,t=e.item,n=e.itemPlace,o=e.tooltipPosition,i=e.classnames,l=t.dropdown,s=(0,a.__rest)(t,["dropdown"]);return r.default.createElement("span",{className:i("Breadcrumb-item",{"is-opened":this.state.isOpened},{"Breadcrumb-item-last":"end"===n}),ref:this.domRef},this.renderBreadcrumbNode((0,a.__assign)({},s),o,n,"default"),l?r.default.createElement("span",{onClick:this.toogle,className:i("Breadcrumb-item-caret")},r.default.createElement(u.Icon,{icon:"caret",className:"icon"})):null,l&&this.state.isOpened?this.renderDropdownNode(l):null)},t}(r.default.Component);t.BreadcrumbItem=p,t.default=(0,i.themeable)(c)},8273:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabsTransferRenderer=t.BaseTabsTransferRenderer=void 0;var a=n("9ab4"),r=n("d55b"),o=(0,a.__importDefault)(n("ab5b")),i=(0,a.__importDefault)(n("2769")),l=(0,a.__importDefault)(n("c6e8")),s=n("5d73"),u=(0,a.__importDefault)(n("cadf")),d=n("79ae"),c=n("d369"),p=n("739d"),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={activeKey:0},t}var n,r;return(0,a.__extends)(t,e),t.prototype.onTabChange=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props.dispatchEvent,[4,t("tab-change",{key:e})];case 1:return n=a.sent(),(null===n||void 0===n?void 0:n.prevented)?[2]:(this.setState({activeKey:e}),[2])}}))}))},t.prototype.handleTabSearch=function(e,t,n){return(0,a.__awaiter)(this,void 0,void 0,(function(){var r,o,l,s,u,p,f,m,h,v,g,y;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(r=this.props,o=r.options,l=r.labelField,s=r.valueField,u=r.env,p=r.data,f=r.translate,m=t.searchApi,!m)return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,u.fetcher(m,(0,c.createObject)(p,{term:e}),{cancelExecutor:n})];case 2:if(h=a.sent(),!h.ok)throw new Error(f(h.msg||"networkError"));if(v=h.data.options||h.data.items||h.data,!Array.isArray(v))throw new Error(f("CRUD.invalidArray"));return[2,v.map((function(e){var t=null,n=e[s||"value"];return Array.isArray(o)&&null!==n&&void 0!==n&&(t=(0,i.default)(o,(0,d.optionValueCompare)(n,s))),t||e}))];case 3:return g=a.sent(),u.isCancel(g)||u.notify("error",g.message),[2,[]];case 4:return[3,6];case 5:return e?(y=(0,c.string2regExp)(e),[2,(0,c.filterTree)(o,(function(e){return!!(Array.isArray(e.children)&&e.children.length||e[s||"value"]&&(y.test(e[l||"label"])||y.test(e[s||"value"])))}),0,!0)]):[2,o];case 6:return[2]}}))}))},t.prototype.handleChange=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o,i,l,s,u,p,f,m,h,v,g,y;return(0,a.__generator)(this,(function(b){switch(b.label){case 0:return n=this.props,r=n.onChange,o=n.joinValues,i=n.delimiter,l=n.valueField,s=n.extractValue,u=n.options,p=n.dispatchEvent,f=n.setOptions,m=n.translate,h=e,v=u.concat(),g="UN_MATCH_RESULT",Array.isArray(e)?(h=e.map((function(e){var n=(0,c.findTreeIndex)(u,(0,d.optionValueCompare)(e[l||"value"],l||"value"));if(n){if(t){i=(0,c.getTree)(v,n);v=(0,c.spliceTree)(v,n,1,(0,a.__assign)((0,a.__assign)({},i),e))}}else{var r=(0,c.findTreeIndex)(v,(function(e){return e.value===g}));if(r){var i=(0,c.getTree)(v,r);(null===i||void 0===i?void 0:i.children)&&(i.children.push(e),v=(0,c.spliceTree)(v,r,1,(0,a.__assign)((0,a.__assign)({},i),e)))}else v.push({label:m("searchResult"),value:g,visible:!1,children:[e]})}return o||s?e[l||"value"]:e})),o&&(h=h.join(i||","))):e&&(h=o||s?e[l||"value"]:e),(v.length>u.length||t)&&f(v,!0),[4,p("change",{value:h,options:u})];case 1:return y=b.sent(),(null===y||void 0===y?void 0:y.prevented)?[2]:(r(h),[2])}}))}))},(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"onTabChange",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[String,"function"===typeof(n="undefined"!==typeof d.Option&&d.Option)?n:Object,"function"===typeof(r="undefined"!==typeof Function&&Function)?r:Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleTabSearch",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Boolean]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleChange",null),t}(s.BaseTransferRenderer);t.BaseTabsTransferRenderer=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return(0,a.__extends)(t,e),t.prototype.optionItemRender=function(e,t){var n=this.props,r=n.menuTpl,o=n.render,i=n.data,l=arguments[2]||{};return r?o("item/".concat(t.index),r,{data:(0,c.createObject)((0,c.createObject)(i,(0,a.__assign)((0,a.__assign)({},t),l)),e)}):p.BaseSelection.itemRender(e,t)},t.prototype.doAction=function(e,t){var n=this.props,a=n.resetValue,r=n.onChange,o=null===t||void 0===t?void 0:t.activeKey;switch(e.actionType){case"clear":null===r||void 0===r||r("");break;case"reset":null===r||void 0===r||r(null!==a&&void 0!==a?a:"");break;case"changeTabKey":this.setState({activeKey:o});break}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classnames,a=e.options,r=e.selectedOptions,i=e.sortable,s=e.loading,d=e.searchResultMode,c=e.showArrow,p=e.deferLoad,f=e.leftDeferLoad,m=e.disabled,h=e.selectTitle,v=e.resultTitle;return o.default.createElement("div",{className:n("TabsTransferControl",t)},o.default.createElement(u.default,{activeKey:this.state.activeKey,value:r,disabled:m,options:a,onChange:this.handleChange,option2value:this.option2value,sortable:i,searchResultMode:d,onSearch:this.handleTabSearch,showArrow:c,onDeferLoad:p,onLeftDeferLoad:f,selectTitle:h,resultTitle:v,optionItemRender:this.optionItemRender,resultItemRender:this.resultItemRender,onTabChange:this.onTabChange}),o.default.createElement(l.default,{overlay:!0,key:"info",show:s}))},(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,"function"===typeof(n="undefined"!==typeof p.ItemRenderStates&&p.ItemRenderStates)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"optionItemRender",null),t=(0,a.__decorate)([(0,r.OptionsControl)({type:"tabs-transfer"})],t),t}(f);t.TabsTransferRenderer=m},"833b":function(e,t,n){},"83b8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfirmAction=t.AlertAction=t.CloseDialogAction=t.DialogAction=void 0;var a=n("9ab4"),r=n("0d19"),o=function(){function e(){}return e.prototype.run=function(e,t,n){var r,o;return(0,a.__awaiter)(this,void 0,void 0,(function(){return(0,a.__generator)(this,(function(a){return null===(o=(r=t.props).onAction)||void 0===o||o.call(r,n,e,e.args),[2]}))}))},e}();t.DialogAction=o;var i=function(){function e(){}return e.prototype.run=function(e,t,n){var r,o;return(0,a.__awaiter)(this,void 0,void 0,(function(){return(0,a.__generator)(this,(function(i){return e.componentId?n.context.scoped.closeById(e.componentId):null===(o=(r=t.props).onAction)||void 0===o||o.call(r,n,(0,a.__assign)((0,a.__assign)({},e),{actionType:"close"}),e.args),[2]}))}))},e}();t.CloseDialogAction=i;var l=function(){function e(){}return e.prototype.run=function(e,t,n){var r,o,i;return(0,a.__awaiter)(this,void 0,void 0,(function(){return(0,a.__generator)(this,(function(t){return null===(o=(r=n.context.env).alert)||void 0===o||o.call(r,null===(i=e.args)||void 0===i?void 0:i.msg),[2]}))}))},e}();t.AlertAction=l;var s=function(){function e(){}return e.prototype.run=function(e,t,n){var r,o,i,l;return(0,a.__awaiter)(this,void 0,void 0,(function(){return(0,a.__generator)(this,(function(t){return null===(o=(r=n.context.env).confirm)||void 0===o||o.call(r,null===(i=e.args)||void 0===i?void 0:i.msg,null===(l=e.args)||void 0===l?void 0:l.title),[2]}))}))},e}();t.ConfirmAction=s,(0,r.registerAction)("dialog",new o),(0,r.registerAction)("closeDialog",new i),(0,r.registerAction)("alert",new l),(0,r.registerAction)("confirmDialog",new s)},"83bf":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StoreNode=void 0;var a=n("f7d3"),r=n("bd60");t.StoreNode=a.types.model("StoreNode",{id:a.types.identifier,path:"",storeType:a.types.string,disposed:!1,parentId:"",childrenIds:a.types.optional(a.types.array(a.types.string),[])}).views((function(e){return{get parentStore(){return(0,a.isAlive)(e)&&e.parentId?(0,r.getStoreById)(e.parentId):null},get __(){return(0,a.getEnv)(e).translate},get hasChildren(){return!!e.childrenIds.length},get children(){return e.childrenIds.map((function(e){return(0,r.getStoreById)(e)}))}}})).actions((function(e){function t(t){e.childrenIds.push(t)}function n(t){var n=e.childrenIds.filter((function(e){return e!==t}));e.childrenIds.replace(n),e.disposed&&r()}function r(t){var n;if(e.disposed=!0,/(?:dialog|drawer)$/.test(e.path))(0,a.destroy)(e),null===t||void 0===t||t();else if(!e.childrenIds.length){var r=e.parentStore;null===(n=null===r||void 0===r?void 0:r.onChildStoreDispose)||void 0===n||n.call(r,e),(0,a.destroy)(e),null===t||void 0===t||t()}}return{onChildStoreDispose:function(e){n(e.id)},syncProps:function(t,n,a){void 0===a&&(a=Object.keys(t));var r=e;a.forEach((function(e){if(!n||t[e]!==n[e]){var a="set".concat(e.substring(0,1).toUpperCase()).concat(e.substring(1));"function"===typeof r[a]?r[a](t[e]):r.hasOwnProperty(e)&&(r[e]=t[e])}}))},dispose:r,addChildId:t,removeChildId:n}}))},"859b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},"865e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GroupedSelection=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("cbc0"),i=n("739d"),l=n("d77e"),s=(0,a.__importDefault)(n("3473")),u=n("32e1"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.renderOption=function(e,t){var n=this,a=this.props,o=a.labelClassName,i=a.disabled,l=a.classnames,u=a.itemClassName,d=a.itemRender,c=a.multiple,p=this.valueArray;return Array.isArray(e.children)?r.default.createElement("div",{key:t,className:l("GroupedSelection-group",e.className)},r.default.createElement("div",{className:l("GroupedSelection-itemLabel")},d(e,{index:t,multiple:c,checked:!1,onChange:function(){},disabled:i||e.disabled})),r.default.createElement("div",{className:l("GroupedSelection-items",e.className)},e.children.map((function(e,t){return n.renderOption(e,t)})))):r.default.createElement("div",{key:t,className:l("GroupedSelection-item",u,e.className,i||e.disabled?"is-disabled":"",~p.indexOf(e)?"is-active":""),onClick:function(){return n.toggleOption(e)}},c?r.default.createElement(s.default,{size:"sm",checked:!!~p.indexOf(e),disabled:i||e.disabled,labelClassName:o,description:e.description}):null,r.default.createElement("div",{className:l("GroupedSelection-itemLabel")},d(e,{index:t,multiple:c,checked:!!~p.indexOf(e),onChange:function(){return n.toggleOption(e)},disabled:i||e.disabled})))},t.prototype.render=function(){var e=this,t=this.props,n=t.value,a=t.options,o=t.className,l=t.placeholder,s=t.classnames,u=t.option2value,d=t.onClick,c=this.props.translate;this.valueArray=i.BaseSelection.value2array(n,a,u);var p=[];return Array.isArray(a)&&a.length&&(p=a.map((function(t,n){return e.renderOption(t,n)}))),r.default.createElement("div",{className:s("GroupedSelection",o),onClick:d},p&&p.length?p:r.default.createElement("div",{className:s("GroupedSelection-placeholder")},c(l)))},t}(i.BaseSelection);t.GroupedSelection=d,t.default=(0,l.themeable)((0,u.localeable)((0,o.uncontrollable)(d,{value:"onChange"})))},"86d3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseDrawerAction=t.DrawerAction=void 0;var a=n("9ab4"),r=n("0d19"),o=function(){function e(){}return e.prototype.run=function(e,t,n){var r,o;return(0,a.__awaiter)(this,void 0,void 0,(function(){return(0,a.__generator)(this,(function(a){return null===(o=(r=t.props).onAction)||void 0===o||o.call(r,n,e,e.args),[2]}))}))},e}();t.DrawerAction=o;var i=function(){function e(){}return e.prototype.run=function(e,t,n){var r,o;return(0,a.__awaiter)(this,void 0,void 0,(function(){return(0,a.__generator)(this,(function(i){return e.componentId?n.context.scoped.closeById(e.componentId):null===(o=(r=t.props).onAction)||void 0===o||o.call(r,n,(0,a.__assign)((0,a.__assign)({},e),{actionType:"close"}),e.args),[2]}))}))},e}();t.CloseDrawerAction=i,(0,r.registerAction)("drawer",new o),(0,r.registerAction)("closeDrawer",new i)},"86f9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RatingControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("2ab5"),i=n("d369"),l=(0,a.__importDefault)(n("1945")),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.doAction=function(e,t,n){var a=null===e||void 0===e?void 0:e.actionType,r=this.props,o=r.onChange,i=r.resetValue;"clear"===a?null===o||void 0===o||o(""):"reset"===a&&(null===o||void 0===o||o(null!==i&&void 0!==i?i:""))},t.prototype.handleChange=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,l;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.onChange,r=t.dispatchEvent,o=t.data,[4,r("change",(0,i.createObject)(o,{value:e}))];case 1:return l=a.sent(),(null===l||void 0===l?void 0:l.prevented)?[2]:(null===n||void 0===n||n(e),[2])}}))}))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.value,a=e.count,o=e.half,i=e.readOnly,s=e.disabled,u=e.onHoverChange,d=e.allowClear,c=e.char,p=e.inactiveColor,f=e.colors,m=e.texts,h=e.charClassName,v=e.textClassName,g=e.textPosition,y=e.classnames;return r.default.createElement("div",{className:y("RatingControl",t)},r.default.createElement(l.default,{classnames:y,value:n,disabled:s,count:a,half:o,allowClear:d,readOnly:i,char:c,inactiveColor:p,colors:f,texts:m,charClassName:h,textClassName:v,textPosition:g,onChange:this.handleChange,onHoverChange:function(e){u&&u(e)}}))},t.defaultProps={value:0,count:5,half:!1,readOnly:!1},(0,a.__decorate)([i.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleChange",null),t}(r.default.Component);t.default=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.FormItem)({type:"input-rating",sizeMutable:!1})],t),t}(s);t.RatingControlRenderer=u},"87bb":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("d4cd")),o=n("4ae2"),i=(0,r.default)();function l(e,t){return t&&i.set(t),i.render(e)}i.use(o.html5Media),t.default=l},"87d3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 1024 1024",focusable:"false","data-icon":"loading",fill:"currentColor","aria-hidden":"true",className:"icon"},e),r.default.createElement("path",{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}))};t.default=o},8906:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 14 16",className:"icon"},e),r.default.createElement("g",null,r.default.createElement("path",{d:"M0,0 L0,16 L14,16 L14,4.001 L9.939,0 L0,0 Z M1,1 L9,1 L9,4.001 L9,5 L10,5 L13,5 L13,15 L1,15 L1,1 Z M10,1.464 L12.575,4.001 L10,4.001 L10,1.464 Z",id:"Fill-1"}),r.default.createElement("polygon",{points:"4 12.0002 10 12.0002 10 10.9992 4 10.9992"}),r.default.createElement("polygon",{points:"4 9.0002 10 9.0002 10 8.0002 4 8.0002"})))};t.default=o},8978:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableCell=t.TableRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("8bc8"),i=n("2b46"),l=n("f83d"),s=(0,a.__importDefault)(n("6cd4")),u=n("a97c"),d=(0,a.__importDefault)(n("3473")),c=(0,a.__importDefault)(n("f602")),p=n("e8da"),f=n("d369"),m=n("7e49"),h=(0,a.__importDefault)(n("b047")),v=(0,a.__importDefault)(n("aa47")),g=n("2a98"),y=(0,a.__importDefault)(n("2769")),b=n("c264"),_=n("0911");Object.defineProperty(t,"TableCell",{enumerable:!0,get:function(){return _.TableCell}});var C=n("caf6"),E=n("01af"),x=n("a79c"),w=n("ff3c"),S=n("f7d3"),O=(0,a.__importDefault)(n("f91a")),k=(0,a.__importDefault)(n("4b9c")),D=n("5de9"),N=n("a35c"),T=function(e){function t(n,a){var r=e.call(this,n)||this;r.lastScrollLeft=-1,r.totalWidth=0,r.totalHeight=0,r.outterWidth=0,r.outterHeight=0,r.widths={},r.widths2={},r.heights={},r.renderedToolbars=[],r.subForms={};var o=a;o.registerComponent(r),r.handleOutterScroll=r.handleOutterScroll.bind(r),r.affixDetect=r.affixDetect.bind(r),r.updateTableInfoLazy=(0,h.default)(r.updateTableInfo.bind(r),250,{trailing:!0,leading:!0}),r.tableRef=r.tableRef.bind(r),r.affixedTableRef=r.affixedTableRef.bind(r),r.handleAction=r.handleAction.bind(r),r.handleCheck=r.handleCheck.bind(r),r.handleCheckAll=r.handleCheckAll.bind(r),r.handleQuickChange=r.handleQuickChange.bind(r),r.handleSave=r.handleSave.bind(r),r.handleSaveOrder=r.handleSaveOrder.bind(r),r.reset=r.reset.bind(r),r.dragTipRef=r.dragTipRef.bind(r),r.getPopOverContainer=r.getPopOverContainer.bind(r),r.renderCell=r.renderCell.bind(r),r.renderHeadCell=r.renderHeadCell.bind(r),r.renderToolbar=r.renderToolbar.bind(r),r.handleMouseMove=r.handleMouseMove.bind(r),r.handleMouseLeave=r.handleMouseLeave.bind(r),r.subFormRef=r.subFormRef.bind(r),r.handleColumnToggle=r.handleColumnToggle.bind(r),r.updateAutoFillHeight=r.updateAutoFillHeight.bind(r);var i=n.store,l=n.columns,s=n.selectable,u=n.columnsTogglable,d=n.draggable,c=n.orderBy,p=n.orderDir,f=n.multiple,v=n.footable,g=n.primaryField,y=n.itemCheckableOn,b=n.itemDraggableOn,_=n.hideCheckToggler,C=n.combineFromIndex,E=n.expandConfig,x=n.formItem,w=n.keepItemSelectionOnPageChange,O=n.maxKeepItemSelectionLength,k=n.combineNum;return"string"===typeof k&&(k=parseInt((0,m.resolveVariableAndFilter)(k,n.data,"| raw"),10)),i.update({selectable:s,draggable:d,columns:l,columnsTogglable:u,orderBy:c,orderDir:p,multiple:f,footable:v,expandConfig:E,primaryField:g,itemCheckableOn:y,itemDraggableOn:b,hideCheckToggler:_,combineNum:k,combineFromIndex:C,keepItemSelectionOnPageChange:w,maxKeepItemSelectionLength:O}),x&&(0,S.isAlive)(x)&&x.setSubStore(i),t.syncRows(i,r.props,void 0)&&r.syncSelected(),r}var l,p,_,T;return(0,a.__extends)(t,e),t.syncRows=function(e,t,n){var a=t.source,r=t.value||t.items,o=[],i=!1;if(!Array.isArray(r)||n&&(n.value||n.items)===r){if("string"===typeof a){var l=(0,m.resolveVariableAndFilter)(a,t.data,"| raw"),s=n?(0,m.resolveVariableAndFilter)(a,n.data,"| raw"):null;s&&s===l?i=!1:Array.isArray(l)&&(i=!0,o=l)}}else i=!0,o=r;return i&&e.initRows(o,t.getEntryId,t.reUseRow),"undefined"!==typeof t.selected&&e.updateSelected(t.selected,t.valueField),i},t.prototype.componentDidMount=function(){var e=(0,f.getScrollParent)((0,o.findDOMNode)(this));e&&e!==document.body||(e=window),this.parentNode=e,this.updateTableInfo();var t=(0,o.findDOMNode)(this);if(!t.closest(".modal-body")){this.affixDetect(),e.addEventListener("scroll",this.affixDetect),window.addEventListener("resize",this.affixDetect),this.updateAutoFillHeight(),window.addEventListener("resize",this.updateAutoFillHeight);var n=this.props,a=n.store,r=n.autoGenerateFilter,i=n.onSearchableFromInit;r&&!a.searchableColumns.length&&i&&i({})}},t.prototype.updateAutoFillHeight=function(){var e=this,t=this.props,n=t.autoFillHeight,a=t.footerToolbar,r=t.classPrefix;if(n){var i=(0,o.findDOMNode)(this),l=i.querySelector(".".concat(r,"Table-content")),s=i.querySelector(".".concat(r,"Table-contentWrap")),u=i.querySelector(".".concat(r,"Table-footToolbar"));if(l){var d=(0,k.default)(l).top,c=window.innerHeight,p=u?(0,k.default)(u).height:0;if(!p&&a&&a.length)this.timer=setTimeout((function(){e.updateAutoFillHeight()}),100);else{var f=(0,D.getStyleNumber)(s,"margin-bottom"),m=0,h=l.parentElement;while(h){var v=(0,D.getStyleNumber)(h,"padding-bottom"),g=(0,D.getStyleNumber)(h,"border-bottom-width");m=m+v+g,h=h.parentElement}l.style.height="".concat(c-d-f-p-m,"px")}}}},t.prototype.componentDidUpdate=function(e){var n=this.props,a=n.store;if((0,f.anyChanged)(["selectable","columnsTogglable","draggable","orderBy","orderDir","multiple","footable","primaryField","itemCheckableOn","itemDraggableOn","hideCheckToggler","combineNum","combineFromIndex","expandConfig"],e,n)){var r=n.combineNum;"string"===typeof r&&(r=parseInt((0,m.resolveVariableAndFilter)(r,n.data,"| raw"),10)),a.update({selectable:n.selectable,columnsTogglable:n.columnsTogglable,draggable:n.draggable,orderBy:n.orderBy,orderDir:n.orderDir,multiple:n.multiple,primaryField:n.primaryField,footable:n.footable,itemCheckableOn:n.itemCheckableOn,itemDraggableOn:n.itemDraggableOn,hideCheckToggler:n.hideCheckToggler,combineNum:r,combineFromIndex:n.combineFromIndex,expandConfig:n.expandConfig})}if(e.columns!==n.columns&&a.update({columns:n.columns}),(0,f.anyChanged)(["source","value","items"],e,n)||!n.value&&!n.items&&(n.data!==e.data||"string"===typeof n.source&&(0,m.isPureVariable)(n.source)))t.syncRows(a,n,e)&&this.syncSelected();else if((0,f.isArrayChildrenModified)(e.selected,n.selected)){var o=a.selectedRows.map((function(e){return e.id})).join(",");a.updateSelected(n.selected||[],n.valueField);var i=a.selectedRows.map((function(e){return e.id})).join(",");o!==i&&this.syncSelected()}this.updateTableInfoLazy()},t.prototype.componentWillUnmount=function(){var e=this.props.formItem,t=this.parentNode;t&&t.removeEventListener("scroll",this.affixDetect),window.removeEventListener("resize",this.affixDetect),window.removeEventListener("resize",this.updateAutoFillHeight),this.updateTableInfoLazy.cancel(),this.unSensor&&this.unSensor(),e&&(0,S.isAlive)(e)&&e.setSubStore(null),clearTimeout(this.timer);var n=this.context;n.unRegisterComponent(this)},t.prototype.subFormRef=function(e,t,n){var a=this.props.quickEditFormRef;a&&a(e,t,n),this.subForms["".concat(t,"-").concat(n)]=e,e&&this.props.store.addForm(e.props.store,n)},t.prototype.handleAction=function(e,t,n){var a=this.props.onAction;a(e,t,n)},t.prototype.handleCheck=function(e,t,n){return(0,a.__awaiter)(this,void 0,void 0,(function(){var r,o,i,l,s,u,d;return(0,a.__generator)(this,(function(c){switch(c.label){case 0:return r=this.props,o=r.store,i=r.data,l=r.dispatchEvent,s=t?(0,a.__spreadArray)((0,a.__spreadArray)([],o.selectedRows.map((function(e){return e.data})),!0),[e.data],!1):o.selectedRows.filter((function(t){return t.id!==e.id})),u=t?o.unSelectedRows.filter((function(t){return t.id!==e.id})):(0,a.__spreadArray)((0,a.__spreadArray)([],o.unSelectedRows.map((function(e){return e.data})),!0),[e.data],!1),[4,l("selectedChange",(0,f.createObject)(i,{selectedItems:s,unSelectedItems:u}))];case 1:return d=c.sent(),(null===d||void 0===d?void 0:d.prevented)?[2]:(n?o.toggleShift(e):e.toggle(),this.syncSelected(),[2])}}))}))},t.prototype.handleCheckAll=function(){return(0,a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,o,i;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=this.props,t=e.store,n=e.data,r=e.dispatchEvent,o=t.getSelectedRows().map((function(e){return e.data})),[4,r("selectedChange",(0,f.createObject)(n,{selectedItems:t.allChecked?[]:o,unSelectedItems:t.allChecked?o:[]}))];case 1:return i=a.sent(),(null===i||void 0===i?void 0:i.prevented)?[2]:(t.toggleAll(),this.syncSelected(),[2])}}))}))},t.prototype.handleQuickChange=function(e,t,n,a,r){if((0,S.isAlive)(e)){var o=this.props,i=o.onSave,l=o.onPristineChange,s=o.saveImmediately,u=o.primaryField;e.change(t,a),e.modified&&this.syncSelected(),a?null===l||void 0===l||l(e.data,e.path):(n||s)&&(n&&n.api?this.props.onAction(null,{actionType:"ajax",api:n.api},t):i&&i(e.data,(0,f.difference)(e.data,e.pristine,["id",u]),e.path,void 0,e.pristine,r))}},t.prototype.handleSave=function(){return(0,a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,o,i,l,s,u,d,c=this;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=this.props,t=e.store,n=e.onSave,r=e.primaryField,n&&t.modifiedRows.length?(o=[],Object.keys(this.subForms).forEach((function(e){return c.subForms[e]&&o.push(c.subForms[e])})),o.length?[4,Promise.all(o.map((function(e){return e.validate()})))]:[3,2]):[2];case 1:if(i=a.sent(),~i.indexOf(!1))return[2];a.label=2;case 2:return l=t.modifiedRows.map((function(e){return e.data})),s=t.modifiedRows.map((function(e){return e.path})),u=t.modifiedRows.map((function(e){return(0,f.difference)(e.data,e.pristine,["id",r])})),d=t.rows.filter((function(e){return!e.modified})).map((function(e){return e.data})),n(l,u,s,d,t.modifiedRows.map((function(e){return e.pristine}))),[2]}}))}))},t.prototype.handleSaveOrder=function(){return(0,a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,o,i,l,s;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=this.props,t=e.store,n=e.onSaveOrder,r=e.data,o=e.dispatchEvent,i=t.movedRows.map((function(e){return e.data})),l=t.rows.map((function(e){return e.getDataWithModifiedChilden()})),[4,o("orderChange",(0,f.createObject)(r,{movedItems:i}))];case 1:return s=a.sent(),(null===s||void 0===s?void 0:s.prevented)?[2]:n&&t.movedRows.length?(n(i,l),[2]):[2]}}))}))},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,t=this.props.store;t.reset();var n=[];Object.keys(this.subForms).forEach((function(t){return e.subForms[t]&&n.push(e.subForms[t])})),n.forEach((function(e){return e.clearErrors()}))},t.prototype.bulkUpdate=function(e,t){var n=this.props,r=n.store,o=n.primaryField;if(o&&e.ids){var i=e.ids.split(","),l=r.rows.filter((function(e){return(0,y.default)(i,(function(t){return t&&t==e.data[o]}))})),s=(0,a.__assign)((0,a.__assign)({},e),{ids:void 0});l.forEach((function(e){return e.change(s)}))}else{l=r.rows.filter((function(e){return~t.indexOf(e.pristine)}));l.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(){var e,t,n,a;if(this.props.affixHeader&&this.table&&!this.props.autoFillHeight){var r=this.props.classPrefix,i=(0,o.findDOMNode)(this),l=this.table.getBoundingClientRect(),s=null!==(t=null!==(e=this.props.affixOffsetTop)&&void 0!==e?e:this.props.env.affixOffsetTop)&&void 0!==t?t:0,u=(null===(n=i.querySelector(".".concat(r,"Table-heading")))||void 0===n?void 0:n.getBoundingClientRect().height)||0,d=(null===(a=i.querySelector(".".concat(r,"Table-headToolbar")))||void 0===a?void 0:a.getBoundingClientRect().height)||0,c=l.top-d-us,p=i.querySelector(".".concat(r,"Table-fixedTop"));p.style.cssText+="top: ".concat(s,"px;width: ").concat(this.table.parentNode.offsetWidth,"px"),c?p.classList.add("in"):p.classList.remove("in")}},t.prototype.updateTableInfo=function(){if(this.table){var e=this.table,t=e.parentNode,n=this.props.affixHeader,a=this.props.classPrefix;this.totalWidth=e.scrollWidth,this.totalHeight=e.scrollHeight,this.outterWidth=t.offsetWidth,this.outterHeight=t.offsetHeight;var r=this.widths={},i=this.widths2={},l=this.heights={};l.header=e.querySelector("thead>tr:last-child").getBoundingClientRect().height,l.header2=e.querySelector("thead>tr:first-child").getBoundingClientRect().height,(0,s.default)(e.querySelectorAll("thead>tr:last-child>th"),(function(e){r[e.getAttribute("data-index")]=e.getBoundingClientRect().width})),(0,s.default)(e.querySelectorAll("thead>tr:first-child>th"),(function(e){i[e.getAttribute("data-index")]=e.getBoundingClientRect().width})),(0,s.default)(e.querySelectorAll("tbody>tr>*:last-child"),(function(e,t){return l[t]=e.getBoundingClientRect().height}));var u=(0,o.findDOMNode)(this);(0,s.default)(u.querySelectorAll(".".concat(a,"Table-fixedTop table, .").concat(a,"Table-fixedLeft>table, .").concat(a,"Table-fixedRight>table")),(function(e){var t=0,n=0;(0,s.default)(e.querySelectorAll("thead>tr:last-child>th"),(function(e){var n=r[e.getAttribute("data-index")];e.style.cssText+="width: ".concat(n,"px; height: ").concat(l.header,"px"),t+=n})),(0,s.default)(e.querySelectorAll("thead>tr:first-child>th"),(function(e){var t=i[e.getAttribute("data-index")];e.style.cssText+="width: ".concat(t,"px; height: ").concat(l.header2,"px"),n+=t})),(0,s.default)(e.querySelectorAll("colgroup>col"),(function(e){var t=r[e.getAttribute("data-index")];e.setAttribute("width","".concat(t))})),(0,s.default)(e.querySelectorAll("tbody>tr"),(function(e,t){e.style.cssText+="height: ".concat(l[t],"px")})),e.style.cssText+="width: ".concat(Math.max(t,n),"px;table-layout: auto;")})),n&&(u.querySelector(".".concat(a,"Table-fixedTop>.").concat(a,"Table-wrapper")).style.cssText+="width: ".concat(this.outterWidth,"px")),this.lastScrollLeft=-1,this.handleOutterScroll()}},t.prototype.handleOutterScroll=function(){var e=this.table.parentNode,t=e.scrollLeft;if(t!==this.lastScrollLeft){this.lastScrollLeft=t;var n=0===t,a=Math.ceil(t)+this.outterWidth>=this.totalWidth,r=this.props.classPrefix,i=(0,o.findDOMNode)(this),l=i.querySelectorAll(".".concat(r,"Table-fixedLeft"));if(l&&l.length)for(var s=0,u=l.length;so;n.insertBefore(this.draggingTr,i&&t.nextSibling||t)}}},t.prototype.handleDrop=function(){return(0,a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,o;return(0,a.__generator)(this,(function(a){return e=this.props.store,t=this.draggingTr,n=t.parentElement,r=Array.prototype.indexOf.call(n.childNodes,t),o=e.getRowById(t.getAttribute("data-id")),this.handleDragEnd(),e.exchange(this.originIndex,r,o),[2]}))}))},t.prototype.handleDragEnd=function(){var e=this.draggingTr,t=e.parentElement,n=Array.prototype.indexOf.call(t.childNodes,e);t.insertBefore(e,t.childNodes[n1?n&&n((0,a.__assign)((0,a.__assign)({},e),{list:l,index:i}),t):n&&n(e,t)},t.prototype.handleColResizeMouseDown=function(e){this.lineStartX=e.clientX;var t=e.currentTarget;this.resizeLine=t,this.resizeLineLeft=parseInt(getComputedStyle(this.resizeLine).getPropertyValue("left"),10),this.targetTh=this.resizeLine.parentElement,this.targetThWidth=this.targetTh.getBoundingClientRect().width,document.addEventListener("mousemove",this.handleColResizeMouseMove),document.addEventListener("mouseup",this.handleColResizeMouseUp)},t.prototype.handleColResizeMouseMove=function(e){var t=e.clientX-this.lineStartX;this.resizeLine.style.left=this.resizeLineLeft+t+"px",this.targetTh.style.width=this.targetThWidth+t+"px"},t.prototype.handleColResizeMouseUp=function(e){document.removeEventListener("mousemove",this.handleColResizeMouseMove),document.removeEventListener("mouseup",this.handleColResizeMouseUp)},t.prototype.handleColumnToggle=function(e){var t=this.props.store;t.updateColumns(e)},t.prototype.renderAutoFilterForm=function(){var e=this.props,t=e.render,n=e.store,r=e.onSearchableFromReset,o=e.onSearchableFromSubmit,i=e.onSearchableFromInit,l=e.classnames,s=e.translate,u=n.searchableColumns,d=n.activedSearchableColumns;if(!u.length)return null;var c=[{body:[],md:4},{body:[],md:4},{body:[],md:4}];return d.forEach((function(e,t){var n,r,o,i;c[t%3].body.push((0,a.__assign)((0,a.__assign)({},!0===e.searchable?{type:"input-text",name:e.name,label:e.label}:(0,a.__assign)({type:"input-text",name:e.name},e.searchable)),{name:null!==(r=null===(n=e.searchable)||void 0===n?void 0:n.name)&&void 0!==r?r:e.name,label:null!==(i=null===(o=e.searchable)||void 0===o?void 0:o.label)&&void 0!==i?i:e.label,mode:"horizontal"}))})),t("searchable-form",{type:"form",api:null,title:"",mode:"normal",submitText:s("search"),body:[{type:"grid",columns:c}],actions:[{type:"dropdown-button",label:s("Table.searchFields"),className:l("Table-searchableForm-dropdown","mr-2"),level:"link",trigger:"click",size:"sm",align:"right",buttons:u.map((function(e){var t,n,a,r;return{type:"checkbox",className:l("Table-searchableForm-checkbox"),name:"__search_".concat(null!==(n=null===(t=e.searchable)||void 0===t?void 0:t.name)&&void 0!==n?n:e.name),option:null!==(r=null===(a=e.searchable)||void 0===a?void 0:a.label)&&void 0!==r?r:e.label,value:e.enableSearch,badge:{offset:[-10,5],visibleOn:"".concat(e.toggable&&!e.toggled&&e.enableSearch)},onChange:function(t){e.setEnableSearch(t)}}}))},{type:"submit",label:s("search"),level:"primary",className:"w-18"},{type:"reset",label:s("reset"),className:"w-18"}]},{key:"searchable-form",panelClassName:l("Table-searchableForm"),actionsClassName:l("Table-searchableForm-footer"),onReset:r,onSubmit:o,onInit:i,formStore:void 0})},t.prototype.renderHeading=function(){var e=this.props,t=e.title,n=e.store,a=e.hideQuickSaveBtn,o=e.data,i=e.classnames,l=e.saveImmediately,s=e.headingClassName,d=e.quickSaveApi,c=e.translate;return t||d&&!l&&n.modified&&!a||n.moved?r.default.createElement("div",{className:i("Table-heading",s),key:"heading"},l||!n.modified||a?n.moved?r.default.createElement("span",null,c("Table.moved",{moved:n.moved}),r.default.createElement("button",{type:"button",className:i("Button Button--xs Button--success m-l-sm"),onClick:this.handleSaveOrder},r.default.createElement(b.Icon,{icon:"check",className:"icon m-r-xs"}),c("Form.submit")),r.default.createElement("button",{type:"button",className:i("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},r.default.createElement(b.Icon,{icon:"close",className:"icon m-r-xs"}),c("Table.discard"))):t?(0,u.filter)(t,o):"":r.default.createElement("span",null,c("Table.modified",{modified:n.modified}),r.default.createElement("button",{type:"button",className:i("Button Button--xs Button--success m-l-sm"),onClick:this.handleSave},r.default.createElement(b.Icon,{icon:"check",className:"icon m-r-xs"}),c("Form.submit")),r.default.createElement("button",{type:"button",className:i("Button Button--xs Button--danger m-l-sm"),onClick:this.reset},r.default.createElement(b.Icon,{icon:"close",className:"icon m-r-xs"}),c("Table.discard")))):null},t.prototype.renderHeadCell=function(e,t){var n=this,o=this.props,i=o.store,l=o.query,s=o.onQuery,u=o.multiple,c=o.env,p=o.render,m=o.classPrefix,h=o.resizable,v=o.classnames,g=o.autoGenerateFilter,y=o.dispatchEvent,_=o.data;if("__checkme"===e.type)return r.default.createElement("th",(0,a.__assign)({},t,{className:v(e.pristine.className)}),i.rows.length&&u?r.default.createElement(d.default,{classPrefix:m,partial:i.someChecked&&!i.allChecked,checked:i.someChecked,disabled:i.disabledHeadCheckbox,onChange:this.handleCheckAll}):" ");if("__dragme"===e.type)return r.default.createElement("th",(0,a.__assign)({},t,{className:v(e.pristine.className)}));if("__expandme"===e.type)return r.default.createElement("th",(0,a.__assign)({},t,{className:v(e.pristine.className)}),i.footable&&(!1===i.footable.expandAll||i.footable.accordion)||i.expandConfig&&(!1===i.expandConfig.expandAll||i.expandConfig.accordion)?null:r.default.createElement("a",{className:v("Table-expandBtn",i.allExpanded?"is-active":""),onClick:i.toggleExpandAll},r.default.createElement(b.Icon,{icon:"right-arrow-bold",className:"icon"})));var x=null;e.searchable&&e.name&&!g?x=r.default.createElement(E.HeadCellSearchDropDown,(0,a.__assign)({},this.props,{onQuery:s,name:e.name,searchable:e.searchable,sortable:e.sortable,type:e.type,data:l,orderBy:i.orderBy,orderDir:i.orderDir,popOverContainer:this.getPopOverContainer})):e.sortable&&e.name?x=r.default.createElement("span",{className:v("TableCell-sortBtn"),onClick:function(){return(0,a.__awaiter)(n,void 0,void 0,(function(){var t,n,r,o;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t="",n="",e.name===i.orderBy?"desc"!==i.orderDir&&(t=e.name,n="desc"):t=e.name,r=n?"desc":"asc",[4,y("columnSort",(0,f.createObject)(_,{orderBy:t,orderDir:r}))];case 1:return o=a.sent(),(null===o||void 0===o?void 0:o.prevented)?[2]:(i.setOrderByInfo(t,r),s&&s({orderBy:i.orderBy,orderDir:i.orderDir}),[2])}}))}))}},r.default.createElement("i",{className:v("TableCell-sortBtn--down",i.orderBy===e.name&&"desc"===i.orderDir?"is-active":"")},r.default.createElement(b.Icon,{icon:"sort-desc",className:"icon"})),r.default.createElement("i",{className:v("TableCell-sortBtn--up",i.orderBy===e.name&&"asc"===i.orderDir?"is-active":"")},r.default.createElement(b.Icon,{icon:"sort-asc",className:"icon"})),r.default.createElement("i",{className:v("TableCell-sortBtn--default",i.orderBy===e.name?"":"is-active")},r.default.createElement(b.Icon,{icon:"sort-default",className:"icon"}))):e.filterable&&e.name&&(x=r.default.createElement(C.HeadCellFilterDropDown,(0,a.__assign)({},this.props,{onQuery:s,name:e.name,type:e.type,data:l,filterable:e.filterable,popOverContainer:this.getPopOverContainer}))),e.pristine.width&&(t.style=t.style||{},t.style.width=e.pristine.width),e.pristine.align&&(t.style=t.style||{},t.style.textAlign=e.pristine.align);var w=r.default.createElement("div",{className:v("Table-content-colDragLine"),key:"resize-".concat(e.index),onMouseDown:this.handleColResizeMouseDown});return r.default.createElement("th",(0,a.__assign)({},t,{className:v(t?t.className:"",{"TableCell--sortable":e.sortable,"TableCell--searchable":e.searchable,"TableCell--filterable":e.filterable,"Table-operationCell":"operation"===e.type})}),r.default.createElement("div",{className:v("".concat(m,"TableCell--title"),e.pristine.className,e.pristine.labelClassName)},e.label?p("tpl",e.label):null,e.remark?p("remark",{type:"remark",tooltip:e.remark,container:c&&c.getModalContainer?c.getModalContainer:void 0}):null),x,!1===h?null:w)},t.prototype.renderCell=function(e,t,n,o,i){void 0===i&&(i=!1);var l=this.props,s=l.render,u=l.store,c=l.multiple,p=l.classPrefix,h=l.classnames,v=l.checkOnItemClick,g=l.popOverContainer,y=l.canAccessSuperData,_=l.itemBadge;if(t.name&&0===n.rowSpans[t.name])return null;if("__checkme"===t.type)return r.default.createElement("td",{key:o.key,className:h(t.pristine.className)},r.default.createElement(d.default,{classPrefix:p,type:c?"checkbox":"radio",checked:n.checked,disabled:n.checkdisable,onChange:v?f.noop:this.handleCheck.bind(this,n)}));if("__dragme"===t.type)return r.default.createElement("td",{key:o.key,className:h(t.pristine.className,{"is-dragDisabled":!n.draggable})},n.draggable?r.default.createElement(b.Icon,{icon:"drag",className:"icon"}):null);if("__expandme"===t.type)return r.default.createElement("td",{key:o.key,className:h(t.pristine.className)},n.depth>2?Array.from({length:n.depth-2}).map((function(e,t){return r.default.createElement("i",{key:t,className:h("Table-divider-"+(t+1))})})):null,n.expandable?r.default.createElement("a",{className:h("Table-expandBtn",n.expanded?"is-active":""),onClick:n.toggleExpanded},r.default.createElement(b.Icon,{icon:"right-arrow-bold",className:"icon"})):null);var C=null;!i&&t.isPrimary&&u.isNested&&u.draggable&&n.draggable&&(C=r.default.createElement("a",{draggable:!0,onDragStart:this.handleDragStart,className:h("Table-dragBtn")},r.default.createElement(b.Icon,{icon:"drag",className:"icon"})));var E=(0,a.__assign)((0,a.__assign)({},o),{btnDisabled:u.dragging,data:n.locals,value:t.name?(0,m.resolveVariable)(t.name,y?n.locals:n.data):t.value,popOverContainer:g||this.getPopOverContainer,rowSpan:n.rowSpans[t.name],quickEditFormRef:this.subFormRef,prefix:C,onImageEnlarge:this.handleImageEnlarge,canAccessSuperData:y,row:n,itemBadge:_,showBadge:!o.isHead&&_&&u.firstToggledColumnIndex===o.colIndex});return delete E.label,s(e,(0,a.__assign)((0,a.__assign)({},t.pristine),{column:t.pristine,type:"cell"}),E)},t.prototype.renderAffixHeader=function(e){var t=this,n=this.props,a=n.store,o=n.affixHeader,i=n.render,l=n.classnames,s=a.filteredColumns.every((function(e){return!e.label})),u=a.columnGroup;return o?r.default.createElement("div",{className:l("Table-fixedTop",{"is-fakeHide":s})},this.renderHeader(!1),this.renderHeading(),r.default.createElement("div",{className:l("Table-fixedLeft")},a.leftFixedColumns.length?this.renderFixedColumns(a.rows,a.leftFixedColumns,!0,e):null),r.default.createElement("div",{className:l("Table-fixedRight")},a.rightFixedColumns.length?this.renderFixedColumns(a.rows,a.rightFixedColumns,!0,e):null),r.default.createElement("div",{className:l("Table-wrapper")},r.default.createElement("table",{ref:this.affixedTableRef,className:e},r.default.createElement("colgroup",null,a.filteredColumns.map((function(e){return r.default.createElement("col",{key:e.index,"data-index":e.index})}))),r.default.createElement("thead",null,u.length?r.default.createElement("tr",null,u.map((function(e,t){return r.default.createElement("th",{key:t,"data-index":e.index,colSpan:e.colSpan,rowSpan:e.rowSpan},e.label?i("tpl",e.label):null)}))):null,r.default.createElement("tr",null,a.filteredColumns.map((function(e){var n;return 2===(null===(n=u.find((function(t){return~t.has.indexOf(e)})))||void 0===n?void 0:n.rowSpan)?null:t.renderHeadCell(e,{key:e.index,"data-index":e.index})}))))))):null},t.prototype.renderFixedColumns=function(e,t,n,a){var o=this;void 0===n&&(n=!1),void 0===a&&(a="");var i=this.props,l=i.placeholder,s=i.store,u=i.classnames,d=i.render,c=i.data,p=i.translate,f=i.locale,m=i.checkOnItemClick,h=i.buildItemProps,v=i.rowClassNameExpr,g=i.rowClassName,y=i.itemAction,b=i.dispatchEvent,_=i.onEvent,C=s.filteredColumns.every((function(e){return!e.label})),E=s.columnGroup;return r.default.createElement("table",{className:u("Table-table",s.combineNum>0?"Table-table--withCombine":"",a)},r.default.createElement("thead",null,E.length?r.default.createElement("tr",null,E.map((function(e,n){var a=t.filter((function(t){return~e.has.indexOf(t)}));return a.length?r.default.createElement("th",{key:n,"data-index":e.index,colSpan:a.length,rowSpan:e.rowSpan},e.label):null}))):null,r.default.createElement("tr",{className:C?"fake-hide":""},t.map((function(e){var t;return 2===(null===(t=E.find((function(t){return~t.has.indexOf(e)})))||void 0===t?void 0:t.rowSpan)?null:o.renderHeadCell(e,{key:e.index,"data-index":e.index})})))),n?null:e.length?r.default.createElement(w.TableBody,{tableClassName:u(s.combineNum>0?"Table-table--withCombine":"",a),itemAction:y,classnames:u,render:d,renderCell:this.renderCell,onCheck:this.handleCheck,onQuickChange:s.dragging?void 0:this.handleQuickChange,footable:s.footable,ignoreFootableContent:!0,footableColumns:s.footableColumns,checkOnItemClick:m,buildItemProps:h,onAction:this.handleAction,rowClassNameExpr:v,rowClassName:g,columns:t,rows:e,locale:f,translate:p,rowsProps:{regionPrefix:"fixed/",renderCell:function(e,t,n,a){return o.renderCell(e,t,n,a,!0)},data:c,dispatchEvent:b,onEvent:_}}):r.default.createElement("tbody",null,r.default.createElement("tr",{className:u("Table-placeholder")},r.default.createElement("td",{colSpan:t.length},d("placeholder",p(l||"placeholder.noData"))))))},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()):"export-excel"===t?(this.renderedToolbars.push(t),this.renderExportExcel(e)):void 0},t.prototype.renderColumnsToggler=function(e){var t,n=this,o=this.props,i=(o.className,o.store),l=o.classPrefix,s=o.classnames,u=(0,a.__rest)(o,["className","store","classPrefix","classnames"]),c=u.translate,p=u.env,m=this.props.render;return i.columnsTogglable?r.default.createElement(O.default,(0,a.__assign)({},u,(0,f.isObject)(e)?e:{},{tooltip:(null===e||void 0===e?void 0:e.tooltip)||c("Table.columnsVisibility"),tooltipContainer:p&&p.getModalContainer?p.getModalContainer:void 0,align:null!==(t=null===e||void 0===e?void 0:e.align)&&void 0!==t?t:"left",isActived:i.hasColumnHidden(),classnames:s,classPrefix:l,key:"columns-toggable",size:(null===e||void 0===e?void 0:e.size)||"sm",icon:null===e||void 0===e?void 0:e.icon,label:null===e||void 0===e?void 0:e.label,draggable:null===e||void 0===e?void 0:e.draggable,columns:i.columnsData,activeToggaleColumns:i.activeToggaleColumns,onColumnToggle:this.handleColumnToggle}),i.toggableColumns.length?r.default.createElement("li",{className:s("ColumnToggler-menuItem"),key:"selectAll",onClick:function(){return(0,a.__awaiter)(n,void 0,void 0,(function(){var e,t,n,r,o;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=this.props,t=e.data,n=e.dispatchEvent,r=!(i.activeToggaleColumns.length===i.toggableColumns.length),[4,n("columnToggled",(0,f.createObject)(t,{columns:r?i.toggableColumns.map((function(e){return e.pristine})):[]}))];case 1:return o=a.sent(),(null===o||void 0===o?void 0:o.prevented)?[2]:(i.toggleAllColumns(),[2])}}))}))}},r.default.createElement(d.default,{size:"sm",classPrefix:l,key:"checkall",checked:!!i.activeToggaleColumns.length,partial:!(!i.activeToggaleColumns.length||i.activeToggaleColumns.length===i.toggableColumns.length)},c("Checkboxes.selectAll"))):null,i.toggableColumns.map((function(e){return r.default.createElement("li",{className:s("ColumnToggler-menuItem"),key:e.index,onClick:function(){return(0,a.__awaiter)(n,void 0,void 0,(function(){var t,n,r,o,l;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.data,r=t.dispatchEvent,o=i.activeToggaleColumns.map((function(e){return e.pristine})),e.toggled?o=o.filter((function(t){return t.name!==e.pristine.name})):o.push(e.pristine),[4,r("columnToggled",(0,f.createObject)(n,{columns:o}))];case 1:return l=a.sent(),(null===l||void 0===l?void 0:l.prevented)?[2]:(e.toggleToggle(),[2])}}))}))}},r.default.createElement(d.default,{size:"sm",classPrefix:l,checked:e.toggled},e.label?m("tpl",e.label):null))}))):null},t.prototype.renderDragToggler=function(){var e=this.props,t=e.store,n=e.env,a=e.draggable,o=e.classPrefix,i=e.translate;return!a||t.isNested?null:r.default.createElement(c.default,{disabled:!!t.modified,classPrefix:o,key:"dragging-toggle",tooltip:i("Table.startSort"),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},r.default.createElement(b.Icon,{icon:"exchange",className:"icon"}))},t.prototype.renderExportExcel=function(e){var t=this,r=this.props,o=r.store,i=(r.env,r.classPrefix,r.classnames,r.translate),l=(r.data,r.render),s=o.filteredColumns||[];return s?l("exportExcel",(0,a.__assign)((0,a.__assign)({label:i("CRUD.exportExcel")},e),{type:"button"}),{onAction:function(){Promise.resolve().then((function(){return new Promise((function(e){n.e("chunk-2d2268cd").then((function(){var t=[n("e8ae")];(function(t){e(a.__importStar(t))}).apply(null,t)})).catch(n.oe)}))})).then((function(n){return(0,a.__awaiter)(t,void 0,void 0,(function(){return(0,a.__generator)(this,(function(t){return(0,N.exportExcel)(n,this.props,e),[2]}))}))}))}}):null},t.prototype.renderActions=function(e){var t=this,n=this.props,o=n.actions,i=n.render,l=n.store,s=n.classnames,u=n.data;return o=Array.isArray(o)?o.concat():[],l.toggable&&"header"===e&&!~this.renderedToolbars.indexOf("columns-toggler")&&o.push({type:"button",children:this.renderColumnsToggler()}),l.draggable&&!l.isNested&&"header"===e&&l.rows.length>1&&!~this.renderedToolbars.indexOf("drag-toggler")&&o.push({type:"button",children:this.renderDragToggler()}),Array.isArray(o)&&o.length?r.default.createElement("div",{className:s("Table-actions")},o.map((function(e,n){return i("action/".concat(n),(0,a.__assign)({type:"button"},e),{onAction:t.handleAction,key:n,btnDisabled:l.dragging,data:l.getData(u)})}))):null},t.prototype.renderHeader=function(e){var t=this.props,n=t.header,o=t.headerClassName,i=t.toolbarClassName,l=t.headerToolbarClassName,s=t.headerToolbarRender,u=t.render,d=t.showHeader,c=t.store,p=t.classnames,f=t.data,m=t.translate;if(!1===d)return null;var h={},v=s?s((0,a.__assign)((0,a.__assign)((0,a.__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}))}),h),this.renderToolbar):null,g=this.renderActions("header"),y=g||v||c.dragging?r.default.createElement("div",{className:p("Table-toolbar Table-headToolbar",i,l),key:"header-toolbar"},g,v,c.dragging?r.default.createElement("div",{className:p("Table-dragTip"),ref:this.dragTipRef},m("Table.dragTip")):null):null,b=!n||Array.isArray(n)&&!n.length?null:r.default.createElement("div",{className:p("Table-header",o),key:"header"},u("header",n,(0,a.__assign)((0,a.__assign)({},!1===e?h:null),{data:c.getData(f)})));return b&&y?[b,y]:b||y||null},t.prototype.renderFooter=function(){var e=this.props,t=e.footer,n=e.toolbarClassName,o=e.footerToolbarClassName,i=e.footerClassName,l=e.footerToolbarRender,s=e.render,u=e.showFooter,d=e.store,c=e.data,p=e.classnames;if(!1===u)return null;var f=l?l((0,a.__assign)((0,a.__assign)({},this.props),{selectedItems:d.selectedRows.map((function(e){return e.data})),items:d.rows.map((function(e){return e.data}))}),this.renderToolbar):null,m=this.renderActions("footer"),h=m||f?r.default.createElement("div",{className:p("Table-toolbar Table-footToolbar",n,o),key:"footer-toolbar"},m,f):null,v=!t||Array.isArray(t)&&!t.length?null:r.default.createElement("div",{className:p("Table-footer",i),key:"footer"},s("footer",t,{data:d.getData(c)}));return v&&h?[h,v]:v||h||null},t.prototype.renderTableContent=function(){var e=this.props,t=e.classnames,n=e.tableClassName,a=e.store,o=e.placeholder,i=e.render,l=e.checkOnItemClick,s=e.buildItemProps,u=e.rowClassNameExpr,d=e.rowClassName,c=e.prefixRow,p=e.locale,f=e.affixRow,m=e.tableContentClassName,h=e.translate,v=e.itemAction,g=(e.affixRowClassNameExpr,e.affixRowClassName),y=(e.prefixRowClassNameExpr,e.prefixRowClassName),b=(e.autoFillHeight,e.itemActions),_=e.emptyIcon,C=e.dispatchEvent,E=e.onEvent;return a.rows.length,r.default.createElement(x.TableContent,{tableClassName:t(a.combineNum>0?"Table-table--withCombine":"",{"Table-table--checkOnItemClick":l},n),className:m,itemActions:b,itemAction:v,store:a,classnames:t,columns:a.filteredColumns,columnsGroup:a.columnGroup,rows:a.rows,placeholder:o,emptyIcon:_,render:i,onMouseMove:this.handleMouseMove,onScroll:this.handleOutterScroll,tableRef:this.tableRef,renderHeadCell:this.renderHeadCell,renderCell:this.renderCell,onCheck:this.handleCheck,onQuickChange:a.dragging?void 0:this.handleQuickChange,footable:a.footable,footableColumns:a.footableColumns,checkOnItemClick:l,buildItemProps:s,onAction:this.handleAction,rowClassNameExpr:u,rowClassName:d,data:a.data,prefixRow:c,affixRow:f,prefixRowClassName:y,affixRowClassName:g,locale:p,translate:h,dispatchEvent:C,onEvent:E})},t.prototype.doAction=function(e,t,n){var a=this.props,r=a.store,o=a.valueField,i=a.data,l=null===e||void 0===e?void 0:e.actionType;switch(l){case"selectAll":r.clear(),r.toggleAll();break;case"clearAll":r.clear();break;case"select":var s=r.getData(i),d=[];s.items.forEach((function(e,n){var a=(0,u.evalExpression)(null===t||void 0===t?void 0:t.selected,{record:e,rowIndex:n});a&&d.push(e)})),r.updateSelected(d,o);break;case"initDrag":r.stopDragging(),r.toggleDragging();break;default:break}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.store,a=e.classnames,o=e.affixColumns,i=e.autoFillHeight,l=e.autoGenerateFilter;this.renderedToolbars=[];var s=this.renderHeading(),u=this.renderHeader(),d=this.renderFooter(),c=a("Table-table",n.combineNum>0?"Table-table--withCombine":"",this.props.tableClassName);return r.default.createElement("div",{className:a("Table",t,{"Table--unsaved":!!n.modified||!!n.moved,"Table--autoFillHeight":i})},l?this.renderAutoFilterForm():null,u,s,r.default.createElement("div",{className:a("Table-contentWrap"),onMouseLeave:this.handleMouseLeave},r.default.createElement("div",{className:a("Table-fixedLeft"),onMouseMove:this.handleMouseMove},!1!==o&&n.leftFixedColumns.length?this.renderFixedColumns(n.rows,n.leftFixedColumns,!1,c):null),r.default.createElement("div",{className:a("Table-fixedRight"),onMouseMove:this.handleMouseMove},!1!==o&&n.rightFixedColumns.length?this.renderFixedColumns(n.rows,n.rightFixedColumns,!1,c):null),this.renderTableContent()),this.renderAffixHeader(c),d)},t.contextType=i.ScopedContext,t.propsList=["header","headerToolbarRender","footer","footerToolbarRender","footable","expandConfig","placeholder","tableClassName","headingClassName","source","selectable","columnsTogglable","affixHeader","affixColumns","headerClassName","footerClassName","selected","multiple","primaryField","hideQuickSaveBtn","itemCheckableOn","itemDraggableOn","checkOnItemClick","hideCheckToggler","itemAction","itemActions","combineNum","combineFromIndex","items","columns","valueField","saveImmediately","rowClassName","rowClassNameExpr","affixRowClassNameExpr","prefixRowClassNameExpr","popOverContainer","headerToolbarClassName","toolbarClassName","footerToolbarClassName","itemBadge","autoFillHeight","onSelect","keepItemSelectionOnPageChange","maxKeepItemSelectionLength"],t.defaultProps={className:"",placeholder:"placeholder.noData",tableClassName:"",source:"$items",selectable:!1,columnsTogglable:"auto",affixHeader:!0,headerClassName:"",footerClassName:"",toolbarClassName:"",headerToolbarClassName:"",footerToolbarClassName:"",primaryField:"id",itemCheckableOn:"",itemDraggableOn:"",hideCheckToggler:!1,canAccessSuperData:!1,resizable:!0},(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(l="undefined"!==typeof r.default&&r.default.DragEvent)?l:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragStart",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragOver",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleDrop",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragEnd",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleImageEnlarge",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(p="undefined"!==typeof r.default&&r.default.MouseEvent)?p:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleColResizeMouseDown",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(_="undefined"!==typeof MouseEvent&&MouseEvent)?_:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleColResizeMouseMove",null),(0,a.__decorate)([f.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(T="undefined"!==typeof MouseEvent&&MouseEvent)?T:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleColResizeMouseUp",null),t}(r.default.Component);t.default=T;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,l.Renderer)({type:"table",storeType:p.TableStore.name,name:"table"})],t),t}(T);t.TableRenderer=P},"89f9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 187 187",className:"icon"},e),r.default.createElement("g",{id:"Zoom-In",fill:"currentColor",fillRule:"nonzero"},r.default.createElement("path",{d:"M45.4545455,90.9090908 L118.181818,90.9090908 L118.181818,72.7272727 L45.4545455,72.7272727 L45.4545455,90.9090908 Z M145.709091,132.854546 C157.32865,118.383803 163.653932,100.376636 163.636364,81.8181818 C163.636364,36.6272727 127.009091,0 81.8181818,0 C36.6272727,0 0,36.6272727 0,81.8181818 C0,127.009091 36.6272727,163.636364 81.8181818,163.636364 C101.136364,163.636364 118.854546,156.909091 132.854546,145.709091 L173.827273,186.681818 L186.681818,173.827273 L145.709091,132.854546 Z M81.8181818,145.454546 C46.6727886,145.454546 18.1818182,116.963575 18.1818182,81.8181818 C18.1818182,46.6727886 46.6727886,18.1818182 81.8181818,18.1818182 C116.963575,18.1818182 145.454546,46.6727886 145.454546,81.8181818 C145.454546,116.963575 116.963575,145.454546 81.8181818,145.454546 L81.8181818,145.454546 Z",id:"\\u5F62\\u72B6"})))};t.default=o},"8a78":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 12 12",className:"icon"},e),r.default.createElement("g",{id:"\\u7EC4\\u4EF6",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("g",{id:"Group-14"},r.default.createElement("text",{id:"\\uFF1F",fontFamily:"PingFangSC-Regular, PingFang SC",fontSize:12,fontWeight:"normal","line-spacing":13,fill:"currentColor"},r.default.createElement("tspan",{x:3,y:10.5},"\n\t\t\t\t\t?\n\t\t\t\t")))))};t.default=o},"8ab9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagFieldRenderer=t.TagField=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=n("d369"),l=n("7e49"),s=(0,a.__importDefault)(n("0f72")),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.icon,a=e.displayMode,o=e.color,u=e.className,d=e.data,c=e.style,p=void 0===c?{}:c;return t=(0,i.getPropValue)(this.props)||(t?(0,l.resolveVariableAndFilter)(t,d,"| raw"):null),(0,l.isPureVariable)(n)&&(n=(0,l.resolveVariableAndFilter)(n,d)),(0,l.isPureVariable)(a)&&(a=(0,l.resolveVariableAndFilter)(a,d)),(0,l.isPureVariable)(o)&&(o=(0,l.resolveVariableAndFilter)(o,d)),r.default.createElement(s.default,{className:u,displayMode:a,color:o,icon:n,style:p},t)},t.defaultProps={displayMode:"normal"},t}(r.default.Component);t.TagField=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"tag"})],t),t}(u);t.TagFieldRenderer=d},"8c63":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pagination=t.PaginationWidget=void 0;var a,r=n("9ab4"),o=(0,r.__importDefault)(n("ab5b")),i=(0,r.__importDefault)(n("697e")),l=n("32e1"),s=n("d77e"),u=n("d369"),d=n("c264"),c=(0,r.__importDefault)(n("79ae"));(function(e){e["Pager"]="pager",e["PerPage"]="perpage",e["Total"]="total",e["Go"]="go"})(a=t.PaginationWidget||(t.PaginationWidget={}));var p=function(e){function t(t){var n=e.call(this,t)||this;return n.state={pageNum:"",perPage:Number(n.props.perPage)},n.handlePageNumChange=n.handlePageNumChange.bind(n),n.renderPageItem=n.renderPageItem.bind(n),n.renderEllipsis=n.renderEllipsis.bind(n),n.handlePageNums=n.handlePageNums.bind(n),n}var n;return(0,r.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(e.perPage!==this.props.perPage){var t=Number(this.props.perPage);this.setState({perPage:(0,i.default)(t)?t:10})}},t.prototype.handlePageNumChange=function(e,t){var n=this.props,a=n.disabled,r=n.onPageChange;a||null===r||void 0===r||r(e,t)},t.prototype.renderPageItem=function(e){var t=this,n=this.props,a=n.classnames,r=n.activePage,i=this.state.perPage;return o.default.createElement("li",{onClick:function(){return t.handlePageNumChange(e,i)},key:e,className:a("Pagination-pager-item",{"is-active":e===r})},o.default.createElement("a",{role:"button"},e))},t.prototype.renderEllipsis=function(e){var t=this.props.classnames;return o.default.createElement("li",{key:e,className:t("ellipsis")},o.default.createElement("a",{role:"button"},"..."))},t.prototype.handlePageNums=function(e,t,n,a){var r=[];if(0===t)return r;var o=0,i=e;while(1){if(r.length>=t)return r;if(e-oa)return r;i=e-o,r.length=n&&r.unshift(this.renderPageItem(i)),i=e+o,0!==o&&r.lengtht&&(n=String(t)),this.setState({pageNum:n})},t.prototype.render=function(){var e=this,t=this.props,n=t.layout,r=t.maxButtons,i=t.mode,l=t.activePage,s=t.total,u=t.showPerPage,p=t.perPageAvailable,f=t.classnames,m=t.showPageInput,h=t.className,v=t.disabled,g=t.hasNext,y=t.translate,b=this.state,_=b.pageNum,C=b.perPage,E=this.getLastPage();if("simple"===i)return o.default.createElement("div",{className:f("Pagination-wrap","Pagination-simple",{disabled:v},h)},o.default.createElement("ul",{key:"pager-items",className:f("Pagination","Pagination--sm","Pagination-pager-items","Pagination-item")},o.default.createElement("li",{className:f("Pagination-prev",{"is-disabled":l<2}),onClick:function(t){return l<2?t.preventDefault():e.handlePageNumChange(l-1)},key:"prev"},o.default.createElement("span",null,o.default.createElement(d.Icon,{icon:"left-arrow",className:"icon"}))),o.default.createElement("li",{className:f("Pagination-next",{"is-disabled":!g}),onClick:function(t){return g?e.handlePageNumChange(l+1,C):t.preventDefault()},key:"next"},o.default.createElement("span",null,o.default.createElement(d.Icon,{icon:"right-arrow",className:"icon"})))));var x=[],w=Array.isArray(n)?n:"string"===typeof n?n.split(","):[];if(w.includes(a.Pager)||w.unshift(a.Pager),w=w.map((function(e){return e.trim().toLowerCase()})),m&&!w.includes(a.Go)&&w.push(a.Go),u&&!w.includes(a.PerPage)&&w.unshift(a.PerPage),E<=r)x=this.handlePageNums(l,r,1,Math.min(r,E));else if(l<=r-3)x=this.handlePageNums(l,r-2,1,Math.min(r-2,E)),x.push(this.renderEllipsis("next-ellipsis")),x.push(this.renderPageItem(E));else if(l>E-(r-3)){var S=E-(r-3);x=this.handlePageNums(l,r-2,S,E),x.unshift(this.renderEllipsis("prev-ellipsis")),x.unshift(this.renderPageItem(1))}else x=this.handlePageNums(l,r-2,3,E-3),x.unshift(this.renderEllipsis("prev-ellipsis")),x.unshift(this.renderPageItem(1)),x.push(this.renderEllipsis("next-ellipsis")),x.push(this.renderPageItem(E));x.unshift(o.default.createElement("li",{className:f("Pagination-prev",{"is-disabled":l<2}),onClick:function(t){return l<2?t.preventDefault():e.handlePageNumChange(l-1,C)},key:"prev"},o.default.createElement("span",null,o.default.createElement(d.Icon,{icon:"left-arrow",className:"icon"})))),x.push(o.default.createElement("li",{className:f("Pagination-next",{"is-disabled":l===E}),onClick:function(t){return l===E?t.preventDefault():e.handlePageNumChange(l+1,C)},key:"next"},o.default.createElement("span",null,o.default.createElement(d.Icon,{icon:"right-arrow",className:"icon"}))));var O=o.default.createElement("div",{className:f("Pagination-inputGroup Pagination-item"),key:"go"},o.default.createElement("span",{className:f("Pagination-inputGroup-left"),key:"go-left"},y("Pagination.goto")),o.default.createElement("input",{className:f("Pagination-inputGroup-input"),key:"go-input",type:"text",disabled:v,onChange:this.handlePageChange,onFocus:function(e){return e.currentTarget.select()},onKeyUp:function(t){var n=parseInt(t.currentTarget.value,10);n&&"Enter"==t.code&&(e.setState({pageNum:""}),e.handlePageNumChange(n,C))},value:_}),o.default.createElement("span",{className:f("Pagination-inputGroup-right"),key:"go-right",onClick:function(t){_&&(e.setState({pageNum:""}),e.handlePageNumChange(+_,C))}},y("Pagination.go"))),k=p.filter((function(e){return!!e})).map((function(e){return{label:y("Pagination.select",{count:e}),value:e}})),D=o.default.createElement(c.default,{key:"perpage",className:f("Pagination-perpage","Pagination-item"),overlayPlacement:"right-bottom-right-top",clearable:!1,disabled:v,value:C,options:k,onChange:function(t){e.setState({perPage:t.value,pageNum:""}),e.handlePageNumChange(1,t.value)}}),N=s||E?o.default.createElement("div",{className:f("Pagination-total Pagination-item"),key:"total"},s||0===s?y("Pagination.totalCount",{total:s}):y("Pagination.totalPage",{lastPage:E})):null;return o.default.createElement("div",{className:f("Pagination-wrap",{disabled:v},h)},w.map((function(e){return e===a.Pager?o.default.createElement("ul",{key:"pager-items",className:f("Pagination","Pagination--sm","Pagination-item")},x):e===a.Go?O:e===a.PerPage?D:e===a.Total?N:null})))},t.defaultProps={layout:[a.Pager],maxButtons:5,mode:"normal",activePage:1,perPage:10,perPageAvailable:[10,20,50,100]},(0,r.__decorate)([u.autobind,(0,r.__metadata)("design:type",Function),(0,r.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof o.default&&o.default.ChangeEvent)?n:Object]),(0,r.__metadata)("design:returntype",void 0)],t.prototype,"handlePageChange",null),t}(o.default.Component);t.Pagination=p,t.default=(0,s.themeable)((0,l.localeable)(p))},"8cea":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 1024 1024","p-id":1463,className:"icon"},e),r.default.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}),r.default.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}))};t.default=o},"8cfa":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 9 12","p-id":3506,className:"icon"},e),r.default.createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("g",{transform:"translate(-11.000000, -9.000000)",fill:"currentColor",fillRule:"nonzero"},r.default.createElement("g",{transform:"translate(11.000000, 9.000000)"},r.default.createElement("polygon",{transform:"translate(4.294118, 6.000000) rotate(-270.000000) translate(-4.294118, -6.000000) ",points:"8.76684493 2 4.29411765 6.79999999 -0.178609633 2 -1.70588235 3.6 4.29411765 10 10.2941176 3.6"})))))};t.default=o},"8ec1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KVControlRenderer=t.ComboControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("8bc8"),i=(0,a.__importDefault)(n("0644")),l=n("2ab5"),s=n("7f9f"),u=a.__importStar(n("cd0c")),d=(0,a.__importDefault)(n("f602")),c=n("d369"),p=(0,a.__importDefault)(n("aa47")),f=n("a97c"),m=(0,a.__importDefault)(n("2769")),h=(0,a.__importDefault)(n("79ae")),v=n("7e49"),g=n("7f82"),y=n("4afe"),b=(0,a.__importDefault)(n("e380")),_=n("c264"),C=n("f7d3");function E(e,t){return t.reduce((function(t,n){return t[n]=(0,v.resolveVariable)(n,e),t}),{})}var x=function(e){function t(t){var n=e.call(this,t)||this;n.subForms=[],n.subFormDefaultValues=[],n.keys=[],n.toDispose=[],n.id=(0,c.guid)(),n.refsMap={},n.makeFormRef=(0,b.default)((function(e){return function(t){return n.formRef(t,e)}})),n.memoizedFormatValue=(0,b.default)((function(e,t,n,r,o){return(0,c.createObject)((0,c.extendObject)(o,(0,a.__assign)({index:r,__index:r},o)),(0,a.__assign)((0,a.__assign)({},n),Array.isArray(t)?E(o,t):null))}),(function(e,t,n,a,r){return Array.isArray(t)?JSON.stringify([n,a,r,E(r,t)]):e?JSON.stringify([n,a]):JSON.stringify([n,a,r])})),n.handleChange=n.handleChange.bind(n),n.handleSingleFormChange=n.handleSingleFormChange.bind(n),n.handleSingleFormInit=n.handleSingleFormInit.bind(n),n.handleFormInit=n.handleFormInit.bind(n),n.handleAction=n.handleAction.bind(n),n.addItem=n.addItem.bind(n),n.deleteItem=n.deleteItem.bind(n),n.dragTipRef=n.dragTipRef.bind(n),n.flush=n.flush.bind(n),n.handleComboTypeChange=n.handleComboTypeChange.bind(n),n.defaultValue=(0,a.__assign)({},t.scaffold);var r=t.store,o=(t.value,t.multiple),i=t.minLength,l=t.maxLength,s=t.formItem,u=t.addHook;return r.config({multiple:o,minLength:i,maxLength:l,length:n.getValueAsArray(t).length}),s&&(0,C.isAlive)(s)&&s.setSubStore(r),u&&n.toDispose.push(u(n.flush,"flush")),n}var n;return(0,a.__extends)(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props;if((0,c.anyChanged)(["minLength","maxLength","value"],e,t)){var n=t.store,r=t.minLength,o=t.maxLength,i=t.multiple,l=this.getValueAsArray(t);n.config({multiple:i,minLength:r,maxLength:o,length:l.length}),n.activeKey>=l.length&&n.setActiveKey(Math.max(0,l.length-1)),t.value!==e.value&&!e.formInited&&this.subFormDefaultValues.length&&(this.subFormDefaultValues=this.subFormDefaultValues.map((function(e,t){return(0,a.__assign)((0,a.__assign)({},e),{values:l[t]})})))}},t.prototype.componentWillUnmount=function(){var e,t,n,a,r=this.props.formItem;r&&(0,C.isAlive)(r)&&r.setSubStore(null),this.toDispose.forEach((function(e){return e()})),this.toDispose=[],null===(t=(e=this.memoizedFormatValue.cache).clear)||void 0===t||t.call(e),null===(a=(n=this.makeFormRef.cache).clear)||void 0===a||a.call(n)},t.prototype.doAction=function(e,t){var n=null===e||void 0===e?void 0:e.actionType,a=this.props,r=a.onChange,o=a.resetValue;"clear"===n?r(""):"reset"===n&&r(null!==o&&void 0!==o?o:"")},t.prototype.getValueAsArray=function(e){void 0===e&&(e=this.props);var t=e.flat,n=e.joinValues,a=e.delimiter,r=(e.type,e.value);return r=n&&t&&"string"===typeof r?r.split(a||","):Array.isArray(r)?r.concat():[],r},t.prototype.addItemWith=function(e){var t=this.props,n=t.flat,r=t.joinValues,o=t.delimiter,i=t.scaffold,l=t.disabled,s=t.submitOnChange;if(!l){var u=this.getValueAsArray();u.push(n?e.scaffold||i||"":(0,a.__assign)({},e.scaffold||i)),this.keys.push((0,c.guid)()),n&&r&&(u=u.join(o||",")),this.props.onChange(u,s,!0)}},t.prototype.addItem=function(){return(0,a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,o,l,s,u,d,p,f;return(0,a.__generator)(this,(function(m){switch(m.label){case 0:return e=this.props,t=e.flat,n=e.joinValues,r=e.delimiter,o=e.scaffold,l=e.disabled,s=e.submitOnChange,u=e.data,d=e.dispatchEvent,l?[2]:(p=this.getValueAsArray(),[4,d("add",(0,c.createObject)(u,{value:t&&n?p.join(r||","):(0,i.default)(p)}))]);case 1:return f=m.sent(),(null===f||void 0===f?void 0:f.prevented)?[2]:(p.push(t?o||"":(0,a.__assign)({},o)),this.keys.push((0,c.guid)()),t&&n&&(p=p.join(r||",")),this.props.onChange(p,s,!0),[2])}}))}))},t.prototype.deleteItem=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,l,s,u,d,p,m,h,v,y,b,_,C;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.flat,r=t.joinValues,o=t.delimiter,l=t.disabled,s=t.deleteApi,u=t.deleteConfirmText,d=t.data,p=t.env,m=t.translate,h=t.dispatchEvent,l?[2]:(v=this.getValueAsArray(),y=(0,c.createObject)(d,v[e]),[4,h("delete",(0,c.createObject)(d,{key:e,value:n&&r?v.join(o||","):(0,i.default)(v)}))]);case 1:return b=a.sent(),(null===b||void 0===b?void 0:b.prevented)?[2]:(0,g.isEffectiveApi)(s,y)?[4,p.confirm(u?(0,f.filter)(u,y):m("deleteConfirm"))]:[3,4];case 2:return _=a.sent(),_?[4,p.fetcher(s,y)]:[2];case 3:if(C=a.sent(),!C.ok)return p.notify("error",m("deleteFailed")),[2];a.label=4;case 4:return v.splice(e,1),this.keys.splice(e,1),n&&r&&(v=v.join(o||",")),this.props.onChange(v),[2]}}))}))},t.prototype.handleChange=function(e,t,n){var r=n.index,o=this.props,i=o.flat,l=o.store,s=o.joinValues,u=o.delimiter,d=o.disabled,c=o.submitOnChange,p=o.type;if(!d){var f=this.getValueAsArray();if(f[r]=i?e.flat:(0,a.__assign)({},e),i&&s&&(f=f.join(u||",")),"input-kv"===p){for(var m=!1,h={},v=0,g=f;va?i(r&&r.maxLengthValidateFailed||"Combo.maxLength",{maxLength:a}):!this.subForms.length||o&&!t?void 0:Promise.all(this.subForms.map((function(e){return e.validate()}))).then((function(e){if(~e.indexOf(!1))return i(r&&r.validateFailed||"validateFailed")}))},t.prototype.flush=function(){this.subForms.forEach((function(e){return e.flush()}))},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=this.props.submitOnChange,a=(0,o.findDOMNode)(this);this.sortable=new p.default(a.querySelector(".".concat(t,"Combo-items")),{group:"combo-".concat(this.id),animation:150,handle:".".concat(t,"Combo-itemDrager"),ghostClass:"".concat(t,"Combo-item--dragging"),onEnd:function(t){if(t.newIndex!==t.oldIndex){var a=t.to;t.oldIndex1?"is-draggable":"")},r.default.createElement("div",{className:n("Combo-items",D)},Array.isArray(T)&&T.length?T.map((function(t,f,v){var C=e.renderDelBtn(t,f),S=e.formatValue(t,f),D=null;Array.isArray(E)&&E.length&&(D=e.pickCondition(S),N=D?D.items:void 0);var T=u&&N?[(0,a.__assign)((0,a.__assign)({},N&&N[0]),{name:"flat"})]:N;return r.default.createElement("div",{className:n("Combo-item",k),key:e.keys[f]||(e.keys[f]=(0,c.guid)())},!s&&p&&v.length>1?r.default.createElement("div",{className:n("Combo-itemDrager")},r.default.createElement("a",{key:"drag","data-tooltip":O("Combo.dragDropSort"),"data-position":"bottom"},b?r.default.createElement("i",{className:b}):r.default.createElement(_.Icon,{icon:"drag-bar",className:"icon"}))):null,D&&!1!==m?r.default.createElement("div",{className:n("Combo-itemTag")},r.default.createElement("label",null,O("Combo.type")),r.default.createElement(h.default,{onChange:e.handleComboTypeChange.bind(e,f),options:E.map((function(e){return{label:e.label,value:e.label}})),value:D.label,clearable:!1})):null,r.default.createElement("div",{className:n("Combo-itemInner")},T?i("multiple/".concat(f),{type:"form",body:T,wrapperComponent:"div",wrapWithPanel:!1,mode:l?d:"row",className:n("Combo-form",o)},{index:f,disabled:s,data:S,onChange:e.handleChange,onInit:e.handleFormInit,onAction:e.handleAction,ref:e.makeFormRef(f),lazyChange:!w,formLazyChange:!1,lazyLoad:x,canAccessSuperData:g,value:void 0,formItemValue:void 0,formStore:void 0}):r.default.createElement(y.Alert2,{level:"warning",className:"m-b-none"},O("Combo.invalidData"))),C)})):S?r.default.createElement("div",{className:n("Combo-placeholder")},O(S)):null),s?null:r.default.createElement("div",{className:n("Combo-toolbar")},this.renderAddBtn(),p?r.default.createElement("span",{className:n("Combo-dragableTip"),ref:this.dragTipRef},Array.isArray(T)&&T.length>1?O(f):""):null))},t.prototype.renderSingle=function(){var e=this.props,t=e.conditions,n=e.classnames,a=e.render,o=e.value,i=e.multiLine,l=e.formClassName,s=e.canAccessSuperData,u=e.noBorder,d=e.disabled,p=e.typeSwitchable,f=e.nullable,m=e.translate,v=e.itemClassName,g=this.props.items,b=(0,c.isObject)(o)?this.formatValue(o):this.defaultValue,_=null;return Array.isArray(t)&&t.length&&(_=this.pickCondition(b),g=_?_.items:void 0),r.default.createElement("div",{className:n("Combo Combo--single",i?"Combo--ver":"Combo--hor",u?"Combo--noBorder":"",d?"is-disabled":"")},r.default.createElement("div",{className:n("Combo-item",v)},_&&!1!==p?r.default.createElement("div",{className:n("Combo-itemTag")},r.default.createElement("label",null,m("Combo.type")),r.default.createElement(h.default,{onChange:this.handleComboTypeChange.bind(this,0),options:t.map((function(e){return{label:e.label,value:e.label}})),value:_.label,clearable:!1})):null,r.default.createElement("div",{className:n("Combo-itemInner")},g?a("single",{type:"form",body:g,wrapperComponent:"div",wrapWithPanel:!1,mode:i?"normal":"row",className:n("Combo-form",l)},{disabled:d,data:b,onChange:this.handleSingleFormChange,ref:this.makeFormRef(0),onInit:this.handleSingleFormInit,canAccessSuperData:s,formStore:void 0}):r.default.createElement(y.Alert2,{level:"warning",className:"m-b-none"},m("Combo.invalidData")))),o&&f?r.default.createElement("a",{className:n("Combo-setNullBtn"),href:"#",onClick:this.setNull},m("clear")):null)},t.prototype.render=function(){var e=this.props,t=e.formInited,n=e.multiple,a=e.className,o=(e.classPrefix,e.classnames);e.disabled;return t||"undefined"===typeof t?r.default.createElement("div",{className:o("ComboControl",a)},n?this.renderMultipe():this.renderSingle()):null},t.defaultProps={minLength:0,maxLength:0,multiple:!1,multiLine:!1,addButtonClassName:"",formClassName:"",subFormMode:"normal",draggableTip:"",addButtonText:"add",canAccessSuperData:!1,addIcon:!0,dragIcon:"",deleteIcon:"",tabsMode:!1,tabsStyle:"",placeholder:"placeholder.empty",itemClassName:"",itemsWrapperClassName:""},t.propsList=["minLength","maxLength","multiple","multiLine","addButtonClassName","subFormMode","draggableTip","addButtonText","draggable","scaffold","canAccessSuperData","addIcon","dragIcon","deleteIcon","noBorder","conditions","tabsMode","tabsStyle","lazyLoad","changeImmediately","strictMode","items","conditions","messages","formStore","itemClassName","itemsWrapperClassName"],(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Number]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleTabSelect",null),(0,a.__decorate)([c.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.MouseEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"setNull",null),t}(r.default.Component);t.default=x;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,l.FormItem)({type:"combo",storeType:s.ComboStore.name,extendsData:!1})],t),t}(x);t.ComboControlRenderer=w;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,l.FormItem)({type:"input-kv",storeType:s.ComboStore.name,extendsData:!1})],t),t}(x);t.KVControlRenderer=S},"8efc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StaticFieldRenderer=t.StaticControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("2ab5"),i=n("8978"),l=(0,a.__importDefault)(n("ea9c")),s=(0,a.__importDefault)(n("b8e3")),u=(0,a.__importDefault)(n("dd59")),d=n("d369"),c=n("3eea"),p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleQuickChange=n.handleQuickChange.bind(n),n}return(0,a.__extends)(t,e),t.prototype.handleQuickChange=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o,i;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return n=this.props,r=n.onBulkChange,o=n.onAction,i=n.data,t&&t.api?[4,o(null,{actionType:"ajax",api:t.api},(0,d.extendObject)(i,e),!0)]:[3,2];case 1:a.sent(),a.label=2;case 2:return r&&r(e,!0===t),[2]}}))}))},t.prototype.render=function(){var e,t=this.props,n=t.className,o=t.value,i=t.label,l=t.type,s=t.render,u=(t.children,t.data),c=t.classnames,p=t.name,f=t.disabled,h=t.$schema,v=t.defaultValue,g=t.borderMode,y=(0,a.__rest)(t,["className","value","label","type","render","children","data","classnames","name","disabled","$schema","defaultValue","borderMode"]),b=/^static/.test(l)?l.substring(7)||(y.tpl?"tpl":"plain"):l,_=(0,a.__assign)((0,a.__assign)({label:i,name:p},h),{type:b});return r.default.createElement("div",{className:c("Form-static",(e={},e["Form-static--border".concat((0,d.ucFirst)(g))]=g,e))},r.default.createElement(m,(0,a.__assign)({},(0,a.__assign)((0,a.__assign)({},y),{name:p,render:s,field:_,value:o===v?void 0:o,className:n,onQuickChange:this.handleQuickChange,data:u,disabled:f,classnames:c}))))},t.defaultProps={placeholder:"-"},t}(r.default.Component);t.default=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.FormItem)({test:/(^|\/)static(\-[^\/]+)?$/,weight:-90,strictMode:!1,sizeMutable:!1,name:"static"})],t),t}(p);t.StaticControlRenderer=f;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=(e.type,e.className),n=e.render,o=e.style,i=e.wrapperComponent,l=(e.labelClassName,e.value),s=e.data,u=e.children,d=e.width,p=e.inputClassName,f=(e.label,e.tabIndex),m=e.onKeyUp,h=e.field,v=(0,a.__rest)(e,["type","className","render","style","wrapperComponent","labelClassName","value","data","children","width","inputClassName","label","tabIndex","onKeyUp","field"]),g=(0,a.__assign)((0,a.__assign)({},h),{className:p,type:h&&h.type||"plain"}),y=u||n("field",g,(0,a.__assign)((0,a.__assign)({},c(v,Object.keys(g))),{value:l,data:s}));return d&&(o=o||{},o.width=o.width||d),i?r.default.createElement(i,{style:o,className:t,tabIndex:f,onKeyUp:m},y):y},t.defaultProps=(0,a.__assign)((0,a.__assign)({},i.TableCell.defaultProps),{wrapperComponent:"div"}),t=(0,a.__decorate)([(0,s.default)(),(0,l.default)({position:"right"}),(0,u.default)()],t),t}(i.TableCell);t.StaticFieldRenderer=m},"8fa6":function(e,t,n){"use strict";var a,r;Object.defineProperty(t,"__esModule",{value:!0}),t.envOverwrite=void 0;var o=n("d369"),i=!!(null===(r=(a=window).matchMedia)||void 0===r?void 0:r.call(a,"(max-width: 768px)").matches),l=function(e,t){if(e.mobile&&i&&(Object.assign(e,e.mobile),delete e.mobile),t)for(var n=(0,o.findObjectsWithKey)(e,t),a=0,r=n;a0)k(e.children,t,n,r+1,s,e.fixed);else{c.children;var p=(0,a.__rest)(c,["children"]);n.push(p)}}))}function D(e){return!0===e||"left"===e}function N(e){return"right"===e}function T(e,t,n){for(var a=0,r=0;rt;r--)if(n&&n[r]&&N(n[r].fixed)){var o=e[r];a+=o.offsetWidth}return a}function A(e){return(0,l.default)(e,(function(e){return e.fixed}))}function I(e){if(!e)return[];var t=[],n=[];return e.forEach((function(e){(0,h.isObject)(e)?n.push(e):Array.isArray(e)&&t.push(e)})),(0,a.__spreadArray)([n],t,!0)}var R=40,F=function(e){function t(t){var n,o=e.call(this,t)||this;return o.tableDom=r.default.createRef(),o.theadDom=r.default.createRef(),o.tbodyDom=r.default.createRef(),o.contentDom=r.default.createRef(),o.headerDom=r.default.createRef(),o.bodyDom=r.default.createRef(),o.tfootDom=r.default.createRef(),o.footDom=r.default.createRef(),o.selectedRows=t.rowSelection?o.getSelectedRows(t.dataSource,null===(n=t.rowSelection)||void 0===n?void 0:n.selectedRowKeys):[],o.state={selectedRowKeys:t.rowSelection&&t.rowSelection.selectedRowKeys.map((function(e){return e}))||[],dataSource:t.dataSource||[],expandedRowKeys:(0,a.__spreadArray)((0,a.__spreadArray)([],t.expandable&&t.expandable.expandedRowKeys||[],!0),t.expandable&&t.expandable.defaultExpandedRowKeys||[],!0),colWidths:[],hoverRow:null},o.onTableContentScroll=o.onTableContentScroll.bind(o),o.getPopOverContainer=o.getPopOverContainer.bind(o),o}return(0,a.__extends)(t,e),t.prototype.getPopOverContainer=function(){return(0,o.findDOMNode)(this)},t.prototype.getColWidths=function(){for(var e,t,n=(null===(t=null===(e=this.tbodyDom.current)||void 0===e?void 0:e.children[0])||void 0===t?void 0:t.children)||[],a=new Array(n?n.length:0),r=0;r0){var h=(0,c.default)(f[s]);f.splice(s,1),f.splice(s+i,0,h)}return f},t.prototype.initDragging=function(){var e=this,t=this.props,n=t.classnames;t.onDrag;this.sortable=new p.default(this.tbodyDom.current,{group:"table",animation:150,handle:".".concat(n("Table-dragCell")),ghostClass:"is-dragging",onMove:function(e){var t=e.dragged,a=e.related;if(a&&a.classList.contains("".concat(n("Table-summary-row"))))return!1;var r=t.getAttribute("row-levels"),o=a.getAttribute("row-levels");return r===o},onEnd:function(t){return(0,a.__awaiter)(e,void 0,void 0,(function(){var e,n,r;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t.newIndex===t.oldIndex?[2]:(e=this.props.onDrag,e?(n=this.exchange(t.oldIndex,t.newIndex,t.item),[4,e(n)]):[3,2]);case 1:if(r=a.sent(),r)return[2];a.label=2;case 2:return[2]}}))}))}})},t.prototype.destroyDragging=function(){this.sortable&&this.sortable.destroy()},t.prototype.updateStickyHeader=function(){var e,t,n=this;if(this.props.sticky){var a=null===(t=null===(e=this.headerDom)||void 0===e?void 0:e.current)||void 0===t?void 0:t.parentElement;setTimeout((function(){while(a&&"auto"!==window.getComputedStyle(a,null).getPropertyValue("overflow"))a=a.parentElement;if(a&&"auto"===window.getComputedStyle(a,null).getPropertyValue("overflow")){var e=window.getComputedStyle(a,null).getPropertyValue("padding-top");e&&n.headerDom&&n.headerDom.current&&(n.headerDom.current.style.top="-"+e)}}))}},t.prototype.updateFixedRow=function(e,t){for(var n,a,r,o=this.props.classnames,l=e.children,s=0;s0?T(l,s,t)+"px":"0":N(d)&&(u.style.right=s-1&&(null===(n=l[c])||void 0===n||n.classList.add(o("Table-cell-fix-left-last")));var p=t.findIndex((function(e){return N(e.fixed)}));p>-1&&(null===(a=l[p])||void 0===a||a.classList.add(o("Table-cell-fix-right-first")),p>0&&(null===(r=l[p-1])||void 0===r||r.classList.add(o("Table-cell-fix-right-first-prev"))))},t.prototype.prependColumns=function(e){var t=this.props,n=t.rowSelection,a=t.expandable,r=t.draggable;r?e.unshift({}):(a&&e.unshift(a),n&&e.unshift(n))},t.prototype.updateTheadFixedRow=function(e,t){for(var n=e.children,r=0;r0){for(var f=0;fm&&(m=e.length)}));var h=this.getRowSelectionKeyField(),v=n&&n.getCheckboxProps?this.state.dataSource.filter((function(e,t){var a=n.getCheckboxProps(e,t);return!a.disabled})):this.state.dataSource,y=this.isExpandableTable(),E=[],w=[];return v.forEach((function(t){E.push(t[h]),w.push(t),!s&&e.hasChildrenRow(t)&&(E=(0,a.__spreadArray)((0,a.__spreadArray)([],E,!0),e.getDataChildrenKeys(t),!0),t[e.getChildrenColumnName()].forEach((function(e){return w.push(e)})))})),r.default.createElement("thead",{ref:this.theadDom,className:i("Table-thead")},f.map((function(t,h){return r.default.createElement("tr",{key:"th-cell-"+h},u&&0===h?r.default.createElement(x.default,{wrapperComponent:"th",rowSpan:f.length,className:i("Table-dragCell")}):null,!u&&n&&0===h?r.default.createElement(x.default,{wrapperComponent:"th",rowSpan:f.length,fixed:n.fixed?"left":"",className:i("Table-checkCell")},"radio"!==n.type?[r.default.createElement(g.default,{key:"checkAll",partial:e.state.selectedRowKeys.length>0&&e.state.selectedRowKeys.length0,onChange:function(t){return(0,a.__awaiter)(e,void 0,void 0,(function(){var e,n,r,o,i=this;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return e=t?v.filter((function(e){return!i.hasCheckedRows(e)})):this.selectedRows,n=t?w:[],r=t?E:[],c?[4,c(t,r,n,e)]:[3,2];case 1:if(o=a.sent(),o)return[2];a.label=2;case 2:return this.setState({selectedRowKeys:r}),[2]}}))}))}}),n.selections&&n.selections.length>0?r.default.createElement(C.default,{key:"checkSelection",keys:E,selections:n.selections,popOverContainer:e.getPopOverContainer}):null]:null):null,!u&&y&&0===h?r.default.createElement(x.default,{wrapperComponent:"th",rowSpan:f.length,fixed:s&&s.fixed?"left":"",className:i("Table-row-expand-icon-cell")}):null,t.map((function(n,s){var u=null;n.sorter&&(u=r.default.createElement(b.default,{column:n,onSort:l||function(t){if("function"===typeof n.sorter)if(t.orderBy){var r=(0,a.__spreadArray)([],e.state.dataSource,!0);e.setState({dataSource:r.sort(n.sorter)})}else e.setState({dataSource:(0,a.__spreadArray)([],o,!0)})}}));var c=null;n.filterDropdown?c=n.filterDropdown:n.filters&&n.filters.length>0&&(c=r.default.createElement(_.default,{column:n,popOverContainer:e.getPopOverContainer,onFilter:p}));var f=r.default.createElement("span",null,u,c,d?r.default.createElement("i",{className:i("Table-thead-resizable"),onMouseDown:function(t){return e.onResizeMouseDown(t,n.key)}}):null);return r.default.createElement(x.default,{wrapperComponent:"th",rowSpan:n.rowSpan,colSpan:n.colSpan,key:"cell-".concat(s),fixed:!0===n.fixed?"left":n.fixed,className:i({"Table-cell-last":s===m-1&&s===t.length-1}),groupId:n.groupId,depth:n.depth},"function"===typeof n.title?n.title(f):n.title)})))})))},t.prototype.onRowClick=function(e,t,n){var a=this.props,r=a.rowSelection,o=a.onRow;if(r&&r.type&&r.rowClick){var i=this.getRowSelectionKeyField(),s=!!(0,l.default)(this.state.selectedRowKeys,(function(e){return e===t[i]}));this.selectedSingleRow(!s,t)}t&&o&&o.onRowClick&&o.onRowClick(e,t,n)},t.prototype.onRowMouseEnter=function(e,t,n){var a=this.props,r=a.classnames,o=a.onRow,i=e.target;while(i&&"TR"!==i.tagName)i=i.parentElement;if(i&&!i.classList.contains(r("Table-row-disabled")))for(var l=0;l0},t.prototype.isExpandableRow=function(e,t){var n=this.props.expandable;return n&&n.rowExpandable&&n.rowExpandable(e,t)},t.prototype.getDataChildrenKeys=function(e){var t=this,n=[];if(this.hasChildrenRow(e)){var r=this.getChildrenColumnName();e[r].forEach((function(e){return n=(0,a.__spreadArray)((0,a.__spreadArray)((0,a.__spreadArray)([],n,!0),t.getDataChildrenKeys(e),!0),[e[t.getRowSelectionKeyField()]],!1)}))}return n},t.prototype.hasCheckedRows=function(e){var t=this.state.selectedRowKeys,n=this.getDataChildrenKeys(e);return(0,d.default)(t,(0,a.__spreadArray)((0,a.__spreadArray)([],n,!0),[e[this.getRowSelectionKeyField()]],!1)).length>0},t.prototype.hasCheckedChildrenRows=function(e){var t=this.state.selectedRowKeys,n=this.getDataChildrenKeys(e),a=(0,d.default)(t,n).length;return a>0},t.prototype.getExpandedIcons=function(e,t){var n=this.props.classnames;return e?r.default.createElement("i",{className:n("Table-expandBtn","is-active"),onClick:this.onCollapseRow.bind(this,t)},r.default.createElement(v.Icon,{icon:"right-arrow-bold",className:"icon"})):r.default.createElement("i",{className:n("Table-expandBtn"),onClick:this.onExpandRow.bind(this,t)},r.default.createElement(v.Icon,{icon:"right-arrow-bold",className:"icon"}))},t.prototype.selectedSingleRow=function(e,t){return(0,a.__awaiter)(this,void 0,void 0,(function(){var n,r,o,i,l,s,u=this;return(0,a.__generator)(this,(function(d){switch(d.label){case 0:return n=this.props,r=n.rowSelection,o=n.onSelect,i=this.getRowSelectionKeyField(),l=r&&"radio"===r.type,o?[4,o(t,e,this.selectedRows,this.state.selectedRowKeys)]:[3,2];case 1:if(s=d.sent(),s)return[2];d.label=2;case 2:return e?l?this.setState({selectedRowKeys:[t[i]]}):this.setState((function(e){return{selectedRowKeys:(0,a.__spreadArray)((0,a.__spreadArray)((0,a.__spreadArray)([],e.selectedRowKeys,!0),[t[i]],!1),u.getDataChildrenKeys(t),!0).filter((function(e,t,n){return n.indexOf(e)===t}))}})):l||this.setState({selectedRowKeys:this.state.selectedRowKeys.filter((function(e){return!(0,a.__spreadArray)([t[i]],u.getDataChildrenKeys(t),!0).includes(e)}))}),[2]}}))}))},t.prototype.renderRow=function(e,t,n){var o=this,i=this.props,s=i.classnames,u=i.rowSelection,d=i.expandable,c=i.draggable,p=i.indentSize,f=i.rowClassName,m=i.lineHeight,y=this.tdColumns,b=this.isExpandableTable(),_=this.getRowSelectionKeyField(),C=this.getExtraColumnCount(),E=this.isExpandableRow(e,t),w=this.hasChildrenRow(e),S=!!(0,l.default)(this.state.expandedRowKeys,(function(t){return t==e[o.getExpandableKeyField()]})),O=n.length>0?r.default.createElement("span",{className:s("Table-row-indent","indent-level-".concat(n.length)),style:n.length>0?{paddingLeft:p*n.length+"px"}:{}}):null,k=y.map((function(i,l){var u,d,c=i.render&&"function"===typeof i.render?i.render(e[i.key],e,t,l):null,p={rowSpan:1,colSpan:1},f=c;c&&(0,h.isObject)(c)&&(p=c.props,f=c.children,p.rowSpan>1&&E&&w&&p.rowSpan);var v="function"===typeof i.className?i.className(e,t):"";return 0===p.rowSpan||0===p.colSpan?null:r.default.createElement(x.default,(0,a.__assign)({key:l},p,{fixed:!0===i.fixed?"left":i.fixed,column:i,groupId:i.groupId,className:s((u={},u["".concat(v)]=!!v,u))}),r.default.createElement("div",{className:s("Table-cell-wrapper",(d={},d[s("Table-cell-wrapper-prefix")]=0===l&&(!!O||0===n.length&&w),d[s("Table-cell-height-".concat(m))]=!!m,d))},0===l&&n.length>0?O:null,0===l&&w?o.getExpandedIcons(S,e):null,c?f:e[i.key]))})),D=f&&"function"===typeof f?f(e,t):"",N=u&&u.getCheckboxProps?u.getCheckboxProps(e,t):{},T=d&&d.expandedRowClassName&&"function"===typeof d.expandedRowClassName?d.expandedRowClassName(e,t):"",P=this.getChildrenColumnName(),A=!c&&E&&S?r.default.createElement("tr",{key:"expanded",className:s("Table-expanded-row",T)},r.default.createElement(x.default,{colSpan:y.length+C},d&&d.expandedRowRender&&"function"===typeof d.expandedRowRender?d.expandedRowRender(e,t):null)):this.hasChildrenRow(e)&&S?e[P].map((function(e,r){return o.renderRow(e,r,(0,a.__spreadArray)((0,a.__spreadArray)([],n,!0),[t],!1))})):null,I=!!(0,l.default)(this.state.selectedRowKeys,(function(t){return t===e[_]})),R=this.hasCheckedChildrenRows(e);return[r.default.createElement("tr",{key:t,"row-index":t,"row-levels":n.join(","),className:s("Table-row","Table-row-level-".concat(n.length),D,{"Table-row-disabled":!!N.disabled}),onMouseEnter:function(n){return o.onRowMouseEnter(n,e,t)},onMouseLeave:function(n){return o.onRowMouseLeave(n,e,t)},onClick:function(n){return o.onRowClick(n,e,t)}},c?r.default.createElement(x.default,{className:s("Table-dragCell")},r.default.createElement(v.Icon,{icon:"drag-bar",className:"icon"})):null,!c&&u?r.default.createElement(x.default,{fixed:u.fixed?"left":"",className:s("Table-checkCell")},r.default.createElement(g.default,(0,a.__assign)({name:"Table-checkbox",type:u.type||"checkbox",partial:R&&!I,checked:R||I,onChange:function(t,n){u&&u.rowClick||o.selectedSingleRow(t,e),event&&event.stopPropagation()}},N))):null,!c&&b?r.default.createElement(x.default,{fixed:d&&d.fixed?"left":"",className:s("Table-cell-expand-icon-cell")},E||w?this.getExpandedIcons(S,e):null):null,k),A]},t.prototype.renderTBody=function(){var e=this,t=this.props,n=t.classnames,a=t.headSummary,o=t.scroll,i=t.placeholder,l=t.sticky,s=this.tdColumns,u=o&&o.y,d=this.getExtraColumnCount();return r.default.createElement("tbody",{ref:this.tbodyDom,className:n("Table-tbody")},u||l||!a?null:this.renderSummaryRow(a),this.state.dataSource.length?this.state.dataSource.map((function(t,n){return e.renderRow(t,n,[])})):r.default.createElement("tr",{className:n("Table-row","Table-empty-row")},r.default.createElement(x.default,{colSpan:s.length+d},r.default.createElement("div",{className:n("Table-empty")},"function"===typeof i?i():i))))},t.prototype.isExpandableTable=function(){var e=this.props.expandable;return!!e},t.prototype.isNestedTable=function(){var e=this,t=this.props.dataSource;return!!(0,l.default)(t,(function(t){return e.hasChildrenRow(t)}))},t.prototype.getExtraColumnCount=function(){var e=this.props,t=e.draggable,n=e.rowSelection,a=0;return t?a++:(this.isExpandableTable()&&a++,n&&a++),a},t.prototype.renderSummaryRow=function(e){var t=this,n=this.props,o=n.classnames,i=n.dataSource,l=[],s=[],u=this.getExtraColumnCount();return Array.isArray(e)&&e.forEach((function(e,n){Array.isArray(e)?s.push(r.default.createElement("tr",{onMouseEnter:function(e){return t.onRowMouseEnter(e)},onMouseLeave:function(e){return t.onRowMouseLeave(e)},key:"summary-tr-"+n,className:o("Table-summary-row")},e.map((function(e,t){var n=0===t?(e.colSpan||1)+u:e.colSpan;return r.default.createElement(x.default,{key:"summary-tr-cell-"+t,fixed:e.fixed,colSpan:n},"function"===typeof e.render?e.render(i):e.render)})))):l.push(r.default.createElement(x.default,{key:"summary-cell-"+n,fixed:e.fixed,colSpan:0===l.length?(e.colSpan||1)+u:e.colSpan},"function"===typeof e.render?e.render(i):e.render))})),e?"function"===typeof e?e(i):(0,a.__spreadArray)([l.length>0?r.default.createElement("tr",{onMouseEnter:function(e){return t.onRowMouseEnter(e)},onMouseLeave:function(e){return t.onRowMouseLeave(e)},key:"summary-row",className:o("Table-summary-row")},l):null],s,!0):null},t.prototype.renderTFoot=function(){var e=this.props,t=e.classnames,n=e.footSummary;return r.default.createElement("tfoot",{ref:this.tfootDom,className:t("Table-summary")},this.renderSummaryRow(n))},t.prototype.updateTableDom=function(e){var t=this.props.classnames,n=e.scrollLeft,a=e.scrollWidth,r=e.offsetWidth,o=this.tableDom.current,i=t("Table-ping-left");n>0?null===o||void 0===o||o.classList.add(i):null===o||void 0===o||o.classList.remove(i);var l=t("Table-ping-right");n+r0&&e.updateSelected(d,t.rowSelection.keyField);var c=[];return t.expandable&&t.expandable.expandedRowKeysExpr?i.forEach((function(e,n){var a,r=(0,m.filter)(t.expandable.expandedRowKeysExpr,{record:e,rowIndex:n});"true"===r&&c.push(e[(null===(a=null===t||void 0===t?void 0:t.expandable)||void 0===a?void 0:a.keyField)||"key"])})):t.expandable&&t.expandable.expandedRowKeys&&(c=(0,a.__spreadArray)([],t.expandable.expandedRowKeys,!0)),l&&c.length>0&&e.updateExpanded(c,t.expandable.keyField),l},t.prototype.componentDidUpdate=function(e){var t=this.props,a=t.store;(0,p.anyChanged)(["columnsTogglable"],e,t)&&a.update({columnsTogglable:t.columnsTogglable}),((0,p.anyChanged)(["source","value","items"],e,t)||!t.value&&!t.items&&(t.data!==e.data||"string"===typeof t.source&&(0,f.isPureVariable)(t.source)))&&n.syncRows(a,t,e)&&this.syncSelected(),(0,s.default)(e.columns,t.columns)||a.update({columns:t.columns})},t.prototype.getPopOverContainer=function(){return(0,o.findDOMNode)(this)},t.prototype.renderCellSchema=function(e,t){var n=this.props.render;if(e&&(0,p.isObject)(e)){e.width,e.children;var r=(0,a.__rest)(e,["width","children"]);return n("cell-field",(0,a.__assign)((0,a.__assign)({},r),{type:"cell-field",column:r,data:t.data,name:e.key}),t)}return e},t.prototype.renderSchema=function(e,t,n){var r=this.props.render;if(t&&(0,p.isObject)(t))return r(e||"field",(0,a.__assign)((0,a.__assign)({},t),{data:n.data}),n);if(Array.isArray(t)){var o=[];return t.forEach((function(t,i){return o.push(r(e||"field",(0,a.__assign)((0,a.__assign)({},t),{data:n.data}),(0,a.__assign)((0,a.__assign)({},n),{key:i})))})),o}return t},t.prototype.buildColumns=function(e){var t=this,n=this.props,o=n.env,i=n.render,s=n.store,u=n.popOverContainer,d=n.canAccessSuperData,c=n.showBadge,h=n.itemBadge,v=n.classnames,g=[],b=[],_=[];return Array.isArray(e)&&e.forEach((function(e,n){var C=(0,a.__assign)({},e),E=null,x={popOverContainer:u||t.getPopOverContainer,value:e.title};(0,p.isObject)(e.title)?E=(0,l.default)(e.title):"string"===typeof e.title&&(E={type:"plain"});var w=function(a){var l,s=t.renderCellSchema(E,x),u=null;return e.remark&&(u=i("remark",{type:"remark",tooltip:e.remark,container:o&&o.getModalContainer?o.getModalContainer:void 0})),r.default.createElement("div",{key:n,className:v("Table-head-cell-wrapper",(l={},l["".concat(e.className)]=!!e.className,l["".concat(e.titleClassName)]=!!e.titleClassName,l))},s,u,a)};Object.assign(C,{title:w}),e.type&&Object.assign(C,{render:function(n,a,r,o){var i={},l=s.getRowByIndex(r),p={children:t.renderCellSchema(e,{data:l.locals,value:e.key?(0,f.resolveVariable)(e.key,d?l.locals:l.data):e.key,popOverContainer:u||t.getPopOverContainer,onQuickChange:function(e,n,a,r){t.handleQuickChange(l,e,n,a,r)},row:l,showBadge:c,itemBadge:h}),props:i};if(e.rowSpanExpr){var v=+(0,m.filter)(e.rowSpanExpr,{record:a,rowIndex:r,colIndex:o});v&&(p.props.rowSpan=v,b.push({colIndex:o,rowIndex:r,rowSpan:v}))}if(e.colSpanExpr){var g=+(0,m.filter)(e.colSpanExpr,{record:a,rowIndex:r,colIndex:o});g&&(p.props.colSpan=g,_.push({colIndex:o,rowIndex:r,colSpan:g}))}return b.forEach((function(e){o===e.colIndex&&r>e.rowIndex&&re.colIndex&&o0&&(C.expandedRowRender=function(t,n){return e.renderSchema("expandableBody",u,{data:t})}),s.expandedRowClassNameExpr&&(C.expandedRowClassName=function(e,t){return(0,m.filter)(s.expandedRowClassNameExpr,{record:e,rowIndex:t})},delete C.expandedRowClassNameExpr)}var x=null;if(l){l.selectedRowKeys;var w=l.selections,S=(0,a.__rest)(l,["selectedRowKeys","selections"]);if(x=(0,a.__assign)({selectedRowKeys:b.currentSelectedRowKeys},S),l.disableOn){var O=l.disableOn;x.getCheckboxProps=function(e,t){return{disabled:(0,m.evalExpression)(O,{record:e,rowIndex:t})}},delete x.disableOn}w&&Array.isArray(w)&&(x.selections=[],w.forEach((function(e){x.selections.push({key:e.key,text:e.text,onSelect:function(t){var n=[];n=t.filter((function(t,n){return"all"===e.key||"none"!==e.key&&("invert"===e.key?!b.currentSelectedRowKeys.includes(t):"odd"===e.key?n%2===0:"even"!==e.key||n%2!==0)})),b.updateSelected(n,l.keyField)}})})))}var k=void 0;g&&(k=function(e,t){return(0,m.filter)(g,{record:e,rowIndex:t})});var D=void 0;if(y){var N=Array.isArray(y)?y.filter((function(e){return!e.hiddenOnHover})):[];if(!N.length)return null;D=function(e,t){return r.default.createElement("div",{className:h("Table-itemActions")},N.map((function(r,o){return n("itemAction/".concat(o),(0,a.__assign)((0,a.__assign)({},r),{isMenuItem:!0}),{key:o,item:e,data:e,rowIndex:t})})))}}return r.default.createElement(c.default,(0,a.__assign)({},_,{title:this.renderSchema("title",o,{data:this.props.data}),footer:this.renderSchema("footer",i,{data:this.props.data}),columns:this.buildColumns(b.filteredColumns),dataSource:b.dataSource,rowSelection:x,rowClassName:k,expandable:C,footSummary:this.buildSummary("footSummary",d),headSummary:this.buildSummary("headSummary",p),loading:this.renderSchema("loading",f),placeholder:this.renderSchema("placeholder",v),onSelect:this.handleSelected,onSelectAll:this.handleSelectedAll,onSort:this.handleSort,onFilter:this.handleFilter,onDrag:this.handleDragOver,itemActions:D}))},t.prototype.render=function(){var e=this.props.classnames;return this.renderedToolbars=[],r.default.createElement("div",{className:e("Table-render-wrapper")},this.renderActions("header"),this.renderTable())},t.contextType=u.ScopedContext,(0,a.__decorate)([p.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object,Boolean,"function"===typeof(b="undefined"!==typeof Array&&Array)?b:Object,"function"===typeof(_="undefined"!==typeof Array&&Array)?_:Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleSelected",null),(0,a.__decorate)([p.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Boolean,"function"===typeof(C="undefined"!==typeof Array&&Array)?C:Object,"function"===typeof(E="undefined"!==typeof Array&&Array)?E:Object,"function"===typeof(x="undefined"!==typeof Array&&Array)?x:Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleSelectedAll",null),(0,a.__decorate)([p.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(w="undefined"!==typeof c.SortProps&&c.SortProps)?w:Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleSort",null),(0,a.__decorate)([p.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleFilter",null),(0,a.__decorate)([p.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(S="undefined"!==typeof Array&&Array)?S:Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleDragOver",null),t=n=(0,a.__decorate)([(0,d.Renderer)({type:"table-v2",storeType:g.TableStoreV2.name,name:"table-v2",isolateScope:!0}),(0,a.__metadata)("design:paramtypes",[Object,"function"===typeof(O="undefined"!==typeof u.IScopedContext&&u.IScopedContext)?O:Object])],t),t}(r.default.Component);t.default=b},"9b5e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkAction=void 0;var a=n("9ab4"),r=n("7f82"),o=(0,a.__importDefault)(n("3eea")),i=n("0d19"),l=function(){function e(){}return e.prototype.run=function(e,t,n){var i,l,s,u,d,c;return(0,a.__awaiter)(this,void 0,void 0,(function(){var n;return(0,a.__generator)(this,(function(p){if(!(null===(i=t.props.env)||void 0===i?void 0:i.jumpTo))throw new Error("env.jumpTo is required!");return n=(0,r.buildApi)({url:(null===(l=e.args)||void 0===l?void 0:l.url)||(null===(s=e.args)||void 0===s?void 0:s.link),method:"get"},(0,a.__assign)((0,a.__assign)({},null!==(d=null===(u=e.args)||void 0===u?void 0:u.params)&&void 0!==d?d:{}),(0,o.default)(null!==(c=e.args)&&void 0!==c?c:{},["params","blank","url","link"])),{autoAppend:!0}),t.props.env.jumpTo(n.url,(0,a.__assign)({actionType:e.actionType,type:"button"},e.args),e.args),[2]}))}))},e}();t.LinkAction=l,(0,i.registerAction)("openlink",new l)},"9b7c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadiosControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("4d26")),i=(0,a.__importDefault)(n("02245")),l=n("d55b"),s=n("d369"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return(0,a.__extends)(t,e),t.prototype.doAction=function(e,t,n){var a=this.props,r=a.resetValue,o=a.onChange,i=null===e||void 0===e?void 0:e.actionType;"clear"===i?null===o||void 0===o||o(""):"reset"===i&&(null===o||void 0===o||o(null!==r&&void 0!==r?r:""))},t.prototype.handleChange=function(e){return(0,a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,i,l,u,d,c;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,n=t.joinValues,r=t.extractValue,o=t.valueField,i=t.onChange,l=t.dispatchEvent,u=t.options,d=t.data,e&&(n||r)&&(e=e[o||"value"]),[4,l("change",(0,s.createObject)(d,{value:e,options:u}))];case 1:return c=a.sent(),(null===c||void 0===c?void 0:c.prevented)?[2]:(i&&i(e),[2])}}))}))},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix,a=e.value,l=(e.onChange,e.disabled),s=e.joinValues,u=e.extractValue,d=e.delimiter,c=e.placeholder,p=e.options,f=e.inline,m=void 0===f||f,h=e.formMode,v=e.columnsCount,g=e.classPrefix,y=e.itemClassName,b=e.labelClassName,_=e.labelField,C=e.valueField,E=e.translate,x=e.optionType,w=e.level;return r.default.createElement(i.default,{inline:m||"inline"===h,className:(0,o.default)("".concat(n,"RadiosControl"),t),value:"undefined"===typeof a||null===a?"":a,disabled:l,onChange:this.handleChange,joinValues:s,extractValue:u,delimiter:d,labelClassName:b,labelField:_,valueField:C,placeholder:E(c),options:p,columnsCount:v,classPrefix:g,itemClassName:y,optionType:x,level:w})},t.defaultProps={columnsCount:1},(0,a.__decorate)([s.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof l.Option&&l.Option)?n:Object]),(0,a.__metadata)("design:returntype",Promise)],t.prototype,"handleChange",null),t}(r.default.Component);t.default=u;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.defaultProps={multiple:!1,inline:!0},t=(0,a.__decorate)([(0,l.OptionsControl)({type:"radios",sizeMutable:!1})],t),t}(u);t.RadiosControlRenderer=d},"9b93":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=n("ab5b"),o=10;function i(e,t){return e>t&&e>o?"horizontal":t>e&&t>o?"vertical":""}var l={startX:0,startY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},s=function(){var e=(0,r.useRef)(l),t=e.current,n=function(t){"function"===typeof t&&(t=t(e.current)),Object.entries(t).forEach((function(t){var n=t[0],a=t[1];e.current[n]=a}))},o=(0,r.useCallback)((function(){return"vertical"===t.direction}),[t.direction]),s=(0,r.useCallback)((function(){return"horizontal"===t.direction}),[t.direction]),u=function(){n({deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""})},d=function(e){u(),n({startX:e.touches[0].clientX,startY:e.touches[0].clientY})},c=function(e){var t=e.touches[0];n((function(e){var n=(0,a.__assign)({},e);return n.deltaX=t.clientX<0?0:t.clientX-n.startX,n.deltaY=t.clientY-n.startY,n.offsetX=Math.abs(n.deltaX),n.offsetY=Math.abs(n.deltaY),n.direction||(n.direction=i(n.offsetX,n.offsetY)),n}))};return(0,a.__assign)((0,a.__assign)({},t),{move:c,start:d,reset:u,isVertical:o,isHorizontal:s})};t.default=s},"9d47":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRendererEventListeners=t.dispatchEvent=t.bindEvent=t.createRendererEvent=void 0;var a=n("9ab4"),r=n("0d19"),o=[];function i(e,t){var n={context:t,type:e,prevented:!1,stoped:!1,preventDefault:function(){n.prevented=!0},stopPropagation:function(){n.stoped=!0},get data(){return n.context.data},setData:function(e){n.context.data=e}};return n}t.createRendererEvent=i;var l=function(e){if(e){var t=e.props.$schema.onEvent;if(t){for(var n=function(n){var a=o.some((function(t){return t.renderer===e&&t.type===n}));a||o.push({renderer:e,type:n,weight:t[n].weight||0,actions:t[n].actions})},a=0,r=Object.keys(t);a0?"rdtTimeWithS":a?"rdtTime":"")},r.default.createElement("div",{key:"dt",className:(0,i.default)("rdtPicker",a&&!l?"rdtPickerTimeWithoutD":a&&l?"rdtPickerTime":l&&!a?"rdtPickerDate":"")},r.default.createElement(u,{view:this.state.currentView,viewProps:d,timeRangeHeader:s})))},t}(r.default.Component),p=(0,s.themeable)(c);t.default=p},a1c6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){return!!e&&"offsetParent"in e};function r(e){var t=null===e||void 0===e?void 0:e.ownerDocument,n=e&&e.offsetParent;while(a(n)&&"HTML"!==n.nodeName&&"static"===getComputedStyle(n).getPropertyValue("position"))n=n.offsetParent;return n||t.documentElement}t.default=r},a203:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 14 16","p-id":1463,className:"icon"},e),r.default.createElement("path",{d:"M13.5722,7.254 L1.2838,0.115 C1.019,-0.038 0.6926,-0.038 0.4278,0.115 C0.163,0.269 -1.83725092e-07,0.554 -1.83725092e-07,0.861 L-1.83725092e-07,15.139 C-0.0002,15.446 0.1629,15.731 0.4278,15.885 C0.6927,16.039 1.019,16.038 1.2838,15.884 L13.5721,8.746 C13.8368,8.592 13.9999998,8.308 13.9999998,8 C13.9999998,7.692 13.837,7.408 13.5722,7.254 Z",id:"path-1"}))};t.default=o},a35c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exportExcel=void 0;var a=n("9ab4"),r=n("a97c");n("f91a");var o=n("e8da"),i=n("21a6"),l=n("d369"),s=n("7e49"),u=n("c842"),d=n("f7d3"),c=(0,a.__importDefault)(n("c1df")),p=function(){var e;return function(t){return e||(e=document.createElement("a")),e.href=t,e.href}}();function f(e,t,n){var f,m;return(0,a.__awaiter)(this,void 0,void 0,(function(){var h,v,g,y,b,_,C,E,x,w,S,O,k,D,N,T,P,A,I,R,F,M,j,L,B,V,z,U,H,W,$,q,K,Y,G,J,Q,Z,X,ee,te,ne,ae,re,oe,ie,le,se,ue,de,ce,pe,fe;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return h=t.store,v=t.env,t.classnames,g=t.translate,y=t.data,b=h.exportColumns||[],_=[],E="data","object"===typeof n&&n.api?[4,v.fetcher(n.api,y)]:[3,2];case 1:return ne=a.sent(),ne.data?(_=Array.isArray(ne.data)?ne.data:ne.data.rows||ne.data.items,C=o.TableStore.create((0,d.getSnapshot)(h)),C.initRows(_),_=C.rows,[3,3]):(v.notify("warning",g("placeholder.noData")),[2]);case 2:_=h.rows,a.label=3;case 3:if("object"===typeof n&&n.filename&&(E=(0,r.filter)(n.filename,y,"| raw")),0===_.length)return v.notify("warning",g("placeholder.noData")),[2];x=new e.Workbook,w=x.addWorksheet("sheet",{properties:{defaultColWidth:15}}),w.views=[{state:"frozen",xSplit:0,ySplit:1}],S=n.columns,(0,s.isPureVariable)(S)&&(S=(0,s.resolveVariableAndFilter)(S,y,"| raw")),n.exportColumns&&Array.isArray(n.exportColumns)&&(b=n.exportColumns),O=S?b.filter((function(e){var t=S;return!(!e.name||-1===t.indexOf(e.name))})):b,k=O.map((function(e){return e.label})),D=w.getRow(1),D.values=k,w.autoFilter={from:{row:1,column:1},to:{row:1,column:k.length}},N={},T=1,P=0,A=_,a.label=4;case 4:if(!(P$?W>q&&($=q*$/W,W=q):$>q&&(W=q*W/$,$=q),K=U.match(/data:image\/(.*);/),Y="png",K&&(Y=K[1]),"png"!=Y&&"jpeg"!=Y&&"gif"!=Y?(R.getCell(F).value=V,[3,17]):(G=x.addImage({base64:U,extension:Y}),Q=p(V),w.addImage(G,{tl:{col:F-1,row:T-1},ext:{width:W,height:$},hyperlinks:{tooltip:Q}}),[3,10]);case 9:return J=a.sent(),console.warn(J.stack),[3,10];case 10:return[3,17];case 11:return"link"!=z?[3,12]:(Q=p(V),R.getCell(F).value={text:V,hyperlink:Q},[3,17]);case 12:return"mapping"!==z?[3,16]:(Z=L.map,X=L.source,X?(ee=X,(0,s.isPureVariable)(X)&&(ee=(0,s.resolveVariableAndFilter)(X,y,"| raw")),te=JSON.stringify(X),te in N?(Z=N[te],[3,15]):[3,13]):[3,15]);case 13:return[4,v.fetcher(ee,y)];case 14:ne=a.sent(),ne.data&&(N[te]=ne.data,Z=ne.data),a.label=15;case 15:return"undefined"!==typeof V&&Z&&(null!==(f=Z[V])&&void 0!==f?f:Z["*"])?(ae=null!==(m=Z[V])&&void 0!==m?m:!0===V&&Z["1"]?Z["1"]:!1===V&&Z["0"]?Z["0"]:Z["*"],R.getCell(F).value=(0,l.removeHTMLTag)(ae)):R.getCell(F).value=(0,l.removeHTMLTag)(V),[3,17];case 16:"date"===z?(ae=void 0,re=L,oe=re.fromNow,ie=re.format,le=void 0===ie?"YYYY-MM-DD":ie,se=re.valueFormat,ue=void 0===se?"X":se,V&&(de=(0,c.default)(V,c.default.ISO_8601),ce=(0,c.default)(V,ue),ae=de.isValid()?de.format(le):!!ce.isValid()&&ce.format(le)),oe&&(ae=(0,c.default)(V).fromNow()),ae&&(R.getCell(F).value=ae)):L.tpl?R.getCell(F).value=(0,l.removeHTMLTag)((0,r.filter)(L.tpl,(0,l.createObject)(y,I.data))):R.getCell(F).value=V,a.label=17;case 17:return M++,[3,5];case 18:return P++,[3,4];case 19:return[4,x.xlsx.writeBuffer()];case 20:return pe=a.sent(),pe&&(fe=new Blob([pe],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),(0,i.saveAs)(fe,E+".xlsx")),[2]}}))}))}t.exportExcel=f},a4b3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocationRenderer=t.LocationControl=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("2ab5")),i=(0,a.__importDefault)(n("9834")),l=n("a97c"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){return r.default.createElement("div",{className:this.props.classnames("LocationControl")},r.default.createElement(i.default,(0,a.__assign)({},this.props,{ak:(0,l.filter)(this.props.ak,this.props.data)})))},t.defaultProps={vendor:"baidu",coordinatesType:"bd09"},t}(r.default.Component);t.LocationControl=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.default)({type:"location-picker"})],t),t}(s);t.LocationRenderer=u},a576:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 200 189",className:"icon"},e),r.default.createElement("g",{transform:"translate(0.000000, -0.195312)",fill:"currentColor",fillRule:"nonzero"},r.default.createElement("path",{d:"M195.85125,93.1203125 L110.60125,7.9453125 L104.91375,2.1953125 C102.202931,-0.499697856 97.8245686,-0.499697856 95.11375,2.1953125 L4.15125,93.1203125 C1.45507434,95.8051128 -0.0415864607,99.4656205 0.000355140024,103.270313 C0.158203791,111.052241 6.53032046,117.268533 14.31375,117.232812 L23.68875,117.232812 L23.68875,189.082812 L176.31375,189.082812 L176.31375,117.232812 L185.88875,117.232812 C189.65125,117.232812 193.20125,115.757812 195.87625,113.095312 C198.55125,110.420312 200.00125,106.870312 200.00125,103.095312 C200.00125,99.3453125 198.52625,95.7953125 195.85125,93.1203125 Z M112.35125,173.207812 L87.65125,173.207812 L87.65125,128.207812 L112.35125,128.207812 L112.35125,173.207812 L112.35125,173.207812 Z M160.42625,101.357812 L160.42625,173.207812 L126.47625,173.207812 L126.47625,122.907812 C126.47625,118.0339 122.525163,114.082812 117.65125,114.082812 L82.35125,114.082812 C77.4773371,114.082812 73.52625,118.0339 73.52625,122.907812 L73.52625,173.207812 L39.57625,173.207812 L39.57625,101.357812 L18.40125,101.357812 L100.02625,19.7953125 L105.11375,24.8953125 L181.61375,101.357812 L160.42625,101.357812 Z",id:"\\u5F62\\u72B6"})))};t.default=o},a5e8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e,t,n=this.props,a=n.classnames,o=n.children,i=n.dom;if(i){var l=null===(t=null===(e=i.closest("table"))||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.parentElement,s=i.getBoundingClientRect(),u=s.height,d=s.top-l.getBoundingClientRect().top;return r.default.createElement("div",{className:a("Table-itemActions-wrap"),style:{top:d+"px",height:u+"px"}},o)}},t}(r.default.Component);t.default=o},a613:function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ChartRenderer=exports.Chart=void 0;var tslib_1=__webpack_require__("9ab4"),react_1=(0,tslib_1.__importDefault)(__webpack_require__("ab5b")),factory_1=__webpack_require__("f83d"),service_1=__webpack_require__("1727"),tpl_1=__webpack_require__("a97c"),classnames_1=(0,tslib_1.__importDefault)(__webpack_require__("4d26")),LazyComponent_1=(0,tslib_1.__importDefault)(__webpack_require__("a987")),resize_sensor_1=__webpack_require__("2a98"),tpl_builtin_1=__webpack_require__("7e49"),api_1=__webpack_require__("7f82"),Scoped_1=__webpack_require__("2b46"),helper_1=__webpack_require__("d369"),mobx_state_tree_1=__webpack_require__("f7d3"),debounce_1=(0,tslib_1.__importDefault)(__webpack_require__("b047")),EVAL_CACHE={};function recoverFunctionType(config){["formatter","sort","renderItem"].forEach((function(key){for(var objects=(0,helper_1.findObjectsWithKey)(config,key),_i=0,objects_1=objects;_i500){var i=e.target.closest("[data-group-id]");if(i)return this.host=i,this.lastMoveAt=o,this.lastX=0,this.lastY=0,void this.handleDragOver(e)}}else if(this.lastMoveAt=o,this.lastX=e.clientX,this.lastY=e.clientY,t&&!t.classList.contains("is-ghost")&&t.closest("[data-group-id]")===this.host){var l=t.parentElement,s=[].slice.apply(l.children),u=s.indexOf(t);this.ghost.parentElement!==l&&l.appendChild(this.ghost);var d=t.getBoundingClientRect(),p=a>0&&e.clientY>d.top+d.height/2,f=p?u:u-1,m=s.indexOf(this.ghost);f!==m&&(c.default.capture(l),f===s.length-1?l.appendChild(this.ghost):l.insertBefore(this.ghost,s[f+1]),c.default.animateAll())}},t.prototype.handleDragDrop=function(){var e=this.props.onChange,t=this.dragTarget.getAttribute("data-id"),n=this.host.getAttribute("data-group-id"),a=[].slice.call(this.ghost.parentElement.children),r=a.indexOf(this.dragTarget);~r&&a.splice(r,1);var o=a.indexOf(this.ghost),i=this.props.value,l=(0,d.findTreeIndex)([i],(function(e){return e.id===t}));if(l){var s=(0,d.getTree)([i],l.concat());i=(0,d.spliceTree)([i],l,1)[0];var u=(0,d.findTreeIndex)([i],(function(e){return e.id===n}));u&&(i=(0,d.spliceTree)([i],u.concat(o),0,s)[0],e(i))}},t.prototype.handleDragEnd=function(e){var t,n=e.target;n.removeEventListener("dragend",this.handleDragEnd),document.body.removeEventListener("dragover",this.handleDragOver),document.body.removeEventListener("drop",this.handleDragDrop),this.dragTarget.classList.remove("is-dragging"),delete this.dragTarget,null===(t=this.ghost.parentElement)||void 0===t||t.removeChild(this.ghost),delete this.ghost},t.prototype.render=function(){var e=this.props,t=e.classnames,n=e.fieldClassName,o=e.fields,i=e.funcs,l=e.onChange,u=e.value,c=e.showNot,p=e.showANDOR,f=e.data,m=e.disabled,h=e.searchable,v=e.builderMode,g=e.formula,y=e.popOverContainer,b=e.renderEtrValue,_=Array.isArray(null===u||void 0===u?void 0:u.children)?(0,a.__assign)((0,a.__assign)({},u),{children:(0,d.mapTree)(u.children,(function(e){return e.id?e:(0,a.__assign)((0,a.__assign)({},e),{id:(0,d.guid)()})}))}):u;return r.default.createElement(s.default,{builderMode:v,config:this.config,funcs:i||this.config.funcs,fields:o||this.config.fields,value:_,onChange:l,classnames:t,fieldClassName:n,removeable:!1,onDragStart:this.handleDragStart,showANDOR:p,showNot:c,data:f,disabled:m,searchable:h,formula:g,popOverContainer:y,renderEtrValue:b})},(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.DragEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragStart",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(o="undefined"!==typeof DragEvent&&DragEvent)?o:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragOver",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragDrop",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(i="undefined"!==typeof Event&&Event)?i:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleDragEnd",null),t}(r.default.Component);t.QueryBuilder=p,t.default=(0,o.themeable)((0,i.localeable)((0,l.uncontrollable)(p,{value:"onChange"})))},a64a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateRangePicker=t.advancedRanges=t.availableRanges=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("c1df")),i=n("8bc8"),l=n("c264"),s=(0,a.__importDefault)(n("35b7")),u=(0,a.__importDefault)(n("a02a")),d=(0,a.__importDefault)(n("dbb0")),c=(0,a.__importDefault)(n("1f88")),p=n("d77e"),f=n("d369"),m=n("32e1"),h=(0,a.__importDefault)(n("e47d")),v=(0,a.__importDefault)(n("5b6b"));t.availableRanges={today:{label:"Date.today",startDate:function(e){return e.startOf("day")},endDate:function(e){return e}},yesterday:{label:"Date.yesterday",startDate:function(e){return e.add(-1,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}},tomorrow:{label:"Date.tomorrow",startDate:function(e){return e.add(1,"days").startOf("day")},endDate:function(e){return e.add(1,"days").endOf("day")}},"1daysago":{label:"DateRange.1daysago",startDate:function(e){return e.add(-1,"days")},endDate:function(e){return e}},"1dayago":{label:"DateRange.1daysago",startDate:function(e){return e.add(-1,"days")},endDate:function(e){return e}},"7daysago":{label:"DateRange.7daysago",startDate:function(e){return e.add(-7,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}},"30daysago":{label:"DateRange.30daysago",startDate:function(e){return e.add(-30,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}},"90daysago":{label:"DateRange.90daysago",startDate:function(e){return e.add(-90,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}},prevweek:{label:"DateRange.lastWeek",startDate:function(e){return e.startOf("week").add(-1,"weeks")},endDate:function(e){return e.startOf("week").add(-1,"days").endOf("day")}},thisweek:{label:"DateRange.thisWeek",startDate:function(e){return e.startOf("week")},endDate:function(e){return e.endOf("week")}},thismonth:{label:"DateRange.thisMonth",startDate:function(e){return e.startOf("month")},endDate:function(e){return e.endOf("month")}},thisquarter:{label:"DateRange.thisQuarter",startDate:function(e){return e.startOf("quarter")},endDate:function(e){return e.endOf("quarter")}},prevmonth:{label:"DateRange.lastMonth",startDate:function(e){return e.startOf("month").add(-1,"month")},endDate:function(e){return e.startOf("month").add(-1,"day").endOf("day")}},prevquarter:{label:"DateRange.lastQuarter",startDate:function(e){return e.startOf("quarter").add(-1,"quarter")},endDate:function(e){return e.startOf("quarter").add(-1,"day").endOf("day")}},thisyear:{label:"DateRange.thisYear",startDate:function(e){return e.startOf("year")},endDate:function(e){return e.endOf("year")}},prevyear:{label:"DateRange.lastYear",startDate:function(e){return e.startOf("year").add(-1,"year")},endDate:function(e){return e.endOf("year").add(-1,"year").endOf("day")}},lastYear:{label:"DateRange.lastYear",startDate:function(e){return e.startOf("year").add(-1,"year")},endDate:function(e){return e.endOf("year").add(-1,"year").endOf("day")}}},t.advancedRanges=[{regexp:/^(\d+)hoursago$/,resolve:function(e,t,n){return{label:e("DateRange.hoursago",{hours:n}),startDate:function(e){return e.add(-n,"hours").startOf("hour")},endDate:function(e){return e.add(-1,"hours").endOf("hours")}}}},{regexp:/^(\d+)hourslater$/,resolve:function(e,t,n){return{label:e("DateRange.hourslater",{hours:n}),startDate:function(e){return e.startOf("hour")},endDate:function(e){return e.add(n,"hours").endOf("hour")}}}},{regexp:/^(\d+)daysago$/,resolve:function(e,t,n){return{label:e("DateRange.daysago",{days:n}),startDate:function(e){return e.add(-n,"days").startOf("day")},endDate:function(e){return e.add(-1,"days").endOf("day")}}}},{regexp:/^(\d+)dayslater$/,resolve:function(e,t,n){return{label:e("DateRange.dayslater",{days:n}),startDate:function(e){return e.startOf("day")},endDate:function(e){return e.add(n,"days").endOf("day")}}}},{regexp:/^(\d+)weeksago$/,resolve:function(e,t,n){return{label:e("DateRange.weeksago",{weeks:n}),startDate:function(e){return e.startOf("week").add(-n,"weeks")},endDate:function(e){return e.startOf("week").add(-1,"days").endOf("day")}}}},{regexp:/^(\d+)weekslater$/,resolve:function(e,t,n){return{label:e("DateRange.weekslater",{weeks:n}),startDate:function(e){return e.startOf("week")},endDate:function(e){return e.startOf("week").add(n,"weeks").endOf("day")}}}},{regexp:/^(\d+)monthsago$/,resolve:function(e,t,n){return{label:e("DateRange.monthsago",{months:n}),startDate:function(e){return e.startOf("months").add(-n,"months")},endDate:function(e){return e.startOf("month").add(-1,"days").endOf("day")}}}},{regexp:/^(\d+)monthslater$/,resolve:function(e,t,n){return{label:e("DateRange.monthslater",{months:n}),startDate:function(e){return e.startOf("month")},endDate:function(e){return e.startOf("month").add(n,"months").endOf("day")}}}},{regexp:/^(\d+)quartersago$/,resolve:function(e,t,n){return{label:e("DateRange.quartersago",{quarters:n}),startDate:function(e){return e.startOf("quarters").add(-n,"quarters")},endDate:function(e){return e.startOf("quarter").add(-1,"days").endOf("day")}}}},{regexp:/^(\d+)quarterslater$/,resolve:function(e,t,n){return{label:e("DateRange.quarterslater",{quarters:n}),startDate:function(e){return e.startOf("quarter")},endDate:function(e){return e.startOf("quarter").add(n,"quarters").endOf("day")}}}},{regexp:/^(\d+)yearsago$/,resolve:function(e,t,n){return{label:e("DateRange.yearsago",{years:n}),startDate:function(e){return e.startOf("years").add(-n,"years")},endDate:function(e){return e.startOf("year").add(-1,"days").endOf("day")}}}},{regexp:/^(\d+)yearslater$/,resolve:function(e,t,n){return{label:e("DateRange.yearslater",{years:n}),startDate:function(e){return e.startOf("year")},endDate:function(e){return e.startOf("year").add(n,"years").endOf("day")}}}}];var g=function(e){function n(t){var a=e.call(this,t)||this;a.isFirstClick=!0,a.nextMonth=(0,o.default)().add(1,"months"),a.startInputRef=r.default.createRef(),a.endInputRef=r.default.createRef(),a.calendarRef=r.default.createRef(),a.open=a.open.bind(a),a.openStart=a.openStart.bind(a),a.openEnd=a.openEnd.bind(a),a.close=a.close.bind(a),a.startInputChange=a.startInputChange.bind(a),a.endInputChange=a.endInputChange.bind(a),a.handleDateChange=a.handleDateChange.bind(a),a.handleStartDateChange=a.handleStartDateChange.bind(a),a.handeleEndDateChange=a.handeleEndDateChange.bind(a),a.handleTimeStartChange=a.handleTimeStartChange.bind(a),a.handleTimeEndChange=a.handleTimeEndChange.bind(a),a.handleFocus=a.handleFocus.bind(a),a.handleBlur=a.handleBlur.bind(a),a.checkStartIsValidDate=a.checkStartIsValidDate.bind(a),a.checkEndIsValidDate=a.checkEndIsValidDate.bind(a),a.confirm=a.confirm.bind(a),a.clearValue=a.clearValue.bind(a),a.dom=r.default.createRef(),a.handleClick=a.handleClick.bind(a),a.handleKeyPress=a.handleKeyPress.bind(a),a.handlePopOverClick=a.handlePopOverClick.bind(a),a.renderDay=a.renderDay.bind(a),a.renderMonth=a.renderMonth.bind(a),a.renderQuarter=a.renderQuarter.bind(a),a.renderYear=a.renderYear.bind(a),a.handleMobileChange=a.handleMobileChange.bind(a),a.handleOutClick=a.handleOutClick.bind(a);var i=a.props,l=i.format,s=i.joinValues,u=i.delimiter,d=i.value,c=i.inputFormat,p=n.unFormatValue(d,l,s,u),f=p.startDate,m=p.endDate;return a.state={isOpened:!1,isFocused:!1,editState:"start",startDate:f,endDate:m,startInputValue:null===f||void 0===f?void 0:f.format(c),endInputValue:null===m||void 0===m?void 0:m.format(c)},a}return(0,a.__extends)(n,e),n.formatValue=function(e,t,n,a,r){var i,l;return void 0===r&&(r=!1),e=[null===(i=r?o.default.utc(e.startDate):e.startDate)||void 0===i?void 0:i.format(t),null===(l=r?o.default.utc(e.endDate):e.endDate)||void 0===l?void 0:l.format(t)],n&&(e=e.join(a)),e},n.unFormatValue=function(e,t,n,a){return e?(n&&"string"===typeof e&&(e=e.split(a)),{startDate:e[0]?(0,o.default)(e[0],t):void 0,endDate:e[1]?(0,o.default)(e[1],t):void 0}):{startDate:void 0,endDate:void 0}},n.prototype.componentDidMount=function(){var e,t;document.body.addEventListener("click",this.handleOutClick,!0),null===(t=null===(e=this.props)||void 0===e?void 0:e.onRef)||void 0===t||t.call(e,this)},n.prototype.componentWillUnmount=function(){document.body.removeEventListener("click",this.handleOutClick,!0)},n.prototype.handleOutClick=function(e){e.target&&this.dom.current&&!this.dom.current.contains(e.target)&&this.calendarRef.current&&!this.calendarRef.current.contains(e.target)&&this.state.isOpened&&(e.preventDefault(),this.close())},n.prototype.componentDidUpdate=function(e){var t=this.props,a=t.value,r=t.format,o=t.joinValues,i=t.inputFormat,l=t.delimiter;if(e.value!==a){var s=n.unFormatValue(a,r,o,l),u=s.startDate,d=s.endDate;this.setState({startDate:u,endDate:d,startInputValue:null===u||void 0===u?void 0:u.format(i),endInputValue:null===d||void 0===d?void 0:d.format(i)})}},n.prototype.focus=function(){this.dom.current&&!this.props.disabled&&this.dom.current.focus()},n.prototype.blur=function(){this.dom.current&&!this.props.disabled&&this.dom.current.blur()},n.prototype.handleFocus=function(e){this.setState({isFocused:!0});var t=this.props.onFocus;t&&t(e)},n.prototype.handleBlur=function(e){this.setState({isFocused:!1});var t=this.props.onBlur;t&&t(e)},n.prototype.open=function(){this.props.disabled||this.setState({isOpened:!0})},n.prototype.openStart=function(){this.props.disabled||this.setState({isOpened:!0,editState:"start"})},n.prototype.openEnd=function(){this.props.disabled||this.setState({isOpened:!0,editState:"end"})},n.prototype.close=function(){this.setState({isOpened:!1,editState:void 0},this.blur)},n.prototype.handleClick=function(){this.state.isOpened?this.close():this.open()},n.prototype.handlePopOverClick=function(e){e.stopPropagation(),e.preventDefault()},n.prototype.handleKeyPress=function(e){" "===e.key&&(this.handleClick(),e.preventDefault())},n.prototype.confirm=function(){var e;(this.state.startDate||this.state.endDate)&&((null===(e=this.state.startDate)||void 0===e?void 0:e.isAfter(this.state.endDate))||(this.props.onChange(n.formatValue({startDate:this.state.startDate,endDate:this.state.endDate},this.props.format,this.props.joinValues,this.props.delimiter,this.props.utc)),this.state.startDate&&!this.state.endDate?this.setState({editState:"end"}):this.close()))},n.prototype.filterDate=function(e,t,n,a){void 0===a&&(a="start");var r=e.clone();return r=t?"string"===typeof n&&/ss/.test(n)?r["start"===a?"startOf":"endOf"]("second"):"string"===typeof n&&/mm/.test(n)?r["start"===a?"startOf":"endOf"]("minute"):"string"===typeof n&&/HH/i.test(n)?r["start"===a?"startOf":"endOf"]("hour"):"string"===typeof n&&/Q/i.test(n)?r["start"===a?"startOf":"endOf"]("quarter"):r["start"===a?"startOf":"endOf"]("day"):r["start"===a?"startOf":"endOf"]("day"),r},n.prototype.handleDateChange=function(e){var t=this.state.editState;"start"===t?this.handleStartDateChange(e):"end"===t&&this.handeleEndDateChange(e)},n.prototype.handleStartDateChange=function(e){var t=this.props,n=t.timeFormat,a=t.minDate,r=t.inputFormat,o=t.type,i=this.state.startDate;a&&e.isBefore(a)&&(e=a);var l=this.filterDate(e,i||a,n,"start"),s={startDate:l,startInputValue:l.format(r)};"input-date-range"!==o&&"input-year-range"!==o&&"input-quarter-range"!==o&&"input-month-range"!==o||(s.editState="end"),this.setState(s)},n.prototype.handeleEndDateChange=function(e){var t=this,n=this.props,a=n.embed,r=n.timeFormat,o=n.inputFormat,i=this.state,l=i.startDate,s=i.endDate;e=this.getEndDateByDuration(e),e.isBefore(l)&&this.setState({startDate:void 0,startInputValue:""});var u=this.filterDate(e,s,r,"end");this.setState({endDate:u,endInputValue:u.format(o)},(function(){a&&t.confirm()}))},n.prototype.startInputChange=function(e){var t=this.props,n=t.onChange,a=t.inputFormat,r=(t.format,t.utc,e.currentTarget.value);if(this.setState({startInputValue:r}),""===r)n("");else{var i=this.getStartDateByDuration((0,o.default)(r,a));this.setState({startDate:i})}},n.prototype.endInputChange=function(e){var t=this.props,n=t.onChange,a=t.inputFormat,r=(t.format,t.utc,e.currentTarget.value);if(this.setState({endInputValue:r}),""===r)n("");else{var i=this.getEndDateByDuration((0,o.default)(r,a));this.setState({endDate:i})}},n.prototype.getEndDateByDuration=function(e){var t=this.props,n=t.minDuration,a=t.maxDuration,r=t.type,o=this.state,i=o.startDate;o.endDate,o.editState;return i?("input-time-range"===r&&i&&e.set({year:i.year(),month:i.month(),date:i.date()}),n&&e.isBefore(i.clone().add(n))&&(e=i.clone().add(n)),a&&e.isAfter(i.clone().add(a))&&(e=i.clone().add(a)),e):e},n.prototype.getStartDateByDuration=function(e){var t=this.props,n=t.minDuration,a=t.maxDuration,r=t.type,o=this.state,i=o.endDate;o.editState;return i?("input-time-range"===r&&i&&e.set({year:i.year(),month:i.month(),date:i.date()}),n&&e.isBefore(i.clone().subtract(n))&&(e=i.clone().subtract(n)),a&&e.isAfter(i.clone().subtract(a))&&(e=i.clone().subtract(a)),e):e},n.prototype.handleTimeStartChange=function(e){var t=this,n=this.props,a=n.embed,r=(n.timeFormat,n.inputFormat),o=(n.minDuration,n.maxDuration,n.minDate),i=this.state,l=(i.startDate,i.endDate);l&&e.set({year:l.year(),month:l.month(),date:l.date()}),o&&e&&e.isBefore(o,"second")&&(e=o),this.setState({startDate:e,startInputValue:e.format(r)},(function(){a&&t.confirm()}))},n.prototype.handleTimeEndChange=function(e){var t=this,n=this.props,a=n.embed,r=(n.timeFormat,n.inputFormat),o=n.minDuration,i=n.maxDuration,l=n.maxDate,s=this.state,u=s.startDate;s.endDate;u&&e.set({year:u.year(),month:u.month(),date:u.date()}),l&&e&&e.isAfter(l,"second")&&(e=l),u&&o&&e.isAfter(u.clone().add(o))&&(e=u.clone().add(o)),u&&i&&e.isBefore(u.clone().add(i))&&(e=u.clone().add(i)),this.setState({endDate:e,endInputValue:e.format(r)},(function(){a&&t.confirm()}))},n.prototype.handleMobileChange=function(e,t){this.setState({startDate:e.startDate,endDate:e.endDate},t)},n.prototype.selectRannge=function(e){var t=this.props,n=t.closeOnSelect,a=t.minDate,r=t.maxDate,i=(0,o.default)();this.setState({startDate:a&&a.isValid()?o.default.max(e.startDate(i.clone()),a):e.startDate(i.clone()),endDate:r&&r.isValid()?o.default.min(r,e.endDate(i.clone())):e.endDate(i.clone())},n?this.confirm:f.noop)},n.prototype.renderRanges=function(e){var n=this;if(!e)return null;var o,i=this.props.classPrefix;o="string"===typeof e?e.split(","):e;var l=this.props.translate;return r.default.createElement("ul",{className:"".concat(i,"DateRangePicker-rangers")},o.map((function(e){if(!e)return null;var o={};if("string"===typeof e)if(t.availableRanges[e])o=t.availableRanges[e],o.key=e;else for(var s=0,u=t.advancedRanges.length;s-1,j=this.state,L=j.isOpened,B=j.isFocused,V=j.startDate,z=j.endDate,U=this.props.translate,H=r.default.createElement(h.default,{timeFormat:k,inputFormat:_,startDate:V,endDate:z,minDate:D,maxDate:N,minDuration:T,maxDuration:P,dateFormat:A,embed:x,viewMode:R,close:this.close,confirm:this.confirm,onChange:this.handleMobileChange,footerExtra:this.renderRanges(F),showViewMode:"quarters"===R||"months"===R?"years":"months"});if(x)return r.default.createElement("div",{className:p("".concat(u,"DateRangeCalendar"),{"is-disabled":E},a)},M?H:this.renderCalendar());var W=r.default.createElement("div",{className:"".concat(u,"CalendarMobile-title")},U("Calendar.datepicker"));return r.default.createElement("div",{tabIndex:0,onKeyPress:this.handleKeyPress,onFocus:this.handleFocus,onBlur:this.handleBlur,className:p("".concat(u,"DateRangePicker"),(e={"is-disabled":E,"is-focused":B},e["".concat(u,"DateRangePicker--border").concat((0,f.ucFirst)(S))]=S,e["is-mobile"]=O&&(0,f.isMobile)(),e),a),ref:this.dom},r.default.createElement(v.default,{className:p("DateRangePicker-input",{isActive:"start"===this.state.editState}),onChange:this.startInputChange,onClick:this.openStart,ref:this.startInputRef,placeholder:U(g),autoComplete:"off",value:this.state.startInputValue||"",disabled:E}),r.default.createElement("span",{className:p("DateRangePicker-input-separator")},"-"),r.default.createElement(v.default,{className:p("DateRangePicker-input",{isActive:"end"===this.state.editState}),onChange:this.endInputChange,onClick:this.openEnd,ref:this.endInputRef,placeholder:U(y),autoComplete:"off",value:this.state.endInputValue||"",disabled:E}),C&&!E&&m?r.default.createElement("a",{className:"".concat(u,"DateRangePicker-clear"),onClick:this.clearValue},r.default.createElement(l.Icon,{icon:"input-clear",className:"icon"})):null,r.default.createElement("a",{className:"".concat(u,"DateRangePicker-toggler")},r.default.createElement(l.Icon,{icon:"time"===R?"clock":"date",className:"icon"})),L?O&&(0,f.isMobile)()?r.default.createElement(c.default,{isShow:L,container:b,className:p("".concat(u,"CalendarMobile-pop")),onHide:this.close,header:W},M?H:this.renderCalendar()):r.default.createElement(s.default,{target:function(){return t.dom.current},onHide:this.close,container:b||function(){return(0,i.findDOMNode)(t)},rootClose:!1,placement:w,show:!0},r.default.createElement(d.default,{classPrefix:u,className:p("".concat(u,"DateRangePicker-popover"),o),onHide:this.close,onClick:this.handlePopOverClick},this.renderCalendar())):null)},n.defaultProps={startPlaceholder:"Calendar.startPick",endPlaceholder:"Calendar.endPick",format:"X",inputFormat:"YYYY-MM-DD",joinValues:!0,clearable:!0,delimiter:",",ranges:"yesterday,7daysago,prevweek,thismonth,prevmonth,prevquarter",resetValue:"",closeOnSelect:!0,overlayPlacement:"auto"},n}(r.default.Component);t.DateRangePicker=g,t.default=(0,p.themeable)((0,m.localeable)(g))},a6a4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("4d26")),i=n("2ab5"),l={secondly:"秒",minutely:"分",hourly:"时",daily:"天",weekdays:"周中",weekly:"周",monthly:"月",yearly:"年"},s=(0,a.__importDefault)(n("79ae")),u=(0,a.__importDefault)(n("094a")),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOptionChange=n.handleOptionChange.bind(n),n.handleChange=n.handleChange.bind(n),n}return(0,a.__extends)(t,e),t.prototype.handleOptionChange=function(e){this.props.onChange(e.value)},t.prototype.handleChange=function(e){var t=this.props.value,n=t?t.split(":"):[];this.props.onChange("".concat(n[0],":").concat(e))},t.prototype.renderInput=function(){var e,t=this,n=this.props.value,a=n?n.split(":"):[],o=this.props,i=o.options,d=o.placeholder,c=o.disabled,p=o.classPrefix,f=o.translate,m=[];switch(m=i.split(",").map((function(e){return{label:l[e]||"不支持",value:e}})),m.unshift({label:f(d),value:""}),a[1]=parseInt(a[1],10)||1,a[0]){case"secondly":e=r.default.createElement(u.default,{key:"input",classPrefix:p,value:a[1],min:1,step:5,max:60,disabled:c,onChange:function(e){return t.handleChange(e)}});break;case"minutely":e=r.default.createElement(u.default,{key:"input",classPrefix:p,value:a[1],min:1,step:5,max:60,disabled:c,onChange:function(e){return t.handleChange(e)}});break;case"hourly":e=r.default.createElement(u.default,{key:"input",classPrefix:p,value:a[1],min:1,step:1,max:24,disabled:c,onChange:function(e){return t.handleChange(e)}});break;case"daily":e=r.default.createElement(u.default,{key:"input",classPrefix:p,value:a[1],min:1,step:1,max:30,disabled:c,onChange:function(e){return t.handleChange(e)}});break;case"weekly":e=r.default.createElement(u.default,{key:"input",classPrefix:p,value:a[1],min:1,step:1,max:12,disabled:c,onChange:function(e){return t.handleChange(e)}});break;case"monthly":e=r.default.createElement(u.default,{key:"input",classPrefix:p,value:a[1],min:1,step:1,max:12,disabled:c,onChange:function(e){return t.handleChange(e)}});break;case"yearly":e=r.default.createElement(u.default,{classPrefix:p,key:"input",className:"v-middle",value:a[1],min:1,step:1,max:20,disabled:c,onChange:function(e){return t.handleChange(e)}});break}return r.default.createElement("div",{className:"repeat-control hbox"},e?r.default.createElement("div",{className:"col v-middle",style:{width:30}},r.default.createElement("span",null,f("Repeat.pre"))):null,e?r.default.createElement("div",{className:"col v-middle"},e):null,r.default.createElement("div",{className:"col v-middle repeat-btn"},r.default.createElement(s.default,{classPrefix:p,className:e?"pull-right":"",options:m,placeholder:f(d),onChange:this.handleOptionChange,value:a[0],clearable:!1,searchable:!1,disabled:c,joinValues:!1})))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.classPrefix;return r.default.createElement("div",{className:(0,o.default)("".concat(n,"RepeatControl"),t)},this.renderInput())},t.defaultProps={options:"hourly,daily,weekly,monthly",placeholder:"不重复"},t}(r.default.Component);t.default=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,i.FormItem)({type:"input-repeat",sizeMutable:!1})],t),t}(d);t.RepeatControlRenderer=c},a79c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TableContent=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("ff3c"),i=n("4f20"),l=(0,a.__importDefault)(n("184b")),s=n("721d"),u=n("c264"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.renderItemActions=function(){var e=this.props,t=e.itemActions,n=e.render,o=e.store,i=e.classnames,s=Array.isArray(t)?t.filter((function(e){return!e.hiddenOnHover})):[];return s.length?r.default.createElement(l.default,{store:o,classnames:i},r.default.createElement("div",{className:i("Table-itemActions")},s.map((function(e,t){return n("itemAction/".concat(t),(0,a.__assign)((0,a.__assign)({},e),{isMenuItem:!0}),{key:t,item:o.hoverRow,data:o.hoverRow.locals,rowIndex:o.hoverRow.index})})))):null},t.prototype.render=function(){var e,t,n=this.props,a=n.placeholder,i=n.classnames,l=n.render,d=n.className,c=n.columns,p=n.columnsGroup,f=n.onMouseMove,m=n.onScroll,h=n.tableRef,v=n.rows,g=n.renderHeadCell,y=n.renderCell,b=n.onCheck,_=n.rowClassName,C=n.onQuickChange,E=n.footable,x=n.footableColumns,w=n.checkOnItemClick,S=n.buildItemProps,O=n.onAction,k=n.rowClassNameExpr,D=n.affixRowClassName,N=n.prefixRowClassName,T=n.data,P=n.prefixRow,A=n.locale,I=n.translate,R=n.itemAction,F=n.affixRow,M=n.store,j=n.emptyIcon,L=n.dispatchEvent,B=n.onEvent,V=i("Table-table",this.props.tableClassName),z=c.every((function(e){return!e.label})),U=null;return j&&(U="string"===typeof j?(0,s.generateIcon)(i,j,"Icon"):l("icon",j)),r.default.createElement("div",{onMouseMove:f,className:i("Table-content",d),onScroll:m},M.hoverRow?this.renderItemActions():null,r.default.createElement("table",{ref:h,className:V},r.default.createElement("thead",null,p.length?r.default.createElement("tr",null,p.map((function(e,t){return r.default.createElement("th",{key:t,"data-index":e.index,colSpan:e.colSpan,rowSpan:e.rowSpan},e.label?l("tpl",e.label):null)}))):null,r.default.createElement("tr",{className:z?"fake-hide":""},c.map((function(e){var t;return 2===(null===(t=p.find((function(t){return~t.has.indexOf(e)})))||void 0===t?void 0:t.rowSpan)?null:g(e,{"data-index":e.index,key:e.index})})))),v.length?r.default.createElement(o.TableBody,{itemAction:R,classnames:i,render:l,renderCell:y,onCheck:b,onQuickChange:C,footable:E,footableColumns:x,checkOnItemClick:w,buildItemProps:S,onAction:O,rowClassNameExpr:k,rowClassName:_,prefixRowClassName:N,affixRowClassName:D,rows:v,columns:c,locale:A,translate:I,prefixRow:P,affixRow:F,data:T,rowsProps:{data:T,dispatchEvent:L,onEvent:B}}):r.default.createElement("tbody",null,r.default.createElement("tr",{className:i("Table-placeholder")},r.default.createElement("td",{colSpan:c.length},U?r.default.cloneElement(U,{className:i(null!==(t=null===(e=null===U||void 0===U?void 0:U.props)||void 0===e?void 0:e.className)&&void 0!==t?t:"","Table-placeholder-empty-icon","icon")}):r.default.createElement(u.Icon,{icon:"desk-empty",className:i("Table-placeholder-empty-icon","icon")}),l("placeholder",I(a||"placeholder.noData")))))))},t=(0,a.__decorate)([i.observer],t),t}(r.default.Component);t.TableContent=d},a818:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("2ab5"),i=(0,a.__importDefault)(n("4d26")),l=(0,a.__importDefault)(n("a987")),s=n("7e49"),u=n("7f82"),d=n("d369");function c(e){return void 0===e&&(e="froala"),function(){return"tinymce"===e?Promise.resolve().then((function(){return new Promise((function(e){Promise.all([n.e("chunk-Amis"),n.e("chunk-585e5a2b")]).then((function(){var t=[n("1797")];(function(t){e(a.__importStar(t))}).apply(null,t)})).catch(n.oe)}))})).then((function(e){return e.default})):Promise.resolve().then((function(){return new Promise((function(e){Promise.all([n.e("chunk-Amis"),n.e("chunk-4e8b75a6")]).then((function(){var t=[n("6e2f")];(function(t){e(a.__importStar(t))}).apply(null,t)})).catch(n.oe)}))})).then((function(e){return e.default}))}}var p=function(e){function t(t){var n=e.call(this,t)||this;n.state={focused:!1},n.config=null;var r=t.vendor||(t.env.richTextToken?"froala":"tinymce");if(n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.handleChange=n.handleChange.bind(n),"froala"===r)n.config=(0,a.__assign)((0,a.__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,attribution:!1},t.options),{editorClass:t.editorClass,placeholderText:t.translate(t.placeholder),imageUploadURL:(0,s.tokenize)(t.receiver,t.data),imageUploadParams:{from:"rich-text"},videoUploadURL:(0,s.tokenize)(t.videoReceiver,t.data),videoUploadParams:{from:"rich-text"},events:(0,a.__assign)((0,a.__assign)({},t.options&&t.options.events),{focus:n.handleFocus,blur:n.handleBlur}),language:n.props.locale&&"zh-CN"!==n.props.locale?"":"zh_cn"}),t.buttons&&(n.config.toolbarButtons=t.buttons);else{var o=t.env.fetcher;n.config=(0,a.__assign)((0,a.__assign)({},t.options),{images_upload_handler:function(e,r,i){return(0,a.__awaiter)(n,void 0,void 0,(function(){var n,l,d,c,p,f,m,h,v,g,y,b,_,C;return(0,a.__generator)(this,(function(E){switch(E.label){case 0:n=new FormData,n.append(t.fileField,e.blob(),e.filename()),E.label=1;case 1:return E.trys.push([1,3,,4]),l=(0,a.__assign)({adaptor:function(e){return(0,a.__assign)((0,a.__assign)({},e),{data:e})}},(0,u.normalizeApi)((0,s.tokenize)(t.receiver,t.data),"post")),[4,o(l,n,{method:"post"})];case 2:return d=E.sent(),d.ok&&(c=(null===(f=d.data)||void 0===f?void 0:f.link)||(null===(m=d.data)||void 0===m?void 0:m.url)||(null===(h=d.data)||void 0===h?void 0:h.value)||(null===(g=null===(v=d.data)||void 0===v?void 0:v.data)||void 0===g?void 0:g.link)||(null===(b=null===(y=d.data)||void 0===y?void 0:y.data)||void 0===b?void 0:b.url)||(null===(C=null===(_=d.data)||void 0===_?void 0:_.data)||void 0===C?void 0:C.value),c?r(c):console.warn("must have return value")),[3,4];case 3:return p=E.sent(),i(p),[3,4];case 4:return[2]}}))}))}})}return n}return(0,a.__extends)(t,e),t.prototype.handleFocus=function(){this.setState({focused:!0})},t.prototype.handleBlur=function(){this.setState({focused:!1})},t.prototype.handleChange=function(e,t,n){var a=this.props,r=a.onChange,o=a.disabled;o||null===r||void 0===r||r(e,t,n)},t.prototype.render=function(){var e,t=this.props,n=t.className,a=t.classPrefix,o=t.value,s=(t.onChange,t.disabled),u=(t.size,t.vendor),p=t.env,f=t.locale,m=t.translate,h=t.borderMode,v=u||(p.richTextToken?"froala":"tinymce");return r.default.createElement("div",{className:(0,i.default)("".concat(a,"RichTextControl"),n,(e={"is-focused":this.state.focused,"is-disabled":s},e["".concat(a,"RichTextControl--border").concat((0,d.ucFirst)(h))]=h,e))},r.default.createElement(l.default,{getComponent:c(v),model:o,onModelChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,config:this.config,disabled:s,locale:f,translate:m}))},t.defaultProps={imageEditable:!0,receiver:"/api/upload/image",videoReceiver:"/api/upload/video",fileField:"file",placeholder:"placeholder.enter",options:{toolbarButtons:["undo","redo","paragraphFormat","textColor","backgroundColor","bold","underline","strikeThrough","formatOL","formatUL","align","quote","insertLink","insertImage","insertEmotion","insertTable","html"]}},t}(r.default.Component);t.default=p;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.FormItem)({type:"input-rich-text",sizeMutable:!1})],t),t}(p);t.RichTextControlRenderer=f},a866:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChainedSelectControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("4d26")),i=n("d55b"),l=(0,a.__importDefault)(n("79ae")),s=n("7f82"),u=n("d369"),d=function(e){function t(t){var n=e.call(this,t)||this;return n.state={stack:[]},n.handleChange=n.handleChange.bind(n),n.loadMore=n.loadMore.bind(n),n}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){var e,t,n=this.props.formInited;n||!this.props.addHook?this.loadMore():null===(t=(e=this.props).addHook)||void 0===t||t.call(e,this.loadMore,"init")},t.prototype.componentDidUpdate=function(e){var t=this.props;e.options!==t.options?this.setState({stack:[]}):t.formInited&&t.value!==e.value&&this.loadMore()},t.prototype.doAction=function(e,t,n){var a=this.props,r=a.resetValue,o=a.onChange,i=null===e||void 0===e?void 0:e.actionType;"clear"===i?o(""):"reset"===i&&o(null!==r&&void 0!==r?r:"")},t.prototype.array2value=function(e,t){void 0===t&&(t=!1);var n=this.props,a=n.delimiter,r=n.joinValues,o=n.extractValue;return t?r?e.join(a||","):e:r?e.join(a||","):o?e.map((function(e){return e.value||e})):e},t.prototype.loadMore=function(){var e=this,t=this.props,n=t.value,r=t.delimiter,o=t.onChange,i=t.joinValues,l=t.extractValue,d=t.source,c=t.data,p=t.env,f=t.dispatchEvent,m=Array.isArray(n)?n.concat():n&&"string"===typeof n?n.split(r||","):[],h=0,v=this.state.stack.length;while(h1&&!i?r.default.createElement("a",{className:l("ArrayInput-itemDrager drag-bar")},r.default.createElement(s.Icon,{icon:"drag-bar",className:"icon"})):null,o({value:e,onChange:this.handleItemOnChange.bind(this,t),index:t,disabled:i}),!1===d||i||c&&!(n.length>c)?null:r.default.createElement("a",{"data-index":t,className:l("ArrayInput-itemRemove"),onClick:this.handleRemove},r.default.createElement(s.Icon,{icon:"close",className:"icon"})))},t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,a=t.value,o=t.placeholder,i=t.translate,l=t.maxLength,d=t.sortable,c=t.sortTip,p=t.disabled;return r.default.createElement("div",{className:n("ArrayInput")},Array.isArray(a)&&a.length?r.default.createElement("div",{className:n("ArrayInput-items drag-group")},a.map((function(t,n){return e.renderItem(t,n,a)}))):r.default.createElement("div",{className:n("ArrayInput-placeholder")},i(o)),r.default.createElement("div",{className:n("ArrayInput-toolbar",d&&Array.isArray(a)&&a.length>1?"ArrayInput-toolbar--dnd":"")},!Array.isArray(a)||!l||a.length1?i(c):""):null))},t.defaultProps={placeholder:"empty",itemRender:function(e){var t=e.value,n=e.onChange;return r.default.createElement(l.default,{value:t,onChange:n})}},(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"dragTipRef",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",[]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleAdd",null),(0,a.__decorate)([d.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof r.default&&r.default.MouseEvent)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleRemove",null),t}(r.default.Component);t.ArrayInput=m,t.default=(0,o.themeable)((0,i.localeable)((0,c.uncontrollable)(m,{value:"onChange"})))},ad08:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputBoxWithSuggestion=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("8bc8"),i=n("32e1"),l=n("d77e"),s=n("8a53"),u=(0,a.__importDefault)(n("ba2b")),d=(0,a.__importDefault)(n("4f40")),c=(0,a.__importDefault)(n("865e")),p=(0,a.__importDefault)(n("2356")),f=n("c264"),m=function(e){return e.value},h=function(e){function t(t){var n=e.call(this,t)||this;return n.state={searchText:""},n.onSearch=n.onSearch.bind(n),n.filterOptions=n.filterOptions.bind(n),n}return(0,a.__extends)(t,e),t.prototype.onSearch=function(e){var t=e.toLowerCase();this.setState({searchText:t})},t.prototype.filterOptions=function(e){return(0,s.matchSorter)(e,this.props.value,{keys:["label","value"]})},t.prototype.onPopClose=function(e,t){this.setState({searchText:""}),t()},t.prototype.render=function(){var e=this,t=this.props,n=t.placeholder,a=t.onChange,i=t.value,l=t.classnames,s=t.disabled,h=(t.translate,t.searchable),v=t.popOverContainer,g=t.clearable,y=t.hasError,b=this.filterOptions(this.props.options);return r.default.createElement(u.default,{popOverContainer:v||function(){return(0,o.findDOMNode)(e)},popOverRender:function(t){var n=t.onClose;return r.default.createElement(r.default.Fragment,null,h?r.default.createElement(d.default,{mini:!1,onSearch:e.onSearch}):null,r.default.createElement(c.default,{multiple:!1,onClick:function(t){return e.onPopClose(t,n)},options:b,value:[i],option2value:m,onChange:function(e){null===a||void 0===a||a(e)}}))}},(function(e){var t,o,u=e.onClick,d=e.ref,c=e.isOpened;return r.default.createElement(p.default,{className:l("InputBox--sug",c?"is-active":""),ref:d,placeholder:n,disabled:s,value:null!==(o=null===(t=b.find((function(e){return e.value===i})))||void 0===t?void 0:t.label)&&void 0!==o?o:i,onChange:a,clearable:g,onClick:u,hasError:y},r.default.createElement("span",{className:l("InputBox-caret")},r.default.createElement(f.Icon,{icon:"caret",className:"icon"})))}))},t}(r.default.Component);t.InputBoxWithSuggestion=h,t.default=(0,l.themeable)((0,i.localeable)(h))},adf7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({t:1642059003991,className:"icon",viewBox:"0 0 1024 1024","p-id":6131},e),r.default.createElement("path",{d:"M510.665143 801.536c13.037714 0 22.253714-7.296 22.253714-20.333714 0-5.76-1.536-8.832-5.76-16.896-46.811429-72.502857-73.289143-155.757714-73.289143-245.924572 0-87.094857 24.941714-174.189714 73.289143-247.076571 4.205714-8.045714 5.76-11.117714 5.76-16.877714 0-12.288-9.216-20.333714-22.253714-20.333715-12.672 0-23.04 5.741714-35.291429 22.637715-57.563429 73.270857-86.710857 164.571429-86.710857 261.266285s27.995429 185.307429 86.692572 260.900572c12.288 16.877714 22.637714 22.637714 35.291428 22.637714z m391.716571 0c12.653714 0 22.637714-5.76 34.925715-22.637714C995.986286 703.305143 1024 614.692571 1024 517.997714c0-96.676571-28.781714-187.977143-86.710857-261.266285-12.269714-16.896-22.253714-22.637714-34.907429-22.637715-13.037714 0-22.253714 8.045714-22.253714 20.333715 0 5.76 1.152 8.813714 5.376 16.877714 48.731429 72.886857 73.654857 160 73.654857 247.076571 0 90.148571-26.843429 173.421714-73.270857 245.942857-4.608 8.045714-5.76 11.117714-5.76 16.877715 0 12.269714 9.216 20.333714 22.253714 20.333714z m-850.578285-0.768c75.190857 0 110.098286-32.237714 128.128-118.564571l43.739428-209.865143h69.449143c22.253714 0 36.443429-11.885714 36.443429-31.085715 0-16.475429-10.733714-26.843429-28.379429-26.843428h-64.841143l10.733714-52.169143c9.984-48.731429 25.325714-68.681143 67.913143-68.681143 6.144 0 12.269714-0.384 16.493715-0.768 19.2-1.92 27.611429-10.752 27.611428-27.245714 0-21.485714-18.011429-31.085714-54.857143-31.085714-73.270857 0-110.866286 36.461714-127.744 118.564571l-13.056 61.385143H115.858286c-22.235429 0-36.827429 11.885714-36.827429 31.085714 0 16.493714 11.136 26.843429 28.781714 26.843429h43.337143L108.982857 673.005714C98.194286 723.254857 82.468571 741.668571 41.435429 741.668571c-5.376 0-10.368 0.384-14.189715 0.768-17.664 2.304-27.245714 11.885714-27.245714 28.013715 0 20.717714 17.645714 30.317714 51.803429 30.317714z m539.044571-100.918857c12.653714 0 21.101714-4.205714 30.683429-18.029714l84.022857-119.698286h1.536l85.942857 121.618286c9.6 13.44 18.797714 16.109714 28.013714 16.109714 18.413714 0 30.701714-13.037714 30.701714-28.763429 0-7.296-2.304-14.189714-7.314285-20.717714l-98.194286-133.522286 98.194286-131.602285c5.010286-6.509714 7.314286-13.421714 7.314285-21.485715 0-16.493714-13.824-27.995429-29.165714-27.995428-13.805714 0-21.869714 6.912-29.165714 18.029714l-80.950857 118.546286h-1.92l-81.334857-118.930286c-7.296-11.136-16.493714-17.645714-31.085715-17.645714-17.645714 0-31.085714 14.189714-31.085714 29.531428 0 11.136 3.090286 18.048 8.466286 24.557715l93.220571 125.074285-98.980571 136.96c-5.76 7.314286-6.912 13.824-6.912 21.504 0 14.957714 12.672 26.459429 28.013714 26.459429z","p-id":6132}))};t.default=o},ae35:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TaskRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=(0,a.__importDefault)(n("46c3")),l=n("7f82"),s=n("2b46"),u=(0,a.__importDefault)(n("c6e8")),d=n("d369"),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={items:t.items?t.items.concat():[]},n.handleLoaded=n.handleLoaded.bind(n),n.tick=n.tick.bind(n),n}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){this.tick(!!this.props.checkApi)},t.prototype.componentDidUpdate=function(e){var t=this.props;e.items!==t.items?this.setState({items:t.items?t.items.concat():[]}):(0,l.isApiOutdated)(e.checkApi,t.checkApi,e.data,t.data)&&this.tick(!0)},t.prototype.componentWillUnmount=function(){clearTimeout(this.timer)},t.prototype.reload=function(){this.tick(!0)},t.prototype.tick=function(e){var t=this;void 0===e&&(e=!1);var n=this.props,a=n.loadingStatusCode,r=n.data,o=n.interval,i=n.checkApi,s=n.env,u=this.state.items;if(clearTimeout(this.timer),e||u.some((function(e){return e.status===a})))return o&&!(0,l.isEffectiveApi)(i)?s.alert("checkApi 没有设置, 不能及时获取任务状态"):void((0,l.isEffectiveApi)(i,r)&&s&&s.fetcher(i,r).then(this.handleLoaded).catch((function(e){return t.setState({error:e})})))},t.prototype.handleLoaded=function(e){if(!Array.isArray(e.data))return this.props.env.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,n){var r=this;void 0===n&&(n=!1);var o=this.props,s=o.submitApi,u=o.reSubmitApi,c=o.loadingStatusCode,p=o.errorStatusCode,f=o.data,m=o.env;if(!n&&!(0,l.isEffectiveApi)(s))return m.alert("submitApi 没有配置");if(n&&!(0,l.isEffectiveApi)(u))return m.alert("reSubmitApi 没有配置");this.setState((0,i.default)(this.state,{items:{$splice:[[t,1,(0,a.__assign)((0,a.__assign)({},e),{status:c})]]}}));var h=n?u:s;(0,l.isEffectiveApi)(h,f)&&m&&m.fetcher(h,(0,d.createObject)(f,e)).then((function(e){if(e&&e.data)if(Array.isArray(e.data))r.handleLoaded(e);else{h&&h.replaceData;var t=r.state.items.map((function(t){return t.key===e.data.key?(0,a.__assign)((0,a.__assign)({},h.replaceData?{}:t),e.data):t}));r.handleLoaded((0,a.__assign)((0,a.__assign)({},e),{data:t}))}else clearTimeout(r.timer),r.timer=setTimeout(r.tick,4)})).catch((function(n){return r.setState((0,i.default)(r.state,{items:{$splice:[[t,1,(0,a.__assign)((0,a.__assign)({},e),{status:p,remark:n.message||n})]]}}))}))},t.prototype.render=function(){var e=this,t=this.props,n=t.classnames,a=t.className,o=t.tableClassName,i=t.taskNameLabel,l=t.operationLabel,s=t.statusLabel,d=t.remarkLabel,c=t.btnText,p=t.retryBtnText,f=t.btnClassName,m=t.retryBtnClassName,h=t.statusLabelMap,v=t.statusTextMap,g=t.readyStatusCode,y=t.loadingStatusCode,b=t.canRetryStatusCode,_=t.translate,C=t.render,E=this.state.items,x=this.state.error;return r.default.createElement("div",{className:n("Table-content",a)},r.default.createElement("table",{className:n("Table-table",o)},r.default.createElement("thead",null,r.default.createElement("tr",null,r.default.createElement("th",null,i),r.default.createElement("th",null,_(l)),r.default.createElement("th",null,s),r.default.createElement("th",null,d))),r.default.createElement("tbody",null,x?r.default.createElement("tr",null,r.default.createElement("td",{colSpan:4},r.default.createElement("div",{className:"text-danger"},x))):E.map((function(t,a){return r.default.createElement("tr",{key:a},r.default.createElement("td",null,t.label),r.default.createElement("td",null,t.status==y?r.default.createElement(u.default,{show:!0,icon:"reload",spinnerClassName:n("Task-spinner")}):t.status==b?r.default.createElement("a",{onClick:function(){return e.submitTask(t,a,!0)},className:n("Button","Button--danger",m||f)},p||c):r.default.createElement("a",{onClick:function(){return e.submitTask(t,a)},className:n("Button","Button--default",f,{disabled:t.status!==g})},c)),r.default.createElement("td",null,r.default.createElement("span",{className:n("label",h&&h[t.status||0])},v&&v[t.status||0])),r.default.createElement("td",null,t.remark?C("".concat(a,"/remark"),t.remark):null))})))))},t.defaultProps={className:"",tableClassName:"",taskNameLabel:"任务名称",operationLabel:"Table.operation",statusLabel:"状态",remarkLabel:"备注说明",btnText:"上线",retryBtnText:"重试",btnClassName:"",retryBtnClassName:"",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}(r.default.Component);t.default=c;var p=function(e){function t(t,n){var a=e.call(this,t)||this,r=n;return r.registerComponent(a),a}var n;return(0,a.__extends)(t,e),t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.context;t.unRegisterComponent(this)},t.contextType=s.ScopedContext,t=(0,a.__decorate)([(0,o.Renderer)({type:"tasks"}),(0,a.__metadata)("design:paramtypes",[Object,"function"===typeof(n="undefined"!==typeof s.IScopedContext&&s.IScopedContext)?n:Object])],t),t}(c);t.TaskRenderer=p},ae55:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 16 16",className:"icon"},e),r.default.createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("g",{fill:"currentColor"},r.default.createElement("polygon",{points:"8.02 0 5.161 2.859 6.161 3.859 7.02 3.001 7.02 7.02 3.001 7.02 3.859 6.16 2.859 5.161 0 8.02 2.82 10.84 3.82 9.84 3.001 9.02 7.02 9.02 7.02 13.001 6.161 12.141 5.161 13.141 8.02 16 10.839 13.18 9.839 12.181 9.02 13.001 9.02 9.02 13.001 9.02 12.18 9.84 13.18 10.84 16 8.02 13.141 5.161 12.141 6.16 13.001 7.02 9.02 7.02 9.02 3.001 9.839 3.82 10.839 2.82"}))))};t.default=o},af3d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tooltip=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d77e"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=(e.classPrefix,e.className),n=e.tooltipTheme,o=e.title,i=e.children,l=e.arrowProps,s=e.style,u=(e.placement,e.arrowOffsetLeft,e.arrowOffsetTop,e.positionLeft,e.positionTop,e.classnames),d=e.activePlacement,c=e.showArrow,p=e.onMouseEnter,f=e.onMouseLeave,m=(0,a.__rest)(e,["classPrefix","className","tooltipTheme","title","children","arrowProps","style","placement","arrowOffsetLeft","arrowOffsetTop","positionLeft","positionTop","classnames","activePlacement","showArrow","onMouseEnter","onMouseLeave"]);return r.default.createElement("div",(0,a.__assign)({},m,{className:u("Tooltip",d?"Tooltip--".concat(d):"",t,"Tooltip--".concat("dark"===n?"dark":"light")),style:s,onMouseEnter:p,onMouseLeave:f,role:"tooltip"}),c?r.default.createElement("div",(0,a.__assign)({className:u("Tooltip-arrow")},l)):null,o?r.default.createElement("div",{className:u("Tooltip-title")},o):null,r.default.createElement("div",{className:u("Tooltip-body")},i))},t.defaultProps={className:"",tooltipTheme:"light",showArrow:!0},t}(r.default.Component);t.Tooltip=i,t.default=(0,o.themeable)(i)},b1ce:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 13 9","p-id":3506,className:"icon"},e),r.default.createElement("g",{transform:"translate(6.656854, 2.656854) scale(-1, 1) rotate(-315.000000) translate(-6.656854, -2.656854) "},r.default.createElement("polygon",{id:"path-1",points:"11.1568542 5.15685425 11.1568542 -0.843145751 12.1568542 -0.843145751 12.1568542 6.15685425 1.15685425 6.15685425 1.15685425 5.15685425"})))};t.default=o},b1f4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputJSONSchemaItem=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=(0,a.__importDefault)(n("2356")),i=(0,a.__importDefault)(n("f7cf")),l=(0,a.__importDefault)(n("b4c5")),s=n("25eb"),u=n("fb62");function d(e){var t=e.schema;return"object"===t.type?r.default.createElement(u.InputJSONSchemaObject,(0,a.__assign)({},e)):"array"===t.type?r.default.createElement(s.InputJSONSchemaArray,(0,a.__assign)({},e)):e.renderValue?e.renderValue(e.value,e.onChange,t,e):"number"==t.type?r.default.createElement(i.default,{value:e.value,onChange:e.onChange,placeholder:e.placeholder}):"integer"==t.type?r.default.createElement(i.default,{value:e.value,onChange:e.onChange,precision:0,placeholder:e.placeholder}):"boolean"==t.type?r.default.createElement(l.default,{value:e.value,onChange:e.onChange,className:"mt-2"}):r.default.createElement(o.default,{value:e.value,onChange:e.onChange,placeholder:e.placeholder})}t.InputJSONSchemaItem=d},b329:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 1024 1024","p-id":1463,className:"icon"},e),r.default.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"}))};t.default=o},b35b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListControlRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d55b"),i=n("d369"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.doAction=function(e,t,n){var a=this.props,r=a.resetValue,o=a.onChange,i=null===e||void 0===e?void 0:e.actionType;"clear"===i?null===o||void 0===o||o(""):"reset"===i&&(null===o||void 0===o||o(null!==r&&void 0!==r?r:""))},t.prototype.handleDBClick=function(e,t){this.props.onToggle(e,!1,!0),this.props.onAction(null,{type:"submit"})},t.prototype.handleClick=function(e,t){if(!t.target||!t.target.closest("a,button")){var n=this.props.onToggle;n(e)}},t.prototype.reload=function(){var e=this.props.reloadOptions;e&&e()},t.prototype.render=function(){var e=this,t=this.props,n=t.render,a=t.itemClassName,o=t.classnames,l=t.className,s=t.disabled,u=t.options,d=t.placeholder,c=t.selectedOptions,p=t.imageClassName,f=t.submitOnDBClick,m=t.itemSchema,h=t.data,v=t.labelField,g=t.listClassName,y=t.translate,b=null;return u&&u.length&&(b=r.default.createElement("div",{className:o("ListControl-items",g)},u.map((function(t,l){return r.default.createElement("div",{key:l,className:o("ListControl-item",a,{"is-active":~c.indexOf(t),"is-disabled":t.disabled||s}),onClick:e.handleClick.bind(e,t),onDoubleClick:f?e.handleDBClick.bind(e,t):void 0},m?n("".concat(l,"/body"),m,{data:(0,i.createObject)(h,t)}):t.body?n("".concat(l,"/body"),t.body):[t.image?r.default.createElement("div",{key:"image",className:o("ListControl-itemImage",p)},r.default.createElement("img",{src:t.image,alt:t[v||"label"]})):null,t[v||"label"]?r.default.createElement("div",{key:"label",className:o("ListControl-itemLabel")},String(t[v||"label"])):null])})))),r.default.createElement("div",{className:o("ListControl",l)},b||r.default.createElement("span",{className:o("ListControl-placeholder")},y(d)))},t.propsList=["itemSchema","value","renderFormItems"],t.defaultProps={clearable:!1,imageClassName:"",submitOnDBClick:!1},t}(r.default.Component);t.default=l;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.OptionsControl)({type:"list-select",sizeMutable:!1})],t),t}(l);t.ListControlRenderer=s},b3fe:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImagesFieldRenderer=t.ImagesField=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=n("a97c"),l=n("7e49"),s=a.__importStar(n("14aa")),u=n("d369"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.list=[],t}var n;return(0,a.__extends)(t,e),t.prototype.handleEnlarge=function(e){var t=this.props,n=t.onImageEnlarge,r=t.src,o=t.originalSrc;n&&n((0,a.__assign)((0,a.__assign)({},e),{originalSrc:e.originalSrc||e.src,list:this.list.map((function(e){return{src:r?(0,i.filter)(r,e,"| raw"):e&&e.image||e,originalSrc:o?(0,i.filter)(o,e,"| raw"):(null===e||void 0===e?void 0:e.src)||(0,i.filter)(r,e,"| raw")||(null===e||void 0===e?void 0:e.image)||e,title:e&&(e.enlargeTitle||e.title),caption:e&&(e.enlargeCaption||e.description||e.caption)}}))}),this.props)},t.prototype.render=function(){var e,t,n=this,a=this.props,o=a.className,d=a.defaultImage,c=a.thumbMode,p=a.thumbRatio,f=a.data,m=(a.name,a.placeholder),h=a.classnames,v=a.source,g=a.delimiter,y=a.enlargeAble,b=a.src,_=a.originalSrc,C=a.listClassName,E=a.options;return"string"===typeof v&&(0,l.isPureVariable)(v)?t=(0,l.resolveVariableAndFilter)(v,f,"| raw")||void 0:Array.isArray(e=(0,u.getPropValue)(this.props))||"string"===typeof e?t=e:Array.isArray(E)&&(t=E),"string"===typeof t?t=t.split(g):t&&!Array.isArray(t)&&(t=[t]),this.list=t,r.default.createElement("div",{className:h("ImagesField",o)},Array.isArray(t)?r.default.createElement("div",{className:h("Images",C)},t.map((function(e,t){return r.default.createElement(s.default,{index:t,className:h("Images-item"),key:t,src:(b?(0,i.filter)(b,e,"| raw"):e&&e.image)||e,originalSrc:(_?(0,i.filter)(_,e,"| raw"):e&&e.src)||e,title:e&&e.title,caption:e&&(e.description||e.caption),thumbMode:c,thumbRatio:p,enlargeAble:y,onEnlarge:n.handleEnlarge})}))):d?r.default.createElement("div",{className:h("Images",C)},r.default.createElement(s.default,{className:h("Images-item"),src:d,thumbMode:c,thumbRatio:p})):m)},t.defaultProps={className:"",delimiter:",",defaultImage:s.imagePlaceholder,placehoder:"-",thumbMode:"contain",thumbRatio:"1:1"},(0,a.__decorate)([u.autobind,(0,a.__metadata)("design:type",Function),(0,a.__metadata)("design:paramtypes",["function"===typeof(n="undefined"!==typeof s.ImageThumbProps&&s.ImageThumbProps)?n:Object]),(0,a.__metadata)("design:returntype",void 0)],t.prototype,"handleEnlarge",null),t}(r.default.Component);t.ImagesField=d;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"images"})],t),t}(d);t.ImagesFieldRenderer=c},b428:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=a.__importStar(n("ab5b")),o=n("cbc0"),i=n("d77e"),l=n("32e1"),s=(0,a.__importDefault)(n("f602")),u=(0,a.__importDefault)(n("4e13"));function d(e){return Array.isArray(e)?e:[e]}var c=(0,r.memo)((function(e){var t=e.title,n=e.labelField,o=e.valueField,i=e.visibleItemCount,l=void 0===i?5:i,c=e.value,p=void 0===c?[]:c,f=e.swipeDuration,m=void 0===f?1e3:f,h=e.columns,v=void 0===h?[]:h,g=e.itemHeight,y=void 0===g?48:g,b=e.showToolbar,_=void 0===b||b,C=e.className,E=void 0===C?"":C,x=e.classnames,w=e.classPrefix,S=e.translate,O=d(v),k=(0,r.useState)(d(void 0===e.value?e.defaultValue||[]:p)),D=k[0],N=k[1];(0,r.useEffect)((function(){p!==D&&N(d(p))}),[p]);var T=function(){e.onClose&&e.onClose(D)},P=function(){e.onConfirm&&e.onConfirm(D)},A=function(t,n,r){var o=(0,a.__spreadArray)([],D,!0);o[n]=t,N(o),e.onChange&&e.onChange(o,n,r)},I=function(e,t){return r.default.createElement(u.default,(0,a.__assign)({},e,{classnames:x,classPrefix:w,labelField:n||e.labelField,valueField:o||e.valueField,itemHeight:y,swipeDuration:m,visibleItemCount:l,value:D[t],onChange:function(e,n,a){A(e,t,a)},key:"column".concat(t)}))},R=y*+l,F={height:"".concat(y,"px")},M={height:"".concat(R,"px")},j={backgroundSize:"100% ".concat((R-y)/2,"px")},L=_||t;return r.default.createElement("div",{className:x(E,"PickerColumns","PickerColumns-popOver")},L&&r.default.createElement("div",{className:x("PickerColumns-header")},_&&r.default.createElement(s.default,{className:"PickerColumns-cancel",level:"default",onClick:T},S("cancel")),t&&r.default.createElement("div",{className:x("PickerColumns-title")},t),_&&r.default.createElement(s.default,{className:"PickerColumns-confirm",level:"primary",onClick:P},S("confirm"))),r.default.createElement("div",{className:x("PickerColumns-columns"),style:M},O.map((function(e,t){return I(e,t)})),r.default.createElement("div",{className:x("PickerColumns-mask"),style:j}),r.default.createElement("div",{className:x("PickerColumns-frame"),style:F})))}));t.default=(0,i.themeable)((0,l.localeable)((0,o.uncontrollable)(c,{value:"onChange"})))},b48b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebComponentRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("f83d"),i=n("7e49"),l=(0,a.__importDefault)(n("9e86")),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.renderBody=function(){var e=this.props,t=e.body,n=e.render;return t?n("body",t):null},t.prototype.render=function(){var e=this.props,t=e.tag,n=e.props,o=e.data,s=(0,l.default)(n,(function(e){return"string"===typeof e&&(0,i.resolveVariableAndFilter)(e,o,"| raw")||e})),u=t||"div";return r.default.createElement(u,(0,a.__assign)({},s),this.renderBody())},t}(r.default.Component);t.default=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t=(0,a.__decorate)([(0,o.Renderer)({type:"web-component"})],t),t}(s);t.WebComponentRenderer=u},b4c5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Switch=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("d77e"),i={md:"i-switch-md",lg:"i-switch-lg",middle:"i-switch-md",large:"i-switch-lg"},l={info:"bg-info",primary:"bg-primary",danger:"bg-danger"},s=function(e){function t(t){var n=e.call(this,t)||this;return n.hanldeCheck=n.hanldeCheck.bind(n),n}return(0,a.__extends)(t,e),t.prototype.hanldeCheck=function(e){var t=this.props,n=t.trueValue,a=t.falseValue,r=t.onChange;r&&r(e.currentTarget.checked?n:a)},t.prototype.render=function(){var e=this.props,t=e.size,n=e.level,o=e.className,s=(e.classPrefix,e.onChange,e.value),u=(e.inline,e.trueValue),d=(e.falseValue,e.onText),c=void 0===d?"":d,p=e.offText,f=void 0===p?"":p,m=e.disabled,h=e.readOnly,v=e.checked,g=e.classnames,y=(0,a.__rest)(e,["size","level","className","classPrefix","onChange","value","inline","trueValue","falseValue","onText","offText","disabled","readOnly","checked","classnames"]);o=(o||"")+(t&&i[t]?" ".concat(i[t]):"")+(n&&l[n]?" ".concat(l[n]):"");var b="undefined"!==typeof v?v:"undefined"!==typeof s&&s==u;return r.default.createElement("label",{className:g("Switch",b?"is-checked":"",m?"is-disabled":"",o)},r.default.createElement("input",(0,a.__assign)({type:"checkbox",checked:b,onChange:this.hanldeCheck,disabled:m,readOnly:h},y)),r.default.createElement("span",{className:"text"},b?c:f),r.default.createElement("span",{className:"slider"}))},t.defaultProps={trueValue:!0,falseValue:!1},t}(r.default.PureComponent);t.Switch=s,t.default=(0,o.themeable)(s)},b4ea:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=function(e){return r.default.createElement("svg",(0,a.__assign)({viewBox:"0 0 26 126",className:"icon"},e),r.default.createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},r.default.createElement("g",{id:"ellipsis-vertical",transform:"translate(0.500000, 0.500000)",fill:"currentColor",fillRule:"nonzero"},r.default.createElement("path",{d:"M12.5,0 C5.625,0 0,5.625 0,12.5 C0,19.375 5.625,25 12.5,25 C19.375,25 25,19.375 25,12.5 C25,5.625 19.375,0 12.5,0 Z M12.5,50 C5.625,50 0,55.625 0,62.5 C0,69.375 5.625,75 12.5,75 C19.375,75 25,69.375 25,62.5 C25,55.625 19.375,50 12.5,50 Z M12.5,100 C5.625,100 0,105.625 0,112.5 C0,119.375 5.625,125 12.5,125 C19.375,125 25,119.375 25,112.5 C25,105.625 19.375,100 12.5,100 Z",id:"\\u5F62\\u72B6"}))))};t.default=o},b5c0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.classnames=t.classPrefix=void 0;var a=n("d77e");t.classPrefix="cxd-",t.classnames=(0,a.makeClassnames)(t.classPrefix),(0,a.theme)("cxd",{classPrefix:"cxd-",components:{toast:{closeButton:!0}},renderers:{form:{horizontal:{leftFixed:!0}},pagination:{maxButtons:9,showPageInput:!1},fieldset:{collapsable:!1},remark:{placement:"right"},tabs:{mode:"line"},"tabs-control":{mode:"line"},"range-control":{showInput:!0,clearable:!0},chart:{chartTheme:{color:["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#04c1ba","#fbbe04","#5fb333","#0a7eb4","#304069","#c4ccd3"],backgroundColor:"#ffffff",textStyle:{},title:{textStyle:{color:"#333"},subtextStyle:{color:"#999999"}},line:{itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"emptyCircle",smooth:!1},radar:{itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:4,symbol:"emptyCircle",smooth:!1},bar:{itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},pie:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},scatter:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},boxplot:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},parallel:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},sankey:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},funnel:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},gauge:{itemStyle:{borderWidth:0,borderColor:"#ccc"}},candlestick:{itemStyle:{color:"#c23531",color0:"#314656",borderColor:"#c23531",borderColor0:"#314656",borderWidth:1}},graph:{itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:4,symbol:"emptyCircle",smooth:!1,color:["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#04c1ba","#fbbe04","#5fb333","#0a7eb4","#304069","#c4ccd3"],label:{color:"#f5f5f5"}},map:{itemStyle:{normal:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},emphasis:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1}},label:{normal:{textStyle:{color:"#000"}},emphasis:{textStyle:{color:"rgb(100,0,0)"}}}},geo:{itemStyle:{normal:{areaColor:"#eee",borderColor:"#444",borderWidth:.5},emphasis:{areaColor:"rgba(255,215,0,0.8)",borderColor:"#444",borderWidth:1}},label:{normal:{textStyle:{color:"#000"}},emphasis:{textStyle:{color:"rgb(100,0,0)"}}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:"#999999"}},axisTick:{show:!0,lineStyle:{color:"#999999"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!1,lineStyle:{color:["#ccc"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},valueAxis:{axisLine:{show:!0,lineStyle:{color:"#999999"}},axisTick:{show:!0,lineStyle:{color:"#999999"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#999999"}},axisTick:{show:!0,lineStyle:{color:"#999999"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#999999"}},axisTick:{show:!0,lineStyle:{color:"#999999"}},axisLabel:{show:!0,textStyle:{color:"#999999"}},splitLine:{show:!0,lineStyle:{color:["#eeeeee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},toolbox:{iconStyle:{normal:{borderColor:"#999"},emphasis:{borderColor:"#666"}}},legend:{textStyle:{color:"#333"}},tooltip:{axisPointer:{lineStyle:{color:"#ccc",width:1},crossStyle:{color:"#ccc",width:1}}},timeline:{lineStyle:{color:"#293c55",width:1},itemStyle:{normal:{color:"#293c55",borderWidth:1},emphasis:{color:"#a9334c"}},controlStyle:{normal:{color:"#293c55",borderColor:"#293c55",borderWidth:.5},emphasis:{color:"#293c55",borderColor:"#293c55",borderWidth:.5}},checkpointStyle:{color:"#e43c59",borderColor:"rgba(194,53,49, 0.5)"},label:{normal:{textStyle:{color:"#293c55"}},emphasis:{textStyle:{color:"#293c55"}}}},visualMap:{color:["#bf444c","#d88273","#f6efa6"]},dataZoom:{backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"rgba(47,69,84,0.3)",fillerColor:"rgba(167,183,204,0.4)",handleColor:"#a7b7cc",handleSize:"100%",textStyle:{color:"#333"}},markPoint:{label:{color:"#f5f5f5"},emphasis:{label:{color:"#f5f5f5"}}}}}}})},b864:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DialogRenderer=void 0;var a=n("9ab4"),r=(0,a.__importDefault)(n("ab5b")),o=n("2b46"),i=n("f83d"),l=n("a97c"),s=(0,a.__importDefault)(n("0b1a")),u=n("d369"),d=n("daf9"),c=n("c264"),p=n("62c6"),f=n("8bc8"),m=n("4afe"),h=n("f7d3"),v=function(e){function t(t){var n=e.call(this,t)||this;n.isDead=!1,n.$$id=(0,u.guid)(),t.store.setEntered(!!t.show),n.handleSelfClose=n.handleSelfClose.bind(n),n.handleAction=n.handleAction.bind(n),n.handleDialogConfirm=n.handleDialogConfirm.bind(n),n.handleDialogClose=n.handleDialogClose.bind(n),n.handleDrawerConfirm=n.handleDrawerConfirm.bind(n),n.handleDrawerClose=n.handleDrawerClose.bind(n),n.handleEntered=n.handleEntered.bind(n),n.handleExited=n.handleExited.bind(n),n.handleFormInit=n.handleFormInit.bind(n),n.handleFormSaved=n.handleFormSaved.bind(n),n.handleFormChange=n.handleFormChange.bind(n),n.handleChildFinished=n.handleChildFinished.bind(n);var a=t.store;return n.reaction=(0,d.reaction)((function(){return"".concat(a.loading).concat(a.error)}),(function(){return n.forceUpdate()})),n}return(0,a.__extends)(t,e),t.prototype.componentWillUnmount=function(){this.reaction&&this.reaction(),this.isDead=!0},t.prototype.buildActions=function(){var e=this.props,t=e.actions,n=e.confirm,a=e.translate;if("undefined"!==typeof t)return t;var r=[];return r.push({type:"button",actionType:"cancel",label:a("cancel")}),n&&r.push({type:"button",actionType:"confirm",label:a("confirm"),primary:!0}),r},t.prototype.handleSelfClose=function(e,t){var n=this.props,a=n.onClose,r=n.store;r.updateMessage(),a(t)},t.prototype.handleAction=function(e,t,n){var a=this.props,r=a.store,o=a.onAction;"reset"===t.type?r.reset():"cancel"===t.actionType?this.handleSelfClose():o&&o(e,t,n)},t.prototype.handleDialogConfirm=function(e,t){for(var n=[],r=2;r=0;l--)(r=e[l])&&(i=(o<3?r(i):o>3?r(t,n,i):r(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i},s=function(e,t){return function(n,a){t(n,a,e)}},u=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t,n,a){return new(n||(n=Promise))((function(r,o){function i(e){try{s(a.next(e))}catch(e){o(e)}}function l(e){try{s(a.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}s((a=a.apply(e,t||[])).next())}))},c=function(e,t){var n,a,r,o,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,a&&(r=2&o[0]?a.return:o[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;switch(a=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,a=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(r=i.trys,!((r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},h=function(){for(var e=[],t=0;t1||l(e,t)}))})}function l(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(s,u):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function s(e){l("next",e)}function u(e){l("throw",e)}function d(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}},_=function(e){var t,n;return t={},a("next"),a("throw",(function(e){throw e})),a("return"),t[Symbol.iterator]=function(){return this},t;function a(a,r){t[a]=e[a]?function(t){return(n=!n)?{value:y(e[a](t)),done:"return"===a}:r?r(t):t}:r}},C=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise((function(a,r){(function(e,t,n,a){Promise.resolve(a).then((function(t){e({value:t,done:n})}),t)})(a,r,(t=e[n](t)).done,t.value)}))}}},E=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};var n=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};x=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&k(t,e,a);return n(t,e),t},w=function(e){return e&&e.__esModule?e:{default:e}},S=function(e,t,n,a){if("a"===n&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?a:"a"===n?a.call(e):a?a.value:t.get(e)},O=function(e,t,n,a,r){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?r.call(e,n):r?r.value=n:t.set(e,n),n},e("__extends",r),e("__assign",o),e("__rest",i),e("__decorate",l),e("__param",s),e("__metadata",u),e("__awaiter",d),e("__generator",c),e("__exportStar",p),e("__createBinding",k),e("__values",f),e("__read",m),e("__spread",h),e("__spreadArrays",v),e("__spreadArray",g),e("__await",y),e("__asyncGenerator",b),e("__asyncDelegator",_),e("__asyncValues",C),e("__makeTemplateObject",E),e("__importStar",x),e("__importDefault",w),e("__classPrivateFieldGet",S),e("__classPrivateFieldSet",O)}))})),/*!node_modules/core-js/internals/global.js*/ amis.define("40bf208",(function(e,t,n,a){var r=function(e){return e&&e.Math==Math&&e};n.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||function(){return this}()||Function("return this")()})),/*!node_modules/core-js/internals/fails.js*/ amis.define("5d26485",(function(e,t,n,a){n.exports=function(e){try{return!!e()}catch(e){return!0}}})),/*!node_modules/core-js/internals/descriptors.js*/ amis.define("25f1756",(function(e,t,n,a){var r=e("5d26485");n.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))})),/*!node_modules/core-js/internals/function-bind-native.js*/ amis.define("9f36f99",(function(e,t,n,a){var r=e("5d26485");n.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))})),/*!node_modules/core-js/internals/function-call.js*/ amis.define("0d3a4f4",(function(e,t,n,a){var r=e("9f36f99"),o=Function.prototype.call;n.exports=r?o.bind(o):function(){return o.apply(o,arguments)}})),/*!node_modules/core-js/internals/object-property-is-enumerable.js*/ amis.define("221c8d8",(function(e,t,n,a){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r})),/*!node_modules/core-js/internals/create-property-descriptor.js*/ amis.define("564d7b4",(function(e,t,n,a){n.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}})),/*!node_modules/core-js/internals/function-uncurry-this.js*/ amis.define("d759c8f",(function(e,t,n,a){var r=e("9f36f99"),o=Function.prototype,i=o.bind,l=o.call,s=r&&i.bind(l,l);n.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return l.apply(e,arguments)}}})),/*!node_modules/core-js/internals/classof-raw.js*/ amis.define("1506952",(function(e,t,n,a){var r=e("d759c8f"),o=r({}.toString),i=r("".slice);n.exports=function(e){return i(o(e),8,-1)}})),/*!node_modules/core-js/internals/indexed-object.js*/ amis.define("3ea90a2",(function(e,t,n,a){var r=e("40bf208"),o=e("d759c8f"),i=e("5d26485"),l=e("1506952"),s=r.Object,u=o("".split);n.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==l(e)?u(e,""):s(e)}:s})),/*!node_modules/core-js/internals/require-object-coercible.js*/ amis.define("c744c1f",(function(e,t,n,a){var r=e("40bf208").TypeError;n.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}})),/*!node_modules/core-js/internals/to-indexed-object.js*/ amis.define("ae07309",(function(e,t,n,a){var r=e("3ea90a2"),o=e("c744c1f");n.exports=function(e){return r(o(e))}})),/*!node_modules/core-js/internals/is-callable.js*/ amis.define("fe5d76e",(function(e,t,n,a){n.exports=function(e){return"function"==typeof e}})),/*!node_modules/core-js/internals/is-object.js*/ amis.define("0364f6b",(function(e,t,n,a){var r=e("fe5d76e");n.exports=function(e){return"object"==typeof e?null!==e:r(e)}})),/*!node_modules/core-js/internals/get-built-in.js*/ amis.define("28bca2a",(function(e,t,n,a){var r=e("40bf208"),o=e("fe5d76e"),i=function(e){return o(e)?e:void 0};n.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}})),/*!node_modules/core-js/internals/object-is-prototype-of.js*/ amis.define("ec684f5",(function(e,t,n,a){var r=e("d759c8f");n.exports=r({}.isPrototypeOf)})),/*!node_modules/core-js/internals/engine-user-agent.js*/ amis.define("98af147",(function(e,t,n,a){var r=e("28bca2a");n.exports=r("navigator","userAgent")||""})),/*!node_modules/core-js/internals/engine-v8-version.js*/ amis.define("bbbca85",(function(e,t,n,a){var r,o,i=e("40bf208"),l=e("98af147"),s=i.process,u=i.Deno,d=s&&s.versions||u&&u.version,c=d&&d.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&l&&(!(r=l.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=l.match(/Chrome\/(\d+)/))&&(o=+r[1]),n.exports=o})),/*!node_modules/core-js/internals/native-symbol.js*/ amis.define("fd7e19d",(function(e,t,n,a){var r=e("bbbca85"),o=e("5d26485");n.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))})),/*!node_modules/core-js/internals/use-symbol-as-uid.js*/ amis.define("204e2fc",(function(e,t,n,a){var r=e("fd7e19d");n.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator})),/*!node_modules/core-js/internals/is-symbol.js*/ amis.define("63cff63",(function(e,t,n,a){var r=e("40bf208"),o=e("28bca2a"),i=e("fe5d76e"),l=e("ec684f5"),s=e("204e2fc"),u=r.Object;n.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return i(t)&&l(t.prototype,u(e))}})),/*!node_modules/core-js/internals/try-to-string.js*/ amis.define("80940b2",(function(e,t,n,a){var r=e("40bf208").String;n.exports=function(e){try{return r(e)}catch(e){return"Object"}}})),/*!node_modules/core-js/internals/a-callable.js*/ amis.define("6d9e3e4",(function(e,t,n,a){var r=e("40bf208"),o=e("fe5d76e"),i=e("80940b2"),l=r.TypeError;n.exports=function(e){if(o(e))return e;throw l(i(e)+" is not a function")}})),/*!node_modules/core-js/internals/get-method.js*/ amis.define("44a2314",(function(e,t,n,a){var r=e("6d9e3e4");n.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}})),/*!node_modules/core-js/internals/ordinary-to-primitive.js*/ amis.define("38013b5",(function(e,t,n,a){var r=e("40bf208"),o=e("0d3a4f4"),i=e("fe5d76e"),l=e("0364f6b"),s=r.TypeError;n.exports=function(e,t){var n,a;if("string"===t&&i(n=e.toString)&&!l(a=o(n,e)))return a;if(i(n=e.valueOf)&&!l(a=o(n,e)))return a;if("string"!==t&&i(n=e.toString)&&!l(a=o(n,e)))return a;throw s("Can't convert object to primitive value")}})),/*!node_modules/core-js/internals/is-pure.js*/ amis.define("ecdd632",(function(e,t,n,a){n.exports=!1})),/*!node_modules/core-js/internals/set-global.js*/ amis.define("69e2853",(function(e,t,n,a){var r=e("40bf208"),o=Object.defineProperty;n.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}})),/*!node_modules/core-js/internals/shared-store.js*/ amis.define("c49b0f9",(function(e,t,n,a){var r=e("40bf208"),o=e("69e2853"),i="__core-js_shared__",l=r[i]||o(i,{});n.exports=l})),/*!node_modules/core-js/internals/shared.js*/ amis.define("83a202a",(function(e,t,n,a){var r=e("ecdd632"),o=e("c49b0f9");(n.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),/*!node_modules/core-js/internals/to-object.js*/ amis.define("2aaa2da",(function(e,t,n,a){var r=e("40bf208"),o=e("c744c1f"),i=r.Object;n.exports=function(e){return i(o(e))}})),/*!node_modules/core-js/internals/has-own-property.js*/ amis.define("2c8e0c5",(function(e,t,n,a){var r=e("d759c8f"),o=e("2aaa2da"),i=r({}.hasOwnProperty);n.exports=Object.hasOwn||function(e,t){return i(o(e),t)}})),/*!node_modules/core-js/internals/uid.js*/ amis.define("ca66327",(function(e,t,n,a){var r=e("d759c8f"),o=0,i=Math.random(),l=r(1..toString);n.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+l(++o+i,36)}})),/*!node_modules/core-js/internals/well-known-symbol.js*/ amis.define("74adaad",(function(e,t,n,a){var r=e("40bf208"),o=e("83a202a"),i=e("2c8e0c5"),l=e("ca66327"),s=e("fd7e19d"),u=e("204e2fc"),d=o("wks"),c=r.Symbol,p=c&&c.for,f=u?c:c&&c.withoutSetter||l;n.exports=function(e){if(!i(d,e)||!s&&"string"!=typeof d[e]){var t="Symbol."+e;s&&i(c,e)?d[e]=c[e]:d[e]=u&&p?p(t):f(t)}return d[e]}})),/*!node_modules/core-js/internals/to-primitive.js*/ amis.define("0cb22d8",(function(e,t,n,a){var r=e("40bf208"),o=e("0d3a4f4"),i=e("0364f6b"),l=e("63cff63"),s=e("44a2314"),u=e("38013b5"),d=e("74adaad"),c=r.TypeError,p=d("toPrimitive");n.exports=function(e,t){if(!i(e)||l(e))return e;var n,a=s(e,p);if(a){if(void 0===t&&(t="default"),n=o(a,e,t),!i(n)||l(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}})),/*!node_modules/core-js/internals/to-property-key.js*/ amis.define("8595d27",(function(e,t,n,a){var r=e("0cb22d8"),o=e("63cff63");n.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}})),/*!node_modules/core-js/internals/document-create-element.js*/ amis.define("5eb70b1",(function(e,t,n,a){var r=e("40bf208"),o=e("0364f6b"),i=r.document,l=o(i)&&o(i.createElement);n.exports=function(e){return l?i.createElement(e):{}}})),/*!node_modules/core-js/internals/ie8-dom-define.js*/ amis.define("96fa589",(function(e,t,n,a){var r=e("25f1756"),o=e("5d26485"),i=e("5eb70b1");n.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))})),/*!node_modules/core-js/internals/object-get-own-property-descriptor.js*/ amis.define("825dbd5",(function(e,t,n,a){var r=e("25f1756"),o=e("0d3a4f4"),i=e("221c8d8"),l=e("564d7b4"),s=e("ae07309"),u=e("8595d27"),d=e("2c8e0c5"),c=e("96fa589"),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=s(e),t=u(t),c)try{return p(e,t)}catch(e){}if(d(e,t))return l(!o(i.f,e,t),e[t])}})),/*!node_modules/core-js/internals/v8-prototype-define-bug.js*/ amis.define("fa12b46",(function(e,t,n,a){var r=e("25f1756"),o=e("5d26485");n.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))})),/*!node_modules/core-js/internals/an-object.js*/ amis.define("16ee8f6",(function(e,t,n,a){var r=e("40bf208"),o=e("0364f6b"),i=r.String,l=r.TypeError;n.exports=function(e){if(o(e))return e;throw l(i(e)+" is not an object")}})),/*!node_modules/core-js/internals/object-define-property.js*/ amis.define("d03105d",(function(e,t,n,a){var r=e("40bf208"),o=e("25f1756"),i=e("96fa589"),l=e("fa12b46"),s=e("16ee8f6"),u=e("8595d27"),d=r.TypeError,c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f="enumerable",m="configurable",h="writable";t.f=o?l?function(e,t,n){if(s(e),t=u(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n.writable){var a=p(e,t);a&&a.writable&&(e[t]=n.value,n={configurable:m in n?n.configurable:a.configurable,enumerable:f in n?n.enumerable:a.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=u(t),s(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw d("Accessors not supported");return"value"in n&&(e[t]=n.value),e}})),/*!node_modules/core-js/internals/create-non-enumerable-property.js*/ amis.define("98f219b",(function(e,t,n,a){var r=e("25f1756"),o=e("d03105d"),i=e("564d7b4");n.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}})),/*!node_modules/core-js/internals/inspect-source.js*/ amis.define("60fa1f3",(function(e,t,n,a){var r=e("d759c8f"),o=e("fe5d76e"),i=e("c49b0f9"),l=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return l(e)}),n.exports=i.inspectSource})),/*!node_modules/core-js/internals/native-weak-map.js*/ amis.define("f43db0a",(function(e,t,n,a){var r=e("40bf208"),o=e("fe5d76e"),i=e("60fa1f3"),l=r.WeakMap;n.exports=o(l)&&/native code/.test(i(l))})),/*!node_modules/core-js/internals/shared-key.js*/ amis.define("36850bf",(function(e,t,n,a){var r=e("83a202a"),o=e("ca66327"),i=r("keys");n.exports=function(e){return i[e]||(i[e]=o(e))}})),/*!node_modules/core-js/internals/hidden-keys.js*/ amis.define("fea581a",(function(e,t,n,a){n.exports={}})),/*!node_modules/core-js/internals/internal-state.js*/ amis.define("7017e50",(function(e,t,n,a){var r,o,i,l=e("f43db0a"),s=e("40bf208"),u=e("d759c8f"),d=e("0364f6b"),c=e("98f219b"),p=e("2c8e0c5"),f=e("c49b0f9"),m=e("36850bf"),h=e("fea581a"),v="Object already initialized",g=s.TypeError,y=s.WeakMap;if(l||f.state){var b=f.state||(f.state=new y),_=u(b.get),C=u(b.has),E=u(b.set);r=function(e,t){if(C(b,e))throw new g(v);return t.facade=e,E(b,e,t),t},o=function(e){return _(b,e)||{}},i=function(e){return C(b,e)}}else{var x=m("state");h[x]=!0,r=function(e,t){if(p(e,x))throw new g(v);return t.facade=e,c(e,x,t),t},o=function(e){return p(e,x)?e[x]:{}},i=function(e){return p(e,x)}}n.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!d(t)||(n=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}})),/*!node_modules/core-js/internals/function-name.js*/ amis.define("79997a0",(function(e,t,n,a){var r=e("25f1756"),o=e("2c8e0c5"),i=Function.prototype,l=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,d=s&&(!r||r&&l(i,"name").configurable);n.exports={EXISTS:s,PROPER:u,CONFIGURABLE:d}})),/*!node_modules/core-js/internals/redefine.js*/ amis.define("4210f73",(function(e,t,n,a){var r=e("40bf208"),o=e("fe5d76e"),i=e("2c8e0c5"),l=e("98f219b"),s=e("69e2853"),u=e("60fa1f3"),d=e("7017e50"),c=e("79997a0").CONFIGURABLE,p=d.get,f=d.enforce,m=String(String).split("String");(n.exports=function(e,t,n,a){var u,d=!!a&&!!a.unsafe,p=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet,v=a&&void 0!==a.name?a.name:t;o(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||c&&n.name!==v)&&l(n,"name",v),(u=f(n)).source||(u.source=m.join("string"==typeof v?v:""))),e!==r?(d?!h&&e[t]&&(p=!0):delete e[t],p?e[t]=n:l(e,t,n)):p?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return o(this)&&p(this).source||u(this)}))})),/*!node_modules/core-js/internals/to-integer-or-infinity.js*/ amis.define("2ce65c2",(function(e,t,n,a){var r=Math.ceil,o=Math.floor;n.exports=function(e){var t=+e;return t!=t||0===t?0:(t>0?o:r)(t)}})),/*!node_modules/core-js/internals/to-absolute-index.js*/ amis.define("1eb52bc",(function(e,t,n,a){var r=e("2ce65c2"),o=Math.max,i=Math.min;n.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}})),/*!node_modules/core-js/internals/to-length.js*/ amis.define("7750985",(function(e,t,n,a){var r=e("2ce65c2"),o=Math.min;n.exports=function(e){return e>0?o(r(e),9007199254740991):0}})),/*!node_modules/core-js/internals/length-of-array-like.js*/ amis.define("cf537f3",(function(e,t,n,a){var r=e("7750985");n.exports=function(e){return r(e.length)}})),/*!node_modules/core-js/internals/array-includes.js*/ amis.define("e7e8d0d",(function(e,t,n,a){var r=e("ae07309"),o=e("1eb52bc"),i=e("cf537f3"),l=function(e){return function(t,n,a){var l,s=r(t),u=i(s),d=o(a,u);if(e&&n!=n){for(;u>d;)if((l=s[d++])!=l)return!0}else for(;u>d;d++)if((e||d in s)&&s[d]===n)return e||d||0;return!e&&-1}};n.exports={includes:l(!0),indexOf:l(!1)}})),/*!node_modules/core-js/internals/object-keys-internal.js*/ amis.define("679ab6a",(function(e,t,n,a){var r=e("d759c8f"),o=e("2c8e0c5"),i=e("ae07309"),l=e("e7e8d0d").indexOf,s=e("fea581a"),u=r([].push);n.exports=function(e,t){var n,a=i(e),r=0,d=[];for(n in a)!o(s,n)&&o(a,n)&&u(d,n);for(;t.length>r;)o(a,n=t[r++])&&(~l(d,n)||u(d,n));return d}})),/*!node_modules/core-js/internals/enum-bug-keys.js*/ amis.define("722ace6",(function(e,t,n,a){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]})),/*!node_modules/core-js/internals/object-get-own-property-names.js*/ amis.define("32e2445",(function(e,t,n,a){var r=e("679ab6a"),o=e("722ace6").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}})),/*!node_modules/core-js/internals/object-get-own-property-symbols.js*/ amis.define("639a434",(function(e,t,n,a){t.f=Object.getOwnPropertySymbols})),/*!node_modules/core-js/internals/own-keys.js*/ amis.define("b12b4af",(function(e,t,n,a){var r=e("28bca2a"),o=e("d759c8f"),i=e("32e2445"),l=e("639a434"),s=e("16ee8f6"),u=o([].concat);n.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=l.f;return n?u(t,n(e)):t}})),/*!node_modules/core-js/internals/copy-constructor-properties.js*/ amis.define("10152e7",(function(e,t,n,a){var r=e("2c8e0c5"),o=e("b12b4af"),i=e("825dbd5"),l=e("d03105d");n.exports=function(e,t,n){for(var a=o(t),s=l.f,u=i.f,d=0;dw;w++)if((f||w in C)&&(b=E(y=C[w],w,_),e))if(t)O[w]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return w;case 2:d(O,y)}else switch(e){case 4:return!1;case 7:d(O,y)}return c?-1:a||o?o:O}};n.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}})),/*!node_modules/core-js/internals/object-keys.js*/ amis.define("e1418b2",(function(e,t,n,a){var r=e("679ab6a"),o=e("722ace6");n.exports=Object.keys||function(e){return r(e,o)}})),/*!node_modules/core-js/internals/object-define-properties.js*/ amis.define("bf26dbd",(function(e,t,n,a){var r=e("25f1756"),o=e("fa12b46"),i=e("d03105d"),l=e("16ee8f6"),s=e("ae07309"),u=e("e1418b2");t.f=r&&!o?Object.defineProperties:function(e,t){l(e);for(var n,a=s(t),r=u(t),o=r.length,d=0;o>d;)i.f(e,n=r[d++],a[n]);return e}})),/*!node_modules/core-js/internals/html.js*/ amis.define("1b84e34",(function(e,t,n,a){var r=e("28bca2a");n.exports=r("document","documentElement")})),/*!node_modules/core-js/internals/object-create.js*/ amis.define("5728705",(function(e,t,n,a){var r,o=e("16ee8f6"),i=e("bf26dbd"),l=e("722ace6"),s=e("fea581a"),u=e("1b84e34"),d=e("5eb70b1"),c=e("36850bf"),p=c("IE_PROTO"),f=function(){},m=function(e){return"