antd-management-fast-component 2.6.65 → 2.6.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ export class HelpBox extends React.PureComponent<any, any, any> {
5
5
  }
6
6
  export namespace HelpBox {
7
7
  namespace defaultProps {
8
+ let style: null;
8
9
  let title: string;
9
10
  let showTitle: boolean;
10
11
  let showNumber: boolean;
package/es/index.js CHANGED
@@ -5,4 +5,4 @@ e.exports=n=function(){return l},e.exports.__esModule=!0,e.exports.default=e.exp
5
5
  object-assign
6
6
  (c) Sindre Sorhus
7
7
  @license MIT
8
- */function nf(){if(Gs)return $s;Gs=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return $s=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,l){for(var o,a,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),c=1;c<arguments.length;c++){for(var u in o=Object(arguments[c]))t.call(o,u)&&(i[u]=o[u]);if(e){a=e(o);for(var s=0;s<a.length;s++)n.call(o,a[s])&&(i[a[s]]=o[a[s]])}}return i},$s}function rf(){return Ys?Ks:(Ys=1,Ks=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var lf=tf();zs.exports=function(){if(Zs)return Qs;Zs=1;var e=tf(),t=nf(),n=Fs(),r=rf(),l=function(){if(Xs)return Js;Xs=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Fs(),n={},r=rf();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function l(l,o,a,i,c){if("production"!==process.env.NODE_ENV)for(var u in l)if(r(l,u)){var s;try{if("function"!=typeof l[u]){var f=Error((i||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ao(l[u])+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=l[u](o,u,i,a,null,t)}catch(e){s=e}if(!s||s instanceof Error||e((i||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+ao(s)+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in n)){n[s.message]=!0;var d=c?c():"";e("Failed "+a+" type: "+s.message+(null!=d?d:""))}}}return l.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Js=l}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Qs=function(i,c){var u="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",d={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:m(a),arrayOf:function(e){return m((function(t,r,l,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+l+"` has invalid PropType notation inside arrayOf.");var i=t[r];if(!Array.isArray(i))return new h("Invalid "+o+" `"+a+"` of type `"+b(i)+"` supplied to `"+l+"`, expected an array.");for(var c=0;c<i.length;c++){var u=e(i,c,l,o,a+"["+c+"]",n);if(u instanceof Error)return u}return null}))},element:m((function(e,t,n,r,l){var o=e[t];return i(o)?null:new h("Invalid "+r+" `"+l+"` of type `"+b(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,l,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+l+" `"+o+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,l,o){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+l+" `"+o+"` of type `"+((i=t[n]).constructor&&i.constructor.name?i.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var i;return null}))},node:m((function(e,t,n,r,l){return g(e[t])?null:new h("Invalid "+r+" `"+l+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,l,o,a,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var c=t[l],u=b(c);if("object"!==u)return new h("Invalid "+a+" `"+i+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var s in c)if(r(c,s)){var f=e(c,s,o,a,i+"."+s,n);if(f instanceof Error)return f}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,r,l,o){for(var a=t[n],i=0;i<e.length;i++)if(p(a,e[i]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new h("Invalid "+l+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var l=e[t];if("function"!=typeof l)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+E(l)+" at index "+t+"."),a}return m((function(t,l,o,a,i){for(var c=[],u=0;u<e.length;u++){var s=(0,e[u])(t,l,o,a,i,n);if(null==s)return null;s.data&&r(s.data,"expectedType")&&c.push(s.data.expectedType)}return new h("Invalid "+a+" `"+i+"` supplied to `"+o+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,l,o,a){var i=t[r],c=b(i);if("object"!==c)return new h("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+l+"`, expected `object`.");for(var u in e){var s=e[u];if("function"!=typeof s)return y(l,o,a,u,x(s));var f=s(i,u,l,o,a+"."+u,n);if(f)return f}return null}))},exact:function(e){return m((function(l,o,a,i,c){var u=l[o],s=b(u);if("object"!==s)return new h("Invalid "+i+" `"+c+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=t({},l[o],e);for(var d in f){var p=e[d];if(r(e,d)&&"function"!=typeof p)return y(a,i,c,d,x(p));if(!p)return new h("Invalid "+i+" `"+c+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(l[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=p(u,d,a,i,c+"."+d,n);if(m)return m}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"===ao(t)?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function l(l,a,i,u,s,d,p){if(u=u||f,d=d||i,p!==n){if(c){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=u+":"+i;!t[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[i]?l?null===a[i]?new h("The "+s+" `"+d+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+s+" `"+d+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,i,u,s,d)}var a=l.bind(null,!1);return a.isRequired=l.bind(null,!0),a}function v(e){return m((function(t,n,r,l,o,a){var i=t[n];return b(i)!==e?new h("Invalid "+l+" `"+o+"` of type `"+x(i)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,l){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+l+"`.")}function g(e){switch(ao(e)){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||i(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[s]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var l=n.value;if(l&&!g(l[1]))return!1}return!0;default:return!1}}function b(e){var t=ao(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function x(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function E(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=l,d.resetWarningCache=l.resetWarningCache,d.PropTypes=d,d},Qs}()(lf.isElement,!0)}else zs.exports=function(){if(Ms)return Us;Ms=1;var e=Fs();function t(){}function n(){}return n.resetWarningCache=t,Us=function(){function r(t,n,r,l,o,a){if(a!==e){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function l(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:l,element:r,elementType:r,instanceOf:l,node:r,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var of=la(zs.exports),af="index_linkGroup__diKbl";function cf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var uf=function(t){vo(o,n);var l=cf(o);function o(){return fo(this,o),l.apply(this,arguments)}return ho(o,[{key:"render",value:function(){var t=this.props,n=t.links,l=t.linkElement,o=t.onAdd;return e.createElement("div",{className:af},n.map((function(e){return r(l,{key:"linkGroup-item-".concat(e.id||e.title),to:e.href,href:e.href},e.title)})),e.createElement(Ye,{size:"small",type:"primary",ghost:!0,onClick:o,icon:ma.plus()},"添加"))}}]),o}();function sf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}uf.propTypes={links:of.array,onAdd:of.func,linkElement:of.oneOfType([of.func,of.string])},uf.defaultProps={links:[],onAdd:function(){},linkElement:"a"};var ff=function(t){vo(l,n);var r=sf(l);function l(){var t;fo(this,l);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(t=r.call.apply(r,[this].concat(o))).editor=e.createRef(),t.buildConfig=function(){var e=t.props.initConfig;return so({language:"zh_CN",height:690,plugins:"preview importcss searchreplace autolink autosave save directionality visualblocks visualchars fullscreen image link media template codesample code table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons autoresize",mobile:{plugins:"preview importcss searchreplace autolink autosave save directionality visualblocks visualchars fullscreen image link media template codesample code table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons autoresize"},menu:{tc:{title:"Comments",items:"addcomment showcomments deleteallconversations"}},menubar:"file edit view insert format tools table tc help",toolbar:"undo redo bold italic underline strikethrough fontselect fontsizeselect formatselect alignleft aligncenter alignright alignjustify outdent indent numlist bullist forecolor backcolor removeformat visualblocks visualchars table tabledelete tableprops tablerowprops tablecellprops tableinsertrowbefore tableinsertrowafter tabledeleterow tableinsertcolbefore tableinsertcolafter tabledeletecol searchreplace pagebreak nonbreaking charmap emoticons fullscreen preview wordcount save insertdatetime insertfile image media template link anchor codesample code ltr rtl showcomments addcomment restoredraft help",autosave_ask_before_unload:!0,autosave_interval:"30s",autosave_prefix:"{path}{query}-{id}-",autosave_restore_when_empty:!1,autosave_retention:"2m",image_advtab:!0,importcss_append:!0,templates:[{title:"新建表格",description:"creates a new table",content:'<div class="mceTmpl"><table width="98%%" border="0" cellspacing="0" cellpadding="0"><tr><th scope="col"> </th><th scope="col"> </th></tr><tr><td> </td><td> </td></tr></table></div>'},{title:"Starting my story",description:"A cure for writers block",content:"Once upon a time..."},{title:"附带日期的清单",description:"附带日期的清单",content:'<div class="mceTmpl"><span class="cdate">cdate</span><br /><span class="mdate">mdate</span><h2>My List</h2><ul><li></li><li></li></ul></div>'}],template_cdate_format:"[Date Created (CDATE): %m/%d/%Y : %H:%M:%S]",template_mdate_format:"[Date Modified (MDATE): %m/%d/%Y : %H:%M:%S]",image_caption:!0,quickbars_selection_toolbar:"bold italic | quicklink h2 h3 blockquote quickimage quicktable",noneditable_noneditable_class:"mceNonEditable",toolbar_mode:"sliding",content_style:".mymention{ color: gray; }",contextmenu:"link image table",a11y_advanced_options:!0,skin:"oxide",content_css:"default",automatic_uploads:!0,images_upload_url:"",min_height:700,toolbar_sticky:!0,images_upload_handler:t.imageUploadHandler},e)},t.imageUploadHandler=function(e,n){return new Promise((function(r,l){var o,a,i=t.props.imagesUploadUrl,c=Se(),u="".concat(c).concat(i);(o=new XMLHttpRequest).withCredentials=!1,o.open("POST",u),o.setRequestHeader(Pe(),Q()||"anonymous"),o.upload.addEventListener("progress",(function(e){n(e.loaded/e.total*100)})),o.addEventListener("load",(function(){if(403!==o.status)if(o.status<200||o.status>=300)l("HTTP Error: "+o.status);else{var e={};try{e=JSON.parse(o.responseText)}catch(e){return l("图片上传失败, 返回数据非Json格式, 请检查"),void Z(o.responseText)}var t=ee({source:e});if(t.dataSuccess){var n=t.data.imageUrl;r(n||"")}else l("图片上传失败,请确认上传地址有效可用,当前上传地址为: ".concat(u))}else l({message:"HTTP Error: "+o.status,remove:!0})})),o.onerror=function(){l("图片上传失败,请确认上传地址有效可用. Code: "+o.status)},(a=new FormData).append("file",e.blob(),e.filename()),o.send(a)}))},t.handleEditorChange=function(e,n){var r=t.props.afterChange;h(r)&&r({html:n.getContent(),text:n.getContent({format:"text"})})},t}return ho(l,[{key:"render",value:function(){var t=this,n=this.props,r=n.apiKey,l=n.content;return e.createElement("div",{style:{border:"0px solid #ccc"}},e.createElement(eo,{apiKey:r,onInit:function(e,n){return t.editor.current=n},initialValue:l,init:this.buildConfig(),onEditorChange:this.handleEditorChange}))}}]),l}();ff.defaultProps={apiKey:"",content:"",initConfig:null,imagesUploadUrl:""};var df={TinymceWrapper:ff};function pf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var hf=function(t){vo(r,Co);var n=pf(r);function r(t){var l;return fo(this,r),(l=n.call(this,t)).showSelect=function(){l.openSelector()},l.openSelector=function(){throw new Error(l.buildOverloadErrorText("openSelector"))},l.afterSelectSuccess=function(e){v(k(l.componentName,"ElasticitySelectButton::BaseElasticitySelectButton","trigger","afterSelectSuccess","afterSelectSuccessCore")),l.afterSelectSuccessCore(e)},l.afterSelectSuccessCore=function(e){if(null!=(e||null)){var t=l.props.afterSelectSuccess,n=T(e)?te(e)?null:e[0]:e;l.setState({selectData:n}),h(t)&&t(n)}},l.renderPresetButton=function(){var t=l.props,n=t.type,r=t.size,o=t.text,a=t.icon,i=t.disabled,c=t.style,u=t.color,s=t.showIcon,f=t.children,d={type:n,size:r,text:o,icon:a,disabled:i,style:c,color:u,showIcon:s,handleClick:function(){l.showSelect()}};return e.createElement(xa,d,f)},l.renderPresetSelector=function(){throw new Error(l.buildOverloadErrorText("renderPresetSelector"))},l.renderPresetOther=function(){return l.renderPresetSelector()},l.state=so(so({},l.state),{},{selectData:null}),l}return ho(r,[{key:"renderFurther",value:function(){return e.createElement(e.Fragment,null,this.renderPresetButton(),this.renderPresetOther())}}]),r}();hf.defaultProps={type:"default",size:"default",icon:null,disabled:!1,style:null,color:null,showIcon:!0,text:"按钮",afterSelectSuccess:null};var mf={BaseElasticitySelectButton:hf};function vf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var yf=function(t){vo(r,Co);var n=vf(r);function r(){return fo(this,r),n.apply(this,arguments)}return ho(r,[{key:"renderFurther",value:function(){var t=this.props,n=t.onSelect,r=void 0===n?null:n,l=t.innerProps,o=void 0===l?{}:l,a=t.listData,i=void 0===a?[]:a,c=t.dataConvert,u=void 0===c?null:c,s=so({showLine:!0},o),f=T(i)?i:[],d=h(u)?G({list:f,convert:u,recursiveKey:"children"}):f;return s.treeData=d,s.onSelect=function(e,t){var n=t.selectedNodes,l=t.node;h(r)&&r(e,t,{selectedNodes:n,node:l,treeData:d,listData:i})},e.createElement(it,s)}}]),r}();yf.defaultProps={onSelect:null,innerProps:{},listData:[],dataConvert:null};var gf=["text","length","tooltip","fullWidthRecognition"],bf=["children","lines","length","tooltip","fullWidthRecognition","title","color"];function xf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Ef=void 0!==document.body.style.webkitLineClamp,kf={overflowWrap:"break-word",wordWrap:"break-word"},wf=function(t){var n=t.tooltip,r=t.overlayStyle,l=t.title,o=t.color,a=t.children;if(n){var i=!0===n?{overlayStyle:r,title:l,color:o}:so(so({},n),{},{overlayStyle:r,title:l,color:o});return e.createElement(He,i,a)}return a},Cf=function(t){var n=t.text,r=t.length,l=t.tooltip,o=t.fullWidthRecognition,a=To(t,gf);if("string"!=typeof n)throw new TypeError("Ellipsis children must be string.");var i=o?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("").reduce((function(e,t){var n=t.codePointAt(0);return n>=0&&n<=128?e+1:e+2}),0)}(n):n.length;if(i<=r||r<0)return e.createElement("span",a,n);var c;c=r-3<=0?"":o?function(){var e=arguments.length>1?arguments[1]:void 0,t=0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("").reduce((function(n,r){var l=r.codePointAt(0);return(t+=l>=0&&l<=128?1:2)<=e?n+r:n}),"")}(n,r):n.slice(0,r);var u=l?{}:so({},a);return wf({tooltip:l,overlayStyle:kf,title:n,children:e.createElement("span",u,c,"...")})},Rf=function(n){vo(l,t);var r=xf(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).state={text:"",targetCount:0},e.computeLine=function(){var t=e.props.lines;if(t&&!Ef){var n=e.shadowChildren.innerText||e.shadowChildren.textContent,r=t*Number.parseInt(getComputedStyle(e.root).lineHeight,10);e.content.style.height="".concat(r,"px");var l=e.shadowChildren.offsetHeight,o=e.shadow.firstChild;if(l<=r)return void e.setState({text:n,targetCount:n.length});var a=n.length,i=Math.ceil(a/2),c=e.bisection(r,i,0,a,n,o);e.setState({text:n,targetCount:c})}},e.bisection=function(t,n,r,l,o,a){var i="...",c=n,u=l,s=r;a.innerHTML=o.slice(0,Math.max(0,c))+i;var f=a.offsetHeight;return f<=t?(a.innerHTML=o.slice(0,Math.max(0,c+1))+i,(f=a.offsetHeight)>t||c===s?c:(c=u-(s=c)==1?1+s:Math.floor((u-s)/2)+s,e.bisection(t,c,s,u,o,a))):c-1<0?c:(a.innerHTML=o.slice(0,Math.max(0,c-1))+i,(f=a.offsetHeight)<=t?c-1:(u=c,c=Math.floor((u-s)/2)+s,e.bisection(t,c,s,u,o,a)))},e.handleRoot=function(t){e.root=t},e.handleContent=function(t){e.content=t},e.handleNode=function(t){e.node=t},e.handleShadow=function(t){e.shadow=t},e.handleShadowChildren=function(t){e.shadowChildren=t},e}return ho(l,[{key:"componentDidMount",value:function(){this.node&&this.computeLine()}},{key:"componentDidUpdate",value:function(e){this.props.lines!==e.lines&&this.computeLine()}},{key:"render",value:function(){var t=this.state,n=t.text,r=t.targetCount,l=this.props,o=l.children,a=l.lines,i=l.length,c=l.tooltip,u=l.fullWidthRecognition,s=l.title,f=l.color,d=To(l,bf),p=so({display:"inline-block",width:"100%",overflow:"hidden",whiteSpace:"normal",wordBreak:"break-all"},a?Ef?{position:"relative",display:"flex",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",lineClamp:a}:{position:"relative"}:{}),h={position:"absolute",zIndex:"-999",display:"block",color:"transparent",opacity:0};if(!a&&!i)return e.createElement("span",Po({style:p},d),o);if(!a)return e.createElement(Cf,Po({style:p,length:i,text:o||"",tooltip:c,fullWidthRecognition:u},d));if(Ef){var m=e.createElement("div",Po({style:p},d),o);return wf(so({tooltip:c,overlayStyle:kf,title:s||o,children:m},L(f)?{}:{color:f}))}var v=e.createElement("span",{ref:this.handleNode},r>0&&n.slice(0,Math.max(0,r)),r>0&&r<n.length&&"...");return e.createElement("div",Po({},d,{ref:this.handleRoot,style:p}),e.createElement("div",{ref:this.handleContent},wf({tooltip:c,overlayStyle:kf,title:n,children:v}),e.createElement("div",{ref:this.handleShadowChildren,style:h},o),e.createElement("div",{ref:this.handleShadow,style:h},e.createElement("span",null,n))))}}]),l}();function Sf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Pf=function(t){vo(l,n);var r=Sf(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.size,r=t.direction,l=t.backgroundColor,o=t.margin,a=t.borderRadius;if(n<=0)return null;if("vertical"!==r&&"horizontal"!==r)return null;var i=so(so(so({},L(l||"")?{}:{backgroundColor:l}),L(o||"")?{}:{margin:o}),L(a||"")?{}:{borderRadius:a});return e.createElement(e.Fragment,null,"horizontal"===r?e.createElement("div",{style:so({height:"".concat(n,"px")},i)}):null,"vertical"===r?e.createElement("div",{style:so({height:"100%",width:"".concat(n,"px")},i)}):null)}}]),l}();function Tf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Pf.defaultProps={size:10,direction:"vertical",backgroundColor:"",margin:"",borderRadius:""};var _f=uu.OnlyShowInputItem,If=function(t){vo(r,Co);var n=Tf(r);function r(t){var l;return fo(this,r),(l=n.call(this,t)).clearSelect=function(){var e=l.props.afterClearSelect;l.setState({selectData:null}),h(e)&&e()},l.showSelect=function(){l.openSelector()},l.openSelector=function(){throw new Error(l.buildOverloadErrorText("openSelector"))},l.afterSelectSuccess=function(e){v(k(l.componentName,"FieldExtra::SelectFieldExtra::BaseSelectFieldExtra","trigger","afterSelectSuccess","afterSelectSuccessCore")),l.afterSelectSuccessCore(e)},l.afterSelectSuccessCore=function(e){if(null!=(e||null)){var t=l.props.afterSelectSuccess,n=T(e)?te(e)?null:e[0]:e;l.setState({selectData:n}),h(t)&&t(n)}},l.selectValueText=function(e){throw new Error(l.buildOverloadErrorText("selectValueText"))},l.renderPresetSelector=function(){throw new Error(l.buildOverloadErrorText("renderPresetSelector"))},l.renderPresetField=function(){var t=l.props,n=t.label,r=t.defaultValue,o=t.helper,a=t.placeholder,i=t.formItemLayout,c=t.showClear,u=l.state.selectData,s=l.selectValueText(u),f=L(s)?r||"":s;return e.createElement(_f,{label:n,value:f,helper:o||null,icon:ma.form(),innerProps:{placeholder:a||K(n,"选择"),readOnly:!0,addonAfter:e.createElement(e.Fragment,null,e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},title:K(n,"选择"),onClick:function(e){return l.showSelect(e)}},ma.search()),c?e.createElement(Je,{type:"vertical",style:{paddingLeft:2,paddingRight:2}}):null,c?e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},disabled:null==u,title:"清除选择",onClick:function(){return l.clearSelect()}},ma.closeCircle()):null)},formItemLayout:i})},l.renderPresetOther=function(){return l.renderPresetSelector()},l.state=so(so({},l.state),{},{selectData:null}),l}return ho(r,[{key:"renderFurther",value:function(){return e.createElement(e.Fragment,null,this.renderPresetField(),this.renderPresetOther())}}]),r}();If.defaultProps={label:"",defaultValue:"",helper:"",placeholder:"",formItemLayout:null,required:!1,showClear:!0};var Bf={SelectFieldExtra:{BaseSelectFieldExtra:If}},Of="index_figureRange__uSkT-",Lf="index_select__CaB5l",Af="index_valueInput__HvPU-",Nf="index_minInput__SCgSA",Uf="index_inputSplit__8-vEK",Mf="index_maxInput__nUT8j";function Df(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var zf=lt.Option,Ff={unlimited:{flag:-1e4,text:"不限"},zero:{flag:0,text:"零"},eq:{flag:10,text:"等于"},gt:{flag:20,text:"大于"},gte:{flag:21,text:"大于等于"},le:{flag:30,text:"小于"},lte:{flag:31,text:"小于等于"},between:{flag:40,text:"范围之内"},except:{flag:50,text:"范围之外"}},jf=function(t){vo(l,n);var r=Df(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).rangeType=Ff,t.onDataChange=function(e,n,r,l){var o=t.props.onChange;h(o)&&o(g(e),g(n),g(r),g(l))},t.onTypeChange=function(e){var n=t.state,r=n.min,l=n.max,o=n.value,a=g(e);t.setState({type:a}),t.onDataChange(a,r,l,o)},t.onValueChange=function(e){var n=t.state,r=n.type,l=n.min,o=n.max,a=e.target.value,i=g(a);t.setState({value:i}),t.onDataChange(r,l,o,i)},t.onMinChange=function(e){var n=t.state,r=n.type,l=n.max,o=n.value,a=e.target.value,i=g(a);t.setState({min:g(a)}),t.onDataChange(r,i,l,o)},t.onMaxChange=function(e){var n=t.state,r=n.type,l=n.min,o=n.value,a=e.target.value,i=g(a);t.setState({max:i}),t.onDataChange(r,l,i,o)},t.state={type:Ff.unlimited.flag,min:null,max:null,value:null},t}return ho(l,[{key:"render",value:function(){var t=this,n=this.props,r=n.minText,l=n.maxText,o=n.splitText,a=n.valueText,i=this.state,c=i.type,u=i.min,s=i.max,f=i.value;return e.createElement(dt.Group,{compact:!0,className:Of},e.createElement($e,{wrap:!1,style:{display:"flex"}},e.createElement(Ge,{flex:c===Ff.unlimited.flag||c===Ff.zero.flag?"auto":"100px"},e.createElement(lt,{className:c!==Ff.unlimited.flag&&c!==Ff.zero.flag?Lf:null,style:{width:"100%"},defaultValue:"".concat(c),value:"".concat(c),onChange:function(e){t.onTypeChange(e)}},e.createElement(zf,{value:"".concat(Ff.unlimited.flag)},Ff.unlimited.text),e.createElement(zf,{value:"".concat(Ff.zero.flag)},Ff.zero.text),e.createElement(zf,{value:"".concat(Ff.eq.flag)},Ff.eq.text),e.createElement(zf,{value:"".concat(Ff.gt.flag)},Ff.gt.text),e.createElement(zf,{value:"".concat(Ff.gte.flag)},Ff.gte.text),e.createElement(zf,{value:"".concat(Ff.le.flag)},Ff.le.text),e.createElement(zf,{value:"".concat(Ff.lte.flag)},Ff.lte.text),e.createElement(zf,{value:"".concat(Ff.between.flag)},Ff.between.text),e.createElement(zf,{value:"".concat(Ff.except.flag)},Ff.except.text))),c!==Ff.unlimited.flag&&c!==Ff.zero.flag?e.createElement(Ge,{flex:"auto"},c===Ff.eq.flag||c===Ff.gt.flag||c===Ff.gte.flag||c===Ff.le.flag||c===Ff.lte.flag?e.createElement(dt,{className:Af,value:f,placeholder:a,onChange:function(e){t.onValueChange(e)}}):null,c===Ff.between.flag||c===Ff.except.flag?e.createElement($e,{wrap:!1},e.createElement(Ge,{flex:"0 1 auto"},e.createElement(dt,{style:{textAlign:"center"},className:Nf,placeholder:r,value:u,onChange:function(e){t.onMinChange(e)}})),e.createElement(Ge,{flex:"1 1 30px"},e.createElement(dt,{className:Uf,style:{textAlign:"center",borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:o,disabled:!0})),e.createElement(Ge,{flex:"0 1 auto"},e.createElement(dt,{className:Mf,style:{textAlign:"center"},placeholder:l,value:s,onChange:function(e){t.onMaxChange(e)}}))):null):null))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.type,r=e.min,l=e.max,o=e.value,a=g(n),i=g(r),c=g(l),u=g(o);return a!==Ff.unlimited.flag&&a!==Ff.zero.flag&&a!==Ff.eq.flag&&a!==Ff.gt.flag&&a!==Ff.gte.flag&&a!==Ff.le.flag&&a!==Ff.lte.flag&&a!==Ff.between.flag&&a!==Ff.except.flag?{type:Ff.unlimited.flag,min:null,max:null,value:null}:{type:a,min:i,max:c,value:u}}}]),l}();function Vf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}jf.defaultProps={minText:"最小值",maxText:"最大值",valueText:"请输入",splitText:"~",type:Ff.unlimited.flag,min:null,max:null,value:null};var Wf=function(t){vo(l,n);var r=Vf(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).handleUploadCancel=function(){return t.setState({previewVisible:!1})},t.beforeUpload=function(e){var t=e.size/1024/1024<Te();if(!t){var n="文件不能超过".concat(Te(),"MB!");V(n)}return t},t.handleUploadChange=function(e){var n=t.props,r=n.pretreatmentRemoteResponse,l=n.afterUploadSuccess;if("uploading"!==e.file.status){if("done"===e.file.status){var o=e.file.response;if(h(r)){var a=so({fileBase64:"",data:{}},r(o)),i=a.fileBase64,c=a.data;if(t.setState({uploading:!1}),h(l))l(i||"",c);else{V("afterUploadSuccess 配置无效")}}else{V("pretreatmentRemoteResponse 配置无效")}}}else t.setState({uploading:!0})},t.state=so(so({},t.state),{},{uploading:!1,base64:""}),t}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.action,r=t.disabled,l=t.uploadText,o=t.tokenSet,a=this.state,i=a.uploading,c=a.base64,u={disabled:r,action:n,listType:"text",showUploadList:!1,beforeUpload:this.beforeUpload,onChange:this.handleUploadChange,headers:so({},o)};return e.createElement(dt,{readOnly:!0,addonBefore:ma.file(),placeholder:"请选择上传".concat(l||"文件"),value:c,addonAfter:e.createElement(e.Fragment,null,e.createElement(vt,u,e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},disabled:i,title:"选择".concat(l||"文件")},i?ma.loading():ma.upload(),i?"正在上传":"选择".concat(l||"文件"))))})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return{base64:e.fileBase64}}}]),l}();function qf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Wf.defaultProps={action:"",disabled:!1,tokenSet:{},fileBase64:"",uploadText:"文件",pretreatmentRemoteResponse:function(){},afterUploadSuccess:function(){}};var Hf=dt.TextArea,$f=function(t){vo(l,n);var r=qf(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).showChangeUrlModal=function(){var e=t.state.fileUrl;t.setState({fileUrlTemp:e,changeUrlVisible:!0})},t.handleUrlChange=function(e){var n=e.target.value;t.setState({fileUrlTemp:n})},t.handleChangeUrlOk=function(){var e=t.props.afterChangeSuccess,n=t.state.fileUrlTemp;t.setState({fileUrl:n,changeUrlVisible:!1},(function(){if(h(e))e(n||"",{file:n});else{V({message:"afterChangeSuccess 配置无效"})}}))},t.handleChangeUrlCancel=function(){t.setState({changeUrlVisible:!1})},t.clearUrl=function(){var e=t.props.afterChangeSuccess;t.setState({fileUrl:"",changeUrlVisible:!1},(function(){if(h(e))e("",null);else{V("afterChangeSuccess 配置无效")}}))},t.beforeUpload=function(e){var t=Te(),n=e.size/1024/1024<t;if(!n){var r="文件不能超过".concat(t,"MB!");u(r)}return n},t.handleUploadChange=function(e){var n=t.props,r=n.pretreatmentRemoteResponse,l=n.afterUploadSuccess,o=n.afterChangeSuccess;if("uploading"!==e.file.status){if("done"===e.file.status){var a=e.file.response;if(h(r)){var i=so({file:"",data:{}},r(a)),c=i.file,u=i.data;t.setState({fileUrl:c,uploading:!1},(function(){if(h(l))l(c||"",u);else{V("afterUploadSuccess 配置无效")}if(h(o))o(c||"",u);else{V("afterChangeSuccess 配置无效")}}))}else{V("pretreatmentRemoteResponse 配置无效")}}}else t.setState({uploading:!0})},t.handleMenuClick=function(e){var n=e.key,r=t.state.fileUrl;switch(n){case"changeUrl":t.showChangeUrlModal();break;case"copyUrl":if(L(r)){u("当前未设置文件地址")}else be(r);break;case"clearUrl":t.clearUrl()}},t.state=so(so({},t.state),{},{fileSource:"",fileUrl:"",fileUrlTemp:"",uploading:!1,changeUrlVisible:!1}),t}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.action,r=t.disabled,l=t.tokenSet,o=this.state,a=o.uploading,i=o.changeUrlVisible,c=o.fileUrlTemp,u=o.fileUrl,s={disabled:r,action:n,listType:"text",showUploadList:!1,beforeUpload:this.beforeUpload,onChange:this.handleUploadChange,headers:so({},l)},f=[{key:"changeUrl",label:"更换地址",icon:ma.swap()},{key:"copyUrl",label:"复制地址",icon:ma.copy(),disabled:L(u)},{key:"clearUrl",label:"清空文件",icon:ma.delete(),disabled:L(u)}],d=e.createElement(tt,{split:e.createElement(Je,{type:"vertical"})},e.createElement(He,{key:"showChangeUrlTip",placement:"top",title:"上传文件"},e.createElement(vt,s,e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},disabled:a},a?ma.loading():ma.upload(),a?"稍后":"上传"))),e.createElement(He,{key:"showMoreTip",placement:"top",title:"更多操作"},e.createElement(yt,{arrow:!0,placement:"bottomRight",menu:{items:f,onClick:this.handleMenuClick},style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0}},e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0}},e.createElement(sr,{style:{fontSize:20,verticalAlign:"top"}})))));return e.createElement(e.Fragment,null,e.createElement(dt,{disabled:!0,addonBefore:ma.link(),addonAfter:d,value:u,placeholder:"当前未设置文件地址"}),e.createElement(gt,{title:e.createElement(ga,{icon:ma.swap(),text:"请输入将更换的文件地址"}),open:i,onOk:this.handleChangeUrlOk,onCancel:this.handleChangeUrlCancel},e.createElement(Hf,{rows:4,value:c,onChange:this.handleUrlChange,placeholder:"目前没有将要更换的文件地址"})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.file;return(n||"")!==(t.fileSource||"")?{fileSource:n,fileUrl:n}:null}}]),l}();$f.defaultProps={action:"",disabled:!1,tokenSet:{},file:"",pretreatmentRemoteResponse:function(){},afterUploadSuccess:function(){},afterChangeSuccess:function(){}};var Gf=function(t){var n=t.links;return e.createElement("div",{style:{}},e.createElement(to,{copyright:so({copyright:""},O()).copyright||"",links:n}))},Kf="index_toolbar__Lv2C-",Yf="index_left__xsHpF",Jf="index_right__xs5Mf",Xf=["children","className","extra"];function Qf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Zf=function(n){vo(l,t);var r=Qf(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).state={width:void 0},e.resizeFooterToolbar=function(){var t=document.querySelector(".ant-layout-sider");if(null!=t){var n=e.context.isMobile?null:"calc(100% - ".concat(t.style.width,")");e.state.width!==n&&e.setState({width:n})}},e}return ho(l,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.resizeFooterToolbar),this.resizeFooterToolbar()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resizeFooterToolbar)}},{key:"render",value:function(){var t=this.props,n=t.children,r=t.className,l=t.extra,o=To(t,Xf),a=this.state.width;return e.createElement("div",Po({className:Gl(r,Kf),style:{width:a}},o),e.createElement("div",{className:Yf},l),e.createElement("div",{className:Jf},n))}}]),l}();function ed(e){var t=e.withUnlimited,n={whetherList:Be}.whetherList;return void 0===t||t?ne(n,_e):ne(n)}Zf.contextTypes={isMobile:of.bool};var td={Whether:Object.freeze({__proto__:null,getWhetherName:function(e){var t=e.value,n=e.defaultValue,r=void 0===n?"":n,l=e.trueText,o=void 0===l?"":l,a=e.falseText,i=void 0===a?"":a;if(re(t))return r;var c=le("flag","".concat(oe(ae(t)?null:t)?"":t),ed({withUnlimited:!1}));return L(o)||"1"!==c.flag||(c.name=o,c.alias=o),L(i)||"0"!==c.flag||(c.name=i,c.alias=i),null==c?"未知":c.name},refitWhetherList:ed,renderCustomWhetherRadio:function(e){var t=e.label,n=void 0===t?"调用时设置":t,r=e.separator,l=void 0===r?": ":r,o=e.size,a=void 0===o?"middle":o,i=e.onChange,c=e.innerProps,u=void 0===c?null:c;return Ji({label:n,defaultValue:null,separator:l,size:a,list:ed({withUnlimited:!0}),dataConvert:pi,renderItem:null,onChange:i,innerProps:u})},renderCustomWhetherSelect:function(e){var t=e.label,n=void 0===t?"调用时设置":t,r=e.separator,l=void 0===r?":":r,o=e.size,a=void 0===o?"middle":o,i=e.onChange,c=e.innerProps,u=void 0===c?null:c;return Yi({label:n,defaultValue:null,separator:l,size:a,list:ed({withUnlimited:!0}),dataConvert:pi,renderItem:null,onChange:i,innerProps:u})},renderFormWhetherRadio:function(e){var t=e.helper,n=void 0===t?null:t,r=e.onChange,l=e.label,o=void 0===l?"调用时设置":l,a=e.formItemLayout,i=void 0===a?null:a,c=e.required,u=void 0===c||c,s=e.name,f=void 0===s?"whether":s,d=e.innerProps,p=void 0===d?null:d;return Ku({label:o||Ie,name:f,helper:n,list:ed({withUnlimited:!1}),dataConvert:pi,onChange:r,formItemLayout:i,required:u,innerProps:p})},renderFormWhetherSelect:function(e){var t=e.helper,n=void 0===t?null:t,r=e.onChange,l=e.label,o=void 0===l?"调用时设置":l,a=e.formItemLayout,i=void 0===a?null:a,c=e.required,u=void 0===c||c,s=e.name,f=void 0===s?"whether":s,d=e.innerProps,p=void 0===d?null:d;return Gu({label:o||Ie,name:f,helper:n,list:ed({withUnlimited:!1}),dataConvert:pi,onChange:r,formItemLayout:i,required:u,innerProps:p})},renderSearchWhetherSelect:function(e){var t=e.withUnlimited,n=void 0===t||t,r=e.label,l=void 0===r?"调用时设置":r,o=e.name,a=void 0===o?"whether":o,i=e.helper;return es({label:l||Ie,name:a,helper:void 0===i?null:i,list:ed({withUnlimited:n}),dataConvert:pi})}})},nd="index_globalFooter__Als7O",rd="index_links__xxMJr",ld="index_copyright__0ACcX",od=function(t){var n=t.className,r=t.links,l=t.copyright,o=Gl(nd,n);return e.createElement("footer",{className:o},r&&e.createElement("div",{className:rd},r.map((function(t){return e.createElement(Ao,{key:t.key,title:t.key,target:t.blankTarget?"_blank":"_self",href:t.href,rel:"noreferrer"},t.title)}))),l&&e.createElement("div",{className:ld},l))},ad="index_helpBox__h-qwJ",id="index_helpBoxNoBackground__vDRGR",cd="index_helpBoxBackground__nkDFV";function ud(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var sd=function(t){vo(l,n);var r=ud(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=so({title:"",showTitle:!0,showNumber:!0,showDivider:!0,labelWidth:null,list:[],useBackground:!1,hidden:!1},this.props),n=t.title,r=t.showTitle,l=t.showDivider,o=t.showNumber,a=t.labelWidth,i=t.list,c=t.useBackground;if(t.hidden)return null;var u=n||"帮助信息",s=[];T(i)&&(s=i.map((function(e,t){var n=so({key:"",label:"",text:"",span:1,labelStyle:null,contentStyle:null,canCopy:!1,copyData:null},e);return n.key="help_box_item_".concat(t),n.no=t+1,n.text=n.text||"",n})));var f=g(null!=a?a:null),d=f>0?"".concat(f,"px"):0,p=f>0;return e.createElement("div",{className:Gl(ad,c?cd:id)},r?l?e.createElement(Je,{orientation:"left",plain:!0,style:{marginTop:4,marginBottom:4,color:"#999"}},u):e.createElement("div",{style:{marginTop:"4px",marginBottom:"4px",color:"#999",fontWeight:"normal",fontSize:"14px",lineHeight:"22px",height:"22px"}},u,":"):null,Vi({list:s.map((function(e){var t=e.key,n=e.no,r=e.label,l=e.text,a=e.labelStyle,i=e.contentStyle,c=e.span,u=e.canCopy,s=e.copyData;return{key:t,label:L(r)?o?n:"•":r,value:l,labelStyle:a||null,contentStyle:i||null,span:c,canCopy:u,copyData:s}})),props:{bordered:!1,colon:o,column:1,labelStyle:{width:p?d:o?"22px":"12px"},contentStyle:{color:"#999"}}}))}}]),l}();function fd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}sd.defaultProps={title:"帮助信息",showTitle:!0,showNumber:!0,labelWidth:null,list:[],useBackground:!1,hidden:!1};var dd=function(t){vo(l,n);var r=fd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.border,r=t.compact,l=t.helpBoxProps;return e.createElement(bt,{style:n?{}:{borderTop:"0",borderBottom:"0",borderLeft:"0",borderRight:"0"},bodyStyle:r?{paddingTop:"0",paddingBottom:"0"}:{paddingTop:"12px",paddingBottom:"12px"}},e.createElement(sd,l))}}]),l}();dd.defaultProps={border:!0,compact:!1,helpBoxProps:{title:"帮助信息",showNumber:!0,list:[]}};var pd="index_richTextBox__jUYt8";function hd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var md=function(t){vo(l,n);var r=hd(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).renderToHtml=function(){var t=e.props.html;e.main&&(e.main.innerHTML=t)},e}return ho(l,[{key:"componentDidMount",value:function(){this.renderToHtml()}},{key:"componentDidUpdate",value:function(){this.renderToHtml()}},{key:"render",value:function(){var t=this,n=this.props,r=n.useEmpty,l=n.html;return r&&L(l)?e.createElement(xt,{image:xt.PRESENTED_IMAGE_SIMPLE}):e.createElement("span",{className:pd,ref:function(e){t.main=e}})}}]),l}();md.defaultProps={useEmpty:!0,html:""};var vd=$l({scriptUrl:"https://at.alicdn.com/t/font_1101588_01zniftxm9yp.js"}),yd="index_previewContainor__YmONX";function gd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var bd=function(t){vo(r,Co);var n=gd(r);function r(e){var t;return fo(this,r),(t=n.call(this,e)).onClose=function(){(0,t.props.afterClose)()},t.state=so(so({},t.state),{},{visible:!1,htmlContent:"",imageList:[],listItem:[],mode:Oe.html}),t}return ho(r,[{key:"render",value:function(){var t=this.state,n=t.visible,r=t.mode,l=t.imageList,o=t.listItem,a=t.htmlContent;if(r===Oe.imageList){var i=(l||[]).map((function(e){return'<img src="'.concat(e,'" alt="" />')})).join("");return e.createElement(Et,{title:"图片详情预览",width:380,placement:"left",open:n,closable:!0,onClose:this.onClose},i?e.createElement("div",{className:yd},ro(i)):e.createElement(xt,null))}if(r===Oe.listItem){var c=(o||[]).map((function(e){return'<img src="'.concat(e.image,'" alt="" /><p>').concat(e.description,"</p>")})).join("");return e.createElement(Et,{title:"图片详情预览",width:380,placement:"left",open:n,closable:!0,onClose:this.onClose},c?e.createElement("div",{className:yd},ro(a)):e.createElement(xt,null))}return r===Oe.html?e.createElement(Et,{title:"图片详情预览",width:380,placement:"left",open:n,closable:!0,onClose:this.onClose},a?e.createElement("div",{className:yd},ro(a)):e.createElement(xt,null)):e.createElement(Et,{title:"图片详情预览",width:380,placement:"left",open:n,closable:!0,onClose:this.onClose},e.createElement(xt,null))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.visible,r=e.mode,l=e.imageList,o=e.listItem,a=e.htmlContent;return{visible:n,mode:r||Oe.html,imageList:l||[],listItem:o||[],htmlContent:a||""}}}]),r}(),xd="index_containor__ndtfh",Ed="index_imageBox__FAEpg",kd="index_imageAction__bS6ks",wd="index_icon__-mvsy",Cd="index_text__YiUxy",Rd="index_toolBar__Ytq35",Sd="index_helper__zWkJp";function Pd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Td=function(t){vo(r,So);var n=Pd(r);function r(e){var t;return fo(this,r),(t=n.call(this,e)).handleUploadCancel=function(){return t.setState({previewVisible:!1})},t.handleFilePreview=function(e){t.setState({previewImage:e.url||e.thumbUrl,previewVisible:!0})},t.handleImagePreview=function(){var e=t.props.image;L(e)?ie("无图片可以预览"):t.setState({previewImage:e,previewVisible:!0})},t.beforeUpload=function(e,n){var r=t.props.fileListCapacity,l=g(r),o=l<=0?8:l;if((n||[]).length>o){var a="上传不能超过".concat(o);H(a)}var i="image/jpeg"===e.type||"image/gif"===e.type||"image/jpg"===e.type||"image/png"===e.type;if(!i){V("请上传图片文件!")}var c=e.size/1024/1024<Le();if(!c){V("图片文件不能超过2MB!")}return i&&c},t.handleUploadChange=function(e){var n=t.props,r=n.pretreatmentRemoteResponse,l=n.afterUploadSuccess;if("uploading"!==e.file.status){if("done"===e.file.status){t.logCallTrack(e,t.buildPromptModuleInfoText("handleUploadChange","upload complete"));var o=e.file.response;if(h(r)){var a=so({image:"",data:{}},r(o)),i=a.image,c=a.data;if(t.setState({uploading:!1}),h(l))l(i||"",c);else{V("afterUploadSuccess 配置无效")}}else{V("pretreatmentRemoteResponse 配置无效")}}}else t.setState({uploading:!0})},t.clearImage=function(){var e=t.props.image;if(L(e))ie("当前没有可供移除的图片");else{var n=t.props.afterUploadSuccess;if(h(n))Ae.confirm({title:"清除图片",content:"即将清除图片数据,清除后需要保存才能进行生效,要继续吗?",okText:"确定",okType:"danger",cancelText:"取消",onOk:function(){n("",null)},onCancel:function(){}});else{V("afterUploadSuccess 配置无效")}}},t.state=so(so({},t.state),{},{uploading:!1,previewVisible:!1,previewImage:""}),t}return ho(r,[{key:"render",value:function(){var t=this,n=this.props,r=n.action,l=n.disabled,o=n.listType,a=n.fileList,i=n.fileListCapacity,c=n.showUploadList,u=n.image,s=n.singleMode,f=n.tokenSet,d=n.onItemChange,p=n.onItemRemove,m=n.multiple,v=n.title,y=n.icon,b=n.helper,x=this.state,E=x.uploading,k=x.previewVisible,w=x.previewImage,C=e.createElement("div",null,ma.plus(),e.createElement("div",{className:"ant-upload-text"},"上传新图")),R=g(i),S=R<=0?8:R,P={disabled:l,multiple:m,action:r,listType:o,showUploadList:c,onPreview:this.handleFilePreview,beforeUpload:this.beforeUpload,onChange:c?h(d)?d:null:this.handleUploadChange,onRemove:h(p)?p:null,headers:so({},f)};c&&(P.fileList=a||[]);var T=so({width:"240px",emptyImage:""},s),_=T.width,I=T.emptyImage;return e.createElement(e.Fragment,null,e.createElement("div",{className:xd},e.createElement("div",{className:"clearfix"},c?e.createElement(vt,P,(a||[]).length>=S?null:C):e.createElement(e.Fragment,null,e.createElement("div",{className:Ed,style:{minWidth:"140px",width:_}},e.createElement(vt,P,e.createElement(He,{title:"上传图片"},e.createElement("div",{className:kd},e.createElement("div",{className:wd},e.createElement(pa,null,E?ma.loading():ma.upload())),e.createElement("div",{className:Cd},E?"上传中":"上传"))),e.createElement(fa,{align:"bottom",style:{height:"100%"}},e.createElement("div",{style:{width:_,padding:"1px"}},e.createElement(Ya,{src:u||I,loadingEffect:!0,errorOverlayVisible:!0,showErrorIcon:!1,fillHeight:!1,alt:""})))),e.createElement("div",{className:Rd},e.createElement(Pa,{flexAuto:"left",left:e.createElement(ga,{icon:y,text:L(v)?"":v}),right:e.createElement(tt,null,e.createElement(He,{title:"预览图片"},e.createElement(Zt,{onClick:function(){t.handleImagePreview()}})),e.createElement(He,{title:"清除图片"},e.createElement(qt,{onClick:function(){t.clearImage()}})))})))),e.createElement(gt,{open:k,footer:null,onCancel:this.handleUploadCancel,styles:{body:{boxShadow:"0 1px 4px #ccc, 0 0 40px #ccc inset"}}},e.createElement(fa,{style:{height:"100%"}},e.createElement("div",{style:{width:"100%"}},e.createElement(Ya,{src:w,loadingEffect:!0,errorOverlayVisible:!0,showErrorIcon:!1,fillHeight:!1,alt:""})))))),L(b)?null:e.createElement("div",{className:Sd},X(b)))}}]),r}();function _d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Td.defaultProps={action:"",listType:"picture-card",showUploadList:!1,disabled:!1,multiple:!1,tokenSet:{},image:"",fileList:[],singleMode:{width:"240px",emptyImage:""},icon:null,title:"",helper:"",pretreatmentRemoteResponse:function(){},afterUploadSuccess:function(){},onItemChange:function(e){e.file,e.fileList},onItemRemove:function(e){},fileListCapacity:8};var Id=["horizontal","vertical"],Bd=function(t){vo(l,n);var r=_d(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).getDirection=function(){var t=e.props.direction;return P(Id,t)?t:"horizontal"},e.getColor=function(){var t=e.props,n=t.color;if(t.transparent)return{backgroundColor:"transparent"};if(A(n))return L(n)?{}:{backgroundColor:n,backgroundImage:"null"};if(T(n)){var r=n.filter((function(e){return A(e)&&!L(e)}));if(r.length>0)return{backgroundColor:"null",backgroundImage:"linear-gradient(45deg, ".concat(r.join(","),")")}}return{}},e.getStyle=function(){var t=e.props,n=t.margin,r=t.width,l=t.height,o=t.borderRadius,a=e.getDirection(),i={},c={},u={},s=e.getColor();if("horizontal"===a)i={display:"block"},c=so(so({},y(r)&&g(r)>0?{width:"".concat(r,"px")}:{width:"100%"}),y(l)&&g(l)>0?{height:"".concat(l,"px")}:{height:"1px"});else i={display:"inline-block"},c=so(so({},y(r)&&g(r)>0?{width:"".concat(r,"px")}:{width:"1px"}),y(l)&&g(l)>0?{height:"".concat(l,"px")}:{height:"100%"});return L(n)||(u={margin:y(n)?"".concat(n,"px"):n}),so(so(so(so(so({},i),c),o>0?{borderRadius:"".concat(o,"px")}:{}),u),s)},e}return ho(l,[{key:"render",value:function(){var t=this.getStyle();return e.createElement("div",{style:t})}}]),l}();Bd.defaultProps=so({},{direction:"horizontal",margin:"",color:"",width:0,height:0,transparent:!1,borderRadius:0});var Od="index_deviceInner__B21iz",Ld="index_deviceContent__C6J82";function Ad(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Nd=function(t){vo(l,n);var r=Ad(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).onAlertClick=function(){var t=e.props.afterAlertClick;h(t)&&t()},e}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.children,s=P(["success","info","warning","error"],i)?i:"info",f=P([Ne.none,Ne.fade,Ne.queue],r)?r:Ne.fade,d=e.createElement(ct,{message:l,description:o,type:s,showIcon:!!a,style:{margin:"2px"},action:e.createElement(tt,null,Ni({size:"small",type:"ghost",icon:ma.reload(),text:c,handleClick:this.onAlertClick})),closable:!1});return e.createElement("div",{className:Od},e.createElement("div",{style:{position:"absolute",left:0,top:0,zIndex:2,width:"100%"}},f===Ne.none?d:null,f===Ne.fade?e.createElement(Do,{visible:n},d):null,f===Ne.queue?e.createElement(Ko,{show:n},d):null),e.createElement("div",{className:Ld},u))}}]),l}();Nd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null};var Ud={devices:"devices_devices__PoWJC","marvel-device":"devices_marvel-device__8Pnpx",screen:"devices_screen__LZWhg","top-bar":"devices_top-bar__L2M7z","bottom-bar":"devices_bottom-bar__fxjk1","middle-bar":"devices_middle-bar__Yj1AE",iphone8:"devices_iphone8__mQ7cX",home:"devices_home__YOF3t",sleep:"devices_sleep__GnvgE",volume:"devices_volume__cC0tU",camera:"devices_camera__kx7tw",sensor:"devices_sensor__NeQiR",speaker:"devices_speaker__20ayb",gold:"devices_gold__ciRH5",black:"devices_black__xLdTd",landscape:"devices_landscape__dT0vu",iphone8plus:"devices_iphone8plus__5skqu",iphone5s:"devices_iphone5s__K9gZ0",iphone5c:"devices_iphone5c__9iOf4",silver:"devices_silver__YXYpI",red:"devices_red__PZPg3",yellow:"devices_yellow__J4TuQ",green:"devices_green__6ugiz",blue:"devices_blue__UNR8N",iphone4s:"devices_iphone4s__cwBRc",nexus5:"devices_nexus5__NbVA9",s5:"devices_s5__qQhk6",lumia920:"devices_lumia920__oKmkM",white:"devices_white__xpRn1","htc-one":"devices_htc-one__7rnWR",ipad:"devices_ipad__vbuiu",macbook:"devices_macbook__gaV-C","iphone-x":"devices_iphone-x__G9CXA",overflow:"devices_overflow__5zWFI",shadow:"devices_shadow__IcQPK","shadow--tl":"devices_shadow--tl__iFWLn","shadow--tr":"devices_shadow--tr__3LhWk","shadow--bl":"devices_shadow--bl__HGLtJ","shadow--br":"devices_shadow--br__yKPFI","inner-shadow":"devices_inner-shadow__K7jUi",notch:"devices_notch__tOSCG",note8:"devices_note8__y9uVH",sensors:"devices_sensors__YD8wl","more-sensors":"devices_more-sensors__DyhWK",inner:"devices_inner__gO73h"};function Md(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Dd=function(t){vo(l,n);var r=Md(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.children,s=t.afterAlertClick;return e.createElement("div",{className:Ud.devices},e.createElement("div",{className:Gl(Ud["marvel-device"],Ud.note8)},e.createElement("div",{className:Ud.inner}),e.createElement("div",{className:Ud.overflow},e.createElement("div",{className:Ud.shadow})),e.createElement("div",{className:Ud.speaker}),e.createElement("div",{className:Ud.sensors}),e.createElement("div",{className:Ud["more-sensors"]}),e.createElement("div",{className:Ud.sleep}),e.createElement("div",{className:Ud.volume}),e.createElement("div",{className:Ud.camera}),e.createElement("div",{className:Ud.screen},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},u))))}}]),l}();function zd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Dd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null};var Fd=function(t){vo(l,n);var r=zd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.children,s=t.type,f=t.afterAlertClick,d=P(["black","silver","gold"],s)?s:"silver";return e.createElement("div",{className:Ud.devices},e.createElement("div",{className:Gl(Ud["marvel-device"],Ud.iphone5s,Ud[d])},e.createElement("div",{className:Ud["top-bar"]}),e.createElement("div",{className:Ud.sleep}),e.createElement("div",{className:Ud.volume}),e.createElement("div",{className:Ud.camera}),e.createElement("div",{className:Ud.sensor}),e.createElement("div",{className:Ud.speaker}),e.createElement("div",{className:Ud.screen},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:f},u)),e.createElement("div",{className:Ud.home}),e.createElement("div",{className:Ud["bottom-bar"]})))}}]),l}();function jd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Fd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null,type:"black"};var Vd=function(t){vo(l,n);var r=jd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.afterAlertClick,s=t.children,f=t.type,d=P(["black","silver","gold"],f)?f:"silver";return e.createElement("div",{className:Ud.devices},e.createElement("div",{className:Gl(Ud["marvel-device"],Ud.iphone8,Ud[d])},e.createElement("div",{className:Ud["top-bar"]}),e.createElement("div",{className:Ud.sleep}),e.createElement("div",{className:Ud.volume}),e.createElement("div",{className:Ud.camera}),e.createElement("div",{className:Ud.sensor}),e.createElement("div",{className:Ud.speaker}),e.createElement("div",{className:Ud.screen},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:u},s)),e.createElement("div",{className:Ud.home}),e.createElement("div",{className:Ud["bottom-bar"]})))}}]),l}();function Wd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Vd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null,type:"black"};var qd=function(t){vo(l,n);var r=Wd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.afterAlertClick,s=t.children,f=t.type,d=P(["black","silver","gold"],f)?f:"silver";return e.createElement("div",{className:Ud.devices},e.createElement("div",{className:Gl(Ud["marvel-device"],Ud.iphone8plus,Ud[d])},e.createElement("div",{className:Ud["top-bar"]}),e.createElement("div",{className:Ud.sleep}),e.createElement("div",{className:Ud.volume}),e.createElement("div",{className:Ud.camera}),e.createElement("div",{className:Ud.sensor}),e.createElement("div",{className:Ud.speaker}),e.createElement("div",{className:Ud.screen},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:u},s)),e.createElement("div",{className:Ud.home}),e.createElement("div",{className:Ud["bottom-bar"]})))}}]),l}();function Hd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}qd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null,type:"black"};var $d=function(t){vo(l,n);var r=Hd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.afterAlertClick,s=t.children;return e.createElement("div",{className:Ud.devices},e.createElement("div",{className:Gl(Ud["marvel-device"],Ud["iphone-x"])},e.createElement("div",{className:Ud.notch},e.createElement("div",{className:Ud.camera}),e.createElement("div",{className:Ud.speaker})),e.createElement("div",{className:Ud["top-bar"]}),e.createElement("div",{className:Ud.sleep}),e.createElement("div",{className:Ud["bottom-bar"]}),e.createElement("div",{className:Ud.volume}),e.createElement("div",{className:Ud.overflow},e.createElement("div",{className:Gl(Ud.shadow,Ud["shadow--tr"])}),e.createElement("div",{className:Gl(Ud.shadow,Ud["shadow--tl"])}),e.createElement("div",{className:Gl(Ud.shadow,Ud["shadow--br"])}),e.createElement("div",{className:Gl(Ud.shadow,Ud["shadow--bl"])})),e.createElement("div",{className:Ud["inner-shadow"]}),e.createElement("div",{className:Ud.screen},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:u},s))))}}]),l}();$d.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null,type:"black"};var Gd="index_device__I67Ka";function Kd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Yd=function(t){vo(l,n);var r=Kd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.afterAlertClick,s=t.children;return e.createElement("div",{className:Gd},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:u},s))}}]),l}();function Jd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Yd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null};var Xd=function(t){vo(l,n);var r=Jd(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).buildMobileTypeArray=function(){for(var e=[],t=0,n=Object.entries(Ue);t<n.length;t++){var r=jo(n[t],2);r[0];var l=r[1];N(l)&&e.push(l)}return e},e.renderPresetInnerView=function(){return e.props.children},e.renderPresetInnerViewWrapper=function(){return e.renderPresetInnerView()},e}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,s=t.afterAlertClick,f=null;switch(t.mobileType){case Ue.roughSketch.name:f=e.createElement(Yd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;case Ue.iphoneX.name:f=e.createElement($d,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;case Ue.iphone8.name:f=e.createElement(Vd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;case Ue.iphone8plus.name:f=e.createElement(qd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;case Ue.iPhone5S.name:f=e.createElement(Fd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;case Ue.galaxyNote8.name:f=e.createElement(Dd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;default:f=null;u("invalid mobile type,please check in console"),U({message:"available mobile type list",mobileTypeCollection:Ue})}return e.createElement("div",null,e.createElement(fa,{align:"center",alignJustify:"center",style:{height:"100%"}},f))}}]),l}();Xd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",mobileType:Ue.roughSketch.name,afterAlertClick:null};var Qd={MobileSimulation:Xd};kt.TabPane;var Zd={numberInfo:"index_numberInfo__CP4-s",suffix:"index_suffix__5rAQf",numberInfoTitle:"index_numberInfoTitle__sQXmi",numberInfoSubTitle:"index_numberInfoSubTitle__WFcaT",numberInfoValue:"index_numberInfoValue__MbAMM",subTotal:"index_subTotal__UTwNw",numberInfolight:"index_numberInfolight__9sAKh"},ep=["theme","title","subTitle","total","subTotal","status","suffix","gap"],tp=function(t){var n=t.theme,r=t.title,l=t.subTitle,o=t.total,a=t.subTotal,i=t.status,c=t.suffix,u=t.gap,s=To(t,ep);return e.createElement("div",Po({className:Gl(Zd.numberInfo,co({},Zd["numberInfo".concat(n)],n))},s),r&&e.createElement("div",{className:Zd.numberInfoTitle,title:"string"==typeof r?r:""},r),l&&e.createElement("div",{className:Zd.numberInfoSubTitle,title:"string"==typeof l?l:""},l),e.createElement("div",{className:Zd.numberInfoValue,style:u?{marginTop:u}:null},e.createElement("span",null,o,c&&e.createElement("em",{className:Zd.suffix},c)),(i||a)&&e.createElement("span",{className:Zd.subTotal},a,"up"===i&&ma.caretUp(),"down"===i&&ma.caretDown())))};function np(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var rp=function(t){vo(l,n);var r=np(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).processing=!1,t.visibilityChanged=!1,t.startCountMonitor=!1,t.getStyle=function(){var e=t.props,n=e.color,r=e.alpha,l=e.image,o=e.zIndex,a=e.transparent;return so(so({},{}),{},{top:"0",left:"0",position:"absolute",width:"100%",height:"100%",zIndex:o},L(l)?{backgroundColor:a||"transparent"===n?"transparent":"rgba(".concat(ce(n,""),", ").concat(r,")")}:{backgroundImage:l})},t.triggerClick=function(){var e=t.props.onClick;t.processing||h(e)&&e()},t.state=so(so({},t.state),{},{counter:0}),t}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.visible,r=t.animal,l=t.duration,o=t.children,a=this.getStyle();return e.createElement(Do,{visible:n,duration:l,animal:r,style:a,onClick:this.triggerClick},o?e.createElement(pa,null,o):null)}}]),l}();function lp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}rp.defaultProps=so({},{visible:!1,color:"#000000",transparent:!1,alpha:.5,image:"",zIndex:810,duration:300,animal:"ease-in",onClick:null});var op=function(t){vo(l,n);var r=lp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.body,r=t.bottom;return null==n&&null==r?null:e.createElement("div",{style:{padding:"12px 16px"}},n,r)}}]),l}();function ap(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}op.defaultProps={body:null,bottom:null};var ip=dt.TextArea,cp=function(t){vo(l,n);var r=ap(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).handleUploadCancel=function(){t.setState({previewVisible:!1})},t.showPreviewModal=function(){var e=t.state.videoUrl;if(L(e)){u("无效的视频源")}else t.setState({previewVisible:!0})},t.showChangeUrlModal=function(){var e=t.state.videoUrl;t.setState({videoUrlTemp:e,changeUrlVisible:!0})},t.handleUrlChange=function(e){var n=e.target.value;t.setState({videoUrlTemp:n})},t.handleChangeUrlOk=function(){var e=t.props.afterChangeSuccess,n=t.state.videoUrlTemp;t.setState({videoUrl:n,changeUrlVisible:!1},(function(){if(h(e))e(n||"",{video:n});else{V("afterChangeSuccess 配置无效")}}))},t.handleChangeUrlCancel=function(){t.setState({changeUrlVisible:!1})},t.clearUrl=function(){var e=t.props.afterChangeSuccess;t.setState({videoUrl:"",changeUrlVisible:!1},(function(){if(h(e))e("",null);else{V("afterChangeSuccess 配置无效")}}))},t.beforeUpload=function(e){var t="video/mp4"===e.type;if(!t){u("请上传视频文件(*.mp4)!")}var n=e.size/1024/1024<Me();if(!n){u("视频文件不能超过3MB!")}return t&&n},t.handleUploadChange=function(e){var n=t.props,r=n.pretreatmentRemoteResponse,l=n.afterUploadSuccess,o=n.afterChangeSuccess;if("uploading"!==e.file.status){if("done"===e.file.status){var a=e.file.response;if(h(r)){var i=so({video:"",data:{}},r(a)),c=i.video,u=i.data;t.setState({videoUrl:c,uploading:!1},(function(){if(h(l))l(c||"",u);else{V("afterUploadSuccess 配置无效")}if(h(o))o(c||"",u);else{V("afterChangeSuccess 配置无效")}}))}else{V("pretreatmentRemoteResponse 配置无效")}}}else t.setState({uploading:!0})},t.handleMenuClick=function(e){var n=e.key,r=t.state.videoUrl;switch(n){case"changeUrl":t.showChangeUrlModal();break;case"showPreview":t.showPreviewModal();break;case"copyUrl":if(L(r)){u("当前未设置视频地址")}else be(r);break;case"clearUrl":t.clearUrl()}},t.state=so(so({},t.state),{},{videoSource:"",videoUrl:"",videoUrlTemp:"",uploading:!1,previewVisible:!1,changeUrlVisible:!1}),t}return ho(l,[{key:"render",value:function(){var t=this,n=this.props,r=n.action,l=n.disabled,o=n.showPreview,a=n.tokenSet,i=this.state,c=i.uploading,u=i.previewVisible,s=i.changeUrlVisible,f=i.videoUrlTemp,d=i.videoUrl,p={disabled:l,action:r,listType:"text",showUploadList:!1,beforeUpload:this.beforeUpload,onChange:this.handleUploadChange,headers:so({},a)},h=[{key:"changeUrl",label:"更换地址",icon:ma.swap()},{key:"copyUrl",label:"复制地址",icon:ma.copy(),disabled:L(d)},{key:"clearUrl",label:"清空视频",icon:ma.delete(),disabled:L(d)}],m=e.createElement(tt,{split:e.createElement(Je,{type:"vertical"})},o?e.createElement(He,{key:"showVideoTip",placement:"top",title:"播放视频预览"},e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},disabled:c||L(d),onClick:function(){t.showPreviewModal()}},ma.playCircle(),"播放")):null,e.createElement(He,{key:"showChangeUrlTip",placement:"top",title:"上传视频"},e.createElement(vt,p,e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},disabled:c},c?ma.loading():ma.upload(),c?"稍后":"上传"))),e.createElement(He,{key:"showMoreTip",placement:"top",title:"更多操作"},e.createElement(yt,{arrow:!0,placement:"bottomRight",menu:{items:h,onClick:this.handleMenuClick},style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0}},e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0}},e.createElement(sr,{style:{fontSize:20,verticalAlign:"top"}})))));return e.createElement(e.Fragment,null,e.createElement(dt,{disabled:!0,addonBefore:ma.videoCamera(),addonAfter:m,value:d,placeholder:"当前未设置视频地址"}),e.createElement(gt,{title:e.createElement(ga,{icon:ma.videoCamera(),text:"视频预览"}),open:u,footer:null,onCancel:this.handleUploadCancel},Gi({url:d})),e.createElement(gt,{title:e.createElement(ga,{icon:ma.swap(),text:"请输入将更换的视频地址"}),open:s,onOk:this.handleChangeUrlOk,onCancel:this.handleChangeUrlCancel},e.createElement(ip,{rows:4,value:f,onChange:this.handleUrlChange,placeholder:"目前没有将要更换的视频地址"})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.video;return(n||"")!==(t.videoSource||"")?{videoSource:n,videoUrl:n}:null}}]),l}();function up(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return sp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sp(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,l=function(){};return{s:l,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw o}}}}function sp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}cp.defaultProps={action:"",disabled:!1,tokenSet:{},video:"",showPreview:!1,pretreatmentRemoteResponse:function(){},afterUploadSuccess:function(){},afterChangeSuccess:function(){}};var dp=td.Whether,pp=dp.renderFormWhetherSelect,hp=dp.renderFormWhetherRadio,mp=uu.ComponentItem,vp=uu.InputNumberItem,yp=uu.SwitchItem,gp=uu.OnlyShowInputItem,bp=uu.SelectItem,xp=uu.RadioItem,Ep=uu.SyntaxHighlighterItem,kp=uu.TextAreaItem,wp=uu.TimePickerItem,Cp=uu.DatePickerItem,Rp=uu.TextItem,Sp=uu.PasswordItem,Pp=uu.OnlyShowTextareaItem,Tp=uu.NowTimeItem,_p=uu.ActionItem,Ip=function(t){vo(l,n);var r=fp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.wrapperType,r=t.justify,l=t.align,o=t.gutter,a=t.items,i=t.index,c=t.pretreatmentImageUploadResponse,u=t.pretreatmentFileBase64UploadResponse,s=t.pretreatmentVideoUploadResponse,f=t.pretreatmentFileUploadResponse,d=t.pretreatmentAudioUploadResponse,p=t.saveButtonBuilder,m=t.extraBuilder;return!T(a)||a.length<=0?null:e.createElement($e,{justify:r,align:l,gutter:o||14},T(a)?a.map((function(t,r){var l="formContent_key_".concat(i,"_content_").concat(r),o=so({lg:6,md:12,sm:24,xs:24,require:!1,type:"",fieldData:{label:"",name:"",helper:""},hidden:!1,canOperate:!0,formItemLayout:null},t),a=o.lg,v=o.md,y=o.sm,g=o.xs,b=o.type,x=o.require,E=o.fieldData,k=o.hidden,w=o.canOperate,C=o.formItemLayout;if(k)return null;var S=so({label:"",name:"",helper:""},E),P=(a||6)<12&&n!==ze.wrapperType.page?12:a;if(P=(P=P>12&&n!==ze.wrapperType.page?24:P)>24?24:P,b===ze.contentItemType.placeholder)return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g});if(b===ze.contentItemType.divider)return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g},e.createElement(Je,so({style:{margin:"4px 0"}},t.innerProps),null==(t.text||null)?null:t.text));if(b===ze.contentItemType.customGrid)return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g},e.createElement(ai,{list:T(t.list)?t.list:[],config:so({bordered:!0,column:3,emptyStyle:{color:"#cccccc"},emptyValue:"暂无",labelStyle:{width:"100px"}},t.props)}));if(b===ze.contentItemType.tree){var B={onSelect:t.onSelect||null,innerProps:so({},t.innerProps),listData:t.listData||[],dataConvert:t.dataConvert||null},O=B.onSelect,A=B.innerProps,N=B.listData,U=B.dataConvert;return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g},e.createElement(yf,{onSelect:O,innerProps:A,listData:N,dataConvert:U}))}if(b===ze.contentItemType.tinymce)return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g},e.createElement(ff,{apiKey:L(t.apiKey||"")?Fe():t.apiKey,content:t.html||"",afterChange:t.afterChange,initConfig:t.initConfig||null,imagesUploadUrl:L(t.imagesUploadUrl||"")?je():t.imagesUploadUrl}));if(b===ze.contentItemType.html)return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g},e.createElement(md,{useEmpty:null==(t.useEmpty||null)||(t.useEmpty||!1),html:t.html||""}));if(b===ze.contentItemType.imageUpload){var M=so({icon:t.icon||null,title:t.title||"",helper:t.helper||"",image:t.image||"",action:t.action||"",tokenSet:ue(),multiple:t.multiple||!1,fileList:t.fileList||[],showUploadList:t.showUploadList||!1,listType:t.listType||"picture-card",disabled:t.disabled||!1},t.uploadProps);return M.action=Ve(M.action),e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(Td,Po({},M,{pretreatmentRemoteResponse:c,afterUploadSuccess:function(e,n){h(t.afterUploadSuccess)&&t.afterUploadSuccess(e,n)},onItemChange:t.onItemChange||null,onItemRemove:t.onItemRemove||null})))}if(b===ze.contentItemType.imageShow){var D=so({loadingEffect:!0,errorOverlayVisible:!0,showErrorIcon:!1,alt:""},t.imageBoxProps),z=so({width:"100px",border:"1px solid #d9d9d9",borderRadius:"4px",padding:"8px"},t.imageBoxContainorStyle),F=e.createElement(Ya,Po({src:t.image||Ee,preview:!L(t.image||"")},D));return e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement("div",{style:z},F))}if(b===ze.contentItemType.imageListShow){var j=null,V=so({loadingEffect:!0,errorOverlayVisible:!0,showErrorIcon:!1,alt:""},t.imageBoxProps);null!=(t.imageBoxListContainorStyle||null)&&(j=t.imageBoxListContainorStyle);var W,q=so({width:"100px",border:"1px solid #d9d9d9",borderRadius:"4px",padding:"8px"},t.imageBoxContainorStyle),H=[],$=t.ignoreEmpty||!1,G=up((T(t.imageList)?t.imageList:[]).entries());try{for(G.s();!(W=G.n()).done;){var J=jo(W.value,2),X=J[0],Q=J[1],Z="contentItem_".concat(i,"_imageList_item_").concat(X);$&&L(Q)||H.push({key:Z,imageBoxContainorStyle:q,component:e.createElement(Ya,Po({src:Q||Ee,preview:!L(Q||"")},V))})}}catch(e){G.e(e)}finally{G.f()}var ee=e.createElement(tt,null,H.length<=0?e.createElement(xt,{image:xt.PRESENTED_IMAGE_SIMPLE}):H.map((function(t){return e.createElement("div",{key:t.key,style:t.imageBoxContainorStyle},t.component)})));return e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},null==j?ee:e.createElement("div",{style:j},ee))}if(b===ze.contentItemType.treeSelect){var te={value:t.value||"",onChange:t.onChange||null,innerProps:so({},t.innerProps),listData:t.listData||[],dataConvert:t.dataConvert||null},ne=te.value,re=te.onChange,le=te.innerProps,oe=te.listData,ae=te.dataConvert;return e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(mp,{label:S.label,innerComponent:e.createElement(Ci,{value:ne||null,placeholder:K(S.label,"选择")||"请选择",onChange:re,innerProps:le,listData:oe,dataConvert:ae}),helper:S.helper,formItemLayout:C,requiredForShow:x}))}if(b===ze.contentItemType.fileBase64Upload){var ie=so(so({},t.uploadProps),{},{fileBase64:t.fileBase64||"",action:t.action||"",tokenSet:ue()});return ie.action=Ve(ie.action),e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(mp,{label:S.label,innerComponent:e.createElement(Wf,Po({},ie,{pretreatmentRemoteResponse:u,afterUploadSuccess:function(e,n){h(t.afterUploadSuccess)&&t.afterUploadSuccess(e,n)}})),helper:S.helper,formItemLayout:null,requiredForShow:x}))}if(b===ze.contentItemType.videoUpload){var ce=so(so({},t.uploadProps),{},{video:t.video||"",showPreview:t.showPreview||!1,action:t.action||"",tokenSet:ue()});return ce.action=Ve(ce.action),e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(mp,{label:S.label,innerComponent:e.createElement(cp,Po({},ce,{pretreatmentRemoteResponse:s,afterUploadSuccess:function(e,n){h(t.afterUploadSuccess)&&t.afterUploadSuccess(e,n)},afterChangeSuccess:function(e){h(t.afterChangeSuccess)&&t.afterChangeSuccess(e)}})),helper:S.helper,formItemLayout:C,requiredForShow:x}))}if(b===ze.contentItemType.fileUpload){var fe=so(so({},t.uploadProps),{},{file:t.file||"",action:t.action||"",tokenSet:ue()});return fe.action=Ve(fe.action),e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(mp,{label:S.label,innerComponent:e.createElement($f,Po({},fe,{pretreatmentRemoteResponse:f,afterUploadSuccess:function(e,n){h(t.afterUploadSuccess)&&t.afterUploadSuccess(e,n)},afterChangeSuccess:function(e){h(t.afterChangeSuccess)&&t.afterChangeSuccess(e)}})),helper:S.helper,formItemLayout:C,requiredForShow:x}))}if(b===ze.contentItemType.audioUpload){var de=so(so({},t.uploadProps),{},{audio:t.audio||"",showPreview:t.showPreview||!1,action:t.action||"",tokenSet:ue()});return de.action=Ve(de.action),e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(mp,{label:S.label,innerComponent:e.createElement(rs,Po({},de,{pretreatmentRemoteResponse:d,afterUploadSuccess:function(e,n){h(t.afterUploadSuccess)&&t.afterUploadSuccess(e,n)},afterChangeSuccess:function(e){h(t.afterChangeSuccess)&&t.afterChangeSuccess(e)}})),helper:S.helper,formItemLayout:C,requiredForShow:x}))}return e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},b===ze.contentItemType.text?e.createElement(Rp,{label:S.label,value:t.value||"",helper:S.helper,formItemLayout:C}):null,b===ze.contentItemType.input?Vu({label:S.label,name:S.name,required:x,helper:S.helper,icon:t.icon||ma.form(),innerProps:so({},t.innerProps),canOperate:w,formItemLayout:C,reminderPrefix:"输入",hidden:!1}):null,b===ze.contentItemType.password?e.createElement(Sp,{label:S.label,name:S.name,helper:S.helper,required:x,icon:t.icon||ma.form(),innerProps:so({},t.innerProps),formItemLayout:C}):null,b===ze.contentItemType.inputNumber?e.createElement(vp,{label:S.label,name:S.name,required:x,helper:S.helper,icon:t.icon||ma.form(),innerProps:so({},t.innerProps),canOperate:w,formItemLayout:C}):null,b===ze.contentItemType.switch?e.createElement(yp,{label:S.label,name:S.name,checked:t.checked||!1,required:x,helper:S.helper,innerProps:so({},t.innerProps),canOperate:w,formItemLayout:C}):null,b===ze.contentItemType.flexText?e.createElement(li,so({style:{margin:"5px 0"}},t.flexTextProps)):null,b===ze.contentItemType.onlyShowTextByFlexText?e.createElement(li,{style:{margin:"5px 0"},icon:null,textPrefix:S.label||"",text:t.value||""}):null,b===ze.contentItemType.datePicker?e.createElement(Cp,{label:S.label,name:S.name,required:x,helper:S.helper,innerProps:so({},t.innerProps),canOperate:w,formItemLayout:C}):null,b===ze.contentItemType.timePicker?e.createElement(wp,{label:S.label,name:S.name,required:x,helper:S.helper,innerProps:so({},t.innerProps),canOperate:w,formItemLayout:C}):null,b===ze.contentItemType.textarea?e.createElement(kp,{label:S.label,name:S.name,required:x,helper:S.helper,innerProps:so({autoSize:{minRows:3,maxRows:5}},t.innerProps),canOperate:w,formItemLayout:C}):null,b===ze.contentItemType.onlyShowTextarea?e.createElement(Pp,{label:S.label,value:t.value,helper:S.helper,innerProps:so({autoSize:{minRows:3,maxRows:5}},t.innerProps),formItemLayout:C}):null,b===ze.contentItemType.onlyShowInput?e.createElement(gp,{label:S.label,value:t.value,helper:S.helper||"",icon:t.icon||ma.form(),innerProps:so(so({},t.innerProps),{},{disabled:!0,placeholder:"暂无".concat(S.label,"信息")},t.canCopy?{addonAfter:e.createElement(xa,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px"},showIcon:!1,disabled:L(t.value||""),text:"点击复制",handleClick:function(){be(t.value||"")}})}:{}),formItemLayout:C}):null,b===ze.contentItemType.onlyShowInputDatetime?e.createElement(gp,{label:S.label,value:_({data:se(t.value),format:I.yearMonthDayHourMinute}),helper:S.helper||"",icon:t.icon||ma.form(),innerProps:so(so({},t.innerProps),{},{disabled:!0,placeholder:"暂无".concat(S.label,"信息")}),formItemLayout:C}):null,b===ze.contentItemType.select?e.createElement(bp,{label:S.label,name:S.name,helper:S.helper,list:T(t.listData)?t.listData:[],dataConvert:h(t.dataConvert)?t.dataConvert:null,renderItem:h(t.renderItem)?t.renderItem:null,onChange:h(t.onChange)?t.onChange:null,required:!0,formItemLayout:C,innerProps:so({},t.innerProps)}):null,b===ze.contentItemType.whetherSelect?pp({label:S.label,name:S.name,helper:S.helper,onChangeCallback:t.onChangeCallback,formItemLayout:C,required:!0,innerProps:so({},t.innerProps)}):null,b===ze.contentItemType.customSelect?t.component:null,b===ze.contentItemType.flexSelect?e.createElement(Ti,t):null,b===ze.contentItemType.radio?e.createElement(xp,{label:S.label,name:S.name,helper:S.helper,list:T(t.listData)?t.listData:[],dataConvert:h(t.dataConvert)?t.dataConvert:null,renderItem:h(t.renderItem)?t.renderItem:null,onChange:h(t.onChange)?t.onChange:null,button:R(t.button||!1),required:!0,formItemLayout:C,innerProps:so({},t.innerProps)}):null,b===ze.contentItemType.whetherRadio?hp({label:S.label,name:S.name,helper:S.helper,onChange:t.onChangeCallback,formItemLayout:C,required:!0,innerProps:so({},t.innerProps)}):null,b===ze.contentItemType.customRadio?t.component:null,b===ze.contentItemType.onlyShowText?e.createElement(Rp,{label:S.label,value:t.value,helper:t.showHelper&&S.helper||"",formItemLayout:C}):null,b===ze.contentItemType.innerComponent?e.createElement(mp,{label:S.label,innerComponent:t.component,helper:S.helper,formItemLayout:C,requiredForShow:x}):null,b===ze.contentItemType.save?e.createElement(_p,{action:h(p)?p(t.config||{}):null,formItemLayout:C}):null,b===ze.contentItemType.button?Uu({config:t.config||{},formItemLayout:C}):null,b===ze.contentItemType.actionList?e.createElement(tt,{split:Y(t.split||!1)?t.split?e.createElement(Je,{type:"vertical"}):null:t.split},h(m)?m({keyPrefix:"form_card_".concat(i,"_action_key"),configList:t.config||[]}):null):null,b===ze.contentItemType.component&&t.component||null,b===ze.contentItemType.jsonView?e.createElement(Ii,{value:t.value}):null,b===ze.contentItemType.syntaxHighlighterView?e.createElement(Ep,{language:t.language,label:S.label,value:t.value,helper:S.helper,formItemLayout:C,innerProps:so({},t.innerProps)}):null,b===ze.contentItemType.nowTime?e.createElement(Tp,{formItemLayout:C}):null)})):null)}}]),l}();function Bp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Ip.defaultProps={wrapperType:De.wrapperType.page,justify:"start",align:"top",gutter:14,items:[],index:0,pretreatmentImageUploadResponse:null,pretreatmentFileBase64UploadResponse:null,pretreatmentVideoUploadResponse:null,pretreatmentFileUploadResponse:null,pretreatmentAudioUploadResponse:null,saveButtonBuilder:null,extraBuilder:null};var Op=wt.Content,Lp=wt.Sider,Ap=function(t){vo(l,n);var r=Bp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.layoutConfig,r=void 0===n?null:n,l=t.siderConfig,o=void 0===l?null:l,a=t.siderBody,i=void 0===a?null:a,c=t.toolbar,u=t.contentBody,s=void 0===u?null:u,f=t.contentClassName,d=t.bottom,p=so({position:"left"},o).position,h=P(["left","right"],p)?p:"left",m=so({width:300,style:so({backgroundColor:"#fff",borderRadius:"4px",overflowX:"auto",overflowY:"hidden"},"left"===h?{marginRight:"16px"}:{marginLeft:"16px"})},fe(o)?{}:o),v=so({breakpoint:"sm",style:{backgroundColor:"#f0f2f5",minHeight:"auto"}},fe(r)?{}:r),y=null==i?s:e.createElement(wt,v,"left"===h?e.createElement(Lp,m,i):null,e.createElement(Op,{style:{backgroundColor:"#fff",borderRadius:"4px"},className:Gl("antd-management-fast-component-page-extra-content-box",f)},s),"left"===h?null:e.createElement(Lp,m,i));return null==s&&null==(c||null)&&null==(d||null)?null:null!=(c||null)||null!=(d||null)?e.createElement("div",{style:{overflowX:"hidden"}},e.createElement(tt,{style:{width:"100%"},direction:"vertical",size:14},c,y,d)):y}}]),l}();Ap.defaultProps={layoutConfig:{},siderConfig:{},siderBody:null,contentBody:null,contentClassName:"",toolbar:null,bottom:null};var Np="index_contentTabBox__r22r2";function Up(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Mp=function(t){vo(l,n);var r=Up(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.defaultActiveKey,r=t.list,l=t.extraContent,o=t.onTabChange,a=T(r)?r:[],i=a.length>0?{type:"card",size:"small",tabBarStyle:{marginBottom:0,backgroundColor:"#fff",paddingTop:"16px",paddingLeft:"24px",paddingRight:"24px"},tabBarGutter:3,animated:{inkBar:!0,tabPane:!0},defaultActiveKey:n||"",tabBarExtraContent:l,items:a.map((function(e){return so({},e)})),onChange:o}:{tabBarStyle:{marginBottom:0}};return e.createElement("div",{className:Np},e.createElement(kt,i))}}]),l}();function Dp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Mp.defaultProps={defaultActiveKey:"",list:[],extraContent:null,onTabChange:null};var zp=We.Paragraph,Fp=function(t){vo(o,n);var r=Dp(o);function o(){return fo(this,o),r.apply(this,arguments)}return ho(o,[{key:"render",value:function(){var t=this.props,n=t.paragraph,r=t.gridConfig,o=t.component,a=t.actions,i=[];return A(n)&&!L(n)&&i.push({key:"item_paragraph_text",component:e.createElement(zp,{style:{marginBottom:"0"}},n)}),e.isValidElement(n)&&i.push({key:"item_paragraph_component",component:n}),fe(r)||i.push({key:"item_paragraph_component",component:e.createElement(ci,so({config:{style:{marginBottom:"4px"},size:"small"}},r))}),e.isValidElement(o)&&i.push({key:"item_component",component:o}),T(a)&&a.length>0&&i.push({key:"item_actions",component:e.createElement(tt,null,a.map((function(t,n){return e.createElement(l,{key:"item_action_item_".concat(n)},t)})))}),te(i)?null:1===i.length?i[0].component:e.createElement(tt,{style:{width:"100%"},direction:"vertical"},i.map((function(t){var n=t.key,r=t.component;return e.createElement("div",{key:n},r)})))}}],[{key:"checkProperties",value:function(e){var t=e.paragraph,n=e.gridConfig,r=e.component,l=e.actions;return!(null==t&&null==n&&null==r&&te(l))}}]),o}();function jp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Fp.defaultProps={paragraph:null,gridConfig:null,component:null,actions:[]};var Vp=function(t){vo(l,n);var r=jp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.textLabel,r=void 0===n?"描述":n,l=t.text,o=void 0===l?"":l,a=t.timeLabel,i=void 0===a?"时间":a,c=t.time,u=void 0===c?new Date:c,s={fontSize:"20px"};return e.createElement($e,null,e.createElement(Ge,{xs:24,sm:12},e.createElement("div",null,i),e.createElement("div",{style:s},_({data:u,format:"HH:mm:ss",defaultValue:"--"}),e.createElement("br",null),_({data:u,format:"YYYY-MM-DD"}))),e.createElement(Ge,{xs:24,sm:12},e.createElement("div",null,r),e.createElement("div",{style:s},o)))}}]),l}();function Wp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Vp.defaultProps={textLabel:"描述",text:"",tileLabel:"时间",time:new Date};var qp=We.Text,Hp=function(t){vo(l,n);var r=Wp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props.text;return L(t)?null:e.createElement(fa,{style:{height:"31px",paddingBottom:"1px"},align:"bottom"},e.createElement(qp,{style:{color:"#888"}},t))}}]),l}();function $p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Hp.defaultProps={text:""};var Gp=function(t){vo(l,n);var r=$p(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props.list;return e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"relative",height:"24px",padding:"0 14px 0 0",lineHeight:"24px"}},e.createElement(ki,{list:t})))}}]),l}();function Kp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Gp.defaultProps={list:[]};var Yp=function(t){vo(l,n);var r=Kp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.titlePrefix;return e.createElement("div",{style:{display:"block",maxWidth:"700px",height:"32px",overflow:"hidden"}},e.createElement(fa,null,e.createElement(ga,{block:!0,style:{fontSize:"18px"},textPrefix:r,text:n,separatorStyle:{paddingRight:"5px"},ellipsis:!0})))}}]),l}();function Jp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Yp.defaultProps={title:"",titlePrefix:""};var Xp=function(t){vo(l,n);var r=Jp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.wrapperType,r=t.title,l=t.showNumber,o=t.list;if(!T(o)){return u("帮助条目数据无效"),U(config),null}return te(o)?null:e.createElement(dd,{border:!P([De.wrapperType.model,De.wrapperType.drawer],n),compact:n===De.wrapperType.model,helpBoxProps:{title:r||"操作帮助",showNumber:l||!1,list:o}})}}]),l}();function Qp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Xp.defaultProps={wrapperType:De.wrapperType.page,title:"操作帮助",showNumber:!0,list:[]};var Zp=function(t){vo(l,n);var r=Qp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.dataLoading,r=t.reloading,l=t.showHeader,o=t.title,a=t.titlePrefix,i=t.subTitle,c=t.showAvatar,u=t.avatarConfig,s=t.avatarDefaultIcon,f=t.avatarImageLoadResult,d=t.onAvatarLoadError,p=t.tagList,m=t.useShortcutNavigation,v=t.shortcutNavigation,y=t.extraAction,g=t.contentConfig,b=t.extraContentConfig,x=t.tabActiveKey,E=t.tabList,k=t.tabBarExtraContent,w=t.tabProps,C=t.onTabChange,R=t.footer,S=t.floatButton,P=t.leftArea,T=t.children,_=c?Ss(u,s,c,n,r,f,(function(){h(d)&&d()})):null,I=N(g)?de(g)?null:Fp.checkProperties(g)?e.createElement(Fp,g):null:null,B=N(b)?de(b)?null:e.createElement(Vp,b):null,O=P?e.createElement(Pa,{flexAuto:"right",leftStyle:{backgroundColor:"#fff"},left:P,right:e.createElement(e.Fragment,null,e.createElement(lo,null),T,S)}):e.createElement(e.Fragment,null,e.createElement(lo,null),T,S);return l?e.createElement("div",{style:{background:"#f0f2f5"}},e.createElement(no,{header:so({ghost:!1,style:{backgroundColor:"#fff",paddingBottom:"0px",paddingLeft:"24px",paddingRight:"24px"},avatar:_,title:e.createElement(Yp,{title:o,titlePrefix:a}),subTitle:A(i)?e.createElement(Hp,{text:i}):i,tags:e.createElement(Gp,{list:p})},null===w?{footer:null}:{}),childrenContentStyle:{padding:"0px"},className:Gl("antd-management-fast-component",m?"antd-management-fast-component-use-shortcut-navigation":""),extra:y,content:I,extraContent:B,tabActiveKey:x,tabList:E,tabBarExtraContent:k,onTabChange:C,tabProps:w,footer:R,breadcrumbRender:function(t,n){return e.createElement(Pa,{flexAuto:"right",style:{paddingBottom:"7px",borderBottom:"1px solid #f1f1f1"},left:e.createElement("div",null,n),right:null==v?null:e.createElement(Pa,{flexAuto:"top",top:e.createElement("div",null),bottom:e.createElement(Pa,{flexAuto:"left",left:e.createElement("div",null),right:e.createElement("div",null,v)})})})}},O)):O}}]),l}();Zp.defaultProps={dataLoading:!1,reloading:!1,showHeader:!1,title:"",titlePrefix:null,subTitle:null,showAvatar:!1,avatarConfig:null,avatarDefaultIcon:null,avatarImageLoadResult:null,onAvatarLoadError:null,tagList:[],useShortcutNavigation:!0,shortcutNavigation:null,extraAction:null,contentConfig:null,extraContentConfig:null,tabActiveKey:null,tabList:[],tabBarExtraContent:null,tabProps:null,footer:null,floatButton:null,leftArea:null,onTabChange:null};var eh="index_amf-layout-sider-box__L2dDl";function th(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var nh=function(t){vo(l,n);var r=th(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.top,r=t.bottom;return fe(n)&&fe(r)?null:fe(r)?n:e.createElement(Pa,{className:eh,direction:"vertical",flexAuto:"top",top:n,bottom:r})}}]),l}();function rh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}nh.defaultProps={top:null,bottom:null};var lh=function(t){vo(l,n);var r=rh(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.list,r=t.split,l=T(n)?n:N(n)?[n]:[];return l.length<=0?null:e.createElement(tt,{split:Y(r)?r?e.createElement(Je,{type:"vertical"}):null:r},l)}}]),l}();function oh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}lh.defaultProps={list:[],split:!1};var ah=function(t){vo(l,n);var r=oh(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.stick,r=t.title,l=t.tools;if(!T(l)){return u("工具栏配置数据无效"),U(config),null}if(te(l))return null;var o=l.map((function(e,t){return so(so({},e),{},{key:"toolItem_".concat(t)})})),a=e.createElement(bt,{title:e.createElement(ga,{icon:ma.tool(),text:r||"工具栏"}),bordered:!1,bodyStyle:{padding:0},extra:e.createElement(tt,{split:e.createElement(Je,{type:"vertical"})},o.map((function(t){return so({hidden:!1},t).hidden?null:e.createElement(He,{key:t.key,title:t.title||""},t.component)})))});return Y(n)&&n?e.createElement(Ct,{offsetTop:0},a):a}}]),l}();ah.defaultProps={stick:!1,title:"工具栏",tools:[]};var ih={HeaderTitle:Yp,HeaderContent:Fp,HeaderTagWrapper:Gp,HeaderExtraContent:Vp,ContentBox:Ap,BodyContent:op,SiderBox:nh,ToolBar:ah,HelpContent:Xp,PageWrapper:Zp,ContentTabBox:Mp,TabBarExtraBox:lh,CardCollectionItemContent:Ip,HeaderSubTitle:Hp};function ch(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var uh=function(t){vo(l,n);var r=ch(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props.value;return pe(t)||(t=he(100*t,1)),e.createElement("span",null,t,"%")}}]),l}();function sh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}uh.defaultProps={value:0};var fh=function(t){vo(l,n);var r=sh(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.price,r=t.generalStyle,l=t.prefix,o=t.prefixStyle,a=t.integerPartStyle,i=t.pointStyle,c=t.decimalPartStyle,u=so(so({},r),{},{verticalAlign:"bottom"});if(!pe(n))return"";var s=q(n||0,2,"").split("."),f=s[0],d=s[1];return e.createElement("div",{style:{display:"inline"}},e.createElement("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"flex-end",lineHeight:1}},e.createElement("div",{style:so(so({},u),o)},l),e.createElement("div",{style:so(so({},u),a)},f),e.createElement("div",{style:so(so({},u),i)},"."),e.createElement("div",{style:so(so({},u),c)},d)))}}]),l}();fh.defaultProps={price:0,prefix:"",generalStyle:{},prefixStyle:{},integerPartStyle:{},pointStyle:{},decimalPartStyle:{}};var dh=function(t){var n=t.progress,r=t.animationDuration;return e.createElement("div",{style:{background:"#29d",height:2,left:0,marginLeft:"".concat(100*(-1+n),"%"),position:"fixed",top:0,transition:"margin-left ".concat(r,"ms linear"),width:"100%",zIndex:1031}},e.createElement("div",{style:{boxShadow:"0 0 10px #29d, 0 0 5px #29d",display:"block",height:"100%",opacity:1,position:"absolute",right:0,transform:"rotate(3deg) translate(0px, -4px)",width:100}}))};dh.defaultProps={animationDuration:800,progress:1};var ph=function(t){var n=t.animationDuration,r=t.children,l=t.isFinished;return e.createElement("div",{style:{opacity:l?0:1,pointerEvents:"none",transition:"opacity ".concat(n,"ms linear")}},r)};ph.defaultProps={animationDuration:800,isFinished:!0};var hh="index_amfProgressSpinner__e6p33",mh="index_amfProgressSpinnerInner__fDKns",vh=function(){return e.createElement("div",{className:hh},e.createElement("div",{className:mh}))},yh=function(t){var n=t.progressing,r=t.animationDuration,l=t.incrementDuration,o=t.minimum,a=t.showBar,i=t.showSpinner;return e.createElement(oo,{isAnimating:n,animationDuration:r,incrementDuration:l,minimum:o},(function(t){var n=t.animationDuration,r=t.isFinished,l=t.progress;return e.createElement(ph,{animationDuration:n,isFinished:r},a?e.createElement(dh,{animationDuration:n,progress:l}):null,e.createElement(vh,null),i?e.createElement(vh,null):null)}))};yh.defaultProps={progressing:!0,animationDuration:200,incrementDuration:800,minimum:.08,showSpinner:!0,showBar:!0};var gh={Forbidden:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"403",title:n,subTitle:r,extra:l},a)},Info:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{title:n,subTitle:r,extra:l},a)},LocalError:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"error",title:n,subTitle:r,extra:l},a)},NotFound:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"404",title:n,subTitle:r,extra:l},a)},ServerError:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"500",title:n,subTitle:r,extra:l},a)},Success:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"success",title:n,subTitle:r,extra:l},a)},Warn:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"warning",title:n,subTitle:r,extra:l},a)}},bh="index_rowExpandTable__XAAb5";function xh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Eh=function(t){vo(r,Co);var n=xh(r);function r(){return fo(this,r),n.apply(this,arguments)}return ho(r,[{key:"renderFurther",value:function(){var t=this.props.tableConfig;return e.createElement("div",{className:bh},e.createElement(bt,null,e.createElement(St,t)))}}]),r}();Eh.defaultProps={tableConfig:null};var kh="index_standardFormRow__DfQar",wh="index_label__rTo6w",Ch="index_content__-5wzS",Rh="index_standardFormRowLast__IPynN",Sh="index_standardFormRowBlock__VTJan",Ph="index_standardFormRowGrid__V4YYX",Th=["title","children","last","block","grid"],_h=function(t){var n=t.title,r=t.children,l=t.last,o=t.block,a=t.grid,i=To(t,Th),c=Gl(kh,co(co(co({},Sh,o),Rh,l),Ph,a));return e.createElement("div",Po({className:c},i),n&&e.createElement("div",{className:wh},e.createElement("span",null,n)),e.createElement("div",{className:Ch},r))},Ih=["data","rowKey","size","showSelect","showPagination","style"];function Bh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}function Oh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Lh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lh(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,l=function(){};return{s:l,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw o}}}}function Lh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ah(e){var t,n=[],r=Oh(e);try{for(r.s();!(t=r.n()).done;){var l=t.value;l.needTotal&&n.push(so(so({},l),{},{total:0}))}}catch(e){r.e(e)}finally{r.f()}return n}var Nh=function(t){vo(l,n);var r=Bh(l);function l(e){var t;fo(this,l),(t=r.call(this,e)).handleRowSelectChange=function(e,n){var r=t.state.needTotalList;r=r.map((function(e){return so(so({},e),{},{total:(n||[]).reduce((function(t,n){return t+Number.parseFloat(n[e.dataIndex],10)}),0)})}));var l=t.props.onSelectRow;l&&l(n||[]),t.setState({selectedRowKeys:e,needTotalList:r})},t.handleTableChange=function(e,n,r,l){var o=t.props.onChange;o&&o(e,n,r,l)},t.cleanSelectedKeys=function(){t.handleRowSelectChange([],[])};var n=Ah(e.columns);return t.state={selectedRowKeys:[],needTotalList:n},t}return ho(l,[{key:"render",value:function(){var t=this.state,n=t.selectedRowKeys,r=t.needTotalList,l=this.props,o=l.data,a=o.list,i=o.pagination,c=l.rowKey,u=l.size,s=l.showSelect,f=l.showPagination,d=l.style,p=To(l,Ih),h=!!f&&so({showSizeChanger:!0,showQuickJumper:!0},i),m=s||!1,y=0!==(this.props.selectedRows||[]).length||m?{selectedRowKeys:n,onChange:this.handleRowSelectChange,getCheckboxProps:function(e){return{disabled:e.disabled}}}:null,g=null===y?"":e.createElement("div",{style:{paddingBottom:"10px"}},e.createElement(ct,{message:e.createElement(e.Fragment,null,"已选择"," ",e.createElement(Ao,{style:{fontWeight:600}},n.length)," ","项  ",r.map((function(t){return e.createElement("span",{style:{marginLeft:8},key:t.dataIndex},t.title,"总计 ",e.createElement("span",{style:{fontWeight:600}},t.render?t.render(t.total):t.total))})),e.createElement(Ao,{onClick:this.cleanSelectedKeys,style:{marginLeft:24}},"清空")),type:"info",showIcon:!0})),b=so({backgroundColor:"#fff",padding:"10px 12px 0px 12px",borderRadius:"8px"},d);v(b,k("StandardTable","containerStyle")),v({size:u||Ce.tableSize.middle,dataSource:a,pagination:h},k("StandardTable","Table","props"));var x=e.createElement(St,Po({rowKey:c||"key",size:u||Ce.tableSize.middle,rowSelection:y,dataSource:a,pagination:h,onChange:this.handleTableChange,defaultExpandAllRows:!0},p,{loading:!1}));return e.createElement("div",{style:b},g,null===y?x:e.createElement("div",{style:{width:"100%",height:"calc(100% - 50px)"}},x))}}],[{key:"getDerivedStateFromProps",value:function(e){return 0===(e.selectedRows||[]).length?{selectedRowKeys:[],needTotalList:Ah(e.columns)}:null}}]),l}();Nh.defaultProps={showPagination:!0,showSelect:!1,rowKey:"key",size:null,style:null};var Uh="index_tagSelect__3b3-Q",Mh="index_expanded__TS7b2",Dh="index_trigger__d9Tc1",zh="index_hasExpandTag__hZyAb";function Fh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var jh=ot.CheckableTag,Vh=function(t){var n=t.children,r=t.checked,l=t.onChange,o=t.value;return e.createElement(jh,{checked:r,key:o,onChange:function(e){return l(o,e)}},n)};Vh.isTagSelectOption=!0;var Wh=function(n){vo(l,t);var r=Fh(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).onChange=function(e){var n=t.props.onChange;"value"in t.props||t.setState({value:e}),n&&n(e)},t.onSelectAll=function(e){var n=[];e&&(n=t.getAllTags()),t.onChange(n)},t.handleTagChange=function(e,n){var r=ua(t.state.value),l=r.indexOf(e);n&&-1===l?r.push(e):!n&&l>-1&&r.splice(l,1),t.onChange(r)},t.handleExpand=function(){var e=t.state.expand;t.setState({expand:!e})},t.isTagSelectOption=function(e){return e&&e.type&&(e.type.isTagSelectOption||"TagSelectOption"===e.type.displayName)},t.state={expand:!1,value:e.value||e.defaultValue||[]},t}return ho(l,[{key:"getAllTags",value:function(){var t=this,n=this.props.children;return(n=e.Children.toArray(n)).filter((function(e){return t.isTagSelectOption(e)})).map((function(e){return e.props.value}))||[]}},{key:"render",value:function(){var t=this,n=this.state,r=n.value,l=n.expand,o=this.props,a=o.children,i=o.hideCheckAll,c=o.className,u=o.style,s=o.expandable,f=this.getAllTags().length===r.length,d=Gl(Uh,c,co(co({},zh,s),Mh,l));return e.createElement("div",{className:d,style:u},i?null:e.createElement(jh,{checked:f,key:"tag-select-__all__",onChange:this.onSelectAll},"全部"),r&&e.Children.map(a,(function(n){return t.isTagSelectOption(n)?e.cloneElement(n,{key:"tag-select-".concat(n.props.value),value:n.props.value,checked:r.includes(n.props.value),onChange:t.handleTagChange}):n})),s&&e.createElement(Ao,{className:Dh,onClick:this.handleExpand},l?"收起":"展开",l?ma.upCircle():ma.down()))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value||[]}:null}}]),l}();Wh.defaultProps={hideCheckAll:!1},Wh.Option=Vh;var qh="index_timeLineExBox__fNBGU",Hh="index_timeLineEx__Jy4W2",$h="index_listItem__vSIgk",Gh="index_timeLineExItem__m7V-q",Kh="index_time__AZDno",Yh="index_timeLineExHeader__MZEQx",Jh="index_timeLineExBody__hOHI2",Xh="index_timeLineExFooter__qos-S",Qh="index_fa__jNhgO",Zh="index_faInner__UKeeB",em="index_faInnerBg__AEwZH",tm="index_faInnerBody__vY0Hp",nm="index_timeLabel__d0e4d",rm="index_backgroundRed__BQ0iU",lm="index_timeLineExInverse__7eGPZ";function om(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var am=function(t){vo(r,Co);var n=om(r);function r(t){var l;return fo(this,r),(l=n.call(this,t)).doWorkWhenGetSnapshotBeforeUpdate=function(e,t){return l.currentTime=null,l.currentPageStart=!0,null},l.getCreateTimeDatePart=function(e){return _({data:e,format:I.yearMonthDay})},l.getCreateTimeTimePart=function(e){return _({data:e,format:I.hourMinute})},l.handleTableChange=function(e,t){(0,l.props.onChange)(e,t)},l.renderPresetDateLabel=function(t){l.currentTime=l.currentTime||t;var n=l.currentTime||t;return!(!l.currentPageStart&&new Date(n).getDay()===new Date(t).getDay())&&(l.currentPageStart=!1,l.currentTime=t,e.createElement("div",{className:"".concat(nm," ").concat($h)},e.createElement("span",{className:rm},l.getCreateTimeDatePart(t))))},l.renderPresetInfo=function(t){var n=l.props,r=n.getTime,o=n.getTitle,a=n.getDescription,i=n.getBottomLeft,c=n.getBottomRight,u=n.getIcon;return e.createElement("div",{className:$h},e.createElement("span",{className:Qh},e.createElement("div",{className:Zh},e.createElement("div",{className:em}),e.createElement("div",{className:tm},u(t)))),e.createElement("div",{className:Gh},e.createElement("span",{className:Kh},e.createElement($t,{style:{marginLeft:"20px",position:"inherit",width:"12px",height:"12px",lineHeight:"12px",fontSize:"12px",marginRight:"2px"}}),l.getCreateTimeTimePart(r(t))),e.createElement("h3",{className:Yh},o(t)),e.createElement("div",{className:Jh,style:{fontSize:"13px"}},a(t)),e.createElement("div",{className:Xh},e.createElement("span",{style:{fontSize:"13px"}},i(t)),e.createElement("span",{style:{marginLeft:"20px",fontSize:"13px"}},c(t)))))},l.currentTime=null,l.currentPageStart=!0,l.state={list:[],pagination:{}},l}return ho(r,[{key:"render",value:function(){var t=this,n=this.props,r=n.loading,l=n.getDateLabel,o=n.showPagination,a=this.state,i=a.list,c=a.pagination,u=!1;return o&&(u=so(so({showSizeChanger:!0,showQuickJumper:!0},c),{},{onChange:this.handleTableChange})),e.createElement("div",{className:qh},e.createElement("div",{className:"".concat(Hh," ").concat(lm)},e.createElement(ut,{loading:r,itemLayout:"vertical",size:"large",pagination:u,dataSource:i,renderItem:function(n){return e.createElement(ut.Item,{key:n.title,style:{padding:0,borderBottom:"0px"}},e.createElement("div",null,t.renderPresetDateLabel(l(n)),t.renderPresetInfo(n)))}})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data;return{list:n.list,pagination:n.pagination}}}]),r}();am.defaultProps={showPagination:!1,iconStyle:{},links:[],getIcon:function(){return ma.message()},getBackgroundColorKey:function(){return""},getDateLabel:function(){return""},getTime:function(){return""},getTitle:function(){return""},getDescription:function(){return""},getBottomLeft:function(){return""},getBottomRight:function(){return""}};var im={trendItem:"index_trendItem__T87oP",up:"index_up__bcjl-",down:"index_down__ynaEo",trendItemGrey:"index_trendItemGrey__nycuI",reverseColor:"index_reverseColor__mN1eJ"},cm=["colorful","reverseColor","flag","icon","children","className"],um=function(t){var n=t.colorful,r=void 0===n||n,l=t.reverseColor,o=void 0!==l&&l,a=t.flag,i=t.icon,c=t.children,u=t.className,s=To(t,cm),f=Gl(im.trendItem,co(co({},im.trendItemGrey,!r),im.reverseColor,o&&r),u);return e.createElement("div",Po({},s,{className:f,title:"string"==typeof c?c:""}),e.createElement("span",null,c),a&&e.createElement("span",{className:im[a]},i))};export{ko as AbstractComponent,Ao as AnchorLink,ea as ArticleListContent,rs as AudioUpload,fs as AvatarList,Co as BaseComponent,hf as BaseElasticitySelectButton,vs as Bubbly,pa as CenterBox,ti as ColorText,ai as CustomGrid,Ps as DecorateAvatar,ci as DescriptionGrid,_s as DisplayCopyData,Ds as EditableItem,uf as EditableLinkGroup,df as Editor,xa as ElasticityButton,_a as ElasticityDropdown,si as ElasticityListViewItemExtra,Ca as ElasticityMenu,di as ElasticityMenuHeader,gi as ElasticityRadioGroup,mf as ElasticitySelectButton,ki as ElasticityTagList,yf as ElasticityTree,Ci as ElasticityTreeSelect,Rf as Ellipsis,Fa as EllipsisCustom,Pf as EverySpace,Do as FadeBox,Bf as FieldExtra,jf as FigureRange,Wf as FileBase64Upload,$f as FileUpload,Pa as FlexBox,Ti as FlexSelect,li as FlexText,Gf as Footer,Zf as FooterToolbar,uu as FormExtra,td as FunctionSupplement,od as GlobalFooter,sd as HelpBox,dd as HelpCard,dc as HiddenWrapper,md as HtmlBox,vd as IconFont,ga as IconInfo,Ya as ImageBox,bd as ImageContentPreview,Td as ImageUpload,Ii as JsonView,Bd as Line,Oo as MemoFunction,Qd as MobileContainor,tp as NumberInfo,rp as Overlay,ih as PageExtra,uh as PercentageBox,fh as PriceBox,yh as ProgressBar,So as PureExtraComponent,Ko as QueueBox,$o as QueueListBox,bs as RadarScanning,gh as Result,Jo as RotateBox,Eh as RowExpandTable,ws as Spirit,_h as StandardFormRow,Nh as StandardTable,Oi as StatusBar,Zc as SyntaxHighlighter,Wh as TagSelect,am as TimeLineCustom,um as Trend,fa as VerticalBox,cp as VideoUpload,sc as adjustTableExpandConfig,Rs as avatarImageLoadResultCollection,Fi as buildAlert,Ni as buildButton,qi as buildButtonGroup,$i as buildColorText,Qa as buildColumnItem,Za as buildColumnList,ji as buildCustomGrid,Vi as buildDescriptionGrid,Ui as buildDropdown,Mi as buildDropdownButton,Di as buildDropdownEllipsis,Ji as buildFlexRadio,Yi as buildFlexSelect,Nu as buildFormActionItem,Uu as buildFormButton,qu as buildFormCreateTimeField,Iu as buildFormDatePicker,ju as buildFormHiddenWrapper,Au as buildFormInnerComponent,Vu as buildFormInput,Wu as buildFormInputFieldData,Tu as buildFormInputNumber,$u as buildFormNowTimeField,Pu as buildFormOnlyShowInput,Mu as buildFormOnlyShowSyntaxHighlighter,Fu as buildFormOnlyShowText,Lu as buildFormOnlyShowTextarea,zu as buildFormPassword,Ku as buildFormRadio,Gu as buildFormSelect,Du as buildFormSwitch,Ou as buildFormText,_u as buildFormTextArea,Bu as buildFormTimePicker,Hu as buildFormUpdateTimeField,uc as buildIconInfoList,lc as buildJsonView,rc as buildListViewItemActionSelect,Zi as buildListViewItemExtra,ec as buildListViewItemInner,tc as buildListViewItemInnerWithDropdownButton,nc as buildListViewItemInnerWithSelectButton,Ai as buildMenu,Wi as buildMenuHeaderRender,vi as buildOptionItem,Gi as buildPlayer,Hi as buildRadioGroup,hi as buildRadioItem,es as buildSearchFormSelect,Qu as buildSearchInput,Zu as buildSearchInputNumber,Qi as buildStatusBar,Xi as buildTagList,zi as buildTree,Ki as buildTreeSelect,pi as convertOptionOrRadioData,Ss as decorateAvatar,Ff as figureRangeType,ma as iconBuilder,ha as iconModeCollection};
8
+ */function nf(){if(Gs)return $s;Gs=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return $s=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,l){for(var o,a,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),c=1;c<arguments.length;c++){for(var u in o=Object(arguments[c]))t.call(o,u)&&(i[u]=o[u]);if(e){a=e(o);for(var s=0;s<a.length;s++)n.call(o,a[s])&&(i[a[s]]=o[a[s]])}}return i},$s}function rf(){return Ys?Ks:(Ys=1,Ks=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var lf=tf();zs.exports=function(){if(Zs)return Qs;Zs=1;var e=tf(),t=nf(),n=Fs(),r=rf(),l=function(){if(Xs)return Js;Xs=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Fs(),n={},r=rf();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function l(l,o,a,i,c){if("production"!==process.env.NODE_ENV)for(var u in l)if(r(l,u)){var s;try{if("function"!=typeof l[u]){var f=Error((i||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ao(l[u])+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=l[u](o,u,i,a,null,t)}catch(e){s=e}if(!s||s instanceof Error||e((i||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+ao(s)+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in n)){n[s.message]=!0;var d=c?c():"";e("Failed "+a+" type: "+s.message+(null!=d?d:""))}}}return l.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Js=l}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Qs=function(i,c){var u="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",d={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:m(a),arrayOf:function(e){return m((function(t,r,l,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+l+"` has invalid PropType notation inside arrayOf.");var i=t[r];if(!Array.isArray(i))return new h("Invalid "+o+" `"+a+"` of type `"+b(i)+"` supplied to `"+l+"`, expected an array.");for(var c=0;c<i.length;c++){var u=e(i,c,l,o,a+"["+c+"]",n);if(u instanceof Error)return u}return null}))},element:m((function(e,t,n,r,l){var o=e[t];return i(o)?null:new h("Invalid "+r+" `"+l+"` of type `"+b(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,l,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+l+" `"+o+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,l,o){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+l+" `"+o+"` of type `"+((i=t[n]).constructor&&i.constructor.name?i.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var i;return null}))},node:m((function(e,t,n,r,l){return g(e[t])?null:new h("Invalid "+r+" `"+l+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,l,o,a,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var c=t[l],u=b(c);if("object"!==u)return new h("Invalid "+a+" `"+i+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var s in c)if(r(c,s)){var f=e(c,s,o,a,i+"."+s,n);if(f instanceof Error)return f}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,r,l,o){for(var a=t[n],i=0;i<e.length;i++)if(p(a,e[i]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new h("Invalid "+l+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var l=e[t];if("function"!=typeof l)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+E(l)+" at index "+t+"."),a}return m((function(t,l,o,a,i){for(var c=[],u=0;u<e.length;u++){var s=(0,e[u])(t,l,o,a,i,n);if(null==s)return null;s.data&&r(s.data,"expectedType")&&c.push(s.data.expectedType)}return new h("Invalid "+a+" `"+i+"` supplied to `"+o+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,l,o,a){var i=t[r],c=b(i);if("object"!==c)return new h("Invalid "+o+" `"+a+"` of type `"+c+"` supplied to `"+l+"`, expected `object`.");for(var u in e){var s=e[u];if("function"!=typeof s)return y(l,o,a,u,x(s));var f=s(i,u,l,o,a+"."+u,n);if(f)return f}return null}))},exact:function(e){return m((function(l,o,a,i,c){var u=l[o],s=b(u);if("object"!==s)return new h("Invalid "+i+" `"+c+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=t({},l[o],e);for(var d in f){var p=e[d];if(r(e,d)&&"function"!=typeof p)return y(a,i,c,d,x(p));if(!p)return new h("Invalid "+i+" `"+c+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(l[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=p(u,d,a,i,c+"."+d,n);if(m)return m}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"===ao(t)?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function l(l,a,i,u,s,d,p){if(u=u||f,d=d||i,p!==n){if(c){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=u+":"+i;!t[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[i]?l?null===a[i]?new h("The "+s+" `"+d+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+s+" `"+d+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,i,u,s,d)}var a=l.bind(null,!1);return a.isRequired=l.bind(null,!0),a}function v(e){return m((function(t,n,r,l,o,a){var i=t[n];return b(i)!==e?new h("Invalid "+l+" `"+o+"` of type `"+x(i)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,l){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+l+"`.")}function g(e){switch(ao(e)){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||i(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[s]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var l=n.value;if(l&&!g(l[1]))return!1}return!0;default:return!1}}function b(e){var t=ao(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function x(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function E(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=l,d.resetWarningCache=l.resetWarningCache,d.PropTypes=d,d},Qs}()(lf.isElement,!0)}else zs.exports=function(){if(Ms)return Us;Ms=1;var e=Fs();function t(){}function n(){}return n.resetWarningCache=t,Us=function(){function r(t,n,r,l,o,a){if(a!==e){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function l(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:l,element:r,elementType:r,instanceOf:l,node:r,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var of=la(zs.exports),af="index_linkGroup__diKbl";function cf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var uf=function(t){vo(o,n);var l=cf(o);function o(){return fo(this,o),l.apply(this,arguments)}return ho(o,[{key:"render",value:function(){var t=this.props,n=t.links,l=t.linkElement,o=t.onAdd;return e.createElement("div",{className:af},n.map((function(e){return r(l,{key:"linkGroup-item-".concat(e.id||e.title),to:e.href,href:e.href},e.title)})),e.createElement(Ye,{size:"small",type:"primary",ghost:!0,onClick:o,icon:ma.plus()},"添加"))}}]),o}();function sf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}uf.propTypes={links:of.array,onAdd:of.func,linkElement:of.oneOfType([of.func,of.string])},uf.defaultProps={links:[],onAdd:function(){},linkElement:"a"};var ff=function(t){vo(l,n);var r=sf(l);function l(){var t;fo(this,l);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(t=r.call.apply(r,[this].concat(o))).editor=e.createRef(),t.buildConfig=function(){var e=t.props.initConfig;return so({language:"zh_CN",height:690,plugins:"preview importcss searchreplace autolink autosave save directionality visualblocks visualchars fullscreen image link media template codesample code table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons autoresize",mobile:{plugins:"preview importcss searchreplace autolink autosave save directionality visualblocks visualchars fullscreen image link media template codesample code table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons autoresize"},menu:{tc:{title:"Comments",items:"addcomment showcomments deleteallconversations"}},menubar:"file edit view insert format tools table tc help",toolbar:"undo redo bold italic underline strikethrough fontselect fontsizeselect formatselect alignleft aligncenter alignright alignjustify outdent indent numlist bullist forecolor backcolor removeformat visualblocks visualchars table tabledelete tableprops tablerowprops tablecellprops tableinsertrowbefore tableinsertrowafter tabledeleterow tableinsertcolbefore tableinsertcolafter tabledeletecol searchreplace pagebreak nonbreaking charmap emoticons fullscreen preview wordcount save insertdatetime insertfile image media template link anchor codesample code ltr rtl showcomments addcomment restoredraft help",autosave_ask_before_unload:!0,autosave_interval:"30s",autosave_prefix:"{path}{query}-{id}-",autosave_restore_when_empty:!1,autosave_retention:"2m",image_advtab:!0,importcss_append:!0,templates:[{title:"新建表格",description:"creates a new table",content:'<div class="mceTmpl"><table width="98%%" border="0" cellspacing="0" cellpadding="0"><tr><th scope="col"> </th><th scope="col"> </th></tr><tr><td> </td><td> </td></tr></table></div>'},{title:"Starting my story",description:"A cure for writers block",content:"Once upon a time..."},{title:"附带日期的清单",description:"附带日期的清单",content:'<div class="mceTmpl"><span class="cdate">cdate</span><br /><span class="mdate">mdate</span><h2>My List</h2><ul><li></li><li></li></ul></div>'}],template_cdate_format:"[Date Created (CDATE): %m/%d/%Y : %H:%M:%S]",template_mdate_format:"[Date Modified (MDATE): %m/%d/%Y : %H:%M:%S]",image_caption:!0,quickbars_selection_toolbar:"bold italic | quicklink h2 h3 blockquote quickimage quicktable",noneditable_noneditable_class:"mceNonEditable",toolbar_mode:"sliding",content_style:".mymention{ color: gray; }",contextmenu:"link image table",a11y_advanced_options:!0,skin:"oxide",content_css:"default",automatic_uploads:!0,images_upload_url:"",min_height:700,toolbar_sticky:!0,images_upload_handler:t.imageUploadHandler},e)},t.imageUploadHandler=function(e,n){return new Promise((function(r,l){var o,a,i=t.props.imagesUploadUrl,c=Se(),u="".concat(c).concat(i);(o=new XMLHttpRequest).withCredentials=!1,o.open("POST",u),o.setRequestHeader(Pe(),Q()||"anonymous"),o.upload.addEventListener("progress",(function(e){n(e.loaded/e.total*100)})),o.addEventListener("load",(function(){if(403!==o.status)if(o.status<200||o.status>=300)l("HTTP Error: "+o.status);else{var e={};try{e=JSON.parse(o.responseText)}catch(e){return l("图片上传失败, 返回数据非Json格式, 请检查"),void Z(o.responseText)}var t=ee({source:e});if(t.dataSuccess){var n=t.data.imageUrl;r(n||"")}else l("图片上传失败,请确认上传地址有效可用,当前上传地址为: ".concat(u))}else l({message:"HTTP Error: "+o.status,remove:!0})})),o.onerror=function(){l("图片上传失败,请确认上传地址有效可用. Code: "+o.status)},(a=new FormData).append("file",e.blob(),e.filename()),o.send(a)}))},t.handleEditorChange=function(e,n){var r=t.props.afterChange;h(r)&&r({html:n.getContent(),text:n.getContent({format:"text"})})},t}return ho(l,[{key:"render",value:function(){var t=this,n=this.props,r=n.apiKey,l=n.content;return e.createElement("div",{style:{border:"0px solid #ccc"}},e.createElement(eo,{apiKey:r,onInit:function(e,n){return t.editor.current=n},initialValue:l,init:this.buildConfig(),onEditorChange:this.handleEditorChange}))}}]),l}();ff.defaultProps={apiKey:"",content:"",initConfig:null,imagesUploadUrl:""};var df={TinymceWrapper:ff};function pf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var hf=function(t){vo(r,Co);var n=pf(r);function r(t){var l;return fo(this,r),(l=n.call(this,t)).showSelect=function(){l.openSelector()},l.openSelector=function(){throw new Error(l.buildOverloadErrorText("openSelector"))},l.afterSelectSuccess=function(e){v(k(l.componentName,"ElasticitySelectButton::BaseElasticitySelectButton","trigger","afterSelectSuccess","afterSelectSuccessCore")),l.afterSelectSuccessCore(e)},l.afterSelectSuccessCore=function(e){if(null!=(e||null)){var t=l.props.afterSelectSuccess,n=T(e)?te(e)?null:e[0]:e;l.setState({selectData:n}),h(t)&&t(n)}},l.renderPresetButton=function(){var t=l.props,n=t.type,r=t.size,o=t.text,a=t.icon,i=t.disabled,c=t.style,u=t.color,s=t.showIcon,f=t.children,d={type:n,size:r,text:o,icon:a,disabled:i,style:c,color:u,showIcon:s,handleClick:function(){l.showSelect()}};return e.createElement(xa,d,f)},l.renderPresetSelector=function(){throw new Error(l.buildOverloadErrorText("renderPresetSelector"))},l.renderPresetOther=function(){return l.renderPresetSelector()},l.state=so(so({},l.state),{},{selectData:null}),l}return ho(r,[{key:"renderFurther",value:function(){return e.createElement(e.Fragment,null,this.renderPresetButton(),this.renderPresetOther())}}]),r}();hf.defaultProps={type:"default",size:"default",icon:null,disabled:!1,style:null,color:null,showIcon:!0,text:"按钮",afterSelectSuccess:null};var mf={BaseElasticitySelectButton:hf};function vf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var yf=function(t){vo(r,Co);var n=vf(r);function r(){return fo(this,r),n.apply(this,arguments)}return ho(r,[{key:"renderFurther",value:function(){var t=this.props,n=t.onSelect,r=void 0===n?null:n,l=t.innerProps,o=void 0===l?{}:l,a=t.listData,i=void 0===a?[]:a,c=t.dataConvert,u=void 0===c?null:c,s=so({showLine:!0},o),f=T(i)?i:[],d=h(u)?G({list:f,convert:u,recursiveKey:"children"}):f;return s.treeData=d,s.onSelect=function(e,t){var n=t.selectedNodes,l=t.node;h(r)&&r(e,t,{selectedNodes:n,node:l,treeData:d,listData:i})},e.createElement(it,s)}}]),r}();yf.defaultProps={onSelect:null,innerProps:{},listData:[],dataConvert:null};var gf=["text","length","tooltip","fullWidthRecognition"],bf=["children","lines","length","tooltip","fullWidthRecognition","title","color"];function xf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Ef=void 0!==document.body.style.webkitLineClamp,kf={overflowWrap:"break-word",wordWrap:"break-word"},wf=function(t){var n=t.tooltip,r=t.overlayStyle,l=t.title,o=t.color,a=t.children;if(n){var i=!0===n?{overlayStyle:r,title:l,color:o}:so(so({},n),{},{overlayStyle:r,title:l,color:o});return e.createElement(He,i,a)}return a},Cf=function(t){var n=t.text,r=t.length,l=t.tooltip,o=t.fullWidthRecognition,a=To(t,gf);if("string"!=typeof n)throw new TypeError("Ellipsis children must be string.");var i=o?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("").reduce((function(e,t){var n=t.codePointAt(0);return n>=0&&n<=128?e+1:e+2}),0)}(n):n.length;if(i<=r||r<0)return e.createElement("span",a,n);var c;c=r-3<=0?"":o?function(){var e=arguments.length>1?arguments[1]:void 0,t=0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("").reduce((function(n,r){var l=r.codePointAt(0);return(t+=l>=0&&l<=128?1:2)<=e?n+r:n}),"")}(n,r):n.slice(0,r);var u=l?{}:so({},a);return wf({tooltip:l,overlayStyle:kf,title:n,children:e.createElement("span",u,c,"...")})},Rf=function(n){vo(l,t);var r=xf(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).state={text:"",targetCount:0},e.computeLine=function(){var t=e.props.lines;if(t&&!Ef){var n=e.shadowChildren.innerText||e.shadowChildren.textContent,r=t*Number.parseInt(getComputedStyle(e.root).lineHeight,10);e.content.style.height="".concat(r,"px");var l=e.shadowChildren.offsetHeight,o=e.shadow.firstChild;if(l<=r)return void e.setState({text:n,targetCount:n.length});var a=n.length,i=Math.ceil(a/2),c=e.bisection(r,i,0,a,n,o);e.setState({text:n,targetCount:c})}},e.bisection=function(t,n,r,l,o,a){var i="...",c=n,u=l,s=r;a.innerHTML=o.slice(0,Math.max(0,c))+i;var f=a.offsetHeight;return f<=t?(a.innerHTML=o.slice(0,Math.max(0,c+1))+i,(f=a.offsetHeight)>t||c===s?c:(c=u-(s=c)==1?1+s:Math.floor((u-s)/2)+s,e.bisection(t,c,s,u,o,a))):c-1<0?c:(a.innerHTML=o.slice(0,Math.max(0,c-1))+i,(f=a.offsetHeight)<=t?c-1:(u=c,c=Math.floor((u-s)/2)+s,e.bisection(t,c,s,u,o,a)))},e.handleRoot=function(t){e.root=t},e.handleContent=function(t){e.content=t},e.handleNode=function(t){e.node=t},e.handleShadow=function(t){e.shadow=t},e.handleShadowChildren=function(t){e.shadowChildren=t},e}return ho(l,[{key:"componentDidMount",value:function(){this.node&&this.computeLine()}},{key:"componentDidUpdate",value:function(e){this.props.lines!==e.lines&&this.computeLine()}},{key:"render",value:function(){var t=this.state,n=t.text,r=t.targetCount,l=this.props,o=l.children,a=l.lines,i=l.length,c=l.tooltip,u=l.fullWidthRecognition,s=l.title,f=l.color,d=To(l,bf),p=so({display:"inline-block",width:"100%",overflow:"hidden",whiteSpace:"normal",wordBreak:"break-all"},a?Ef?{position:"relative",display:"flex",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",lineClamp:a}:{position:"relative"}:{}),h={position:"absolute",zIndex:"-999",display:"block",color:"transparent",opacity:0};if(!a&&!i)return e.createElement("span",Po({style:p},d),o);if(!a)return e.createElement(Cf,Po({style:p,length:i,text:o||"",tooltip:c,fullWidthRecognition:u},d));if(Ef){var m=e.createElement("div",Po({style:p},d),o);return wf(so({tooltip:c,overlayStyle:kf,title:s||o,children:m},L(f)?{}:{color:f}))}var v=e.createElement("span",{ref:this.handleNode},r>0&&n.slice(0,Math.max(0,r)),r>0&&r<n.length&&"...");return e.createElement("div",Po({},d,{ref:this.handleRoot,style:p}),e.createElement("div",{ref:this.handleContent},wf({tooltip:c,overlayStyle:kf,title:n,children:v}),e.createElement("div",{ref:this.handleShadowChildren,style:h},o),e.createElement("div",{ref:this.handleShadow,style:h},e.createElement("span",null,n))))}}]),l}();function Sf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Pf=function(t){vo(l,n);var r=Sf(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.size,r=t.direction,l=t.backgroundColor,o=t.margin,a=t.borderRadius;if(n<=0)return null;if("vertical"!==r&&"horizontal"!==r)return null;var i=so(so(so({},L(l||"")?{}:{backgroundColor:l}),L(o||"")?{}:{margin:o}),L(a||"")?{}:{borderRadius:a});return e.createElement(e.Fragment,null,"horizontal"===r?e.createElement("div",{style:so({height:"".concat(n,"px")},i)}):null,"vertical"===r?e.createElement("div",{style:so({height:"100%",width:"".concat(n,"px")},i)}):null)}}]),l}();function Tf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Pf.defaultProps={size:10,direction:"vertical",backgroundColor:"",margin:"",borderRadius:""};var _f=uu.OnlyShowInputItem,If=function(t){vo(r,Co);var n=Tf(r);function r(t){var l;return fo(this,r),(l=n.call(this,t)).clearSelect=function(){var e=l.props.afterClearSelect;l.setState({selectData:null}),h(e)&&e()},l.showSelect=function(){l.openSelector()},l.openSelector=function(){throw new Error(l.buildOverloadErrorText("openSelector"))},l.afterSelectSuccess=function(e){v(k(l.componentName,"FieldExtra::SelectFieldExtra::BaseSelectFieldExtra","trigger","afterSelectSuccess","afterSelectSuccessCore")),l.afterSelectSuccessCore(e)},l.afterSelectSuccessCore=function(e){if(null!=(e||null)){var t=l.props.afterSelectSuccess,n=T(e)?te(e)?null:e[0]:e;l.setState({selectData:n}),h(t)&&t(n)}},l.selectValueText=function(e){throw new Error(l.buildOverloadErrorText("selectValueText"))},l.renderPresetSelector=function(){throw new Error(l.buildOverloadErrorText("renderPresetSelector"))},l.renderPresetField=function(){var t=l.props,n=t.label,r=t.defaultValue,o=t.helper,a=t.placeholder,i=t.formItemLayout,c=t.showClear,u=l.state.selectData,s=l.selectValueText(u),f=L(s)?r||"":s;return e.createElement(_f,{label:n,value:f,helper:o||null,icon:ma.form(),innerProps:{placeholder:a||K(n,"选择"),readOnly:!0,addonAfter:e.createElement(e.Fragment,null,e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},title:K(n,"选择"),onClick:function(e){return l.showSelect(e)}},ma.search()),c?e.createElement(Je,{type:"vertical",style:{paddingLeft:2,paddingRight:2}}):null,c?e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},disabled:null==u,title:"清除选择",onClick:function(){return l.clearSelect()}},ma.closeCircle()):null)},formItemLayout:i})},l.renderPresetOther=function(){return l.renderPresetSelector()},l.state=so(so({},l.state),{},{selectData:null}),l}return ho(r,[{key:"renderFurther",value:function(){return e.createElement(e.Fragment,null,this.renderPresetField(),this.renderPresetOther())}}]),r}();If.defaultProps={label:"",defaultValue:"",helper:"",placeholder:"",formItemLayout:null,required:!1,showClear:!0};var Bf={SelectFieldExtra:{BaseSelectFieldExtra:If}},Of="index_figureRange__uSkT-",Lf="index_select__CaB5l",Af="index_valueInput__HvPU-",Nf="index_minInput__SCgSA",Uf="index_inputSplit__8-vEK",Mf="index_maxInput__nUT8j";function Df(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var zf=lt.Option,Ff={unlimited:{flag:-1e4,text:"不限"},zero:{flag:0,text:"零"},eq:{flag:10,text:"等于"},gt:{flag:20,text:"大于"},gte:{flag:21,text:"大于等于"},le:{flag:30,text:"小于"},lte:{flag:31,text:"小于等于"},between:{flag:40,text:"范围之内"},except:{flag:50,text:"范围之外"}},jf=function(t){vo(l,n);var r=Df(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).rangeType=Ff,t.onDataChange=function(e,n,r,l){var o=t.props.onChange;h(o)&&o(g(e),g(n),g(r),g(l))},t.onTypeChange=function(e){var n=t.state,r=n.min,l=n.max,o=n.value,a=g(e);t.setState({type:a}),t.onDataChange(a,r,l,o)},t.onValueChange=function(e){var n=t.state,r=n.type,l=n.min,o=n.max,a=e.target.value,i=g(a);t.setState({value:i}),t.onDataChange(r,l,o,i)},t.onMinChange=function(e){var n=t.state,r=n.type,l=n.max,o=n.value,a=e.target.value,i=g(a);t.setState({min:g(a)}),t.onDataChange(r,i,l,o)},t.onMaxChange=function(e){var n=t.state,r=n.type,l=n.min,o=n.value,a=e.target.value,i=g(a);t.setState({max:i}),t.onDataChange(r,l,i,o)},t.state={type:Ff.unlimited.flag,min:null,max:null,value:null},t}return ho(l,[{key:"render",value:function(){var t=this,n=this.props,r=n.minText,l=n.maxText,o=n.splitText,a=n.valueText,i=this.state,c=i.type,u=i.min,s=i.max,f=i.value;return e.createElement(dt.Group,{compact:!0,className:Of},e.createElement($e,{wrap:!1,style:{display:"flex"}},e.createElement(Ge,{flex:c===Ff.unlimited.flag||c===Ff.zero.flag?"auto":"100px"},e.createElement(lt,{className:c!==Ff.unlimited.flag&&c!==Ff.zero.flag?Lf:null,style:{width:"100%"},defaultValue:"".concat(c),value:"".concat(c),onChange:function(e){t.onTypeChange(e)}},e.createElement(zf,{value:"".concat(Ff.unlimited.flag)},Ff.unlimited.text),e.createElement(zf,{value:"".concat(Ff.zero.flag)},Ff.zero.text),e.createElement(zf,{value:"".concat(Ff.eq.flag)},Ff.eq.text),e.createElement(zf,{value:"".concat(Ff.gt.flag)},Ff.gt.text),e.createElement(zf,{value:"".concat(Ff.gte.flag)},Ff.gte.text),e.createElement(zf,{value:"".concat(Ff.le.flag)},Ff.le.text),e.createElement(zf,{value:"".concat(Ff.lte.flag)},Ff.lte.text),e.createElement(zf,{value:"".concat(Ff.between.flag)},Ff.between.text),e.createElement(zf,{value:"".concat(Ff.except.flag)},Ff.except.text))),c!==Ff.unlimited.flag&&c!==Ff.zero.flag?e.createElement(Ge,{flex:"auto"},c===Ff.eq.flag||c===Ff.gt.flag||c===Ff.gte.flag||c===Ff.le.flag||c===Ff.lte.flag?e.createElement(dt,{className:Af,value:f,placeholder:a,onChange:function(e){t.onValueChange(e)}}):null,c===Ff.between.flag||c===Ff.except.flag?e.createElement($e,{wrap:!1},e.createElement(Ge,{flex:"0 1 auto"},e.createElement(dt,{style:{textAlign:"center"},className:Nf,placeholder:r,value:u,onChange:function(e){t.onMinChange(e)}})),e.createElement(Ge,{flex:"1 1 30px"},e.createElement(dt,{className:Uf,style:{textAlign:"center",borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:o,disabled:!0})),e.createElement(Ge,{flex:"0 1 auto"},e.createElement(dt,{className:Mf,style:{textAlign:"center"},placeholder:l,value:s,onChange:function(e){t.onMaxChange(e)}}))):null):null))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.type,r=e.min,l=e.max,o=e.value,a=g(n),i=g(r),c=g(l),u=g(o);return a!==Ff.unlimited.flag&&a!==Ff.zero.flag&&a!==Ff.eq.flag&&a!==Ff.gt.flag&&a!==Ff.gte.flag&&a!==Ff.le.flag&&a!==Ff.lte.flag&&a!==Ff.between.flag&&a!==Ff.except.flag?{type:Ff.unlimited.flag,min:null,max:null,value:null}:{type:a,min:i,max:c,value:u}}}]),l}();function Vf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}jf.defaultProps={minText:"最小值",maxText:"最大值",valueText:"请输入",splitText:"~",type:Ff.unlimited.flag,min:null,max:null,value:null};var Wf=function(t){vo(l,n);var r=Vf(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).handleUploadCancel=function(){return t.setState({previewVisible:!1})},t.beforeUpload=function(e){var t=e.size/1024/1024<Te();if(!t){var n="文件不能超过".concat(Te(),"MB!");V(n)}return t},t.handleUploadChange=function(e){var n=t.props,r=n.pretreatmentRemoteResponse,l=n.afterUploadSuccess;if("uploading"!==e.file.status){if("done"===e.file.status){var o=e.file.response;if(h(r)){var a=so({fileBase64:"",data:{}},r(o)),i=a.fileBase64,c=a.data;if(t.setState({uploading:!1}),h(l))l(i||"",c);else{V("afterUploadSuccess 配置无效")}}else{V("pretreatmentRemoteResponse 配置无效")}}}else t.setState({uploading:!0})},t.state=so(so({},t.state),{},{uploading:!1,base64:""}),t}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.action,r=t.disabled,l=t.uploadText,o=t.tokenSet,a=this.state,i=a.uploading,c=a.base64,u={disabled:r,action:n,listType:"text",showUploadList:!1,beforeUpload:this.beforeUpload,onChange:this.handleUploadChange,headers:so({},o)};return e.createElement(dt,{readOnly:!0,addonBefore:ma.file(),placeholder:"请选择上传".concat(l||"文件"),value:c,addonAfter:e.createElement(e.Fragment,null,e.createElement(vt,u,e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},disabled:i,title:"选择".concat(l||"文件")},i?ma.loading():ma.upload(),i?"正在上传":"选择".concat(l||"文件"))))})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return{base64:e.fileBase64}}}]),l}();function qf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Wf.defaultProps={action:"",disabled:!1,tokenSet:{},fileBase64:"",uploadText:"文件",pretreatmentRemoteResponse:function(){},afterUploadSuccess:function(){}};var Hf=dt.TextArea,$f=function(t){vo(l,n);var r=qf(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).showChangeUrlModal=function(){var e=t.state.fileUrl;t.setState({fileUrlTemp:e,changeUrlVisible:!0})},t.handleUrlChange=function(e){var n=e.target.value;t.setState({fileUrlTemp:n})},t.handleChangeUrlOk=function(){var e=t.props.afterChangeSuccess,n=t.state.fileUrlTemp;t.setState({fileUrl:n,changeUrlVisible:!1},(function(){if(h(e))e(n||"",{file:n});else{V({message:"afterChangeSuccess 配置无效"})}}))},t.handleChangeUrlCancel=function(){t.setState({changeUrlVisible:!1})},t.clearUrl=function(){var e=t.props.afterChangeSuccess;t.setState({fileUrl:"",changeUrlVisible:!1},(function(){if(h(e))e("",null);else{V("afterChangeSuccess 配置无效")}}))},t.beforeUpload=function(e){var t=Te(),n=e.size/1024/1024<t;if(!n){var r="文件不能超过".concat(t,"MB!");u(r)}return n},t.handleUploadChange=function(e){var n=t.props,r=n.pretreatmentRemoteResponse,l=n.afterUploadSuccess,o=n.afterChangeSuccess;if("uploading"!==e.file.status){if("done"===e.file.status){var a=e.file.response;if(h(r)){var i=so({file:"",data:{}},r(a)),c=i.file,u=i.data;t.setState({fileUrl:c,uploading:!1},(function(){if(h(l))l(c||"",u);else{V("afterUploadSuccess 配置无效")}if(h(o))o(c||"",u);else{V("afterChangeSuccess 配置无效")}}))}else{V("pretreatmentRemoteResponse 配置无效")}}}else t.setState({uploading:!0})},t.handleMenuClick=function(e){var n=e.key,r=t.state.fileUrl;switch(n){case"changeUrl":t.showChangeUrlModal();break;case"copyUrl":if(L(r)){u("当前未设置文件地址")}else be(r);break;case"clearUrl":t.clearUrl()}},t.state=so(so({},t.state),{},{fileSource:"",fileUrl:"",fileUrlTemp:"",uploading:!1,changeUrlVisible:!1}),t}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.action,r=t.disabled,l=t.tokenSet,o=this.state,a=o.uploading,i=o.changeUrlVisible,c=o.fileUrlTemp,u=o.fileUrl,s={disabled:r,action:n,listType:"text",showUploadList:!1,beforeUpload:this.beforeUpload,onChange:this.handleUploadChange,headers:so({},l)},f=[{key:"changeUrl",label:"更换地址",icon:ma.swap()},{key:"copyUrl",label:"复制地址",icon:ma.copy(),disabled:L(u)},{key:"clearUrl",label:"清空文件",icon:ma.delete(),disabled:L(u)}],d=e.createElement(tt,{split:e.createElement(Je,{type:"vertical"})},e.createElement(He,{key:"showChangeUrlTip",placement:"top",title:"上传文件"},e.createElement(vt,s,e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},disabled:a},a?ma.loading():ma.upload(),a?"稍后":"上传"))),e.createElement(He,{key:"showMoreTip",placement:"top",title:"更多操作"},e.createElement(yt,{arrow:!0,placement:"bottomRight",menu:{items:f,onClick:this.handleMenuClick},style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0}},e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0}},e.createElement(sr,{style:{fontSize:20,verticalAlign:"top"}})))));return e.createElement(e.Fragment,null,e.createElement(dt,{disabled:!0,addonBefore:ma.link(),addonAfter:d,value:u,placeholder:"当前未设置文件地址"}),e.createElement(gt,{title:e.createElement(ga,{icon:ma.swap(),text:"请输入将更换的文件地址"}),open:i,onOk:this.handleChangeUrlOk,onCancel:this.handleChangeUrlCancel},e.createElement(Hf,{rows:4,value:c,onChange:this.handleUrlChange,placeholder:"目前没有将要更换的文件地址"})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.file;return(n||"")!==(t.fileSource||"")?{fileSource:n,fileUrl:n}:null}}]),l}();$f.defaultProps={action:"",disabled:!1,tokenSet:{},file:"",pretreatmentRemoteResponse:function(){},afterUploadSuccess:function(){},afterChangeSuccess:function(){}};var Gf=function(t){var n=t.links;return e.createElement("div",{style:{}},e.createElement(to,{copyright:so({copyright:""},O()).copyright||"",links:n}))},Kf="index_toolbar__Lv2C-",Yf="index_left__xsHpF",Jf="index_right__xs5Mf",Xf=["children","className","extra"];function Qf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Zf=function(n){vo(l,t);var r=Qf(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).state={width:void 0},e.resizeFooterToolbar=function(){var t=document.querySelector(".ant-layout-sider");if(null!=t){var n=e.context.isMobile?null:"calc(100% - ".concat(t.style.width,")");e.state.width!==n&&e.setState({width:n})}},e}return ho(l,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.resizeFooterToolbar),this.resizeFooterToolbar()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resizeFooterToolbar)}},{key:"render",value:function(){var t=this.props,n=t.children,r=t.className,l=t.extra,o=To(t,Xf),a=this.state.width;return e.createElement("div",Po({className:Gl(r,Kf),style:{width:a}},o),e.createElement("div",{className:Yf},l),e.createElement("div",{className:Jf},n))}}]),l}();function ed(e){var t=e.withUnlimited,n={whetherList:Be}.whetherList;return void 0===t||t?ne(n,_e):ne(n)}Zf.contextTypes={isMobile:of.bool};var td={Whether:Object.freeze({__proto__:null,getWhetherName:function(e){var t=e.value,n=e.defaultValue,r=void 0===n?"":n,l=e.trueText,o=void 0===l?"":l,a=e.falseText,i=void 0===a?"":a;if(re(t))return r;var c=le("flag","".concat(oe(ae(t)?null:t)?"":t),ed({withUnlimited:!1}));return L(o)||"1"!==c.flag||(c.name=o,c.alias=o),L(i)||"0"!==c.flag||(c.name=i,c.alias=i),null==c?"未知":c.name},refitWhetherList:ed,renderCustomWhetherRadio:function(e){var t=e.label,n=void 0===t?"调用时设置":t,r=e.separator,l=void 0===r?": ":r,o=e.size,a=void 0===o?"middle":o,i=e.onChange,c=e.innerProps,u=void 0===c?null:c;return Ji({label:n,defaultValue:null,separator:l,size:a,list:ed({withUnlimited:!0}),dataConvert:pi,renderItem:null,onChange:i,innerProps:u})},renderCustomWhetherSelect:function(e){var t=e.label,n=void 0===t?"调用时设置":t,r=e.separator,l=void 0===r?":":r,o=e.size,a=void 0===o?"middle":o,i=e.onChange,c=e.innerProps,u=void 0===c?null:c;return Yi({label:n,defaultValue:null,separator:l,size:a,list:ed({withUnlimited:!0}),dataConvert:pi,renderItem:null,onChange:i,innerProps:u})},renderFormWhetherRadio:function(e){var t=e.helper,n=void 0===t?null:t,r=e.onChange,l=e.label,o=void 0===l?"调用时设置":l,a=e.formItemLayout,i=void 0===a?null:a,c=e.required,u=void 0===c||c,s=e.name,f=void 0===s?"whether":s,d=e.innerProps,p=void 0===d?null:d;return Ku({label:o||Ie,name:f,helper:n,list:ed({withUnlimited:!1}),dataConvert:pi,onChange:r,formItemLayout:i,required:u,innerProps:p})},renderFormWhetherSelect:function(e){var t=e.helper,n=void 0===t?null:t,r=e.onChange,l=e.label,o=void 0===l?"调用时设置":l,a=e.formItemLayout,i=void 0===a?null:a,c=e.required,u=void 0===c||c,s=e.name,f=void 0===s?"whether":s,d=e.innerProps,p=void 0===d?null:d;return Gu({label:o||Ie,name:f,helper:n,list:ed({withUnlimited:!1}),dataConvert:pi,onChange:r,formItemLayout:i,required:u,innerProps:p})},renderSearchWhetherSelect:function(e){var t=e.withUnlimited,n=void 0===t||t,r=e.label,l=void 0===r?"调用时设置":r,o=e.name,a=void 0===o?"whether":o,i=e.helper;return es({label:l||Ie,name:a,helper:void 0===i?null:i,list:ed({withUnlimited:n}),dataConvert:pi})}})},nd="index_globalFooter__Als7O",rd="index_links__xxMJr",ld="index_copyright__0ACcX",od=function(t){var n=t.className,r=t.links,l=t.copyright,o=Gl(nd,n);return e.createElement("footer",{className:o},r&&e.createElement("div",{className:rd},r.map((function(t){return e.createElement(Ao,{key:t.key,title:t.key,target:t.blankTarget?"_blank":"_self",href:t.href,rel:"noreferrer"},t.title)}))),l&&e.createElement("div",{className:ld},l))},ad="index_helpBox__h-qwJ",id="index_helpBoxNoBackground__vDRGR",cd="index_helpBoxBackground__nkDFV";function ud(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var sd=function(t){vo(l,n);var r=ud(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=so({title:"",showTitle:!0,showNumber:!0,showDivider:!0,labelWidth:null,list:[],useBackground:!1,hidden:!1},this.props),n=t.style,r=t.title,l=t.showTitle,o=t.showDivider,a=t.showNumber,i=t.labelWidth,c=t.list,u=t.useBackground;if(t.hidden)return null;var s=r||"帮助信息",f=[];T(c)&&(f=c.map((function(e,t){var n=so({key:"",label:"",text:"",span:1,labelStyle:null,contentStyle:null,canCopy:!1,copyData:null},e);return n.key="help_box_item_".concat(t),n.no=t+1,n.text=n.text||"",n})));var d=g(null!=i?i:null),p=d>0?"".concat(d,"px"):0,h=d>0;return e.createElement("div",{className:Gl(ad,u?cd:id),style:n},l?o?e.createElement(Je,{orientation:"left",plain:!0,style:{marginTop:4,marginBottom:4,color:"#999"}},s):e.createElement("div",{style:{marginTop:"4px",marginBottom:"4px",color:"#999",fontWeight:"normal",fontSize:"14px",lineHeight:"22px",height:"22px"}},s,":"):null,Vi({list:f.map((function(e){var t=e.key,n=e.no,r=e.label,l=e.text,o=e.labelStyle,i=e.contentStyle,c=e.span,u=e.canCopy,s=e.copyData;return{key:t,label:L(r)?a?n:"•":r,value:l,labelStyle:o||null,contentStyle:i||null,span:c,canCopy:u,copyData:s}})),props:{bordered:!1,colon:a,column:1,labelStyle:{width:h?p:a?"22px":"12px"},contentStyle:{color:"#999"}}}))}}]),l}();function fd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}sd.defaultProps={style:null,title:"帮助信息",showTitle:!0,showNumber:!0,labelWidth:null,list:[],useBackground:!1,hidden:!1};var dd=function(t){vo(l,n);var r=fd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.border,r=t.compact,l=t.helpBoxProps;return e.createElement(bt,{style:n?{}:{borderTop:"0",borderBottom:"0",borderLeft:"0",borderRight:"0"},bodyStyle:r?{paddingTop:"0",paddingBottom:"0"}:{paddingTop:"12px",paddingBottom:"12px"}},e.createElement(sd,l))}}]),l}();dd.defaultProps={border:!0,compact:!1,helpBoxProps:{title:"帮助信息",showNumber:!0,list:[]}};var pd="index_richTextBox__jUYt8";function hd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var md=function(t){vo(l,n);var r=hd(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).renderToHtml=function(){var t=e.props.html;e.main&&(e.main.innerHTML=t)},e}return ho(l,[{key:"componentDidMount",value:function(){this.renderToHtml()}},{key:"componentDidUpdate",value:function(){this.renderToHtml()}},{key:"render",value:function(){var t=this,n=this.props,r=n.useEmpty,l=n.html;return r&&L(l)?e.createElement(xt,{image:xt.PRESENTED_IMAGE_SIMPLE}):e.createElement("span",{className:pd,ref:function(e){t.main=e}})}}]),l}();md.defaultProps={useEmpty:!0,html:""};var vd=$l({scriptUrl:"https://at.alicdn.com/t/font_1101588_01zniftxm9yp.js"}),yd="index_previewContainor__YmONX";function gd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var bd=function(t){vo(r,Co);var n=gd(r);function r(e){var t;return fo(this,r),(t=n.call(this,e)).onClose=function(){(0,t.props.afterClose)()},t.state=so(so({},t.state),{},{visible:!1,htmlContent:"",imageList:[],listItem:[],mode:Oe.html}),t}return ho(r,[{key:"render",value:function(){var t=this.state,n=t.visible,r=t.mode,l=t.imageList,o=t.listItem,a=t.htmlContent;if(r===Oe.imageList){var i=(l||[]).map((function(e){return'<img src="'.concat(e,'" alt="" />')})).join("");return e.createElement(Et,{title:"图片详情预览",width:380,placement:"left",open:n,closable:!0,onClose:this.onClose},i?e.createElement("div",{className:yd},ro(i)):e.createElement(xt,null))}if(r===Oe.listItem){var c=(o||[]).map((function(e){return'<img src="'.concat(e.image,'" alt="" /><p>').concat(e.description,"</p>")})).join("");return e.createElement(Et,{title:"图片详情预览",width:380,placement:"left",open:n,closable:!0,onClose:this.onClose},c?e.createElement("div",{className:yd},ro(a)):e.createElement(xt,null))}return r===Oe.html?e.createElement(Et,{title:"图片详情预览",width:380,placement:"left",open:n,closable:!0,onClose:this.onClose},a?e.createElement("div",{className:yd},ro(a)):e.createElement(xt,null)):e.createElement(Et,{title:"图片详情预览",width:380,placement:"left",open:n,closable:!0,onClose:this.onClose},e.createElement(xt,null))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.visible,r=e.mode,l=e.imageList,o=e.listItem,a=e.htmlContent;return{visible:n,mode:r||Oe.html,imageList:l||[],listItem:o||[],htmlContent:a||""}}}]),r}(),xd="index_containor__ndtfh",Ed="index_imageBox__FAEpg",kd="index_imageAction__bS6ks",wd="index_icon__-mvsy",Cd="index_text__YiUxy",Rd="index_toolBar__Ytq35",Sd="index_helper__zWkJp";function Pd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Td=function(t){vo(r,So);var n=Pd(r);function r(e){var t;return fo(this,r),(t=n.call(this,e)).handleUploadCancel=function(){return t.setState({previewVisible:!1})},t.handleFilePreview=function(e){t.setState({previewImage:e.url||e.thumbUrl,previewVisible:!0})},t.handleImagePreview=function(){var e=t.props.image;L(e)?ie("无图片可以预览"):t.setState({previewImage:e,previewVisible:!0})},t.beforeUpload=function(e,n){var r=t.props.fileListCapacity,l=g(r),o=l<=0?8:l;if((n||[]).length>o){var a="上传不能超过".concat(o);H(a)}var i="image/jpeg"===e.type||"image/gif"===e.type||"image/jpg"===e.type||"image/png"===e.type;if(!i){V("请上传图片文件!")}var c=e.size/1024/1024<Le();if(!c){V("图片文件不能超过2MB!")}return i&&c},t.handleUploadChange=function(e){var n=t.props,r=n.pretreatmentRemoteResponse,l=n.afterUploadSuccess;if("uploading"!==e.file.status){if("done"===e.file.status){t.logCallTrack(e,t.buildPromptModuleInfoText("handleUploadChange","upload complete"));var o=e.file.response;if(h(r)){var a=so({image:"",data:{}},r(o)),i=a.image,c=a.data;if(t.setState({uploading:!1}),h(l))l(i||"",c);else{V("afterUploadSuccess 配置无效")}}else{V("pretreatmentRemoteResponse 配置无效")}}}else t.setState({uploading:!0})},t.clearImage=function(){var e=t.props.image;if(L(e))ie("当前没有可供移除的图片");else{var n=t.props.afterUploadSuccess;if(h(n))Ae.confirm({title:"清除图片",content:"即将清除图片数据,清除后需要保存才能进行生效,要继续吗?",okText:"确定",okType:"danger",cancelText:"取消",onOk:function(){n("",null)},onCancel:function(){}});else{V("afterUploadSuccess 配置无效")}}},t.state=so(so({},t.state),{},{uploading:!1,previewVisible:!1,previewImage:""}),t}return ho(r,[{key:"render",value:function(){var t=this,n=this.props,r=n.action,l=n.disabled,o=n.listType,a=n.fileList,i=n.fileListCapacity,c=n.showUploadList,u=n.image,s=n.singleMode,f=n.tokenSet,d=n.onItemChange,p=n.onItemRemove,m=n.multiple,v=n.title,y=n.icon,b=n.helper,x=this.state,E=x.uploading,k=x.previewVisible,w=x.previewImage,C=e.createElement("div",null,ma.plus(),e.createElement("div",{className:"ant-upload-text"},"上传新图")),R=g(i),S=R<=0?8:R,P={disabled:l,multiple:m,action:r,listType:o,showUploadList:c,onPreview:this.handleFilePreview,beforeUpload:this.beforeUpload,onChange:c?h(d)?d:null:this.handleUploadChange,onRemove:h(p)?p:null,headers:so({},f)};c&&(P.fileList=a||[]);var T=so({width:"240px",emptyImage:""},s),_=T.width,I=T.emptyImage;return e.createElement(e.Fragment,null,e.createElement("div",{className:xd},e.createElement("div",{className:"clearfix"},c?e.createElement(vt,P,(a||[]).length>=S?null:C):e.createElement(e.Fragment,null,e.createElement("div",{className:Ed,style:{minWidth:"140px",width:_}},e.createElement(vt,P,e.createElement(He,{title:"上传图片"},e.createElement("div",{className:kd},e.createElement("div",{className:wd},e.createElement(pa,null,E?ma.loading():ma.upload())),e.createElement("div",{className:Cd},E?"上传中":"上传"))),e.createElement(fa,{align:"bottom",style:{height:"100%"}},e.createElement("div",{style:{width:_,padding:"1px"}},e.createElement(Ya,{src:u||I,loadingEffect:!0,errorOverlayVisible:!0,showErrorIcon:!1,fillHeight:!1,alt:""})))),e.createElement("div",{className:Rd},e.createElement(Pa,{flexAuto:"left",left:e.createElement(ga,{icon:y,text:L(v)?"":v}),right:e.createElement(tt,null,e.createElement(He,{title:"预览图片"},e.createElement(Zt,{onClick:function(){t.handleImagePreview()}})),e.createElement(He,{title:"清除图片"},e.createElement(qt,{onClick:function(){t.clearImage()}})))})))),e.createElement(gt,{open:k,footer:null,onCancel:this.handleUploadCancel,styles:{body:{boxShadow:"0 1px 4px #ccc, 0 0 40px #ccc inset"}}},e.createElement(fa,{style:{height:"100%"}},e.createElement("div",{style:{width:"100%"}},e.createElement(Ya,{src:w,loadingEffect:!0,errorOverlayVisible:!0,showErrorIcon:!1,fillHeight:!1,alt:""})))))),L(b)?null:e.createElement("div",{className:Sd},X(b)))}}]),r}();function _d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Td.defaultProps={action:"",listType:"picture-card",showUploadList:!1,disabled:!1,multiple:!1,tokenSet:{},image:"",fileList:[],singleMode:{width:"240px",emptyImage:""},icon:null,title:"",helper:"",pretreatmentRemoteResponse:function(){},afterUploadSuccess:function(){},onItemChange:function(e){e.file,e.fileList},onItemRemove:function(e){},fileListCapacity:8};var Id=["horizontal","vertical"],Bd=function(t){vo(l,n);var r=_d(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).getDirection=function(){var t=e.props.direction;return P(Id,t)?t:"horizontal"},e.getColor=function(){var t=e.props,n=t.color;if(t.transparent)return{backgroundColor:"transparent"};if(A(n))return L(n)?{}:{backgroundColor:n,backgroundImage:"null"};if(T(n)){var r=n.filter((function(e){return A(e)&&!L(e)}));if(r.length>0)return{backgroundColor:"null",backgroundImage:"linear-gradient(45deg, ".concat(r.join(","),")")}}return{}},e.getStyle=function(){var t=e.props,n=t.margin,r=t.width,l=t.height,o=t.borderRadius,a=e.getDirection(),i={},c={},u={},s=e.getColor();if("horizontal"===a)i={display:"block"},c=so(so({},y(r)&&g(r)>0?{width:"".concat(r,"px")}:{width:"100%"}),y(l)&&g(l)>0?{height:"".concat(l,"px")}:{height:"1px"});else i={display:"inline-block"},c=so(so({},y(r)&&g(r)>0?{width:"".concat(r,"px")}:{width:"1px"}),y(l)&&g(l)>0?{height:"".concat(l,"px")}:{height:"100%"});return L(n)||(u={margin:y(n)?"".concat(n,"px"):n}),so(so(so(so(so({},i),c),o>0?{borderRadius:"".concat(o,"px")}:{}),u),s)},e}return ho(l,[{key:"render",value:function(){var t=this.getStyle();return e.createElement("div",{style:t})}}]),l}();Bd.defaultProps=so({},{direction:"horizontal",margin:"",color:"",width:0,height:0,transparent:!1,borderRadius:0});var Od="index_deviceInner__B21iz",Ld="index_deviceContent__C6J82";function Ad(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Nd=function(t){vo(l,n);var r=Ad(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).onAlertClick=function(){var t=e.props.afterAlertClick;h(t)&&t()},e}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.children,s=P(["success","info","warning","error"],i)?i:"info",f=P([Ne.none,Ne.fade,Ne.queue],r)?r:Ne.fade,d=e.createElement(ct,{message:l,description:o,type:s,showIcon:!!a,style:{margin:"2px"},action:e.createElement(tt,null,Ni({size:"small",type:"ghost",icon:ma.reload(),text:c,handleClick:this.onAlertClick})),closable:!1});return e.createElement("div",{className:Od},e.createElement("div",{style:{position:"absolute",left:0,top:0,zIndex:2,width:"100%"}},f===Ne.none?d:null,f===Ne.fade?e.createElement(Do,{visible:n},d):null,f===Ne.queue?e.createElement(Ko,{show:n},d):null),e.createElement("div",{className:Ld},u))}}]),l}();Nd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null};var Ud={devices:"devices_devices__PoWJC","marvel-device":"devices_marvel-device__8Pnpx",screen:"devices_screen__LZWhg","top-bar":"devices_top-bar__L2M7z","bottom-bar":"devices_bottom-bar__fxjk1","middle-bar":"devices_middle-bar__Yj1AE",iphone8:"devices_iphone8__mQ7cX",home:"devices_home__YOF3t",sleep:"devices_sleep__GnvgE",volume:"devices_volume__cC0tU",camera:"devices_camera__kx7tw",sensor:"devices_sensor__NeQiR",speaker:"devices_speaker__20ayb",gold:"devices_gold__ciRH5",black:"devices_black__xLdTd",landscape:"devices_landscape__dT0vu",iphone8plus:"devices_iphone8plus__5skqu",iphone5s:"devices_iphone5s__K9gZ0",iphone5c:"devices_iphone5c__9iOf4",silver:"devices_silver__YXYpI",red:"devices_red__PZPg3",yellow:"devices_yellow__J4TuQ",green:"devices_green__6ugiz",blue:"devices_blue__UNR8N",iphone4s:"devices_iphone4s__cwBRc",nexus5:"devices_nexus5__NbVA9",s5:"devices_s5__qQhk6",lumia920:"devices_lumia920__oKmkM",white:"devices_white__xpRn1","htc-one":"devices_htc-one__7rnWR",ipad:"devices_ipad__vbuiu",macbook:"devices_macbook__gaV-C","iphone-x":"devices_iphone-x__G9CXA",overflow:"devices_overflow__5zWFI",shadow:"devices_shadow__IcQPK","shadow--tl":"devices_shadow--tl__iFWLn","shadow--tr":"devices_shadow--tr__3LhWk","shadow--bl":"devices_shadow--bl__HGLtJ","shadow--br":"devices_shadow--br__yKPFI","inner-shadow":"devices_inner-shadow__K7jUi",notch:"devices_notch__tOSCG",note8:"devices_note8__y9uVH",sensors:"devices_sensors__YD8wl","more-sensors":"devices_more-sensors__DyhWK",inner:"devices_inner__gO73h"};function Md(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Dd=function(t){vo(l,n);var r=Md(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.children,s=t.afterAlertClick;return e.createElement("div",{className:Ud.devices},e.createElement("div",{className:Gl(Ud["marvel-device"],Ud.note8)},e.createElement("div",{className:Ud.inner}),e.createElement("div",{className:Ud.overflow},e.createElement("div",{className:Ud.shadow})),e.createElement("div",{className:Ud.speaker}),e.createElement("div",{className:Ud.sensors}),e.createElement("div",{className:Ud["more-sensors"]}),e.createElement("div",{className:Ud.sleep}),e.createElement("div",{className:Ud.volume}),e.createElement("div",{className:Ud.camera}),e.createElement("div",{className:Ud.screen},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},u))))}}]),l}();function zd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Dd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null};var Fd=function(t){vo(l,n);var r=zd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.children,s=t.type,f=t.afterAlertClick,d=P(["black","silver","gold"],s)?s:"silver";return e.createElement("div",{className:Ud.devices},e.createElement("div",{className:Gl(Ud["marvel-device"],Ud.iphone5s,Ud[d])},e.createElement("div",{className:Ud["top-bar"]}),e.createElement("div",{className:Ud.sleep}),e.createElement("div",{className:Ud.volume}),e.createElement("div",{className:Ud.camera}),e.createElement("div",{className:Ud.sensor}),e.createElement("div",{className:Ud.speaker}),e.createElement("div",{className:Ud.screen},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:f},u)),e.createElement("div",{className:Ud.home}),e.createElement("div",{className:Ud["bottom-bar"]})))}}]),l}();function jd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Fd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null,type:"black"};var Vd=function(t){vo(l,n);var r=jd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.afterAlertClick,s=t.children,f=t.type,d=P(["black","silver","gold"],f)?f:"silver";return e.createElement("div",{className:Ud.devices},e.createElement("div",{className:Gl(Ud["marvel-device"],Ud.iphone8,Ud[d])},e.createElement("div",{className:Ud["top-bar"]}),e.createElement("div",{className:Ud.sleep}),e.createElement("div",{className:Ud.volume}),e.createElement("div",{className:Ud.camera}),e.createElement("div",{className:Ud.sensor}),e.createElement("div",{className:Ud.speaker}),e.createElement("div",{className:Ud.screen},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:u},s)),e.createElement("div",{className:Ud.home}),e.createElement("div",{className:Ud["bottom-bar"]})))}}]),l}();function Wd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Vd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null,type:"black"};var qd=function(t){vo(l,n);var r=Wd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.afterAlertClick,s=t.children,f=t.type,d=P(["black","silver","gold"],f)?f:"silver";return e.createElement("div",{className:Ud.devices},e.createElement("div",{className:Gl(Ud["marvel-device"],Ud.iphone8plus,Ud[d])},e.createElement("div",{className:Ud["top-bar"]}),e.createElement("div",{className:Ud.sleep}),e.createElement("div",{className:Ud.volume}),e.createElement("div",{className:Ud.camera}),e.createElement("div",{className:Ud.sensor}),e.createElement("div",{className:Ud.speaker}),e.createElement("div",{className:Ud.screen},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:u},s)),e.createElement("div",{className:Ud.home}),e.createElement("div",{className:Ud["bottom-bar"]})))}}]),l}();function Hd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}qd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null,type:"black"};var $d=function(t){vo(l,n);var r=Hd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.afterAlertClick,s=t.children;return e.createElement("div",{className:Ud.devices},e.createElement("div",{className:Gl(Ud["marvel-device"],Ud["iphone-x"])},e.createElement("div",{className:Ud.notch},e.createElement("div",{className:Ud.camera}),e.createElement("div",{className:Ud.speaker})),e.createElement("div",{className:Ud["top-bar"]}),e.createElement("div",{className:Ud.sleep}),e.createElement("div",{className:Ud["bottom-bar"]}),e.createElement("div",{className:Ud.volume}),e.createElement("div",{className:Ud.overflow},e.createElement("div",{className:Gl(Ud.shadow,Ud["shadow--tr"])}),e.createElement("div",{className:Gl(Ud.shadow,Ud["shadow--tl"])}),e.createElement("div",{className:Gl(Ud.shadow,Ud["shadow--br"])}),e.createElement("div",{className:Gl(Ud.shadow,Ud["shadow--bl"])})),e.createElement("div",{className:Ud["inner-shadow"]}),e.createElement("div",{className:Ud.screen},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:u},s))))}}]),l}();$d.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null,type:"black"};var Gd="index_device__I67Ka";function Kd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Yd=function(t){vo(l,n);var r=Kd(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,u=t.afterAlertClick,s=t.children;return e.createElement("div",{className:Gd},e.createElement(Nd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:u},s))}}]),l}();function Jd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Yd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",afterAlertClick:null};var Xd=function(t){vo(l,n);var r=Jd(l);function l(){var e;fo(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r.call.apply(r,[this].concat(n))).buildMobileTypeArray=function(){for(var e=[],t=0,n=Object.entries(Ue);t<n.length;t++){var r=jo(n[t],2);r[0];var l=r[1];N(l)&&e.push(l)}return e},e.renderPresetInnerView=function(){return e.props.children},e.renderPresetInnerViewWrapper=function(){return e.renderPresetInnerView()},e}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.alertVisible,r=t.alertAnimationType,l=t.alertMessage,o=t.alertDescription,a=t.alertIcon,i=t.alertType,c=t.alertButtonText,s=t.afterAlertClick,f=null;switch(t.mobileType){case Ue.roughSketch.name:f=e.createElement(Yd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;case Ue.iphoneX.name:f=e.createElement($d,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;case Ue.iphone8.name:f=e.createElement(Vd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;case Ue.iphone8plus.name:f=e.createElement(qd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;case Ue.iPhone5S.name:f=e.createElement(Fd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;case Ue.galaxyNote8.name:f=e.createElement(Dd,{alertVisible:n,alertAnimationType:r,alertMessage:l,alertDescription:o,alertIcon:a,alertType:i,alertButtonText:c,afterAlertClick:s},this.renderPresetInnerViewWrapper());break;default:f=null;u("invalid mobile type,please check in console"),U({message:"available mobile type list",mobileTypeCollection:Ue})}return e.createElement("div",null,e.createElement(fa,{align:"center",alignJustify:"center",style:{height:"100%"}},f))}}]),l}();Xd.defaultProps={alertVisible:!1,alertAnimationType:Ne.fade,alertMessage:"",alertDescription:"",alertType:"info",alertIcon:!0,alertButtonText:"刷新",mobileType:Ue.roughSketch.name,afterAlertClick:null};var Qd={MobileSimulation:Xd};kt.TabPane;var Zd={numberInfo:"index_numberInfo__CP4-s",suffix:"index_suffix__5rAQf",numberInfoTitle:"index_numberInfoTitle__sQXmi",numberInfoSubTitle:"index_numberInfoSubTitle__WFcaT",numberInfoValue:"index_numberInfoValue__MbAMM",subTotal:"index_subTotal__UTwNw",numberInfolight:"index_numberInfolight__9sAKh"},ep=["theme","title","subTitle","total","subTotal","status","suffix","gap"],tp=function(t){var n=t.theme,r=t.title,l=t.subTitle,o=t.total,a=t.subTotal,i=t.status,c=t.suffix,u=t.gap,s=To(t,ep);return e.createElement("div",Po({className:Gl(Zd.numberInfo,co({},Zd["numberInfo".concat(n)],n))},s),r&&e.createElement("div",{className:Zd.numberInfoTitle,title:"string"==typeof r?r:""},r),l&&e.createElement("div",{className:Zd.numberInfoSubTitle,title:"string"==typeof l?l:""},l),e.createElement("div",{className:Zd.numberInfoValue,style:u?{marginTop:u}:null},e.createElement("span",null,o,c&&e.createElement("em",{className:Zd.suffix},c)),(i||a)&&e.createElement("span",{className:Zd.subTotal},a,"up"===i&&ma.caretUp(),"down"===i&&ma.caretDown())))};function np(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var rp=function(t){vo(l,n);var r=np(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).processing=!1,t.visibilityChanged=!1,t.startCountMonitor=!1,t.getStyle=function(){var e=t.props,n=e.color,r=e.alpha,l=e.image,o=e.zIndex,a=e.transparent;return so(so({},{}),{},{top:"0",left:"0",position:"absolute",width:"100%",height:"100%",zIndex:o},L(l)?{backgroundColor:a||"transparent"===n?"transparent":"rgba(".concat(ce(n,""),", ").concat(r,")")}:{backgroundImage:l})},t.triggerClick=function(){var e=t.props.onClick;t.processing||h(e)&&e()},t.state=so(so({},t.state),{},{counter:0}),t}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.visible,r=t.animal,l=t.duration,o=t.children,a=this.getStyle();return e.createElement(Do,{visible:n,duration:l,animal:r,style:a,onClick:this.triggerClick},o?e.createElement(pa,null,o):null)}}]),l}();function lp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}rp.defaultProps=so({},{visible:!1,color:"#000000",transparent:!1,alpha:.5,image:"",zIndex:810,duration:300,animal:"ease-in",onClick:null});var op=function(t){vo(l,n);var r=lp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.body,r=t.bottom;return null==n&&null==r?null:e.createElement("div",{style:{padding:"12px 16px"}},n,r)}}]),l}();function ap(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}op.defaultProps={body:null,bottom:null};var ip=dt.TextArea,cp=function(t){vo(l,n);var r=ap(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).handleUploadCancel=function(){t.setState({previewVisible:!1})},t.showPreviewModal=function(){var e=t.state.videoUrl;if(L(e)){u("无效的视频源")}else t.setState({previewVisible:!0})},t.showChangeUrlModal=function(){var e=t.state.videoUrl;t.setState({videoUrlTemp:e,changeUrlVisible:!0})},t.handleUrlChange=function(e){var n=e.target.value;t.setState({videoUrlTemp:n})},t.handleChangeUrlOk=function(){var e=t.props.afterChangeSuccess,n=t.state.videoUrlTemp;t.setState({videoUrl:n,changeUrlVisible:!1},(function(){if(h(e))e(n||"",{video:n});else{V("afterChangeSuccess 配置无效")}}))},t.handleChangeUrlCancel=function(){t.setState({changeUrlVisible:!1})},t.clearUrl=function(){var e=t.props.afterChangeSuccess;t.setState({videoUrl:"",changeUrlVisible:!1},(function(){if(h(e))e("",null);else{V("afterChangeSuccess 配置无效")}}))},t.beforeUpload=function(e){var t="video/mp4"===e.type;if(!t){u("请上传视频文件(*.mp4)!")}var n=e.size/1024/1024<Me();if(!n){u("视频文件不能超过3MB!")}return t&&n},t.handleUploadChange=function(e){var n=t.props,r=n.pretreatmentRemoteResponse,l=n.afterUploadSuccess,o=n.afterChangeSuccess;if("uploading"!==e.file.status){if("done"===e.file.status){var a=e.file.response;if(h(r)){var i=so({video:"",data:{}},r(a)),c=i.video,u=i.data;t.setState({videoUrl:c,uploading:!1},(function(){if(h(l))l(c||"",u);else{V("afterUploadSuccess 配置无效")}if(h(o))o(c||"",u);else{V("afterChangeSuccess 配置无效")}}))}else{V("pretreatmentRemoteResponse 配置无效")}}}else t.setState({uploading:!0})},t.handleMenuClick=function(e){var n=e.key,r=t.state.videoUrl;switch(n){case"changeUrl":t.showChangeUrlModal();break;case"showPreview":t.showPreviewModal();break;case"copyUrl":if(L(r)){u("当前未设置视频地址")}else be(r);break;case"clearUrl":t.clearUrl()}},t.state=so(so({},t.state),{},{videoSource:"",videoUrl:"",videoUrlTemp:"",uploading:!1,previewVisible:!1,changeUrlVisible:!1}),t}return ho(l,[{key:"render",value:function(){var t=this,n=this.props,r=n.action,l=n.disabled,o=n.showPreview,a=n.tokenSet,i=this.state,c=i.uploading,u=i.previewVisible,s=i.changeUrlVisible,f=i.videoUrlTemp,d=i.videoUrl,p={disabled:l,action:r,listType:"text",showUploadList:!1,beforeUpload:this.beforeUpload,onChange:this.handleUploadChange,headers:so({},a)},h=[{key:"changeUrl",label:"更换地址",icon:ma.swap()},{key:"copyUrl",label:"复制地址",icon:ma.copy(),disabled:L(d)},{key:"clearUrl",label:"清空视频",icon:ma.delete(),disabled:L(d)}],m=e.createElement(tt,{split:e.createElement(Je,{type:"vertical"})},o?e.createElement(He,{key:"showVideoTip",placement:"top",title:"播放视频预览"},e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},disabled:c||L(d),onClick:function(){t.showPreviewModal()}},ma.playCircle(),"播放")):null,e.createElement(He,{key:"showChangeUrlTip",placement:"top",title:"上传视频"},e.createElement(vt,p,e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0},disabled:c},c?ma.loading():ma.upload(),c?"稍后":"上传"))),e.createElement(He,{key:"showMoreTip",placement:"top",title:"更多操作"},e.createElement(yt,{arrow:!0,placement:"bottomRight",menu:{items:h,onClick:this.handleMenuClick},style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0}},e.createElement(Ye,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px",paddingLeft:0,paddingRight:0}},e.createElement(sr,{style:{fontSize:20,verticalAlign:"top"}})))));return e.createElement(e.Fragment,null,e.createElement(dt,{disabled:!0,addonBefore:ma.videoCamera(),addonAfter:m,value:d,placeholder:"当前未设置视频地址"}),e.createElement(gt,{title:e.createElement(ga,{icon:ma.videoCamera(),text:"视频预览"}),open:u,footer:null,onCancel:this.handleUploadCancel},Gi({url:d})),e.createElement(gt,{title:e.createElement(ga,{icon:ma.swap(),text:"请输入将更换的视频地址"}),open:s,onOk:this.handleChangeUrlOk,onCancel:this.handleChangeUrlCancel},e.createElement(ip,{rows:4,value:f,onChange:this.handleUrlChange,placeholder:"目前没有将要更换的视频地址"})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.video;return(n||"")!==(t.videoSource||"")?{videoSource:n,videoUrl:n}:null}}]),l}();function up(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return sp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sp(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,l=function(){};return{s:l,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw o}}}}function sp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}cp.defaultProps={action:"",disabled:!1,tokenSet:{},video:"",showPreview:!1,pretreatmentRemoteResponse:function(){},afterUploadSuccess:function(){},afterChangeSuccess:function(){}};var dp=td.Whether,pp=dp.renderFormWhetherSelect,hp=dp.renderFormWhetherRadio,mp=uu.ComponentItem,vp=uu.InputNumberItem,yp=uu.SwitchItem,gp=uu.OnlyShowInputItem,bp=uu.SelectItem,xp=uu.RadioItem,Ep=uu.SyntaxHighlighterItem,kp=uu.TextAreaItem,wp=uu.TimePickerItem,Cp=uu.DatePickerItem,Rp=uu.TextItem,Sp=uu.PasswordItem,Pp=uu.OnlyShowTextareaItem,Tp=uu.NowTimeItem,_p=uu.ActionItem,Ip=function(t){vo(l,n);var r=fp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.wrapperType,r=t.justify,l=t.align,o=t.gutter,a=t.items,i=t.index,c=t.pretreatmentImageUploadResponse,u=t.pretreatmentFileBase64UploadResponse,s=t.pretreatmentVideoUploadResponse,f=t.pretreatmentFileUploadResponse,d=t.pretreatmentAudioUploadResponse,p=t.saveButtonBuilder,m=t.extraBuilder;return!T(a)||a.length<=0?null:e.createElement($e,{justify:r,align:l,gutter:o||14},T(a)?a.map((function(t,r){var l="formContent_key_".concat(i,"_content_").concat(r),o=so({lg:6,md:12,sm:24,xs:24,require:!1,type:"",fieldData:{label:"",name:"",helper:""},hidden:!1,canOperate:!0,formItemLayout:null},t),a=o.lg,v=o.md,y=o.sm,g=o.xs,b=o.type,x=o.require,E=o.fieldData,k=o.hidden,w=o.canOperate,C=o.formItemLayout;if(k)return null;var S=so({label:"",name:"",helper:""},E),P=(a||6)<12&&n!==ze.wrapperType.page?12:a;if(P=(P=P>12&&n!==ze.wrapperType.page?24:P)>24?24:P,b===ze.contentItemType.placeholder)return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g});if(b===ze.contentItemType.divider)return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g},e.createElement(Je,so({style:{margin:"4px 0"}},t.innerProps),null==(t.text||null)?null:t.text));if(b===ze.contentItemType.customGrid)return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g},e.createElement(ai,{list:T(t.list)?t.list:[],config:so({bordered:!0,column:3,emptyStyle:{color:"#cccccc"},emptyValue:"暂无",labelStyle:{width:"100px"}},t.props)}));if(b===ze.contentItemType.tree){var B={onSelect:t.onSelect||null,innerProps:so({},t.innerProps),listData:t.listData||[],dataConvert:t.dataConvert||null},O=B.onSelect,A=B.innerProps,N=B.listData,U=B.dataConvert;return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g},e.createElement(yf,{onSelect:O,innerProps:A,listData:N,dataConvert:U}))}if(b===ze.contentItemType.tinymce)return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g},e.createElement(ff,{apiKey:L(t.apiKey||"")?Fe():t.apiKey,content:t.html||"",afterChange:t.afterChange,initConfig:t.initConfig||null,imagesUploadUrl:L(t.imagesUploadUrl||"")?je():t.imagesUploadUrl}));if(b===ze.contentItemType.html)return e.createElement(Ge,{key:l,lg:P,md:P||v,sm:P||y,xs:P||g},e.createElement(md,{useEmpty:null==(t.useEmpty||null)||(t.useEmpty||!1),html:t.html||""}));if(b===ze.contentItemType.imageUpload){var M=so({icon:t.icon||null,title:t.title||"",helper:t.helper||"",image:t.image||"",action:t.action||"",tokenSet:ue(),multiple:t.multiple||!1,fileList:t.fileList||[],showUploadList:t.showUploadList||!1,listType:t.listType||"picture-card",disabled:t.disabled||!1},t.uploadProps);return M.action=Ve(M.action),e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(Td,Po({},M,{pretreatmentRemoteResponse:c,afterUploadSuccess:function(e,n){h(t.afterUploadSuccess)&&t.afterUploadSuccess(e,n)},onItemChange:t.onItemChange||null,onItemRemove:t.onItemRemove||null})))}if(b===ze.contentItemType.imageShow){var D=so({loadingEffect:!0,errorOverlayVisible:!0,showErrorIcon:!1,alt:""},t.imageBoxProps),z=so({width:"100px",border:"1px solid #d9d9d9",borderRadius:"4px",padding:"8px"},t.imageBoxContainorStyle),F=e.createElement(Ya,Po({src:t.image||Ee,preview:!L(t.image||"")},D));return e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement("div",{style:z},F))}if(b===ze.contentItemType.imageListShow){var j=null,V=so({loadingEffect:!0,errorOverlayVisible:!0,showErrorIcon:!1,alt:""},t.imageBoxProps);null!=(t.imageBoxListContainorStyle||null)&&(j=t.imageBoxListContainorStyle);var W,q=so({width:"100px",border:"1px solid #d9d9d9",borderRadius:"4px",padding:"8px"},t.imageBoxContainorStyle),H=[],$=t.ignoreEmpty||!1,G=up((T(t.imageList)?t.imageList:[]).entries());try{for(G.s();!(W=G.n()).done;){var J=jo(W.value,2),X=J[0],Q=J[1],Z="contentItem_".concat(i,"_imageList_item_").concat(X);$&&L(Q)||H.push({key:Z,imageBoxContainorStyle:q,component:e.createElement(Ya,Po({src:Q||Ee,preview:!L(Q||"")},V))})}}catch(e){G.e(e)}finally{G.f()}var ee=e.createElement(tt,null,H.length<=0?e.createElement(xt,{image:xt.PRESENTED_IMAGE_SIMPLE}):H.map((function(t){return e.createElement("div",{key:t.key,style:t.imageBoxContainorStyle},t.component)})));return e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},null==j?ee:e.createElement("div",{style:j},ee))}if(b===ze.contentItemType.treeSelect){var te={value:t.value||"",onChange:t.onChange||null,innerProps:so({},t.innerProps),listData:t.listData||[],dataConvert:t.dataConvert||null},ne=te.value,re=te.onChange,le=te.innerProps,oe=te.listData,ae=te.dataConvert;return e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(mp,{label:S.label,innerComponent:e.createElement(Ci,{value:ne||null,placeholder:K(S.label,"选择")||"请选择",onChange:re,innerProps:le,listData:oe,dataConvert:ae}),helper:S.helper,formItemLayout:C,requiredForShow:x}))}if(b===ze.contentItemType.fileBase64Upload){var ie=so(so({},t.uploadProps),{},{fileBase64:t.fileBase64||"",action:t.action||"",tokenSet:ue()});return ie.action=Ve(ie.action),e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(mp,{label:S.label,innerComponent:e.createElement(Wf,Po({},ie,{pretreatmentRemoteResponse:u,afterUploadSuccess:function(e,n){h(t.afterUploadSuccess)&&t.afterUploadSuccess(e,n)}})),helper:S.helper,formItemLayout:null,requiredForShow:x}))}if(b===ze.contentItemType.videoUpload){var ce=so(so({},t.uploadProps),{},{video:t.video||"",showPreview:t.showPreview||!1,action:t.action||"",tokenSet:ue()});return ce.action=Ve(ce.action),e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(mp,{label:S.label,innerComponent:e.createElement(cp,Po({},ce,{pretreatmentRemoteResponse:s,afterUploadSuccess:function(e,n){h(t.afterUploadSuccess)&&t.afterUploadSuccess(e,n)},afterChangeSuccess:function(e){h(t.afterChangeSuccess)&&t.afterChangeSuccess(e)}})),helper:S.helper,formItemLayout:C,requiredForShow:x}))}if(b===ze.contentItemType.fileUpload){var fe=so(so({},t.uploadProps),{},{file:t.file||"",action:t.action||"",tokenSet:ue()});return fe.action=Ve(fe.action),e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(mp,{label:S.label,innerComponent:e.createElement($f,Po({},fe,{pretreatmentRemoteResponse:f,afterUploadSuccess:function(e,n){h(t.afterUploadSuccess)&&t.afterUploadSuccess(e,n)},afterChangeSuccess:function(e){h(t.afterChangeSuccess)&&t.afterChangeSuccess(e)}})),helper:S.helper,formItemLayout:C,requiredForShow:x}))}if(b===ze.contentItemType.audioUpload){var de=so(so({},t.uploadProps),{},{audio:t.audio||"",showPreview:t.showPreview||!1,action:t.action||"",tokenSet:ue()});return de.action=Ve(de.action),e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},e.createElement(mp,{label:S.label,innerComponent:e.createElement(rs,Po({},de,{pretreatmentRemoteResponse:d,afterUploadSuccess:function(e,n){h(t.afterUploadSuccess)&&t.afterUploadSuccess(e,n)},afterChangeSuccess:function(e){h(t.afterChangeSuccess)&&t.afterChangeSuccess(e)}})),helper:S.helper,formItemLayout:C,requiredForShow:x}))}return e.createElement(Ge,{key:l,lg:P||6,md:v,sm:y,xs:g},b===ze.contentItemType.text?e.createElement(Rp,{label:S.label,value:t.value||"",helper:S.helper,formItemLayout:C}):null,b===ze.contentItemType.input?Vu({label:S.label,name:S.name,required:x,helper:S.helper,icon:t.icon||ma.form(),innerProps:so({},t.innerProps),canOperate:w,formItemLayout:C,reminderPrefix:"输入",hidden:!1}):null,b===ze.contentItemType.password?e.createElement(Sp,{label:S.label,name:S.name,helper:S.helper,required:x,icon:t.icon||ma.form(),innerProps:so({},t.innerProps),formItemLayout:C}):null,b===ze.contentItemType.inputNumber?e.createElement(vp,{label:S.label,name:S.name,required:x,helper:S.helper,icon:t.icon||ma.form(),innerProps:so({},t.innerProps),canOperate:w,formItemLayout:C}):null,b===ze.contentItemType.switch?e.createElement(yp,{label:S.label,name:S.name,checked:t.checked||!1,required:x,helper:S.helper,innerProps:so({},t.innerProps),canOperate:w,formItemLayout:C}):null,b===ze.contentItemType.flexText?e.createElement(li,so({style:{margin:"5px 0"}},t.flexTextProps)):null,b===ze.contentItemType.onlyShowTextByFlexText?e.createElement(li,{style:{margin:"5px 0"},icon:null,textPrefix:S.label||"",text:t.value||""}):null,b===ze.contentItemType.datePicker?e.createElement(Cp,{label:S.label,name:S.name,required:x,helper:S.helper,innerProps:so({},t.innerProps),canOperate:w,formItemLayout:C}):null,b===ze.contentItemType.timePicker?e.createElement(wp,{label:S.label,name:S.name,required:x,helper:S.helper,innerProps:so({},t.innerProps),canOperate:w,formItemLayout:C}):null,b===ze.contentItemType.textarea?e.createElement(kp,{label:S.label,name:S.name,required:x,helper:S.helper,innerProps:so({autoSize:{minRows:3,maxRows:5}},t.innerProps),canOperate:w,formItemLayout:C}):null,b===ze.contentItemType.onlyShowTextarea?e.createElement(Pp,{label:S.label,value:t.value,helper:S.helper,innerProps:so({autoSize:{minRows:3,maxRows:5}},t.innerProps),formItemLayout:C}):null,b===ze.contentItemType.onlyShowInput?e.createElement(gp,{label:S.label,value:t.value,helper:S.helper||"",icon:t.icon||ma.form(),innerProps:so(so({},t.innerProps),{},{disabled:!0,placeholder:"暂无".concat(S.label,"信息")},t.canCopy?{addonAfter:e.createElement(xa,{style:{border:"0px solid #d9d9d9",backgroundColor:"#fafafa",height:"30px"},showIcon:!1,disabled:L(t.value||""),text:"点击复制",handleClick:function(){be(t.value||"")}})}:{}),formItemLayout:C}):null,b===ze.contentItemType.onlyShowInputDatetime?e.createElement(gp,{label:S.label,value:_({data:se(t.value),format:I.yearMonthDayHourMinute}),helper:S.helper||"",icon:t.icon||ma.form(),innerProps:so(so({},t.innerProps),{},{disabled:!0,placeholder:"暂无".concat(S.label,"信息")}),formItemLayout:C}):null,b===ze.contentItemType.select?e.createElement(bp,{label:S.label,name:S.name,helper:S.helper,list:T(t.listData)?t.listData:[],dataConvert:h(t.dataConvert)?t.dataConvert:null,renderItem:h(t.renderItem)?t.renderItem:null,onChange:h(t.onChange)?t.onChange:null,required:!0,formItemLayout:C,innerProps:so({},t.innerProps)}):null,b===ze.contentItemType.whetherSelect?pp({label:S.label,name:S.name,helper:S.helper,onChangeCallback:t.onChangeCallback,formItemLayout:C,required:!0,innerProps:so({},t.innerProps)}):null,b===ze.contentItemType.customSelect?t.component:null,b===ze.contentItemType.flexSelect?e.createElement(Ti,t):null,b===ze.contentItemType.radio?e.createElement(xp,{label:S.label,name:S.name,helper:S.helper,list:T(t.listData)?t.listData:[],dataConvert:h(t.dataConvert)?t.dataConvert:null,renderItem:h(t.renderItem)?t.renderItem:null,onChange:h(t.onChange)?t.onChange:null,button:R(t.button||!1),required:!0,formItemLayout:C,innerProps:so({},t.innerProps)}):null,b===ze.contentItemType.whetherRadio?hp({label:S.label,name:S.name,helper:S.helper,onChange:t.onChangeCallback,formItemLayout:C,required:!0,innerProps:so({},t.innerProps)}):null,b===ze.contentItemType.customRadio?t.component:null,b===ze.contentItemType.onlyShowText?e.createElement(Rp,{label:S.label,value:t.value,helper:t.showHelper&&S.helper||"",formItemLayout:C}):null,b===ze.contentItemType.innerComponent?e.createElement(mp,{label:S.label,innerComponent:t.component,helper:S.helper,formItemLayout:C,requiredForShow:x}):null,b===ze.contentItemType.save?e.createElement(_p,{action:h(p)?p(t.config||{}):null,formItemLayout:C}):null,b===ze.contentItemType.button?Uu({config:t.config||{},formItemLayout:C}):null,b===ze.contentItemType.actionList?e.createElement(tt,{split:Y(t.split||!1)?t.split?e.createElement(Je,{type:"vertical"}):null:t.split},h(m)?m({keyPrefix:"form_card_".concat(i,"_action_key"),configList:t.config||[]}):null):null,b===ze.contentItemType.component&&t.component||null,b===ze.contentItemType.jsonView?e.createElement(Ii,{value:t.value}):null,b===ze.contentItemType.syntaxHighlighterView?e.createElement(Ep,{language:t.language,label:S.label,value:t.value,helper:S.helper,formItemLayout:C,innerProps:so({},t.innerProps)}):null,b===ze.contentItemType.nowTime?e.createElement(Tp,{formItemLayout:C}):null)})):null)}}]),l}();function Bp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Ip.defaultProps={wrapperType:De.wrapperType.page,justify:"start",align:"top",gutter:14,items:[],index:0,pretreatmentImageUploadResponse:null,pretreatmentFileBase64UploadResponse:null,pretreatmentVideoUploadResponse:null,pretreatmentFileUploadResponse:null,pretreatmentAudioUploadResponse:null,saveButtonBuilder:null,extraBuilder:null};var Op=wt.Content,Lp=wt.Sider,Ap=function(t){vo(l,n);var r=Bp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.layoutConfig,r=void 0===n?null:n,l=t.siderConfig,o=void 0===l?null:l,a=t.siderBody,i=void 0===a?null:a,c=t.toolbar,u=t.contentBody,s=void 0===u?null:u,f=t.contentClassName,d=t.bottom,p=so({position:"left"},o).position,h=P(["left","right"],p)?p:"left",m=so({width:300,style:so({backgroundColor:"#fff",borderRadius:"4px",overflowX:"auto",overflowY:"hidden"},"left"===h?{marginRight:"16px"}:{marginLeft:"16px"})},fe(o)?{}:o),v=so({breakpoint:"sm",style:{backgroundColor:"#f0f2f5",minHeight:"auto"}},fe(r)?{}:r),y=null==i?s:e.createElement(wt,v,"left"===h?e.createElement(Lp,m,i):null,e.createElement(Op,{style:{backgroundColor:"#fff",borderRadius:"4px"},className:Gl("antd-management-fast-component-page-extra-content-box",f)},s),"left"===h?null:e.createElement(Lp,m,i));return null==s&&null==(c||null)&&null==(d||null)?null:null!=(c||null)||null!=(d||null)?e.createElement("div",{style:{overflowX:"hidden"}},e.createElement(tt,{style:{width:"100%"},direction:"vertical",size:14},c,y,d)):y}}]),l}();Ap.defaultProps={layoutConfig:{},siderConfig:{},siderBody:null,contentBody:null,contentClassName:"",toolbar:null,bottom:null};var Np="index_contentTabBox__r22r2";function Up(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Mp=function(t){vo(l,n);var r=Up(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.defaultActiveKey,r=t.list,l=t.extraContent,o=t.onTabChange,a=T(r)?r:[],i=a.length>0?{type:"card",size:"small",tabBarStyle:{marginBottom:0,backgroundColor:"#fff",paddingTop:"16px",paddingLeft:"24px",paddingRight:"24px"},tabBarGutter:3,animated:{inkBar:!0,tabPane:!0},defaultActiveKey:n||"",tabBarExtraContent:l,items:a.map((function(e){return so({},e)})),onChange:o}:{tabBarStyle:{marginBottom:0}};return e.createElement("div",{className:Np},e.createElement(kt,i))}}]),l}();function Dp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Mp.defaultProps={defaultActiveKey:"",list:[],extraContent:null,onTabChange:null};var zp=We.Paragraph,Fp=function(t){vo(o,n);var r=Dp(o);function o(){return fo(this,o),r.apply(this,arguments)}return ho(o,[{key:"render",value:function(){var t=this.props,n=t.paragraph,r=t.gridConfig,o=t.component,a=t.actions,i=[];return A(n)&&!L(n)&&i.push({key:"item_paragraph_text",component:e.createElement(zp,{style:{marginBottom:"0"}},n)}),e.isValidElement(n)&&i.push({key:"item_paragraph_component",component:n}),fe(r)||i.push({key:"item_paragraph_component",component:e.createElement(ci,so({config:{style:{marginBottom:"4px"},size:"small"}},r))}),e.isValidElement(o)&&i.push({key:"item_component",component:o}),T(a)&&a.length>0&&i.push({key:"item_actions",component:e.createElement(tt,null,a.map((function(t,n){return e.createElement(l,{key:"item_action_item_".concat(n)},t)})))}),te(i)?null:1===i.length?i[0].component:e.createElement(tt,{style:{width:"100%"},direction:"vertical"},i.map((function(t){var n=t.key,r=t.component;return e.createElement("div",{key:n},r)})))}}],[{key:"checkProperties",value:function(e){var t=e.paragraph,n=e.gridConfig,r=e.component,l=e.actions;return!(null==t&&null==n&&null==r&&te(l))}}]),o}();function jp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Fp.defaultProps={paragraph:null,gridConfig:null,component:null,actions:[]};var Vp=function(t){vo(l,n);var r=jp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.textLabel,r=void 0===n?"描述":n,l=t.text,o=void 0===l?"":l,a=t.timeLabel,i=void 0===a?"时间":a,c=t.time,u=void 0===c?new Date:c,s={fontSize:"20px"};return e.createElement($e,null,e.createElement(Ge,{xs:24,sm:12},e.createElement("div",null,i),e.createElement("div",{style:s},_({data:u,format:"HH:mm:ss",defaultValue:"--"}),e.createElement("br",null),_({data:u,format:"YYYY-MM-DD"}))),e.createElement(Ge,{xs:24,sm:12},e.createElement("div",null,r),e.createElement("div",{style:s},o)))}}]),l}();function Wp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Vp.defaultProps={textLabel:"描述",text:"",tileLabel:"时间",time:new Date};var qp=We.Text,Hp=function(t){vo(l,n);var r=Wp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props.text;return L(t)?null:e.createElement(fa,{style:{height:"31px",paddingBottom:"1px"},align:"bottom"},e.createElement(qp,{style:{color:"#888"}},t))}}]),l}();function $p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Hp.defaultProps={text:""};var Gp=function(t){vo(l,n);var r=$p(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props.list;return e.createElement(e.Fragment,null,e.createElement("div",{style:{position:"relative",height:"24px",padding:"0 14px 0 0",lineHeight:"24px"}},e.createElement(ki,{list:t})))}}]),l}();function Kp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Gp.defaultProps={list:[]};var Yp=function(t){vo(l,n);var r=Kp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.titlePrefix;return e.createElement("div",{style:{display:"block",maxWidth:"700px",height:"32px",overflow:"hidden"}},e.createElement(fa,null,e.createElement(ga,{block:!0,style:{fontSize:"18px"},textPrefix:r,text:n,separatorStyle:{paddingRight:"5px"},ellipsis:!0})))}}]),l}();function Jp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Yp.defaultProps={title:"",titlePrefix:""};var Xp=function(t){vo(l,n);var r=Jp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.wrapperType,r=t.title,l=t.showNumber,o=t.list;if(!T(o)){return u("帮助条目数据无效"),U(config),null}return te(o)?null:e.createElement(dd,{border:!P([De.wrapperType.model,De.wrapperType.drawer],n),compact:n===De.wrapperType.model,helpBoxProps:{title:r||"操作帮助",showNumber:l||!1,list:o}})}}]),l}();function Qp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}Xp.defaultProps={wrapperType:De.wrapperType.page,title:"操作帮助",showNumber:!0,list:[]};var Zp=function(t){vo(l,n);var r=Qp(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.dataLoading,r=t.reloading,l=t.showHeader,o=t.title,a=t.titlePrefix,i=t.subTitle,c=t.showAvatar,u=t.avatarConfig,s=t.avatarDefaultIcon,f=t.avatarImageLoadResult,d=t.onAvatarLoadError,p=t.tagList,m=t.useShortcutNavigation,v=t.shortcutNavigation,y=t.extraAction,g=t.contentConfig,b=t.extraContentConfig,x=t.tabActiveKey,E=t.tabList,k=t.tabBarExtraContent,w=t.tabProps,C=t.onTabChange,R=t.footer,S=t.floatButton,P=t.leftArea,T=t.children,_=c?Ss(u,s,c,n,r,f,(function(){h(d)&&d()})):null,I=N(g)?de(g)?null:Fp.checkProperties(g)?e.createElement(Fp,g):null:null,B=N(b)?de(b)?null:e.createElement(Vp,b):null,O=P?e.createElement(Pa,{flexAuto:"right",leftStyle:{backgroundColor:"#fff"},left:P,right:e.createElement(e.Fragment,null,e.createElement(lo,null),T,S)}):e.createElement(e.Fragment,null,e.createElement(lo,null),T,S);return l?e.createElement("div",{style:{background:"#f0f2f5"}},e.createElement(no,{header:so({ghost:!1,style:{backgroundColor:"#fff",paddingBottom:"0px",paddingLeft:"24px",paddingRight:"24px"},avatar:_,title:e.createElement(Yp,{title:o,titlePrefix:a}),subTitle:A(i)?e.createElement(Hp,{text:i}):i,tags:e.createElement(Gp,{list:p})},null===w?{footer:null}:{}),childrenContentStyle:{padding:"0px"},className:Gl("antd-management-fast-component",m?"antd-management-fast-component-use-shortcut-navigation":""),extra:y,content:I,extraContent:B,tabActiveKey:x,tabList:E,tabBarExtraContent:k,onTabChange:C,tabProps:w,footer:R,breadcrumbRender:function(t,n){return e.createElement(Pa,{flexAuto:"right",style:{paddingBottom:"7px",borderBottom:"1px solid #f1f1f1"},left:e.createElement("div",null,n),right:null==v?null:e.createElement(Pa,{flexAuto:"top",top:e.createElement("div",null),bottom:e.createElement(Pa,{flexAuto:"left",left:e.createElement("div",null),right:e.createElement("div",null,v)})})})}},O)):O}}]),l}();Zp.defaultProps={dataLoading:!1,reloading:!1,showHeader:!1,title:"",titlePrefix:null,subTitle:null,showAvatar:!1,avatarConfig:null,avatarDefaultIcon:null,avatarImageLoadResult:null,onAvatarLoadError:null,tagList:[],useShortcutNavigation:!0,shortcutNavigation:null,extraAction:null,contentConfig:null,extraContentConfig:null,tabActiveKey:null,tabList:[],tabBarExtraContent:null,tabProps:null,footer:null,floatButton:null,leftArea:null,onTabChange:null};var eh="index_amf-layout-sider-box__L2dDl";function th(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var nh=function(t){vo(l,n);var r=th(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.top,r=t.bottom;return fe(n)&&fe(r)?null:fe(r)?n:e.createElement(Pa,{className:eh,direction:"vertical",flexAuto:"top",top:n,bottom:r})}}]),l}();function rh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}nh.defaultProps={top:null,bottom:null};var lh=function(t){vo(l,n);var r=rh(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.list,r=t.split,l=T(n)?n:N(n)?[n]:[];return l.length<=0?null:e.createElement(tt,{split:Y(r)?r?e.createElement(Je,{type:"vertical"}):null:r},l)}}]),l}();function oh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}lh.defaultProps={list:[],split:!1};var ah=function(t){vo(l,n);var r=oh(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.stick,r=t.title,l=t.tools;if(!T(l)){return u("工具栏配置数据无效"),U(config),null}if(te(l))return null;var o=l.map((function(e,t){return so(so({},e),{},{key:"toolItem_".concat(t)})})),a=e.createElement(bt,{title:e.createElement(ga,{icon:ma.tool(),text:r||"工具栏"}),bordered:!1,bodyStyle:{padding:0},extra:e.createElement(tt,{split:e.createElement(Je,{type:"vertical"})},o.map((function(t){return so({hidden:!1},t).hidden?null:e.createElement(He,{key:t.key,title:t.title||""},t.component)})))});return Y(n)&&n?e.createElement(Ct,{offsetTop:0},a):a}}]),l}();ah.defaultProps={stick:!1,title:"工具栏",tools:[]};var ih={HeaderTitle:Yp,HeaderContent:Fp,HeaderTagWrapper:Gp,HeaderExtraContent:Vp,ContentBox:Ap,BodyContent:op,SiderBox:nh,ToolBar:ah,HelpContent:Xp,PageWrapper:Zp,ContentTabBox:Mp,TabBarExtraBox:lh,CardCollectionItemContent:Ip,HeaderSubTitle:Hp};function ch(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var uh=function(t){vo(l,n);var r=ch(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props.value;return pe(t)||(t=he(100*t,1)),e.createElement("span",null,t,"%")}}]),l}();function sh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}uh.defaultProps={value:0};var fh=function(t){vo(l,n);var r=sh(l);function l(){return fo(this,l),r.apply(this,arguments)}return ho(l,[{key:"render",value:function(){var t=this.props,n=t.price,r=t.generalStyle,l=t.prefix,o=t.prefixStyle,a=t.integerPartStyle,i=t.pointStyle,c=t.decimalPartStyle,u=so(so({},r),{},{verticalAlign:"bottom"});if(!pe(n))return"";var s=q(n||0,2,"").split("."),f=s[0],d=s[1];return e.createElement("div",{style:{display:"inline"}},e.createElement("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"flex-end",lineHeight:1}},e.createElement("div",{style:so(so({},u),o)},l),e.createElement("div",{style:so(so({},u),a)},f),e.createElement("div",{style:so(so({},u),i)},"."),e.createElement("div",{style:so(so({},u),c)},d)))}}]),l}();fh.defaultProps={price:0,prefix:"",generalStyle:{},prefixStyle:{},integerPartStyle:{},pointStyle:{},decimalPartStyle:{}};var dh=function(t){var n=t.progress,r=t.animationDuration;return e.createElement("div",{style:{background:"#29d",height:2,left:0,marginLeft:"".concat(100*(-1+n),"%"),position:"fixed",top:0,transition:"margin-left ".concat(r,"ms linear"),width:"100%",zIndex:1031}},e.createElement("div",{style:{boxShadow:"0 0 10px #29d, 0 0 5px #29d",display:"block",height:"100%",opacity:1,position:"absolute",right:0,transform:"rotate(3deg) translate(0px, -4px)",width:100}}))};dh.defaultProps={animationDuration:800,progress:1};var ph=function(t){var n=t.animationDuration,r=t.children,l=t.isFinished;return e.createElement("div",{style:{opacity:l?0:1,pointerEvents:"none",transition:"opacity ".concat(n,"ms linear")}},r)};ph.defaultProps={animationDuration:800,isFinished:!0};var hh="index_amfProgressSpinner__e6p33",mh="index_amfProgressSpinnerInner__fDKns",vh=function(){return e.createElement("div",{className:hh},e.createElement("div",{className:mh}))},yh=function(t){var n=t.progressing,r=t.animationDuration,l=t.incrementDuration,o=t.minimum,a=t.showBar,i=t.showSpinner;return e.createElement(oo,{isAnimating:n,animationDuration:r,incrementDuration:l,minimum:o},(function(t){var n=t.animationDuration,r=t.isFinished,l=t.progress;return e.createElement(ph,{animationDuration:n,isFinished:r},a?e.createElement(dh,{animationDuration:n,progress:l}):null,e.createElement(vh,null),i?e.createElement(vh,null):null)}))};yh.defaultProps={progressing:!0,animationDuration:200,incrementDuration:800,minimum:.08,showSpinner:!0,showBar:!0};var gh={Forbidden:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"403",title:n,subTitle:r,extra:l},a)},Info:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{title:n,subTitle:r,extra:l},a)},LocalError:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"error",title:n,subTitle:r,extra:l},a)},NotFound:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"404",title:n,subTitle:r,extra:l},a)},ServerError:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"500",title:n,subTitle:r,extra:l},a)},Success:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"success",title:n,subTitle:r,extra:l},a)},Warn:function(t){var n=t.title,r=t.subTitle,l=t.extra,o=t.content,a=void 0===o?null:o;return e.createElement(Rt,{status:"warning",title:n,subTitle:r,extra:l},a)}},bh="index_rowExpandTable__XAAb5";function xh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var Eh=function(t){vo(r,Co);var n=xh(r);function r(){return fo(this,r),n.apply(this,arguments)}return ho(r,[{key:"renderFurther",value:function(){var t=this.props.tableConfig;return e.createElement("div",{className:bh},e.createElement(bt,null,e.createElement(St,t)))}}]),r}();Eh.defaultProps={tableConfig:null};var kh="index_standardFormRow__DfQar",wh="index_label__rTo6w",Ch="index_content__-5wzS",Rh="index_standardFormRowLast__IPynN",Sh="index_standardFormRowBlock__VTJan",Ph="index_standardFormRowGrid__V4YYX",Th=["title","children","last","block","grid"],_h=function(t){var n=t.title,r=t.children,l=t.last,o=t.block,a=t.grid,i=To(t,Th),c=Gl(kh,co(co(co({},Sh,o),Rh,l),Ph,a));return e.createElement("div",Po({className:c},i),n&&e.createElement("div",{className:wh},e.createElement("span",null,n)),e.createElement("div",{className:Ch},r))},Ih=["data","rowKey","size","showSelect","showPagination","style"];function Bh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}function Oh(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Lh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lh(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,l=function(){};return{s:l,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw o}}}}function Lh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ah(e){var t,n=[],r=Oh(e);try{for(r.s();!(t=r.n()).done;){var l=t.value;l.needTotal&&n.push(so(so({},l),{},{total:0}))}}catch(e){r.e(e)}finally{r.f()}return n}var Nh=function(t){vo(l,n);var r=Bh(l);function l(e){var t;fo(this,l),(t=r.call(this,e)).handleRowSelectChange=function(e,n){var r=t.state.needTotalList;r=r.map((function(e){return so(so({},e),{},{total:(n||[]).reduce((function(t,n){return t+Number.parseFloat(n[e.dataIndex],10)}),0)})}));var l=t.props.onSelectRow;l&&l(n||[]),t.setState({selectedRowKeys:e,needTotalList:r})},t.handleTableChange=function(e,n,r,l){var o=t.props.onChange;o&&o(e,n,r,l)},t.cleanSelectedKeys=function(){t.handleRowSelectChange([],[])};var n=Ah(e.columns);return t.state={selectedRowKeys:[],needTotalList:n},t}return ho(l,[{key:"render",value:function(){var t=this.state,n=t.selectedRowKeys,r=t.needTotalList,l=this.props,o=l.data,a=o.list,i=o.pagination,c=l.rowKey,u=l.size,s=l.showSelect,f=l.showPagination,d=l.style,p=To(l,Ih),h=!!f&&so({showSizeChanger:!0,showQuickJumper:!0},i),m=s||!1,y=0!==(this.props.selectedRows||[]).length||m?{selectedRowKeys:n,onChange:this.handleRowSelectChange,getCheckboxProps:function(e){return{disabled:e.disabled}}}:null,g=null===y?"":e.createElement("div",{style:{paddingBottom:"10px"}},e.createElement(ct,{message:e.createElement(e.Fragment,null,"已选择"," ",e.createElement(Ao,{style:{fontWeight:600}},n.length)," ","项  ",r.map((function(t){return e.createElement("span",{style:{marginLeft:8},key:t.dataIndex},t.title,"总计 ",e.createElement("span",{style:{fontWeight:600}},t.render?t.render(t.total):t.total))})),e.createElement(Ao,{onClick:this.cleanSelectedKeys,style:{marginLeft:24}},"清空")),type:"info",showIcon:!0})),b=so({backgroundColor:"#fff",padding:"10px 12px 0px 12px",borderRadius:"8px"},d);v(b,k("StandardTable","containerStyle")),v({size:u||Ce.tableSize.middle,dataSource:a,pagination:h},k("StandardTable","Table","props"));var x=e.createElement(St,Po({rowKey:c||"key",size:u||Ce.tableSize.middle,rowSelection:y,dataSource:a,pagination:h,onChange:this.handleTableChange,defaultExpandAllRows:!0},p,{loading:!1}));return e.createElement("div",{style:b},g,null===y?x:e.createElement("div",{style:{width:"100%",height:"calc(100% - 50px)"}},x))}}],[{key:"getDerivedStateFromProps",value:function(e){return 0===(e.selectedRows||[]).length?{selectedRowKeys:[],needTotalList:Ah(e.columns)}:null}}]),l}();Nh.defaultProps={showPagination:!0,showSelect:!1,rowKey:"key",size:null,style:null};var Uh="index_tagSelect__3b3-Q",Mh="index_expanded__TS7b2",Dh="index_trigger__d9Tc1",zh="index_hasExpandTag__hZyAb";function Fh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var jh=ot.CheckableTag,Vh=function(t){var n=t.children,r=t.checked,l=t.onChange,o=t.value;return e.createElement(jh,{checked:r,key:o,onChange:function(e){return l(o,e)}},n)};Vh.isTagSelectOption=!0;var Wh=function(n){vo(l,t);var r=Fh(l);function l(e){var t;return fo(this,l),(t=r.call(this,e)).onChange=function(e){var n=t.props.onChange;"value"in t.props||t.setState({value:e}),n&&n(e)},t.onSelectAll=function(e){var n=[];e&&(n=t.getAllTags()),t.onChange(n)},t.handleTagChange=function(e,n){var r=ua(t.state.value),l=r.indexOf(e);n&&-1===l?r.push(e):!n&&l>-1&&r.splice(l,1),t.onChange(r)},t.handleExpand=function(){var e=t.state.expand;t.setState({expand:!e})},t.isTagSelectOption=function(e){return e&&e.type&&(e.type.isTagSelectOption||"TagSelectOption"===e.type.displayName)},t.state={expand:!1,value:e.value||e.defaultValue||[]},t}return ho(l,[{key:"getAllTags",value:function(){var t=this,n=this.props.children;return(n=e.Children.toArray(n)).filter((function(e){return t.isTagSelectOption(e)})).map((function(e){return e.props.value}))||[]}},{key:"render",value:function(){var t=this,n=this.state,r=n.value,l=n.expand,o=this.props,a=o.children,i=o.hideCheckAll,c=o.className,u=o.style,s=o.expandable,f=this.getAllTags().length===r.length,d=Gl(Uh,c,co(co({},zh,s),Mh,l));return e.createElement("div",{className:d,style:u},i?null:e.createElement(jh,{checked:f,key:"tag-select-__all__",onChange:this.onSelectAll},"全部"),r&&e.Children.map(a,(function(n){return t.isTagSelectOption(n)?e.cloneElement(n,{key:"tag-select-".concat(n.props.value),value:n.props.value,checked:r.includes(n.props.value),onChange:t.handleTagChange}):n})),s&&e.createElement(Ao,{className:Dh,onClick:this.handleExpand},l?"收起":"展开",l?ma.upCircle():ma.down()))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value||[]}:null}}]),l}();Wh.defaultProps={hideCheckAll:!1},Wh.Option=Vh;var qh="index_timeLineExBox__fNBGU",Hh="index_timeLineEx__Jy4W2",$h="index_listItem__vSIgk",Gh="index_timeLineExItem__m7V-q",Kh="index_time__AZDno",Yh="index_timeLineExHeader__MZEQx",Jh="index_timeLineExBody__hOHI2",Xh="index_timeLineExFooter__qos-S",Qh="index_fa__jNhgO",Zh="index_faInner__UKeeB",em="index_faInnerBg__AEwZH",tm="index_faInnerBody__vY0Hp",nm="index_timeLabel__d0e4d",rm="index_backgroundRed__BQ0iU",lm="index_timeLineExInverse__7eGPZ";function om(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bo(e);if(t){var l=bo(this).constructor;n=Reflect.construct(r,arguments,l)}else n=r.apply(this,arguments);return go(this,n)}}var am=function(t){vo(r,Co);var n=om(r);function r(t){var l;return fo(this,r),(l=n.call(this,t)).doWorkWhenGetSnapshotBeforeUpdate=function(e,t){return l.currentTime=null,l.currentPageStart=!0,null},l.getCreateTimeDatePart=function(e){return _({data:e,format:I.yearMonthDay})},l.getCreateTimeTimePart=function(e){return _({data:e,format:I.hourMinute})},l.handleTableChange=function(e,t){(0,l.props.onChange)(e,t)},l.renderPresetDateLabel=function(t){l.currentTime=l.currentTime||t;var n=l.currentTime||t;return!(!l.currentPageStart&&new Date(n).getDay()===new Date(t).getDay())&&(l.currentPageStart=!1,l.currentTime=t,e.createElement("div",{className:"".concat(nm," ").concat($h)},e.createElement("span",{className:rm},l.getCreateTimeDatePart(t))))},l.renderPresetInfo=function(t){var n=l.props,r=n.getTime,o=n.getTitle,a=n.getDescription,i=n.getBottomLeft,c=n.getBottomRight,u=n.getIcon;return e.createElement("div",{className:$h},e.createElement("span",{className:Qh},e.createElement("div",{className:Zh},e.createElement("div",{className:em}),e.createElement("div",{className:tm},u(t)))),e.createElement("div",{className:Gh},e.createElement("span",{className:Kh},e.createElement($t,{style:{marginLeft:"20px",position:"inherit",width:"12px",height:"12px",lineHeight:"12px",fontSize:"12px",marginRight:"2px"}}),l.getCreateTimeTimePart(r(t))),e.createElement("h3",{className:Yh},o(t)),e.createElement("div",{className:Jh,style:{fontSize:"13px"}},a(t)),e.createElement("div",{className:Xh},e.createElement("span",{style:{fontSize:"13px"}},i(t)),e.createElement("span",{style:{marginLeft:"20px",fontSize:"13px"}},c(t)))))},l.currentTime=null,l.currentPageStart=!0,l.state={list:[],pagination:{}},l}return ho(r,[{key:"render",value:function(){var t=this,n=this.props,r=n.loading,l=n.getDateLabel,o=n.showPagination,a=this.state,i=a.list,c=a.pagination,u=!1;return o&&(u=so(so({showSizeChanger:!0,showQuickJumper:!0},c),{},{onChange:this.handleTableChange})),e.createElement("div",{className:qh},e.createElement("div",{className:"".concat(Hh," ").concat(lm)},e.createElement(ut,{loading:r,itemLayout:"vertical",size:"large",pagination:u,dataSource:i,renderItem:function(n){return e.createElement(ut.Item,{key:n.title,style:{padding:0,borderBottom:"0px"}},e.createElement("div",null,t.renderPresetDateLabel(l(n)),t.renderPresetInfo(n)))}})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data;return{list:n.list,pagination:n.pagination}}}]),r}();am.defaultProps={showPagination:!1,iconStyle:{},links:[],getIcon:function(){return ma.message()},getBackgroundColorKey:function(){return""},getDateLabel:function(){return""},getTime:function(){return""},getTitle:function(){return""},getDescription:function(){return""},getBottomLeft:function(){return""},getBottomRight:function(){return""}};var im={trendItem:"index_trendItem__T87oP",up:"index_up__bcjl-",down:"index_down__ynaEo",trendItemGrey:"index_trendItemGrey__nycuI",reverseColor:"index_reverseColor__mN1eJ"},cm=["colorful","reverseColor","flag","icon","children","className"],um=function(t){var n=t.colorful,r=void 0===n||n,l=t.reverseColor,o=void 0!==l&&l,a=t.flag,i=t.icon,c=t.children,u=t.className,s=To(t,cm),f=Gl(im.trendItem,co(co({},im.trendItemGrey,!r),im.reverseColor,o&&r),u);return e.createElement("div",Po({},s,{className:f,title:"string"==typeof c?c:""}),e.createElement("span",null,c),a&&e.createElement("span",{className:im[a]},i))};export{ko as AbstractComponent,Ao as AnchorLink,ea as ArticleListContent,rs as AudioUpload,fs as AvatarList,Co as BaseComponent,hf as BaseElasticitySelectButton,vs as Bubbly,pa as CenterBox,ti as ColorText,ai as CustomGrid,Ps as DecorateAvatar,ci as DescriptionGrid,_s as DisplayCopyData,Ds as EditableItem,uf as EditableLinkGroup,df as Editor,xa as ElasticityButton,_a as ElasticityDropdown,si as ElasticityListViewItemExtra,Ca as ElasticityMenu,di as ElasticityMenuHeader,gi as ElasticityRadioGroup,mf as ElasticitySelectButton,ki as ElasticityTagList,yf as ElasticityTree,Ci as ElasticityTreeSelect,Rf as Ellipsis,Fa as EllipsisCustom,Pf as EverySpace,Do as FadeBox,Bf as FieldExtra,jf as FigureRange,Wf as FileBase64Upload,$f as FileUpload,Pa as FlexBox,Ti as FlexSelect,li as FlexText,Gf as Footer,Zf as FooterToolbar,uu as FormExtra,td as FunctionSupplement,od as GlobalFooter,sd as HelpBox,dd as HelpCard,dc as HiddenWrapper,md as HtmlBox,vd as IconFont,ga as IconInfo,Ya as ImageBox,bd as ImageContentPreview,Td as ImageUpload,Ii as JsonView,Bd as Line,Oo as MemoFunction,Qd as MobileContainor,tp as NumberInfo,rp as Overlay,ih as PageExtra,uh as PercentageBox,fh as PriceBox,yh as ProgressBar,So as PureExtraComponent,Ko as QueueBox,$o as QueueListBox,bs as RadarScanning,gh as Result,Jo as RotateBox,Eh as RowExpandTable,ws as Spirit,_h as StandardFormRow,Nh as StandardTable,Oi as StatusBar,Zc as SyntaxHighlighter,Wh as TagSelect,am as TimeLineCustom,um as Trend,fa as VerticalBox,cp as VideoUpload,sc as adjustTableExpandConfig,Rs as avatarImageLoadResultCollection,Fi as buildAlert,Ni as buildButton,qi as buildButtonGroup,$i as buildColorText,Qa as buildColumnItem,Za as buildColumnList,ji as buildCustomGrid,Vi as buildDescriptionGrid,Ui as buildDropdown,Mi as buildDropdownButton,Di as buildDropdownEllipsis,Ji as buildFlexRadio,Yi as buildFlexSelect,Nu as buildFormActionItem,Uu as buildFormButton,qu as buildFormCreateTimeField,Iu as buildFormDatePicker,ju as buildFormHiddenWrapper,Au as buildFormInnerComponent,Vu as buildFormInput,Wu as buildFormInputFieldData,Tu as buildFormInputNumber,$u as buildFormNowTimeField,Pu as buildFormOnlyShowInput,Mu as buildFormOnlyShowSyntaxHighlighter,Fu as buildFormOnlyShowText,Lu as buildFormOnlyShowTextarea,zu as buildFormPassword,Ku as buildFormRadio,Gu as buildFormSelect,Du as buildFormSwitch,Ou as buildFormText,_u as buildFormTextArea,Bu as buildFormTimePicker,Hu as buildFormUpdateTimeField,uc as buildIconInfoList,lc as buildJsonView,rc as buildListViewItemActionSelect,Zi as buildListViewItemExtra,ec as buildListViewItemInner,tc as buildListViewItemInnerWithDropdownButton,nc as buildListViewItemInnerWithSelectButton,Ai as buildMenu,Wi as buildMenuHeaderRender,vi as buildOptionItem,Gi as buildPlayer,Hi as buildRadioGroup,hi as buildRadioItem,es as buildSearchFormSelect,Qu as buildSearchInput,Zu as buildSearchInputNumber,Qi as buildStatusBar,Xi as buildTagList,zi as buildTree,Ki as buildTreeSelect,pi as convertOptionOrRadioData,Ss as decorateAvatar,Ff as figureRangeType,ma as iconBuilder,ha as iconModeCollection};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-management-fast-component",
3
- "version": "2.6.65",
3
+ "version": "2.6.68",
4
4
  "description": "antd-management-fast-component",
5
5
  "keywords": [
6
6
  "antd-management-fast-component"