hlyc-web-pack 3.9.10 → 3.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/LayoutFormModal/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -64,6 +64,8 @@ export interface LayoutFormModalCallType {
|
|
|
64
64
|
getFormValues: (data: string[]) => AnyObjectType | undefined;
|
|
65
65
|
/** 设置表单值 */
|
|
66
66
|
setFormValues: (values: AnyObjectType) => void;
|
|
67
|
+
/** 重置表单值 */
|
|
68
|
+
formReset: (fields?: string[]) => void;
|
|
67
69
|
/** 排除指定表单后提交 */
|
|
68
70
|
excludeFormSubmitValues: (nameList?: NamePath[]) => Promise<AnyObjectType | undefined>;
|
|
69
71
|
/** 提交表单并验证 */
|
package/lib/index.js
CHANGED
|
@@ -27,4 +27,4 @@ var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",r=n.toS
|
|
|
27
27
|
*/function AD(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case vD:switch(e=e.type){case SD:case ND:case yD:case kD:case wD:case PD:return e;default:switch(e=e&&e.$$typeof){case ED:case OD:case ID:case TD:case CD:return e;default:return t}}case xD:return t}}}function LD(e){return AD(e)===ND}var FD={AsyncMode:SD,ConcurrentMode:ND,ContextConsumer:ED,ContextProvider:CD,Element:vD,ForwardRef:OD,Fragment:yD,Lazy:ID,Memo:TD,Portal:xD,Profiler:kD,StrictMode:wD,Suspense:PD,isAsyncMode:function(e){return LD(e)||AD(e)===SD},isConcurrentMode:LD,isContextConsumer:function(e){return AD(e)===ED},isContextProvider:function(e){return AD(e)===CD},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===vD},isForwardRef:function(e){return AD(e)===OD},isFragment:function(e){return AD(e)===yD},isLazy:function(e){return AD(e)===ID},isMemo:function(e){return AD(e)===TD},isPortal:function(e){return AD(e)===xD},isProfiler:function(e){return AD(e)===kD},isStrictMode:function(e){return AD(e)===wD},isSuspense:function(e){return AD(e)===PD},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===yD||e===ND||e===kD||e===wD||e===PD||e===DD||"object"==typeof e&&null!==e&&(e.$$typeof===ID||e.$$typeof===TD||e.$$typeof===CD||e.$$typeof===ED||e.$$typeof===OD||e.$$typeof===MD||e.$$typeof===zD||e.$$typeof===jD||e.$$typeof===RD)},typeOf:AD},_D=K(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var f=e.type;switch(f){case s:case u:case r:case i:case o:case p:return f;default:var g=f&&f.$$typeof;switch(g){case c:case d:case h:case m:case l:return g;default:return t}}case a:return t}}}var w=s,k=u,C=c,E=l,S=n,N=d,O=r,P=h,D=m,T=a,I=i,R=o,M=p,z=!1;function j(e){return y(e)===u}t.AsyncMode=w,t.ConcurrentMode=k,t.ContextConsumer=C,t.ContextProvider=E,t.Element=S,t.ForwardRef=N,t.Fragment=O,t.Lazy=P,t.Memo=D,t.Portal=T,t.Profiler=I,t.StrictMode=R,t.Suspense=M,t.isAsyncMode=function(e){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(e)||y(e)===s},t.isConcurrentMode=j,t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===r},t.isLazy=function(e){return y(e)===h},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===a},t.isProfiler=function(e){return y(e)===i},t.isStrictMode=function(e){return y(e)===o},t.isSuspense=function(e){return y(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===g)},t.typeOf=y}()}),VD=K(function(e){"production"===process.env.NODE_ENV?e.exports=FD:e.exports=_D}),KD=Object.getOwnPropertySymbols,HD=Object.prototype.hasOwnProperty,BD=Object.prototype.propertyIsEnumerable;var $D=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;var a=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==a.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(e,t){for(var n,a,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))HD.call(n,i)&&(r[i]=n[i]);if(KD){a=KD(n);for(var l=0;l<a.length;l++)BD.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},UD=Function.call.bind(Object.prototype.hasOwnProperty),WD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",YD=UD,qD=function(){};if("production"!==process.env.NODE_ENV){var GD=WD,XD={},ZD=YD;qD=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function QD(e,t,n,a,r){if("production"!==process.env.NODE_ENV)for(var o in e)if(ZD(e,o)){var i;try{if("function"!=typeof e[o]){var l=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=e[o](t,o,a,n,null,GD)}catch(e){i=e}if(!i||i instanceof Error||qD((a||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in XD)){XD[i.message]=!0;var c=r?r():"";qD("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}QD.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(XD={})};var JD=QD,eT=function(){};function tT(){return null}"production"!==process.env.NODE_ENV&&(eT=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function nT(){}function aT(){}aT.resetWarningCache=nT;var rT=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator;var a="<<anonymous>>",r={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(tT),arrayOf:function(e){return l(function(t,n,a,r,o){if("function"!=typeof e)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=t[n];if(!Array.isArray(l))return new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected an array.");for(var c=0;c<l.length;c++){var s=e(l,c,a,r,o+"["+c+"]",WD);if(s instanceof Error)return s}return null})},element:l(function(t,n,a,r,o){var l=t[n];return e(l)?null:new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected a single ReactElement.")}),elementType:l(function(e,t,n,a,r){var o=e[t];return VD.isValidElementType(o)?null:new i("Invalid "+a+" `"+r+"` of type `"+d(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return l(function(t,n,r,o,l){if(!(t[n]instanceof e)){var c=e.name||a;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:a)+"` supplied to `")+r+"`, expected instance of `"+c+"`.")}var s;return null})},node:l(function(e,t,n,a,r){return u(e[t])?null:new i("Invalid "+a+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return l(function(t,n,a,r,o){if("function"!=typeof e)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected an object.");for(var s in l)if(YD(l,s)){var u=e(l,s,a,r,o+"."+s,WD);if(u instanceof Error)return u}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&eT(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."),tT;return l(function(t,n,a,r,l){for(var c=t[n],s=0;s<e.length;s++)if(o(c,e[s]))return null;var u=JSON.stringify(e,function(e,t){return"symbol"===p(t)?String(t):t});return new i("Invalid "+r+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+u+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&eT("Invalid argument supplied to oneOfType, expected an instance of array."),tT;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return eT("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+t+"."),tT}return l(function(t,n,a,r,o){for(var l=[],c=0;c<e.length;c++){var s=(0,e[c])(t,n,a,r,o,WD);if(null==s)return null;s.data&&YD(s.data,"expectedType")&&l.push(s.data.expectedType)}return new i("Invalid "+r+" `"+o+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return l(function(t,n,a,r,o){var l=t[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");for(var u in e){var f=e[u];if("function"!=typeof f)return s(a,r,o,u,p(f));var m=f(l,u,a,r,o+"."+u,WD);if(m)return m}return null})},exact:function(e){return l(function(t,n,a,r,o){var l=t[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var u=$D({},t[n],e);for(var f in u){var m=e[f];if(YD(e,f)&&"function"!=typeof m)return s(a,r,o,f,p(m));if(!m)return new i("Invalid "+r+" `"+o+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(l,f,a,r,o+"."+f,WD);if(h)return h}return null})}};function o(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function i(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function l(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function o(o,l,c,s,u,d,p){if(s=s||a,d=d||c,p!==WD){if(t){var f=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 f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=s+":"+c;!n[m]&&r<3&&(eT("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+s+"`. 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."),n[m]=!0,r++)}}return null==l[c]?o?null===l[c]?new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `null`."):new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(e){return l(function(t,n,a,r,o,l){var c=t[n];return d(c)!==e?new i("Invalid "+r+" `"+o+"` of type `"+p(c)+"` supplied to `"+a+"`, expected `"+e+"`.",{expectedType:e}):null})}function s(e,t,n,a,r){return new i((e||"React class")+": "+t+" type `"+n+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var a=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!a)return!1;var r,o=a.call(t);if(a!==t.entries){for(;!(r=o.next()).done;)if(!u(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!u(i[1]))return!1}return!0;default:return!1}}function d(e){var t=typeof 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 p(e){if(null==e)return""+e;var t=d(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=p(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return i.prototype=Error.prototype,r.checkPropTypes=JD,r.resetWarningCache=JD.resetWarningCache,r.PropTypes=r,r},oT=function(){function e(e,t,n,a,r,o){if(o!==WD){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 t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:aT,resetWarningCache:nT};return n.PropTypes=n,n},iT=K(function(e){if("production"!==process.env.NODE_ENV){var t=VD;e.exports=rT(t.isElement,!0)}else e.exports=oT()}),lT=K(function(e,t){t.__esModule=!0,t.resizableProps=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(iT);t.resizableProps={axis:n.default.oneOf(["both","x","y","none"]),className:n.default.string,children:n.default.element.isRequired,draggableOpts:n.default.shape({allowAnyClick:n.default.bool,cancel:n.default.string,children:n.default.node,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:"undefined"!=typeof Element?n.default.instanceOf(Element):n.default.any,grid:n.default.arrayOf(n.default.number),handle:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];const[r]=t;return"both"===r.axis||"y"===r.axis?n.default.number.isRequired(...t):n.default.number(...t)},handle:n.default.oneOfType([n.default.node,n.default.func]),handleSize:n.default.arrayOf(n.default.number),lockAspectRatio:n.default.bool,maxConstraints:n.default.arrayOf(n.default.number),minConstraints:n.default.arrayOf(n.default.number),onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,resizeHandles:n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:n.default.number,width:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];const[r]=t;return"both"===r.axis||"x"===r.axis?n.default.number.isRequired(...t):n.default.number(...t)}}}),cT=K(function(e,t){t.__esModule=!0,t.default=void 0;var n=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?a:n){if(r.has(e))return r.get(e);r.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?r(i,t,o):i[t]=e[t]);return i}(e,t)}(f.default);const a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r.apply(null,arguments)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends n.Component{constructor(){super(...arguments),this.handleRefs={},this.lastHandleRect=null,this.slack=null,this.lastSize=null}componentWillUnmount(){this.resetData()}resetData(){this.lastHandleRect=this.slack=this.lastSize=null}runConstraints(e,t){const{minConstraints:n,maxConstraints:a,lockAspectRatio:r}=this.props;if(!n&&!a&&!r)return[e,t];if(r){const n=this.props.width/this.props.height,a=e-this.props.width,r=t-this.props.height;Math.abs(a)>Math.abs(r*n)?t=e/n:e=t*n}const[o,i]=[e,t];let[l,c]=this.slack||[0,0];return e+=l,t+=c,n&&(e=Math.max(n[0],e),t=Math.max(n[1],t)),a&&(e=Math.min(a[0],e),t=Math.min(a[1],t)),this.slack=[l+(o-e),c+(i-t)],[e,t]}resizeHandler(e,t){return(n,a)=>{let{node:r,deltaX:o,deltaY:i}=a;"onResizeStart"===e&&this.resetData();const l=("both"===this.props.axis||"x"===this.props.axis)&&"n"!==t&&"s"!==t,c=("both"===this.props.axis||"y"===this.props.axis)&&"e"!==t&&"w"!==t;if(!l&&!c)return;const s=t[0],u=t[t.length-1],d=r.getBoundingClientRect();if(null!=this.lastHandleRect){if("w"===u){o+=d.left-this.lastHandleRect.left}if("n"===s){i+=d.top-this.lastHandleRect.top}}this.lastHandleRect=d,"w"===u&&(o=-o),"n"===s&&(i=-i);let p=this.props.width+(l?o/this.props.transformScale:0),f=this.props.height+(c?i/this.props.transformScale:0);[p,f]=this.runConstraints(p,f),"onResizeStop"===e&&this.lastSize&&({width:p,height:f}=this.lastSize);const m=p!==this.props.width||f!==this.props.height;"onResizeStop"!==e&&(this.lastSize={width:p,height:f});const h="function"==typeof this.props[e]?this.props[e]:null;h&&!("onResize"===e&&!m)&&(n.persist?.(),h(n,{node:r,size:{width:p,height:f},handle:t})),"onResizeStop"===e&&this.resetData()}}renderResizeHandle(e,t){const{handle:a}=this.props;if(!a)return n.createElement("span",{className:`react-resizable-handle react-resizable-handle-${e}`,ref:t});if("function"==typeof a)return a(e,t);const r=i({ref:t},"string"==typeof a.type?{}:{handleAxis:e});return n.cloneElement(a,r)}render(){const e=this.props,{children:t,className:o,draggableOpts:l,width:c,height:s,handle:u,handleSize:d,lockAspectRatio:p,axis:f,minConstraints:m,maxConstraints:h,onResize:g,onResizeStop:b,onResizeStart:x,resizeHandles:y,transformScale:w}=e,k=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a);return(0,gD.cloneElement)(t,i(i({},k),{},{className:(o?`${o} `:"")+"react-resizable",children:[...n.Children.toArray(t.props.children),...y.map(e=>{const t=this.handleRefs[e]??(this.handleRefs[e]=n.createRef());return n.createElement(v.default.DraggableCore,r({},l,{nodeRef:t,key:`resizableHandle-${e}`,onStop:this.resizeHandler("onResizeStop",e),onStart:this.resizeHandler("onResizeStart",e),onDrag:this.resizeHandler("onResize",e)}),this.renderResizeHandle(e,t))})]}))}}t.default=c,c.propTypes=lT.resizableProps,c.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}}),sT=K(function(e,t){t.__esModule=!0,t.default=void 0;var n=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,a=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?a:n){if(r.has(e))return r.get(e);r.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?r(i,t,o):i[t]=e[t]);return i}(e,t)}(f.default),a=i(iT),r=i(cT);const o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l.apply(null,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends n.Component{constructor(){super(...arguments),this.state={width:this.props.width,height:this.props.height,propsWidth:this.props.width,propsHeight:this.props.height},this.onResize=(e,t)=>{const{size:n}=t;this.props.onResize?(e.persist?.(),this.setState(n,()=>this.props.onResize&&this.props.onResize(e,t))):this.setState(n)}}static getDerivedStateFromProps(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null}render(){const e=this.props,{handle:t,handleSize:a,onResize:i,onResizeStart:c,onResizeStop:u,draggableOpts:d,minConstraints:p,maxConstraints:f,lockAspectRatio:m,axis:h,width:g,height:b,resizeHandles:v,style:x,transformScale:y}=e,w=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,o);return n.createElement(r.default,{axis:h,draggableOpts:d,handle:t,handleSize:a,height:this.state.height,lockAspectRatio:m,maxConstraints:f,minConstraints:p,onResizeStart:c,onResize:this.onResize,onResizeStop:u,resizeHandles:v,transformScale:y,width:this.state.width},n.createElement("div",l({},w,{style:s(s({},x),{},{width:this.state.width+"px",height:this.state.height+"px"})})))}}t.default=d,d.propTypes=s(s({},lT.resizableProps),{},{children:a.default.element})}),uT=cT.default;sT.default;var dT,pT=e.memo(({onResize:t,width:r,...o})=>{const i=e.useCallback(e=>{e.stopPropagation(),e.preventDefault()},[]),[l,c]=e.useState("number"==typeof r?r:0);e.useEffect(()=>{"number"==typeof r&&c(r)},[r]);const s=e.useMemo(()=>({enableUserSelectHack:!1}),[]),u=l,d=l>0?n.jsx("span",{className:"react-resizable-handle",onMouseDown:i,onClick:i}):void 0,p=e.useRef(null),f=e.useRef(null),[m,h]=e.useState(null);e.useEffect(()=>{if("number"!=typeof r&&p.current){const e=p.current.offsetWidth;e>0&&c(e)}},[r]);const g=e=>Math.min(Math.max(e,80),1e4),b=e.useRef(null),v=l>0?(e,t)=>{const n=e;null!==b.current&&cancelAnimationFrame(b.current),b.current=requestAnimationFrame(()=>{C(n.clientX),c(g(t.size.width)),b.current=null})}:void 0,x=l>0?(e,n)=>{w(!1);const a=g(n.size.width);t&&t(e,{...n,size:{...n.size,width:a}}),C(null),h(null),null!==b.current&&(cancelAnimationFrame(b.current),b.current=null)}:void 0,[y,w]=e.useState(!1),[k,C]=e.useState(null),E=l>0?e=>{w(!0);C(e.clientX);const t=p.current;if(t){const e=t.closest(".ant-table-container");f.current=e??null,h(e?e.getBoundingClientRect():null)}}:void 0;return n.jsx(uT,{width:u,height:0,handle:d,onResizeStart:E,onResize:v,onResizeStop:x,draggableOpts:s,children:n.jsxs("th",{...o,ref:p,style:{position:"relative",width:u,...o.style},children:[y&&n.jsx(n.Fragment,{children:null!==k&&f.current&&m&&a.createPortal(n.jsx("span",{style:{position:"absolute",top:0,bottom:0,left:k-m.left,width:0,borderLeft:"1px dashed #ccc",pointerEvents:"none",zIndex:9}}),f.current)}),o.children]})})}),fT=e.createContext({dragDropManager:void 0});function mT(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(o=new Error(t.replace(/%s/g,function(){return a[i++]}))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(dT||(dT={}));var hT="dnd-core/INIT_COORDS",gT="dnd-core/BEGIN_DRAG",bT="dnd-core/PUBLISH_DRAG_SOURCE",vT="dnd-core/HOVER",xT="dnd-core/DROP",yT="dnd-core/END_DRAG";function wT(e,t){return{type:hT,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function kT(e){return kT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kT(e)}function CT(e){return"object"===kT(e)}var ET={type:hT,payload:{clientOffset:null,sourceClientOffset:null}};function ST(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},a=n.publishSource,r=void 0===a||a,o=n.clientOffset,i=n.getSourceClientOffset,l=e.getMonitor(),c=e.getRegistry();e.dispatch(wT(o)),function(e,t,n){mT(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){mT(n.getSource(e),"Expected sourceIds to be registered.")})}(t,l,c);var s=function(e,t){for(var n=null,a=e.length-1;a>=0;a--)if(t.canDragSource(e[a])){n=e[a];break}return n}(t,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){mT("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(s)}e.dispatch(wT(o,u));var d=c.getSource(s).beginDrag(l,s);if(null!=d){!function(e){mT(CT(e),"Item must be an object.")}(d),c.pinSource(s);var p=c.getSourceType(s);return{type:gT,payload:{itemType:p,item:d,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}else e.dispatch(ET)}}function NT(e){return function(){if(e.getMonitor().isDragging())return{type:bT}}}function OT(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function PT(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){mT(Array.isArray(e),"Expected targetIds to be an array.")}(t);var a=t.slice(0),r=e.getMonitor(),o=e.getRegistry();return function(e,t,n){mT(t.isDragging(),"Cannot call hover while not dragging."),mT(!t.didDrop(),"Cannot call hover after drop.");for(var a=0;a<e.length;a++){var r=e[a];mT(e.lastIndexOf(r)===a,"Expected targetIds to be unique in the passed array."),mT(n.getTarget(r),"Expected targetIds to be registered.")}}(a,r,o),function(e,t,n){for(var a=e.length-1;a>=0;a--){var r=e[a];OT(t.getTargetType(r),n)||e.splice(a,1)}}(a,o,r.getItemType()),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(a,r,o),{type:vT,payload:{targetIds:a,clientOffset:n||null}}}}function DT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function TT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DT(Object(n),!0).forEach(function(t){IT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function IT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RT(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();!function(e){mT(e.isDragging(),"Cannot call drop while not dragging."),mT(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var r=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);r.forEach(function(r,o){var i=function(e,t,n,a){var r=n.getTarget(e),o=r?r.drop(a,e):void 0;(function(e){mT(void 0===e||CT(e),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===t?{}:a.getDropResult());return o}(r,o,a,n),l={type:xT,payload:{dropResult:TT(TT({},t),i)}};e.dispatch(l)})}}function MT(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){mT(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var a=t.getSourceId();null!=a&&(n.getSource(a,!0).endDrag(t,a),n.unpinSource());return{type:yT}}}function zT(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function jT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AT=function(){function e(t,n){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),jT(this,"store",void 0),jT(this,"monitor",void 0),jT(this,"backend",void 0),jT(this,"isSetUp",!1),jT(this,"handleRefCountChange",function(){var e=a.store.getState().refCount>0;a.backend&&(e&&!a.isSetUp?(a.backend.setup(),a.isSetUp=!0):!e&&a.isSetUp&&(a.backend.teardown(),a.isSetUp=!1))}),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}var t,n,a;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:ST(e),publishDragSource:NT(e),hover:PT(e),drop:RT(e),endDrag:MT(e)}}(this);return Object.keys(n).reduce(function(a,r){var o,i=n[r];return a[r]=(o=i,function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var i=o.apply(e,a);void 0!==i&&t(i)}),a},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&zT(t.prototype,n),a&&zT(t,a),e}();function LT(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var FT="function"==typeof Symbol&&Symbol.observable||"@@observable",_T=function(){return Math.random().toString(36).substring(7).split("").join(".")},VT={INIT:"@@redux/INIT"+_T(),REPLACE:"@@redux/REPLACE"+_T(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+_T()}};function KT(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";var n=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function HT(e){var t=typeof e;return"production"!==process.env.NODE_ENV&&(t=KT(e)),t}function BT(e,t,n){var a;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?LT(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?LT(1):"Expected the enhancer to be a function. Instead, received: '"+HT(n)+"'");return n(BT)(e,t)}if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?LT(2):"Expected the root reducer to be a function. Instead, received: '"+HT(e)+"'");var r=e,o=t,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?LT(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?LT(4):"Expected the listener to be a function. Instead, received: '"+HT(e)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?LT(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var t=!0;return s(),l.push(e),function(){if(t){if(c)throw new Error("production"===process.env.NODE_ENV?LT(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");t=!1,s();var n=l.indexOf(e);l.splice(n,1),i=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("production"===process.env.NODE_ENV?LT(7):"Actions must be plain objects. Instead, the actual type was: '"+HT(e)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===e.type)throw new Error("production"===process.env.NODE_ENV?LT(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error("production"===process.env.NODE_ENV?LT(9):"Reducers may not dispatch actions.");try{c=!0,o=r(o,e)}finally{c=!1}for(var t=i=l,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:VT.INIT}),(a={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?LT(10):"Expected the nextReducer to be a function. Instead, received: '"+HT(e));r=e,p({type:VT.REPLACE})}})[FT]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error("production"===process.env.NODE_ENV?LT(11):"Expected the observer to be an object. Instead, received: '"+HT(e)+"'");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[FT]=function(){return this},e},a}var $T=function(e,t){return e===t};function UT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function WT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UT(Object(n),!0).forEach(function(t){YT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qT={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function GT(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qT,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case hT:case gT:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case vT:return e=n.clientOffset,t=r.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:WT(WT({},n),{},{clientOffset:r.clientOffset});case yT:case xT:return qT;default:return n}}var XT="dnd-core/ADD_SOURCE",ZT="dnd-core/ADD_TARGET",QT="dnd-core/REMOVE_SOURCE",JT="dnd-core/REMOVE_TARGET";function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function tI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eI(Object(n),!0).forEach(function(t){nI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aI={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function rI(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:aI,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case gT:return tI(tI({},n),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case bT:return tI(tI({},n),{},{isSourcePublic:!0});case vT:return tI(tI({},n),{},{targetIds:r.targetIds});case JT:return-1===n.targetIds.indexOf(r.targetId)?n:tI(tI({},n),{},{targetIds:(e=n.targetIds,t=r.targetId,e.filter(function(e){return e!==t}))});case xT:return tI(tI({},n),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case yT:return tI(tI({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function oI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case XT:case ZT:return e+1;case QT:case JT:return e-1;default:return e}}var iI=[],lI=[];function cI(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case vT:break;case XT:case ZT:case JT:case QT:return iI;default:return lI}var t=e.payload,n=t.targetIds,a=void 0===n?[]:n,r=t.prevTargetIds,o=void 0===r?[]:r,i=function(e,t){var n=new Map,a=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(a),t.forEach(a);var r=[];return n.forEach(function(e,t){1===e&&r.push(t)}),r}(a,o),l=i.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$T;if(e.length!==t.length)return!1;for(var a=0;a<e.length;++a)if(!n(e[a],t[a]))return!1;return!0}(a,o);if(!l)return iI;var c=o[o.length-1],s=a[a.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function sI(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function uI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function dI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uI(Object(n),!0).forEach(function(t){pI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fI(){var e,t,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:cI(a.dirtyHandlerIds,{type:r.type,payload:dI(dI({},r.payload),{},{prevTargetIds:(e=a,t="dragOperation.targetIds",n=[],t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:n||null},e))})}),dragOffset:GT(a.dragOffset,r),refCount:oI(a.refCount,r),dragOperation:rI(a.dragOperation,r),stateId:sI(a.stateId)}}function mI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function gI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}iI.__IS_NONE__=!0,lI.__IS_ALL__=!0;var bI=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gI(this,"store",void 0),gI(this,"registry",void 0),this.store=t,this.registry=n}var t,n,a;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;mT("function"==typeof e,"listener must be a function."),mT(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId;return this.store.subscribe(function(){var r=t.store.getState(),o=r.stateId;try{var i=o===a||o===a+1&&!function(e,t){if(e===iI)return!1;if(e===lI||void 0===t)return!0;var n,a=(n=e,t.filter(function(e){return n.indexOf(e)>-1}));return a.length>0}(r.dirtyHandlerIds,n);i||e()}finally{a=o}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;mT("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var a=t.store.getState().dragOffset;a!==n&&(n=a,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return mT(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return mT(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&OT(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return mT(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),a=this.getItemType();if(a&&!OT(n,a))return!1;var r=this.getTargetIds();if(!r.length)return!1;var o=r.indexOf(e);return t?o===r.length-1:o>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,a=e.initialSourceClientOffset,t&&n&&a?mI(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,a),n):null;var e,t,n,a}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?mI(t,n):null;var e,t,n}}],n&&hI(t.prototype,n),a&&hI(t,a),e}(),vI=0;function xI(e){return xI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xI(e)}function yI(e,t){t&&Array.isArray(e)?e.forEach(function(e){return yI(e,!1)}):mT("string"==typeof e||"symbol"===xI(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const wI="undefined"!=typeof global?global:self,kI=wI.MutationObserver||wI.WebKitMutationObserver;function CI(e){return function(){const t=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(t),clearInterval(n),e()}}}const EI="function"==typeof kI?function(e){let t=1;const n=new kI(e),a=document.createTextNode("");return n.observe(a,{characterData:!0}),function(){t=-t,a.data=t}}:CI;class SI{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const NI=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=EI(this.flush),this.requestErrorThrow=CI(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},OI=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new SI(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(NI.registerPendingError);function PI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function DI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return II(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 II(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function II(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function RI(e){var t=(vI++).toString();switch(e){case dT.SOURCE:return"S".concat(t);case dT.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function MI(e){switch(e[0]){case"S":return dT.SOURCE;case"T":return dT.TARGET;default:mT(!1,"Cannot parse handler ID: ".concat(e))}}function zI(e,t){var n=e.entries(),a=!1;do{var r=n.next(),o=r.done;if(TI(r.value,2)[1]===t)return!0;a=!!o}while(!a);return!1}var jI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),DI(this,"types",new Map),DI(this,"dragSources",new Map),DI(this,"dropTargets",new Map),DI(this,"pinnedSourceId",null),DI(this,"pinnedSource",null),DI(this,"store",void 0),this.store=t}var t,n,a;return t=e,n=[{key:"addSource",value:function(e,t){yI(e),function(e){mT("function"==typeof e.canDrag,"Expected canDrag to be a function."),mT("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),mT("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(dT.SOURCE,e,t);return this.store.dispatch(function(e){return{type:XT,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){yI(e,!0),function(e){mT("function"==typeof e.canDrop,"Expected canDrop to be a function."),mT("function"==typeof e.hover,"Expected hover to be a function."),mT("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(dT.TARGET,e,t);return this.store.dispatch(function(e){return{type:ZT,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return zI(this.dragSources,e)||zI(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return mT(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return mT(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return mT(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return mT(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return MI(e)===dT.SOURCE}},{key:"isTargetId",value:function(e){return MI(e)===dT.TARGET}},{key:"removeSource",value:function(e){var t,n=this;mT(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:QT,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},NI.enqueueTask(OI.create(t))}},{key:"removeTarget",value:function(e){mT(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:JT,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);mT(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){mT(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var a=RI(e);return this.types.set(a,t),e===dT.SOURCE?this.dragSources.set(a,n):e===dT.TARGET&&this.dropTargets.set(a,n),a}}],n&&PI(t.prototype,n),a&&PI(t,a),e}();function AI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return BT(fI,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),r=new bI(a,new jI(a)),o=new AT(a,r),i=e(o,t,n);return o.receiveBackend(i),o}var LI=["children"];function FI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _I(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 _I(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function VI(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var KI=0,HI=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),BI=e.memo(function(t){var a=t.children,r=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$I(),n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=t;r[HI]||(r[HI]={dragDropManager:AI(e,t,n,a)});return r[HI]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(VI(t,LI)),o=FI(r,2),i=o[0],l=o[1];return e.useEffect(function(){if(l){var e=$I();return++KI,function(){0===--KI&&(e[HI]=null)}}},[]),n.jsx(fT.Provider,Object.assign({value:i},{children:a}),void 0)});function $I(){return"undefined"!=typeof global?global:window}function UI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function WI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YI=!1,qI=!1,GI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),WI(this,"internalMonitor",void 0),WI(this,"sourceId",null),this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){mT(!YI,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return YI=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{YI=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;mT(!qI,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return qI=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{qI=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&UI(t.prototype,n),a&&UI(t,a),e}();function XI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function ZI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QI=!1,JI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ZI(this,"internalMonitor",void 0),ZI(this,"targetId",null),this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;mT(!QI,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return QI=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{QI=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&XI(t.prototype,n),a&&XI(t,a),e}();function eR(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e.isValidElement(n)){var r=n;return t(r,a),r}var o=n;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var i=a?function(e){return t(e,a)}:t;return function(t,n){var a=t.ref;return mT("string"!=typeof a,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),a?e.cloneElement(t,{ref:function(e){nR(a,e),nR(n,e)}}):e.cloneElement(t,{ref:n})}(o,i)}}function tR(e){var t={};return Object.keys(e).forEach(function(n){var a=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var r=eR(a);t[n]=function(){return r}}}),t}function nR(e,t){"function"==typeof e?e(t):e.current=t}function aR(e){return aR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aR(e)}function rR(e){return null!==e&&"object"===aR(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function oR(e,t,n,a){var r=n?n.call(a,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=e[s],d=t[s];if(!1===(r=n?n.call(a,u,d,s):void 0)||void 0===r&&u!==d)return!1}return!0}function iR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function lR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cR=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),lR(this,"hooks",tR({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,rR(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,rR(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}})),lR(this,"handlerId",null),lR(this,"dragSourceRef",null),lR(this,"dragSourceNode",void 0),lR(this,"dragSourceOptionsInternal",null),lR(this,"dragSourceUnsubscribe",void 0),lR(this,"dragPreviewRef",null),lR(this,"dragPreviewNode",void 0),lR(this,"dragPreviewOptionsInternal",null),lR(this,"dragPreviewUnsubscribe",void 0),lR(this,"lastConnectedHandlerId",null),lR(this,"lastConnectedDragSource",null),lR(this,"lastConnectedDragSourceOptions",null),lR(this,"lastConnectedDragPreview",null),lR(this,"lastConnectedDragPreviewOptions",null),lR(this,"backend",void 0),this.backend=t}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!oR(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!oR(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&iR(t.prototype,n),a&&iR(t,a),e}();function sR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function uR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dR=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),uR(this,"hooks",tR({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,rR(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}})),uR(this,"handlerId",null),uR(this,"dropTargetRef",null),uR(this,"dropTargetNode",void 0),uR(this,"dropTargetOptionsInternal",null),uR(this,"unsubscribeDropTarget",void 0),uR(this,"lastConnectedHandlerId",null),uR(this,"lastConnectedDropTarget",null),uR(this,"lastConnectedDropTargetOptions",null),uR(this,"backend",void 0),this.backend=t}var t,n,a;return t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!oR(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&sR(t.prototype,n),a&&sR(t,a),e}();var pR="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function fR(e){return fR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fR(e)}function mR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function hR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gR=function(){function e(t,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),hR(this,"spec",void 0),hR(this,"monitor",void 0),hR(this,"connector",void 0),this.spec=t,this.monitor=n,this.connector=a}var t,n,a;return t=e,(n=[{key:"beginDrag",value:function(){var e,t=this.spec,n=this.monitor;return null!==(e="object"===fR(t.item)?t.item:"function"==typeof t.item?t.item(n):{})&&void 0!==e?e:null}},{key:"canDrag",value:function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}},{key:"isDragging",value:function(e,t){var n=this.spec,a=this.monitor,r=n.isDragging;return r?r(a):t===e.getSourceId()}},{key:"endDrag",value:function(){var e=this.spec,t=this.monitor,n=this.connector,a=e.end;a&&a(t.getItem(),t),n.reconnect()}}])&&mR(t.prototype,n),a&&mR(t,a),e}();function bR(){var t=e.useContext(fT).dragDropManager;return mT(null!=t,"Expected drag drop context"),t}function vR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xR(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 xR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function yR(t,n,a){var r=bR(),o=function(t,n,a){var r=e.useMemo(function(){return new gR(t,n,a)},[n,a]);return e.useEffect(function(){r.spec=t},[t]),r}(t,n,a),i=function(t){return e.useMemo(function(){var e=t.type;return mT(null!=e,"spec.type must be defined"),e},[t])}(t);pR(function(){if(null!=i){var e=function(e,t,n){var a=n.getRegistry(),r=a.addSource(e,t);return[r,function(){return a.removeSource(r)}]}(i,o,r),t=vR(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}},[r,n,a,o,i])}function wR(e){return function(e){if(Array.isArray(e))return kR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return kR(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 kR(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function CR(t,n){var a=wR(n||[]);return null==n&&"function"!=typeof t&&a.push(t),e.useMemo(function(){return"function"==typeof t?t():t},a)}var ER=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var a,r,o;if(Array.isArray(t)){if((a=t.length)!=n.length)return!1;for(r=a;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((a=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=a;0!==r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=a;0!==r--;){var i=o[r];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n};function SR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return NR(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 NR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function OR(t,n,a){var r=SR(e.useState(function(){return n(t)}),2),o=r[0],i=r[1],l=e.useCallback(function(){var e=n(t);ER(o,e)||(i(e),a&&a())},[o,t,a]);return pR(l),[o,l]}function PR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return DR(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 DR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function TR(e,t,n){return function(e,t,n){var a=PR(OR(e,t,n),2),r=a[0],o=a[1];return pR(function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})},[e,o]),r}(t,e||function(){return{}},function(){return n.reconnect()})}function IR(t){return e.useMemo(function(){return t.hooks.dragSource()},[t])}function RR(t){return e.useMemo(function(){return t.hooks.dragPreview()},[t])}function MR(t,n){var a=CR(t,n);mT(!a.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r,o=(r=bR(),e.useMemo(function(){return new GI(r)},[r])),i=function(t,n){var a=bR(),r=e.useMemo(function(){return new cR(a.getBackend())},[a]);return pR(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),pR(function(){return r.dragPreviewOptions=n||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,n]),r}(a.options,a.previewOptions);return yR(a,o,i),[TR(a.collect,o,i),IR(i),RR(i)]}function zR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function jR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AR=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),jR(this,"spec",void 0),jR(this,"monitor",void 0),this.spec=t,this.monitor=n}var t,n,a;return t=e,(n=[{key:"canDrop",value:function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}},{key:"hover",value:function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}},{key:"drop",value:function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}}])&&zR(t.prototype,n),a&&zR(t,a),e}();function LR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return FR(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 FR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function _R(t,n,a){var r=bR(),o=function(t,n){var a=e.useMemo(function(){return new AR(t,n)},[n]);return e.useEffect(function(){a.spec=t},[t]),a}(t,n),i=function(t){var n=t.accept;return e.useMemo(function(){return mT(null!=t.accept,"accept must be defined"),Array.isArray(n)?n:[n]},[n])}(t);pR(function(){var e=function(e,t,n){var a=n.getRegistry(),r=a.addTarget(e,t);return[r,function(){return a.removeTarget(r)}]}(i,o,r),t=LR(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c},[r,n,o,a,i.map(function(e){return e.toString()}).join("|")])}function VR(t){return e.useMemo(function(){return t.hooks.dropTarget()},[t])}function KR(t,n){var a,r=CR(t,n),o=(a=bR(),e.useMemo(function(){return new JI(a)},[a])),i=function(t){var n=bR(),a=e.useMemo(function(){return new dR(n.getBackend())},[n]);return pR(function(){return a.dropTargetOptions=t||null,a.reconnect(),function(){return a.disconnectDropTarget()}},[t]),a}(r.options);return _R(r,o,i),[TR(r.collect,o,i),VR(i)]}k('.drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}.editable-cell-value-wrap{cursor:pointer;min-height:20px;min-width:50px;position:relative}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{border:1px dashed #5860f8;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}');const{Option:HR}=Nu,BR=f.default.createContext(null),$R=e.memo(({vc:t,open:a,index:r,moveRow:o,className:i,style:l,...c})=>{const[s]=dy.useForm(),u=e.useRef(null),[{isOver:d,dropClassName:p},f]=KR({accept:"DraggableBodyRow",collect:e=>{const{index:t}=e.getItem()||{};return t===r?{}:{isOver:e.isOver(),dropClassName:t<r?" drop-over-downward":" drop-over-upward"}},drop:e=>{o(e.index,r)}}),[,m]=MR({type:"DraggableBodyRow",item:{index:r},collect:e=>({isDragging:e.isDragging()})});a&&f(m(u));const h={ref:u,className:`${i}${d?p:""}`,style:{cursor:a?"move":"auto",...l},...c};return n.jsx(dy,{size:"small",component:!1,form:s,children:n.jsx(BR.Provider,{value:s,children:t?t.body.row(h,u):n.jsx("tr",{...h})})})},(e,t)=>e.index===t.index&&e.open===t.open&&e.vc===t.vc&&e.className===t.className&&e.style===t.style&&e.moveRow===t.moveRow);var UR=e.memo(({vc:t,columns:a,record:r,recordIndex:o,dataIndex:i,title:l,rowSpanNum:c,colSpanNum:s,rowSpan:u,colSpan:d,editable:p,inputType:f,valueType:h,valueEnum:g,recordSelectField:b,controlRender:v,render:y,formChange:w,remoteConfig:k,children:C,formItemProps:E,handleSave:S,placeholder:N,triggerRemoteSearch:O,...P})=>{const D=e.useContext(BR),[T,I]=e.useState(!1),[R,M]=e.useState(!1),[z,j]=e.useState({}),A=e.useRef(null);e.useEffect(()=>{T&&A.current.focus()},[T]),e.useEffect(()=>{"RemoteSearch"===h&&r&&r[i]&&k?.remoteApi&&O&&L(void 0,i,r,k?.remoteApi)},[k?.remoteApi,r?.[i],O]);const L=(e,t,n,a)=>{a&&(M(!0),a(e,n).then(e=>{M(!1),t&&j(n=>({...n,[t]:e}))}))},F=()=>{_()},_=()=>{I(!1)},V=()=>{let e=r[i];null!=e&&""!==e&&("DatePicker"!==h&&"DateTimePicker"!==h||(e=x.default(e)),"status"===i&&(e=String(e))),I(!T),D.setFieldsValue({[i]:e})},K=e.useCallback(e=>{const t={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(t).includes(h)&&e[i]&&(e[i]=e[i].format(t[h])),e},[h,i]),H=e.useMemo(()=>{if(h&&i){if(g&&("Select"===h||"AutoComplete"===h))return pP(g,r[i]);if("RemoteSearch"===h&&z[i])return pP(z[i],r[i]);if(r[b]&&"RecordSelect"===h)return pP(r[b],r[i]);if(x.default.isMoment(r[i]))return K({...r})[i]}return C},[h,i,g,z,r,C,b,K]),B=(e,t)=>{let a=null;const o=(e,t)=>{let n="";const a=function(e){for(let t of e)if(t)if(dP({data:t,type:"String"}))n+=t;else{const e=t.props.children;dP({data:e,type:"Object"})&&a([e]),dP({data:e,type:"Array"})&&a(e),dP({data:e,type:"String"})&&(n+=e)}};return a([t.children]),n.toLowerCase().indexOf(e.toLowerCase())>=0},l=e=>m.default.isArray(e)?e.map((e,t)=>n.jsx(HR,{value:e.value,children:e.label},t)):null;switch(e){case"RecordSelect":a=n.jsx(Nu,{ref:A,open:T,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:N||t,onChange:$,onBlur:F,optionFilterProp:"children",filterOption:o,children:l(r[b])});break;case"Select":a=n.jsx(Nu,{ref:A,open:T,dropdownMatchSelectWidth:!1,onChange:$,onBlur:F,placeholder:N||t,children:l(g)});break;case"DatePicker":a=n.jsx(mx,{ref:A,open:T,onChange:$,onBlur:F,placeholder:N||t});break;case"DateTimePicker":a=n.jsx(mx,{ref:A,open:T,onChange:$,onBlur:F,placeholder:N||t,showTime:!0});break;case"AutoComplete":a=n.jsx(Nu,{ref:A,open:T,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:N||t,onChange:$,onBlur:F,optionFilterProp:"children",filterOption:o,children:l(g)});break;case"RemoteSearch":let e=g;z[i]&&(e=z[i]),a=n.jsx(Nu,{ref:A,open:T,mode:k.remoteMode,placeholder:N||t,notFoundContent:R?n.jsx(Yy,{size:"small"}):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:$,onBlur:F,onFocus:()=>L(void 0,i,r,k.remoteApi),onSearch:e=>L(e,i,r,k.remoteApi),children:i&&l(e)});break;default:a=n.jsx(Hb,{ref:A,onPressEnter:$,onBlur:$,placeholder:N||t,type:f||"text"})}return a},$=async()=>{try{const e=await D.validateFields();let t={...r,...e};t[i]=t[i]||void 0,t=K(t),w&&(t=await w(t)||t),r[i]!==t[i]&&S(t,i),_()}catch(e){console.log("保存表单字段失败:",e)}};let U=C;const W=e.useMemo(()=>y?y(r[i],r,o):H,[y,r,o,i,H]);U=p?T?n.jsx(dy.Item,{style:{margin:0},name:i,rules:E?E.rules:void 0,children:B(h,l)}):n.jsx("div",{className:"editable-cell-value-wrap",onClick:V,children:W}):W,v&&(U=v(r,U));const Y=e.useCallback((e,a)=>t?n.jsx(t.body.cell,{...e,children:a}):n.jsx("td",{...e,children:a}),[t]);return u||d?Y({...P,rowSpan:u,colSpan:d,title:r&&r[i]},U):0!==c&&0!==s?Y({...P,rowSpan:c,colSpan:u,title:r&&r[i]},U):null});function WR(e){var t=null;return function(){return null==t&&(t=e()),t}}function YR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function qR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GR=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),qR(this,"entered",[]),qR(this,"isNodeInDocument",void 0),this.isNodeInDocument=t}var t,n,a;return t=e,n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,a=function(e){return n.add(e)};e.forEach(a),t.forEach(a);var r=[];return n.forEach(function(e){return r.push(e)}),r}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,a=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),a>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&YR(t.prototype,n),a&&YR(t,a),e}(),XR=WR(function(){return/firefox/i.test(navigator.userAgent)}),ZR=WR(function(){return Boolean(window.safari)});function QR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function JR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eM=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),JR(this,"xs",void 0),JR(this,"ys",void 0),JR(this,"c1s",void 0),JR(this,"c2s",void 0),JR(this,"c3s",void 0);for(var a=t.length,r=[],o=0;o<a;o++)r.push(o);r.sort(function(e,n){return t[e]<t[n]?-1:1});for(var i,l,c=[],s=[],u=0;u<a-1;u++)i=t[u+1]-t[u],l=n[u+1]-n[u],c.push(i),s.push(l/i);for(var d=[s[0]],p=0;p<c.length-1;p++){var f=s[p],m=s[p+1];if(f*m<=0)d.push(0);else{i=c[p];var h=c[p+1],g=i+h;d.push(3*g/((g+h)/f+(g+i)/m))}}d.push(s[s.length-1]);for(var b,v=[],x=[],y=0;y<d.length-1;y++){b=s[y];var w=d[y],k=1/c[y],C=w+d[y+1]-b-b;v.push((b-w-C)*k),x.push(C*k*k)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=x}var t,n,a;return t=e,n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,a=this.c1s,r=this.c2s,o=this.c3s,i=t.length-1;if(e===t[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=t[l=Math.floor(.5*(c+s))];if(u<e)c=l+1;else{if(!(u>e))return n[l];s=l-1}}var d=e-t[i=Math.max(0,s)],p=d*d;return n[i]+a[i]*d+r[i]*p+o[i]*d*p}}],n&&QR(t.prototype,n),a&&QR(t,a),e}();function tM(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),a=n.top;return{x:n.left,y:a}}function nM(e){return{x:e.clientX,y:e.clientY}}function aM(e,t,n,a,r){var o,i,l="IMG"===(o=t).nodeName&&(XR()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=tM(l?e:t),s={x:n.x-c.x,y:n.y-c.y},u=e.offsetWidth,d=e.offsetHeight,p=a.anchorX,f=a.anchorY,m=function(e,t,n,a){var r=e?t.width:n,o=e?t.height:a;return ZR()&&e&&(o/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:o}}(l,t,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=r.offsetX,v=r.offsetY,x=0===v||v;return{x:0===b||b?b:new eM([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:x?v:function(){var e=new eM([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return ZR()&&l&&(e+=(window.devicePixelRatio-1)*g),e}()}}var rM,oM="__NATIVE_FILE__",iM="__NATIVE_URL__",lM="__NATIVE_TEXT__",cM="__NATIVE_HTML__",sM=Object.freeze({__proto__:null,FILE:oM,URL:iM,TEXT:lM,HTML:cM});function uM(e,t,n){var a=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=a?a:n}function dM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pM=(dM(rM={},oM,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),dM(rM,cM,{exposeProperties:{html:function(e,t){return uM(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),dM(rM,iM,{exposeProperties:{urls:function(e,t){return uM(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),dM(rM,lM,{exposeProperties:{text:function(e,t){return uM(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),rM);function fM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function mM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hM=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mM(this,"item",void 0),mM(this,"config",void 0),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,a;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(a){n[a]={value:t.config.exposeProperties[a](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&fM(t.prototype,n),a&&fM(t,a),e}();function gM(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(pM).filter(function(e){return pM[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}function bM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function vM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xM=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vM(this,"ownerDocument",null),vM(this,"globalContext",void 0),vM(this,"optionsArgs",void 0),this.globalContext=t,this.optionsArgs=n}var t,n,a;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&bM(t.prototype,n),a&&bM(t,a),e}();function yM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function wM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yM(Object(n),!0).forEach(function(t){CM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function CM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EM=function(){function e(t,n,a){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),CM(this,"options",void 0),CM(this,"actions",void 0),CM(this,"monitor",void 0),CM(this,"registry",void 0),CM(this,"enterLeaveCounter",void 0),CM(this,"sourcePreviewNodes",new Map),CM(this,"sourcePreviewNodeOptions",new Map),CM(this,"sourceNodes",new Map),CM(this,"sourceNodeOptions",new Map),CM(this,"dragStartSourceIds",null),CM(this,"dropTargetIds",[]),CM(this,"dragEnterTargetIds",[]),CM(this,"currentNativeSource",null),CM(this,"currentNativeHandle",null),CM(this,"currentDragSourceNode",null),CM(this,"altKeyPressed",!1),CM(this,"mouseMoveTimeoutTimer",null),CM(this,"asyncEndDragFrameId",null),CM(this,"dragOverTargetIds",null),CM(this,"lastClientOffset",null),CM(this,"hoverRafId",null),CM(this,"getSourceClientOffset",function(e){var t=r.sourceNodes.get(e);return t&&tM(t)||null}),CM(this,"endDragNativeItem",function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)}),CM(this,"isNodeInDocument",function(e){return Boolean(e&&r.document&&r.document.body&&r.document.body.contains(e))}),CM(this,"endDragIfSourceWasRemovedFromDOM",function(){var e=r.currentDragSourceNode;null==e||r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()}),CM(this,"handleTopDragStartCapture",function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]}),CM(this,"handleTopDragStart",function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=nM(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var a=e.dataTransfer,o=gM(a);if(r.monitor.isDragging()){if(a&&"function"==typeof a.setDragImage){var i=r.monitor.getSourceId(),l=r.sourceNodes.get(i),c=r.sourcePreviewNodes.get(i)||l;if(c){var s=r.getCurrentSourcePreviewNodeOptions(),u=aM(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});a.setDragImage(c,u.x,u.y)}}try{null==a||a.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout(function(){return r.actions.publishDragSource()},0)}else if(o)r.beginDragNativeItem(o);else{if(a&&!a.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}}),CM(this,"handleTopDragEndCapture",function(){r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()}),CM(this,"handleTopDragEnterCapture",function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=gM(t);n&&r.beginDragNativeItem(n,t)}}),CM(this,"handleTopDragEnter",function(e){var t=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=e.altKey,t.length>0&&r.actions.hover(t,{clientOffset:nM(e)}),t.some(function(e){return r.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))}),CM(this,"handleTopDragOverCapture",function(){r.dragOverTargetIds=[]}),CM(this,"handleTopDragOver",function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.lastClientOffset=nM(e),null===r.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(r.hoverRafId=requestAnimationFrame(function(){r.monitor.isDragging()&&r.actions.hover(t||[],{clientOffset:r.lastClientOffset}),r.hoverRafId=null})),(t||[]).some(function(e){return r.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))}),CM(this,"handleTopDragLeaveCapture",function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&setTimeout(function(){return r.endDragNativeItem()},0)}),CM(this,"handleTopDropCapture",function(e){var t;(r.dropTargetIds=[],r.isDraggingNativeItem())?(e.preventDefault(),null===(t=r.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):gM(e.dataTransfer)&&e.preventDefault();r.enterLeaveCounter.reset()}),CM(this,"handleTopDrop",function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:nM(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.monitor.isDragging()&&r.actions.endDrag()}),CM(this,"handleSelectStart",function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}),this.options=new xM(n,a),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new GR(this.isNodeInDocument)}var t,n,a;return t=e,n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var a=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){a.sourcePreviewNodes.delete(e),a.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var a=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var r=function(t){return a.handleDragStart(t,e)},o=function(e){return a.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),function(){a.sourceNodes.delete(e),a.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,a=function(t){return n.handleDragEnter(t,e)},r=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",a),t.addEventListener("dragover",r),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",a),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return wM({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return wM({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(sM).some(function(t){return sM[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new hM(pM[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}],n&&kM(t.prototype,n),a&&kM(t,a),e}();const SM=function(e,t,n){return new EM(e,t,n)},NM=e=>n.jsx(BI,{backend:SM,context:window,children:e.children});k(".ant-table-wrapper .ant-table-cell{color:#333}.ant-table-wrapper .ant-table-thead>tr>th{font-weight:700}.ant-table-wrapper .ant-table-tbody>tr>td,.ant-table-wrapper .ant-table-thead>tr>td,.ant-table-wrapper .ant-table-thead>tr>th{padding:6px 8px}.ant-table-wrapper .ant-table-tbody>tr>td.ant-table-cell .ant-form-item .ant-form-item-control-input{min-height:auto}.ant-table-wrapper .ant-table-tbody .btn-operate{height:26px;width:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-bottom:10px;margin-top:10px;padding-bottom:10px;padding-top:10px}.ant-table-wrapper .react-resizable{background-clip:padding-box;position:relative}.ant-table-wrapper .react-resizable-handle{bottom:0;cursor:col-resize;height:100%;position:absolute;right:-5px;width:10px;z-index:1}");var OM=e.memo(e.forwardRef((t,a)=>{const r=e.useMemo(()=>{const e=t.extra||{};return{tableConfig:e.tableConfig,virtual:e.virtual,rowType:e.rowType,scroll:e.scroll,apiMethod:e.apiMethod,columns:e.columns||[],data:e.data,drag:e.drag,onSelect:e.onSelect,hidSortColumn:e.hidSortColumn,paginationConfig:e.paginationConfig,getCheckboxProps:e.getCheckboxProps,resultFilter:e.resultFilter,getTableSuccessData:e.getTableSuccessData}},[t.extra]),o=e.useRef(),l=e.useRef(!0),c=e.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),s=e.useRef([]),[u,d]=e.useState(r.columns),[p,f]=e.useState(!1),[h,g]=N.useSetState({listData:[],selectRowIds:[],selectRowArray:[]}),[b,v]=e.useState({x:void 0,y:330}),x=e.useMemo(()=>r.tableConfig&&r.tableConfig.rowKey?r.tableConfig.rowKey:"id",[r.tableConfig]),y=e.useRef(),w=e.useRef(0),k=e.useMemo(()=>{const e=i.v4(),t=r.virtual;if(t&&t.open){const n={...t.config,vid:t.config?.vid||e,height:t.config?.height||500,resetTopWhenDataChange:t.config?.resetTopWhenDataChange||!1},a=h.listData.length||0;return(!y.current||w.current!==a)&&(console.log("创建虚拟滚动列表"),y.current=uD(n),w.current=a),y.current}y.current=void 0,w.current=0},[r.virtual,h.listData.length]),C=e.useMemo(()=>{const e={header:{cell:pT},body:{row:e=>n.jsx($R,{...e,vc:k}),cell:e=>n.jsx(UR,{...e,vc:k,columns:u})}};try{if(k){const t=e;return{...k,header:t.header,body:{...k.body,cell:t.body.cell,row:t.body.row}}}return e}catch(t){return console.error("虚拟列表配置失败,请检查配置项",t),e}},[u,k]),E=!(!m.default.isFunction(r.apiMethod)||!l.current)&&{size:"small",position:["bottomCenter"],showTotal:e=>`共${e}条`,showSizeChanger:!0,showQuickJumper:!0,...c.current},S=e.useCallback((e,t)=>{const n=new Map;return e.forEach(e=>{n.set(e[x],e)}),t.forEach(e=>{n.set(e[x],e)}),Array.from(n.values())},[x]),O=e.useCallback(async e=>{let t=!0;f(!0),e&&(void 0!==e.updateSelected&&(t=e.updateSelected,delete e.updateSelected),"not-reset"===e.pagination&&delete e.pagination,o.current={...o.current,...e});try{const n={...o.current};for(let e in c.current){const t=c.current[e];"orderByInfo"===e&&(n.orderByInfo=t),"current"===e&&(n.page=t),"pageSize"===e&&(n.size=n.size||t)}if(e&&e.current&&(n.page=e.current,c.current.current=e.current),r.apiMethod){delete n.current;const e=await r.apiMethod(m.default.pickBy(n,m.default.identity));let a=[];m.default.isArray(e.data.content)&&(!1!==r.paginationConfig?l.current=!0:l.current=!1,a=e.data.content,c.current.total=e.data.total,c.current.pages=e.data.pages),m.default.isArray(e.data)&&(l.current=!1,a=e.data),r.resultFilter&&(a=await r.resultFilter(a)),t&&g(e=>{let t=[...e.selectRowIds],n=[];const r=a=>{if(e.selectRowIds.length)for(let o of a){for(let a of e.selectRowIds)o[x]===a&&(t.push(a),n.push(o));o.children&&r(o.children)}};return r(a),e.selectRowIds=Array.from(new Set(t)),e.selectRowArray=S(e.selectRowArray,n),e}),g(e=>(e.listData=a,e)),r.getTableSuccessData&&r.getTableSuccessData(e)}}catch(e){}f(!1)},[r,x,S,g]),P=e.useCallback(e=>{!m.default.isEqual(e,c.current)&&l.current&&(c.current={...c.current,...e},O())},[O]),D=e.useCallback((e,t,n)=>{const{order:a}=n;e.orderByInfo=void 0,a&&(e.orderByInfo=`${n.field}:${"ascend"===a?1:-1}`),P(e)},[P]),T={fixed:!0,type:r.rowType,selectedRowKeys:h.selectRowIds,getCheckboxProps:r.getCheckboxProps,onSelectAll:(e,t,n)=>{g(t=>{let a=[...t.selectRowIds],o=[...t.selectRowArray];return e?(a=m.default.uniq([...a,...n.map(e=>e[x])]),o=m.default.uniqBy([...o,...n],x)):(a=a.filter(e=>!n.some(t=>t[x]===e)),o=o.filter(e=>!n.some(t=>t[x]===e[x]))),r.onSelect&&r.onSelect(o,a),t.selectRowIds=a,t.selectRowArray=o,t})},onSelect:(e,t)=>{g(n=>{let a=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===r.rowType&&(t?(a.push(e[x]),o.push(e)):(a=a.filter(t=>t!==e[x]),o=o.filter(t=>t[x]!==e[x]))),"radio"===r.rowType&&t&&(a=[e[x]],o=[e]),r.onSelect&&r.onSelect(o,a),n.selectRowIds=a,n.selectRowArray=o,n})}},I=e=>(t,{size:n})=>{d(t=>{const a=[...t];return a[e]={...a[e],width:n.width},s.current=a,a})},R=e.useCallback(e=>{g(t=>{let n=JSON.parse(JSON.stringify(t.listData));for(let[t,a]of n.entries())if(a[x]===e[x]){n[t]={...n[t],...e};break}return t.listData=n,t})},[x,g]),M=e.useCallback(async(e,t)=>{const n=h.listData[e],a=OP(h.listData,{$splice:[[e,1],[t,0,n]]});f(!0);try{if(r.drag){const n=JSON.parse(JSON.stringify(a)),o=JSON.parse(JSON.stringify(h.listData)),i=[e,t].sort();!1!==await r.drag.moveRow(e,t,n,o,n.slice(i[0],i[1]+1))&&g(e=>(e.listData=n,e))}}finally{f(!1)}},[r.drag,g,h.listData]),z=e.useCallback((e,t)=>({index:t,moveRow:M,open:r.drag&&r.drag.open}),[r.drag,M]),j=e.useCallback(e=>{let t=[];const n=e=>{for(let a of e){for(let e of h.selectRowIds)a[x]===e&&t.push(a);a.children&&n(a.children)}};return n(e),t},[x,h.selectRowIds]);return e.useEffect(()=>{(async()=>{let e=[...r.columns];r.hidSortColumn||e.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(e,t,n)=>{const a=c.current;return Object.keys(a).length?((a.current||0)-1)*(a.pageSize||0)+n+1:n+1}});for(let[t,n]of e.entries()){let a={...n,onHeaderCell:e=>({width:e.width,onResize:I(t)}),onCell:(e,t)=>({record:e,recordIndex:t,dataIndex:n.dataIndex,title:n.title,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(e,t):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(e,t):n.colSpanNum,editable:"function"==typeof n.editable?n.editable(e,t):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,render:n.render,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:R,placeholder:n.placeholder,triggerRemoteSearch:n.triggerRemoteSearch})},r=s.current.find(e=>e.dataIndex===n.dataIndex&&e.title===n.title);r&&(a.width=r.width),e[t]=a}d(e)})()},[r.columns,r.hidSortColumn,R]),e.useEffect(()=>{m.default.isArray(r.data)&&g(e=>(e.listData=JSON.parse(JSON.stringify(r.data)),e))},[r.data,g]),e.useEffect(()=>{const e=document.getElementById("slider-menu"),t=document.getElementById("router-render");if(void 0!==r.scroll?.x||void 0!==r.scroll?.y)v(e=>({...e,...r.scroll}));else if(e&&t){let n=parseInt(window.getComputedStyle(t,null).paddingLeft);v(t=>(t.x=document.body.clientWidth-e.clientWidth-(2*n+43),t))}},[r.scroll]),e.useEffect(()=>{r.paginationConfig&&(c.current={...c.current,...r.paginationConfig})},[r.paginationConfig]),e.useImperativeHandle(a,()=>({setTableLoading:e=>{f(e)},getPages:()=>({...c.current}),resetQueryParameters:e=>{o.current={...e}},getTableList:async(e,t)=>{e&&("not-reset"===e.pagination?e.current=c.current.current:void 0===e.current&&(e.current=1),e.clearSelectIds&&(delete e.clearSelectIds,g(e=>(e.selectRowArray=[],e.selectRowIds=[],e)))),await O(e),t&&t()},setRowSelected:(e,t)=>{let n=e;!0===t&&(n=Array.from(new Set([...h.selectRowIds,...e]))),g({selectRowIds:n})},setRowSelectedBy:e=>{g({selectRowArray:e})},getSelectIds:()=>h.selectRowIds,clearSelectIds:()=>{g({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>{const e=j(h.listData);return m.default.cloneDeep(S(h.selectRowArray,e))},removeSelectIds:e=>{if(!Array.isArray(e)||0===e.length)return;const t=(t,n)=>t.filter(t=>"string"==typeof t?!e.includes(t):!e.includes(t[n]));g({selectRowIds:t(h.selectRowIds,x),selectRowArray:t(h.selectRowArray,x)})},getStaticDataList:()=>{try{return m.default.cloneDeep(h.listData||[])}catch(e){return[]}},setStaticDataList:(e,t)=>{if(e)try{if("object"!=typeof e||Array.isArray(e))Array.isArray(e)&&g(t=>(t.listData=m.default.cloneDeep(e),t));else{const t=e;g(e=>(e.listData=h.listData.map(e=>e[x]===t[x]?{...e,...t}:e),e))}t&&t()}catch(e){}}})),n.jsx(wP,{children:n.jsx(NM,{children:n.jsx(AE,{bordered:!0,rowKey:"id",rowClassName:"editable-row",loading:p,components:C,onRow:z,columns:u,dataSource:h.listData,rowSelection:r.rowType?T:void 0,pagination:E,onChange:D,scroll:b,...r.tableConfig})})})}),(e,t)=>{const n=e.extra||{},a=t.extra||{};if(!(n.apiMethod===a.apiMethod&&n.onSelect===a.onSelect&&n.drag?.moveRow===a.drag?.moveRow&&n.getCheckboxProps===a.getCheckboxProps&&n.resultFilter===a.resultFilter&&n.getTableSuccessData===a.getTableSuccessData))return!1;const r=e=>{if(!e)return e;const{apiMethod:t,onSelect:n,drag:a,getCheckboxProps:r,resultFilter:o,getTableSuccessData:i,...l}=e;return{...l,drag:a?{...a,moveRow:void 0}:void 0}};try{return m.default.isEqual(r(n),r(a))}catch(e){return r(n)===r(a)}});k("");const PM=e=>{const t={...e};return delete t.outerHeight,n.jsx(mb,{className:"empty-wrap",style:{minHeight:e&&e.outerHeight?e.outerHeight:400},align:"middle",justify:"center",children:n.jsx(da,{description:"暂无数据",...t})})};k(".from-table-modal .ant-modal-body{padding-top:15px}.from-table-modal .ant-modal-body .search-form{margin-bottom:8px}.from-table-modal .ant-modal-body .ant-table-wrapper .ant-pagination{margin-bottom:0}.from-table-modal .from-table-modal-foot{margin-top:20px}");const{Link:DM,Paragraph:TM}=dO;var IM=e.forwardRef(function(t,a){const r=e.useRef(null),o=e.useRef(),[i,l]=N.useSetState({saveLoading:!1,selectedRows:[]}),c=e.useMemo(()=>t.tableColumnsList&&t.tableColumnsList.tableConfig&&t.tableColumnsList.tableConfig.rowKey||"id",[t.tableColumnsList]),s=e.useMemo(()=>{const e=t.width||0;return e>=500&&e<=800?{span:7}:e>800&&e<=1e3?{span:6}:e>1e3&&e<=1200?{span:5}:e>1200?{span:4}:{span:8}},[t.width]),u=(e,t)=>{if(o.current){let n=[],a=[];"all"===e&&o.current.clearSelectIds(),"odd"===e&&t&&(n=[t[c]],a=i.selectedRows.filter(e=>e[c]!==t[c]),o.current.removeSelectIds(n)),l({selectedRows:a})}},d=e.useCallback(async()=>{if(r.current&&o.current){let e=await r.current.formSubmit();if(e&&Object.keys(e).length){for(let t in e){const n="YYYY-MM-DD HH:mm:ss";x.default(e[t],n,!0).isValid()&&(e[t]=x.default(e[t]).format(n))}e={clearSelectIds:!0,...e},void 0!==t.clearSelectIds&&(e.clearSelectIds=t.clearSelectIds),e.clearSelectIds&&l(e=>(e.selectedRows=[],e)),t.manualParameterChange&&(e=t.manualParameterChange(e)),t.searchCallback?t.searchCallback(e).then(t=>{t&&o.current?.getTableList(e)}):o.current.getTableList(e)}}else o.current?.getTableList()},[t,l]),p=()=>{if(r.current){let e=[];const n=t.searchNoResetFiled||[];if(t.searchFormList)for(let a of t.searchFormList){if(a.unionConfig)for(let t of a.unionConfig.unionItems)t.name&&!n.includes(t.name)&&e.push(t.name);a.name&&!n.includes(a.name)&&e.push(a.name)}r.current.formReset(e)}d()};return e.useEffect(()=>{t.visible&&(t.autoGetList&&o.current?.getTableList(),t.openSelected&&t.openSelected.visible&&l(e=>(e.selectedRows=t.openSelected?.defaultValues||[],o.current?.setRowSelectedBy(e.selectedRows),o.current?.setRowSelected(e.selectedRows.map(e=>e[c])),e)))},[t.autoGetList,t.openSelected,t.visible,c,l]),e.useImperativeHandle(a,()=>({...r.current,...o.current,setSavaLoading:e=>{l({saveLoading:e})}})),n.jsxs(iP,{className:"from-table-modal",forceRender:!0,maskClosable:!1,footer:null,width:t.width,visible:t.visible,title:t.title||"弹窗",onCancel:()=>{t.onCancel&&t.onCancel()},...t.modalConfig,children:[t.topExtra,t.searchFormList?n.jsx(SP,{ref:r,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=t.searchFormList,f?f.map(e=>("Select"===e.componentName&&e.selectData&&e.selectData.length&&(e.selectData.some(e=>"全部"===e.label)||(e.selectData=[{label:"全部",value:""},...e.selectData])),e)):[]),formConfig:t.formConfig,render:()=>t.searchFormList&&t.searchFormList.length?n.jsxs(vk,{size:10,children:[n.jsx(Vd,{type:"primary",onClick:()=>{d()},children:"查询"}),n.jsx(Vd,{className:"btn-reset",onClick:p,children:"重置"})]}):n.jsx(n.Fragment,{})}):null,n.jsxs(mb,{...t.rowProps,children:[t.leftSlot?n.jsx(vb,{...t.leftSlot.colProps,children:t.leftSlot.jsx}):null,n.jsx(vb,{...t.colProps,children:n.jsxs(mb,{gutter:10,children:[n.jsx(vb,{span:t.openSelected&&t.openSelected.visible?16:24,children:n.jsx(OM,{ref:o,extra:{rowType:t.tableColumnsList.rowType,apiMethod:t.apiMethod,columns:t.tableColumnsList.list,data:t.data,onSelect:(e,n)=>{((e,n)=>{l({selectedRows:n.map(n=>{let a={};const r=e.find(e=>e[c]===n);if(a[c]=n,t.openSelected&&t.openSelected.fileName&&(a[t.openSelected.fileName]=n),r&&(a=r),t.openSelected){const e=t.openSelected.fileName,r=t.openSelected.defaultValues;if(e&&r){const t=r.find(e=>e[c]===n);t&&(a[e]=t[e])}}return a})})})(e,n),t.onSelect&&t.onSelect(e,n)},virtual:t.virtual,getTableSuccessData:t.getTableSuccessData,tableConfig:t.tableColumnsList.tableConfig,scroll:{x:"max-content"}}})}),t.openSelected&&t.openSelected.visible?n.jsx(vb,{span:8,children:n.jsx(wb,{title:"已选列表",size:"small",bodyStyle:{height:t.openSelected.height||330,overflowY:"auto"},extra:n.jsxs(n.Fragment,{children:[t.rightExport&&t.rightExport.open?n.jsx(DM,{style:{marginRight:"8px"},onClick:()=>(()=>{const e=t.rightExport?.fileName,n=t.rightExport?.headres,a=i.selectedRows;if(a&&a.length&&n&&n.length){let t="";const r=n.map(e=>e.title);t+=r.join(",")+"\n",a.forEach(e=>{const a=n.map(t=>{const n=void 0!==e[t.key]?e[t.key]:"";return`"${String(n).replace(/"/g,'""')}"`});t+=a.join(",")+"\n"});const o=new Blob(["\ufeff"+t],{type:"text/csv;charset=utf-8;"}),i=document.createElement("a"),l=URL.createObjectURL(o);i.setAttribute("href",l),i.setAttribute("download",`${e}.csv`),i.style.visibility="hidden",document.body.appendChild(i),i.click(),document.body.removeChild(i)}else ni.warn("请选择导出数据",1.5)})(),children:"导出"}):null,n.jsx(DM,{onClick:()=>u("all"),children:"全部移除"})]}),children:i.selectedRows.length?i.selectedRows.map(e=>{const a=e[c],r=e[t.openSelected?.fileName];return n.jsxs(mb,{gutter:12,children:[n.jsx(vb,{span:11,title:r,children:n.jsx(TM,{ellipsis:!0,children:r})}),n.jsx(vb,{span:9,title:a,children:n.jsx(TM,{ellipsis:!0,children:a})}),n.jsx(vb,{span:4,children:n.jsx(DM,{onClick:()=>u("odd",e),children:"移除"})})]},a)}):n.jsx(PM,{outerHeight:200})})}):null]})}),t.rightSlot?n.jsx(vb,{...t.rightSlot.colProps,children:t.rightSlot.jsx}):null]}),n.jsx(mb,{className:"from-table-modal-foot",justify:"center",children:n.jsx(vb,{children:n.jsxs(vk,{size:20,children:[t.onCancel?n.jsx(Vd,{onClick:()=>t.onCancel&&t.onCancel(),children:"关闭"}):null,t.onConfirm?n.jsx(Vd,{type:"primary",loading:i.saveLoading,onClick:()=>{let e=o.current?.getSelectRowsArray()||[],n=[];const a=o.current?.getStaticDataList()||[];t.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),t.onConfirm(e,n,a).then(e=>{l({saveLoading:!1}),e&&setTimeout(()=>{t.onCancel&&t.onCancel()},100)}).catch(e=>{l({saveLoading:!1}),ni.warn(e,1.5)}))},children:"确定"}):null]})})})]});var f});var RM=e.createContext({});function MM(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=MM(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}var zM={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};const jM=Math.round;function AM(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],a=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)a[e]=t(a[e]||0,n[e]||"",e);return n[3]?a[3]=n[3].includes("%")?a[3]/100:a[3]:a[3]=1,a}const LM=(e,t,n)=>0===n?e:e/100;function FM(e,t){const n=t||255;return e>n?n:e<0?0:e}class _M{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const n=e.trim();function a(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(a("rgb"))this.fromRgbString(n);else if(a("hsl"))this.fromHslString(n);else if(a("hsv")||a("hsb"))this.fromHsvString(n);else{const r=zM[n.toLowerCase()];r&&this.fromHexString(parseInt(r,36).toString(16).padStart(6,"0"))}}else if(e instanceof _M)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=FM(e.r),this.g=FM(e.g),this.b=FM(e.b),this.a="number"==typeof e.a?FM(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:jM(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let a=this.getLightness()-e/100;return a<0&&(a=0),this._c({h:t,s:n,l:a,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let a=this.getLightness()+e/100;return a>1&&(a=1),this._c({h:t,s:n,l:a,a:this.a})}mix(e,t=50){const n=this._c(e),a=t/100,r=e=>(n[e]-this[e])*a+this[e],o={r:jM(r("r")),g:jM(r("g")),b:jM(r("b")),a:jM(100*r("a"))/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),a=e=>jM((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:a("r"),g:a("g"),b:a("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const a=(this.b||0).toString(16);if(e+=2===a.length?a:"0"+a,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=jM(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=jM(100*this.getSaturation()),n=jM(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const a=this.clone();return a[e]=FM(t,n),a}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:a}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof a?a:1,t<=0){const e=jM(255*n);this.r=e,this.g=e,this.b=e}let r=0,o=0,i=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(r=c,o=s):l>=1&&l<2?(r=s,o=c):l>=2&&l<3?(o=c,i=s):l>=3&&l<4?(o=s,i=c):l>=4&&l<5?(r=s,i=c):l>=5&&l<6&&(r=c,i=s);const u=n-c/2;this.r=jM(255*(r+u)),this.g=jM(255*(o+u)),this.b=jM(255*(i+u))}fromHsv({h:e,s:t,v:n,a:a}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof a?a:1;const r=jM(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const o=e/60,i=Math.floor(o),l=o-i,c=jM(n*(1-t)*255),s=jM(n*(1-t*l)*255),u=jM(n*(1-t*(1-l))*255);switch(i){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=AM(e,LM);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=AM(e,LM);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=AM(e,(e,t)=>t.includes("%")?jM(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const VM=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function KM(e,t,n){let a;return a=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,a<0?a+=360:a>=360&&(a-=360),a}function HM(e,t,n){if(0===e.h&&0===e.s)return e.s;let a;return a=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,a>1&&(a=1),n&&5===t&&a>.1&&(a=.1),a<.06&&(a=.06),Math.round(100*a)/100}function BM(e,t,n){let a;return a=n?e.v+.05*t:e.v-.15*t,a=Math.max(0,Math.min(1,a)),Math.round(100*a)/100}const $M=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$M.primary=$M[5];const UM="data-rc-order",WM="data-rc-priority",YM=new Map;function qM({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function GM(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function XM(e){return Array.from((YM.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function ZM(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:n,prepend:a,priority:r=0}=t,o=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(a),i="prependQueue"===o,l=document.createElement("style");l.setAttribute(UM,o),i&&r&&l.setAttribute(WM,`${r}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const c=GM(t),{firstChild:s}=c;if(a){if(i){const e=(t.styles||XM(c)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(UM)))return!1;const t=Number(e.getAttribute(WM)||0);return r>=t});if(e.length)return c.insertBefore(l,e[e.length-1].nextSibling),l}c.insertBefore(l,s)}else c.appendChild(l);return l}function QM(e,t,n={}){const a=GM(n),r=XM(a),o={...n,styles:r};!function(e,t){const n=YM.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=ZM("",t),{parentNode:a}=n;YM.set(e,a),e.removeChild(n)}}(a,o);const i=function(e,t={}){let{styles:n}=t;return n||=XM(GM(t)),n.find(n=>n.getAttribute(qM(t))===e)}(t,o);if(i)return o.csp?.nonce&&i.nonce!==o.csp?.nonce&&(i.nonce=o.csp?.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=ZM(e,o);return l.setAttribute(qM(o),t),l}function JM(e){return e?.getRootNode?.()}function ez(e){return function(e){return JM(e)instanceof ShadowRoot}(e)?JM(e):null}let tz={};const nz=[];function az(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){const e=nz.reduce((e,t)=>t(e??"","warning"),t);e&&console.error(`Warning: ${e}`)}}function rz(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){const e=nz.reduce((e,t)=>t(e??"","note"),t);e&&console.warn(`Note: ${e}`)}}function oz(e,t,n){t||tz[n]||(e(!1,n),tz[n]=!0)}function iz(e,t){oz(az,e,t)}function lz(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function cz(e={}){return Object.keys(e).reduce((t,n)=>{const a=e[n];if("class"===n)t.className=a,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=a;var r;return t},{})}function sz(e,t,n){return n?f.default.createElement(e.tag,{key:t,...cz(e.attrs),...n},(e.children||[]).map((n,a)=>sz(n,`${t}-${e.tag}-${a}`))):f.default.createElement(e.tag,{key:t,...cz(e.attrs)},(e.children||[]).map((n,a)=>sz(n,`${t}-${e.tag}-${a}`)))}function uz(e){return function(e,t={}){const n=[],a=new _M(e),r=a.toHsv();for(let e=5;e>0;e-=1){const t=new _M({h:KM(r,e,!0),s:HM(r,e,!0),v:BM(r,e,!0)});n.push(t)}n.push(a);for(let e=1;e<=4;e+=1){const t=new _M({h:KM(r,e),s:HM(r,e),v:BM(r,e)});n.push(t)}return"dark"===t.theme?VM.map(({index:e,amount:a})=>new _M(t.backgroundColor||"#141414").mix(n[e],a).toHexString()):n.map(e=>e.toHexString())}(e)[0]}function dz(e){return e?Array.isArray(e)?e:[e]:[]}iz.preMessage=e=>{nz.push(e)},iz.resetWarned=function(){tz={}},iz.noteOnce=function(e,t){oz(rz,e,t)};const pz={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const fz=t=>{const{icon:n,className:a,onClick:r,style:o,primaryColor:i,secondaryColor:l,...c}=t,s=p.useRef(null);let u=pz;if(i&&(u={primaryColor:i,secondaryColor:l||uz(i)}),(t=>{const{csp:n,prefixCls:a,layer:r}=e.useContext(RM);let o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";a&&(o=o.replace(/anticon/g,a)),r&&(o=`@layer ${r} {\n${o}\n}`),e.useEffect(()=>{const e=ez(t.current);QM(o,"@ant-design-icons",{prepend:!r,csp:n,attachTo:e})},[])})(s),function(e,t){iz(e,`[@ant-design/icons] ${t}`)}(lz(n),`icon should be icon definiton, but got ${n}`),!lz(n))return null;let d=n;return d&&"function"==typeof d.icon&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),sz(d.icon,`svg-${d.name}`,{className:a,onClick:r,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:s})};fz.displayName="IconReact",fz.getTwoToneColors=function(){return{...pz}},fz.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){pz.primaryColor=e,pz.secondaryColor=t||uz(e),pz.calculated=!!t};var mz=fz;function hz(e){const[t,n]=dz(e);return mz.setTwoToneColors({primaryColor:t,secondaryColor:n})}function gz(){return gz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},gz.apply(this,arguments)}hz($M.primary);const bz=p.forwardRef((e,t)=>{const{className:n,icon:a,spin:r,rotate:o,tabIndex:i,onClick:l,twoToneColor:c,...s}=e,{prefixCls:u="anticon",rootClassName:d}=p.useContext(RM),f=function(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=MM(e))&&(a&&(a+=" "),a+=t);return a}(d,u,{[`${u}-${a.name}`]:!!a.name,[`${u}-spin`]:!!r||"loading"===a.name},n);let m=i;void 0===m&&l&&(m=-1);const h=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0,[g,b]=dz(c);return p.createElement("span",gz({role:"img","aria-label":a.name},s,{ref:t,tabIndex:m,onClick:l,className:f}),p.createElement(mz,{icon:a,primaryColor:g,secondaryColor:b,style:h}))});bz.getTwoToneColor=function(){const e=mz.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},bz.setTwoToneColor=hz,"production"!==process.env.NODE_ENV&&(bz.displayName="AntdIcon");var vz=bz;function xz(){return xz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},xz.apply(this,arguments)}const yz=(e,t)=>p.createElement(vz,xz({},e,{ref:t,icon:ai})),wz=p.forwardRef(yz);
|
|
28
28
|
/** */"production"!==process.env.NODE_ENV&&(wz.displayName="CloseOutlined");var kz=wz,Cz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 010-12.9l246-178a8 8 0 0112.7 6.5v46.8z"}}]},name:"left-circle",theme:"filled"};function Ez(){return Ez=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ez.apply(this,arguments)}const Sz=(e,t)=>p.createElement(vz,Ez({},e,{ref:t,icon:Cz})),Nz=p.forwardRef(Sz);
|
|
29
29
|
/** */"production"!==process.env.NODE_ENV&&(Nz.displayName="LeftCircleFilled");var Oz=Nz,Pz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z"}}]},name:"right-circle",theme:"filled"};function Dz(){return Dz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Dz.apply(this,arguments)}const Tz=(e,t)=>p.createElement(vz,Dz({},e,{ref:t,icon:Pz})),Iz=p.forwardRef(Tz);
|
|
30
|
-
/** */"production"!==process.env.NODE_ENV&&(Iz.displayName="RightCircleFilled");var Rz=Iz;k(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");k(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;overflow-x:hidden;overflow-y:auto;padding-right:5px}.form-modal .ant-modal-body .modal-form-height .generate-form.ant-form-horizontal.ant-form .ant-row.ant-form-item{margin-bottom:4px}.form-modal .form-modal-foot{margin-top:20px}");var Mz=e.forwardRef((t,a)=>{const r=e.useRef(),[o,i]=N.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let e=await(r.current?.formSubmit());if(e){if(e.endTime&&e.startTime&&x.default(e.endTime).isBefore(e.startTime))return void ni.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(e={...e,...t.submitExtraParameters},t.switchTransform)for(let n=0;n<t.switchTransform.length;n++)e[t.switchTransform[n]]?e[t.switchTransform[n]]="1":e[t.switchTransform[n]]="0";if(t.submitRemoveField)for(let n=0;n<t.submitRemoveField.length;n++)e[t.submitRemoveField[n]]&&delete e[t.submitRemoveField[n]];for(let t in e){const n="YYYY-MM-DD HH:mm:ss";x.default(e[t],n,!0).isValid()&&(e[t]=x.default(e[t]).format(n))}if(t.manualParameterChange&&(e=t.manualParameterChange(e)),t.manualVerification&&!t.manualVerification(e))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(e=m.default.omitBy(e,m.default.isNil),t.submitApi&&e){if(t.id?(e.id=t.id,n=await t.submitApi(e,"put")):n=await t.submitApi(e,"post"),1===n.code){if(t.onConfirm){if(!1===t.onConfirm(n))return}ni.success("操作成功",1.5),t.onCancel&&t.onCancel()}i({saveLoading:!1})}else t.onConfirm&&e&&t.onConfirm(e)}catch(e){i({saveLoading:!1})}}};return e.useEffect(()=>{!1===t.visible&&i({saveLoading:!1})},[t.visible,i]),e.useEffect(()=>{i({disabled:t.disable})},[t.disable,i]),e.useImperativeHandle(a,()=>({setFormLoading:e=>{i({loading:e})},setFormSaveLoading:e=>{i({saveLoading:e})},setFormFields:e=>{r.current&&r.current.setFormFields(e)},getFormValues:e=>r.current?.getFormValues(e),setFormValues:e=>{r.current&&r.current.setFormValues(e)},excludeFormSubmitValues:async e=>{if(r.current){const n=t.formList.filter(t=>!e?.includes(t.name));return await(r.current?.formSubmit(n.map(e=>e.name)))}return{}},getFormSubmitValues:async e=>r.current?await(r.current?.formSubmit(e)):{}})),n.jsx(iP,{className:`form-modal ${t.className}`,width:t.width?t.width:600,visible:t.visible,title:t.title||"对话框",onCancel:t.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:n.jsxs(Yy,{spinning:o.loading,children:[n.jsxs("div",{className:"modal-form-height",children:[t.topRender?t.topRender:null,n.jsx(SP,{ref:r,formConfig:{labelCol:{span:24},...t.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:t.colGirdConfig||{span:12},list:t.formList}),t.children&&t.children]}),(()=>{const a=(()=>{const e=[n.jsx(Vd,{onClick:()=>t.onCancel&&t.onCancel(),children:"关闭"},-1)];return o.disabled||e.push(n.jsx(Vd,{type:"primary",loading:o.saveLoading,onClick:l,children:"提交"},-2)),e})(),r=e=>n.jsx(mb,{className:"form-modal-foot",justify:"center",children:n.jsx(vb,{children:n.jsx(vk,{size:20,children:e})})});if(t.footer)return t.footer;if(t.footBtnList){const{model:n,data:o}=t.footBtnList,i=o.map((t,n)=>{const{children:a,...r}=t;return e.createElement(Vd,{...r,key:n},a)});if("new"===n)return r(i);if("before"===n)return r([...i,...a]);if("after"===n)return r([...a,...i])}return r(a)})()]})})});k('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{align-items:center;border:2px solid #fff;border-radius:4px;cursor:pointer;display:flex;height:36px;justify-content:center;overflow:hidden;width:36px}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');k(".button-group{align-items:center;background-color:#f2f2f3;background-image:none;border:0;border-radius:4px;box-shadow:0 2px 0 rgba(0,0,0,.015);cursor:pointer;display:inline-flex;font-size:12px;height:30px;justify-content:center;line-height:1.15;outline:none;padding:3px 15px;position:relative;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);user-select:none;white-space:nowrap}.button-group:hover{background-color:#e3e5e6}.button-group-large{height:40px}.button-group-small{height:26px}.button-group-primary{background-color:#5860f8;color:#fff}.button-group-primary:hover{background-color:#828cff}.button-group .anticon{font-size:12px;margin-left:5px}.button-group .anticon.anticon-close{align-items:center;background-color:#878d99;border-radius:100%;color:#fff;display:inline-flex;font-size:10px;height:16px;justify-content:center;position:absolute;right:-5px;top:-5px;width:16px}");const zz="button-group";var jz=e.forwardRef((t,a)=>{const[r,o]=N.useSetState({type:"checkbox",deleteOpen:!1,data:[]}),i=e=>{let n=zz;return t.buttonClassName&&(n=`${n} ${t.buttonClassName}`),t.size&&(n=`${n} ${zz}-${t.size}`),e.selected&&(n=`${n} ${zz}-primary`),n};return e.useEffect(()=>{if(t.checkType&&o({type:t.checkType}),t.deleteOpen&&o({deleteOpen:t.deleteOpen}),t.data){const e=t.data.map(e=>(void 0===e.selected&&(e.selected=!1),e));o({data:e})}},[t,o]),e.useImperativeHandle(a,()=>({getButtonGroupSelected:()=>r.data.filter(e=>e.selected)})),n.jsx(mb,{className:t.className,gutter:[10,10],children:r.data.map((e,a)=>n.jsx(vb,{children:n.jsxs("div",{className:i(e),onClick:()=>((e,n)=>{let a=[];t.deleteOpen||(r.data&&("checkbox"===r.type&&(r.data[n].selected=!e.selected,a=r.data),"radio"===r.type&&(a=r.data.map((t,a)=>{let r=!1;return n===a&&(r=!e.selected),{...t,selected:r}}))),t.onChange&&t.onChange(a),o({data:a}))})(e,a),children:[e.name,r.deleteOpen?n.jsx(kz,{onClick:()=>(e=>{if(r.data){const n=r.data.filter((t,n)=>e!==n);t.onChange&&t.onChange(n),o({data:n})}})(a)}):null]})},a))})});exports.Affix=e=>{let t={...e},a="";return t.targetId&&(a=t.targetId,delete t.targetId),n.jsx(ol,{target:()=>document.getElementById(a||"router-render")||window,...t})},exports.ButtonGroup=jz,exports.Dialog=iP,exports.Empty=PM,exports.GaoDeMap=lP,exports.GenerateForm=SP,exports.GenerateTable=OM,exports.IconSelectionModal=e=>{const[t,a]=N.useSetState({iconModal:{selected:-1,list:["iconmove","iconmap","iconnotice","iconpassword","iconNotvisible1","iconphone","iconpic1","iconpin","iconproduct","iconQRcode1","iconreeor","iconreduce","iconresonserate","iconremind","iconrising1","iconRightarrow","iconrmb1","iconsave","iconscanning","iconseleted","iconsearchcart","iconshare","iconRightbutton","iconsorting","iconsound-Mute","iconsound-filling","iconsuggest","iconsuccess","iconsupplier-features","iconswitch","iconsuspended","iconTop","iconsmile","icontradealert","icontopsales","icontradingvolume","iconupload","iconviewlarger","iconwarning","iconset","iconDaytimemode","iconunlock","iconexchangerate","iconall","iconbussiness-man","iconcomponent","iconcode","iconcopy","icondollar","iconhistory","iconeditor","icondata","icongift","iconintegral","iconnav-list","iconpic","iconNotvisible","iconplay","iconQRcode","iconrmb","iconsimilar-product","iconExportservices","iconsendinquiry","iconcolumn","iconadd-account","iconcolumn1","iconadd","iconadd-cart","iconarrow-right","iconarrow-left","iconall1","iconarrow-up","iconashbin","iconatm","iconbad","iconattachent","iconbrowse","iconcalendar","iconcart-full","iconcalculator","iconcameraswitching","iconcecurity-protection","iconcategory","iconclose","iconcertified-supplier","iconcart-Empty","iconcode1","iconcopy1","iconcoupons","iconconnections","iconcry","iconclock","iconCurrencyConverter","iconcut","icondata1","iconCustomermanagement","icondouble-arro-right","iconcustomization","icondouble-arrow-left","icondiscount","icondownload","icondollar1","icondefault-template","iconeditor1","iconetrical-equipm","iconellipsis","iconemail","iconfalling","iconfilter","iconfolder","iconhelp","icongood","icongift1","iconhot","iconinspection","iconleftbutton","iconleftarrow","iconlink","iconloading","iconphone1"]}}),r={height:34,fontSize:22};return n.jsxs(iP,{className:"icon-selected-modal",width:e.width?e.width:590,visible:e.visible,title:e.title?e.title:"图标选择",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:[n.jsx(mb,{gutter:[10,10],children:t.iconModal.list.map((e,o)=>n.jsx(vb,{children:n.jsx("div",{className:`avatar-selected ${o===t.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{a(e=>(e.iconModal.selected=o,e))},children:n.jsx("i",{className:`iconfont ${e}`,title:e,style:r})})},o))}),n.jsx(mb,{className:"icon-selected-foot",justify:"center",children:n.jsx(vb,{children:n.jsxs(vk,{size:20,children:[n.jsx(Vd,{onClick:e.onCancel,children:"关闭"}),n.jsx(Vd,{type:"primary",onClick:()=>{const n=t.iconModal.list[t.iconModal.selected];e.onConfirm&&e.onConfirm(n)},children:"确定"})]})})})]})},exports.LayoutFormModal=Mz,exports.LayoutTableModal=IM,exports.QuicklyProcessForms=t=>{const a=e.useRef(),r=e.useRef({page:1,pages:1,size:10}),[o,i]=N.useSetState({id:void 0,saveLoading:!1,data:[]}),l={fontSize:24},c=e.useCallback((e,t)=>e.map(e=>{if(t)for(let n of t)e[n]&&(e[n]=x.default(e[n]));return e}),[]),s=e.useCallback(async e=>{if(t.apiMethod)try{let n="";const a=await t.apiMethod(r.current);console.log("getList useCallback",a,"queryPagination.current",r.current);const o=a.data.content;r.current.pages=a.data.pages,"up"===e&&(n=o[o.length-1].id),"down"===e&&(n=o[0].id),i({id:n||t.id,data:o})}catch(e){}},[t,i]),u=e.useMemo(()=>{let e=0;for(let[t,n]of o.data.entries())if(n.id===o.id){e=t;break}return e},[o.data,o.id]),d=e.useCallback(async()=>{if(t.apiMethod){if(1===r.current.page&&0===u)return ni.destroy(),void ni.warn("已经是第一页啦~",1.5);if(u-1<0)return r.current.page=r.current.page-1,s("up"),void(t.onChange&&t.onChange(o.data[u],r.current))}else if(0===u)return ni.destroy(),void ni.warn("已经是第一个啦~",1.5);if(a.current){const e=await a.current.formSubmit();if(e){e.id=o.data[u].id;try{const n=o.data[u-1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,r.current),i(t=>(t.id=n.id,t.data[u]={...t.data[u],...e},t))}catch(e){}}}},[u,s,t,i,o.data]),p=e.useCallback(async()=>{if(t.apiMethod){if(r.current.page===r.current.pages&&u===o.data.length-1)return ni.destroy(),void ni.warn("已经是最后一页啦~",1.5);if(u+1>=o.data.length)return r.current.page=r.current.page+1,s("down"),void(t.onChange&&t.onChange(o.data[u],r.current))}else if(0===o.data.length||u===o.data.length-1)return ni.destroy(),void ni.warn("已经是最后一个啦~",1.5);if(a.current){const e=await a.current.formSubmit();if(e){e.id=o.data[u].id;try{const n=o.data[u+1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,r.current),i(t=>(t.id=n.id,t.data[u]={...t.data[u],...e},t))}catch(e){}}}},[u,s,t,i,o.data]),f=e.useCallback(async e=>{if("PageUp"===e.key&&(d(),e.preventDefault()),"PageDown"===e.key&&(p(),e.preventDefault()),"Enter"===e.key&&a.current){const e=await a.current.formSubmit();e.id=o.data[u].id;try{t.submitApi(e,"put"),ni.success("保存成功",1.5)}catch(e){}}},[u,p,d,t,o.data]),m=e.useCallback(async()=>{if(t.methodParams){let e=["page","pages","size"],n={},a=await t.methodParams;for(let t in r.current)for(let a of e)t===a&&(n[a]=r.current[t]);n={...n,...a},n.page=a.page?a.page.current:1,r.current=n}},[t.methodParams]);return e.useEffect(()=>{t.visible&&setTimeout(()=>{a.current&&a.current.setFormValues(o.data[u])},100)},[u,t.visible,o.data]),e.useEffect(()=>{t.visible&&(t.apiMethod?m().then(()=>{s()}):i({id:t.id,data:c(t.data,t.transformTime)}))},[m,s,t.apiMethod,t.data,t.id,t.transformTime,t.visible,i,c]),e.useEffect(()=>(t.visible?document.addEventListener("keydown",f):document.removeEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}),[f,t.visible]),n.jsx(iP,{className:"quickly-form-modal",width:t.width?t.width:960,visible:t.visible,title:t.title||"快速编辑信息",onCancel:()=>{t.onCancel&&t.onCancel(r.current)},maskClosable:!1,destroyOnClose:!0,footer:null,children:n.jsxs(mb,{className:"modal-form-height",gutter:16,align:"middle",wrap:!1,children:[n.jsx(vb,{flex:"60px",children:n.jsx(mb,{justify:"center",children:n.jsx(vb,{children:n.jsx(Oz,{className:"circle-filled",style:l,onClick:d})})})}),n.jsx(vb,{flex:"auto",children:n.jsx(SP,{ref:a,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:t.formList})}),n.jsx(vb,{flex:"60px",children:n.jsx(mb,{justify:"center",children:n.jsx(vb,{children:n.jsx(Rz,{className:"circle-filled",style:l,onClick:p})})})})]})})},exports.TreeNode=uP,exports.Upload=cP,exports.VirtualList=t=>{const{vl:a,columns:r,...o}=t,i=e.useRef(a);var l,c;l=a,c=i.current,m.default.isEqualWith(l,c,(e,t)=>{if(m.default.isFunction(e)&&m.default.isFunction(t))return e.toString()===t.toString()})&&(i.current=a);const s=e.useMemo(()=>{if(i.current)return uD(i.current)},[]),[u,d]=e.useState(r||[]);e.useEffect(()=>{d(r||[])},[r]);const p=e.useCallback(e=>(t,{size:n})=>{const a=[...u];a[e]={...a[e],width:n.width},d(a)},[u]),f=e.useMemo(()=>u.map((e,t)=>({...e,onHeaderCell:e=>({width:e.width,onResize:p(t)})})),[u,p]),h=e.useMemo(()=>({header:{cell:pT},...s||{}}),[s]);return n.jsx(wP,{children:n.jsx(AE,{components:h,rowKey:"id",pagination:!1,scroll:{y:a.height,x:"100%"},columns:f,...o})})},exports.hooks=N;
|
|
30
|
+
/** */"production"!==process.env.NODE_ENV&&(Iz.displayName="RightCircleFilled");var Rz=Iz;k(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");k(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;overflow-x:hidden;overflow-y:auto;padding-right:5px}.form-modal .ant-modal-body .modal-form-height .generate-form.ant-form-horizontal.ant-form .ant-row.ant-form-item{margin-bottom:4px}.form-modal .form-modal-foot{margin-top:20px}");var Mz=e.forwardRef((t,a)=>{const r=e.useRef(),[o,i]=N.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let e=await(r.current?.formSubmit());if(e){if(e.endTime&&e.startTime&&x.default(e.endTime).isBefore(e.startTime))return void ni.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(e={...e,...t.submitExtraParameters},t.switchTransform)for(let n=0;n<t.switchTransform.length;n++)e[t.switchTransform[n]]?e[t.switchTransform[n]]="1":e[t.switchTransform[n]]="0";if(t.submitRemoveField)for(let n=0;n<t.submitRemoveField.length;n++)e[t.submitRemoveField[n]]&&delete e[t.submitRemoveField[n]];for(let t in e){const n="YYYY-MM-DD HH:mm:ss";x.default(e[t],n,!0).isValid()&&(e[t]=x.default(e[t]).format(n))}if(t.manualParameterChange&&(e=t.manualParameterChange(e)),t.manualVerification&&!t.manualVerification(e))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(e=m.default.omitBy(e,m.default.isNil),t.submitApi&&e){if(t.id?(e.id=t.id,n=await t.submitApi(e,"put")):n=await t.submitApi(e,"post"),1===n.code){if(t.onConfirm){if(!1===t.onConfirm(n))return}ni.success("操作成功",1.5),t.onCancel&&t.onCancel()}i({saveLoading:!1})}else t.onConfirm&&e&&t.onConfirm(e)}catch(e){i({saveLoading:!1})}}};return e.useEffect(()=>{!1===t.visible&&i({saveLoading:!1})},[t.visible,i]),e.useEffect(()=>{i({disabled:t.disable})},[t.disable,i]),e.useImperativeHandle(a,()=>({setFormLoading:e=>{i({loading:e})},setFormSaveLoading:e=>{i({saveLoading:e})},setFormFields:e=>{r.current&&r.current.setFormFields(e)},getFormValues:e=>r.current?.getFormValues(e),setFormValues:e=>{r.current&&r.current.setFormValues(e)},formReset:e=>{r.current&&r.current.formReset(e)},excludeFormSubmitValues:async e=>{if(r.current){const n=t.formList.filter(t=>!e?.includes(t.name));return await(r.current?.formSubmit(n.map(e=>e.name)))}return{}},getFormSubmitValues:async e=>r.current?await(r.current?.formSubmit(e)):{}})),n.jsx(iP,{className:`form-modal ${t.className}`,width:t.width?t.width:600,visible:t.visible,title:t.title||"对话框",onCancel:t.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:n.jsxs(Yy,{spinning:o.loading,children:[n.jsxs("div",{className:"modal-form-height",children:[t.topRender?t.topRender:null,n.jsx(SP,{ref:r,formConfig:{labelCol:{span:24},...t.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:t.colGirdConfig||{span:12},list:t.formList}),t.children&&t.children]}),(()=>{const a=(()=>{const e=[n.jsx(Vd,{onClick:()=>t.onCancel&&t.onCancel(),children:"关闭"},-1)];return o.disabled||e.push(n.jsx(Vd,{type:"primary",loading:o.saveLoading,onClick:l,children:"提交"},-2)),e})(),r=e=>n.jsx(mb,{className:"form-modal-foot",justify:"center",children:n.jsx(vb,{children:n.jsx(vk,{size:20,children:e})})});if(t.footer)return t.footer;if(t.footBtnList){const{model:n,data:o}=t.footBtnList,i=o.map((t,n)=>{const{children:a,...r}=t;return e.createElement(Vd,{...r,key:n},a)});if("new"===n)return r(i);if("before"===n)return r([...i,...a]);if("after"===n)return r([...a,...i])}return r(a)})()]})})});k('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{align-items:center;border:2px solid #fff;border-radius:4px;cursor:pointer;display:flex;height:36px;justify-content:center;overflow:hidden;width:36px}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');k(".button-group{align-items:center;background-color:#f2f2f3;background-image:none;border:0;border-radius:4px;box-shadow:0 2px 0 rgba(0,0,0,.015);cursor:pointer;display:inline-flex;font-size:12px;height:30px;justify-content:center;line-height:1.15;outline:none;padding:3px 15px;position:relative;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);user-select:none;white-space:nowrap}.button-group:hover{background-color:#e3e5e6}.button-group-large{height:40px}.button-group-small{height:26px}.button-group-primary{background-color:#5860f8;color:#fff}.button-group-primary:hover{background-color:#828cff}.button-group .anticon{font-size:12px;margin-left:5px}.button-group .anticon.anticon-close{align-items:center;background-color:#878d99;border-radius:100%;color:#fff;display:inline-flex;font-size:10px;height:16px;justify-content:center;position:absolute;right:-5px;top:-5px;width:16px}");const zz="button-group";var jz=e.forwardRef((t,a)=>{const[r,o]=N.useSetState({type:"checkbox",deleteOpen:!1,data:[]}),i=e=>{let n=zz;return t.buttonClassName&&(n=`${n} ${t.buttonClassName}`),t.size&&(n=`${n} ${zz}-${t.size}`),e.selected&&(n=`${n} ${zz}-primary`),n};return e.useEffect(()=>{if(t.checkType&&o({type:t.checkType}),t.deleteOpen&&o({deleteOpen:t.deleteOpen}),t.data){const e=t.data.map(e=>(void 0===e.selected&&(e.selected=!1),e));o({data:e})}},[t,o]),e.useImperativeHandle(a,()=>({getButtonGroupSelected:()=>r.data.filter(e=>e.selected)})),n.jsx(mb,{className:t.className,gutter:[10,10],children:r.data.map((e,a)=>n.jsx(vb,{children:n.jsxs("div",{className:i(e),onClick:()=>((e,n)=>{let a=[];t.deleteOpen||(r.data&&("checkbox"===r.type&&(r.data[n].selected=!e.selected,a=r.data),"radio"===r.type&&(a=r.data.map((t,a)=>{let r=!1;return n===a&&(r=!e.selected),{...t,selected:r}}))),t.onChange&&t.onChange(a),o({data:a}))})(e,a),children:[e.name,r.deleteOpen?n.jsx(kz,{onClick:()=>(e=>{if(r.data){const n=r.data.filter((t,n)=>e!==n);t.onChange&&t.onChange(n),o({data:n})}})(a)}):null]})},a))})});exports.Affix=e=>{let t={...e},a="";return t.targetId&&(a=t.targetId,delete t.targetId),n.jsx(ol,{target:()=>document.getElementById(a||"router-render")||window,...t})},exports.ButtonGroup=jz,exports.Dialog=iP,exports.Empty=PM,exports.GaoDeMap=lP,exports.GenerateForm=SP,exports.GenerateTable=OM,exports.IconSelectionModal=e=>{const[t,a]=N.useSetState({iconModal:{selected:-1,list:["iconmove","iconmap","iconnotice","iconpassword","iconNotvisible1","iconphone","iconpic1","iconpin","iconproduct","iconQRcode1","iconreeor","iconreduce","iconresonserate","iconremind","iconrising1","iconRightarrow","iconrmb1","iconsave","iconscanning","iconseleted","iconsearchcart","iconshare","iconRightbutton","iconsorting","iconsound-Mute","iconsound-filling","iconsuggest","iconsuccess","iconsupplier-features","iconswitch","iconsuspended","iconTop","iconsmile","icontradealert","icontopsales","icontradingvolume","iconupload","iconviewlarger","iconwarning","iconset","iconDaytimemode","iconunlock","iconexchangerate","iconall","iconbussiness-man","iconcomponent","iconcode","iconcopy","icondollar","iconhistory","iconeditor","icondata","icongift","iconintegral","iconnav-list","iconpic","iconNotvisible","iconplay","iconQRcode","iconrmb","iconsimilar-product","iconExportservices","iconsendinquiry","iconcolumn","iconadd-account","iconcolumn1","iconadd","iconadd-cart","iconarrow-right","iconarrow-left","iconall1","iconarrow-up","iconashbin","iconatm","iconbad","iconattachent","iconbrowse","iconcalendar","iconcart-full","iconcalculator","iconcameraswitching","iconcecurity-protection","iconcategory","iconclose","iconcertified-supplier","iconcart-Empty","iconcode1","iconcopy1","iconcoupons","iconconnections","iconcry","iconclock","iconCurrencyConverter","iconcut","icondata1","iconCustomermanagement","icondouble-arro-right","iconcustomization","icondouble-arrow-left","icondiscount","icondownload","icondollar1","icondefault-template","iconeditor1","iconetrical-equipm","iconellipsis","iconemail","iconfalling","iconfilter","iconfolder","iconhelp","icongood","icongift1","iconhot","iconinspection","iconleftbutton","iconleftarrow","iconlink","iconloading","iconphone1"]}}),r={height:34,fontSize:22};return n.jsxs(iP,{className:"icon-selected-modal",width:e.width?e.width:590,visible:e.visible,title:e.title?e.title:"图标选择",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:[n.jsx(mb,{gutter:[10,10],children:t.iconModal.list.map((e,o)=>n.jsx(vb,{children:n.jsx("div",{className:`avatar-selected ${o===t.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{a(e=>(e.iconModal.selected=o,e))},children:n.jsx("i",{className:`iconfont ${e}`,title:e,style:r})})},o))}),n.jsx(mb,{className:"icon-selected-foot",justify:"center",children:n.jsx(vb,{children:n.jsxs(vk,{size:20,children:[n.jsx(Vd,{onClick:e.onCancel,children:"关闭"}),n.jsx(Vd,{type:"primary",onClick:()=>{const n=t.iconModal.list[t.iconModal.selected];e.onConfirm&&e.onConfirm(n)},children:"确定"})]})})})]})},exports.LayoutFormModal=Mz,exports.LayoutTableModal=IM,exports.QuicklyProcessForms=t=>{const a=e.useRef(),r=e.useRef({page:1,pages:1,size:10}),[o,i]=N.useSetState({id:void 0,saveLoading:!1,data:[]}),l={fontSize:24},c=e.useCallback((e,t)=>e.map(e=>{if(t)for(let n of t)e[n]&&(e[n]=x.default(e[n]));return e}),[]),s=e.useCallback(async e=>{if(t.apiMethod)try{let n="";const a=await t.apiMethod(r.current);console.log("getList useCallback",a,"queryPagination.current",r.current);const o=a.data.content;r.current.pages=a.data.pages,"up"===e&&(n=o[o.length-1].id),"down"===e&&(n=o[0].id),i({id:n||t.id,data:o})}catch(e){}},[t,i]),u=e.useMemo(()=>{let e=0;for(let[t,n]of o.data.entries())if(n.id===o.id){e=t;break}return e},[o.data,o.id]),d=e.useCallback(async()=>{if(t.apiMethod){if(1===r.current.page&&0===u)return ni.destroy(),void ni.warn("已经是第一页啦~",1.5);if(u-1<0)return r.current.page=r.current.page-1,s("up"),void(t.onChange&&t.onChange(o.data[u],r.current))}else if(0===u)return ni.destroy(),void ni.warn("已经是第一个啦~",1.5);if(a.current){const e=await a.current.formSubmit();if(e){e.id=o.data[u].id;try{const n=o.data[u-1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,r.current),i(t=>(t.id=n.id,t.data[u]={...t.data[u],...e},t))}catch(e){}}}},[u,s,t,i,o.data]),p=e.useCallback(async()=>{if(t.apiMethod){if(r.current.page===r.current.pages&&u===o.data.length-1)return ni.destroy(),void ni.warn("已经是最后一页啦~",1.5);if(u+1>=o.data.length)return r.current.page=r.current.page+1,s("down"),void(t.onChange&&t.onChange(o.data[u],r.current))}else if(0===o.data.length||u===o.data.length-1)return ni.destroy(),void ni.warn("已经是最后一个啦~",1.5);if(a.current){const e=await a.current.formSubmit();if(e){e.id=o.data[u].id;try{const n=o.data[u+1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,r.current),i(t=>(t.id=n.id,t.data[u]={...t.data[u],...e},t))}catch(e){}}}},[u,s,t,i,o.data]),f=e.useCallback(async e=>{if("PageUp"===e.key&&(d(),e.preventDefault()),"PageDown"===e.key&&(p(),e.preventDefault()),"Enter"===e.key&&a.current){const e=await a.current.formSubmit();e.id=o.data[u].id;try{t.submitApi(e,"put"),ni.success("保存成功",1.5)}catch(e){}}},[u,p,d,t,o.data]),m=e.useCallback(async()=>{if(t.methodParams){let e=["page","pages","size"],n={},a=await t.methodParams;for(let t in r.current)for(let a of e)t===a&&(n[a]=r.current[t]);n={...n,...a},n.page=a.page?a.page.current:1,r.current=n}},[t.methodParams]);return e.useEffect(()=>{t.visible&&setTimeout(()=>{a.current&&a.current.setFormValues(o.data[u])},100)},[u,t.visible,o.data]),e.useEffect(()=>{t.visible&&(t.apiMethod?m().then(()=>{s()}):i({id:t.id,data:c(t.data,t.transformTime)}))},[m,s,t.apiMethod,t.data,t.id,t.transformTime,t.visible,i,c]),e.useEffect(()=>(t.visible?document.addEventListener("keydown",f):document.removeEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}),[f,t.visible]),n.jsx(iP,{className:"quickly-form-modal",width:t.width?t.width:960,visible:t.visible,title:t.title||"快速编辑信息",onCancel:()=>{t.onCancel&&t.onCancel(r.current)},maskClosable:!1,destroyOnClose:!0,footer:null,children:n.jsxs(mb,{className:"modal-form-height",gutter:16,align:"middle",wrap:!1,children:[n.jsx(vb,{flex:"60px",children:n.jsx(mb,{justify:"center",children:n.jsx(vb,{children:n.jsx(Oz,{className:"circle-filled",style:l,onClick:d})})})}),n.jsx(vb,{flex:"auto",children:n.jsx(SP,{ref:a,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:t.formList})}),n.jsx(vb,{flex:"60px",children:n.jsx(mb,{justify:"center",children:n.jsx(vb,{children:n.jsx(Rz,{className:"circle-filled",style:l,onClick:p})})})})]})})},exports.TreeNode=uP,exports.Upload=cP,exports.VirtualList=t=>{const{vl:a,columns:r,...o}=t,i=e.useRef(a);var l,c;l=a,c=i.current,m.default.isEqualWith(l,c,(e,t)=>{if(m.default.isFunction(e)&&m.default.isFunction(t))return e.toString()===t.toString()})&&(i.current=a);const s=e.useMemo(()=>{if(i.current)return uD(i.current)},[]),[u,d]=e.useState(r||[]);e.useEffect(()=>{d(r||[])},[r]);const p=e.useCallback(e=>(t,{size:n})=>{const a=[...u];a[e]={...a[e],width:n.width},d(a)},[u]),f=e.useMemo(()=>u.map((e,t)=>({...e,onHeaderCell:e=>({width:e.width,onResize:p(t)})})),[u,p]),h=e.useMemo(()=>({header:{cell:pT},...s||{}}),[s]);return n.jsx(wP,{children:n.jsx(AE,{components:h,rowKey:"id",pagination:!1,scroll:{y:a.height,x:"100%"},columns:f,...o})})},exports.hooks=N;
|